commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
21485bba3aa5a56db7e7122e12d4e056f61aba18
client/lanes/react/mixins/Screen.coffee
client/lanes/react/mixins/Screen.coffee
Lanes.React.Mixins.Screen = { childContextTypes: screen: React.PropTypes.object listenNetworkEvents: true loadOrCreateModel: (options) -> if options.prop and @props[options.prop] @props[options.prop] else model = new options.klass if options.attribute and @props.args?.length model.fetch(_.extend( {}, options.syncOptions, { query: {"#{options.attribute}": @props.args[0]} })) model }
Lanes.React.Mixins.Screen = { childContextTypes: screen: React.PropTypes.object listenNetworkEvents: true loadOrCreateModel: (options) -> if options.prop and @props[options.prop] @props[options.prop] else model = new options.klass if options.attribute and @props.args?.length model.fetch(_.extend( {}, options.syncOptions, { query: {"#{options.attribute}": @props.args[0]} })).then => @state?.commands?.setModel(model) model }
Call setModel after fetching model
Call setModel after fetching model Needed so the commands can notify observers
CoffeeScript
mit
argosity/lanes,argosity/hippo,argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo
coffeescript
## Code Before: Lanes.React.Mixins.Screen = { childContextTypes: screen: React.PropTypes.object listenNetworkEvents: true loadOrCreateModel: (options) -> if options.prop and @props[options.prop] @props[options.prop] else model = new options.klass if options.attribute and @props.args?.length model.fetch(_.extend( {}, options.syncOptions, { query: {"#{options.attribute}": @props.args[0]} })) model } ## Instruction: Call setModel after fetching model Needed so the commands can notify observers ## Code After: Lanes.React.Mixins.Screen = { childContextTypes: screen: React.PropTypes.object listenNetworkEvents: true loadOrCreateModel: (options) -> if options.prop and @props[options.prop] @props[options.prop] else model = new options.klass if options.attribute and @props.args?.length model.fetch(_.extend( {}, options.syncOptions, { query: {"#{options.attribute}": @props.args[0]} })).then => @state?.commands?.setModel(model) model }
Lanes.React.Mixins.Screen = { + childContextTypes: screen: React.PropTypes.object listenNetworkEvents: true loadOrCreateModel: (options) -> if options.prop and @props[options.prop] @props[options.prop] else model = new options.klass if options.attribute and @props.args?.length model.fetch(_.extend( {}, options.syncOptions, { query: {"#{options.attribute}": @props.args[0]} - })) + })).then => @state?.commands?.setModel(model) model - }
4
0.210526
2
2
84f058ac7c1aa78dc88f5d030e86ac5ed2593c99
docker-compose.yml
docker-compose.yml
version: "2" services: web: build: . volumes: - .:/app ports: - 3000:3000 environment: - PGHOST=postgres - PGDATABASE=postgres - PGUSER=postgres - PGPASSWORD=postgres - COOKIE_SECRET=ourhardworkbythesewordsguarded links: - postgres:postgres depends_on: - postgres postgres: image: postgres:9.6 volumes: - /var/lib/postgres/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres
version: "2" services: web: build: . volumes: - .:/app ports: - 3000:3000 environment: - PGHOST=postgres - PGDATABASE=postgres - PGUSER=postgres - PGPASSWORD=postgres - COOKIE_SECRET=ourhardworkbythesewordsguarded links: - postgres:postgres depends_on: - postgres postgres: ports: - 5432:5432 image: postgres:9.6 volumes: - /var/lib/postgres/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres
Add port to postgres container
Add port to postgres container (Should Work™)
YAML
mit
us-four-bums/rallyup,us-four-bums/rallyup,us-four-bums/rallyup
yaml
## Code Before: version: "2" services: web: build: . volumes: - .:/app ports: - 3000:3000 environment: - PGHOST=postgres - PGDATABASE=postgres - PGUSER=postgres - PGPASSWORD=postgres - COOKIE_SECRET=ourhardworkbythesewordsguarded links: - postgres:postgres depends_on: - postgres postgres: image: postgres:9.6 volumes: - /var/lib/postgres/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres ## Instruction: Add port to postgres container (Should Work™) ## Code After: version: "2" services: web: build: . volumes: - .:/app ports: - 3000:3000 environment: - PGHOST=postgres - PGDATABASE=postgres - PGUSER=postgres - PGPASSWORD=postgres - COOKIE_SECRET=ourhardworkbythesewordsguarded links: - postgres:postgres depends_on: - postgres postgres: ports: - 5432:5432 image: postgres:9.6 volumes: - /var/lib/postgres/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres
version: "2" services: web: build: . volumes: - .:/app ports: - 3000:3000 environment: - PGHOST=postgres - PGDATABASE=postgres - PGUSER=postgres - PGPASSWORD=postgres - COOKIE_SECRET=ourhardworkbythesewordsguarded links: - postgres:postgres depends_on: - postgres postgres: + ports: + - 5432:5432 image: postgres:9.6 volumes: - /var/lib/postgres/data environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres
2
0.076923
2
0
86914b3619af5e6e82d1747f19798e85c341d2f0
cookiecutter.json
cookiecutter.json
{ "ansible_role_name": "role_name", "ansible_role_dependencies": "", "ansible_role_description": "Ansible role to install and configure {{ cookiecutter.ansible_role_name }}", "ansible_role_license": "MIT", "ansible_role_minimal_version": "2.8", "ansible_role_github_branch": "master", "ansible_role_platforms": "Debian:stretch,buster;Ubuntu:focal,bionic;EL:7,8", "ansible_role_repository": "infOpen/ansible-role-{{ cookiecutter.ansible_role_name }}", "ansible_role_tags": "", "author_email": "foo@bar", "author_github_username": "foobar", "author_name": "Foo Bar", "company_name": "Foobar Inc.", "company_url": "http://foo.bar", "_copy_without_render": [ ".github/workflows/ci.yml", "molecule/default/create.yml", "molecule/default/destroy.yml", "molecule/default/Dockerfile.j2" ] }
{ "ansible_role_name": "role_name", "ansible_role_dependencies": "", "ansible_role_description": "Ansible role to install and configure {{ cookiecutter.ansible_role_name }}", "ansible_role_license": "MIT", "ansible_role_minimal_version": "2.8", "ansible_role_github_branch": "master", "ansible_role_platforms": "Debian:stretch,buster;Ubuntu:focal,bionic;EL:7,8", "ansible_role_repository": "infOpen/ansible-role-{{ cookiecutter.ansible_role_name }}", "ansible_role_tags": "", "author_email": "foo@bar", "author_github_username": "foobar", "author_name": "Foo Bar", "company_name": "Foobar Inc.", "company_url": "http://foo.bar", "_copy_without_render": [ ".github/workflows/ci.yml", ".github/workflows/repo-config.yml", "molecule/default/create.yml", "molecule/default/destroy.yml", "molecule/default/Dockerfile.j2" ] }
Exclude repo-config workflow from Cookicutter rendering
Exclude repo-config workflow from Cookicutter rendering
JSON
mit
infOpen/cookiecutter-ansible-role
json
## Code Before: { "ansible_role_name": "role_name", "ansible_role_dependencies": "", "ansible_role_description": "Ansible role to install and configure {{ cookiecutter.ansible_role_name }}", "ansible_role_license": "MIT", "ansible_role_minimal_version": "2.8", "ansible_role_github_branch": "master", "ansible_role_platforms": "Debian:stretch,buster;Ubuntu:focal,bionic;EL:7,8", "ansible_role_repository": "infOpen/ansible-role-{{ cookiecutter.ansible_role_name }}", "ansible_role_tags": "", "author_email": "foo@bar", "author_github_username": "foobar", "author_name": "Foo Bar", "company_name": "Foobar Inc.", "company_url": "http://foo.bar", "_copy_without_render": [ ".github/workflows/ci.yml", "molecule/default/create.yml", "molecule/default/destroy.yml", "molecule/default/Dockerfile.j2" ] } ## Instruction: Exclude repo-config workflow from Cookicutter rendering ## Code After: { "ansible_role_name": "role_name", "ansible_role_dependencies": "", "ansible_role_description": "Ansible role to install and configure {{ cookiecutter.ansible_role_name }}", "ansible_role_license": "MIT", "ansible_role_minimal_version": "2.8", "ansible_role_github_branch": "master", "ansible_role_platforms": "Debian:stretch,buster;Ubuntu:focal,bionic;EL:7,8", "ansible_role_repository": "infOpen/ansible-role-{{ cookiecutter.ansible_role_name }}", "ansible_role_tags": "", "author_email": "foo@bar", "author_github_username": "foobar", "author_name": "Foo Bar", "company_name": "Foobar Inc.", "company_url": "http://foo.bar", "_copy_without_render": [ ".github/workflows/ci.yml", ".github/workflows/repo-config.yml", "molecule/default/create.yml", "molecule/default/destroy.yml", "molecule/default/Dockerfile.j2" ] }
{ "ansible_role_name": "role_name", "ansible_role_dependencies": "", "ansible_role_description": "Ansible role to install and configure {{ cookiecutter.ansible_role_name }}", "ansible_role_license": "MIT", "ansible_role_minimal_version": "2.8", "ansible_role_github_branch": "master", "ansible_role_platforms": "Debian:stretch,buster;Ubuntu:focal,bionic;EL:7,8", "ansible_role_repository": "infOpen/ansible-role-{{ cookiecutter.ansible_role_name }}", "ansible_role_tags": "", "author_email": "foo@bar", "author_github_username": "foobar", "author_name": "Foo Bar", "company_name": "Foobar Inc.", "company_url": "http://foo.bar", "_copy_without_render": [ ".github/workflows/ci.yml", + ".github/workflows/repo-config.yml", "molecule/default/create.yml", "molecule/default/destroy.yml", "molecule/default/Dockerfile.j2" ] }
1
0.045455
1
0
9975a166869998b7d183e547b857f3dbee99c901
types/sqlstring/sqlstring-tests.ts
types/sqlstring/sqlstring-tests.ts
import * as SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md const userId = "some user provided value"; const sql1 = "SELECT * FROM users WHERE id = " + SqlString.escape(userId); const userId2 = 1; const sql2 = SqlString.format("SELECT * FROM users WHERE id = ?", [userId2]); const userId3 = 1; const sql3 = SqlString.format( "UPDATE users SET foo = ?, bar = ?, baz = ? WHERE id = ?", ["a", "b", "c", userId3], ); const post = { id: 1, title: "Hello MySQL" }; const sql4 = SqlString.format("INSERT INTO posts SET ?", post); const sorter = "date"; const sql5 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId("posts." + sorter); const sorter2 = "date.2"; const sql6 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId(sorter2, true); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); var CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); const sql8 = SqlString.format('UPDATE posts SET modified = ? WHERE id = ?', [CURRENT_TIMESTAMP, 42]);
import * as SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md const userId = "some user provided value"; const sql1 = "SELECT * FROM users WHERE id = " + SqlString.escape(userId); const userId2 = 1; const sql2 = SqlString.format("SELECT * FROM users WHERE id = ?", [userId2]); const userId3 = 1; const sql3 = SqlString.format( "UPDATE users SET foo = ?, bar = ?, baz = ? WHERE id = ?", ["a", "b", "c", userId3], ); const post = { id: 1, title: "Hello MySQL" }; const sql4 = SqlString.format("INSERT INTO posts SET ?", post); const sorter = "date"; const sql5 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId("posts." + sorter); const sorter2 = "date.2"; const sql6 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId(sorter2, true); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); const CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); const sql8 = SqlString.format('UPDATE posts SET modified = ? WHERE id = ?', [CURRENT_TIMESTAMP, 42]);
Add sqlstring.raw to sqlstring type definitions.
Add sqlstring.raw to sqlstring type definitions.
TypeScript
mit
georgemarshall/DefinitelyTyped,borisyankov/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,mcliment/DefinitelyTyped,georgemarshall/DefinitelyTyped,magny/DefinitelyTyped,dsebastien/DefinitelyTyped,georgemarshall/DefinitelyTyped,markogresak/DefinitelyTyped,borisyankov/DefinitelyTyped
typescript
## Code Before: import * as SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md const userId = "some user provided value"; const sql1 = "SELECT * FROM users WHERE id = " + SqlString.escape(userId); const userId2 = 1; const sql2 = SqlString.format("SELECT * FROM users WHERE id = ?", [userId2]); const userId3 = 1; const sql3 = SqlString.format( "UPDATE users SET foo = ?, bar = ?, baz = ? WHERE id = ?", ["a", "b", "c", userId3], ); const post = { id: 1, title: "Hello MySQL" }; const sql4 = SqlString.format("INSERT INTO posts SET ?", post); const sorter = "date"; const sql5 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId("posts." + sorter); const sorter2 = "date.2"; const sql6 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId(sorter2, true); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); var CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); const sql8 = SqlString.format('UPDATE posts SET modified = ? WHERE id = ?', [CURRENT_TIMESTAMP, 42]); ## Instruction: Add sqlstring.raw to sqlstring type definitions. ## Code After: import * as SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md const userId = "some user provided value"; const sql1 = "SELECT * FROM users WHERE id = " + SqlString.escape(userId); const userId2 = 1; const sql2 = SqlString.format("SELECT * FROM users WHERE id = ?", [userId2]); const userId3 = 1; const sql3 = SqlString.format( "UPDATE users SET foo = ?, bar = ?, baz = ? WHERE id = ?", ["a", "b", "c", userId3], ); const post = { id: 1, title: "Hello MySQL" }; const sql4 = SqlString.format("INSERT INTO posts SET ?", post); const sorter = "date"; const sql5 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId("posts." + sorter); const sorter2 = "date.2"; const sql6 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId(sorter2, true); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); const CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); const sql8 = SqlString.format('UPDATE posts SET modified = ? WHERE id = ?', [CURRENT_TIMESTAMP, 42]);
import * as SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md const userId = "some user provided value"; const sql1 = "SELECT * FROM users WHERE id = " + SqlString.escape(userId); const userId2 = 1; const sql2 = SqlString.format("SELECT * FROM users WHERE id = ?", [userId2]); const userId3 = 1; const sql3 = SqlString.format( "UPDATE users SET foo = ?, bar = ?, baz = ? WHERE id = ?", ["a", "b", "c", userId3], ); const post = { id: 1, title: "Hello MySQL" }; const sql4 = SqlString.format("INSERT INTO posts SET ?", post); const sorter = "date"; const sql5 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId("posts." + sorter); const sorter2 = "date.2"; const sql6 = "SELECT * FROM posts ORDER BY " + SqlString.escapeId(sorter2, true); const userId4 = 1; const inserts = ["users", "id", userId4]; const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); - const userId4 = 1; - const inserts = ["users", "id", userId4]; - const sql7 = SqlString.format("SELECT * FROM ?? WHERE ?? = ?", inserts); - - var CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); ? ^^^ + const CURRENT_TIMESTAMP = SqlString.raw('CURRENT_TIMESTAMP()'); ? ^^^^^ const sql8 = SqlString.format('UPDATE posts SET modified = ? WHERE id = ?', [CURRENT_TIMESTAMP, 42]);
6
0.157895
1
5
1419c7a7fde5b216cd3203bff791d9b1f17f22cd
Libraries/Components/ScrollView/InternalScrollViewType.js
Libraries/Components/ScrollView/InternalScrollViewType.js
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ const React = require('React'); // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. class InternalScrollViewType<Props> extends React.Component<Props> { scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, animated?: boolean, ) {} flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} setNativeProps(props: Object) {} getScrollResponder(): any {} getScrollableNode(): any {} getInnerViewNode(): any {} scrollResponderScrollNativeHandleToKeyboard( nodeHandle: any, additionalOffset?: number, preventNegativeScrollOffset?: boolean, ) {} scrollResponderScrollTo( x?: number | {x?: number, y?: number, animated?: boolean}, y?: number, animated?: boolean, ) {} } module.exports = InternalScrollViewType;
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ const ReactNative = require('ReactNative'); // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. class InternalScrollViewType<Props> extends ReactNative.NativeComponent<Props> { scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, animated?: boolean, ) {} flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} getScrollResponder(): any {} getScrollableNode(): any {} getInnerViewNode(): any {} scrollResponderScrollNativeHandleToKeyboard( nodeHandle: any, additionalOffset?: number, preventNegativeScrollOffset?: boolean, ) {} scrollResponderScrollTo( x?: number | {x?: number, y?: number, animated?: boolean}, y?: number, animated?: boolean, ) {} } module.exports = InternalScrollViewType;
Migrate ScrollView fake type to ReactNative.NativeComponent
Migrate ScrollView fake type to ReactNative.NativeComponent Reviewed By: yungsters Differential Revision: D7985122 fbshipit-source-id: b78fc6ad84485e8aa42657c2b21d70c9f3a271d6
JavaScript
mit
myntra/react-native,facebook/react-native,arthuralee/react-native,exponent/react-native,arthuralee/react-native,javache/react-native,hoangpham95/react-native,facebook/react-native,hoangpham95/react-native,myntra/react-native,pandiaraj44/react-native,janicduplessis/react-native,hoangpham95/react-native,janicduplessis/react-native,hoangpham95/react-native,arthuralee/react-native,exponent/react-native,exponentjs/react-native,exponentjs/react-native,exponent/react-native,pandiaraj44/react-native,hoangpham95/react-native,hammerandchisel/react-native,janicduplessis/react-native,hoangpham95/react-native,pandiaraj44/react-native,pandiaraj44/react-native,myntra/react-native,exponent/react-native,exponentjs/react-native,myntra/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,hammerandchisel/react-native,hoangpham95/react-native,javache/react-native,javache/react-native,pandiaraj44/react-native,exponentjs/react-native,myntra/react-native,hammerandchisel/react-native,hammerandchisel/react-native,exponent/react-native,janicduplessis/react-native,hoangpham95/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,exponent/react-native,hammerandchisel/react-native,exponent/react-native,janicduplessis/react-native,arthuralee/react-native,javache/react-native,facebook/react-native,facebook/react-native,exponentjs/react-native,facebook/react-native,javache/react-native,hammerandchisel/react-native,myntra/react-native,pandiaraj44/react-native,exponentjs/react-native,exponent/react-native,janicduplessis/react-native,pandiaraj44/react-native,exponentjs/react-native,javache/react-native,arthuralee/react-native,exponentjs/react-native,facebook/react-native,facebook/react-native,myntra/react-native,hammerandchisel/react-native,pandiaraj44/react-native,hammerandchisel/react-native,javache/react-native,myntra/react-native,myntra/react-native
javascript
## Code Before: /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ const React = require('React'); // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. class InternalScrollViewType<Props> extends React.Component<Props> { scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, animated?: boolean, ) {} flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} setNativeProps(props: Object) {} getScrollResponder(): any {} getScrollableNode(): any {} getInnerViewNode(): any {} scrollResponderScrollNativeHandleToKeyboard( nodeHandle: any, additionalOffset?: number, preventNegativeScrollOffset?: boolean, ) {} scrollResponderScrollTo( x?: number | {x?: number, y?: number, animated?: boolean}, y?: number, animated?: boolean, ) {} } module.exports = InternalScrollViewType; ## Instruction: Migrate ScrollView fake type to ReactNative.NativeComponent Reviewed By: yungsters Differential Revision: D7985122 fbshipit-source-id: b78fc6ad84485e8aa42657c2b21d70c9f3a271d6 ## Code After: /** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ const ReactNative = require('ReactNative'); // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. class InternalScrollViewType<Props> extends ReactNative.NativeComponent<Props> { scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, animated?: boolean, ) {} flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} getScrollResponder(): any {} getScrollableNode(): any {} getInnerViewNode(): any {} scrollResponderScrollNativeHandleToKeyboard( nodeHandle: any, additionalOffset?: number, preventNegativeScrollOffset?: boolean, ) {} scrollResponderScrollTo( x?: number | {x?: number, y?: number, animated?: boolean}, y?: number, animated?: boolean, ) {} } module.exports = InternalScrollViewType;
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ - const React = require('React'); + const ReactNative = require('ReactNative'); ? ++++++ ++++++ // This class is purely a facsimile of ScrollView so that we can // properly type it with Flow before migrating ScrollView off of // createReactClass. If there are things missing here that are in // ScrollView, that is unintentional. - class InternalScrollViewType<Props> extends React.Component<Props> { + class InternalScrollViewType<Props> extends ReactNative.NativeComponent<Props> { ? ++++++ ++++++ scrollTo( y?: number | {x?: number, y?: number, animated?: boolean}, x?: number, animated?: boolean, ) {} flashScrollIndicators() {} scrollToEnd(options?: {animated?: boolean}) {} scrollWithoutAnimationTo(y: number = 0, x: number = 0) {} - setNativeProps(props: Object) {} getScrollResponder(): any {} getScrollableNode(): any {} getInnerViewNode(): any {} scrollResponderScrollNativeHandleToKeyboard( nodeHandle: any, additionalOffset?: number, preventNegativeScrollOffset?: boolean, ) {} scrollResponderScrollTo( x?: number | {x?: number, y?: number, animated?: boolean}, y?: number, animated?: boolean, ) {} } module.exports = InternalScrollViewType;
5
0.108696
2
3
962be8ec763c4787bf00ccc06ac21d12467ffe7c
renderer/intersection_data.h
renderer/intersection_data.h
/* * Contains the information about an intersection. * Author: Dino Wernli */ #ifndef INTERSECTIONDATA_H_ #define INTERSECTIONDATA_H_ #include "scene/element.h" #include "scene/material.h" #include "util/point3.h" #include "util/ray.h" struct IntersectionData { // Builds a new struct for this specific ray. The ray is necessary in order to // initialize "t" to the maximum "t" allowed by the ray. IntersectionData(const Ray& ray) : t(ray.max_t()), element(NULL), material(NULL) {} Scalar t; Point3 position; Vector3 normal; const Element* element; const Material* material; }; #endif /* INTERSECTIONDATA_H_ */
/* * Contains the information about an intersection. * Author: Dino Wernli */ #ifndef INTERSECTIONDATA_H_ #define INTERSECTIONDATA_H_ #include "scene/element.h" #include "scene/material.h" #include "util/point3.h" #include "util/ray.h" struct IntersectionData { // Builds a new struct for this specific ray. The ray is necessary in order to // initialize "t" to the maximum "t" allowed by the ray. IntersectionData(const Ray& ray) : t(ray.max_t()), element(NULL), material(NULL) {} bool Intersected() const { return element != NULL; } Scalar t; Point3 position; Vector3 normal; const Element* element; const Material* material; }; #endif /* INTERSECTIONDATA_H_ */
Add intersected query to data.
Add intersected query to data.
C
mit
dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer,dinowernli/raytracer
c
## Code Before: /* * Contains the information about an intersection. * Author: Dino Wernli */ #ifndef INTERSECTIONDATA_H_ #define INTERSECTIONDATA_H_ #include "scene/element.h" #include "scene/material.h" #include "util/point3.h" #include "util/ray.h" struct IntersectionData { // Builds a new struct for this specific ray. The ray is necessary in order to // initialize "t" to the maximum "t" allowed by the ray. IntersectionData(const Ray& ray) : t(ray.max_t()), element(NULL), material(NULL) {} Scalar t; Point3 position; Vector3 normal; const Element* element; const Material* material; }; #endif /* INTERSECTIONDATA_H_ */ ## Instruction: Add intersected query to data. ## Code After: /* * Contains the information about an intersection. * Author: Dino Wernli */ #ifndef INTERSECTIONDATA_H_ #define INTERSECTIONDATA_H_ #include "scene/element.h" #include "scene/material.h" #include "util/point3.h" #include "util/ray.h" struct IntersectionData { // Builds a new struct for this specific ray. The ray is necessary in order to // initialize "t" to the maximum "t" allowed by the ray. IntersectionData(const Ray& ray) : t(ray.max_t()), element(NULL), material(NULL) {} bool Intersected() const { return element != NULL; } Scalar t; Point3 position; Vector3 normal; const Element* element; const Material* material; }; #endif /* INTERSECTIONDATA_H_ */
/* * Contains the information about an intersection. * Author: Dino Wernli */ #ifndef INTERSECTIONDATA_H_ #define INTERSECTIONDATA_H_ #include "scene/element.h" #include "scene/material.h" #include "util/point3.h" #include "util/ray.h" struct IntersectionData { // Builds a new struct for this specific ray. The ray is necessary in order to // initialize "t" to the maximum "t" allowed by the ray. IntersectionData(const Ray& ray) : t(ray.max_t()), element(NULL), material(NULL) {} + bool Intersected() const { return element != NULL; } + Scalar t; Point3 position; Vector3 normal; const Element* element; const Material* material; }; #endif /* INTERSECTIONDATA_H_ */
2
0.074074
2
0
03c7f149ac0162a78892593d33b5866a1a9b72df
tests/test_settings.py
tests/test_settings.py
from __future__ import unicode_literals from django.test import TestCase from rest_framework.settings import APISettings class TestSettings(TestCase): def test_import_error_message_maintained(self): """ Make sure import errors are captured and raised sensibly. """ settings = APISettings({ 'DEFAULT_RENDERER_CLASSES': [ 'tests.invalid_module.InvalidClassName' ] }) with self.assertRaises(ImportError): settings.DEFAULT_RENDERER_CLASSES class TestSettingTypes(TestCase): def test_settings_consistently_coerced_to_list(self): settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.BaseThrottle',) }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': () }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list))
from __future__ import unicode_literals from django.test import TestCase from rest_framework.settings import APISettings class TestSettings(TestCase): def test_import_error_message_maintained(self): """ Make sure import errors are captured and raised sensibly. """ settings = APISettings({ 'DEFAULT_RENDERER_CLASSES': [ 'tests.invalid_module.InvalidClassName' ] }) with self.assertRaises(ImportError): settings.DEFAULT_RENDERER_CLASSES def test_loud_error_raised_on_removed_setting(self): """ Make sure user is alerted with an error when a removed setting is set. """ with self.asserRaise(AttributeError): APISettings({ 'MAX_PAGINATE_BY': 100 }) class TestSettingTypes(TestCase): def test_settings_consistently_coerced_to_list(self): settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.BaseThrottle',) }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': () }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list))
Test case for settings check
Test case for settings check
Python
bsd-2-clause
davesque/django-rest-framework,dmwyatt/django-rest-framework,jpadilla/django-rest-framework,kgeorgy/django-rest-framework,atombrella/django-rest-framework,davesque/django-rest-framework,pombredanne/django-rest-framework,cyberj/django-rest-framework,ossanna16/django-rest-framework,dmwyatt/django-rest-framework,edx/django-rest-framework,johnraz/django-rest-framework,agconti/django-rest-framework,davesque/django-rest-framework,callorico/django-rest-framework,tomchristie/django-rest-framework,edx/django-rest-framework,uploadcare/django-rest-framework,pombredanne/django-rest-framework,pombredanne/django-rest-framework,sheppard/django-rest-framework,tomchristie/django-rest-framework,kgeorgy/django-rest-framework,callorico/django-rest-framework,linovia/django-rest-framework,edx/django-rest-framework,jpadilla/django-rest-framework,kgeorgy/django-rest-framework,agconti/django-rest-framework,tomchristie/django-rest-framework,jpadilla/django-rest-framework,johnraz/django-rest-framework,ossanna16/django-rest-framework,cyberj/django-rest-framework,rhblind/django-rest-framework,atombrella/django-rest-framework,werthen/django-rest-framework,linovia/django-rest-framework,uploadcare/django-rest-framework,rhblind/django-rest-framework,cyberj/django-rest-framework,werthen/django-rest-framework,ossanna16/django-rest-framework,sheppard/django-rest-framework,dmwyatt/django-rest-framework,linovia/django-rest-framework,rhblind/django-rest-framework,werthen/django-rest-framework,sheppard/django-rest-framework,callorico/django-rest-framework,atombrella/django-rest-framework,johnraz/django-rest-framework,agconti/django-rest-framework,uploadcare/django-rest-framework
python
## Code Before: from __future__ import unicode_literals from django.test import TestCase from rest_framework.settings import APISettings class TestSettings(TestCase): def test_import_error_message_maintained(self): """ Make sure import errors are captured and raised sensibly. """ settings = APISettings({ 'DEFAULT_RENDERER_CLASSES': [ 'tests.invalid_module.InvalidClassName' ] }) with self.assertRaises(ImportError): settings.DEFAULT_RENDERER_CLASSES class TestSettingTypes(TestCase): def test_settings_consistently_coerced_to_list(self): settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.BaseThrottle',) }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': () }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) ## Instruction: Test case for settings check ## Code After: from __future__ import unicode_literals from django.test import TestCase from rest_framework.settings import APISettings class TestSettings(TestCase): def test_import_error_message_maintained(self): """ Make sure import errors are captured and raised sensibly. """ settings = APISettings({ 'DEFAULT_RENDERER_CLASSES': [ 'tests.invalid_module.InvalidClassName' ] }) with self.assertRaises(ImportError): settings.DEFAULT_RENDERER_CLASSES def test_loud_error_raised_on_removed_setting(self): """ Make sure user is alerted with an error when a removed setting is set. """ with self.asserRaise(AttributeError): APISettings({ 'MAX_PAGINATE_BY': 100 }) class TestSettingTypes(TestCase): def test_settings_consistently_coerced_to_list(self): settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.BaseThrottle',) }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': () }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list))
from __future__ import unicode_literals from django.test import TestCase from rest_framework.settings import APISettings class TestSettings(TestCase): def test_import_error_message_maintained(self): """ Make sure import errors are captured and raised sensibly. """ settings = APISettings({ 'DEFAULT_RENDERER_CLASSES': [ 'tests.invalid_module.InvalidClassName' ] }) with self.assertRaises(ImportError): settings.DEFAULT_RENDERER_CLASSES + def test_loud_error_raised_on_removed_setting(self): + """ + Make sure user is alerted with an error when a removed setting + is set. + """ + with self.asserRaise(AttributeError): + APISettings({ + 'MAX_PAGINATE_BY': 100 + }) + class TestSettingTypes(TestCase): def test_settings_consistently_coerced_to_list(self): settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': ('rest_framework.throttling.BaseThrottle',) }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list)) settings = APISettings({ 'DEFAULT_THROTTLE_CLASSES': () }) self.assertTrue(isinstance(settings.DEFAULT_THROTTLE_CLASSES, list))
10
0.3125
10
0
8def6e83038b43b798a935edab9d77476ec47372
test/Sema/attr-weak.c
test/Sema/attr-weak.c
// RUN: %clang_cc1 -verify -fsyntax-only %s extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); void __attribute__((weak_import)) g5(void) { } struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}} struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} // rdar://9538608 int C; // expected-note {{previous definition is here}} extern int C __attribute__((weak_import)); // expected-warning {{an already-declared variable is made a weak_import declaration}} static int pr14946_x; extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static void pr14946_f(); void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
// RUN: %clang_cc1 -verify -fsyntax-only %s extern int f0() __attribute__((weak)); extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int f2() __attribute__((weak)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); void __attribute__((weak_import)) g5(void) { } struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}} struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} static int f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} // rdar://9538608 int C; // expected-note {{previous definition is here}} extern int C __attribute__((weak_import)); // expected-warning {{an already-declared variable is made a weak_import declaration}} static int pr14946_x; extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static void pr14946_f(); void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
Add tests for weak functions
[Sema] Add tests for weak functions I found these checks to be missing, just add some simple cases. Differential Revision: https://reviews.llvm.org/D47200 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@333283 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang
c
## Code Before: // RUN: %clang_cc1 -verify -fsyntax-only %s extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); void __attribute__((weak_import)) g5(void) { } struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}} struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} // rdar://9538608 int C; // expected-note {{previous definition is here}} extern int C __attribute__((weak_import)); // expected-warning {{an already-declared variable is made a weak_import declaration}} static int pr14946_x; extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static void pr14946_f(); void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} ## Instruction: [Sema] Add tests for weak functions I found these checks to be missing, just add some simple cases. Differential Revision: https://reviews.llvm.org/D47200 git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@333283 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: // RUN: %clang_cc1 -verify -fsyntax-only %s extern int f0() __attribute__((weak)); extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); int f2() __attribute__((weak)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); void __attribute__((weak_import)) g5(void) { } struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}} struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} static int f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} // rdar://9538608 int C; // expected-note {{previous definition is here}} extern int C __attribute__((weak_import)); // expected-warning {{an already-declared variable is made a weak_import declaration}} static int pr14946_x; extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static void pr14946_f(); void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
// RUN: %clang_cc1 -verify -fsyntax-only %s + extern int f0() __attribute__((weak)); extern int g0 __attribute__((weak)); extern int g1 __attribute__((weak_import)); + int f2() __attribute__((weak)); int g2 __attribute__((weak)); int g3 __attribute__((weak_import)); // expected-warning {{'weak_import' attribute cannot be specified on a definition}} int __attribute__((weak_import)) g4(void); void __attribute__((weak_import)) g5(void) { } struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variables, functions, and classes}} struct __attribute__((weak_import)) s1 {}; // expected-warning {{'weak_import' attribute only applies to variables and functions}} + static int f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} // rdar://9538608 int C; // expected-note {{previous definition is here}} extern int C __attribute__((weak_import)); // expected-warning {{an already-declared variable is made a weak_import declaration}} static int pr14946_x; extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} static void pr14946_f(); void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
3
0.125
3
0
ca8cfe068f76d97e5adf30b4729acb25993aefd8
.travis.yml
.travis.yml
language: python cache: pip python: - 2.6 - 2.7 - 3.3 - 3.4 - 3.5 - 3.6 - echo ===================pitchpx testing start============================ script: - py.test ./tests after_success: - echo ===================pitchpx testing end==============================
dist: xenial language: python cache: pip python: - 3.5 - 3.6 - 3.7 - echo ===================pitchpx testing start============================ script: - py.test ./tests after_success: - echo ===================pitchpx testing end==============================
Add 3.7, Delete 2.x, 3.4, 3.3
Add 3.7, Delete 2.x, 3.4, 3.3
YAML
mit
Shinichi-Nakagawa/sabr
yaml
## Code Before: language: python cache: pip python: - 2.6 - 2.7 - 3.3 - 3.4 - 3.5 - 3.6 - echo ===================pitchpx testing start============================ script: - py.test ./tests after_success: - echo ===================pitchpx testing end============================== ## Instruction: Add 3.7, Delete 2.x, 3.4, 3.3 ## Code After: dist: xenial language: python cache: pip python: - 3.5 - 3.6 - 3.7 - echo ===================pitchpx testing start============================ script: - py.test ./tests after_success: - echo ===================pitchpx testing end==============================
+ dist: xenial language: python cache: pip python: - - 2.6 - - 2.7 - - 3.3 - - 3.4 - 3.5 - 3.6 + - 3.7 - echo ===================pitchpx testing start============================ script: - py.test ./tests after_success: - echo ===================pitchpx testing end==============================
6
0.428571
2
4
e65dd8416900649343b9e72fe99c6c85371cb6aa
config/prisons/LLI-long-lartin.yml
config/prisons/LLI-long-lartin.yml
--- name: Long Lartin nomis_id: LLI enabled: false estate: Long Lartin
--- name: Long Lartin nomis_id: LLI enabled: true estate: Long Lartin address: - South Littleton - Evesham - Worcestershire - WR11 8TZ booking_window: 28 email: Socialvisits.longlartin@hmps.gsi.gov.uk lead_days: 3 phone: 01386 295188 slots: tue: - 1400-1615 thu: - 1400-1615 sat: - 1400-1600 sun: - 1400-1600 unbookable: - 2015-12-25 - 2015-12-26 - 2016-01-01
Update Long Lartin for Go Live
Update Long Lartin for Go Live
YAML
mit
ministryofjustice/prison-visits,ministryofjustice/prison-visits,ministryofjustice/prison-visits
yaml
## Code Before: --- name: Long Lartin nomis_id: LLI enabled: false estate: Long Lartin ## Instruction: Update Long Lartin for Go Live ## Code After: --- name: Long Lartin nomis_id: LLI enabled: true estate: Long Lartin address: - South Littleton - Evesham - Worcestershire - WR11 8TZ booking_window: 28 email: Socialvisits.longlartin@hmps.gsi.gov.uk lead_days: 3 phone: 01386 295188 slots: tue: - 1400-1615 thu: - 1400-1615 sat: - 1400-1600 sun: - 1400-1600 unbookable: - 2015-12-25 - 2015-12-26 - 2016-01-01
--- name: Long Lartin nomis_id: LLI - enabled: false + enabled: true estate: Long Lartin + address: + - South Littleton + - Evesham + - Worcestershire + - WR11 8TZ + booking_window: 28 + email: Socialvisits.longlartin@hmps.gsi.gov.uk + lead_days: 3 + phone: 01386 295188 + slots: + tue: + - 1400-1615 + thu: + - 1400-1615 + sat: + - 1400-1600 + sun: + - 1400-1600 + unbookable: + - 2015-12-25 + - 2015-12-26 + - 2016-01-01
24
4.8
23
1
e2ea1aa17898389b57bff5a5fe110d40f4fe0303
pkgs/all-pkgs/dbus/default.nix
pkgs/all-pkgs/dbus/default.nix
{ stdenv , fetchurl , expat , systemd_lib }: stdenv.mkDerivation rec { name = "dbus-1.10.6"; src = fetchurl { url = "https://dbus.freedesktop.org/releases/dbus/${name}.tar.gz"; sha256 = "0pykylm78hf6pgj85gpqygv2rh7bksadnwnqck6pdpbylw4gmzmm"; }; buildInputs = [ expat systemd_lib ]; preConfigure = '' configureFlagsArray+=( "--with-systemdsystemunitdir=$out/etc/systemd/system" ) installFlagsArray+=( "sysconfdir=$out/etc" "localstatedir=$TMPDIR/var" ) ''; configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--with-session-socket-dir=/tmp" "--enable-libaudit" "--enable-systemd" "--disable-selinux" "--disable-apparmor" "--disable-tests" "--disable-x11-autolaunch" ]; meta = with stdenv.lib; { license = licenses.gpl2; maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
{ stdenv , fetchurl , expat , systemd_lib , xorg }: stdenv.mkDerivation rec { name = "dbus-1.10.8"; src = fetchurl { url = "https://dbus.freedesktop.org/releases/dbus/${name}.tar.gz"; sha256 = "0560y3hxpgh346w6avcrcz79c8ansmn771y5xpcvvlr6m8mx5wxs"; }; buildInputs = [ expat systemd_lib xorg.libX11 ]; preConfigure = '' configureFlagsArray+=( "--with-systemdsystemunitdir=$out/etc/systemd/system" ) installFlagsArray+=( "sysconfdir=$out/etc" "localstatedir=$TMPDIR/var" ) ''; configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--with-session-socket-dir=/tmp" "--enable-libaudit" "--enable-systemd" "--disable-selinux" "--disable-apparmor" "--disable-tests" "--enable-x11-autolaunch" "--enable-user-session" ]; meta = with stdenv.lib; { license = licenses.gpl2; maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
Add support for autolaunching as this is required for xorg
dbus: Add support for autolaunching as this is required for xorg
Nix
mit
triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton,triton/triton
nix
## Code Before: { stdenv , fetchurl , expat , systemd_lib }: stdenv.mkDerivation rec { name = "dbus-1.10.6"; src = fetchurl { url = "https://dbus.freedesktop.org/releases/dbus/${name}.tar.gz"; sha256 = "0pykylm78hf6pgj85gpqygv2rh7bksadnwnqck6pdpbylw4gmzmm"; }; buildInputs = [ expat systemd_lib ]; preConfigure = '' configureFlagsArray+=( "--with-systemdsystemunitdir=$out/etc/systemd/system" ) installFlagsArray+=( "sysconfdir=$out/etc" "localstatedir=$TMPDIR/var" ) ''; configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--with-session-socket-dir=/tmp" "--enable-libaudit" "--enable-systemd" "--disable-selinux" "--disable-apparmor" "--disable-tests" "--disable-x11-autolaunch" ]; meta = with stdenv.lib; { license = licenses.gpl2; maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; } ## Instruction: dbus: Add support for autolaunching as this is required for xorg ## Code After: { stdenv , fetchurl , expat , systemd_lib , xorg }: stdenv.mkDerivation rec { name = "dbus-1.10.8"; src = fetchurl { url = "https://dbus.freedesktop.org/releases/dbus/${name}.tar.gz"; sha256 = "0560y3hxpgh346w6avcrcz79c8ansmn771y5xpcvvlr6m8mx5wxs"; }; buildInputs = [ expat systemd_lib xorg.libX11 ]; preConfigure = '' configureFlagsArray+=( "--with-systemdsystemunitdir=$out/etc/systemd/system" ) installFlagsArray+=( "sysconfdir=$out/etc" "localstatedir=$TMPDIR/var" ) ''; configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--with-session-socket-dir=/tmp" "--enable-libaudit" "--enable-systemd" "--disable-selinux" "--disable-apparmor" "--disable-tests" "--enable-x11-autolaunch" "--enable-user-session" ]; meta = with stdenv.lib; { license = licenses.gpl2; maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
{ stdenv , fetchurl , expat , systemd_lib + , xorg }: stdenv.mkDerivation rec { - name = "dbus-1.10.6"; ? ^ + name = "dbus-1.10.8"; ? ^ src = fetchurl { url = "https://dbus.freedesktop.org/releases/dbus/${name}.tar.gz"; - sha256 = "0pykylm78hf6pgj85gpqygv2rh7bksadnwnqck6pdpbylw4gmzmm"; + sha256 = "0560y3hxpgh346w6avcrcz79c8ansmn771y5xpcvvlr6m8mx5wxs"; }; buildInputs = [ expat systemd_lib + xorg.libX11 ]; preConfigure = '' configureFlagsArray+=( "--with-systemdsystemunitdir=$out/etc/systemd/system" ) installFlagsArray+=( "sysconfdir=$out/etc" "localstatedir=$TMPDIR/var" ) ''; configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--with-session-socket-dir=/tmp" "--enable-libaudit" "--enable-systemd" "--disable-selinux" "--disable-apparmor" "--disable-tests" - "--disable-x11-autolaunch" ? ^^^ + "--enable-x11-autolaunch" ? ^^ + "--enable-user-session" ]; meta = with stdenv.lib; { license = licenses.gpl2; maintainers = with maintainers; [ wkennington ]; platforms = with platforms; x86_64-linux; }; }
9
0.176471
6
3
591b6266cee50b3ec1483caf5816cd756e7287fc
src/main/resources/static/modal.html
src/main/resources/static/modal.html
<div class="modal-header"> <h3 class="modal-title">{{message.subject}}</h3> </div> <div class="modal-body"> <uib-tabset active="activeForm" class="mail-summary"> <!-- TODO: fix auto-selection of first tab when first tab not shown --> <uib-tab index="0" heading="HTML Body" ng-show="message.messageHasBodyHTML"> <div ng-include src="'includes/mail-meta.html'" class="mail-summary-meta"></div> <iframe class="mail-summary-content mail-summary-content-html" src="{{messageHTMLURL}}"></iframe> </uib-tab> <uib-tab index="1" heading="Text Body" ng-show="message.messageHasBodyText"> <div ng-include src="'includes/mail-meta.html'"></div> <div class="mail-summary-content mail-summary-content-pre">{{message.messageBodyText}}</div> </uib-tab> <uib-tab index="2" heading="Original Message"> <div class="mail-summary-content mail-summary-content-pre mail-summary-content-raw">{{message.messageRaw}}</div> </uib-tab> </uib-tabset> </div> <div class="modal-footer"> <button class="btn btn-info" ng-click="modalCtrl.close()">Close</button> </div>
<div class="modal-header"> <h3 class="modal-title">{{message.subject}}</h3> </div> <div class="modal-body"> <uib-tabset active="activeForm" class="mail-summary"> <uib-tab id="0" heading="HTML Body" ng-if="message.messageHasBodyHTML"> <div ng-include src="'includes/mail-meta.html'" class="mail-summary-meta"></div> <iframe class="mail-summary-content mail-summary-content-html" src="{{messageHTMLURL}}"></iframe> </uib-tab> <uib-tab id="1" heading="Text Body" ng-if="message.messageHasBodyText"> <div ng-include src="'includes/mail-meta.html'"></div> <div class="mail-summary-content mail-summary-content-pre">{{message.messageBodyText}}</div> </uib-tab> <uib-tab id="2" heading="Original Message" ng-if="true"> <div class="mail-summary-content mail-summary-content-pre mail-summary-content-raw">{{message.messageRaw}}</div> </uib-tab> </uib-tabset> </div> <div class="modal-footer"> <button class="btn btn-info" ng-click="modalCtrl.close()">Close</button> </div>
Fix default selection of available tab when html and/or text version wasn't available.
Fix default selection of available tab when html and/or text version wasn't available.
HTML
apache-2.0
SpartaSystems/holdmail,SpartaSystems/holdmail,SpartaSystems/holdmail,SpartaSystems/holdmail
html
## Code Before: <div class="modal-header"> <h3 class="modal-title">{{message.subject}}</h3> </div> <div class="modal-body"> <uib-tabset active="activeForm" class="mail-summary"> <!-- TODO: fix auto-selection of first tab when first tab not shown --> <uib-tab index="0" heading="HTML Body" ng-show="message.messageHasBodyHTML"> <div ng-include src="'includes/mail-meta.html'" class="mail-summary-meta"></div> <iframe class="mail-summary-content mail-summary-content-html" src="{{messageHTMLURL}}"></iframe> </uib-tab> <uib-tab index="1" heading="Text Body" ng-show="message.messageHasBodyText"> <div ng-include src="'includes/mail-meta.html'"></div> <div class="mail-summary-content mail-summary-content-pre">{{message.messageBodyText}}</div> </uib-tab> <uib-tab index="2" heading="Original Message"> <div class="mail-summary-content mail-summary-content-pre mail-summary-content-raw">{{message.messageRaw}}</div> </uib-tab> </uib-tabset> </div> <div class="modal-footer"> <button class="btn btn-info" ng-click="modalCtrl.close()">Close</button> </div> ## Instruction: Fix default selection of available tab when html and/or text version wasn't available. ## Code After: <div class="modal-header"> <h3 class="modal-title">{{message.subject}}</h3> </div> <div class="modal-body"> <uib-tabset active="activeForm" class="mail-summary"> <uib-tab id="0" heading="HTML Body" ng-if="message.messageHasBodyHTML"> <div ng-include src="'includes/mail-meta.html'" class="mail-summary-meta"></div> <iframe class="mail-summary-content mail-summary-content-html" src="{{messageHTMLURL}}"></iframe> </uib-tab> <uib-tab id="1" heading="Text Body" ng-if="message.messageHasBodyText"> <div ng-include src="'includes/mail-meta.html'"></div> <div class="mail-summary-content mail-summary-content-pre">{{message.messageBodyText}}</div> </uib-tab> <uib-tab id="2" heading="Original Message" ng-if="true"> <div class="mail-summary-content mail-summary-content-pre mail-summary-content-raw">{{message.messageRaw}}</div> </uib-tab> </uib-tabset> </div> <div class="modal-footer"> <button class="btn btn-info" ng-click="modalCtrl.close()">Close</button> </div>
<div class="modal-header"> <h3 class="modal-title">{{message.subject}}</h3> </div> <div class="modal-body"> <uib-tabset active="activeForm" class="mail-summary"> - <!-- TODO: fix auto-selection of first tab when first tab not shown --> - - <uib-tab index="0" heading="HTML Body" ng-show="message.messageHasBodyHTML"> ? - -- ^^^^ + <uib-tab id="0" heading="HTML Body" ng-if="message.messageHasBodyHTML"> ? ^^ <div ng-include src="'includes/mail-meta.html'" class="mail-summary-meta"></div> <iframe class="mail-summary-content mail-summary-content-html" src="{{messageHTMLURL}}"></iframe> </uib-tab> - <uib-tab index="1" heading="Text Body" ng-show="message.messageHasBodyText"> ? - -- ^^^^ + <uib-tab id="1" heading="Text Body" ng-if="message.messageHasBodyText"> ? ^^ <div ng-include src="'includes/mail-meta.html'"></div> <div class="mail-summary-content mail-summary-content-pre">{{message.messageBodyText}}</div> </uib-tab> - <uib-tab index="2" heading="Original Message"> ? - -- + <uib-tab id="2" heading="Original Message" ng-if="true"> ? +++++++++++++ <div class="mail-summary-content mail-summary-content-pre mail-summary-content-raw">{{message.messageRaw}}</div> </uib-tab> </uib-tabset> </div> <div class="modal-footer"> <button class="btn btn-info" ng-click="modalCtrl.close()">Close</button> </div>
8
0.258065
3
5
b5d7a487e9cc189b5a2dbf7136eba5fa0a9838dd
templates/postview.html
templates/postview.html
{% extends "base.html" %} {% block title %}{{ block.super }}{{ post.title }}{% endblock %} {% block content %} <div class="row"> <div class="col-md-8 col-md-offset-2"> <p class="lead">{{ post.title }} ({{ post.published | date:"DATE_FORMAT" }})</p> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2"> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2 panel panel-default"> <div class="panel-body"> {% include "disqus.html" %} </div> </div> </div> {% endblock %}
{% extends "base.html" %} {% block title %}{{ block.super }}{{ post.title }}{% endblock %} {% block content %} <div class="row"> <div class="col-md-8 col-md-offset-2"> <p class="lead">{{ post.title }} ({{ post.published | date:"DATE_FORMAT" }})</p> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2 panel panel-default"> <div class="panel-body"> {% include "disqus.html" %} </div> </div> </div> {% endblock %}
Remove duplicate lines. Sidenote: staging servers rock.
Remove duplicate lines. Sidenote: staging servers rock.
HTML
mit
ImmaculateObsession/nest,ImmaculateObsession/nest,ImmaculateObsession/nest,ImmaculateObsession/nest,ImmaculateObsession/nest
html
## Code Before: {% extends "base.html" %} {% block title %}{{ block.super }}{{ post.title }}{% endblock %} {% block content %} <div class="row"> <div class="col-md-8 col-md-offset-2"> <p class="lead">{{ post.title }} ({{ post.published | date:"DATE_FORMAT" }})</p> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2"> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2 panel panel-default"> <div class="panel-body"> {% include "disqus.html" %} </div> </div> </div> {% endblock %} ## Instruction: Remove duplicate lines. Sidenote: staging servers rock. ## Code After: {% extends "base.html" %} {% block title %}{{ block.super }}{{ post.title }}{% endblock %} {% block content %} <div class="row"> <div class="col-md-8 col-md-offset-2"> <p class="lead">{{ post.title }} ({{ post.published | date:"DATE_FORMAT" }})</p> {{ post.post | safe }} </div> </div> <div class="row"> <div class="col-md-8 col-md-offset-2 panel panel-default"> <div class="panel-body"> {% include "disqus.html" %} </div> </div> </div> {% endblock %}
{% extends "base.html" %} {% block title %}{{ block.super }}{{ post.title }}{% endblock %} {% block content %} <div class="row"> <div class="col-md-8 col-md-offset-2"> <p class="lead">{{ post.title }} ({{ post.published | date:"DATE_FORMAT" }})</p> {{ post.post | safe }} </div> </div> <div class="row"> - <div class="col-md-8 col-md-offset-2"> - {{ post.post | safe }} - </div> - </div> - <div class="row"> <div class="col-md-8 col-md-offset-2 panel panel-default"> <div class="panel-body"> {% include "disqus.html" %} </div> </div> </div> {% endblock %}
5
0.208333
0
5
549086616ff0033ef7edcfe21a7adb7b2d801c66
.travis.yml
.travis.yml
bundler_args: "--without development" script: "bundle exec rake test:ci" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - rbx - rbx-2.0 notifications: irc: "irc.freenode.org#travis"
bundler_args: "--without development" before_script: - "cp config/database.example.yml config/database.yml" script: "bundle exec rake test:ci" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - rbx - rbx-2.0 notifications: irc: "irc.freenode.org#travis"
Add before_script to prepare the database.yml file
Add before_script to prepare the database.yml file
YAML
mit
fxposter/travis-ci,fxposter/travis-ci,openeducation/travis-ci,fxposter/travis-ci,flores/travis-ci,openeducation/travis-ci,flores/travis-ci,openeducation/travis-ci,flores/travis-ci
yaml
## Code Before: bundler_args: "--without development" script: "bundle exec rake test:ci" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - rbx - rbx-2.0 notifications: irc: "irc.freenode.org#travis" ## Instruction: Add before_script to prepare the database.yml file ## Code After: bundler_args: "--without development" before_script: - "cp config/database.example.yml config/database.yml" script: "bundle exec rake test:ci" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - rbx - rbx-2.0 notifications: irc: "irc.freenode.org#travis"
bundler_args: "--without development" + before_script: + - "cp config/database.example.yml config/database.yml" script: "bundle exec rake test:ci" rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ree - rbx - rbx-2.0 notifications: irc: "irc.freenode.org#travis"
2
0.181818
2
0
25d5d8ed64e8f26be45c27a42867f972117ce04e
app/views/notify/_note_message.html.haml
app/views/notify/_note_message.html.haml
%p %strong #{@note.author_name} left next message: %cite{style: 'color: #666'} = markdown(@note.note)
%p %strong #{@note.author_name} wrote: %cite{style: 'color: #666'} = markdown(@note.note)
Improve message in email notifications
Improve message in email notifications
Haml
mit
8thcolor/rubyconfau2015-sadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/rubyconfau2015-sadr,8thcolor/eurucamp2014-htdsadr,8thcolor/eurucamp2014-htdsadr
haml
## Code Before: %p %strong #{@note.author_name} left next message: %cite{style: 'color: #666'} = markdown(@note.note) ## Instruction: Improve message in email notifications ## Code After: %p %strong #{@note.author_name} wrote: %cite{style: 'color: #666'} = markdown(@note.note)
%p %strong #{@note.author_name} - left next message: + wrote: %cite{style: 'color: #666'} = markdown(@note.note)
2
0.333333
1
1
ac774a1744416e427b4b2b9c213bf4147a25d07d
sources/us/co/city_of_aurora.json
sources/us/co/city_of_aurora.json
{ "coverage": { "geometry": { "type": "Point", "coordinates": [ -104.861, 39.725 ] }, "US Census": { "geoid": "0804000", "name": "City of Aurora", "state": "Colorado" }, "country": "us", "state": "co", "city": "Aurora" }, "data": "https://apps2.auroragov.org/OpenData/DataDownload/LL_AddressPoints_SHP.zip", "license": "Crappy License", "attribution": "City of Aurora", "note": "Incorrect Projection", "type": "http", "compression": "zip", "conform": { "type": "shapefile", "number": { "function": "regexp", "field": "ADDRESS", "pattern": "^([0-9]+)" }, "street": { "function": "regexp", "field": "ADDRESS", "pattern": "^(?:[0-9]+ )(.*)", "replace": "$1" }, "city": "CITY", "postcode": "ZIP_CODE" } }
{ "coverage": { "geometry": { "type": "Point", "coordinates": [ -104.861, 39.725 ] }, "US Census": { "geoid": "0804000", "name": "City of Aurora", "state": "Colorado" }, "country": "us", "state": "co", "city": "Aurora" }, "data": "https://apps2.auroragov.org/OpenData/DataDownload/LL_AddressPoints_SHP.zip", "license": "Crappy License", "attribution": "City of Aurora", "type": "ESRI", "conform": { "type": "geojson", "number": "ADDRESS_NUMBER", "street": [ "STREET_DIRECTION", "STREET_NAME", "STREET_TYPE", "DIRSUF" ], "city": "CITY", "postcode": "ZIP_CODE", "region": "COUNTY" } }
Switch Aurora, CO to use ESRI endpoint
Switch Aurora, CO to use ESRI endpoint
JSON
bsd-3-clause
sergiyprotsiv/openaddresses,openaddresses/openaddresses,binaek89/openaddresses,openaddresses/openaddresses,sergiyprotsiv/openaddresses,binaek89/openaddresses,tyrasd/openaddresses,tyrasd/openaddresses,astoff/openaddresses,tyrasd/openaddresses,openaddresses/openaddresses,hannesj/openaddresses,mmdolbow/openaddresses,orangejulius/openaddresses,mmdolbow/openaddresses,sabas/openaddresses,orangejulius/openaddresses,sabas/openaddresses,mmdolbow/openaddresses,davidchiles/openaddresses,slibby/openaddresses,binaek89/openaddresses,hannesj/openaddresses,slibby/openaddresses,sabas/openaddresses,orangejulius/openaddresses,davidchiles/openaddresses,slibby/openaddresses,sergiyprotsiv/openaddresses,hannesj/openaddresses,astoff/openaddresses,davidchiles/openaddresses,astoff/openaddresses
json
## Code Before: { "coverage": { "geometry": { "type": "Point", "coordinates": [ -104.861, 39.725 ] }, "US Census": { "geoid": "0804000", "name": "City of Aurora", "state": "Colorado" }, "country": "us", "state": "co", "city": "Aurora" }, "data": "https://apps2.auroragov.org/OpenData/DataDownload/LL_AddressPoints_SHP.zip", "license": "Crappy License", "attribution": "City of Aurora", "note": "Incorrect Projection", "type": "http", "compression": "zip", "conform": { "type": "shapefile", "number": { "function": "regexp", "field": "ADDRESS", "pattern": "^([0-9]+)" }, "street": { "function": "regexp", "field": "ADDRESS", "pattern": "^(?:[0-9]+ )(.*)", "replace": "$1" }, "city": "CITY", "postcode": "ZIP_CODE" } } ## Instruction: Switch Aurora, CO to use ESRI endpoint ## Code After: { "coverage": { "geometry": { "type": "Point", "coordinates": [ -104.861, 39.725 ] }, "US Census": { "geoid": "0804000", "name": "City of Aurora", "state": "Colorado" }, "country": "us", "state": "co", "city": "Aurora" }, "data": "https://apps2.auroragov.org/OpenData/DataDownload/LL_AddressPoints_SHP.zip", "license": "Crappy License", "attribution": "City of Aurora", "type": "ESRI", "conform": { "type": "geojson", "number": "ADDRESS_NUMBER", "street": [ "STREET_DIRECTION", "STREET_NAME", "STREET_TYPE", "DIRSUF" ], "city": "CITY", "postcode": "ZIP_CODE", "region": "COUNTY" } }
{ "coverage": { "geometry": { "type": "Point", "coordinates": [ -104.861, 39.725 ] }, "US Census": { "geoid": "0804000", "name": "City of Aurora", "state": "Colorado" }, "country": "us", "state": "co", "city": "Aurora" }, "data": "https://apps2.auroragov.org/OpenData/DataDownload/LL_AddressPoints_SHP.zip", "license": "Crappy License", "attribution": "City of Aurora", - "note": "Incorrect Projection", - "type": "http", ? ^^^^ + "type": "ESRI", ? ^^^^ - "compression": "zip", "conform": { + "type": "geojson", + "number": "ADDRESS_NUMBER", - "type": "shapefile", - "number": { - "function": "regexp", - "field": "ADDRESS", - "pattern": "^([0-9]+)" - }, - "street": { ? ^ + "street": [ ? ++ ^ - "function": "regexp", - "field": "ADDRESS", - "pattern": "^(?:[0-9]+ )(.*)", - "replace": "$1" + "STREET_DIRECTION", + "STREET_NAME", + "STREET_TYPE", + "DIRSUF" - }, ? ^ + ], ? ^^^ - "city": "CITY", + "city": "CITY", ? ++ - "postcode": "ZIP_CODE" + "postcode": "ZIP_CODE", ? ++ + + "region": "COUNTY" } }
29
0.707317
12
17
47a4de6749c48e948d09fba8acc3258c1640e2de
.travis.yml
.travis.yml
language: python python: - 2.7 - 3.3 notifications: email: false # Setup anaconda before_install: - travis/miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # The next couple lines fix a crash with multiprocessing on Travis - sudo rm -rf /dev/shm - sudo ln -s /run/shm /dev/shm # Install packages install: # Install dependencies - conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels - pip install python-coveralls --use-mirrors - pip install nose-cov --use-mirrors - python setup.py install - export MATPLOTLIB_BACKEND=agg # List all conda and pip packages - conda list # Run test script: - nosetests --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO # Calculate coverage after_success: - coveralls --config_file .coveragerc
language: python python: - 2.7 - 3.3 notifications: email: false # Setup anaconda before_install: - travis/miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # The next couple lines fix a crash with multiprocessing on Travis - sudo rm -rf /dev/shm - sudo ln -s /run/shm /dev/shm # Install packages install: # Install dependencies - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels; else conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pandas statsmodels; fi - pip install python-coveralls --use-mirrors - pip install nose-cov --use-mirrors - python setup.py install - export MATPLOTLIB_BACKEND=agg # List all conda and pip packages - conda list # Run test script: - nosetests --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO # Calculate coverage after_success: - coveralls --config_file .coveragerc
Install matplotlib 1.1.1 for 2.7, but install latest for 3.3
Install matplotlib 1.1.1 for 2.7, but install latest for 3.3
YAML
bsd-2-clause
smblance/ggplot,mizzao/ggplot,xguse/ggplot,ricket1978/ggplot,assad2012/ggplot,wllmtrng/ggplot,benslice/ggplot,benslice/ggplot,ricket1978/ggplot,udacity/ggplot,xguse/ggplot,andnovar/ggplot,kmather73/ggplot,eco32i/ggplot,mizzao/ggplot,bitemyapp/ggplot,Cophy08/ggplot
yaml
## Code Before: language: python python: - 2.7 - 3.3 notifications: email: false # Setup anaconda before_install: - travis/miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # The next couple lines fix a crash with multiprocessing on Travis - sudo rm -rf /dev/shm - sudo ln -s /run/shm /dev/shm # Install packages install: # Install dependencies - conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels - pip install python-coveralls --use-mirrors - pip install nose-cov --use-mirrors - python setup.py install - export MATPLOTLIB_BACKEND=agg # List all conda and pip packages - conda list # Run test script: - nosetests --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO # Calculate coverage after_success: - coveralls --config_file .coveragerc ## Instruction: Install matplotlib 1.1.1 for 2.7, but install latest for 3.3 ## Code After: language: python python: - 2.7 - 3.3 notifications: email: false # Setup anaconda before_install: - travis/miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # The next couple lines fix a crash with multiprocessing on Travis - sudo rm -rf /dev/shm - sudo ln -s /run/shm /dev/shm # Install packages install: # Install dependencies - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels; else conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pandas statsmodels; fi - pip install python-coveralls --use-mirrors - pip install nose-cov --use-mirrors - python setup.py install - export MATPLOTLIB_BACKEND=agg # List all conda and pip packages - conda list # Run test script: - nosetests --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO # Calculate coverage after_success: - coveralls --config_file .coveragerc
language: python python: - 2.7 - 3.3 notifications: email: false # Setup anaconda before_install: - travis/miniconda.sh -b - export PATH=/home/travis/anaconda/bin:$PATH # The next couple lines fix a crash with multiprocessing on Travis - sudo rm -rf /dev/shm - sudo ln -s /run/shm /dev/shm # Install packages install: # Install dependencies - - conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels + - if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib=1.1.1 nose dateutil pandas=0.12 statsmodels; else conda install --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib nose dateutil pandas statsmodels; fi - pip install python-coveralls --use-mirrors - pip install nose-cov --use-mirrors - python setup.py install - export MATPLOTLIB_BACKEND=agg # List all conda and pip packages - conda list # Run test script: - nosetests --with-cov --cov ggplot --cov-config .coveragerc --logging-level=INFO # Calculate coverage after_success: - coveralls --config_file .coveragerc
2
0.0625
1
1
20bbaaeccec708de2efa7838b7da149dbc89dbfe
src/test/ceylon/misc/aliases.ceylon
src/test/ceylon/misc/aliases.ceylon
import check { ... } shared class AliasingClass() { shared interface AliasingIface { shared Boolean aliasingIface() { return true; } } shared class AliasingInner() { shared Boolean aliasingInner() { return true; } } } class AliasingSubclass() extends AliasingClass() { shared class InnerAlias() = AliasingInner; shared class SubAlias() extends InnerAlias() {} shared Boolean aliasingSubclass() { return SubAlias().aliasingInner(); } shared interface AliasedIface = AliasingIface; } class AliasingSub2() extends AliasingSubclass() { shared AliasedIface iface { object aliased satisfies AliasedIface { } return aliased; } } void testAliasing() { print("testing type aliases"); check(AliasingSubclass().aliasingSubclass(), "Aliased member class"); class InnerSubalias() = AliasingSubclass; check(InnerSubalias().aliasingSubclass(), "Aliased top-level class"); interface AliasedIface2 = AliasingClass.AliasingIface; Boolean use(AliasedIface2 aif) { return aif.aliasingIface(); } check(use(AliasingSub2().iface), "Aliased member interface"); }
import check { ... } alias Strinteger = String|Integer; shared class AliasingClass() { shared interface AliasingIface { shared Boolean aliasingIface() { return true; } } shared class AliasingInner() { shared Boolean aliasingInner() { return true; } } } class AliasingSubclass() extends AliasingClass() { shared class InnerAlias() = AliasingInner; shared class SubAlias() extends InnerAlias() {} shared Boolean aliasingSubclass() { return SubAlias().aliasingInner(); } shared interface AliasedIface = AliasingIface; } class AliasingSub2() extends AliasingSubclass() { shared AliasedIface iface { object aliased satisfies AliasedIface { } return aliased; } } void testAliasing() { print("testing type aliases"); check(AliasingSubclass().aliasingSubclass(), "Aliased member class"); class InnerSubalias() = AliasingSubclass; check(InnerSubalias().aliasingSubclass(), "Aliased top-level class"); interface AliasedIface2 = AliasingClass.AliasingIface; Boolean use(AliasedIface2 aif) { return aif.aliasingIface(); } check(use(AliasingSub2().iface), "Aliased member interface"); Strinteger xxxxx = 5; check(is Integer xxxxx, "Type alias"); }
Add simple test for type alias
Add simple test for type alias
Ceylon
apache-2.0
ceylon/ceylon-js,ceylon/ceylon-js,ceylon/ceylon-js
ceylon
## Code Before: import check { ... } shared class AliasingClass() { shared interface AliasingIface { shared Boolean aliasingIface() { return true; } } shared class AliasingInner() { shared Boolean aliasingInner() { return true; } } } class AliasingSubclass() extends AliasingClass() { shared class InnerAlias() = AliasingInner; shared class SubAlias() extends InnerAlias() {} shared Boolean aliasingSubclass() { return SubAlias().aliasingInner(); } shared interface AliasedIface = AliasingIface; } class AliasingSub2() extends AliasingSubclass() { shared AliasedIface iface { object aliased satisfies AliasedIface { } return aliased; } } void testAliasing() { print("testing type aliases"); check(AliasingSubclass().aliasingSubclass(), "Aliased member class"); class InnerSubalias() = AliasingSubclass; check(InnerSubalias().aliasingSubclass(), "Aliased top-level class"); interface AliasedIface2 = AliasingClass.AliasingIface; Boolean use(AliasedIface2 aif) { return aif.aliasingIface(); } check(use(AliasingSub2().iface), "Aliased member interface"); } ## Instruction: Add simple test for type alias ## Code After: import check { ... } alias Strinteger = String|Integer; shared class AliasingClass() { shared interface AliasingIface { shared Boolean aliasingIface() { return true; } } shared class AliasingInner() { shared Boolean aliasingInner() { return true; } } } class AliasingSubclass() extends AliasingClass() { shared class InnerAlias() = AliasingInner; shared class SubAlias() extends InnerAlias() {} shared Boolean aliasingSubclass() { return SubAlias().aliasingInner(); } shared interface AliasedIface = AliasingIface; } class AliasingSub2() extends AliasingSubclass() { shared AliasedIface iface { object aliased satisfies AliasedIface { } return aliased; } } void testAliasing() { print("testing type aliases"); check(AliasingSubclass().aliasingSubclass(), "Aliased member class"); class InnerSubalias() = AliasingSubclass; check(InnerSubalias().aliasingSubclass(), "Aliased top-level class"); interface AliasedIface2 = AliasingClass.AliasingIface; Boolean use(AliasedIface2 aif) { return aif.aliasingIface(); } check(use(AliasingSub2().iface), "Aliased member interface"); Strinteger xxxxx = 5; check(is Integer xxxxx, "Type alias"); }
import check { ... } + + alias Strinteger = String|Integer; shared class AliasingClass() { shared interface AliasingIface { shared Boolean aliasingIface() { return true; } } shared class AliasingInner() { shared Boolean aliasingInner() { return true; } } } class AliasingSubclass() extends AliasingClass() { shared class InnerAlias() = AliasingInner; shared class SubAlias() extends InnerAlias() {} shared Boolean aliasingSubclass() { return SubAlias().aliasingInner(); } shared interface AliasedIface = AliasingIface; } class AliasingSub2() extends AliasingSubclass() { shared AliasedIface iface { object aliased satisfies AliasedIface { } return aliased; } } void testAliasing() { print("testing type aliases"); check(AliasingSubclass().aliasingSubclass(), "Aliased member class"); class InnerSubalias() = AliasingSubclass; check(InnerSubalias().aliasingSubclass(), "Aliased top-level class"); interface AliasedIface2 = AliasingClass.AliasingIface; Boolean use(AliasedIface2 aif) { return aif.aliasingIface(); } check(use(AliasingSub2().iface), "Aliased member interface"); - + Strinteger xxxxx = 5; + check(is Integer xxxxx, "Type alias"); }
5
0.128205
4
1
979c56f882178ce49194850bd9e78c9dea4692dd
chardet/__init__.py
chardet/__init__.py
from .compat import PY2, PY3 from .universaldetector import UniversalDetector from .version import __version__, VERSION def detect(byte_str): """ Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` """ if not isinstance(byte_str, bytearray): if not isinstance(byte_str, bytes): raise TypeError('Expected object of type bytes or bytearray, got: ' '{0}'.format(type(byte_str))) else: byte_str = bytearray(byte_str) detector = UniversalDetector() detector.feed(byte_str) detector.close() return detector.result
from .compat import PY2, PY3 from .universaldetector import UniversalDetector from .version import __version__, VERSION def detect(byte_str): """ Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` """ if not isinstance(byte_str, bytearray): if not isinstance(byte_str, bytes): raise TypeError('Expected object of type bytes or bytearray, got: ' '{0}'.format(type(byte_str))) else: byte_str = bytearray(byte_str) detector = UniversalDetector() detector.feed(byte_str) return detector.close()
Remove unnecessary line from detect
Remove unnecessary line from detect
Python
lgpl-2.1
ddboline/chardet,chardet/chardet,chardet/chardet,ddboline/chardet
python
## Code Before: from .compat import PY2, PY3 from .universaldetector import UniversalDetector from .version import __version__, VERSION def detect(byte_str): """ Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` """ if not isinstance(byte_str, bytearray): if not isinstance(byte_str, bytes): raise TypeError('Expected object of type bytes or bytearray, got: ' '{0}'.format(type(byte_str))) else: byte_str = bytearray(byte_str) detector = UniversalDetector() detector.feed(byte_str) detector.close() return detector.result ## Instruction: Remove unnecessary line from detect ## Code After: from .compat import PY2, PY3 from .universaldetector import UniversalDetector from .version import __version__, VERSION def detect(byte_str): """ Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` """ if not isinstance(byte_str, bytearray): if not isinstance(byte_str, bytes): raise TypeError('Expected object of type bytes or bytearray, got: ' '{0}'.format(type(byte_str))) else: byte_str = bytearray(byte_str) detector = UniversalDetector() detector.feed(byte_str) return detector.close()
from .compat import PY2, PY3 from .universaldetector import UniversalDetector from .version import __version__, VERSION def detect(byte_str): """ Detect the encoding of the given byte string. :param byte_str: The byte sequence to examine. :type byte_str: ``bytes`` or ``bytearray`` """ if not isinstance(byte_str, bytearray): if not isinstance(byte_str, bytes): raise TypeError('Expected object of type bytes or bytearray, got: ' '{0}'.format(type(byte_str))) else: byte_str = bytearray(byte_str) detector = UniversalDetector() detector.feed(byte_str) - detector.close() + return detector.close() ? +++++++ - return detector.result
3
0.125
1
2
dd946ab90c65a9d902e3eb54a4f723e3f49a0966
web/app/themes/bramster/src/sass/module/_header-video.scss
web/app/themes/bramster/src/sass/module/_header-video.scss
/* * Header Video * * Header containing an embedded, full-width video */ .header-video { height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
/* * Header Video * * Header containing an embedded, full-width video */ .header-video { position: relative; height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
Fix header video popping out of it's parent element
Fix header video popping out of it's parent element
SCSS
mit
bramwillemse/bramwillemsenl,bramwillemse/bramwillemsenl,bramwillemse/bramwillemsenl,bramwillemse/bramwillemsenl
scss
## Code Before: /* * Header Video * * Header containing an embedded, full-width video */ .header-video { height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } } ## Instruction: Fix header video popping out of it's parent element ## Code After: /* * Header Video * * Header containing an embedded, full-width video */ .header-video { position: relative; height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
/* * Header Video * * Header containing an embedded, full-width video */ .header-video { + position: relative; height: 225px; /* start height */ margin-bottom: $vertical-margin * 2 !important; padding-top: 56.25%; /* slope */ background: darken($grey-50,25%); background-size: cover; -moz-background-size: cover; /* Firefox 3.6 */ background-position: center; /* Internet Explorer 7/8 */ border-bottom: darken($grey-50,25%) 1px solid; line-height: 0; @include breakpoint(large) { padding-top: 40%; } .box-video { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 0; height: auto; margin: 0; } }
1
0.029412
1
0
604e42e43039500a07c7c31bc90f07285e3a10a4
azure-pipelines.yml
azure-pipelines.yml
jobs: - job: macOS pool: vmImage: 'macOS-latest' steps: - pwsh: | sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release displayName: Build - publish: '$(build.sourcesDirectory)/builds/macos/build' artifact: macOS - job: Windows pool: vmImage: 'windows-latest' steps: - pwsh: | $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH" msbuild "./builds/win32/vs_2015/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" -property:PlatformToolset="v142" displayName: Build - publish: '$(build.sourcesDirectory)/builds/win32/vs_2015/x64' artifact: Windows
jobs: - job: macOS pool: vmImage: 'macOS-latest' steps: - pwsh: | sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release displayName: Build - publish: '$(build.sourcesDirectory)/builds/macos/build' artifact: macOS - job: Windows pool: vmImage: 'windows-latest' steps: - pwsh: | $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH" msbuild "./builds/win32/vs_2019/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" displayName: Build - publish: '$(build.sourcesDirectory)/builds/win32/vs_2019/x64' artifact: Windows
Move to Windows 10 SDK / fix macOS path
Move to Windows 10 SDK / fix macOS path
YAML
mit
Ultraschall/Soundboard,Ultraschall/Soundboard,Ultraschall/Soundboard,Ultraschall/Soundboard
yaml
## Code Before: jobs: - job: macOS pool: vmImage: 'macOS-latest' steps: - pwsh: | sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release displayName: Build - publish: '$(build.sourcesDirectory)/builds/macos/build' artifact: macOS - job: Windows pool: vmImage: 'windows-latest' steps: - pwsh: | $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH" msbuild "./builds/win32/vs_2015/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" -property:PlatformToolset="v142" displayName: Build - publish: '$(build.sourcesDirectory)/builds/win32/vs_2015/x64' artifact: Windows ## Instruction: Move to Windows 10 SDK / fix macOS path ## Code After: jobs: - job: macOS pool: vmImage: 'macOS-latest' steps: - pwsh: | sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release displayName: Build - publish: '$(build.sourcesDirectory)/builds/macos/build' artifact: macOS - job: Windows pool: vmImage: 'windows-latest' steps: - pwsh: | $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH" msbuild "./builds/win32/vs_2019/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" displayName: Build - publish: '$(build.sourcesDirectory)/builds/win32/vs_2019/x64' artifact: Windows
jobs: - job: macOS pool: vmImage: 'macOS-latest' steps: - pwsh: | sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer - xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release + xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release ? +++++++ displayName: Build - publish: '$(build.sourcesDirectory)/builds/macos/build' artifact: macOS - job: Windows pool: vmImage: 'windows-latest' steps: - pwsh: | $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH" - msbuild "./builds/win32/vs_2015/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" -property:PlatformToolset="v142" ? ^ --------------------------------- + msbuild "./builds/win32/vs_2019/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" ? ^ displayName: Build - - publish: '$(build.sourcesDirectory)/builds/win32/vs_2015/x64' ? ^ + - publish: '$(build.sourcesDirectory)/builds/win32/vs_2019/x64' ? ^ artifact: Windows
6
0.272727
3
3
617cb834d0908f108e27a12cb1dd4c5e1742d224
frontend/src-editor/editor/helpers/utils.cljs
frontend/src-editor/editor/helpers/utils.cljs
(ns editor.helpers.utils (:require [om-tools.dom :as dom])) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true))) (defn non-sanitized-div [content] (dom/div {:dangerouslySetInnerHTML #js {:__html content}})) (defn find-first [f coll] (first (filter f coll)))
(ns editor.helpers.utils) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true)))
Remove unused utility functions in editor
Remove unused utility functions in editor
Clojure
mit
AlexeyMK/faceboard,AlexeyMK/faceboard
clojure
## Code Before: (ns editor.helpers.utils (:require [om-tools.dom :as dom])) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true))) (defn non-sanitized-div [content] (dom/div {:dangerouslySetInnerHTML #js {:__html content}})) (defn find-first [f coll] (first (filter f coll))) ## Instruction: Remove unused utility functions in editor ## Code After: (ns editor.helpers.utils) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true)))
- (ns editor.helpers.utils + (ns editor.helpers.utils) ? + - (:require [om-tools.dom :as dom])) (defn model->json [model] (.stringify js/JSON (clj->js model) nil 2)) (defn json->model [json] (let [obj (.parse js/JSON json)] (js->clj obj :keywordize-keys true))) - - (defn non-sanitized-div [content] - (dom/div {:dangerouslySetInnerHTML #js {:__html content}})) - - (defn find-first [f coll] - (first (filter f coll)))
9
0.6
1
8
ac211880f3079ddc28fce2a361d64373751da78b
app/services/http.rb
app/services/http.rb
class HTTP include HTTParty # Don't verify SSL certificates. Probably a bad idea in the long run. default_options.update(verify: false) end
class HTTP include HTTParty # Verify TLS certificates. Not a bad idea in the long run. default_options.update(verify: true) end
Revert bad idea (originating from @hmans)
Revert bad idea (originating from @hmans)
Ruby
mit
KlausTrainer/pants,KlausTrainer/pants,KlausTrainer/pants
ruby
## Code Before: class HTTP include HTTParty # Don't verify SSL certificates. Probably a bad idea in the long run. default_options.update(verify: false) end ## Instruction: Revert bad idea (originating from @hmans) ## Code After: class HTTP include HTTParty # Verify TLS certificates. Not a bad idea in the long run. default_options.update(verify: true) end
class HTTP include HTTParty - # Don't verify SSL certificates. Probably a bad idea in the long run. ? ^^^^^^^ -- ^^ ^^^^^ + # Verify TLS certificates. Not a bad idea in the long run. ? ^ ++ ^ ^ - default_options.update(verify: false) ? ^^^^ + default_options.update(verify: true) ? ^^^ end
4
0.666667
2
2
6a5388550ed2d5d5efcce1e164391eafe528dba1
tree/ntuple/inc/LinkDef.h
tree/ntuple/inc/LinkDef.h
// Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __CLING__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedtypedefs; #pragma link C++ nestedclasses; // Support for auto-loading in the RNTuple tutorials #pragma link C++ class ROOT::Experimental::Detail::RFieldBase-; #pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-; #pragma link C++ class ROOT::Experimental::RFieldVector-; #pragma link C++ class ROOT::Experimental::RNTupleReader-; #pragma link C++ class ROOT::Experimental::RNTupleWriter-; #pragma link C++ class ROOT::Experimental::RNTupleModel-; #pragma link C++ class ROOT::Experimental::RNTuple+; #endif
// Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __CLING__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedtypedefs; #pragma link C++ nestedclasses; // Support for auto-loading in the RNTuple tutorials #pragma link C++ class ROOT::Experimental::Detail::RFieldBase-; #pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-; #pragma link C++ class ROOT::Experimental::RVectorField-; #pragma link C++ class ROOT::Experimental::RNTupleReader-; #pragma link C++ class ROOT::Experimental::RNTupleWriter-; #pragma link C++ class ROOT::Experimental::RNTupleModel-; #pragma link C++ class ROOT::Experimental::RNTuple+; #endif
Fix class name spelling in class rule
[ntuple] Fix class name spelling in class rule
C
lgpl-2.1
karies/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,karies/root,olifre/root,root-mirror/root,olifre/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,root-mirror/root
c
## Code Before: // Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __CLING__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedtypedefs; #pragma link C++ nestedclasses; // Support for auto-loading in the RNTuple tutorials #pragma link C++ class ROOT::Experimental::Detail::RFieldBase-; #pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-; #pragma link C++ class ROOT::Experimental::RFieldVector-; #pragma link C++ class ROOT::Experimental::RNTupleReader-; #pragma link C++ class ROOT::Experimental::RNTupleWriter-; #pragma link C++ class ROOT::Experimental::RNTupleModel-; #pragma link C++ class ROOT::Experimental::RNTuple+; #endif ## Instruction: [ntuple] Fix class name spelling in class rule ## Code After: // Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __CLING__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedtypedefs; #pragma link C++ nestedclasses; // Support for auto-loading in the RNTuple tutorials #pragma link C++ class ROOT::Experimental::Detail::RFieldBase-; #pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-; #pragma link C++ class ROOT::Experimental::RVectorField-; #pragma link C++ class ROOT::Experimental::RNTupleReader-; #pragma link C++ class ROOT::Experimental::RNTupleWriter-; #pragma link C++ class ROOT::Experimental::RNTupleModel-; #pragma link C++ class ROOT::Experimental::RNTuple+; #endif
// Author: Jakob Blomer CERN 10/2018 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifdef __CLING__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ nestedtypedefs; #pragma link C++ nestedclasses; // Support for auto-loading in the RNTuple tutorials #pragma link C++ class ROOT::Experimental::Detail::RFieldBase-; #pragma link C++ class ROOT::Experimental::Detail::RFieldBase::RSchemaIterator-; - #pragma link C++ class ROOT::Experimental::RFieldVector-; ? ----- + #pragma link C++ class ROOT::Experimental::RVectorField-; ? +++++ #pragma link C++ class ROOT::Experimental::RNTupleReader-; #pragma link C++ class ROOT::Experimental::RNTupleWriter-; #pragma link C++ class ROOT::Experimental::RNTupleModel-; #pragma link C++ class ROOT::Experimental::RNTuple+; #endif
2
0.066667
1
1
022ab26d45efb8fe951e81e2fec0935f0d795207
test/index.js
test/index.js
var test = require('tape') var Linter = require('../') test('basic', function (assert) { assert.equals(typeof Linter, 'function', 'require returns function') assert.end() }) test('passed errors up from xml2js', function (assert) { var linter = Linter() linter.on('error', function (err) { assert.ok(err, 'error event fired') assert.end() }) linter.lint('<test') }) test('emits end', function (assert) { var linter = Linter() linter.on('end', function () { assert.ok(true, 'end event fired') assert.end() }) linter.lint('') })
var Linter = require('../') var test = require('tape') var path = require('path') var fs = require('fs') test('basic', function (assert) { assert.equals(typeof Linter, 'function', 'require returns function') assert.end() }) test('passed errors up from xml2js', function (assert) { var linter = Linter() linter.on('error', function (err) { assert.ok(err, 'error event fired') assert.end() }) linter.lint('<test') }) test('emits notice', function (assert) { var linter = Linter() linter.on('notice', function (msg) { assert.ok(msg, 'notice event fired') assert.end() }) linter.lint(fs.readFileSync(path.join(__dirname, 'fixtures/test1.xml')).toString()) }) test('emits end', function (assert) { var linter = Linter() linter.on('end', function () { assert.ok(true, 'end event fired') assert.end() }) linter.lint('') })
Add test for notice rules
Add test for notice rules
JavaScript
mit
joshgillies/node-matrix-import-xml-linter
javascript
## Code Before: var test = require('tape') var Linter = require('../') test('basic', function (assert) { assert.equals(typeof Linter, 'function', 'require returns function') assert.end() }) test('passed errors up from xml2js', function (assert) { var linter = Linter() linter.on('error', function (err) { assert.ok(err, 'error event fired') assert.end() }) linter.lint('<test') }) test('emits end', function (assert) { var linter = Linter() linter.on('end', function () { assert.ok(true, 'end event fired') assert.end() }) linter.lint('') }) ## Instruction: Add test for notice rules ## Code After: var Linter = require('../') var test = require('tape') var path = require('path') var fs = require('fs') test('basic', function (assert) { assert.equals(typeof Linter, 'function', 'require returns function') assert.end() }) test('passed errors up from xml2js', function (assert) { var linter = Linter() linter.on('error', function (err) { assert.ok(err, 'error event fired') assert.end() }) linter.lint('<test') }) test('emits notice', function (assert) { var linter = Linter() linter.on('notice', function (msg) { assert.ok(msg, 'notice event fired') assert.end() }) linter.lint(fs.readFileSync(path.join(__dirname, 'fixtures/test1.xml')).toString()) }) test('emits end', function (assert) { var linter = Linter() linter.on('end', function () { assert.ok(true, 'end event fired') assert.end() }) linter.lint('') })
+ var Linter = require('../') var test = require('tape') - var Linter = require('../') + var path = require('path') + var fs = require('fs') test('basic', function (assert) { assert.equals(typeof Linter, 'function', 'require returns function') assert.end() }) test('passed errors up from xml2js', function (assert) { var linter = Linter() linter.on('error', function (err) { assert.ok(err, 'error event fired') assert.end() }) linter.lint('<test') }) + test('emits notice', function (assert) { + var linter = Linter() + linter.on('notice', function (msg) { + assert.ok(msg, 'notice event fired') + assert.end() + }) + linter.lint(fs.readFileSync(path.join(__dirname, 'fixtures/test1.xml')).toString()) + }) + test('emits end', function (assert) { var linter = Linter() linter.on('end', function () { assert.ok(true, 'end event fired') assert.end() }) linter.lint('') })
13
0.52
12
1
45a7fc2ea435449968ae3600260806b213b2b502
.travis.yml
.travis.yml
language: python python: 2.7 env: - TOX_ENV=py26-dj14 - TOX_ENV=py26-dj15 - TOX_ENV=py26-dj16 - TOX_ENV=py27-dj14 - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj16-haydev - TOX_ENV=py33-dj15 - TOX_ENV=py33-dj16 - TOX_ENV=pypy-dj16 - TOX_ENV=py33-dj16-haydev - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV #after_success: coveralls
language: python python: 2.7 env: - TOX_ENV=py26-dj14 - TOX_ENV=py26-dj16 - TOX_ENV=py27-dj14 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj16-haydev - TOX_ENV=py33-dj16 - TOX_ENV=pypy-dj16 - TOX_ENV=py33-dj16-haydev - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV #after_success: coveralls
Remove Django 1.5 from test envs
Remove Django 1.5 from test envs Unsupported version
YAML
bsd-2-clause
bennylope/elasticstack
yaml
## Code Before: language: python python: 2.7 env: - TOX_ENV=py26-dj14 - TOX_ENV=py26-dj15 - TOX_ENV=py26-dj16 - TOX_ENV=py27-dj14 - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj16-haydev - TOX_ENV=py33-dj15 - TOX_ENV=py33-dj16 - TOX_ENV=pypy-dj16 - TOX_ENV=py33-dj16-haydev - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV #after_success: coveralls ## Instruction: Remove Django 1.5 from test envs Unsupported version ## Code After: language: python python: 2.7 env: - TOX_ENV=py26-dj14 - TOX_ENV=py26-dj16 - TOX_ENV=py27-dj14 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj16-haydev - TOX_ENV=py33-dj16 - TOX_ENV=pypy-dj16 - TOX_ENV=py33-dj16-haydev - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV #after_success: coveralls
language: python python: 2.7 env: - TOX_ENV=py26-dj14 - - TOX_ENV=py26-dj15 - TOX_ENV=py26-dj16 - TOX_ENV=py27-dj14 - - TOX_ENV=py27-dj15 - TOX_ENV=py27-dj16 - TOX_ENV=py27-dj16-haydev - - TOX_ENV=py33-dj15 - TOX_ENV=py33-dj16 - TOX_ENV=pypy-dj16 - TOX_ENV=py33-dj16-haydev - TOX_ENV=flake8 install: - pip install tox script: - tox -e $TOX_ENV #after_success: coveralls
3
0.15
0
3
1a9358022e52ef875be6ee98027e8d7953381cc4
php_laravel_chat_tutorial/app/app/Http/Controllers/CentrifugoProxyController.php
php_laravel_chat_tutorial/app/app/Http/Controllers/CentrifugoProxyController.php
<?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; class CentrifugoProxyController extends Controller { public function connect() { return new JsonResponse([ 'result' => [ 'user' => (string) Auth::user()->id ] ]); } }
<?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; class CentrifugoProxyController extends Controller { public function connect() { return new JsonResponse([ 'result' => [ 'user' => (string) Auth::user()->id, 'channels' => ["personal:#".Auth::user()->id], ] ]); } }
Revert "personal channel is automatic"
Revert "personal channel is automatic" This reverts commit 7ed0c57f64adaa0eafc842da4f199f0488c7f4d7.
PHP
mit
centrifugal/examples,centrifugal/examples,centrifugal/examples,centrifugal/examples,centrifugal/examples,centrifugal/examples
php
## Code Before: <?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; class CentrifugoProxyController extends Controller { public function connect() { return new JsonResponse([ 'result' => [ 'user' => (string) Auth::user()->id ] ]); } } ## Instruction: Revert "personal channel is automatic" This reverts commit 7ed0c57f64adaa0eafc842da4f199f0488c7f4d7. ## Code After: <?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; class CentrifugoProxyController extends Controller { public function connect() { return new JsonResponse([ 'result' => [ 'user' => (string) Auth::user()->id, 'channels' => ["personal:#".Auth::user()->id], ] ]); } }
<?php namespace App\Http\Controllers; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\Auth; class CentrifugoProxyController extends Controller { public function connect() { return new JsonResponse([ 'result' => [ - 'user' => (string) Auth::user()->id + 'user' => (string) Auth::user()->id, ? + + 'channels' => ["personal:#".Auth::user()->id], ] ]); } }
3
0.166667
2
1
abb2bb74a78a8648cb40d46def24d7c2c0b9a0a3
app/views/browse/_relation_member.html.erb
app/views/browse/_relation_member.html.erb
<tr> <td><% linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase %> <span class="<%= link_class(relation_member.member_type.downcase, relation_member.member) %>"> <%= if relation_member.member_role.blank? t'browse.relation_member.entry', :type => type_str, :name => linked_name else t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role) end %> </span></td> </tr>
<% member_class = link_class(relation_member.member_type.downcase, relation_member.member) linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase %> <tr> <td class="<%= member_class %>"><%= if relation_member.member_role.blank? t'browse.relation_member.entry', :type => type_str, :name => linked_name else t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role) end %></td> </tr>
Tidy up addition of icons to relation members
Tidy up addition of icons to relation members
HTML+ERB
agpl-3.0
tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam
html+erb
## Code Before: <tr> <td><% linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase %> <span class="<%= link_class(relation_member.member_type.downcase, relation_member.member) %>"> <%= if relation_member.member_role.blank? t'browse.relation_member.entry', :type => type_str, :name => linked_name else t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role) end %> </span></td> </tr> ## Instruction: Tidy up addition of icons to relation members ## Code After: <% member_class = link_class(relation_member.member_type.downcase, relation_member.member) linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase %> <tr> <td class="<%= member_class %>"><%= if relation_member.member_role.blank? t'browse.relation_member.entry', :type => type_str, :name => linked_name else t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role) end %></td> </tr>
+ <% + member_class = link_class(relation_member.member_type.downcase, relation_member.member) + linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) + type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase + %> <tr> + <td class="<%= member_class %>"><%= - <td><% - linked_name = link_to h(printable_name(relation_member.member)), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member) - type_str = t'browse.relation_member.type.' + relation_member.member_type.downcase - %> - <span class="<%= - link_class(relation_member.member_type.downcase, relation_member.member) - %>"> - <%= if relation_member.member_role.blank? t'browse.relation_member.entry', :type => type_str, :name => linked_name else t'browse.relation_member.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role) end + %></td> - %> - </span></td> </tr>
17
1
7
10
ef573ac0883685783d91f14045b40176f4ba1485
Client/Cliqz/Foundation/Extensions/StringExtension.swift
Client/Cliqz/Foundation/Extensions/StringExtension.swift
// // StringExtension.swift // Client // // Created by Mahmoud Adam on 11/9/15. // Copyright © 2015 Cliqz. All rights reserved. // import Foundation extension String { var boolValue: Bool { return NSString(string: self).boolValue } func trim() -> String { let newString = self.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) return newString } static func generateRandomString(length: Int, alphabet: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -> String { var randomString = "" let rangeLength = UInt32 (alphabet.characters.count) for (var i=0; i < length; i++){ let randomIndex = Int(arc4random_uniform(rangeLength)) randomString.append(alphabet[alphabet.startIndex.advancedBy(randomIndex)]) } return String(randomString) } func replace(string:String, replacement:String) -> String { return self.stringByReplacingOccurrencesOfString(string, withString: replacement, options: NSStringCompareOptions.LiteralSearch, range: nil) } func removeWhitespaces() -> String { return self.replace(" ", replacement: "") } func escapeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet())! } }
// // StringExtension.swift // Client // // Created by Mahmoud Adam on 11/9/15. // Copyright © 2015 Cliqz. All rights reserved. // import Foundation extension String { var boolValue: Bool { return NSString(string: self).boolValue } func trim() -> String { let newString = self.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) return newString } static func generateRandomString(length: Int, alphabet: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -> String { var randomString = "" let rangeLength = UInt32 (alphabet.characters.count) for (var i=0; i < length; i++){ let randomIndex = Int(arc4random_uniform(rangeLength)) randomString.append(alphabet[alphabet.startIndex.advancedBy(randomIndex)]) } return String(randomString) } func replace(string:String, replacement:String) -> String { return self.stringByReplacingOccurrencesOfString(string, withString: replacement, options: NSStringCompareOptions.LiteralSearch, range: nil) } func removeWhitespaces() -> String { return self.replace(" ", replacement: "") } func escapeURL() -> String { let allowedCharacterSet = NSMutableCharacterSet() allowedCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLQueryAllowedCharacterSet()) allowedCharacterSet.removeCharactersInString("=") return self.stringByAddingPercentEncodingWithAllowedCharacters(allowedCharacterSet)! } }
Enforce escaping of `=` character so that google card works
Enforce escaping of `=` character so that google card works
Swift
mpl-2.0
sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,cliqz-oss/browser-ios,sharath-cliqz/browser-ios,sharath-cliqz/browser-ios
swift
## Code Before: // // StringExtension.swift // Client // // Created by Mahmoud Adam on 11/9/15. // Copyright © 2015 Cliqz. All rights reserved. // import Foundation extension String { var boolValue: Bool { return NSString(string: self).boolValue } func trim() -> String { let newString = self.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) return newString } static func generateRandomString(length: Int, alphabet: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -> String { var randomString = "" let rangeLength = UInt32 (alphabet.characters.count) for (var i=0; i < length; i++){ let randomIndex = Int(arc4random_uniform(rangeLength)) randomString.append(alphabet[alphabet.startIndex.advancedBy(randomIndex)]) } return String(randomString) } func replace(string:String, replacement:String) -> String { return self.stringByReplacingOccurrencesOfString(string, withString: replacement, options: NSStringCompareOptions.LiteralSearch, range: nil) } func removeWhitespaces() -> String { return self.replace(" ", replacement: "") } func escapeURL() -> String { return self.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet())! } } ## Instruction: Enforce escaping of `=` character so that google card works ## Code After: // // StringExtension.swift // Client // // Created by Mahmoud Adam on 11/9/15. // Copyright © 2015 Cliqz. All rights reserved. // import Foundation extension String { var boolValue: Bool { return NSString(string: self).boolValue } func trim() -> String { let newString = self.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) return newString } static func generateRandomString(length: Int, alphabet: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -> String { var randomString = "" let rangeLength = UInt32 (alphabet.characters.count) for (var i=0; i < length; i++){ let randomIndex = Int(arc4random_uniform(rangeLength)) randomString.append(alphabet[alphabet.startIndex.advancedBy(randomIndex)]) } return String(randomString) } func replace(string:String, replacement:String) -> String { return self.stringByReplacingOccurrencesOfString(string, withString: replacement, options: NSStringCompareOptions.LiteralSearch, range: nil) } func removeWhitespaces() -> String { return self.replace(" ", replacement: "") } func escapeURL() -> String { let allowedCharacterSet = NSMutableCharacterSet() allowedCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLQueryAllowedCharacterSet()) allowedCharacterSet.removeCharactersInString("=") return self.stringByAddingPercentEncodingWithAllowedCharacters(allowedCharacterSet)! } }
// // StringExtension.swift // Client // // Created by Mahmoud Adam on 11/9/15. // Copyright © 2015 Cliqz. All rights reserved. // import Foundation extension String { var boolValue: Bool { return NSString(string: self).boolValue } func trim() -> String { let newString = self.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet()) return newString } static func generateRandomString(length: Int, alphabet: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") -> String { var randomString = "" let rangeLength = UInt32 (alphabet.characters.count) for (var i=0; i < length; i++){ let randomIndex = Int(arc4random_uniform(rangeLength)) randomString.append(alphabet[alphabet.startIndex.advancedBy(randomIndex)]) } return String(randomString) } func replace(string:String, replacement:String) -> String { return self.stringByReplacingOccurrencesOfString(string, withString: replacement, options: NSStringCompareOptions.LiteralSearch, range: nil) } func removeWhitespaces() -> String { return self.replace(" ", replacement: "") } func escapeURL() -> String { + let allowedCharacterSet = NSMutableCharacterSet() + allowedCharacterSet.formUnionWithCharacterSet(NSCharacterSet.URLQueryAllowedCharacterSet()) + allowedCharacterSet.removeCharactersInString("=") + - return self.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLHostAllowedCharacterSet())! ? ---- ------------------ -- + return self.stringByAddingPercentEncodingWithAllowedCharacters(allowedCharacterSet)! } }
6
0.125
5
1
996174f281d66cab4056a77b68d5ef9212275328
.travis.yml
.travis.yml
language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc script: - mvn package -DskipTests - mvn cobertura:cobertura after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - export DEB_FILE=$(ls target/ldap-password-reset-service*.deb) deploy: provider: releases api_key: "${GITHUB_TOKEN}" file: "${DEB_FILE}" skip_cleanup: true on: tags: true
language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc script: - mvn package -DskipTests - mvn cobertura:cobertura after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - export DEB_FILE=$(ls target/*.deb) deploy: provider: releases api_key: "${GITHUB_TOKEN}" file: "${DEB_FILE}" skip_cleanup: true on: tags: true
Fix incorrect file name pattern
Fix incorrect file name pattern
YAML
apache-2.0
anton-johansson/elasticsearch-shell,anton-johansson/elasticsearch-shell,anton-johansson/elasticsearch-shell
yaml
## Code Before: language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc script: - mvn package -DskipTests - mvn cobertura:cobertura after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - export DEB_FILE=$(ls target/ldap-password-reset-service*.deb) deploy: provider: releases api_key: "${GITHUB_TOKEN}" file: "${DEB_FILE}" skip_cleanup: true on: tags: true ## Instruction: Fix incorrect file name pattern ## Code After: language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc script: - mvn package -DskipTests - mvn cobertura:cobertura after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - export DEB_FILE=$(ls target/*.deb) deploy: provider: releases api_key: "${GITHUB_TOKEN}" file: "${DEB_FILE}" skip_cleanup: true on: tags: true
language: java jdk: - oraclejdk8 cache: directories: - $HOME/.m2 before_script: - echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc script: - mvn package -DskipTests - mvn cobertura:cobertura after_success: - bash <(curl -s https://codecov.io/bash) before_deploy: - - export DEB_FILE=$(ls target/ldap-password-reset-service*.deb) + - export DEB_FILE=$(ls target/*.deb) deploy: provider: releases api_key: "${GITHUB_TOKEN}" file: "${DEB_FILE}" skip_cleanup: true on: tags: true
2
0.071429
1
1
524ee1cd2f56f6fe968f409d37cbd2af1621e7f3
framework/guid/model.py
framework/guid/model.py
from framework import StoredObject, fields class Guid(StoredObject): _id = fields.StringField() referent = fields.AbstractForeignField() _meta = { 'optimistic': True, } class GuidStoredObject(StoredObject): # Redirect to content using URL redirect by default redirect_mode = 'redirect' def _ensure_guid(self): """Create GUID record if current record doesn't already have one, then point GUID to self. """ # Create GUID with specified ID if ID provided if self._primary_key: # Done if GUID already exists guid = Guid.load(self._primary_key) if guid is not None: return # Create GUID guid = Guid( _id=self._primary_key, referent=self ) guid.save() # Else create GUID optimistically else: # Create GUID guid = Guid() guid.save() guid.referent = (guid._primary_key, self._name) guid.save() # Set primary key to GUID key self._primary_key = guid._primary_key def save(self, *args, **kwargs): """ Ensure GUID on save initialization. """ rv = super(GuidStoredObject, self).save(*args, **kwargs) self._ensure_guid() return rv @property def annotations(self): """ Get meta-data annotations associated with object. """ return self.metadata__annotated
from framework import StoredObject, fields class Guid(StoredObject): _id = fields.StringField() referent = fields.AbstractForeignField() _meta = { 'optimistic': True, } class GuidStoredObject(StoredObject): # Redirect to content using URL redirect by default redirect_mode = 'redirect' def _ensure_guid(self): """Create GUID record if current record doesn't already have one, then point GUID to self. """ # Create GUID with specified ID if ID provided if self._primary_key: # Done if GUID already exists guid = Guid.load(self._primary_key) if guid is not None: return # Create GUID guid = Guid( _id=self._primary_key, referent=self ) guid.save() # Else create GUID optimistically else: # Create GUID guid = Guid() guid.save() guid.referent = (guid._primary_key, self._name) guid.save() # Set primary key to GUID key self._primary_key = guid._primary_key def save(self, *args, **kwargs): """ Ensure GUID on save initialization. """ self._ensure_guid() return super(GuidStoredObject, self).save(*args, **kwargs) @property def annotations(self): """ Get meta-data annotations associated with object. """ return self.metadata__annotated
Fix last commit: Must ensure GUID before saving so that PK is defined
Fix last commit: Must ensure GUID before saving so that PK is defined
Python
apache-2.0
zkraime/osf.io,emetsger/osf.io,RomanZWang/osf.io,chennan47/osf.io,TomHeatwole/osf.io,adlius/osf.io,cwisecarver/osf.io,petermalcolm/osf.io,mfraezz/osf.io,wearpants/osf.io,HalcyonChimera/osf.io,baylee-d/osf.io,samanehsan/osf.io,CenterForOpenScience/osf.io,caseyrollins/osf.io,felliott/osf.io,monikagrabowska/osf.io,Johnetordoff/osf.io,jmcarp/osf.io,jeffreyliu3230/osf.io,sbt9uc/osf.io,Ghalko/osf.io,cwisecarver/osf.io,aaxelb/osf.io,pattisdr/osf.io,SSJohns/osf.io,billyhunt/osf.io,danielneis/osf.io,GageGaskins/osf.io,ZobairAlijan/osf.io,ckc6cz/osf.io,acshi/osf.io,cslzchen/osf.io,njantrania/osf.io,samchrisinger/osf.io,acshi/osf.io,pattisdr/osf.io,Johnetordoff/osf.io,lamdnhan/osf.io,njantrania/osf.io,billyhunt/osf.io,zamattiac/osf.io,felliott/osf.io,rdhyee/osf.io,alexschiller/osf.io,mluo613/osf.io,zachjanicki/osf.io,Nesiehr/osf.io,alexschiller/osf.io,crcresearch/osf.io,kwierman/osf.io,arpitar/osf.io,cwisecarver/osf.io,TomHeatwole/osf.io,abought/osf.io,mfraezz/osf.io,ckc6cz/osf.io,MerlinZhang/osf.io,fabianvf/osf.io,himanshuo/osf.io,mattclark/osf.io,mluo613/osf.io,asanfilippo7/osf.io,Johnetordoff/osf.io,samchrisinger/osf.io,TomBaxter/osf.io,himanshuo/osf.io,mluo613/osf.io,zkraime/osf.io,KAsante95/osf.io,revanthkolli/osf.io,himanshuo/osf.io,barbour-em/osf.io,adlius/osf.io,caneruguz/osf.io,fabianvf/osf.io,brianjgeiger/osf.io,baylee-d/osf.io,binoculars/osf.io,doublebits/osf.io,ckc6cz/osf.io,caseyrygt/osf.io,pattisdr/osf.io,barbour-em/osf.io,laurenrevere/osf.io,revanthkolli/osf.io,jeffreyliu3230/osf.io,barbour-em/osf.io,cldershem/osf.io,monikagrabowska/osf.io,petermalcolm/osf.io,danielneis/osf.io,jinluyuan/osf.io,danielneis/osf.io,chrisseto/osf.io,lyndsysimon/osf.io,jeffreyliu3230/osf.io,jinluyuan/osf.io,jeffreyliu3230/osf.io,chennan47/osf.io,ticklemepierce/osf.io,aaxelb/osf.io,mluke93/osf.io,samchrisinger/osf.io,SSJohns/osf.io,binoculars/osf.io,reinaH/osf.io,mluo613/osf.io,cosenal/osf.io,CenterForOpenScience/osf.io,Ghalko/osf.io,caneruguz/osf.io,brandonPurvis/osf.io,GageGaskins/osf.io,DanielSBrown/osf.io,mfraezz/osf.io,bdyetton/prettychart,jinluyuan/osf.io,baylee-d/osf.io,icereval/osf.io,kushG/osf.io,reinaH/osf.io,jolene-esposito/osf.io,mattclark/osf.io,ckc6cz/osf.io,reinaH/osf.io,mattclark/osf.io,zachjanicki/osf.io,wearpants/osf.io,asanfilippo7/osf.io,cldershem/osf.io,cldershem/osf.io,laurenrevere/osf.io,lyndsysimon/osf.io,cslzchen/osf.io,zkraime/osf.io,GageGaskins/osf.io,brianjgeiger/osf.io,mluke93/osf.io,zamattiac/osf.io,GaryKriebel/osf.io,TomBaxter/osf.io,lamdnhan/osf.io,brianjgeiger/osf.io,dplorimer/osf,cosenal/osf.io,aaxelb/osf.io,erinspace/osf.io,kushG/osf.io,saradbowman/osf.io,chrisseto/osf.io,kushG/osf.io,asanfilippo7/osf.io,caseyrygt/osf.io,Ghalko/osf.io,hmoco/osf.io,acshi/osf.io,brandonPurvis/osf.io,MerlinZhang/osf.io,SSJohns/osf.io,AndrewSallans/osf.io,leb2dg/osf.io,ticklemepierce/osf.io,RomanZWang/osf.io,cslzchen/osf.io,wearpants/osf.io,DanielSBrown/osf.io,monikagrabowska/osf.io,HalcyonChimera/osf.io,TomBaxter/osf.io,samanehsan/osf.io,kushG/osf.io,chrisseto/osf.io,binoculars/osf.io,arpitar/osf.io,doublebits/osf.io,ZobairAlijan/osf.io,samanehsan/osf.io,dplorimer/osf,acshi/osf.io,sbt9uc/osf.io,Nesiehr/osf.io,monikagrabowska/osf.io,felliott/osf.io,amyshi188/osf.io,mluke93/osf.io,zachjanicki/osf.io,GageGaskins/osf.io,dplorimer/osf,zkraime/osf.io,jolene-esposito/osf.io,rdhyee/osf.io,amyshi188/osf.io,doublebits/osf.io,lamdnhan/osf.io,mluo613/osf.io,Nesiehr/osf.io,brandonPurvis/osf.io,arpitar/osf.io,amyshi188/osf.io,jolene-esposito/osf.io,monikagrabowska/osf.io,zachjanicki/osf.io,petermalcolm/osf.io,cslzchen/osf.io,wearpants/osf.io,cldershem/osf.io,billyhunt/osf.io,njantrania/osf.io,DanielSBrown/osf.io,adlius/osf.io,jnayak1/osf.io,samanehsan/osf.io,felliott/osf.io,doublebits/osf.io,jolene-esposito/osf.io,crcresearch/osf.io,bdyetton/prettychart,bdyetton/prettychart,barbour-em/osf.io,lamdnhan/osf.io,Ghalko/osf.io,sbt9uc/osf.io,KAsante95/osf.io,sloria/osf.io,kch8qx/osf.io,erinspace/osf.io,zamattiac/osf.io,caneruguz/osf.io,kwierman/osf.io,samchrisinger/osf.io,TomHeatwole/osf.io,emetsger/osf.io,alexschiller/osf.io,doublebits/osf.io,caseyrygt/osf.io,ticklemepierce/osf.io,Nesiehr/osf.io,jinluyuan/osf.io,cosenal/osf.io,haoyuchen1992/osf.io,jmcarp/osf.io,kch8qx/osf.io,HarryRybacki/osf.io,MerlinZhang/osf.io,icereval/osf.io,kwierman/osf.io,alexschiller/osf.io,adlius/osf.io,icereval/osf.io,leb2dg/osf.io,jmcarp/osf.io,kch8qx/osf.io,jnayak1/osf.io,hmoco/osf.io,fabianvf/osf.io,HalcyonChimera/osf.io,laurenrevere/osf.io,kch8qx/osf.io,CenterForOpenScience/osf.io,HarryRybacki/osf.io,bdyetton/prettychart,dplorimer/osf,aaxelb/osf.io,njantrania/osf.io,billyhunt/osf.io,ZobairAlijan/osf.io,rdhyee/osf.io,SSJohns/osf.io,billyhunt/osf.io,chennan47/osf.io,GaryKriebel/osf.io,chrisseto/osf.io,crcresearch/osf.io,revanthkolli/osf.io,kch8qx/osf.io,jnayak1/osf.io,danielneis/osf.io,GageGaskins/osf.io,amyshi188/osf.io,RomanZWang/osf.io,abought/osf.io,lyndsysimon/osf.io,cosenal/osf.io,KAsante95/osf.io,hmoco/osf.io,brandonPurvis/osf.io,haoyuchen1992/osf.io,mluke93/osf.io,GaryKriebel/osf.io,GaryKriebel/osf.io,reinaH/osf.io,leb2dg/osf.io,caneruguz/osf.io,emetsger/osf.io,jmcarp/osf.io,leb2dg/osf.io,mfraezz/osf.io,haoyuchen1992/osf.io,brandonPurvis/osf.io,cwisecarver/osf.io,caseyrollins/osf.io,caseyrygt/osf.io,kwierman/osf.io,AndrewSallans/osf.io,haoyuchen1992/osf.io,KAsante95/osf.io,jnayak1/osf.io,arpitar/osf.io,zamattiac/osf.io,petermalcolm/osf.io,HarryRybacki/osf.io,emetsger/osf.io,RomanZWang/osf.io,sloria/osf.io,erinspace/osf.io,fabianvf/osf.io,sloria/osf.io,acshi/osf.io,caseyrollins/osf.io,DanielSBrown/osf.io,asanfilippo7/osf.io,MerlinZhang/osf.io,himanshuo/osf.io,saradbowman/osf.io,alexschiller/osf.io,brianjgeiger/osf.io,sbt9uc/osf.io,rdhyee/osf.io,abought/osf.io,HarryRybacki/osf.io,TomHeatwole/osf.io,RomanZWang/osf.io,ZobairAlijan/osf.io,Johnetordoff/osf.io,CenterForOpenScience/osf.io,abought/osf.io,lyndsysimon/osf.io,HalcyonChimera/osf.io,hmoco/osf.io,ticklemepierce/osf.io,revanthkolli/osf.io,KAsante95/osf.io
python
## Code Before: from framework import StoredObject, fields class Guid(StoredObject): _id = fields.StringField() referent = fields.AbstractForeignField() _meta = { 'optimistic': True, } class GuidStoredObject(StoredObject): # Redirect to content using URL redirect by default redirect_mode = 'redirect' def _ensure_guid(self): """Create GUID record if current record doesn't already have one, then point GUID to self. """ # Create GUID with specified ID if ID provided if self._primary_key: # Done if GUID already exists guid = Guid.load(self._primary_key) if guid is not None: return # Create GUID guid = Guid( _id=self._primary_key, referent=self ) guid.save() # Else create GUID optimistically else: # Create GUID guid = Guid() guid.save() guid.referent = (guid._primary_key, self._name) guid.save() # Set primary key to GUID key self._primary_key = guid._primary_key def save(self, *args, **kwargs): """ Ensure GUID on save initialization. """ rv = super(GuidStoredObject, self).save(*args, **kwargs) self._ensure_guid() return rv @property def annotations(self): """ Get meta-data annotations associated with object. """ return self.metadata__annotated ## Instruction: Fix last commit: Must ensure GUID before saving so that PK is defined ## Code After: from framework import StoredObject, fields class Guid(StoredObject): _id = fields.StringField() referent = fields.AbstractForeignField() _meta = { 'optimistic': True, } class GuidStoredObject(StoredObject): # Redirect to content using URL redirect by default redirect_mode = 'redirect' def _ensure_guid(self): """Create GUID record if current record doesn't already have one, then point GUID to self. """ # Create GUID with specified ID if ID provided if self._primary_key: # Done if GUID already exists guid = Guid.load(self._primary_key) if guid is not None: return # Create GUID guid = Guid( _id=self._primary_key, referent=self ) guid.save() # Else create GUID optimistically else: # Create GUID guid = Guid() guid.save() guid.referent = (guid._primary_key, self._name) guid.save() # Set primary key to GUID key self._primary_key = guid._primary_key def save(self, *args, **kwargs): """ Ensure GUID on save initialization. """ self._ensure_guid() return super(GuidStoredObject, self).save(*args, **kwargs) @property def annotations(self): """ Get meta-data annotations associated with object. """ return self.metadata__annotated
from framework import StoredObject, fields class Guid(StoredObject): _id = fields.StringField() referent = fields.AbstractForeignField() _meta = { 'optimistic': True, } class GuidStoredObject(StoredObject): # Redirect to content using URL redirect by default redirect_mode = 'redirect' def _ensure_guid(self): """Create GUID record if current record doesn't already have one, then point GUID to self. """ # Create GUID with specified ID if ID provided if self._primary_key: # Done if GUID already exists guid = Guid.load(self._primary_key) if guid is not None: return # Create GUID guid = Guid( _id=self._primary_key, referent=self ) guid.save() # Else create GUID optimistically else: # Create GUID guid = Guid() guid.save() guid.referent = (guid._primary_key, self._name) guid.save() # Set primary key to GUID key self._primary_key = guid._primary_key def save(self, *args, **kwargs): """ Ensure GUID on save initialization. """ - rv = super(GuidStoredObject, self).save(*args, **kwargs) self._ensure_guid() - return rv + return super(GuidStoredObject, self).save(*args, **kwargs) @property def annotations(self): """ Get meta-data annotations associated with object. """ return self.metadata__annotated
3
0.05
1
2
4dc00fad612a6c2150c967e3403f9020620ebc66
custom.js
custom.js
var through = require('through'), str2js = require('string-to-js'), types = ['html', 'css']; function isValidFile (file, opts) { var validTypes = types; if (opts && opts.onlyAllow) validTypes = opts.onlyAllow; if (opts && opts.alsoAllow) validTypes = validTypes.concat(opts.alsoAllow); if (!Array.isArray(validTypes)) validTypes = [validTypes]; return validTypes.some(function (type) { return file.substr(-(type.length)) === type; }); } function partialify (file, opts) { if (!isValidFile(file, opts)) return through(); var buffer = ""; return through(function (chunk) { buffer += chunk.toString(); }, function () { if (buffer.indexOf('module.exports') === 0) { this.queue(buffer); // prevent "double" transforms } else { this.queue(str2js(buffer)); } this.queue(null); }); }; exports.onlyAllow = function (extensions) { if (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = extensions; } return partialify; } exports.alsoAllow = function (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = types.concat(extensions); return partialify; }
var through = require('through'), str2js = require('string-to-js'), types = ['html', 'css']; function isValidFile (file, opts) { var validTypes = types; if (opts && opts.onlyAllow) validTypes = opts.onlyAllow; if (opts && opts.alsoAllow) validTypes = validTypes.concat(opts.alsoAllow); if (!Array.isArray(validTypes)) validTypes = [validTypes]; return validTypes.some(function (type) { return file.substr(-(type.length + 1)) === '.' + type; }); } function partialify (file, opts) { if (!isValidFile(file, opts)) return through(); var buffer = ""; return through(function (chunk) { buffer += chunk.toString(); }, function () { if (buffer.indexOf('module.exports') === 0) { this.queue(buffer); // prevent "double" transforms } else { this.queue(str2js(buffer)); } this.queue(null); }); }; exports.onlyAllow = function (extensions) { if (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = extensions; } return partialify; } exports.alsoAllow = function (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = types.concat(extensions); return partialify; }
Include dot when matching files so css doesn't match scss, for example
Include dot when matching files so css doesn't match scss, for example
JavaScript
mit
bclinkinbeard/partialify
javascript
## Code Before: var through = require('through'), str2js = require('string-to-js'), types = ['html', 'css']; function isValidFile (file, opts) { var validTypes = types; if (opts && opts.onlyAllow) validTypes = opts.onlyAllow; if (opts && opts.alsoAllow) validTypes = validTypes.concat(opts.alsoAllow); if (!Array.isArray(validTypes)) validTypes = [validTypes]; return validTypes.some(function (type) { return file.substr(-(type.length)) === type; }); } function partialify (file, opts) { if (!isValidFile(file, opts)) return through(); var buffer = ""; return through(function (chunk) { buffer += chunk.toString(); }, function () { if (buffer.indexOf('module.exports') === 0) { this.queue(buffer); // prevent "double" transforms } else { this.queue(str2js(buffer)); } this.queue(null); }); }; exports.onlyAllow = function (extensions) { if (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = extensions; } return partialify; } exports.alsoAllow = function (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = types.concat(extensions); return partialify; } ## Instruction: Include dot when matching files so css doesn't match scss, for example ## Code After: var through = require('through'), str2js = require('string-to-js'), types = ['html', 'css']; function isValidFile (file, opts) { var validTypes = types; if (opts && opts.onlyAllow) validTypes = opts.onlyAllow; if (opts && opts.alsoAllow) validTypes = validTypes.concat(opts.alsoAllow); if (!Array.isArray(validTypes)) validTypes = [validTypes]; return validTypes.some(function (type) { return file.substr(-(type.length + 1)) === '.' + type; }); } function partialify (file, opts) { if (!isValidFile(file, opts)) return through(); var buffer = ""; return through(function (chunk) { buffer += chunk.toString(); }, function () { if (buffer.indexOf('module.exports') === 0) { this.queue(buffer); // prevent "double" transforms } else { this.queue(str2js(buffer)); } this.queue(null); }); }; exports.onlyAllow = function (extensions) { if (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = extensions; } return partialify; } exports.alsoAllow = function (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = types.concat(extensions); return partialify; }
var through = require('through'), str2js = require('string-to-js'), types = ['html', 'css']; function isValidFile (file, opts) { var validTypes = types; if (opts && opts.onlyAllow) validTypes = opts.onlyAllow; if (opts && opts.alsoAllow) validTypes = validTypes.concat(opts.alsoAllow); if (!Array.isArray(validTypes)) validTypes = [validTypes]; return validTypes.some(function (type) { - return file.substr(-(type.length)) === type; + return file.substr(-(type.length + 1)) === '.' + type; ? ++++ ++++++ }); } function partialify (file, opts) { if (!isValidFile(file, opts)) return through(); var buffer = ""; return through(function (chunk) { buffer += chunk.toString(); }, function () { if (buffer.indexOf('module.exports') === 0) { this.queue(buffer); // prevent "double" transforms } else { this.queue(str2js(buffer)); } this.queue(null); }); }; exports.onlyAllow = function (extensions) { if (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = extensions; } return partialify; } exports.alsoAllow = function (extensions) { if (!Array.isArray(extensions)) extensions = Array.prototype.slice.call(arguments, 0); types = types.concat(extensions); return partialify; }
2
0.040816
1
1
cbf82e7d73523320aa984b0e63bf2eb4be8576c0
accurest-core/src/main/groovy/io/coderate/accurest/FileSaver.groovy
accurest-core/src/main/groovy/io/coderate/accurest/FileSaver.groovy
package io.coderate.accurest import groovy.transform.CompileStatic import io.coderate.accurest.config.TestFramework import io.coderate.accurest.util.NamesUtil import java.nio.file.Files import java.nio.file.Paths import java.nio.file.StandardOpenOption import static io.coderate.accurest.util.NamesUtil.capitalize @CompileStatic class FileSaver { File targetDirectory TestFramework framework FileSaver(File targetDirectory, TestFramework framework) { this.targetDirectory = targetDirectory this.framework = framework } void saveClassFile(String fileName, String packageName, byte[] classBytes) { def testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) Files.createDirectories(testBaseDir) def classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) .toAbsolutePath() Files.write(classPath, classBytes, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING) } }
package io.coderate.accurest import groovy.transform.CompileStatic import groovy.util.logging.Slf4j import io.coderate.accurest.config.TestFramework import io.coderate.accurest.util.NamesUtil import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.nio.file.StandardOpenOption import static io.coderate.accurest.util.NamesUtil.capitalize @CompileStatic @Slf4j class FileSaver { File targetDirectory TestFramework framework FileSaver(File targetDirectory, TestFramework framework) { this.targetDirectory = targetDirectory this.framework = framework } void saveClassFile(String fileName, String packageName, byte[] classBytes) { Path testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) Files.createDirectories(testBaseDir) Path classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) .toAbsolutePath() log.info("Creating new class file [$classPath]") Files.write(classPath, classBytes, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING) } }
Add logging what class files were generated
Add logging what class files were generated
Groovy
apache-2.0
tdziurko/accurest,pfrank13/spring-cloud-contract,spring-cloud/spring-cloud-contract,spring-cloud/spring-cloud-contract,dstepanov/accurest,spring-cloud/spring-cloud-contract,spencergibb/accurest,Codearte/accurest,dstepanov/accurest,pfrank13/spring-cloud-contract,4finance/accurest,Codearte/accurest
groovy
## Code Before: package io.coderate.accurest import groovy.transform.CompileStatic import io.coderate.accurest.config.TestFramework import io.coderate.accurest.util.NamesUtil import java.nio.file.Files import java.nio.file.Paths import java.nio.file.StandardOpenOption import static io.coderate.accurest.util.NamesUtil.capitalize @CompileStatic class FileSaver { File targetDirectory TestFramework framework FileSaver(File targetDirectory, TestFramework framework) { this.targetDirectory = targetDirectory this.framework = framework } void saveClassFile(String fileName, String packageName, byte[] classBytes) { def testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) Files.createDirectories(testBaseDir) def classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) .toAbsolutePath() Files.write(classPath, classBytes, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING) } } ## Instruction: Add logging what class files were generated ## Code After: package io.coderate.accurest import groovy.transform.CompileStatic import groovy.util.logging.Slf4j import io.coderate.accurest.config.TestFramework import io.coderate.accurest.util.NamesUtil import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.nio.file.StandardOpenOption import static io.coderate.accurest.util.NamesUtil.capitalize @CompileStatic @Slf4j class FileSaver { File targetDirectory TestFramework framework FileSaver(File targetDirectory, TestFramework framework) { this.targetDirectory = targetDirectory this.framework = framework } void saveClassFile(String fileName, String packageName, byte[] classBytes) { Path testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) Files.createDirectories(testBaseDir) Path classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) .toAbsolutePath() log.info("Creating new class file [$classPath]") Files.write(classPath, classBytes, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING) } }
package io.coderate.accurest import groovy.transform.CompileStatic + import groovy.util.logging.Slf4j import io.coderate.accurest.config.TestFramework import io.coderate.accurest.util.NamesUtil import java.nio.file.Files + import java.nio.file.Path import java.nio.file.Paths import java.nio.file.StandardOpenOption import static io.coderate.accurest.util.NamesUtil.capitalize @CompileStatic + @Slf4j class FileSaver { File targetDirectory TestFramework framework FileSaver(File targetDirectory, TestFramework framework) { this.targetDirectory = targetDirectory this.framework = framework } void saveClassFile(String fileName, String packageName, byte[] classBytes) { - def testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) ? ^^^ + Path testBaseDir = Paths.get(targetDirectory.absolutePath, NamesUtil.packageToDirectory(packageName)) ? ^^^^ Files.createDirectories(testBaseDir) - def classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) ? ^^^ + Path classPath = Paths.get(testBaseDir.toString(), capitalize(fileName) + framework.classNameSuffix + framework.classExtension) ? ^^^^ .toAbsolutePath() + log.info("Creating new class file [$classPath]") Files.write(classPath, classBytes, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING) } }
8
0.242424
6
2
65928407fe96dfdfc9012f9d08f572fbd72b2cc1
lib/docman/commands/execute_script_cmd.rb
lib/docman/commands/execute_script_cmd.rb
module Docman class ExecuteScriptCmd < Docman::Command register_command :script def validate_command raise Docman::CommandValidationError.new("Please provide 'execution_dir' param") if self['execution_dir'].nil? raise Docman::CommandValidationError.new("Please provide 'location' param") if self['location'].nil? raise Docman::CommandValidationError.new("Please provide 'context'") if @context.nil? raise Docman::CommandValidationError.new("Context should be of type 'Info'") unless @context.is_a? Docman::Info replace_placeholder(self['execution_dir']) replace_placeholder(self['location']) raise Docman::CommandValidationError.new("Directory #{self['execution_dir']} not exists") unless File.directory? self['execution_dir'] raise Docman::CommandValidationError.new("Script #{self['location']} not exists") unless File.file? self['location'] end def execute Dir.chdir self['execution_dir'] logger.info "Script execution: #{self['location']}" params = self['params'].nil? ? '' : prepare_params(self['params']) `chmod 777 #{self['location']}` `chmod a+x #{self['location']}` logger.info `#{self['location']} #{params}` $?.exitstatus end def prepare_params(params) result = [] params.each do |param| case param when 'environment' result << @context.environment_name end end result.join(' ') end end end
module Docman class ExecuteScriptCmd < Docman::Command register_command :script def validate_command raise Docman::CommandValidationError.new("Please provide 'execution_dir' param") if self['execution_dir'].nil? raise Docman::CommandValidationError.new("Please provide 'location' param") if self['location'].nil? raise Docman::CommandValidationError.new("Please provide 'context'") if @context.nil? raise Docman::CommandValidationError.new("Context should be of type 'Info'") unless @context.is_a? Docman::Info replace_placeholder(self['execution_dir']) replace_placeholder(self['location']) raise Docman::CommandValidationError.new("Directory #{self['execution_dir']} not exists") unless File.directory? self['execution_dir'] raise Docman::CommandValidationError.new("Script #{self['location']} not exists") unless File.file? self['location'] end def execute Dir.chdir self['execution_dir'] logger.info "Script execution: #{self['location']}" params = self['params'].nil? ? '' : prepare_params(self['params']) # Fix for ^M issue when saved from GitLab or windows. `cat #{self['location']} | tr -d '\r' > #{self['location']}-tmp` `rm -f #{self['location']}` `mv #{self['location']}-tmp #{self['location']}` `chmod a+x #{self['location']}` logger.info `#{self['location']} #{params}` $?.exitstatus end def prepare_params(params) result = [] params.each do |param| case param when 'environment' result << @context.environment_name end end result.join(' ') end end end
Fix for ^M for executable files
Fix for ^M for executable files
Ruby
mit
Adyax/docman,Adyax/docman
ruby
## Code Before: module Docman class ExecuteScriptCmd < Docman::Command register_command :script def validate_command raise Docman::CommandValidationError.new("Please provide 'execution_dir' param") if self['execution_dir'].nil? raise Docman::CommandValidationError.new("Please provide 'location' param") if self['location'].nil? raise Docman::CommandValidationError.new("Please provide 'context'") if @context.nil? raise Docman::CommandValidationError.new("Context should be of type 'Info'") unless @context.is_a? Docman::Info replace_placeholder(self['execution_dir']) replace_placeholder(self['location']) raise Docman::CommandValidationError.new("Directory #{self['execution_dir']} not exists") unless File.directory? self['execution_dir'] raise Docman::CommandValidationError.new("Script #{self['location']} not exists") unless File.file? self['location'] end def execute Dir.chdir self['execution_dir'] logger.info "Script execution: #{self['location']}" params = self['params'].nil? ? '' : prepare_params(self['params']) `chmod 777 #{self['location']}` `chmod a+x #{self['location']}` logger.info `#{self['location']} #{params}` $?.exitstatus end def prepare_params(params) result = [] params.each do |param| case param when 'environment' result << @context.environment_name end end result.join(' ') end end end ## Instruction: Fix for ^M for executable files ## Code After: module Docman class ExecuteScriptCmd < Docman::Command register_command :script def validate_command raise Docman::CommandValidationError.new("Please provide 'execution_dir' param") if self['execution_dir'].nil? raise Docman::CommandValidationError.new("Please provide 'location' param") if self['location'].nil? raise Docman::CommandValidationError.new("Please provide 'context'") if @context.nil? raise Docman::CommandValidationError.new("Context should be of type 'Info'") unless @context.is_a? Docman::Info replace_placeholder(self['execution_dir']) replace_placeholder(self['location']) raise Docman::CommandValidationError.new("Directory #{self['execution_dir']} not exists") unless File.directory? self['execution_dir'] raise Docman::CommandValidationError.new("Script #{self['location']} not exists") unless File.file? self['location'] end def execute Dir.chdir self['execution_dir'] logger.info "Script execution: #{self['location']}" params = self['params'].nil? ? '' : prepare_params(self['params']) # Fix for ^M issue when saved from GitLab or windows. `cat #{self['location']} | tr -d '\r' > #{self['location']}-tmp` `rm -f #{self['location']}` `mv #{self['location']}-tmp #{self['location']}` `chmod a+x #{self['location']}` logger.info `#{self['location']} #{params}` $?.exitstatus end def prepare_params(params) result = [] params.each do |param| case param when 'environment' result << @context.environment_name end end result.join(' ') end end end
module Docman class ExecuteScriptCmd < Docman::Command register_command :script def validate_command raise Docman::CommandValidationError.new("Please provide 'execution_dir' param") if self['execution_dir'].nil? raise Docman::CommandValidationError.new("Please provide 'location' param") if self['location'].nil? raise Docman::CommandValidationError.new("Please provide 'context'") if @context.nil? raise Docman::CommandValidationError.new("Context should be of type 'Info'") unless @context.is_a? Docman::Info replace_placeholder(self['execution_dir']) replace_placeholder(self['location']) raise Docman::CommandValidationError.new("Directory #{self['execution_dir']} not exists") unless File.directory? self['execution_dir'] raise Docman::CommandValidationError.new("Script #{self['location']} not exists") unless File.file? self['location'] end def execute Dir.chdir self['execution_dir'] logger.info "Script execution: #{self['location']}" params = self['params'].nil? ? '' : prepare_params(self['params']) + + # Fix for ^M issue when saved from GitLab or windows. + `cat #{self['location']} | tr -d '\r' > #{self['location']}-tmp` - `chmod 777 #{self['location']}` ? ^^ -- ^^^ + `rm -f #{self['location']}` ? ^ ^^ + `mv #{self['location']}-tmp #{self['location']}` `chmod a+x #{self['location']}` logger.info `#{self['location']} #{params}` $?.exitstatus end def prepare_params(params) result = [] params.each do |param| case param when 'environment' result << @context.environment_name end end result.join(' ') end end end
6
0.146341
5
1
46a87e0de92638977931274ce5dad0007facf673
lib/rdbi/driver/rubyfb.rb
lib/rdbi/driver/rubyfb.rb
require 'rdbi' require 'rubyfb' class RDBI::Driver::Rubyfb < RDBI::Driver def initialize(*args) super(Database, *args) end end require 'rdbi/driver/rubyfb/database' require 'rdbi/driver/rubyfb/statement' require 'rdbi/driver/rubyfb/cursor' require 'rdbi/driver/rubyfb/types'
require 'rdbi' require 'rubyfb' ## # # RDBI database driver for the robust and SQL-compliant Firebird RDBMS, an # open-source member of the InterBase genus. See the documentation for # RDBI::Driver::Rubyfb::Database for more information. # class RDBI::Driver::Rubyfb < RDBI::Driver def initialize(*args) super(Database, *args) end end require 'rdbi/driver/rubyfb/database' require 'rdbi/driver/rubyfb/statement' require 'rdbi/driver/rubyfb/cursor' require 'rdbi/driver/rubyfb/types'
Add preamble doc to RDBI::Driver::Rubyfb
Add preamble doc to RDBI::Driver::Rubyfb
Ruby
mit
RDBI/rdbi-driver-rubyfb
ruby
## Code Before: require 'rdbi' require 'rubyfb' class RDBI::Driver::Rubyfb < RDBI::Driver def initialize(*args) super(Database, *args) end end require 'rdbi/driver/rubyfb/database' require 'rdbi/driver/rubyfb/statement' require 'rdbi/driver/rubyfb/cursor' require 'rdbi/driver/rubyfb/types' ## Instruction: Add preamble doc to RDBI::Driver::Rubyfb ## Code After: require 'rdbi' require 'rubyfb' ## # # RDBI database driver for the robust and SQL-compliant Firebird RDBMS, an # open-source member of the InterBase genus. See the documentation for # RDBI::Driver::Rubyfb::Database for more information. # class RDBI::Driver::Rubyfb < RDBI::Driver def initialize(*args) super(Database, *args) end end require 'rdbi/driver/rubyfb/database' require 'rdbi/driver/rubyfb/statement' require 'rdbi/driver/rubyfb/cursor' require 'rdbi/driver/rubyfb/types'
require 'rdbi' require 'rubyfb' + ## + # + # RDBI database driver for the robust and SQL-compliant Firebird RDBMS, an + # open-source member of the InterBase genus. See the documentation for + # RDBI::Driver::Rubyfb::Database for more information. + # class RDBI::Driver::Rubyfb < RDBI::Driver def initialize(*args) super(Database, *args) end end require 'rdbi/driver/rubyfb/database' require 'rdbi/driver/rubyfb/statement' require 'rdbi/driver/rubyfb/cursor' require 'rdbi/driver/rubyfb/types'
6
0.461538
6
0
e60fed81763bdd17f441f6aaf361c013f743240f
composer.json
composer.json
{ "name": "chencha/share", "description": "Share links with Laravel 5", "keywords": [ "share", "laravel", "laravel5" ], "version": "5.0.1", "license": "MIT", "authors": [ { "name": "thujohn", "email": "jonathan.thuau@gmail.com" }, { "name": "chencha", "email": "jacob@chenchatech.com" } ], "require": { "php": ">=5.3.0", "illuminate/support": "5.x" }, "autoload": { "psr-0": { "Chencha\\Share": "src/" } }, "minimum-stability": "dev" }
{ "name": "chencha/share", "description": "Share links with Laravel 5", "keywords": [ "share", "laravel", "laravel5" ], "version": "5.0.1", "license": "MIT", "authors": [ { "name": "thujohn", "email": "jonathan.thuau@gmail.com" }, { "name": "chencha", "email": "jacob@chenchatech.com" }, { "name": "datashaman", "email": "marlinf@datashaman.com" } ], "require": { "php": ">=5.3.0", "illuminate/support": "5.x" }, "autoload": { "psr-0": { "Chencha\\Share": "src/" } }, "minimum-stability": "dev" }
Add me to the authors list
Add me to the authors list
JSON
mit
prodeveloper/social-share
json
## Code Before: { "name": "chencha/share", "description": "Share links with Laravel 5", "keywords": [ "share", "laravel", "laravel5" ], "version": "5.0.1", "license": "MIT", "authors": [ { "name": "thujohn", "email": "jonathan.thuau@gmail.com" }, { "name": "chencha", "email": "jacob@chenchatech.com" } ], "require": { "php": ">=5.3.0", "illuminate/support": "5.x" }, "autoload": { "psr-0": { "Chencha\\Share": "src/" } }, "minimum-stability": "dev" } ## Instruction: Add me to the authors list ## Code After: { "name": "chencha/share", "description": "Share links with Laravel 5", "keywords": [ "share", "laravel", "laravel5" ], "version": "5.0.1", "license": "MIT", "authors": [ { "name": "thujohn", "email": "jonathan.thuau@gmail.com" }, { "name": "chencha", "email": "jacob@chenchatech.com" }, { "name": "datashaman", "email": "marlinf@datashaman.com" } ], "require": { "php": ">=5.3.0", "illuminate/support": "5.x" }, "autoload": { "psr-0": { "Chencha\\Share": "src/" } }, "minimum-stability": "dev" }
{ "name": "chencha/share", "description": "Share links with Laravel 5", "keywords": [ "share", "laravel", "laravel5" ], "version": "5.0.1", "license": "MIT", "authors": [ { "name": "thujohn", "email": "jonathan.thuau@gmail.com" }, { "name": "chencha", "email": "jacob@chenchatech.com" + }, + { + "name": "datashaman", + "email": "marlinf@datashaman.com" } ], "require": { "php": ">=5.3.0", "illuminate/support": "5.x" }, "autoload": { "psr-0": { "Chencha\\Share": "src/" } }, "minimum-stability": "dev" }
4
0.129032
4
0
98c8485cd498f563c361dcf9d6184d437ced03ba
metadata/org.katsarov.heatcalc.txt
metadata/org.katsarov.heatcalc.txt
Categories:Science & Education License:GPLv3+ Web Site:https://gitlab.com/a-katsarov/heatsink-calc/ Source Code:https://gitlab.com/a-katsarov/heatsink-calc/tree/HEAD Issue Tracker:https://gitlab.com/a-katsarov/heatsink-calc/issues Auto Name:HeatCalc Summary:Heatsink calculator Description: Calculates the required heat sink for an electronic device. . Repo Type:git Repo:https://gitlab.com/a-katsarov/heatsink-calc-android.git Build:1.1.1,10101 commit=v1.1.1 scanignore=cordova/node_modules Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.1 Current Version Code:10101
Categories:Science & Education License:GPLv3+ Web Site:https://gitlab.com/a-katsarov/heatsink-calc/ Source Code:https://gitlab.com/a-katsarov/heatsink-calc/tree/HEAD Issue Tracker:https://gitlab.com/a-katsarov/heatsink-calc/issues Auto Name:HeatCalc Summary:Heatsink calculator Description: Calculates the required heat sink for an electronic device. . Repo Type:git Repo:https://gitlab.com/a-katsarov/heatsink-calc-android.git Build:1.1.1,10101 commit=v1.1.1 scanignore=cordova/node_modules Build:1.1.2,10102 commit=v1.1.2 scanignore=cordova/node_modules Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.2 Current Version Code:10102
Update HeatCalc to 1.1.2 (10102)
Update HeatCalc to 1.1.2 (10102)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Science & Education License:GPLv3+ Web Site:https://gitlab.com/a-katsarov/heatsink-calc/ Source Code:https://gitlab.com/a-katsarov/heatsink-calc/tree/HEAD Issue Tracker:https://gitlab.com/a-katsarov/heatsink-calc/issues Auto Name:HeatCalc Summary:Heatsink calculator Description: Calculates the required heat sink for an electronic device. . Repo Type:git Repo:https://gitlab.com/a-katsarov/heatsink-calc-android.git Build:1.1.1,10101 commit=v1.1.1 scanignore=cordova/node_modules Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.1 Current Version Code:10101 ## Instruction: Update HeatCalc to 1.1.2 (10102) ## Code After: Categories:Science & Education License:GPLv3+ Web Site:https://gitlab.com/a-katsarov/heatsink-calc/ Source Code:https://gitlab.com/a-katsarov/heatsink-calc/tree/HEAD Issue Tracker:https://gitlab.com/a-katsarov/heatsink-calc/issues Auto Name:HeatCalc Summary:Heatsink calculator Description: Calculates the required heat sink for an electronic device. . Repo Type:git Repo:https://gitlab.com/a-katsarov/heatsink-calc-android.git Build:1.1.1,10101 commit=v1.1.1 scanignore=cordova/node_modules Build:1.1.2,10102 commit=v1.1.2 scanignore=cordova/node_modules Auto Update Mode:Version v%v Update Check Mode:Tags Current Version:1.1.2 Current Version Code:10102
Categories:Science & Education License:GPLv3+ Web Site:https://gitlab.com/a-katsarov/heatsink-calc/ Source Code:https://gitlab.com/a-katsarov/heatsink-calc/tree/HEAD Issue Tracker:https://gitlab.com/a-katsarov/heatsink-calc/issues Auto Name:HeatCalc Summary:Heatsink calculator Description: Calculates the required heat sink for an electronic device. . Repo Type:git Repo:https://gitlab.com/a-katsarov/heatsink-calc-android.git Build:1.1.1,10101 commit=v1.1.1 scanignore=cordova/node_modules + Build:1.1.2,10102 + commit=v1.1.2 + scanignore=cordova/node_modules + Auto Update Mode:Version v%v Update Check Mode:Tags - Current Version:1.1.1 ? ^ + Current Version:1.1.2 ? ^ - Current Version Code:10101 ? ^ + Current Version Code:10102 ? ^
8
0.347826
6
2
50412b07cd77799c3cd624d56903869a94b01927
README.md
README.md
Amethyst ======== Tiling window manager for OS X. Largely a reimplementation of [fjolnir's](https://github.com/fjolnir) awesome [xnomad](https://github.com/fjolnir/xnomad) in pure Objective-C.
Amethyst ======== Tiling window manager for OS X similar to xmonad. Was originally written as an alternative to [fjolnir's](https://github.com/fjolnir) awesome [xnomad](https://github.com/fjolnir/xnomad) but written in pure Objective-C. It's expanded to include some more features like Spaces support not reliant on fragile private APIs. Credits ------- Credit goes to [fjolnir](https://github.com/fjolnir) for the bulk of the initial logic and structure.
Update the readme to more accurately reflect current code state.
Update the readme to more accurately reflect current code state.
Markdown
mit
m4rw3r/Amethyst,cevaris/Amethyst,hooplaaa/Amethyst,cevaris/Amethyst,ianyh/Amethyst,ianyh/Amethyst,ianyh/Amethyst,egabancho/Amethyst,olsonpm/Amethyst,hooplaaa/Amethyst,olsonpm/Amethyst,m4rw3r/Amethyst,ianyh/Amethyst,egabancho/Amethyst,ianyh/Amethyst
markdown
## Code Before: Amethyst ======== Tiling window manager for OS X. Largely a reimplementation of [fjolnir's](https://github.com/fjolnir) awesome [xnomad](https://github.com/fjolnir/xnomad) in pure Objective-C. ## Instruction: Update the readme to more accurately reflect current code state. ## Code After: Amethyst ======== Tiling window manager for OS X similar to xmonad. Was originally written as an alternative to [fjolnir's](https://github.com/fjolnir) awesome [xnomad](https://github.com/fjolnir/xnomad) but written in pure Objective-C. It's expanded to include some more features like Spaces support not reliant on fragile private APIs. Credits ------- Credit goes to [fjolnir](https://github.com/fjolnir) for the bulk of the initial logic and structure.
Amethyst ======== - Tiling window manager for OS X. Largely a reimplementation of [fjolnir's](https://github.com/fjolnir) awesome [xnomad](https://github.com/fjolnir/xnomad) in pure Objective-C. + Tiling window manager for OS X similar to xmonad. Was originally written as an + alternative to [fjolnir's](https://github.com/fjolnir) awesome + [xnomad](https://github.com/fjolnir/xnomad) but written in pure + Objective-C. It's expanded to include some more features like Spaces support not + reliant on fragile private APIs. + + Credits + ------- + + Credit goes to [fjolnir](https://github.com/fjolnir) for the bulk of the initial + logic and structure.
12
3
11
1
65fc635011217cd2bb632d1cd1683170d27e3206
djoauth2/fixtures/auth_user.json
djoauth2/fixtures/auth_user.json
[ { "model": "auth.user", "pk": 1, "fields": { "date_joined": "2012-09-20 04:40:34", "email": "testuser@locu.com", "first_name": "Test", "groups": [], "is_active": true, "is_staff": false, "is_superuser": false, "last_login": "2012-11-06 05:06:17.252447", "last_name": "User", "password": "sha1$$5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8", "user_permissions": [], "username": "testuser@locu.com" } } ]
[ { "model": "auth.user", "pk": 1, "fields": { "date_joined": "2012-09-20 04:40:34", "email": "testuser@locu.com", "first_name": "Test", "groups": [], "is_active": true, "is_staff": false, "is_superuser": false, "last_login": "2012-11-06 05:06:17.252447", "last_name": "User", "password": "sha1$cFwdqBzg19yd$b1a6b0e10e7c3390852ed314f9845fa805f20448", "user_permissions": [], "username": "testuser@locu.com" } } ]
Update fixture to include a salt.
Update fixture to include a salt.
JSON
mit
seler/djoauth2,Locu/djoauth2,seler/djoauth2,vden/djoauth2-ng,Locu/djoauth2,vden/djoauth2-ng
json
## Code Before: [ { "model": "auth.user", "pk": 1, "fields": { "date_joined": "2012-09-20 04:40:34", "email": "testuser@locu.com", "first_name": "Test", "groups": [], "is_active": true, "is_staff": false, "is_superuser": false, "last_login": "2012-11-06 05:06:17.252447", "last_name": "User", "password": "sha1$$5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8", "user_permissions": [], "username": "testuser@locu.com" } } ] ## Instruction: Update fixture to include a salt. ## Code After: [ { "model": "auth.user", "pk": 1, "fields": { "date_joined": "2012-09-20 04:40:34", "email": "testuser@locu.com", "first_name": "Test", "groups": [], "is_active": true, "is_staff": false, "is_superuser": false, "last_login": "2012-11-06 05:06:17.252447", "last_name": "User", "password": "sha1$cFwdqBzg19yd$b1a6b0e10e7c3390852ed314f9845fa805f20448", "user_permissions": [], "username": "testuser@locu.com" } } ]
[ { "model": "auth.user", "pk": 1, "fields": { "date_joined": "2012-09-20 04:40:34", "email": "testuser@locu.com", "first_name": "Test", "groups": [], "is_active": true, "is_staff": false, "is_superuser": false, "last_login": "2012-11-06 05:06:17.252447", "last_name": "User", - "password": "sha1$$5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8", + "password": "sha1$cFwdqBzg19yd$b1a6b0e10e7c3390852ed314f9845fa805f20448", "user_permissions": [], "username": "testuser@locu.com" } } ]
2
0.1
1
1
b697ccbd67fda277589b2734c5d8dca06eeb655e
.github/actions/create-named-pipe/action.yml
.github/actions/create-named-pipe/action.yml
--- name: "Creates a Named Pipe" description: "Creates a Named Pipe for integration tests on Windows" runs: using: "composite" steps: - run: | docker pull gesellix/npipe:windows docker create --name npipe gesellix/npipe:windows docker cp npipe:/npipe.exe ./npipe.exe docker rm npipe docker rmi gesellix/npipe:windows ./npipe.exe \\\\.\\pipe\\hijack_test & disown -h shell: bash branding: icon: "tag" color: "blue" ...
--- name: "Creates a Named Pipe" description: "Creates a Named Pipe for integration tests on Windows" runs: using: "composite" steps: - run: | docker pull gesellix/npipe:2022-04-19T16-14-00 docker create --name npipe gesellix/npipe:2022-04-19T16-14-00 docker cp npipe:/npipe.exe ./npipe.exe docker rm npipe docker rmi gesellix/npipe:2022-04-19T16-14-00 ./npipe.exe \\\\.\\pipe\\hijack_test & disown -h shell: bash branding: icon: "tag" color: "blue" ...
Use the multi-platform gesellix/npipe image for integration tests
Use the multi-platform gesellix/npipe image for integration tests
YAML
mit
docker-client/docker-filesocket,docker-client/docker-filesocket
yaml
## Code Before: --- name: "Creates a Named Pipe" description: "Creates a Named Pipe for integration tests on Windows" runs: using: "composite" steps: - run: | docker pull gesellix/npipe:windows docker create --name npipe gesellix/npipe:windows docker cp npipe:/npipe.exe ./npipe.exe docker rm npipe docker rmi gesellix/npipe:windows ./npipe.exe \\\\.\\pipe\\hijack_test & disown -h shell: bash branding: icon: "tag" color: "blue" ... ## Instruction: Use the multi-platform gesellix/npipe image for integration tests ## Code After: --- name: "Creates a Named Pipe" description: "Creates a Named Pipe for integration tests on Windows" runs: using: "composite" steps: - run: | docker pull gesellix/npipe:2022-04-19T16-14-00 docker create --name npipe gesellix/npipe:2022-04-19T16-14-00 docker cp npipe:/npipe.exe ./npipe.exe docker rm npipe docker rmi gesellix/npipe:2022-04-19T16-14-00 ./npipe.exe \\\\.\\pipe\\hijack_test & disown -h shell: bash branding: icon: "tag" color: "blue" ...
--- name: "Creates a Named Pipe" description: "Creates a Named Pipe for integration tests on Windows" runs: using: "composite" steps: - run: | - docker pull gesellix/npipe:windows + docker pull gesellix/npipe:2022-04-19T16-14-00 - docker create --name npipe gesellix/npipe:windows ? ^^^^^^^ + docker create --name npipe gesellix/npipe:2022-04-19T16-14-00 ? ^^^^^^^^^^^^^^^^^^^ docker cp npipe:/npipe.exe ./npipe.exe docker rm npipe - docker rmi gesellix/npipe:windows + docker rmi gesellix/npipe:2022-04-19T16-14-00 ./npipe.exe \\\\.\\pipe\\hijack_test & disown -h shell: bash branding: icon: "tag" color: "blue" ...
6
0.315789
3
3
2df33bc7e4b19e14306f1c6f86a3fb85c28031db
.travis.yml
.travis.yml
language: python cache: pip python: - '2.7' before_install: - openssl aes-256-cbc -K $encrypted_dc06db4ca05f_key -iv $encrypted_dc06db4ca05f_iv -in deploy_key.enc -out deploy_key -d install: - npm install -g bower -g less - bower install - pip install -r requirements.txt script: freeze.py freeze_gh_pages deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard repo: wcpr740/wcpr740.github.io target_branch: master local_dir: build email: webmaster@wcpr.org name: WCPR Webmaster on: branch: master
language: python cache: pip python: - '2.7' install: - npm install -g bower -g less - bower install - pip install -r requirements.txt script: freeze.py freeze_gh_pages deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard repo: wcpr740/wcpr740.github.io target_branch: master local_dir: build email: webmaster@wcpr.org name: WCPR Webmaster on: branch: develop
Fix the actual Travis deploy procedure for Github Pages
Fix the actual Travis deploy procedure for Github Pages
YAML
apache-2.0
wcpr740/wcpr.org,wcpr740/wcpr.org,wcpr740/wcpr.org
yaml
## Code Before: language: python cache: pip python: - '2.7' before_install: - openssl aes-256-cbc -K $encrypted_dc06db4ca05f_key -iv $encrypted_dc06db4ca05f_iv -in deploy_key.enc -out deploy_key -d install: - npm install -g bower -g less - bower install - pip install -r requirements.txt script: freeze.py freeze_gh_pages deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard repo: wcpr740/wcpr740.github.io target_branch: master local_dir: build email: webmaster@wcpr.org name: WCPR Webmaster on: branch: master ## Instruction: Fix the actual Travis deploy procedure for Github Pages ## Code After: language: python cache: pip python: - '2.7' install: - npm install -g bower -g less - bower install - pip install -r requirements.txt script: freeze.py freeze_gh_pages deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard repo: wcpr740/wcpr740.github.io target_branch: master local_dir: build email: webmaster@wcpr.org name: WCPR Webmaster on: branch: develop
language: python cache: pip python: - '2.7' - - before_install: - - openssl aes-256-cbc -K $encrypted_dc06db4ca05f_key -iv $encrypted_dc06db4ca05f_iv -in deploy_key.enc -out deploy_key -d install: - npm install -g bower -g less - bower install - pip install -r requirements.txt script: freeze.py freeze_gh_pages deploy: provider: pages skip_cleanup: true github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard repo: wcpr740/wcpr740.github.io target_branch: master local_dir: build email: webmaster@wcpr.org name: WCPR Webmaster on: - branch: master + branch: develop
5
0.192308
1
4
a3f2cc9bcfe2bb04d60c7b94a1f1e9799d8f3d05
test/rules/enum_values_sorted_alphabetically.js
test/rules/enum_values_sorted_alphabetically.js
import assert from 'assert'; import { parse } from 'graphql'; import { validate } from 'graphql/validation'; import { buildASTSchema } from 'graphql/utilities/buildASTSchema'; import { EnumValuesSortedAlphabetically } from '../../src/rules/enum_values_sorted_alphabetically'; describe('EnumValuesSortedAlphabetically rule', () => { it('catches enums that are not sorted alphabetically', () => { const ast = getGraphQLAst(` enum Stage { ZZZ AAA } `); const schema = buildASTSchema(ast); const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); assert.equal(errors.length, 1); assert.equal(errors[0].ruleName, 'enum-values-sorted-alphabetically'); assert.equal( errors[0].message, 'The enum `Stage` should be sorted alphabetically.' ); assert.deepEqual(errors[0].locations, [{ line: 7, column: 7 }]); }); it('allows enums that are sorted alphabetically ', () => { const ast = getGraphQLAst(` enum Stage { AAA ZZZ } `); const schema = buildASTSchema(ast); const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); assert.equal(errors.length, 0); }); }); function getGraphQLAst(string) { return parse(` type QueryRoot { a: String } ${string} schema { query: QueryRoot } `); }
import { EnumValuesSortedAlphabetically } from '../../src/rules/enum_values_sorted_alphabetically'; import { expectFailsRule, expectPassesRule } from '../assertions'; describe('EnumValuesSortedAlphabetically rule', () => { it('catches enums that are not sorted alphabetically', () => { expectFailsRule( EnumValuesSortedAlphabetically, ` type Query { a: String } enum Stage { ZZZ AAA } `, [ { message: 'The enum `Stage` should be sorted alphabetically.', locations: [{ line: 6, column: 7 }], }, ] ); }); it('allows enums that are sorted alphabetically ', () => { expectPassesRule( EnumValuesSortedAlphabetically, ` type Query { a: String } enum Stage { AAA ZZZ } ` ); }); });
Use test helpers in EnumValuesSortedAlphabetically tests
Use test helpers in EnumValuesSortedAlphabetically tests
JavaScript
mit
cjoudrey/graphql-schema-linter
javascript
## Code Before: import assert from 'assert'; import { parse } from 'graphql'; import { validate } from 'graphql/validation'; import { buildASTSchema } from 'graphql/utilities/buildASTSchema'; import { EnumValuesSortedAlphabetically } from '../../src/rules/enum_values_sorted_alphabetically'; describe('EnumValuesSortedAlphabetically rule', () => { it('catches enums that are not sorted alphabetically', () => { const ast = getGraphQLAst(` enum Stage { ZZZ AAA } `); const schema = buildASTSchema(ast); const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); assert.equal(errors.length, 1); assert.equal(errors[0].ruleName, 'enum-values-sorted-alphabetically'); assert.equal( errors[0].message, 'The enum `Stage` should be sorted alphabetically.' ); assert.deepEqual(errors[0].locations, [{ line: 7, column: 7 }]); }); it('allows enums that are sorted alphabetically ', () => { const ast = getGraphQLAst(` enum Stage { AAA ZZZ } `); const schema = buildASTSchema(ast); const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); assert.equal(errors.length, 0); }); }); function getGraphQLAst(string) { return parse(` type QueryRoot { a: String } ${string} schema { query: QueryRoot } `); } ## Instruction: Use test helpers in EnumValuesSortedAlphabetically tests ## Code After: import { EnumValuesSortedAlphabetically } from '../../src/rules/enum_values_sorted_alphabetically'; import { expectFailsRule, expectPassesRule } from '../assertions'; describe('EnumValuesSortedAlphabetically rule', () => { it('catches enums that are not sorted alphabetically', () => { expectFailsRule( EnumValuesSortedAlphabetically, ` type Query { a: String } enum Stage { ZZZ AAA } `, [ { message: 'The enum `Stage` should be sorted alphabetically.', locations: [{ line: 6, column: 7 }], }, ] ); }); it('allows enums that are sorted alphabetically ', () => { expectPassesRule( EnumValuesSortedAlphabetically, ` type Query { a: String } enum Stage { AAA ZZZ } ` ); }); });
- import assert from 'assert'; - import { parse } from 'graphql'; - import { validate } from 'graphql/validation'; - import { buildASTSchema } from 'graphql/utilities/buildASTSchema'; - import { EnumValuesSortedAlphabetically } from '../../src/rules/enum_values_sorted_alphabetically'; + import { expectFailsRule, expectPassesRule } from '../assertions'; describe('EnumValuesSortedAlphabetically rule', () => { it('catches enums that are not sorted alphabetically', () => { - const ast = getGraphQLAst(` + expectFailsRule( + EnumValuesSortedAlphabetically, + ` + type Query { + a: String + } + enum Stage { ZZZ AAA } - `); ? ^^ + `, ? ^ + [ + { - - const schema = buildASTSchema(ast); - const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); - - assert.equal(errors.length, 1); - - assert.equal(errors[0].ruleName, 'enum-values-sorted-alphabetically'); - assert.equal( - errors[0].message, - 'The enum `Stage` should be sorted alphabetically.' + message: 'The enum `Stage` should be sorted alphabetically.', ? +++++++++++++ + + locations: [{ line: 6, column: 7 }], + }, + ] ); - assert.deepEqual(errors[0].locations, [{ line: 7, column: 7 }]); }); it('allows enums that are sorted alphabetically ', () => { - const ast = getGraphQLAst(` + expectPassesRule( + EnumValuesSortedAlphabetically, + ` + type Query { + a: String + } + enum Stage { AAA ZZZ } + ` - `); ? - + ); - - const schema = buildASTSchema(ast); - const errors = validate(schema, ast, [EnumValuesSortedAlphabetically]); - - assert.equal(errors.length, 0); }); }); - - function getGraphQLAst(string) { - return parse(` - type QueryRoot { - a: String - } - - ${string} - - schema { - query: QueryRoot - } - `); - }
63
1.105263
24
39
3e078daf7cdf1a61bf100ef20ecc011de34194a6
Casks/pycharm-ce.rb
Casks/pycharm-ce.rb
class PycharmCe < Cask url 'http://download.jetbrains.com/python/pycharm-community-3.4.dmg' homepage 'http://www.jetbrains.com/pycharm' version '3.4' sha256 'da083ac2761e4060e6b3c7446671ae9487045114a82dd64894e113dc9eb3e596' link 'PyCharm CE.app' end
class PycharmCe < Cask url 'http://download.jetbrains.com/python/pycharm-community-3.4.1.dmg' homepage 'http://www.jetbrains.com/pycharm' version '3.4.1' sha256 '18b4d2d61badb81feaf22a51a7c76b85618e5a7a01f4f4c5e46079d134c64002' link 'PyCharm CE.app' end
Upgrade Pycharm CE.app to v2.4.1
Upgrade Pycharm CE.app to v2.4.1
Ruby
bsd-2-clause
Fedalto/homebrew-cask,ingorichter/homebrew-cask,m3nu/homebrew-cask,zhuzihhhh/homebrew-cask,shanonvl/homebrew-cask,okket/homebrew-cask,timsutton/homebrew-cask,cprecioso/homebrew-cask,guylabs/homebrew-cask,victorpopkov/homebrew-cask,Amorymeltzer/homebrew-cask,Amorymeltzer/homebrew-cask,ywfwj2008/homebrew-cask,morganestes/homebrew-cask,inz/homebrew-cask,qnm/homebrew-cask,gord1anknot/homebrew-cask,jangalinski/homebrew-cask,delphinus35/homebrew-cask,cfillion/homebrew-cask,christer155/homebrew-cask,moogar0880/homebrew-cask,ksylvan/homebrew-cask,faun/homebrew-cask,markthetech/homebrew-cask,wolflee/homebrew-cask,flaviocamilo/homebrew-cask,syscrusher/homebrew-cask,stigkj/homebrew-caskroom-cask,mrmachine/homebrew-cask,andrewschleifer/homebrew-cask,jawshooah/homebrew-cask,jiashuw/homebrew-cask,stonehippo/homebrew-cask,13k/homebrew-cask,Hywan/homebrew-cask,markhuber/homebrew-cask,KosherBacon/homebrew-cask,JoelLarson/homebrew-cask,Dremora/homebrew-cask,miccal/homebrew-cask,jhowtan/homebrew-cask,ianyh/homebrew-cask,freeslugs/homebrew-cask,jeanregisser/homebrew-cask,danielbayley/homebrew-cask,royalwang/homebrew-cask,crmne/homebrew-cask,sjackman/homebrew-cask,exherb/homebrew-cask,samshadwell/homebrew-cask,goxberry/homebrew-cask,neverfox/homebrew-cask,optikfluffel/homebrew-cask,nicolas-brousse/homebrew-cask,RJHsiao/homebrew-cask,hovancik/homebrew-cask,FranklinChen/homebrew-cask,jppelteret/homebrew-cask,asins/homebrew-cask,colindean/homebrew-cask,MircoT/homebrew-cask,spruceb/homebrew-cask,lucasmezencio/homebrew-cask,deanmorin/homebrew-cask,FredLackeyOfficial/homebrew-cask,gyndav/homebrew-cask,hakamadare/homebrew-cask,vmrob/homebrew-cask,csmith-palantir/homebrew-cask,m3nu/homebrew-cask,mathbunnyru/homebrew-cask,BahtiyarB/homebrew-cask,garborg/homebrew-cask,nathanielvarona/homebrew-cask,mathbunnyru/homebrew-cask,cedwardsmedia/homebrew-cask,iamso/homebrew-cask,janlugt/homebrew-cask,slnovak/homebrew-cask,donbobka/homebrew-cask,akiomik/homebrew-cask,Amorymeltzer/homebrew-cask,alloy/homebrew-cask,mjgardner/homebrew-cask,singingwolfboy/homebrew-cask,kei-yamazaki/homebrew-cask,fazo96/homebrew-cask,mkozjak/homebrew-cask,L2G/homebrew-cask,aktau/homebrew-cask,daften/homebrew-cask,haha1903/homebrew-cask,n0ts/homebrew-cask,tranc99/homebrew-cask,joschi/homebrew-cask,ky0615/homebrew-cask-1,lieuwex/homebrew-cask,JikkuJose/homebrew-cask,codeurge/homebrew-cask,nshemonsky/homebrew-cask,coeligena/homebrew-customized,samnung/homebrew-cask,tangestani/homebrew-cask,dwihn0r/homebrew-cask,a1russell/homebrew-cask,ch3n2k/homebrew-cask,reitermarkus/homebrew-cask,leonmachadowilcox/homebrew-cask,artdevjs/homebrew-cask,kronicd/homebrew-cask,bdhess/homebrew-cask,dvdoliveira/homebrew-cask,yumitsu/homebrew-cask,hswong3i/homebrew-cask,danielbayley/homebrew-cask,helloIAmPau/homebrew-cask,crmne/homebrew-cask,singingwolfboy/homebrew-cask,scribblemaniac/homebrew-cask,greg5green/homebrew-cask,reitermarkus/homebrew-cask,otzy007/homebrew-cask,nathansgreen/homebrew-cask,ldong/homebrew-cask,morsdyce/homebrew-cask,leipert/homebrew-cask,julionc/homebrew-cask,phpwutz/homebrew-cask,fwiesel/homebrew-cask,johan/homebrew-cask,dcondrey/homebrew-cask,danielgomezrico/homebrew-cask,dezon/homebrew-cask,puffdad/homebrew-cask,bchatard/homebrew-cask,norio-nomura/homebrew-cask,ahundt/homebrew-cask,mfpierre/homebrew-cask,zerrot/homebrew-cask,ddm/homebrew-cask,shonjir/homebrew-cask,elseym/homebrew-cask,mchlrmrz/homebrew-cask,rhendric/homebrew-cask,elyscape/homebrew-cask,wuman/homebrew-cask,xiongchiamiov/homebrew-cask,gabrielizaias/homebrew-cask,miccal/homebrew-cask,kkdd/homebrew-cask,exherb/homebrew-cask,diguage/homebrew-cask,xyb/homebrew-cask,albertico/homebrew-cask,petmoo/homebrew-cask,bcaceiro/homebrew-cask,bendoerr/homebrew-cask,tdsmith/homebrew-cask,epmatsw/homebrew-cask,Nitecon/homebrew-cask,tarwich/homebrew-cask,JoelLarson/homebrew-cask,rubenerd/homebrew-cask,ericbn/homebrew-cask,malob/homebrew-cask,rubenerd/homebrew-cask,cblecker/homebrew-cask,rednoah/homebrew-cask,stevenmaguire/homebrew-cask,bkono/homebrew-cask,JosephViolago/homebrew-cask,kesara/homebrew-cask,otaran/homebrew-cask,MoOx/homebrew-cask,decrement/homebrew-cask,moimikey/homebrew-cask,reelsense/homebrew-cask,mwean/homebrew-cask,bcaceiro/homebrew-cask,jbeagley52/homebrew-cask,Philosoft/homebrew-cask,xcezx/homebrew-cask,Ibuprofen/homebrew-cask,bgandon/homebrew-cask,klane/homebrew-cask,renard/homebrew-cask,skatsuta/homebrew-cask,arranubels/homebrew-cask,gustavoavellar/homebrew-cask,shorshe/homebrew-cask,crzrcn/homebrew-cask,buo/homebrew-cask,af/homebrew-cask,gyugyu/homebrew-cask,thii/homebrew-cask,giannitm/homebrew-cask,syscrusher/homebrew-cask,scw/homebrew-cask,nickpellant/homebrew-cask,devmynd/homebrew-cask,neil-ca-moore/homebrew-cask,wKovacs64/homebrew-cask,hswong3i/homebrew-cask,fkrone/homebrew-cask,shoichiaizawa/homebrew-cask,andyli/homebrew-cask,xcezx/homebrew-cask,FredLackeyOfficial/homebrew-cask,williamboman/homebrew-cask,mindriot101/homebrew-cask,claui/homebrew-cask,moonboots/homebrew-cask,lukasbestle/homebrew-cask,jconley/homebrew-cask,JosephViolago/homebrew-cask,jayshao/homebrew-cask,shoichiaizawa/homebrew-cask,akiomik/homebrew-cask,katoquro/homebrew-cask,claui/homebrew-cask,jmeridth/homebrew-cask,thehunmonkgroup/homebrew-cask,thomanq/homebrew-cask,BahtiyarB/homebrew-cask,ptb/homebrew-cask,doits/homebrew-cask,zeusdeux/homebrew-cask,Gasol/homebrew-cask,nrlquaker/homebrew-cask,wastrachan/homebrew-cask,santoshsahoo/homebrew-cask,zeusdeux/homebrew-cask,patresi/homebrew-cask,julionc/homebrew-cask,ayohrling/homebrew-cask,buo/homebrew-cask,fanquake/homebrew-cask,y00rb/homebrew-cask,skatsuta/homebrew-cask,lantrix/homebrew-cask,carlmod/homebrew-cask,stonehippo/homebrew-cask,renaudguerin/homebrew-cask,coneman/homebrew-cask,andrewdisley/homebrew-cask,afh/homebrew-cask,iamso/homebrew-cask,blogabe/homebrew-cask,askl56/homebrew-cask,AnastasiaSulyagina/homebrew-cask,tjnycum/homebrew-cask,xalep/homebrew-cask,mfpierre/homebrew-cask,blogabe/homebrew-cask,Ketouem/homebrew-cask,nshemonsky/homebrew-cask,opsdev-ws/homebrew-cask,koenrh/homebrew-cask,xyb/homebrew-cask,mingzhi22/homebrew-cask,fharbe/homebrew-cask,greg5green/homebrew-cask,timsutton/homebrew-cask,supriyantomaftuh/homebrew-cask,sscotth/homebrew-cask,miguelfrde/homebrew-cask,andyshinn/homebrew-cask,SentinelWarren/homebrew-cask,ctrevino/homebrew-cask,rickychilcott/homebrew-cask,sachin21/homebrew-cask,kpearson/homebrew-cask,hvisage/homebrew-cask,MisumiRize/homebrew-cask,djmonta/homebrew-cask,lukeadams/homebrew-cask,miccal/homebrew-cask,ky0615/homebrew-cask-1,Saklad5/homebrew-cask,FranklinChen/homebrew-cask,sscotth/homebrew-cask,kongslund/homebrew-cask,nathancahill/homebrew-cask,doits/homebrew-cask,deiga/homebrew-cask,My2ndAngelic/homebrew-cask,dictcp/homebrew-cask,dwkns/homebrew-cask,danielbayley/homebrew-cask,huanzhang/homebrew-cask,bgandon/homebrew-cask,malford/homebrew-cask,wickles/homebrew-cask,kostasdizas/homebrew-cask,uetchy/homebrew-cask,joshka/homebrew-cask,garborg/homebrew-cask,MicTech/homebrew-cask,yurikoles/homebrew-cask,yutarody/homebrew-cask,jmeridth/homebrew-cask,deiga/homebrew-cask,paour/homebrew-cask,adriweb/homebrew-cask,jbeagley52/homebrew-cask,yurrriq/homebrew-cask,zchee/homebrew-cask,githubutilities/homebrew-cask,hakamadare/homebrew-cask,boydj/homebrew-cask,barravi/homebrew-cask,lvicentesanchez/homebrew-cask,sysbot/homebrew-cask,ptb/homebrew-cask,jonathanwiesel/homebrew-cask,feniix/homebrew-cask,ericbn/homebrew-cask,wickles/homebrew-cask,jeroenseegers/homebrew-cask,afdnlw/homebrew-cask,muan/homebrew-cask,chadcatlett/caskroom-homebrew-cask,Philosoft/homebrew-cask,andyli/homebrew-cask,feniix/homebrew-cask,linc01n/homebrew-cask,sanchezm/homebrew-cask,boecko/homebrew-cask,bcomnes/homebrew-cask,stephenwade/homebrew-cask,aki77/homebrew-cask,mwek/homebrew-cask,johnjelinek/homebrew-cask,shishi/homebrew-cask,kamilboratynski/homebrew-cask,ajbw/homebrew-cask,gord1anknot/homebrew-cask,pinut/homebrew-cask,jtriley/homebrew-cask,chrisfinazzo/homebrew-cask,kTitan/homebrew-cask,elnappo/homebrew-cask,kingthorin/homebrew-cask,guylabs/homebrew-cask,githubutilities/homebrew-cask,tjt263/homebrew-cask,0rax/homebrew-cask,johntrandall/homebrew-cask,dictcp/homebrew-cask,squid314/homebrew-cask,feigaochn/homebrew-cask,englishm/homebrew-cask,a1russell/homebrew-cask,nightscape/homebrew-cask,optikfluffel/homebrew-cask,sjackman/homebrew-cask,mlocher/homebrew-cask,fharbe/homebrew-cask,gyndav/homebrew-cask,crzrcn/homebrew-cask,jeroenseegers/homebrew-cask,joshka/homebrew-cask,jspahrsummers/homebrew-cask,gibsjose/homebrew-cask,esebastian/homebrew-cask,skyyuan/homebrew-cask,jrwesolo/homebrew-cask,catap/homebrew-cask,blogabe/homebrew-cask,farmerchris/homebrew-cask,paulombcosta/homebrew-cask,gilesdring/homebrew-cask,slack4u/homebrew-cask,johnste/homebrew-cask,scottsuch/homebrew-cask,joshka/homebrew-cask,xight/homebrew-cask,mwilmer/homebrew-cask,royalwang/homebrew-cask,rajiv/homebrew-cask,fwiesel/homebrew-cask,aguynamedryan/homebrew-cask,usami-k/homebrew-cask,cedwardsmedia/homebrew-cask,valepert/homebrew-cask,sebcode/homebrew-cask,gurghet/homebrew-cask,paour/homebrew-cask,mazehall/homebrew-cask,ingorichter/homebrew-cask,chuanxd/homebrew-cask,bkono/homebrew-cask,mhubig/homebrew-cask,thomanq/homebrew-cask,wizonesolutions/homebrew-cask,winkelsdorf/homebrew-cask,RickWong/homebrew-cask,chino/homebrew-cask,kirikiriyamama/homebrew-cask,johnste/homebrew-cask,lalyos/homebrew-cask,andersonba/homebrew-cask,deizel/homebrew-cask,miguelfrde/homebrew-cask,Cottser/homebrew-cask,inta/homebrew-cask,andrewdisley/homebrew-cask,elyscape/homebrew-cask,shonjir/homebrew-cask,giannitm/homebrew-cask,LaurentFough/homebrew-cask,hristozov/homebrew-cask,jayshao/homebrew-cask,ftiff/homebrew-cask,tolbkni/homebrew-cask,slnovak/homebrew-cask,optikfluffel/homebrew-cask,mattrobenolt/homebrew-cask,ashishb/homebrew-cask,samnung/homebrew-cask,antogg/homebrew-cask,petmoo/homebrew-cask,rajiv/homebrew-cask,larseggert/homebrew-cask,paulombcosta/homebrew-cask,d/homebrew-cask,tolbkni/homebrew-cask,tsparber/homebrew-cask,jgarber623/homebrew-cask,tmoreira2020/homebrew,flada-auxv/homebrew-cask,arronmabrey/homebrew-cask,christophermanning/homebrew-cask,kolomiichenko/homebrew-cask,fkrone/homebrew-cask,illusionfield/homebrew-cask,stonehippo/homebrew-cask,aguynamedryan/homebrew-cask,MatzFan/homebrew-cask,nathanielvarona/homebrew-cask,toonetown/homebrew-cask,MerelyAPseudonym/homebrew-cask,djmonta/homebrew-cask,gguillotte/homebrew-cask,atsuyim/homebrew-cask,qnm/homebrew-cask,catap/homebrew-cask,jedahan/homebrew-cask,albertico/homebrew-cask,lieuwex/homebrew-cask,gwaldo/homebrew-cask,lumaxis/homebrew-cask,claui/homebrew-cask,ninjahoahong/homebrew-cask,lantrix/homebrew-cask,jconley/homebrew-cask,ninjahoahong/homebrew-cask,yuhki50/homebrew-cask,neverfox/homebrew-cask,jhowtan/homebrew-cask,kassi/homebrew-cask,mokagio/homebrew-cask,illusionfield/homebrew-cask,tdsmith/homebrew-cask,MircoT/homebrew-cask,Ngrd/homebrew-cask,y00rb/homebrew-cask,johan/homebrew-cask,wolflee/homebrew-cask,mahori/homebrew-cask,opsdev-ws/homebrew-cask,napaxton/homebrew-cask,gmkey/homebrew-cask,franklouwers/homebrew-cask,af/homebrew-cask,pgr0ss/homebrew-cask,mjdescy/homebrew-cask,dwkns/homebrew-cask,lolgear/homebrew-cask,xalep/homebrew-cask,tyage/homebrew-cask,phpwutz/homebrew-cask,3van/homebrew-cask,kkdd/homebrew-cask,dspeckhard/homebrew-cask,renard/homebrew-cask,lalyos/homebrew-cask,ayohrling/homebrew-cask,englishm/homebrew-cask,lifepillar/homebrew-cask,tjt263/homebrew-cask,coeligena/homebrew-customized,tedski/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,vitorgalvao/homebrew-cask,artdevjs/homebrew-cask,sanyer/homebrew-cask,jellyfishcoder/homebrew-cask,forevergenin/homebrew-cask,bosr/homebrew-cask,yutarody/homebrew-cask,jgarber623/homebrew-cask,nelsonjchen/homebrew-cask,lvicentesanchez/homebrew-cask,mjdescy/homebrew-cask,joaoponceleao/homebrew-cask,jppelteret/homebrew-cask,toonetown/homebrew-cask,kamilboratynski/homebrew-cask,askl56/homebrew-cask,joschi/homebrew-cask,hanxue/caskroom,xight/homebrew-cask,Labutin/homebrew-cask,jeroenj/homebrew-cask,mAAdhaTTah/homebrew-cask,williamboman/homebrew-cask,dunn/homebrew-cask,dieterdemeyer/homebrew-cask,cblecker/homebrew-cask,kirikiriyamama/homebrew-cask,CameronGarrett/homebrew-cask,iAmGhost/homebrew-cask,linc01n/homebrew-cask,kievechua/homebrew-cask,neverfox/homebrew-cask,joschi/homebrew-cask,seanorama/homebrew-cask,xtian/homebrew-cask,ericbn/homebrew-cask,paulbreslin/homebrew-cask,mariusbutuc/homebrew-cask,wayou/homebrew-cask,seanzxx/homebrew-cask,wesen/homebrew-cask,gerrymiller/homebrew-cask,atsuyim/homebrew-cask,caskroom/homebrew-cask,onlynone/homebrew-cask,xyb/homebrew-cask,samshadwell/homebrew-cask,michelegera/homebrew-cask,athrunsun/homebrew-cask,ajbw/homebrew-cask,dezon/homebrew-cask,tmoreira2020/homebrew,barravi/homebrew-cask,chrisRidgers/homebrew-cask,FinalDes/homebrew-cask,Gasol/homebrew-cask,singingwolfboy/homebrew-cask,alebcay/homebrew-cask,andrewschleifer/homebrew-cask,samdoran/homebrew-cask,mahori/homebrew-cask,ponychicken/homebrew-customcask,dwihn0r/homebrew-cask,kesara/homebrew-cask,kteru/homebrew-cask,pinut/homebrew-cask,julienlavergne/homebrew-cask,gwaldo/homebrew-cask,Whoaa512/homebrew-cask,dspeckhard/homebrew-cask,MoOx/homebrew-cask,ftiff/homebrew-cask,goxberry/homebrew-cask,sgnh/homebrew-cask,casidiablo/homebrew-cask,mchlrmrz/homebrew-cask,rajiv/homebrew-cask,uetchy/homebrew-cask,j13k/homebrew-cask,dlackty/homebrew-cask,inta/homebrew-cask,yumitsu/homebrew-cask,imgarylai/homebrew-cask,enriclluelles/homebrew-cask,nickpellant/homebrew-cask,sparrc/homebrew-cask,AdamCmiel/homebrew-cask,decrement/homebrew-cask,alloy/homebrew-cask,gabrielizaias/homebrew-cask,bric3/homebrew-cask,Ketouem/homebrew-cask,jen20/homebrew-cask,sirodoht/homebrew-cask,boydj/homebrew-cask,skyyuan/homebrew-cask,retrography/homebrew-cask,maxnordlund/homebrew-cask,kevyau/homebrew-cask,xiongchiamiov/homebrew-cask,leonmachadowilcox/homebrew-cask,tranc99/homebrew-cask,otaran/homebrew-cask,zorosteven/homebrew-cask,mwilmer/homebrew-cask,santoshsahoo/homebrew-cask,pacav69/homebrew-cask,chrisfinazzo/homebrew-cask,dcondrey/homebrew-cask,sanyer/homebrew-cask,jacobdam/homebrew-cask,winkelsdorf/homebrew-cask,rednoah/homebrew-cask,feigaochn/homebrew-cask,katoquro/homebrew-cask,lukasbestle/homebrew-cask,mattrobenolt/homebrew-cask,vigosan/homebrew-cask,MerelyAPseudonym/homebrew-cask,Ephemera/homebrew-cask,ksato9700/homebrew-cask,delphinus35/homebrew-cask,flaviocamilo/homebrew-cask,CameronGarrett/homebrew-cask,axodys/homebrew-cask,scribblemaniac/homebrew-cask,amatos/homebrew-cask,jen20/homebrew-cask,morganestes/homebrew-cask,schneidmaster/homebrew-cask,AndreTheHunter/homebrew-cask,shishi/homebrew-cask,lukeadams/homebrew-cask,sanyer/homebrew-cask,hyuna917/homebrew-cask,josa42/homebrew-cask,dieterdemeyer/homebrew-cask,segiddins/homebrew-cask,jrwesolo/homebrew-cask,mgryszko/homebrew-cask,moimikey/homebrew-cask,nathanielvarona/homebrew-cask,SamiHiltunen/homebrew-cask,vin047/homebrew-cask,jpodlech/homebrew-cask,cclauss/homebrew-cask,dunn/homebrew-cask,m3nu/homebrew-cask,mattrobenolt/homebrew-cask,AdamCmiel/homebrew-cask,imgarylai/homebrew-cask,renaudguerin/homebrew-cask,blainesch/homebrew-cask,robertgzr/homebrew-cask,0xadada/homebrew-cask,inz/homebrew-cask,frapposelli/homebrew-cask,muan/homebrew-cask,ashishb/homebrew-cask,esebastian/homebrew-cask,jawshooah/homebrew-cask,jonathanwiesel/homebrew-cask,elseym/homebrew-cask,puffdad/homebrew-cask,kostasdizas/homebrew-cask,guerrero/homebrew-cask,mwek/homebrew-cask,carlmod/homebrew-cask,jasmas/homebrew-cask,tedbundyjr/homebrew-cask,amatos/homebrew-cask,gerrymiller/homebrew-cask,joaocc/homebrew-cask,nathancahill/homebrew-cask,JacopKane/homebrew-cask,schneidmaster/homebrew-cask,jeroenj/homebrew-cask,cobyism/homebrew-cask,afdnlw/homebrew-cask,RickWong/homebrew-cask,devmynd/homebrew-cask,victorpopkov/homebrew-cask,mjgardner/homebrew-cask,shoichiaizawa/homebrew-cask,vitorgalvao/homebrew-cask,chino/homebrew-cask,retbrown/homebrew-cask,SentinelWarren/homebrew-cask,wesen/homebrew-cask,stevehedrick/homebrew-cask,csmith-palantir/homebrew-cask,hellosky806/homebrew-cask,6uclz1/homebrew-cask,kolomiichenko/homebrew-cask,rhendric/homebrew-cask,gmkey/homebrew-cask,dvdoliveira/homebrew-cask,mauricerkelly/homebrew-cask,danielgomezrico/homebrew-cask,sohtsuka/homebrew-cask,iAmGhost/homebrew-cask,underyx/homebrew-cask,ahvigil/homebrew-cask,nelsonjchen/homebrew-cask,coeligena/homebrew-customized,zhuzihhhh/homebrew-cask,retrography/homebrew-cask,neil-ca-moore/homebrew-cask,jacobdam/homebrew-cask,colindean/homebrew-cask,alexg0/homebrew-cask,thehunmonkgroup/homebrew-cask,nanoxd/homebrew-cask,asbachb/homebrew-cask,supriyantomaftuh/homebrew-cask,tjnycum/homebrew-cask,scw/homebrew-cask,kievechua/homebrew-cask,alebcay/homebrew-cask,forevergenin/homebrew-cask,lauantai/homebrew-cask,adelinofaria/homebrew-cask,lucasmezencio/homebrew-cask,kryhear/homebrew-cask,pkq/homebrew-cask,rogeriopradoj/homebrew-cask,arranubels/homebrew-cask,psibre/homebrew-cask,fly19890211/homebrew-cask,wmorin/homebrew-cask,n8henrie/homebrew-cask,gerrypower/homebrew-cask,anbotero/homebrew-cask,kuno/homebrew-cask,julionc/homebrew-cask,zorosteven/homebrew-cask,shanonvl/homebrew-cask,asbachb/homebrew-cask,troyxmccall/homebrew-cask,riyad/homebrew-cask,napaxton/homebrew-cask,xtian/homebrew-cask,uetchy/homebrew-cask,tarwich/homebrew-cask,wmorin/homebrew-cask,wizonesolutions/homebrew-cask,wickedsp1d3r/homebrew-cask,gyndav/homebrew-cask,troyxmccall/homebrew-cask,elnappo/homebrew-cask,segiddins/homebrew-cask,hristozov/homebrew-cask,gerrypower/homebrew-cask,shorshe/homebrew-cask,nanoxd/homebrew-cask,seanorama/homebrew-cask,sirodoht/homebrew-cask,mikem/homebrew-cask,mAAdhaTTah/homebrew-cask,Ephemera/homebrew-cask,retbrown/homebrew-cask,jellyfishcoder/homebrew-cask,corbt/homebrew-cask,Ibuprofen/homebrew-cask,lifepillar/homebrew-cask,zchee/homebrew-cask,j13k/homebrew-cask,pkq/homebrew-cask,adrianchia/homebrew-cask,SamiHiltunen/homebrew-cask,hovancik/homebrew-cask,jpmat296/homebrew-cask,astorije/homebrew-cask,stevenmaguire/homebrew-cask,yurikoles/homebrew-cask,0xadada/homebrew-cask,ahvigil/homebrew-cask,underyx/homebrew-cask,dictcp/homebrew-cask,vin047/homebrew-cask,jamesmlees/homebrew-cask,colindunn/homebrew-cask,genewoo/homebrew-cask,jamesmlees/homebrew-cask,antogg/homebrew-cask,robertgzr/homebrew-cask,unasuke/homebrew-cask,wastrachan/homebrew-cask,kryhear/homebrew-cask,MichaelPei/homebrew-cask,ohammersmith/homebrew-cask,My2ndAngelic/homebrew-cask,yurrriq/homebrew-cask,yurikoles/homebrew-cask,kassi/homebrew-cask,stephenwade/homebrew-cask,sanchezm/homebrew-cask,tjnycum/homebrew-cask,mhubig/homebrew-cask,blainesch/homebrew-cask,mindriot101/homebrew-cask,jaredsampson/homebrew-cask,squid314/homebrew-cask,6uclz1/homebrew-cask,nivanchikov/homebrew-cask,spruceb/homebrew-cask,rcuza/homebrew-cask,riyad/homebrew-cask,Cottser/homebrew-cask,corbt/homebrew-cask,axodys/homebrew-cask,joaoponceleao/homebrew-cask,jacobbednarz/homebrew-cask,pacav69/homebrew-cask,sparrc/homebrew-cask,robbiethegeek/homebrew-cask,anbotero/homebrew-cask,onlynone/homebrew-cask,prime8/homebrew-cask,qbmiller/homebrew-cask,rogeriopradoj/homebrew-cask,sachin21/homebrew-cask,rcuza/homebrew-cask,Bombenleger/homebrew-cask,mauricerkelly/homebrew-cask,zmwangx/homebrew-cask,okket/homebrew-cask,bsiddiqui/homebrew-cask,codeurge/homebrew-cask,diogodamiani/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,rickychilcott/homebrew-cask,ebraminio/homebrew-cask,michelegera/homebrew-cask,Dremora/homebrew-cask,nysthee/homebrew-cask,mchlrmrz/homebrew-cask,vuquoctuan/homebrew-cask,ddm/homebrew-cask,jalaziz/homebrew-cask,maxnordlund/homebrew-cask,wickedsp1d3r/homebrew-cask,kiliankoe/homebrew-cask,franklouwers/homebrew-cask,xight/homebrew-cask,tan9/homebrew-cask,drostron/homebrew-cask,mrmachine/homebrew-cask,seanzxx/homebrew-cask,mkozjak/homebrew-cask,mahori/homebrew-cask,mishari/homebrew-cask,moogar0880/homebrew-cask,tyage/homebrew-cask,farmerchris/homebrew-cask,diogodamiani/homebrew-cask,johnjelinek/homebrew-cask,miku/homebrew-cask,cprecioso/homebrew-cask,xakraz/homebrew-cask,Ngrd/homebrew-cask,kpearson/homebrew-cask,wmorin/homebrew-cask,mgryszko/homebrew-cask,antogg/homebrew-cask,remko/homebrew-cask,dlackty/homebrew-cask,lumaxis/homebrew-cask,faun/homebrew-cask,lauantai/homebrew-cask,Saklad5/homebrew-cask,dustinblackman/homebrew-cask,johndbritton/homebrew-cask,deanmorin/homebrew-cask,kingthorin/homebrew-cask,howie/homebrew-cask,bchatard/homebrew-cask,cohei/homebrew-cask,ahundt/homebrew-cask,Fedalto/homebrew-cask,vigosan/homebrew-cask,ch3n2k/homebrew-cask,tangestani/homebrew-cask,josa42/homebrew-cask,aki77/homebrew-cask,freeslugs/homebrew-cask,thii/homebrew-cask,genewoo/homebrew-cask,colindunn/homebrew-cask,mattfelsen/homebrew-cask,hackhandslabs/homebrew-cask,sscotth/homebrew-cask,wayou/homebrew-cask,a1russell/homebrew-cask,nysthee/homebrew-cask,ctrevino/homebrew-cask,ianyh/homebrew-cask,hyuna917/homebrew-cask,gilesdring/homebrew-cask,gustavoavellar/homebrew-cask,BenjaminHCCarr/homebrew-cask,tedbundyjr/homebrew-cask,hvisage/homebrew-cask,ldong/homebrew-cask,perfide/homebrew-cask,tangestani/homebrew-cask,taherio/homebrew-cask,Hywan/homebrew-cask,bdhess/homebrew-cask,chrisRidgers/homebrew-cask,rkJun/homebrew-cask,shonjir/homebrew-cask,RogerThiede/homebrew-cask,andyshinn/homebrew-cask,gregkare/homebrew-cask,adrianchia/homebrew-cask,howie/homebrew-cask,Keloran/homebrew-cask,haha1903/homebrew-cask,adrianchia/homebrew-cask,RJHsiao/homebrew-cask,psibre/homebrew-cask,alexg0/homebrew-cask,pkq/homebrew-cask,markthetech/homebrew-cask,cliffcotino/homebrew-cask,LaurentFough/homebrew-cask,cliffcotino/homebrew-cask,mazehall/homebrew-cask,AndreTheHunter/homebrew-cask,ksylvan/homebrew-cask,astorije/homebrew-cask,kteru/homebrew-cask,RogerThiede/homebrew-cask,wKovacs64/homebrew-cask,fanquake/homebrew-cask,scottsuch/homebrew-cask,Whoaa512/homebrew-cask,ebraminio/homebrew-cask,miku/homebrew-cask,johntrandall/homebrew-cask,nrlquaker/homebrew-cask,ywfwj2008/homebrew-cask,johndbritton/homebrew-cask,nicolas-brousse/homebrew-cask,paulbreslin/homebrew-cask,JacopKane/homebrew-cask,JacopKane/homebrew-cask,stigkj/homebrew-caskroom-cask,nightscape/homebrew-cask,vmrob/homebrew-cask,d/homebrew-cask,lolgear/homebrew-cask,hellosky806/homebrew-cask,vuquoctuan/homebrew-cask,Keloran/homebrew-cask,a-x-/homebrew-cask,wuman/homebrew-cask,jeanregisser/homebrew-cask,tedski/homebrew-cask,slack4u/homebrew-cask,flada-auxv/homebrew-cask,larseggert/homebrew-cask,jalaziz/homebrew-cask,Nitecon/homebrew-cask,cfillion/homebrew-cask,a-x-/homebrew-cask,robbiethegeek/homebrew-cask,AnastasiaSulyagina/homebrew-cask,gguillotte/homebrew-cask,daften/homebrew-cask,L2G/homebrew-cask,MicTech/homebrew-cask,paour/homebrew-cask,BenjaminHCCarr/homebrew-cask,reitermarkus/homebrew-cask,klane/homebrew-cask,mjgardner/homebrew-cask,enriclluelles/homebrew-cask,prime8/homebrew-cask,jedahan/homebrew-cask,rogeriopradoj/homebrew-cask,pablote/homebrew-cask,winkelsdorf/homebrew-cask,sosedoff/homebrew-cask,JosephViolago/homebrew-cask,fly19890211/homebrew-cask,zerrot/homebrew-cask,leipert/homebrew-cask,alexg0/homebrew-cask,jalaziz/homebrew-cask,mattfelsen/homebrew-cask,tan9/homebrew-cask,koenrh/homebrew-cask,gibsjose/homebrew-cask,lcasey001/homebrew-cask,jasmas/homebrew-cask,Ephemera/homebrew-cask,kiliankoe/homebrew-cask,jaredsampson/homebrew-cask,scottsuch/homebrew-cask,jacobbednarz/homebrew-cask,nathansgreen/homebrew-cask,huanzhang/homebrew-cask,cclauss/homebrew-cask,ponychicken/homebrew-customcask,reelsense/homebrew-cask,caskroom/homebrew-cask,cobyism/homebrew-cask,esebastian/homebrew-cask,yuhki50/homebrew-cask,mokagio/homebrew-cask,MichaelPei/homebrew-cask,patresi/homebrew-cask,timsutton/homebrew-cask,dlovitch/homebrew-cask,13k/homebrew-cask,markhuber/homebrew-cask,kingthorin/homebrew-cask,deizel/homebrew-cask,KosherBacon/homebrew-cask,unasuke/homebrew-cask,andersonba/homebrew-cask,usami-k/homebrew-cask,jpodlech/homebrew-cask,mingzhi22/homebrew-cask,jangalinski/homebrew-cask,sebcode/homebrew-cask,scribblemaniac/homebrew-cask,christophermanning/homebrew-cask,moonboots/homebrew-cask,MatzFan/homebrew-cask,hanxue/caskroom,andrewdisley/homebrew-cask,brianshumate/homebrew-cask,remko/homebrew-cask,bric3/homebrew-cask,ksato9700/homebrew-cask,nivanchikov/homebrew-cask,gregkare/homebrew-cask,guerrero/homebrew-cask,bendoerr/homebrew-cask,aktau/homebrew-cask,mikem/homebrew-cask,adelinofaria/homebrew-cask,kronicd/homebrew-cask,theoriginalgri/homebrew-cask,stevehedrick/homebrew-cask,Labutin/homebrew-cask,djakarta-trap/homebrew-myCask,hanxue/caskroom,mishari/homebrew-cask,jpmat296/homebrew-cask,n8henrie/homebrew-cask,Bombenleger/homebrew-cask,arronmabrey/homebrew-cask,kesara/homebrew-cask,zmwangx/homebrew-cask,bosr/homebrew-cask,kTitan/homebrew-cask,sosedoff/homebrew-cask,christer155/homebrew-cask,epardee/homebrew-cask,valepert/homebrew-cask,ohammersmith/homebrew-cask,rkJun/homebrew-cask,mariusbutuc/homebrew-cask,kei-yamazaki/homebrew-cask,tsparber/homebrew-cask,epmatsw/homebrew-cask,gyugyu/homebrew-cask,bcomnes/homebrew-cask,boecko/homebrew-cask,drostron/homebrew-cask,jiashuw/homebrew-cask,josa42/homebrew-cask,sgnh/homebrew-cask,mlocher/homebrew-cask,theoriginalgri/homebrew-cask,perfide/homebrew-cask,coneman/homebrew-cask,norio-nomura/homebrew-cask,kuno/homebrew-cask,qbmiller/homebrew-cask,3van/homebrew-cask,stephenwade/homebrew-cask,adriweb/homebrew-cask,athrunsun/homebrew-cask,n0ts/homebrew-cask,chrisfinazzo/homebrew-cask,cobyism/homebrew-cask,asins/homebrew-cask,dlovitch/homebrew-cask,morsdyce/homebrew-cask,diguage/homebrew-cask,malob/homebrew-cask,djakarta-trap/homebrew-myCask,yutarody/homebrew-cask,jgarber623/homebrew-cask,deiga/homebrew-cask,chadcatlett/caskroom-homebrew-cask,bric3/homebrew-cask,imgarylai/homebrew-cask,taherio/homebrew-cask,epardee/homebrew-cask,hackhandslabs/homebrew-cask,dustinblackman/homebrew-cask,mwean/homebrew-cask,casidiablo/homebrew-cask,xakraz/homebrew-cask,janlugt/homebrew-cask,julienlavergne/homebrew-cask,lcasey001/homebrew-cask,gurghet/homebrew-cask,JikkuJose/homebrew-cask,pgr0ss/homebrew-cask,moimikey/homebrew-cask,joaocc/homebrew-cask,alebcay/homebrew-cask,jspahrsummers/homebrew-cask,cohei/homebrew-cask,kevyau/homebrew-cask,pablote/homebrew-cask,kongslund/homebrew-cask,brianshumate/homebrew-cask,malob/homebrew-cask,fazo96/homebrew-cask,afh/homebrew-cask,jtriley/homebrew-cask,bsiddiqui/homebrew-cask,MisumiRize/homebrew-cask,BenjaminHCCarr/homebrew-cask,0rax/homebrew-cask,otzy007/homebrew-cask,helloIAmPau/homebrew-cask,cblecker/homebrew-cask,mathbunnyru/homebrew-cask,chuanxd/homebrew-cask,sohtsuka/homebrew-cask,FinalDes/homebrew-cask,frapposelli/homebrew-cask,nrlquaker/homebrew-cask,donbobka/homebrew-cask,samdoran/homebrew-cask,malford/homebrew-cask,sysbot/homebrew-cask
ruby
## Code Before: class PycharmCe < Cask url 'http://download.jetbrains.com/python/pycharm-community-3.4.dmg' homepage 'http://www.jetbrains.com/pycharm' version '3.4' sha256 'da083ac2761e4060e6b3c7446671ae9487045114a82dd64894e113dc9eb3e596' link 'PyCharm CE.app' end ## Instruction: Upgrade Pycharm CE.app to v2.4.1 ## Code After: class PycharmCe < Cask url 'http://download.jetbrains.com/python/pycharm-community-3.4.1.dmg' homepage 'http://www.jetbrains.com/pycharm' version '3.4.1' sha256 '18b4d2d61badb81feaf22a51a7c76b85618e5a7a01f4f4c5e46079d134c64002' link 'PyCharm CE.app' end
class PycharmCe < Cask - url 'http://download.jetbrains.com/python/pycharm-community-3.4.dmg' + url 'http://download.jetbrains.com/python/pycharm-community-3.4.1.dmg' ? ++ homepage 'http://www.jetbrains.com/pycharm' - version '3.4' + version '3.4.1' ? ++ - sha256 'da083ac2761e4060e6b3c7446671ae9487045114a82dd64894e113dc9eb3e596' + sha256 '18b4d2d61badb81feaf22a51a7c76b85618e5a7a01f4f4c5e46079d134c64002' link 'PyCharm CE.app' end
6
0.857143
3
3
293cc399b2fe135f0e47401e9561120e0b97c906
Readme.md
Readme.md
gn is the simplest file/folder/structure/whatever generator you could ever find. ## Usage Say you want to generate always a typical README file, like this one, you should do the following: * Create a folder named (for instance) readme on your current folder * Inside of that folder, create a file named init.rb and fill it like this: module Plan module Readme def name "CHANGEME" end def destination "readme" end end end * Create a templates folder and the template itself. mkdir readme/templates touch readme/templates/readme.mote * Inside the readme template, put your typical Readme content. * To include dynamic data, just use {{variable}}, where variable is a public method on Plan::Readme. So writing {{name}} will produce CHANGEME. * Run the generator like this: gn readme * Your existing editor will pop open, allowing you to change the content of the module. * Close the editor. * You'll end up having a file named readme in the current directory, with the changes you made on the init.rb file, but your original init.rb file will be intact. ## Other usages You can use gn to generate different things. In our case, we design it so we could generate basic crud/scaffolds for cuba, but you could use for whatever you want. See the folder named examples for some ideas. ## Installation gem install gn
gn is the simplest file/folder/structure/whatever generator you could ever find. ## Usage Say you want to generate always a typical README file, like this one, you should do the following: * Create a folder named (for instance) readme on your current folder * Inside of that folder, create a file named init.rb and fill it like this: ```ruby module Plan module Readme def name "CHANGEME" end def destination "readme" end end end ``` * Create a templates folder and the template itself. mkdir readme/templates touch readme/templates/readme.mote * Inside the readme template, put your typical Readme content. * To include dynamic data, just use {{variable}}, where variable is a public method on Plan::Readme. So writing {{name}} will produce CHANGEME. * Run the generator like this: gn readme * Your existing editor will pop open, allowing you to change the content of the module. * Close the editor. * You'll end up having a file named readme in the current directory, with the changes you made on the init.rb file, but your original init.rb file will be intact. ## Other usages You can use gn to generate different things. In our case, we design it so we could generate basic crud/scaffolds for cuba, but you could use for whatever you want. See the folder named examples for some ideas. ## Installation gem install gn
Add syntax highlight to init.rb example
Add syntax highlight to init.rb example
Markdown
mit
lucasefe/gn
markdown
## Code Before: gn is the simplest file/folder/structure/whatever generator you could ever find. ## Usage Say you want to generate always a typical README file, like this one, you should do the following: * Create a folder named (for instance) readme on your current folder * Inside of that folder, create a file named init.rb and fill it like this: module Plan module Readme def name "CHANGEME" end def destination "readme" end end end * Create a templates folder and the template itself. mkdir readme/templates touch readme/templates/readme.mote * Inside the readme template, put your typical Readme content. * To include dynamic data, just use {{variable}}, where variable is a public method on Plan::Readme. So writing {{name}} will produce CHANGEME. * Run the generator like this: gn readme * Your existing editor will pop open, allowing you to change the content of the module. * Close the editor. * You'll end up having a file named readme in the current directory, with the changes you made on the init.rb file, but your original init.rb file will be intact. ## Other usages You can use gn to generate different things. In our case, we design it so we could generate basic crud/scaffolds for cuba, but you could use for whatever you want. See the folder named examples for some ideas. ## Installation gem install gn ## Instruction: Add syntax highlight to init.rb example ## Code After: gn is the simplest file/folder/structure/whatever generator you could ever find. ## Usage Say you want to generate always a typical README file, like this one, you should do the following: * Create a folder named (for instance) readme on your current folder * Inside of that folder, create a file named init.rb and fill it like this: ```ruby module Plan module Readme def name "CHANGEME" end def destination "readme" end end end ``` * Create a templates folder and the template itself. mkdir readme/templates touch readme/templates/readme.mote * Inside the readme template, put your typical Readme content. * To include dynamic data, just use {{variable}}, where variable is a public method on Plan::Readme. So writing {{name}} will produce CHANGEME. * Run the generator like this: gn readme * Your existing editor will pop open, allowing you to change the content of the module. * Close the editor. * You'll end up having a file named readme in the current directory, with the changes you made on the init.rb file, but your original init.rb file will be intact. ## Other usages You can use gn to generate different things. In our case, we design it so we could generate basic crud/scaffolds for cuba, but you could use for whatever you want. See the folder named examples for some ideas. ## Installation gem install gn
gn is the simplest file/folder/structure/whatever generator you could ever find. ## Usage Say you want to generate always a typical README file, like this one, you should do the following: * Create a folder named (for instance) readme on your current folder * Inside of that folder, create a file named init.rb and fill it like this: - module Plan + ```ruby + module Plan - module Readme ? -------- + module Readme - - def name - "CHANGEME" - end + def name + "CHANGEME" + end + - def destination ? -------- + def destination - "readme" ? -------- + "readme" - end - end - end ? ---- + end + end + end + ``` * Create a templates folder and the template itself. mkdir readme/templates touch readme/templates/readme.mote * Inside the readme template, put your typical Readme content. * To include dynamic data, just use {{variable}}, where variable is a public method on Plan::Readme. So writing {{name}} will produce CHANGEME. * Run the generator like this: gn readme * Your existing editor will pop open, allowing you to change the content of the module. * Close the editor. * You'll end up having a file named readme in the current directory, with the changes you made on the init.rb file, but your original init.rb file will be intact. ## Other usages You can use gn to generate different things. In our case, we design it so we could generate basic crud/scaffolds for cuba, but you could use for whatever you want. See the folder named examples for some ideas. ## Installation gem install gn
24
0.5
13
11
92b1f8d9d72e8d6779b5d06f2b55717801d07426
app/views/items/edit.html.erb
app/views/items/edit.html.erb
<p>This is where you will edit existing item information</p> <%= render 'form', item: @item %>
<div class="form"> <p>This is where you will edit existing item information</p> <%= render 'form', item: @item %> </div>
Add div.form container around edit item form
Add div.form container around edit item form
HTML+ERB
mit
benjaminhyw/rails-online-shop,benjaminhyw/rails-online-shop,benjaminhyw/rails-online-shop
html+erb
## Code Before: <p>This is where you will edit existing item information</p> <%= render 'form', item: @item %> ## Instruction: Add div.form container around edit item form ## Code After: <div class="form"> <p>This is where you will edit existing item information</p> <%= render 'form', item: @item %> </div>
+ <div class="form"> - <p>This is where you will edit existing item information</p> + <p>This is where you will edit existing item information</p> ? ++ - <%= render 'form', item: @item %> + <%= render 'form', item: @item %> ? ++ + </div>
6
2
4
2
8bd7ce5b4329fdf4953b7f2e09e6cd32835f9da6
data/build_dependencies/debian.yml
data/build_dependencies/debian.yml
default: - curl - libpq-dev - libsqlite3-0 - libevent-dev - libssl-dev - libxml2-dev - libxslt1-dev - libreadline-dev - build-essential debian-6: - libssl0.9.8 - libmysqlclient-dev debian-7: - libssl1.0.0 - libmysqlclient-dev debian-8: - libssl1.0.0 - libmysqlclient-dev debian-9: - libssl1.0.2 - default-libmysqlclient-dev
default: - curl - libpq-dev - libsqlite3-0 - libevent-dev - libxml2-dev - libxslt1-dev - libreadline-dev - build-essential debian-6: - libssl0.9.8 - libssl-dev - libmysqlclient-dev debian-7: - libssl1.0.0 - libssl-dev - libmysqlclient-dev debian-8: - libssl1.0.0 - libssl-dev - libmysqlclient-dev debian-9: - libssl1.0.2 - libssl1.0-dev - default-libmysqlclient-dev
Use libssl1.0-dev to allow for older rubies
Use libssl1.0-dev to allow for older rubies
YAML
mit
crohr/pkgr,crohr/pkgr,crohr/pkgr
yaml
## Code Before: default: - curl - libpq-dev - libsqlite3-0 - libevent-dev - libssl-dev - libxml2-dev - libxslt1-dev - libreadline-dev - build-essential debian-6: - libssl0.9.8 - libmysqlclient-dev debian-7: - libssl1.0.0 - libmysqlclient-dev debian-8: - libssl1.0.0 - libmysqlclient-dev debian-9: - libssl1.0.2 - default-libmysqlclient-dev ## Instruction: Use libssl1.0-dev to allow for older rubies ## Code After: default: - curl - libpq-dev - libsqlite3-0 - libevent-dev - libxml2-dev - libxslt1-dev - libreadline-dev - build-essential debian-6: - libssl0.9.8 - libssl-dev - libmysqlclient-dev debian-7: - libssl1.0.0 - libssl-dev - libmysqlclient-dev debian-8: - libssl1.0.0 - libssl-dev - libmysqlclient-dev debian-9: - libssl1.0.2 - libssl1.0-dev - default-libmysqlclient-dev
default: - curl - libpq-dev - libsqlite3-0 - libevent-dev - - libssl-dev - libxml2-dev - libxslt1-dev - libreadline-dev - build-essential debian-6: - libssl0.9.8 + - libssl-dev - libmysqlclient-dev debian-7: - libssl1.0.0 + - libssl-dev - libmysqlclient-dev debian-8: - libssl1.0.0 + - libssl-dev - libmysqlclient-dev debian-9: - libssl1.0.2 + - libssl1.0-dev - default-libmysqlclient-dev
5
0.227273
4
1
a10feedc76dab66b6963d0841bd404659e317477
README.md
README.md
MSYS2-packages ============== [![TeaCI status](https://tea-ci.org/api/badges/Alexpux/MSYS2-packages/status.svg)](https://tea-ci.org/Alexpux/MSYS2-packages) [![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/Alexpux/MSYS2-packages?branch=master&svg=true)](https://ci.appveyor.com/project/Alexpux/MSYS2-packages) Package scripts for MSYS2. To build these, run msys2_shell.cmd then from the bash prompt. cd ${package-name} makepkg To install the built package(s). pacman -U ${package-name}*.pkg.tar.xz If you don't have the group base-devel installed, please install. pacman -S base-devel
MSYS2-packages ============== [![TeaCI status](https://tea-ci.org/api/badges/Alexpux/MSYS2-packages/status.svg)](https://tea-ci.org/Alexpux/MSYS2-packages) [![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/Alexpux/MSYS2-packages?branch=master&svg=true)](https://ci.appveyor.com/project/Alexpux/MSYS2-packages) Package scripts for MSYS2. To build these, run msys2_shell.cmd then from the bash prompt. Packages frmo the msys2-devel and base-devel and groups are implicit build time dependencies. Make sure both are installed before attempting to build any package: pacman -S --needed base-devel msys2-devel cd ${package-name} makepkg To install the built package(s). pacman -U ${package-name}*.pkg.tar.xz
Install msys2-devel to build packages
Install msys2-devel to build packages Closes #1244.
Markdown
bsd-3-clause
dscho/MSYS2-packages,Alexpux/MSYS2-packages,JPeterMugaas/MSYS2-packages,PiotrVV/MSYS2-packages,PiotrVV/MSYS2-packages,git-for-windows/MSYS2-packages,mati865/MSYS2-packages,juergenpf/MSYS2-packages,juergenpf/MSYS2-packages,dscho/MSYS2-packages,JPeterMugaas/MSYS2-packages,mati865/MSYS2-packages,atom2013/MSYS2-packages,juergenpf/MSYS2-packages,JPeterMugaas/MSYS2-packages,mashir43/MSYS2-packages,waterlan/MSYS2-packages,mati865/MSYS2-packages,git-for-windows/MSYS2-packages,PiotrVV/MSYS2-packages,atom2013/MSYS2-packages,waterlan/MSYS2-packages,mashir43/MSYS2-packages,atom2013/MSYS2-packages,juergenpf/MSYS2-packages,Alexpux/MSYS2-packages,git-for-windows/MSYS2-packages,git-for-windows/MSYS2-packages,PiotrVV/MSYS2-packages,dscho/MSYS2-packages,JPeterMugaas/MSYS2-packages,mashir43/MSYS2-packages,waterlan/MSYS2-packages,waterlan/MSYS2-packages,mashir43/MSYS2-packages,dscho/MSYS2-packages,mati865/MSYS2-packages,Alexpux/MSYS2-packages,juergenpf/MSYS2-packages,Alexpux/MSYS2-packages,atom2013/MSYS2-packages
markdown
## Code Before: MSYS2-packages ============== [![TeaCI status](https://tea-ci.org/api/badges/Alexpux/MSYS2-packages/status.svg)](https://tea-ci.org/Alexpux/MSYS2-packages) [![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/Alexpux/MSYS2-packages?branch=master&svg=true)](https://ci.appveyor.com/project/Alexpux/MSYS2-packages) Package scripts for MSYS2. To build these, run msys2_shell.cmd then from the bash prompt. cd ${package-name} makepkg To install the built package(s). pacman -U ${package-name}*.pkg.tar.xz If you don't have the group base-devel installed, please install. pacman -S base-devel ## Instruction: Install msys2-devel to build packages Closes #1244. ## Code After: MSYS2-packages ============== [![TeaCI status](https://tea-ci.org/api/badges/Alexpux/MSYS2-packages/status.svg)](https://tea-ci.org/Alexpux/MSYS2-packages) [![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/Alexpux/MSYS2-packages?branch=master&svg=true)](https://ci.appveyor.com/project/Alexpux/MSYS2-packages) Package scripts for MSYS2. To build these, run msys2_shell.cmd then from the bash prompt. Packages frmo the msys2-devel and base-devel and groups are implicit build time dependencies. Make sure both are installed before attempting to build any package: pacman -S --needed base-devel msys2-devel cd ${package-name} makepkg To install the built package(s). pacman -U ${package-name}*.pkg.tar.xz
MSYS2-packages ============== [![TeaCI status](https://tea-ci.org/api/badges/Alexpux/MSYS2-packages/status.svg)](https://tea-ci.org/Alexpux/MSYS2-packages) [![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/Alexpux/MSYS2-packages?branch=master&svg=true)](https://ci.appveyor.com/project/Alexpux/MSYS2-packages) Package scripts for MSYS2. - To build these, run msys2_shell.cmd then from the bash prompt. + To build these, run msys2_shell.cmd then from the bash prompt. Packages frmo ? ++++++++++++++ + the msys2-devel and base-devel and groups are implicit build time dependencies. + Make sure both are installed before attempting to build any package: + pacman -S --needed base-devel msys2-devel cd ${package-name} makepkg To install the built package(s). pacman -U ${package-name}*.pkg.tar.xz - - If you don't have the group base-devel installed, please install. - - pacman -S base-devel
9
0.473684
4
5
9971752b38a4bb6b72440289bfd50db877f95522
test/open_geojson.test.js
test/open_geojson.test.js
'use strict'; var ogr = require('../lib/gdal.js').ogr; var path = require('path'); var assert = require('chai').assert; describe('Open', function() { describe('GeoJSON', function() { var filename, ds; it('should not throw', function() { filename = path.join(__dirname,"data/park.geo.json"); ds = ogr.open(filename); }); it('should be able to read layer count', function() { assert.equal(ds.getLayerCount(), 1); }); describe('layer', function() { var layer; before(function() { layer = ds.getLayer(0); }); it('should exist', function() { assert.ok(layer); assert.instanceOf(layer, ogr.Layer); }); it('should have definition', function() { assert.ok(layer.getLayerDefn()); }) }); }); });
'use strict'; var ogr = require('../lib/gdal.js').ogr; var path = require('path'); var assert = require('chai').assert; describe('Open', function() { describe('GeoJSON', function() { var filename, ds; it('should not throw', function() { filename = path.join(__dirname,"data/park.geo.json"); ds = ogr.open(filename); }); it('should be able to read layer count', function() { assert.equal(ds.getLayerCount(), 1); }); describe('layer', function() { var layer; before(function() { layer = ds.getLayer(0); }); it('should exist', function() { assert.ok(layer); assert.instanceOf(layer, ogr.Layer); }); describe('definition', function() { var defn; before(function() { defn = layer.getLayerDefn(); }); it('should exist', function() { assert.ok(defn); assert.instanceOf(defn, ogr.FeatureDefn); }); it('should have all fields defined', function() { assert.equal(defn.getFieldCount(), 3); assert.equal(defn.getFieldDefn(0).getName(), 'kind'); assert.equal(defn.getFieldDefn(1).getName(), 'name'); assert.equal(defn.getFieldDefn(2).getName(), 'state'); }); }); describe('features', function() { it('should have all fields', function() { assert.equal(layer.getFeatureCount(), 1); var feature = layer.getFeature(0); var fields = feature.getFields(); assert.deepEqual(fields, { 'kind': 'county', 'state': 'WY', 'name': 'Park' }); }); }); }); }); });
Test for field definitions / values.
Test for field definitions / values.
JavaScript
apache-2.0
naturalatlas/node-gdal,naturalatlas/node-gdal,infitude/node-gdal,nbuchanan/node-gdal,infitude/node-gdal,naturalatlas/node-gdal,blairdgeo/node-gdal,jwoyame/node-gdal,nbuchanan/node-gdal,nbuchanan/node-gdal,not001praween001/node-gdal,blairdgeo/node-gdal,sbmelvin/node-gdal,jdesboeufs/node-gdal,jwoyame/node-gdal,jwoyame/node-gdal,infitude/node-gdal,jdesboeufs/node-gdal,sbmelvin/node-gdal,jdesboeufs/node-gdal,Uli1/node-gdal,Uli1/node-gdal,nbuchanan/node-gdal,sbmelvin/node-gdal,Uli1/node-gdal,Uli1/node-gdal,blairdgeo/node-gdal,jdesboeufs/node-gdal,not001praween001/node-gdal,jwoyame/node-gdal,sbmelvin/node-gdal,naturalatlas/node-gdal,not001praween001/node-gdal,not001praween001/node-gdal,infitude/node-gdal
javascript
## Code Before: 'use strict'; var ogr = require('../lib/gdal.js').ogr; var path = require('path'); var assert = require('chai').assert; describe('Open', function() { describe('GeoJSON', function() { var filename, ds; it('should not throw', function() { filename = path.join(__dirname,"data/park.geo.json"); ds = ogr.open(filename); }); it('should be able to read layer count', function() { assert.equal(ds.getLayerCount(), 1); }); describe('layer', function() { var layer; before(function() { layer = ds.getLayer(0); }); it('should exist', function() { assert.ok(layer); assert.instanceOf(layer, ogr.Layer); }); it('should have definition', function() { assert.ok(layer.getLayerDefn()); }) }); }); }); ## Instruction: Test for field definitions / values. ## Code After: 'use strict'; var ogr = require('../lib/gdal.js').ogr; var path = require('path'); var assert = require('chai').assert; describe('Open', function() { describe('GeoJSON', function() { var filename, ds; it('should not throw', function() { filename = path.join(__dirname,"data/park.geo.json"); ds = ogr.open(filename); }); it('should be able to read layer count', function() { assert.equal(ds.getLayerCount(), 1); }); describe('layer', function() { var layer; before(function() { layer = ds.getLayer(0); }); it('should exist', function() { assert.ok(layer); assert.instanceOf(layer, ogr.Layer); }); describe('definition', function() { var defn; before(function() { defn = layer.getLayerDefn(); }); it('should exist', function() { assert.ok(defn); assert.instanceOf(defn, ogr.FeatureDefn); }); it('should have all fields defined', function() { assert.equal(defn.getFieldCount(), 3); assert.equal(defn.getFieldDefn(0).getName(), 'kind'); assert.equal(defn.getFieldDefn(1).getName(), 'name'); assert.equal(defn.getFieldDefn(2).getName(), 'state'); }); }); describe('features', function() { it('should have all fields', function() { assert.equal(layer.getFeatureCount(), 1); var feature = layer.getFeature(0); var fields = feature.getFields(); assert.deepEqual(fields, { 'kind': 'county', 'state': 'WY', 'name': 'Park' }); }); }); }); }); });
'use strict'; var ogr = require('../lib/gdal.js').ogr; var path = require('path'); var assert = require('chai').assert; describe('Open', function() { describe('GeoJSON', function() { var filename, ds; it('should not throw', function() { filename = path.join(__dirname,"data/park.geo.json"); ds = ogr.open(filename); }); it('should be able to read layer count', function() { assert.equal(ds.getLayerCount(), 1); }); describe('layer', function() { var layer; before(function() { layer = ds.getLayer(0); }); it('should exist', function() { assert.ok(layer); assert.instanceOf(layer, ogr.Layer); }); + describe('definition', function() { + var defn; + before(function() { + defn = layer.getLayerDefn(); + }); - it('should have definition', function() { ? --- ^^^^ ^^ --- + it('should exist', function() { ? + ^ ^ - assert.ok(layer.getLayerDefn()); + assert.ok(defn); + assert.instanceOf(defn, ogr.FeatureDefn); + }); + it('should have all fields defined', function() { + assert.equal(defn.getFieldCount(), 3); + assert.equal(defn.getFieldDefn(0).getName(), 'kind'); + assert.equal(defn.getFieldDefn(1).getName(), 'name'); + assert.equal(defn.getFieldDefn(2).getName(), 'state'); + }); - }) + }); ? + + describe('features', function() { + it('should have all fields', function() { + assert.equal(layer.getFeatureCount(), 1); + var feature = layer.getFeature(0); + var fields = feature.getFields(); + + assert.deepEqual(fields, { + 'kind': 'county', + 'state': 'WY', + 'name': 'Park' + }); + }); + }); }); }); });
32
1.032258
29
3
d85d04da0f6ce283f53678bd81bd0987f59ce766
curldrop/cli.py
curldrop/cli.py
import click import os from .app import app from .server import StandaloneServer @click.command() @click.option( '--port', default=8000, help='Port to listen on, default is 8000' ) @click.option( '--upload-dir', default=os.getcwd(), help='Directory where uploads are stored, if not specified the current working directory will be used' ) @click.option( '--baseurl', default=None, help='Base URL, e.g. http://example.com/' ) def main(port, upload_dir, baseurl): if baseurl is None: baseurl = 'http://{host}:{port}/'.format(host='localhost', port=port) click.echo( click.style('You did not specify a Base URL, using default: ' + baseurl, fg='yellow') ) app.config['UPLOAD_DIR'] = upload_dir app.config['BASE_URL'] = baseurl server_options = { 'bind': '{ip}:{port}'.format( ip='0.0.0.0', port=port ), 'workers': 4, } StandaloneServer(app, server_options).run() if __name__ == '__main__': main()
import click import os from .app import app from .server import StandaloneServer @click.command() @click.option( '--port', default=8000, help='Port to listen on, default is 8000' ) @click.option( '--upload-dir', default=os.getcwd(), help='Directory where uploads are stored, if not specified the current working directory will be used' ) @click.option( '--baseurl', default=None, help='Base URL, e.g. http://example.com/' ) def main(port, upload_dir, baseurl): if baseurl is None: baseurl = 'http://{host}:{port}/'.format(host='localhost', port=port) click.echo( click.style('You did not specify a Base URL, using default: ' + baseurl, fg='yellow') ) app.config['UPLOAD_DIR'] = upload_dir app.config['BASE_URL'] = baseurl server_options = { 'bind': '{ip}:{port}'.format( ip='0.0.0.0', port=port ), 'workers': 4, 'accesslog': '-', 'errorlog': '-' } StandaloneServer(app, server_options).run() if __name__ == '__main__': main()
Make gunicorn log to stdout/stderr
Make gunicorn log to stdout/stderr
Python
mit
kennell/curldrop,kevvvvv/curldrop
python
## Code Before: import click import os from .app import app from .server import StandaloneServer @click.command() @click.option( '--port', default=8000, help='Port to listen on, default is 8000' ) @click.option( '--upload-dir', default=os.getcwd(), help='Directory where uploads are stored, if not specified the current working directory will be used' ) @click.option( '--baseurl', default=None, help='Base URL, e.g. http://example.com/' ) def main(port, upload_dir, baseurl): if baseurl is None: baseurl = 'http://{host}:{port}/'.format(host='localhost', port=port) click.echo( click.style('You did not specify a Base URL, using default: ' + baseurl, fg='yellow') ) app.config['UPLOAD_DIR'] = upload_dir app.config['BASE_URL'] = baseurl server_options = { 'bind': '{ip}:{port}'.format( ip='0.0.0.0', port=port ), 'workers': 4, } StandaloneServer(app, server_options).run() if __name__ == '__main__': main() ## Instruction: Make gunicorn log to stdout/stderr ## Code After: import click import os from .app import app from .server import StandaloneServer @click.command() @click.option( '--port', default=8000, help='Port to listen on, default is 8000' ) @click.option( '--upload-dir', default=os.getcwd(), help='Directory where uploads are stored, if not specified the current working directory will be used' ) @click.option( '--baseurl', default=None, help='Base URL, e.g. http://example.com/' ) def main(port, upload_dir, baseurl): if baseurl is None: baseurl = 'http://{host}:{port}/'.format(host='localhost', port=port) click.echo( click.style('You did not specify a Base URL, using default: ' + baseurl, fg='yellow') ) app.config['UPLOAD_DIR'] = upload_dir app.config['BASE_URL'] = baseurl server_options = { 'bind': '{ip}:{port}'.format( ip='0.0.0.0', port=port ), 'workers': 4, 'accesslog': '-', 'errorlog': '-' } StandaloneServer(app, server_options).run() if __name__ == '__main__': main()
import click import os from .app import app from .server import StandaloneServer @click.command() @click.option( '--port', default=8000, help='Port to listen on, default is 8000' ) @click.option( '--upload-dir', default=os.getcwd(), help='Directory where uploads are stored, if not specified the current working directory will be used' ) @click.option( '--baseurl', default=None, help='Base URL, e.g. http://example.com/' ) def main(port, upload_dir, baseurl): if baseurl is None: baseurl = 'http://{host}:{port}/'.format(host='localhost', port=port) click.echo( click.style('You did not specify a Base URL, using default: ' + baseurl, fg='yellow') ) app.config['UPLOAD_DIR'] = upload_dir app.config['BASE_URL'] = baseurl server_options = { 'bind': '{ip}:{port}'.format( ip='0.0.0.0', port=port ), 'workers': 4, + 'accesslog': '-', + 'errorlog': '-' } StandaloneServer(app, server_options).run() if __name__ == '__main__': main()
2
0.045455
2
0
a7b1a5997f386171604b81e689b293c03d64324a
src/worker/mod.rs
src/worker/mod.rs
mod immediate; #[cfg(feature = "std")] mod multithreaded; #[cfg(all(feature = "std", not(any(target_arch = "asmjs", target_arch = "wasm32"))))] pub use self::multithreaded::MultiThreadedWorker as PlatformWorker; #[cfg(any(not(feature = "std"), target_arch = "asmjs", target_arch = "wasm32"))] pub use self::immediate::ImmediateWorker as PlatformWorker; use alloc::sync::Arc; use alloc::vec::Vec; use error::Result; use parser::Component; pub struct RowData { pub index: usize, pub component: Component, pub quantization_table: Arc<[u16; 64]>, } pub trait Worker: Sized { fn new() -> Result<Self>; fn start(&mut self, row_data: RowData) -> Result<()>; fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<()>; fn get_result(&mut self, index: usize) -> Result<Vec<u8>>; }
mod immediate; mod multithreaded; #[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] pub use self::multithreaded::MultiThreadedWorker as PlatformWorker; #[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] pub use self::immediate::ImmediateWorker as PlatformWorker; use alloc::sync::Arc; use alloc::vec::Vec; use error::Result; use parser::Component; pub struct RowData { pub index: usize, pub component: Component, pub quantization_table: Arc<[u16; 64]>, } pub trait Worker: Sized { fn new() -> Result<Self>; fn start(&mut self, row_data: RowData) -> Result<()>; fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<()>; fn get_result(&mut self, index: usize) -> Result<Vec<u8>>; }
Remove feature gate on the std feature
Remove feature gate on the std feature
Rust
apache-2.0
image-rs/jpeg-decoder
rust
## Code Before: mod immediate; #[cfg(feature = "std")] mod multithreaded; #[cfg(all(feature = "std", not(any(target_arch = "asmjs", target_arch = "wasm32"))))] pub use self::multithreaded::MultiThreadedWorker as PlatformWorker; #[cfg(any(not(feature = "std"), target_arch = "asmjs", target_arch = "wasm32"))] pub use self::immediate::ImmediateWorker as PlatformWorker; use alloc::sync::Arc; use alloc::vec::Vec; use error::Result; use parser::Component; pub struct RowData { pub index: usize, pub component: Component, pub quantization_table: Arc<[u16; 64]>, } pub trait Worker: Sized { fn new() -> Result<Self>; fn start(&mut self, row_data: RowData) -> Result<()>; fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<()>; fn get_result(&mut self, index: usize) -> Result<Vec<u8>>; } ## Instruction: Remove feature gate on the std feature ## Code After: mod immediate; mod multithreaded; #[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] pub use self::multithreaded::MultiThreadedWorker as PlatformWorker; #[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] pub use self::immediate::ImmediateWorker as PlatformWorker; use alloc::sync::Arc; use alloc::vec::Vec; use error::Result; use parser::Component; pub struct RowData { pub index: usize, pub component: Component, pub quantization_table: Arc<[u16; 64]>, } pub trait Worker: Sized { fn new() -> Result<Self>; fn start(&mut self, row_data: RowData) -> Result<()>; fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<()>; fn get_result(&mut self, index: usize) -> Result<Vec<u8>>; }
mod immediate; - #[cfg(feature = "std")] mod multithreaded; - #[cfg(all(feature = "std", not(any(target_arch = "asmjs", target_arch = "wasm32"))))] ? --------------------- - + #[cfg(not(any(target_arch = "asmjs", target_arch = "wasm32")))] pub use self::multithreaded::MultiThreadedWorker as PlatformWorker; - #[cfg(any(not(feature = "std"), target_arch = "asmjs", target_arch = "wasm32"))] ? ---------------------- + #[cfg(any(target_arch = "asmjs", target_arch = "wasm32"))] pub use self::immediate::ImmediateWorker as PlatformWorker; use alloc::sync::Arc; use alloc::vec::Vec; use error::Result; use parser::Component; pub struct RowData { pub index: usize, pub component: Component, pub quantization_table: Arc<[u16; 64]>, } pub trait Worker: Sized { fn new() -> Result<Self>; fn start(&mut self, row_data: RowData) -> Result<()>; fn append_row(&mut self, row: (usize, Vec<i16>)) -> Result<()>; fn get_result(&mut self, index: usize) -> Result<Vec<u8>>; }
5
0.192308
2
3
d25e96f0965072be6de7c08c53cd19514d6b5849
docs/howtos/index.rst
docs/howtos/index.rst
================= Howtos and guides ================= This is a collection of howtos and documentation bits with relevance to the project. .. toctree:: :maxdepth: 2 reStructuredText syntax overview <http://rest-sphinx-memo.readthedocs.org/> build_docs git_tips installing_libvirt mgmtswitch cumulus-install cumulus-vagrantbox idrac-provision idrac-vnc foreman-bootstrap
================= Howtos and guides ================= This is a collection of howtos and documentation bits with relevance to the project. .. toctree:: :maxdepth: 2 reStructuredText syntax overview <http://rest-sphinx-memo.readthedocs.org/> build_docs git_tips installing_libvirt mgmtswitch cumulus-install cumulus-vagrantbox routed-vm-interface idrac-provision idrac-vnc foreman-bootstrap
Add routed vm interface to TOC
Add routed vm interface to TOC
reStructuredText
apache-2.0
norcams/iaas,norcams/iaas,norcams/iaas
restructuredtext
## Code Before: ================= Howtos and guides ================= This is a collection of howtos and documentation bits with relevance to the project. .. toctree:: :maxdepth: 2 reStructuredText syntax overview <http://rest-sphinx-memo.readthedocs.org/> build_docs git_tips installing_libvirt mgmtswitch cumulus-install cumulus-vagrantbox idrac-provision idrac-vnc foreman-bootstrap ## Instruction: Add routed vm interface to TOC ## Code After: ================= Howtos and guides ================= This is a collection of howtos and documentation bits with relevance to the project. .. toctree:: :maxdepth: 2 reStructuredText syntax overview <http://rest-sphinx-memo.readthedocs.org/> build_docs git_tips installing_libvirt mgmtswitch cumulus-install cumulus-vagrantbox routed-vm-interface idrac-provision idrac-vnc foreman-bootstrap
================= Howtos and guides ================= This is a collection of howtos and documentation bits with relevance to the project. .. toctree:: :maxdepth: 2 reStructuredText syntax overview <http://rest-sphinx-memo.readthedocs.org/> build_docs git_tips installing_libvirt mgmtswitch cumulus-install cumulus-vagrantbox + routed-vm-interface idrac-provision idrac-vnc foreman-bootstrap
1
0.05
1
0
03f6e166b0de21424a472cf300dee3c44d88c2e1
src/Stagger/index.jsx
src/Stagger/index.jsx
import React from 'react'; import { node, number } from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; const Stagger = ({ children, chunk, delay, ...props }) => { const getDelay = idx => { if (chunk) { return (idx % chunk) * delay; } return idx * delay; }; return ( <TransitionGroup appear {...props}> {React.Children.map(children, (child, i) => React.cloneElement(child, { delay: `${getDelay(i)}ms`, }) )} </TransitionGroup> ); }; Stagger.propTypes = { children: node, chunk: number, delay: number, }; Stagger.defaultProps = { delay: 100, }; export default Stagger;
import React from 'react'; import { node, number } from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; export const getStaggerDelay = (idx, props) => { if (props.chunk) { return (idx % props.chunk) * props.delay; } return idx * props.delay; }; const Stagger = ({ children, ...props }) => { return ( <TransitionGroup appear {...props}> {React.Children.map(children, (child, i) => React.cloneElement(child, { delay: `${getStaggerDelay(i, props)}ms`, }) )} </TransitionGroup> ); }; Stagger.propTypes = { children: node, chunk: number, delay: number, }; Stagger.defaultProps = { delay: 100, }; export default Stagger;
Move getDelay out of component and rename to make more testable
Move getDelay out of component and rename to make more testable
JSX
mit
unruffledBeaver/react-animation-components
jsx
## Code Before: import React from 'react'; import { node, number } from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; const Stagger = ({ children, chunk, delay, ...props }) => { const getDelay = idx => { if (chunk) { return (idx % chunk) * delay; } return idx * delay; }; return ( <TransitionGroup appear {...props}> {React.Children.map(children, (child, i) => React.cloneElement(child, { delay: `${getDelay(i)}ms`, }) )} </TransitionGroup> ); }; Stagger.propTypes = { children: node, chunk: number, delay: number, }; Stagger.defaultProps = { delay: 100, }; export default Stagger; ## Instruction: Move getDelay out of component and rename to make more testable ## Code After: import React from 'react'; import { node, number } from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; export const getStaggerDelay = (idx, props) => { if (props.chunk) { return (idx % props.chunk) * props.delay; } return idx * props.delay; }; const Stagger = ({ children, ...props }) => { return ( <TransitionGroup appear {...props}> {React.Children.map(children, (child, i) => React.cloneElement(child, { delay: `${getStaggerDelay(i, props)}ms`, }) )} </TransitionGroup> ); }; Stagger.propTypes = { children: node, chunk: number, delay: number, }; Stagger.defaultProps = { delay: 100, }; export default Stagger;
import React from 'react'; import { node, number } from 'prop-types'; import { TransitionGroup } from 'react-transition-group'; + export const getStaggerDelay = (idx, props) => { - const Stagger = ({ children, chunk, delay, ...props }) => { - const getDelay = idx => { - if (chunk) { ? ---- + if (props.chunk) { ? ++++++ - return (idx % chunk) * delay; ? ---- + return (idx % props.chunk) * props.delay; ? ++++++ ++++++ - } - return idx * delay; - }; ? - + } + return idx * props.delay; + }; + const Stagger = ({ children, ...props }) => { return ( <TransitionGroup appear {...props}> {React.Children.map(children, (child, i) => React.cloneElement(child, { - delay: `${getDelay(i)}ms`, + delay: `${getStaggerDelay(i, props)}ms`, ? +++++++ +++++++ }) )} </TransitionGroup> ); }; Stagger.propTypes = { children: node, chunk: number, delay: number, }; Stagger.defaultProps = { delay: 100, }; export default Stagger;
16
0.470588
8
8
87c9e31f402ed11bf590c355e8ea1069f89fc703
batdc/app/controllers/events_controller.rb
batdc/app/controllers/events_controller.rb
class EventsController < ApplicationController load_and_authorize_resource except: [:create] def index if params[:search] filt = "event_name like ?" srch = "%#{params[:search]}%" @events = Event.where(filt, srch).order(:start_date).paginate(page: params[:page], per_page: 25) else @events = Event.order(start_date: :desc).paginate(page: params[:page], per_page: 25) end end def create @event = Event.create(event_params) redirect_to @event end def update if @event.update(event_params) redirect_to @event else render 'edit' end end private def event_params params.require(:event).permit(:eventbrite_id, :event_name, :event_type, :series, :start_date, :end_date, :venue, :url, :description, :notes, :num_sessions) end end
class EventsController < ApplicationController load_and_authorize_resource except: [:create] def index if params[:search] filt = "event_name like ?" srch = "%#{params[:search]}%" pag = { page: params[:page], per_page: 25} @events = Event.where(filt, srch).order(:start_date).paginate(pag) else @events = Event.order(start_date: :desc).paginate(page: params[:page], per_page: 25) end end def create @event = Event.create(event_params) redirect_to @event end def update if @event.update(event_params) redirect_to @event else render 'edit' end end private def event_params params.require(:event).permit(:eventbrite_id, :event_name, :event_type, :series, :start_date, :end_date, :venue, :url, :description, :notes, :num_sessions) end end
Clean up long code line in event controller
Clean up long code line in event controller
Ruby
mit
kevinemoore/batdc,kevinemoore/batdc,kevinemoore/batdc,kevinemoore/batdc,kevinemoore/batdc
ruby
## Code Before: class EventsController < ApplicationController load_and_authorize_resource except: [:create] def index if params[:search] filt = "event_name like ?" srch = "%#{params[:search]}%" @events = Event.where(filt, srch).order(:start_date).paginate(page: params[:page], per_page: 25) else @events = Event.order(start_date: :desc).paginate(page: params[:page], per_page: 25) end end def create @event = Event.create(event_params) redirect_to @event end def update if @event.update(event_params) redirect_to @event else render 'edit' end end private def event_params params.require(:event).permit(:eventbrite_id, :event_name, :event_type, :series, :start_date, :end_date, :venue, :url, :description, :notes, :num_sessions) end end ## Instruction: Clean up long code line in event controller ## Code After: class EventsController < ApplicationController load_and_authorize_resource except: [:create] def index if params[:search] filt = "event_name like ?" srch = "%#{params[:search]}%" pag = { page: params[:page], per_page: 25} @events = Event.where(filt, srch).order(:start_date).paginate(pag) else @events = Event.order(start_date: :desc).paginate(page: params[:page], per_page: 25) end end def create @event = Event.create(event_params) redirect_to @event end def update if @event.update(event_params) redirect_to @event else render 'edit' end end private def event_params params.require(:event).permit(:eventbrite_id, :event_name, :event_type, :series, :start_date, :end_date, :venue, :url, :description, :notes, :num_sessions) end end
class EventsController < ApplicationController load_and_authorize_resource except: [:create] def index if params[:search] filt = "event_name like ?" srch = "%#{params[:search]}%" + pag = { page: params[:page], per_page: 25} + @events = Event.where(filt, srch).order(:start_date).paginate(pag) - @events = Event.where(filt, - srch).order(:start_date).paginate(page: params[:page], per_page: - 25) else @events = Event.order(start_date: :desc).paginate(page: params[:page], per_page: 25) end end def create @event = Event.create(event_params) redirect_to @event end def update if @event.update(event_params) redirect_to @event else render 'edit' end end private def event_params params.require(:event).permit(:eventbrite_id, :event_name, :event_type, :series, :start_date, :end_date, :venue, :url, :description, :notes, :num_sessions) end end
5
0.135135
2
3
4d8d2b292a4a6f5136eb3383e7a2c2a1ae58cbcb
autolaunch.cfg
autolaunch.cfg
[buildout] extends = buildout.cfg eggs-directory = /opt/cache parts = dashi python [dashi] recipe = zc.recipe.egg eggs = dashi find-links = http://github.com/nimbusproject/dashi/tarball/master#egg=dashi-0.1
[buildout] extends = buildout.cfg eggs-directory = /opt/cache parts = python eggs = ${dashi:eggs} coi-services [dashi] recipe = zc.recipe.egg eggs = dashi find-links = http://github.com/nimbusproject/dashi/tarball/master#egg=dashi-0.1
Fix dashi in auto launch
Fix dashi in auto launch
INI
bsd-2-clause
ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services,ooici/coi-services
ini
## Code Before: [buildout] extends = buildout.cfg eggs-directory = /opt/cache parts = dashi python [dashi] recipe = zc.recipe.egg eggs = dashi find-links = http://github.com/nimbusproject/dashi/tarball/master#egg=dashi-0.1 ## Instruction: Fix dashi in auto launch ## Code After: [buildout] extends = buildout.cfg eggs-directory = /opt/cache parts = python eggs = ${dashi:eggs} coi-services [dashi] recipe = zc.recipe.egg eggs = dashi find-links = http://github.com/nimbusproject/dashi/tarball/master#egg=dashi-0.1
[buildout] extends = buildout.cfg eggs-directory = /opt/cache parts = - dashi python + eggs = + ${dashi:eggs} + coi-services [dashi] recipe = zc.recipe.egg eggs = dashi find-links = http://github.com/nimbusproject/dashi/tarball/master#egg=dashi-0.1
4
0.333333
3
1
0e5972991de60a8e6a940c4bd71ab4bd153d3c41
runbot.bat
runbot.bat
@ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET ValueValue=%%C ) IF x%ValueValue:0x0=%==x%ValueValue% ( ECHO Unhiding file extensions... START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f ) ENDLOCAL IF EXIST %SYSTEMROOT%\py.exe ( CMD /k py.exe -3.5 run.py EXIT ) python --version > NUL 2>&1 IF %ERRORLEVEL% NEQ 0 GOTO nopython CMD /k python run.py GOTO end :nopython ECHO ERROR: Python has either not been installed or not added to your PATH. :end PAUSE
@ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET ValueValue=%%C ) IF x%ValueValue:0x0=%==x%ValueValue% ( ECHO Unhiding file extensions... START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f ) ENDLOCAL IF EXIST %SYSTEMROOT%\py.exe ( CMD /k %SYSTEMROOT%\py.exe -3.5 run.py EXIT ) python --version > NUL 2>&1 IF %ERRORLEVEL% NEQ 0 GOTO nopython CMD /k python run.py GOTO end :nopython ECHO ERROR: Python has either not been installed or not added to your PATH. :end PAUSE
Use sysroot var in py.exe invoke
Use sysroot var in py.exe invoke Stupid path issues
Batchfile
mit
reddit-diabetes/musicbot-cloud,DiscordMusicBot/MusicBot,Crims101/SymmetraBot,Crims101/SymmetraBot,reddit-diabetes/musicbot-cloud
batchfile
## Code Before: @ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET ValueValue=%%C ) IF x%ValueValue:0x0=%==x%ValueValue% ( ECHO Unhiding file extensions... START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f ) ENDLOCAL IF EXIST %SYSTEMROOT%\py.exe ( CMD /k py.exe -3.5 run.py EXIT ) python --version > NUL 2>&1 IF %ERRORLEVEL% NEQ 0 GOTO nopython CMD /k python run.py GOTO end :nopython ECHO ERROR: Python has either not been installed or not added to your PATH. :end PAUSE ## Instruction: Use sysroot var in py.exe invoke Stupid path issues ## Code After: @ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET ValueValue=%%C ) IF x%ValueValue:0x0=%==x%ValueValue% ( ECHO Unhiding file extensions... START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f ) ENDLOCAL IF EXIST %SYSTEMROOT%\py.exe ( CMD /k %SYSTEMROOT%\py.exe -3.5 run.py EXIT ) python --version > NUL 2>&1 IF %ERRORLEVEL% NEQ 0 GOTO nopython CMD /k python run.py GOTO end :nopython ECHO ERROR: Python has either not been installed or not added to your PATH. :end PAUSE
@ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET ValueValue=%%C ) IF x%ValueValue:0x0=%==x%ValueValue% ( ECHO Unhiding file extensions... START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f ) ENDLOCAL IF EXIST %SYSTEMROOT%\py.exe ( - CMD /k py.exe -3.5 run.py + CMD /k %SYSTEMROOT%\py.exe -3.5 run.py ? +++++++++++++ EXIT ) python --version > NUL 2>&1 IF %ERRORLEVEL% NEQ 0 GOTO nopython CMD /k python run.py GOTO end :nopython ECHO ERROR: Python has either not been installed or not added to your PATH. :end PAUSE
2
0.052632
1
1
67369c96d7d2453002cf654e7702b3274fa1db42
ObjectRow/app/app_delegate.rb
ObjectRow/app/app_delegate.rb
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) # Prepare form @form = Formotion::Form.new({ sections: [{ title: "Object row", rows: [{ title: 'Object', type: :object, subtitle: 'Example of object row', value: '…this is value' },{ # https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html title: 'Tap me', type: :object, subtitle: 'Cell selection style none', selection_style: UITableViewCellSelectionStyleNone }] }] }) @form_controller = Formotion::FormController.alloc.initWithForm(@form) @window.rootViewController = @form_controller @window.makeKeyAndVisible end end
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) # Prepare form @form = Formotion::Form.new({ sections: [{ title: "Object row", rows: [{ title: 'Object', type: :object, subtitle: 'Example of object row', value: '…this is value' },{ # https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html title: 'Tap me', type: :object, subtitle: 'Cell selection style none', selection_style: UITableViewCellSelectionStyleNone }] },{ title: "Keyboard type", rows: [{ # http://www.rubymotion.com/developer-center/api/UIReturnKeyType.html title: 'URL', type: :object, subtitle: 'Return key is now ‘Go’', return_key: UIReturnKeyGo }] }] }) @form_controller = Formotion::FormController.alloc.initWithForm(@form) @window.rootViewController = @form_controller @window.makeKeyAndVisible end end
Return key is now "Go"
Return key is now "Go"
Ruby
mit
qatsi/rubymotion-formotion-examples,sashaegorov/rubymotion-formotion-examples
ruby
## Code Before: class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) # Prepare form @form = Formotion::Form.new({ sections: [{ title: "Object row", rows: [{ title: 'Object', type: :object, subtitle: 'Example of object row', value: '…this is value' },{ # https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html title: 'Tap me', type: :object, subtitle: 'Cell selection style none', selection_style: UITableViewCellSelectionStyleNone }] }] }) @form_controller = Formotion::FormController.alloc.initWithForm(@form) @window.rootViewController = @form_controller @window.makeKeyAndVisible end end ## Instruction: Return key is now "Go" ## Code After: class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) # Prepare form @form = Formotion::Form.new({ sections: [{ title: "Object row", rows: [{ title: 'Object', type: :object, subtitle: 'Example of object row', value: '…this is value' },{ # https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html title: 'Tap me', type: :object, subtitle: 'Cell selection style none', selection_style: UITableViewCellSelectionStyleNone }] },{ title: "Keyboard type", rows: [{ # http://www.rubymotion.com/developer-center/api/UIReturnKeyType.html title: 'URL', type: :object, subtitle: 'Return key is now ‘Go’', return_key: UIReturnKeyGo }] }] }) @form_controller = Formotion::FormController.alloc.initWithForm(@form) @window.rootViewController = @form_controller @window.makeKeyAndVisible end end
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) # Prepare form @form = Formotion::Form.new({ sections: [{ title: "Object row", rows: [{ title: 'Object', type: :object, subtitle: 'Example of object row', value: '…this is value' },{ # https://developer.apple.com/library/ios/documentation/uikit/reference/UITableViewCell_Class/Reference/Reference.html title: 'Tap me', type: :object, subtitle: 'Cell selection style none', selection_style: UITableViewCellSelectionStyleNone }] + },{ + title: "Keyboard type", + rows: [{ + # http://www.rubymotion.com/developer-center/api/UIReturnKeyType.html + title: 'URL', + type: :object, + subtitle: 'Return key is now ‘Go’', + return_key: UIReturnKeyGo + }] }] }) @form_controller = Formotion::FormController.alloc.initWithForm(@form) @window.rootViewController = @form_controller @window.makeKeyAndVisible end end
9
0.3
9
0
a0aa84917f8f9d99c636dd491054c24c508fbf4c
argus/resources/windows/schedule_installer.bat
argus/resources/windows/schedule_installer.bat
schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn EnablePS-Remoting /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )
schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn cloudbaseinit-installer /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )
Fix the name of the scheduled task.
Fix the name of the scheduled task.
Batchfile
apache-2.0
AlexandruTudose/cloudbase-init-ci,PCManticore/argus-ci,cmin764/argus-ci,cloudbase/cloudbase-init-ci,micumatei/cloudbase-init-ci,stefan-caraiman/cloudbase-init-ci
batchfile
## Code Before: schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn EnablePS-Remoting /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) ) ## Instruction: Fix the name of the scheduled task. ## Code After: schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn cloudbaseinit-installer /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )
schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop - for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn EnablePS-Remoting /fo list ^| find "Status:"' ) do ( ? ^ ^ ^^^^^^^^^^^ + for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn cloudbaseinit-installer /fo list ^| find "Status:"' ) do ( ? ^^^^^^^^^^ +++++++ ^ ^ if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )
2
0.153846
1
1
cad4cac6dfcbaeaff7a1c5873c5055ac5f6fad33
app/ui/src/main/res/values-v21/themes.xml
app/ui/src/main/res/values-v21/themes.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat"> <item name="android:navigationBarColor">#000000</item> </style> </resources>
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat.NoActionBar"> <item name="android:navigationBarColor">#000000</item> </style> </resources>
Fix consistent crashes when using dark theme
Fix consistent crashes when using dark theme Commit 212f36170 moved dark theme's parent to Theme.AppCompat.NoActionBar but the theme file for v21 was not updated. This caused IllegalStateException to be thrown when constructing K9Activities when dark theme has been selected. The fix corrects the parent value.
XML
apache-2.0
cketti/k-9,k9mail/k-9,cketti/k-9,cketti/k-9,k9mail/k-9,k9mail/k-9,cketti/k-9
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat"> <item name="android:navigationBarColor">#000000</item> </style> </resources> ## Instruction: Fix consistent crashes when using dark theme Commit 212f36170 moved dark theme's parent to Theme.AppCompat.NoActionBar but the theme file for v21 was not updated. This caused IllegalStateException to be thrown when constructing K9Activities when dark theme has been selected. The fix corrects the parent value. ## Code After: <?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat.NoActionBar"> <item name="android:navigationBarColor">#000000</item> </style> </resources>
<?xml version="1.0" encoding="utf-8"?> <resources> - <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat"> + <style name="Theme.K9.Dark.Base" parent="Theme.AppCompat.NoActionBar"> ? ++++++++++++ <item name="android:navigationBarColor">#000000</item> </style> </resources>
2
0.333333
1
1
7176adf7fa96e88b1e42a910cbb0b94aaeba1639
gitconfig.erb
gitconfig.erb
[user] name = Abe Voelker email = abe@abevoelker.com [alias] co = checkout [color] diff = auto status = auto branch = auto [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = mate_wait autocrlf = input [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add co = checkout [color] diff = auto status = auto branch = auto [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
Change default git editor to gVim and add some aliases
Change default git editor to gVim and add some aliases
HTML+ERB
mit
nacengineer/dotfiles,nacengineer/dotfiles
html+erb
## Code Before: [user] name = Abe Voelker email = abe@abevoelker.com [alias] co = checkout [color] diff = auto status = auto branch = auto [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = mate_wait autocrlf = input [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %> ## Instruction: Change default git editor to gVim and add some aliases ## Code After: [user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add co = checkout [color] diff = auto status = auto branch = auto [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[user] name = Abe Voelker email = abe@abevoelker.com [alias] + s = status + a = add co = checkout [color] diff = auto status = auto branch = auto [core] excludesfile = <%= ENV['HOME'] %>/.gitignore - editor = mate_wait + editor = gvim -f autocrlf = input [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
4
0.190476
3
1
66b7912cb17449e7104fb07bf491329354901100
doc/requirements.md
doc/requirements.md
You will need [Ruby] with [Bundler]. [VirtualBox] and [Vagrant] are required for integration testing with [Test Kitchen]. Install the development dependencies with ``` $ bundle ``` [Bundler]: http://bundler.io/ [Ruby]: https://www.ruby-lang.org/ [Test Kitchen]: http://kitchen.ci/ [VirtualBox]: https://www.virtualbox.org/
You will need [Ruby] with [Bundler]. [VirtualBox] and [Vagrant] are required for integration testing with [Test Kitchen]. Install the development dependencies with ``` $ bundle ``` [Bundler]: http://bundler.io/ [Ruby]: https://www.ruby-lang.org/ [Test Kitchen]: http://kitchen.ci/ [Vagrant]: https://www.vagrantup.com/ [VirtualBox]: https://www.virtualbox.org/
Add missing Vagrant link to README
Add missing Vagrant link to README
Markdown
apache-2.0
makenew/chef-cookbook,makenew/chef-cookbook,makenew/chef-cookbook
markdown
## Code Before: You will need [Ruby] with [Bundler]. [VirtualBox] and [Vagrant] are required for integration testing with [Test Kitchen]. Install the development dependencies with ``` $ bundle ``` [Bundler]: http://bundler.io/ [Ruby]: https://www.ruby-lang.org/ [Test Kitchen]: http://kitchen.ci/ [VirtualBox]: https://www.virtualbox.org/ ## Instruction: Add missing Vagrant link to README ## Code After: You will need [Ruby] with [Bundler]. [VirtualBox] and [Vagrant] are required for integration testing with [Test Kitchen]. Install the development dependencies with ``` $ bundle ``` [Bundler]: http://bundler.io/ [Ruby]: https://www.ruby-lang.org/ [Test Kitchen]: http://kitchen.ci/ [Vagrant]: https://www.vagrantup.com/ [VirtualBox]: https://www.virtualbox.org/
You will need [Ruby] with [Bundler]. [VirtualBox] and [Vagrant] are required for integration testing with [Test Kitchen]. Install the development dependencies with ``` $ bundle ``` [Bundler]: http://bundler.io/ [Ruby]: https://www.ruby-lang.org/ [Test Kitchen]: http://kitchen.ci/ + [Vagrant]: https://www.vagrantup.com/ [VirtualBox]: https://www.virtualbox.org/
1
0.0625
1
0
ea5bdffff13da912f8780684d8d76615d96e83d0
src/_header.js
src/_header.js
;(function(sk){
;(function(sk){ sk.args = function(args){ var synopses = [], out, defaults = {}; for(var i = 1; i < arguments.length - 1; i++){ synopses.push(arguments[i]); } var last = arguments[arguments.length - 1]; if(typeof last === 'object'){ defaults = last; } else if(typeof last === 'string'){ synopses.push(last); } for(var i in synopses){ var synopsis = synopses[i]; var parts = synopsis.split(',') out = {}; match = true; for(var j in parts){ if (false && args[j] === undefined) { break; match = false; } var val = args[j]; var part = parts[j].trim().split(' '); if(part.length >= 2){ type = part[0]; name = part[1]; } else if(part.length === 1){ type = 'any'; name = part[0]; } else{ continue; } if(type === 'str' && typeof val === 'string'){ out[name] = val; } else if(type === 'num' && typeof val === 'number'){ out[name] = val; } else if(type === 'func' && typeof val === 'function'){ out[name] = val; } else if(type === 'array' && val instanceof Array){ out[name] = val; } else if(type === 'obj' && typeof val === 'object'){ out[name] = val; } else if(type === 'any'){ out[name] = val; } else{ match = false; break; } } if(match){ for(var k in defaults){ if(out[k] === undefined){ out[k] = defaults[k]; } } return out; } } throw('Wrong arguments'); }
Add sk.args() for processing function arguments by synopses
Add sk.args() for processing function arguments by synopses
JavaScript
mit
soslan/skjs,soslan/skjs,soslan/skjs
javascript
## Code Before: ;(function(sk){ ## Instruction: Add sk.args() for processing function arguments by synopses ## Code After: ;(function(sk){ sk.args = function(args){ var synopses = [], out, defaults = {}; for(var i = 1; i < arguments.length - 1; i++){ synopses.push(arguments[i]); } var last = arguments[arguments.length - 1]; if(typeof last === 'object'){ defaults = last; } else if(typeof last === 'string'){ synopses.push(last); } for(var i in synopses){ var synopsis = synopses[i]; var parts = synopsis.split(',') out = {}; match = true; for(var j in parts){ if (false && args[j] === undefined) { break; match = false; } var val = args[j]; var part = parts[j].trim().split(' '); if(part.length >= 2){ type = part[0]; name = part[1]; } else if(part.length === 1){ type = 'any'; name = part[0]; } else{ continue; } if(type === 'str' && typeof val === 'string'){ out[name] = val; } else if(type === 'num' && typeof val === 'number'){ out[name] = val; } else if(type === 'func' && typeof val === 'function'){ out[name] = val; } else if(type === 'array' && val instanceof Array){ out[name] = val; } else if(type === 'obj' && typeof val === 'object'){ out[name] = val; } else if(type === 'any'){ out[name] = val; } else{ match = false; break; } } if(match){ for(var k in defaults){ if(out[k] === undefined){ out[k] = defaults[k]; } } return out; } } throw('Wrong arguments'); }
;(function(sk){ + + sk.args = function(args){ + var synopses = [], out, defaults = {}; + for(var i = 1; i < arguments.length - 1; i++){ + synopses.push(arguments[i]); + } + var last = arguments[arguments.length - 1]; + if(typeof last === 'object'){ + defaults = last; + } + else if(typeof last === 'string'){ + synopses.push(last); + } + for(var i in synopses){ + var synopsis = synopses[i]; + var parts = synopsis.split(',') + out = {}; + match = true; + for(var j in parts){ + if (false && args[j] === undefined) { + break; + match = false; + } + var val = args[j]; + var part = parts[j].trim().split(' '); + if(part.length >= 2){ + type = part[0]; + name = part[1]; + } + else if(part.length === 1){ + type = 'any'; + name = part[0]; + } + else{ + continue; + } + if(type === 'str' && typeof val === 'string'){ + out[name] = val; + } + else if(type === 'num' && typeof val === 'number'){ + out[name] = val; + } + else if(type === 'func' && typeof val === 'function'){ + out[name] = val; + } + else if(type === 'array' && val instanceof Array){ + out[name] = val; + } + else if(type === 'obj' && typeof val === 'object'){ + out[name] = val; + } + else if(type === 'any'){ + out[name] = val; + } + else{ + match = false; + break; + } + } + if(match){ + for(var k in defaults){ + if(out[k] === undefined){ + out[k] = defaults[k]; + } + } + return out; + } + } + throw('Wrong arguments'); + }
70
70
70
0
1034d2a0f8124a0a619fc0359b39e81af1d939bf
DelegationExample/ViewController.swift
DelegationExample/ViewController.swift
// // ViewController.swift // DelegationExample // // Created by Nicholas Outram on 13/09/2014. // Copyright (c) 2014 Plymouth University. All rights reserved. // import UIKit class ViewController: UIViewController, MyModalViewControllerProtocol { override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "ModalPresentation") { //Set delegate let vc : MyModalViewController = segue.destinationViewController as MyModalViewController vc.delegate = self } } //Conform to the protocol MyModalViewControllerProtocol func doDismiss() { self.dismissViewControllerAnimated(true, completion: nil) } } //END CLASS
// // ViewController.swift // DelegationExample // // Created by Nicholas Outram on 13/09/2014. // Copyright (c) 2014 Plymouth University. All rights reserved. // import UIKit class ViewController: UIViewController, MyModalViewControllerProtocol { override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "ModalPresentation") { //Set delegate let vc = segue.destinationViewController as MyModalViewController vc.delegate = self } } //Conform to the protocol MyModalViewControllerProtocol func doDismiss() { self.dismissViewControllerAnimated(true, completion: nil) } } //END CLASS
Allow compiler to infer the type
Allow compiler to infer the type
Swift
bsd-2-clause
SoCM/swift_delegation_pattern
swift
## Code Before: // // ViewController.swift // DelegationExample // // Created by Nicholas Outram on 13/09/2014. // Copyright (c) 2014 Plymouth University. All rights reserved. // import UIKit class ViewController: UIViewController, MyModalViewControllerProtocol { override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "ModalPresentation") { //Set delegate let vc : MyModalViewController = segue.destinationViewController as MyModalViewController vc.delegate = self } } //Conform to the protocol MyModalViewControllerProtocol func doDismiss() { self.dismissViewControllerAnimated(true, completion: nil) } } //END CLASS ## Instruction: Allow compiler to infer the type ## Code After: // // ViewController.swift // DelegationExample // // Created by Nicholas Outram on 13/09/2014. // Copyright (c) 2014 Plymouth University. All rights reserved. // import UIKit class ViewController: UIViewController, MyModalViewControllerProtocol { override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "ModalPresentation") { //Set delegate let vc = segue.destinationViewController as MyModalViewController vc.delegate = self } } //Conform to the protocol MyModalViewControllerProtocol func doDismiss() { self.dismissViewControllerAnimated(true, completion: nil) } } //END CLASS
// // ViewController.swift // DelegationExample // // Created by Nicholas Outram on 13/09/2014. // Copyright (c) 2014 Plymouth University. All rights reserved. // import UIKit class ViewController: UIViewController, MyModalViewControllerProtocol { override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if (segue.identifier == "ModalPresentation") { //Set delegate - let vc : MyModalViewController = segue.destinationViewController as MyModalViewController ? ------------------------ + let vc = segue.destinationViewController as MyModalViewController vc.delegate = self } } //Conform to the protocol MyModalViewControllerProtocol func doDismiss() { self.dismissViewControllerAnimated(true, completion: nil) } } //END CLASS
2
0.068966
1
1
b608990f4b34225b47ec330ea903c00203ffe24a
lib/web_console/view_helpers.rb
lib/web_console/view_helpers.rb
module WebConsole module ViewHelpers def console @should_render = true if @should_render.nil? if @should_render @console_session = WebConsole::REPLSession.create( binding: binding.callers[0] ) @should_render = false render('rescues/repl_console_js') + render('rescues/web_console') end end end end
module WebConsole module ViewHelpers def console p binding.callers @should_render = true if @should_render.nil? if @should_render @console_session = WebConsole::REPLSession.create( binding: binding.callers[1] ) @should_render = false render('rescues/repl_console_js') + render('rescues/web_console') end end end end
Change the console binding to the correct view binding
Change the console binding to the correct view binding
Ruby
mit
rails/web-console,zBMNForks/web-console,jmbejar/web-console,rails/web-console,eileencodes/web-console,ryandao/web-console,jmbejar/web-console,zBMNForks/web-console,zBMNForks/web-console,gsamokovarov/web-console,gsamokovarov/web-console,tabislick/web-console,ryandao/web-console,gsamokovarov/web-console,sh19910711/web-console,ryandao/web-console,eileencodes/web-console,rails/web-console,tabislick/web-console,sh19910711/web-console,gsamokovarov/web-console,sh19910711/web-console,tabislick/web-console,eileencodes/web-console,zBMNForks/web-console,tabislick/web-console,rails/web-console,slobodankovacevic/web-console,sh19910711/web-console,eileencodes/web-console,slobodankovacevic/web-console,jmbejar/web-console
ruby
## Code Before: module WebConsole module ViewHelpers def console @should_render = true if @should_render.nil? if @should_render @console_session = WebConsole::REPLSession.create( binding: binding.callers[0] ) @should_render = false render('rescues/repl_console_js') + render('rescues/web_console') end end end end ## Instruction: Change the console binding to the correct view binding ## Code After: module WebConsole module ViewHelpers def console p binding.callers @should_render = true if @should_render.nil? if @should_render @console_session = WebConsole::REPLSession.create( binding: binding.callers[1] ) @should_render = false render('rescues/repl_console_js') + render('rescues/web_console') end end end end
module WebConsole module ViewHelpers def console + p binding.callers @should_render = true if @should_render.nil? if @should_render @console_session = WebConsole::REPLSession.create( - binding: binding.callers[0] ? ^ + binding: binding.callers[1] ? ^ ) @should_render = false render('rescues/repl_console_js') + render('rescues/web_console') end end end end
3
0.1875
2
1
1fd502f6798c8cea226ae1225da5a64f27a7343c
app/src/main/java/lib/morkim/mfw/ui/EmptyPresenter.java
app/src/main/java/lib/morkim/mfw/ui/EmptyPresenter.java
package lib.morkim.mfw.ui; import lib.morkim.mfw.usecase.UseCase; import lib.morkim.mfw.usecase.UseCaseResult; import lib.morkim.mfw.usecase.UseCaseProgress; public class EmptyPresenter extends Presenter { public EmptyPresenter(Viewable viewable) { super(viewable); } @Override public void onUseCaseStart(UseCase useCase) {} @Override public void onUseCaseUpdate(UseCaseProgress response) {} @Override public void onUseCaseComplete(UseCaseResult response) {} @Override public void onUseCaseCancel() {} }
package lib.morkim.mfw.ui; public class EmptyPresenter extends Presenter { public EmptyPresenter(Viewable viewable) { super(viewable); } }
Remove view model in presenter
Remove view model in presenter
Java
mit
alkammar/morkim
java
## Code Before: package lib.morkim.mfw.ui; import lib.morkim.mfw.usecase.UseCase; import lib.morkim.mfw.usecase.UseCaseResult; import lib.morkim.mfw.usecase.UseCaseProgress; public class EmptyPresenter extends Presenter { public EmptyPresenter(Viewable viewable) { super(viewable); } @Override public void onUseCaseStart(UseCase useCase) {} @Override public void onUseCaseUpdate(UseCaseProgress response) {} @Override public void onUseCaseComplete(UseCaseResult response) {} @Override public void onUseCaseCancel() {} } ## Instruction: Remove view model in presenter ## Code After: package lib.morkim.mfw.ui; public class EmptyPresenter extends Presenter { public EmptyPresenter(Viewable viewable) { super(viewable); } }
package lib.morkim.mfw.ui; - - import lib.morkim.mfw.usecase.UseCase; - import lib.morkim.mfw.usecase.UseCaseResult; - import lib.morkim.mfw.usecase.UseCaseProgress; public class EmptyPresenter extends Presenter { public EmptyPresenter(Viewable viewable) { super(viewable); } - @Override - public void onUseCaseStart(UseCase useCase) {} - - @Override - public void onUseCaseUpdate(UseCaseProgress response) {} - - @Override - public void onUseCaseComplete(UseCaseResult response) {} - - @Override - public void onUseCaseCancel() {} - }
16
0.64
0
16
23c4c0ea0960e3ae58344ece142d0ce20f533257
bio/sources/so/project.properties
bio/sources/so/project.properties
compile.dependencies = intermine/objectstore/main,\ intermine/integrate/main, \ bio/core/main have.file.obo = true obo.ontology.name=SO obo.ontology.url=http://www.sequenceontology.org obo.term.class=SOTerm
compile.dependencies = intermine/objectstore/main,\ intermine/integrate/main, \ bio/core/main have.file.obo = true obo.ontology.name=Sequence Ontology obo.ontology.url=http://www.sequenceontology.org obo.term.class=SOTerm
Correct SO ontology name so terms merge.
Correct SO ontology name so terms merge.
INI
lgpl-2.1
elsiklab/intermine,joshkh/intermine,drhee/toxoMine,tomck/intermine,drhee/toxoMine,justincc/intermine,drhee/toxoMine,tomck/intermine,JoeCarlson/intermine,drhee/toxoMine,zebrafishmine/intermine,JoeCarlson/intermine,Arabidopsis-Information-Portal/intermine,joshkh/intermine,tomck/intermine,tomck/intermine,JoeCarlson/intermine,elsiklab/intermine,Arabidopsis-Information-Portal/intermine,joshkh/intermine,kimrutherford/intermine,tomck/intermine,Arabidopsis-Information-Portal/intermine,Arabidopsis-Information-Portal/intermine,tomck/intermine,justincc/intermine,kimrutherford/intermine,JoeCarlson/intermine,justincc/intermine,elsiklab/intermine,joshkh/intermine,elsiklab/intermine,justincc/intermine,kimrutherford/intermine,JoeCarlson/intermine,Arabidopsis-Information-Portal/intermine,joshkh/intermine,justincc/intermine,tomck/intermine,justincc/intermine,zebrafishmine/intermine,kimrutherford/intermine,JoeCarlson/intermine,zebrafishmine/intermine,joshkh/intermine,zebrafishmine/intermine,kimrutherford/intermine,Arabidopsis-Information-Portal/intermine,zebrafishmine/intermine,drhee/toxoMine,elsiklab/intermine,zebrafishmine/intermine,zebrafishmine/intermine,justincc/intermine,justincc/intermine,justincc/intermine,kimrutherford/intermine,tomck/intermine,kimrutherford/intermine,zebrafishmine/intermine,joshkh/intermine,Arabidopsis-Information-Portal/intermine,Arabidopsis-Information-Portal/intermine,elsiklab/intermine,joshkh/intermine,zebrafishmine/intermine,drhee/toxoMine,Arabidopsis-Information-Portal/intermine,JoeCarlson/intermine,drhee/toxoMine,kimrutherford/intermine,JoeCarlson/intermine,elsiklab/intermine,elsiklab/intermine,tomck/intermine,elsiklab/intermine,kimrutherford/intermine,joshkh/intermine,JoeCarlson/intermine,drhee/toxoMine,drhee/toxoMine
ini
## Code Before: compile.dependencies = intermine/objectstore/main,\ intermine/integrate/main, \ bio/core/main have.file.obo = true obo.ontology.name=SO obo.ontology.url=http://www.sequenceontology.org obo.term.class=SOTerm ## Instruction: Correct SO ontology name so terms merge. ## Code After: compile.dependencies = intermine/objectstore/main,\ intermine/integrate/main, \ bio/core/main have.file.obo = true obo.ontology.name=Sequence Ontology obo.ontology.url=http://www.sequenceontology.org obo.term.class=SOTerm
compile.dependencies = intermine/objectstore/main,\ intermine/integrate/main, \ bio/core/main have.file.obo = true - obo.ontology.name=SO + obo.ontology.name=Sequence Ontology obo.ontology.url=http://www.sequenceontology.org obo.term.class=SOTerm
2
0.2
1
1
5af36df079e70b39741db981912656f476e99321
examples/nomad-consul-ami/setup_amazon-linux-2.sh
examples/nomad-consul-ami/setup_amazon-linux-2.sh
set -e SCRIPT=`basename "$0"` echo "[INFO] [${SCRIPT}] Setup git" sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker sudo service docker start sudo usermod -a -G docker ec2-user
set -e SCRIPT=`basename "$0"` echo "[INFO] [${SCRIPT}] Setup git" sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker sudo systemctl enable docker sudo systemctl start docker sudo usermod -a -G docker ec2-user
Enable Docker in Amazon Linux 2 AMI example
Enable Docker in Amazon Linux 2 AMI example
Shell
apache-2.0
MatthiasScholz/terraform-aws-nomad,MatthiasScholz/terraform-aws-nomad
shell
## Code Before: set -e SCRIPT=`basename "$0"` echo "[INFO] [${SCRIPT}] Setup git" sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker sudo service docker start sudo usermod -a -G docker ec2-user ## Instruction: Enable Docker in Amazon Linux 2 AMI example ## Code After: set -e SCRIPT=`basename "$0"` echo "[INFO] [${SCRIPT}] Setup git" sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker sudo systemctl enable docker sudo systemctl start docker sudo usermod -a -G docker ec2-user
set -e SCRIPT=`basename "$0"` echo "[INFO] [${SCRIPT}] Setup git" sudo yum install -y git echo "[INFO] [${SCRIPT}] Setup docker" sudo yum install -y docker - sudo service docker start + sudo systemctl enable docker + sudo systemctl start docker sudo usermod -a -G docker ec2-user
3
0.272727
2
1
f0a55c8b964670bf617658293f3390b53c23ab87
src/css/index.css
src/css/index.css
@import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; @import "tailwindcss/screens"; html { height: 100%; } body { height: 100%; background-color: #4299e1; } #__next { height: 100%; } .bg-img { background-image: url("/images/bg.jpg"); background-size: cover; }
@import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; @import "tailwindcss/screens"; html { height: 100%; } body { height: 100%; background-color: #4299e1; } #__next { height: 100%; } .bg-img { background-image: url("/images/bg_720.jpg"); background-size: cover; } @media (min-width: 720px) { .bg-img { background-image: url("/images/bg_1168.jpg"); } } @media (min-width: 1168px) { .bg-img { background-image: url("/images/bg_1543.jpg"); } } @media (min-width: 1543px) { .bg-img { background-image: url("/images/bg_1855.jpg"); } } @media (min-width: 1855px) { .bg-img { background-image: url("/images/bg.jpg"); } }
Add responsive breakpoints for background image
Add responsive breakpoints for background image
CSS
mit
hugo/hugo.github.com,thisishugo/thisishugo.github.com,thisishugo/thisishugo.github.com,hugo/hugo.github.com
css
## Code Before: @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; @import "tailwindcss/screens"; html { height: 100%; } body { height: 100%; background-color: #4299e1; } #__next { height: 100%; } .bg-img { background-image: url("/images/bg.jpg"); background-size: cover; } ## Instruction: Add responsive breakpoints for background image ## Code After: @import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; @import "tailwindcss/screens"; html { height: 100%; } body { height: 100%; background-color: #4299e1; } #__next { height: 100%; } .bg-img { background-image: url("/images/bg_720.jpg"); background-size: cover; } @media (min-width: 720px) { .bg-img { background-image: url("/images/bg_1168.jpg"); } } @media (min-width: 1168px) { .bg-img { background-image: url("/images/bg_1543.jpg"); } } @media (min-width: 1543px) { .bg-img { background-image: url("/images/bg_1855.jpg"); } } @media (min-width: 1855px) { .bg-img { background-image: url("/images/bg.jpg"); } }
@import "tailwindcss/base"; @import "tailwindcss/components"; @import "tailwindcss/utilities"; @import "tailwindcss/screens"; html { height: 100%; } body { height: 100%; background-color: #4299e1; } #__next { height: 100%; } .bg-img { - background-image: url("/images/bg.jpg"); + background-image: url("/images/bg_720.jpg"); ? ++++ background-size: cover; } + + @media (min-width: 720px) { + .bg-img { + background-image: url("/images/bg_1168.jpg"); + } + } + @media (min-width: 1168px) { + .bg-img { + background-image: url("/images/bg_1543.jpg"); + } + } + @media (min-width: 1543px) { + .bg-img { + background-image: url("/images/bg_1855.jpg"); + } + } + @media (min-width: 1855px) { + .bg-img { + background-image: url("/images/bg.jpg"); + } + }
23
1.045455
22
1
5613ad99f26bc7653fdad4677a64d5235b7d2f5d
content/events/2017-detroit/program/safety-and-lean.md
content/events/2017-detroit/program/safety-and-lean.md
+++ Talk_date = "2017-09-28" Talk_start_time = "" Talk_end_time = "" Title = "Round Table - Safety and Lean" Type = "talk" Speakers = ["gene-kim", "steven-spear", "richard-i-cook", "mike-rother", "john-willis"] +++ More details soon!
+++ Talk_date = "2017-09-28" Talk_start_time = "" Talk_end_time = "" Title = "Devops, Safety, and Lean - Panel Discussion" Type = "talk" Speakers = ["gene-kim", "steven-spear", "richard-i-cook", "mike-rother", "john-willis"] +++ This panel session will create a unique opportunity to hear from some of the leading authors and practitioners of Devops, Safety and Resilience and Lean. The panel will include Dr Cook, author of "Why Complex Systems Fail" along with Mike Rother one of the leading Lean experts and author of "Toyota Kata". Rounding out the group will be Gene Kim a Devops leader and author of "The Phoenix Project". John Willis, co-author of the "Devops Handbook" will moderate the panel.
Update the safety and lean panel description to include more details
Update the safety and lean panel description to include more details
Markdown
apache-2.0
gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web,gomex/devopsdays-web
markdown
## Code Before: +++ Talk_date = "2017-09-28" Talk_start_time = "" Talk_end_time = "" Title = "Round Table - Safety and Lean" Type = "talk" Speakers = ["gene-kim", "steven-spear", "richard-i-cook", "mike-rother", "john-willis"] +++ More details soon! ## Instruction: Update the safety and lean panel description to include more details ## Code After: +++ Talk_date = "2017-09-28" Talk_start_time = "" Talk_end_time = "" Title = "Devops, Safety, and Lean - Panel Discussion" Type = "talk" Speakers = ["gene-kim", "steven-spear", "richard-i-cook", "mike-rother", "john-willis"] +++ This panel session will create a unique opportunity to hear from some of the leading authors and practitioners of Devops, Safety and Resilience and Lean. The panel will include Dr Cook, author of "Why Complex Systems Fail" along with Mike Rother one of the leading Lean experts and author of "Toyota Kata". Rounding out the group will be Gene Kim a Devops leader and author of "The Phoenix Project". John Willis, co-author of the "Devops Handbook" will moderate the panel.
+++ Talk_date = "2017-09-28" Talk_start_time = "" Talk_end_time = "" - Title = "Round Table - Safety and Lean" + Title = "Devops, Safety, and Lean - Panel Discussion" Type = "talk" Speakers = ["gene-kim", "steven-spear", "richard-i-cook", "mike-rother", "john-willis"] +++ + This panel session will create a unique opportunity to hear from some of the leading authors and practitioners of Devops, Safety and Resilience and Lean. The panel will include Dr Cook, author of "Why Complex Systems Fail" along with Mike Rother one of the leading Lean experts and author of "Toyota Kata". Rounding out the group will be Gene Kim a Devops leader and author of "The Phoenix Project". John Willis, co-author of the "Devops Handbook" will moderate the panel. - More details soon! -
5
0.5
2
3
e5f15d539ccf2924ef728a7c595582743178c1dd
README.md
README.md
A sample chat app programmed in Node.js. The app consists of both a client and server component. ## Running the app Make sure you have Node.js installed. Open the console, navigate to sub directory /klets-server and run command 'npm start'. This will start the Klets service running on http://localhost:3030. Then open another console, navigate to sub directory /klets-client and run command 'npm start'. This will open your browser with http://localhost:3000 with the Klets app. You can open another tab in your browser to simulate multiple clients.
A sample chat app programmed in Node.js. The app consists of both a client and server component. ## Running the app Make sure you have Node.js installed. Open the console, navigate to sub directory /klets-server and run commands 'npm install' and then 'npm start'. This will start the Klets service running on http://localhost:3030. Then open another console, navigate to sub directory /klets-client and run commands 'npm install' and then 'npm start'. This will open your browser with http://localhost:3000 with Klets app. You can open another tab in your browser to simulate multiple clients.
Update readme with starting instructions
Update readme with starting instructions
Markdown
mit
rhmeeuwisse/KletsApp,rhmeeuwisse/KletsApp
markdown
## Code Before: A sample chat app programmed in Node.js. The app consists of both a client and server component. ## Running the app Make sure you have Node.js installed. Open the console, navigate to sub directory /klets-server and run command 'npm start'. This will start the Klets service running on http://localhost:3030. Then open another console, navigate to sub directory /klets-client and run command 'npm start'. This will open your browser with http://localhost:3000 with the Klets app. You can open another tab in your browser to simulate multiple clients. ## Instruction: Update readme with starting instructions ## Code After: A sample chat app programmed in Node.js. The app consists of both a client and server component. ## Running the app Make sure you have Node.js installed. Open the console, navigate to sub directory /klets-server and run commands 'npm install' and then 'npm start'. This will start the Klets service running on http://localhost:3030. Then open another console, navigate to sub directory /klets-client and run commands 'npm install' and then 'npm start'. This will open your browser with http://localhost:3000 with Klets app. You can open another tab in your browser to simulate multiple clients.
A sample chat app programmed in Node.js. The app consists of both a client and server component. ## Running the app Make sure you have Node.js installed. - Open the console, navigate to sub directory /klets-server and run command 'npm start'. This will start the Klets service running on http://localhost:3030. + Open the console, navigate to sub directory /klets-server and run commands 'npm install' and then 'npm start'. This will start the Klets service running on http://localhost:3030. ? ++++++++++++++++++++++++ - Then open another console, navigate to sub directory /klets-client and run command 'npm start'. This will open your browser with http://localhost:3000 with the Klets app. You can open another tab in your browser to simulate multiple clients. ? ---- ---------------------------------------------------------------------- + Then open another console, navigate to sub directory /klets-client and run commands 'npm install' and then 'npm start'. This will open your browser with http://localhost:3000 with Klets app. ? ++++++++++++++++++++++++ + You can open another tab in your browser to simulate multiple clients.
5
0.454545
3
2
a67c9ae1f85848f6f50eac2b3614d3390a718eee
spec/mailers/user_mailer_spec.rb
spec/mailers/user_mailer_spec.rb
require "rails_helper" RSpec.describe UserMailer, :type => :mailer do let(:user) { build :user } let(:mail) { UserMailer.notify_role_change(user) } it 'send email whit subject' do expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject")) end it 'renders the receiver email' do expect(mail.to).to eql([user.email]) end it 'renders the sender email' do expect(mail.from).to eql(['moi@example.com']) end it 'assigns @name' do expect(mail.body.encoded).to match(user.name) end end
require "rails_helper" RSpec.describe UserMailer, :type => :mailer do let(:user) { build :user } let(:mail) { UserMailer.notify_role_change(user) } it 'send email whit subject' do expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject")) end it 'renders the receiver email' do expect(mail.to).to eql([user.email]) end it 'renders the sender email' do expect(mail.from).to eql(['moi@example.com']) end it 'have new role' do expect(mail.body.encoded).to have_text(user.role) end end
Add test role in email
Add test role in email
Ruby
mit
GrowMoi/moi,GrowMoi/moi,GrowMoi/moi
ruby
## Code Before: require "rails_helper" RSpec.describe UserMailer, :type => :mailer do let(:user) { build :user } let(:mail) { UserMailer.notify_role_change(user) } it 'send email whit subject' do expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject")) end it 'renders the receiver email' do expect(mail.to).to eql([user.email]) end it 'renders the sender email' do expect(mail.from).to eql(['moi@example.com']) end it 'assigns @name' do expect(mail.body.encoded).to match(user.name) end end ## Instruction: Add test role in email ## Code After: require "rails_helper" RSpec.describe UserMailer, :type => :mailer do let(:user) { build :user } let(:mail) { UserMailer.notify_role_change(user) } it 'send email whit subject' do expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject")) end it 'renders the receiver email' do expect(mail.to).to eql([user.email]) end it 'renders the sender email' do expect(mail.from).to eql(['moi@example.com']) end it 'have new role' do expect(mail.body.encoded).to have_text(user.role) end end
require "rails_helper" RSpec.describe UserMailer, :type => :mailer do let(:user) { build :user } let(:mail) { UserMailer.notify_role_change(user) } it 'send email whit subject' do expect(mail.subject).to eql(I18n.t("user_mailer.change_permission.subject")) end it 'renders the receiver email' do expect(mail.to).to eql([user.email]) end it 'renders the sender email' do expect(mail.from).to eql(['moi@example.com']) end - it 'assigns @name' do + it 'have new role' do - expect(mail.body.encoded).to match(user.name) ? ^ ^^ ^^^ + expect(mail.body.encoded).to have_text(user.role) ? ^ +++ ^^^ ^^^ end end
4
0.181818
2
2
9cdea921dc0ddea5877116f99e380a721f0e1d58
client/src/index.js
client/src/index.js
// Polyfill needed by ie 11 import 'string.prototype.startswith'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/BrowserRouter'; import App from './App'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'font-awesome/css/font-awesome.css'; import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; ReactDOM.render(( <Router> <App /> </Router> ), document.getElementById('root') );
// Polyfill needed by ie 11 import 'string.prototype.startswith'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/BrowserRouter'; import App from './App'; // use default bootstrap theme unless a custom one is provided by the user if (!process.env.REACT_APP_BOOTSTRAP_CSS_PATH) { require('bootstrap/dist/css/bootstrap.css'); } else { require(process.env.REACT_APP_BOOTSTRAP_CSS_PATH); } if (!process.env.REACT_APP_APPLICATION_STYLES_PATH) { require('./index.css'); } else { require(process.env.REACT_APP_APPLICATION_STYLES_PATH); } import 'font-awesome/css/font-awesome.css'; import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; ReactDOM.render(( <Router> <App /> </Router> ), document.getElementById('root') );
Allow styles to be overwritten on each deployment
Allow styles to be overwritten on each deployment
JavaScript
mit
clembou/github-requests,clembou/github-requests,clembou/github-requests
javascript
## Code Before: // Polyfill needed by ie 11 import 'string.prototype.startswith'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/BrowserRouter'; import App from './App'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'font-awesome/css/font-awesome.css'; import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; ReactDOM.render(( <Router> <App /> </Router> ), document.getElementById('root') ); ## Instruction: Allow styles to be overwritten on each deployment ## Code After: // Polyfill needed by ie 11 import 'string.prototype.startswith'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/BrowserRouter'; import App from './App'; // use default bootstrap theme unless a custom one is provided by the user if (!process.env.REACT_APP_BOOTSTRAP_CSS_PATH) { require('bootstrap/dist/css/bootstrap.css'); } else { require(process.env.REACT_APP_BOOTSTRAP_CSS_PATH); } if (!process.env.REACT_APP_APPLICATION_STYLES_PATH) { require('./index.css'); } else { require(process.env.REACT_APP_APPLICATION_STYLES_PATH); } import 'font-awesome/css/font-awesome.css'; import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; ReactDOM.render(( <Router> <App /> </Router> ), document.getElementById('root') );
// Polyfill needed by ie 11 import 'string.prototype.startswith'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/BrowserRouter'; import App from './App'; - import './index.css'; + + // use default bootstrap theme unless a custom one is provided by the user + if (!process.env.REACT_APP_BOOTSTRAP_CSS_PATH) { - import 'bootstrap/dist/css/bootstrap.css'; ? --- ^^ + require('bootstrap/dist/css/bootstrap.css'); ? ++++++ ^^ + + } else { + require(process.env.REACT_APP_BOOTSTRAP_CSS_PATH); + } + + if (!process.env.REACT_APP_APPLICATION_STYLES_PATH) { + require('./index.css'); + } else { + require(process.env.REACT_APP_APPLICATION_STYLES_PATH); + } + import 'font-awesome/css/font-awesome.css'; import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css'; ReactDOM.render(( <Router> <App /> </Router> ), document.getElementById('root') );
16
0.842105
14
2
a748c9e7c3f7a73762f8103457cda037034538c0
.travis.yml
.travis.yml
language: python matrix: allow_failures: - os: osx include: - os: linux python: 3.5 compiler: clang - os: linux python: 3.5 compiler: gcc - os: osx python: 3.6 compiler: clang - os: osx python: 3.6 compiler: gcc before_install: - pip install codecov - pip install pytest --upgrade - pip install pytest-cov install: - python setup.py install # command to run tests script: - python -m pytest --cov=mashingpumpkins --cov-report xml --cov-report term src/tests/ - codecov
language: python matrix: allow_failures: - os: osx include: - os: linux python: 3.5 compiler: clang - os: linux python: 3.5 compiler: gcc - os: linux python: 3.6 compiler: clang - os: linux python: 3.6 compiler: gcc - os: osx python: 3.5 compiler: clang - os: osx python: 3.5 compiler: gcc - os: osx python: 3.6 compiler: clang - os: osx python: 3.6 compiler: gcc before_install: - pip install codecov - pip install pytest --upgrade - pip install pytest-cov install: - python setup.py install # command to run tests script: - python -m pytest --cov=mashingpumpkins --cov-report xml --cov-report term src/tests/ - codecov
Fix Python versions in build matrix
Fix Python versions in build matrix
YAML
mit
lgautier/mashing-pumpkins,lgautier/mashing-pumpkins,lgautier/mashing-pumpkins
yaml
## Code Before: language: python matrix: allow_failures: - os: osx include: - os: linux python: 3.5 compiler: clang - os: linux python: 3.5 compiler: gcc - os: osx python: 3.6 compiler: clang - os: osx python: 3.6 compiler: gcc before_install: - pip install codecov - pip install pytest --upgrade - pip install pytest-cov install: - python setup.py install # command to run tests script: - python -m pytest --cov=mashingpumpkins --cov-report xml --cov-report term src/tests/ - codecov ## Instruction: Fix Python versions in build matrix ## Code After: language: python matrix: allow_failures: - os: osx include: - os: linux python: 3.5 compiler: clang - os: linux python: 3.5 compiler: gcc - os: linux python: 3.6 compiler: clang - os: linux python: 3.6 compiler: gcc - os: osx python: 3.5 compiler: clang - os: osx python: 3.5 compiler: gcc - os: osx python: 3.6 compiler: clang - os: osx python: 3.6 compiler: gcc before_install: - pip install codecov - pip install pytest --upgrade - pip install pytest-cov install: - python setup.py install # command to run tests script: - python -m pytest --cov=mashingpumpkins --cov-report xml --cov-report term src/tests/ - codecov
language: python matrix: allow_failures: - os: osx include: - os: linux python: 3.5 compiler: clang - os: linux + python: 3.5 + compiler: gcc + - os: linux + python: 3.6 + compiler: clang + - os: linux + python: 3.6 + compiler: gcc + - os: osx + python: 3.5 + compiler: clang + - os: osx python: 3.5 compiler: gcc - os: osx python: 3.6 compiler: clang - os: osx python: 3.6 compiler: gcc before_install: - pip install codecov - pip install pytest --upgrade - pip install pytest-cov install: - python setup.py install # command to run tests script: - python -m pytest --cov=mashingpumpkins --cov-report xml --cov-report term src/tests/ - codecov
12
0.375
12
0
e95893facc6a4d023290dcc57274e38ae9b999e9
swift/swiftsearch/Tests/swiftsearchTests/swiftsearchTests.swift
swift/swiftsearch/Tests/swiftsearchTests/swiftsearchTests.swift
import XCTest import class Foundation.Bundle final class swiftsearchTests: XCTestCase { func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. // Some of the APIs that we use below are available in macOS 10.13 and above. guard #available(macOS 10.13, *) else { return } let fooBinary = productsDirectory.appendingPathComponent("swiftsearch") let process = Process() process.executableURL = fooBinary let pipe = Pipe() process.standardOutput = pipe try process.run() process.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: .utf8) XCTAssertEqual(output, "Hello, world!\n") } /// Returns path to the built products directory. var productsDirectory: URL { #if os(macOS) for bundle in Bundle.allBundles where bundle.bundlePath.hasSuffix(".xctest") { return bundle.bundleURL.deletingLastPathComponent() } fatalError("couldn't find the products directory") #else return Bundle.main.bundleURL #endif } static var allTests = [ ("testExample", testExample), ] }
import XCTest import class Foundation.Bundle final class swiftsearchTests: XCTestCase { func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. // Some of the APIs that we use below are available in macOS 10.13 and above. guard #available(macOS 10.13, *) else { return } let fooBinary = productsDirectory.appendingPathComponent("swiftsearchApp") let process = Process() process.executableURL = fooBinary let pipe = Pipe() process.standardOutput = pipe try process.run() process.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: .utf8) XCTAssert(output!.hasPrefix("\nERROR: Startpath not defined")) } /// Returns path to the built products directory. var productsDirectory: URL { #if os(macOS) for bundle in Bundle.allBundles where bundle.bundlePath.hasSuffix(".xctest") { return bundle.bundleURL.deletingLastPathComponent() } fatalError("couldn't find the products directory") #else return Bundle.main.bundleURL #endif } static var allTests = [ ("testExample", testExample), ] }
Fix included sample test in swift version
Fix included sample test in swift version
Swift
mit
clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch,clarkcb/xsearch
swift
## Code Before: import XCTest import class Foundation.Bundle final class swiftsearchTests: XCTestCase { func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. // Some of the APIs that we use below are available in macOS 10.13 and above. guard #available(macOS 10.13, *) else { return } let fooBinary = productsDirectory.appendingPathComponent("swiftsearch") let process = Process() process.executableURL = fooBinary let pipe = Pipe() process.standardOutput = pipe try process.run() process.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: .utf8) XCTAssertEqual(output, "Hello, world!\n") } /// Returns path to the built products directory. var productsDirectory: URL { #if os(macOS) for bundle in Bundle.allBundles where bundle.bundlePath.hasSuffix(".xctest") { return bundle.bundleURL.deletingLastPathComponent() } fatalError("couldn't find the products directory") #else return Bundle.main.bundleURL #endif } static var allTests = [ ("testExample", testExample), ] } ## Instruction: Fix included sample test in swift version ## Code After: import XCTest import class Foundation.Bundle final class swiftsearchTests: XCTestCase { func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. // Some of the APIs that we use below are available in macOS 10.13 and above. guard #available(macOS 10.13, *) else { return } let fooBinary = productsDirectory.appendingPathComponent("swiftsearchApp") let process = Process() process.executableURL = fooBinary let pipe = Pipe() process.standardOutput = pipe try process.run() process.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: .utf8) XCTAssert(output!.hasPrefix("\nERROR: Startpath not defined")) } /// Returns path to the built products directory. var productsDirectory: URL { #if os(macOS) for bundle in Bundle.allBundles where bundle.bundlePath.hasSuffix(".xctest") { return bundle.bundleURL.deletingLastPathComponent() } fatalError("couldn't find the products directory") #else return Bundle.main.bundleURL #endif } static var allTests = [ ("testExample", testExample), ] }
import XCTest import class Foundation.Bundle final class swiftsearchTests: XCTestCase { func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. // Some of the APIs that we use below are available in macOS 10.13 and above. guard #available(macOS 10.13, *) else { return } - let fooBinary = productsDirectory.appendingPathComponent("swiftsearch") + let fooBinary = productsDirectory.appendingPathComponent("swiftsearchApp") ? +++ let process = Process() process.executableURL = fooBinary let pipe = Pipe() process.standardOutput = pipe try process.run() process.waitUntilExit() let data = pipe.fileHandleForReading.readDataToEndOfFile() let output = String(data: data, encoding: .utf8) - XCTAssertEqual(output, "Hello, world!\n") + XCTAssert(output!.hasPrefix("\nERROR: Startpath not defined")) } /// Returns path to the built products directory. var productsDirectory: URL { #if os(macOS) for bundle in Bundle.allBundles where bundle.bundlePath.hasSuffix(".xctest") { return bundle.bundleURL.deletingLastPathComponent() } fatalError("couldn't find the products directory") #else return Bundle.main.bundleURL #endif } static var allTests = [ ("testExample", testExample), ] }
4
0.085106
2
2
9ca24983e2509b7a6fea3109a60a7cb93df8d10a
travis-ci.sh
travis-ci.sh
set -e -o pipefail dub build -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} dub test --compiler=$DC #--config=${VIBED_DRIVER=libevent} dub test :utils --compiler=$DC #--config=${VIBED_DRIVER} dub test :data --compiler=$DC #--config=${VIBED_DRIVER} dub test :core --compiler=$DC --config=${VIBED_DRIVER} dub test :mail --compiler=$DC #--config=${VIBED_DRIVER} dub test :http --compiler=$DC #--config=${VIBED_DRIVER} dub test :diet --compiler=$DC #--config=${VIBED_DRIVER} dub test :web --compiler=$DC #--config=${VIBED_DRIVER} dub test :mongodb --compiler=$DC #--config=${VIBED_DRIVER} dub test :redis --compiler=$DC #--config=${VIBED_DRIVER} if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean) done fi
set -e -o pipefail # test for successful release build dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} # test for successful 32-bit build if [ $DC -eq "dmd" ]; then dub build --combined --arch=x86 fi dub test --compiler=$DC #--config=${VIBED_DRIVER=libevent} dub test :utils --compiler=$DC #--config=${VIBED_DRIVER} dub test :data --compiler=$DC #--config=${VIBED_DRIVER} dub test :core --compiler=$DC --config=${VIBED_DRIVER} dub test :mail --compiler=$DC #--config=${VIBED_DRIVER} dub test :http --compiler=$DC #--config=${VIBED_DRIVER} dub test :diet --compiler=$DC #--config=${VIBED_DRIVER} dub test :web --compiler=$DC #--config=${VIBED_DRIVER} dub test :mongodb --compiler=$DC #--config=${VIBED_DRIVER} dub test :redis --compiler=$DC #--config=${VIBED_DRIVER} if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean) done fi
Test for successful 32-bit compilation.
Test for successful 32-bit compilation.
Shell
mit
etcimon/vibe.d,Mihail-K/vibe.d,etcimon/vibe.d,schuetzm/vibe.d,AndreyMZ/vibe.d,Geod24/vibe.d,rejectedsoftware/vibe.d,gedaiu/vibe.d,chalucha/vibe.d,DBankov/vibe.d
shell
## Code Before: set -e -o pipefail dub build -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} dub test --compiler=$DC #--config=${VIBED_DRIVER=libevent} dub test :utils --compiler=$DC #--config=${VIBED_DRIVER} dub test :data --compiler=$DC #--config=${VIBED_DRIVER} dub test :core --compiler=$DC --config=${VIBED_DRIVER} dub test :mail --compiler=$DC #--config=${VIBED_DRIVER} dub test :http --compiler=$DC #--config=${VIBED_DRIVER} dub test :diet --compiler=$DC #--config=${VIBED_DRIVER} dub test :web --compiler=$DC #--config=${VIBED_DRIVER} dub test :mongodb --compiler=$DC #--config=${VIBED_DRIVER} dub test :redis --compiler=$DC #--config=${VIBED_DRIVER} if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean) done fi ## Instruction: Test for successful 32-bit compilation. ## Code After: set -e -o pipefail # test for successful release build dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} # test for successful 32-bit build if [ $DC -eq "dmd" ]; then dub build --combined --arch=x86 fi dub test --compiler=$DC #--config=${VIBED_DRIVER=libevent} dub test :utils --compiler=$DC #--config=${VIBED_DRIVER} dub test :data --compiler=$DC #--config=${VIBED_DRIVER} dub test :core --compiler=$DC --config=${VIBED_DRIVER} dub test :mail --compiler=$DC #--config=${VIBED_DRIVER} dub test :http --compiler=$DC #--config=${VIBED_DRIVER} dub test :diet --compiler=$DC #--config=${VIBED_DRIVER} dub test :web --compiler=$DC #--config=${VIBED_DRIVER} dub test :mongodb --compiler=$DC #--config=${VIBED_DRIVER} dub test :redis --compiler=$DC #--config=${VIBED_DRIVER} if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean) done fi
set -e -o pipefail + # test for successful release build - dub build -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} + dub build --combined -b release --compiler=$DC --config=${VIBED_DRIVER=libevent} ? +++++++++++ + + # test for successful 32-bit build + if [ $DC -eq "dmd" ]; then + dub build --combined --arch=x86 + fi + dub test --compiler=$DC #--config=${VIBED_DRIVER=libevent} dub test :utils --compiler=$DC #--config=${VIBED_DRIVER} dub test :data --compiler=$DC #--config=${VIBED_DRIVER} dub test :core --compiler=$DC --config=${VIBED_DRIVER} dub test :mail --compiler=$DC #--config=${VIBED_DRIVER} dub test :http --compiler=$DC #--config=${VIBED_DRIVER} dub test :diet --compiler=$DC #--config=${VIBED_DRIVER} dub test :web --compiler=$DC #--config=${VIBED_DRIVER} dub test :mongodb --compiler=$DC #--config=${VIBED_DRIVER} dub test :redis --compiler=$DC #--config=${VIBED_DRIVER} if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then for ex in $(\ls -1 examples/); do echo "[INFO] Building example $ex" (cd examples/$ex && dub build --compiler=$DC && dub clean) done fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/`; do echo "[INFO] Running test $ex" (cd tests/$ex && dub --compiler=$DC && dub clean) done fi
9
0.333333
8
1
32a97d8fe160deab25739938f42dffc22f3225c0
app/models/ability.rb
app/models/ability.rb
class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.has_role? :admin can :manage, :all elsif user.has_role? :user can :read, Site, id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :all, :create, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :history, :all, :create, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) can :manage, :static_page else can [:home, :about], :static_page end end end
class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.has_role? :admin can :manage, :all elsif user.has_role? :user can :read, Site, id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :all, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) can :create, Device can [:read, :update, :assign, :history, :all, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) can :create, Supply can :manage, :static_page else can [:home, :about], :static_page end end end
Fix for devices and supplies creation not authorized by users
Fix for devices and supplies creation not authorized by users
Ruby
mit
a118n/boxes,a118n/boxes,a118n/boxes
ruby
## Code Before: class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.has_role? :admin can :manage, :all elsif user.has_role? :user can :read, Site, id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :all, :create, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :history, :all, :create, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) can :manage, :static_page else can [:home, :about], :static_page end end end ## Instruction: Fix for devices and supplies creation not authorized by users ## Code After: class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.has_role? :admin can :manage, :all elsif user.has_role? :user can :read, Site, id: Site.with_role(:user, user).pluck(:id) can [:read, :update, :assign, :all, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) can :create, Device can [:read, :update, :assign, :history, :all, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) can :create, Supply can :manage, :static_page else can [:home, :about], :static_page end end end
class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.has_role? :admin can :manage, :all elsif user.has_role? :user can :read, Site, id: Site.with_role(:user, user).pluck(:id) - can [:read, :update, :assign, :all, :create, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) ? --------- + can [:read, :update, :assign, :all, :export, :destroy], Device, site_id: Site.with_role(:user, user).pluck(:id) + can :create, Device - can [:read, :update, :assign, :history, :all, :create, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) ? --------- + can [:read, :update, :assign, :history, :all, :export, :destroy], Supply, site_id: Site.with_role(:user, user).pluck(:id) + can :create, Supply can :manage, :static_page else can [:home, :about], :static_page end end end
6
0.352941
4
2
4b63936fbd99a7c91d686ecada2b42352dd31f20
components/features/Summary/SummaryContainer.tsx
components/features/Summary/SummaryContainer.tsx
import Typography from "@material-ui/core/Typography" import PanelWrapper from "components/panels/PanelWrapper" import Layout from "components/layout/Layout" import GoaPanel from "./Panels/GoaPanel" import { GeneQuery } from "dicty-graphql-schema" import { useRouter } from "next/router" interface SummaryContainerProps { gene: GeneQuery } const SummaryContainer = ({ gene }: SummaryContainerProps) => { const { query } = useRouter() const geneId = query.gene as string return ( <Layout gene={geneId} title={`Gene Summary for ${geneId}`} description={`Gene information for ${geneId}`}> <Typography component="div"> <PanelWrapper title="Latest Gene Ontology Annotations" route={`/gene/${geneId}/goannotations`}> <GoaPanel data={gene} /> </PanelWrapper> </Typography> </Layout> ) } export default SummaryContainer
import Typography from "@material-ui/core/Typography" import PanelWrapper from "components/panels/PanelWrapper" import Layout from "components/layout/Layout" import GoaPanel from "./Panels/GoaPanel" import ReferencesPanel from './Panels/ReferencesPanel' import { GeneQuery } from "dicty-graphql-schema" import { useRouter } from "next/router" interface SummaryContainerProps { gene: GeneQuery } const SummaryContainer = ({ gene }: SummaryContainerProps) => { const { query } = useRouter() const geneId = query.gene as string return ( <Layout gene={geneId} title={`Gene Summary for ${geneId}`} description={`Gene information for ${geneId}`}> <Typography component="div"> <PanelWrapper title="Latest Gene Ontology Annotations" route={`/gene/${geneId}/goannotations`}> <GoaPanel data={gene} /> </PanelWrapper> <PanelWrapper title="Latest References" route={`/gene/${geneId}/references`}> <ReferencesPanel data={gene} /> </PanelWrapper> </Typography> </Layout> ) } export default SummaryContainer
Add Panel Wrapper for References Panel
feat: Add Panel Wrapper for References Panel
TypeScript
bsd-2-clause
dictyBase/genomepage,dictyBase/genomepage,dictyBase/genomepage
typescript
## Code Before: import Typography from "@material-ui/core/Typography" import PanelWrapper from "components/panels/PanelWrapper" import Layout from "components/layout/Layout" import GoaPanel from "./Panels/GoaPanel" import { GeneQuery } from "dicty-graphql-schema" import { useRouter } from "next/router" interface SummaryContainerProps { gene: GeneQuery } const SummaryContainer = ({ gene }: SummaryContainerProps) => { const { query } = useRouter() const geneId = query.gene as string return ( <Layout gene={geneId} title={`Gene Summary for ${geneId}`} description={`Gene information for ${geneId}`}> <Typography component="div"> <PanelWrapper title="Latest Gene Ontology Annotations" route={`/gene/${geneId}/goannotations`}> <GoaPanel data={gene} /> </PanelWrapper> </Typography> </Layout> ) } export default SummaryContainer ## Instruction: feat: Add Panel Wrapper for References Panel ## Code After: import Typography from "@material-ui/core/Typography" import PanelWrapper from "components/panels/PanelWrapper" import Layout from "components/layout/Layout" import GoaPanel from "./Panels/GoaPanel" import ReferencesPanel from './Panels/ReferencesPanel' import { GeneQuery } from "dicty-graphql-schema" import { useRouter } from "next/router" interface SummaryContainerProps { gene: GeneQuery } const SummaryContainer = ({ gene }: SummaryContainerProps) => { const { query } = useRouter() const geneId = query.gene as string return ( <Layout gene={geneId} title={`Gene Summary for ${geneId}`} description={`Gene information for ${geneId}`}> <Typography component="div"> <PanelWrapper title="Latest Gene Ontology Annotations" route={`/gene/${geneId}/goannotations`}> <GoaPanel data={gene} /> </PanelWrapper> <PanelWrapper title="Latest References" route={`/gene/${geneId}/references`}> <ReferencesPanel data={gene} /> </PanelWrapper> </Typography> </Layout> ) } export default SummaryContainer
import Typography from "@material-ui/core/Typography" import PanelWrapper from "components/panels/PanelWrapper" import Layout from "components/layout/Layout" import GoaPanel from "./Panels/GoaPanel" + import ReferencesPanel from './Panels/ReferencesPanel' import { GeneQuery } from "dicty-graphql-schema" import { useRouter } from "next/router" interface SummaryContainerProps { gene: GeneQuery } const SummaryContainer = ({ gene }: SummaryContainerProps) => { const { query } = useRouter() const geneId = query.gene as string return ( <Layout gene={geneId} title={`Gene Summary for ${geneId}`} description={`Gene information for ${geneId}`}> <Typography component="div"> <PanelWrapper title="Latest Gene Ontology Annotations" route={`/gene/${geneId}/goannotations`}> <GoaPanel data={gene} /> </PanelWrapper> + <PanelWrapper + title="Latest References" + route={`/gene/${geneId}/references`}> + <ReferencesPanel data={gene} /> + </PanelWrapper> </Typography> </Layout> ) } export default SummaryContainer
6
0.1875
6
0
34aa8d9b69f06f4cdec13c0d97ba12308336e386
spec/rails_admin/config/fields/types/uuid_spec.rb
spec/rails_admin/config/fields/types/uuid_spec.rb
require 'spec_helper' describe RailsAdmin::Config::Fields::Types::Uuid do let(:uuid) { SecureRandom.uuid } before do RailsAdmin.config do |config| config.model FieldTest do field :uuid_field, :uuid end end @object = FactoryGirl.create(:field_test) @object.stub(:uuid_field).and_return uuid @field = RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } @field.bindings = {object: @object} end it 'field is a Uuid fieldtype' do expect(@field.class).to eq RailsAdmin::Config::Fields::Types::Uuid end it 'handles uuid string' do expect(@field.value).to eq uuid end it_behaves_like 'a generic field type', :string_field, :uuid end
require 'spec_helper' describe RailsAdmin::Config::Fields::Types::Uuid do let(:uuid) { SecureRandom.uuid } let(:object) { FactoryGirl.create(:field_test) } let(:field) { RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } } before do RailsAdmin.config do |config| config.model FieldTest do field :uuid_field, :uuid end end allow(object).to receive(:uuid_field).and_return uuid field.bindings = {object: object} end it 'field is a Uuid fieldtype' do expect(field.class).to eq RailsAdmin::Config::Fields::Types::Uuid end it 'handles uuid string' do expect(field.value).to eq uuid end it_behaves_like 'a generic field type', :string_field, :uuid end
Replace old stub syntax with newest RSpec 3
Replace old stub syntax with newest RSpec 3
Ruby
mit
VoroninNick/rails_admin_sigma,vincentwoo/rails_admin,Balaraju/rails_admin,LevoLeague/rails_admin,vincentwoo/rails_admin,lokalebasen/rails_admin,johanneskrtek/rails_admin,Balaraju/rails_admin,rubiety/rails_admin,arturbrasil/rails_admin,impurist/rails_admin,GeorgeZhukov/rails_admin,dmilisic/rails_admin,vanbumi/rails_admin,johanneskrtek/rails_admin,zambot/rails_admin,arturbrasil/rails_admin,sferik/rails_admin,Balaraju/rails_admin,soupmatt/rails_admin,hut8/rails_admin,diowa/rails_admin,markprzepiora-forks/rails_admin,widgetworks/rails_admin,aquajach/rails_admin,voyera/rails_admin,aquajach/rails_admin,dalpo/rails_admin,arturbrasil/rails_admin,rubiety/rails_admin,soupmatt/rails_admin,wkirschbaum/rails_admin,glooko/rails_admin,DonCuponesInternet/rails_admin,igorkasyanchuk/rails_admin,GeorgeZhukov/rails_admin,rayzhng/rails_admin,cob3/rails_admin,impurist/rails_admin,ipmobiletech/rails_admin,dmilisic/rails_admin,dmitrypol/rails_admin,jasnow/rails_admin,engel/rails_admin,ipmobiletech/rails_admin,VoroninNick/rails_admin_sigma,widgetworks/rails_admin,laurelandwolf/rails_admin,sferik/rails_admin,dmitrypol/rails_admin,lokalebasen/rails_admin,glooko/rails_admin,corbt/rails_admin,GeorgeZhukov/rails_admin,jasnow/rails_admin,aliada-mx/rails_admin,Versanity/ruby,lokalebasen/rails_admin,allori/rails_admin,JailtonSampaio/annotations_clone_rails_admin,aliada-mx/rails_admin,aliada-mx/rails_admin,ombulabs/rails_admin,rayzhng/rails_admin,engel/rails_admin,soupmatt/rails_admin,sogilis/rails_admin,ombulabs/rails_admin,vanbumi/rails_admin,widgetworks/rails_admin,markprzepiora-forks/rails_admin,sogilis/rails_admin,VoroninNick/rails_admin_sigma,dalpo/rails_admin,vanbumi/rails_admin,jasnow/rails_admin,Versanity/ruby,johanneskrtek/rails_admin,sortlist/rails_admin,impurist/rails_admin,Versanity/ruby,corbt/rails_admin,DonCuponesInternet/rails_admin,wkirschbaum/rails_admin,LevoLeague/rails_admin,JailtonSampaio/annotations_clone_rails_admin,sogilis/rails_admin,corbt/rails_admin,JailtonSampaio/annotations_clone_rails_admin,laurelandwolf/rails_admin,diowa/rails_admin,hut8/rails_admin,dmilisic/rails_admin,glooko/rails_admin,diowa/rails_admin,rayzhng/rails_admin,zambot/rails_admin,dalpo/rails_admin,aquajach/rails_admin,cob3/rails_admin,DonCuponesInternet/rails_admin,voyera/rails_admin,patleb/admineer,LevoLeague/rails_admin,zambot/rails_admin,allori/rails_admin,patleb/admineer,rubiety/rails_admin,wkirschbaum/rails_admin,laurelandwolf/rails_admin,igorkasyanchuk/rails_admin,cob3/rails_admin,dmitrypol/rails_admin,patleb/admineer,vincentwoo/rails_admin,sferik/rails_admin,ipmobiletech/rails_admin,igorkasyanchuk/rails_admin,hut8/rails_admin,ombulabs/rails_admin,engel/rails_admin,allori/rails_admin,markprzepiora-forks/rails_admin,sortlist/rails_admin,sortlist/rails_admin,voyera/rails_admin
ruby
## Code Before: require 'spec_helper' describe RailsAdmin::Config::Fields::Types::Uuid do let(:uuid) { SecureRandom.uuid } before do RailsAdmin.config do |config| config.model FieldTest do field :uuid_field, :uuid end end @object = FactoryGirl.create(:field_test) @object.stub(:uuid_field).and_return uuid @field = RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } @field.bindings = {object: @object} end it 'field is a Uuid fieldtype' do expect(@field.class).to eq RailsAdmin::Config::Fields::Types::Uuid end it 'handles uuid string' do expect(@field.value).to eq uuid end it_behaves_like 'a generic field type', :string_field, :uuid end ## Instruction: Replace old stub syntax with newest RSpec 3 ## Code After: require 'spec_helper' describe RailsAdmin::Config::Fields::Types::Uuid do let(:uuid) { SecureRandom.uuid } let(:object) { FactoryGirl.create(:field_test) } let(:field) { RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } } before do RailsAdmin.config do |config| config.model FieldTest do field :uuid_field, :uuid end end allow(object).to receive(:uuid_field).and_return uuid field.bindings = {object: object} end it 'field is a Uuid fieldtype' do expect(field.class).to eq RailsAdmin::Config::Fields::Types::Uuid end it 'handles uuid string' do expect(field.value).to eq uuid end it_behaves_like 'a generic field type', :string_field, :uuid end
require 'spec_helper' describe RailsAdmin::Config::Fields::Types::Uuid do let(:uuid) { SecureRandom.uuid } + let(:object) { FactoryGirl.create(:field_test) } + let(:field) { RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } } before do RailsAdmin.config do |config| config.model FieldTest do field :uuid_field, :uuid end end - @object = FactoryGirl.create(:field_test) - @object.stub(:uuid_field).and_return uuid ? ^ - ^^ + allow(object).to receive(:uuid_field).and_return uuid ? ^^^^^^ + ^^^^^^^^^ - - @field = RailsAdmin.config(FieldTest).fields.detect { |f| f.name == :uuid_field } - @field.bindings = {object: @object} ? - - + field.bindings = {object: object} end it 'field is a Uuid fieldtype' do - expect(@field.class).to eq RailsAdmin::Config::Fields::Types::Uuid ? - + expect(field.class).to eq RailsAdmin::Config::Fields::Types::Uuid end it 'handles uuid string' do - expect(@field.value).to eq uuid ? - + expect(field.value).to eq uuid end it_behaves_like 'a generic field type', :string_field, :uuid end
13
0.448276
6
7
d634746f2e85030f3787e39751d155a908931922
locales/fr/server-client-shared.properties
locales/fr/server-client-shared.properties
remixGalleryTitle=Remixez un projet pour commencer… ############ ## Editor ## ############ fileSavingIndicator=Enregistrement… renameProjectSaveBtn=Enregistrer publishBtn=Publier publishDeleteBtn=Supprimer la version publiée publishChangesBtn=Mettre à jour la version publiée
remixGalleryTitle=Remixez un projet pour commencer… ############ ## Editor ## ############ fileSavingIndicator=Enregistrement… renameProjectSaveBtn=Enregistrer publishBtn=Publier publishDeleteBtn=Supprimer la version publiée publishChangesBtn=Mettre à jour la version publiée publishHeader=Publiez votre projet publishHeaderOnline=Votre projet est en ligne
Update French (fr) localization of Thimble
Pontoon: Update French (fr) localization of Thimble Localization authors: - Théo Chevalier <theo.chevalier11@gmail.com>
INI
mpl-2.0
mozilla/thimble.mozilla.org,mozilla/thimble.mozilla.org,mozilla/thimble.mozilla.org,mozilla/thimble.mozilla.org
ini
## Code Before: remixGalleryTitle=Remixez un projet pour commencer… ############ ## Editor ## ############ fileSavingIndicator=Enregistrement… renameProjectSaveBtn=Enregistrer publishBtn=Publier publishDeleteBtn=Supprimer la version publiée publishChangesBtn=Mettre à jour la version publiée ## Instruction: Pontoon: Update French (fr) localization of Thimble Localization authors: - Théo Chevalier <theo.chevalier11@gmail.com> ## Code After: remixGalleryTitle=Remixez un projet pour commencer… ############ ## Editor ## ############ fileSavingIndicator=Enregistrement… renameProjectSaveBtn=Enregistrer publishBtn=Publier publishDeleteBtn=Supprimer la version publiée publishChangesBtn=Mettre à jour la version publiée publishHeader=Publiez votre projet publishHeaderOnline=Votre projet est en ligne
remixGalleryTitle=Remixez un projet pour commencer… ############ ## Editor ## ############ fileSavingIndicator=Enregistrement… renameProjectSaveBtn=Enregistrer publishBtn=Publier publishDeleteBtn=Supprimer la version publiée publishChangesBtn=Mettre à jour la version publiée + publishHeader=Publiez votre projet + publishHeaderOnline=Votre projet est en ligne
2
0.166667
2
0
f70ff62e861e9b1a0c9c72087a5adcbc9c74f20c
rollup.config.js
rollup.config.js
import commonjs from "rollup-plugin-commonjs"; import nodeResolve from "rollup-plugin-node-resolve"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; export default { input: "./lib/sinon.js", output: { file: "pkg/sinon-esm.js", format: "es" }, plugins: [ nodeResolve({ jsnext: true, main: true }), commonjs({ // if false then skip sourceMap generation for CommonJS modules sourceMap: true // Default: true }), builtins(), globals() ] };
import commonjs from "rollup-plugin-commonjs"; import nodeResolve from "rollup-plugin-node-resolve"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; const sinon = require("./lib/sinon.js"); export default { input: "./lib/sinon.js", output: { file: "pkg/sinon-esm.js", format: "es", outro: Object.keys(sinon).map((key) => `const _${key} = sinon.${key};\nexport { _${key} as ${key} };`).join('\n') }, plugins: [ nodeResolve({ jsnext: true, main: true }), commonjs({ // if false then skip sourceMap generation for CommonJS modules sourceMap: true // Default: true }), builtins(), globals() ] };
Append named exports to the generated esm bundle
Append named exports to the generated esm bundle
JavaScript
bsd-3-clause
fatso83/Sinon.JS,cjohansen/Sinon.JS,mroderick/Sinon.JS,cjohansen/Sinon.JS,fatso83/Sinon.JS,fatso83/Sinon.JS,cjohansen/Sinon.JS,mroderick/Sinon.JS,mroderick/Sinon.JS
javascript
## Code Before: import commonjs from "rollup-plugin-commonjs"; import nodeResolve from "rollup-plugin-node-resolve"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; export default { input: "./lib/sinon.js", output: { file: "pkg/sinon-esm.js", format: "es" }, plugins: [ nodeResolve({ jsnext: true, main: true }), commonjs({ // if false then skip sourceMap generation for CommonJS modules sourceMap: true // Default: true }), builtins(), globals() ] }; ## Instruction: Append named exports to the generated esm bundle ## Code After: import commonjs from "rollup-plugin-commonjs"; import nodeResolve from "rollup-plugin-node-resolve"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; const sinon = require("./lib/sinon.js"); export default { input: "./lib/sinon.js", output: { file: "pkg/sinon-esm.js", format: "es", outro: Object.keys(sinon).map((key) => `const _${key} = sinon.${key};\nexport { _${key} as ${key} };`).join('\n') }, plugins: [ nodeResolve({ jsnext: true, main: true }), commonjs({ // if false then skip sourceMap generation for CommonJS modules sourceMap: true // Default: true }), builtins(), globals() ] };
import commonjs from "rollup-plugin-commonjs"; import nodeResolve from "rollup-plugin-node-resolve"; import builtins from "rollup-plugin-node-builtins"; import globals from "rollup-plugin-node-globals"; + const sinon = require("./lib/sinon.js"); + export default { input: "./lib/sinon.js", output: { file: "pkg/sinon-esm.js", - format: "es" + format: "es", ? + + outro: Object.keys(sinon).map((key) => `const _${key} = sinon.${key};\nexport { _${key} as ${key} };`).join('\n') }, plugins: [ nodeResolve({ jsnext: true, main: true }), commonjs({ // if false then skip sourceMap generation for CommonJS modules sourceMap: true // Default: true }), builtins(), globals() ] };
5
0.192308
4
1
51c683cfe5b5fa4f36aacbcbd971218137d6b207
css/forms.css
css/forms.css
input.replaced { display: none; } input.replaced + label { background-repeat: no-repeat; background-origin: content-box; background-position: 50% 50%; background-size: 1em; } input[type="radio"].replaced + label { background-image: url("images/unchecked-radio-button.svg"); } input[type="radio"].replaced:checked + label { background-image: url("images/checked-radio-button.svg"); } input[type="checkbox"].replaced + label { background-image: url("images/unchecked-checkbox.svg"); } input[type="checkbox"].replaced:checked + label { background-image: url("images/checked-checkbox.svg"); } .navtable td label:hover, .navtable td label:focus { background-color: #ECE0A5; } .navtable td input.replaced + label { display: block; padding: 0.4em 0.6em; }
input.replaced { display: none; } input.replaced + label { background-repeat: no-repeat; background-origin: content-box; background-position: 50% 50%; } input[type="radio"].replaced + label { background-image: url("images/unchecked-radio-button.svg"); background-size: 1em; } input[type="radio"].replaced:checked + label { background-image: url("images/checked-radio-button.svg"); } input[type="checkbox"].replaced + label { background-image: url("images/unchecked-checkbox.svg"); background-size: 0.886226925454em; /* Radio buttons (circles) and checkboxes (squares) are made to have the same area, else checkboxes look (and actually are) bigger. */ } input[type="checkbox"].replaced:checked + label { background-image: url("images/checked-checkbox.svg"); } .navtable td label:hover, .navtable td label:focus { background-color: #ECE0A5; } .navtable td input.replaced + label { display: block; padding: 0.4em 0.6em; }
Make radio buttons and checkboxes have the same area, not the same diameter. Else checkboxes look (and actually are) bigger.
Forms: Make radio buttons and checkboxes have the same area, not the same diameter. Else checkboxes look (and actually are) bigger.
CSS
unlicense
Hexstream/global.hexstreamsoft.com,Hexstream/global.hexstreamsoft.com
css
## Code Before: input.replaced { display: none; } input.replaced + label { background-repeat: no-repeat; background-origin: content-box; background-position: 50% 50%; background-size: 1em; } input[type="radio"].replaced + label { background-image: url("images/unchecked-radio-button.svg"); } input[type="radio"].replaced:checked + label { background-image: url("images/checked-radio-button.svg"); } input[type="checkbox"].replaced + label { background-image: url("images/unchecked-checkbox.svg"); } input[type="checkbox"].replaced:checked + label { background-image: url("images/checked-checkbox.svg"); } .navtable td label:hover, .navtable td label:focus { background-color: #ECE0A5; } .navtable td input.replaced + label { display: block; padding: 0.4em 0.6em; } ## Instruction: Forms: Make radio buttons and checkboxes have the same area, not the same diameter. Else checkboxes look (and actually are) bigger. ## Code After: input.replaced { display: none; } input.replaced + label { background-repeat: no-repeat; background-origin: content-box; background-position: 50% 50%; } input[type="radio"].replaced + label { background-image: url("images/unchecked-radio-button.svg"); background-size: 1em; } input[type="radio"].replaced:checked + label { background-image: url("images/checked-radio-button.svg"); } input[type="checkbox"].replaced + label { background-image: url("images/unchecked-checkbox.svg"); background-size: 0.886226925454em; /* Radio buttons (circles) and checkboxes (squares) are made to have the same area, else checkboxes look (and actually are) bigger. */ } input[type="checkbox"].replaced:checked + label { background-image: url("images/checked-checkbox.svg"); } .navtable td label:hover, .navtable td label:focus { background-color: #ECE0A5; } .navtable td input.replaced + label { display: block; padding: 0.4em 0.6em; }
input.replaced { display: none; } input.replaced + label { background-repeat: no-repeat; background-origin: content-box; background-position: 50% 50%; - background-size: 1em; } input[type="radio"].replaced + label { background-image: url("images/unchecked-radio-button.svg"); + background-size: 1em; } input[type="radio"].replaced:checked + label { background-image: url("images/checked-radio-button.svg"); } input[type="checkbox"].replaced + label { background-image: url("images/unchecked-checkbox.svg"); + background-size: 0.886226925454em; + /* Radio buttons (circles) and checkboxes (squares) are made to have the same area, + else checkboxes look (and actually are) bigger. */ } input[type="checkbox"].replaced:checked + label { background-image: url("images/checked-checkbox.svg"); } .navtable td label:hover, .navtable td label:focus { background-color: #ECE0A5; } .navtable td input.replaced + label { display: block; padding: 0.4em 0.6em; }
5
0.138889
4
1
41b02ca4dc5f4f27f4e66e2e10a0353ebf662136
tests/test-recipes/metadata/source_git/bld.bat
tests/test-recipes/metadata/source_git/bld.bat
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 git diff if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
Print the git diff for debug purposes in a test
Print the git diff for debug purposes in a test
Batchfile
bsd-3-clause
sandhujasmine/conda-build,rmcgibbo/conda-build,sandhujasmine/conda-build,ilastik/conda-build,mwcraig/conda-build,sandhujasmine/conda-build,mwcraig/conda-build,frol/conda-build,dan-blanchard/conda-build,rmcgibbo/conda-build,ilastik/conda-build,dan-blanchard/conda-build,frol/conda-build,mwcraig/conda-build,frol/conda-build,ilastik/conda-build,dan-blanchard/conda-build,rmcgibbo/conda-build
batchfile
## Code Before: if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1 ## Instruction: Print the git diff for debug purposes in a test ## Code After: if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 git diff if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 + git diff + if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
2
0.166667
2
0
d121ccacf324ffc0b9e2d26fb7d90f99d6ceec3c
lisp/init-benchmarking.el
lisp/init-benchmarking.el
(defun sanityinc/time-subtract-millis (b a) (* 1000.0 (float-time (time-subtract b a)))) (defvar sanityinc/require-times nil "A list of (FEATURE . LOAD-DURATION). LOAD-DURATION is the time taken in milliseconds to load FEATURE.") (defadvice require (around build-require-times (feature &optional filename noerror) activate) "Note in `sanityinc/require-times' the time taken to require each feature." (let* ((already-loaded (memq feature features)) (require-start-time (and (not already-loaded) (current-time)))) (prog1 ad-do-it (when (and (not already-loaded) (memq feature features)) (add-to-list 'sanityinc/require-times (cons feature (sanityinc/time-subtract-millis (current-time) require-start-time)) t))))) (provide 'init-benchmarking)
(defun sanityinc/time-subtract-millis (b a) (* 1000.0 (float-time (time-subtract b a)))) (defvar sanityinc/require-times nil "A list of (FEATURE . LOAD-DURATION). LOAD-DURATION is the time taken in milliseconds to load FEATURE.") (defadvice require (around sanityinc/build-require-times (feature &optional filename noerror) activate) "Note in `sanityinc/require-times' the time taken to require each feature." (let* ((already-loaded (memq feature features)) (require-start-time (and (not already-loaded) (current-time)))) (prog1 ad-do-it (when (and (not already-loaded) (memq feature features)) (let ((time (sanityinc/time-subtract-millis (current-time) require-start-time))) (add-to-list 'sanityinc/require-times (cons feature time) t)))))) (provide 'init-benchmarking)
Tidy up the require-times benchmarking advice
Tidy up the require-times benchmarking advice
Emacs Lisp
bsd-2-clause
mmqmzk/emacs.d,benkha/emacs.d,baohaojun/emacs.d,emuio/emacs.d,jkaessens/emacs.d,cyjia/emacs.d,Werewolflsp/emacs.d,svenyurgensson/emacs.d,cjqw/emacs.d,arthurl/emacs.d,ernest-dzf/emacs.d,LKI/emacs.d,kindoblue/emacs.d,blueabysm/emacs.d,Shanicky/emacs.d,qinshulei/emacs.d,dcorking/emacs.d,qianwan/emacs.d,blueseason/emacs.d,wegatron/emacs.d,Enzo-Liu/emacs.d,zhuoyikang/emacs.d,jhpx/emacs.d,braveoyster/emacs.d,purcell/emacs.d,kongfy/emacs.d,roxolan/emacs.d,lujianmei/emacs.d,46do14/emacs.d,sgarciac/emacs.d,zhaotai/.emacs.d,gsmlg/emacs.d,lust4life/emacs.d,zenith-john/emacs.d,fengxl/emacs.d,krzysz00/emacs.d,me020523/emacs.d
emacs-lisp
## Code Before: (defun sanityinc/time-subtract-millis (b a) (* 1000.0 (float-time (time-subtract b a)))) (defvar sanityinc/require-times nil "A list of (FEATURE . LOAD-DURATION). LOAD-DURATION is the time taken in milliseconds to load FEATURE.") (defadvice require (around build-require-times (feature &optional filename noerror) activate) "Note in `sanityinc/require-times' the time taken to require each feature." (let* ((already-loaded (memq feature features)) (require-start-time (and (not already-loaded) (current-time)))) (prog1 ad-do-it (when (and (not already-loaded) (memq feature features)) (add-to-list 'sanityinc/require-times (cons feature (sanityinc/time-subtract-millis (current-time) require-start-time)) t))))) (provide 'init-benchmarking) ## Instruction: Tidy up the require-times benchmarking advice ## Code After: (defun sanityinc/time-subtract-millis (b a) (* 1000.0 (float-time (time-subtract b a)))) (defvar sanityinc/require-times nil "A list of (FEATURE . LOAD-DURATION). LOAD-DURATION is the time taken in milliseconds to load FEATURE.") (defadvice require (around sanityinc/build-require-times (feature &optional filename noerror) activate) "Note in `sanityinc/require-times' the time taken to require each feature." (let* ((already-loaded (memq feature features)) (require-start-time (and (not already-loaded) (current-time)))) (prog1 ad-do-it (when (and (not already-loaded) (memq feature features)) (let ((time (sanityinc/time-subtract-millis (current-time) require-start-time))) (add-to-list 'sanityinc/require-times (cons feature time) t)))))) (provide 'init-benchmarking)
(defun sanityinc/time-subtract-millis (b a) (* 1000.0 (float-time (time-subtract b a)))) (defvar sanityinc/require-times nil "A list of (FEATURE . LOAD-DURATION). LOAD-DURATION is the time taken in milliseconds to load FEATURE.") - (defadvice require - (around build-require-times (feature &optional filename noerror) activate) + (defadvice require (around sanityinc/build-require-times (feature &optional filename noerror) activate) ? ++++++++++ +++++++ ++++++++++ "Note in `sanityinc/require-times' the time taken to require each feature." (let* ((already-loaded (memq feature features)) (require-start-time (and (not already-loaded) (current-time)))) (prog1 ad-do-it (when (and (not already-loaded) (memq feature features)) + (let ((time (sanityinc/time-subtract-millis (current-time) require-start-time))) - (add-to-list 'sanityinc/require-times + (add-to-list 'sanityinc/require-times ? ++ - (cons feature + (cons feature time) ? ++ ++++++ - (sanityinc/time-subtract-millis (current-time) - require-start-time)) - t))))) + t)))))) ? ++ + (provide 'init-benchmarking)
12
0.48
5
7
d215913d0ba8493b8255207f1938a1a086f91021
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ideaInterop/fileTypes/asmdef/AsmDefActionCallPolicy.kt
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/ideaInterop/fileTypes/asmdef/AsmDefActionCallPolicy.kt
package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef import com.intellij.openapi.actionSystem.IdeActions import com.intellij.psi.PsiElement import com.jetbrains.rdclient.hyperlinks.FrontendCtrlClickHost import com.jetbrains.rider.actions.RiderActionCallStrategy import com.jetbrains.rider.actions.RiderActionSupportPolicy import com.jetbrains.rider.actions.RiderActions class AsmDefActionCallPolicy : RiderActionSupportPolicy() { override fun getCallStrategy(psiElement: PsiElement, backendActionId: String): RiderActionCallStrategy = when (backendActionId) { IdeActions.ACTION_RENAME, IdeActions.ACTION_FIND_USAGES, FrontendCtrlClickHost.backendActionId, RiderActions.GOTO_DECLARATION -> RiderActionCallStrategy.BACKEND_FIRST else -> RiderActionCallStrategy.FRONTEND_ONLY } override fun isAvailable(psiElement: PsiElement, backendActionId: String): Boolean { val viewProvider = psiElement.containingFile?.viewProvider ?: return false return viewProvider.fileType == AsmDefFileType } }
package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef import com.intellij.openapi.actionSystem.IdeActions import com.intellij.psi.PsiElement import com.jetbrains.rdclient.hyperlinks.FrontendCtrlClickHost import com.jetbrains.rider.actions.RiderActionCallStrategy import com.jetbrains.rider.actions.RiderActionSupportPolicy import com.jetbrains.rider.actions.RiderActions class AsmDefActionCallPolicy : RiderActionSupportPolicy() { override fun getCallStrategy(psiElement: PsiElement, backendActionId: String): RiderActionCallStrategy = // Note that this is backend action ID, which means it's the R# action ID, which may or may not be the same as // the IdeAction. when (backendActionId) { "Rename", IdeActions.ACTION_FIND_USAGES, FrontendCtrlClickHost.backendActionId, RiderActions.GOTO_DECLARATION -> RiderActionCallStrategy.BACKEND_FIRST else -> RiderActionCallStrategy.FRONTEND_ONLY } override fun isAvailable(psiElement: PsiElement, backendActionId: String): Boolean { val viewProvider = psiElement.containingFile?.viewProvider ?: return false return viewProvider.fileType == AsmDefFileType } }
Fix missing rename asmdef action in Rider
Fix missing rename asmdef action in Rider
Kotlin
apache-2.0
JetBrains/resharper-unity,JetBrains/resharper-unity,JetBrains/resharper-unity
kotlin
## Code Before: package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef import com.intellij.openapi.actionSystem.IdeActions import com.intellij.psi.PsiElement import com.jetbrains.rdclient.hyperlinks.FrontendCtrlClickHost import com.jetbrains.rider.actions.RiderActionCallStrategy import com.jetbrains.rider.actions.RiderActionSupportPolicy import com.jetbrains.rider.actions.RiderActions class AsmDefActionCallPolicy : RiderActionSupportPolicy() { override fun getCallStrategy(psiElement: PsiElement, backendActionId: String): RiderActionCallStrategy = when (backendActionId) { IdeActions.ACTION_RENAME, IdeActions.ACTION_FIND_USAGES, FrontendCtrlClickHost.backendActionId, RiderActions.GOTO_DECLARATION -> RiderActionCallStrategy.BACKEND_FIRST else -> RiderActionCallStrategy.FRONTEND_ONLY } override fun isAvailable(psiElement: PsiElement, backendActionId: String): Boolean { val viewProvider = psiElement.containingFile?.viewProvider ?: return false return viewProvider.fileType == AsmDefFileType } } ## Instruction: Fix missing rename asmdef action in Rider ## Code After: package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef import com.intellij.openapi.actionSystem.IdeActions import com.intellij.psi.PsiElement import com.jetbrains.rdclient.hyperlinks.FrontendCtrlClickHost import com.jetbrains.rider.actions.RiderActionCallStrategy import com.jetbrains.rider.actions.RiderActionSupportPolicy import com.jetbrains.rider.actions.RiderActions class AsmDefActionCallPolicy : RiderActionSupportPolicy() { override fun getCallStrategy(psiElement: PsiElement, backendActionId: String): RiderActionCallStrategy = // Note that this is backend action ID, which means it's the R# action ID, which may or may not be the same as // the IdeAction. when (backendActionId) { "Rename", IdeActions.ACTION_FIND_USAGES, FrontendCtrlClickHost.backendActionId, RiderActions.GOTO_DECLARATION -> RiderActionCallStrategy.BACKEND_FIRST else -> RiderActionCallStrategy.FRONTEND_ONLY } override fun isAvailable(psiElement: PsiElement, backendActionId: String): Boolean { val viewProvider = psiElement.containingFile?.viewProvider ?: return false return viewProvider.fileType == AsmDefFileType } }
package com.jetbrains.rider.plugins.unity.ideaInterop.fileTypes.asmdef import com.intellij.openapi.actionSystem.IdeActions import com.intellij.psi.PsiElement import com.jetbrains.rdclient.hyperlinks.FrontendCtrlClickHost import com.jetbrains.rider.actions.RiderActionCallStrategy import com.jetbrains.rider.actions.RiderActionSupportPolicy import com.jetbrains.rider.actions.RiderActions class AsmDefActionCallPolicy : RiderActionSupportPolicy() { override fun getCallStrategy(psiElement: PsiElement, backendActionId: String): RiderActionCallStrategy = + // Note that this is backend action ID, which means it's the R# action ID, which may or may not be the same as + // the IdeAction. when (backendActionId) { - IdeActions.ACTION_RENAME, + "Rename", IdeActions.ACTION_FIND_USAGES, FrontendCtrlClickHost.backendActionId, RiderActions.GOTO_DECLARATION -> RiderActionCallStrategy.BACKEND_FIRST else -> RiderActionCallStrategy.FRONTEND_ONLY } override fun isAvailable(psiElement: PsiElement, backendActionId: String): Boolean { val viewProvider = psiElement.containingFile?.viewProvider ?: return false return viewProvider.fileType == AsmDefFileType } }
4
0.166667
3
1
1154dffa3aa8a714d183d9048fe9381dfdb0a28d
app/server.js
app/server.js
var jadeStream = require('jade-stream') var http = require('http') var st = require('st') var mount = st({ path: 'app/assets', index: 'index.jade' }) var app = http.createServer(function server(req, res) { if (req.url === '/') res.filter = jadeStream() mount(req, res) }) app.listen(process.env.port, function listening() { var info = app.address() console.log('App running on http://%s:%s', info.address, info.port) })
var jadeStream = require('jade-stream') var config = require('rc')('bc-webplayer'); var http = require('http') var st = require('st') var mount = st({ path: 'app/assets', index: 'index.jade', cache: config.cache }) var app = http.createServer(function server(req, res) { if (req.url === '/') res.filter = jadeStream() mount(req, res) }) app.listen(process.env.port, function listening() { var info = app.address() console.log('App running on http://%s:%s', info.address, info.port) })
Add project settings via rc
Add project settings via rc
JavaScript
mit
joshgillies/bc-webplayer
javascript
## Code Before: var jadeStream = require('jade-stream') var http = require('http') var st = require('st') var mount = st({ path: 'app/assets', index: 'index.jade' }) var app = http.createServer(function server(req, res) { if (req.url === '/') res.filter = jadeStream() mount(req, res) }) app.listen(process.env.port, function listening() { var info = app.address() console.log('App running on http://%s:%s', info.address, info.port) }) ## Instruction: Add project settings via rc ## Code After: var jadeStream = require('jade-stream') var config = require('rc')('bc-webplayer'); var http = require('http') var st = require('st') var mount = st({ path: 'app/assets', index: 'index.jade', cache: config.cache }) var app = http.createServer(function server(req, res) { if (req.url === '/') res.filter = jadeStream() mount(req, res) }) app.listen(process.env.port, function listening() { var info = app.address() console.log('App running on http://%s:%s', info.address, info.port) })
var jadeStream = require('jade-stream') + var config = require('rc')('bc-webplayer'); var http = require('http') var st = require('st') var mount = st({ path: 'app/assets', - index: 'index.jade' + index: 'index.jade', ? + + cache: config.cache }) var app = http.createServer(function server(req, res) { if (req.url === '/') res.filter = jadeStream() mount(req, res) }) app.listen(process.env.port, function listening() { var info = app.address() console.log('App running on http://%s:%s', info.address, info.port) })
4
0.2
3
1
ad85a8257b728d3b8c78ad7392bf053ee2fcdf3f
site/.forestryio/front_matter/templates/tote-bag.yml
site/.forestryio/front_matter/templates/tote-bag.yml
--- hide_body: false fields: - name: title label: Product Name type: text hidden: false default: '' - name: date label: Date type: datetime hidden: false default: Invalid date - name: description label: Description type: textarea hidden: false default: '' - name: image label: Image type: file hidden: false default: '' - name: type label: Type type: text hidden: true default: '' - name: weight label: Weight type: text hidden: false default: '' - name: id label: Id type: text hidden: false default: '' - name: price label: Price type: text hidden: false default: '' - name: itemWeight label: Itemweight type: text hidden: false default: '' - name: url label: Url type: text hidden: false default: '' - name: custom label: Custom type: field_group_list fields: - name: name label: Name type: text hidden: false default: '' - name: options label: Options type: field_group_list fields: - name: option label: Option type: text hidden: false default: '' hidden: false default: '' - name: value label: Value type: text hidden: false default: '' hidden: false default: '' - type: text
--- hide_body: false fields: - name: title label: Product Name type: text hidden: false default: '' - name: id label: Id type: text hidden: false default: '' - name: price label: Price type: text hidden: false default: '' - name: description label: Description type: textarea hidden: false default: '' - name: date label: Date type: datetime hidden: false default: Invalid date - name: image label: Image type: file hidden: false default: '' - name: weight label: Sort Weight type: text hidden: false default: '' config: required: true description: Must be a unique product ID number. - name: itemWeight label: Item Weight type: text hidden: false default: '' description: Enter the weight in grams. - name: type label: Type type: text hidden: true default: product - name: url label: Url type: text hidden: false default: "/shop/" - name: custom label: Custom type: field_group_list fields: - name: name label: Name type: text hidden: false default: '' - name: options label: Options type: field_group_list fields: - name: option label: Option type: text hidden: false default: '' hidden: false default: '' - name: value label: Value type: text hidden: false default: '' hidden: false default: '' - type: text
Update from Forestry.io - Updated Forestry configuration
Update from Forestry.io - Updated Forestry configuration
YAML
mit
IslandViewPTA/islandview-pta-site,IslandViewPTA/islandview-pta-site,IslandViewPTA/islandview-pta-site
yaml
## Code Before: --- hide_body: false fields: - name: title label: Product Name type: text hidden: false default: '' - name: date label: Date type: datetime hidden: false default: Invalid date - name: description label: Description type: textarea hidden: false default: '' - name: image label: Image type: file hidden: false default: '' - name: type label: Type type: text hidden: true default: '' - name: weight label: Weight type: text hidden: false default: '' - name: id label: Id type: text hidden: false default: '' - name: price label: Price type: text hidden: false default: '' - name: itemWeight label: Itemweight type: text hidden: false default: '' - name: url label: Url type: text hidden: false default: '' - name: custom label: Custom type: field_group_list fields: - name: name label: Name type: text hidden: false default: '' - name: options label: Options type: field_group_list fields: - name: option label: Option type: text hidden: false default: '' hidden: false default: '' - name: value label: Value type: text hidden: false default: '' hidden: false default: '' - type: text ## Instruction: Update from Forestry.io - Updated Forestry configuration ## Code After: --- hide_body: false fields: - name: title label: Product Name type: text hidden: false default: '' - name: id label: Id type: text hidden: false default: '' - name: price label: Price type: text hidden: false default: '' - name: description label: Description type: textarea hidden: false default: '' - name: date label: Date type: datetime hidden: false default: Invalid date - name: image label: Image type: file hidden: false default: '' - name: weight label: Sort Weight type: text hidden: false default: '' config: required: true description: Must be a unique product ID number. - name: itemWeight label: Item Weight type: text hidden: false default: '' description: Enter the weight in grams. - name: type label: Type type: text hidden: true default: product - name: url label: Url type: text hidden: false default: "/shop/" - name: custom label: Custom type: field_group_list fields: - name: name label: Name type: text hidden: false default: '' - name: options label: Options type: field_group_list fields: - name: option label: Option type: text hidden: false default: '' hidden: false default: '' - name: value label: Value type: text hidden: false default: '' hidden: false default: '' - type: text
--- hide_body: false fields: - name: title label: Product Name - type: text - hidden: false - default: '' - - name: date - label: Date - type: datetime - hidden: false - default: Invalid date - - name: description - label: Description - type: textarea - hidden: false - default: '' - - name: image - label: Image - type: file - hidden: false - default: '' - - name: type - label: Type - type: text - hidden: true - default: '' - - name: weight - label: Weight type: text hidden: false default: '' - name: id label: Id type: text hidden: false default: '' - name: price label: Price type: text hidden: false default: '' + - name: description + label: Description + type: textarea + hidden: false + default: '' + - name: date + label: Date + type: datetime + hidden: false + default: Invalid date + - name: image + label: Image + type: file + hidden: false + default: '' - - name: itemWeight ? ^^^^^ + - name: weight ? ^ - label: Itemweight ? ^ ^^^ + label: Sort Weight ? ^^^ ^^ type: text hidden: false default: '' + config: + required: true + description: Must be a unique product ID number. + - name: itemWeight + label: Item Weight + type: text + hidden: false + default: '' + description: Enter the weight in grams. + - name: type + label: Type + type: text + hidden: true + default: product - name: url label: Url type: text hidden: false - default: '' + default: "/shop/" - name: custom label: Custom type: field_group_list fields: - name: name label: Name type: text hidden: false default: '' - name: options label: Options type: field_group_list fields: - name: option label: Option type: text hidden: false default: '' hidden: false default: '' - name: value label: Value type: text hidden: false default: '' hidden: false default: '' - type: text
60
0.740741
32
28
f369da1c6d1063ffed250518763931a270249482
ci/settings.yml
ci/settings.yml
--- meta: name: redis-forge release: Blacksmith Redis Forge target: blacksmith@pipes url: https://pipes.starkandwayne.com manifest: path: ci/manifest.yml git: name: Stark & Wayne CI Bot email: ci@starkandwayne.com bosh-lite: target: https://10.200.131.9:25555 username: admin password: (( vault "secret/thunder/dome/bosh/users/admin:password" )) cacert: (( vault "secret/thunder/dome/bosh/ssl/ca:certificate" )) aws: access_key: (( vault "secret/pipelines/aws/cf-community:access" )) secret_key: (( vault "secret/pipelines/aws/cf-community:secret" )) github: owner: blacksmith-community repo: redis-forge-boshrelease branch: master private_key: (( vault "secret/pipelines/github/starkandwayne/ci-bot:private" )) access_token: (( vault "secret/pipelines/github/starkandwayne/ci-bot:access_token" )) shout: url: http://10.200.131.1:7109 username: ops password: (( vault "secret/buffalo/lab/concourse/shout/ops:password" ))
--- meta: name: redis-forge release: Blacksmith Redis Forge target: blacksmith@pipes url: https://pipes.starkandwayne.com manifest: path: ci/manifest.yml git: name: Stark & Wayne CI Bot email: ci@starkandwayne.com bosh-lite: target: https://10.128.4.73:25555 username: ((thunder-dome.username)) password: ((thunder-dome.password)) cacert: ((thunder-dome.ca-certificate)) aws: access_key: ((cfcommunity.access)) secret_key: ((cfcommunity.secret)) github: owner: blacksmith-community repo: redis-forge-boshrelease branch: master private_key: ((starkandwayne-bot-github.private-key)) access_token: ((starkandwayne-bot-github.access-token)) shout: url: http://10.128.4.65:7109 username: ((shout.username)) password: ((shout.password))
Move secrets to Concourse Vault
Move secrets to Concourse Vault
YAML
mit
blacksmith-community/redis-forge-boshrelease,blacksmith-community/redis-forge-boshrelease
yaml
## Code Before: --- meta: name: redis-forge release: Blacksmith Redis Forge target: blacksmith@pipes url: https://pipes.starkandwayne.com manifest: path: ci/manifest.yml git: name: Stark & Wayne CI Bot email: ci@starkandwayne.com bosh-lite: target: https://10.200.131.9:25555 username: admin password: (( vault "secret/thunder/dome/bosh/users/admin:password" )) cacert: (( vault "secret/thunder/dome/bosh/ssl/ca:certificate" )) aws: access_key: (( vault "secret/pipelines/aws/cf-community:access" )) secret_key: (( vault "secret/pipelines/aws/cf-community:secret" )) github: owner: blacksmith-community repo: redis-forge-boshrelease branch: master private_key: (( vault "secret/pipelines/github/starkandwayne/ci-bot:private" )) access_token: (( vault "secret/pipelines/github/starkandwayne/ci-bot:access_token" )) shout: url: http://10.200.131.1:7109 username: ops password: (( vault "secret/buffalo/lab/concourse/shout/ops:password" )) ## Instruction: Move secrets to Concourse Vault ## Code After: --- meta: name: redis-forge release: Blacksmith Redis Forge target: blacksmith@pipes url: https://pipes.starkandwayne.com manifest: path: ci/manifest.yml git: name: Stark & Wayne CI Bot email: ci@starkandwayne.com bosh-lite: target: https://10.128.4.73:25555 username: ((thunder-dome.username)) password: ((thunder-dome.password)) cacert: ((thunder-dome.ca-certificate)) aws: access_key: ((cfcommunity.access)) secret_key: ((cfcommunity.secret)) github: owner: blacksmith-community repo: redis-forge-boshrelease branch: master private_key: ((starkandwayne-bot-github.private-key)) access_token: ((starkandwayne-bot-github.access-token)) shout: url: http://10.128.4.65:7109 username: ((shout.username)) password: ((shout.password))
--- meta: name: redis-forge release: Blacksmith Redis Forge target: blacksmith@pipes url: https://pipes.starkandwayne.com manifest: path: ci/manifest.yml git: name: Stark & Wayne CI Bot email: ci@starkandwayne.com bosh-lite: - target: https://10.200.131.9:25555 ? ^^ ^ --- + target: https://10.128.4.73:25555 ? + ^ ^^^ - username: admin - password: (( vault "secret/thunder/dome/bosh/users/admin:password" )) - cacert: (( vault "secret/thunder/dome/bosh/ssl/ca:certificate" )) + username: ((thunder-dome.username)) + password: ((thunder-dome.password)) + cacert: ((thunder-dome.ca-certificate)) aws: - access_key: (( vault "secret/pipelines/aws/cf-community:access" )) - secret_key: (( vault "secret/pipelines/aws/cf-community:secret" )) + access_key: ((cfcommunity.access)) + secret_key: ((cfcommunity.secret)) github: owner: blacksmith-community repo: redis-forge-boshrelease branch: master - private_key: (( vault "secret/pipelines/github/starkandwayne/ci-bot:private" )) - access_token: (( vault "secret/pipelines/github/starkandwayne/ci-bot:access_token" )) + private_key: ((starkandwayne-bot-github.private-key)) + access_token: ((starkandwayne-bot-github.access-token)) shout: - url: http://10.200.131.1:7109 ? ^^ ^^^ ^ + url: http://10.128.4.65:7109 ? + ^ ^ ^^ - username: ops - password: (( vault "secret/buffalo/lab/concourse/shout/ops:password" )) + username: ((shout.username)) + password: ((shout.password))
22
0.628571
11
11
ed92a324cceddce96f2cff51a103c6ca15f62d8e
asterix/test.py
asterix/test.py
""" Utility functions to help testing. """ from unittest.mock import Mock class dummy(object): def __init__(self): self.components = {} def get(self, name, default): if name not in self.components: self.components[name] = Mock() return self.components[name] class dummy_master(object): def __init__(self): setattr(self, "__components", dummy())
""" Utility functions to help testing. """ from unittest.mock import Mock class dummy(object): def __init__(self): self.components = {} def get(self, name, default=None): if name not in self.components: self.components[name] = Mock() return self.components[name] class dummy_master(object): def __init__(self): setattr(self, "__components", dummy()) def get(self, name): return self.__components.components.get(name)
Add facade to mocked components
Add facade to mocked components
Python
mit
hkupty/asterix
python
## Code Before: """ Utility functions to help testing. """ from unittest.mock import Mock class dummy(object): def __init__(self): self.components = {} def get(self, name, default): if name not in self.components: self.components[name] = Mock() return self.components[name] class dummy_master(object): def __init__(self): setattr(self, "__components", dummy()) ## Instruction: Add facade to mocked components ## Code After: """ Utility functions to help testing. """ from unittest.mock import Mock class dummy(object): def __init__(self): self.components = {} def get(self, name, default=None): if name not in self.components: self.components[name] = Mock() return self.components[name] class dummy_master(object): def __init__(self): setattr(self, "__components", dummy()) def get(self, name): return self.__components.components.get(name)
""" Utility functions to help testing. """ from unittest.mock import Mock class dummy(object): def __init__(self): self.components = {} - def get(self, name, default): + def get(self, name, default=None): ? +++++ if name not in self.components: self.components[name] = Mock() return self.components[name] class dummy_master(object): def __init__(self): setattr(self, "__components", dummy()) + + def get(self, name): + return self.__components.components.get(name)
5
0.25
4
1
6256e7674c78ad838496e0c5fc49aabbb5bab73d
centreon-frontend/packages/frontend-config/jest/index.js
centreon-frontend/packages/frontend-config/jest/index.js
module.exports = { setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], transform: { '^.+\\.[jt]sx?$': 'babel-jest', }, transformIgnorePatterns: ['/node_modules/(?!@centreon/ui).+\\.jsx?$'], moduleNameMapper: { '\\.(s?css|png|svg)$': 'identity-obj-proxy', }, testPathIgnorePatterns: ['/node_modules/'], };
module.exports = { setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], transform: { '^.+\\.[jt]sx?$': 'babel-jest', }, transformIgnorePatterns: ['/node_modules/(?!@centreon/ui).+\\.jsx?$'], moduleNameMapper: { '\\.(s?css|png|svg)$': 'identity-obj-proxy', '@centreon/ui': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/centreon-ui', '@centreon/ui-context': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/ui-context' }, testPathIgnorePatterns: ['/node_modules/'], };
Add module resolution for jest
Add module resolution for jest
JavaScript
apache-2.0
centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon
javascript
## Code Before: module.exports = { setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], transform: { '^.+\\.[jt]sx?$': 'babel-jest', }, transformIgnorePatterns: ['/node_modules/(?!@centreon/ui).+\\.jsx?$'], moduleNameMapper: { '\\.(s?css|png|svg)$': 'identity-obj-proxy', }, testPathIgnorePatterns: ['/node_modules/'], }; ## Instruction: Add module resolution for jest ## Code After: module.exports = { setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], transform: { '^.+\\.[jt]sx?$': 'babel-jest', }, transformIgnorePatterns: ['/node_modules/(?!@centreon/ui).+\\.jsx?$'], moduleNameMapper: { '\\.(s?css|png|svg)$': 'identity-obj-proxy', '@centreon/ui': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/centreon-ui', '@centreon/ui-context': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/ui-context' }, testPathIgnorePatterns: ['/node_modules/'], };
module.exports = { setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'], transform: { '^.+\\.[jt]sx?$': 'babel-jest', }, transformIgnorePatterns: ['/node_modules/(?!@centreon/ui).+\\.jsx?$'], moduleNameMapper: { '\\.(s?css|png|svg)$': 'identity-obj-proxy', + '@centreon/ui': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/centreon-ui', + '@centreon/ui-context': '<rootDir>/node_modules/@centreon/centreon-frontend/packages/ui-context' }, testPathIgnorePatterns: ['/node_modules/'], };
2
0.181818
2
0
ecc7166609216dda17ca8ad4985965f82b05b895
README.md
README.md
This is a simple text editor (notepad) written in Java. It also features a search engine. If you use the executable file "notepad.jar" and that it does not run, you can type "java -jar /your_notepad_directory/notepad.jar" in your terminal. ![Example Java Text Editor](Screenshots/screenshot4.png) ##AUTHOR ### Base Application Pierre-Henry SORIA ### Modifications and Improvements Achintha Gunasekara http://www.achinthagunasekara.com ##CONTACT Pierre-Henry SORIA: pierrehs@hotmail.com Achintha Gunasekara: contact@achinthagunasekara.com ##LICENSE Apache License, Version 2.0 or later; See the license.txt file in the "NotePad" folder. ## Demo Download the Jar file and double click to run Or run java -jar SimpleJavaTextEditor.jar from the command line ##Important icons directory and it's files must be present on the path when running the application
This is a simple text editor (notepad) written in Java. It also features a search engine. If you use the executable file "notepad.jar" and that it does not run, you can type "java -jar /your_notepad_directory/notepad.jar" in your terminal. ![Example Java Text Editor](Screenshots/screenshot4.png) ## AUTHOR ### Base Application Pierre-Henry Soria ### Modifications and Improvements Achintha Gunasekara ## CONTACT Pierre-Henry SORIA: pierrehenrysoria [AT] gmail [D0T] com Achintha Gunasekara: contact@achinthagunasekara.com ## Important **Icons directory and it's files must be present on the path when running the application** ## Demo Download the Jar file and double click to run Or run java -jar SimpleJavaTextEditor.jar from the command line ## LICENSE Apache License, Version 2.0 or later; See the license.txt file in the notepad folder.
Update Readme file and remove non-related and promotional link
Update Readme file and remove non-related and promotional link
Markdown
apache-2.0
akashdeepsingh9988/Simple-Java-Text-Editor,pH-7/Simple-Java-Text-Editor
markdown
## Code Before: This is a simple text editor (notepad) written in Java. It also features a search engine. If you use the executable file "notepad.jar" and that it does not run, you can type "java -jar /your_notepad_directory/notepad.jar" in your terminal. ![Example Java Text Editor](Screenshots/screenshot4.png) ##AUTHOR ### Base Application Pierre-Henry SORIA ### Modifications and Improvements Achintha Gunasekara http://www.achinthagunasekara.com ##CONTACT Pierre-Henry SORIA: pierrehs@hotmail.com Achintha Gunasekara: contact@achinthagunasekara.com ##LICENSE Apache License, Version 2.0 or later; See the license.txt file in the "NotePad" folder. ## Demo Download the Jar file and double click to run Or run java -jar SimpleJavaTextEditor.jar from the command line ##Important icons directory and it's files must be present on the path when running the application ## Instruction: Update Readme file and remove non-related and promotional link ## Code After: This is a simple text editor (notepad) written in Java. It also features a search engine. If you use the executable file "notepad.jar" and that it does not run, you can type "java -jar /your_notepad_directory/notepad.jar" in your terminal. ![Example Java Text Editor](Screenshots/screenshot4.png) ## AUTHOR ### Base Application Pierre-Henry Soria ### Modifications and Improvements Achintha Gunasekara ## CONTACT Pierre-Henry SORIA: pierrehenrysoria [AT] gmail [D0T] com Achintha Gunasekara: contact@achinthagunasekara.com ## Important **Icons directory and it's files must be present on the path when running the application** ## Demo Download the Jar file and double click to run Or run java -jar SimpleJavaTextEditor.jar from the command line ## LICENSE Apache License, Version 2.0 or later; See the license.txt file in the notepad folder.
This is a simple text editor (notepad) written in Java. It also features a search engine. If you use the executable file "notepad.jar" and that it does not run, you can type "java -jar /your_notepad_directory/notepad.jar" in your terminal. ![Example Java Text Editor](Screenshots/screenshot4.png) - ##AUTHOR + ## AUTHOR ? + ### Base Application - Pierre-Henry SORIA ? ^^^^ + Pierre-Henry Soria ? ^^^^ + ### Modifications and Improvements Achintha Gunasekara - http://www.achinthagunasekara.com - ##CONTACT + ## CONTACT ? + - Pierre-Henry SORIA: pierrehs@hotmail.com + Pierre-Henry SORIA: pierrehenrysoria [AT] gmail [D0T] com Achintha Gunasekara: contact@achinthagunasekara.com - ##LICENSE - Apache License, Version 2.0 or later; See the license.txt file in the "NotePad" folder. + ## Important + + **Icons directory and it's files must be present on the path when running the application** + ## Demo Download the Jar file and double click to run Or run java -jar SimpleJavaTextEditor.jar from the command line - ##Important - icons directory and it's files must be present on the path when running the application + ## LICENSE + + Apache License, Version 2.0 or later; See the license.txt file in the notepad folder.
21
0.538462
12
9
8cccf9c901e04ba451661d98964bbe2acaea9a7a
app/views/lessons/edit/_sub_header.html.erb
app/views/lessons/edit/_sub_header.html.erb
<div class="SubHeader"> <div class="SubHeader__content"> <h1 class="SubHeader__heading"><%= @lesson_obj.name.present? ? @lesson_obj.name : "New lesson" %></h1> <div class="SubHeader__tools"> <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id, method: :delete), class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> <%= active_link_to "Save as Draft", '#', class: "SubHeader__tool Button Button--small Button--light Button--icon Button--icon--document Button--outline Button--icon-document" %> <%= active_link_to "Publish Lessson", publish_lesson_path(id: @lesson_obj.id, method: :put), class: "SubHeader__tool Button Button--small Button--icon Button--icon Button--icon--locked Button--dark Button--disabled" %> </div> </div> </div>
<div class="SubHeader"> <div class="SubHeader__content"> <h1 class="SubHeader__heading"><%= @lesson_obj.name.present? ? @lesson_obj.name : "New lesson" %></h1> <div class="SubHeader__tools"> <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id), method: :delete, class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> <%= active_link_to "Publish Lessson", publish_lesson_path(id: @lesson_obj.id, method: :put), class: "SubHeader__tool Button Button--small Button--icon Button--icon Button--icon--locked Button--dark Button--disabled" %> </div> </div> </div>
Remove save as draft button
Remove save as draft button
HTML+ERB
agpl-3.0
fablabbcn/SCOPESdf,fablabbcn/SCOPESdf,fablabbcn/SCOPESdf,fablabbcn/SCOPESdf
html+erb
## Code Before: <div class="SubHeader"> <div class="SubHeader__content"> <h1 class="SubHeader__heading"><%= @lesson_obj.name.present? ? @lesson_obj.name : "New lesson" %></h1> <div class="SubHeader__tools"> <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id, method: :delete), class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> <%= active_link_to "Save as Draft", '#', class: "SubHeader__tool Button Button--small Button--light Button--icon Button--icon--document Button--outline Button--icon-document" %> <%= active_link_to "Publish Lessson", publish_lesson_path(id: @lesson_obj.id, method: :put), class: "SubHeader__tool Button Button--small Button--icon Button--icon Button--icon--locked Button--dark Button--disabled" %> </div> </div> </div> ## Instruction: Remove save as draft button ## Code After: <div class="SubHeader"> <div class="SubHeader__content"> <h1 class="SubHeader__heading"><%= @lesson_obj.name.present? ? @lesson_obj.name : "New lesson" %></h1> <div class="SubHeader__tools"> <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id), method: :delete, class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> <%= active_link_to "Publish Lessson", publish_lesson_path(id: @lesson_obj.id, method: :put), class: "SubHeader__tool Button Button--small Button--icon Button--icon Button--icon--locked Button--dark Button--disabled" %> </div> </div> </div>
<div class="SubHeader"> <div class="SubHeader__content"> <h1 class="SubHeader__heading"><%= @lesson_obj.name.present? ? @lesson_obj.name : "New lesson" %></h1> <div class="SubHeader__tools"> - <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id, method: :delete), class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> ? ----------------- + <%= active_link_to "<span>Cancel</span>".html_safe, delete_lesson_path(id: @lesson_obj.id), method: :delete, class: "SubHeader__tool Button Button--small Button--light Button--outline Button--icon Button--icon--trash Button--no-label" %> ? +++++++++++++++++ - <%= active_link_to "Save as Draft", '#', class: "SubHeader__tool Button Button--small Button--light Button--icon Button--icon--document Button--outline Button--icon-document" %> <%= active_link_to "Publish Lessson", publish_lesson_path(id: @lesson_obj.id, method: :put), class: "SubHeader__tool Button Button--small Button--icon Button--icon Button--icon--locked Button--dark Button--disabled" %> </div> </div> </div>
3
0.2
1
2
6786bbcfbfb445b190fd03e602ee0b1a85abb2af
plugins/RSSCloud/RSSCloudQueueHandler.php
plugins/RSSCloud/RSSCloudQueueHandler.php
<?php /* * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2008, 2009, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) { $profile = $notice->getProfile(); $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } }
<?php /* * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2008, 2009, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) { try { $profile = $notice->getProfile(); } catch (Exception $e) { common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage()); return true; } $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } }
Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error
Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error
PHP
agpl-3.0
UngPirat/freesocial,UngPirat/freesocial,znarf/statusnet-ladistribution,brion/StatusNet,znarf/statusnet-ladistribution,shashi/StatusNet,gnusocial/mainline,shashi/StatusNet,studio666/gnu-social,zh/statusnet,charnimda/lgbtpzn-social,gnusocial/mainline,furtherfield/gnu-social,xebia/statusnet-oauth2,bankonme/gnu-social,bankonme/gnu-social,zh/statusnet,faulteh/gnu-social,d3vgru/StatusNet,shashi/StatusNet,gnusocial/mainline,Piratas/tortuga,furtherfield/gnu-social,foocorp/gnu-social,csarven/statusnet,minmb/statusnet,charlycoste/StatusNet,zcopley/StatusNet,faulteh/gnu-social,charnimda/lgbtpzn-social,sikevux/bsk-social,eXcomm/gnu-social,csarven/statusnet,zcopley/zcopleys-statusnet-clone,xebia/statusnet-oauth2,charnimda/lgbtpzn-social,chimo/social,Piratas/tortuga,eXcomm/gnu-social,minmb/statusnet,znarf/statusnet-ladistribution,zcopley/StatusNet,studio666/gnu-social,studio666/gnu-social,foocorp/gnu-social,faulteh/gnu-social,zh/statusnet,studio666/gnu-social,csarven/statusnet,brion/StatusNet,charlycoste/StatusNet,zcopley/StatusNet,csarven/statusnet,furtherfield/gnu-social,furtherfield/gnu-social,faulteh/gnu-social,bankonme/gnu-social,Piratas/tortuga,gnusocial/mainline,eXcomm/gnu-social,foocorp/gnu-social,bankonme/gnu-social,eXcomm/gnu-social,zcopley/zcopleys-statusnet-clone,zcopley/zcopleys-statusnet-clone,d3vgru/StatusNet,sikevux/bsk-social,chimo/social,chimo/social,Piratas/tortuga,sikevux/bsk-social,brion/StatusNet,d3vgru/StatusNet,xebia/statusnet-oauth2,sikevux/bsk-social,UngPirat/freesocial,minmb/statusnet,charlycoste/StatusNet
php
## Code Before: <?php /* * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2008, 2009, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) { $profile = $notice->getProfile(); $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } } ## Instruction: Drop RSSCloud queue items if the notice has a bogus profile, rather than attempting to rerun it due to the initial erroring-out. That's not a recoverable error ## Code After: <?php /* * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2008, 2009, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) { try { $profile = $notice->getProfile(); } catch (Exception $e) { common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage()); return true; } $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } }
<?php /* * StatusNet - the distributed open-source microblogging tool * Copyright (C) 2008, 2009, StatusNet, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } class RSSCloudQueueHandler extends QueueHandler { function transport() { return 'rsscloud'; } function handle($notice) { + try { - $profile = $notice->getProfile(); + $profile = $notice->getProfile(); ? ++++ + } catch (Exception $e) { + common_log(LOG_ERR, "Dropping RSSCloud item for notice with bogus profile: " . $e->getMessage()); + return true; + } $notifier = new RSSCloudNotifier(); return $notifier->notify($profile); } }
7
0.194444
6
1
44eddd351f516f8aed65232e81ff84188f874ed8
persistentdocument/import/ProductdataScriptDocumentElement.class.php
persistentdocument/import/ProductdataScriptDocumentElement.class.php
<?php /** * productupdater_ProductdataScriptDocumentElement * @package modules.productupdater.persistentdocument.import */ class productupdater_ProductdataScriptDocumentElement extends import_ScriptDocumentElement { /** * @return productupdater_persistentdocument_productdata */ protected function initPersistentDocument() { return productupdater_ProductdataService::getInstance()->getNewDocumentInstance(); } /** * @return f_persistentdocument_PersistentDocumentModel */ protected function getDocumentModel() { return f_persistentdocument_PersistentDocumentModel::getInstanceFromDocumentModelName('modules_productupdater/productdata'); } }
<?php /** * productupdater_ProductdataScriptDocumentElement * @package modules.productupdater.persistentdocument.import */ class productupdater_ProductdataScriptDocumentElement extends import_ScriptDocumentElement { /** * @return productupdater_persistentdocument_productdata */ protected function initPersistentDocument() { return productupdater_ProductdataService::getInstance()->getNewDocumentInstance(); } /** * @return f_persistentdocument_PersistentDocumentModel */ protected function getDocumentModel() { return f_persistentdocument_PersistentDocumentModel::getInstanceFromDocumentModelName('modules_productupdater/productdata'); } /** * @return array */ protected function getDocumentProperties() { $properties = parent::getDocumentProperties(); if (isset($properties['productQuery'])) { $query = $this->replaceRefIdInString($properties['productQuery']) ; $properties['productQuery'] = $query; } return $properties; } }
Handle {ref-id:...} in XML import for query properties.
[NEW] Handle {ref-id:...} in XML import for query properties.
PHP
agpl-3.0
RBSChange/modules.productupdater
php
## Code Before: <?php /** * productupdater_ProductdataScriptDocumentElement * @package modules.productupdater.persistentdocument.import */ class productupdater_ProductdataScriptDocumentElement extends import_ScriptDocumentElement { /** * @return productupdater_persistentdocument_productdata */ protected function initPersistentDocument() { return productupdater_ProductdataService::getInstance()->getNewDocumentInstance(); } /** * @return f_persistentdocument_PersistentDocumentModel */ protected function getDocumentModel() { return f_persistentdocument_PersistentDocumentModel::getInstanceFromDocumentModelName('modules_productupdater/productdata'); } } ## Instruction: [NEW] Handle {ref-id:...} in XML import for query properties. ## Code After: <?php /** * productupdater_ProductdataScriptDocumentElement * @package modules.productupdater.persistentdocument.import */ class productupdater_ProductdataScriptDocumentElement extends import_ScriptDocumentElement { /** * @return productupdater_persistentdocument_productdata */ protected function initPersistentDocument() { return productupdater_ProductdataService::getInstance()->getNewDocumentInstance(); } /** * @return f_persistentdocument_PersistentDocumentModel */ protected function getDocumentModel() { return f_persistentdocument_PersistentDocumentModel::getInstanceFromDocumentModelName('modules_productupdater/productdata'); } /** * @return array */ protected function getDocumentProperties() { $properties = parent::getDocumentProperties(); if (isset($properties['productQuery'])) { $query = $this->replaceRefIdInString($properties['productQuery']) ; $properties['productQuery'] = $query; } return $properties; } }
<?php /** * productupdater_ProductdataScriptDocumentElement * @package modules.productupdater.persistentdocument.import */ class productupdater_ProductdataScriptDocumentElement extends import_ScriptDocumentElement { /** * @return productupdater_persistentdocument_productdata */ protected function initPersistentDocument() { return productupdater_ProductdataService::getInstance()->getNewDocumentInstance(); } /** * @return f_persistentdocument_PersistentDocumentModel */ protected function getDocumentModel() { return f_persistentdocument_PersistentDocumentModel::getInstanceFromDocumentModelName('modules_productupdater/productdata'); } + + /** + * @return array + */ + protected function getDocumentProperties() + { + $properties = parent::getDocumentProperties(); + if (isset($properties['productQuery'])) + { + $query = $this->replaceRefIdInString($properties['productQuery']) ; + $properties['productQuery'] = $query; + } + return $properties; + } }
14
0.608696
14
0
0a3a68bb70b16916a881e7038dc061adbf3677c6
tests/span_level/emphasis/expected/intertwined.html
tests/span_level/emphasis/expected/intertwined.html
<p>one <em>two _three</em> four_ five</p> <p>one <strong>two _three</strong> four_ five</p> <p>one <em>two **three</em> four** five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two *three</em> four* five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two __three</em> four__ five</p> <p>one <strong>two _three</strong> four_ five</p>
<p>one <em>two _three</em> four_ five</p> <p>one <strong>two _three</strong> four_ five</p> <p>one <em>two <em><em>three</em> four</em></em> five</p> <p>one <em><em>two <em>three</em></em> four</em> five</p> <p>one <em>two *three</em> four* five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two <em><em>three</em> four</em></em> five</p> <p>one <em><em>two <em>three</em></em> four</em> five</p>
Fix expected output for emphasis as per the spec
Fix expected output for emphasis as per the spec
HTML
mit
vfmd/vfmd-test,vfmd/vfmd-test
html
## Code Before: <p>one <em>two _three</em> four_ five</p> <p>one <strong>two _three</strong> four_ five</p> <p>one <em>two **three</em> four** five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two *three</em> four* five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two __three</em> four__ five</p> <p>one <strong>two _three</strong> four_ five</p> ## Instruction: Fix expected output for emphasis as per the spec ## Code After: <p>one <em>two _three</em> four_ five</p> <p>one <strong>two _three</strong> four_ five</p> <p>one <em>two <em><em>three</em> four</em></em> five</p> <p>one <em><em>two <em>three</em></em> four</em> five</p> <p>one <em>two *three</em> four* five</p> <p>one <strong>two *three</strong> four* five</p> <p>one <em>two <em><em>three</em> four</em></em> five</p> <p>one <em><em>two <em>three</em></em> four</em> five</p>
<p>one <em>two _three</em> four_ five</p> <p>one <strong>two _three</strong> four_ five</p> - <p>one <em>two **three</em> four** five</p> ? ^^ ^^ + <p>one <em>two <em><em>three</em> four</em></em> five</p> ? ^^^^^^^^ ^^^^^^^^^^ - <p>one <strong>two *three</strong> four* five</p> + <p>one <em><em>two <em>three</em></em> four</em> five</p> <p>one <em>two *three</em> four* five</p> <p>one <strong>two *three</strong> four* five</p> - <p>one <em>two __three</em> four__ five</p> ? ^^ ^^ + <p>one <em>two <em><em>three</em> four</em></em> five</p> ? ^^^^^^^^ ^^^^^^^^^^ - <p>one <strong>two _three</strong> four_ five</p> + <p>one <em><em>two <em>three</em></em> four</em> five</p>
8
0.533333
4
4
3ac8e9d415b8f37e90b72e97083835c69e93018b
vmdb/app/models/configuration_manager_foreman.rb
vmdb/app/models/configuration_manager_foreman.rb
class ConfigurationManagerForeman < ConfigurationManager delegate :authentication_check, :authentication_status, :authentication_status_ok?, :connect, :verify_credentials, :with_provider_connection, :to => :provider def self.ems_type "foreman_configuration".freeze end def self.process_tasks(options) raise "No ids given to process_tasks" if options[:ids].blank? if options[:task] == "refresh_ems" refresh_ems(options[:ids]) create_audit_event(options) else options[:userid] ||= "system" unknown_task_exception(options) invoke_tasks_queue(options) end end def self.create_audit_event(options) msg = "'#{options[:task]}' initiated for #{options[:ids].length} #{ui_lookup(:table => 'ext_management_systems').pluralize}" AuditEvent.success(:event => options[:task], :target_class => base_class.name, :userid => options[:userid], :message => msg) end def self.unknown_task_exception(options) raise "Unknown task, #{options[:task]}" unless instance_methods.collect(&:to_s).include?(options[:task]) end def self.refresh_ems(provider_ids) EmsRefresh.queue_refresh(Array.wrap(provider_ids).collect { |id| [base_class, id] }) end end
class ConfigurationManagerForeman < ConfigurationManager delegate :authentication_check, :authentication_status, :authentication_status_ok?, :connect, :verify_credentials, :with_provider_connection, :to => :provider def self.ems_type "foreman_configuration".freeze end def self.process_tasks(options) raise "No ids given to process_tasks" if options[:ids].blank? if options[:task] == "refresh_ems" refresh_ems(options[:ids]) create_audit_event(options) else options[:userid] ||= "system" unknown_task_exception(options) invoke_tasks_queue(options) end end def self.create_audit_event(options) msg = "'#{options[:task]}' initiated for #{options[:ids].length} #{ui_lookup(:table => 'ext_management_systems').pluralize}" AuditEvent.success(:event => options[:task], :target_class => base_class.name, :userid => options[:userid], :message => msg) end def self.unknown_task_exception(options) raise "Unknown task, #{options[:task]}" unless instance_methods.collect(&:to_s).include?(options[:task]) end end
Use underlying refresh_ems impl for foreman
Use underlying refresh_ems impl for foreman https://bugzilla.redhat.com/show_bug.cgi?id=1211693
Ruby
apache-2.0
fbladilo/manageiq,mkanoor/manageiq,borod108/manageiq,mresti/manageiq,kbrock/manageiq,syncrou/manageiq,andyvesel/manageiq,maas-ufcg/manageiq,ailisp/manageiq,KevinLoiseau/manageiq,romaintb/manageiq,kbrock/manageiq,mfeifer/manageiq,israel-hdez/manageiq,juliancheal/manageiq,branic/manageiq,syncrou/manageiq,maas-ufcg/manageiq,mzazrivec/manageiq,tzumainn/manageiq,NickLaMuro/manageiq,mresti/manageiq,djberg96/manageiq,juliancheal/manageiq,KevinLoiseau/manageiq,josejulio/manageiq,pkomanek/manageiq,ManageIQ/manageiq,lpichler/manageiq,yaacov/manageiq,israel-hdez/manageiq,romanblanco/manageiq,durandom/manageiq,pkomanek/manageiq,fbladilo/manageiq,borod108/manageiq,romanblanco/manageiq,billfitzgerald0120/manageiq,romaintb/manageiq,d-m-u/manageiq,maas-ufcg/manageiq,ilackarms/manageiq,jntullo/manageiq,ManageIQ/manageiq,tinaafitz/manageiq,gmcculloug/manageiq,jrafanie/manageiq,branic/manageiq,billfitzgerald0120/manageiq,gmcculloug/manageiq,kbrock/manageiq,ilackarms/manageiq,NickLaMuro/manageiq,tzumainn/manageiq,tinaafitz/manageiq,chessbyte/manageiq,romanblanco/manageiq,skateman/manageiq,josejulio/manageiq,mfeifer/manageiq,mresti/manageiq,djberg96/manageiq,tinaafitz/manageiq,NaNi-Z/manageiq,NickLaMuro/manageiq,mfeifer/manageiq,NickLaMuro/manageiq,lpichler/manageiq,juliancheal/manageiq,lpichler/manageiq,matobet/manageiq,fbladilo/manageiq,andyvesel/manageiq,gerikis/manageiq,KevinLoiseau/manageiq,matobet/manageiq,chessbyte/manageiq,durandom/manageiq,mresti/manageiq,aufi/manageiq,hstastna/manageiq,ilackarms/manageiq,maas-ufcg/manageiq,tzumainn/manageiq,andyvesel/manageiq,syncrou/manageiq,mkanoor/manageiq,ailisp/manageiq,borod108/manageiq,jvlcek/manageiq,romaintb/manageiq,jameswnl/manageiq,branic/manageiq,d-m-u/manageiq,ManageIQ/manageiq,maas-ufcg/manageiq,jntullo/manageiq,hstastna/manageiq,romaintb/manageiq,mzazrivec/manageiq,tinaafitz/manageiq,durandom/manageiq,d-m-u/manageiq,lpichler/manageiq,mkanoor/manageiq,agrare/manageiq,ailisp/manageiq,mzazrivec/manageiq,ManageIQ/manageiq,juliancheal/manageiq,gmcculloug/manageiq,romaintb/manageiq,hstastna/manageiq,yaacov/manageiq,KevinLoiseau/manageiq,jrafanie/manageiq,borod108/manageiq,syncrou/manageiq,jvlcek/manageiq,jntullo/manageiq,romanblanco/manageiq,chessbyte/manageiq,mfeifer/manageiq,skateman/manageiq,pkomanek/manageiq,mkanoor/manageiq,aufi/manageiq,billfitzgerald0120/manageiq,NaNi-Z/manageiq,djberg96/manageiq,skateman/manageiq,matobet/manageiq,yaacov/manageiq,ilackarms/manageiq,jvlcek/manageiq,billfitzgerald0120/manageiq,KevinLoiseau/manageiq,fbladilo/manageiq,KevinLoiseau/manageiq,gmcculloug/manageiq,andyvesel/manageiq,gerikis/manageiq,NaNi-Z/manageiq,ailisp/manageiq,agrare/manageiq,jvlcek/manageiq,jameswnl/manageiq,chessbyte/manageiq,agrare/manageiq,josejulio/manageiq,jrafanie/manageiq,aufi/manageiq,maas-ufcg/manageiq,hstastna/manageiq,branic/manageiq,jntullo/manageiq,israel-hdez/manageiq,israel-hdez/manageiq,agrare/manageiq,jrafanie/manageiq,mzazrivec/manageiq,djberg96/manageiq,pkomanek/manageiq,NaNi-Z/manageiq,d-m-u/manageiq,gerikis/manageiq,romaintb/manageiq,jameswnl/manageiq,gerikis/manageiq,yaacov/manageiq,josejulio/manageiq,skateman/manageiq,jameswnl/manageiq,durandom/manageiq,aufi/manageiq,kbrock/manageiq,matobet/manageiq,tzumainn/manageiq
ruby
## Code Before: class ConfigurationManagerForeman < ConfigurationManager delegate :authentication_check, :authentication_status, :authentication_status_ok?, :connect, :verify_credentials, :with_provider_connection, :to => :provider def self.ems_type "foreman_configuration".freeze end def self.process_tasks(options) raise "No ids given to process_tasks" if options[:ids].blank? if options[:task] == "refresh_ems" refresh_ems(options[:ids]) create_audit_event(options) else options[:userid] ||= "system" unknown_task_exception(options) invoke_tasks_queue(options) end end def self.create_audit_event(options) msg = "'#{options[:task]}' initiated for #{options[:ids].length} #{ui_lookup(:table => 'ext_management_systems').pluralize}" AuditEvent.success(:event => options[:task], :target_class => base_class.name, :userid => options[:userid], :message => msg) end def self.unknown_task_exception(options) raise "Unknown task, #{options[:task]}" unless instance_methods.collect(&:to_s).include?(options[:task]) end def self.refresh_ems(provider_ids) EmsRefresh.queue_refresh(Array.wrap(provider_ids).collect { |id| [base_class, id] }) end end ## Instruction: Use underlying refresh_ems impl for foreman https://bugzilla.redhat.com/show_bug.cgi?id=1211693 ## Code After: class ConfigurationManagerForeman < ConfigurationManager delegate :authentication_check, :authentication_status, :authentication_status_ok?, :connect, :verify_credentials, :with_provider_connection, :to => :provider def self.ems_type "foreman_configuration".freeze end def self.process_tasks(options) raise "No ids given to process_tasks" if options[:ids].blank? if options[:task] == "refresh_ems" refresh_ems(options[:ids]) create_audit_event(options) else options[:userid] ||= "system" unknown_task_exception(options) invoke_tasks_queue(options) end end def self.create_audit_event(options) msg = "'#{options[:task]}' initiated for #{options[:ids].length} #{ui_lookup(:table => 'ext_management_systems').pluralize}" AuditEvent.success(:event => options[:task], :target_class => base_class.name, :userid => options[:userid], :message => msg) end def self.unknown_task_exception(options) raise "Unknown task, #{options[:task]}" unless instance_methods.collect(&:to_s).include?(options[:task]) end end
class ConfigurationManagerForeman < ConfigurationManager delegate :authentication_check, :authentication_status, :authentication_status_ok?, :connect, :verify_credentials, :with_provider_connection, :to => :provider def self.ems_type "foreman_configuration".freeze end def self.process_tasks(options) raise "No ids given to process_tasks" if options[:ids].blank? if options[:task] == "refresh_ems" refresh_ems(options[:ids]) create_audit_event(options) else options[:userid] ||= "system" unknown_task_exception(options) invoke_tasks_queue(options) end end def self.create_audit_event(options) msg = "'#{options[:task]}' initiated for #{options[:ids].length} #{ui_lookup(:table => 'ext_management_systems').pluralize}" AuditEvent.success(:event => options[:task], :target_class => base_class.name, :userid => options[:userid], :message => msg) end def self.unknown_task_exception(options) raise "Unknown task, #{options[:task]}" unless instance_methods.collect(&:to_s).include?(options[:task]) end - - def self.refresh_ems(provider_ids) - EmsRefresh.queue_refresh(Array.wrap(provider_ids).collect { |id| [base_class, id] }) - end end
4
0.097561
0
4
2d9cc9e9580beb65de2a41ab57b22fdc9ce9a721
lib/vines/web/command/init.rb
lib/vines/web/command/init.rb
module Vines module Web module Command class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 raise "vines gem required: gem install vines" unless vines_installed? domain = opts[:args].first.downcase base = File.expand_path(domain) `vines init #{domain}` unless File.exists?(base) web = File.expand_path("../../../../../public", __FILE__) FileUtils.cp_r(Dir.glob("#{web}/*"), 'web') puts "Web assets installed: #{domain}" `type open && open http://localhost:5280/` end private def vines_installed? require 'vines/version' rescue LoadError false end end end end end
module Vines module Web module Command class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 raise 'vines gem required: gem install vines' unless vines_installed? domain = opts[:args].first.downcase base = File.expand_path(domain) `vines init #{domain}` unless File.exists?(base) web = File.expand_path('../../../../../public', __FILE__) FileUtils.cp_r(Dir.glob("#{web}/*"), 'web') puts "Web assets installed: #{domain}" `type open && open http://localhost:5280/` end private def vines_installed? require 'vines/version' true rescue LoadError false end end end end end
Fix vines gem install check.
Fix vines gem install check.
Ruby
mit
negativecode/vines-web,negativecode/vines-web
ruby
## Code Before: module Vines module Web module Command class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 raise "vines gem required: gem install vines" unless vines_installed? domain = opts[:args].first.downcase base = File.expand_path(domain) `vines init #{domain}` unless File.exists?(base) web = File.expand_path("../../../../../public", __FILE__) FileUtils.cp_r(Dir.glob("#{web}/*"), 'web') puts "Web assets installed: #{domain}" `type open && open http://localhost:5280/` end private def vines_installed? require 'vines/version' rescue LoadError false end end end end end ## Instruction: Fix vines gem install check. ## Code After: module Vines module Web module Command class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 raise 'vines gem required: gem install vines' unless vines_installed? domain = opts[:args].first.downcase base = File.expand_path(domain) `vines init #{domain}` unless File.exists?(base) web = File.expand_path('../../../../../public', __FILE__) FileUtils.cp_r(Dir.glob("#{web}/*"), 'web') puts "Web assets installed: #{domain}" `type open && open http://localhost:5280/` end private def vines_installed? require 'vines/version' true rescue LoadError false end end end end end
module Vines module Web module Command class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 - raise "vines gem required: gem install vines" unless vines_installed? ? ^ ^ + raise 'vines gem required: gem install vines' unless vines_installed? ? ^ ^ domain = opts[:args].first.downcase base = File.expand_path(domain) `vines init #{domain}` unless File.exists?(base) - web = File.expand_path("../../../../../public", __FILE__) ? ^ ^ + web = File.expand_path('../../../../../public', __FILE__) ? ^ ^ FileUtils.cp_r(Dir.glob("#{web}/*"), 'web') puts "Web assets installed: #{domain}" `type open && open http://localhost:5280/` end private def vines_installed? require 'vines/version' + true rescue LoadError false end end end end end
5
0.16129
3
2
1531f17bda6969ce0c9433a52adc63262bdcc39a
waitless/app/controllers/restaurants_controller.rb
waitless/app/controllers/restaurants_controller.rb
class RestaurantsController < ApplicationController def index parameters = { term: params[:search], limit:10} params[:location].length > 0 ? @location_filter = params[:location] : @location_filter = "San Francisco" response = Yelp.client.search(@location_filter, parameters).as_json @results = [] for i in 0..9 @business = response['hash']['businesses'][i] @categories = [] @business['categories'].each do |category| @categories.push(category[0]) end @results.push( { name: "#{@business['name']}", location: @business['location']['display_address'], image: "#{@business['image_url']}", rating: @business['rating_img_url'], categories: @categories.join(', '), latitude: @business['location']['coordinate']['latitude'], longitude: @business['location']['coordinate']['longitude'] }) end render 'index', locals: {results: @results} #render json: array end def show render :_result end end
class RestaurantsController < ApplicationController def index parameters = { term: "restaurants", limit:20} @location_filter = "SOMA" iterator = 0 response = Yelp.client.search(@location_filter, parameters).as_json # @results = [] # for i in 0..9 # @business = response['hash']['businesses'][i] # @categories = [] # @business['categories'].each do |category| # @categories.push(category[0]) # end # @results.push( # { # name: "#{@business['name']}", # location: @business['location']['display_address'], # image: "#{@business['image_url']}", # rating: @business['rating_img_url'], # categories: @categories.join(', '), # latitude: @business['location']['coordinate']['latitude'], # longitude: @business['location']['coordinate']['longitude'] # }) # end # render 'index', locals: {results: @results} p "*" * 50 while iterator < 20 p response['hash']['businesses'][iterator]['id'] iterator += 1 end end def show render :_result end end
Add first 20 seeds, base loc SOMA
Add first 20 seeds, base loc SOMA
Ruby
mit
jchang2014/waitless,jengjao515/WaitLess,jchang2014/waitless,jengjao515/WaitLess,jchang2014/waitless,erictflores/waitless,erictflores/waitless,jengjao515/WaitLess,erictflores/waitless
ruby
## Code Before: class RestaurantsController < ApplicationController def index parameters = { term: params[:search], limit:10} params[:location].length > 0 ? @location_filter = params[:location] : @location_filter = "San Francisco" response = Yelp.client.search(@location_filter, parameters).as_json @results = [] for i in 0..9 @business = response['hash']['businesses'][i] @categories = [] @business['categories'].each do |category| @categories.push(category[0]) end @results.push( { name: "#{@business['name']}", location: @business['location']['display_address'], image: "#{@business['image_url']}", rating: @business['rating_img_url'], categories: @categories.join(', '), latitude: @business['location']['coordinate']['latitude'], longitude: @business['location']['coordinate']['longitude'] }) end render 'index', locals: {results: @results} #render json: array end def show render :_result end end ## Instruction: Add first 20 seeds, base loc SOMA ## Code After: class RestaurantsController < ApplicationController def index parameters = { term: "restaurants", limit:20} @location_filter = "SOMA" iterator = 0 response = Yelp.client.search(@location_filter, parameters).as_json # @results = [] # for i in 0..9 # @business = response['hash']['businesses'][i] # @categories = [] # @business['categories'].each do |category| # @categories.push(category[0]) # end # @results.push( # { # name: "#{@business['name']}", # location: @business['location']['display_address'], # image: "#{@business['image_url']}", # rating: @business['rating_img_url'], # categories: @categories.join(', '), # latitude: @business['location']['coordinate']['latitude'], # longitude: @business['location']['coordinate']['longitude'] # }) # end # render 'index', locals: {results: @results} p "*" * 50 while iterator < 20 p response['hash']['businesses'][iterator]['id'] iterator += 1 end end def show render :_result end end
class RestaurantsController < ApplicationController def index - parameters = { term: params[:search], limit:10} ? ^ ^ ^^^^^^^^^ ^ + parameters = { term: "restaurants", limit:20} ? ^^^^^ + ^^ ^ ^ - params[:location].length > 0 ? @location_filter = params[:location] : @location_filter = "San Francisco" + @location_filter = "SOMA" + iterator = 0 + response = Yelp.client.search(@location_filter, parameters).as_json + # @results = [] + # for i in 0..9 + # @business = response['hash']['businesses'][i] + # @categories = [] + # @business['categories'].each do |category| + # @categories.push(category[0]) + # end - response = Yelp.client.search(@location_filter, parameters).as_json - @results = [] - for i in 0..9 - @business = response['hash']['businesses'][i] - @categories = [] - @business['categories'].each do |category| - @categories.push(category[0]) - end - - @results.push( + # @results.push( ? ++ - { + # { ? ++ - name: "#{@business['name']}", + # name: "#{@business['name']}", ? ++ - location: @business['location']['display_address'], + # location: @business['location']['display_address'], ? ++ - image: "#{@business['image_url']}", + # image: "#{@business['image_url']}", ? ++ - rating: @business['rating_img_url'], + # rating: @business['rating_img_url'], ? ++ - categories: @categories.join(', '), + # categories: @categories.join(', '), ? ++ - latitude: @business['location']['coordinate']['latitude'], + # latitude: @business['location']['coordinate']['latitude'], ? ++ - longitude: @business['location']['coordinate']['longitude'] + # longitude: @business['location']['coordinate']['longitude'] ? ++ - }) + # }) ? ++ - end + # end ? ++ - render 'index', locals: {results: @results} + # render 'index', locals: {results: @results} ? ++ - #render json: array - + p "*" * 50 + while iterator < 20 + p response['hash']['businesses'][iterator]['id'] + iterator += 1 + end end def show render :_result end end
53
1.514286
28
25
96bb30afd35bd93339bbd777e01a2e01d7ee7a62
kubernetes/prod/deployment.yaml
kubernetes/prod/deployment.yaml
--- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:91e987717292633cb940eb0ce416dcddac9a6309 ports: - containerPort: 8000 envFrom: - configMapRef: name: moderator-prod - secretRef: name: moderator-prod
--- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:6d854c71e90dc3f3d6872c5c5e50a5490e9b6ee4 ports: - containerPort: 8000 envFrom: - configMapRef: name: moderator-prod - secretRef: name: moderator-prod
Upgrade to latest version for testing that Flux does its job
Upgrade to latest version for testing that Flux does its job
YAML
agpl-3.0
mozilla/mozmoderator,akatsoulas/mozmoderator,mozilla/mozmoderator,akatsoulas/mozmoderator,mozilla/mozmoderator,akatsoulas/mozmoderator
yaml
## Code Before: --- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:91e987717292633cb940eb0ce416dcddac9a6309 ports: - containerPort: 8000 envFrom: - configMapRef: name: moderator-prod - secretRef: name: moderator-prod ## Instruction: Upgrade to latest version for testing that Flux does its job ## Code After: --- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:6d854c71e90dc3f3d6872c5c5e50a5490e9b6ee4 ports: - containerPort: 8000 envFrom: - configMapRef: name: moderator-prod - secretRef: name: moderator-prod
--- apiVersion: apps/v1 kind: Deployment metadata: name: moderator namespace: moderator-prod labels: app: moderator spec: replicas: 1 selector: matchLabels: app: moderator template: metadata: labels: app: moderator spec: containers: - name: moderator-web - image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:91e987717292633cb940eb0ce416dcddac9a6309 ? ^ --- -------- ^^ -------------- + image: 783633885093.dkr.ecr.us-west-2.amazonaws.com/moderator:6d854c71e90dc3f3d6872c5c5e50a5490e9b6ee4 ? ^^^^^^^ ++++++++ ++++++++++ + ^^ ports: - containerPort: 8000 envFrom: - configMapRef: name: moderator-prod - secretRef: name: moderator-prod
2
0.071429
1
1
4aeb85126cf5f75d89cc466c3f7fea2f53702a13
bluebottle/votes/serializers.py
bluebottle/votes/serializers.py
from bluebottle.votes.models import Vote from bluebottle.bb_accounts.serializers import UserPreviewSerializer from rest_framework import serializers class VoteSerializer(serializers.ModelSerializer): voter = UserPreviewSerializer(read_only=True) project = serializers.SlugRelatedField(source='project', slug_field='slug') class Meta: model = Vote fields = ('id', 'voter', 'project')
from bluebottle.votes.models import Vote from bluebottle.bb_accounts.serializers import UserPreviewSerializer from rest_framework import serializers class VoteSerializer(serializers.ModelSerializer): voter = UserPreviewSerializer(read_only=True) project = serializers.SlugRelatedField(source='project', slug_field='slug') class Meta: model = Vote fields = ('id', 'voter', 'project', 'created')
Add created to votes api serializer
Add created to votes api serializer
Python
bsd-3-clause
onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle
python
## Code Before: from bluebottle.votes.models import Vote from bluebottle.bb_accounts.serializers import UserPreviewSerializer from rest_framework import serializers class VoteSerializer(serializers.ModelSerializer): voter = UserPreviewSerializer(read_only=True) project = serializers.SlugRelatedField(source='project', slug_field='slug') class Meta: model = Vote fields = ('id', 'voter', 'project') ## Instruction: Add created to votes api serializer ## Code After: from bluebottle.votes.models import Vote from bluebottle.bb_accounts.serializers import UserPreviewSerializer from rest_framework import serializers class VoteSerializer(serializers.ModelSerializer): voter = UserPreviewSerializer(read_only=True) project = serializers.SlugRelatedField(source='project', slug_field='slug') class Meta: model = Vote fields = ('id', 'voter', 'project', 'created')
from bluebottle.votes.models import Vote from bluebottle.bb_accounts.serializers import UserPreviewSerializer from rest_framework import serializers class VoteSerializer(serializers.ModelSerializer): voter = UserPreviewSerializer(read_only=True) project = serializers.SlugRelatedField(source='project', slug_field='slug') class Meta: model = Vote - fields = ('id', 'voter', 'project') + fields = ('id', 'voter', 'project', 'created') ? +++++++++++
2
0.166667
1
1
0cda955e0c6c0d467b8833085edfba462dc7de22
app/views/active_blog/blog_posts/_sidebar.html.erb
app/views/active_blog/blog_posts/_sidebar.html.erb
<%= blog_sidebar do %> <div class='section active_blog sidebar'> <h6>Recent posts</h6> </div> <ul class='unstyled recent'> <% @recent_blog_posts.each do |recent_blog_post| %> <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' itemscope itemprop='url' itemscope itemprop='url' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> <% end %> </ul> <% end %>
<%= blog_sidebar do %> <div class='section active_blog sidebar'> <h6>Recent posts</h6> </div> <ul class='unstyled recent'> <% @recent_blog_posts.each do |recent_blog_post| %> <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> <% end %> </ul> <% end %>
Remove schemas from side bar, for now
Remove schemas from side bar, for now
HTML+ERB
mit
mchung/active_blog,mchung/active_blog,mchung/active_blog
html+erb
## Code Before: <%= blog_sidebar do %> <div class='section active_blog sidebar'> <h6>Recent posts</h6> </div> <ul class='unstyled recent'> <% @recent_blog_posts.each do |recent_blog_post| %> <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' itemscope itemprop='url' itemscope itemprop='url' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> <% end %> </ul> <% end %> ## Instruction: Remove schemas from side bar, for now ## Code After: <%= blog_sidebar do %> <div class='section active_blog sidebar'> <h6>Recent posts</h6> </div> <ul class='unstyled recent'> <% @recent_blog_posts.each do |recent_blog_post| %> <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> <% end %> </ul> <% end %>
<%= blog_sidebar do %> <div class='section active_blog sidebar'> <h6>Recent posts</h6> </div> <ul class='unstyled recent'> <% @recent_blog_posts.each do |recent_blog_post| %> - <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' itemscope itemprop='url' itemscope itemprop='url' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> ? -------------------------------------------------- + <li><a href='<%= active_blog_post_path(recent_blog_post.cached_slug) %>' title='<%= recent_blog_post.title %>'><%= recent_blog_post.title %></a></li> <% end %> </ul> <% end %>
2
0.2
1
1
edc44f575416f27741c48adf07c0f0ace8c32994
plugins/eslint_d.vim
plugins/eslint_d.vim
"============================================================================ "File: eslint_d.vim "Description: Javascript syntax checker - using eslint "Maintainer: Maximilian Antoni "License: MIT <https://github.com/mantoni/eslint_d.js/blob/master/LICENSE> "============================================================================ if exists('g:loaded_syntastic_javascript_eslint_d_checker') finish endif let g:loaded_syntastic_javascript_eslint_d_checker = 1 let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_d_IsAvailable() dict if executable(self.getExec()) return 1 endif return 0 endfunction function! SyntaxCheckers_javascript_eslint_d_GetLocList() dict let makeprg = self.makeprgBuild({'fname_before': 'lint'}) let errorformat = \ '%E%f: line %l\, col %c\, Error - %m,' . \ '%W%f: line %l\, col %c\, Warning - %m' let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat}) return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint_d'}) let &cpo = s:save_cpo unlet s:save_cpo " vim: set sw=4 sts=4 et fdm=marker:
"============================================================================ "File: eslint_d.vim "Description: Javascript syntax checker - using eslint "Maintainer: Maximilian Antoni "License: MIT <https://github.com/mantoni/eslint_d.js/blob/master/LICENSE> "============================================================================ if exists('g:loaded_syntastic_javascript_eslint_d_checker') finish endif let g:loaded_syntastic_javascript_eslint_d_checker = 1 let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_d_IsAvailable() dict if executable(self.getExec()) return 1 endif return 0 endfunction function! SyntaxCheckers_javascript_eslint_d_GetLocList() dict let makeprg = self.makeprgBuild({'fname_before': '--format compact'}) let errorformat = \ '%E%f: line %l\, col %c\, Error - %m,' . \ '%W%f: line %l\, col %c\, Warning - %m' let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat}) return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint_d'}) let &cpo = s:save_cpo unlet s:save_cpo " vim: set sw=4 sts=4 et fdm=marker:
Remove `lint` command and add `--format compact` option
Remove `lint` command and add `--format compact` option
VimL
mit
mantoni/eslint_d.js,mantoni/eslint_d.js,ruanyl/eslint_d.js
viml
## Code Before: "============================================================================ "File: eslint_d.vim "Description: Javascript syntax checker - using eslint "Maintainer: Maximilian Antoni "License: MIT <https://github.com/mantoni/eslint_d.js/blob/master/LICENSE> "============================================================================ if exists('g:loaded_syntastic_javascript_eslint_d_checker') finish endif let g:loaded_syntastic_javascript_eslint_d_checker = 1 let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_d_IsAvailable() dict if executable(self.getExec()) return 1 endif return 0 endfunction function! SyntaxCheckers_javascript_eslint_d_GetLocList() dict let makeprg = self.makeprgBuild({'fname_before': 'lint'}) let errorformat = \ '%E%f: line %l\, col %c\, Error - %m,' . \ '%W%f: line %l\, col %c\, Warning - %m' let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat}) return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint_d'}) let &cpo = s:save_cpo unlet s:save_cpo " vim: set sw=4 sts=4 et fdm=marker: ## Instruction: Remove `lint` command and add `--format compact` option ## Code After: "============================================================================ "File: eslint_d.vim "Description: Javascript syntax checker - using eslint "Maintainer: Maximilian Antoni "License: MIT <https://github.com/mantoni/eslint_d.js/blob/master/LICENSE> "============================================================================ if exists('g:loaded_syntastic_javascript_eslint_d_checker') finish endif let g:loaded_syntastic_javascript_eslint_d_checker = 1 let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_d_IsAvailable() dict if executable(self.getExec()) return 1 endif return 0 endfunction function! SyntaxCheckers_javascript_eslint_d_GetLocList() dict let makeprg = self.makeprgBuild({'fname_before': '--format compact'}) let errorformat = \ '%E%f: line %l\, col %c\, Error - %m,' . \ '%W%f: line %l\, col %c\, Warning - %m' let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat}) return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint_d'}) let &cpo = s:save_cpo unlet s:save_cpo " vim: set sw=4 sts=4 et fdm=marker:
"============================================================================ "File: eslint_d.vim "Description: Javascript syntax checker - using eslint "Maintainer: Maximilian Antoni "License: MIT <https://github.com/mantoni/eslint_d.js/blob/master/LICENSE> "============================================================================ if exists('g:loaded_syntastic_javascript_eslint_d_checker') finish endif let g:loaded_syntastic_javascript_eslint_d_checker = 1 let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_eslint_d_IsAvailable() dict if executable(self.getExec()) return 1 endif return 0 endfunction function! SyntaxCheckers_javascript_eslint_d_GetLocList() dict - let makeprg = self.makeprgBuild({'fname_before': 'lint'}) ? ^^^ + let makeprg = self.makeprgBuild({'fname_before': '--format compact'}) ? ^^^^^^^^^^^^^^^ let errorformat = \ '%E%f: line %l\, col %c\, Error - %m,' . \ '%W%f: line %l\, col %c\, Warning - %m' let loclist = SyntasticMake({ \ 'makeprg': makeprg, \ 'errorformat': errorformat}) return loclist endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint_d'}) let &cpo = s:save_cpo unlet s:save_cpo " vim: set sw=4 sts=4 et fdm=marker:
2
0.045455
1
1