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/dragonclaw/dragonclaw_v0.2.html
|
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/master/docs/schematics/dragonclaw/dragonclaw_v0.2.brd
[schematic]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/docs/schematics/dragonclaw/dragonclaw_v0.2.html
|
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 <[email protected]>
Change-Id: Ide185001a90896a3ccab69e86c2810a65ff44b6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317176
|
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/docs/schematics/dragonclaw/dragonclaw_v0.2.html
## Instruction:
docs: Add note about downloading HTML schematics
BRANCH=none
BUG=b:147154913
TEST=view in gitiles
Signed-off-by: Tom Hughes <[email protected]>
Change-Id: Ide185001a90896a3ccab69e86c2810a65ff44b6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2317176
## Code After:
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/master/docs/schematics/dragonclaw/dragonclaw_v0.2.brd
[schematic]: https://raw.githubusercontent.com/coreboot/chrome-ec/master/docs/schematics/dragonclaw/dragonclaw_v0.2.html
|
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:
print(args.user)
if __name__ == '__main__':
app.run(main, flags_parser=eapp.make_flags_parser(Args))
```
This is a wrapper around
[`simple_parsing`](https://github.com/lebrice/SimpleParsing). See documentation
for details.
This is compatible with `absl.flags`, so you can mix `dataclasses` with `FLAGS`
on the same program.
|
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 = False
def main(args: Args):
if args.verbose:
print(args.user)
if __name__ == '__main__':
app.run(main, flags_parser=eapp.make_flags_parser(Args))
```
This is a wrapper around
[`simple_parsing`](https://github.com/lebrice/SimpleParsing). See documentation
for details.
This is compatible with `absl.flags`, so you can mix `dataclasses` with `FLAGS`
on the same program.
|
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 args.verbose:
print(args.user)
if __name__ == '__main__':
app.run(main, flags_parser=eapp.make_flags_parser(Args))
```
This is a wrapper around
[`simple_parsing`](https://github.com/lebrice/SimpleParsing). See documentation
for details.
This is compatible with `absl.flags`, so you can mix `dataclasses` with `FLAGS`
on the same program.
## Instruction:
Add import statements in eapp doc
PiperOrigin-RevId: 477386905
## Code After:
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 = False
def main(args: Args):
if args.verbose:
print(args.user)
if __name__ == '__main__':
app.run(main, flags_parser=eapp.make_flags_parser(Args))
```
This is a wrapper around
[`simple_parsing`](https://github.com/lebrice/SimpleParsing). See documentation
for details.
This is compatible with `absl.flags`, so you can mix `dataclasses` with `FLAGS`
on the same program.
|
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.
[email protected]
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 that we're seeing in Travis
ATM.
[email protected]
BUG=None
Review URL: https://codereview.chromium.org/1922583002
## Code After:
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
|
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.klips.engine.Binding
import org.klips.engine.Modification
interface Consumer { fun consume(source: Node, mdf: Modification<Binding>)}
|
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 | Promise<R>;
const platform = <PlatformImpl> platformNode();
declare const Zone;
export const forkZone = <R>(documentTemplate: string, requestUri: string, execute: () => R): R => {
const zone = Zone.current.fork({
name: requestUri,
properties: {
documentTemplate,
requestUri,
}
});
return zone.run(execute);
}
export const compileModule = async <M>(moduleType: Type<M>): Promise<NgModuleFactory<M>> => {
return await platform.compileModule(browserModuleToServerModule(moduleType), []);
};
export const bootstrapModuleFactory = async <M, R>(moduleFactory: NgModuleFactory<M>, execute: ModuleExecute<M, R>): Promise<R> => {
const moduleRef = await platform.bootstrapModuleFactory<M>(moduleFactory);
try {
const result = await Promise.resolve(execute(moduleRef));
moduleRef.destroy();
return result;
}
catch (exception) {
moduleRef.destroy();
throw exception;
}
};
|
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 | Promise<R>;
const platform = <PlatformImpl> platformNode();
declare const Zone;
export const forkZone = <R>(documentTemplate: string, requestUri: string, execute: () => R): R => {
const zone = Zone.current.fork({
name: requestUri,
properties: {
documentTemplate,
requestUri,
}
});
return zone.run(execute);
}
export const compileModule = async <M>(moduleType: Type<M>): Promise<NgModuleFactory<M>> => {
return await platform.compileModule(browserModuleToServerModule(moduleType), []);
};
export const bootstrapModuleFactory = async <M, R>(moduleFactory: NgModuleFactory<M>, execute: ModuleExecute<M, R>): Promise<R> => {
const moduleRef = await platform.bootstrapModuleFactory<M>(moduleFactory);
try {
return await Promise.resolve(execute(moduleRef));
}
finally {
moduleRef.destroy();
}
};
|
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: NgModuleRef<M>) => R | Promise<R>;
const platform = <PlatformImpl> platformNode();
declare const Zone;
export const forkZone = <R>(documentTemplate: string, requestUri: string, execute: () => R): R => {
const zone = Zone.current.fork({
name: requestUri,
properties: {
documentTemplate,
requestUri,
}
});
return zone.run(execute);
}
export const compileModule = async <M>(moduleType: Type<M>): Promise<NgModuleFactory<M>> => {
return await platform.compileModule(browserModuleToServerModule(moduleType), []);
};
export const bootstrapModuleFactory = async <M, R>(moduleFactory: NgModuleFactory<M>, execute: ModuleExecute<M, R>): Promise<R> => {
const moduleRef = await platform.bootstrapModuleFactory<M>(moduleFactory);
try {
const result = await Promise.resolve(execute(moduleRef));
moduleRef.destroy();
return result;
}
catch (exception) {
moduleRef.destroy();
throw exception;
}
};
## Instruction:
Clean up the destroy pattern for NgModuleRef instances
## Code After:
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 | Promise<R>;
const platform = <PlatformImpl> platformNode();
declare const Zone;
export const forkZone = <R>(documentTemplate: string, requestUri: string, execute: () => R): R => {
const zone = Zone.current.fork({
name: requestUri,
properties: {
documentTemplate,
requestUri,
}
});
return zone.run(execute);
}
export const compileModule = async <M>(moduleType: Type<M>): Promise<NgModuleFactory<M>> => {
return await platform.compileModule(browserModuleToServerModule(moduleType), []);
};
export const bootstrapModuleFactory = async <M, R>(moduleFactory: NgModuleFactory<M>, execute: ModuleExecute<M, R>): Promise<R> => {
const moduleRef = await platform.bootstrapModuleFactory<M>(moduleFactory);
try {
return await Promise.resolve(execute(moduleRef));
}
finally {
moduleRef.destroy();
}
};
|
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
tag :meta, name: 'description', content: @meta_description
end
def page_class(css_class)
content_for(:page_class, css_class)
end
def markdown(markdown_text, renderer = markdown_renderer)
renderer.render(markdown_text).html_safe
end
private
def markdown_renderer
@markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::XHTML.new(filter_html: true),
autolink: true,
space_after_headers: true,
tables: true,
superscript: true)
end
end
|
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
tag :meta, name: 'description', content: @meta_description
end
def page_class(css_class)
content_for(:page_class, css_class)
end
def markdown(markdown_text, renderer = markdown_renderer)
renderer.render(markdown_text).html_safe if markdown_text
end
private
def markdown_renderer
@markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::XHTML.new(filter_html: true),
autolink: true,
space_after_headers: true,
tables: true,
superscript: true)
end
end
|
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_description_tag
tag :meta, name: 'description', content: @meta_description
end
def page_class(css_class)
content_for(:page_class, css_class)
end
def markdown(markdown_text, renderer = markdown_renderer)
renderer.render(markdown_text).html_safe
end
private
def markdown_renderer
@markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::XHTML.new(filter_html: true),
autolink: true,
space_after_headers: true,
tables: true,
superscript: true)
end
end
## Instruction:
Fix test where markdown text isn't present
## Code After:
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
tag :meta, name: 'description', content: @meta_description
end
def page_class(css_class)
content_for(:page_class, css_class)
end
def markdown(markdown_text, renderer = markdown_renderer)
renderer.render(markdown_text).html_safe if markdown_text
end
private
def markdown_renderer
@markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::XHTML.new(filter_html: true),
autolink: true,
space_after_headers: true,
tables: true,
superscript: true)
end
end
|
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 updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);
|
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 updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON threads(createtime);
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);
|
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 ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);
## Instruction:
Add index on thrads createtime
## Code After:
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 updatetime SET DEFAULT extract(epoch from now())*1000;
ALTER TABLE rels ALTER COLUMN updatetime SET DEFAULT extract(epoch from now())*1000;
CREATE INDEX ON threads((parents[1]));
CREATE INDEX ON threads(createtime);
CREATE INDEX ON texts((parents[1]));
CREATE INDEX ON users((params->>'email'));
CREATE INDEX ON roomrels(presencetime);
CREATE INDEX ON roomrels("user");
CREATE INDEX ON roomrels using gin (roles);
CREATE INDEX ON roomrels(item);
|
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;
}
.bootstrap-transfer-container .selector-chooser {
height: auto !important;
}
.th-inner {
white-space: normal !important;
}
.border-between > [class*='col-']:before {
background: #999999;
bottom: 0;
content: " ";
left: 0;
position: absolute;
width: 1px;
top: 0;
margin-left: -5%;
}
.border-between > [class*='col-']:first-child:before {
display: none;
}
|
.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;
}
//Override text styling for empty x-editables
.editable-empty, .editable-empty:hover, .editable-empty:focus{
font-style: normal;
color: #0088cc;
/* border-bottom: none; */
text-decoration: none;
}
.bootstrap-transfer-container .selector-chooser {
height: auto !important;
}
.th-inner {
white-space: normal !important;
}
.border-between > [class*='col-']:before {
background: #999999;
bottom: 0;
content: " ";
left: 0;
position: absolute;
width: 1px;
top: 0;
margin-left: -5%;
}
.border-between > [class*='col-']:first-child:before {
display: none;
}
|
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: 100% !important;
}
.bootstrap-transfer-container .selector-chooser {
height: auto !important;
}
.th-inner {
white-space: normal !important;
}
.border-between > [class*='col-']:before {
background: #999999;
bottom: 0;
content: " ";
left: 0;
position: absolute;
width: 1px;
top: 0;
margin-left: -5%;
}
.border-between > [class*='col-']:first-child:before {
display: none;
}
## Instruction:
Reformat empty text in detail pages: " - ", same color as rest.
## Code After:
.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;
}
//Override text styling for empty x-editables
.editable-empty, .editable-empty:hover, .editable-empty:focus{
font-style: normal;
color: #0088cc;
/* border-bottom: none; */
text-decoration: none;
}
.bootstrap-transfer-container .selector-chooser {
height: auto !important;
}
.th-inner {
white-space: normal !important;
}
.border-between > [class*='col-']:before {
background: #999999;
bottom: 0;
content: " ";
left: 0;
position: absolute;
width: 1px;
top: 0;
margin-left: -5%;
}
.border-between > [class*='col-']:first-child:before {
display: none;
}
|
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 remove_idol($fan, $idol);
/**
* @return Array of Data\Project
*/
public function get_projects_by_author($author);
/**
* @param Array $projects Contains Data\project
*/
public function add_projects($fan, $projects);
public function number_of_projects_by($author);
public function number_of_projects_tracked_by($fan, $author);
public function remove_projects_by_author($fan, $author);
public function add_project($fan, $project);
}
|
<?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 remove_idol($fan, $idol);
/**
* @return Array of Data\Project
*/
public function get_projects_by_author($author);
/**
* @param Array $projects Contains Data\project
*/
public function add_projects($fan, $projects);
public function number_of_projects_by($author);
public function number_of_projects_tracked_by($fan, $author);
public function remove_projects_by_author($fan, $author);
public function add_project($fan, $project);
public function get_project_author($project);
}
|
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);
public function remove_idol($fan, $idol);
/**
* @return Array of Data\Project
*/
public function get_projects_by_author($author);
/**
* @param Array $projects Contains Data\project
*/
public function add_projects($fan, $projects);
public function number_of_projects_by($author);
public function number_of_projects_tracked_by($fan, $author);
public function remove_projects_by_author($fan, $author);
public function add_project($fan, $project);
}
## Instruction:
Add get_project_author ability in project track repository
## Code After:
<?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 remove_idol($fan, $idol);
/**
* @return Array of Data\Project
*/
public function get_projects_by_author($author);
/**
* @param Array $projects Contains Data\project
*/
public function add_projects($fan, $projects);
public function number_of_projects_by($author);
public function number_of_projects_tracked_by($fan, $author);
public function remove_projects_by_author($fan, $author);
public function add_project($fan, $project);
public function get_project_author($project);
}
|
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/coveralls/dgilland/pydash/master.svg?style=flat
:target: https://coveralls.io/r/dgilland/pydash
.. image:: http://img.shields.io/pypi/l/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
Python port of the `Lo-Dash <http://lodash.com/>`_ Javascript library.
Documentation: http://pydash.readthedocs.org/
|
******
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.org/dgilland/pydash
.. |version| image:: http://img.shields.io/pypi/v/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
.. |travis| image:: http://img.shields.io/travis/dgilland/pydash/master.svg?style=flat
:target: https://travis-ci.org/dgilland/pydash
.. |coveralls| image:: http://img.shields.io/coveralls/dgilland/pydash/master.svg?style=flat
:target: https://coveralls.io/r/dgilland/pydash
.. |license| image:: http://img.shields.io/pypi/l/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
|
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.shields.io/coveralls/dgilland/pydash/master.svg?style=flat
:target: https://coveralls.io/r/dgilland/pydash
.. image:: http://img.shields.io/pypi/l/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
Python port of the `Lo-Dash <http://lodash.com/>`_ Javascript library.
Documentation: http://pydash.readthedocs.org/
## Instruction:
Use inline images and add Links section.
## Code After:
******
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.org/dgilland/pydash
.. |version| image:: http://img.shields.io/pypi/v/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
.. |travis| image:: http://img.shields.io/travis/dgilland/pydash/master.svg?style=flat
:target: https://travis-ci.org/dgilland/pydash
.. |coveralls| image:: http://img.shields.io/coveralls/dgilland/pydash/master.svg?style=flat
:target: https://coveralls.io/r/dgilland/pydash
.. |license| image:: http://img.shields.io/pypi/l/pydash.svg?style=flat
:target: https://pypi.python.org/pypi/pydash/
|
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
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
tags: true
condition: "${TRAVIS_TAG} == v*([0-9]).*([0-9]).*([0-9])"
skip_cleanup: true
|
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: true
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
tags: true
condition: "${TRAVIS_TAG} == v*([0-9]).*([0-9]).*([0-9])"
skip_cleanup: true
|
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/CindyJS,CindyJS/CindyJS,CindyJS/CindyJS,strobelm/CindyJS,kranich/CindyJS,kranich/CindyJS
|
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: true
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
tags: true
condition: "${TRAVIS_TAG} == v*([0-9]).*([0-9]).*([0-9])"
skip_cleanup: true
## Instruction:
Switch to using the trusty environment on Travis, currently in beta
See https://docs.travis-ci.com/user/trusty-ci-environment/ for details.
## Code After:
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: true
- provider: script
script: tools/travis-deploy.sh
on:
node: node
repo: CindyJS/CindyJS
tags: true
condition: "${TRAVIS_TAG} == v*([0-9]).*([0-9]).*([0-9])"
skip_cleanup: true
|
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_URL ParaDrop controller URL [default: https://paradrop.org]
"""
# Options can be parsed from PDTOOLS_* environment variables.
ctx.auto_envvar_prefix = 'PDTOOLS'
# Respond to both -h and --help for all commands.
ctx.help_option_names = ['-h', '--help']
ctx.obj = {
'pdserver_url': PDSERVER_URL
}
root.add_command(chute.chute)
root.add_command(device.device)
root.add_command(routers.routers)
root.add_command(store.store)
def main():
"""
Entry point for the pdtools Python package.
"""
root()
if __name__ == "__main__":
main()
|
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',
# Respond to both -h and --help for all commands.
help_option_names = ['-h', '--help'],
obj = {
'pdserver_url': PDSERVER_URL
}
)
@click.group(context_settings=CONTEXT_SETTINGS)
def root(ctx):
"""
Paradrop command line utility.
Environment Variables
PDSERVER_URL ParaDrop controller URL [default: https://paradrop.org]
"""
pass
root.add_command(chute.chute)
root.add_command(device.device)
root.add_command(routers.routers)
root.add_command(store.store)
def main():
"""
Entry point for the pdtools Python package.
"""
root()
if __name__ == "__main__":
main()
|
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
PDSERVER_URL ParaDrop controller URL [default: https://paradrop.org]
"""
# Options can be parsed from PDTOOLS_* environment variables.
ctx.auto_envvar_prefix = 'PDTOOLS'
# Respond to both -h and --help for all commands.
ctx.help_option_names = ['-h', '--help']
ctx.obj = {
'pdserver_url': PDSERVER_URL
}
root.add_command(chute.chute)
root.add_command(device.device)
root.add_command(routers.routers)
root.add_command(store.store)
def main():
"""
Entry point for the pdtools Python package.
"""
root()
if __name__ == "__main__":
main()
## Instruction:
Enable '-h' help option from the pdtools root level.
## Code After:
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',
# Respond to both -h and --help for all commands.
help_option_names = ['-h', '--help'],
obj = {
'pdserver_url': PDSERVER_URL
}
)
@click.group(context_settings=CONTEXT_SETTINGS)
def root(ctx):
"""
Paradrop command line utility.
Environment Variables
PDSERVER_URL ParaDrop controller URL [default: https://paradrop.org]
"""
pass
root.add_command(chute.chute)
root.add_command(device.device)
root.add_command(routers.routers)
root.add_command(store.store)
def main():
"""
Entry point for the pdtools Python package.
"""
root()
if __name__ == "__main__":
main()
|
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 => { :hint => _('Type the product, service, city or qualifier desired') } %>
<%= render :partial => 'results_header' %>
<%= display_results(true) %>
<% if params[:display] != 'map' %>
<%= pagination_links @results[:products] %>
<% end %>
</div>
<div style="clear: both"></div>
|
<%= 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', :locals => { :hint => _('Type the product, service, city or qualifier desired') } %>
<%= render :partial => 'results_header' %>
<%= display_results(true) %>
<% if params[:display] != 'map' %>
<%= pagination_links @results[:products] %>
<% end %>
</div>
<div style="clear: both"></div>
|
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,coletivoEITA/noosfero-ecosol,uniteddiversity/noosfero,tallysmartins/noosfero,hackathon-oscs/cartografias,coletivoEITA/noosfero,CIRANDAS/noosfero-ecosol,LuisBelo/tccnoosfero,coletivoEITA/noosfero,marcosronaldo/noosfero,cesarfex/noosfero,evandrojr/noosferogov,macartur/noosfero,macartur/noosfero,EcoAlternative/noosfero-ecosol,LuisBelo/tccnoosfero,evandrojr/noosferogov,arthurmde/noosfero,hackathon-oscs/cartografias,blogoosfero/noosfero,pr-snas/noosfero-sgpr,coletivoEITA/noosfero,larissa/noosfero,uniteddiversity/noosfero,AlessandroCaetano/noosfero,hackathon-oscs/cartografias,coletivoEITA/noosfero,CIRANDAS/noosfero-ecosol,hackathon-oscs/rede-osc,evandrojr/noosferogov,macartur/noosfero,hebertdougl/noosfero,ludaac/noosfero-mx,hackathon-oscs/cartografias,ludaac/noosfero-mx,hackathon-oscs/cartografias,hebertdougl/noosfero,vfcosta/noosfero,evandrojr/noosferogov,evandrojr/noosferogov,LuisBelo/tccnoosfero,coletivoEITA/noosfero,uniteddiversity/noosfero,macartur/noosfero,samasti/noosfero,rafamanzo/mezuro-travis,EcoAlternative/noosfero-ecosol,tallysmartins/noosfero,abner/noosfero,marcosronaldo/noosfero,danielafeitosa/noosfero,macartur/noosfero,cesarfex/noosfero,coletivoEITA/noosfero,coletivoEITA/noosfero-ecosol,arthurmde/noosfero,coletivoEITA/noosfero-ecosol,samasti/noosfero,larissa/noosfero,alexandreab/noosfero,tallysmartins/noosfero,uniteddiversity/noosfero,hackathon-oscs/cartografias,vfcosta/noosfero,cesarfex/noosfero,LuisBelo/tccnoosfero,arthurmde/noosfero,AlessandroCaetano/noosfero,arthurmde/noosfero,vfcosta/noosfero,coletivoEITA/noosfero-ecosol,ludaac/noosfero-mx,larissa/noosfero,alexandreab/noosfero,danielafeitosa/noosfero,EcoAlternative/noosfero-ecosol,abner/noosfero,EcoAlternative/noosfero-ecosol,rafamanzo/mezuro-travis,abner/noosfero,tallysmartins/noosfero,larissa/noosfero,rafamanzo/mezuro-travis,blogoosfero/noosfero,evandrojr/noosfero,evandrojr/noosfero,ludaac/noosfero-mx,EcoAlternative/noosfero-ecosol,tallysmartins/noosfero,larissa/noosfero,abner/noosfero,pr-snas/noosfero-sgpr,tallysmartins/noosfero,tallysmartins/noosfero,hebertdougl/noosfero,CIRANDAS/noosfero-ecosol,alexandreab/noosfero,marcosronaldo/noosfero,macartur/noosfero,alexandreab/noosfero,hebertdougl/noosfero,CIRANDAS/noosfero-ecosol,hackathon-oscs/rede-osc,evandrojr/noosfero,blogoosfero/noosfero,coletivoEITA/noosfero,blogoosfero/noosfero,abner/noosfero,danielafeitosa/noosfero,hebertdougl/noosfero,pr-snas/noosfero-sgpr,cesarfex/noosfero,hackathon-oscs/rede-osc,CIRANDAS/noosfero-ecosol,evandrojr/noosferogov,cesarfex/noosfero,cesarfex/noosfero,EcoAlternative/noosfero-ecosol,alexandreab/noosfero,evandrojr/noosfero,uniteddiversity/noosfero,pr-snas/noosfero-sgpr,vfcosta/noosfero,larissa/noosfero,AlessandroCaetano/noosfero,EcoAlternative/noosfero-ecosol,arthurmde/noosfero,uniteddiversity/noosfero,arthurmde/noosfero,AlessandroCaetano/noosfero,evandrojr/noosfero,evandrojr/noosferogov,hebertdougl/noosfero,evandrojr/noosfero,marcosronaldo/noosfero,coletivoEITA/noosfero-ecosol,danielafeitosa/noosfero,marcosronaldo/noosfero,LuisBelo/tccnoosfero,uniteddiversity/noosfero,blogoosfero/noosfero,LuisBelo/tccnoosfero,vfcosta/noosfero,abner/noosfero,macartur/noosfero,hackathon-oscs/cartografias,rafamanzo/mezuro-travis,arthurmde/noosfero,hackathon-oscs/rede-osc,hebertdougl/noosfero,alexandreab/noosfero,AlessandroCaetano/noosfero,marcosronaldo/noosfero,samasti/noosfero,pr-snas/noosfero-sgpr,AlessandroCaetano/noosfero,vfcosta/noosfero,danielafeitosa/noosfero,marcosronaldo/noosfero,abner/noosfero,samasti/noosfero,evandrojr/noosfero,cesarfex/noosfero,pr-snas/noosfero-sgpr
|
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_form', :locals => { :hint => _('Type the product, service, city or qualifier desired') } %>
<%= render :partial => 'results_header' %>
<%= display_results(true) %>
<% if params[:display] != 'map' %>
<%= pagination_links @results[:products] %>
<% end %>
</div>
<div style="clear: both"></div>
## Instruction:
Fix for product search view's title
## Code After:
<%= 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', :locals => { :hint => _('Type the product, service, city or qualifier desired') } %>
<%= render :partial => 'results_header' %>
<%= display_results(true) %>
<% if params[:display] != 'map' %>
<%= pagination_links @results[:products] %>
<% end %>
</div>
<div style="clear: both"></div>
|
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 be logged only once from second running thread (which every runs second into
// this line because of interval 2)
LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId;
for (int i = 1; i <= 10; ++i) {
LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId;
}
// Following line will be logged once with every thread because of interval 1
LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId;
LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId;
std::vector<std::string> myLoggers;
easyloggingpp::Loggers::getAllLogIdentifiers(myLoggers);
for (unsigned int i = 0; i < myLoggers.size(); ++i) {
std::cout << "Logger ID [" << myLoggers.at(i) << "]";
}
easyloggingpp::Configurations c;
c.parseFromText("*ALL:\n\nFORMAT = %level");
}
};
#endif
|
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 be logged only once from second running thread (which every runs second into
// this line because of interval 2)
LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId;
for (int i = 1; i <= 10; ++i) {
LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId;
}
// Following line will be logged once with every thread because of interval 1
LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId;
LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId;
}
};
#endif
|
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/easyloggingpp,hellowshinobu/easyloggingpp,hellowshinobu/easyloggingpp,arvidsson/easyloggingpp,utiasASRL/easyloggingpp,dreal-deps/easyloggingpp,arvidsson/easyloggingpp,chenmusun/easyloggingpp,spthaolt/easyloggingpp,spqr33/easyloggingpp,simonhang/easyloggingpp,hellowshinobu/easyloggingpp,utiasASRL/easyloggingpp,spthaolt/easyloggingpp,spqr33/easyloggingpp,dreal-deps/easyloggingpp,spthaolt/easyloggingpp
|
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;
// Following line will be logged only once from second running thread (which every runs second into
// this line because of interval 2)
LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId;
for (int i = 1; i <= 10; ++i) {
LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId;
}
// Following line will be logged once with every thread because of interval 1
LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId;
LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId;
std::vector<std::string> myLoggers;
easyloggingpp::Loggers::getAllLogIdentifiers(myLoggers);
for (unsigned int i = 0; i < myLoggers.size(); ++i) {
std::cout << "Logger ID [" << myLoggers.at(i) << "]";
}
easyloggingpp::Configurations c;
c.parseFromText("*ALL:\n\nFORMAT = %level");
}
};
#endif
## Instruction:
Remove logger ids loop from sample
## Code After:
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 be logged only once from second running thread (which every runs second into
// this line because of interval 2)
LWARNING_EVERY_N(2) << "This will be logged only once from thread who every reaches this line first. Currently running from thread #" << threadId;
for (int i = 1; i <= 10; ++i) {
LVERBOSE_EVERY_N(2, 3) << "Verbose level 3 log every two times. This is at " << i << " from thread #" << threadId;
}
// Following line will be logged once with every thread because of interval 1
LINFO_EVERY_N(1) << "This interval log will be logged with every thread, this one is from thread #" << threadId;
LINFO_IF(threadId == 2) << "This log is only for thread 2 and is ran by thread #" << threadId;
}
};
#endif
|
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
device = PecoSelector.select_from(devices.map{|device|
["#{device.model} (#{device.serial})", device]
}).first
"-s #{device.serial}"
rescue PecoSelector::PecoUnavailableError => e
puts e.message
exit 1
end
def self.adb_action
ARGV.reject{|a| a[0] == '-'}.first
end
def self.need_serial_option?
!['help',
'devices',
'version',
'start-server',
'stop-server',
].include?(adb_action)
end
command = ['adb', serial_option, ARGV].flatten.join(' ')
begin
system(command)
rescue Interrupt
# Ignore
end
end
end
|
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 nil if devices.size <= 1 || devices.size == 0
device = PecoSelector.select_from(devices.map{|device|
["#{device.model} (#{device.serial})", device]
}).first
"-s #{device.serial}"
rescue PecoSelector::PecoUnavailableError => e
puts e.message
exit 1
end
def self.adb_available?
system('which', 'adb', out: File::NULL)
end
def self.ensure_adb_available
unless adb_available?
raise AdbUnavailableError, 'adb command is not available.'
end
end
def self.adb_action
ARGV.reject{|a| a[0] == '-'}.first
end
def self.need_serial_option?
!['help',
'devices',
'version',
'start-server',
'stop-server',
].include?(adb_action)
end
begin
ensure_adb_available
rescue AdbUnavailableError => e
puts e.message
exit 1
end
command = ['adb', serial_option, ARGV].flatten.join(' ')
begin
system(command)
rescue Interrupt
# Ignore
end
end
end
|
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.size == 0
device = PecoSelector.select_from(devices.map{|device|
["#{device.model} (#{device.serial})", device]
}).first
"-s #{device.serial}"
rescue PecoSelector::PecoUnavailableError => e
puts e.message
exit 1
end
def self.adb_action
ARGV.reject{|a| a[0] == '-'}.first
end
def self.need_serial_option?
!['help',
'devices',
'version',
'start-server',
'stop-server',
].include?(adb_action)
end
command = ['adb', serial_option, ARGV].flatten.join(' ')
begin
system(command)
rescue Interrupt
# Ignore
end
end
end
## Instruction:
Print error when adb command is not available
## Code After:
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 nil if devices.size <= 1 || devices.size == 0
device = PecoSelector.select_from(devices.map{|device|
["#{device.model} (#{device.serial})", device]
}).first
"-s #{device.serial}"
rescue PecoSelector::PecoUnavailableError => e
puts e.message
exit 1
end
def self.adb_available?
system('which', 'adb', out: File::NULL)
end
def self.ensure_adb_available
unless adb_available?
raise AdbUnavailableError, 'adb command is not available.'
end
end
def self.adb_action
ARGV.reject{|a| a[0] == '-'}.first
end
def self.need_serial_option?
!['help',
'devices',
'version',
'start-server',
'stop-server',
].include?(adb_action)
end
begin
ensure_adb_available
rescue AdbUnavailableError => e
puts e.message
exit 1
end
command = ['adb', serial_option, ARGV].flatten.join(' ')
begin
system(command)
rescue Interrupt
# Ignore
end
end
end
|
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 {
($expr:expr) => {}
}
custom_macro! {
#[attr] if true {}
}
fn main() {}
|
// 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)]
if true {
let x: () = true; // Should not error due to the #[cfg(FALSE)]
}
#[cfg_attr(not(unset_attr), cfg(FALSE))]
if true {
let a: () = true; // Should not error due to the applied #[cfg(FALSE)]
}
}
macro_rules! custom_macro {
($expr:expr) => {}
}
custom_macro! {
#[attr] if true {}
}
fn main() {}
|
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! custom_macro {
($expr:expr) => {}
}
custom_macro! {
#[attr] if true {}
}
fn main() {}
## Instruction:
Test that cfg-gated if-exprs are not type-checked
## Code After:
// 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)]
if true {
let x: () = true; // Should not error due to the #[cfg(FALSE)]
}
#[cfg_attr(not(unset_attr), cfg(FALSE))]
if true {
let a: () = true; // Should not error due to the applied #[cfg(FALSE)]
}
}
macro_rules! custom_macro {
($expr:expr) => {}
}
custom_macro! {
#[attr] if true {}
}
fn main() {}
|
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):
App._collecter.throw(2002, self.line)
return False
@Dispatcher.register(token='run', command='rm')
class Rm(ShellCommand):
def __init__(self, **kwargs):
rf_flags_regex = re.compile("(-.*[rRf].+-?[rRf]|-[rR]f|-f[rR])")
rf_flags = True if [i for i in kwargs.get('args') if rf_flags_regex.search(i)] else False
cache_path_regex = re.compile("/var/lib/apt/lists(\/\*?)?")
cache_path = True if [i for i in kwargs.get('args') if cache_path_regex.search(i)] else False
if rf_flags and cache_path:
if (int(Apt._has_been_used) < int(kwargs.get('lineno'))):
Apt._has_been_used = 0
|
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):
App._collecter.throw(2002, kwargs.get('lineno'))
@Dispatcher.register(token='run', command='rm')
class Rm(ShellCommand):
def __init__(self, **kwargs):
rf_flags_regex = re.compile("(-.*[rRf].+-?[rRf]|-[rR]f|-f[rR])")
rf_flags = True if [i for i in kwargs.get('args') if rf_flags_regex.search(i)] else False
cache_path_regex = re.compile("/var/lib/apt/lists(\/\*?)?")
cache_path = True if [i for i in kwargs.get('args') if cache_path_regex.search(i)] else False
if rf_flags and cache_path:
if (int(Apt._has_been_used) < int(kwargs.get('lineno'))):
Apt._has_been_used = 0
|
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__(self, **kwargs):
App._collecter.throw(2002, self.line)
return False
@Dispatcher.register(token='run', command='rm')
class Rm(ShellCommand):
def __init__(self, **kwargs):
rf_flags_regex = re.compile("(-.*[rRf].+-?[rRf]|-[rR]f|-f[rR])")
rf_flags = True if [i for i in kwargs.get('args') if rf_flags_regex.search(i)] else False
cache_path_regex = re.compile("/var/lib/apt/lists(\/\*?)?")
cache_path = True if [i for i in kwargs.get('args') if cache_path_regex.search(i)] else False
if rf_flags and cache_path:
if (int(Apt._has_been_used) < int(kwargs.get('lineno'))):
Apt._has_been_used = 0
## Instruction:
Fix line addressing issue on 'cd' command
## Code After:
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):
App._collecter.throw(2002, kwargs.get('lineno'))
@Dispatcher.register(token='run', command='rm')
class Rm(ShellCommand):
def __init__(self, **kwargs):
rf_flags_regex = re.compile("(-.*[rRf].+-?[rRf]|-[rR]f|-f[rR])")
rf_flags = True if [i for i in kwargs.get('args') if rf_flags_regex.search(i)] else False
cache_path_regex = re.compile("/var/lib/apt/lists(\/\*?)?")
cache_path = True if [i for i in kwargs.get('args') if cache_path_regex.search(i)] else False
if rf_flags and cache_path:
if (int(Apt._has_been_used) < int(kwargs.get('lineno'))):
Apt._has_been_used = 0
|
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(admin.ModelAdmin):
list_display = ("proposal", "author", "comment", "date_created")
@admin.register(ProposalNotification)
class ProposalNotificationAdmin(admin.ModelAdmin):
exclude = ("proposals",)
inlines = [ProposalInline]
list_display = ("subject", "body", "date_sent")
@admin.register(ProposalResult)
class ProposalResultAdmin(admin.ModelAdmin):
list_display = ("proposal", "status")
@admin.register(ProposalVote)
class ProposalVoteAdmin(admin.ModelAdmin):
list_display = ("proposal", "voter", "score", "comment")
list_filter = ("score",)
|
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(admin.ModelAdmin):
list_display = ("proposal", "author", "comment", "date_created")
@admin.register(ProposalNotification)
class ProposalNotificationAdmin(admin.ModelAdmin):
exclude = ("proposals",)
inlines = [ProposalInline]
list_display = ("subject", "body", "date_sent")
@admin.register(ProposalResult)
class ProposalResultAdmin(admin.ModelAdmin):
list_display = ("proposal", "status")
@admin.register(ProposalVote)
class ProposalVoteAdmin(admin.ModelAdmin):
list_display = ("proposal", "voter", "score", "comment")
list_filter = ["score", "voter"]
|
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 ProposalFeedbackAdmin(admin.ModelAdmin):
list_display = ("proposal", "author", "comment", "date_created")
@admin.register(ProposalNotification)
class ProposalNotificationAdmin(admin.ModelAdmin):
exclude = ("proposals",)
inlines = [ProposalInline]
list_display = ("subject", "body", "date_sent")
@admin.register(ProposalResult)
class ProposalResultAdmin(admin.ModelAdmin):
list_display = ("proposal", "status")
@admin.register(ProposalVote)
class ProposalVoteAdmin(admin.ModelAdmin):
list_display = ("proposal", "voter", "score", "comment")
list_filter = ("score",)
## Instruction:
Enable filtering ProposalVotes by reviewer.
## Code After:
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(admin.ModelAdmin):
list_display = ("proposal", "author", "comment", "date_created")
@admin.register(ProposalNotification)
class ProposalNotificationAdmin(admin.ModelAdmin):
exclude = ("proposals",)
inlines = [ProposalInline]
list_display = ("subject", "body", "date_sent")
@admin.register(ProposalResult)
class ProposalResultAdmin(admin.ModelAdmin):
list_display = ("proposal", "status")
@admin.register(ProposalVote)
class ProposalVoteAdmin(admin.ModelAdmin):
list_display = ("proposal", "voter", "score", "comment")
list_filter = ["score", "voter"]
|
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:
- cargo uninstall rustfmt || true
- cargo install --list
- rustup toolchain install stable
- rustup component add --toolchain=stable rustfmt-preview
- rustup component list --toolchain=stable
- rustup show
- rustfmt +stable --version || echo fail
- rustup update
- rustfmt +stable --version
script: ./test-all.sh
cache:
cargo: true
directories:
- $HOME/.cache/pip
|
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 an old version of rustfmt from cargo is already installed, uninstall
# it, since it can prevent the installation of the new version from rustup.
- cargo uninstall rustfmt || true
- cargo install --list
# If we're testing beta or nightly, we still need to install the stable
# toolchain so that we can run the stable version of rustfmt.
- rustup toolchain install stable
# Install the stable version of rustfmt.
- rustup component add --toolchain=stable rustfmt-preview
- rustup component list --toolchain=stable
- rustup show
- rustfmt +stable --version || echo fail
# Sometimes the component isn't actually ready after being installed, and
# rustup update makes it ready.
- rustup update
- rustfmt +stable --version
script: ./test-all.sh
cache:
cargo: true
directories:
- $HOME/.cache/pip
|
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_script:
- cargo uninstall rustfmt || true
- cargo install --list
- rustup toolchain install stable
- rustup component add --toolchain=stable rustfmt-preview
- rustup component list --toolchain=stable
- rustup show
- rustfmt +stable --version || echo fail
- rustup update
- rustfmt +stable --version
script: ./test-all.sh
cache:
cargo: true
directories:
- $HOME/.cache/pip
## Instruction:
Add comments explaining the rustfmt installation dance.
## Code After:
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 an old version of rustfmt from cargo is already installed, uninstall
# it, since it can prevent the installation of the new version from rustup.
- cargo uninstall rustfmt || true
- cargo install --list
# If we're testing beta or nightly, we still need to install the stable
# toolchain so that we can run the stable version of rustfmt.
- rustup toolchain install stable
# Install the stable version of rustfmt.
- rustup component add --toolchain=stable rustfmt-preview
- rustup component list --toolchain=stable
- rustup show
- rustfmt +stable --version || echo fail
# Sometimes the component isn't actually ready after being installed, and
# rustup update makes it ready.
- rustup update
- rustfmt +stable --version
script: ./test-all.sh
cache:
cargo: true
directories:
- $HOME/.cache/pip
|
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 _generate_data_schemas(schemas)
return if schemas.nil? || schemas.empty?
@logger.info ' > Generate Java Beans.'
parser = DataSchemaParser.new do |p|
p.namespace = @namespace
p.language = SUPPORTED_PROGRAMMING_LANGUAGES[:java]
end
schemas.each do |key, value|
parser.entity_name = key
parser.data_schema = value
hash = parser.parse
#builder.build hash
end
end
end
end
end
|
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_schemas raml.schemas
end
private
def _generate_data_schemas(schemas)
return if schemas.nil? || schemas.empty?
@logger.info ' > Generate Java Beans.'
parser = DataSchemaParser.new do |p|
p.namespace = @namespace
p.language = SUPPORTED_PROGRAMMING_LANGUAGES[:java]
end
schemas.each do |key, value|
parser.entity_name = key
parser.data_schema = value
hash = parser.parse
#builder.build hash
end
end
end
end
end
|
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
private
def _generate_data_schemas(schemas)
return if schemas.nil? || schemas.empty?
@logger.info ' > Generate Java Beans.'
parser = DataSchemaParser.new do |p|
p.namespace = @namespace
p.language = SUPPORTED_PROGRAMMING_LANGUAGES[:java]
end
schemas.each do |key, value|
parser.entity_name = key
parser.data_schema = value
hash = parser.parse
#builder.build hash
end
end
end
end
end
## Instruction:
Add explicit require to super class.
## Code After:
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_schemas raml.schemas
end
private
def _generate_data_schemas(schemas)
return if schemas.nil? || schemas.empty?
@logger.info ' > Generate Java Beans.'
parser = DataSchemaParser.new do |p|
p.namespace = @namespace
p.language = SUPPORTED_PROGRAMMING_LANGUAGES[:java]
end
schemas.each do |key, value|
parser.entity_name = key
parser.data_schema = value
hash = parser.parse
#builder.build hash
end
end
end
end
end
|
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="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=find_packages(exclude=('tests', 'tests.*')),
description="A Python client for Swimlane.",
install_requires=parse_requirements('./requirements.txt'),
setup_requires=[
'setuptools_scm',
'pytest-runner'
],
use_scm_version=True,
tests_require=parse_requirements('./test-requirements.txt'),
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: PyPy"
]
)
|
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="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=find_packages(exclude=('tests', 'tests.*')),
description="A Python client for Swimlane.",
install_requires=parse_requirements('./requirements.txt'),
setup_requires=[
'setuptools_scm',
'pytest-runner'
],
use_scm_version=True,
tests_require=parse_requirements('./test-requirements.txt'),
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
]
)
|
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="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=find_packages(exclude=('tests', 'tests.*')),
description="A Python client for Swimlane.",
install_requires=parse_requirements('./requirements.txt'),
setup_requires=[
'setuptools_scm',
'pytest-runner'
],
use_scm_version=True,
tests_require=parse_requirements('./test-requirements.txt'),
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: Implementation :: PyPy"
]
)
## Instruction:
Remove Pypy from list of supported Python versions
## Code After:
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="[email protected]",
url="https://github.com/swimlane/swimlane-python",
packages=find_packages(exclude=('tests', 'tests.*')),
description="A Python client for Swimlane.",
install_requires=parse_requirements('./requirements.txt'),
setup_requires=[
'setuptools_scm',
'pytest-runner'
],
use_scm_version=True,
tests_require=parse_requirements('./test-requirements.txt'),
classifiers=[
"License :: OSI Approved :: GNU Affero General Public License v3",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
]
)
|
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 = root
|
[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_escalation]
become = True
become_user = root
|
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
become_user = root
## Instruction:
Use newly-created key to do remote ops.
## Code After:
[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_escalation]
become = True
become_user = root
|
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_read,
last_seen=last_seen)
assert metadata.pid == pid
assert metadata.health_check_read == health_check_read
assert metadata.last_seen == last_seen
|
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,
health_check_read=health_check_read,
last_seen=last_seen)
assert metadata.pid == pid
assert metadata.health_check_read == health_check_read
assert metadata.last_seen == last_seen
def test_WriteAndFlushFile():
"""
Make sure we can write to and read from a file.
"""
try:
# Create a directory. Make sure to remove it at the end.
dirname = tempfile.mkdtemp()
filename = 'filename.txt'
text1 = 'The quick brown fox\n'
text2 = 'The lazy dog'
full_path = os.path.join(dirname, filename)
# Open a file and write using both changed methods
f = prefork.WriteAndFlushFile(full_path, 'w')
f.write(text1)
f.writelines(text2)
f.close()
# Read everything back
f = open(full_path, 'r')
data = f.readlines()
f.close()
assert data[0] == text1
assert data[1] == text2
finally:
# Always remove it
shutil.rmtree(dirname)
|
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=health_check_read,
last_seen=last_seen)
assert metadata.pid == pid
assert metadata.health_check_read == health_check_read
assert metadata.last_seen == last_seen
## Instruction:
Add a test for the file object
## Code After:
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,
health_check_read=health_check_read,
last_seen=last_seen)
assert metadata.pid == pid
assert metadata.health_check_read == health_check_read
assert metadata.last_seen == last_seen
def test_WriteAndFlushFile():
"""
Make sure we can write to and read from a file.
"""
try:
# Create a directory. Make sure to remove it at the end.
dirname = tempfile.mkdtemp()
filename = 'filename.txt'
text1 = 'The quick brown fox\n'
text2 = 'The lazy dog'
full_path = os.path.join(dirname, filename)
# Open a file and write using both changed methods
f = prefork.WriteAndFlushFile(full_path, 'w')
f.write(text1)
f.writelines(text2)
f.close()
# Read everything back
f = open(full_path, 'r')
data = f.readlines()
f.close()
assert data[0] == text1
assert data[1] == text2
finally:
# Always remove it
shutil.rmtree(dirname)
|
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<T, E>>`][Stream03].
fn compat(self) -> Compat<Self, ()>
where
Self: Sized,
{
Compat {
inner: self,
executor: None,
}
}
}
|
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<Item = Result<T,
/// E>>`][futures_core::Stream].
fn compat(self) -> Compat<Self, ()>
where
Self: Sized,
{
Compat {
inner: self,
executor: None,
}
}
}
|
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 [`Stream<Item = Result<T, E>>`][Stream03].
fn compat(self) -> Compat<Self, ()>
where
Self: Sized,
{
Compat {
inner: self,
executor: None,
}
}
}
## Instruction:
Fix doc links in futures-util::compat
## Code After:
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<Item = Result<T,
/// E>>`][futures_core::Stream].
fn compat(self) -> Compat<Self, ()>
where
Self: Sized,
{
Compat {
inner: self,
executor: None,
}
}
}
|
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 $Dir
returnval=`go test -v -coverprofile=profile.out $Dir`
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
fi
done
if [ -n "$COVERALLS_TOKEN" ]
then
$HOME/gopath/bin/goveralls -coverprofile=acc.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi
rm -rf ./profile.out
rm -rf ./acc.out
|
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/null;
then
echo $Dir
returnval=`go test -v -coverprofile=profile.out $Dir -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
fi
done
if [ -n "$COVERALLS_TOKEN" ]
then
$HOME/gopath/bin/goveralls -coverprofile=acc.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi
rm -rf ./profile.out
rm -rf ./acc.out
|
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 &> /dev/null;
then
echo $Dir
returnval=`go test -v -coverprofile=profile.out $Dir`
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
fi
done
if [ -n "$COVERALLS_TOKEN" ]
then
$HOME/gopath/bin/goveralls -coverprofile=acc.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi
rm -rf ./profile.out
rm -rf ./acc.out
## Instruction:
Add noasm tag to coverage tests
## Code After:
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/null;
then
echo $Dir
returnval=`go test -v -coverprofile=profile.out $Dir -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
fi
done
if [ -n "$COVERALLS_TOKEN" ]
then
$HOME/gopath/bin/goveralls -coverprofile=acc.out -service=travis-ci -repotoken $COVERALLS_TOKEN
fi
rm -rf ./profile.out
rm -rf ./acc.out
|
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, class: 'menu-item' %>
</nav>
|
<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>
<%= link_to 'Features', stafftools_flipper_path, class: 'menu-item' %>
</nav>
|
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_flipper_path, class: 'menu-item' %>
</nav>
## Instruction:
Make stafftools search link selected only on search page
Add selected class to search link only on stafftools_root page
## Code After:
<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>
<%= link_to 'Features', stafftools_flipper_path, class: 'menu-item' %>
</nav>
|
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/calcite,adeshr/incubator-calcite,apache/calcite,apache/calcite-avatica,apache/calcite-avatica,looker-open-source/calcite,julianhyde/calcite,xhoong/incubator-calcite,sreev/incubator-calcite,apache/calcite,amoghmargoor/incubator-calcite,YrAuYong/incubator-calcite,b-slim/calcite,looker-open-source/calcite-avatica,apache/calcite,looker-open-source/calcite,googleinterns/calcite,b-slim/calcite,googleinterns/calcite,wanglan/calcite,jcamachor/calcite,yeongwei/incubator-calcite,vlsi/incubator-calcite,YrAuYong/incubator-calcite,looker-open-source/calcite,mapr/incubator-calcite,minji-kim/calcite,julianhyde/calcite,wanglan/calcite,joshelser/calcite-avatica,xhoong/incubator-calcite,datametica/calcite,sudheeshkatkam/incubator-calcite,glimpseio/incubator-calcite,apache/calcite,b-slim/calcite,looker-open-source/calcite,dindin5258/calcite,mapr/incubator-calcite,yeongwei/incubator-calcite,datametica/calcite,hsuanyi/incubator-calcite,vlsi/calcite,hsuanyi/incubator-calcite,yeongwei/incubator-calcite,hsuanyi/incubator-calcite,jcamachor/calcite,wanglan/calcite,arina-ielchiieva/calcite,joshelser/incubator-calcite,minji-kim/calcite,sreev/incubator-calcite,amoghmargoor/incubator-calcite,datametica/calcite,arina-ielchiieva/calcite,julianhyde/calcite,adeshr/incubator-calcite,glimpseio/incubator-calcite,dindin5258/calcite,looker-open-source/calcite,jinfengni/optiq,YrAuYong/incubator-calcite,jcamachor/calcite,vlsi/calcite,joshelser/calcite-avatica,looker-open-source/calcite-avatica,googleinterns/calcite,apache/calcite-avatica,sreev/incubator-calcite,googleinterns/calcite,arina-ielchiieva/calcite,jinfengni/optiq,sreev/incubator-calcite,apache/calcite-avatica,joshelser/calcite-avatica,sudheeshkatkam/incubator-calcite,jcamachor/calcite,xhoong/incubator-calcite,YrAuYong/incubator-calcite,julianhyde/calcite,yeongwei/incubator-calcite,datametica/calcite,sudheeshkatkam/incubator-calcite,sudheeshkatkam/incubator-calcite,apache/calcite-avatica,amoghmargoor/incubator-calcite,minji-kim/calcite,adeshr/incubator-calcite,apache/calcite,wanglan/calcite,joshelser/incubator-calcite,vlsi/calcite,xhoong/incubator-calcite,julianhyde/calcite,googleinterns/calcite,jinfengni/incubator-optiq,joshelser/incubator-calcite,vlsi/calcite,vlsi/calcite,dindin5258/calcite,adeshr/incubator-calcite,devth/calcite,vlsi/calcite,looker-open-source/calcite,vlsi/incubator-calcite,julianhyde/calcite,b-slim/calcite,jcamachor/calcite,looker-open-source/calcite-avatica,datametica/calcite,googleinterns/calcite,mehant/incubator-calcite,minji-kim/calcite,arina-ielchiieva/calcite,jcamachor/calcite,dindin5258/calcite,glimpseio/incubator-calcite,joshelser/incubator-calcite,hsuanyi/incubator-calcite
|
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
branches:
only:
- master
- javadoc
script:
mvn test site
git:
depth: 10000
# End .travis.yml
|
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
*/
private $errorFormatter = ['GraphQL\Error\Error', 'formatError'];
/**
* @param array $data
* @param array $errors
* @param array $extensions
*/
public function __construct(array $data = null, array $errors = [], array $extensions = [])
{
$this->data = $data;
$this->errors = $errors;
$this->extensions = $extensions;
}
/**
* @param callable $errorFormatter
* @return $this
*/
public function setErrorFormatter(callable $errorFormatter)
{
$this->errorFormatter = $errorFormatter;
return $this;
}
/**
* @return array
*/
public function toArray()
{
$result = [];
if (null !== $this->data) {
$result['data'] = $this->data;
}
if (!empty($this->errors)) {
$result['errors'] = array_map($this->errorFormatter, $this->errors);
}
if (!empty($this->extensions)) {
$result['extensions'] = (array) $this->extensions;
}
return $result;
}
public function jsonSerialize()
{
return $this->toArray();
}
}
|
<?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
*/
private $errorFormatter = ['GraphQL\Error\Error', 'formatError'];
/**
* @param array $data
* @param array $errors
* @param array $extensions
*/
public function __construct(array $data = null, array $errors = [], array $extensions = [])
{
$this->data = $data;
$this->errors = $errors;
$this->extensions = $extensions;
}
/**
* @param callable $errorFormatter
* @return $this
*/
public function setErrorFormatter(callable $errorFormatter)
{
$this->errorFormatter = $errorFormatter;
return $this;
}
/**
* @return array
*/
public function toArray()
{
$result = [];
if (!empty($this->errors)) {
$result['errors'] = array_map($this->errorFormatter, $this->errors);
}
if (null !== $this->data) {
$result['data'] = $this->data;
}
if (!empty($this->extensions)) {
$result['extensions'] = (array) $this->extensions;
}
return $result;
}
public function jsonSerialize()
{
return $this->toArray();
}
}
|
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;
/**
* @var callable
*/
private $errorFormatter = ['GraphQL\Error\Error', 'formatError'];
/**
* @param array $data
* @param array $errors
* @param array $extensions
*/
public function __construct(array $data = null, array $errors = [], array $extensions = [])
{
$this->data = $data;
$this->errors = $errors;
$this->extensions = $extensions;
}
/**
* @param callable $errorFormatter
* @return $this
*/
public function setErrorFormatter(callable $errorFormatter)
{
$this->errorFormatter = $errorFormatter;
return $this;
}
/**
* @return array
*/
public function toArray()
{
$result = [];
if (null !== $this->data) {
$result['data'] = $this->data;
}
if (!empty($this->errors)) {
$result['errors'] = array_map($this->errorFormatter, $this->errors);
}
if (!empty($this->extensions)) {
$result['extensions'] = (array) $this->extensions;
}
return $result;
}
public function jsonSerialize()
{
return $this->toArray();
}
}
## Instruction:
Make 'errors' top property in response array
## Code After:
<?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
*/
private $errorFormatter = ['GraphQL\Error\Error', 'formatError'];
/**
* @param array $data
* @param array $errors
* @param array $extensions
*/
public function __construct(array $data = null, array $errors = [], array $extensions = [])
{
$this->data = $data;
$this->errors = $errors;
$this->extensions = $extensions;
}
/**
* @param callable $errorFormatter
* @return $this
*/
public function setErrorFormatter(callable $errorFormatter)
{
$this->errorFormatter = $errorFormatter;
return $this;
}
/**
* @return array
*/
public function toArray()
{
$result = [];
if (!empty($this->errors)) {
$result['errors'] = array_map($this->errorFormatter, $this->errors);
}
if (null !== $this->data) {
$result['data'] = $this->data;
}
if (!empty($this->extensions)) {
$result['extensions'] = (array) $this->extensions;
}
return $result;
}
public function jsonSerialize()
{
return $this->toArray();
}
}
|
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 multiple criterias
#
def locator(options={})
test = options.inject([]) do |locators, locator|
key, value = locator
locators << "#{key}:#{value}"
end.join(',')
test
end
end
end
end
|
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 multiple criterias
#
def locator(options={})
options.inject([]) do |locators, locator|
key, value = locator
locators << "#{key}:#{value}"
end.join(',')
end
end
end
end
|
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 to search on multiple criterias
#
def locator(options={})
test = options.inject([]) do |locators, locator|
key, value = locator
locators << "#{key}:#{value}"
end.join(',')
test
end
end
end
end
## Instruction:
Remove unnecessary storing of results in locator method
## Code After:
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 multiple criterias
#
def locator(options={})
options.inject([]) do |locators, locator|
key, value = locator
locators << "#{key}:#{value}"
end.join(',')
end
end
end
end
|
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="${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
|
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">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="coverage.xml"/>
</logging>
</phpunit>
|
<?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">
<directory suffix="Tests.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="coverage.xml"/>
</logging>
</phpunit>
|
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="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="coverage.xml"/>
</logging>
</phpunit>
## Instruction:
Enable error reporting on tests
## Code After:
<?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">
<directory suffix="Tests.php">./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="coverage.xml"/>
</logging>
</phpunit>
|
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-mail us at:
[email protected]
That's also the address to use if you have any questions about the DevSummit.
If you haven't already done so, please sign yourself up on the Wiki page:
https://wiki.freebsd.org/DevSummit/201708
We're looking forward to seeing you in Cambridge!
Sincerely,
The Organisers (rwatson@ et al.)
|
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 us at:
[email protected]
That's also the address to use if you have any questions about the DevSummit.
If you haven't already done so, please sign yourself up on the Wiki page:
https://wiki.freebsd.org/DevSummit/201708
We're looking forward to seeing you in Cambridge!
Sincerely,
The Organisers (rwatson@ et al.)
|
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
you'll need to e-mail us at:
[email protected]
That's also the address to use if you have any questions about the DevSummit.
If you haven't already done so, please sign yourself up on the Wiki page:
https://wiki.freebsd.org/DevSummit/201708
We're looking forward to seeing you in Cambridge!
Sincerely,
The Organisers (rwatson@ et al.)
## Instruction:
Fix attendee URL in registration email template.
## Code After:
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 us at:
[email protected]
That's also the address to use if you have any questions about the DevSummit.
If you haven't already done so, please sign yourself up on the Wiki page:
https://wiki.freebsd.org/DevSummit/201708
We're looking forward to seeing you in Cambridge!
Sincerely,
The Organisers (rwatson@ et al.)
|
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
* Time left until the current period is over is displayed in small, bold text underneath the general period title
## To Do
* p5 always first col
* options (save in localStorage)
* intercept f5/ctrl-r
* update check (offline too)
* ~~passing periods~~
* dynamically update time setting/disable "back to this week" button
* **current task: options (update timer interval)**
## How to Contrubute
1. **Fork this Repository**: fork either the main or development branches to your account and make proposed changes
2. **Send a Pull Request**: we'll review the changes and merge them if applicable
|
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
* Time left until the current period is over is displayed in small, bold text underneath the general period title
## To Do
* p5 always first col
* options (save in localStorage)
* intercept f5/ctrl-r
* update check (offline too)
* ~~passing periods~~
* dynamically update time setting/disable "back to this week" button
* **current task: options (update timer interval)**
* Parse PDF files for bell schedules and automatically update
## How to Contrubute
1. **Fork this Repository**: fork either the main or development branches to your account and make proposed changes
2. **Send a Pull Request**: we'll review the changes and merge them if applicable
|
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 the day progresses
* Time left until the current period is over is displayed in small, bold text underneath the general period title
## To Do
* p5 always first col
* options (save in localStorage)
* intercept f5/ctrl-r
* update check (offline too)
* ~~passing periods~~
* dynamically update time setting/disable "back to this week" button
* **current task: options (update timer interval)**
## How to Contrubute
1. **Fork this Repository**: fork either the main or development branches to your account and make proposed changes
2. **Send a Pull Request**: we'll review the changes and merge them if applicable
## Instruction:
Add TODOs, how to contribute, and basic usage
## Code After:
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
* Time left until the current period is over is displayed in small, bold text underneath the general period title
## To Do
* p5 always first col
* options (save in localStorage)
* intercept f5/ctrl-r
* update check (offline too)
* ~~passing periods~~
* dynamically update time setting/disable "back to this week" button
* **current task: options (update timer interval)**
* Parse PDF files for bell schedules and automatically update
## How to Contrubute
1. **Fork this Repository**: fork either the main or development branches to your account and make proposed changes
2. **Send a Pull Request**: we'll review the changes and merge them if applicable
|
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" | chpasswd
echo " done"
fi
cd $RETURN_DIR
|
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
echo -n "Creating '$KEEPER_USERNAME' user..."
useradd -G wheel $KEEPER_USERNAME
echo "$KEEPER_USERNAME:vagrant" | chpasswd
echo " done"
fi
mkdir -p $KEEPER_SSHDIR
chmod 0700 $KEEPER_SSHDIR
touch $KEEPER_KEYS
chmod 0600 $KEEPER_KEYS
curl -sS https://raw.githubusercontent.com/lightster/.ssh/master/id_rsa.lightster-air.pub \
https://raw.githubusercontent.com/lightster/.ssh/master/id_rsa.lightster-air.pub \
> $KEEPER_KEYS
chown -R $KEEPER_USERNAME:$KEEPER_USERNAME $KEEPER_SSHDIR
cd $RETURN_DIR
|
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_USERNAME:vagrant" | chpasswd
echo " done"
fi
cd $RETURN_DIR
## Instruction:
Install boxkeeper SSH keys when provisioning
## Code After:
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
echo -n "Creating '$KEEPER_USERNAME' user..."
useradd -G wheel $KEEPER_USERNAME
echo "$KEEPER_USERNAME:vagrant" | chpasswd
echo " done"
fi
mkdir -p $KEEPER_SSHDIR
chmod 0700 $KEEPER_SSHDIR
touch $KEEPER_KEYS
chmod 0600 $KEEPER_KEYS
curl -sS https://raw.githubusercontent.com/lightster/.ssh/master/id_rsa.lightster-air.pub \
https://raw.githubusercontent.com/lightster/.ssh/master/id_rsa.lightster-air.pub \
> $KEEPER_KEYS
chown -R $KEEPER_USERNAME:$KEEPER_USERNAME $KEEPER_SSHDIR
cd $RETURN_DIR
|
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->bind('captcha', function() {
return new Captcha();
});
}
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Blade::directive('captcha', function ($siteKey) {
$this->loadViewsFrom(__DIR__.'/../views', 'captcha');
return view('captcha::recaptcha', compact('siteKey'))->render();
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [Captcha::class];
}
}
|
<?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->bind('captcha', function() {
return new Captcha();
});
}
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Blade::directive('captcha', function ($siteKey) {
return "<script src='https://www.google.com/recaptcha/api.js'></script>".
"<div class='g-recaptcha' data-sitekey='{{ $siteKey }}'></div>";
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [Captcha::class];
}
}
|
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()
{
$this->app->bind('captcha', function() {
return new Captcha();
});
}
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Blade::directive('captcha', function ($siteKey) {
$this->loadViewsFrom(__DIR__.'/../views', 'captcha');
return view('captcha::recaptcha', compact('siteKey'))->render();
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [Captcha::class];
}
}
## Instruction:
Update @capcha directive to load only the partial view
## Code After:
<?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->bind('captcha', function() {
return new Captcha();
});
}
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
{
Blade::directive('captcha', function ($siteKey) {
return "<script src='https://www.google.com/recaptcha/api.js'></script>".
"<div class='g-recaptcha' data-sitekey='{{ $siteKey }}'></div>";
});
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [Captcha::class];
}
}
|
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/529685569_640.jpg" alt="Ello iOS"></a></div>
|
---
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/529685569_640.jpg" alt="Ello iOS"></a></div>
|
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.vimeocdn.com/video/529685569_640.jpg" alt="Ello iOS"></a></div>
## Instruction:
Move comment not to delete.
## Code After:
---
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/529685569_640.jpg" alt="Ello iOS"></a></div>
|
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) {
return es.map(function(file, cb) {
var template = '$templateCache.put("<%= url %>","<%= contents %>");';
file.contents = new Buffer(gutil.template(template, {
url: path.join(root, file.path.replace(file.base, '')),
contents: htmlJsStr(file.contents),
file: file
}));
cb(null, file);
});
}
module.exports = function(filename, options) {
if (!filename) {
throw new PluginError('gulp-angular-templatecache', 'Missing filename option for gulp-angular-templatecache');
}
options = options || {};
var templateHeader = 'angular.module("<%= module %>", []).run(["$templateCache", function($templateCache) {';
var templateFooter = '}]);'
return es.pipeline(
templateCache(options.root || ''),
concat(filename),
header(templateHeader, {
module: options.module || 'templates'
}),
footer(templateFooter)
)
};
|
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) {
return es.map(function(file, cb) {
var template = '$templateCache.put("<%= url %>","<%= contents %>");';
var url = path.join(root, file.path.replace(file.base, ''));
if (process.platform === 'win32') {
url = url.replace(/\\/g, '/');
}
file.contents = new Buffer(gutil.template(template, {
url: url,
contents: htmlJsStr(file.contents),
file: file
}));
cb(null, file);
});
}
module.exports = function(filename, options) {
if (!filename) {
throw new PluginError('gulp-angular-templatecache', 'Missing filename option for gulp-angular-templatecache');
}
options = options || {};
var templateHeader = 'angular.module("<%= module %>", []).run(["$templateCache", function($templateCache) {';
var templateFooter = '}]);'
return es.pipeline(
templateCache(options.root || ''),
concat(filename),
header(templateHeader, {
module: options.module || 'templates'
}),
footer(templateFooter)
)
};
|
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 templateCache(root) {
return es.map(function(file, cb) {
var template = '$templateCache.put("<%= url %>","<%= contents %>");';
file.contents = new Buffer(gutil.template(template, {
url: path.join(root, file.path.replace(file.base, '')),
contents: htmlJsStr(file.contents),
file: file
}));
cb(null, file);
});
}
module.exports = function(filename, options) {
if (!filename) {
throw new PluginError('gulp-angular-templatecache', 'Missing filename option for gulp-angular-templatecache');
}
options = options || {};
var templateHeader = 'angular.module("<%= module %>", []).run(["$templateCache", function($templateCache) {';
var templateFooter = '}]);'
return es.pipeline(
templateCache(options.root || ''),
concat(filename),
header(templateHeader, {
module: options.module || 'templates'
}),
footer(templateFooter)
)
};
## Instruction:
Handle \ on Windows, normalize to /
## Code After:
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) {
return es.map(function(file, cb) {
var template = '$templateCache.put("<%= url %>","<%= contents %>");';
var url = path.join(root, file.path.replace(file.base, ''));
if (process.platform === 'win32') {
url = url.replace(/\\/g, '/');
}
file.contents = new Buffer(gutil.template(template, {
url: url,
contents: htmlJsStr(file.contents),
file: file
}));
cb(null, file);
});
}
module.exports = function(filename, options) {
if (!filename) {
throw new PluginError('gulp-angular-templatecache', 'Missing filename option for gulp-angular-templatecache');
}
options = options || {};
var templateHeader = 'angular.module("<%= module %>", []).run(["$templateCache", function($templateCache) {';
var templateFooter = '}]);'
return es.pipeline(
templateCache(options.root || ''),
concat(filename),
header(templateHeader, {
module: options.module || 'templates'
}),
footer(templateFooter)
)
};
|
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': reason == REASON_NO_REFERER
}
return self.respond('sentry/403-csrf-failure.html', status=403)
view = CsrfFailureView.as_view()
|
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):
@method_decorator(csrf_exempt)
def dispatch(self, request, reason=""):
context = {
'no_referer': reason == REASON_NO_REFERER,
'request': request,
}
return render_to_response('sentry/403-csrf-failure.html', context, request,
status=403)
view = CsrfFailureView.as_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,argonemyth/sentry,wujuguang/sentry,pauloschilling/sentry,zenefits/sentry,nicholasserra/sentry,beeftornado/sentry,ewdurbin/sentry,gg7/sentry,Natim/sentry,vperron/sentry,Natim/sentry,korealerts1/sentry,kevinlondon/sentry,alexm92/sentry,wong2/sentry,gencer/sentry,BayanGroup/sentry,fuziontech/sentry,jean/sentry,JTCunning/sentry,alexm92/sentry,drcapulet/sentry,gencer/sentry,ifduyue/sentry,ewdurbin/sentry,imankulov/sentry,felixbuenemann/sentry,hongliang5623/sentry,wujuguang/sentry,pauloschilling/sentry,drcapulet/sentry,looker/sentry,nicholasserra/sentry,Kryz/sentry,mvaled/sentry,ewdurbin/sentry,wong2/sentry,imankulov/sentry,jean/sentry,kevinastone/sentry,1tush/sentry,mvaled/sentry,fotinakis/sentry,1tush/sentry,gencer/sentry,hongliang5623/sentry,vperron/sentry,looker/sentry,JackDanger/sentry,hongliang5623/sentry,zenefits/sentry,nicholasserra/sentry,zenefits/sentry,jokey2k/sentry,JamesMura/sentry,songyi199111/sentry,1tush/sentry,drcapulet/sentry,ngonzalvez/sentry,mvaled/sentry,Kryz/sentry,BayanGroup/sentry,kevinlondon/sentry,daevaorn/sentry,ifduyue/sentry,ifduyue/sentry,fotinakis/sentry,zenefits/sentry,BuildingLink/sentry,camilonova/sentry,JTCunning/sentry,TedaLIEz/sentry,Natim/sentry,ngonzalvez/sentry,llonchj/sentry,BuildingLink/sentry,argonemyth/sentry,jean/sentry,argonemyth/sentry,wong2/sentry,looker/sentry,looker/sentry,vperron/sentry,TedaLIEz/sentry,ngonzalvez/sentry,JamesMura/sentry,camilonova/sentry,beeftornado/sentry,looker/sentry,jokey2k/sentry,zenefits/sentry,BayanGroup/sentry,JackDanger/sentry,daevaorn/sentry,BuildingLink/sentry,gg7/sentry,BuildingLink/sentry,Kryz/sentry,gg7/sentry,JTCunning/sentry,boneyao/sentry,mitsuhiko/sentry,ifduyue/sentry,llonchj/sentry,mvaled/sentry,fotinakis/sentry,korealerts1/sentry,jean/sentry,mvaled/sentry,llonchj/sentry,mitsuhiko/sentry,felixbuenemann/sentry,beeftornado/sentry,fuziontech/sentry,JamesMura/sentry,kevinastone/sentry,imankulov/sentry,daevaorn/sentry,jokey2k/sentry,gencer/sentry,pauloschilling/sentry,gencer/sentry,ifduyue/sentry,fotinakis/sentry,alexm92/sentry,daevaorn/sentry
|
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 = {
'no_referer': reason == REASON_NO_REFERER
}
return self.respond('sentry/403-csrf-failure.html', status=403)
view = CsrfFailureView.as_view()
## Instruction:
Kill possible recursion on csrf decorator
## Code After:
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):
@method_decorator(csrf_exempt)
def dispatch(self, request, reason=""):
context = {
'no_referer': reason == REASON_NO_REFERER,
'request': request,
}
return render_to_response('sentry/403-csrf-failure.html', context, request,
status=403)
view = CsrfFailureView.as_view()
|
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 counterparts. Because good typography uses smart quotes, not dumb quotes
and we should not let the internet kill smart quotes. Speaking of smartness: Typographizer is smart
enough to skip HTML tags and everything between certain tags (like <code> and <pre>).
DESC
s.homepage = "https://github.com/frankrausch/Typographizer"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { 'Frank Rausch' => '[email protected]' }
s.source = { :git => "https://github.com/frankrausch/Typographizer.git", :tag => "#{s.version}" }
s.source_files = "Typographizer/*.{swift}"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
spec.cocoapods_version = '>= 1.2.0'
end
|
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 counterparts. Because good typography uses smart quotes, not dumb quotes
and we should not let the internet kill smart quotes. Speaking of smartness: Typographizer is smart
enough to skip HTML tags and everything between certain tags (like <code> and <pre>).
DESC
s.homepage = "https://github.com/frankrausch/Typographizer"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { 'Frank Rausch' => '[email protected]' }
s.source = { :git => "https://github.com/frankrausch/Typographizer.git", :tag => "#{s.version}" }
s.source_files = "Typographizer/*.{swift}"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
spec.cocoapods_version = '>= 1.2.0'
end
|
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, localized counterparts. Because good typography uses smart quotes, not dumb quotes
and we should not let the internet kill smart quotes. Speaking of smartness: Typographizer is smart
enough to skip HTML tags and everything between certain tags (like <code> and <pre>).
DESC
s.homepage = "https://github.com/frankrausch/Typographizer"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { 'Frank Rausch' => '[email protected]' }
s.source = { :git => "https://github.com/frankrausch/Typographizer.git", :tag => "#{s.version}" }
s.source_files = "Typographizer/*.{swift}"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
spec.cocoapods_version = '>= 1.2.0'
end
## Instruction:
Fix email address in podspec.
## Code After:
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 counterparts. Because good typography uses smart quotes, not dumb quotes
and we should not let the internet kill smart quotes. Speaking of smartness: Typographizer is smart
enough to skip HTML tags and everything between certain tags (like <code> and <pre>).
DESC
s.homepage = "https://github.com/frankrausch/Typographizer"
s.license = { :type => "MIT", :file => "LICENSE" }
s.authors = { 'Frank Rausch' => '[email protected]' }
s.source = { :git => "https://github.com/frankrausch/Typographizer.git", :tag => "#{s.version}" }
s.source_files = "Typographizer/*.{swift}"
s.ios.deployment_target = "8.0"
s.osx.deployment_target = "10.9"
s.watchos.deployment_target = "2.0"
s.tvos.deployment_target = "9.0"
spec.cocoapods_version = '>= 1.2.0'
end
|
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 to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module GhcrWeb
class Application < Rails::Application
config.autoload_paths += [ "#{config.root}/lib" ]
config.assets.enabled = false
config.middleware.use Rack::MethodOverride
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.use ActionDispatch::Flash
config.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'Github Commit Review API' do |req|
AccessToken.find_by_token(req.access_token) || req.invalid_token!
end
config.middleware.use OmniAuth::Builder do
provider :developer unless Rails.env.production?
provider :github, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'],
request_path: "/api/v1/authorize", callback_path: "/api/v1/authorize/callback",
provider_ignores_state: true
end
config.secret_key_base = 'ghcr-web'
end
end
|
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 to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module GhcrWeb
class Application < Rails::Application
config.autoload_paths += [ "#{config.root}/lib" ]
config.assets.enabled = false
config.middleware.use Rack::MethodOverride
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.use ActionDispatch::Flash
config.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'Github Commit Review API' do |req|
AccessToken.find_by_token(req.access_token) || req.invalid_token!
end
config.middleware.use OmniAuth::Builder do
provider :developer unless Rails.env.production?
provider :github, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'],
request_path: "/api/v1/authorize", callback_path: "/api/v1/authorize/callback",
provider_ignores_state: true, scope: 'repo'
end
config.secret_key_base = 'ghcr-web'
end
end
|
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
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module GhcrWeb
class Application < Rails::Application
config.autoload_paths += [ "#{config.root}/lib" ]
config.assets.enabled = false
config.middleware.use Rack::MethodOverride
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.use ActionDispatch::Flash
config.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'Github Commit Review API' do |req|
AccessToken.find_by_token(req.access_token) || req.invalid_token!
end
config.middleware.use OmniAuth::Builder do
provider :developer unless Rails.env.production?
provider :github, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'],
request_path: "/api/v1/authorize", callback_path: "/api/v1/authorize/callback",
provider_ignores_state: true
end
config.secret_key_base = 'ghcr-web'
end
end
## Instruction:
Add repo scope to github
## Code After:
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 to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module GhcrWeb
class Application < Rails::Application
config.autoload_paths += [ "#{config.root}/lib" ]
config.assets.enabled = false
config.middleware.use Rack::MethodOverride
config.middleware.use ActionDispatch::Cookies
config.middleware.use ActionDispatch::Session::CookieStore
config.middleware.use ActionDispatch::Flash
config.middleware.use Rack::OAuth2::Server::Resource::Bearer, 'Github Commit Review API' do |req|
AccessToken.find_by_token(req.access_token) || req.invalid_token!
end
config.middleware.use OmniAuth::Builder do
provider :developer unless Rails.env.production?
provider :github, ENV['GITHUB_CLIENT_ID'], ENV['GITHUB_CLIENT_SECRET'],
request_path: "/api/v1/authorize", callback_path: "/api/v1/authorize/callback",
provider_ignores_state: true, scope: 'repo'
end
config.secret_key_base = 'ghcr-web'
end
end
|
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 => "og:image", :content => image_path('2018/og-image.png')}
%meta{:property => "og:image:type", :content => "image/png"}
%meta{:property => "og:image:alt", :content => "The #{@year.year} U.S. Go Congress logo"}
%meta{:property => "og:image:width", :content => "1156"}
%meta{:property => "og:image:height", :content => "308"}
|
- 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:image", :content => image_path('logo/usgc/2020.png')}
%meta{:property => "og:image:type", :content => "image/png"}
%meta{:property => "og:image:alt", :content => "The #{@year.year} U.S. Go Congress logo"}
%meta{:property => "og:image:width", :content => "1156"}
%meta{:property => "og:image:height", :content => "308"}
|
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}."}
%meta{:property => "og:image", :content => image_path('2018/og-image.png')}
%meta{:property => "og:image:type", :content => "image/png"}
%meta{:property => "og:image:alt", :content => "The #{@year.year} U.S. Go Congress logo"}
%meta{:property => "og:image:width", :content => "1156"}
%meta{:property => "og:image:height", :content => "308"}
## Instruction:
Use 2020 logo for og meta tags
## Code After:
- 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:image", :content => image_path('logo/usgc/2020.png')}
%meta{:property => "og:image:type", :content => "image/png"}
%meta{:property => "og:image:alt", :content => "The #{@year.year} U.S. Go Congress logo"}
%meta{:property => "og:image:width", :content => "1156"}
%meta{:property => "og:image:height", :content => "308"}
|
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>Want to try crossing out an <a href='nowhere.html'>obsolete link</a>? This
is your chance!</p>
</body>
</html>
|
<!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 reusable CSS
stylesheets. <a href='hello-css.html'>Go back</a>.</p>
<p>Want to try crossing out an <a style='color: #990000; text-decoration: line-through;' href='nowhere.html'>obsolete link</a>? This
is your chance!</p>
</body>
</html>
|
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>.</p>
<p>Want to try crossing out an <a href='nowhere.html'>obsolete link</a>? This
is your chance!</p>
</body>
</html>
## Instruction:
Add inline and page specific styles
## Code After:
<!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 reusable CSS
stylesheets. <a href='hello-css.html'>Go back</a>.</p>
<p>Want to try crossing out an <a style='color: #990000; text-decoration: line-through;' href='nowhere.html'>obsolete link</a>? This
is your chance!</p>
</body>
</html>
|
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();
private SampleResult subSample;
public void subSampleStart(String label) {
if (subSample != null) {
log.warn("There is already a sub-sample started, continuing using it");
return;
}
if (getStartTime() == 0) {
sampleStart();
}
subSample = new SampleResult();
subSample.setSampleLabel(label);
subSample.setDataType(SampleResult.TEXT);
subSample.setSuccessful(true);
subSample.sampleStart();
}
public void subSampleEnd(boolean success) {
if (subSample == null) {
log.warn("There is no sub-sample started, use subSampleStart() to have one");
return;
}
subSample.sampleEnd();
subSample.setSuccessful(success);
super.addSubResult(subSample);
subSample = null;
}
@Override
public void sampleEnd() {
if (subSample != null) {
subSampleEnd(true);
}
super.sampleEnd();
}
}
|
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();
private SampleResult subSample;
public void subSampleStart(String label) {
if (subSample != null) {
log.warn("There is already a sub-sample started, continuing using it");
return;
}
if (getStartTime() == 0) {
sampleStart();
}
subSample = new SampleResult();
subSample.setSampleLabel(label);
subSample.setDataType(SampleResult.TEXT);
subSample.setSuccessful(true);
subSample.sampleStart();
}
public void subSampleEnd(boolean success) {
if (subSample == null) {
log.warn("There is no sub-sample started, use subSampleStart() to have one");
return;
}
subSample.sampleEnd();
subSample.setSuccessful(success);
super.addSubResult(subSample);
subSample = null;
}
@Override
public void sampleEnd() {
if (subSample != null) {
subSampleEnd(true);
}
if (getEndTime() == 0) {
super.sampleEnd();
}
}
}
|
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.getLoggerForClass();
private SampleResult subSample;
public void subSampleStart(String label) {
if (subSample != null) {
log.warn("There is already a sub-sample started, continuing using it");
return;
}
if (getStartTime() == 0) {
sampleStart();
}
subSample = new SampleResult();
subSample.setSampleLabel(label);
subSample.setDataType(SampleResult.TEXT);
subSample.setSuccessful(true);
subSample.sampleStart();
}
public void subSampleEnd(boolean success) {
if (subSample == null) {
log.warn("There is no sub-sample started, use subSampleStart() to have one");
return;
}
subSample.sampleEnd();
subSample.setSuccessful(success);
super.addSubResult(subSample);
subSample = null;
}
@Override
public void sampleEnd() {
if (subSample != null) {
subSampleEnd(true);
}
super.sampleEnd();
}
}
## Instruction:
Fix warning on double sampleEnd (which is not true)
## Code After:
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();
private SampleResult subSample;
public void subSampleStart(String label) {
if (subSample != null) {
log.warn("There is already a sub-sample started, continuing using it");
return;
}
if (getStartTime() == 0) {
sampleStart();
}
subSample = new SampleResult();
subSample.setSampleLabel(label);
subSample.setDataType(SampleResult.TEXT);
subSample.setSuccessful(true);
subSample.sampleStart();
}
public void subSampleEnd(boolean success) {
if (subSample == null) {
log.warn("There is no sub-sample started, use subSampleStart() to have one");
return;
}
subSample.sampleEnd();
subSample.setSuccessful(success);
super.addSubResult(subSample);
subSample = null;
}
@Override
public void sampleEnd() {
if (subSample != null) {
subSampleEnd(true);
}
if (getEndTime() == 0) {
super.sampleEnd();
}
}
}
|
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,gayangunarathne/stratos,asankasanjaya/stratos,anuruddhal/stratos,pkdevbox/stratos,asankasanjaya/stratos,anuruddhal/stratos,dinithis/stratos,dinithis/stratos,hsbhathiya/stratos,dinithis/stratos,dinithis/stratos,lasinducharith/stratos,ravihansa3000/stratos,pubudu538/stratos,lasinducharith/stratos,pkdevbox/stratos,ravihansa3000/stratos,pkdevbox/stratos,hsbhathiya/stratos,pubudu538/stratos,apache/stratos,pubudu538/stratos,dinithis/stratos,anuruddhal/stratos,agentmilindu/stratos,dinithis/stratos,pubudu538/stratos,agentmilindu/stratos,asankasanjaya/stratos,gayangunarathne/stratos,lasinducharith/stratos,asankasanjaya/stratos,asankasanjaya/stratos,apache/stratos,pkdevbox/stratos,gayangunarathne/stratos,anuruddhal/stratos,Thanu/stratos,dinithis/stratos,ravihansa3000/stratos,ravihansa3000/stratos,agentmilindu/stratos,pkdevbox/stratos,agentmilindu/stratos,anuruddhal/stratos,ravihansa3000/stratos,hsbhathiya/stratos,hsbhathiya/stratos,lasinducharith/stratos,Thanu/stratos,lasinducharith/stratos,lasinducharith/stratos,agentmilindu/stratos,hsbhathiya/stratos,lasinducharith/stratos,pubudu538/stratos,apache/stratos,Thanu/stratos,asankasanjaya/stratos,Thanu/stratos,ravihansa3000/stratos,gayangunarathne/stratos,gayangunarathne/stratos,pkdevbox/stratos,Thanu/stratos,gayangunarathne/stratos,Thanu/stratos
|
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" charset="utf-8"></script>
<script src="web.js"></script>
</head>
<body>
<p id="control">
<button id="scribble">Check</button>
Protocol:<input type="text" id="proto" />
Role:<input type="text" id="role" />
<button id="project">Project</button>
<button id="graph">Generate Graph</button>
<select id="sample">
<option>hello world</option>
<option>for loop</option>
</select>
</p>
<div id="editor"></div>
<pre id="result" class="highlight"></pre>
</body>
</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" charset="utf-8"></script>
<script src="web.js"></script>
</head>
<body>
<div id="editor"></div>
<p id="control">
<button id="scribble">Check</button>
Protocol:<input type="text" id="proto" />
Role:<input type="text" id="role" />
<button id="project">Project</button>
<button id="graph">Generate Graph</button>
<select id="sample">
<option>hello world</option>
<option>for loop</option>
</select>
</p>
<pre id="result" class="highlight"></pre>
</body>
</html>
|
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/min/ace.js" charset="utf-8"></script>
<script src="web.js"></script>
</head>
<body>
<p id="control">
<button id="scribble">Check</button>
Protocol:<input type="text" id="proto" />
Role:<input type="text" id="role" />
<button id="project">Project</button>
<button id="graph">Generate Graph</button>
<select id="sample">
<option>hello world</option>
<option>for loop</option>
</select>
</p>
<div id="editor"></div>
<pre id="result" class="highlight"></pre>
</body>
</html>
## Instruction:
Improve the layout of the controls.
## Code After:
<!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" charset="utf-8"></script>
<script src="web.js"></script>
</head>
<body>
<div id="editor"></div>
<p id="control">
<button id="scribble">Check</button>
Protocol:<input type="text" id="proto" />
Role:<input type="text" id="role" />
<button id="project">Project</button>
<button id="graph">Generate Graph</button>
<select id="sample">
<option>hello world</option>
<option>for loop</option>
</select>
</p>
<pre id="result" class="highlight"></pre>
</body>
</html>
|
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()) {
// parse the data
struct Packet packet;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
|
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;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
|
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 (softuart_kbhit()) {
// parse the data
struct Packet packet;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
## Instruction:
Remove startup delay and messages
## Code After:
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;
binary_to_packet(&packet, softuart_getchar());
// handle the packet
if (packet.status) {
rcswitch_switch_on(packet.group + 1, packet.plug + 1);
} else {
rcswitch_switch_off(packet.group + 1, packet.plug + 1);
}
}
}
return 0;
}
|
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)
}
return {}
}
store(value) {
storage.set(this.key, value)
Rules.addKey(this.key)
}
}
module.exports = Rule
|
'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)
}
return {}
}
store(value) {
storage.set(this.key, value)
Rules.addKey(this.key)
}
delete() {
storage.delete(this.key)
Rules.deleteKey(this.key)
}
}
module.exports = Rule
|
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.get(this.key)
}
return {}
}
store(value) {
storage.set(this.key, value)
Rules.addKey(this.key)
}
}
module.exports = Rule
## Instruction:
Add delete to Rule model
## Code After:
'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)
}
return {}
}
store(value) {
storage.set(this.key, value)
Rules.addKey(this.key)
}
delete() {
storage.delete(this.key)
Rules.deleteKey(this.key)
}
}
module.exports = Rule
|
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": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"width": "",
"height": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "story"
},
{
"param": "post_format",
"operator": "==",
"value": "audio"
}
]
],
"menu_order": 3,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"modified": 1430250110
}
|
{
"key": "group_553fe2239983e",
"title": "Story audio",
"fields": [
{
"key": "field_553fe1105c9f0",
"label": "Embeded audio",
"name": "story_oembed_audio",
"prefix": "",
"type": "oembed",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"width": "",
"height": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "story"
},
{
"param": "post_format",
"operator": "==",
"value": "audio"
}
]
],
"menu_order": 3,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"modified": 1430503081
}
|
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": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"width": "",
"height": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "story"
},
{
"param": "post_format",
"operator": "==",
"value": "audio"
}
]
],
"menu_order": 3,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"modified": 1430250110
}
## Instruction:
Rename audio form story field
## Code After:
{
"key": "group_553fe2239983e",
"title": "Story audio",
"fields": [
{
"key": "field_553fe1105c9f0",
"label": "Embeded audio",
"name": "story_oembed_audio",
"prefix": "",
"type": "oembed",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"width": "",
"height": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "story"
},
{
"param": "post_format",
"operator": "==",
"value": "audio"
}
]
],
"menu_order": 3,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"modified": 1430503081
}
|
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 Application $application
*/
public function __construct(Application $application)
{
$this->application = $application;
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function indexAction()
{
$this->application['signout.service']->execute();
return $this->application->redirect($this->application['url_generator']->generate('signin'));
}
}
|
<?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;
/**
* SignOutController constructor.
*
* @param Application $application
*/
public function __construct(Application $application)
{
$this->application = $application;
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function indexAction()
{
(new AuthenticateUserService($this->application['session']))->removeSession();
return $this->application->redirect($this->application['url_generator']->generate('signin'));
}
}
|
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.
*
* @param Application $application
*/
public function __construct(Application $application)
{
$this->application = $application;
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function indexAction()
{
$this->application['signout.service']->execute();
return $this->application->redirect($this->application['url_generator']->generate('signin'));
}
}
## Instruction:
Use authentication service to signout
## Code After:
<?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;
/**
* SignOutController constructor.
*
* @param Application $application
*/
public function __construct(Application $application)
{
$this->application = $application;
}
/**
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
public function indexAction()
{
(new AuthenticateUserService($this->application['session']))->removeSession();
return $this->application->redirect($this->application['url_generator']->generate('signin'));
}
}
|
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.RemoveAll(".materialscommons")
// os.RemoveAll("/tmp/mcdir")
})
|
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/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.RemoveAll(".materialscommons")
// os.RemoveAll("/tmp/mcdir")
})
|
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 = new histomicstk.views.Header({
parentView: this
});
this.bodyView = new histomicstk.views.Body({
parentView: this
});
if (user) {
girder.currentUser = new girder.models.UserModel(user);
girder.eventStream.open();
}
this.render();
}, this));
girder.events.on('g:loginUi', this.loginDialog, this);
girder.events.on('g:registerUi', this.registerDialog, this);
girder.events.on('g:resetPasswordUi', this.resetPasswordDialog, this);
girder.events.on('g:alert', this.alert, this);
girder.events.on('g:login', this.login, this);
},
render: function () {
this.$el.html(histomicstk.templates.layout());
this.headerView.setElement(this.$('#g-app-header-container')).render();
this.bodyView.setElement(this.$('#g-app-body-container')).render();
return this;
}
});
|
histomicstk.App = girder.App.extend({
initialize: function () {
girder.fetchCurrentUser()
.done(_.bind(function (user) {
girder.eventStream = new girder.EventStream({
timeout: girder.sseTimeout || null
});
this.headerView = new histomicstk.views.Header({
parentView: this
});
this.bodyView = new histomicstk.views.Body({
parentView: this
});
if (user) {
girder.currentUser = new girder.models.UserModel(user);
girder.eventStream.open();
}
this.render();
Backbone.history.start({pushState: false});
}, this));
girder.events.on('g:loginUi', this.loginDialog, this);
girder.events.on('g:registerUi', this.registerDialog, this);
girder.events.on('g:resetPasswordUi', this.resetPasswordDialog, this);
girder.events.on('g:alert', this.alert, this);
girder.events.on('g:login', this.login, this);
},
render: function () {
this.$el.html(histomicstk.templates.layout());
this.headerView.setElement(this.$('#g-app-header-container')).render();
this.bodyView.setElement(this.$('#g-app-body-container')).render();
return this;
}
});
|
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.headerView = new histomicstk.views.Header({
parentView: this
});
this.bodyView = new histomicstk.views.Body({
parentView: this
});
if (user) {
girder.currentUser = new girder.models.UserModel(user);
girder.eventStream.open();
}
this.render();
}, this));
girder.events.on('g:loginUi', this.loginDialog, this);
girder.events.on('g:registerUi', this.registerDialog, this);
girder.events.on('g:resetPasswordUi', this.resetPasswordDialog, this);
girder.events.on('g:alert', this.alert, this);
girder.events.on('g:login', this.login, this);
},
render: function () {
this.$el.html(histomicstk.templates.layout());
this.headerView.setElement(this.$('#g-app-header-container')).render();
this.bodyView.setElement(this.$('#g-app-body-container')).render();
return this;
}
});
## Instruction:
Use a router to navigate gui's
## Code After:
histomicstk.App = girder.App.extend({
initialize: function () {
girder.fetchCurrentUser()
.done(_.bind(function (user) {
girder.eventStream = new girder.EventStream({
timeout: girder.sseTimeout || null
});
this.headerView = new histomicstk.views.Header({
parentView: this
});
this.bodyView = new histomicstk.views.Body({
parentView: this
});
if (user) {
girder.currentUser = new girder.models.UserModel(user);
girder.eventStream.open();
}
this.render();
Backbone.history.start({pushState: false});
}, this));
girder.events.on('g:loginUi', this.loginDialog, this);
girder.events.on('g:registerUi', this.registerDialog, this);
girder.events.on('g:resetPasswordUi', this.resetPasswordDialog, this);
girder.events.on('g:alert', this.alert, this);
girder.events.on('g:login', this.login, this);
},
render: function () {
this.$el.html(histomicstk.templates.layout());
this.headerView.setElement(this.$('#g-app-header-container')).render();
this.bodyView.setElement(this.$('#g-app-body-container')).render();
return 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 college success</h2>
</div>
</div>
<%= @page_content.text.html_safe %>
<div id="virtual-conference-registration-call-to-action-wrapper">
<div class="button-wrapper">
<%= link_to "Register for the Virtual Conference!",
new_virtual_conference_registration_path,
class: 'create-button' %>
</div>
</div>
<p> </p>
<h2>Interested in presenting?</h2>
<p>We are still <%= link_to "accepting proposals", new_virtual_conference_proposal_path %> for conference presentations and would love to hear yours!</p>
</div>
</div>
</div>
|
<% 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 college success</h2>
</div>
</div>
<% if policy(VirtualConferenceProposal).index? %>
<p><%= link_to 'View Proposals', virtual_conference_proposals_path %></p>
<% end %>
<% if policy(VirtualConferenceRegistration).index? %>
<p><%= link_to 'View Registrations', virtual_conference_registrations_path %></p>
<% end %>
<%= @page_content.text.html_safe %>
<div id="virtual-conference-registration-call-to-action-wrapper">
<div class="button-wrapper">
<%= link_to "Register for the Virtual Conference!",
new_virtual_conference_registration_path,
class: 'create-button' %>
</div>
</div>
<p> </p>
<h2>Interested in presenting?</h2>
<p>We are still <%= link_to "accepting proposals", new_virtual_conference_proposal_path %> for conference presentations and would love to hear yours!</p>
</div>
</div>
</div>
|
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 differently for college success</h2>
</div>
</div>
<%= @page_content.text.html_safe %>
<div id="virtual-conference-registration-call-to-action-wrapper">
<div class="button-wrapper">
<%= link_to "Register for the Virtual Conference!",
new_virtual_conference_registration_path,
class: 'create-button' %>
</div>
</div>
<p> </p>
<h2>Interested in presenting?</h2>
<p>We are still <%= link_to "accepting proposals", new_virtual_conference_proposal_path %> for conference presentations and would love to hear yours!</p>
</div>
</div>
</div>
## Instruction:
Add admin links to virtual conference page.
## Code After:
<% 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 college success</h2>
</div>
</div>
<% if policy(VirtualConferenceProposal).index? %>
<p><%= link_to 'View Proposals', virtual_conference_proposals_path %></p>
<% end %>
<% if policy(VirtualConferenceRegistration).index? %>
<p><%= link_to 'View Registrations', virtual_conference_registrations_path %></p>
<% end %>
<%= @page_content.text.html_safe %>
<div id="virtual-conference-registration-call-to-action-wrapper">
<div class="button-wrapper">
<%= link_to "Register for the Virtual Conference!",
new_virtual_conference_registration_path,
class: 'create-button' %>
</div>
</div>
<p> </p>
<h2>Interested in presenting?</h2>
<p>We are still <%= link_to "accepting proposals", new_virtual_conference_proposal_path %> for conference presentations and would love to hear yours!</p>
</div>
</div>
</div>
|
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.ti.com/sitara-linux/stream.git;branch=${BRANCH}"
S = "${WORKDIR}/git"
do_compile() {
# build the release version
oe_runmake stream_linux
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/stream_c ${D}/${bindir}/
}
|
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.ti.com/sitara-linux/stream.git;branch=${BRANCH}"
S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-openmp"
do_compile() {
# build the release version
oe_runmake
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/stream_c ${D}/${bindir}/
install -m 0755 ${S}/stream_c_openmp ${D}/${bindir}/
}
FILES_${PN}-openmp = "${bindir}/stream_c_openmp"
|
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 <[email protected]>
Signed-off-by: Denys Dmytriyenko <[email protected]>
|
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_URI = "git://git.ti.com/sitara-linux/stream.git;branch=${BRANCH}"
S = "${WORKDIR}/git"
do_compile() {
# build the release version
oe_runmake stream_linux
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/stream_c ${D}/${bindir}/
}
## Instruction:
stream: Update commit to include building openmp version of stream
Signed-off-by: Franklin S. Cooper Jr <[email protected]>
Signed-off-by: Denys Dmytriyenko <[email protected]>
## Code After:
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.ti.com/sitara-linux/stream.git;branch=${BRANCH}"
S = "${WORKDIR}/git"
PACKAGES =+ "${PN}-openmp"
do_compile() {
# build the release version
oe_runmake
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/stream_c ${D}/${bindir}/
install -m 0755 ${S}/stream_c_openmp ${D}/${bindir}/
}
FILES_${PN}-openmp = "${bindir}/stream_c_openmp"
|
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 plugin:spec && bundle exec rake qunit:test'
services:
- redis-server
|
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
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test'
services:
- redis-server
|
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 exec rake plugin:spec && bundle exec rake qunit:test'
services:
- redis-server
## Instruction:
Add JSHint to Travis validation
Run before the install as it acts as a fast fail vs the gem install time
## Code After:
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
script: 'bundle exec rspec && bundle exec rake plugin:spec && bundle exec rake qunit:test'
services:
- redis-server
|
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.Views.TrackerView(model: @model.get("tracker"))) if @model.get("tracker")
@subviews.push(new ProjectMonitor.Views.NewRelicView(model: @model.get("new_relic"))) if @model.get("new_relic")
@subviews.push(new ProjectMonitor.Views.AirbrakeView(model: @model.get("airbrake"))) if @model.get("airbrake")
@.registerSubView(subview) for subview in @subviews
@$el.data(project_id: @model.get("project_id"))
render: ->
$section = $("<section/>")
@$el.html($section)
$section.addClass(['one-tile', 'two-tile', 'three-tile', 'four-tile'][@subviews.length - 1])
for subview in @subviews
$section.append(subview.render().$el)
@
|
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.Views.TrackerView(model: @model.get("tracker"))) if @model.get("tracker")
@subviews.push(new ProjectMonitor.Views.NewRelicView(model: @model.get("new_relic"))) if @model.get("new_relic")
@subviews.push(new ProjectMonitor.Views.AirbrakeView(model: @model.get("airbrake"))) if @model.get("airbrake")
@.registerSubView(subview) for subview in @subviews
@$el.data(project_id: @model.get("project_id"))
render: ->
$section = $("<section/>").
addClass(['one-tile', 'two-tile', 'three-tile', 'four-tile'][@subviews.length - 1])
for subview in @subviews
$section.append(subview.render().$el)
@$el.html($section)
@
|
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,genebygene/projectmonitor,dgodd/projectmonitor,pivotal/projectmonitor,pivotal/projectmonitor,genebygene/projectmonitor,genebygene/projectmonitor,remind101/projectmonitor,mabounassif/projectmonitor-docker,dgodd/projectmonitor,mabounassif/projectmonitor-docker,genebygene/projectmonitor,remind101/projectmonitor
|
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 ProjectMonitor.Views.TrackerView(model: @model.get("tracker"))) if @model.get("tracker")
@subviews.push(new ProjectMonitor.Views.NewRelicView(model: @model.get("new_relic"))) if @model.get("new_relic")
@subviews.push(new ProjectMonitor.Views.AirbrakeView(model: @model.get("airbrake"))) if @model.get("airbrake")
@.registerSubView(subview) for subview in @subviews
@$el.data(project_id: @model.get("project_id"))
render: ->
$section = $("<section/>")
@$el.html($section)
$section.addClass(['one-tile', 'two-tile', 'three-tile', 'four-tile'][@subviews.length - 1])
for subview in @subviews
$section.append(subview.render().$el)
@
## Instruction:
Append ProjectView subviews in 1 operation
## Code After:
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.Views.TrackerView(model: @model.get("tracker"))) if @model.get("tracker")
@subviews.push(new ProjectMonitor.Views.NewRelicView(model: @model.get("new_relic"))) if @model.get("new_relic")
@subviews.push(new ProjectMonitor.Views.AirbrakeView(model: @model.get("airbrake"))) if @model.get("airbrake")
@.registerSubView(subview) for subview in @subviews
@$el.data(project_id: @model.get("project_id"))
render: ->
$section = $("<section/>").
addClass(['one-tile', 'two-tile', 'three-tile', 'four-tile'][@subviews.length - 1])
for subview in @subviews
$section.append(subview.render().$el)
@$el.html($section)
@
|
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 assistance... or grapefruits.
</p>
<p>
Sincerely,<br>
The Anchor Tab Team
</p>
</body>
</html>
|
<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%">
<tr class="header">
<th style="text-align: left">Description</th>
<th style="text-align: left">Period</th>
<th class="amount" style="text-align: right">Amount</th>
</tr>
<tr class="line-item">
<td class="line-item-description">The Influencer</td>
<td class="period">
<span class="period-start">2014-01-01</span>
to
<span class="period-end">2014-02-01</span>
</td>
<td class="amount" style="text-align: right">$10.00</td>
</tr>
<tr class="total-line-item">
<td colspan="2">
Total
</td>
<td class="invoice-total amount" style="text-align: right">
$99.99
</td>
</tr>
<tr class="payment-line-item">
<td colspan="2">
<span class="card-type">Visa</span>
**** **** ****
<span class="last-four">1234</span>
</td>
<td class="amount" style="text-align: right">
-$10.00
</td>
</tr>
</table>
<p>
Let us know if you need any assistance... or grapefruits.
</p>
<p>
Sincerely,<br>
The Anchor Tab Team
</p>
</body>
</html>
|
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 you need any assistance... or grapefruits.
</p>
<p>
Sincerely,<br>
The Anchor Tab Team
</p>
</body>
</html>
## Instruction:
Update invoice payment suceeded email.
## Code After:
<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%">
<tr class="header">
<th style="text-align: left">Description</th>
<th style="text-align: left">Period</th>
<th class="amount" style="text-align: right">Amount</th>
</tr>
<tr class="line-item">
<td class="line-item-description">The Influencer</td>
<td class="period">
<span class="period-start">2014-01-01</span>
to
<span class="period-end">2014-02-01</span>
</td>
<td class="amount" style="text-align: right">$10.00</td>
</tr>
<tr class="total-line-item">
<td colspan="2">
Total
</td>
<td class="invoice-total amount" style="text-align: right">
$99.99
</td>
</tr>
<tr class="payment-line-item">
<td colspan="2">
<span class="card-type">Visa</span>
**** **** ****
<span class="last-four">1234</span>
</td>
<td class="amount" style="text-align: right">
-$10.00
</td>
</tr>
</table>
<p>
Let us know if you need any assistance... or grapefruits.
</p>
<p>
Sincerely,<br>
The Anchor Tab Team
</p>
</body>
</html>
|
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-github-triage-actions'
path: ./actions
ref: v31
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Needs More Info Closer
uses: ./actions/needs-more-info-closer
with:
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
label: needs more info
closeDays: 7
additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH"
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
pingDays: 100
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
|
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-github-triage-actions'
path: ./actions
ref: v31
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Needs More Info Closer
uses: ./actions/needs-more-info-closer
with:
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
label: needs more info
closeDays: 7
additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH"
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
pingDays: 100
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
|
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,microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,Microsoft/vscode,Microsoft/vscode,Microsoft/vscode,microsoft/vscode,microsoft/vscode,microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,Microsoft/vscode,Microsoft/vscode,eamodio/vscode,eamodio/vscode,microsoft/vscode,eamodio/vscode,Microsoft/vscode,Microsoft/vscode,microsoft/vscode,eamodio/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,Krzysztof-Cieslak/vscode,eamodio/vscode,eamodio/vscode,Microsoft/vscode,microsoft/vscode,Microsoft/vscode,Microsoft/vscode,Krzysztof-Cieslak/vscode,microsoft/vscode
|
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: 'microsoft/vscode-github-triage-actions'
path: ./actions
ref: v31
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Needs More Info Closer
uses: ./actions/needs-more-info-closer
with:
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
label: needs more info
closeDays: 7
additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH"
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
pingDays: 100
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
## Instruction:
Add token to needs more info closer
## Code After:
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-github-triage-actions'
path: ./actions
ref: v31
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run Needs More Info Closer
uses: ./actions/needs-more-info-closer
with:
appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
label: needs more info
closeDays: 7
additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH"
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/vscodeissuereporting) guidelines.\n\nHappy Coding!"
pingDays: 100
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
|
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 column only
INTEGER :: k ! Loop index
REAL :: c ! Coefficient
REAL :: d ! Intermediate varibale
! CLAW definition
! Define two dimensions that will be added to the variables defined in the
! data clause.
! Apply the parallelization transformation on this subroutine.
!$claw define dimension i(1,nx) &
!$claw define dimension j(1,ny) &
!$claw parallelize data(q,t) over (i,j,:)
c = 5.345
DO k = 2, nz
t(k) = c * k
d = t(k) + c
q(k) = q(k - 1) + t(k) * c + d
END DO
q(nz) = q(nz) * c
END SUBROUTINE compute_column
END MODULE mo_column
|
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 column only
INTEGER :: k ! Loop index
REAL :: c ! Coefficient
REAL :: d ! Intermediate varibale
! CLAW definition
! Define two dimensions that will be added to the variables defined in the
! data clause.
! Apply the parallelization transformation on this subroutine.
!$claw define dimension i(1,nx) &
!$claw define dimension j(1,ny) &
!$claw parallelize
c = 5.345
DO k = 2, nz
t(k) = c * k
d = t(k) + c
q(k) = q(k - 1) + t(k) * c + d
END DO
q(nz) = q(nz) * c
END SUBROUTINE compute_column
END MODULE mo_column
|
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 declared as one column only
INTEGER :: k ! Loop index
REAL :: c ! Coefficient
REAL :: d ! Intermediate varibale
! CLAW definition
! Define two dimensions that will be added to the variables defined in the
! data clause.
! Apply the parallelization transformation on this subroutine.
!$claw define dimension i(1,nx) &
!$claw define dimension j(1,ny) &
!$claw parallelize data(q,t) over (i,j,:)
c = 5.345
DO k = 2, nz
t(k) = c * k
d = t(k) + c
q(k) = q(k - 1) + t(k) * c + d
END DO
q(nz) = q(nz) * c
END SUBROUTINE compute_column
END MODULE mo_column
## Instruction:
Remove the optional data/over clauses
## Code After:
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 column only
INTEGER :: k ! Loop index
REAL :: c ! Coefficient
REAL :: d ! Intermediate varibale
! CLAW definition
! Define two dimensions that will be added to the variables defined in the
! data clause.
! Apply the parallelization transformation on this subroutine.
!$claw define dimension i(1,nx) &
!$claw define dimension j(1,ny) &
!$claw parallelize
c = 5.345
DO k = 2, nz
t(k) = c * k
d = t(k) + c
q(k) = q(k - 1) + t(k) * c + d
END DO
q(nz) = q(nz) * c
END SUBROUTINE compute_column
END MODULE mo_column
|
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'
field:
element: 'hidden'
value: CURRENT_DATETIME
- name: 'published'
field:
element: 'hidden'
value: true
- name: 'tags'
field:
element: 'multiselect'
label: 'Tags'
help: 'Choose relevant tags'
alterable: false
options: [
'Agile',
'Culture',
'Design',
'Events',
'Innovation',
'Lean',
'Rails' ]
|
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'
field:
element: 'hidden'
value: CURRENT_DATETIME
- name: 'published'
field:
element: 'hidden'
value: true
- name: 'author'
field:
element: 'text'
label: 'Author'
- name: 'tags'
field:
element: 'multiselect'
label: 'Tags'
help: 'Choose relevant tags'
alterable: false
options: [
'Agile',
'Culture',
'Design',
'Events',
'Innovation',
'Lean',
'Rails' ]
|
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: 'date'
field:
element: 'hidden'
value: CURRENT_DATETIME
- name: 'published'
field:
element: 'hidden'
value: true
- name: 'tags'
field:
element: 'multiselect'
label: 'Tags'
help: 'Choose relevant tags'
alterable: false
options: [
'Agile',
'Culture',
'Design',
'Events',
'Innovation',
'Lean',
'Rails' ]
## Instruction:
Add author text field to prose config
## Code After:
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'
field:
element: 'hidden'
value: CURRENT_DATETIME
- name: 'published'
field:
element: 'hidden'
value: true
- name: 'author'
field:
element: 'text'
label: 'Author'
- name: 'tags'
field:
element: 'multiselect'
label: 'Tags'
help: 'Choose relevant tags'
alterable: false
options: [
'Agile',
'Culture',
'Design',
'Events',
'Innovation',
'Lean',
'Rails' ]
|
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;
border-collapse: separate;
}
/* Fix BibTeX alignment */
.label {
display: block !important; /* fix citation misaligned */
}
/* Remove the colon from the copyright text in the footer */
.footer>.container>p:last-child {
visibility: hidden;
position: absolute;
margin-top: -20px;
}
.footer>.container>p:last-child:after {
content: ' © Copyright 2017-2018 The appleseedhq Organization';
visibility: visible;
}
|
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,pjessesco/appleseed,Biart95/appleseed,Vertexwahn/appleseed,appleseedhq/appleseed,Biart95/appleseed,luisbarrancos/appleseed,Vertexwahn/appleseed,Vertexwahn/appleseed,aytekaman/appleseed,Biart95/appleseed,pjessesco/appleseed,dictoon/appleseed,appleseedhq/appleseed,luisbarrancos/appleseed,aytekaman/appleseed,dictoon/appleseed,pjessesco/appleseed,est77/appleseed,pjessesco/appleseed,Biart95/appleseed,aytekaman/appleseed,aytekaman/appleseed,appleseedhq/appleseed,est77/appleseed
|
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;
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;
border-collapse: separate;
}
/* Fix BibTeX alignment */
.label {
display: block !important; /* fix citation misaligned */
}
/* Remove the colon from the copyright text in the footer */
.footer>.container>p:last-child {
visibility: hidden;
position: absolute;
margin-top: -20px;
}
.footer>.container>p:last-child:after {
content: ' © Copyright 2017-2018 The appleseedhq Organization';
visibility: visible;
}
|
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/tools/kythe:verification_test
|
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/tools/verifier" verilog/tools/kythe:verification_test
|
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 <[email protected]>
|
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/verifier" verilog/tools/kythe:verification_test
## Instruction:
Make it simple to see the logs in case kythe verification test fails.
Signed-off-by: Henner Zeller <[email protected]>
## Code After:
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/tools/verifier" verilog/tools/kythe:verification_test
|
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>
</thead>
<tbody>
{{#each sortedMembers as |member|}}
<tr>
<td>{{#link-to 'dashboard.group-manager.group.details' member.group}}{{member.group.name}}{{/link-to}}</td>
<td>{{member.group.kind}}</td>
<td>{{member.group.status}}</td>
</tr>
{{else}}
<tr>
<td>(You are not listed as an Admin for any group. Please contact support for assistance.)</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</section>
<section class='col-md-6'>
<p>
<strong>Note:</strong> These are the groups for which you have Admin access. To get Admin access for a group, please contact an existing administrator or ask to be added as one through [email protected].
</p>
</section>
|
<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>
</thead>
<tbody>
{{#each sortedMembers as |member|}}
<tr>
<td>{{#link-to 'dashboard.group-manager.group.details' member.group}}{{member.group.name}}{{/link-to}}</td>
<td>{{member.group.kind}}</td>
<td>{{member.group.status}}</td>
</tr>
{{else}}
<tr>
<td>(You are not listed as an Admin for any group. Please contact support for assistance.)</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</section>
<section>
<p>
<strong>Note:</strong> These are the groups for which you have Admin access. To get Admin access for a group, please contact an existing administrator or ask to be added as one through [email protected].
</p>
</section>
|
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>
</tr>
</thead>
<tbody>
{{#each sortedMembers as |member|}}
<tr>
<td>{{#link-to 'dashboard.group-manager.group.details' member.group}}{{member.group.name}}{{/link-to}}</td>
<td>{{member.group.kind}}</td>
<td>{{member.group.status}}</td>
</tr>
{{else}}
<tr>
<td>(You are not listed as an Admin for any group. Please contact support for assistance.)</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</section>
<section class='col-md-6'>
<p>
<strong>Note:</strong> These are the groups for which you have Admin access. To get Admin access for a group, please contact an existing administrator or ask to be added as one through [email protected].
</p>
</section>
## Instruction:
Remove grid from group manager note
## Code After:
<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>
</thead>
<tbody>
{{#each sortedMembers as |member|}}
<tr>
<td>{{#link-to 'dashboard.group-manager.group.details' member.group}}{{member.group.name}}{{/link-to}}</td>
<td>{{member.group.kind}}</td>
<td>{{member.group.status}}</td>
</tr>
{{else}}
<tr>
<td>(You are not listed as an Admin for any group. Please contact support for assistance.)</td>
</tr>
{{/each}}
</tbody>
</table>
</div>
</section>
<section>
<p>
<strong>Note:</strong> These are the groups for which you have Admin access. To get Admin access for a group, please contact an existing administrator or ask to be added as one through [email protected].
</p>
</section>
|
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 in Haskell and the package can be easily and reproducibly built with
Stack.
```bash
stack setup # if you need to set up a GHC environment that is separate from your system
stack build
```
# Running
You can use the executable file generated by Stack to perform a wide variety of
tasks. For more information, run this command:
```bash
stack exec blog-src -h
```
|
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 in Haskell and the package can be easily and reproducibly built with
Stack.
```bash
stack setup # if you need to set up a GHC environment that is separate from your system
stack build
```
# Running
You can use the executable file generated by Stack to perform a wide variety of
tasks. For more information, run this command:
```bash
stack exec blog-src -h
```
To build the `.sass` files, you will need to install the [Sass executable](https://sass-lang.com/install).
|
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 whole
source is in Haskell and the package can be easily and reproducibly built with
Stack.
```bash
stack setup # if you need to set up a GHC environment that is separate from your system
stack build
```
# Running
You can use the executable file generated by Stack to perform a wide variety of
tasks. For more information, run this command:
```bash
stack exec blog-src -h
```
## Instruction:
[ci-skip] Add part on building .sass files
## Code After:
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 in Haskell and the package can be easily and reproducibly built with
Stack.
```bash
stack setup # if you need to set up a GHC environment that is separate from your system
stack build
```
# Running
You can use the executable file generated by Stack to perform a wide variety of
tasks. For more information, run this command:
```bash
stack exec blog-src -h
```
To build the `.sass` files, you will need to install the [Sass executable](https://sass-lang.com/install).
|
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 ckeditor assets, that cant be used with digest'
task copy_nondigest_assets: :environment do
copy_assets(/ckeditor\/contents.css/)
copy_assets(/ckeditor\/config.js/)
copy_assets(/ckeditor\/lang\/en.js/)
copy_assets(/ckeditor\/styles.js/)
copy_assets(/ckeditor\/skins\/moono\/.+png/)
copy_assets(/ckeditor\/skins\/moono\/.+css/)
end
end
|
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 ckeditor assets, that cant be used with digest'
task copy_nondigest_assets: :environment do
copy_assets(/ckeditor\/contents.css/)
copy_assets(/ckeditor\/config.js/)
copy_assets(/ckeditor\/lang\/en.js/)
copy_assets(/ckeditor\/styles.js/)
copy_assets(/ckeditor\/skins\/moono\/.+png/)
copy_assets(/ckeditor\/skins\/moono\/.+css/)
copy_assets(/ckeditor\/plugins\/.+js/)
end
end
|
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
desc 'Copy ckeditor assets, that cant be used with digest'
task copy_nondigest_assets: :environment do
copy_assets(/ckeditor\/contents.css/)
copy_assets(/ckeditor\/config.js/)
copy_assets(/ckeditor\/lang\/en.js/)
copy_assets(/ckeditor\/styles.js/)
copy_assets(/ckeditor\/skins\/moono\/.+png/)
copy_assets(/ckeditor\/skins\/moono\/.+css/)
end
end
## Instruction:
Add plugins to asset copying
## Code After:
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 ckeditor assets, that cant be used with digest'
task copy_nondigest_assets: :environment do
copy_assets(/ckeditor\/contents.css/)
copy_assets(/ckeditor\/config.js/)
copy_assets(/ckeditor\/lang\/en.js/)
copy_assets(/ckeditor\/styles.js/)
copy_assets(/ckeditor\/skins\/moono\/.+png/)
copy_assets(/ckeditor\/skins\/moono\/.+css/)
copy_assets(/ckeditor\/plugins\/.+js/)
end
end
|
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 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.
|
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) != 0
end
end
|
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: auto;
}
.label {
font-size: 12px;
}
|
@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: 12px;
-webkit-font-smoothing: antialiased;
}
|
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;
shape-rendering: auto;
}
.label {
font-size: 12px;
}
## Instruction:
Remove dominant-baseline style because it isn't supported by IE
## Code After:
@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: 12px;
-webkit-font-smoothing: antialiased;
}
|
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:Manage metadata for analog photography
Description:
Photographer's Notebook is an app to store and manage metadata of
analogue photos. It is meant to replace the usual paper-based
notebooks photographers use to document camera settings in analogue
photography.
[https://bitbucket.org/sdraxler/photographers-notebook/src/tip/Photographers/docs/changelog.txt Changelog]
.
Repo Type:hg
Repo:https://bitbucket.org/sdraxler/photographers-notebook
Build:Beta v4,4
commit=v4
subdir=Photographers
Build:Beta v5,5
commit=v5
subdir=Photographers
Build:Beta v5.1,6
commit=v5.1
subdir=Photographers
Build:Beta v6,7
disable=wait for upstream
commit=v6
subdir=Photographers
Maintainer Notes:
Check integrity of xstream jar again if it's updated.
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:Beta v5.2
Current Version Code:7
|
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:Manage metadata for analog photography
Description:
Photographer's Notebook is an app to store and manage metadata of
analogue photos. It is meant to replace the usual paper-based
notebooks photographers use to document camera settings in analogue
photography.
[https://bitbucket.org/sdraxler/photographers-notebook/src/tip/Photographers/docs/changelog.txt Changelog]
.
Repo Type:hg
Repo:https://bitbucket.org/sdraxler/photographers-notebook
Build:Beta v4,4
commit=v4
subdir=Photographers
Build:Beta v5,5
commit=v5
subdir=Photographers
Build:Beta v5.1,6
commit=v5.1
subdir=Photographers
Build:Beta v5.2,7
commit=v5.2
subdir=Photographers
Build:Beta v6,8
disable=wait for upstream
commit=v6
subdir=Photographers
Maintainer Notes:
Check integrity of xstream jar again if it's updated.
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:Beta v5.2
Current Version Code:7
|
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:Photographer's
Summary:Manage metadata for analog photography
Description:
Photographer's Notebook is an app to store and manage metadata of
analogue photos. It is meant to replace the usual paper-based
notebooks photographers use to document camera settings in analogue
photography.
[https://bitbucket.org/sdraxler/photographers-notebook/src/tip/Photographers/docs/changelog.txt Changelog]
.
Repo Type:hg
Repo:https://bitbucket.org/sdraxler/photographers-notebook
Build:Beta v4,4
commit=v4
subdir=Photographers
Build:Beta v5,5
commit=v5
subdir=Photographers
Build:Beta v5.1,6
commit=v5.1
subdir=Photographers
Build:Beta v6,7
disable=wait for upstream
commit=v6
subdir=Photographers
Maintainer Notes:
Check integrity of xstream jar again if it's updated.
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:Beta v5.2
Current Version Code:7
## Instruction:
Update Photographer's Notebook to v5.2 (7)
## Code After:
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:Manage metadata for analog photography
Description:
Photographer's Notebook is an app to store and manage metadata of
analogue photos. It is meant to replace the usual paper-based
notebooks photographers use to document camera settings in analogue
photography.
[https://bitbucket.org/sdraxler/photographers-notebook/src/tip/Photographers/docs/changelog.txt Changelog]
.
Repo Type:hg
Repo:https://bitbucket.org/sdraxler/photographers-notebook
Build:Beta v4,4
commit=v4
subdir=Photographers
Build:Beta v5,5
commit=v5
subdir=Photographers
Build:Beta v5.1,6
commit=v5.1
subdir=Photographers
Build:Beta v5.2,7
commit=v5.2
subdir=Photographers
Build:Beta v6,8
disable=wait for upstream
commit=v6
subdir=Photographers
Maintainer Notes:
Check integrity of xstream jar again if it's updated.
.
Auto Update Mode:None
Update Check Mode:Tags
Current Version:Beta v5.2
Current Version Code:7
|
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>
</openerp>
|
<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>
</openerp>
|
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>
</data>
</openerp>
## Instruction:
Revert "Enable organization moderation for coordinators from the middle level only"
This reverts commit c23c6ea85021506c85d7c3ad036438cd038afbc0.
The reason is that it breaks Runbot build.
## Code After:
<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>
</openerp>
|
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 Haugland",
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^3.14.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"mocha": "^3.2.0",
"mock-fs": "^4.4.1"
},
"dependencies": {
"commander": "^2.9.0",
"find-config": "^1.0.0",
"prompt": "^1.0.0",
"readdirp": "^2.1.0",
"readline": "^1.3.0",
"user-home": "^2.0.0"
}
}
|
{
"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 Haugland",
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^3.14.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"mocha": "^3.2.0",
"mock-fs": "^4.4.1"
},
"dependencies": {
"colors": "^1.1.2",
"commander": "^2.9.0",
"find-config": "^1.0.0",
"prompt": "^1.0.0",
"readdirp": "^2.1.0",
"readline": "^1.3.0",
"user-home": "^2.0.0"
}
}
|
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": "Tormod Haugland",
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^3.14.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"mocha": "^3.2.0",
"mock-fs": "^4.4.1"
},
"dependencies": {
"commander": "^2.9.0",
"find-config": "^1.0.0",
"prompt": "^1.0.0",
"readdirp": "^2.1.0",
"readline": "^1.3.0",
"user-home": "^2.0.0"
}
}
## Instruction:
Add "color" dependency for color printing in terminal
## Code After:
{
"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 Haugland",
"license": "MIT",
"devDependencies": {
"chai": "^3.5.0",
"eslint": "^3.14.0",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^2.0.1",
"mocha": "^3.2.0",
"mock-fs": "^4.4.1"
},
"dependencies": {
"colors": "^1.1.2",
"commander": "^2.9.0",
"find-config": "^1.0.0",
"prompt": "^1.0.0",
"readdirp": "^2.1.0",
"readline": "^1.3.0",
"user-home": "^2.0.0"
}
}
|
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");
app.set("view engine", "jade");
app.use(express.favicon());
app.use(express.logger("dev"));
app.use(express.bodyParser({
uploadDir: __dirname + "/uploads"
}));
app.use(express.methodOverride());
app.use(express.static(__dirname + "/public"));
app.use(express.cookieParser());
I18n.expressBind(app, {
locales: config.locales
});
});
app.configure("development", function () {
app.use(express.errorHandler());
});
app.use(require("./middleware/set-locale"));
app.use(require("./middleware/load-navigation"));
app.use(require("./middleware/build-breadcrumbs"));
app.use(require("./middleware/load-page"));
app.use(app.router);
require("./routes")(app);
module.exports = app;
|
"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");
app.set("view engine", "jade");
app.use(express.favicon());
app.use(express.logger("dev"));
app.use(express.bodyParser({
uploadDir: __dirname + "/uploads"
}));
app.use(express.cookieParser());
app.use(express.methodOverride());
I18n.expressBind(app, {
locales: config.locales
});
app.use(express.static(__dirname + "/public"));
});
app.configure("development", function () {
app.use(express.errorHandler());
});
app.use(require("./middleware/set-locale"));
app.use(require("./middleware/load-navigation"));
app.use(require("./middleware/build-breadcrumbs"));
app.use(require("./middleware/load-page"));
app.use(app.router);
require("./routes")(app);
module.exports = app;
|
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", __dirname + "/views");
app.set("view engine", "jade");
app.use(express.favicon());
app.use(express.logger("dev"));
app.use(express.bodyParser({
uploadDir: __dirname + "/uploads"
}));
app.use(express.methodOverride());
app.use(express.static(__dirname + "/public"));
app.use(express.cookieParser());
I18n.expressBind(app, {
locales: config.locales
});
});
app.configure("development", function () {
app.use(express.errorHandler());
});
app.use(require("./middleware/set-locale"));
app.use(require("./middleware/load-navigation"));
app.use(require("./middleware/build-breadcrumbs"));
app.use(require("./middleware/load-page"));
app.use(app.router);
require("./routes")(app);
module.exports = app;
## Instruction:
Revert "Attempt to fix file upload issue"
This reverts commit 88b247bdf20748cb2419331461b0208a1c73a2d5.
## Code After:
"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");
app.set("view engine", "jade");
app.use(express.favicon());
app.use(express.logger("dev"));
app.use(express.bodyParser({
uploadDir: __dirname + "/uploads"
}));
app.use(express.cookieParser());
app.use(express.methodOverride());
I18n.expressBind(app, {
locales: config.locales
});
app.use(express.static(__dirname + "/public"));
});
app.configure("development", function () {
app.use(express.errorHandler());
});
app.use(require("./middleware/set-locale"));
app.use(require("./middleware/load-navigation"));
app.use(require("./middleware/build-breadcrumbs"));
app.use(require("./middleware/load-page"));
app.use(app.router);
require("./routes")(app);
module.exports = app;
|
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_remove = []
for t, timeouts in TIMEOUTS.items():
if now >= t:
for timeout in timeouts:
timeout()
to_remove.append(t)
for k in to_remove:
del TIMEOUTS[k]
def error_message(*args, **kwargs):
print(args, kwargs)
class Region(object):
def __init__(*args, **kwargs):
pass
|
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()
to_remove = []
for t, timeouts in TIMEOUTS.items():
if now >= t:
for timeout in timeouts:
timeout()
to_remove.append(t)
for k in to_remove:
del TIMEOUTS[k]
def error_message(*args, **kwargs):
print(args, kwargs)
class Region(object):
def __init__(*args, **kwargs):
pass
|
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.time()
to_remove = []
for t, timeouts in TIMEOUTS.items():
if now >= t:
for timeout in timeouts:
timeout()
to_remove.append(t)
for k in to_remove:
del TIMEOUTS[k]
def error_message(*args, **kwargs):
print(args, kwargs)
class Region(object):
def __init__(*args, **kwargs):
pass
## Instruction:
Fix off by 1000 error
## Code After:
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()
to_remove = []
for t, timeouts in TIMEOUTS.items():
if now >= t:
for timeout in timeouts:
timeout()
to_remove.append(t)
for k in to_remove:
del TIMEOUTS[k]
def error_message(*args, **kwargs):
print(args, kwargs)
class Region(object):
def __init__(*args, **kwargs):
pass
|
048ec6f512984b5bab11062464d6b04fd5b94b74
|
install_dependencies.osx.sh
|
install_dependencies.osx.sh
|
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump [email protected] gpgme swig
|
brew unlink [email protected] && brew link --overwrite [email protected]
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump [email protected] 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 [email protected] gpgme swig
## Instruction:
Work around an issue with GitHub macOS runners
## Code After:
brew unlink [email protected] && brew link --overwrite [email protected]
brew update 1>/dev/null
brew install -q libffi gnupg2 pgpdump [email protected] gpgme swig
|
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)
file in the source repository.
|
======
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 Engine,
included in the package source. To install, follow the instructions in the
`ode/README.md`_ file in the source repository.
.. _ode/README.md: https://github.com/EmbodiedCognition/pagoda/tree/master/ode
|
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/tree/master/ode)
file in the source repository.
## Instruction:
Update RST file to RST syntax.
## Code After:
======
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 Engine,
included in the package source. To install, follow the instructions in the
`ode/README.md`_ file in the source repository.
.. _ode/README.md: https://github.com/EmbodiedCognition/pagoda/tree/master/ode
|
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;
use Test::More tests => 1;
{
# TEST
ok (!system($^X, "-c", "Games/Impatience.pm"),
"solitaire.pl compiles.");
}
|
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
padding 0 6px !important
height auto !important
top 6px !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, styles similar to Google Maps itself
input.map-search-box {
font-size 15px
line-height 20px
font-weight 300
width 300px
margin 0 !important
padding 0 6px !important
height auto !important
top 6px !important
}
|
5a130ac8dcc2e1a7cd5d12ff84e67d6f664be70a
|
groups/sig-cluster-lifecycle/groups.yaml
|
groups/sig-cluster-lifecycle/groups.yaml
|
groups:
- email-id: [email protected]
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
owners:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
members:
- [email protected]
- email-id: [email protected]
name: sig-cluster-lifecycle-kubeadm-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
|
groups:
- email-id: [email protected]
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- email-id: [email protected]
name: sig-cluster-lifecycle-kubeadm-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
|
Reduce permissions on [email protected] to member only.
|
Reduce permissions on [email protected]
to member only.
Owner membership not needed.
Signed-off-by: Naadir Jeewa <[email protected]>
|
YAML
|
apache-2.0
|
kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io
|
yaml
|
## Code Before:
groups:
- email-id: [email protected]
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
owners:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
members:
- [email protected]
- email-id: [email protected]
name: sig-cluster-lifecycle-kubeadm-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
## Instruction:
Reduce permissions on [email protected]
to member only.
Owner membership not needed.
Signed-off-by: Naadir Jeewa <[email protected]>
## Code After:
groups:
- email-id: [email protected]
name: sig-cluster-lifecycle-cluster-api-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- email-id: [email protected]
name: sig-cluster-lifecycle-kubeadm-alerts
description: |-
settings:
WhoCanPostMessage: "ANYONE_CAN_POST"
ReconcileMembers: "true"
members:
- [email protected]
- [email protected]
|
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','Reference','Alarms']
- ['reference/hostgroups.md','Reference','Host Groups']
- ['reference/measurements.md','Reference','Measurements']
- ['reference/metrics.md','Reference','Metrics']
- ['reference/plugins.md','Reference','Plugins']
|
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','Reference','Alarms']
- ['reference/hostgroups.md','Reference','Host Groups']
- ['reference/measurements.md','Reference','Measurements']
- ['reference/metrics.md','Reference','Metrics']
- ['reference/plugins.md','Reference','Plugins']
- ['reference/sources.md','Reference','Sources']
|
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/alarms.md','Reference','Alarms']
- ['reference/hostgroups.md','Reference','Host Groups']
- ['reference/measurements.md','Reference','Measurements']
- ['reference/metrics.md','Reference','Metrics']
- ['reference/plugins.md','Reference','Plugins']
## Instruction:
Add sources documentation to table of contents
## Code After:
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','Reference','Alarms']
- ['reference/hostgroups.md','Reference','Host Groups']
- ['reference/measurements.md','Reference','Measurements']
- ['reference/metrics.md','Reference','Metrics']
- ['reference/plugins.md','Reference','Plugins']
- ['reference/sources.md','Reference','Sources']
|
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.publish(new Space.accountsUi.LoginRequested({
user: this.$('.email').val(),
password: new Password(this.$('.password').val())
}));
}
});
Donations.OrgLoginForm.register('login_form');
|
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(event) {
if(event.keyCode === this.ENTER) {
this._onSubmit(event)
}
},
_onSubmit(event) {
event.preventDefault();
this.publish(new Space.accountsUi.LoginRequested({
user: this.$('.email').val(),
password: new Password(this.$('.password').val())
}));
}
});
Donations.OrgLoginForm.register('login_form');
|
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();
this.publish(new Space.accountsUi.LoginRequested({
user: this.$('.email').val(),
password: new Password(this.$('.password').val())
}));
}
});
Donations.OrgLoginForm.register('login_form');
## Instruction:
Add enter keymap to login
## Code After:
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(event) {
if(event.keyCode === this.ENTER) {
this._onSubmit(event)
}
},
_onSubmit(event) {
event.preventDefault();
this.publish(new Space.accountsUi.LoginRequested({
user: this.$('.email').val(),
password: new Password(this.$('.password').val())
}));
}
});
Donations.OrgLoginForm.register('login_form');
|
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
attr_accessor :calls
def initialize
@calls = []
end
def call(*args)
calls << args
end
end
def setup
super
@connection = ActiveRecord::Base.connection
@listener = LogListener.new
@pk = Topic.columns.find { |c| c.primary }
ActiveSupport::Notifications.subscribe('sql.active_record', @listener)
end
def teardown
ActiveSupport::Notifications.unsubscribe(@listener)
end
def test_coerced_binds_are_logged
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, 1]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal binds, message[4][:binds]
end
def test_coerced_binds_are_logged_after_type_cast
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, "3"]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal [[@pk, 3]], message[4][:binds]
end
end
|
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 BindParameterTest
def test_binds_are_logged
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, 1]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal binds, message[4][:binds]
end
def test_binds_are_logged_after_type_cast
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, "3"]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal [[@pk, 3]], message[4][:binds]
end
end
end
|
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/activerecord-sqlserver-adapter,faisalmansoor/activerecord-sqlserver-adapter,andretf/activerecord-sqlserver-adapter,Wirachmat/activerecord-sqlserver-adapter,andretf/activerecord-sqlserver-adapter,0x00evil/activerecord-sqlserver-adapter,rails-sqlserver/activerecord-sqlserver-adapter,mcdba/activerecord-sqlserver-adapter,mcdba/activerecord-sqlserver-adapter
|
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 LogListener
attr_accessor :calls
def initialize
@calls = []
end
def call(*args)
calls << args
end
end
def setup
super
@connection = ActiveRecord::Base.connection
@listener = LogListener.new
@pk = Topic.columns.find { |c| c.primary }
ActiveSupport::Notifications.subscribe('sql.active_record', @listener)
end
def teardown
ActiveSupport::Notifications.unsubscribe(@listener)
end
def test_coerced_binds_are_logged
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, 1]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal binds, message[4][:binds]
end
def test_coerced_binds_are_logged_after_type_cast
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, "3"]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal [[@pk, 3]], message[4][:binds]
end
end
## Instruction:
Fix how we are checking bind tests, can't use coerce since the test methods are defined in an if block
## Code After:
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 BindParameterTest
def test_binds_are_logged
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, 1]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal binds, message[4][:binds]
end
def test_binds_are_logged_after_type_cast
sub = @connection.substitute_at(@pk, 0)
binds = [[@pk, "3"]]
sql = "select * from topics where id = #{sub}"
@connection.exec_query(sql, 'SQL', binds)
message = @listener.calls.find { |args| args[4][:sql].include? sql }
assert_equal [[@pk, 3]], message[4][:binds]
end
end
end
|
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 runtest
- ./configure --enable-openssl && make && make runtest
|
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(@options)
UI.info 'Guard::Spinoff Initialized'
end
def launch(action)
UI.info "#{action}ing Spinoff", :reset => true
start_server
end
def kill
@server.kill if @server
end
def run(paths)
::Spinoff::Client.start(Array(paths))
end
def run_all
if rspec?
run('spec')
elsif test_unit?
run('test')
end
end
private
def init_config(options)
{}.tap do |config|
config[:init_script] = options[:init]
config[:test_framework] = :rspec if rspec?
config[:test_framework] = :testunit if test_unit?
end
end
def start_server
unless @config[:test_framework]
raise "No :runner guard option set!"
end
@server ||= Thread.new do
::Spinoff::Server.start(@config)
end
end
def rspec?
options[:runner] == :rspec
end
def test_unit?
options[:runner] == :test_unit
end
end
end
end
|
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(@options)
UI.info 'Guard::Spinoff Initialized'
end
def launch(action)
UI.info "#{action}ing Spinoff", :reset => true
start_server
end
def kill
@server.kill if @server
end
def run(paths)
::Spinoff::Client.start(Array(paths))
end
def run_all
if rspec?
run(options[:test_paths] || 'spec')
elsif test_unit?
run(options[:test_paths] || 'test')
end
end
private
def init_config(options)
{}.tap do |config|
config[:init_script] = options[:init]
config[:test_framework] = :rspec if rspec?
config[:test_framework] = :testunit if test_unit?
end
end
def start_server
unless @config[:test_framework]
raise "No :runner guard option set!"
end
@server ||= Thread.new do
::Spinoff::Server.start(@config)
end
end
def rspec?
options[:runner] == :rspec
end
def test_unit?
options[:runner] == :test_unit
end
end
end
end
|
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
@config = init_config(@options)
UI.info 'Guard::Spinoff Initialized'
end
def launch(action)
UI.info "#{action}ing Spinoff", :reset => true
start_server
end
def kill
@server.kill if @server
end
def run(paths)
::Spinoff::Client.start(Array(paths))
end
def run_all
if rspec?
run('spec')
elsif test_unit?
run('test')
end
end
private
def init_config(options)
{}.tap do |config|
config[:init_script] = options[:init]
config[:test_framework] = :rspec if rspec?
config[:test_framework] = :testunit if test_unit?
end
end
def start_server
unless @config[:test_framework]
raise "No :runner guard option set!"
end
@server ||= Thread.new do
::Spinoff::Server.start(@config)
end
end
def rspec?
options[:runner] == :rspec
end
def test_unit?
options[:runner] == :test_unit
end
end
end
end
## Instruction:
Add :test_paths option to set the default path to the tests.
## Code After:
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(@options)
UI.info 'Guard::Spinoff Initialized'
end
def launch(action)
UI.info "#{action}ing Spinoff", :reset => true
start_server
end
def kill
@server.kill if @server
end
def run(paths)
::Spinoff::Client.start(Array(paths))
end
def run_all
if rspec?
run(options[:test_paths] || 'spec')
elsif test_unit?
run(options[:test_paths] || 'test')
end
end
private
def init_config(options)
{}.tap do |config|
config[:init_script] = options[:init]
config[:test_framework] = :rspec if rspec?
config[:test_framework] = :testunit if test_unit?
end
end
def start_server
unless @config[:test_framework]
raise "No :runner guard option set!"
end
@server ||= Thread.new do
::Spinoff::Server.start(@config)
end
end
def rspec?
options[:runner] == :rspec
end
def test_unit?
options[:runner] == :test_unit
end
end
end
end
|
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 --version
script:
- flake8
- py.test --verbose --cov=eventum tests/
after_success:
- pip install python-coveralls && coveralls
|
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 install sass
- pip install -U pytest flake8 pytest-cov
install:
- pip install -e .
before_script:
- mongod --version
- pip freeze
- sass --version
script:
- flake8
- py.test --verbose --cov=eventum tests/
after_success:
- if [[ $COVERAGE == "TRUE" ]]; then pip install python-coveralls && coveralls; fi
|
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 freeze
- sass --version
script:
- flake8
- py.test --verbose --cov=eventum tests/
after_success:
- pip install python-coveralls && coveralls
## Instruction:
Test against Python 3.5 and PyPy
## Code After:
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 install sass
- pip install -U pytest flake8 pytest-cov
install:
- pip install -e .
before_script:
- mongod --version
- pip freeze
- sass --version
script:
- flake8
- py.test --verbose --cov=eventum tests/
after_success:
- if [[ $COVERAGE == "TRUE" ]]; then pip install python-coveralls && coveralls; fi
|
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 -E ./scripts/travis/travis_install.sh
# change permissions for installed python packages
sudo chown travis:travis -R /home/travis/miniconda
# Build source
cp Makefile.config.example Makefile.config
sed -i 's/# CPU_ONLY/CPU_ONLY/g' Makefile.config
sed -i 's/USE_CUDNN/#USE_CUDNN/g' Makefile.config
make --jobs=$NUM_THREADS --silent all
make --jobs=$NUM_THREADS --silent pycaffe
# Install python dependencies
# conda (fast)
conda install --yes --quiet cython nose ipython h5py pandas python-gflags
# pip (slow)
for req in $(cat python/requirements.txt); do pip install $req; done
|
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 -E ./scripts/travis/travis_install.sh
# change permissions for installed python packages
sudo chown travis:travis -R /home/travis/miniconda
# Build source
cp Makefile.config.example Makefile.config
sed -i 's/# CPU_ONLY/CPU_ONLY/g' Makefile.config
sed -i 's/USE_CUDNN/#USE_CUDNN/g' Makefile.config
make --jobs=$NUM_THREADS --silent all
make --jobs=$NUM_THREADS --silent pycaffe
# Install python dependencies
# conda (fast)
conda install --yes --quiet cython nose ipython h5py pandas python-gflags
# XXX
conda list
pip list
# pip (slow)
for req in $(cat python/requirements.txt); do pip install $req; done
|
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 dependencies
sudo -E ./scripts/travis/travis_install.sh
# change permissions for installed python packages
sudo chown travis:travis -R /home/travis/miniconda
# Build source
cp Makefile.config.example Makefile.config
sed -i 's/# CPU_ONLY/CPU_ONLY/g' Makefile.config
sed -i 's/USE_CUDNN/#USE_CUDNN/g' Makefile.config
make --jobs=$NUM_THREADS --silent all
make --jobs=$NUM_THREADS --silent pycaffe
# Install python dependencies
# conda (fast)
conda install --yes --quiet cython nose ipython h5py pandas python-gflags
# pip (slow)
for req in $(cat python/requirements.txt); do pip install $req; done
## Instruction:
Print conda and pip lists
## Code After:
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 -E ./scripts/travis/travis_install.sh
# change permissions for installed python packages
sudo chown travis:travis -R /home/travis/miniconda
# Build source
cp Makefile.config.example Makefile.config
sed -i 's/# CPU_ONLY/CPU_ONLY/g' Makefile.config
sed -i 's/USE_CUDNN/#USE_CUDNN/g' Makefile.config
make --jobs=$NUM_THREADS --silent all
make --jobs=$NUM_THREADS --silent pycaffe
# Install python dependencies
# conda (fast)
conda install --yes --quiet cython nose ipython h5py pandas python-gflags
# XXX
conda list
pip list
# pip (slow)
for req in $(cat python/requirements.txt); do pip install $req; done
|
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/plain", "Hello, World!");
});
}
void setup() {
meta.version = 3;
// Setup config manager
configManager.setAPName("Demo");
configManager.setAPFilename("/index.html");
configManager.addParameter("name", config.name, 20);
configManager.addParameter("enabled", &config.enabled);
configManager.addParameter("hour", &config.hour);
configManager.addParameter("password", config.password, 20, set);
configManager.addParameter("version", &meta.version, get);
configManager.begin(config);
configManager.setAPICallback(createCustomRoute);
//
}
void loop() {
configManager.loop();
// Add your loop code here
}
|
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/plain", "Hello, World!");
});
}
void setup() {
meta.version = 3;
// Setup config manager
configManager.setAPName("Demo");
configManager.setAPFilename("/index.html");
configManager.addParameter("name", config.name, 20);
configManager.addParameter("enabled", &config.enabled);
configManager.addParameter("hour", &config.hour);
configManager.addParameter("password", config.password, 20, set);
configManager.addParameter("version", &meta.version, get);
configManager.setAPICallback(createCustomRoute);
configManager.begin(config);
//
}
void loop() {
configManager.loop();
// Add your loop code here
}
|
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->send(200, "text/plain", "Hello, World!");
});
}
void setup() {
meta.version = 3;
// Setup config manager
configManager.setAPName("Demo");
configManager.setAPFilename("/index.html");
configManager.addParameter("name", config.name, 20);
configManager.addParameter("enabled", &config.enabled);
configManager.addParameter("hour", &config.hour);
configManager.addParameter("password", config.password, 20, set);
configManager.addParameter("version", &meta.version, get);
configManager.begin(config);
configManager.setAPICallback(createCustomRoute);
//
}
void loop() {
configManager.loop();
// Add your loop code here
}
## Instruction:
Move begin down in example
## Code After:
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/plain", "Hello, World!");
});
}
void setup() {
meta.version = 3;
// Setup config manager
configManager.setAPName("Demo");
configManager.setAPFilename("/index.html");
configManager.addParameter("name", config.name, 20);
configManager.addParameter("enabled", &config.enabled);
configManager.addParameter("hour", &config.hour);
configManager.addParameter("password", config.password, 20, set);
configManager.addParameter("version", &meta.version, get);
configManager.setAPICallback(createCustomRoute);
configManager.begin(config);
//
}
void loop() {
configManager.loop();
// Add your loop code here
}
|
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)
sleep(random::<u8>() as u64);
println!("{}", s);
});
}
}
|
// 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 (so an integer from 0 to 255)
sleep(Duration::milliseconds(random::<u8>() as i32));
println!("{}", s);
});
}
}
|
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 0 to 255)
sleep(random::<u8>() as u64);
println!("{}", s);
});
}
}
## Instruction:
Fix use of sleep function after api change
## Code After:
// 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 (so an integer from 0 to 255)
sleep(Duration::milliseconds(random::<u8>() as i32));
println!("{}", s);
});
}
}
|
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
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
}
CustomInstallStep() {
Remove ${NACLPORTS_LIBDIR}/${LIB_GTEST}
install -m 644 ${LIB_GTEST} ${NACLPORTS_LIBDIR}/${LIB_GTEST}
Remove ${NACLPORTS_INCLUDE}/gtest
cp -r include/gtest ${NACLPORTS_INCLUDE}/gtest
DefaultTouchStep
}
CustomPackageInstall() {
DefaultPreInstallStep
DefaultDownloadZipStep
DefaultExtractZipStep
DefaultPatchStep
CustomConfigureStep
DefaultBuildStep
CustomInstallStep
DefaultCleanUpStep
}
CustomPackageInstall
exit 0
|
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
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
}
CustomInstallStep() {
# Add chmod here since gtest archive contains readonly files we don't
# want installed files to be readonly
LogExecute chmod -R +w .
Remove ${NACLPORTS_LIBDIR}/${LIB_GTEST}
LogExecute install -m 644 ${LIB_GTEST} ${NACLPORTS_LIBDIR}/${LIB_GTEST}
Remove ${NACLPORTS_INCLUDE}/gtest
LogExecute cp -r include/gtest ${NACLPORTS_INCLUDE}/gtest
DefaultTouchStep
}
CustomPackageInstall() {
DefaultPreInstallStep
DefaultDownloadZipStep
DefaultExtractZipStep
DefaultPatchStep
CustomConfigureStep
DefaultBuildStep
CustomInstallStep
DefaultCleanUpStep
}
CustomPackageInstall
exit 0
|
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,kuscsik/naclports,dtkav/naclports,dtkav/naclports,clchiou/naclports,kosyak/naclports_samsung-smart-tv,kosyak/naclports_samsung-smart-tv,Schibum/naclports,dtkav/naclports,Schibum/naclports,adlr/naclports,clchiou/naclports,kosyak/naclports_samsung-smart-tv,adlr/naclports,dtkav/naclports,binji/naclports,Schibum/naclports,dtkav/naclports,binji/naclports,clchiou/naclports,binji/naclports,kuscsik/naclports,adlr/naclports,clchiou/naclports,yeyus/naclports,adlr/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=libgtest.a
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
}
CustomInstallStep() {
Remove ${NACLPORTS_LIBDIR}/${LIB_GTEST}
install -m 644 ${LIB_GTEST} ${NACLPORTS_LIBDIR}/${LIB_GTEST}
Remove ${NACLPORTS_INCLUDE}/gtest
cp -r include/gtest ${NACLPORTS_INCLUDE}/gtest
DefaultTouchStep
}
CustomPackageInstall() {
DefaultPreInstallStep
DefaultDownloadZipStep
DefaultExtractZipStep
DefaultPatchStep
CustomConfigureStep
DefaultBuildStep
CustomInstallStep
DefaultCleanUpStep
}
CustomPackageInstall
exit 0
## Instruction:
Make installed gtest headers writable
git-svn-id: 84b3587ce119b778414dcb50e18b7479aacf4f1d@722 7dad1e8b-422e-d2af-fbf5-8013b78bd812
## Code After:
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
ChangeDir ${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
}
CustomInstallStep() {
# Add chmod here since gtest archive contains readonly files we don't
# want installed files to be readonly
LogExecute chmod -R +w .
Remove ${NACLPORTS_LIBDIR}/${LIB_GTEST}
LogExecute install -m 644 ${LIB_GTEST} ${NACLPORTS_LIBDIR}/${LIB_GTEST}
Remove ${NACLPORTS_INCLUDE}/gtest
LogExecute cp -r include/gtest ${NACLPORTS_INCLUDE}/gtest
DefaultTouchStep
}
CustomPackageInstall() {
DefaultPreInstallStep
DefaultDownloadZipStep
DefaultExtractZipStep
DefaultPatchStep
CustomConfigureStep
DefaultBuildStep
CustomInstallStep
DefaultCleanUpStep
}
CustomPackageInstall
exit 0
|
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 scroll position from store.
(new MutationObserver((mutations) => {
for (const mutation of mutations) for (const node of mutation.addedNodes) for (const el of node.querySelectorAll('[scroller]')) el.scrollTop = this.positions[el.getAttribute('scroller')];
})).observe(document.getElementById('root'), {
childList: true,
subtree: true
});
}
};
|
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 scroll position from store.
(new MutationObserver((mutations) => {
for (const mutation of mutations) for (const node of mutation.addedNodes) if (node.querySelectorAll) for (const el of node.querySelectorAll('[scroller]')) el.scrollTop = this.positions[el.getAttribute('scroller')];
})).observe(document.getElementById('root'), {
childList: true,
subtree: true
});
}
};
|
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 });
// Apply scroll position from store.
(new MutationObserver((mutations) => {
for (const mutation of mutations) for (const node of mutation.addedNodes) for (const el of node.querySelectorAll('[scroller]')) el.scrollTop = this.positions[el.getAttribute('scroller')];
})).observe(document.getElementById('root'), {
childList: true,
subtree: true
});
}
};
## Instruction:
Fix temporary scroll store (web)
## Code After:
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 scroll position from store.
(new MutationObserver((mutations) => {
for (const mutation of mutations) for (const node of mutation.addedNodes) if (node.querySelectorAll) for (const el of node.querySelectorAll('[scroller]')) el.scrollTop = this.positions[el.getAttribute('scroller')];
})).observe(document.getElementById('root'), {
childList: true,
subtree: 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 company.
The base of the theme is provided by amazing people from [Start Bootstrap](http://startbootstrap.com/).com/template-overviews/grayscale/).
|
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) + '/';
function T(pkg, files) {
var ret = utilPath(optG, pkg);
expect(ret).toEqual(files.map(function (file) {
return root + file;
}));
if (ret.length) {
expect(pkg.realSrc).toBe(getRealPkgSrc(optG, pkg));
}
}
it('Empty', function () {
T({}, []);
T({files: []}, []);
});
it('Normal use, and that src override name', function () {
T({
name: 'a',
src: '.',
files: [
'a.js',
'b/a.js'
]
}, [
'a.js',
'b/a.js'
]);
});
it('Wildcard', function () {
T({
name: 'b',
files: [
'**/*.js',
'c/*.css'
]
}, [
'b/a.js',
'b/b.js',
'b/c/a.js',
'b/c/a.css'
]);
});
});
|
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, files) {
var ret = utilPath(optG, pkg);
expect(ret).toEqual(files.map(function (file) {
return runtimePath + file;
}));
if (ret.length) {
expect(pkg.realSrc).toBe(getRealPkgSrc(optG, pkg));
}
}
it('Empty', function () {
T({}, []);
T({files: []}, []);
});
it('Normal use, and that src override name', function () {
T({
name: 'a',
src: '.',
files: [
'a.js',
'b/a.js'
]
}, [
'a.js',
'b/a.js'
]);
});
it('Wildcard', function () {
T({
name: 'b',
files: [
'**/*.js',
'c/*.css'
]
}, [
'b/a.js',
'b/b.js',
'b/c/a.js',
'b/c/a.css'
]);
});
});
|
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(optG.src) + '/';
function T(pkg, files) {
var ret = utilPath(optG, pkg);
expect(ret).toEqual(files.map(function (file) {
return root + file;
}));
if (ret.length) {
expect(pkg.realSrc).toBe(getRealPkgSrc(optG, pkg));
}
}
it('Empty', function () {
T({}, []);
T({files: []}, []);
});
it('Normal use, and that src override name', function () {
T({
name: 'a',
src: '.',
files: [
'a.js',
'b/a.js'
]
}, [
'a.js',
'b/a.js'
]);
});
it('Wildcard', function () {
T({
name: 'b',
files: [
'**/*.js',
'c/*.css'
]
}, [
'b/a.js',
'b/b.js',
'b/c/a.js',
'b/c/a.css'
]);
});
});
## Instruction:
Update tests: replace fs with util
## Code After:
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, files) {
var ret = utilPath(optG, pkg);
expect(ret).toEqual(files.map(function (file) {
return runtimePath + file;
}));
if (ret.length) {
expect(pkg.realSrc).toBe(getRealPkgSrc(optG, pkg));
}
}
it('Empty', function () {
T({}, []);
T({files: []}, []);
});
it('Normal use, and that src override name', function () {
T({
name: 'a',
src: '.',
files: [
'a.js',
'b/a.js'
]
}, [
'a.js',
'b/a.js'
]);
});
it('Wildcard', function () {
T({
name: 'b',
files: [
'**/*.js',
'c/*.css'
]
}, [
'b/a.js',
'b/b.js',
'b/c/a.js',
'b/c/a.css'
]);
});
});
|
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 "/", TrelloBurndown do
pipe_through :browser # Use the default browser stack
get "/", PageController, :index
end
scope "/api", TrelloBurndown do
pipe_through :api
resources "/sprints", SprintController, except: [:new, :edit]
resources "/team-members", TeamMemberController, except: [:new, :edit]
resources "/team", TeamController, except: [:new, :edit]
end
end
|
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", TrelloBurndown do
pipe_through :api
resources "/sprints", SprintController, except: [:new, :edit]
resources "/team-members", TeamMemberController, except: [:new, :edit]
resources "/team", TeamController, except: [:new, :edit]
end
scope "/", TrelloBurndown do
pipe_through :browser # Use the default browser stack
# get "/", PageController, :index
get "*path", PageController, :index
end
end
|
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 "/", TrelloBurndown do
pipe_through :browser # Use the default browser stack
get "/", PageController, :index
end
scope "/api", TrelloBurndown do
pipe_through :api
resources "/sprints", SprintController, except: [:new, :edit]
resources "/team-members", TeamMemberController, except: [:new, :edit]
resources "/team", TeamController, except: [:new, :edit]
end
end
## Instruction:
Add routing rewrites and add deploy.js
## Code After:
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", TrelloBurndown do
pipe_through :api
resources "/sprints", SprintController, except: [:new, :edit]
resources "/team-members", TeamMemberController, except: [:new, :edit]
resources "/team", TeamController, except: [:new, :edit]
end
scope "/", TrelloBurndown do
pipe_through :browser # Use the default browser stack
# get "/", PageController, :index
get "*path", PageController, :index
end
end
|
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. An application might use a group to find its plugins, or
multiple groups if it has different kinds of plugins.
The **entrypoints** module contains functions to find and load entry points.
You can install it from PyPI with ``pip install entrypoints``.
To advertise entry points when distributing a package, see
`entry_points in the Python Packaging User Guide
<https://packaging.python.org/guides/distributing-packages-using-setuptools/#entry-points>`_.
|
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. An application might use a group to find its plugins, or
multiple groups if it has different kinds of plugins.
The **entrypoints** module contains functions to find and load entry points.
You can install it from PyPI with ``pip install entrypoints``.
To advertise entry points when distributing a package, see
`entry_points in the Python Packaging User Guide
<https://packaging.python.org/guides/distributing-packages-using-setuptools/#entry-points>`_.
The ``pkg_resources`` module distributed with ``setuptools`` provides a way to
discover entrypoints as well, but merely *importing* ``pkg_resources`` causes
every package installed with ``setuptools`` to be imported. Illustration:
.. code:: python
>>> import sys
>>> len(sys.modules)
67
>>> import pkg_resources
>>> len(sys.modules) # result scales with number of installed packages
174
By contrast, importing ``entrypoints`` does not scan every installed package;
it just imports its own dependencies.
.. code:: python
>>> import sys
>>> len(sys.modules)
67
>>> import entrypoints
>>> len(sys.modules) # result is fixed
97
Further, discovering an entry point does not cause anything to be imported.
.. code:: python
>>> eps = entrypoints.get_group_named('some_group')
>>> len(sys.modules) # same result as above
97
Only upon *loading* the entrypoints are relevant packages imported.
|
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
similar interfaces. An application might use a group to find its plugins, or
multiple groups if it has different kinds of plugins.
The **entrypoints** module contains functions to find and load entry points.
You can install it from PyPI with ``pip install entrypoints``.
To advertise entry points when distributing a package, see
`entry_points in the Python Packaging User Guide
<https://packaging.python.org/guides/distributing-packages-using-setuptools/#entry-points>`_.
## Instruction:
Document motvation / constrast to pkg_resources.
## Code After:
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. An application might use a group to find its plugins, or
multiple groups if it has different kinds of plugins.
The **entrypoints** module contains functions to find and load entry points.
You can install it from PyPI with ``pip install entrypoints``.
To advertise entry points when distributing a package, see
`entry_points in the Python Packaging User Guide
<https://packaging.python.org/guides/distributing-packages-using-setuptools/#entry-points>`_.
The ``pkg_resources`` module distributed with ``setuptools`` provides a way to
discover entrypoints as well, but merely *importing* ``pkg_resources`` causes
every package installed with ``setuptools`` to be imported. Illustration:
.. code:: python
>>> import sys
>>> len(sys.modules)
67
>>> import pkg_resources
>>> len(sys.modules) # result scales with number of installed packages
174
By contrast, importing ``entrypoints`` does not scan every installed package;
it just imports its own dependencies.
.. code:: python
>>> import sys
>>> len(sys.modules)
67
>>> import entrypoints
>>> len(sys.modules) # result is fixed
97
Further, discovering an entry point does not cause anything to be imported.
.. code:: python
>>> eps = entrypoints.get_group_named('some_group')
>>> len(sys.modules) # same result as above
97
Only upon *loading* the entrypoints are relevant packages imported.
|
ab6aabdca3d18b8e46246a564f7832545f7387dc
|
README.md
|
README.md
|
[](https://travis-ci.org/TheFenderStory/CleanRMT)
[](https://david-dm.org/thefenderstory/cleanrmt)
[](https://david-dm.org/thefenderstory/cleanrmt?type=dev)
A simple template for Smogon RMT posts.
## Usage
```
npm install
npm start
open http://localhost:3000
```
## LICENSE
[MIT](LICENSE)
|
Add running example to readme
|
Add running example to readme
|
Markdown
|
mit
|
TheFenderStory/CleanRMT,TheFenderStory/CleanRMT
|
markdown
|
## Code Before:
[](https://travis-ci.org/TheFenderStory/CleanRMT)
[](https://david-dm.org/thefenderstory/cleanrmt)
[](https://david-dm.org/thefenderstory/cleanrmt?type=dev)
A simple template for Smogon RMT posts.
## Usage
```
npm install
npm start
open http://localhost:3000
```
## LICENSE
[MIT](LICENSE)
## Instruction:
Add running example to readme
## Code After:
https://clean-rmt.herokuapp.com/
[](https://travis-ci.org/TheFenderStory/CleanRMT)
[](https://david-dm.org/thefenderstory/cleanrmt)
[](https://david-dm.org/thefenderstory/cleanrmt?type=dev)
A simple template for Smogon RMT posts.
## Usage
```
npm install
npm start
open http://localhost:3000
```
## LICENSE
[MIT](LICENSE)
|
|
9a1e3655ed034a7494d6c203a00650c779346951
|
.travis.yml
|
.travis.yml
|
git:
depth: 150
language: go
go:
- 1.12.x
- tip
matrix:
allow_failures:
- go: tip
sudo: required
services:
- docker
cache:
directories:
- "${HOME}/google-cloud-sdk/"
before_install:
# libseccomp in trusty is not new enough, need backports version.
- sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
- sudo apt-get update
# Enable ipv6 for dualstack integration test.
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports
- sudo apt-get install socat
before_script:
- export PATH=$HOME/gopath/bin:$PATH
script:
- make .install.gitvalidation
- make .gitvalidation
- make install.deps
- make containerd
- sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
- make test
- make test-integration
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-integration/containerd.log
- cat /tmp/test-cri/containerd.log
|
git:
depth: 150
language: go
go:
- 1.12.x
- tip
matrix:
allow_failures:
- go: tip
sudo: required
services:
- docker
cache:
directories:
- "${HOME}/google-cloud-sdk/"
before_install:
- sudo apt-get update
# Enable ipv6 for dualstack integration test.
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2
- sudo apt-get install libseccomp-dev
- sudo apt-get install socat
before_script:
- export PATH=$HOME/gopath/bin:$PATH
script:
- make .install.gitvalidation
- make .gitvalidation
- make install.deps
- make containerd
- sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
- make test
- make test-integration
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-integration/containerd.log
- cat /tmp/test-cri/containerd.log
|
Update based on default xenial distro.
|
Update based on default xenial distro.
Signed-off-by: Lantao Liu <[email protected]>
|
YAML
|
apache-2.0
|
containerd/containerd,dmcgowan/containerd,vdemeester/containerd,dmcgowan/containerd,vdemeester/containerd,containerd/containerd,mikebrow/containerd,mikebrow/containerd,estesp/containerd,estesp/containerd,thaJeztah/containerd,thaJeztah/containerd
|
yaml
|
## Code Before:
git:
depth: 150
language: go
go:
- 1.12.x
- tip
matrix:
allow_failures:
- go: tip
sudo: required
services:
- docker
cache:
directories:
- "${HOME}/google-cloud-sdk/"
before_install:
# libseccomp in trusty is not new enough, need backports version.
- sudo sh -c "echo 'deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse' > /etc/apt/sources.list.d/backports.list"
- sudo apt-get update
# Enable ipv6 for dualstack integration test.
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2/trusty-backports
- sudo apt-get install libseccomp-dev/trusty-backports
- sudo apt-get install socat
before_script:
- export PATH=$HOME/gopath/bin:$PATH
script:
- make .install.gitvalidation
- make .gitvalidation
- make install.deps
- make containerd
- sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
- make test
- make test-integration
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-integration/containerd.log
- cat /tmp/test-cri/containerd.log
## Instruction:
Update based on default xenial distro.
Signed-off-by: Lantao Liu <[email protected]>
## Code After:
git:
depth: 150
language: go
go:
- 1.12.x
- tip
matrix:
allow_failures:
- go: tip
sudo: required
services:
- docker
cache:
directories:
- "${HOME}/google-cloud-sdk/"
before_install:
- sudo apt-get update
# Enable ipv6 for dualstack integration test.
- sudo sysctl net.ipv6.conf.all.disable_ipv6=0
install:
- sudo apt-get install btrfs-tools
- sudo apt-get install libseccomp2
- sudo apt-get install libseccomp-dev
- sudo apt-get install socat
before_script:
- export PATH=$HOME/gopath/bin:$PATH
script:
- make .install.gitvalidation
- make .gitvalidation
- make install.deps
- make containerd
- sudo PATH=$PATH GOPATH=$GOPATH make install-containerd
- make test
- make test-integration
- make test-cri
after_script:
# Abuse travis to preserve the log.
- cat /tmp/test-integration/containerd.log
- cat /tmp/test-cri/containerd.log
|
05e7e6e412f0ca7074ef56de341d71194701be3e
|
.travis.yml
|
.travis.yml
|
language: node_js
env:
global:
- secure: <YOUR_ENCRYPTED_DATA>
node_js:
- '0.10'
before_install:
- npm uninstall psi browser-sync --save-dev
script:
- node ./node_modules/gulp/bin/gulp build --release
after_success:
- git config --global user.name = "Your Name"
- git config --global user.email = "[email protected]"
- node ./node_modules/gulp/bin/gulp deploy
|
language: node_js
env:
global:
- secure: <YOUR_ENCRYPTED_DATA>
node_js:
- '0.10'
before_install:
- npm uninstall psi browser-sync --save-dev
script:
- node ./node_modules/gulp/bin/gulp build --release
after_success:
- git config --global user.name = "Your Name"
- git config --global user.email = "[email protected]"
- node ./node_modules/gulp/bin/gulp deploy --production
|
Deploy to production slot by default
|
Deploy to production slot by default
|
YAML
|
apache-2.0
|
mzaidiez/static-site-starter,wsquared/static-site-starter,kriasoft/static-site-starter,ckmah/ckmah.github.io,legionofboomfan/static-site-starter,legionofboomfan/static-site-starter,wsquared/static-site-starter,mzaidiez/static-site-starter,kriasoft/static-site-starter,ckmah/ckmah.github.io
|
yaml
|
## Code Before:
language: node_js
env:
global:
- secure: <YOUR_ENCRYPTED_DATA>
node_js:
- '0.10'
before_install:
- npm uninstall psi browser-sync --save-dev
script:
- node ./node_modules/gulp/bin/gulp build --release
after_success:
- git config --global user.name = "Your Name"
- git config --global user.email = "[email protected]"
- node ./node_modules/gulp/bin/gulp deploy
## Instruction:
Deploy to production slot by default
## Code After:
language: node_js
env:
global:
- secure: <YOUR_ENCRYPTED_DATA>
node_js:
- '0.10'
before_install:
- npm uninstall psi browser-sync --save-dev
script:
- node ./node_modules/gulp/bin/gulp build --release
after_success:
- git config --global user.name = "Your Name"
- git config --global user.email = "[email protected]"
- node ./node_modules/gulp/bin/gulp deploy --production
|
9428a7a2be3f269cae9111c990b3fb739c84f0c0
|
README.md
|
README.md
|
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 repository and update the README, add all the files that were in the [TopWatch_Build](https://github.com/pcimino/TopWatch_Build) \deploy\TopWatch\ directory. This will allow me to use that project as a submodule in Part III, where I start leveraging [PhoneGap](http://phonegap.com/).
|
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 repository and update the README, add all the files that were in the [TopWatch_Build](https://github.com/pcimino/TopWatch_Build) \deploy\TopWatch\ directory. This will allow me to use that project as a submodule in Part III, where I start leveraging [PhoneGap](http://phonegap.com/).
The only modification I had to make to the project was to account for the submodules still in the \lib\ directory. The canvas and Shape2D libaries were not minified into the application during the build process, but are referenced by relative path. So I copied the .gitmodules file feom the build project, and modified it so it only contained the entries for canvas and Shape2D.
|
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 create a Git repository and update the README, add all the files that were in the [TopWatch_Build](https://github.com/pcimino/TopWatch_Build) \deploy\TopWatch\ directory. This will allow me to use that project as a submodule in Part III, where I start leveraging [PhoneGap](http://phonegap.com/).
## Instruction:
Update the readme to explain how the modules are included in the project
## Code After:
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 repository and update the README, add all the files that were in the [TopWatch_Build](https://github.com/pcimino/TopWatch_Build) \deploy\TopWatch\ directory. This will allow me to use that project as a submodule in Part III, where I start leveraging [PhoneGap](http://phonegap.com/).
The only modification I had to make to the project was to account for the submodules still in the \lib\ directory. The canvas and Shape2D libaries were not minified into the application during the build process, but are referenced by relative path. So I copied the .gitmodules file feom the build project, and modified it so it only contained the entries for canvas and Shape2D.
|
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 "Passed"
exit 0
|
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 -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 "Passed"
exit 0
|
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.sortUsers = function() {
this.users = _.sortBy(
this.users,
function(u) { return u.name.toLowerCase(); }
);
var modes = [
"~",
"&",
"@",
"%",
"+",
].reverse();
modes.forEach(function(mode) {
this.users = _.remove(
this.users,
function(u) { return u.mode === mode; }
).concat(this.users);
}, this);
};
Chan.prototype.getMode = function(name) {
var user = _.find(this.users, {name: name});
if (user) {
return user.mode;
} else {
return "";
}
};
Chan.prototype.toJSON = function() {
var clone = _.clone(this);
clone.messages = clone.messages.slice(-100);
return clone;
};
|
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.sortUsers = function() {
this.users = _.sortBy(
this.users,
function(u) { return u.name.toLowerCase(); }
);
["+", "%", "@", "&", "~"].forEach(function(mode) {
this.users = _.remove(
this.users,
function(u) { return u.mode === mode; }
).concat(this.users);
}, this);
};
Chan.prototype.getMode = function(name) {
var user = _.find(this.users, {name: name});
if (user) {
return user.mode;
} else {
return "";
}
};
Chan.prototype.toJSON = function() {
var clone = _.clone(this);
clone.messages = clone.messages.slice(-100);
return clone;
};
|
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,thelounge/lounge,realies/lounge,libertysoft3/lounge-autoconnect,rockhouse/lounge,williamboman/lounge,williamboman/lounge,sebastiencs/lounge,sebastiencs/lounge,realies/lounge,libertysoft3/lounge-autoconnect,realies/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));
}
Chan.prototype.sortUsers = function() {
this.users = _.sortBy(
this.users,
function(u) { return u.name.toLowerCase(); }
);
var modes = [
"~",
"&",
"@",
"%",
"+",
].reverse();
modes.forEach(function(mode) {
this.users = _.remove(
this.users,
function(u) { return u.mode === mode; }
).concat(this.users);
}, this);
};
Chan.prototype.getMode = function(name) {
var user = _.find(this.users, {name: name});
if (user) {
return user.mode;
} else {
return "";
}
};
Chan.prototype.toJSON = function() {
var clone = _.clone(this);
clone.messages = clone.messages.slice(-100);
return clone;
};
## Instruction:
Remove unnecessary operation when sorting users
## Code After:
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.sortUsers = function() {
this.users = _.sortBy(
this.users,
function(u) { return u.name.toLowerCase(); }
);
["+", "%", "@", "&", "~"].forEach(function(mode) {
this.users = _.remove(
this.users,
function(u) { return u.mode === mode; }
).concat(this.users);
}, this);
};
Chan.prototype.getMode = function(name) {
var user = _.find(this.users, {name: name});
if (user) {
return user.mode;
} else {
return "";
}
};
Chan.prototype.toJSON = function() {
var clone = _.clone(this);
clone.messages = clone.messages.slice(-100);
return clone;
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.