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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dd3bc8ec47443b28c1628d5565957aaf8cddfa1a | docs/schematics/dragonclaw/README.md | docs/schematics/dragonclaw/README.md |
The schematics are in the [HTML file] and viewable with any browser.
The layout file is in the [`.brd`] file.
[`.brd`]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/docs/schematics/dragonclaw/dragonclaw_v0.2.brd
[HTML file]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/docs/schematics/d... |
The schematics are in the [HTML file][schematic] and viewable with any browser.
Note that you'll need to download and save the HTML file from
[this link][schematic]; you cannot view it directly from the server.
The layout file is in the [`.brd`] file.
[`.brd`]: https://raw.githubusercontent.com/coreboot/chrome-ec/ma... | Add note about downloading HTML schematics | docs: Add note about downloading HTML schematics
BRANCH=none
BUG=b:147154913
TEST=view in gitiles
Signed-off-by: Tom Hughes <fc5c12f30a5ed2baa0581f44ee14ad1eb7b20d83@chromium.org>
Change-Id: Ide185001a90896a3ccab69e86c2810a65ff44b6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317... | Markdown | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec | markdown | ## Code Before:
The schematics are in the [HTML file] and viewable with any browser.
The layout file is in the [`.brd`] file.
[`.brd`]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/docs/schematics/dragonclaw/dragonclaw_v0.2.brd
[HTML file]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/d... |
068455895888f9a2134dba2db73cb5234051e374 | etils/eapp/README.md | etils/eapp/README.md |
Absl app/flag utils.
### `eapp.make_flags_parser`
Dataclass flag parser for absl. This allow to define CLI flags through
dataclasses.
Usage:
```python
@dataclasses.dataclass
class Args: # Define `--user=some_user --verbose` CLI flags
user: str
verbose: bool = False
def main(args: Args):
if args.verbose:
... |
Absl app/flag utils.
### `eapp.make_flags_parser`
Dataclass flag parser for absl. This allow to define CLI flags through
dataclasses.
Usage:
```python
from absl import app
from etils import eapp
@dataclasses.dataclass
class Args: # Define `--user=some_user --verbose` CLI flags
user: str
verbose: bool = Fals... | Add import statements in eapp doc | Add import statements in eapp doc
PiperOrigin-RevId: 477386905
| Markdown | apache-2.0 | google/etils | markdown | ## Code Before:
Absl app/flag utils.
### `eapp.make_flags_parser`
Dataclass flag parser for absl. This allow to define CLI flags through
dataclasses.
Usage:
```python
@dataclasses.dataclass
class Args: # Define `--user=some_user --verbose` CLI flags
user: str
verbose: bool = False
def main(args: Args):
if... |
0c9b62192e3098cbae1f2236a7f6d6a6145b10d7 | .travis.yml | .travis.yml | language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=pypy
install:
- pip install tox
script:
- tox
| language: python
env:
- TOXENV=py27
- TOXENV=pypy
install:
- pip install tox
script:
- tox
| Reduce set of supported platforms | Reduce set of supported platforms
| YAML | isc | crypto101/stanczyk | yaml | ## Code Before:
language: python
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py32
- TOXENV=py33
- TOXENV=pypy
install:
- pip install tox
script:
- tox
## Instruction:
Reduce set of supported platforms
## Code After:
language: python
env:
- TOXENV=py27
- TOXENV=pypy
install:
- pip install tox
script:
- tox
|
f353099d17a056647f9a34dd601a984352d914cd | .travis.yml | .travis.yml |
sudo: false
language: go
go:
- 1.6
before_install:
- go get github.com/maruel/pre-commit-go/cmd/pcg
script:
- pcg
| sudo: required
dist: trusty
language: go
go:
- 1.6
before_install:
- go get github.com/maruel/pre-commit-go/cmd/pcg
script:
- pcg -C 16
| Increase system specs, limit concurrent. | Travis: Increase system specs, limit concurrent.
Increase the Travis system specs and limit the number of concurrent
tests to try and avoid the signal-kill error that we're seeing in Travis
ATM.
TBR=iannucci@chromium.org
BUG=None
Review URL: https://codereview.chromium.org/1922583002
| YAML | apache-2.0 | luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go,luci/luci-go | yaml | ## Code Before:
sudo: false
language: go
go:
- 1.6
before_install:
- go get github.com/maruel/pre-commit-go/cmd/pcg
script:
- pcg
## Instruction:
Travis: Increase system specs, limit concurrent.
Increase the Travis system specs and limit the number of concurrent
tests to try and avoid the signal-kill error th... |
7a798ce12e9a2572c8850968239c7fe4c1973039 | src/main/java/org/klips/engine/rete/Consumer.kt | src/main/java/org/klips/engine/rete/Consumer.kt | package org.klips.engine.rete
import org.klips.engine.Binding
import org.klips.engine.Modification
@FunctionalInterface
interface Consumer { fun consume(source: Node, mdf: Modification<Binding>)} | package org.klips.engine.rete
import org.klips.engine.Binding
import org.klips.engine.Modification
interface Consumer { fun consume(source: Node, mdf: Modification<Binding>)} | Make it compatible with Android. | Make it compatible with Android.
| Kotlin | apache-2.0 | vjache/klips,vjache/klips | kotlin | ## Code Before:
package org.klips.engine.rete
import org.klips.engine.Binding
import org.klips.engine.Modification
@FunctionalInterface
interface Consumer { fun consume(source: Node, mdf: Modification<Binding>)}
## Instruction:
Make it compatible with Android.
## Code After:
package org.klips.engine.rete
import org... |
47f70d2715b13971140b86cfc0d107faee1e8919 | source/platform/module/bootstrap.ts | source/platform/module/bootstrap.ts | import 'zone.js/dist/zone-node';
import {
NgModuleFactory,
NgModuleRef,
Type
} from '@angular/core/index';
import {PlatformImpl} from '../platform';
import {browserModuleToServerModule} from '../module';
import {platformNode} from '../factory';
export type ModuleExecute<M, R> = (moduleRef: NgModuleRef<M>) => R... | import 'zone.js/dist/zone-node';
import {
NgModuleFactory,
NgModuleRef,
Type
} from '@angular/core/index';
import {PlatformImpl} from '../platform';
import {browserModuleToServerModule} from '../module';
import {platformNode} from '../factory';
export type ModuleExecute<M, R> = (moduleRef: NgModuleRef<M>) => R... | Clean up the destroy pattern for NgModuleRef instances | Clean up the destroy pattern for NgModuleRef instances
| TypeScript | bsd-2-clause | clbond/angular-ssr,clbond/angular-ssr,clbond/angular-ssr,clbond/angular-ssr | typescript | ## Code Before:
import 'zone.js/dist/zone-node';
import {
NgModuleFactory,
NgModuleRef,
Type
} from '@angular/core/index';
import {PlatformImpl} from '../platform';
import {browserModuleToServerModule} from '../module';
import {platformNode} from '../factory';
export type ModuleExecute<M, R> = (moduleRef: NgMo... |
d929f7cd683c4c6f53c96544e108c5ac2aad0d54 | app/helpers/application_helper.rb | app/helpers/application_helper.rb | module ApplicationHelper
def page_title(*title_parts)
if title_parts.any?
title_parts.push("Admin") if params[:controller] =~ /^admin\//
title_parts.push("GOV.UK")
@page_title = title_parts.reject { |p| p.blank? }.join(" - ")
else
@page_title
end
end
def meta_description_tag
... | module ApplicationHelper
def page_title(*title_parts)
if title_parts.any?
title_parts.push("Admin") if params[:controller] =~ /^admin\//
title_parts.push("GOV.UK")
@page_title = title_parts.reject { |p| p.blank? }.join(" - ")
else
@page_title
end
end
def meta_description_tag
... | Fix test where markdown text isn't present | Fix test where markdown text isn't present
| Ruby | mit | alphagov/contacts-admin,alphagov/contacts-admin,alphagov/contacts-admin | ruby | ## Code Before:
module ApplicationHelper
def page_title(*title_parts)
if title_parts.any?
title_parts.push("Admin") if params[:controller] =~ /^admin\//
title_parts.push("GOV.UK")
@page_title = title_parts.reject { |p| p.blank? }.join(" - ")
else
@page_title
end
end
def meta_d... |
21acd10f757a29dda085e3cc7c2dc27c5682db60 | src/modules/postgres/setup/10-06-2016.update.sql | src/modules/postgres/setup/10-06-2016.update.sql | UPDATE users SET updateTime = createtime where updatetime is null;
UPDATE items SET updateTime = createtime where updatetime is null
UPDATE rels SET updateTime = createtime where updatetime is null
ALTER TABLE users ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE items ALTER COLUMN upda... | UPDATE users SET updateTime = createtime where updatetime is null;
UPDATE items SET updateTime = createtime where updatetime is null
UPDATE rels SET updateTime = createtime where updatetime is null
ALTER TABLE users ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE items ALTER COLUMN upda... | Add index on thrads createtime | Add index on thrads createtime
| SQL | agpl-3.0 | belng/pure,belng/pure,belng/pure,scrollback/pure,scrollback/pure,belng/pure,scrollback/pure,scrollback/pure | sql | ## Code Before:
UPDATE users SET updateTime = createtime where updatetime is null;
UPDATE items SET updateTime = createtime where updatetime is null
UPDATE rels SET updateTime = createtime where updatetime is null
ALTER TABLE users ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE items A... |
7e88e9e018c5e43651e1b3cc08b40be5bb963278 | app/assets/stylesheets/transam_transit/framework_and_overrides.css.scss | app/assets/stylesheets/transam_transit/framework_and_overrides.css.scss | .editable-table td.input-column {
min-width: 90px;
max-width: 90px;
height: 38px;
}
.editable-table th.all-input-column {
white-space: nowrap;
height: 38px;
min-width: 180px;
}
.editable-input input[type="number"] {
-moz-appearance: textfield;
}
.editable-inline {
width: 100% !important;... | .editable-table td.input-column {
min-width: 90px;
max-width: 90px;
height: 38px;
}
.editable-table th.all-input-column {
white-space: nowrap;
height: 38px;
min-width: 180px;
}
.editable-input input[type="number"] {
-moz-appearance: textfield;
}
.editable-inline {
width: 100% !important;... | Reformat empty text in detail pages: " - ", same color as rest. | Reformat empty text in detail pages: " - ", same color as rest.
| SCSS | mit | camsys/transam_transit,camsys/transam_transit,camsys/transam_transit,camsys/transam_transit | scss | ## Code Before:
.editable-table td.input-column {
min-width: 90px;
max-width: 90px;
height: 38px;
}
.editable-table th.all-input-column {
white-space: nowrap;
height: 38px;
min-width: 180px;
}
.editable-input input[type="number"] {
-moz-appearance: textfield;
}
.editable-inline {
width: ... |
6110148f337019ada6a8cb7b2a2dd94783738b73 | src/Eadrax/Core/Usecase/Project/Track/Repository.php | src/Eadrax/Core/Usecase/Project/Track/Repository.php | <?php
/**
* @license MIT
* Full license text in LICENSE file
*/
namespace Eadrax\Core\Usecase\Project\Track;
interface Repository
{
public function is_user_tracking_project($fan, $project);
public function remove_project($fan, $project);
public function if_fan_of($fan, $idol);
public function remov... | <?php
/**
* @license MIT
* Full license text in LICENSE file
*/
namespace Eadrax\Core\Usecase\Project\Track;
interface Repository
{
public function is_user_tracking_project($fan, $project);
public function remove_project($fan, $project);
public function if_fan_of($fan, $idol);
public function remov... | Add get_project_author ability in project track repository | Add get_project_author ability in project track repository
| PHP | mit | Moult/eadrax-old | php | ## Code Before:
<?php
/**
* @license MIT
* Full license text in LICENSE file
*/
namespace Eadrax\Core\Usecase\Project\Track;
interface Repository
{
public function is_user_tracking_project($fan, $project);
public function remove_project($fan, $project);
public function if_fan_of($fan, $idol);
publi... |
27bff23b72b326ea882779e1afb67a6c85e74ab4 | README.rst | README.rst | pydash
======
.. container:: clearer
.. image:: http://img.shields.io/pypi/v/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
.. image:: http://img.shields.io/travis/dgilland/pydash/master.svg?style=flat
:target: https://travis-ci.org/dgilland/pydash
.. image:: http://img.shields.io/covera... | ******
pydash
******
|version| |travis| |coveralls| |license|
Python port of the `Lo-Dash <http://lodash.com/>`_ Javascript library.
Links
=====
- Project: https://github.com/dgilland/pydash
- Documentation: http://pydash.readthedocs.org
- PyPi: https://pypi.python.org/pypi/pydash/
- TravisCI: https://travis-ci.o... | Use inline images and add Links section. | Use inline images and add Links section.
| reStructuredText | mit | jacobbridges/pydash,bharadwajyarlagadda/pydash,dgilland/pydash | restructuredtext | ## Code Before:
pydash
======
.. container:: clearer
.. image:: http://img.shields.io/pypi/v/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
.. image:: http://img.shields.io/travis/dgilland/pydash/master.svg?style=flat
:target: https://travis-ci.org/dgilland/pydash
.. image:: http://img.s... |
aaff79de71feb0b46e54c26fddcdec1037d8dd4a | .travis.yml | .travis.yml | language: node_js
node_js:
- node
- "0.12"
script: node make build=release alltests
sudo: false
addons:
apt:
packages:
- default-jdk
deploy:
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
branch: master
skip_cleanup: true
- provide... | language: node_js
node_js:
- node
- "0.12"
script: node make build=release alltests
dist: trusty
sudo: false
addons:
apt:
packages:
- default-jdk
deploy:
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
branch: master
skip_cleanup: tru... | Switch to using the trusty environment on Travis, currently in beta | Switch to using the trusty environment on Travis, currently in beta
See https://docs.travis-ci.com/user/trusty-ci-environment/ for details.
| YAML | apache-2.0 | strobelm/CindyJS,kortenkamp/CindyJS,kranich/CindyJS,kranich/CindyJS,kortenkamp/CindyJS,kranich/CindyJS,kranich/CindyJS,kortenkamp/CindyJS,strobelm/CindyJS,kortenkamp/CindyJS,CindyJS/CindyJS,kortenkamp/CindyJS,CindyJS/CindyJS,strobelm/CindyJS,CindyJS/CindyJS,kortenkamp/CindyJS,strobelm/CindyJS,CindyJS/CindyJS,strobelm/C... | yaml | ## Code Before:
language: node_js
node_js:
- node
- "0.12"
script: node make build=release alltests
sudo: false
addons:
apt:
packages:
- default-jdk
deploy:
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
branch: master
skip_cleanup: ... |
b6b9c6f3f8faaade428d044f93acd25edade075d | tools/pdtools/pdtools/__main__.py | tools/pdtools/pdtools/__main__.py | import os
import click
from . import chute
from . import device
from . import routers
from . import store
PDSERVER_URL = os.environ.get("PDSERVER_URL", "https://paradrop.org")
@click.group()
@click.pass_context
def root(ctx):
"""
Paradrop command line utility.
Environment Variables
PDSERVER_U... | import os
import click
from . import chute
from . import device
from . import routers
from . import store
PDSERVER_URL = os.environ.get("PDSERVER_URL", "https://paradrop.org")
CONTEXT_SETTINGS = dict(
# Options can be parsed from PDTOOLS_* environment variables.
auto_envvar_prefix = 'PDTOOLS',
# Respo... | Enable '-h' help option from the pdtools root level. | Enable '-h' help option from the pdtools root level.
| Python | apache-2.0 | ParadropLabs/Paradrop,ParadropLabs/Paradrop,ParadropLabs/Paradrop | python | ## Code Before:
import os
import click
from . import chute
from . import device
from . import routers
from . import store
PDSERVER_URL = os.environ.get("PDSERVER_URL", "https://paradrop.org")
@click.group()
@click.pass_context
def root(ctx):
"""
Paradrop command line utility.
Environment Variables
... |
cd103d34c4190e6488e4742d97de634816344d6b | app/views/search/products.rhtml | app/views/search/products.rhtml | <h1><%= _('Products and Services') %></h1>
<div id="search-column-left">
<% if !@empty_query %>
<% button_bar do %>
<%= display_map_list_button %>
<% end %>
<%= facets_menu(:products, @facets) %>
<% end %>
</div>
<div id="search-column-right">
<%= render :partial => 'search_form', :locals => {... | <%= search_page_title( @titles[:products], @category ) %>
<div id="search-column-left">
<% if !@empty_query %>
<% button_bar do %>
<%= display_map_list_button %>
<% end %>
<%= facets_menu(:products, @facets) %>
<% end %>
</div>
<div id="search-column-right">
<%= render :partial => 'search_form... | Fix for product search view's title | Fix for product search view's title
| RHTML | agpl-3.0 | hackathon-oscs/rede-osc,alexandreab/noosfero,larissa/noosfero,hackathon-oscs/rede-osc,hackathon-oscs/rede-osc,danielafeitosa/noosfero,ludaac/noosfero-mx,blogoosfero/noosfero,AlessandroCaetano/noosfero,rafamanzo/mezuro-travis,coletivoEITA/noosfero-ecosol,samasti/noosfero,blogoosfero/noosfero,samasti/noosfero,coletivoEIT... | rhtml | ## Code Before:
<h1><%= _('Products and Services') %></h1>
<div id="search-column-left">
<% if !@empty_query %>
<% button_bar do %>
<%= display_map_list_button %>
<% end %>
<%= facets_menu(:products, @facets) %>
<% end %>
</div>
<div id="search-column-right">
<%= render :partial => 'search_for... |
304b71823aac62adcbf938c23b823f7d0fd369f1 | samples/Qt/basic/mythread.h | samples/Qt/basic/mythread.h |
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This is verbose level 2 logging from thread #" << threadId;
// Following line will ... |
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This is verbose level 2 logging from thread #" << threadId;
// Following line will ... | Remove logger ids loop from sample | Remove logger ids loop from sample
| C | mit | spqr33/easyloggingpp,lisong521/easyloggingpp,blankme/easyloggingpp,lisong521/easyloggingpp,blankme/easyloggingpp,arvidsson/easyloggingpp,simonhang/easyloggingpp,chenmusun/easyloggingpp,utiasASRL/easyloggingpp,dreal-deps/easyloggingpp,blankme/easyloggingpp,lisong521/easyloggingpp,chenmusun/easyloggingpp,simonhang/easylo... | c | ## Code Before:
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This is verbose level 2 logging from thread #" << threadId;
// Foll... |
a04fb46bbd71d8b0db9ac31b6c88adbb9567a7fc | lib/adb/peco.rb | lib/adb/peco.rb | require 'adb/peco/version'
require 'device_api/android'
require 'peco_selector'
module Adb
module Peco
def self.serial_option
return nil unless adb_action
return nil unless need_serial_option?
devices = DeviceAPI::Android.devices
return nil if devices.size <= 1 || devices.size == 0
... | require 'adb/peco/version'
require 'device_api/android'
require 'peco_selector'
module Adb
module Peco
AdbUnavailableError = Class.new(StandardError)
def self.serial_option
return nil unless adb_action
return nil unless need_serial_option?
devices = DeviceAPI::Android.devices
return... | Print error when adb command is not available | Print error when adb command is not available
| Ruby | apache-2.0 | tomorrowkey/adb-peco,tomorrowkey/adb-peco | ruby | ## Code Before:
require 'adb/peco/version'
require 'device_api/android'
require 'peco_selector'
module Adb
module Peco
def self.serial_option
return nil unless adb_action
return nil unless need_serial_option?
devices = DeviceAPI::Android.devices
return nil if devices.size <= 1 || devices... |
1b681d6652bacce6b741ca66725f25b9afb16bc8 | src/test/ui/if-attrs/cfg-false-if-attr.rs | src/test/ui/if-attrs/cfg-false-if-attr.rs | // check-pass
#[cfg(FALSE)]
fn simple_attr() {
#[attr] if true {}
#[allow_warnings] if true {}
}
#[cfg(FALSE)]
fn if_else_chain() {
#[first_attr] if true {
} else if false {
} else {
}
}
#[cfg(FALSE)]
fn if_let() {
#[attr] if let Some(_) = Some(true) {}
}
macro_rules! custom_macro {
... | // check-pass
#[cfg(FALSE)]
fn simple_attr() {
#[attr] if true {}
#[allow_warnings] if true {}
}
#[cfg(FALSE)]
fn if_else_chain() {
#[first_attr] if true {
} else if false {
} else {
}
}
#[cfg(FALSE)]
fn if_let() {
#[attr] if let Some(_) = Some(true) {}
}
fn bar() {
#[cfg(FALSE)]
... | Test that cfg-gated if-exprs are not type-checked | Test that cfg-gated if-exprs are not type-checked
| Rust | apache-2.0 | graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust | rust | ## Code Before:
// check-pass
#[cfg(FALSE)]
fn simple_attr() {
#[attr] if true {}
#[allow_warnings] if true {}
}
#[cfg(FALSE)]
fn if_else_chain() {
#[first_attr] if true {
} else if false {
} else {
}
}
#[cfg(FALSE)]
fn if_let() {
#[attr] if let Some(_) = Some(true) {}
}
macro_rules! cus... |
af010c5e924a779a37495905efc32aecdfd358ea | whalelinter/commands/common.py | whalelinter/commands/common.py | import re
from whalelinter.app import App
from whalelinter.dispatcher import Dispatcher
from whalelinter.commands.command import ShellCommand
from whalelinter.commands.apt import Apt
@Dispatcher.register(token='run', command='cd')
class Cd(ShellCommand):
def __init__(self, **kwargs... | import re
from whalelinter.app import App
from whalelinter.dispatcher import Dispatcher
from whalelinter.commands.command import ShellCommand
from whalelinter.commands.apt import Apt
@Dispatcher.register(token='run', command='cd')
class Cd(ShellCommand):
def __init__(self, **kwargs... | Fix line addressing issue on 'cd' command | Fix line addressing issue on 'cd' command
| Python | mit | jeromepin/whale-linter | python | ## Code Before:
import re
from whalelinter.app import App
from whalelinter.dispatcher import Dispatcher
from whalelinter.commands.command import ShellCommand
from whalelinter.commands.apt import Apt
@Dispatcher.register(token='run', command='cd')
class Cd(ShellCommand):
def __init_... |
07ef73f98e85919863af43f9c50bde85a143660d | conf_site/reviews/admin.py | conf_site/reviews/admin.py | from django.contrib import admin
from conf_site.reviews.models import (
ProposalFeedback,
ProposalNotification,
ProposalResult,
ProposalVote,
)
class ProposalInline(admin.StackedInline):
model = ProposalNotification.proposals.through
@admin.register(ProposalFeedback)
class ProposalFeedbackAdmin... | from django.contrib import admin
from conf_site.reviews.models import (
ProposalFeedback,
ProposalNotification,
ProposalResult,
ProposalVote,
)
class ProposalInline(admin.StackedInline):
model = ProposalNotification.proposals.through
@admin.register(ProposalFeedback)
class ProposalFeedbackAdmin... | Enable filtering ProposalVotes by reviewer. | Enable filtering ProposalVotes by reviewer.
| Python | mit | pydata/conf_site,pydata/conf_site,pydata/conf_site | python | ## Code Before:
from django.contrib import admin
from conf_site.reviews.models import (
ProposalFeedback,
ProposalNotification,
ProposalResult,
ProposalVote,
)
class ProposalInline(admin.StackedInline):
model = ProposalNotification.proposals.through
@admin.register(ProposalFeedback)
class Propo... |
5f341d3c6609fedc2531c37258ef5593573cd5b0 | .travis.yml | .travis.yml | language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: beta
- rust: nightly
dist: trusty
sudo: false
addons:
apt:
packages:
- python3-pip
install:
- pip3 install --user --upgrade mypy flake8
- mypy --version
before_script:
- car... | language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: beta
- rust: nightly
dist: trusty
sudo: false
addons:
apt:
packages:
- python3-pip
install:
- pip3 install --user --upgrade mypy flake8
- mypy --version
before_script:
# If ... | Add comments explaining the rustfmt installation dance. | Add comments explaining the rustfmt installation dance.
| YAML | apache-2.0 | stoklund/cretonne,stoklund/cretonne,stoklund/cretonne | yaml | ## Code Before:
language: rust
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: beta
- rust: nightly
dist: trusty
sudo: false
addons:
apt:
packages:
- python3-pip
install:
- pip3 install --user --upgrade mypy flake8
- mypy --version
before_s... |
50d8f1d65ca73c984f451dd9576fbe12295165e6 | lib/gen/java_gen.rb | lib/gen/java_gen.rb | module RamlPoliglota
module Gen
class JavaGen < CodeGen
def initialize
@logger = AppLogger.create_logger self
end
def generate(raml)
return if raml.nil?
@logger.info 'Generate Java code.'
_generate_data_schemas raml.schemas
end
private
def _... | require File.expand_path '../code_gen.rb', __FILE__
module RamlPoliglota
module Gen
class JavaGen < CodeGen
def initialize
@logger = AppLogger.create_logger self
end
def generate(raml)
return if raml.nil?
@logger.info 'Generate Java code.'
_generate_data_sche... | Add explicit require to super class. | Add explicit require to super class.
| Ruby | mit | aureliano/raml-poliglota | ruby | ## Code Before:
module RamlPoliglota
module Gen
class JavaGen < CodeGen
def initialize
@logger = AppLogger.create_logger self
end
def generate(raml)
return if raml.nil?
@logger.info 'Generate Java code.'
_generate_data_schemas raml.schemas
end
pri... |
9d8d426c452492fb3d5e255d31f2c5f96f257b8d | setup.py | setup.py | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
packages=fin... | Remove Pypy from list of supported Python versions | Remove Pypy from list of supported Python versions
| Python | mit | Swimlane/sw-python-client | python | ## Code Before:
from setuptools import setup, find_packages
def parse_requirements(requirement_file):
with open(requirement_file) as f:
return f.readlines()
setup(
name="swimlane",
author="Swimlane LLC",
author_email="info@swimlane.com",
url="https://github.com/swimlane/swimlane-python",
... |
c5126c5f7799dec2c47902889bcdb6dd8d3dd5e9 | ansible.cfg | ansible.cfg | [defaults]
inventory = ./inventory/ec2.py
roles_path = ./roles
remote_user = centos
retry_files_enabled = False
retry_files_save_path = ~/ansible.retry
ansible_managed = "This file is managed by Ansible. Do not make local changes."
[ssh_connection]
scp_if_ssh=True
[privilege_escalation]
become = True
become_user = ro... | [defaults]
inventory = ./inventory/ec2.py
roles_path = ./roles
private_key_file=./ssh/aws-private.pem
remote_user = centos
retry_files_enabled = False
retry_files_save_path = ~/ansible.retry
ansible_managed = "This file is managed by Ansible. Do not make local changes."
[ssh_connection]
scp_if_ssh=True
[privilege_esc... | Use newly-created key to do remote ops. | Use newly-created key to do remote ops.
| INI | mit | zamoose/ec2_demo,zamoose/ec2_demo,zamoose/ec2_demo | ini | ## Code Before:
[defaults]
inventory = ./inventory/ec2.py
roles_path = ./roles
remote_user = centos
retry_files_enabled = False
retry_files_save_path = ~/ansible.retry
ansible_managed = "This file is managed by Ansible. Do not make local changes."
[ssh_connection]
scp_if_ssh=True
[privilege_escalation]
become = True
... |
4ad92bfcbfd2145b008cd18e934ebd6dc3be53e9 | pytest/test_prefork.py | pytest/test_prefork.py | from tectonic import prefork
def test_WorkerMetadata():
"""
This is a simple test, as WorkerMetadata only holds data
"""
pid = 'pid'
health_check_read = 100
last_seen = 'now'
metadata = prefork.WorkerMetadata(pid=pid,
health_check_read=health_check_re... | import os
import shutil
import os.path
import tempfile
from tectonic import prefork
def test_WorkerMetadata():
"""
This is a simple test, as WorkerMetadata only holds data
"""
pid = 'pid'
health_check_read = 100
last_seen = 'now'
metadata = prefork.WorkerMetadata(pid=pid,
... | Add a test for the file object | Add a test for the file object
| Python | bsd-3-clause | markrwilliams/tectonic | python | ## Code Before:
from tectonic import prefork
def test_WorkerMetadata():
"""
This is a simple test, as WorkerMetadata only holds data
"""
pid = 'pid'
health_check_read = 100
last_seen = 'now'
metadata = prefork.WorkerMetadata(pid=pid,
health_check_read... |
ea27ba3e05b279f6c3430b1846de71527aa00215 | futures-util/src/compat/stream01ext.rs | futures-util/src/compat/stream01ext.rs | use super::Compat;
use futures::Stream as Stream01;
impl<St: Stream01> Stream01CompatExt for St {}
/// Extension trait for futures 0.1 [`Stream`][Stream01]
pub trait Stream01CompatExt: Stream01 {
/// Converts a futures 0.1 [`Stream<Item = T, Error = E>`][Stream01] into a
/// futures 0.3 [`Stream<Item = Result... | use super::Compat;
use futures::Stream as Stream01;
impl<St: Stream01> Stream01CompatExt for St {}
/// Extension trait for futures 0.1 [`Stream`][futures::Stream]
pub trait Stream01CompatExt: Stream01 {
/// Converts a futures 0.1 [`Stream<Item = T, Error = E>`][futures::Stream]
/// into a futures 0.3 [`Stream... | Fix doc links in futures-util::compat | Fix doc links in futures-util::compat
| Rust | apache-2.0 | alexcrichton/futures-rs | rust | ## Code Before:
use super::Compat;
use futures::Stream as Stream01;
impl<St: Stream01> Stream01CompatExt for St {}
/// Extension trait for futures 0.1 [`Stream`][Stream01]
pub trait Stream01CompatExt: Stream01 {
/// Converts a futures 0.1 [`Stream<Item = T, Error = E>`][Stream01] into a
/// futures 0.3 [`Stre... |
c5e541ba544b5990dbc4934cda5db7585be0062c | .travis/test-coverage.sh | .travis/test-coverage.sh |
echo "mode: set" > acc.out
returnval=`go test -v -coverprofile=profile.out`
echo ${returnval}
if [[ ${returnval} != *FAIL* ]]
then
if [ -f profile.out ]
then
cat profile.out | grep -v "mode: set" >> acc.out
fi
else
exit 1
fi
for Dir in $(find ./* -maxdepth 10 -type d );
do
if ls $Dir/*.go &> /dev/null;
then
... |
echo "mode: set" > acc.out
returnval=`go test -v -coverprofile=profile.out -tags noasm`
echo ${returnval}
if [[ ${returnval} != *FAIL* ]]
then
if [ -f profile.out ]
then
cat profile.out | grep -v "mode: set" >> acc.out
fi
else
exit 1
fi
for Dir in $(find ./* -maxdepth 10 -type d );
do
if ls $Dir/*.go &> /dev/n... | Add noasm tag to coverage tests | Add noasm tag to coverage tests
| Shell | bsd-3-clause | gonum/gonum,gonum/gonum,gonum/gonum | shell | ## Code Before:
echo "mode: set" > acc.out
returnval=`go test -v -coverprofile=profile.out`
echo ${returnval}
if [[ ${returnval} != *FAIL* ]]
then
if [ -f profile.out ]
then
cat profile.out | grep -v "mode: set" >> acc.out
fi
else
exit 1
fi
for Dir in $(find ./* -maxdepth 10 -type d );
do
if ls $Dir/*.go &> /d... |
453d56709d0c234490cdf1eaf7ad5f589d0d365a | app/views/stafftools/_navigation.html.erb | app/views/stafftools/_navigation.html.erb | <nav class="menu">
<span class="menu-heading"><%= octicon 'rocket' %> Site Admin</span>
<%= link_to 'Search', stafftools_root_path, class: 'menu-item selected' %>
</nav>
<nav class="menu">
<span class="menu-heading"><%= octicon 'code' %> Developer Tools</span>
<%= link_to 'Features', stafftools_flipper_path, c... | <nav class="menu">
<span class="menu-heading"><%= octicon 'rocket' %> Site Admin</span>
<%= link_to 'Search', stafftools_root_path, class: "menu-item #{'selected' if current_page?(stafftools_root_path)}" %>
</nav>
<nav class="menu">
<span class="menu-heading"><%= octicon 'code' %> Developer Tools</span>
<%= li... | Make stafftools search link selected only on search page | Make stafftools search link selected only on search page
Add selected class to search link only on stafftools_root page
| HTML+ERB | mit | BelieveC/classroom,BelieveC/classroom,BelieveC/classroom,BelieveC/classroom | html+erb | ## Code Before:
<nav class="menu">
<span class="menu-heading"><%= octicon 'rocket' %> Site Admin</span>
<%= link_to 'Search', stafftools_root_path, class: 'menu-item selected' %>
</nav>
<nav class="menu">
<span class="menu-heading"><%= octicon 'code' %> Developer Tools</span>
<%= link_to 'Features', stafftools... |
bb3e55c5a910a6d447a9b60bab0de975b6017f2b | .travis.yml | .travis.yml | language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
branches:
only:
- master
- javadoc
script:
mvn test site
# End .travis.yml
| language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
branches:
only:
- master
- javadoc
script:
mvn test site
git:
depth: 10000
# End .travis.yml
| Fix git-commit-id-plugin error when running in Travis-CI. | Fix git-commit-id-plugin error when running in Travis-CI.
| YAML | apache-2.0 | mehant/incubator-calcite,dindin5258/calcite,devth/calcite,amoghmargoor/incubator-calcite,datametica/calcite,dindin5258/calcite,arina-ielchiieva/calcite,looker-open-source/calcite-avatica,glimpseio/incubator-calcite,looker-open-source/calcite-avatica,jinfengni/incubator-optiq,minji-kim/calcite,apache/calcite,b-slim/calc... | yaml | ## Code Before:
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
branches:
only:
- master
- javadoc
script:
mvn test site
# End .travis.yml
## Instruction:
Fix git-commit-id-plugin error when running in Travis-CI.
## Code After:
language: java
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
... |
88b85c9761b0334208606fecdb2ceff507c375ed | src/Executor/ExecutionResult.php | src/Executor/ExecutionResult.php | <?php
namespace GraphQL\Executor;
use GraphQL\Error\Error;
class ExecutionResult implements \JsonSerializable
{
/**
* @var array
*/
public $data;
/**
* @var Error[]
*/
public $errors;
/**
* @var array[]
*/
public $extensions;
/**
* @var callable
... | <?php
namespace GraphQL\Executor;
use GraphQL\Error\Error;
class ExecutionResult implements \JsonSerializable
{
/**
* @var array
*/
public $data;
/**
* @var Error[]
*/
public $errors;
/**
* @var array[]
*/
public $extensions;
/**
* @var callable
... | Make 'errors' top property in response array | Make 'errors' top property in response array
| PHP | mit | webonyx/graphql-php | php | ## Code Before:
<?php
namespace GraphQL\Executor;
use GraphQL\Error\Error;
class ExecutionResult implements \JsonSerializable
{
/**
* @var array
*/
public $data;
/**
* @var Error[]
*/
public $errors;
/**
* @var array[]
*/
public $extensions;
/**
* ... |
78aa39156986f110301824858abdf1493d1a49af | lib/teamcity/client/common.rb | lib/teamcity/client/common.rb | module TeamCity
class Client
# Defines some common methods shared across the other
# teamcity api modules
module Common
private
def assert_options(options)
!options[:id] and raise ArgumentError, "Must provide an id", caller
end
# Take a list of locators to search on mult... | module TeamCity
class Client
# Defines some common methods shared across the other
# teamcity api modules
module Common
private
def assert_options(options)
!options[:id] and raise ArgumentError, "Must provide an id", caller
end
# Take a list of locators to search on mult... | Remove unnecessary storing of results in locator method | Remove unnecessary storing of results in locator method
| Ruby | mit | badaiv/teamcity-ruby-client,Tiger66639/teamcity-ruby-client,jperry/teamcity-ruby-client,masgari/teamcity-ruby-client | ruby | ## Code Before:
module TeamCity
class Client
# Defines some common methods shared across the other
# teamcity api modules
module Common
private
def assert_options(options)
!options[:id] and raise ArgumentError, "Must provide an id", caller
end
# Take a list of locators t... |
1d9af5cfccbeafe5d8ac3b4144a996c7300040ed | scripts/install-hugo.sh | scripts/install-hugo.sh |
LAST=`pwd`
echo "Installing Hugo Extended Edition ^TM"
mkdir $HOME/src
cd $HOME/src
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install --tags extended
echo "Hugo installation complete. Returning to $LAST"
cd $LAST |
SRC_DIR="${HOME}/src"
echo "Installing Hugo Extended Edition ^TM"
mkdir -p $SRC_DIR
pushd $SRC_DIR
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install --tags extended
echo "Hugo installation complete."
popd
| Clean up hugo install script | Clean up hugo install script
| Shell | mit | snoonetIRC/website,snoonetIRC/website,snoonetIRC/website | shell | ## Code Before:
LAST=`pwd`
echo "Installing Hugo Extended Edition ^TM"
mkdir $HOME/src
cd $HOME/src
git clone https://github.com/gohugoio/hugo.git
cd hugo
go install --tags extended
echo "Hugo installation complete. Returning to $LAST"
cd $LAST
## Instruction:
Clean up hugo install script
## Code After:
SRC_DIR="${H... |
acf6d3edaf0c1974e72b88b2198dc12564306104 | phpunit.xml | phpunit.xml | <?xml version="1.0" encoding="utf-8"?>
<phpunit colors="true">
<testsuites>
<testsuite name="TesseractOCR Test Suite">
<directory suffix="Tests.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
... | <?xml version="1.0" encoding="utf-8"?>
<phpunit colors="true">
<php>
<ini name="error_reporting" value="E_ALL"/>
<ini name="display_errors" value="On"/>
<ini name="display_startup_errors" value="On"/>
</php>
<testsuites>
<testsuite name="TesseractOCR Test Suite">
... | Enable error reporting on tests | Enable error reporting on tests
| XML | mit | thiagoalessio/tesseract-ocr-for-php | xml | ## Code Before:
<?xml version="1.0" encoding="utf-8"?>
<phpunit colors="true">
<testsuites>
<testsuite name="TesseractOCR Test Suite">
<directory suffix="Tests.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="tru... |
9fe60dc2b863e5315adbe53779b6e59aa30f87af | templates/registration-email.txt | templates/registration-email.txt | Hi {{ attendee.name }},
Thanks for registering for the Cambridge DevSummit! To pay the registration fee
or view your details, please visit:
https://bsdcam.cl.cam.ac.uk/registration/{{ attendee.id }}?auth={{ attendee.auth() }}
This form won't let you change details you've already entered; to do that
you'll need to e-... | Hi {{ attendee.name }},
Thanks for registering for the Cambridge DevSummit! To pay the registration fee
or view your details, please visit:
https://bsdcam.cl.cam.ac.uk/attendee/{{ attendee.id }}?auth={{ attendee.auth() }}
This form won't let you change details you've already entered; to do that
you'll need to e-mail... | Fix attendee URL in registration email template. | Fix attendee URL in registration email template.
| Text | bsd-2-clause | trombonehero/nerf-herder,trombonehero/nerf-herder,trombonehero/nerf-herder | text | ## Code Before:
Hi {{ attendee.name }},
Thanks for registering for the Cambridge DevSummit! To pay the registration fee
or view your details, please visit:
https://bsdcam.cl.cam.ac.uk/registration/{{ attendee.id }}?auth={{ attendee.auth() }}
This form won't let you change details you've already entered; to do that
y... |
96bd5e36a098fabec022bd5e9dfda3c20be77d66 | README.md | README.md |
A (much needed) clean bell schedule web application for Harker students
## Usage
* Go to [the Github IO page](http://iluvredwall.github.io/bellschedule/) to access the web application and all of its functionality
* Click the left and right arrows to switch between weeks
* Periods are highlighted as the day progresses... |
A (much needed) clean bell schedule web application for Harker students
## Usage
* Go to [the Github IO page](http://iluvredwall.github.io/bellschedule/) to access the web application and all of its functionality
* Click the left and right arrows to switch between weeks
* Periods are highlighted as the day progresses... | Add TODOs, how to contribute, and basic usage | Add TODOs, how to contribute, and basic usage | Markdown | mit | HarkerDev/bellschedule,HarkerDev/bellschedule | markdown | ## Code Before:
A (much needed) clean bell schedule web application for Harker students
## Usage
* Go to [the Github IO page](http://iluvredwall.github.io/bellschedule/) to access the web application and all of its functionality
* Click the left and right arrows to switch between weeks
* Periods are highlighted as th... |
2ba1dc7086146af2d2578bd0384328df46fb08de | bootstrap.sh | bootstrap.sh |
set -e
set -u
set -x
KEEPER_USERNAME="boxkeeper"
RETURN_DIR=$(pwd)
if id -u "$KEEPER_USERNAME" >/dev/null 2>&1; then
echo -n "User '$KEEPER_USERNAME' already exists... skipping"
else
echo -n "Creating '$KEEPER_USERNAME' user..."
useradd -G wheel $KEEPER_USERNAME
echo "$KEEPER_USERNAME:vagrant" | chp... |
set -e
set -u
set -x
KEEPER_USERNAME="boxkeeper"
KEEPER_HOMEDIR="/home/$KEEPER_USERNAME"
KEEPER_SSHDIR="$KEEPER_HOMEDIR/.ssh"
KEEPER_KEYS="$KEEPER_SSHDIR/authorized_keys"
RETURN_DIR=$(pwd)
if id -u "$KEEPER_USERNAME" >/dev/null 2>&1; then
echo -n "User '$KEEPER_USERNAME' already exists... skipping"
else
ech... | Install boxkeeper SSH keys when provisioning | Install boxkeeper SSH keys when provisioning
| Shell | mit | lightster/linode-vagrant | shell | ## Code Before:
set -e
set -u
set -x
KEEPER_USERNAME="boxkeeper"
RETURN_DIR=$(pwd)
if id -u "$KEEPER_USERNAME" >/dev/null 2>&1; then
echo -n "User '$KEEPER_USERNAME' already exists... skipping"
else
echo -n "Creating '$KEEPER_USERNAME' user..."
useradd -G wheel $KEEPER_USERNAME
echo "$KEEPER_USERNAM... |
657d901416f13cb994b7df6266bb773d7c43c877 | src/ServiceProvider/CaptchaServiceProvider.php | src/ServiceProvider/CaptchaServiceProvider.php | <?php
namespace Anam\Captcha\ServiceProvider;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class CaptchaServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->b... | <?php
namespace Anam\Captcha\ServiceProvider;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class CaptchaServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->b... | Update @capcha directive to load only the partial view | Update @capcha directive to load only the partial view
| PHP | mit | anam-hossain/captcha | php | ## Code Before:
<?php
namespace Anam\Captcha\ServiceProvider;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
class CaptchaServiceProvider extends ServiceProvider
{
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
... |
9b54dee4c74f3b7f9a9d8b7fab7c974e4b2da8fd | _posts/help/2015-12-08-the-basics.md | _posts/help/2015-12-08-the-basics.md | <!--- DO NOT DELETE. "Help" on iOS links here. --->
---
layout: post
title: "iOS Basics"
date: 2015-12-08 04:23:18 MDT
categories: help
position: 13
---
**Ello: iOS App**
<div class="embetter" data-vimeo-id="135605909"><a href="https://vimeo.com/135605909" target="_blank"><img src="http://i.vimeocdn.com/video/5296... | ---
layout: post
title: "iOS Basics"
date: 2015-12-08 04:23:18 MDT
categories: help
position: 13
---
<!--- DO NOT DELETE. "Help" on iOS links here. --->
**Ello: iOS App**
<div class="embetter" data-vimeo-id="135605909"><a href="https://vimeo.com/135605909" target="_blank"><img src="http://i.vimeocdn.com/video/5296... | Move comment not to delete. | Move comment not to delete. | Markdown | mit | ello/wtf,ello/wtf,ello/wtf | markdown | ## Code Before:
<!--- DO NOT DELETE. "Help" on iOS links here. --->
---
layout: post
title: "iOS Basics"
date: 2015-12-08 04:23:18 MDT
categories: help
position: 13
---
**Ello: iOS App**
<div class="embetter" data-vimeo-id="135605909"><a href="https://vimeo.com/135605909" target="_blank"><img src="http://i.vimeocd... |
a44f704ef36adfca6b3e1dafde176e080ec31b88 | index.js | index.js | var es = require('event-stream');
var path = require('path');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var header = require('gulp-header');
var footer = require('gulp-footer');
var PluginError = gutil.PluginError;
var htmlJsStr = require('js-string-escape');
function templateCache(root) {... | var es = require('event-stream');
var path = require('path');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var header = require('gulp-header');
var footer = require('gulp-footer');
var PluginError = gutil.PluginError;
var htmlJsStr = require('js-string-escape');
function templateCache(root) {... | Handle \ on Windows, normalize to / | Handle \ on Windows, normalize to /
| JavaScript | mit | sahat/gulp-angular-templatecache,stevemao/gulp-angular-templatecache,RobertoUa/gulp-angular-templatecache,miickel/gulp-angular-templatecache,samouss/gulp-angular-templatecache,Agnitio/gulp-agnitio-templatecache,eanakashima/gulp-angular-templatecache,AOEpeople/gulp-angular-templatecache | javascript | ## Code Before:
var es = require('event-stream');
var path = require('path');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var header = require('gulp-header');
var footer = require('gulp-footer');
var PluginError = gutil.PluginError;
var htmlJsStr = require('js-string-escape');
function templ... |
e790e47e6b87bc2e49e8b74d491eb023c4468254 | src/sentry/web/frontend/csrf_failure.py | src/sentry/web/frontend/csrf_failure.py | from __future__ import absolute_import
from django.middleware.csrf import REASON_NO_REFERER
from sentry.web.frontend.base import BaseView
class CsrfFailureView(BaseView):
auth_required = False
sudo_required = False
def handle(self, request, reason=""):
context = {
'no_referer': reas... | from __future__ import absolute_import
from django.middleware.csrf import REASON_NO_REFERER
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import View
from django.utils.decorators import method_decorator
from sentry.web.helpers import render_to_response
class CsrfFailureView(View):
... | Kill possible recursion on csrf decorator | Kill possible recursion on csrf decorator
| Python | bsd-3-clause | boneyao/sentry,jean/sentry,boneyao/sentry,mvaled/sentry,felixbuenemann/sentry,kevinlondon/sentry,TedaLIEz/sentry,JamesMura/sentry,kevinastone/sentry,korealerts1/sentry,JackDanger/sentry,songyi199111/sentry,songyi199111/sentry,fuziontech/sentry,JamesMura/sentry,BuildingLink/sentry,camilonova/sentry,wujuguang/sentry,argo... | python | ## Code Before:
from __future__ import absolute_import
from django.middleware.csrf import REASON_NO_REFERER
from sentry.web.frontend.base import BaseView
class CsrfFailureView(BaseView):
auth_required = False
sudo_required = False
def handle(self, request, reason=""):
context = {
'n... |
a6969cd661f43e0eb2c34b51b71763fc4dd873f8 | Typographizer.podspec | Typographizer.podspec | Pod::Spec.new do |s|
s.name = "Typographizer"
s.version = "0.1.0"
s.summary = "Smart Quotes for Swift Apps."
s.description = <<-DESC
Typographizer turns those pesky dumb quotes (""/'') and apostrophes (') into their beautiful,
curly, localized counter... | Pod::Spec.new do |s|
s.name = "Typographizer"
s.version = "0.1.0"
s.summary = "Smart Quotes for Swift Apps."
s.description = <<-DESC
Typographizer turns those pesky dumb quotes (""/'') and apostrophes (') into their beautiful,
curly, localized counter... | Fix email address in podspec. | Fix email address in podspec.
| Ruby | mit | frankrausch/Typographizer,frankrausch/Typographizer | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "Typographizer"
s.version = "0.1.0"
s.summary = "Smart Quotes for Swift Apps."
s.description = <<-DESC
Typographizer turns those pesky dumb quotes (""/'') and apostrophes (') into their beautiful,
curly, l... |
6b90744d4fc21245fbe70d6cdfb9328a34700c67 | config/application.rb | config/application.rb | require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited ... | require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited ... | Add repo scope to github | Add repo scope to github
| Ruby | mit | monterail/ghcr-api,monterail/ghcr-api,monterail/ghcr-api | ruby | ## Code Before:
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
# Require the gems listed in Gemfile, including any gems
#... |
c875d9b3a16b447543f1782e4b3561017f4478bc | app/views/layouts/_og_image.haml | app/views/layouts/_og_image.haml | - if asset_exists? "#{@year.year}/og-image.png"
%meta{:property => "og:title", :content => "U.S. Go Congress #{@year.year}"}
%meta{:property => "og:description", :content => "The #{@year.year} U.S. Go Congress will be held in #{@congress_city}, #{@congress_state} from #{@congress_date_range}."}
%meta{:property =>... | - if asset_exists? "logo/usgc/2020.png"
%meta{:property => "og:title", :content => "U.S. Go Congress #{@year.year}"}
%meta{:property => "og:description", :content => "The #{@year.year} U.S. Go Congress will be held in #{@congress_city}, #{@congress_state} from #{@congress_date_range}."}
%meta{:property => "og:ima... | Use 2020 logo for og meta tags | Use 2020 logo for og meta tags
| Haml | mit | usgo/gocongress,usgo/gocongress,usgo/gocongress,usgo/gocongress | haml | ## Code Before:
- if asset_exists? "#{@year.year}/og-image.png"
%meta{:property => "og:title", :content => "U.S. Go Congress #{@year.year}"}
%meta{:property => "og:description", :content => "The #{@year.year} U.S. Go Congress will be held in #{@congress_city}, #{@congress_state} from #{@congress_date_range}."}
%m... |
72285cd3c3cff32ea523a413a312d0fb2dfd568f | hello-css/dummy.html | hello-css/dummy.html | <!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<title>Dummy</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Dummy</h1>
<p>This is a dummy page that helps us demonstrate reusable CSS
stylesheets. <a href='hello-css.html'>Go back</a>.</p>
<p>Wan... | <!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<title>Dummy</title>
<link rel="stylesheet" href="styles.css">
<style>
body {
color: #0000FF; /* Blue */
}
</style>
</head>
<body>
<h1>Dummy</h1>
<p>This is a dummy page that helps us demonstrate re... | Add inline and page specific styles | Add inline and page specific styles
| HTML | mit | mukeshm/html-css-is-hard | html | ## Code Before:
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'/>
<title>Dummy</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Dummy</h1>
<p>This is a dummy page that helps us demonstrate reusable CSS
stylesheets. <a href='hello-css.html'>Go back</a>.... |
85379509bcde687475e8818e40f4e24a9c6bc35e | webdriver/src/com/googlecode/jmeter/plugins/webdriver/sampler/SampleResultWithSubs.java | webdriver/src/com/googlecode/jmeter/plugins/webdriver/sampler/SampleResultWithSubs.java | package com.googlecode.jmeter.plugins.webdriver.sampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
public class SampleResultWithSubs extends SampleResult {
private static final Logger log = LoggingManager.getLoggerForClass();
... | package com.googlecode.jmeter.plugins.webdriver.sampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
public class SampleResultWithSubs extends SampleResult {
private static final Logger log = LoggingManager.getLoggerForClass();
... | Fix warning on double sampleEnd (which is not true) | Fix warning on double sampleEnd (which is not true)
| Java | apache-2.0 | ptrd/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins,Sausageo/jmeter-plugins,Sausageo/jmeter-plugins,ptrd/jmeter-plugins | java | ## Code Before:
package com.googlecode.jmeter.plugins.webdriver.sampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
public class SampleResultWithSubs extends SampleResult {
private static final Logger log = LoggingManager.getLogg... |
f0acd07b3b17b12bd1b8d247d80991fed6c38891 | tools/puppet3/modules/agent/templates/extensions/addons/_php.erb | tools/puppet3/modules/agent/templates/extensions/addons/_php.erb |
chown -R www-data:www-data <%= @stratos_app_path %>
|
chown -R www-data:www-data /var/www
| Fix chown issue for PHP Cartridge | Fix chown issue for PHP Cartridge
| HTML+ERB | apache-2.0 | agentmilindu/stratos,hsbhathiya/stratos,pubudu538/stratos,anuruddhal/stratos,hsbhathiya/stratos,Thanu/stratos,agentmilindu/stratos,apache/stratos,ravihansa3000/stratos,gayangunarathne/stratos,pkdevbox/stratos,pubudu538/stratos,apache/stratos,anuruddhal/stratos,asankasanjaya/stratos,apache/stratos,apache/stratos,gayangu... | html+erb | ## Code Before:
chown -R www-data:www-data <%= @stratos_app_path %>
## Instruction:
Fix chown issue for PHP Cartridge
## Code After:
chown -R www-data:www-data /var/www
|
b64e7a6e3796150b8270382e8d85c9b131743745 | static/web.html | static/web.html | <!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/min/ace.js" char... | <!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/min/ace.js" char... | Improve the layout of the controls. | Improve the layout of the controls.
| HTML | mit | drlagos/unify-playpen,cogumbreiro/scribble-playpen,cogumbreiro/scribble-playpen,cogumbreiro/scribble-playpen,cogumbreiro/sepi-playpen,drlagos/unify-playpen,drlagos/mpisessions-playpen,drlagos/mpisessions-playpen,cogumbreiro/sepi-playpen | html | ## Code Before:
<!doctype html>
<html lang="en">
<head>
<title>Scribble</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Code+Pro:400,700"/>
<link rel="stylesheet" href="web.css"/>
<script src="//cdn.jsdelivr.net/ace/1.1.6/... |
ee12537a18f3f9792f8379454affba5ad13030ad | hardware/main.c | hardware/main.c |
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
delay_ms(1000);
softuart_puts("Starting...\r\n");
// enable the rc switch
rcswitch_enable(PIN_RC);
while (1) {
// if there is some data waiting for us
if (softuart_kbhit()) {
... |
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
// enable the rc switch
rcswitch_enable(PIN_RC);
while (1) {
// if there is some data waiting for us
if (softuart_kbhit()) {
// parse the data
struct Packet packet... | Remove startup delay and messages | Remove startup delay and messages
| C | agpl-3.0 | jackwilsdon/lightcontrol,jackwilsdon/lightcontrol | c | ## Code Before:
int main(void) {
// initialize serial
softuart_init();
// enable interrupts
sei();
delay_ms(1000);
softuart_puts("Starting...\r\n");
// enable the rc switch
rcswitch_enable(PIN_RC);
while (1) {
// if there is some data waiting for us
if (softuar... |
5bde41a567063ba0b17b996e0ef8a1f3e8294eed | src/models/rule.js | src/models/rule.js | 'use strict'
const ElectronConfig = require('electron-config')
const storage = new ElectronConfig()
const Rules = require('./rules')
class Rule {
constructor(key) {
this.key = key
}
exists() {
return storage.has(this.key)
}
retrieve() {
if (this.exists()) {
return storage.get(this.key)
... | 'use strict'
const ElectronConfig = require('electron-config')
const storage = new ElectronConfig()
const Rules = require('./rules')
class Rule {
constructor(key) {
this.key = key
}
exists() {
return storage.has(this.key)
}
retrieve() {
if (this.exists()) {
return storage.get(this.key)
... | Add delete to Rule model | Add delete to Rule model
| JavaScript | mit | cheshire137/gh-notifications-snoozer,cheshire137/gh-notifications-snoozer | javascript | ## Code Before:
'use strict'
const ElectronConfig = require('electron-config')
const storage = new ElectronConfig()
const Rules = require('./rules')
class Rule {
constructor(key) {
this.key = key
}
exists() {
return storage.has(this.key)
}
retrieve() {
if (this.exists()) {
return storage... |
3eab43780b4d1039ec3a1d473651644a6716d6b7 | ArchiSteamFarm/scripts/generic/ArchiSteamFarm.cmd | ArchiSteamFarm/scripts/generic/ArchiSteamFarm.cmd | @echo off
pushd %~dp0
dotnet ArchiSteamFarm.dll %ASF_ARGS%
| @echo off
pushd %~dp0
:loop
IF NOT "%1" == "" (
SET ASF_ARGS=%ASF_ARGS% %1
SHIFT
GOTO :loop
)
dotnet ArchiSteamFarm.dll %ASF_ARGS%
| Add arguments parsing to batch script | Add arguments parsing to batch script
Kill me.
| Batchfile | apache-2.0 | i3at/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,JustArchi/ArchiSteamFarm,i3at/ArchiSteamFarm,KlappPc/ArchiSteamFarm,KlappPc/ArchiSteamFarm,JustArchi/ArchiSteamFarm,KlappPc/ArchiSteamFarm | batchfile | ## Code Before:
@echo off
pushd %~dp0
dotnet ArchiSteamFarm.dll %ASF_ARGS%
## Instruction:
Add arguments parsing to batch script
Kill me.
## Code After:
@echo off
pushd %~dp0
:loop
IF NOT "%1" == "" (
SET ASF_ARGS=%ASF_ARGS% %1
SHIFT
GOTO :loop
)
dotnet ArchiSteamFarm.dll %ASF_ARGS%
|
2bf990b247241b38cbca9f57d0334e56325025f9 | web/app/mu-plugins/base-setup/custom-fields/group_553fe2239983e.json | web/app/mu-plugins/base-setup/custom-fields/group_553fe2239983e.json | {
"key": "group_553fe2239983e",
"title": "Story audio test",
"fields": [
{
"key": "field_553fe1105c9f0",
"label": "Embeded audio",
"name": "story_oembed_audio",
"prefix": "",
"type": "oembed",
"instructions": "",
"re... | {
"key": "group_553fe2239983e",
"title": "Story audio",
"fields": [
{
"key": "field_553fe1105c9f0",
"label": "Embeded audio",
"name": "story_oembed_audio",
"prefix": "",
"type": "oembed",
"instructions": "",
"require... | Rename audio form story field | Rename audio form story field
| JSON | mit | rslnk/reimagine-belonging,rslnk/reimagine-belonging,rslnk/reimagine-belonging | json | ## Code Before:
{
"key": "group_553fe2239983e",
"title": "Story audio test",
"fields": [
{
"key": "field_553fe1105c9f0",
"label": "Embeded audio",
"name": "story_oembed_audio",
"prefix": "",
"type": "oembed",
"instructions": "",... |
739662d5716463c52e46cd63935a1b19d4646133 | src/Slx/UserInterface/Controllers/User/SignOutController.php | src/Slx/UserInterface/Controllers/User/SignOutController.php | <?php
/**
* Created by PhpStorm.
* User: dtome
* Date: 18/02/17
* Time: 18:24
*/
namespace Slx\UserInterface\Controllers\User;
use Silex\Application;
class SignOutController
{
/**
* @var Application
*/
private $application;
/**
* SignOutController constructor.
*
* @param Ap... | <?php
/**
* Created by PhpStorm.
* User: dtome
* Date: 18/02/17
* Time: 18:24
*/
namespace Slx\UserInterface\Controllers\User;
use Silex\Application;
use Slx\Infrastructure\Service\User\AuthenticateUserService;
class SignOutController
{
/**
* @var Application
*/
private $application;
/**
... | Use authentication service to signout | Use authentication service to signout
| PHP | mit | danitome24/silex-ddd-skeleton,danitome24/silex-ddd-skeleton,danitome24/silex-ddd-skeleton | php | ## Code Before:
<?php
/**
* Created by PhpStorm.
* User: dtome
* Date: 18/02/17
* Time: 18:24
*/
namespace Slx\UserInterface\Controllers\User;
use Silex\Application;
class SignOutController
{
/**
* @var Application
*/
private $application;
/**
* SignOutController constructor.
*
... |
0dbc3f39281c135cd100474b7d2ca2368767036f | cmd/pkg/mc/project_suite_test.go | cmd/pkg/mc/project_suite_test.go | package mc
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestMC(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "MC Suite")
}
| package mc
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"os"
"testing"
)
func TestMC(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "MC Suite")
}
var _ = BeforeSuite(func() {
os.RemoveAll(".materialscommons")
os.RemoveAll("/tmp/mcdir")
})
var _ = AfterSuite(func() {
// os.RemoveAl... | Add Before and After Suite calls to clean up items. | Add Before and After Suite calls to clean up items.
| Go | mit | materials-commons/mcstore,materials-commons/mcstore,materials-commons/mcstore | go | ## Code Before:
package mc
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"testing"
)
func TestMC(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "MC Suite")
}
## Instruction:
Add Before and After Suite calls to clean up items.
## Code After:
package mc
import (
. "github.com/onsi/gink... |
e708534021f9c0dafaa5901a1b8e14cce6544e10 | web_client/js/app.js | web_client/js/app.js | histomicstk.App = girder.App.extend({
initialize: function () {
girder.fetchCurrentUser()
.done(_.bind(function (user) {
girder.eventStream = new girder.EventStream({
timeout: girder.sseTimeout || null
});
this.headerView = ne... | histomicstk.App = girder.App.extend({
initialize: function () {
girder.fetchCurrentUser()
.done(_.bind(function (user) {
girder.eventStream = new girder.EventStream({
timeout: girder.sseTimeout || null
});
this.headerView = ne... | Use a router to navigate gui's | Use a router to navigate gui's
| JavaScript | apache-2.0 | DigitalSlideArchive/HistomicsTK,DigitalSlideArchive/HistomicsTK | javascript | ## Code Before:
histomicstk.App = girder.App.extend({
initialize: function () {
girder.fetchCurrentUser()
.done(_.bind(function (user) {
girder.eventStream = new girder.EventStream({
timeout: girder.sseTimeout || null
});
this... |
01fc49c63bd62ec303ce2bfcea89775895d164ba | app/views/virtual_conferences/show.html.erb | app/views/virtual_conferences/show.html.erb | <% content_for :title, "2020 Virtual Confernece" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<div id="module-title">
<div id="module-title-wrapper">
<h1>College STAR Virtual Conference</h1>
<h2>Preparing students who learn differently for col... | <% content_for :title, "2020 Virtual Confernece" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<div id="module-title">
<div id="module-title-wrapper">
<h1>College STAR Virtual Conference</h1>
<h2>Preparing students who learn differently for col... | Add admin links to virtual conference page. | Add admin links to virtual conference page.
| HTML+ERB | mit | CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org | html+erb | ## Code Before:
<% content_for :title, "2020 Virtual Confernece" %>
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<div id="module-title">
<div id="module-title-wrapper">
<h1>College STAR Virtual Conference</h1>
<h2>Preparing students who learn dif... |
483e68faece7336b9268f32fc15d97e1fb99efac | meta-arago-extras/recipes-benchmark/stream/stream_git.bb | meta-arago-extras/recipes-benchmark/stream/stream_git.bb | DESCRIPTION = "Stream Benchmark"
HOMEPAGE = "http://www.cs.virginia.edu/stream/"
LICENSE = "Stream_Benchmark_License"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
SECTION = "system"
PR = "r1"
BRANCH ?= "master"
SRCREV = "bd474633b7b0352211b48d84065bf7b7e166e4c2"
SRC_URI = "git://git.t... | DESCRIPTION = "Stream Benchmark"
HOMEPAGE = "http://www.cs.virginia.edu/stream/"
LICENSE = "Stream_Benchmark_License"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
SECTION = "system"
PR = "r2"
BRANCH ?= "master"
SRCREV = "b66f2bab5d6d0b35732ef8406ae03873725a3306"
SRC_URI = "git://git.t... | Update commit to include building openmp version of stream | stream: Update commit to include building openmp version of stream
Signed-off-by: Franklin S. Cooper Jr <b8c01a1703dc362919183054a071c1f348818c23@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>
| BitBake | mit | rcn-ee/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,MentorEmbedded/meta-arago | bitbake | ## Code Before:
DESCRIPTION = "Stream Benchmark"
HOMEPAGE = "http://www.cs.virginia.edu/stream/"
LICENSE = "Stream_Benchmark_License"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
SECTION = "system"
PR = "r1"
BRANCH ?= "master"
SRCREV = "bd474633b7b0352211b48d84065bf7b7e166e4c2"
SRC_UR... |
761822029623caa01aef9ef2350c4f010aae98ad | .travis.yml | .travis.yml | language: ruby
rvm:
- 2.0.0
- 2.1.1
before_script:
- psql -c 'create database discourse_test;' -U postgres
- export DISCOURSE_HOSTNAME=www.example.com
- export RUBY_GC_MALLOC_LIMIT=50000000
- bundle exec rake db:migrate
bundler_args: --without development
script: 'bundle exec rspec && bundle exec rake plugi... | language: ruby
rvm:
- 2.0.0
- 2.1.1
before_install:
- npm i -g jshint
- jshint .
before_script:
- psql -c 'create database discourse_test;' -U postgres
- export DISCOURSE_HOSTNAME=www.example.com
- export RUBY_GC_MALLOC_LIMIT=50000000
- bundle exec rake db:migrate
bundler_args: --without development
scr... | Add JSHint to Travis validation | Add JSHint to Travis validation
Run before the install as it acts as a fast fail vs the gem install time
| YAML | mit | natefinch/discourse,natefinch/discourse | yaml | ## Code Before:
language: ruby
rvm:
- 2.0.0
- 2.1.1
before_script:
- psql -c 'create database discourse_test;' -U postgres
- export DISCOURSE_HOSTNAME=www.example.com
- export RUBY_GC_MALLOC_LIMIT=50000000
- bundle exec rake db:migrate
bundler_args: --without development
script: 'bundle exec rspec && bundle... |
52bfa45ddc69ded40e259e60d1384e14c4ca22b8 | app/assets/javascripts/backbone/views/project_view.js.coffee | app/assets/javascripts/backbone/views/project_view.js.coffee | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.ProjectView extends Backbone.View
tagName: "li"
className: "project"
initialize: (options) ->
@subviews = []
@subviews.push(new ProjectMonitor.Views.BuildView(model: @model.get("build"))) if @model.get("build")
@subviews.push(new ProjectMonitor.... | ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.ProjectView extends Backbone.View
tagName: "li"
className: "project"
initialize: (options) ->
@subviews = []
@subviews.push(new ProjectMonitor.Views.BuildView(model: @model.get("build"))) if @model.get("build")
@subviews.push(new ProjectMonitor.... | Append ProjectView subviews in 1 operation | Append ProjectView subviews in 1 operation
| CoffeeScript | mit | BuildingSync/projectmonitor,pivotal/projectmonitor,BuildingSync/projectmonitor,BuildingSync/projectmonitor,remind101/projectmonitor,dgodd/projectmonitor,mabounassif/projectmonitor-docker,mabounassif/projectmonitor-docker,pivotal/projectmonitor,remind101/projectmonitor,dgodd/projectmonitor,BuildingSync/projectmonitor,ge... | coffeescript | ## Code Before:
ProjectMonitor.Views ||= {}
class ProjectMonitor.Views.ProjectView extends Backbone.View
tagName: "li"
className: "project"
initialize: (options) ->
@subviews = []
@subviews.push(new ProjectMonitor.Views.BuildView(model: @model.get("build"))) if @model.get("build")
@subviews.push(new... |
c18ca39b13b967687dfc36e9fd9d074e8bd96394 | src/main/webapp/emails-hidden/invoice-payment-succeeded-email.html | src/main/webapp/emails-hidden/invoice-payment-succeeded-email.html | <html>
<body>
<p>
Hello friend,
</p>
<p>
We're just writing to let you know that your monthly amount of
<span class="bill-amount">$5.00</span> has been successfully charged to your credit
card for your Anchor Tab subscription.
</p>
<p>
Let us know if you need any as... | <html>
<body>
<p>
Hello friend,
</p>
<p>
Just writing to let you know that we've charged <b class="invoice-total">$5.00</b> to your
card on <b class="invoice-date">2014-01-01</b>. Below is a summary of the charges.
</p>
<table class="invoice-items" style="width: 100%">
<t... | Update invoice payment suceeded email. | Update invoice payment suceeded email.
| HTML | apache-2.0 | farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab,farmdawgnation/anchortab | html | ## Code Before:
<html>
<body>
<p>
Hello friend,
</p>
<p>
We're just writing to let you know that your monthly amount of
<span class="bill-amount">$5.00</span> has been successfully charged to your credit
card for your Anchor Tab subscription.
</p>
<p>
Let us know if... |
784f7bbb670cd15234bf391a3e5823cd54ba48c3 | .github/workflows/needs-more-info-closer.yml | .github/workflows/needs-more-info-closer.yml | name: Needs More Info Closer
on:
schedule:
- cron: 20 11 * * * # 4:20am Redmond
repository_dispatch:
types: [trigger-needs-more-info]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'microsoft/vscode-gi... | name: Needs More Info Closer
on:
schedule:
- cron: 20 11 * * * # 4:20am Redmond
repository_dispatch:
types: [trigger-needs-more-info]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'microsoft/vscode-gi... | Add token to needs more info closer | Add token to needs more info closer
| YAML | mit | Microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,Microsoft/vscode,eamodio/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,m... | yaml | ## Code Before:
name: Needs More Info Closer
on:
schedule:
- cron: 20 11 * * * # 4:20am Redmond
repository_dispatch:
types: [trigger-needs-more-info]
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions
uses: actions/checkout@v2
with:
repository: 'mic... |
599083bbd556800fd3c4bc58cef8a4b37c9a2c02 | test/claw/abstraction2/mo_column.f90 | test/claw/abstraction2/mo_column.f90 | MODULE mo_column
IMPLICIT NONE
CONTAINS
! Compute only one column
SUBROUTINE compute_column(nz, q, t)
IMPLICIT NONE
INTEGER, INTENT(IN) :: nz ! Size of the array field
REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only
REAL, INTENT(INOUT) :: q(:) ! Field declared as one colum... | MODULE mo_column
IMPLICIT NONE
CONTAINS
! Compute only one column
SUBROUTINE compute_column(nz, q, t)
IMPLICIT NONE
INTEGER, INTENT(IN) :: nz ! Size of the array field
REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only
REAL, INTENT(INOUT) :: q(:) ! Field declared as one colum... | Remove the optional data/over clauses | Remove the optional data/over clauses
| FORTRAN | bsd-2-clause | clementval/claw-compiler,clementval/claw-compiler | fortran | ## Code Before:
MODULE mo_column
IMPLICIT NONE
CONTAINS
! Compute only one column
SUBROUTINE compute_column(nz, q, t)
IMPLICIT NONE
INTEGER, INTENT(IN) :: nz ! Size of the array field
REAL, INTENT(INOUT) :: t(:) ! Field declared as one column only
REAL, INTENT(INOUT) :: q(:) ! Field decla... |
aa1ad72852ec4297b4cb0aaa853d27fb1d46f21c | _prose.yml | _prose.yml | prose:
rooturl: 'source/blog'
ignore: '.keep'
media: 'source/blog/images'
metadata:
source/blog:
- name: 'layout'
field:
element: 'hidden'
value: 'blog'
- name: 'title'
field:
element: 'text'
label: 'title'
- name: 'date'
fi... | prose:
rooturl: 'source/blog'
ignore: '.keep'
media: 'source/blog/images'
metadata:
source/blog:
- name: 'layout'
field:
element: 'hidden'
value: 'blog'
- name: 'title'
field:
element: 'text'
label: 'title'
- name: 'date'
fi... | Add author text field to prose config | Add author text field to prose config
| YAML | mit | unboxed/unboxed.co,unboxed/ubxd_web_refresh,unboxed/unboxed.co,unboxed/ubxd_web_refresh,unboxed/unboxed.co,unboxed/ubxd_web_refresh | yaml | ## Code Before:
prose:
rooturl: 'source/blog'
ignore: '.keep'
media: 'source/blog/images'
metadata:
source/blog:
- name: 'layout'
field:
element: 'hidden'
value: 'blog'
- name: 'title'
field:
element: 'text'
label: 'title'
- name: '... |
cfa81e420266ebd1946e8f4cbf47e641e853da6b | docs/source/_static/css/blockquote_custom1.css | docs/source/_static/css/blockquote_custom1.css | blockquote {
border-left-width: 0px;
color: #000000;
padding: 0px;
margin: 0 0 0px 35px;
font-size: 15px;
border-left: 0px solid #dddddd;
}
| blockquote {
border-left-width: 0px;
color: #000000;
padding: 0px;
margin: 0 0 0px 35px;
font-size: 15px;
border-left: 0px solid #dddddd;
}
/* Override citation removing the left column for the BibTeX references*/
table.citation {
margin-left: 1px;
border-left: solid 1px white;
bor... | Fix bibtex references issues, css stylesheets | Fix bibtex references issues, css stylesheets
| CSS | mit | luisbarrancos/appleseed,est77/appleseed,est77/appleseed,appleseedhq/appleseed,Vertexwahn/appleseed,est77/appleseed,pjessesco/appleseed,appleseedhq/appleseed,Biart95/appleseed,aytekaman/appleseed,Vertexwahn/appleseed,dictoon/appleseed,dictoon/appleseed,dictoon/appleseed,luisbarrancos/appleseed,luisbarrancos/appleseed,pj... | css | ## Code Before:
blockquote {
border-left-width: 0px;
color: #000000;
padding: 0px;
margin: 0 0 0px 35px;
font-size: 15px;
border-left: 0px solid #dddddd;
}
## Instruction:
Fix bibtex references issues, css stylesheets
## Code After:
blockquote {
border-left-width: 0px;
color: #000000;... |
2f4050063dd7625c9d37ed80690bf91a12ee9158 | .github/bin/verify-kythe-extraction.sh | .github/bin/verify-kythe-extraction.sh |
set -e
# Verify that Verilog Kythe indexer produces the expected Kythe indexing facts.
# Note: verifier tool path assumes it came with the release pre-built.
KYTHE_DIRNAME="kythe-${KYTHE_VERSION}"
KYTHE_DIR_ABS="$(readlink -f "kythe-bin/${KYTHE_DIRNAME}")"
bazel test --test_arg="$KYTHE_DIR_ABS/tools/verifier" verilog... |
set -e
# Verify that Verilog Kythe indexer produces the expected Kythe indexing facts.
# Note: verifier tool path assumes it came with the release pre-built.
KYTHE_DIRNAME="kythe-${KYTHE_VERSION}"
KYTHE_DIR_ABS="$(readlink -f "kythe-bin/${KYTHE_DIRNAME}")"
bazel test --test_output=errors --test_arg="$KYTHE_DIR_ABS/to... | Make it simple to see the logs in case kythe verification test fails. | Make it simple to see the logs in case kythe verification test fails.
Signed-off-by: Henner Zeller <e393654266408b751fd8ad27b99ca78813d38e23@google.com>
| Shell | apache-2.0 | chipsalliance/verible,chipsalliance/verible,chipsalliance/verible,chipsalliance/verible,chipsalliance/verible | shell | ## Code Before:
set -e
# Verify that Verilog Kythe indexer produces the expected Kythe indexing facts.
# Note: verifier tool path assumes it came with the release pre-built.
KYTHE_DIRNAME="kythe-${KYTHE_VERSION}"
KYTHE_DIR_ABS="$(readlink -f "kythe-bin/${KYTHE_DIRNAME}")"
bazel test --test_arg="$KYTHE_DIR_ABS/tools/v... |
c83c0727656aaaac260b792cb537e3543e1f0f4b | app/templates/dashboard/group-manager/index.hbs | app/templates/dashboard/group-manager/index.hbs | <section>
{{bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true}}
</section>
<section>
<div class='table-responsive'>
<table class='table'>
<caption>Your Groups</caption>
<thead>
<tr>
<th>Name</th>
<th>Kind</th>
<th>Status</th>
</tr>
</... | <section>
{{bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true}}
</section>
<section>
<div class='table-responsive'>
<table class='table'>
<caption>Your Groups</caption>
<thead>
<tr>
<th>Name</th>
<th>Kind</th>
<th>Status</th>
</tr>
</... | Remove grid from group manager note | Remove grid from group manager note
| Handlebars | bsd-2-clause | barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web | handlebars | ## Code Before:
<section>
{{bread-crumbs tagName="ol" outputStyle="bootstrap" linkable=true}}
</section>
<section>
<div class='table-responsive'>
<table class='table'>
<caption>Your Groups</caption>
<thead>
<tr>
<th>Name</th>
<th>Kind</th>
<th>Status</th>
... |
cbaac2e620c6892f4472625fb52ba3d19f807c6c | README.md | README.md |
This is the source of my personal blog, [weien.io](https://weien.io), and is
where I keep my articles as well as the code of my static site generator, which
is based upon [Hakyll](https://jaspervdj.be/hakyll/).
# Installation
To build the source, you need [Stack](https://www.haskellstack.org/). The whole
source is i... |
This is the source of my personal blog, [weien.io](https://weien.io), and is
where I keep my articles as well as the code of my static site generator, which
is based upon [Hakyll](https://jaspervdj.be/hakyll/).
# Installation
To build the source, you need [Stack](https://www.haskellstack.org/). The whole
source is i... | Add part on building .sass files | [ci-skip] Add part on building .sass files | Markdown | mit | wei2912/blog_src,wei2912/blog_src | markdown | ## Code Before:
This is the source of my personal blog, [weien.io](https://weien.io), and is
where I keep my articles as well as the code of my static site generator, which
is based upon [Hakyll](https://jaspervdj.be/hakyll/).
# Installation
To build the source, you need [Stack](https://www.haskellstack.org/). The w... |
a2f0f4d15be426a3be9f0d9148e4b2303a221c24 | lib/tasks/ckeditor.rake | lib/tasks/ckeditor.rake | namespace :ckeditor do
def copy_assets(regexp)
Rails.application.assets.each_logical_path(regexp) do |name, path|
asset = Rails.root.join('public', 'assets', name)
p "Copy #{path} to #{asset}"
FileUtils.mkdir_p File.dirname(asset)
FileUtils.cp path, asset
end
end
desc 'Copy ckedit... | namespace :ckeditor do
def copy_assets(regexp)
Rails.application.assets.each_logical_path(regexp) do |name, path|
asset = Rails.root.join('public', 'assets', name)
p "Copy #{path} to #{asset}"
FileUtils.mkdir_p File.dirname(asset)
FileUtils.cp path, asset
end
end
desc 'Copy ckedit... | Add plugins to asset copying | Add plugins to asset copying
| Ruby | mit | devcon-ph/devcon,devcon-ph/devcon,devcon-ph/devcon | ruby | ## Code Before:
namespace :ckeditor do
def copy_assets(regexp)
Rails.application.assets.each_logical_path(regexp) do |name, path|
asset = Rails.root.join('public', 'assets', name)
p "Copy #{path} to #{asset}"
FileUtils.mkdir_p File.dirname(asset)
FileUtils.cp path, asset
end
end
d... |
7b6327278a6283da046367163973faa7219f1c11 | README.md | README.md |
JokeBot is a github bot, on AWS Lambda, that sends you jokes on demand.
Want to give it a go? Just mention @jokebot on any comment or PR, and you should get a reply within a minute or so.
|
JokeBot is a github bot, on AWS Lambda, that sends you jokes on demand.
Want to give it a go? Just mention @jokebot on any comment or PR, and you should get a reply within a minute or so. Feel free to open or reply to issues on this PR to test it.
| Add testing note to readme | Add testing note to readme | Markdown | mit | jokebot/jokebot | markdown | ## Code Before:
JokeBot is a github bot, on AWS Lambda, that sends you jokes on demand.
Want to give it a go? Just mention @jokebot on any comment or PR, and you should get a reply within a minute or so.
## Instruction:
Add testing note to readme
## Code After:
JokeBot is a github bot, on AWS Lambda, that sends you... |
220e3bb00f56fd8758a6eb93d914cec0a8db4076 | lib/twitter_grapher/neo4j/utils.ex | lib/twitter_grapher/neo4j/utils.ex | defmodule Neo4j.Utils do
end
| defmodule Neo4j.Utils do
def exists(key: key, value: value) do
conn = Bolt.Sips.conn
query = "MATCH (n { #{key}: '#{value}' }) RETURN n"
result = Bolt.Sips.query!(conn, query)
length(result) != 0
end
end
| Add func to check if a node exists | Add func to check if a node exists
| Elixir | mit | obahareth/twitter-relations-grapher,obahareth/twitter-relations-grapher | elixir | ## Code Before:
defmodule Neo4j.Utils do
end
## Instruction:
Add func to check if a node exists
## Code After:
defmodule Neo4j.Utils do
def exists(key: key, value: value) do
conn = Bolt.Sips.conn
query = "MATCH (n { #{key}: '#{value}' }) RETURN n"
result = Bolt.Sips.query!(conn, query)
length(result... |
47d90fe462e7d45faa67b1b16e712ecb4a694086 | graphic_templates/slopegraph/css/graphic.less | graphic_templates/slopegraph/css/graphic.less | @import "base";
.axis {
font-weight: bold;
font-size: 12px;
text {
dominant-baseline: hanging;
}
}
.value text {
dominant-baseline: central;
}
.start text {
text-anchor: end;
}
.lines line {
stroke-linecap: round;
stroke-width: 3px;
stroke: #ddd;
shape-rendering: au... | @import "base";
.axis {
font-weight: bold;
font-size: 12px;
text {
dominant-baseline: hanging;
}
}
.value text {
}
.start text {
text-anchor: end;
}
.lines line {
stroke-linecap: round;
stroke-width: 3px;
stroke: #ddd;
shape-rendering: auto;
}
.label {
font-size: 1... | Remove dominant-baseline style because it isn't supported by IE | Remove dominant-baseline style because it isn't supported by IE
| Less | mit | abcnews/dailygraphics,louisstow/dailygraphics,abcnews/dailygraphics,louisstow/dailygraphics,abcnews/dailygraphics,louisstow/dailygraphics,abcnews/dailygraphics | less | ## Code Before:
@import "base";
.axis {
font-weight: bold;
font-size: 12px;
text {
dominant-baseline: hanging;
}
}
.value text {
dominant-baseline: central;
}
.start text {
text-anchor: end;
}
.lines line {
stroke-linecap: round;
stroke-width: 3px;
stroke: #ddd;
sha... |
9f89e1948c1d8cd2cd7998d477865ede5b29eb92 | metadata/unisiegen.photographers.activity.txt | metadata/unisiegen.photographers.activity.txt | Categories:Office,Multimedia
License:Apache2
Web Site:https://bitbucket.org/sdraxler/photographers-notebook
Source Code:https://bitbucket.org/sdraxler/photographers-notebook/src
Issue Tracker:https://bitbucket.org/sdraxler/photographers-notebook/issues
Name:Photographer's Notebook
Auto Name:Photographer's
Summary:Mana... | Categories:Office,Multimedia
License:Apache2
Web Site:https://bitbucket.org/sdraxler/photographers-notebook
Source Code:https://bitbucket.org/sdraxler/photographers-notebook/src
Issue Tracker:https://bitbucket.org/sdraxler/photographers-notebook/issues
Name:Photographer's Notebook
Auto Name:Photographer's
Summary:Mana... | Update Photographer's Notebook to v5.2 (7) | Update Photographer's Notebook to v5.2 (7)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata | text | ## Code Before:
Categories:Office,Multimedia
License:Apache2
Web Site:https://bitbucket.org/sdraxler/photographers-notebook
Source Code:https://bitbucket.org/sdraxler/photographers-notebook/src
Issue Tracker:https://bitbucket.org/sdraxler/photographers-notebook/issues
Name:Photographer's Notebook
Auto Name:Photographe... |
a1e9341eefc39553bead5342c5f02ce63d2e2a81 | addons/bestja_organization_hierarchy/menu.xml | addons/bestja_organization_hierarchy/menu.xml | <openerp>
<data>
<!--
Show the organization moderation menu item to coordinators
-->
<record id="bestja_organization.menu_accept_organization" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('coordinators_level1')])]"/>
</record>
</data>
</opene... | <openerp>
<data>
<!--
Show the organization moderation menu item to coordinators
-->
<record id="bestja_organization.menu_accept_organization" model="ir.ui.menu">
<field name="groups_id" eval="[(4, ref('bestja_organization.coordinators'))]"/>
</record>
</data>... | Revert "Enable organization moderation for coordinators from the middle level only" | Revert "Enable organization moderation for coordinators from the middle level only"
This reverts commit c23c6ea85021506c85d7c3ad036438cd038afbc0.
The reason is that it breaks Runbot build.
| XML | agpl-3.0 | ludwiktrammer/bestja,KamilWo/bestja,KrzysiekJ/bestja,KrzysiekJ/bestja,EE/bestja,EE/bestja,KamilWo/bestja,KrzysiekJ/bestja,ludwiktrammer/bestja,KamilWo/bestja,ludwiktrammer/bestja,EE/bestja | xml | ## Code Before:
<openerp>
<data>
<!--
Show the organization moderation menu item to coordinators
-->
<record id="bestja_organization.menu_accept_organization" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('coordinators_level1')])]"/>
</record>
... |
828946ae9b14149ed8a6ef73b7db19928cdea741 | package.json | package.json | {
"name": "typical.js",
"version": "0.4.2",
"description": "Bootstrap typical directory structures with a single command",
"main": "index.js",
"scripts": {
"test": "mocha test"
},
"bin": {
"typical": "index.js",
"typical-init": "init.js"
},
"preferGlobal": true,
"author": "Tormod Hauglan... | {
"name": "typical.js",
"version": "0.4.2",
"description": "Bootstrap typical directory structures with a single command",
"main": "index.js",
"scripts": {
"test": "mocha test"
},
"bin": {
"typical": "index.js",
"typical-init": "init.js"
},
"preferGlobal": true,
"author": "Tormod Hauglan... | Add "color" dependency for color printing in terminal | Add "color" dependency for color printing in terminal
| JSON | mit | tOgg1/typical | json | ## Code Before:
{
"name": "typical.js",
"version": "0.4.2",
"description": "Bootstrap typical directory structures with a single command",
"main": "index.js",
"scripts": {
"test": "mocha test"
},
"bin": {
"typical": "index.js",
"typical-init": "init.js"
},
"preferGlobal": true,
"author":... |
8b1a48df466dc152e832c34d93bd66c9190b037e | app.js | app.js | "use strict";
var express = require("express");
var I18n = require("i18n-2");
var config = require("./config");
require("express-mongoose");
var app = express();
app.disable("x-powered-by");
app.configure(function () {
app.set("port", process.env.PORT || 3000);
app.set("views", __dirname + "/views");
... | "use strict";
var express = require("express");
var I18n = require("i18n-2");
var config = require("./config");
require("express-mongoose");
var app = express();
app.disable("x-powered-by");
app.configure(function () {
app.set("port", process.env.PORT || 3000);
app.set("views", __dirname + "/views");
... | Revert "Attempt to fix file upload issue" | Revert "Attempt to fix file upload issue"
This reverts commit 88b247bdf20748cb2419331461b0208a1c73a2d5.
| JavaScript | mit | neekolas/uhuru-wiki,neekolas/uhuru-wiki | javascript | ## Code Before:
"use strict";
var express = require("express");
var I18n = require("i18n-2");
var config = require("./config");
require("express-mongoose");
var app = express();
app.disable("x-powered-by");
app.configure(function () {
app.set("port", process.env.PORT || 3000);
app.set("views", __dirnam... |
a71c6c03b02a15674fac0995d120f5c2180e8767 | plugin/floo/sublime.py | plugin/floo/sublime.py | from collections import defaultdict
import time
TIMEOUTS = defaultdict(list)
def windows(*args, **kwargs):
return []
def set_timeout(func, timeout, *args, **kwargs):
then = time.time() + timeout
TIMEOUTS[then].append(lambda: func(*args, **kwargs))
def call_timeouts():
now = time.time()
to_re... | from collections import defaultdict
import time
TIMEOUTS = defaultdict(list)
def windows(*args, **kwargs):
return []
def set_timeout(func, timeout, *args, **kwargs):
then = time.time() + (timeout / 1000.0)
TIMEOUTS[then].append(lambda: func(*args, **kwargs))
def call_timeouts():
now = time.time(... | Fix off by 1000 error | Fix off by 1000 error
| Python | apache-2.0 | Floobits/floobits-neovim,Floobits/floobits-neovim-old,Floobits/floobits-vim | python | ## Code Before:
from collections import defaultdict
import time
TIMEOUTS = defaultdict(list)
def windows(*args, **kwargs):
return []
def set_timeout(func, timeout, *args, **kwargs):
then = time.time() + timeout
TIMEOUTS[then].append(lambda: func(*args, **kwargs))
def call_timeouts():
now = time.... |
048ec6f512984b5bab11062464d6b04fd5b94b74 | install_dependencies.osx.sh | install_dependencies.osx.sh |
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump openssl@1.1 gpgme swig
|
brew unlink python@3.9 && brew link --overwrite python@3.9
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump openssl@1.1 gpgme swig
| Work around an issue with GitHub macOS runners | Work around an issue with GitHub macOS runners
| Shell | bsd-3-clause | SecurityInnovation/PGPy,SecurityInnovation/PGPy,SecurityInnovation/PGPy | shell | ## Code Before:
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump openssl@1.1 gpgme swig
## Instruction:
Work around an issue with GitHub macOS runners
## Code After:
brew unlink python@3.9 && brew link --overwrite python@3.9
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump openssl@1.1 gpgm... |
6248f65e2b6737254967cc80aa66dc1a8baab301 | README.rst | README.rst |
Yet another simulator framework for Python!
Install using this source repository, or with `pip`:
```shell
pip install pagoda
```
You'll also need a patched version of the Open Dynamics Engine. To install,
follow the instructions in the
[`ode/README.md`](https://github.com/EmbodiedCognition/py-sim/tree/master/ode)
f... | ======
PAGODA
======
A physics simulator + OpenGL tool for Python!
Install with ``pip``::
pip install pagoda
or by cloning this repository::
git clone https://github.com/EmbodiedCognition/pagoda
cd pagoda
python setup.py develop
To run ``pagoda`` you'll need a patched version of the Open Dynamics ... | Update RST file to RST syntax. | Update RST file to RST syntax.
| reStructuredText | mit | EmbodiedCognition/pagoda,EmbodiedCognition/pagoda | restructuredtext | ## Code Before:
Yet another simulator framework for Python!
Install using this source repository, or with `pip`:
```shell
pip install pagoda
```
You'll also need a patched version of the Open Dynamics Engine. To install,
follow the instructions in the
[`ode/README.md`](https://github.com/EmbodiedCognition/py-sim/tr... |
3afba16cf04c99f0bade08d0b83783c182d4452f | t/compile.t | t/compile.t |
use strict;
use warnings;
use Test::More tests => 1;
{
# TEST
ok (!system($^X, "-c", "solitaire.pl"),
"solitaire.pl compiles.");
}
|
use strict;
use warnings;
use Test::More tests => 1;
{
# TEST
ok (!system($^X, "-c", "Games/Impatience.pm"),
"solitaire.pl compiles.");
}
| Stop popping up the window in the test. | Stop popping up the window in the test.
Fixed the tests as t/compile.t caused them to fail.
| Perl | artistic-2.0 | shlomif/Games-Impatience | perl | ## Code Before:
use strict;
use warnings;
use Test::More tests => 1;
{
# TEST
ok (!system($^X, "-c", "solitaire.pl"),
"solitaire.pl compiles.");
}
## Instruction:
Stop popping up the window in the test.
Fixed the tests as t/compile.t caused them to fail.
## Code After:
use strict;
use warnings;
... |
47c4aae9870ea7d9a562dcb3e2407a50a4ee8e9a | src/main/styles/maps.styl | src/main/styles/maps.styl | // Stylesheet for maps integration.
.angular-google-map-container
height 500px
| // Stylesheet for maps integration.
// By default there is no height on the map container
.angular-google-map-container
height 400px
// Map search box, styles similar to Google Maps itself
input.map-search-box {
font-size 15px
line-height 20px
font-weight 300
width 300px
margin 0 !important
... | Add styles for map search box. | Add styles for map search box.
| Stylus | apache-2.0 | caprica/bootlace,caprica/bootlace,caprica/bootlace | stylus | ## Code Before:
// Stylesheet for maps integration.
.angular-google-map-container
height 500px
## Instruction:
Add styles for map search box.
## Code After:
// Stylesheet for maps integration.
// By default there is no height on the map container
.angular-google-map-container
height 400px
// Map search box... |
5a130ac8dcc2e1a7cd5d12ff84e67d6f664be70a | groups/sig-cluster-lifecycle/groups.yaml | groups/sig-cluster-lifecycle/groups.yaml | groups:
- email-id: sig-cluster-lifecycle-cluster-api-alerts@kubernetes.io
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
owners:
- detiber@gmail.com
- jdetiberus@equinix.com
- jeewan... | groups:
- email-id: sig-cluster-lifecycle-cluster-api-alerts@kubernetes.io
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- naadir@randomvariable.co.uk
- detiber@gmail.com
- ... | Reduce permissions on sig-cluster-lifecycle-cluster-api-alerts@kubernetes.io to member only. | Reduce permissions on sig-cluster-lifecycle-cluster-api-alerts@kubernetes.io
to member only.
Owner membership not needed.
Signed-off-by: Naadir Jeewa <0e8e8a13444bab63f21ab28b6de29dbabfba246f@vmware.com>
| YAML | apache-2.0 | kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io | yaml | ## Code Before:
groups:
- email-id: sig-cluster-lifecycle-cluster-api-alerts@kubernetes.io
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
owners:
- detiber@gmail.com
- jdetiberus@equinix.co... |
49ca743c799fef5961c61bc7f6bb7d9b5e729fce | mkdocs.yml | mkdocs.yml | site_name: Boundary API CLI
theme: readthedocs
pages:
- [index.md, Home]
- ['reference/install.md','Getting Started','Install']
- ['reference/configuration.md','Getting Started','Configuring']
- ['reference/examples.md','Using','Examples']
- ['reference/actions.md','Reference','Actions']
- ['reference/alarms.md','Refer... | site_name: Boundary API CLI
theme: readthedocs
pages:
- [index.md, Home]
- ['reference/install.md','Getting Started','Install']
- ['reference/configuration.md','Getting Started','Configuring']
- ['reference/examples.md','Using','Examples']
- ['reference/actions.md','Reference','Actions']
- ['reference/alarms.md','Refer... | Add sources documentation to table of contents | Add sources documentation to table of contents
| YAML | apache-2.0 | jdgwartney/pulse-api-cli,boundary/boundary-api-cli,boundary/pulse-api-cli,boundary/pulse-api-cli,wcainboundary/boundary-api-cli,wcainboundary/boundary-api-cli,jdgwartney/pulse-api-cli,jdgwartney/boundary-api-cli,jdgwartney/boundary-api-cli,boundary/boundary-api-cli | yaml | ## Code Before:
site_name: Boundary API CLI
theme: readthedocs
pages:
- [index.md, Home]
- ['reference/install.md','Getting Started','Install']
- ['reference/configuration.md','Getting Started','Configuring']
- ['reference/examples.md','Using','Examples']
- ['reference/actions.md','Reference','Actions']
- ['reference/a... |
0b3fd30570462e07921961898657c7bbfd43ef2b | packages/app/source/client/components/login-form/login-form.js | packages/app/source/client/components/login-form/login-form.js | Space.flux.BlazeComponent.extend(Donations, 'OrgLoginForm', {
dependencies: {
loginStore: 'Space.accountsUi.LoginStore'
},
state() {
return this.loginStore;
},
events() {
return [{
'click .submit': this._onSubmit
}];
},
_onSubmit(event) {
event.preventDefault();
this.publ... | Space.flux.BlazeComponent.extend(Donations, 'OrgLoginForm', {
ENTER: 13,
dependencies: {
loginStore: 'Space.accountsUi.LoginStore'
},
state() {
return this.loginStore;
},
events() {
return [{
'keyup input': this._onKeyup,
'click .submit': this._onSubmit
}];
},
_onKeyup(e... | Add enter keymap to login | Add enter keymap to login
| JavaScript | mit | meteor-space/donations,meteor-space/donations,meteor-space/donations | javascript | ## Code Before:
Space.flux.BlazeComponent.extend(Donations, 'OrgLoginForm', {
dependencies: {
loginStore: 'Space.accountsUi.LoginStore'
},
state() {
return this.loginStore;
},
events() {
return [{
'click .submit': this._onSubmit
}];
},
_onSubmit(event) {
event.preventDefault(... |
e439d8385e8421bd9570fc9d47b41a8b9ee2f8d2 | test/cases/bind_parameter_test_sqlserver.rb | test/cases/bind_parameter_test_sqlserver.rb | require 'cases/sqlserver_helper'
require 'models/topic'
require 'models_sqlserver/topic'
class BindParameterTestSqlServer < ActiveRecord::TestCase
COERCED_TESTS = [
:test_binds_are_logged,
:test_binds_are_logged_after_type_cast
]
include SqlserverCoercedTest
fixtures :topics
class LogListener
... | require 'cases/sqlserver_helper'
require 'models/topic'
require 'models_sqlserver/topic'
require 'cases/bind_parameter_test'
# We don't coerce here because these tests are located inside of an if block
# and don't seem to be able to be properly overriden with the coerce
# functionality
module ActiveRecord
class Bind... | Fix how we are checking bind tests, can't use coerce since the test methods are defined in an if block | Fix how we are checking bind tests, can't use coerce since the test methods are defined in an if block
| Ruby | mit | pavels/activerecord-sqlserver-adapter,jahanzaibbahadur/activerecord-sqlserver-adapter,theangryangel/activerecord-sqlserver-adapter,TLmaK0/activerecord-sqlserver-adapter,NCSAAthleticRecruiting/activerecord-sqlserver-adapter,rails-sqlserver/activerecord-sqlserver-adapter,jcyang75/activerecord-sqlserver-adapter,rhryniow/a... | ruby | ## Code Before:
require 'cases/sqlserver_helper'
require 'models/topic'
require 'models_sqlserver/topic'
class BindParameterTestSqlServer < ActiveRecord::TestCase
COERCED_TESTS = [
:test_binds_are_logged,
:test_binds_are_logged_after_type_cast
]
include SqlserverCoercedTest
fixtures :topics
class... |
e2977bda9a037a04de4ba47546ebc699c306addb | .travis.yml | .travis.yml | sudo: false
language: c
compiler:
- clang
- gcc
os:
- linux
- osx
script:
- ./configure && make && make runtest
| sudo: false
language: c
compiler:
- clang
- gcc
os:
- linux
- osx
script:
- ./configure && make && make runtest
- ./configure --enable-openssl && make && make runtest
| Add test coverage for OpenSSL mode | Add test coverage for OpenSSL mode
| YAML | bsd-3-clause | persmule/libsrtp,yarrcc/libsrtp-ios,persmule/libsrtp,persmule/libsrtp,yarrcc/libsrtp-ios,yarrcc/libsrtp-ios | yaml | ## Code Before:
sudo: false
language: c
compiler:
- clang
- gcc
os:
- linux
- osx
script:
- ./configure && make && make runtest
## Instruction:
Add test coverage for OpenSSL mode
## Code After:
sudo: false
language: c
compiler:
- clang
- gcc
os:
- linux
- osx
script:
- ./configure && make && make ... |
fb55b5802bfd062984c44a67966015836a0d1741 | lib/guard/spinoff/runner.rb | lib/guard/spinoff/runner.rb | require 'thread'
require 'guard'
require 'guard/guard'
require 'spinoff/client'
require 'spinoff/server'
module Guard
class Spinoff < Guard
class Runner
attr_reader :options
def initialize(options = {})
Thread.abort_on_exception = true
@options = options
@config = init_config... | require 'thread'
require 'guard'
require 'guard/guard'
require 'spinoff/client'
require 'spinoff/server'
module Guard
class Spinoff < Guard
class Runner
attr_reader :options
def initialize(options = {})
Thread.abort_on_exception = true
@options = options
@config = init_config... | Add :test_paths option to set the default path to the tests. | Add :test_paths option to set the default path to the tests.
| Ruby | mit | bernd/guard-spinoff | ruby | ## Code Before:
require 'thread'
require 'guard'
require 'guard/guard'
require 'spinoff/client'
require 'spinoff/server'
module Guard
class Spinoff < Guard
class Runner
attr_reader :options
def initialize(options = {})
Thread.abort_on_exception = true
@options = options
@conf... |
f1ba5ae49e2de0a92385202c5de3e0b9f391424e | .travis.yml | .travis.yml | sudo: false
dist: trusty
language: python
python:
- "2.7"
notifications:
email: false
cache: pip
services:
- mongodb
before_install:
# Install SCSS
- gem install sass
- pip install -U pytest flake8 pytest-cov
install:
- pip install -e .
before_script:
- mongod --version
- pip freeze
- sass --ve... | sudo: false
dist: trusty
language: python
matrix:
include:
- python: "2.7"
env: COVERAGE=TRUE
- python: "pypy"
- python: "3.5"
allow_failures:
- python: "pypy"
- python: "3.5"
notifications:
email: false
cache: pip
services:
- mongodb
before_install:
# Install SCSS
- gem insta... | Test against Python 3.5 and PyPy | Test against Python 3.5 and PyPy
| YAML | mit | danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum,danrschlosser/eventum | yaml | ## Code Before:
sudo: false
dist: trusty
language: python
python:
- "2.7"
notifications:
email: false
cache: pip
services:
- mongodb
before_install:
# Install SCSS
- gem install sass
- pip install -U pytest flake8 pytest-cov
install:
- pip install -e .
before_script:
- mongod --version
- pip free... |
66a3545b3b688ccc75d2803d19131f440a4723ca | scripts/travis/install-caffe.sh | scripts/travis/install-caffe.sh |
set -e
set -x
if [ "$#" -ne 1 ];
then
echo "Usage: $0 INSTALL_DIR"
exit 1
fi
INSTALL_DIR=$1
mkdir -p $INSTALL_DIR
CAFFE_TAG="caffe-0.11"
CAFFE_URL="https://github.com/NVIDIA/caffe.git"
# Get source
git clone --depth 1 --branch $CAFFE_TAG $CAFFE_URL $INSTALL_DIR
cd $INSTALL_DIR
# Install dependencies
sudo -... |
set -e
set -x
if [ "$#" -ne 1 ];
then
echo "Usage: $0 INSTALL_DIR"
exit 1
fi
INSTALL_DIR=$1
mkdir -p $INSTALL_DIR
CAFFE_TAG="caffe-0.11"
CAFFE_URL="https://github.com/NVIDIA/caffe.git"
# Get source
git clone --depth 1 --branch $CAFFE_TAG $CAFFE_URL $INSTALL_DIR
cd $INSTALL_DIR
# Install dependencies
sudo -... | Print conda and pip lists | Print conda and pip lists
| Shell | bsd-3-clause | Sravan2j/DIGITS,Sravan2j/DIGITS,Sravan2j/DIGITS,Sravan2j/DIGITS | shell | ## Code Before:
set -e
set -x
if [ "$#" -ne 1 ];
then
echo "Usage: $0 INSTALL_DIR"
exit 1
fi
INSTALL_DIR=$1
mkdir -p $INSTALL_DIR
CAFFE_TAG="caffe-0.11"
CAFFE_URL="https://github.com/NVIDIA/caffe.git"
# Get source
git clone --depth 1 --branch $CAFFE_TAG $CAFFE_URL $INSTALL_DIR
cd $INSTALL_DIR
# Install dep... |
0c30491456aa01f15e0b660d7cc3e59e0428fa80 | examples/simple/simple.ino | examples/simple/simple.ino |
struct Config {
char name[20];
bool enabled;
int8 hour;
char password[20];
} config;
struct Metadata {
int8 version;
} meta;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
server->send(200, "text... |
struct Config {
char name[20];
bool enabled;
int8 hour;
char password[20];
} config;
struct Metadata {
int8 version;
} meta;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
server->send(200, "text... | Move begin down in example | Move begin down in example
| Arduino | mit | nrwiersma/ConfigManager,nrwiersma/ConfigManager | arduino | ## Code Before:
struct Config {
char name[20];
bool enabled;
int8 hour;
char password[20];
} config;
struct Metadata {
int8 version;
} meta;
ConfigManager configManager;
void createCustomRoute(ESP8266WebServer *server) {
server->on("/custom", HTTPMethod::HTTP_GET, [server](){
server-... |
a24414b391b87b3fa71836aa2ce7a91f0fdfeb6b | src/concurrent_computing.rs | src/concurrent_computing.rs | // Implements http://rosettacode.org/wiki/Concurrent_computing
// not_tested
use std::io::timer::sleep;
use std::rand::random;
fn main() {
let strings = vec!["Enjoy", "Rosetta", "Code"];
for s in strings.move_iter(){
spawn(proc() {
// We use a random u8 (so an integer from 0 to 255)
... | // Implements http://rosettacode.org/wiki/Concurrent_computing
// not_tested
use std::io::timer::sleep;
use std::rand::random;
use std::time::duration::Duration;
fn main() {
let strings = vec!["Enjoy", "Rosetta", "Code"];
for s in strings.move_iter(){
spawn(proc() {
// We use a random u8 (... | Fix use of sleep function after api change | Fix use of sleep function after api change
| Rust | unlicense | sakeven/rust-rosetta,magum/rust-rosetta,crespyl/rust-rosetta,ZoomRmc/rust-rosetta,JIghtuse/rust-rosetta,Hoverbear/rust-rosetta,crr0004/rust-rosetta,magum/rust-rosetta,ghotiphud/rust-rosetta,pfalabella/rust-rosetta | rust | ## Code Before:
// Implements http://rosettacode.org/wiki/Concurrent_computing
// not_tested
use std::io::timer::sleep;
use std::rand::random;
fn main() {
let strings = vec!["Enjoy", "Rosetta", "Code"];
for s in strings.move_iter(){
spawn(proc() {
// We use a random u8 (so an integer from ... |
a795b87978ab763b204e760c07531c413800ec1d | libraries/gtest/nacl-gtest.sh | libraries/gtest/nacl-gtest.sh |
source pkg_info
source ../../build_tools/common.sh
CustomConfigureStep() {
Banner "Configuring ${PACKAGE_NAME}"
# export the nacl tools
export CC=${NACLCC}
export CXX=${NACLCXX}
export AR=${NACLAR}
export RANLIB=${NACLRANLIB}
export PATH=${NACL_BIN_PATH}:${PATH};
export LIB_GTEST=libgtest.a
ChangeD... |
source pkg_info
source ../../build_tools/common.sh
CustomConfigureStep() {
Banner "Configuring ${PACKAGE_NAME}"
# export the nacl tools
export CC=${NACLCC}
export CXX=${NACLCXX}
export AR=${NACLAR}
export RANLIB=${NACLRANLIB}
export PATH=${NACL_BIN_PATH}:${PATH};
export LIB_GTEST=libgtest.a
ChangeD... | Make installed gtest headers writable | Make installed gtest headers writable
git-svn-id: 84b3587ce119b778414dcb50e18b7479aacf4f1d@722 7dad1e8b-422e-d2af-fbf5-8013b78bd812
| Shell | bsd-3-clause | Schibum/naclports,kuscsik/naclports,yeyus/naclports,kosyak/naclports_samsung-smart-tv,Schibum/naclports,yeyus/naclports,Schibum/naclports,yeyus/naclports,kosyak/naclports_samsung-smart-tv,adlr/naclports,kuscsik/naclports,yeyus/naclports,kuscsik/naclports,binji/naclports,yeyus/naclports,clchiou/naclports,binji/naclports... | shell | ## Code Before:
source pkg_info
source ../../build_tools/common.sh
CustomConfigureStep() {
Banner "Configuring ${PACKAGE_NAME}"
# export the nacl tools
export CC=${NACLCC}
export CXX=${NACLCXX}
export AR=${NACLAR}
export RANLIB=${NACLRANLIB}
export PATH=${NACL_BIN_PATH}:${PATH};
export LIB_GTEST=libgt... |
0addd8c91c2f85086d2c5cdb08f09a73c5139da1 | web/src/stores/scrolls.js | web/src/stores/scrolls.js | export default new class StoreScrolls {
positions = {};
constructor() {
// Save scroll position to store.
window.addEventListener('scroll', (e) => {
const id = e.target.getAttribute('scroller');
if (id) this.positions[id] = e.target.scrollTop;
}, { passive: true, capture: true });
// Apply scr... | export default new class StoreScrolls {
positions = {};
constructor() {
// Save scroll position to store.
window.addEventListener('scroll', (e) => {
const id = e.target.getAttribute('scroller');
if (id) this.positions[id] = e.target.scrollTop;
}, { passive: true, capture: true });
// Apply scr... | Fix temporary scroll store (web) | Fix temporary scroll store (web)
| JavaScript | agpl-3.0 | karlkoorna/Bussiaeg,karlkoorna/Bussiaeg | javascript | ## Code Before:
export default new class StoreScrolls {
positions = {};
constructor() {
// Save scroll position to store.
window.addEventListener('scroll', (e) => {
const id = e.target.getAttribute('scroller');
if (id) this.positions[id] = e.target.scrollTop;
}, { passive: true, capture: true });
... |
04be7bfc3a452f764b6a97f88278422c2d8abada | README.md | README.md | Temporary website of Serokell company.
The base of the theme is provided by amazing people from [Start Bootstrap](http://startbootstrap.com/) - [Grayscale](http://startbootstrap.com/template-overviews/grayscale/).
| Temporary website of Serokell company.
The base of the theme is provided by amazing people from [Start Bootstrap](http://startbootstrap.com/).com/template-overviews/grayscale/).
| Remove link to a theme | Remove link to a theme
| Markdown | apache-2.0 | serokell/serokell.github.io,serokell/serokell.github.io | markdown | ## Code Before:
Temporary website of Serokell company.
The base of the theme is provided by amazing people from [Start Bootstrap](http://startbootstrap.com/) - [Grayscale](http://startbootstrap.com/template-overviews/grayscale/).
## Instruction:
Remove link to a theme
## Code After:
Temporary website of Serokell com... |
d975d89c3e5373c3a4d89d34a8c852e0776ee07d | test/lib/file/path-spec.js | test/lib/file/path-spec.js | var utilPath = require('../../../lib/file/path');
var getRealPkgSrc = require('../../../lib/file/get-real-pkg-src');
var expect = require('expect');
var fs = require('fs');
describe('Get real paths of the package\'s files', function () {
var optG = {src: './runtime'};
var root = fs.realpathSync(optG.src) + '/';
... | var utilPath = require('../../../lib/file/path');
var getRealPkgSrc = require('../../../lib/file/get-real-pkg-src');
var expect = require('expect');
var runtimePath = require('../../util').runtimePath;
describe('Get real paths of the package\'s files', function () {
var optG = {src: runtimePath};
function T(pkg... | Update tests: replace fs with util | Update tests: replace fs with util
| JavaScript | mit | arrowrowe/tam | javascript | ## Code Before:
var utilPath = require('../../../lib/file/path');
var getRealPkgSrc = require('../../../lib/file/get-real-pkg-src');
var expect = require('expect');
var fs = require('fs');
describe('Get real paths of the package\'s files', function () {
var optG = {src: './runtime'};
var root = fs.realpathSync(o... |
a94a88f18523d66f0a7e513abff10c3a197faeff | server/web/router.ex | server/web/router.ex | defmodule TrelloBurndown.Router do
use TrelloBurndown.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/", TrelloBurnd... | defmodule TrelloBurndown.Router do
use TrelloBurndown.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope "/api", TrelloBu... | Add routing rewrites and add deploy.js | Add routing rewrites and add deploy.js
| Elixir | mit | MikaAK/trello-burndown,MikaAK/trello-burndown,MikaAK/trello-burndown,MikaAK/trello-burndown | elixir | ## Code Before:
defmodule TrelloBurndown.Router do
use TrelloBurndown.Web, :router
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_flash
plug :protect_from_forgery
plug :put_secure_browser_headers
end
pipeline :api do
plug :accepts, ["json"]
end
scope ... |
9a05b6e076b2fa69f761bf5316c9a871034cd218 | README.rst | README.rst | Entry points are a way for Python packages to advertise objects with some
common interface. The most common examples are ``console_scripts`` entry points,
which define shell commands by identifying a Python function to run.
*Groups* of entry points, such as ``console_scripts``, point to objects with
similar interfaces... | Entry points are a way for Python packages to advertise objects with some
common interface. The most common examples are ``console_scripts`` entry points,
which define shell commands by identifying a Python function to run.
*Groups* of entry points, such as ``console_scripts``, point to objects with
similar interfaces... | Document motvation / constrast to pkg_resources. | Document motvation / constrast to pkg_resources.
| reStructuredText | mit | takluyver/entrypoints | restructuredtext | ## Code Before:
Entry points are a way for Python packages to advertise objects with some
common interface. The most common examples are ``console_scripts`` entry points,
which define shell commands by identifying a Python function to run.
*Groups* of entry points, such as ``console_scripts``, point to objects with
si... |
ab6aabdca3d18b8e46246a564f7832545f7387dc | README.md | README.md |
[](https://travis-ci.org/TheFenderStory/CleanRMT)
[](https://david-dm.org/thefenderstory/cleanrmt)
[](https://travis-ci.org/TheFenderStory/CleanRMT)
[](https://david-dm.org/thefenderstory/cleanrmt)
[. Not necessarily a step-by-step, and not exactly lessons learned, somewhere in between, like "brunch."
Here, all I did was create a Git reposi... | TopWatch
========
Generated code for the TopWatch application, created using the TopWatch_Build repo. This is Part IIa of my [rambling tutorial](http://pcimino.blog.com/enyo/). Not necessarily a step-by-step, and not exactly lessons learned, somewhere in between, like "brunch."
Here, all I did was create a Git reposi... | Update the readme to explain how the modules are included in the project | Update the readme to explain how the modules are included in the project
| Markdown | apache-2.0 | pcimino/TopWatch | markdown | ## Code Before:
TopWatch
========
Generated code for the TopWatch application, created using the TopWatch_Build repo. This is Part IIa of my [rambling tutorial](http://pcimino.blog.com/enyo/). Not necessarily a step-by-step, and not exactly lessons learned, somewhere in between, like "brunch."
Here, all I did was cre... |
85de0e0d019a2e2988334f41b0d534ce5ed46bec | scripts/sweep_benchmarks.sh | scripts/sweep_benchmarks.sh | for benchmark in $(ls /project/work/timing_analysis/skew/*/vpr_timing_graph.echo)
do
echo "==============================================================="
echo $benchmark
$1 $benchmark
done
|
for benchmark in $(ls -hSr /project/work/timing_analysis/skew/*/vpr_timing_graph.echo)
do
echo "==============================================================="
echo $benchmark
$1 $benchmark
exit_code=$?
if [ $exit_code -ne 0 ]; then
echo "Failed"
exit 1
fi
done
echo "Passe... | Update sweep script with error checking | Update sweep script with error checking
| Shell | mit | verilog-to-routing/tatum,verilog-to-routing/tatum,kmurray/tatum,kmurray/tatum,kmurray/tatum,verilog-to-routing/tatum | shell | ## Code Before:
for benchmark in $(ls /project/work/timing_analysis/skew/*/vpr_timing_graph.echo)
do
echo "==============================================================="
echo $benchmark
$1 $benchmark
done
## Instruction:
Update sweep script with error checking
## Code After:
for benchmark in $(ls -hS... |
d02c0bd72cf91cf64ffdfadbc0ade705f9fbb572 | src/models/chan.js | src/models/chan.js | var _ = require("lodash");
module.exports = Chan;
Chan.Type = {
CHANNEL: "channel",
LOBBY: "lobby",
QUERY: "query"
};
var id = 0;
function Chan(attr) {
_.merge(this, _.extend({
id: id++,
messages: [],
name: "",
topic: "",
type: Chan.Type.CHANNEL,
unread: 0,
users: []
}, attr));
}
Chan.prototype.... | var _ = require("lodash");
module.exports = Chan;
Chan.Type = {
CHANNEL: "channel",
LOBBY: "lobby",
QUERY: "query"
};
var id = 0;
function Chan(attr) {
_.merge(this, _.extend({
id: id++,
messages: [],
name: "",
topic: "",
type: Chan.Type.CHANNEL,
unread: 0,
users: []
}, attr));
}
Chan.prototype.... | Remove unnecessary operation when sorting users | Remove unnecessary operation when sorting users
| JavaScript | mit | metsjeesus/lounge,metsjeesus/lounge,FryDay/lounge,MaxLeiter/lounge,thelounge/lounge,libertysoft3/lounge-autoconnect,rockhouse/lounge,ScoutLink/lounge,williamboman/lounge,rockhouse/lounge,MaxLeiter/lounge,ScoutLink/lounge,FryDay/lounge,ScoutLink/lounge,sebastiencs/lounge,metsjeesus/lounge,MaxLeiter/lounge,FryDay/lounge,... | javascript | ## Code Before:
var _ = require("lodash");
module.exports = Chan;
Chan.Type = {
CHANNEL: "channel",
LOBBY: "lobby",
QUERY: "query"
};
var id = 0;
function Chan(attr) {
_.merge(this, _.extend({
id: id++,
messages: [],
name: "",
topic: "",
type: Chan.Type.CHANNEL,
unread: 0,
users: []
}, attr));
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.