commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
ae7bd8cc2d523c8d5963372067a6d65268350162
README.md
README.md
A Plugin for IntelliJ IDEA to enable JFlex support. This project was previously hosted on <http://code.google.com/p/idea-jflex> To build, follow the instructions on <http://www.jetbrains.org/intellij/sdk/docs/index.html> to get and configure the IntelliJ IDEA Community Edition source. Checkout the "nika" branch, w...
A Plugin for IntelliJ IDEA to enable JFlex support. This project was previously hosted on <http://code.google.com/p/idea-jflex> To build, follow the instructions on <http://www.jetbrains.org/intellij/sdk/docs/index.html> to get and configure the IntelliJ IDEA Community Edition source. Checkout the "nika" branch, w...
Add note about needing to restart IntelliJ to load the newly built plugin after saving it to the .IntelliJIDEA<X>/config/plugins/ directory.
Add note about needing to restart IntelliJ to load the newly built plugin after saving it to the .IntelliJIDEA<X>/config/plugins/ directory.
Markdown
apache-2.0
aefimov/idea-jflex
markdown
## Code Before: A Plugin for IntelliJ IDEA to enable JFlex support. This project was previously hosted on <http://code.google.com/p/idea-jflex> To build, follow the instructions on <http://www.jetbrains.org/intellij/sdk/docs/index.html> to get and configure the IntelliJ IDEA Community Edition source. Checkout the ...
52cab10524d5c5f495076f992eac46d3e3ff64d6
app/models/recommendation.rb
app/models/recommendation.rb
class Recommendation < ActiveRecord::Base belongs_to :photograph, counter_cache: true belongs_to :user, counter_cache: true validates :photograph_id, :user_id, presence: true validate :recommendation_quota_is_not_exceeded scope :for_day, lambda { |date| dt = date.to_datetime where("created_at >= ? A...
class Recommendation < ActiveRecord::Base belongs_to :photograph, counter_cache: true belongs_to :user, counter_cache: true validates :photograph_id, :user_id, presence: true validate :recommendation_quota_is_not_exceeded scope :for_day, lambda { |date| dt = date.to_datetime where("created_at >= ? A...
Update pusher trigger to hopefully get correct count
Update pusher trigger to hopefully get correct count
Ruby
mit
xuewenfei/photographer-io,robotmay/photographer-io,robotmay/photographer-io,arnkorty/photographer-io,xuewenfei/photographer-io,damoguyan8844/photographer-io,laputaer/photographer-io,arnkorty/photographer-io,laputaer/photographer-io,wangjun/photographer-io,xuewenfei/photographer-io,robotmay/photographer-io,damoguyan8844...
ruby
## Code Before: class Recommendation < ActiveRecord::Base belongs_to :photograph, counter_cache: true belongs_to :user, counter_cache: true validates :photograph_id, :user_id, presence: true validate :recommendation_quota_is_not_exceeded scope :for_day, lambda { |date| dt = date.to_datetime where("c...
ab904285bb66437561d3b319fcfbe143552722d7
src/styles/components/Button.styl
src/styles/components/Button.styl
.button-container margin: 30px 0 .btn background: rgba(0,0,0,0.03) padding: 10px 20px font-size: 1.25rem border-radius: 4px border: 1px solid rgba(185, 185, 185, 0.44) cursor: pointer color: #d2d2d2 user-select: none opacity: 1 transition: all 0.3s &:hover background: rgba(0,0,0,0.04) box-...
.button-container margin: 30px 0 .btn background: rgba(0,0,0,0.03) padding: 10px 20px font-size: 1.25rem border-radius: 4px border: 1px solid rgba(185, 185, 185, 0.44) cursor: pointer color: #d2d2d2 user-select: none opacity: 1 transition: all 0.3s &:hover background: rgba(0,0,0,0.04) box-...
Set media query style for max height 500px
Set media query style for max height 500px
Stylus
mit
IvaPetkova/My-HTML-Projects
stylus
## Code Before: .button-container margin: 30px 0 .btn background: rgba(0,0,0,0.03) padding: 10px 20px font-size: 1.25rem border-radius: 4px border: 1px solid rgba(185, 185, 185, 0.44) cursor: pointer color: #d2d2d2 user-select: none opacity: 1 transition: all 0.3s &:hover background: rgba(0,0...
42c3dddcc8d35d622b06fecff20eebda17f7d6f8
.travis.yml
.travis.yml
language: go services: - mysql env: - MYSQL_TEST="true" go: - 1.7.5 - 1.8rc3 matrix: allow_failures: - go: 1.8rc2 before_install: - go get -v github.com/golang/lint/golint install: - go version before_script: - mysql < db/seed.sql sudo: false script: - ./run_tests.sh
language: go services: - mysql env: - MYSQL_TEST="true" go: - 1.7.5 - 1.8 - tip matrix: allow_failures: - go: tip before_install: - go get -v github.com/golang/lint/golint install: - go version before_script: - mysql < db/seed.sql sudo: false script: - ./run_tests.sh
Test against 1.8 and tip
Test against 1.8 and tip
YAML
mit
lyda/cashier,fuero/cashier,fuero/cashier,nsheridan/cashier,fuero/cashier,lyda/cashier,nsheridan/cashier
yaml
## Code Before: language: go services: - mysql env: - MYSQL_TEST="true" go: - 1.7.5 - 1.8rc3 matrix: allow_failures: - go: 1.8rc2 before_install: - go get -v github.com/golang/lint/golint install: - go version before_script: - mysql < db/seed.sql sudo: false script: - ./run_tests.sh ## Ins...
13d2460f7d82c71855d9e2621f7a8f3b408e0776
Casks/openoffice.rb
Casks/openoffice.rb
class Openoffice < Cask url 'http://downloads.sourceforge.net/project/openofficeorg.mirror/4.0.1/binaries/en-US/Apache_OpenOffice_4.0.1_MacOS_x86_install_en-US.dmg' homepage 'http://www.openoffice.org/' version '4.0.1' sha256 'a6350066eb4a7cb35db8fda6d27c2f22534233465a95a9d4065e61fc717b7c5f' link 'OpenOffice....
class Openoffice < Cask url 'http://downloads.sourceforge.net/project/openofficeorg.mirror/4.1.0/binaries/en-US/Apache_OpenOffice_4.1.0_MacOS_x86-64_install_en-US.dmg' homepage 'http://www.openoffice.org/' version '4.1.0' sha256 'ac77ff69cbbd87523e019d3c68d839cba2f952b0b63c13fb948863c8f25eaa9a' link 'OpenOffi...
Update OpenOffice to version 4.1
Update OpenOffice to version 4.1
Ruby
bsd-2-clause
tan9/homebrew-cask,moimikey/homebrew-cask,mariusbutuc/homebrew-cask,ingorichter/homebrew-cask,andrewdisley/homebrew-cask,af/homebrew-cask,neverfox/homebrew-cask,blogabe/homebrew-cask,lumaxis/homebrew-cask,optikfluffel/homebrew-cask,doits/homebrew-cask,ebraminio/homebrew-cask,feniix/homebrew-cask,fazo96/homebrew-cask,fl...
ruby
## Code Before: class Openoffice < Cask url 'http://downloads.sourceforge.net/project/openofficeorg.mirror/4.0.1/binaries/en-US/Apache_OpenOffice_4.0.1_MacOS_x86_install_en-US.dmg' homepage 'http://www.openoffice.org/' version '4.0.1' sha256 'a6350066eb4a7cb35db8fda6d27c2f22534233465a95a9d4065e61fc717b7c5f' l...
c39ccef03badcc426667c23ff8b8f5eedbe3996e
webpack/module/rules/data.yaml
webpack/module/rules/data.yaml
- test: !!js/regexp /\.(js|jsx|es[0-9]?x?)$/ exclude: !!js/regexp /monaco/ loader: babel-loader - test: /\.(js|jsx|es[0-9]?x?)$/ exclude: !!js/regexp /node_modules|bower_components/ use: loader: standard-loader options: error: true snazzy: true parser: babel-eslint
- test: - and: - !!js/regexp /\.(js|jsx|es[0-9]?x?)$/ - not: - !!js/regexp /monaco/ - !!js/regexp /node_modules|bower_components/ - or: - !!js/regexp /node_modules.*(x|concat|deep|parallel|product|range|spread)-iterable(|-base|-utils).*\.jsx?/ - !!js/regexp /node_modules.*just-try.*\.jsx...
Convert es6 dependencies into es5
Convert es6 dependencies into es5
YAML
mit
KSXGitHub/react-hello-world,KSXGitHub/react-hello-world,KSXGitHub/react-hello-world
yaml
## Code Before: - test: !!js/regexp /\.(js|jsx|es[0-9]?x?)$/ exclude: !!js/regexp /monaco/ loader: babel-loader - test: /\.(js|jsx|es[0-9]?x?)$/ exclude: !!js/regexp /node_modules|bower_components/ use: loader: standard-loader options: error: true snazzy: true parser: babel-eslint ## ...
fe4a580da76e03b60fa5539ee5dea72434919344
README.md
README.md
[![Build Status](https://travis-ci.org/CFWS/Periodic.svg?branch=master)](https://travis-ci.org/CFWS/Periodic) Periodic is a minimalistic Periodic Table of Elements, coded in HTML5, CSS3 and Javascript. ## Contributing You may contribute to this project by creating pull requests and opening new issues. Element i...
[![Build Status](https://travis-ci.org/CFWS/Periodic.svg?branch=master)](https://travis-ci.org/CFWS/Periodic) Periodic is a minimalistic Periodic Table of Elements, coded in HTML5, CSS3 and Javascript. ## Contributing You may contribute to this project by creating pull requests and opening new issues. Element i...
Clarify source of element information
Clarify source of element information
Markdown
mit
CFWS/Periodic,CFWS/Periodic
markdown
## Code Before: [![Build Status](https://travis-ci.org/CFWS/Periodic.svg?branch=master)](https://travis-ci.org/CFWS/Periodic) Periodic is a minimalistic Periodic Table of Elements, coded in HTML5, CSS3 and Javascript. ## Contributing You may contribute to this project by creating pull requests and opening new iss...
d5c43ee41720cf345da2947fb1453a94c750b364
readme.md
readme.md
Makefile support for IntelliJ-based IDEs ======================================== Get it from plugin repository: https://plugins.jetbrains.com/idea/plugin/9333 Plugin for editing Makefiles in IntelliJ-based IDEs. Fully supports GNU Make syntax. Provides: * syntax highlighting * keywords & target names completion ...
Makefile support for IntelliJ-based IDEs ======================================== Get it from plugin repository: https://plugins.jetbrains.com/plugin/9333-makefile-support Plugin for editing Makefiles in IntelliJ-based IDEs. Fully supports GNU Make syntax. Provides: * syntax highlighting * keywords & target names...
Fix link for getting plugin repository
Fix link for getting plugin repository
Markdown
mit
kropp/intellij-makefile
markdown
## Code Before: Makefile support for IntelliJ-based IDEs ======================================== Get it from plugin repository: https://plugins.jetbrains.com/idea/plugin/9333 Plugin for editing Makefiles in IntelliJ-based IDEs. Fully supports GNU Make syntax. Provides: * syntax highlighting * keywords & target n...
41e78082ddff3f538cc40b6461a90e4067b94074
rocketbelt/base/color/_color.scss
rocketbelt/base/color/_color.scss
@include color-families(); $color-families: map-merge($color-families, ( 'ui': ( 'footer': color(brand, columbiaBlue), 'footerAlt': color(brand, catskillBlue) ) ));
@include color-families(); $color-families: map-merge($color-families, ( 'ui': ( 'footer': color(brand, columbiaBlue), 'footerAlt': color(brand, catskillBlue), 'link': color(brand, logoBlue) ) ));
Add to UI color map.
feat(Color): Add to UI color map.
SCSS
mit
Pier1/rocketbelt,Pier1/rocketbelt
scss
## Code Before: @include color-families(); $color-families: map-merge($color-families, ( 'ui': ( 'footer': color(brand, columbiaBlue), 'footerAlt': color(brand, catskillBlue) ) )); ## Instruction: feat(Color): Add to UI color map. ## Code After: @include color-families(); $color-families: map-merge($col...
5b06b64dffab11f0defa7fcbeaa934d752ddbc21
fishr/templates/base.html
fishr/templates/base.html
{% extends "bootstrap/base.html" %} {% block styles %} {{ super() }} <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}"> --> <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='colors.css') }}"> --> {% endblock %} {% block scripts %} {{ super...
{% extends "bootstrap/base.html" %} {% block styles %} {{ super() }} <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}"> --> <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='colors.css') }}"> --> {% endblock %} {% block scripts %} {{ super...
Update header message to something more controversial
Update header message to something more controversial
HTML
mit
matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai,matthew-sochor/fish.io.ai
html
## Code Before: {% extends "bootstrap/base.html" %} {% block styles %} {{ super() }} <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css') }}"> --> <!-- <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='colors.css') }}"> --> {% endblock %} {% block scr...
23c29c4964286fc2ca8fb3a957a6e7810edb9d17
alexia/template/context_processors.py
alexia/template/context_processors.py
from __future__ import unicode_literals from alexia.apps.organization.models import Organization def organization(request): return { 'organizations': Organization.objects.all(), 'current_organization': request.organization, } def permissions(request): if request.user.is_superuser: ...
from __future__ import unicode_literals from alexia.apps.organization.models import Organization def organization(request): return { 'organizations': Organization.objects.all(), 'current_organization': request.organization, } def permissions(request): if request.user.is_superuser: ...
Fix AttributeError: 'AnonymousUser' object has no attribute 'membership_set'
Fix AttributeError: 'AnonymousUser' object has no attribute 'membership_set'
Python
bsd-3-clause
Inter-Actief/alexia,Inter-Actief/alexia,Inter-Actief/alexia,Inter-Actief/alexia
python
## Code Before: from __future__ import unicode_literals from alexia.apps.organization.models import Organization def organization(request): return { 'organizations': Organization.objects.all(), 'current_organization': request.organization, } def permissions(request): if request.user.is_...
540a090139b889f2a2c33617f4408d7b288d1445
test/mocha/helper/login-helper.js
test/mocha/helper/login-helper.js
'use strict'; const chai = require('chai'); const chaiHttp = require('chai-http'); chai.use(chaiHttp); const login = (app) => { let agent = chai.request.agent(app); // create agent for storing cookies return new Promise((resolve, reject) => { agent .post('/login/') .send({'user...
"use strict"; const chai = require("chai"); const chaiHttp = require("chai-http"); chai.use(chaiHttp); const login = app => { let agent = chai.request.agent(app); // create agent for storing cookies return new Promise((resolve, reject) => { getCsrfToken(agent).then(csrf => { agent .post("/login/") ...
Modify mocha test to use carf token
Modify mocha test to use carf token
JavaScript
agpl-3.0
schul-cloud/schulcloud-client,schul-cloud/schulcloud-client,schul-cloud/schulcloud-client
javascript
## Code Before: 'use strict'; const chai = require('chai'); const chaiHttp = require('chai-http'); chai.use(chaiHttp); const login = (app) => { let agent = chai.request.agent(app); // create agent for storing cookies return new Promise((resolve, reject) => { agent .post('/login/') ...
d03f540265a1491863900e35eb4be3e46b35d1c5
project/src/main/java/com/google/sps/data/CompetitorInfo.java
project/src/main/java/com/google/sps/data/CompetitorInfo.java
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Add class for competitor info
Add class for competitor info
Java
apache-2.0
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
java
## Code Before: // Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
50c9ea44bcb8267a49b68e53cfe2184a1f2b5462
src/go/main.go
src/go/main.go
package main import "os" import "fmt" func main(){ args := os.Args[1:] fmt.Println(args[0]) }
package main import "os" import "fmt" import "bufio" func main(){ args := os.Args[1:] if len(args) == 1 { fmt.Println(args[0]) } else { fmt.Println("No args") } fmt.Println("Input something: ") reader := bufio.NewReader(os.Stdin) input, _, _ := reader.ReadLine() fmt.P...
Test go args and input
Test go args and input
Go
mit
Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum,Bigsby/matrix.sum
go
## Code Before: package main import "os" import "fmt" func main(){ args := os.Args[1:] fmt.Println(args[0]) } ## Instruction: Test go args and input ## Code After: package main import "os" import "fmt" import "bufio" func main(){ args := os.Args[1:] if len(args) == 1 { fmt.Println(args[0]...
e70d475d1b0453cbf054d2341e5dc239279dd06e
src/Zip/config/zip.php
src/Zip/config/zip.php
<?php return [ /* |-------------------------------------------------------------------------- | postocdeapi api key |-------------------------------------------------------------------------- | Place your postcode api key here, or get it from your .env file | | */ "api_key" => ge...
<?php return [ /* |-------------------------------------------------------------------------- | postocdeapi api key |-------------------------------------------------------------------------- | Place your postcode api key here, or get it from your .env file. Provide | a key when you do not us...
Use of env method instead of the getenv method
Use of env method instead of the getenv method
PHP
bsd-3-clause
megawubs/postcode-api
php
## Code Before: <?php return [ /* |-------------------------------------------------------------------------- | postocdeapi api key |-------------------------------------------------------------------------- | Place your postcode api key here, or get it from your .env file | | */ ...
447d88967f33a1338d6052d6220618b90045a58c
tests/dummy/app/templates/application.hbs
tests/dummy/app/templates/application.hbs
{{#zf-off-canvas as |section| }} {{#if section.isOffCanvasLeft}} <p>Example left off canvas content</p> {{else}} {{main-canvas}} <!-- Buttons to toggle off canvas --> <button class="button" data-toggle="zf-off-canvas-left">Toggle Sidebar</button> {{/if}} {{/zf-off-canvas}}
{{#zf-off-canvas as |section| }} {{#if section.isOffCanvasLeft}} {{#zf-accordion-menu}} <!-- Item 1 --> <li> <a href="#">Item 1</a> <ul class="menu vertical nested"> <li> Attribute 1 {{#zf-slider}} <span class="slider-handle" data-slide...
Add menu and slider to dummy sidebar
Add menu and slider to dummy sidebar
Handlebars
mit
SleepyWerewolf/ember-avatar,SleepyWerewolf/ember-avatar
handlebars
## Code Before: {{#zf-off-canvas as |section| }} {{#if section.isOffCanvasLeft}} <p>Example left off canvas content</p> {{else}} {{main-canvas}} <!-- Buttons to toggle off canvas --> <button class="button" data-toggle="zf-off-canvas-left">Toggle Sidebar</button> {{/if}} {{/zf-off-canvas}} ## I...
6c2c850a237db480677ec02f146756560aeb5b64
requirements.txt
requirements.txt
lxml==3.4.4 beautifulsoup4==4.4.1 zhihu-oauth==0.0.12
amqp==1.4.9 anyjson==0.3.3 beautifulsoup4==4.4.1 billiard==3.3.0.23 celery==3.1.23 eventlet==0.19.0 greenlet==0.4.10 kombu==3.0.30 lxml==3.4.4 pytz==2016.4 requests==2.10.0 zhihu-oauth==0.0.14
Update zhihu-oauth version to 0.0.14
Update zhihu-oauth version to 0.0.14
Text
mit
knarfeh/EE-Book
text
## Code Before: lxml==3.4.4 beautifulsoup4==4.4.1 zhihu-oauth==0.0.12 ## Instruction: Update zhihu-oauth version to 0.0.14 ## Code After: amqp==1.4.9 anyjson==0.3.3 beautifulsoup4==4.4.1 billiard==3.3.0.23 celery==3.1.23 eventlet==0.19.0 greenlet==0.4.10 kombu==3.0.30 lxml==3.4.4 pytz==2016.4 requests==2.10.0 zhihu-oa...
1fc32b66ef075a7162b7c51018b11819d71df277
sandwich_time.js
sandwich_time.js
var SandwichTime = (function () { var level; function Slab(width, height, upperLeft, paint) { var width, height, upperLeft, paint; this.width = width; this.height = height; this.upperLeft = upperLeft; this.paint = paint; } function Tower(slabs) { var numSlabs, slabs; this....
var SandwichTime = (function () { var level; function Slab(width, height, upperLeft, paint) { var width, height, upperLeft, paint; this.width = width; this.height = height; this.upperLeft = upperLeft; this.paint = paint; } function Tower(slabs) { var numSlabs, slabs; this....
Make a partially random tower
Make a partially random tower
JavaScript
mit
michaellaszlo/tofu-time,michaellaszlo/tofu-time
javascript
## Code Before: var SandwichTime = (function () { var level; function Slab(width, height, upperLeft, paint) { var width, height, upperLeft, paint; this.width = width; this.height = height; this.upperLeft = upperLeft; this.paint = paint; } function Tower(slabs) { var numSlabs, ...
dd37e4e0c49c434fabcdbd8c9b8808d8116f7989
src/entities/Pickup.java
src/entities/Pickup.java
package edu.stuy.starlorn.entities; import java.awt.geom.Rectangle2D; import edu.stuy.starlorn.upgrades.Upgrade; public class Pickup extends Entity { protected Upgrade upgrade; protected double speed; public Pickup(Upgrade up, double x, double y) { super(x, y, up.getSpriteName()); upgra...
package edu.stuy.starlorn.entities; import java.awt.geom.Rectangle2D; import edu.stuy.starlorn.upgrades.Upgrade; public class Pickup extends Entity { protected Upgrade upgrade; protected double speed; public Pickup(Upgrade up, double x, double y) { super(x, y, up.getSpriteName()); upgra...
Make pickup collisions more sensible.
Make pickup collisions more sensible.
Java
mit
Hypersonic/Starlorn
java
## Code Before: package edu.stuy.starlorn.entities; import java.awt.geom.Rectangle2D; import edu.stuy.starlorn.upgrades.Upgrade; public class Pickup extends Entity { protected Upgrade upgrade; protected double speed; public Pickup(Upgrade up, double x, double y) { super(x, y, up.getSpriteName()...
8b4564ece225cf8c34421cb54e8c34e73aac7068
.travis.yml
.travis.yml
language: python python: 2.7 sudo: false os: - linux - osx env: - TOX_ENV=lint - TOX_ENV=py26 - TOX_ENV=py27 - TOX_ENV=pypy - TOX_ENV=py32 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=docs install: - pip install tox script: - tox -e $TOX_ENV
language: python python: 2.7 sudo: false os: - linux - osx env: - TOX_ENV=lint - TOX_ENV=py26 - TOX_ENV=py27 - TOX_ENV=pypy - TOX_ENV=py32 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=docs matrix: fast_finish: true allow_failures: - env: os=osx install: - pip install tox script: - tox -e $...
Allow build failures on osx - it looks like TravisCI OSX builders are messed up.
Allow build failures on osx - it looks like TravisCI OSX builders are messed up.
YAML
apache-2.0
curoverse/libcloud,wrigri/libcloud,Kami/libcloud,NexusIS/libcloud,smaffulli/libcloud,mgogoulos/libcloud,StackPointCloud/libcloud,mathspace/libcloud,Scalr/libcloud,NexusIS/libcloud,wido/libcloud,mistio/libcloud,Kami/libcloud,schaubl/libcloud,mbrukman/libcloud,ByteInternet/libcloud,Scalr/libcloud,sahildua2305/libcloud,te...
yaml
## Code Before: language: python python: 2.7 sudo: false os: - linux - osx env: - TOX_ENV=lint - TOX_ENV=py26 - TOX_ENV=py27 - TOX_ENV=pypy - TOX_ENV=py32 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=docs install: - pip install tox script: - tox -e $TOX_ENV ## Instruction: Allow build failures on ...
fa107190aec17cd9dbfff2f12d5d49d0bbbfb699
examples/ThumbNailer/CMakeLists.txt
examples/ThumbNailer/CMakeLists.txt
project(ThumbNailer) kde_enable_exceptions() set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) qt5_wrap_ui(UI_FILES MainWindow.ui) add_executable(ThreadWeaver_ThumbNailer ThumbNailer.cpp Image.cpp Model.cpp MainWindow.cpp Benchmark.cpp PriorityDecorator.cpp ItemDelegate.cpp ImageLi...
project(ThumbNailer) kde_enable_exceptions() set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) qt5_wrap_ui(UI_FILES MainWindow.ui) add_executable(ThreadWeaver_ThumbNailer ThumbNailer.cpp Image.cpp Model.cpp MainWindow.cpp Benchmark.cpp PriorityDecorator.cpp ItemDelegate.cpp ImageLi...
Remove usage of deprecated qt5_use_modules
Remove usage of deprecated qt5_use_modules
Text
lgpl-2.1
KDE/threadweaver,KDE/threadweaver,KDE/threadweaver
text
## Code Before: project(ThumbNailer) kde_enable_exceptions() set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) qt5_wrap_ui(UI_FILES MainWindow.ui) add_executable(ThreadWeaver_ThumbNailer ThumbNailer.cpp Image.cpp Model.cpp MainWindow.cpp Benchmark.cpp PriorityDecorator.cpp ItemDelegate...
65c3bca812f50a3ec23342677ec9a1fb42f0aee3
app/views/spree/templates/line_items/_show.html
app/views/spree/templates/line_items/_show.html
<script type='text/template' id='line-item-template'> <td class="cart-item-image" data-hook="cart_item_image"> <a href='#'> <img alt="<%%= variant.name %>" src="<%%= displayImage('small') %>" data-product-permalink='<%%= permalink() %>'> </a> </td> <td class="cart-item-description" data-hook="cart_i...
<script type='text/template' id='line-item-template'> <td class="cart-item-image" data-hook="cart_item_image"> <a href='#'> <img alt="<%%= variant.name %>" src="<%%= displayImage('small') %>" data-product-permalink='<%%= permalink() %>'> </a> </td> <td class="cart-item-description" data-hook="cart_i...
Truncate variant descriptions in cart
Truncate variant descriptions in cart
HTML
bsd-3-clause
njaw/spree,njaw/spree,njaw/spree
html
## Code Before: <script type='text/template' id='line-item-template'> <td class="cart-item-image" data-hook="cart_item_image"> <a href='#'> <img alt="<%%= variant.name %>" src="<%%= displayImage('small') %>" data-product-permalink='<%%= permalink() %>'> </a> </td> <td class="cart-item-description" d...
bf4c31f4992b20eb0d585b846ec043eae0cd7a96
js/locales/foundation-datepicker.ja.js
js/locales/foundation-datepicker.ja.js
/** * Japanese translation for foundation-datepicker * Norio Suzuki <https://github.com/suzuki/> */ ;(function($){ $.fn.fdatepicker.dates['ja'] = { days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], daysShort: ["日", "月", "火", "水", "木", "金", "土"], daysMin: ["日", "月", "火", "水", "木", "金", "土"], ...
/** * Japanese translation for foundation-datepicker * Norio Suzuki <https://github.com/suzuki/> */ ;(function($){ $.fn.fdatepicker.dates['ja'] = { days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], daysShort: ["日", "月", "火", "水", "木", "金", "土"], daysMin: ["日", "月", "火", "水", "木", "金", "土"], ...
Cut out the extra character
Cut out the extra character
JavaScript
apache-2.0
najlepsiwebdesigner/foundation-datepicker,najlepsiwebdesigner/foundation-datepicker
javascript
## Code Before: /** * Japanese translation for foundation-datepicker * Norio Suzuki <https://github.com/suzuki/> */ ;(function($){ $.fn.fdatepicker.dates['ja'] = { days: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], daysShort: ["日", "月", "火", "水", "木", "金", "土"], daysMin: ["日", "月", "火", "水", "木...
fdf89bc553c5fe5f9900658e8526cd398165d2f3
src/condor_includes/_condor_fix_types.h
src/condor_includes/_condor_fix_types.h
/* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend on sys/types.h will need these extra definitions... */ typedef u...
// OSF/1 has this as an "unsigned long", but this is incorrect. It // is used by lseek(), and must be able to hold negative values. #if defined(OSF1) #define off_t _hide_off_t #endif #include <sys/types.h> #if defined(OSF1) #undef off_t typedef long off_t; #endif /* The system include file defines this in terms ...
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
Fix up definition of off_t for DecAlpha OSF/1 v1.3.
C
apache-2.0
bbockelm/condor-network-accounting,htcondor/htcondor,zhangzhehust/htcondor,djw8605/condor,htcondor/htcondor,neurodebian/htcondor,clalancette/condor-dcloud,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,djw8605/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalance...
c
## Code Before: /* The system include file defines this in terms of bzero(), but ANSI says we should use memset(). */ #if defined(OSF1) #undef FD_ZERO #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) #endif /* Various non-POSIX conforming files which depend on sys/types.h will need these extra definitions....
9e548dedc05062cad6665815078a8b4fc7d8b90e
src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java
src/main/java/com/github/pedrovgs/problem38/PathToEveryLeaf.java
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
/* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
Add recursive solution to problem 38
Add recursive solution to problem 38
Java
apache-2.0
mrgenco/Algorithms-1,JeffreyWei/Algorithms,zmywly8866/Algorithms,007slm/Algorithms,Arkar-Aung/Algorithms,sridhar-newsdistill/Algorithms,AppScientist/Algorithms,jibaro/Algorithms,zhdh2008/Algorithms,ArlenLiu/Algorithms,VeskoI/Algorithms,chengjinqian/Algorithms,Ariloum/Algorithms,inexistence/Algorithms,pedrovgs/Algorithm...
java
## Code Before: /* * Copyright (C) 2014 Pedro Vicente Gómez Sánchez. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
6f2c78147fc14c5b7fed28d3109fecd188bd3695
assets/css/main.scss
assets/css/main.scss
--- # Only the main Sass file needs front matter (the dashes are enough) --- @charset "utf-8"; // Our variables $font-family-base: Helvetica, Arial, sans-serif; $spacing-unit: 30px; // Use media queries like this: // @include media-query($on-palm) { // .wrapper { // padding-right: $spacing-unit / 2;...
--- # Only the main Sass file needs front matter (the dashes are enough) --- @charset "utf-8"; // Our variables $font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; $spacing-unit: 30px; // Use media ...
Apply better default for fonts
Apply better default for fonts
SCSS
mit
jekyll-octopod/jekyll-bootflat,jekyll-octopod/jekyll-bootflat,jekyll-octopod/jekyll-bootflat
scss
## Code Before: --- # Only the main Sass file needs front matter (the dashes are enough) --- @charset "utf-8"; // Our variables $font-family-base: Helvetica, Arial, sans-serif; $spacing-unit: 30px; // Use media queries like this: // @include media-query($on-palm) { // .wrapper { // padding-right: $s...
13ea5c116a91b4430f11b993ed2f18d5b9a33bcf
README.md
README.md
A simple way to open a secure ssh shell to your account. # Getting dependencies go get -u github.com/golang/dep/... && dep ensure # Testing go test $(go list ./... | grep -v /vendor/) # Building go build # Running ./gmash
A simple way to open a secure ssh shell to your account. # Getting dependencies go get -u github.com/golang/dep/... && dep ensure # Running unit tests go test $(go list ./... | grep -v /vendor/) # Testing go get install (with docker) docker run --rm -it golang go get github.com/efarrer/gmash # Building go build #...
Include instructions on how to test the go get install
Include instructions on how to test the go get install
Markdown
mit
efarrer/gmash
markdown
## Code Before: A simple way to open a secure ssh shell to your account. # Getting dependencies go get -u github.com/golang/dep/... && dep ensure # Testing go test $(go list ./... | grep -v /vendor/) # Building go build # Running ./gmash ## Instruction: Include instructions on how to test the go get install ## C...
3aba8e0bde18f8ab389c0059de4b334f432bcd4b
.travis.yml
.travis.yml
language: php sudo: false matrix: include: - php: 5.4 - php: 5.5 - php: 5.6 fast_finish: true before_install: - composer self-update install: - composer --prefer-source install script: - vendor/phpunit/phpunit/phpunit
language: php sudo: false matrix: include: - php: 5.4 - php: 5.5 - php: 5.6 - php: 7.0 - hhvm fast_finish: true matrix: allow_failures: - php: hhvm before_install: - composer self-update install: - composer --prefer-source install script: - vendor/...
Add testing for PHP 7.0 and HHVM
Add testing for PHP 7.0 and HHVM
YAML
mit
transfer-project/bridge
yaml
## Code Before: language: php sudo: false matrix: include: - php: 5.4 - php: 5.5 - php: 5.6 fast_finish: true before_install: - composer self-update install: - composer --prefer-source install script: - vendor/phpunit/phpunit/phpunit ## Instruction: Add testing for PHP ...
b4fa43b85a162fa9bef3cb67c2dd523f25707b4d
mo/cli.py
mo/cli.py
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) variables[name] ...
Add a way of listing commands
Add a way of listing commands
Python
mit
thomasleese/mo
python
## Code Before: from argparse import ArgumentParser import yaml from .runner import Runner def parse_variables(args): variables = {} if args is not None: for variable in args: tokens = variable.split('=') name = tokens[0] value = '='.join(tokens[1:]) ...
aee8e03fb4376c6885decea29c2de1e5895c5104
recipes/meta/KiCad.yml
recipes/meta/KiCad.yml
app: KiCad binpatch: true ingredients: packages: - kicad - kicad-library dist: trusty sources: - deb http://archive.ubuntu.com/ubuntu/ trusty main universe ppas: - js-reynaud/kicad-4 script: - # Workaround until - # AppRun.c exports rather than just sets environment variables - cat > ./...
app: KiCad binpatch: true ingredients: packages: - kicad - kicad-library - libcurl3 dist: trusty sources: - deb http://archive.ubuntu.com/ubuntu/ trusty main universe ppas: - js-reynaud/kicad-4 script: - # Workaround until - # AppRun.c exports rather than just sets environment variabl...
Add libcurl3 because the system one may require a differen OpenSSL version
Add libcurl3 because the system one may require a differen OpenSSL version
YAML
mit
darealshinji/AppImages,probonopd/AppImages
yaml
## Code Before: app: KiCad binpatch: true ingredients: packages: - kicad - kicad-library dist: trusty sources: - deb http://archive.ubuntu.com/ubuntu/ trusty main universe ppas: - js-reynaud/kicad-4 script: - # Workaround until - # AppRun.c exports rather than just sets environment variab...
a2b083e9e3f5d2aad1000aa364f9d519f70d8078
package.json
package.json
{ "name": "react-user-avatar", "version": "1.7.1", "description": "React component for a user avatar with fallback to colored initials", "main": "user-avatar.js", "style": "example.css", "scripts": { "build": "babel index.js -s -o user-avatar.js", "prepublish": "npm run build", "test": "budo tes...
{ "name": "react-user-avatar", "version": "1.7.1", "description": "React component for a user avatar with fallback to colored initials", "main": "user-avatar.js", "style": "example.css", "scripts": { "build": "babel index.js -s -o user-avatar.js", "prepublish": "npm run build", "test": "budo tes...
Update peerDependencies for React 15 compatibility
Update peerDependencies for React 15 compatibility
JSON
mit
wbinnssmith/react-user-avatar
json
## Code Before: { "name": "react-user-avatar", "version": "1.7.1", "description": "React component for a user avatar with fallback to colored initials", "main": "user-avatar.js", "style": "example.css", "scripts": { "build": "babel index.js -s -o user-avatar.js", "prepublish": "npm run build", "...
473ee59ea5f4686329a5f7dc1996e5efcbc8e2c6
requirements.txt
requirements.txt
attrs boltons doct h5py jsonschema numpy pandas pims pymongo requests six toolz tzlocal ujson mongoquery pyyaml tifffile tornado
attrs boltons doct h5py humanize jinja2 jsonschema mongoquery numpy pandas pims pymongo pyyaml requests six tifffile toolz tornado tzlocal ujson
Add 'humanize', 'jinja2', and sort all alphabetically.
BLD: Add 'humanize', 'jinja2', and sort all alphabetically.
Text
bsd-3-clause
ericdill/databroker,ericdill/databroker
text
## Code Before: attrs boltons doct h5py jsonschema numpy pandas pims pymongo requests six toolz tzlocal ujson mongoquery pyyaml tifffile tornado ## Instruction: BLD: Add 'humanize', 'jinja2', and sort all alphabetically. ## Code After: attrs boltons doct h5py humanize jinja2 jsonschema mongoquery numpy pandas pims py...
86ab4917aadaebaa1de93c205e9700ed4d115b97
dashboard/src/app/workspaces/workspace-details/warnings/workspace-warnings.controller.ts
dashboard/src/app/workspaces/workspace-details/warnings/workspace-warnings.controller.ts
/* * Copyright (c) 2015-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
/* * Copyright (c) 2015-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc. - initial API a...
Fix empty warning on workspace details page
Fix empty warning on workspace details page Signed-off-by: Anna Shumilova <5c553f00a5672a7f42aa2b20985a042f7cf9d1c2@redhat.com>
TypeScript
epl-1.0
davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,codenvy/che,davidfestal/che,codenvy/che,davidfestal/che,davidfestal/che,davidfestal/che,davidfestal/che
typescript
## Code Before: /* * Copyright (c) 2015-2018 Red Hat, Inc. * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Red Hat, Inc....
be6972aa847f27c3367c90926e3b743c33dfbcb8
app/assets/stylesheets/components/cards/cards/_cards-basic.scss
app/assets/stylesheets/components/cards/cards/_cards-basic.scss
//-------------------------------------------------- // classes //-------------------------------------------------- &--basic { @include flex-h-between; @include responsive(display, block, flex, flex); .cards__card { @include responsive(width, 100%, 46%, 47%); margin-bottom: rem-calc(24); } .card__t...
//-------------------------------------------------- // classes //-------------------------------------------------- &--basic { @include flex-h-between; @include responsive(display, block, flex, flex); @include responsive(flex-wrap, none, wrap, wrap); .cards__card { @include responsive(width, 100%, 46%, 47...
Add in missing flex-wrap for growth ssection
Add in missing flex-wrap for growth ssection
SCSS
bsd-3-clause
unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet,unepwcmc/ProtectedPlanet
scss
## Code Before: //-------------------------------------------------- // classes //-------------------------------------------------- &--basic { @include flex-h-between; @include responsive(display, block, flex, flex); .cards__card { @include responsive(width, 100%, 46%, 47%); margin-bottom: rem-calc(24);...
f5b48942167c6dada32d7b3ac32d78a90d0be2e1
spec.example.yaml
spec.example.yaml
awsRegion: eu-west-1 prometheus: machineType: m3.2xlarge scrapeInterval: 4s instances: - name: v1-5-1 image: quay.io/prometheus/prometheus:v1.5.1 resources: requests: memory: 6Gi flags: - '-storage.local.retention=8h' - '-storage.local.memory-chunks=1800000' - '-storage.loc...
awsRegion: eu-west-1 prometheus: machineType: m3.xlarge scrapeInterval: 4s instances: - name: v1-5-1 image: quay.io/prometheus/prometheus:v1.5.1 resources: requests: memory: 6Gi flags: - '-storage.local.retention=8h' - '-storage.local.memory-chunks=1800000' - '-storage.loca...
Use smaller instance in default spec
Use smaller instance in default spec
YAML
apache-2.0
prometheus/prombench,prometheus/prombench,prometheus/prombench
yaml
## Code Before: awsRegion: eu-west-1 prometheus: machineType: m3.2xlarge scrapeInterval: 4s instances: - name: v1-5-1 image: quay.io/prometheus/prometheus:v1.5.1 resources: requests: memory: 6Gi flags: - '-storage.local.retention=8h' - '-storage.local.memory-chunks=1800000' ...
5caf144cad6ef3362ebf15afb112cc8e62a142f5
Resources/Private/Javascripts/Modules/Module.js
Resources/Private/Javascripts/Modules/Module.js
/** * Defines a dummy module * * @module Modules/Module */ var App; /** * App * @param el * @constructor */ App = function(el) { 'use strict'; this.el = el; }; /** * Function used to to render the App * * @memberof module:Modules/Module * @returns {Object} the App itself. */ App.prototype.render = fu...
/** * Defines a dummy module * * @module Modules/Module */ var App; /** * App * @param el * @constructor */ App = function(el) { 'use strict'; this.el = el; }; /** * Function used to to render the App * * @memberof module:Modules/Module * @returns {Object} The App itself. */ App.prototype.render = fu...
Make sure the example App modules render method returns the module
[TASK] Make sure the example App modules render method returns the module
JavaScript
mit
t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template,t3b/t3b_template
javascript
## Code Before: /** * Defines a dummy module * * @module Modules/Module */ var App; /** * App * @param el * @constructor */ App = function(el) { 'use strict'; this.el = el; }; /** * Function used to to render the App * * @memberof module:Modules/Module * @returns {Object} the App itself. */ App.proto...
14251d767b0b216cc240673d07ae5d2a01f62272
README.md
README.md
[![Build Status](https://api.travis-ci.org/TSDBBench/TSDBBench.svg?branch=master)](https://travis-ci.org/TSDBBench/TSDBBench) The Python and Vagrant part of TSDBBench that automatically setups and benchmarks tims series databases (TSDBs). The benchmarking is done with VMs that are automatically setup by Vagrant and a...
[![Build Status](https://api.travis-ci.org/TSDBBench/TSDBBench.svg?branch=master)](https://travis-ci.org/TSDBBench/TSDBBench) The Python and Vagrant part of [TSDBBench](http://tsdbbench.github.io/) that automatically setups and benchmarks time series databases (TSDBs). The benchmarking is done with VMs that are autom...
Add link to TSDBBench overview page
Add link to TSDBBench overview page
Markdown
apache-2.0
TSDBBench/Overlord,TSDBBench/Overlord,TSDBBench/Overlord,TSDBBench/Overlord,TSDBBench/Overlord
markdown
## Code Before: [![Build Status](https://api.travis-ci.org/TSDBBench/TSDBBench.svg?branch=master)](https://travis-ci.org/TSDBBench/TSDBBench) The Python and Vagrant part of TSDBBench that automatically setups and benchmarks tims series databases (TSDBs). The benchmarking is done with VMs that are automatically setup ...
9330c22cf8db86781cd1d759b4f586ea79fb82a1
README.md
README.md
![Banner](banner.png) Bromium ======= Engine for simulating reactions using Brownian motion. Sub-libraries ------------- Bromium consists of the following set of smaller libraries: - `bromium.math` Collection of general mathematical algorithms - `bromium.views` Additional typed views - `bromium.structs` Data structu...
![Banner](banner.png) Bromium ======= Engine for simulating reactions using Brownian motion. Sub-libraries ------------- Bromium consists of the following set of smaller libraries: - `bromium.math` Collection of general mathematical algorithms - `bromium.views` Additional typed views - `bromium.structs` Data structu...
Add some notes on physical accuracy
Add some notes on physical accuracy
Markdown
agpl-3.0
molview/bromium,molview/bromium,molview/bromium
markdown
## Code Before: ![Banner](banner.png) Bromium ======= Engine for simulating reactions using Brownian motion. Sub-libraries ------------- Bromium consists of the following set of smaller libraries: - `bromium.math` Collection of general mathematical algorithms - `bromium.views` Additional typed views - `bromium.struc...
1362b60f20eec6a02401deeb99eb5fb0729b40a8
source/development.html.haml
source/development.html.haml
--- title: Development pageable: true --- %h2 Source Code Blivet's source code is hosted on = succeed '.' do %a(href="https://github.com/dwlehman/blivet/") GitHub %h2 Documentation Documentation is currently hosted on = succeed '.' do %a(href="http://blivet.readthedocs.org") readthedocs.org API documentation...
--- title: Development pageable: true --- %h2 Source Code Blivet's source code is hosted on = succeed '.' do %a(href="https://github.com/dwlehman/blivet/") GitHub %h2 Documentation Documentation is currently hosted on = succeed '.' do %a(href="http://blivet.readthedocs.org") readthedocs.org API documentation...
Add a link to anaconda-patches list information page.
Add a link to anaconda-patches list information page.
Haml
mit
dwlehman/blivet-web,dwlehman/blivet-web,dwlehman/blivet-web,dwlehman/blivet-web
haml
## Code Before: --- title: Development pageable: true --- %h2 Source Code Blivet's source code is hosted on = succeed '.' do %a(href="https://github.com/dwlehman/blivet/") GitHub %h2 Documentation Documentation is currently hosted on = succeed '.' do %a(href="http://blivet.readthedocs.org") readthedocs.org A...
69420c72b6f9adabc6bbe027c24d4313efea534c
protractor.conf.js
protractor.conf.js
require("./server") exports.config = { directConnect: true, specs: 'tests/e2e/*.js', baseUrl: 'http://localhost:1234', framework: 'jasmine2', jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, } };
ci = process.env.CI !== undefined if (!ci) require("./server") exports.config = { directConnect: !ci, specs: 'tests/e2e/*.js', baseUrl: (ci ? 'http://pollsapiclient.herokuapp.com' : 'http://localhost:1234'), framework: 'jasmine2', sauceUser: 'vincenzchianese', sauceKey : 'ebcc4534-bdcc-4ad5-8fd2-31ea2a1...
Set up data for saucelabs
Set up data for saucelabs
JavaScript
mit
XVincentX/pollsApiClient,XVincentX/pollsApiClient
javascript
## Code Before: require("./server") exports.config = { directConnect: true, specs: 'tests/e2e/*.js', baseUrl: 'http://localhost:1234', framework: 'jasmine2', jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 30000, } }; ## Instruction: Set up data for saucelabs ## Code After: ci = proc...
6672c16dad9df3b922deadb8548144fd686de33a
data/transition-sites/gds_psn.yml
data/transition-sites/gds_psn.yml
--- site: gds_psn whitehall_slug: government-digital-service homepage_title: 'Public Services Network' homepage: https://www.gov.uk/government/groups/public-services-network tna_timestamp: 20140603182309 host: www.publicservicesnetwork.service.gov.uk
--- site: gds_psn whitehall_slug: government-digital-service homepage_title: 'Public Services Network' homepage: https://www.gov.uk/government/groups/public-services-network tna_timestamp: 20140603182309 host: www.publicservicesnetwork.service.gov.uk extra_organisation_slugs: - cabinet-office
Add extra organisation to PSN
Add extra organisation to PSN
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: gds_psn whitehall_slug: government-digital-service homepage_title: 'Public Services Network' homepage: https://www.gov.uk/government/groups/public-services-network tna_timestamp: 20140603182309 host: www.publicservicesnetwork.service.gov.uk ## Instruction: Add extra organisation to PSN ## Co...
fd5d8ad9fab588d6618bc0b4e9b1230b4ca6adce
examples/README.md
examples/README.md
Within this directory you will find various examples for using Honeybadger in your applications, both with and without a framework. ## Usage You can test the files within this directory by copying `config.sample.php` to `config.php` and updating the API key. Feel free to play with additional options which you'll fin...
Within this directory you will find various examples for using Honeybadger in your applications, both with and without a framework. ## Usage You can test the files within this directory by copying `config.sample.php` to `config.php` and updating the API key. Feel free to play with additional options which you'll fin...
Update link to Config class in example readme
Update link to Config class in example readme
Markdown
mit
o0khoiclub0o/honeybadger-php,gevans/honeybadger-php,gevans/honeybadger-php,joshuap/honeybadger-php,joshuap/honeybadger-php,honeybadger-io/honeybadger-php,o0khoiclub0o/honeybadger-php
markdown
## Code Before: Within this directory you will find various examples for using Honeybadger in your applications, both with and without a framework. ## Usage You can test the files within this directory by copying `config.sample.php` to `config.php` and updating the API key. Feel free to play with additional options ...
654d03b3aeb400ca7c83f469a64005880c93faa5
spec/spec_helper.rb
spec/spec_helper.rb
require_relative '../lib/lot' require 'minitest/autorun' require 'minitest/spec' require 'mocha/setup' def setup_db options = {} options.merge!( { adapter: 'postgresql', host: '::1', encoding: 'unicode', database: 'lot_test', ...
require_relative '../lib/lot' require 'minitest/autorun' require 'minitest/spec' require 'mocha/setup' def setup_db options = {} # reset the event subscribers, so there is no bleed between tests Lot::EventSubscriber.instance_eval { @types = nil } options.merge!( { adapter: 'postgresql', ...
Fix the potential bleeding of event subscribers from other tests.
Fix the potential bleeding of event subscribers from other tests.
Ruby
mit
darrencauthon/lot
ruby
## Code Before: require_relative '../lib/lot' require 'minitest/autorun' require 'minitest/spec' require 'mocha/setup' def setup_db options = {} options.merge!( { adapter: 'postgresql', host: '::1', encoding: 'unicode', database: 'lot...
01690fac5f5fb97cfbb05f5f87ed9fd9c2e589a1
misc/commands.txt
misc/commands.txt
urxvt ----- printf '\e]710;%s\007' "xft:M+ 1mn:medium:size=9" printf '\e]710;%s\007' "xft:Hack:Regular:size=10" tmux ---- tmux set status on
lxd --- lxc image list images: lxc launch images:gentoo u1 lxc config set <container> security.privileged true lxc config device add <container> homedir disk source=/home path=/home # For systemd guests lxc config set <container> raw.lxc 'lxc.mount.auto = cgroup' tmux ---- tmux set status on urxvt ----- printf '\e...
Add lxc and tmux command reference
Add lxc and tmux command reference
Text
mit
markwkm/dotfiles
text
## Code Before: urxvt ----- printf '\e]710;%s\007' "xft:M+ 1mn:medium:size=9" printf '\e]710;%s\007' "xft:Hack:Regular:size=10" tmux ---- tmux set status on ## Instruction: Add lxc and tmux command reference ## Code After: lxd --- lxc image list images: lxc launch images:gentoo u1 lxc config set <container> securi...
8b1b109193042a0411926739baf81f30c686dcb4
libhijack/arch/aarch64/hijack_machdep.h
libhijack/arch/aarch64/hijack_machdep.h
/* * Copyright (c) 2017, Shawn Webb * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of...
/* * Copyright (c) 2017, Shawn Webb * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of...
Use the right opcode for the svc instruction
Use the right opcode for the svc instruction This is a NOP on arm64 right now. Signed-off-by: Shawn Webb <63bc49e2baae731b3d1a43666c374487dee71f11@hardenedbsd.org>
C
bsd-2-clause
SoldierX/libhijack
c
## Code Before: /* * Copyright (c) 2017, Shawn Webb * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * noti...
120016886bd2859ba6e62eab39a323b817a74e9c
lib/boxer_linux.cpp
lib/boxer_linux.cpp
namespace boxer { void show(const char *message, const char *title) { gtk_init(0, NULL); GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message); gtk_window_set_title(GTK_WINDOW(dialog), title); gtk_dialog_r...
namespace boxer { void show(const char *message, const char *title) { gtk_init(0, NULL); GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, "%s", message); gtk_window_set_title(GTK_WINDOW(dialog), titl...
Add format string to gtk_message_dialog_new()
Add format string to gtk_message_dialog_new()
C++
mit
aaronmjacobs/Boxer
c++
## Code Before: namespace boxer { void show(const char *message, const char *title) { gtk_init(0, NULL); GtkWidget *dialog = gtk_message_dialog_new(NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, message); gtk_window_set_title(GTK_WINDOW(dialog), title)...
4d4aae4d252413cc953f52816a51d254bd2350f7
Bundle/CoreBundle/Twig/Extension/RoutingExtention.php
Bundle/CoreBundle/Twig/Extension/RoutingExtention.php
<?php namespace Victoire\Bundle\CoreBundle\Twig\Extension; use Symfony\Bridge\Twig\Extension\RoutingExtension; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Victoire\Bundle\PageBundle\Helper\PageHelper; /** * class RoutingExtension */ class RoutingExtention extends RoutingExtension { priva...
<?php namespace Victoire\Bundle\CoreBundle\Twig\Extension; use Symfony\Bridge\Twig\Extension\RoutingExtension; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Victoire\Bundle\PageBundle\Helper\PageHelper; /** * class RoutingExtension */ class RoutingExtention extends RoutingExtension { priva...
Allow absolute path on twig getPath function
Allow absolute path on twig getPath function
PHP
mit
gregumo/victoire,Charlie-Lucas/victoire,MadeWilson/victoire,vincent-chapron/victoire,talbotseb/victoire,MadeWilson/victoire,lenybernard/victoire,alexislefebvre/victoire,alexislefebvre/victoire,Victoire/victoire,talbotseb/victoire,vincent-chapron/victoire,gregumo/victoire,paulandrieux/victoire,paulandrieux/victoire,Vict...
php
## Code Before: <?php namespace Victoire\Bundle\CoreBundle\Twig\Extension; use Symfony\Bridge\Twig\Extension\RoutingExtension; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Victoire\Bundle\PageBundle\Helper\PageHelper; /** * class RoutingExtension */ class RoutingExtention extends RoutingExtens...
3c2fee94f983e75d538ce264340996b55f61bd2c
src/modules/frei0r/CMakeLists.txt
src/modules/frei0r/CMakeLists.txt
add_library(mltfrei0r MODULE factory.c filter_cairoblend_mode.c filter_frei0r.c frei0r_helper.c producer_frei0r.c transition_frei0r.c ) target_compile_options(mltfrei0r PRIVATE ${MLT_COMPILE_OPTIONS}) if(APPLE AND RELOCATABLE) target_compile_definitions(mltfrei0r PRIVATE RELOCATABLE) endif() target_link...
add_library(mltfrei0r MODULE factory.c filter_cairoblend_mode.c filter_frei0r.c frei0r_helper.c producer_frei0r.c transition_frei0r.c ) target_compile_options(mltfrei0r PRIVATE ${MLT_COMPILE_OPTIONS}) target_include_directories(mltfrei0r PRIVATE ${FREI0R_INCLUDE_DIRS}) if(APPLE AND RELOCATABLE) target_co...
Fix building frei0r module in KDE Craft
Fix building frei0r module in KDE Craft
Text
lgpl-2.1
mltframework/mlt,mltframework/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt
text
## Code Before: add_library(mltfrei0r MODULE factory.c filter_cairoblend_mode.c filter_frei0r.c frei0r_helper.c producer_frei0r.c transition_frei0r.c ) target_compile_options(mltfrei0r PRIVATE ${MLT_COMPILE_OPTIONS}) if(APPLE AND RELOCATABLE) target_compile_definitions(mltfrei0r PRIVATE RELOCATABLE) endi...
4f0f4cb15537f6a57cd3d3c35531749643521ab6
modules/GM_notification.js
modules/GM_notification.js
// JSM exported symbols var EXPORTED_SYMBOLS = ["GM_notification"]; const alertsServ = Components.classes["@mozilla.org/alerts-service;1"] .getService(Components.interfaces.nsIAlertsService); function GM_notification(aMsg, aTitle) { alertsServ.showAlertNotification( "chrome://greasemonkey/skin/icon_medium....
// JSM exported symbols var EXPORTED_SYMBOLS = ["GM_notification"]; const alertsServ = Components.classes["@mozilla.org/alerts-service;1"] .getService(Components.interfaces.nsIAlertsService); function GM_notification(aMsg, aTitle) { var title = aTitle ? "" + aTitle : "Greasemonkey"; var message = aMsg ? "" + ...
Handle errors possibly thrown from .showAlertNotification().
Handle errors possibly thrown from .showAlertNotification().
JavaScript
bsd-3-clause
HasClass0/greasemonkey,Ventero/greasemonkey,HasClass0/greasemonkey,Ventero/greasemonkey,Martii/greasemonkey,Martii/greasemonkey,the8472/greasemonkey,the8472/greasemonkey
javascript
## Code Before: // JSM exported symbols var EXPORTED_SYMBOLS = ["GM_notification"]; const alertsServ = Components.classes["@mozilla.org/alerts-service;1"] .getService(Components.interfaces.nsIAlertsService); function GM_notification(aMsg, aTitle) { alertsServ.showAlertNotification( "chrome://greasemonkey/s...
464c1b640013ae3ef1aba2b720138b68f1332d7f
spec/fixtures/records.yml
spec/fixtures/records.yml
--- - :request: :method: GET :path: /hello.json :query: "" :body: "" :response: :method: GET :path: /hello.json :status: 200 :headers: Content-Type: application/json; charset=utf-8 :body: 'world' - :request: :method: GET :path: /query.json :query: "with=param...
--- - :request: :method: GET :path: /hello.json :query: "" :body: "" :response: :method: GET :path: /hello.json :status: 200 :headers: Content-Type: application/json; charset=utf-8 :body: 'world' - :request: :method: GET :path: /query.json :query: "with=param...
Add fixture case with json body response
Add fixture case with json body response
YAML
mit
unixcharles/mock_server
yaml
## Code Before: --- - :request: :method: GET :path: /hello.json :query: "" :body: "" :response: :method: GET :path: /hello.json :status: 200 :headers: Content-Type: application/json; charset=utf-8 :body: 'world' - :request: :method: GET :path: /query.json :qu...
f67a00454899ff428029f4dce1fb84deecefdaad
powerline/ext/vim/source_plugin.vim
powerline/ext/vim/source_plugin.vim
if ! has('python') echohl ErrorMsg echomsg 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.' echohl None finish endif python import sys, vim python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")')) exec 'source '. fnameescape(expand('<sfil...
if ! has('python') echohl ErrorMsg echomsg 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.' echohl None finish endif python import sys, vim python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")')) source <sfile>:h/powerline.vim
Use shorter and more readable form of :source
Use shorter and more readable form of :source
VimL
mit
xxxhycl2010/powerline,xfumihiro/powerline,S0lll0s/powerline,xxxhycl2010/powerline,Liangjianghao/powerline,seanfisk/powerline,junix/powerline,russellb/powerline,blindFS/powerline,Luffin/powerline,wfscheper/powerline,firebitsbr/powerline,wfscheper/powerline,S0lll0s/powerline,IvanAli/powerline,seanfisk/powerline,Liangjian...
viml
## Code Before: if ! has('python') echohl ErrorMsg echomsg 'You need vim compiled with Python 2 support for Powerline to work. Please consult the documentation for more details.' echohl None finish endif python import sys, vim python sys.path.append(vim.eval('expand("<sfile>:h:h:h:h")')) exec 'source '. fnameesca...
dda50fbaf5aa81977c1b1487f104cefc5ba274fb
.travis.yml
.travis.yml
language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.3
language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.3 deploy: - provider: rubygems gem: ruby-puppetdb gemspec: ruby-puppetdb.gemspec api_key: secure: "IgMVf0Fa8Tqkz7ow402fR4lcxyv2vmMleYunZaJni3jKpDp/vzkaBsd7XMK7UMGsI70UVNP+CdSvFODlh/Ceqkoy8wqc01+c7+NWvKHczzW+/Q2knReboQ+58+Wsd0v4lNb8sWgqgco9pY7...
Add auto deployment of ruby gem
Add auto deployment of ruby gem
YAML
apache-2.0
baptistejammet/puppet-puppetdbquery,danieldreier/puppet-puppetdbquery,pyther/puppet-puppetdbquery,gwdg/puppet-puppetdbquery,redhat-cip/puppet-puppetdbquery,dalen/puppet-puppetdbquery,ccin2p3/puppet-puppetdbquery,MelanieGault/puppet-puppetdbquery,gcmalloc/puppet-puppetdbquery,natemccurdy/puppet-puppetdbquery,unki/puppet...
yaml
## Code Before: language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.3 ## Instruction: Add auto deployment of ruby gem ## Code After: language: ruby rvm: - 1.8.7 - 1.9.3 - 2.0.0 - 2.1.3 deploy: - provider: rubygems gem: ruby-puppetdb gemspec: ruby-puppetdb.gemspec api_key: secure: "Ig...
ff561c2c786b0380ab9eec7692b10f57c0b49158
setup.cfg
setup.cfg
[flake8] exclude = ve,docs,tuneme/*/migrations/*,polls/migrations/* ignore = F403 [pytest] addopts = --verbose --ds=test_settings --nomigrations --cov=tuneme --cov=polls --cov-report=term -s --ignore=ve looponfailroots = tuneme
[flake8] exclude = ve,docs,tuneme/*/migrations/*,polls/migrations/*,test_settings.py,tuneme/settings/*.py,docker/settings.py [pytest] addopts = --verbose --ds=test_settings --nomigrations --cov=tuneme --cov=polls --cov-report=term -s --ignore=ve looponfailroots = tuneme
Configure flake8 to ignore settings files
Configure flake8 to ignore settings files
INI
bsd-2-clause
praekelt/molo-tuneme,praekelt/molo-tuneme,praekelt/molo-tuneme,praekelt/molo-tuneme
ini
## Code Before: [flake8] exclude = ve,docs,tuneme/*/migrations/*,polls/migrations/* ignore = F403 [pytest] addopts = --verbose --ds=test_settings --nomigrations --cov=tuneme --cov=polls --cov-report=term -s --ignore=ve looponfailroots = tuneme ## Instruction: Configure flake8 to ignore settings files ## Code After: ...
882c3fd4e4638d0cbf678ca929ec71f149d72360
exec_fpm.sh
exec_fpm.sh
gem=`whereis gem | head -n 1 | awk '{ print $2 }'` if [ -z "$gem" ] || [ ! -x "$gem" ]; then echo "ruby gems not found, assuming fpm isn't installed" exit 1 fi ruby=`head -n 1 "$gem" | sed 's/^#!//' | grep ruby` if [ -z "$ruby" ]; then echo "$gem isn't ruby gems, assuming fpm isn't installed" exit 1 fi fpm=`fin...
gem=`whereis gem | head -n 1 | awk '{ print $2 }'` if [ -z "$gem" ] || [ ! -x "$gem" ]; then echo "ruby gems not found, assuming fpm isn't installed" exit 1 fi ruby=`head -n 1 "$gem" | sed 's/^#!//' | grep ruby` if [ -z "$ruby" ]; then echo "$gem isn't ruby gems, assuming fpm isn't installed" exit 1 fi fpm=`fin...
Expand search for FPM binary
Expand search for FPM binary Add another directory to the search for FPM binary since RHEL installs FPM under /usr/local/share/gems/. Resolves PROD-568 ChangeLog: -
Shell
isc
atomia/AutomationServerManager,atomia/AutomationServerManager
shell
## Code Before: gem=`whereis gem | head -n 1 | awk '{ print $2 }'` if [ -z "$gem" ] || [ ! -x "$gem" ]; then echo "ruby gems not found, assuming fpm isn't installed" exit 1 fi ruby=`head -n 1 "$gem" | sed 's/^#!//' | grep ruby` if [ -z "$ruby" ]; then echo "$gem isn't ruby gems, assuming fpm isn't installed" exi...
63ebcc6879e7589ca64b66e47ba98086b32c9e54
features/support/env.rb
features/support/env.rb
require 'aruba/cucumber' Before do @aruba_timeout_seconds = 15 end Aruba.configure do |config| config.before_cmd do |cmd| set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived end end if RUBY_PLATFORM == 'java'
require 'aruba/cucumber' timeouts = { 'java' => 60 } Before do @aruba_timeout_seconds = timeouts.fetch(RUBY_PLATFORM) { 10 } end Aruba.configure do |config| config.before_cmd do |cmd| set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived end end if RUBY_P...
Allow a longer timeout on JRuby.
Allow a longer timeout on JRuby.
Ruby
mit
r7kamura/rspec-core,edwardpark/rspec-core,urbanautomaton/rspec-core,azbshiri/rspec-core,pandabrand/rspec-core,rspec/rspec-core,azbshiri/rspec-core,rspec/rspec-core,eugeneius/rspec-core,danascheider/rspec-core,SoldierCoder/rspec-core,pandabrand/rspec-core,yaoshipu/rspec-core,rkh/rspec-core,a-suenami/rspec-core,rkh/rspec...
ruby
## Code Before: require 'aruba/cucumber' Before do @aruba_timeout_seconds = 15 end Aruba.configure do |config| config.before_cmd do |cmd| set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived end end if RUBY_PLATFORM == 'java' ## Instruction: Allow a lon...
b523f48a77d1e98981667e72cd60bb50a35aa224
src/app.js
src/app.js
import "babel-polyfill"; import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { useScroll } from 'react-router-scroll'; import makeRoutes from './routes'; import Root from './...
import "babel-polyfill"; import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { useScroll } from 'react-router-scroll'; import makeRoutes from './routes'; import Root from './con...
Switch to using react-router hashHistory
Switch to using react-router hashHistory
JavaScript
mit
recharts/recharts.org,recharts/recharts.org
javascript
## Code Before: import "babel-polyfill"; import React from 'react'; import ReactDOM from 'react-dom'; import { applyRouterMiddleware, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { useScroll } from 'react-router-scroll'; import makeRoutes from './routes'; impo...
02ed846cb365e0717a888da0c56065fd54a03a7f
setup.py
setup.py
import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, description="a tool to learn...
import setuptools import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") import shakyo setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, description="a tool to learn...
Fix point of importing module
Fix point of importing module
Python
unlicense
raviqqe/shakyo
python
## Code Before: import setuptools import shakyo import sys if not ((sys.version_info.major >= 3 and sys.version_info.minor >= 5) or sys.version_info.major > 3): exit("Sorry, Python's version must be later than 3.5.") setuptools.setup( name=shakyo.__name__, version=shakyo.__version__, description=...
cd7330524e496957d9ee4d68146b36b0822a7d8f
README.md
README.md
Your daily dose of motivation and discipline, straight from Reddit's [/r/getmotivated][1] and [/r/getdisciplined][2] right into your inbox. [1]: https://www.reddit.com/r/getmotivated [2]: https://www.reddit.com/r/getdisciplined ## Architecture DailyDose uses a Java backend to retrieve the day's top posts from /r/ge...
Your daily dose of motivation and discipline, straight from Reddit's [/r/getmotivated][1] and [/r/getdisciplined][2] right into your inbox. [1]: https://www.reddit.com/r/getmotivated [2]: https://www.reddit.com/r/getdisciplined ## Progress * System Architecture: Done * **Main Controller development: Ongoing** * Red...
Add ERM and database design to readme.
Add ERM and database design to readme.
Markdown
mit
TimoSta/daily-dose,TimoSta/daily-dose,TimoSta/daily-dose
markdown
## Code Before: Your daily dose of motivation and discipline, straight from Reddit's [/r/getmotivated][1] and [/r/getdisciplined][2] right into your inbox. [1]: https://www.reddit.com/r/getmotivated [2]: https://www.reddit.com/r/getdisciplined ## Architecture DailyDose uses a Java backend to retrieve the day's top ...
496a4d3329f490f9de3c44520d4d7eea81b8e509
build-support/common.sh
build-support/common.sh
function set_archflags() { GCC_VERSION=`gcc -v 2>&1` if [[ "$GCC_VERSION" == *503.0.38* ]]; then # Required for clang version 503.0.38 export set ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future fi } set_archflags function log() { echo -e "$@" 1>&2 } function die() { (($# > 0)...
function set_archflags() { GCC_VERSION=`gcc -v 2>&1` if [[ "$GCC_VERSION" == *503.0.38* ]]; then # Required for clang version 503.0.38 export set ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future fi } set_archflags function log() { echo -e "$@" 1>&2 } function die() { (($# > 0)...
Add an elapsed timestamp to the banner for CI.
Add an elapsed timestamp to the banner for CI. Looks like: ``` [== 00:00 Banner message ==] ``` Testing Done: See: https://travis-ci.org/pantsbuild/pants/jobs/50841075 for example output Bugs closed: 1109 Reviewed at https://rbcommons.com/s/twitter/r/1775/
Shell
apache-2.0
dgomez10/xanon,15Dkatz/pants,di0spyr0s/pants,lahosken/pants,foursquare/pants,lahosken/pants,twitter/pants,dgomez10/xanon,baroquebobcat/pants,ericzundel/pants,dturner-tw/pants,ity/pants,sameerparekh/pants,digwanderlust/pants,benjyw/pants,UnrememberMe/pants,kwlzn/pants,benjyw/pants,UnrememberMe/pants,pombredanne/pants,kw...
shell
## Code Before: function set_archflags() { GCC_VERSION=`gcc -v 2>&1` if [[ "$GCC_VERSION" == *503.0.38* ]]; then # Required for clang version 503.0.38 export set ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future fi } set_archflags function log() { echo -e "$@" 1>&2 } function die...
0d3c00beb27e784cc149b59f018fbf84e455b244
src/resolvers/exotics/github-resolver.js
src/resolvers/exotics/github-resolver.js
/* @flow */ import type {ExplodedFragment} from './hosted-git-resolver.js'; import HostedGitResolver from './hosted-git-resolver.js'; export default class GitHubResolver extends HostedGitResolver { static protocol = 'github'; static hostname = 'github.com'; static isVersion(pattern: string): boolean { // g...
/* @flow */ import type {ExplodedFragment} from './hosted-git-resolver.js'; import HostedGitResolver from './hosted-git-resolver.js'; export default class GitHubResolver extends HostedGitResolver { static protocol = 'github'; static hostname = 'github.com'; static isVersion(pattern: string): boolean { // g...
Switch to using vars for hostname in gh resolver.
Switch to using vars for hostname in gh resolver.
JavaScript
bsd-2-clause
troydemonbreun/yarn,mvestergaard/yarn,kasperlewau/yarn,dguo/yarn,mvestergaard/yarn,ConAntonakos/yarn,joeyespo/yarn,seripap/emojiless-yarn,kasperlewau/yarn,bsansouci/esy,seripap/emojiless-yarn,andreypopp/esy,dguo/yarn,CHECK24/yarn,onemen/yarn,ConAntonakos/yarn,CHECK24/yarn,lawliet89/yarn,bsansouci/esy,joeyespo/yarn,mgcr...
javascript
## Code Before: /* @flow */ import type {ExplodedFragment} from './hosted-git-resolver.js'; import HostedGitResolver from './hosted-git-resolver.js'; export default class GitHubResolver extends HostedGitResolver { static protocol = 'github'; static hostname = 'github.com'; static isVersion(pattern: string): bo...
de834db56d849df31a4ac8e06e1bb10bbd8a04e5
builder/run-one.sh
builder/run-one.sh
COQDIR=$1 BRANCH=$2 BUILDNAME=$3 export PATH=$COQDIR:$PATH export TERM=dumb D=~/builder/runs/$(date +%s) mkdir -p $D exec >$D/run-out.txt 2>&1 echo "Coq directory: $COQDIR" echo "Branch: $BRANCH" echo "Build name: $BUILDNAME" ## Print the Coq version coqtop </dev/null cd ~/builder/runs && ( ls | head -n -20 | xar...
COQDIR=$1 BRANCH=$2 BUILDNAME=$3 export PATH=$COQDIR:$PATH export TERM=dumb D=~/builder/runs/$(date +%s) mkdir -p $D exec >$D/run-out.txt 2>&1 echo "Coq directory: $COQDIR" echo "Branch: $BRANCH" echo "Build name: $BUILDNAME" ## Print the Coq version coqtop </dev/null cd ~/builder/runs && ( ls | head -n -20 | xar...
Fix builder script commit printout
Fix builder script commit printout
Shell
mit
mit-pdos/fscq-impl,mit-pdos/fscq-impl,mit-pdos/fscq-impl,mit-pdos/fscq-impl,mit-pdos/fscq-impl
shell
## Code Before: COQDIR=$1 BRANCH=$2 BUILDNAME=$3 export PATH=$COQDIR:$PATH export TERM=dumb D=~/builder/runs/$(date +%s) mkdir -p $D exec >$D/run-out.txt 2>&1 echo "Coq directory: $COQDIR" echo "Branch: $BRANCH" echo "Build name: $BUILDNAME" ## Print the Coq version coqtop </dev/null cd ~/builder/runs && ( ls | h...
a4b43089879ec8c7a8daf05b98eb1f0671a04690
skia/ext/opacity_filter_canvas.cc
skia/ext/opacity_filter_canvas.cc
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "skia/ext/opacity_filter_canvas.h" #include "third_party/skia/include/core/SkPaint.h" #include "third_party/skia/include/core/SkTLazy.h" namespa...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "skia/ext/opacity_filter_canvas.h" #include "third_party/skia/include/core/SkPaint.h" #include "third_party/skia/include/core/SkTLazy.h" namespa...
Use the canvas-based SkPaintFilterCanvas ctor in OpacityFilterCanvas
Use the canvas-based SkPaintFilterCanvas ctor in OpacityFilterCanvas Using the new constructor ensures that the proxy canvas is correctly initialized with the target canvas state. BUG=516790 R=reed@google.com,robertphillips@google.com Review URL: https://codereview.chromium.org/1287203004 Cr-Commit-Position: 972c6d...
C++
bsd-3-clause
CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/...
c++
## Code Before: // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "skia/ext/opacity_filter_canvas.h" #include "third_party/skia/include/core/SkPaint.h" #include "third_party/skia/include/core/SkT...
ad2119b0918e51f42593ef0196879723d6ece58a
config/role_map.yml
config/role_map.yml
development: archivist: - archivist1@example.com admin: - admin@example.com - rjantz@libraries.rutgers.edu - gagnew@rutgers.edu test: archivist: - archivist1@example.com admin: - admin@example.com production: archivist: - archivist1@example.com admin: - rob@notch8.com -...
development: archivist: - archivist1@example.com admin: - admin@example.com - rjantz@libraries.rutgers.edu - gagnew@rutgers.edu - rob@notch8.com test: archivist: - archivist1@example.com admin: - admin@example.com production: archivist: - archivist1@example.com admin: -...
Add rob@notch8.com acct as admin in dev environment
Add rob@notch8.com acct as admin in dev environment
YAML
apache-2.0
dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql
yaml
## Code Before: development: archivist: - archivist1@example.com admin: - admin@example.com - rjantz@libraries.rutgers.edu - gagnew@rutgers.edu test: archivist: - archivist1@example.com admin: - admin@example.com production: archivist: - archivist1@example.com admin: - rob@...
19608d3ee027efb27ecf83671a85487040287619
app/views/projects/artifacts/browse.html.haml
app/views/projects/artifacts/browse.html.haml
- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds' = render 'projects/builds/header_title' .top-block.gray-content-block.clearfix .pull-right = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), class: 'btn btn-default' do = icon('download...
- page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds' = render 'projects/builds/header_title' .top-block.gray-content-block.clearfix .pull-right = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), class: 'btn btn-default' do = icon('download...
Fix double request issue in artifacts browser
Fix double request issue in artifacts browser
Haml
mit
mr-dxdy/gitlabhq,duduribeiro/gitlabhq,icedwater/gitlabhq,LUMC/gitlabhq,daiyu/gitlab-zh,axilleas/gitlabhq,jrjang/gitlab-ce,allysonbarros/gitlabhq,daiyu/gitlab-zh,dreampet/gitlab,duduribeiro/gitlabhq,dwrensha/gitlabhq,dwrensha/gitlabhq,dreampet/gitlab,yatish27/gitlabhq,t-zuehlsdorff/gitlabhq,t-zuehlsdorff/gitlabhq,mr-dxd...
haml
## Code Before: - page_title 'Artifacts', "#{@build.name} (##{@build.id})", 'Builds' = render 'projects/builds/header_title' .top-block.gray-content-block.clearfix .pull-right = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, @build), class: 'btn btn-default' do ...
cd3d84a7b26bb04dc0e985457f3de431ae472868
spec/shared/users_and_tasks.rb
spec/shared/users_and_tasks.rb
RSpec.shared_context 'users and tasks' do subject(:rom) { setup.finalize } let(:setup) { ROM.setup(sqlite: SEQUEL_TEST_DB_URI) } let(:conn) { setup.sqlite.connection } before do conn.drop_table? :users conn.drop_table? :tasks conn.run('create table users (name STRING, email STRING)') conn.run...
RSpec.shared_context 'users and tasks' do subject(:rom) { setup.finalize } let(:setup) { ROM.setup(sqlite: SEQUEL_TEST_DB_URI) } let(:conn) { setup.sqlite.connection } before do conn.run('create table users (name STRING, email STRING)') conn.run('create table tasks (name STRING, title STRING, priority...
Remove dropping tables (was not needed after all)
Remove dropping tables (was not needed after all)
Ruby
mit
jeremyf/rom,pvcarrera/rom,rom-rb/rom,vrish88/rom,dekz/rom,pxlpnk/rom,cored/rom,pdswan/rom,rom-rb/rom,rom-rb/rom,kwando/rom,denyago/rom,dcarral/rom,Snuff/rom,endash/rom
ruby
## Code Before: RSpec.shared_context 'users and tasks' do subject(:rom) { setup.finalize } let(:setup) { ROM.setup(sqlite: SEQUEL_TEST_DB_URI) } let(:conn) { setup.sqlite.connection } before do conn.drop_table? :users conn.drop_table? :tasks conn.run('create table users (name STRING, email STRING...
a8dc6903bbeb207b63fcde2f318501d27052ec07
js/background.js
js/background.js
chrome.tabs.onCreated.addListener(function(tab) { console.log("Tab Created", tab); }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { console.log("Tab changed: #" + tabId, changeInfo, tab ); }); chrome.browserAction.onClicked.addListener(function() { console.log("Browser action clicked!"); })...
chrome.tabs.onCreated.addListener(function(tab) { console.log("Tab Created", tab); }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { console.log("Tab changed: #" + tabId, changeInfo, tab ); }); chrome.storage.sync.get(null, function(items) { console.log("All items in synced storage", items )...
Set of generic functions to test the chrome.* APIs
Set of generic functions to test the chrome.* APIs
JavaScript
bsd-3-clause
rex/BANTP
javascript
## Code Before: chrome.tabs.onCreated.addListener(function(tab) { console.log("Tab Created", tab); }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { console.log("Tab changed: #" + tabId, changeInfo, tab ); }); chrome.browserAction.onClicked.addListener(function() { console.log("Browser actio...
cda3de27e5c3cd2f4d295b12d74554e8fb8bfd69
core/lib/spree/testing_support/factories/promotion_factory.rb
core/lib/spree/testing_support/factories/promotion_factory.rb
FactoryGirl.define do factory :promotion, class: Spree::Promotion, parent: :activator do name 'Promo' end end
FactoryGirl.define do factory :promotion, class: Spree::Promotion do name 'Promo' end end
Remove Activator class, rename spree_activators to spree_promotions
Remove Activator class, rename spree_activators to spree_promotions
Ruby
bsd-3-clause
tancnle/spree,radarseesradar/spree,DynamoMTL/spree,tancnle/spree,jsurdilla/solidus,Mayvenn/spree,PhoenixTeam/spree_phoenix,Migweld/spree,cutefrank/spree,bricesanchez/spree,brchristian/spree,dotandbo/spree,alepore/spree,CiscoCloud/spree,knuepwebdev/FloatTubeRodHolders,gautamsawhney/spree,lsirivong/spree,Migweld/spree,ad...
ruby
## Code Before: FactoryGirl.define do factory :promotion, class: Spree::Promotion, parent: :activator do name 'Promo' end end ## Instruction: Remove Activator class, rename spree_activators to spree_promotions ## Code After: FactoryGirl.define do factory :promotion, class: Spree::Promotion do name 'Prom...
d1789be33e3535b381d7e2700b45b3d5499b4ee6
collector/interrupts_common.go
collector/interrupts_common.go
// Copyright 2015 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
// Copyright 2015 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
Fix compilation on OS X
Fix compilation on OS X As OS X doesn't have it's own interrupts provider, don't build interrupts_common on OS X as well. Otherwise build fails, because interrupts_common depends on variables provided by platform-specific files. Signed-off-by: Pavel Borzenkov <073b1820d4178210f16262dddeb2ba44fb7467d3@gmail.com>
Go
apache-2.0
cbstewart9393/node_exporter,siavashs/node_exporter,mslocrian/flexswitch_exporter,fefelovgroup/node_exporter,prometheus/node_exporter,siavashs/node_exporter,chosenken/node_exporter,bs-github/node_exporter,knweiss/node_exporter,derekmarcotte/node_exporter,derekmarcotte/node_exporter,mslocrian/flexswitch_exporter,chosenke...
go
## Code Before: // Copyright 2015 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
e2c9d39dd30a60c5c54521d7d11773430cae1bd1
tests/test_image_access.py
tests/test_image_access.py
import pytest import imghdr from io import BytesIO from PIL import Image from pikepdf import _qpdf as qpdf def test_jpeg(resources, outdir): pdf = qpdf.Pdf.open(resources / 'congress.pdf') # If you are looking at this as example code, Im0 is not necessarily the # name of any image. pdfimage = pdf.pag...
import pytest import imghdr from io import BytesIO from PIL import Image import zlib from pikepdf import Pdf, Object def test_jpeg(resources, outdir): pdf = Pdf.open(resources / 'congress.pdf') # If you are looking at this as example code, Im0 is not necessarily the # name of any image. pdfimage = pd...
Add manual experiment that replaces a RGB image with grayscale
Add manual experiment that replaces a RGB image with grayscale
Python
mpl-2.0
pikepdf/pikepdf,pikepdf/pikepdf,pikepdf/pikepdf
python
## Code Before: import pytest import imghdr from io import BytesIO from PIL import Image from pikepdf import _qpdf as qpdf def test_jpeg(resources, outdir): pdf = qpdf.Pdf.open(resources / 'congress.pdf') # If you are looking at this as example code, Im0 is not necessarily the # name of any image. pd...
229c1c2e74c43a5bd5a9eef00013074116331942
app/controllers/api/users_controller.rb
app/controllers/api/users_controller.rb
class Api::UsersController < Api::BaseController def index @users = User.all @users = @users.where(id: params[:users]) if params[:users] render json: {users: @users.as_json(only: [:id, :name, :email])} end end
class Api::UsersController < Api::BaseController def index @users = User.all @users = @users.where(id: params[:ids]) if params[:ids] @users = @users.where(email: params[:emails]) if params[:emails] render json: {users: @users.as_json(only: [:id, :name, :email, :image_url])} end end
Add email filter for users api
Add email filter for users api
Ruby
agpl-3.0
mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory,mumuki/mumuki-laboratory
ruby
## Code Before: class Api::UsersController < Api::BaseController def index @users = User.all @users = @users.where(id: params[:users]) if params[:users] render json: {users: @users.as_json(only: [:id, :name, :email])} end end ## Instruction: Add email filter for users api ## Code After: class Api::Use...
53324f046a05009989e2890cdd3848907a1be4fa
AMTProject/src/main/webapp/WEB-INF/pages/new-app.jsp
AMTProject/src/main/webapp/WEB-INF/pages/new-app.jsp
<%@include file="includes/header.jsp" %> <div class="container"> <h1 class="text-center">Register New App</h1> <%@include file="includes/footer.jsp" %>
<%@include file="includes/header.jsp" %> <div class="container"> <h1 class="text-center">Register New App</h1> <form class="form-horizontal" method="post" action="new-app"> <div class="form-group"> <label for="input-name" class="col-sm-2 control-label">Name</label> <div class="co...
Add Static Register New App
Add Static Register New App
Java Server Pages
mit
D34D10CK/Teaching-HEIGVD-AMT-2015-Project,D34D10CK/Teaching-HEIGVD-AMT-2015-Project,D34D10CK/Teaching-HEIGVD-AMT-2015-Project
java-server-pages
## Code Before: <%@include file="includes/header.jsp" %> <div class="container"> <h1 class="text-center">Register New App</h1> <%@include file="includes/footer.jsp" %> ## Instruction: Add Static Register New App ## Code After: <%@include file="includes/header.jsp" %> <div class="container"> <h1 class="text-...
f4b33c6afb25178accd234ac723a71370dc7c3ba
Frameworks/RSWeb/RSWeb/UserAgent.swift
Frameworks/RSWeb/RSWeb/UserAgent.swift
// // UserAgent.swift // RSWeb // // Created by Brent Simmons on 8/27/16. // Copyright © 2016 Ranchero Software, LLC. All rights reserved. // import Foundation public struct UserAgent { public static func fromInfoPlist() -> String? { guard let userAgentName = Bundle.main.object(forInfoDictionaryKey: "UserAg...
// // UserAgent.swift // RSWeb // // Created by Brent Simmons on 8/27/16. // Copyright © 2016 Ranchero Software, LLC. All rights reserved. // import Foundation public struct UserAgent { public static func fromInfoPlist() -> String? { guard let userAgentName = Bundle.main.object(forInfoDictionaryKey: "UserAg...
Add the OS to the User-Agent header, as in Macintosh or iOS.
Add the OS to the User-Agent header, as in Macintosh or iOS.
Swift
mit
brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen,brentsimmons/Evergreen
swift
## Code Before: // // UserAgent.swift // RSWeb // // Created by Brent Simmons on 8/27/16. // Copyright © 2016 Ranchero Software, LLC. All rights reserved. // import Foundation public struct UserAgent { public static func fromInfoPlist() -> String? { guard let userAgentName = Bundle.main.object(forInfoDictio...
97f815930e98683b5ac235afad376231c65ac712
lib/Twig/Node/Expression/Binary/Power.php
lib/Twig/Node/Expression/Binary/Power.php
<?php /* * This file is part of Twig. * * (c) 2010 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Node_Expression_Binary_Power extends Twig_Node_Expression_Binary { public function compile(Twig_Com...
<?php /* * This file is part of Twig. * * (c) 2010 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Node_Expression_Binary_Power extends Twig_Node_Expression_Binary { public function operator(Twig_Co...
Use ** operator over function pow()
Use ** operator over function pow()
PHP
bsd-3-clause
gencer/Twig,twigphp/Twig,gamernetwork/Twig,gamernetwork/Twig,twigphp/Twig,gamernetwork/Twig,twigphp/Twig,gencer/Twig
php
## Code Before: <?php /* * This file is part of Twig. * * (c) 2010 Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class Twig_Node_Expression_Binary_Power extends Twig_Node_Expression_Binary { public function ...
402056a272c94d3d28da62b08cac14ace18c835a
test/python_api/default-constructor/sb_address.py
test/python_api/default-constructor/sb_address.py
import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear()
import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.SetLoadAddress(0xffff, lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear()
Add new API for SBAddress to the fuzz test:
Add new API for SBAddress to the fuzz test: SetLoadAddress (lldb::addr_t load_addr, lldb::SBTarget &target); git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@135793 91177308-0d34-0410-b5e6-96231b3b80d8
Python
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
python
## Code Before: import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear() ## Instruction: Add new API for SBAddress to the fuzz test: SetLoadAddress (lldb::addr_t load_addr, ...
52c63cd4a23bca0e19582a05dd82ac21be8a8c80
app/views/shared/payments/_form.html.slim
app/views/shared/payments/_form.html.slim
.payment h3.title = t('.title') section.row.methods - PaymentEngine.all.each do |engine| .large-6.columns[class="payment-method-option-#{engine.name}"] label.payment-method-option .left = radio_button_tag :payment_method, engine.name, false | &nbsp; =...
.payment h3.title = t('.title') .row .medium-8.columns section.row.methods - PaymentEngine.all.each do |engine| .large-6.columns[class="payment-method-option-#{engine.name}"] label.payment-method-option .left = radio_button_tag :payment_method,...
Move payment options to 8 columns
Move payment options to 8 columns
Slim
mit
gustavoguichard/neighborly,gustavoguichard/neighborly,gustavoguichard/neighborly
slim
## Code Before: .payment h3.title = t('.title') section.row.methods - PaymentEngine.all.each do |engine| .large-6.columns[class="payment-method-option-#{engine.name}"] label.payment-method-option .left = radio_button_tag :payment_method, engine.name, false | &nbs...
04d6e68163bbd1ed0e24c0feb1c1024c1b004140
lib/haml/helpers/safe_erubis_template.rb
lib/haml/helpers/safe_erubis_template.rb
module Haml class SafeErubisTemplate < Tilt::ErubisTemplate def initialize_engine end def prepare @options.merge! :engine_class => ActionView::Template::Handlers::Erubis super end def precompiled_preamble(locals) [super, "@output_buffer = ActionView::OutputBuffer.new;"].join("...
module Haml class ErubisTemplateHandler < ActionView::Template::Handlers::Erubis def initialize(*args, &blk) @newline_pending = 0 super end end class SafeErubisTemplate < Tilt::ErubisTemplate def initialize_engine end def prepare @options.merge! :engine_class => Haml::Er...
Use custom Erubis handler subclass for Erb filter
Use custom Erubis handler subclass for Erb filter The Rails Erubis handler has added code to reduce the number of method calls when adding newlines (see https://github.com/rails/rails/commit/bd308a0d02c4a6459c05770a564405986a663f47). This uses a new instance variable, which is initialised in the add_preamble method. ...
Ruby
mit
nazar-pc/haml,tangposmarvin/haml,keithpitty/haml,keithpitty/haml,haml/haml,nazar-pc/haml,stanhu/haml,haml/haml,dg1dd1ngs/haml,tangposmarvin/haml,dg1dd1ngs/haml,macressler/haml,haml/haml,macressler/haml,haml/haml,sideci-sample/sideci-sample-haml,stanhu/haml
ruby
## Code Before: module Haml class SafeErubisTemplate < Tilt::ErubisTemplate def initialize_engine end def prepare @options.merge! :engine_class => ActionView::Template::Handlers::Erubis super end def precompiled_preamble(locals) [super, "@output_buffer = ActionView::OutputBuff...
73e0298dab7c2318fe2c87766b6962ddb8d103a9
lib/wallaby.ex
lib/wallaby.ex
defmodule Wallaby do use Application def start(_type, _args) do pool_opts = [name: {:local, Wallaby.ServerPool}, worker_module: Wallaby.Server, size: pool_size, max_overflow: 0] :poolboy.start_link(pool_opts, []) end def start_session(opts \\ []) do server = :poolboy.ch...
defmodule Wallaby do @moduledoc """ A concurrent feature testing library. ## Configuration Wallaby supports the following options: * `:pool_size` - Maximum amount of phantoms to run. The default is `:erlang.system_info(:schedulers_online) * 2`. * `:screenshot_dir` - The directory to store screenshots. ...
Add info on configuration values.
Add info on configuration values.
Elixir
mit
keathley/wallaby,keathley/wallaby,aaronrenner/wallaby,aaronrenner/wallaby
elixir
## Code Before: defmodule Wallaby do use Application def start(_type, _args) do pool_opts = [name: {:local, Wallaby.ServerPool}, worker_module: Wallaby.Server, size: pool_size, max_overflow: 0] :poolboy.start_link(pool_opts, []) end def start_session(opts \\ []) do serv...
f25cda9b96f3312a02011d39b999e352b34a1a1a
lib/rack/xrevision.rb
lib/rack/xrevision.rb
module Rack class Xrevision def initialize(app, options={}) @app = app @app_path = options.delete(:app_path) || Dir.pwd @revision_file_name = options.delete(:file_name) || 'REVISION' end def call(env) status, headers, response = @app.call(env) headers['X-Rev'] = rev_id if re...
module Rack class Xrevision REVISION_FILE_NAME = 'REVISION' def initialize(app, options={}) @app = app @app_path = options[:app_path] || Dir.pwd @revision_file_name = options[:file_name] || REVISION_FILE_NAME end def call(env) status, headers, response = @app.call(env) h...
Use constant to identify revision file name
Use constant to identify revision file name
Ruby
mit
sparrovv/x-rev
ruby
## Code Before: module Rack class Xrevision def initialize(app, options={}) @app = app @app_path = options.delete(:app_path) || Dir.pwd @revision_file_name = options.delete(:file_name) || 'REVISION' end def call(env) status, headers, response = @app.call(env) headers['X-Rev'...
02fca1ac58f5b1b7b9502cc5ffe9254aa484e4ca
src/bhm.client.php
src/bhm.client.php
<?php require('../mysql-creds.php'); //var_dump($_GET); function makequery($path) { return "SELECT bhm_helpers.* FROM bhm_pages, bhm_relationships, bhm_helpers WHERE 1=1 AND bhm_pages.url = '$path' AND bhm_pages.id = bhm_relationships.page_id AND bhm_relationships.help_id = bhm_helpers.id ...
<?php require('mysql.php'); //var_dump($_GET); function makequery($path) { return "SELECT bhm_helpers.* FROM bhm_pages, bhm_relationships, bhm_helpers WHERE 1=1 AND bhm_pages.url = '$path' AND bhm_pages.id = bhm_relationships.page_id AND bhm_relationships.help_id = bhm_helpers.id "; } $pa...
Allow $().BHMClient indexpage to be string
Allow $().BHMClient indexpage to be string Fix issue with client indexpage property having to be an array
PHP
mit
psalmody/Bootstrap-Help-Manager,psalmody/Bootstrap-Help-Manager,psalmody/Bootstrap-Help-Manager
php
## Code Before: <?php require('../mysql-creds.php'); //var_dump($_GET); function makequery($path) { return "SELECT bhm_helpers.* FROM bhm_pages, bhm_relationships, bhm_helpers WHERE 1=1 AND bhm_pages.url = '$path' AND bhm_pages.id = bhm_relationships.page_id AND bhm_relationships.help_id = bhm...
f445063b5589ce60af7b11dd2844fe8944013e2f
src/public/presentationmap.xml
src/public/presentationmap.xml
<?xml version="1.0" encoding="utf-8" ?> <Presentation> <BrowseOptions PageSize="10000" /> <PresentationMap type="Search"> <DisplayType id="list"> <DisplayMode>LIST</DisplayMode> </DisplayType> <Match> <SearchCategories> <Category mappedId="search:artists" id="artists" /> <!-- <CustomCatego...
<?xml version="1.0" encoding="utf-8" ?> <Presentation> <BrowseOptions PageSize="10000" /> <PresentationMap type="DisplayType"> <DisplayType id="list"> <DisplayMode>LIST</DisplayMode> </DisplayType> </PresentationMap> <PresentationMap type="Search"> <Match> <SearchCategories> <Category mappedId="sear...
Fix list display type in pmap
Fix list display type in pmap
XML
mit
switz/relisten_sonos
xml
## Code Before: <?xml version="1.0" encoding="utf-8" ?> <Presentation> <BrowseOptions PageSize="10000" /> <PresentationMap type="Search"> <DisplayType id="list"> <DisplayMode>LIST</DisplayMode> </DisplayType> <Match> <SearchCategories> <Category mappedId="search:artists" id="artists" /> <!-- ...
1abd00eac26a868ccdadd74ba9d34dc5f53363fb
static/js/translations.js
static/js/translations.js
// commonjs code goes here import i18next from 'i18next'; import localstorage from './localstorage'; window.i18n = i18next; i18next.init({ lng: 'lang', resources: { lang: { translation: page_params.translation_data, }, }, nsSeparator: false, keySeparator: false, int...
import i18next from 'i18next'; i18next.init({ lng: 'lang', resources: { lang: { translation: page_params.translation_data, }, }, nsSeparator: false, keySeparator: false, interpolation: { prefix: "__", suffix: "__", }, returnEmptyString: false,...
Remove code to sweep local storage.
i18n: Remove code to sweep local storage. Before 2018, we used a feature of i18next where we would cache translations in local storage for up to two weeks: var cacheOptions = { // ... prefix: 'i18next:' + page_params.server_generation + ':', expirationTime: 2*7*24*60*60*1000, // 2 weeks ...
JavaScript
apache-2.0
rht/zulip,synicalsyntax/zulip,shubhamdhama/zulip,punchagan/zulip,andersk/zulip,kou/zulip,eeshangarg/zulip,shubhamdhama/zulip,brainwane/zulip,rht/zulip,andersk/zulip,kou/zulip,zulip/zulip,punchagan/zulip,timabbott/zulip,eeshangarg/zulip,brainwane/zulip,punchagan/zulip,zulip/zulip,andersk/zulip,rht/zulip,punchagan/zulip,...
javascript
## Code Before: // commonjs code goes here import i18next from 'i18next'; import localstorage from './localstorage'; window.i18n = i18next; i18next.init({ lng: 'lang', resources: { lang: { translation: page_params.translation_data, }, }, nsSeparator: false, keySeparator...
c8aa4b3cf30cef52844ea537a08d549af3075a4b
README.md
README.md
The Hub Framework is a Spotify feature developer toolkit that aims to reduce a lot of the boilerplate and code duplication involved in developing a feature for the iOS app. The goal is to automate a series of repetitive developer tasks and let feature developers focus on what makes their feature awesome. This reposi...
[![Code coverage](https://codecov.spotify.net/github_enterprise/iOS/HubFramework/coverage.svg?branch=master)](https://codecov.spotify.net/github_enterprise/iOS/HubFramework?branch=master) The Hub Framework is a Spotify feature developer toolkit that aims to reduce a lot of the boilerplate and code duplication involve...
Add code coverage badge to readme
Add code coverage badge to readme
Markdown
apache-2.0
spotify/HubFramework,spotify/HubFramework,spotify/HubFramework,spotify/HubFramework
markdown
## Code Before: The Hub Framework is a Spotify feature developer toolkit that aims to reduce a lot of the boilerplate and code duplication involved in developing a feature for the iOS app. The goal is to automate a series of repetitive developer tasks and let feature developers focus on what makes their feature aweso...
0123672cdc9c6a4e6c16221d5ca3727d2ba6c6d3
html/changelogs/AutoChangeLog-pr-13062.yml
html/changelogs/AutoChangeLog-pr-13062.yml
author: Xhuis delete-after: True changes: - tweak: ""Many medicines have received rebalancing. Expect underused chemicals like Oxandralone to be much more effective in restoring damage."" - tweak: ""Many toxins are now more or less efficient."" - tweak: ""The descriptions of many reagents have been made more acc...
author: Xhuis delete-after: True changes: - tweak: "Many medicines have received rebalancing. Expect underused chemicals like Oxandralone to be much more effective in restoring damage." - tweak: "Many toxins are now more or less efficient." - tweak: "The descriptions of many reagents have been made more accurate...
Fix multiple quotes around the changelog text
Fix multiple quotes around the changelog text
YAML
agpl-3.0
Jordie0608/-tg-station,XDTM/tgstation,Kirill1243/-tg-station,kingofkosmos/-tg-station,AnturK/-tg-station,utahclock/yogstation,neersighted/tgstation,bear1ake/-tg-station,optimumtact/-tg-station,OBA-code/tgstation,HippieStation/HippieStation,Core0verload/-tg-station,utahclock/yogstation,InsaneHyena/tgstation,kingofkosmos...
yaml
## Code Before: author: Xhuis delete-after: True changes: - tweak: ""Many medicines have received rebalancing. Expect underused chemicals like Oxandralone to be much more effective in restoring damage."" - tweak: ""Many toxins are now more or less efficient."" - tweak: ""The descriptions of many reagents have be...
ffdf091bfe087c2072eb3606eaa7c370d8820390
package.json
package.json
{ "devDependencies": { "chai-jq": "0.0.8", "jsdom": "^0.10.5", "mocha": "^2.1.0", "sinon": "^1.12.2", "chai": "^1.10.0", "sinon-chai": "^2.6.0" }, "scripts": { "test": "mocha" }, "dependencies": { "backbone": "^1.1.2", "backbone.marionette": "^2.3.2", "underscore": "^1....
{ "devDependencies": { "JQDeferred": "^2.1.0", "chai": "^1.10.0", "chai-jq": "0.0.8", "jsdom": "^0.10.5", "mocha": "^2.1.0", "sinon": "^1.12.2", "sinon-chai": "^2.6.0" }, "scripts": { "test": "mocha" }, "dependencies": { "backbone": "^1.1.2", "backbone.marionette": "^2....
Add missing npm test dep
Add missing npm test dep
JSON
isc
marionettejs/marionette.module,marionettejs/marionette.module
json
## Code Before: { "devDependencies": { "chai-jq": "0.0.8", "jsdom": "^0.10.5", "mocha": "^2.1.0", "sinon": "^1.12.2", "chai": "^1.10.0", "sinon-chai": "^2.6.0" }, "scripts": { "test": "mocha" }, "dependencies": { "backbone": "^1.1.2", "backbone.marionette": "^2.3.2", "u...
22aac3231743c2303144512a81a2301eb99234c8
modules/console-web/src/etc/META-INF/geronimo-service.xml
modules/console-web/src/etc/META-INF/geronimo-service.xml
<?xml version="1.0" encoding="UTF-8"?> <gbeans> <path>geronimo-web-console.war</path> <gbean class="org.apache.geronimo.jetty.JettyWebApplicationContext" objectName="geronimo.app:name=WebConsole"> <default attribute="URI" type="java.net.URI">file:../modules/console-web/target/geronimo-web-console.war</...
<?xml version="1.0" encoding="UTF-8"?> <gbeans> <!-- <path>geronimo-web-console.war</path>--> <gbean class="org.apache.geronimo.jetty.JettyWebApplicationContext" objectName="geronimo.app:name=WebConsole"> <default attribute="URI" type="java.net.URI">file:../modules/console-web/target/geronimo-web-consol...
Use exploded war directly for now
Hack: Use exploded war directly for now git-svn-id: d69ffe4ccc4861bf06065bd0072b85c931fba7ed@44984 13f79535-47bb-0310-9956-ffa450edef68
XML
apache-2.0
apache/geronimo,apache/geronimo,vibe13/geronimo,apache/geronimo,apache/geronimo,vibe13/geronimo,meetdestiny/geronimo-trader,vibe13/geronimo,vibe13/geronimo,meetdestiny/geronimo-trader,meetdestiny/geronimo-trader
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <gbeans> <path>geronimo-web-console.war</path> <gbean class="org.apache.geronimo.jetty.JettyWebApplicationContext" objectName="geronimo.app:name=WebConsole"> <default attribute="URI" type="java.net.URI">file:../modules/console-web/target/geronimo-w...
e8ac68b33b3b7bf54baa36b89ac90e9e5a666599
magnum/conf/services.py
magnum/conf/services.py
from oslo_config import cfg from magnum.i18n import _ service_opts = [ cfg.StrOpt('host', help=_('Name of this node. This can be an opaque identifier. ' 'It is not necessarily a hostname, FQDN, or IP address. ' 'However, the node name must be valid withi...
from oslo_config import cfg from magnum.i18n import _ service_opts = [ cfg.HostAddressOpt('host', help=_('Name of this node. This can be an opaque ' 'identifier. It is not necessarily a hostname, ' 'FQDN, or IP address. However, t...
Use HostAddressOpt for opts that accept IP and hostnames
Use HostAddressOpt for opts that accept IP and hostnames Some configuration options were accepting both IP addresses and hostnames. Since there was no specific OSLO opt type to support this, we were using ``StrOpt``. The change [1] that added support for ``HostAddressOpt`` type was merged in Ocata and became available...
Python
apache-2.0
openstack/magnum,ArchiFleKs/magnum,ArchiFleKs/magnum,openstack/magnum
python
## Code Before: from oslo_config import cfg from magnum.i18n import _ service_opts = [ cfg.StrOpt('host', help=_('Name of this node. This can be an opaque identifier. ' 'It is not necessarily a hostname, FQDN, or IP address. ' 'However, the node name mus...
fd39f56bd83acdc62cac3d0b1dc8b2ddf349df9b
bs-page.php
bs-page.php
<?php /* * Basic page */ ?> <div class="container-fluid"> <h1><?php echo _('Heading')?></h1> <div class="well well-info"> <?php echo _('Page info')?> </div> <div class = "display full-border"> <div class="row"> <div class="col-sm-9"> <div class="fpbx-container"> <div class="display full-border"> ...
<?php /* * Basic page */ ?> <div class="container-fluid"> <h1><?php echo _('Heading')?></h1> <div class="well well-info"> <?php echo _('Page info')?> </div> <div class = "display full-border"> <div class="fpbx-container"> <div class="display full-border"> Page contents </div> </div> </div> </div...
Fix the divs, do away with the 4/8 format
Fix the divs, do away with the 4/8 format
PHP
agpl-3.0
jfinstrom/FreePBX-gists
php
## Code Before: <?php /* * Basic page */ ?> <div class="container-fluid"> <h1><?php echo _('Heading')?></h1> <div class="well well-info"> <?php echo _('Page info')?> </div> <div class = "display full-border"> <div class="row"> <div class="col-sm-9"> <div class="fpbx-container"> <div class="displa...
221c41c2003c0c57bebee1c036f27e6c8f77c992
cmake/configure.cmake
cmake/configure.cmake
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build") file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build) message("Generating project files...") execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v142 -A Win32 -DCMAKE...
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build") file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build) message("Generating project files...") execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v142,version=14.29.16...
Fix MSVC compiler version to one where all tests pass.
Fix MSVC compiler version to one where all tests pass.
CMake
bsd-3-clause
cse-sim/cse,cse-sim/cse
cmake
## Code Before: message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build") file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build) message("Generating project files...") execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v142 ...
4d83f08924303ddf401f04c425a6526ce5db9ac2
monasca/templates/keystone-svc.yaml
monasca/templates/keystone-svc.yaml
apiVersion: v1 kind: Service metadata: labels: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Values.keystone.name }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "keystone.fullname" . }} spec: type: {{ ....
apiVersion: v1 kind: Service metadata: labels: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Values.keystone.name }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "keystone.fullname" . }} spec: type: {{ ....
Add ability to set keystone service as a node port
Add ability to set keystone service as a node port
YAML
apache-2.0
monasca/monasca-helm,monasca/monasca-helm
yaml
## Code Before: apiVersion: v1 kind: Service metadata: labels: app: {{ template "fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" component: "{{ .Values.keystone.name }}" heritage: "{{ .Release.Service }}" release: "{{ .Release.Name }}" name: {{ template "keystone.fullname" . }} sp...
8bca8f930118b646df00b66850f04f61135cba64
README.md
README.md
This project is used for hands-on sessions, guided by someone who is familiar with the MarkLogic Node.js Client API. The goal is that, after going through the exercises, a developer will be comfortable using the API to interact with MarkLogic. Knowledge of JavaScript is assumed. ## Setup 1. Install MarkLogic 8. 2...
This project is used for hands-on sessions, guided by someone who is familiar with the MarkLogic Node.js Client API. The goal is that, after going through the exercises, a developer will be comfortable using the API to interact with MarkLogic. Knowledge of JavaScript is assumed. ## Setup 1. Install MarkLogic 8. ...
Update readme with more notes
Update readme with more notes
Markdown
apache-2.0
dmcassel/hands-on-node
markdown
## Code Before: This project is used for hands-on sessions, guided by someone who is familiar with the MarkLogic Node.js Client API. The goal is that, after going through the exercises, a developer will be comfortable using the API to interact with MarkLogic. Knowledge of JavaScript is assumed. ## Setup 1. Instal...
de6a1a67666f3228ea10c8b7d5149e23f329aa8a
app/views/startups/edit.html.erb
app/views/startups/edit.html.erb
<div class='container'> <div class='row-fluid'> <h1>Editing startup</h1> <%= render 'form' %> <%= link_to 'Delete', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?" %> </div> </div>
<div class='container'> <div class='row-fluid'> <h1>Editing '<%= @startup.name %>' Startup</h1> <%= render 'form' %> <%= link_to 'Delete', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?" %> </div> </div>
Update header to better reflect current startup being edited
Update header to better reflect current startup being edited
HTML+ERB
mit
SoPR/sopr-platform,SoPR/sopr-platform
html+erb
## Code Before: <div class='container'> <div class='row-fluid'> <h1>Editing startup</h1> <%= render 'form' %> <%= link_to 'Delete', @startup, :method => :delete, :confirm => "Are you sure you want to delete #{@startup.name}?" %> </div> </div> ## Instruction: Update header to better reflect current s...
e58641ef316942b99e7f1f6a979974bea0abe98e
ep.rb
ep.rb
require 'rubygems' require 'bundler/setup' require 'mormon' require 'ruby_kml' require 'pry' osm_file = 'map.osm' node_start = '3167844735' node_end = '2999413127' loader = Mormon::OSM::Loader.new(osm_file) router = Mormon::OSM::Router.new(loader) res = router.find_route(node_start, node_end, :foot) # Reverse coord...
require 'rubygems' require 'bundler/setup' require 'mormon' require 'ruby_kml' require 'pry' osm_file = 'map.osm' node_start = '3167844735' node_end = '2999412925' loader = Mormon::OSM::Loader.new(osm_file) router = Mormon::OSM::Router.new(loader) res = router.find_route(node_start, node_end, :foot) raise 'No route...
Raise on no route found
Raise on no route found
Ruby
mit
DawidJanczak/elevation_profiler,DawidJanczak/elevation_profiler
ruby
## Code Before: require 'rubygems' require 'bundler/setup' require 'mormon' require 'ruby_kml' require 'pry' osm_file = 'map.osm' node_start = '3167844735' node_end = '2999413127' loader = Mormon::OSM::Loader.new(osm_file) router = Mormon::OSM::Router.new(loader) res = router.find_route(node_start, node_end, :foot) ...
413c76f3bc9701f004aaad038c21b6fbcd061782
test/Linker/2003-01-30-LinkerTypeRename.ll
test/Linker/2003-01-30-LinkerTypeRename.ll
; This fails because the linker renames the non-opaque type not the opaque ; one... ; RUN: echo "%Ty = type opaque" | llvm-as > %t.1.bc ; RUN: llvm-as < %s > %t.2.bc ; RUN: llvm-link %t.[12].bc | llvm-dis | grep '%Ty ' | grep -v opaque %Ty = type int
; This fails because the linker renames the non-opaque type not the opaque ; one... ; RUN: echo "%Ty = type opaque %GV = external global %Ty*" | llvm-as > %t.1.bc ; RUN: llvm-as < %s > %t.2.bc ; RUN: llvm-link %t.[12].bc | llvm-dis | grep '%Ty ' | not grep opaque %Ty = type int
Correct test. use "not grep" instead of "grep -v"
Correct test. use "not grep" instead of "grep -v" git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@13824 91177308-0d34-0410-b5e6-96231b3b80d8
LLVM
apache-2.0
llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-l...
llvm
## Code Before: ; This fails because the linker renames the non-opaque type not the opaque ; one... ; RUN: echo "%Ty = type opaque" | llvm-as > %t.1.bc ; RUN: llvm-as < %s > %t.2.bc ; RUN: llvm-link %t.[12].bc | llvm-dis | grep '%Ty ' | grep -v opaque %Ty = type int ## Instruction: Correct test. use "not grep" in...
02ca8bc5908b0ff15cd97846e1fd1488eddb4087
backend/schedule/models.py
backend/schedule/models.py
from django.db import models class Event(models.Model): setup_start = models.DateField setup_end = model.DateField event_start = model.DateField event_end = model.DateField teardown_start = model.DateField teardown_end = model.DateField needed_resources = models.ManyToMany(Resource) sta...
from django.db import models class Event(models.Model): setup_start = models.DateField setup_end = model.DateField event_start = model.DateField event_end = model.DateField teardown_start = model.DateField teardown_end = model.DateField needed_resources = models.ManyToMany(Resource) sta...
Add square feet to Location data model.
Add square feet to Location data model.
Python
mit
bable5/schdlr,bable5/schdlr,bable5/schdlr,bable5/schdlr
python
## Code Before: from django.db import models class Event(models.Model): setup_start = models.DateField setup_end = model.DateField event_start = model.DateField event_end = model.DateField teardown_start = model.DateField teardown_end = model.DateField needed_resources = models.ManyToMany(R...
efb23124e490a8ea76e31812fe467cef3a66556e
test/CerealTest.cpp
test/CerealTest.cpp
SUITE( CerealTest ) { TEST( basicSaveAndLoad ) { const std::string saveFileName = "CerealTest"; const int expectedData = 42; int actualData = 666; { std::ofstream file( saveFileName, std::ios::binary ); CHECK( !file.fail() ); cereal::BinaryO...
class Base { public: Base() : someConstant(1) { } private: const int someConstant; friend cereal::access; template < class Archive > void serialize( Archive & ar ) { ar( const_cast< int & >( someConstant ) ); } }; SUITE( Cer...
Test cereal for loading a constant variable (using a const_cast)
Test cereal for loading a constant variable (using a const_cast)
C++
unlicense
WebF0x/StrongAI,WebF0x/StrongAI,WebF0x/StrongAI
c++
## Code Before: SUITE( CerealTest ) { TEST( basicSaveAndLoad ) { const std::string saveFileName = "CerealTest"; const int expectedData = 42; int actualData = 666; { std::ofstream file( saveFileName, std::ios::binary ); CHECK( !file.fail() ); ...
95f22cb28b7bfe05073c9a40d7114dea75a0d7e3
scripts/deploy.js
scripts/deploy.js
const { exec } = require('child_process') const ora = require('ora') const config = require('../config') const spinner = ora('Deploy to gh-pages...') spinner.start() function execute (cmd) { return new Promise((resolve, reject) => { exec(cmd, (err, stdout, stderr) => { if (err) return reject(err) if...
const { exec } = require('child_process') const ora = require('ora') const config = require('../config') const spinner = ora('Deploy to gh-pages...') spinner.start() function execute (cmd) { return new Promise((resolve, reject) => { exec(cmd, (err, stdout, stderr) => { if (err) return reject(err) if...
Update @ Sat Mar 11 2017 17:01:32 GMT+0800 (CST)
Update @ Sat Mar 11 2017 17:01:32 GMT+0800 (CST)
JavaScript
mit
zce/dashboard,zce/dashboard,zce/dashboard
javascript
## Code Before: const { exec } = require('child_process') const ora = require('ora') const config = require('../config') const spinner = ora('Deploy to gh-pages...') spinner.start() function execute (cmd) { return new Promise((resolve, reject) => { exec(cmd, (err, stdout, stderr) => { if (err) return reje...
6aa135e40fdf367df88e663c2c46bd37c98534c8
src/index.html
src/index.html
<!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script> <script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js">...
<!DOCTYPE html> <html> <head> <script src="bower_components/d3/d3.min.js" charset="utf-8"></script> <script src="bower_components/leaflet/dist/leaflet.js"></script> <script src="bower_components/moment/min/moment.min.js"></script> <link rel="stylesheet" href="styles/style.css"> ...
Load javascript and css from bower_components not cdn
Load javascript and css from bower_components not cdn
HTML
apache-2.0
nlesc-sherlock/punchcardjs-demo,nlesc-sherlock/punchcardjs,nlesc-sherlock/punchcardjs-demo,nlesc-sherlock/spiraljs,nlesc-sherlock/spiraljs,nlesc-sherlock/punchcardjs,nlesc-sherlock/punchcardjs,nlesc-sherlock/punchcardjs-demo
html
## Code Before: <!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script> <script src="http://cdn.leafletjs.com/leaflet/v0....
0245350698884255c0d0b25ff4b9377132ac9945
README.md
README.md
Wake-On-LAN magic packet generator Send magic packets to your computer. ## Syntax wol [MAC] Example: wol 12:24:AC:34:23:56
Wake-On-LAN magic packet generator Send magic packets to your computer. ## Usage ### Wake host wol.exe wake host ### Manage hosts wol.exe list wol.exe add host mac wol.exe remove host
Update help to call out the new commands.
Update help to call out the new commands.
Markdown
mit
AlexGhiondea/wol
markdown
## Code Before: Wake-On-LAN magic packet generator Send magic packets to your computer. ## Syntax wol [MAC] Example: wol 12:24:AC:34:23:56 ## Instruction: Update help to call out the new commands. ## Code After: Wake-On-LAN magic packet generator Send magic packets to your computer. ## Usage ### Wake host wo...
4ff8b803439f9884955648c8f51da52edb38cf37
ci/scripts/upload-to-object-storage.rb
ci/scripts/upload-to-object-storage.rb
require 'fog' s = Fog::Storage.new( :provider => 'OpenStack', :openstack_auth_url => ENV.fetch('OPENSTACK_AUTH_URL'), :openstack_username => ENV.fetch('OPENSTACK_USER_NAME'), :openstack_api_key => ENV.fetch('OPENSTACK_API_KEY'), ) files = Pathname.glob(ENV.fetch('FILE_GLOB')) if 1 != files.size warn "Exp...
require 'fog' s = Fog::Storage.new( :provider => 'OpenStack', :openstack_auth_url => ENV.fetch('OPENSTACK_AUTH_URL'), :openstack_username => ENV.fetch('OPENSTACK_USER_NAME'), :openstack_api_key => ENV.fetch('OPENSTACK_API_KEY'), ) files = Pathname.glob(ENV.fetch('FILE_GLOB')) if 1 != files.size warn "Exp...
Add the release version to name of the published file
Add the release version to name of the published file [#115144847] Signed-off-by: Steffen Uhlig <f82265073a33b8214db2ab356bc472f35869736c@de.ibm.com>
Ruby
apache-2.0
cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release,cloudfoundry-incubator/bits-service-release
ruby
## Code Before: require 'fog' s = Fog::Storage.new( :provider => 'OpenStack', :openstack_auth_url => ENV.fetch('OPENSTACK_AUTH_URL'), :openstack_username => ENV.fetch('OPENSTACK_USER_NAME'), :openstack_api_key => ENV.fetch('OPENSTACK_API_KEY'), ) files = Pathname.glob(ENV.fetch('FILE_GLOB')) if 1 != files....
8f71bb8ef3eb8ba6a6582363210ac536225513ac
build/install-deps.sh
build/install-deps.sh
set -e if [ -z "$GOPATH" ]; then echo '$GOPATH environment variable not set. Have you installed Go?' exit 1 fi which pigeon >/dev/null || { echo "Installing pigeon from vendor" go install ./vendor/github.com/mna/pigeon } which goimports >/dev/null || { echo "Installing goimports from vendor" go install ./ven...
set -e which pigeon >/dev/null || { echo "Installing pigeon from vendor" go install ./vendor/github.com/mna/pigeon } which goimports >/dev/null || { echo "Installing goimports from vendor" go install ./vendor/golang.org/x/tools/cmd/goimports } which golint >/dev/null || { echo "Installing golint from vendor" ...
Remove GOPATH warning from build scripts
Remove GOPATH warning from build scripts Go now defaults to ~/go so this is no longer required.
Shell
apache-2.0
open-policy-agent/opa,open-policy-agent/opa,open-policy-agent/opa,tsandall/opa,tsandall/opa,open-policy-agent/opa,open-policy-agent/opa,tsandall/opa,tsandall/opa,tsandall/opa,open-policy-agent/opa,tsandall/opa
shell
## Code Before: set -e if [ -z "$GOPATH" ]; then echo '$GOPATH environment variable not set. Have you installed Go?' exit 1 fi which pigeon >/dev/null || { echo "Installing pigeon from vendor" go install ./vendor/github.com/mna/pigeon } which goimports >/dev/null || { echo "Installing goimports from vendor" ...