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
a6ba4188dbe01e68b6b4978a530eb2d8c951cf5a
test/maliciousness_test.rb
test/maliciousness_test.rb
require "test_helper" class MathToItex::BasicTest < Test::Unit::TestCase def test_it_does_not_error_on_nested_commands result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string } assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$' end def test_it_does_nothing_on_non_...
require "test_helper" class MathToItex::BasicTest < Test::Unit::TestCase def test_it_does_not_error_on_nested_commands result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string } assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$' end def test_it_does_nothing_on_non_...
Update the tests to match the dollar challenge
Update the tests to match the dollar challenge
Ruby
mit
gjtorikian/math-to-itex
ruby
## Code Before: require "test_helper" class MathToItex::BasicTest < Test::Unit::TestCase def test_it_does_not_error_on_nested_commands result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string } assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$' end def test_it_does...
require "test_helper" class MathToItex::BasicTest < Test::Unit::TestCase def test_it_does_not_error_on_nested_commands result = MathToItex('$$ a \ne \text{foo $\Gamma$ bar} b$$').convert { |string| string } assert_equal result, '$$ a \ne \text{foo $\Gamma$ bar} b$$' end def test_it_...
12
0.8
12
0
63fc7c0f1c1b0b250b546c61f79f9e921200e7e0
core/db/migrate/20130328130308_update_shipment_state_for_canceled_orders.rb
core/db/migrate/20130328130308_update_shipment_state_for_canceled_orders.rb
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration def up Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'") end def down end end
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration def up Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled') end def down end end
Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"
Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders" This reverts commit 0c04aade284df9eb06adee5fb6fb3b9db5d4f43a. rake test_app was getting SQLite3::SQLException: near ".": syntax error
Ruby
bsd-3-clause
Machpowersystems/spree_mach,orenf/spree,APohio/spree,Senjai/solidus,rajeevriitm/spree,alejandromangione/spree,firman/spree,archSeer/spree,keatonrow/spree,sfcgeorge/spree,project-eutopia/spree,vulk/spree,mindvolt/spree,urimikhli/spree,odk211/spree,rbngzlv/spree,ckk-scratch/solidus,athal7/solidus,yiqing95/spree,dotandbo/...
ruby
## Code Before: class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration def up Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'") end def down end end ## Instruction: Revert "Fix ambiguous column name in UpdateShipmentStateFo...
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration def up - Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'") ? ----------------- ^^...
2
0.25
1
1
132881b197f160363517c98bfba64458b9083968
frontend/codegen.yml
frontend/codegen.yml
schema: _schema.json documents: - ./src/**/*.{ts,tsx} - ./node_modules/gatsby-*/**/*.js generates: src/generated/graphql.ts: plugins: - add: | /* eslint-disable */ import { GatsbyImageProps } from 'gatsby-image' - "typescript" - ...
schema: _schema.json documents: - ./src/**/*.{ts,tsx} - ./node_modules/gatsby-image/**/*.js - ./node_modules/gatsby-transformer-sharp/**/*.js generates: src/generated/graphql.ts: plugins: - add: | /* eslint-disable */ import { GatsbyImageProps } fro...
Fix max files issue on github actions
Fix max files issue on github actions
YAML
mit
patrick91/pycon,patrick91/pycon
yaml
## Code Before: schema: _schema.json documents: - ./src/**/*.{ts,tsx} - ./node_modules/gatsby-*/**/*.js generates: src/generated/graphql.ts: plugins: - add: | /* eslint-disable */ import { GatsbyImageProps } from 'gatsby-image' - "typescript...
schema: _schema.json documents: - ./src/**/*.{ts,tsx} - - ./node_modules/gatsby-*/**/*.js ? ^ + - ./node_modules/gatsby-image/**/*.js ? ^^^^^ + - ./node_modules/gatsby-transformer-sharp/**/*.js generates: src/generated/graphql...
3
0.130435
2
1
0f0f533da69021fb24b91beffebbbaadab2454c4
test/enhancer.spec.js
test/enhancer.spec.js
import enhancer from '../src/enhancer' import createMockStorage from './utils/testStorage' describe('enhancer', () => { it('returns enhanced store with initial storage state', () => { const enhancedCreateStore = enhancer() expect(enhancedCreateStore).toBeInstanceOf(Function) }) })
import enhancer from '../src/enhancer' import createMockStorage from './utils/testStorage' describe('enhancer', () => { it('returns enhanced store with initial storage state', () => { const enhancedCreateStore = enhancer() expect(enhancedCreateStore).toBeInstanceOf(Function) }) it('sets up store with i...
Write test to verify enhancer
Write test to verify enhancer
JavaScript
mit
jerelmiller/redux-simple-auth
javascript
## Code Before: import enhancer from '../src/enhancer' import createMockStorage from './utils/testStorage' describe('enhancer', () => { it('returns enhanced store with initial storage state', () => { const enhancedCreateStore = enhancer() expect(enhancedCreateStore).toBeInstanceOf(Function) }) }) ## Inst...
import enhancer from '../src/enhancer' import createMockStorage from './utils/testStorage' describe('enhancer', () => { it('returns enhanced store with initial storage state', () => { const enhancedCreateStore = enhancer() expect(enhancedCreateStore).toBeInstanceOf(Function) }) + + it...
30
3
30
0
dbad2985590ac78364d5933f23c0a41f8ab9069b
roles/security/tasks/main.yml
roles/security/tasks/main.yml
--- - include: firewalld.yml sudo: true when: secure_firewalld - include: sshd.yml sudo: true when: secure_ssh - include: fail2ban.yml sudo: true when: secure_fail2ban # ipv6? Check it if you have it. - include: ipv6.yml sudo: true when: ansible_default_ipv6 != {} and secure_ipv6 - name: Add SSH keys ...
--- - include: firewalld.yml sudo: true when: secure_firewalld - include: sshd.yml sudo: true when: secure_ssh - include: fail2ban.yml sudo: true when: secure_fail2ban # ipv6? Check it if you have it. - include: ipv6.yml sudo: true when: ansible_default_ipv6 != {} and secure_ipv6 - name: Add SSH keys ...
Add internal CA trust to trust anchors list
Add internal CA trust to trust anchors list
YAML
mit
ryansb/workstation,ryansb/workstation,ryansb/workstation
yaml
## Code Before: --- - include: firewalld.yml sudo: true when: secure_firewalld - include: sshd.yml sudo: true when: secure_ssh - include: fail2ban.yml sudo: true when: secure_fail2ban # ipv6? Check it if you have it. - include: ipv6.yml sudo: true when: ansible_default_ipv6 != {} and secure_ipv6 - nam...
--- - include: firewalld.yml sudo: true when: secure_firewalld - include: sshd.yml sudo: true when: secure_ssh - include: fail2ban.yml sudo: true when: secure_fail2ban # ipv6? Check it if you have it. - include: ipv6.yml sudo: true when: ansible_default_ipv6 != {} and secu...
12
0.521739
12
0
77b5f81b67df21dcd96d2aac235b6b11aca0d26c
app/assets/javascripts/chapters.js
app/assets/javascripts/chapters.js
function create_section_listing() { $('div#sidebar h3').click(function(e) { window.scrollTo(0, 0); }); $('.section_title').each(function (i, e) { $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerContent) + "</a>"); just_added = $("div#sidebar #section_lis...
function create_section_listing() { $('div#sidebar h3').click(function(e) { window.scrollTo(0, 0); }); $('.section_title').each(function (i, e) { var content = e.innerText || e.textContent $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + content + "</a>"); just_added = $("d...
Improve JavaScript for generating section listing
Improve JavaScript for generating section listing
JavaScript
mit
yannvery/twist,radar/twist,radar/twist,doug-c/mttwist,RealSilo/twist,doug-c/mttwist,yannvery/twist,doug-c/mttwist,radar/twist,yannvery/twist,RealSilo/twist,RealSilo/twist
javascript
## Code Before: function create_section_listing() { $('div#sidebar h3').click(function(e) { window.scrollTo(0, 0); }); $('.section_title').each(function (i, e) { $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerContent) + "</a>"); just_added = $("div#side...
function create_section_listing() { $('div#sidebar h3').click(function(e) { window.scrollTo(0, 0); }); $('.section_title').each(function (i, e) { + var content = e.innerText || e.textContent - $("div#sidebar #section_listing").append("<a id='" + e.id + "_link'>" + (e.innerText || e.innerC...
3
0.142857
2
1
469198f9950e1f89a6f0f8d58385c960a3697c66
test/CodeGen/X86/2008-04-02-unnamedEH.ll
test/CodeGen/X86/2008-04-02-unnamedEH.ll
; RUN: llc < %s -disable-cfi | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin8" define void @_Z3bazv() { call void @0( ) ; <i32>:1 [#uses=0] ret void } define internal void...
; RUN: llc < %s | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin8" define void @_Z3bazv() { call void @0( ) ; <i32>:1 [#uses=0] ret void } define internal void @""() { cal...
Convert test to using cfi.
Convert test to using cfi. An unnamed global in llvm still produces a regular symbol. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@204488 91177308-0d34-0410-b5e6-96231b3b80d8
LLVM
bsd-2-clause
chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,a...
llvm
## Code Before: ; RUN: llc < %s -disable-cfi | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin8" define void @_Z3bazv() { call void @0( ) ; <i32>:1 [#uses=0] ret void } defi...
- ; RUN: llc < %s -disable-cfi | FileCheck %s ? ------------- + ; RUN: llc < %s | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "i386-apple-darwin8" define void @_Z3bazv...
6
0.375
4
2
3192792ee3a823b23db40e69751cc65df7e9b862
app/src/lib/dispatcher/error-handlers.ts
app/src/lib/dispatcher/error-handlers.ts
import { Dispatcher } from './index' import { GitError } from '../git/core' import { GitError as GitErrorType } from 'git-kitchen-sink' import { PopupType as popupType } from '../app-state' /** Handle errors by presenting them. */ export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promis...
import { Dispatcher } from './index' import { GitError } from '../git/core' import { GitError as GitErrorType } from 'git-kitchen-sink' import { PopupType as popupType } from '../app-state' /** Handle errors by presenting them. */ export async function defaultErrorHandler(error: Error, dispatcher: Dispatcher): Promis...
Update popup type for error handler
Update popup type for error handler
TypeScript
mit
artivilla/desktop,shiftkey/desktop,artivilla/desktop,hjobrien/desktop,artivilla/desktop,shiftkey/desktop,BugTesterTest/desktops,BugTesterTest/desktops,hjobrien/desktop,say25/desktop,desktop/desktop,BugTesterTest/desktops,gengjiawen/desktop,shiftkey/desktop,gengjiawen/desktop,j-f1/forked-desktop,gengjiawen/desktop,gengj...
typescript
## Code Before: import { Dispatcher } from './index' import { GitError } from '../git/core' import { GitError as GitErrorType } from 'git-kitchen-sink' import { PopupType as popupType } from '../app-state' /** Handle errors by presenting them. */ export async function defaultErrorHandler(error: Error, dispatcher: Dis...
import { Dispatcher } from './index' import { GitError } from '../git/core' import { GitError as GitErrorType } from 'git-kitchen-sink' import { PopupType as popupType } from '../app-state' /** Handle errors by presenting them. */ export async function defaultErrorHandler(error: Error, dispatcher: Dispa...
2
0.074074
1
1
a421a1f9313b4c1809cff77bf8be3e93394eab1d
spec/features/example_feature_spec.rb
spec/features/example_feature_spec.rb
require "spec_helper" RSpec.feature "Example Feature Spec" do scenario "When using Rack Test, it works" do visit "/users" expect(page).to have_text("Log in with your Rails Portal (development) account.") end scenario "When using Chrome, it works", js: true do visit "/users" expect(page).to have_...
require "spec_helper" RSpec.feature "Example Feature Spec" do scenario "When using Rack Test, it works" do visit "/users" expect(page).to have_text("Log in with your Rails Portal (development) account.") end scenario "When using Chrome, it works", js: true do visit "/users" expect(page).to have_...
Correct expectation in feature spec
Correct expectation in feature spec
Ruby
mit
concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse,concord-consortium/rigse
ruby
## Code Before: require "spec_helper" RSpec.feature "Example Feature Spec" do scenario "When using Rack Test, it works" do visit "/users" expect(page).to have_text("Log in with your Rails Portal (development) account.") end scenario "When using Chrome, it works", js: true do visit "/users" expec...
require "spec_helper" RSpec.feature "Example Feature Spec" do scenario "When using Rack Test, it works" do visit "/users" expect(page).to have_text("Log in with your Rails Portal (development) account.") end scenario "When using Chrome, it works", js: true do visit "/users" - ...
2
0.153846
1
1
2bc9a00ef4dafae696c6b04465020b73db01e096
features/ci.feature
features/ci.feature
Feature: CI Background: Given the temp directory is clean And I am in the temp directory Scenario: Installing Lobot on a rails3 project When I create a new Rails project And I vendor Lobot And I put Lobot in the Gemfile And I run bundle install And I run the Lobot generator Then ra...
Feature: CI Background: Given the temp directory is clean And I am in the temp directory Scenario: Installing Lobot on a rails3 project When I create a new Rails project And I vendor Lobot And I put Lobot in the Gemfile And I run bundle install And I run the Lobot generator for "Jenkin...
Update feature to match new generator param
Update feature to match new generator param
Cucumber
mit
pivotal/lobot,pivotal/lobot,pivotal/ciborg,pivotal/ciborg,pivotal/ciborg
cucumber
## Code Before: Feature: CI Background: Given the temp directory is clean And I am in the temp directory Scenario: Installing Lobot on a rails3 project When I create a new Rails project And I vendor Lobot And I put Lobot in the Gemfile And I run bundle install And I run the Lobot gener...
Feature: CI Background: Given the temp directory is clean And I am in the temp directory Scenario: Installing Lobot on a rails3 project When I create a new Rails project And I vendor Lobot And I put Lobot in the Gemfile And I run bundle install - And I run the Lob...
2
0.044444
1
1
0e8072191b3460ef770c55e306ac59d7433aa715
README.md
README.md
> Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not to mention an en...
*More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`* ## What is it? Alpha Social Club is a social environment for members to explore their sexuality in non-pornographic context. Sex is one of the most fundamental social activities. ## Key Values and Princi...
Update the outline for newly revised documentation.
Update the outline for newly revised documentation.
Markdown
mit
Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS,Alpha-Directorate/AlphaSSS
markdown
## Code Before: > Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forward, but it is also a way to bond with a romantic partner, a way to relieve the stress of daily life, not ...
+ *More information is available at [alphasocial.club](http://alphasocial.club) blog. Login: `admin / Alpha.Omega`* - > Sex. Almost everyone does it, but almost no one wants to talk about. It is quite the paradox when you consider how vital sex is to human life. Not only is it the act that propels our species forwar...
61
6.777778
56
5
26e3b85423f5c36aac46c963e8c2ea3ad5d21888
README.md
README.md
PHP Client for Adobe Connect's API (tested with v9) ================================================== At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)), instead, we just implement those that we usually use in our system. ## Installation using [Compos...
PHP Client for Adobe Connect's API (tested with v9) ================================================== At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)), instead, we just implement those that we usually use in our system. ## Installation using [Compos...
Add link to AC API reference
Add link to AC API reference
Markdown
apache-2.0
platforg/adobe-connect
markdown
## Code Before: PHP Client for Adobe Connect's API (tested with v9) ================================================== At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)), instead, we just implement those that we usually use in our system. ## Installati...
PHP Client for Adobe Connect's API (tested with v9) ================================================== At the moment, the client not implement methods for all the Adobe Connect's API actions (You're invited to do it :)), instead, we just implement those that we usually use in our system. ## Installation...
2
0.037037
1
1
c91ca5fd09f36ba446af376f4634dd23015f46d0
spec/support/json_request_helper.rb
spec/support/json_request_helper.rb
module JSONRequestHelper def put_json(path, attrs, headers = {}) put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers) end end RSpec.configuration.include JSONRequestHelper, :type => :request
module JSONRequestHelper def put_json(path, attrs, headers = {}) put path, attrs.to_json, {"CONTENT_TYPE" => "application/json"}.merge(headers) end end RSpec.configuration.include JSONRequestHelper, :type => :request
Fix put_json test helper to work with Rails 3.
Fix put_json test helper to work with Rails 3. Rails 3 integration stuff has some special handling for content-type, but this is done before the case etc. is normalised, so if this doesn't match the case that Rails uses internally, oddness ensues.
Ruby
mit
alphagov/router-api,alphagov/router-api
ruby
## Code Before: module JSONRequestHelper def put_json(path, attrs, headers = {}) put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers) end end RSpec.configuration.include JSONRequestHelper, :type => :request ## Instruction: Fix put_json test helper to work with Rails 3. Rails 3 integ...
module JSONRequestHelper def put_json(path, attrs, headers = {}) - put path, attrs.to_json, {"Content-Type" => "application/json"}.merge(headers) ? ^^^^^^^ ^^^ + put path, attrs.to_json, {"CONTENT_TYPE" => "application/json"}.merge(headers) ? ...
2
0.285714
1
1
49a1f21a090abf4e2214d431766e11769a0abec5
website/source/docs/providers/aws/r/db_subnet_group.html.markdown
website/source/docs/providers/aws/r/db_subnet_group.html.markdown
--- layout: "aws" page_title: "AWS: aws_db_subnet_group" sidebar_current: "docs-aws-resource-db-subnet-group" description: |- Provides an RDS DB subnet group resource. --- # aws\_db\_subnet\_group Provides an RDS DB subnet group resource. ## Example Usage ``` resource "aws_db_subnet_group" "default" { name = ...
--- layout: "aws" page_title: "AWS: aws_db_subnet_group" sidebar_current: "docs-aws-resource-db-subnet-group" description: |- Provides an RDS DB subnet group resource. --- # aws\_db\_subnet\_group Provides an RDS DB subnet group resource. ## Example Usage ``` resource "aws_db_subnet_group" "default" { name = ...
Use correct terms in DB Subnet Group docs
Use correct terms in DB Subnet Group docs
Markdown
mpl-2.0
apparentlymart/terraform,grubernaut/terraform,JDiPierro/terraform,fromonesrc/terraform,cwood/terraform,sorenmat/terraform,psytale/terraform,ryon/terraform,huydinhle/terraform,rnaveiras/terraform,crunchywelch/terraform,10thmagnitude/terraform,ephemeralsnow/terraform,hrach/hashicorp-terraform,TStraub-rms/terraform,monkey...
markdown
## Code Before: --- layout: "aws" page_title: "AWS: aws_db_subnet_group" sidebar_current: "docs-aws-resource-db-subnet-group" description: |- Provides an RDS DB subnet group resource. --- # aws\_db\_subnet\_group Provides an RDS DB subnet group resource. ## Example Usage ``` resource "aws_db_subnet_group" "defaul...
--- layout: "aws" page_title: "AWS: aws_db_subnet_group" sidebar_current: "docs-aws-resource-db-subnet-group" description: |- Provides an RDS DB subnet group resource. --- # aws\_db\_subnet\_group Provides an RDS DB subnet group resource. ## Example Usage ``` resource "aws_db_subne...
6
0.166667
3
3
c83d2fcfc0edd95b2771d8d265694b4c644b5a04
src/app/index.js
src/app/index.js
import React from 'react'; import styles from './styles'; import DevTools from './containers/DevTools'; import createRemoteStore from './store/createRemoteStore'; import ButtonBar from './components/ButtonBar'; export default ({ socketOptions }) => ( <div style={styles.container}> <DevTools store={createRemoteSt...
import React, { Component, PropTypes } from 'react'; import styles from './styles'; import DevTools from './containers/DevTools'; import createRemoteStore from './store/createRemoteStore'; import ButtonBar from './components/ButtonBar'; export default class extends Component { static propTypes = { socketOptions:...
Use React Component for the main container
Use React Component for the main container
JavaScript
mit
zalmoxisus/remotedev-app,zalmoxisus/remotedev-app
javascript
## Code Before: import React from 'react'; import styles from './styles'; import DevTools from './containers/DevTools'; import createRemoteStore from './store/createRemoteStore'; import ButtonBar from './components/ButtonBar'; export default ({ socketOptions }) => ( <div style={styles.container}> <DevTools store...
- import React from 'react'; + import React, { Component, PropTypes } from 'react'; import styles from './styles'; import DevTools from './containers/DevTools'; import createRemoteStore from './store/createRemoteStore'; import ButtonBar from './components/ButtonBar'; - export default ({ socketOptions }) => (...
30
2.5
23
7
04cdcf3448dfabc840bb14dee0b866e5e1b8affa
README.md
README.md
...
... ## Checklist ### Matchers - length (done) - type - contain - positive - true - false - null - empty - equal - above - least - below - most - within - property - match - string - keys - values - throw - respond - satisfy - close - members
Add a checklist to help me.
Add a checklist to help me.
Markdown
mit
bound1ess/essence
markdown
## Code Before: ... ## Instruction: Add a checklist to help me. ## Code After: ... ## Checklist ### Matchers - length (done) - type - contain - positive - true - false - null - empty - equal - above - least - below - most - within - property - match - string - keys - values - throw - respond - satisfy - close - ...
... + + ## Checklist + + ### Matchers + + - length (done) + - type + - contain + - positive + - true + - false + - null + - empty + - equal + - above + - least + - below + - most + - within + - property + - match + - string + - keys + - values + - throw + - respond + - satisfy + - close + - members +
30
15
30
0
e85da4fdc0d03654df99de201e674daf831927c1
.travis.yml
.travis.yml
language: python ##-- which python version(s) python: - "2.6" - "2.7" - "3.3" - "3.4" - "pypy" install: - "pip install -r test_requirements.txt --use-mirrors" ##-- run tests script: py.test ##-- choose git branches branches: only: - master notifications: email: on_success: never on_failu...
language: python ##-- which python version(s) python: - "2.6" - "2.7" - "3.3" - "3.4" - "pypy" install: - "pip install -r test_requirements.txt --use-mirrors" ##-- run tests script: py.test ##-- choose git branches branches: only: - master
Revert to default Travis notification settings
Revert to default Travis notification settings
YAML
bsd-3-clause
musicpax/funcy,ma-ric/funcy,Suor/funcy
yaml
## Code Before: language: python ##-- which python version(s) python: - "2.6" - "2.7" - "3.3" - "3.4" - "pypy" install: - "pip install -r test_requirements.txt --use-mirrors" ##-- run tests script: py.test ##-- choose git branches branches: only: - master notifications: email: on_success: ne...
language: python ##-- which python version(s) python: - "2.6" - "2.7" - "3.3" - "3.4" - "pypy" install: - "pip install -r test_requirements.txt --use-mirrors" ##-- run tests script: py.test ##-- choose git branches branches: only: - master - - notifications:...
5
0.2
0
5
a66d7398ea2154416830064bd8d3813466ef8fa3
README.md
README.md
[![Build Status](https://travis-ci.org/wiktor-k/infrastructure-tests.svg?branch=master)](https://travis-ci.org/wiktor-k/infrastructure-tests) This repository contains tests of the *metacode.biz* infrastructure. These tests always ask external services to asses the state of the infrastructure ## Running tests Runnin...
[![Build Status](https://travis-ci.org/wiktor-k/infrastructure-tests.svg?branch=master)](https://travis-ci.org/wiktor-k/infrastructure-tests) [![Dependency Status](https://dependencyci.com/github/wiktor-k/infrastructure-tests/badge)](https://dependencyci.com/github/wiktor-k/infrastructure-tests) This repository conta...
Add Dependency CI build status
Add Dependency CI build status
Markdown
apache-2.0
wiktor-k/infrastructure-tests
markdown
## Code Before: [![Build Status](https://travis-ci.org/wiktor-k/infrastructure-tests.svg?branch=master)](https://travis-ci.org/wiktor-k/infrastructure-tests) This repository contains tests of the *metacode.biz* infrastructure. These tests always ask external services to asses the state of the infrastructure ## Runni...
- [![Build Status](https://travis-ci.org/wiktor-k/infrastructure-tests.svg?branch=master)](https://travis-ci.org/wiktor-k/infrastructure-tests) + [![Build Status](https://travis-ci.org/wiktor-k/infrastructure-tests.svg?branch=master)](https://travis-ci.org/wiktor-k/infrastructure-tests) [![Dependency Status](https:/...
4
0.102564
2
2
42b24435bc5407e4cad219fca12b5003c37c4eb8
src/Algorithms/BubbleSort/README.md
src/Algorithms/BubbleSort/README.md
Bubble sort ============== ----- | int Array[N] | Runtime | |----------------|---------------| | 1000 | 30 ms | | 5000 | 398 ms | | 10000 | 1 sec. 624 ms | | 20000 | 6 sec. 219 ms | | 50000 | 39 sec. 609 ms | | 100000 ...
Bubble sort ============== ----- | int Array[N] | Runtime | |----------------|---------------| | 1000 | 30 ms | | 5000 | 398 ms | | 10000 | 1 sec. 624 ms | | 20000 | 6 sec. 219 ms | | 50000 | 39 sec. 609 ms | | 100000 ...
Add specs for one page (test)
Add specs for one page (test)
Markdown
apache-2.0
ogycode/Algorithms
markdown
## Code Before: Bubble sort ============== ----- | int Array[N] | Runtime | |----------------|---------------| | 1000 | 30 ms | | 5000 | 398 ms | | 10000 | 1 sec. 624 ms | | 20000 | 6 sec. 219 ms | | 50000 | 39 sec. 609 ms |...
Bubble sort ============== ----- | int Array[N] | Runtime | |----------------|---------------| | 1000 | 30 ms | | 5000 | 398 ms | | 10000 | 1 sec. 624 ms | | 20000 | 6 sec. 219 ms | | 50000 | 39 sec. 609 ms ...
7
0.538462
7
0
ddf099ff2f61d0a9e089de0e68efe9eb5f6391ce
src/templates/common/elements/how_to_cite.html
src/templates/common/elements/how_to_cite.html
<p> {{ author_str }}, {{ year_str }} “{{ title }}”, {{ journal_str|safe }} {{ issue_str }}. {{ pages_str|safe }} {{ doi_str|safe }} </p>
<p> {{ author_str }}, {{ year_str }} “{{ title }}”, {{ journal_str|safe }} {{ issue_str }}{% if pages_str %},{% else %}.{% endif %} {{ pages_str|safe }} {{ doi_str|safe }} </p>
Fix citation separator for pages
Fix citation separator for pages
HTML
agpl-3.0
BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway,BirkbeckCTP/janeway
html
## Code Before: <p> {{ author_str }}, {{ year_str }} “{{ title }}”, {{ journal_str|safe }} {{ issue_str }}. {{ pages_str|safe }} {{ doi_str|safe }} </p> ## Instruction: Fix citation separator for pages ## Code After: <p> {{ author_str }}, {{ year_str }} “{{ title }}”, {{ journal_str|sa...
<p> {{ author_str }}, {{ year_str }} “{{ title }}”, - {{ journal_str|safe }} {{ issue_str }}. + {{ journal_str|safe }} {{ issue_str }}{% if pages_str %},{% else %}.{% endif %} {{ pages_str|safe }} {{ doi_str|safe }} </p>
2
0.285714
1
1
6a096827f7024d6ace41117d15d78baf444fb137
ansible/roles/xsnippet/defaults/main.yml
ansible/roles/xsnippet/defaults/main.yml
xsnippet_api_image: xsnippet/xsnippet-api:latest xsnippet_db_image: docker.io/library/postgres:13 xsnippet_web_image: docker.io/library/nginx:stable xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz # xsnippet-db configuration xsnippet_db_name: xsnippet x...
xsnippet_api_image: xsnippet/xsnippet-api:latest xsnippet_db_image: docker.io/library/postgres:13 xsnippet_web_image: docker.io/library/nginx:stable xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/nightly/xsnippet-web.tar.gz # xsnippet-db configuration xsnippet_db_name: xsnippet xsnippe...
Use 'nightly' tag of xsnippet-web for deployment
Use 'nightly' tag of xsnippet-web for deployment Since we aren't doing active development now, it's easier for us to always deploy the latest commit. Especially taking into account that our master branch must always be green.
YAML
bsd-3-clause
xsnippet/xsnippet-infra
yaml
## Code Before: xsnippet_api_image: xsnippet/xsnippet-api:latest xsnippet_db_image: docker.io/library/postgres:13 xsnippet_web_image: docker.io/library/nginx:stable xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz # xsnippet-db configuration xsnippet_db_...
xsnippet_api_image: xsnippet/xsnippet-api:latest xsnippet_db_image: docker.io/library/postgres:13 xsnippet_web_image: docker.io/library/nginx:stable - xsnippet_web_assets: https://github.com/xsnippet/xsnippet-web/releases/download/v1.1.5/xsnippet-web-v1.1.5.tar.gz ? ...
2
0.071429
1
1
7955bc4c8d95aaf4b0e18b6007ea0c695acf40b3
documentation/src/docs/asciidoc/release-notes/release-notes-5.8.0-M1.adoc
documentation/src/docs/asciidoc/release-notes/release-notes-5.8.0-M1.adoc
[[release-notes-5.8.0-M1]] == 5.8.0-M1 *Date of Release:* ❓ *Scope:* ❓ For a complete list of all _closed_ issues and pull requests for this release, consult the link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository on GitHub. [[release-notes-5.8.0-M1-junit-platform]] === JUnit ...
[[release-notes-5.8.0-M1]] == 5.8.0-M1 *Date of Release:* ❓ *Scope:* ❓ For a complete list of all _closed_ issues and pull requests for this release, consult the link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository on GitHub. [[release-notes-5.8.0-M1-junit-platform]] === JUnit ...
Document regression fix in release notes
Document regression fix in release notes See #2408
AsciiDoc
epl-1.0
junit-team/junit-lambda
asciidoc
## Code Before: [[release-notes-5.8.0-M1]] == 5.8.0-M1 *Date of Release:* ❓ *Scope:* ❓ For a complete list of all _closed_ issues and pull requests for this release, consult the link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository on GitHub. [[release-notes-5.8.0-M1-junit-platf...
[[release-notes-5.8.0-M1]] == 5.8.0-M1 *Date of Release:* ❓ *Scope:* ❓ For a complete list of all _closed_ issues and pull requests for this release, consult the link:{junit5-repo}+/milestone/51?closed=1+[5.8 M1] milestone page in the JUnit repository on GitHub. [[release-notes-5.8.0-M1-j...
5
0.083333
4
1
db25105664381c5fcb24dd81e028418b87c59854
app/code/community/Billmate/PartPayment/Block/Adminhtml/System/Config/Form/Updateplans.php
app/code/community/Billmate/PartPayment/Block/Adminhtml/System/Config/Form/Updateplans.php
<?php /** * Created by PhpStorm. * User: jesper * Date: 2015-01-27 * Time: 15:52 */ class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function _construct() { parent::_construct(); $this->setTemplate('...
<?php /** * Created by PhpStorm. * User: jesper * Date: 2015-01-27 * Time: 15:52 */ class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function _construct() { parent::_construct(); $this->setTemplate('...
Fix for https ajax request update payment plans
Fix for https ajax request update payment plans
PHP
bsd-2-clause
Billmate/magento,Billmate/magento,Billmate/magento
php
## Code Before: <?php /** * Created by PhpStorm. * User: jesper * Date: 2015-01-27 * Time: 15:52 */ class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function _construct() { parent::_construct(); $thi...
<?php /** * Created by PhpStorm. * User: jesper * Date: 2015-01-27 * Time: 15:52 */ class Billmate_PartPayment_Block_Adminhtml_System_Config_Form_Updateplans extends Mage_Adminhtml_Block_System_Config_Form_Field { protected function _construct() { parent::_construct(); ...
2
0.051282
1
1
918cf9509487cc466368969bef074842ba6ad75d
src/main/java/edu/harvard/iq/dataverse/EMailValidator.java
src/main/java/edu/harvard/iq/dataverse/EMailValidator.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; imp...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; imp...
Allow null email to pass EmailValidator
Allow null email to pass EmailValidator Somewhere else will decide if it’s required
Java
apache-2.0
ekoi/DANS-DVN-4.6.1,jacksonokuhn/dataverse,bmckinney/dataverse-canonical,majorseitan/dataverse,majorseitan/dataverse,leeper/dataverse-1,majorseitan/dataverse,quarian/dataverse,quarian/dataverse,JayanthyChengan/dataverse,jacksonokuhn/dataverse,bmckinney/dataverse-canonical,leeper/dataverse-1,JayanthyChengan/dataverse,ja...
java
## Code Before: /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValid...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.harvard.iq.dataverse; import javax.validation.ConstraintValidator; import javax.validation.ConstraintVal...
19
0.452381
10
9
566ae40b7f546e3773933217506f917845c8b468
virtool/subtractions/db.py
virtool/subtractions/db.py
import virtool.utils PROJECTION = [ "_id", "file", "ready", "job" ] async def get_linked_samples(db, subtraction_id): cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"]) return [virtool.utils.base_processor(d) async for d in cursor]
import virtool.utils PROJECTION = [ "_id", "count", "file", "ready", "job", "nickname", "user" ] async def get_linked_samples(db, subtraction_id): cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"]) return [virtool.utils.base_processor(d) async for d in cursor]
Return more fields in subtraction find API response
Return more fields in subtraction find API response
Python
mit
igboyes/virtool,virtool/virtool,igboyes/virtool,virtool/virtool
python
## Code Before: import virtool.utils PROJECTION = [ "_id", "file", "ready", "job" ] async def get_linked_samples(db, subtraction_id): cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"]) return [virtool.utils.base_processor(d) async for d in cursor] ## Instruction: Return m...
import virtool.utils PROJECTION = [ "_id", + "count", "file", "ready", - "job" + "job", ? + + "nickname", + "user" ] async def get_linked_samples(db, subtraction_id): cursor = db.samples.find({"subtraction.id": subtraction_id}, ["name"]) retur...
5
0.384615
4
1
63033511d0f62de5993c5c609db0a981ed907603
README.md
README.md
Ghost Realms Internal Library
Ghost Realms Internal Library Please note: this library is not going to be documented, nor supported at any time. We are simply releasing it as a **convenience** to other developers and servers. ``` THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WA...
Add license and some info to the readme file
Add license and some info to the readme file
Markdown
mit
GhostRealms/RealmsLib
markdown
## Code Before: Ghost Realms Internal Library ## Instruction: Add license and some info to the readme file ## Code After: Ghost Realms Internal Library Please note: this library is not going to be documented, nor supported at any time. We are simply releasing it as a **convenience** to other developers and servers. ...
Ghost Realms Internal Library + + Please note: this library is not going to be documented, nor supported at any time. We are simply + releasing it as a **convenience** to other developers and servers. + + ``` + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT L...
13
13
13
0
d098c16225903e6f4270702b993cdc6cfdd327f5
requirements.txt
requirements.txt
pytz==2015.7 requests==2.9.1 xmltodict==0.10.1 numpy==1.10.4 matplotlib==1.5.1 scipy==0.17.0 nsapi==2.7.4 togeojsontiles==0.1.2 geojsoncontour==0.1.1
pytz==2015.7 requests==2.9.1 xmltodict==0.10.1 numpy==1.10.4 matplotlib==1.5.1 scipy==0.17.0 nsapi==2.7.4 #togeojsontiles==0.1.2 geojsoncontour==0.1.1 git+https://github.com/bartromgens/togeojsontiles.git
Switch to dev version of togeojsontiles
Switch to dev version of togeojsontiles
Text
mit
bartromgens/nsmaps,bartromgens/nsmaps,bartromgens/nsmaps
text
## Code Before: pytz==2015.7 requests==2.9.1 xmltodict==0.10.1 numpy==1.10.4 matplotlib==1.5.1 scipy==0.17.0 nsapi==2.7.4 togeojsontiles==0.1.2 geojsoncontour==0.1.1 ## Instruction: Switch to dev version of togeojsontiles ## Code After: pytz==2015.7 requests==2.9.1 xmltodict==0.10.1 numpy==1.10.4 matplotlib==1.5.1 sc...
pytz==2015.7 requests==2.9.1 xmltodict==0.10.1 numpy==1.10.4 matplotlib==1.5.1 scipy==0.17.0 nsapi==2.7.4 - togeojsontiles==0.1.2 + #togeojsontiles==0.1.2 ? + geojsoncontour==0.1.1 + git+https://github.com/bartromgens/togeojsontiles.git
3
0.333333
2
1
921df8b8309b40e7a69c2fa0434a51c1cce82c28
examples/rpc_pipeline.py
examples/rpc_pipeline.py
import asyncio import aiozmq.rpc class Handler(aiozmq.rpc.AttrHandler): @aiozmq.rpc.method def handle_some_event(self, a: int, b: int): pass @asyncio.coroutine def go(): listener = yield from aiozmq.rpc.serve_pipeline( Handler(), bind='tcp://*:*') listener_addr = next(iter(listener....
import asyncio import aiozmq.rpc from itertools import count class Handler(aiozmq.rpc.AttrHandler): def __init__(self): self.connected = False @aiozmq.rpc.method def remote_func(self, step, a: int, b: int): self.connected = True print("HANDLER", step, a, b) @asyncio.coroutine d...
Make rpc pipeine example stable
Make rpc pipeine example stable
Python
bsd-2-clause
claws/aiozmq,MetaMemoryT/aiozmq,asteven/aiozmq,aio-libs/aiozmq
python
## Code Before: import asyncio import aiozmq.rpc class Handler(aiozmq.rpc.AttrHandler): @aiozmq.rpc.method def handle_some_event(self, a: int, b: int): pass @asyncio.coroutine def go(): listener = yield from aiozmq.rpc.serve_pipeline( Handler(), bind='tcp://*:*') listener_addr = nex...
import asyncio import aiozmq.rpc + from itertools import count class Handler(aiozmq.rpc.AttrHandler): + def __init__(self): + self.connected = False + @aiozmq.rpc.method - def handle_some_event(self, a: int, b: int): - pass + def remote_func(self, step, a: int, b: int):...
21
0.636364
17
4
23a67389ad5e0a4e506b095977e00c5cb7144088
.gitlab-ci.yml
.gitlab-ci.yml
build: script: - cargo build -j2 --verbose - cargo test -j2 --verbose
build: script: - cargo --version - rustc --version - cargo build -j2 --verbose - cargo test -j2 --verbose
Check cargo/rustc version in CI
Check cargo/rustc version in CI Signed-off-by: Alberto Corona <0c11d463c749db5838e2c0e489bf869d531e5403@albertocorona.com>
YAML
bsd-3-clause
0X1A/yabs,0X1A/yabs,0X1A/yabs,0X1A/yabs
yaml
## Code Before: build: script: - cargo build -j2 --verbose - cargo test -j2 --verbose ## Instruction: Check cargo/rustc version in CI Signed-off-by: Alberto Corona <0c11d463c749db5838e2c0e489bf869d531e5403@albertocorona.com> ## Code After: build: script: ...
build: script: + - cargo --version + - rustc --version - cargo build -j2 --verbose - cargo test -j2 --verbose
2
0.5
2
0
782922f91ad8e44be0bad06460d03d1967aa475a
offlineimap/madcore.yaml
offlineimap/madcore.yaml
- id: offlineimap type: plugin image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png description: Copy emails from IMAP server to local folder bullets: - OfflineIMAP text_active: Active text_buy: "$2.99" text_inactive: Inactive text_prerequesite: Prerequisite missing fra...
- id: offlineimap type: plugin image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png description: Copy emails from IMAP server to local folder bullets: - OfflineIMAP text_active: Active text_buy: "$2.99" text_inactive: Inactive text_prerequesite: Prerequisite missing fra...
Move parameter from global to job, and remove unnecessary
Move parameter from global to job, and remove unnecessary
YAML
mit
madcore-ai/plugins
yaml
## Code Before: - id: offlineimap type: plugin image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png description: Copy emails from IMAP server to local folder bullets: - OfflineIMAP text_active: Active text_buy: "$2.99" text_inactive: Inactive text_prerequesite: Prerequisi...
- id: offlineimap type: plugin image: https://wiki.madcore.ai/_media/app/iconproduct-plugin-offlineimap-001.png description: Copy emails from IMAP server to local folder bullets: - OfflineIMAP text_active: Active text_buy: "$2.99" text_inactive: Inactive text_prerequesite: Prereq...
11
0.392857
3
8
c5acee359196643ed7e72bf467ee4fde57387a74
app/assets/json/manifest.json.erb
app/assets/json/manifest.json.erb
{ "name": "Package Tracker", "shortname": "Tracker", "start_url": "/", "display": "standalone", "theme_color": "#f7b551", "background_color": "#ffffff", "icons": [ { "src": "<%= asset_path 'launcher-icon-2x.png' %>", "sizes": "96x96", "type": "image/png" }, { "src": "<%...
{ "name": "Package Tracker", "shortname": "Tracker", "start_url": "/", "display": "browser", "theme_color": "#f7b551", "background_color": "#ffffff", "icons": [ { "src": "<%= asset_path 'launcher-icon-2x.png' %>", "sizes": "96x96", "type": "image/png" }, { "src": "<%= a...
Change manifest display to browser
Change manifest display to browser
HTML+ERB
mit
coreyja/package-tracker,coreyja/package-tracker,coreyja/package-tracker
html+erb
## Code Before: { "name": "Package Tracker", "shortname": "Tracker", "start_url": "/", "display": "standalone", "theme_color": "#f7b551", "background_color": "#ffffff", "icons": [ { "src": "<%= asset_path 'launcher-icon-2x.png' %>", "sizes": "96x96", "type": "image/png" }, { ...
{ "name": "Package Tracker", "shortname": "Tracker", "start_url": "/", - "display": "standalone", + "display": "browser", "theme_color": "#f7b551", "background_color": "#ffffff", "icons": [ { "src": "<%= asset_path 'launcher-icon-2x.png' %>", "sizes": "96x96", ...
2
0.08
1
1
8774517714c8c8a7f7a2be9316a23497adfa9f59
pi_gpio/urls.py
pi_gpio/urls.py
from pi_gpio import app, socketio from flask.ext import restful from flask import render_template from handlers import PinList, PinDetail api = restful.Api(app) api.add_resource(PinList, '/api/v1/pin') api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>') import RPi.GPIO as GPIO def event_callback(pin): ...
from pi_gpio import app, socketio from flask.ext import restful from flask import render_template from handlers import PinList, PinDetail from events import PinEventManager api = restful.Api(app) api.add_resource(PinList, '/api/v1/pin') api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>') @app.route('/', def...
Call event manager in index route
Call event manager in index route
Python
mit
projectweekend/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,thijstriemstra/Pi-GPIO-Server,projectweekend/Pi-GPIO-Server
python
## Code Before: from pi_gpio import app, socketio from flask.ext import restful from flask import render_template from handlers import PinList, PinDetail api = restful.Api(app) api.add_resource(PinList, '/api/v1/pin') api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>') import RPi.GPIO as GPIO def event_cal...
from pi_gpio import app, socketio from flask.ext import restful from flask import render_template from handlers import PinList, PinDetail + from events import PinEventManager api = restful.Api(app) api.add_resource(PinList, '/api/v1/pin') api.add_resource(PinDetail, '/api/v1/pin/<string:pin_num>') ...
9
0.409091
2
7
64bdf4da9cdc9aab9a39042c556bc753e86fe4f5
README.md
README.md
Gradle webapp version plugin ============================ This plugin builds a static `version.json` file containing project build & version information and includes it in the .war distributable. Supported CI systems -------------------- * TeamCity * Thoughtworks GO How to use ---------- [Apply the plugin](https:/...
Gradle webapp version plugin ============================ [![Build Status](https://travis-ci.org/LittleMikeDev/gradle-webapp-version.svg?branch=master)](https://travis-ci.org/LittleMikeDev/gradle-webapp-version) [![codecov.io](http://codecov.io/github/LittleMikeDev/gradle-webapp-version/coverage.svg?branch=master)](ht...
Add build & coverage badges
Add build & coverage badges
Markdown
bsd-2-clause
LittleMikeDev/gradle-webapp-version,LittleMikeDev/gradle-webapp-version
markdown
## Code Before: Gradle webapp version plugin ============================ This plugin builds a static `version.json` file containing project build & version information and includes it in the .war distributable. Supported CI systems -------------------- * TeamCity * Thoughtworks GO How to use ---------- [Apply the...
Gradle webapp version plugin ============================ + + [![Build Status](https://travis-ci.org/LittleMikeDev/gradle-webapp-version.svg?branch=master)](https://travis-ci.org/LittleMikeDev/gradle-webapp-version) + [![codecov.io](http://codecov.io/github/LittleMikeDev/gradle-webapp-version/coverage.svg?branch=m...
3
0.1
3
0
57b26b26504e5578134ffedd9a99346f306ef14c
.github/workflows/deploy-latest.yml
.github/workflows/deploy-latest.yml
name: Deploy Containers on: push: branches: - master jobs: deploy-latest-containers: name: Github Registry as latest runs-on: ubuntu-latest strategy: matrix: image: - php-apache - nginx - fpm - fpm-dev - admin - migrate...
name: Deploy Containers on: push: branches: - master jobs: deploy-latest-containers: name: Github Registry as latest runs-on: ubuntu-latest strategy: matrix: image: - php-apache - nginx - fpm - fpm-dev - admin - migrate...
Deploy containers to docker hub
Deploy containers to docker hub Until Github figures out some issues with their package registry we need to send our containers to docker.
YAML
mit
thecoolestguy/ilios,ilios/ilios,dartajax/ilios,dartajax/ilios,Trott/ilios,thecoolestguy/ilios,Trott/ilios,stopfstedt/ilios,stopfstedt/ilios,ilios/ilios
yaml
## Code Before: name: Deploy Containers on: push: branches: - master jobs: deploy-latest-containers: name: Github Registry as latest runs-on: ubuntu-latest strategy: matrix: image: - php-apache - nginx - fpm - fpm-dev - admin ...
name: Deploy Containers on: push: branches: - master jobs: deploy-latest-containers: name: Github Registry as latest runs-on: ubuntu-latest strategy: matrix: image: - php-apache - nginx - fpm - fpm-dev ...
26
0.764706
26
0
0d5fd85136754689f40de6bc06ffea2e0543d897
src/Furniture/UserBundle/Killer/Subscriber/CollectSessionSubscriber.php
src/Furniture/UserBundle/Killer/Subscriber/CollectSessionSubscriber.php
<?php namespace Furniture\UserBundle\Killer\Subscriber; use Furniture\UserBundle\Killer\Killer; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInt...
<?php namespace Furniture\UserBundle\Killer\Subscriber; use Furniture\UserBundle\Killer\Killer; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKernel\HttpKernelInt...
Change if statement to method call instead compare
Change if statement to method call instead compare
PHP
mit
Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f,Viktor-s/f
php
## Code Before: <?php namespace Furniture\UserBundle\Killer\Subscriber; use Furniture\UserBundle\Killer\Killer; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKern...
<?php namespace Furniture\UserBundle\Killer\Subscriber; use Furniture\UserBundle\Killer\Killer; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpKernel\Event\GetResponseEvent; use Symfony\Component\HttpKe...
4
0.067797
2
2
d11f1983a82c416973f1b58cbeb8b8dd1f1f6033
index.js
index.js
var Button = require('./dist/components/Button.js').default; var Title = require('./dist/components/Title.js').default; var Divider = require('./dist/components/Divider.js').default; var NumberField = require('./dist/components/NumberField.js').default; var TextField = require('./di...
var Button = require('./dist/components/Button.js').default; var Divider = require('./dist/components/Divider.js').default; var Expand = require('./dist/components/Expand.js').default; var Icon = require('./dist/components/Icon.js').default; var Menu = require('./dist/com...
Add components to export and alphebetize
Add components to export and alphebetize
JavaScript
mit
ryanwade/react-foundation-components,ryanwade/react-foundation-components
javascript
## Code Before: var Button = require('./dist/components/Button.js').default; var Title = require('./dist/components/Title.js').default; var Divider = require('./dist/components/Divider.js').default; var NumberField = require('./dist/components/NumberField.js').default; var TextField ...
var Button = require('./dist/components/Button.js').default; + var Divider = require('./dist/components/Divider.js').default; + var Expand = require('./dist/components/Expand.js').default; + var Icon = require('./dist/components/Icon.js').default; + var Menu = require('...
26
1.529412
18
8
3d06be213f7dc2c98cf77ddd497a603af2671e53
nbt/__init__.py
nbt/__init__.py
__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION)
__all__ = ["nbt", "world", "region", "chunk"] from . import * VERSION = (1, 3) def _get_version(): """Return the NBT version as string.""" return ".".join([str(v) for v in VERSION])
Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes
Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes
Python
mit
twoolie/NBT,cburschka/NBT,macfreek/NBT,devmario/NBT,fwaggle/NBT
python
## Code Before: __all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION) ## Instruction: Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes ## Code After: __all__ = ...
- __all__ = ["chunk", "region", "world", "nbt"] + __all__ = ["nbt", "world", "region", "chunk"] from . import * VERSION = (1, 3) def _get_version(): - return ".".join(VERSION) + """Return the NBT version as string.""" + return ".".join([str(v) for v in VERSION])
5
0.714286
3
2
d213c1ec81036667da92cc7b30ce1764c15c5492
roles/base/tasks/main.yml
roles/base/tasks/main.yml
--- - include: create_swap_file.yml when: create_swap_file tags: swap - name: Ensure bash, OpenSSl, and libssl are the latest versions apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest with_items: - bash - openssl - libssl-dev - libssl-doc tags: packages - name: Install ...
--- - include: create_swap_file.yml when: create_swap_file tags: swap - name: Ensure bash, OpenSSl, and libssl are the latest versions apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest with_items: - bash - openssl - libssl-dev - libssl-doc tags: packages - name: Install ...
Add packages required for Scipy.
Add packages required for Scipy.
YAML
mit
meilinger/firecares-ansible,ROGUE-JCTD/vida-ansible,FireCARES/firecares-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ProminentEdge/flintlock-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,ROGUE-JCTD/vida-ansible,FireCARES/firecares-ansible,FireCARES/firecares-ansible,meilinger/firecares-ansible,Prom...
yaml
## Code Before: --- - include: create_swap_file.yml when: create_swap_file tags: swap - name: Ensure bash, OpenSSl, and libssl are the latest versions apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest with_items: - bash - openssl - libssl-dev - libssl-doc tags: packages ...
--- - include: create_swap_file.yml when: create_swap_file tags: swap - name: Ensure bash, OpenSSl, and libssl are the latest versions apt: name={{ item }} update_cache={{ update_apt_cache }} state=latest with_items: - bash - openssl - libssl-dev - libssl-doc tags...
4
0.081633
4
0
859843bd3a90a97a0dd0049088903aed6b6e50ce
.travis.yml
.travis.yml
language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - mysql -e 'CREATE DATABASE concrete5_tests;' - cd web/concrete - composer install - cd...
language: php sudo: false php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - mysql -e 'CREATE DATABASE concrete5_tests;' - cd web/concrete - composer in...
Use container-based infrastructure on Travis CI
Use container-based infrastructure on Travis CI http://docs.travis-ci.com/user/workers/container-based-infrastructure/ Former-commit-id: bf38821ce2dcb37e8248d7a273eb1b23c4e5911e
YAML
mit
jaromirdalecky/concrete5,deek87/concrete5,acliss19xx/concrete5,olsgreen/concrete5,MrKarlDilkington/concrete5,biplobice/concrete5,deek87/concrete5,KorvinSzanto/concrete5,triplei/concrete5-8,a3020/concrete5,jaromirdalecky/concrete5,haeflimi/concrete5,deek87/concrete5,mainio/concrete5,hissy/concrete5,biplobice/concrete5,h...
yaml
## Code Before: language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - mysql -e 'CREATE DATABASE concrete5_tests;' - cd web/concrete - compose...
language: php + sudo: false php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm before_script: - bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "short_open_tag = On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;' - mysql -e 'CREATE DATABASE concrete5_tests;' - cd ...
1
0.041667
1
0
917a0d89e7e4dcfe2d13d2305c18ab88a48548c7
tests/tasks/pre.yml
tests/tasks/pre.yml
--- - name: install dependencies apt: name: - openssh-client state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" - name: add ssh directory file: path: "{{ autossh_tunnel_client_ssh_directory }}" ...
--- - name: install dependencies apt: name: - openssh-client state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" - name: add ssh directory file: path: "{{ autossh_tunnel_client_ssh_directory }}" ...
Fix failing tests on 20.04
Fix failing tests on 20.04
YAML
mit
Oefenweb/ansible-autossh-tunnel-client
yaml
## Code Before: --- - name: install dependencies apt: name: - openssh-client state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" - name: add ssh directory file: path: "{{ autossh_tunnel_client_ssh_di...
--- - name: install dependencies apt: name: - openssh-client state: "{{ apt_install_state | default('latest') }}" update_cache: true cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}" - name: add ssh directory file: path: "{{ autossh_tunnel_clien...
6
0.171429
6
0
56545753e1a8c520a0fe099e3155c68e8956fd6e
.travis.yml
.travis.yml
language: R sudo: required bioc_required: true warnings_are_errors: true
language: R sudo: required bioc_required: true bioc_packages: - BiocCheck warnings_are_errors: true after_script: - ls -lah - FILE=$(ls -1t *.tar.gz | head -n 1) - Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")"
Test out adding BiocCheck to Travis CI
Test out adding BiocCheck to Travis CI
YAML
bsd-2-clause
oneillkza/ContiBAIT,oneillkza/ContiBAIT,rareaquaticbadger/ContiBAIT,rareaquaticbadger/ContiBAIT
yaml
## Code Before: language: R sudo: required bioc_required: true warnings_are_errors: true ## Instruction: Test out adding BiocCheck to Travis CI ## Code After: language: R sudo: required bioc_required: true bioc_packages: - BiocCheck warnings_are_errors: true after_script: - ls -lah - FILE=$(ls -1t *.tar.gz | h...
language: R sudo: required bioc_required: true + bioc_packages: + - BiocCheck warnings_are_errors: true + + after_script: + - ls -lah + - FILE=$(ls -1t *.tar.gz | head -n 1) + - Rscript -e "library(BiocCheck); BiocCheck(\"${FILE}\")"
7
1.75
7
0
f85f74b99f602d72a87f91885f4c66538b74834f
.travis.yml
.travis.yml
--- language: python python: "2.7" sudo: required dist: trusty services: - docker env: matrix: - IMAGE_NAME="ubuntu-upstart:14.04" - IMAGE_NAME="ubuntu:16.04-builded" - IMAGE_NAME="debian:8-builded" - IMAGE_NAME="debian:9-builded" - IMAGE_NAME="centos:7-builded" - IMAGE_NAME="centos:6-buil...
--- language: python python: "2.7" sudo: required dist: trusty services: - docker env: matrix: - IMAGE_NAME="ubuntu-upstart:14.04" - IMAGE_NAME="ubuntu:16.04-builded" - IMAGE_NAME="debian:8-builded" - IMAGE_NAME="debian:9-builded" - IMAGE_NAME="centos:7-builded" - IMAGE_NAME="centos:6-buil...
Disable Fedora testing, as PostgreSQL v9.3 doesn't exist
Disable Fedora testing, as PostgreSQL v9.3 doesn't exist
YAML
mit
silverlogic/postgresql,numerigraphe/postgresql,ANXS/postgresql
yaml
## Code Before: --- language: python python: "2.7" sudo: required dist: trusty services: - docker env: matrix: - IMAGE_NAME="ubuntu-upstart:14.04" - IMAGE_NAME="ubuntu:16.04-builded" - IMAGE_NAME="debian:8-builded" - IMAGE_NAME="debian:9-builded" - IMAGE_NAME="centos:7-builded" - IMAGE_NAM...
--- language: python python: "2.7" sudo: required dist: trusty services: - docker env: matrix: - IMAGE_NAME="ubuntu-upstart:14.04" - IMAGE_NAME="ubuntu:16.04-builded" - IMAGE_NAME="debian:8-builded" - IMAGE_NAME="debian:9-builded" - IMAGE_NAME="centos:7-builded"...
2
0.057143
1
1
a51197194f934b1741a2ca9c0913cbc4cd63b39e
tests/language/constructor/missing_initializer_test.dart
tests/language/constructor/missing_initializer_test.dart
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Test that it is an error for a class with no generative constructors to // have a final instance var...
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Test that it is an error for a class with no generative constructors to // have a final instance var...
Fix test for abstract field, not impelemnetd by the mixin application.
Fix test for abstract field, not impelemnetd by the mixin application. Change-Id: I1d12a70a82a859d57516948672ed6a931904ae7a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161626 Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com> Reviewed-by: Leaf Petersen <9bef692239b5f624cec...
Dart
bsd-3-clause
dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk,dart-lang/sdk
dart
## Code Before: // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Test that it is an error for a class with no generative constructors to // have a fi...
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Test that it is an error for a class with no generative constructors to // have a final ...
2
0.040816
2
0
ea2026170ea03ae197b0053ca84d34fd58ba3ff9
.travis.yml
.travis.yml
language: objective-c branches: only: - master git: submodules: false before_install: - git submodule update --init --recursive - bundle install podfile: ./Podfile xcode_workspace: ./Devbeers.xcworkspace xcode_scheme: Devbeers script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devb...
language: objective-c branches: only: - master git: submodules: false before_install: - git submodule update --init --recursive podfile: ./Podfile xcode_workspace: ./Devbeers.xcworkspace xcode_scheme: Devbeers script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimulator -scheme Devbeers build test COD...
Remove duplicated bundle install instruction
Remove duplicated bundle install instruction
YAML
apache-2.0
devbeers/devbeers-ios,devbeers/devbeers-ios
yaml
## Code Before: language: objective-c branches: only: - master git: submodules: false before_install: - git submodule update --init --recursive - bundle install podfile: ./Podfile xcode_workspace: ./Devbeers.xcworkspace xcode_scheme: Devbeers script: xctool -workspace ./Devbeers.xcworkspace -sdk iphonesimula...
language: objective-c branches: only: - master git: submodules: false before_install: - git submodule update --init --recursive - - bundle install podfile: ./Podfile xcode_workspace: ./Devbeers.xcworkspace xcode_scheme: Devbeers script: xctool -workspace ./Devbeers.xcworkspace -sdk ip...
1
0.071429
0
1
466868e63919d6fabb8d75caca930fd348c1908f
src/pane-container-model.coffee
src/pane-container-model.coffee
{Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null focusContext: -> new F...
{Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null focusContext: -> new F...
Fix access to undefined root property
Fix access to undefined root property The ::filterDefined transform unfortunately doesn't prevent an undefined initial value when applied to behaviors.
CoffeeScript
mit
YunchengLiao/atom,G-Baby/atom,yangchenghu/atom,tony612/atom,florianb/atom,ironbox360/atom,Neron-X5/atom,daxlab/atom,ralphtheninja/atom,andrewleverette/atom,einarmagnus/atom,gisenberg/atom,yamhon/atom,atom/atom,gabrielPeart/atom,cyzn/atom,kandros/atom,kc8wxm/atom,FIT-CSE2410-A-Bombs/atom,nvoron23/atom,omarhuanca/atom,vj...
coffeescript
## Code Before: {Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null focusC...
{Model} = require 'theorist' Serializable = require 'serializable' {find} = require 'underscore-plus' FocusContext = require './focus-context' module.exports = class PaneContainerModel extends Model atom.deserializers.add(this) Serializable.includeInto(this) @properties root: null ...
7
0.122807
4
3
132c4a3220b0863f331b6be30e8735b196035cae
bench/Bencher.elm
bench/Bencher.elm
module Main exposing (main) import Html import Html.App import Bench.Native as Benchmark import Bench.Dict import Bench.Array main : Program Never main = Html.App.beginnerProgram { model = () , update = \_ _ -> () , view = \() -> Html.text "Done!" } |> Benchmark.run ...
module Main exposing (main) import Html import Html.App import Bench.Native as Benchmark import Bench.Dict import Bench.Array main : Program Never main = Html.App.beginnerProgram { model = () , update = \_ _ -> () , view = \() -> Html.text "Done!" } |> Benchmark.run ...
Revert "Lets focus on dict for a while"
Revert "Lets focus on dict for a while" This reverts commit 1848fbc5872f2ffb2d817e6d9c5a9bc6454833b4.
Elm
bsd-3-clause
Skinney/hamt-collections
elm
## Code Before: module Main exposing (main) import Html import Html.App import Bench.Native as Benchmark import Bench.Dict import Bench.Array main : Program Never main = Html.App.beginnerProgram { model = () , update = \_ _ -> () , view = \() -> Html.text "Done!" } |> Benc...
module Main exposing (main) import Html import Html.App import Bench.Native as Benchmark import Bench.Dict import Bench.Array main : Program Never main = Html.App.beginnerProgram { model = () , update = \_ _ -> () , view = \() -> Html.text "Done!" }...
20
0.666667
8
12
94629ecba6d11de7a2e1c46448d5f5f122aa7640
.travis.yml
.travis.yml
language: python python: - "2.7" # - "3.6" install: - python setup.py -q install script: - python setup.py test - python -m test.perf_igor
language: python python: - "2.7" # - "3.6" install: - pip install future - python setup.py -q install script: - python setup.py test - python -m test.perf_igor
Install future separately, because setup.py may need it
Install future separately, because setup.py may need it
YAML
mit
cwi-dis/igor,cwi-dis/igor,cwi-dis/igor
yaml
## Code Before: language: python python: - "2.7" # - "3.6" install: - python setup.py -q install script: - python setup.py test - python -m test.perf_igor ## Instruction: Install future separately, because setup.py may need it ## Code After: language: python python: - "2.7" # - "...
language: python python: - "2.7" # - "3.6" install: + - pip install future - python setup.py -q install script: - python setup.py test - python -m test.perf_igor
1
0.090909
1
0
e422a6327ec552e409717f994110b4d132235ae4
test/dummy/app/assets/javascripts/application.js
test/dummy/app/assets/javascripts/application.js
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
Fix JS-Include in dummy app
Fix JS-Include in dummy app
JavaScript
mit
Lichtbit/bitcharts,Lichtbit/bitcharts,Lichtbit/bitcharts
javascript
## Code Before: // This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here u...
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a...
2
0.142857
1
1
82b3f8023289175cf756187ab35318066715f430
src/modules/conf_theme/e_int_config_theme.h
src/modules/conf_theme/e_int_config_theme.h
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_INT_CONFIG_THEME_H #define E_INT_CONFIG_THEME_H EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__); EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia); EAPI void...
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_INT_CONFIG_THEME_H #define E_INT_CONFIG_THEME_H EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__); EAPI void e_int_config_theme_import_done(E_Config_Dialog *dia); EAPI void...
Declare public function in header.
Declare public function in header. git-svn-id: 0f3f1c46c6da7ffd142db61e503a7ff63af3a195@35475 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
C
bsd-2-clause
jordemort/e17,jordemort/e17,jordemort/e17
c
## Code Before: /* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_INT_CONFIG_THEME_H #define E_INT_CONFIG_THEME_H EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__); EAPI void e_int_config_theme_import_done(E_Config_Dialog ...
/* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2 */ #ifdef E_TYPEDEFS #else #ifndef E_INT_CONFIG_THEME_H #define E_INT_CONFIG_THEME_H EAPI E_Config_Dialog *e_int_config_theme(E_Container *con, const char *params __UNUSED__); EAPI void e_int_config_theme_import_done(E_Config_D...
1
0.066667
1
0
391d1ba44c421b0774771395b2fa803292df6297
src/Firebase.php
src/Firebase.php
<?php use Firebase\Exception\InvalidArgumentException; use Firebase\ServiceAccount; use Firebase\V2; use Firebase\V3; use Psr\Http\Message\UriInterface; /** * Convenience class to comfortably create new Firebase instances. */ final class Firebase { /** * Creates a new Firebase V3 instance. * * @p...
<?php use Firebase\ServiceAccount; use Firebase\V2; use Firebase\V3; use Psr\Http\Message\UriInterface; /** * Convenience class to comfortably create new Firebase instances. */ final class Firebase { /** * Creates a new Firebase V3 instance. * * @param string|ServiceAccount $serviceAccount Path t...
Use FQN for @throws tag
Use FQN for @throws tag This avoids possible clashes between \InvalidArgumentException and the imported InvalidArgumentException
PHP
mit
kreait/firebase-php
php
## Code Before: <?php use Firebase\Exception\InvalidArgumentException; use Firebase\ServiceAccount; use Firebase\V2; use Firebase\V3; use Psr\Http\Message\UriInterface; /** * Convenience class to comfortably create new Firebase instances. */ final class Firebase { /** * Creates a new Firebase V3 instance. ...
<?php - use Firebase\Exception\InvalidArgumentException; use Firebase\ServiceAccount; use Firebase\V2; use Firebase\V3; use Psr\Http\Message\UriInterface; /** * Convenience class to comfortably create new Firebase instances. */ final class Firebase { /** * Creates a new Firebase...
5
0.116279
2
3
6be0661e9715b39a308cb5c89fd7cf074610fa35
lib/updateComment.js
lib/updateComment.js
const updateComment = (body, commentArr = []) => { body = body.map((obj, index, array) => { if (obj.type === 'Line' || obj.type === 'Block') { commentArr.push(obj) if (array[index + 1] === undefined) { array[index - commentArr.length].trailingComments = commentArr return undefined ...
const updateComment = (body, ast, commentArr = []) => { body = body.map((obj, index, array) => { if (obj.type === 'Line' || obj.type === 'Block') { commentArr.push(obj) if (array[index + 1] === undefined) { if (index - commentArr.length === -1) ast.leadingComments = commentArr else arr...
Add check if the file contains only comments
Add check if the file contains only comments
JavaScript
mit
cleanlang/clean,cleanlang/clean,cleanlang/clean
javascript
## Code Before: const updateComment = (body, commentArr = []) => { body = body.map((obj, index, array) => { if (obj.type === 'Line' || obj.type === 'Block') { commentArr.push(obj) if (array[index + 1] === undefined) { array[index - commentArr.length].trailingComments = commentArr retur...
- const updateComment = (body, commentArr = []) => { + const updateComment = (body, ast, commentArr = []) => { ? +++++ body = body.map((obj, index, array) => { if (obj.type === 'Line' || obj.type === 'Block') { commentArr.push(obj) if (array[index + 1] === undefin...
5
0.238095
3
2
ce13a25b9925cd105d409dc06ecf56edf6a2d4b2
Manifold/Expression+List.swift
Manifold/Expression+List.swift
// Copyright © 2015 Rob Rix. All rights reserved. extension Expression where Recur: TermType { public static var list: Module<Recur> { return Module([ Declaration.Data("List", .Type, { [ "nil": .End, "cons": .Argument($0, const(.Recursive(.End))) ] }) ]) } } import Prelude
// Copyright © 2015 Rob Rix. All rights reserved. extension Expression where Recur: TermType { public static var list: Module<Recur> { return Module([ Declaration.Datatype("List", .Argument(.Type, { .End([ "nil": .End, "cons": .Argument($0, const(.Recursive(.End))) ]) })) ]) } } import...
Build a type constructor directly.
Build a type constructor directly.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright © 2015 Rob Rix. All rights reserved. extension Expression where Recur: TermType { public static var list: Module<Recur> { return Module([ Declaration.Data("List", .Type, { [ "nil": .End, "cons": .Argument($0, const(.Recursive(.End))) ] }) ]) } } import Prel...
// Copyright © 2015 Rob Rix. All rights reserved. extension Expression where Recur: TermType { public static var list: Module<Recur> { return Module([ - Declaration.Data("List", .Type, { + Declaration.Datatype("List", .Argument(.Type, { ? ++++ ++++++++++ - [ + ....
8
0.470588
4
4
b29d2970d4779222f1983ed9e93fc9cbdeabe0ca
test/lint/README.md
test/lint/README.md
This folder contains lint scripts. check-doc.py ============ Check for missing documentation of command line options. commit-script-check.sh ====================== Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs). git-subtree-check.sh ==================== Run this script from the root of the ...
This folder contains lint scripts. check-doc.py ============ Check for missing documentation of command line options. commit-script-check.sh ====================== Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs). Scripted diffs are only assumed to run on the latest LTS release of Ubuntu. Runn...
Document that GNU tools are required for linters
doc: Document that GNU tools are required for linters
Markdown
mit
DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin,peercoin/peercoin,DigitalPandacoin/pandacoin,peercoin/peercoin
markdown
## Code Before: This folder contains lint scripts. check-doc.py ============ Check for missing documentation of command line options. commit-script-check.sh ====================== Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs). git-subtree-check.sh ==================== Run this script from ...
This folder contains lint scripts. check-doc.py ============ Check for missing documentation of command line options. commit-script-check.sh ====================== Verification of [scripted diffs](/doc/developer-notes.md#scripted-diffs). + Scripted diffs are only assumed to run on the latest LTS rel...
2
0.068966
2
0
af43a16c912ded54c593ab02cec8a3eec19b063f
spring-cloud-launcher/spring-cloud-launcher-configserver/src/main/resources/launcher/application.yml
spring-cloud-launcher/spring-cloud-launcher-configserver/src/main/resources/launcher/application.yml
info: description: Spring Cloud Launcher eureka: client: instance-info-replication-interval-seconds: 5 initial-instance-info-replication-interval-seconds: 5 serviceUrl: defaultZone: http://localhost:8761/eureka/ endpoints: restart: enabled: true ribbon: ConnectTimeout: 3000 ReadTimeo...
info: description: Spring Cloud Launcher eureka: client: instance-info-replication-interval-seconds: 5 initial-instance-info-replication-interval-seconds: 5 serviceUrl: defaultZone: http://localhost:8761/eureka/ endpoints: restart: enabled: true ribbon: ConnectTimeout: 3000 ReadTimeo...
Align default h2 URL with other launcher projects
Align default h2 URL with other launcher projects
YAML
apache-2.0
spring-cloud/spring-cloud-cli,spring-cloud/spring-cloud-cli
yaml
## Code Before: info: description: Spring Cloud Launcher eureka: client: instance-info-replication-interval-seconds: 5 initial-instance-info-replication-interval-seconds: 5 serviceUrl: defaultZone: http://localhost:8761/eureka/ endpoints: restart: enabled: true ribbon: ConnectTimeout: ...
info: description: Spring Cloud Launcher eureka: client: instance-info-replication-interval-seconds: 5 initial-instance-info-replication-interval-seconds: 5 serviceUrl: defaultZone: http://localhost:8761/eureka/ endpoints: restart: enabled: true ribbon: ...
2
0.066667
1
1
e4d1020bf9f6f13d44f5ba7fcd28512302f122f8
Menu/ItemGroup.php
Menu/ItemGroup.php
<?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\AdminBundle\Menu;...
<?php declare(strict_types=1); /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace...
Enable strict types in menu item group class.
Enable strict types in menu item group class.
PHP
mit
DarvinStudio/DarvinAdminBundle,DarvinStudio/DarvinAdminBundle,DarvinStudio/DarvinAdminBundle
php
## Code Before: <?php /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Darvin\A...
- <?php + <?php declare(strict_types=1); /** * @author Igor Nikolaev <igor.sv.n@gmail.com> * @copyright Copyright (c) 2015, Darvin Studio * @link https://www.darvin-studio.ru * * For the full copyright and license information, please view the LICENSE * file that was distributed with this sou...
4
0.137931
2
2
829afded99ccae5dfbafc214b66223bf4cc06a46
wp-style-tag.php
wp-style-tag.php
<?php /* Plugin Name: WP Style Tag shortcode Plugin URI: https://github.com/A7M2/wp-style-tag Description: Add inline CSS to a post Version: 1.0 Author: Nathaniel Williams Author URI: http://coios.net/ License: MIT */ class WP_Style_Tag { public function __construct() { add_shor...
<?php /* Plugin Name: WP Style Tag shortcode Plugin URI: https://github.com/A7M2/wp-style-tag Description: Add inline CSS to a post Version: 1.0 Author: Nathaniel Williams Author URI: http://coios.net/ License: MIT */ class WP_Style_Tag { public function __construct() { add_shor...
Replace non-breaking space html entity with regular space
Replace non-breaking space html entity with regular space
PHP
mit
kokone/wp-style-tag
php
## Code Before: <?php /* Plugin Name: WP Style Tag shortcode Plugin URI: https://github.com/A7M2/wp-style-tag Description: Add inline CSS to a post Version: 1.0 Author: Nathaniel Williams Author URI: http://coios.net/ License: MIT */ class WP_Style_Tag { public function __construc...
<?php /* Plugin Name: WP Style Tag shortcode Plugin URI: https://github.com/A7M2/wp-style-tag Description: Add inline CSS to a post Version: 1.0 Author: Nathaniel Williams Author URI: http://coios.net/ License: MIT */ class WP_Style_Tag { public functio...
1
0.037037
1
0
b4b7fd4f7353c92587b55afc7ad593787575fe09
app/routes/login.js
app/routes/login.js
import Ember from 'ember'; export default Ember.Route.extend({ beforeModel: function(transition) { var win = window.open('/github_login', 'Authorization', 'width=1000,height=450,' + 'toolbar=0,scrollbars=1,status=1,resizable=1,' + ...
import Ember from 'ember'; export default Ember.Route.extend({ beforeModel: function(transition) { var win = window.open('/github_login', 'Authorization', 'width=1000,height=450,' + 'toolbar=0,scrollbars=1,status=1,resizable=1,' + ...
Set the api token from a successful authorization
Set the api token from a successful authorization
JavaScript
apache-2.0
withoutboats/crates.io,Gankro/crates.io,steveklabnik/crates.io,chenxizhang/crates.io,mbrubeck/crates.io,Gankro/crates.io,steveklabnik/crates.io,BlakeWilliams/crates.io,rust-lang/crates.io,achanda/crates.io,chenxizhang/crates.io,withoutboats/crates.io,achanda/crates.io,sfackler/crates.io,BlakeWilliams/crates.io,Gankro/c...
javascript
## Code Before: import Ember from 'ember'; export default Ember.Route.extend({ beforeModel: function(transition) { var win = window.open('/github_login', 'Authorization', 'width=1000,height=450,' + 'toolbar=0,scrollbars=1,status=1,resizable=1,' + ...
import Ember from 'ember'; export default Ember.Route.extend({ beforeModel: function(transition) { var win = window.open('/github_login', 'Authorization', 'width=1000,height=450,' + 'toolbar=0,scrollbars=1,status=1,resizable=1,' + ...
1
0.02439
1
0
df42287dfbc9171ec937718ea2db24f09549c0a3
lib/fanfeedr/leagues.rb
lib/fanfeedr/leagues.rb
require 'fanfeedr/utils' module Fanfeedr class Leagues include Fanfeedr::Utils attr_reader :api_key, :list def initialize(api_key) @api_key = api_key @list = seed @records = nil end def seed @records ||= fetch url @records.inject([]) do |list, league| li...
require 'fanfeedr/utils' module Fanfeedr class Leagues include Fanfeedr::Utils def initialize(api_key) @api_key = api_key @list = seed end def find(name) @list.select { |league| league.name == name }.first end def api_key @api_key end def list @list...
Refactor Leagues per pelusa output
Refactor Leagues per pelusa output
Ruby
mit
chip/fanfeedr
ruby
## Code Before: require 'fanfeedr/utils' module Fanfeedr class Leagues include Fanfeedr::Utils attr_reader :api_key, :list def initialize(api_key) @api_key = api_key @list = seed @records = nil end def seed @records ||= fetch url @records.inject([]) do |list, le...
require 'fanfeedr/utils' module Fanfeedr class Leagues include Fanfeedr::Utils - attr_reader :api_key, :list - def initialize(api_key) @api_key = api_key @list = seed - @records = nil end + def find(name) + @list.select { |league| league.name ==...
28
0.8
16
12
5eb43d1372a5745e4896e96a4292516d52c647ec
scripts/travis/before-script.sh
scripts/travis/before-script.sh
set -e if test x"`uname`" = xDarwin ; then sudo systemsetup -settimezone GMT brew update # brew install cmake elif test x"`uname`" = xLinux ; then git clone --depth=1 https://github.com/dinhviethoa/libetpan cd libetpan ./autogen.sh make >/dev/null sudo make install >/dev/null cd .. sudo apt-get ins...
set -e if test x"`uname`" = xDarwin ; then sudo systemsetup -settimezone America/Los_Angeles brew update # brew install cmake elif test x"`uname`" = xLinux ; then git clone --depth=1 https://github.com/dinhviethoa/libetpan cd libetpan ./autogen.sh make >/dev/null sudo make install >/dev/null cd .. ...
Set timezone to Pacific time
Set timezone to Pacific time
Shell
bsd-3-clause
iosdevzone/mailcore2,yuklai/mailcore2,serjepatoff/mailcore2,serjepatoff/mailcore2,lottadot/mailcore2,CodaFi/mailcore2,DeskConnect/mailcore2,FAU-Inf2/mailcore2,serjepatoff/mailcore2,yuklai/mailcore2,FAU-Inf2/mailcore2,jjz/mailcore2,antmd/mailcore2,lucasderraugh/mailcore2,DeskConnect/mailcore2,disaykin/mailcore2,cirruspa...
shell
## Code Before: set -e if test x"`uname`" = xDarwin ; then sudo systemsetup -settimezone GMT brew update # brew install cmake elif test x"`uname`" = xLinux ; then git clone --depth=1 https://github.com/dinhviethoa/libetpan cd libetpan ./autogen.sh make >/dev/null sudo make install >/dev/null cd .. ...
set -e if test x"`uname`" = xDarwin ; then - sudo systemsetup -settimezone GMT + sudo systemsetup -settimezone America/Los_Angeles brew update # brew install cmake elif test x"`uname`" = xLinux ; then git clone --depth=1 https://github.com/dinhviethoa/libetpan cd libetpan ./autogen.sh ...
2
0.086957
1
1
4de69c9f892b1add60948d84df5346516b8eb8a8
tools/tsan_suppressions.txt
tools/tsan_suppressions.txt
race:OPENSSL_cleanse race:cleanse_ctr # these are legitimate races in OpenSSL, and it appears those folks are looking at it # https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html race:ssleay_rand_add race:ssleay_rand_bytes race:__sleep_for
race:OPENSSL_cleanse race:cleanse_ctr # these are legitimate races in OpenSSL, and it appears those folks are looking at it # https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html race:ssleay_rand_add race:ssleay_rand_bytes race:__sleep_for # protobuf has an idempotent write race in ByteSize # https://gith...
Add a suppression for a datarace in proto on an idempotent write
Add a suppression for a datarace in proto on an idempotent write
Text
apache-2.0
a11r/grpc,yongni/grpc,murgatroid99/grpc,thinkerou/grpc,ipylypiv/grpc,thinkerou/grpc,grani/grpc,chrisdunelm/grpc,yang-g/grpc,dklempner/grpc,kumaralokgithub/grpc,yugui/grpc,MakMukhi/grpc,jcanizales/grpc,sreecha/grpc,kriswuollett/grpc,pszemus/grpc,adelez/grpc,mehrdada/grpc,yongni/grpc,simonkuang/grpc,grpc/grpc,quizlet/grp...
text
## Code Before: race:OPENSSL_cleanse race:cleanse_ctr # these are legitimate races in OpenSSL, and it appears those folks are looking at it # https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html race:ssleay_rand_add race:ssleay_rand_bytes race:__sleep_for ## Instruction: Add a suppression for a datarace ...
race:OPENSSL_cleanse race:cleanse_ctr # these are legitimate races in OpenSSL, and it appears those folks are looking at it # https://www.mail-archive.com/openssl-dev@openssl.org/msg09019.html race:ssleay_rand_add race:ssleay_rand_bytes race:__sleep_for + # protobuf has an idempotent write race in ByteSiz...
3
0.428571
3
0
bb71227a64ed0b093e31e0bddab4fa4d4462a0b6
include/lld/ReaderWriter/YamlContext.h
include/lld/ReaderWriter/YamlContext.h
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
Use C++11 non-static member initialization.
Use C++11 non-static member initialization. git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@234648 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lld,llvm-mirror/lld
c
## Code Before: //===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------...
//===- lld/ReaderWriter/YamlContext.h - object used in YAML I/O context ---===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------...
12
0.26087
4
8
80a9019cb24ea581a9cef0344caaf4cec4a95a94
testproject/chtest/consumers.py
testproject/chtest/consumers.py
from channels.sessions import enforce_ordering #@enforce_ordering(slight=True) def ws_connect(message): pass #@enforce_ordering(slight=True) def ws_message(message): "Echoes messages back to the client" message.reply_channel.send(message.content)
from channels.sessions import enforce_ordering #@enforce_ordering(slight=True) def ws_connect(message): pass #@enforce_ordering(slight=True) def ws_message(message): "Echoes messages back to the client" message.reply_channel.send({ "text": message['text'], })
Fix echo endpoint in testproject
Fix echo endpoint in testproject
Python
bsd-3-clause
Krukov/channels,Coread/channels,django/channels,andrewgodwin/channels,linuxlewis/channels,Krukov/channels,raphael-boucher/channels,andrewgodwin/django-channels,raiderrobert/channels,Coread/channels
python
## Code Before: from channels.sessions import enforce_ordering #@enforce_ordering(slight=True) def ws_connect(message): pass #@enforce_ordering(slight=True) def ws_message(message): "Echoes messages back to the client" message.reply_channel.send(message.content) ## Instruction: Fix echo endpoint in tes...
from channels.sessions import enforce_ordering #@enforce_ordering(slight=True) def ws_connect(message): pass #@enforce_ordering(slight=True) def ws_message(message): "Echoes messages back to the client" - message.reply_channel.send(message.content) ? ...
4
0.333333
3
1
4d73893cafa40c6e3e79698965cf130414648075
application/config/development/application.php
application/config/development/application.php
<?php return array( 'key' => "6d022a8b71d4f6a0d3b89f587257eb70", );
<?php return array( 'key' => "6d022a8b71d4f6a0d3b89f587257eb70", 'profiler' => true, );
Include the profiler toolbar on the development environment.
Include the profiler toolbar on the development environment.
PHP
mit
memborsky/irexinc.org,memborsky/irexinc.org,memborsky/irexinc.org
php
## Code Before: <?php return array( 'key' => "6d022a8b71d4f6a0d3b89f587257eb70", ); ## Instruction: Include the profiler toolbar on the development environment. ## Code After: <?php return array( 'key' => "6d022a8b71d4f6a0d3b89f587257eb70", 'profiler' => true, );
<?php return array( 'key' => "6d022a8b71d4f6a0d3b89f587257eb70", + 'profiler' => true, );
1
0.2
1
0
70e250c45f22d821d4d0b2c8e94d4bdc7b9c343d
tests/unit/errors/silent-test.js
tests/unit/errors/silent-test.js
'use strict'; var SilentError = require('silent-error'); var SilentErrorLib = require('../../../lib/errors/silent'); var expect = require('chai').expect; describe('SilentError', function() { it('return silent-error and print a deprecation', function() { expect(SilentErrorLib, 'returns silent-error')....
'use strict'; var SilentError = require('silent-error'); var expect = require('chai').expect; describe('SilentError', function() { it('return silent-error and print a deprecation', function() { var SilentErrorLib = require('../../../lib/errors/silent'); expect(SilentErrorLib, 'returns silent-erro...
Move deprecated require() call into test
tests/errors/silent: Move deprecated require() call into test
JavaScript
mit
cibernox/ember-cli,calderas/ember-cli,scalus/ember-cli,romulomachado/ember-cli,BrianSipple/ember-cli,pixelhandler/ember-cli,ember-cli/ember-cli,raycohen/ember-cli,buschtoens/ember-cli,jgwhite/ember-cli,seawatts/ember-cli,seawatts/ember-cli,scalus/ember-cli,HeroicEric/ember-cli,johanneswuerbach/ember-cli,jasonmit/ember-...
javascript
## Code Before: 'use strict'; var SilentError = require('silent-error'); var SilentErrorLib = require('../../../lib/errors/silent'); var expect = require('chai').expect; describe('SilentError', function() { it('return silent-error and print a deprecation', function() { expect(SilentErrorLib, 'returns...
'use strict'; var SilentError = require('silent-error'); - var SilentErrorLib = require('../../../lib/errors/silent'); var expect = require('chai').expect; describe('SilentError', function() { it('return silent-error and print a deprecation', function() { + var SilentErrorLib = require(...
2
0.181818
1
1
6cd2344a487baca79dfea1bb918705f0e069fdd3
source/features/monospace-textareas.css
source/features/monospace-textareas.css
/* Limit width of commit title to 72 characters */ .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input { width: calc(72ch + 18px); } .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input, .rgh-monospace-textareas textarea { font-family: SF...
/* Limit width of commit title to 72 characters */ .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input { width: calc(72ch + 18px); max-width: 100%; } .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input, .rgh-monospace-textareas textarea ...
Fix bleeding field on the "Ddit file" commit form
Fix bleeding field on the "Ddit file" commit form https://user-images.githubusercontent.com/1402241/77678157-0ac75c80-6f91-11ea-88be-c7278be3222e.png
CSS
mit
sindresorhus/refined-github,sindresorhus/refined-github
css
## Code Before: /* Limit width of commit title to 72 characters */ .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input { width: calc(72ch + 18px); } .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input, .rgh-monospace-textareas textarea { ...
/* Limit width of commit title to 72 characters */ .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input { width: calc(72ch + 18px); + max-width: 100%; } .rgh-monospace-textareas #merge_title_field, .rgh-monospace-textareas #commit-summary-input, .rgh-monospace...
1
0.066667
1
0
025f004f3c3159efe6bf7e07a1ec8736601b3f51
components/avatar/AvatarStack.js
components/avatar/AvatarStack.js
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class AvatarStack extends PureComponent { static propTypes = { children: PropTypes.node, className: PropTypes.string, direction: PropTy...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class AvatarStack extends PureComponent { render() { const { children, className, direction, displayMax, inverse, onOverflowClick, size, ...oth...
Move propTypes & defaultProps outside of the component class
Move propTypes & defaultProps outside of the component class
JavaScript
mit
teamleadercrm/teamleader-ui
javascript
## Code Before: import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class AvatarStack extends PureComponent { static propTypes = { children: PropTypes.node, className: PropTypes.string, d...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import Box from '../box'; import cx from 'classnames'; import theme from './theme.css'; class AvatarStack extends PureComponent { - static propTypes = { - children: PropTypes.node, - className: PropTypes.string, -...
34
0.68
17
17
cb3eface4e02f6bb2c4514f8ae6cb45192cb577f
release.nix
release.nix
{ src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; } , supportedPlatforms ? [ "x86_64-linux" ] , supportedCompilers ? [ "ghc7103" ] }: with (import <nixpkgs> {}).lib; let hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{ owner = "expipiplus1"; repo = "hnix"; rev = "295e26b2081552d3a70e5a249dc61481e...
{ src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; } , supportedPlatforms ? [ "x86_64-linux" "x86_64-darwin" ] , supportedCompilers ? [ "ghc7103" ] }: with (import <nixpkgs> {}).lib; let hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{ owner = "expipiplus1"; repo = "hnix"; rev = "295e26b2081552d3a...
Add x86_64-darwin" as a supported platform
Add x86_64-darwin" as a supported platform
Nix
bsd-3-clause
DavidEGrayson/update-nix-fetchgit
nix
## Code Before: { src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; } , supportedPlatforms ? [ "x86_64-linux" ] , supportedCompilers ? [ "ghc7103" ] }: with (import <nixpkgs> {}).lib; let hnixSrc = (import <nixpkgs> {}).fetchFromGitHub{ owner = "expipiplus1"; repo = "hnix"; rev = "295e26b2081552d3a...
{ src ? { outPath = ./.; revCount = 0; gitTag = "dirty"; } - , supportedPlatforms ? [ "x86_64-linux" ] + , supportedPlatforms ? [ "x86_64-linux" "x86_64-darwin" ] ? ++++++++++++++++ , supportedCompilers ? [ "ghc7103" ] }: with (import <nixpkgs> {}).lib; let h...
2
0.060606
1
1
612c12a57b5f8e47e9d55e68a4b341a85c6c2c33
init/60_nix_ssh-keygen.sh
init/60_nix_ssh-keygen.sh
key_directory="${HOME}/.ssh/keys/" key_titles=( id_rsa udel gclab github bitbucket llnl ) e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)" mkdir -p ${key_directory} for key_title in ${key_titles[@]}; do key_file="${key_directory}/${key_title}" if [ ! -f ${key_fi...
key_directory="${HOME}/.ssh/keys/" key_titles=( id_rsa udel gclab github bitbucket llnl ) e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)" mkdir -p ${key_directory} for key_title in ${key_titles[@]}; do key_file="${key_directory}/${key_title}" if [ ! -f ${key_fi...
Add printing for ssh-keygen init script
Add printing for ssh-keygen init script
Shell
mit
SteVwonder/dotfiles,SteVwonder/dotfiles,SteVwonder/dotfiles,SteVwonder/dotfiles
shell
## Code Before: key_directory="${HOME}/.ssh/keys/" key_titles=( id_rsa udel gclab github bitbucket llnl ) e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)" mkdir -p ${key_directory} for key_title in ${key_titles[@]}; do key_file="${key_directory}/${key_title}" if...
key_directory="${HOME}/.ssh/keys/" key_titles=( id_rsa udel gclab github bitbucket llnl ) e_header "Creating ssh keys (${key_titles[@]}) in ${key_directory} (if they don't already exist)" mkdir -p ${key_directory} for key_title in ${key_titles[@]}; do key_file="${key_directory}/${key_title}" if...
3
0.272727
3
0
34fbb6d2d7dab4b9e35fdbb65c9493cc505a782a
tests/cli.bat
tests/cli.bat
@echo off echo ^> Running CLI tests... set MR="%~dp0\..\target\release\multirust-rs.exe" echo ^> Testing --help %MR% --help || (echo FAILED && exit /b 1) echo ^> Testing install %MR% install -a || (echo FAILED && exit /b 1) echo ^> Updating PATH set PATH=%USERPROFILE%\.multirust\bin;%PATH% echo ^> ...
@echo off echo ^> Running CLI tests... set MR="%~dp0\..\target\release\multirust-rs.exe" echo ^> Testing --help %MR% --help || (echo FAILED && exit /b 1) echo ^> Testing install %MR% install -a || (echo FAILED && exit /b 1) echo ^> Updating PATH set PATH=%USERPROFILE%\.multirust\bin;%PATH% echo ^> ...
Use call for invoking batch files
Use call for invoking batch files
Batchfile
apache-2.0
rust-lang/rustup,rust-lang/rustup,rust-lang/rustup,polonez/rustup.rs,inejge/rustup.rs,Boddlnagg/rustup.rs,Boddlnagg/rustup.rs,theindigamer/rustup.rs,rust-lang/rustup,theindigamer/rustup.rs,polonez/rustup.rs,nodakai/rustup.rs,polonez/rustup.rs,nodakai/rustup.rs,nodakai/rustup.rs,Boddlnagg/rustup.rs,inejge/rustup.rs,inej...
batchfile
## Code Before: @echo off echo ^> Running CLI tests... set MR="%~dp0\..\target\release\multirust-rs.exe" echo ^> Testing --help %MR% --help || (echo FAILED && exit /b 1) echo ^> Testing install %MR% install -a || (echo FAILED && exit /b 1) echo ^> Updating PATH set PATH=%USERPROFILE%\.multirust\bin;%PATH% echo ^>...
@echo off echo ^> Running CLI tests... set MR="%~dp0\..\target\release\multirust-rs.exe" echo ^> Testing --help %MR% --help || (echo FAILED && exit /b 1) echo ^> Testing install %MR% install -a || (echo FAILED && exit /b 1) echo ^> Updating PATH set PATH=%USERPROFILE%\.multirust\bin;%PA...
4
0.117647
2
2
aa6fd6c097255dff2dfac7475d6152177fa50573
.travis.yml
.travis.yml
language: python python: - "2.7" before_install: - sudo apt-get install liblapack-dev gfortran - pip install -r requirements.txt - pip install pytest install: - python setup.py install script: - (cd tests && py.test test*.py)
language: python python: - "2.7" before_install: - sudo apt-get update - sudo apt-get install python-numpy python-scipy cython libatlas-dev liblapack-dev gfortran - pip install -r requirements.txt - pip install pytest install: - python setup.py install script: - (cd tests && py.test test...
Move to apt-get install sci/numpy
Move to apt-get install sci/numpy
YAML
isc
r9y9/librosa,Cortexelus/librosa,r9y9/librosa,yunque/librosa,carlthome/librosa,imsparsh/librosa,decebel/librosa,ruohoruotsi/librosa,craffel/librosa,stefan-balke/librosa,imsparsh/librosa,ruohoruotsi/librosa,craffel/librosa,yunque/librosa,Cortexelus/librosa,carlthome/librosa,r9y9/librosa,ruohoruotsi/librosa,decebel/libros...
yaml
## Code Before: language: python python: - "2.7" before_install: - sudo apt-get install liblapack-dev gfortran - pip install -r requirements.txt - pip install pytest install: - python setup.py install script: - (cd tests && py.test test*.py) ## Instruction: Move to apt-get install sci/numpy...
language: python python: - "2.7" before_install: - - sudo apt-get install liblapack-dev gfortran + - sudo apt-get update + - sudo apt-get install python-numpy python-scipy cython libatlas-dev liblapack-dev gfortran - pip install -r requirements.txt - pip install pytest ins...
3
0.2
2
1
fa82fae095ae1729ec7f38b096316c50ac548004
app/assets/stylesheets/petitions/_forms.scss
app/assets/stylesheets/petitions/_forms.scss
// Adds to ../govuk_elements/_forms.scss select.form-control { -webkit-appearance: menulist; } .form-control.small { width: 8.5em; } .form-group.error { @extend %outdent-to-full-width; } // Replication .form-label-bold without the font .error .form-label { @extend .form-label-bold; } .form-control { padd...
// Adds to ../govuk_elements/_forms.scss select.form-control { -webkit-appearance: menulist; } .form-control.small { width: 8.5em; } .form-group.error { @extend %outdent-to-full-width; } // Replication .form-label-bold without the font .error .form-label { @extend .form-label-bold; } .form-control { padd...
Fix the bottom paragraph 'jumping' word into any form field with errors on a signature form page
Fix the bottom paragraph 'jumping' word into any form field with errors on a signature form page
SCSS
mit
unboxed/e-petitions,ansonK/e-petitions,StatesOfJersey/e-petitions,alphagov/e-petitions,oskarpearson/e-petitions,ansonK/e-petitions,telekomatrix/e-petitions,joelanman/e-petitions,StatesOfJersey/e-petitions,oskarpearson/e-petitions,StatesOfJersey/e-petitions,telekomatrix/e-petitions,oskarpearson/e-petitions,alphagov/e-pe...
scss
## Code Before: // Adds to ../govuk_elements/_forms.scss select.form-control { -webkit-appearance: menulist; } .form-control.small { width: 8.5em; } .form-group.error { @extend %outdent-to-full-width; } // Replication .form-label-bold without the font .error .form-label { @extend .form-label-bold; } .form-...
// Adds to ../govuk_elements/_forms.scss select.form-control { -webkit-appearance: menulist; } .form-control.small { width: 8.5em; } .form-group.error { @extend %outdent-to-full-width; } // Replication .form-label-bold without the font .error .form-label { @extend .form-lab...
8
0.363636
8
0
ed6e0608f7ca66bb6127626103f83e60b87a1141
setup.py
setup.py
from setuptools import setup version = "0.3" setup( name="dj-cmd", version=version, description="`dj cmd` is a Django shortcut command.", license="BSD", author="Filip Wasilewski", author_email="en@ig.ma", url="https://github.com/nigma/dj-cmd", download_url="https://github.com/nigma...
from setuptools import setup version = "0.4" setup( name="dj-cmd", version=version, description="`dj cmd` is a Django shortcut command.", license="BSD", author="Filip Wasilewski", author_email="en@ig.ma", url="https://github.com/nigma/dj-cmd", download_url="https://github.com/nigma/...
Increase package version to 0.4 and update meta
Increase package version to 0.4 and update meta
Python
bsd-3-clause
nigma/dj-cmd
python
## Code Before: from setuptools import setup version = "0.3" setup( name="dj-cmd", version=version, description="`dj cmd` is a Django shortcut command.", license="BSD", author="Filip Wasilewski", author_email="en@ig.ma", url="https://github.com/nigma/dj-cmd", download_url="https://...
from setuptools import setup - - version = "0.3" ? ^ + version = "0.4" ? ^ setup( name="dj-cmd", version=version, description="`dj cmd` is a Django shortcut command.", license="BSD", author="Filip Wasilewski", author_email="en@ig.ma", ...
6
0.130435
2
4
0d8530289ea7dc0d0f700b242ef069a78704cb76
README.md
README.md
brackets-duplicate-extension ============================ # File & Folder Duplicating Extension for Brackets An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New...
brackets-duplicate-extension ============================ # File & Folder Duplicating Extension for Brackets An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bracket's New...
Add Copy and Move functionality.
Add Copy and Move functionality.
Markdown
mit
TorinPascal/brackets-duplicate-extension
markdown
## Code Before: brackets-duplicate-extension ============================ # File & Folder Duplicating Extension for Brackets An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher'...
brackets-duplicate-extension ============================ # File & Folder Duplicating Extension for Brackets An extension for [Brackets](https://github.com/adobe/brackets/) that provides the duplicate functionality to duplicate files and folders in the project view. Project was inspired by Jeff Booher's [Bra...
9
0.473684
8
1
4e745820554f6c51201aa25f720ef446941fb3e0
components/Tabs.jsx
components/Tabs.jsx
var React = require('react/addons'); var Component = require('../component'); module.exports = Component({ name: 'Tabs', getDefaultProps() { return { type: 'text' }; }, render() { var { children, type, ...props } = this.props; if (type) this.addStyles(this.styles[type]); ret...
var React = require('react/addons'); var Component = require('../component'); var clone = require('../lib/niceClone'); module.exports = Component({ name: 'Tabs', getDefaultProps() { return { type: 'text' }; }, render() { var { children, type, ...props } = this.props; if (type) th...
Move tabs to use niceClone
Move tabs to use niceClone
JSX
mit
zenlambda/reapp-ui,Lupino/reapp-ui,zackp30/reapp-ui,srounce/reapp-ui,reapp/reapp-ui,jhopper28/reapp-ui,oToUC/reapp-ui
jsx
## Code Before: var React = require('react/addons'); var Component = require('../component'); module.exports = Component({ name: 'Tabs', getDefaultProps() { return { type: 'text' }; }, render() { var { children, type, ...props } = this.props; if (type) this.addStyles(this.styles[...
var React = require('react/addons'); var Component = require('../component'); + var clone = require('../lib/niceClone'); module.exports = Component({ name: 'Tabs', getDefaultProps() { return { type: 'text' }; }, render() { var { children, type, ...props } = this....
8
0.266667
2
6
ee0ccba17589bbfb39dc9a142cc540edbb8dcb5b
packer/scripts/centos/ganeti.sh
packer/scripts/centos/ganeti.sh
yum -y install cloud-init cloud-utils-growpart chkconfig cloud-init on # Install denyhosts from our local repo yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm chkconfig denyhosts on sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyhosts.conf # No ...
yum -y install cloud-init cloud-utils-growpart chkconfig cloud-init on if -n "$(grep \'CentOS Linux release 6\' /etc/redhat-release)" ; then yum -y install denyhosts else # Install denyhosts from our local repo yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos...
Add logic for CentOS 6 vs. 7
Add logic for CentOS 6 vs. 7
Shell
apache-2.0
osuosl/bento,osuosl/bento
shell
## Code Before: yum -y install cloud-init cloud-utils-growpart chkconfig cloud-init on # Install denyhosts from our local repo yum -y install http://packages.osuosl.org/repositories/centos-7/osl/x86_64/denyhosts-2.6-19.el7.centos.noarch.rpm chkconfig denyhosts on sed -i -e 's/^PURGE_DENY.*/PURGE_DENY = 5d/' /etc/denyh...
yum -y install cloud-init cloud-utils-growpart chkconfig cloud-init on + if -n "$(grep \'CentOS Linux release 6\' /etc/redhat-release)" ; then + yum -y install denyhosts + else - # Install denyhosts from our local repo + # Install denyhosts from our local repo ? ++ - yum -y install http://packages.osuosl.or...
8
0.571429
6
2
37efc30f1f432011305af1c1e9ac9b2c81f4560e
lib/ruboty/dmm/agent.rb
lib/ruboty/dmm/agent.rb
module Ruboty module DMM class Agent attr_accessor :agent def initialize @agent = ::Mechanize.new @agent.ignore_bad_chunking = true @agent.request_headers = { 'Accept-Encoding' => '' } @agent.ignore_bad_chunking = true end end end end
module Ruboty module DMM class Agent attr_accessor :agent def initialize @agent = ::Mechanize.new @agent.request_headers = { 'Accept-Encoding' => '' } @agent.ignore_bad_chunking = true end end end end
Remove a duplication of Agent klass
Remove a duplication of Agent klass
Ruby
mit
sachin21/ruboty-dmm
ruby
## Code Before: module Ruboty module DMM class Agent attr_accessor :agent def initialize @agent = ::Mechanize.new @agent.ignore_bad_chunking = true @agent.request_headers = { 'Accept-Encoding' => '' } @agent.ignore_bad_chunking = true end end end end ## In...
module Ruboty module DMM class Agent attr_accessor :agent def initialize @agent = ::Mechanize.new - @agent.ignore_bad_chunking = true @agent.request_headers = { 'Accept-Encoding' => '' } @agent.ignore_bad_chunking = true end end end ...
1
0.071429
0
1
6e5be4f6d7f404afa3b4e5ed8166d75da379a968
lib/ditty/policies/identity_policy.rb
lib/ditty/policies/identity_policy.rb
require 'ditty/policies/application_policy' module Ditty class IdentityPolicy < ApplicationPolicy def register? !['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED'] end def permitted_attributes %i[username password password_confirmation] end class Scope < Appli...
require 'ditty/policies/application_policy' module Ditty class IdentityPolicy < ApplicationPolicy def register? !['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED'] end def permitted_attributes %i[username password password_confirmation] end class Scope < Appli...
Return empty dataset instead of array
fix: Return empty dataset instead of array
Ruby
mit
EagerELK/ditty,EagerELK/ditty,EagerELK/ditty
ruby
## Code Before: require 'ditty/policies/application_policy' module Ditty class IdentityPolicy < ApplicationPolicy def register? !['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED'] end def permitted_attributes %i[username password password_confirmation] end cla...
require 'ditty/policies/application_policy' module Ditty class IdentityPolicy < ApplicationPolicy def register? !['1', 1, 'true', true, 'yes'].include? ENV['DITTY_REGISTERING_DISABLED'] end def permitted_attributes %i[username password password_confirmation] end ...
2
0.083333
1
1
4c35c01f7275163b191401f414f7adf9bc662784
app/views/partials/etablissements-modal.html
app/views/partials/etablissements-modal.html
<div class="benefit-etablissements-modal"> <div> <button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">&times;</span></button> </div> <div class="text-center"> <h3>{{ title }}</h3> <p class="text-muted"> Des points d'accueil près de chez vous, où poser toute...
<div class="benefit-etablissements-modal"> <div> <button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">&times;</span></button> </div> <div class="text-center"> <h3><i class="fa fa-home"></i> {{ title }}</h3> <p class="text-muted"> Des lieux près de chez vous...
Change le texte, ajoute une icône.
Change le texte, ajoute une icône.
HTML
agpl-3.0
sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui,sgmap/mes-aides-ui
html
## Code Before: <div class="benefit-etablissements-modal"> <div> <button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">&times;</span></button> </div> <div class="text-center"> <h3>{{ title }}</h3> <p class="text-muted"> Des points d'accueil près de chez vous...
<div class="benefit-etablissements-modal"> <div> <button type="button" class="close" aria-label="Close" ng-click="closeModal()"><span aria-hidden="true">&times;</span></button> </div> <div class="text-center"> - <h3>{{ title }}</h3> + <h3><i class="fa fa-home"></i> {{ title }}</h3> <p class="text...
4
0.181818
2
2
5bc4ddb20d9018627f4259414938cb9265c11ffc
example/main/templates/index.html
example/main/templates/index.html
{% load static from staticfiles %} <!DOCTYPE html> <html> <head> <title>Django Stick Uploads Example</title> </head> <body> {% if messages %} {% for message in messages %} <div class="message {{ messsage.tags }}">{{ message }}</div> {% endfor %} {% endif %} <form action="." m...
{% load static from staticfiles %} <!DOCTYPE html> <html> <head> <title>Django Stick Uploads Example</title> </head> <body> {% if messages %} {% for message in messages %} <div class="message {{ messsage.tags }}">{{ message }}</div> {% endfor %} {% endif %} <form action="." m...
Update example code which no longer needs to do the binding.
Update example code which no longer needs to do the binding.
HTML
bsd-3-clause
vstoykov/django-sticky-uploads,vstoykov/django-sticky-uploads,caktus/django-sticky-uploads,caktus/django-sticky-uploads,vstoykov/django-sticky-uploads,caktus/django-sticky-uploads
html
## Code Before: {% load static from staticfiles %} <!DOCTYPE html> <html> <head> <title>Django Stick Uploads Example</title> </head> <body> {% if messages %} {% for message in messages %} <div class="message {{ messsage.tags }}">{{ message }}</div> {% endfor %} {% endif %} <f...
{% load static from staticfiles %} <!DOCTYPE html> <html> <head> <title>Django Stick Uploads Example</title> </head> <body> {% if messages %} {% for message in messages %} <div class="message {{ messsage.tags }}">{{ message }}</div> {% endfor %} {% endif %...
7
0.25
0
7
7418079606a6e24cb0dccfa148b47c3f736e985f
zou/app/blueprints/persons/resources.py
zou/app/blueprints/persons/resources.py
from flask import abort from flask_restful import Resource, reqparse from flask_jwt_extended import jwt_required from zou.app.services import persons_service from zou.app.utils import auth, permissions class NewPersonResource(Resource): @jwt_required def post(self): permissions.check_admin_permissio...
from flask import abort from flask_restful import Resource, reqparse from flask_jwt_extended import jwt_required from zou.app.services import persons_service from zou.app.utils import auth, permissions class NewPersonResource(Resource): @jwt_required def post(self): permissions.check_admin_permissio...
Allow to set role while creating a person
Allow to set role while creating a person
Python
agpl-3.0
cgwire/zou
python
## Code Before: from flask import abort from flask_restful import Resource, reqparse from flask_jwt_extended import jwt_required from zou.app.services import persons_service from zou.app.utils import auth, permissions class NewPersonResource(Resource): @jwt_required def post(self): permissions.check...
from flask import abort from flask_restful import Resource, reqparse from flask_jwt_extended import jwt_required from zou.app.services import persons_service from zou.app.utils import auth, permissions class NewPersonResource(Resource): @jwt_required def post(self): permiss...
4
0.093023
3
1
503418718f669fcc674719fd862b355605d7b41f
lib/core/settle.js
lib/core/settle.js
'use strict'; var createError = require('./createError'); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = f...
'use strict'; var createError = require('./createError'); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ module.exports = f...
Remove XDomainRequest special status handling
Remove XDomainRequest special status handling
JavaScript
mit
axios/axios,mzabriskie/axios,axios/axios,mzabriskie/axios,mzabriskie/axios,axios/axios
javascript
## Code Before: 'use strict'; var createError = require('./createError'); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. */ mo...
'use strict'; var createError = require('./createError'); /** * Resolve or reject a Promise based on response status. * * @param {Function} resolve A function that resolves the promise. * @param {Function} reject A function that rejects the promise. * @param {object} response The response. ...
3
0.115385
1
2
fd4f6298614517a8fb752158685a27cddb6581bf
index.js
index.js
const {app, BrowserWindow, ipcMain} = require('electron'); const aperture = require('../aperture').main; let win; function createWindow() { win = new BrowserWindow({width: 800, height: 600}); win.loadURL(`file://${__dirname}/index.html`); win.webContents.openDevTools(); win.on('closed', () => { win = null; ...
const {app, BrowserWindow, ipcMain} = require('electron'); const aperture = require('../aperture').main; let win; function createWindow() { win = new BrowserWindow({width: 800, height: 600}); win.loadURL(`file://${__dirname}/index.html`); win.webContents.openDevTools(); win.on('closed', () => { win = null; ...
Call `aperture.main.init()` before the window is created
Call `aperture.main.init()` before the window is created
JavaScript
mit
wulkano/kap,albinekb/kap,albinekb/kap,albinekb/kap
javascript
## Code Before: const {app, BrowserWindow, ipcMain} = require('electron'); const aperture = require('../aperture').main; let win; function createWindow() { win = new BrowserWindow({width: 800, height: 600}); win.loadURL(`file://${__dirname}/index.html`); win.webContents.openDevTools(); win.on('closed', () => {...
const {app, BrowserWindow, ipcMain} = require('electron'); const aperture = require('../aperture').main; let win; function createWindow() { win = new BrowserWindow({width: 800, height: 600}); win.loadURL(`file://${__dirname}/index.html`); win.webContents.openDevTools(); win.on('closed...
7
0.189189
4
3
a4aba2d42890ed30e62cd856ed99a04bb776b677
client/src/js/account/components/API/Permissions.js
client/src/js/account/components/API/Permissions.js
import React from "react"; import PropTypes from "prop-types"; import { map, sortBy } from "lodash-es"; import { ListGroup, Panel } from "react-bootstrap"; import { Icon, ListGroupItem } from "../../../base/index"; export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) { co...
import React from "react"; import PropTypes from "prop-types"; import { map, sortBy } from "lodash-es"; import { ListGroup, Panel } from "react-bootstrap"; import { ListGroupItem, Checkbox } from "../../../base/index"; export default function APIPermissions ({ style, userPermissions, keyPermissions, onChange }) { ...
Add checkbox to API permissions
Add checkbox to API permissions
JavaScript
mit
igboyes/virtool,igboyes/virtool,virtool/virtool,virtool/virtool
javascript
## Code Before: import React from "react"; import PropTypes from "prop-types"; import { map, sortBy } from "lodash-es"; import { ListGroup, Panel } from "react-bootstrap"; import { Icon, ListGroupItem } from "../../../base/index"; export default function APIPermissions ({ style, userPermissions, keyPermissions, onCha...
import React from "react"; import PropTypes from "prop-types"; import { map, sortBy } from "lodash-es"; import { ListGroup, Panel } from "react-bootstrap"; - import { Icon, ListGroupItem } from "../../../base/index"; ? ------ + import { ListGroupItem, Checkbox } from "../../../base/index"; ? ...
7
0.162791
5
2
f02ce3a2e94bc40cde87a39ba5b133599d729f9c
mpltools/widgets/__init__.py
mpltools/widgets/__init__.py
import matplotlib.widgets as mwidgets if not hasattr(mwidgets, 'AxesWidget'): branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>" msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch raise ImportError(msg) from .rectangle_selector import RectangleSelector from .slider imp...
import matplotlib.widgets as mwidgets if not hasattr(mwidgets, 'AxesWidget'): version = "(github master; after March 16, 2012)" msg = "mpltools.widgets requires recent version of Matplotlib %s" % version raise ImportError(msg) from .rectangle_selector import RectangleSelector from .slider import Slider ...
Update MPL version requirement for `widgets`.
Update MPL version requirement for `widgets`.
Python
bsd-3-clause
tonysyu/mpltools,matteoicardi/mpltools
python
## Code Before: import matplotlib.widgets as mwidgets if not hasattr(mwidgets, 'AxesWidget'): branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>" msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch raise ImportError(msg) from .rectangle_selector import RectangleSelector ...
import matplotlib.widgets as mwidgets if not hasattr(mwidgets, 'AxesWidget'): - branch = "<https://github.com/tonysyu/matplotlib/tree/base-widget>" + version = "(github master; after March 16, 2012)" - msg = "mpltools.widgets requires a branch of Matplotlib: %s" % branch ? ...
4
0.285714
2
2
e75ba8901cb97d23014b2b00ff76f863c75628dd
src/AppBundle/Resources/views/Homepage/index.html.twig
src/AppBundle/Resources/views/Homepage/index.html.twig
{% extends 'AppBundle::base.html.twig' %} {% block body %} {% include 'AppBundle::menu.html.twig' %} <div class="container"> <div class="jumbotron"> <h2>Hello world!</h2> </div> {{ dump(app.user) }} </div> {% endblock %}
{% extends 'AppBundle::base.html.twig' %} {% block body %} {% include 'AppBundle::menu.html.twig' %} <div class="container"> <div class="jumbotron"> <h2>Hello world!</h2> </div> Bonjoure {{ app.user.firstName }} {{ app.user.lastName }} </div> {% endblock %}
Remove dump in prod en
Remove dump in prod en
Twig
mit
sghribi/garopi,sghribi/garopi,sghribi/garopi,sghribi/garopi
twig
## Code Before: {% extends 'AppBundle::base.html.twig' %} {% block body %} {% include 'AppBundle::menu.html.twig' %} <div class="container"> <div class="jumbotron"> <h2>Hello world!</h2> </div> {{ dump(app.user) }} </div> {% endblock %} ## Instruction: Remove dump in prod en ## Code After: {% extends '...
{% extends 'AppBundle::base.html.twig' %} {% block body %} {% include 'AppBundle::menu.html.twig' %} <div class="container"> <div class="jumbotron"> <h2>Hello world!</h2> </div> - {{ dump(app.user) }} + Bonjoure {{ app.user.firstName }} {{ app.user.lastName }} </div> {% endb...
2
0.133333
1
1
d4517e235a4bc439f6e024f8a9a95b4103627cf4
js/models/circuit-element.js
js/models/circuit-element.js
(function(app) { 'use strict'; var circuit = require('circuit'); var Wrapper = function(self) { this.unwrap = Wrapper.unwrap.bind(self); }; Wrapper.unwrap = function(key) { if (key === Wrapper.KEY) return this; }; Wrapper.KEY = {}; var CircuitElementMember = function(props) { this...
(function(app) { 'use strict'; var circuit = require('circuit'); var Wrapper = function(self) { this.unwrap = Wrapper.unwrap.bind(self); }; Wrapper.unwrap = function(key) { if (key === Wrapper.KEY) return this; }; Wrapper.KEY = {}; var CircuitElementMember = function(props) { this...
Make method to create an empty 'circuit element'
Make method to create an empty 'circuit element'
JavaScript
mit
ionstage/modular,ionstage/modular
javascript
## Code Before: (function(app) { 'use strict'; var circuit = require('circuit'); var Wrapper = function(self) { this.unwrap = Wrapper.unwrap.bind(self); }; Wrapper.unwrap = function(key) { if (key === Wrapper.KEY) return this; }; Wrapper.KEY = {}; var CircuitElementMember = function(p...
(function(app) { 'use strict'; var circuit = require('circuit'); var Wrapper = function(self) { this.unwrap = Wrapper.unwrap.bind(self); }; Wrapper.unwrap = function(key) { if (key === Wrapper.KEY) return this; }; Wrapper.KEY = {}; var CircuitElementM...
4
0.068966
4
0
1f5e24eb6fbe5868439b78dfdd5418ecb09ca402
.gitlab-ci.yml
.gitlab-ci.yml
image: node:4.2.6 all_tests: script: - npm install - grunt test
test: image: node:4.2.6 before_script: - npm install - npm install -g grunt-cli script: - grunt test cache: paths: - node_modules
Fix GitLab CI when using Docker executor
project: Fix GitLab CI when using Docker executor
YAML
mit
fetzerch/grafana-sunandmoon-datasource,fetzerch/grafana-sunandmoon-datasource
yaml
## Code Before: image: node:4.2.6 all_tests: script: - npm install - grunt test ## Instruction: project: Fix GitLab CI when using Docker executor ## Code After: test: image: node:4.2.6 before_script: - npm install - npm install -g grunt-cli script: - grunt test cache: paths: -...
+ test: - image: node:4.2.6 + image: node:4.2.6 ? ++ - - all_tests: + before_script: + - npm install + - npm install -g grunt-cli script: - - npm install - grunt test + cache: + paths: + - node_modules
12
2
8
4
942616d86e596a9ca42d70297c1f7819f043f1c7
metadata/com.workingagenda.devinettes.txt
metadata/com.workingagenda.devinettes.txt
AntiFeatures:NonFreeAssets Categories:Games License:GPL-3.0 Web Site:http://devinettes.workingagenda.com Source Code:https://github.com/polypmer/devinettes-android Issue Tracker:https://github.com/polypmer/devinettes-android/issues Auto Name:Devinettes Summary:A collection of riddles in verse Description: A collection...
AntiFeatures:NonFreeAssets Categories:Games License:GPL-3.0 Web Site:http://devinettes.workingagenda.com Source Code:https://github.com/polypmer/devinettes-android Issue Tracker:https://github.com/polypmer/devinettes-android/issues Auto Name:Devinettes Summary:A collection of riddles in verse Description: A collection...
Update Devinettes to 1.1 (2)
Update Devinettes to 1.1 (2)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: AntiFeatures:NonFreeAssets Categories:Games License:GPL-3.0 Web Site:http://devinettes.workingagenda.com Source Code:https://github.com/polypmer/devinettes-android Issue Tracker:https://github.com/polypmer/devinettes-android/issues Auto Name:Devinettes Summary:A collection of riddles in verse Descripti...
AntiFeatures:NonFreeAssets Categories:Games License:GPL-3.0 Web Site:http://devinettes.workingagenda.com Source Code:https://github.com/polypmer/devinettes-android Issue Tracker:https://github.com/polypmer/devinettes-android/issues Auto Name:Devinettes Summary:A collection of riddles in verse Descr...
5
0.192308
5
0
e7644c79f6a9d03845d77e7c883b0887a52bc46c
app/models/friendship.rb
app/models/friendship.rb
class Friendship < ApplicationRecord belongs_to :person belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id' belongs_to :site scope_by_site_id validates :person, presence: true validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) } attr_accessor :skip_mirror be...
class Friendship < ApplicationRecord belongs_to :person belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id' belongs_to :site scope_by_site_id validates :person, presence: true validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) } attr_accessor :skip_mirror be...
Update delete_all usage to fix deprecation
Update delete_all usage to fix deprecation
Ruby
agpl-3.0
mattraykowski/onebody,hschin/onebody,fadiwissa/onebody,mattraykowski/onebody,fadiwissa/onebody,fadiwissa/onebody,mattraykowski/onebody,fadiwissa/onebody,hschin/onebody,hschin/onebody,mattraykowski/onebody,hschin/onebody
ruby
## Code Before: class Friendship < ApplicationRecord belongs_to :person belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id' belongs_to :site scope_by_site_id validates :person, presence: true validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) } attr_accessor :s...
class Friendship < ApplicationRecord belongs_to :person belongs_to :friend, class_name: 'Person', foreign_key: 'friend_id' belongs_to :site scope_by_site_id validates :person, presence: true validates :friend, presence: true, uniqueness: { scope: %i(site_id person_id) } attr_acces...
8
0.307692
7
1
7991b9480f2c975420f9786db509d32bc1e54110
nuxt.config.js
nuxt.config.js
module.exports = { /* ** Headers of the page */ head: { title: 'CSS Frameworks', titleTemplate: '%s - CSS Frameworks', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: 'Compare CS...
const path = require('path') const dataPath = path.join(__dirname, process.env.repoDataPath || 'data.json') const frameworks = require(dataPath) module.exports = { /* ** Headers of the page */ head: { title: 'CSS Frameworks', titleTemplate: '%s - CSS Frameworks', meta: [ { charset: 'utf-8' }...
Change the way to load json
Change the way to load json
JavaScript
mit
sunya9/css-frameworks,sunya9/css-frameworks
javascript
## Code Before: module.exports = { /* ** Headers of the page */ head: { title: 'CSS Frameworks', titleTemplate: '%s - CSS Frameworks', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', cont...
+ const path = require('path') + + const dataPath = path.join(__dirname, process.env.repoDataPath || 'data.json') + const frameworks = require(dataPath) + module.exports = { /* ** Headers of the page */ head: { title: 'CSS Frameworks', titleTemplate: '%s - CSS Frameworks', meta: [ ...
13
0.276596
9
4
f8714c7acf0ea10576bfb408a01ac0fddd9c2ff9
specs/smoke.spec.coffee
specs/smoke.spec.coffee
require('./spec_helper') spy = require('through2-spy') describe 'smoke test', -> createFS = require('../index') coffee = require('gulp-coffee') it 'should mock gulp', (done) -> fs = createFS src: coffee: 'sample.coffee': """ console.log 'Hello world' ...
require('./spec_helper') spy = require('through2-spy') describe 'smoke test', -> createFS = require('../index') coffee = require('gulp-coffee') it 'should mock gulp', (done) -> fs = createFS src: coffee: 'sample.coffee': """ console.log 'Hello world' ...
Update smoke test with latest API
Update smoke test with latest API
CoffeeScript
mit
gonzoRay/vinyl-fs-mock,timnew/vinyl-fs-mock
coffeescript
## Code Before: require('./spec_helper') spy = require('through2-spy') describe 'smoke test', -> createFS = require('../index') coffee = require('gulp-coffee') it 'should mock gulp', (done) -> fs = createFS src: coffee: 'sample.coffee': """ console.log...
require('./spec_helper') spy = require('through2-spy') describe 'smoke test', -> createFS = require('../index') coffee = require('gulp-coffee') it 'should mock gulp', (done) -> fs = createFS src: coffee: 'sample.coffee': """ c...
6
0.181818
3
3
7093f257d5a6fdf553925f22311294738bff17e7
lib/string_foundation/case.rb
lib/string_foundation/case.rb
class String # Convert to lowerCamelCase. def to_lcamel end # Convert to UpperCamelCase. def to_ucamel end # Convert to lower_snake_case. def to_lsnake end # Convert to Upper_Snake_Case. def to_usnake end # Convert to lower-kebab-case. def to_lkebab end # Convert to Upper-Kebab-Cas...
class String # Convert to lowerCamelCase. def to_lcamel ucamel = self.to_ucamel ucamel[0].downcase + ucamel[1..-1] end # Convert to UpperCamelCase. def to_ucamel if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ') str = self str.split('_').map do |...
Implement “to_lcamel” and “to_ucamel” methods
[Add] Implement “to_lcamel” and “to_ucamel” methods Implement methos which convert string to camel case.
Ruby
mit
brushdown/string_foundation.rb,brushdown/string_foundation
ruby
## Code Before: class String # Convert to lowerCamelCase. def to_lcamel end # Convert to UpperCamelCase. def to_ucamel end # Convert to lower_snake_case. def to_lsnake end # Convert to Upper_Snake_Case. def to_usnake end # Convert to lower-kebab-case. def to_lkebab end # Convert to...
class String # Convert to lowerCamelCase. def to_lcamel + ucamel = self.to_ucamel + ucamel[0].downcase + ucamel[1..-1] end # Convert to UpperCamelCase. def to_ucamel + if self.include?('_') || self.include?('-') || self.include?('.') || self.include?(' ') + str = self + ...
30
0.697674
30
0
92f3bf2c99fb46bdf8059a91f10dc032bcd0b2da
lib/model/post_permalink.js
lib/model/post_permalink.js
exports.id = function(post){ return post.id || post._id; }; exports.title = function(post){ return post.slug; }; exports.year = function(post){ return post.date.format('YYYY'); }; exports.month = function(post){ return post.date.format('MM'); }; exports.day = function(post){ return post.date.format('DD');...
exports.id = function(post){ return post.id || post._id; }; exports.title = function(post){ return post.slug; }; exports.year = function(post){ return post.date.format('YYYY'); }; exports.month = function(post){ return post.date.format('MM'); }; exports.day = function(post){ return post.date.format('DD');...
Add 2 permalink parameters: i_month and i_day
Add 2 permalink parameters: i_month and i_day
JavaScript
mit
luodengxiong/hexo,imjerrybao/hexo,HcySunYang/hexo,crystalwm/hexo,cjwind/hexx,DevinLow/DevinLow.github.io,wyfyyy818818/hexo,lookii/looki,lukw00/hexo,Jeremy017/hexo,G-g-beringei/hexo,Gtskk/hexo,amobiz/hexo,memezilla/hexo,littledogboy/hexo,kywk/hexi,HiWong/hexo,leelynd/tapohuck,zoubin/hexo,viethang/hexo,zhoulingjun/hexo,z...
javascript
## Code Before: exports.id = function(post){ return post.id || post._id; }; exports.title = function(post){ return post.slug; }; exports.year = function(post){ return post.date.format('YYYY'); }; exports.month = function(post){ return post.date.format('MM'); }; exports.day = function(post){ return post.da...
exports.id = function(post){ return post.id || post._id; }; exports.title = function(post){ return post.slug; }; exports.year = function(post){ return post.date.format('YYYY'); }; exports.month = function(post){ return post.date.format('MM'); }; exports.day = function(post)...
8
0.242424
8
0
a25945640ec1df32ecf30e868b727010b1699f62
docker-entrypoint.sh
docker-entrypoint.sh
set -e set -o errexit set -o nounset set -o xtrace set -o verbose export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')" function clean_up { docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true } trap clean_up EXIT "$@"
set -e set -o errexit set -o nounset set -o xtrace set -o verbose docker version docker-compose version export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')" function clean_up { docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true } trap clean_up...
Add printing of version numbers
Add printing of version numbers
Shell
mit
saulshanabrook/docker-compose-image
shell
## Code Before: set -e set -o errexit set -o nounset set -o xtrace set -o verbose export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')" function clean_up { docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME) || true } trap clean_up EXIT "$@" ## Instruc...
set -e set -o errexit set -o nounset set -o xtrace set -o verbose + + docker version + docker-compose version export COMPOSE_PROJECT_NAME="dind$(cat /proc/sys/kernel/random/uuid | sed 's/-//g')" function clean_up { docker rm -fv $(docker ps -a --format "{{.Names}}" | grep $COMPOSE_PROJECT_NAME...
3
0.2
3
0
c2198336221707f86dc65204a239a34a80ea32b6
app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/pp/maint/transactionEngineHMRCPPMAINTFailure.scala.html
app/uk/gov/hmrc/hmrcemailrenderer/templates/transactionengine/pp/maint/transactionEngineHMRCPPMAINTFailure.scala.html
@(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") { <p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p> <p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, although the form was...
@(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Unsuccessful submission of the Amend Scheme Details Form.") { <p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p> <p style="margin: 0 0 30p...
Add title to HMRC PP Maint Scheme Failure template
Add title to HMRC PP Maint Scheme Failure template
HTML
apache-2.0
saurabharora80/hmrc-email-renderer
html
## Code Before: @(params: Map[String, Any]) @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") { <p style="margin: 0 0 30px; font-size: 19px;">Thank you for sending an Amend Scheme Details Form over the Internet.</p> <p style="margin: 0 0 30px; font-size: 19px;">Unfortunately, altho...
@(params: Map[String, Any]) - @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "") { + @uk.gov.hmrc.hmrcemailrenderer.templates.helpers.html.template_main(params, "Unsuccessful submission of the Amend Scheme Details Form.") { <p style="margin: 0 0 30px; font-size: 19px;">Thank you for...
2
0.222222
1
1
d686ed17aa158fdf487eed0e3b6b70a05d756825
views/quotes_pagination.tpl
views/quotes_pagination.tpl
% last_page = nof_pages - 1 % prev_page = page - 1 if page > 0 else None % next_page = page + 1 if page < last_page else None <div class="row"> <nav class="small-11 small-centered columns pagination-centered"> <ul class="pagination"> % if prev_page is not None: <li><a href="/quotes/0"><i class="fa fa-an...
% last_page = nof_pages - 1 % prev_page = page - 1 if page > 0 else None % next_page = page + 1 if page < last_page else None <div class="row"> <nav class="small-12 columns pagination-centered"> <ul class="pagination"> % if prev_page is not None: <li><a href="/quotes/0"><i class="fa fa-angle-double-left...
Extend pagination to full width
Extend pagination to full width
Smarty
mit
pyrige/pump19.eu,pyrige/pump19.eu
smarty
## Code Before: % last_page = nof_pages - 1 % prev_page = page - 1 if page > 0 else None % next_page = page + 1 if page < last_page else None <div class="row"> <nav class="small-11 small-centered columns pagination-centered"> <ul class="pagination"> % if prev_page is not None: <li><a href="/quotes/0"><i...
% last_page = nof_pages - 1 % prev_page = page - 1 if page > 0 else None % next_page = page + 1 if page < last_page else None <div class="row"> - <nav class="small-11 small-centered columns pagination-centered"> ? ^^^^^^^^^^^^^^^^ + <nav class="small-12 columns pagination-centered"> ? ...
2
0.090909
1
1
0a5e4194fe06b20b4eaacaa9452403f70076ccd3
base_solver.py
base_solver.py
from datetime import datetime class BaseSolver(object): task = None best_solution = None best_distance = float('inf') search_time = None cycles = 0 def __init__(self, task): self.task = task def run(self): start_time = datetime.now() self.best_solution, self.best...
from datetime import datetime class RunSolverFirst(Exception): pass class BaseSolver(object): task = None best_solution = None best_distance = float('inf') search_time = None cycles = 0 def __init__(self, task): self.task = task def run(self): start_time = datetime...
Add run solver first exception type
Add run solver first exception type
Python
mit
Cosiek/KombiVojager
python
## Code Before: from datetime import datetime class BaseSolver(object): task = None best_solution = None best_distance = float('inf') search_time = None cycles = 0 def __init__(self, task): self.task = task def run(self): start_time = datetime.now() self.best_sol...
from datetime import datetime + + class RunSolverFirst(Exception): + pass + class BaseSolver(object): task = None best_solution = None best_distance = float('inf') search_time = None cycles = 0 def __init__(self, task): self.task = task def ru...
6
0.139535
5
1
25cd8afdfede8a522f8d0f08ee4678a2e9c46a4b
curious/commands/__init__.py
curious/commands/__init__.py
import functools from curious.commands.command import Command def command(*args, **kwargs): """ A decorator to mark a function as a command. This will put a `factory` attribute on the function, which can later be called to create the Command instance. All arguments are passed to the Command class. ...
import functools from curious.commands.command import Command def command(*args, klass: type=Command, **kwargs): """ A decorator to mark a function as a command. This will put a `factory` attribute on the function, which can later be called to create the Command instance. All arguments are passed to...
Allow changing what object is returned from Command instances.
Allow changing what object is returned from Command instances.
Python
mit
SunDwarf/curious
python
## Code Before: import functools from curious.commands.command import Command def command(*args, **kwargs): """ A decorator to mark a function as a command. This will put a `factory` attribute on the function, which can later be called to create the Command instance. All arguments are passed to the ...
import functools from curious.commands.command import Command - def command(*args, **kwargs): + def command(*args, klass: type=Command, **kwargs): """ A decorator to mark a function as a command. This will put a `factory` attribute on the function, which can later be called to create the ...
6
0.166667
4
2
8a07b4ba433f108fbcc5b3f8732c67a50d527278
device/device.go
device/device.go
package device import ( "sync" "github.com/tarm/serial" ) type Manager struct { devices map[string]serial.Config mu sync.RWMutex } func (m *Manager) AddDevice(name string) error { cfg := serial.Config{Name: name} m.mu.Lock() m.devices[name] = cfg m.mu.Unlock() return nil } func (m *Manager) RemoveDev...
package device import ( "sync" "github.com/tarm/serial" ) type Manager struct { devices map[string]serial.Config conn []*Conn mu sync.RWMutex } func (m *Manager) AddDevice(name string) error { cfg := serial.Config{Name: name} m.mu.Lock() m.devices[name] = cfg m.mu.Unlock() return nil } func (m *M...
Use slice of *Conn instead of a map
Use slice of *Conn instead of a map These is very very devices at had. SO no need for a map
Go
mit
FarmRadioHangar/fessboxconfig,FarmRadioHangar/fessboxconfig
go
## Code Before: package device import ( "sync" "github.com/tarm/serial" ) type Manager struct { devices map[string]serial.Config mu sync.RWMutex } func (m *Manager) AddDevice(name string) error { cfg := serial.Config{Name: name} m.mu.Lock() m.devices[name] = cfg m.mu.Unlock() return nil } func (m *Ma...
package device import ( "sync" "github.com/tarm/serial" ) type Manager struct { devices map[string]serial.Config + conn []*Conn mu sync.RWMutex } func (m *Manager) AddDevice(name string) error { cfg := serial.Config{Name: name} m.mu.Lock() m.devices[name] = cfg m...
1
0.019608
1
0
9c85f88362b0d4fb1d02199580263440dfc19fa2
ajax/libs/jquery.ba-bbq/package.json
ajax/libs/jquery.ba-bbq/package.json
{ "name": "jquery.ba-bbq", "filename": "jquery.ba-bbq.min.js", "version": "1.2.1", "description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, a...
{ "name": "jquery.ba-bbq", "filename": "jquery.ba-bbq.min.js", "version": "1.2.1", "description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state management, a...
Add missing dependency on ≥jquery-1.2.6.
jquery.ba-bbq: Add missing dependency on ≥jquery-1.2.6.
JSON
mit
wangsai/cdnjs,jimmybyrum/cdnjs,me4502/cdnjs,senekis/cdnjs,2betop/cdnjs,sullivanmatt/cdnjs,WickyNilliams/cdnjs,rwjblue/cdnjs,binki/cdnjs,matteofigus/cdnjs,hperrin/cdnjs,migerh/cdnjs,mayur404/cdnjs,KoryNunn/cdnjs,legomushroom/cdnjs,xrmx/cdnjs,mircobabini/cdnjs,apneadiving/cdnjs,ericmittelhammer/cdnjs,mihneasim/cdnjs,gogo...
json
## Code Before: { "name": "jquery.ba-bbq", "filename": "jquery.ba-bbq.min.js", "version": "1.2.1", "description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash sta...
{ "name": "jquery.ba-bbq", "filename": "jquery.ba-bbq.min.js", "version": "1.2.1", "description": "jQuery BBQ leverages the HTML5 hashchange event to allow simple, yet powerful bookmarkable #hash history. In addition, jQuery BBQ provides a full .deparam() method, along with both hash state man...
6
0.24
4
2