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
8e5e4359f31543059d4e488ce823e431ba903be7
wikked/assets/tpl/read-page.html
wikked/assets/tpl/read-page.html
<article> {{#ifnot meta.notitle}} <header> <h1>{{meta.title}}</h1> {{#if endpoint}} <div class="decorator">{{endpoint}}</div> {{/if}} {{#if redirected_from}} <div class="decorator"><small>Redirected from {{#each redirected_from}} {{#ifeq @...
<article> {{#ifnot meta.notitle}} <header> <h1>{{meta.title}}</h1> {{#if endpoint}} <div class="decorator">{{endpoint}}</div> {{/if}} {{#if redirected_from}} <div class="decorator"><small>Redirected from {{#each redirected_from}} {{#ifeq @...
Use the same decorator class for all things under the title.
Use the same decorator class for all things under the title.
HTML
apache-2.0
ludovicchabant/Wikked,ludovicchabant/Wikked,ludovicchabant/Wikked
html
## Code Before: <article> {{#ifnot meta.notitle}} <header> <h1>{{meta.title}}</h1> {{#if endpoint}} <div class="decorator">{{endpoint}}</div> {{/if}} {{#if redirected_from}} <div class="decorator"><small>Redirected from {{#each redirected_from}} ...
0533d764fc44f5c649cb2dd7015efe8ae6243b50
.travis.yml
.travis.yml
language: node_js os: - linux - osx node_js: - "8" - "9" - "10" install: - yarn script: - yarn test after_success: - yarn global add codecov - codecov
language: node_js os: - linux - osx node_js: - '10' - '12' - '14' install: - yarn script: - yarn test after_success: - yarn global add codecov - codecov
Drop Node 8 support, minimum Node version is 10
:boom: Drop Node 8 support, minimum Node version is 10
YAML
mit
caffco/get-audio-duration,caffco/get-audio-duration
yaml
## Code Before: language: node_js os: - linux - osx node_js: - "8" - "9" - "10" install: - yarn script: - yarn test after_success: - yarn global add codecov - codecov ## Instruction: :boom: Drop Node 8 support, minimum Node version is 10 ## Code After: language: node_js os: - linux - osx ...
c388b12cb464231b5d36d95b819bab3307d395ca
public/stylesheets/app.css
public/stylesheets/app.css
/* top of the page */ .header-row { margin-bottom: 50px; } .header-row > div { margin-top: 20px; } .logo { display: block; float: left; margin-top: 10px; } .header-row .alert { margin-bottom: 0; } .visualizations { text-align: center; } #total-votes { display: block; margin: 0 auto; max-width: 300...
/* top of the page */ .header-row { margin-bottom: 50px; } .header-row > div { margin-top: 20px; } .logo { display: block; float: left; margin-top: 10px; } .header-row .alert { margin-bottom: 0; } .visualizations { text-align: center; } #total-votes { display: block; margin: 0 auto; max-width: 300...
Fix some styling in chrome
Fix some styling in chrome
CSS
mit
keen/keen-gem-example,keen/keen-gem-example
css
## Code Before: /* top of the page */ .header-row { margin-bottom: 50px; } .header-row > div { margin-top: 20px; } .logo { display: block; float: left; margin-top: 10px; } .header-row .alert { margin-bottom: 0; } .visualizations { text-align: center; } #total-votes { display: block; margin: 0 auto; ...
e78e88e8d27b2e9775fcc1f19eaed3e2545cbb5b
src/Oro/Bundle/WorkflowBundle/Entity/Repository/WorkflowStepRepository.php
src/Oro/Bundle/WorkflowBundle/Entity/Repository/WorkflowStepRepository.php
<?php namespace Oro\Bundle\WorkflowBundle\Entity\Repository; use Doctrine\ORM\EntityRepository; use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; class WorkflowStepRepository extends EntityRepository { /** * @param string $entityClass * @return WorkflowStep[] */ public function findByRelated...
<?php namespace Oro\Bundle\WorkflowBundle\Entity\Repository; use Doctrine\ORM\EntityRepository; use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; class WorkflowStepRepository extends EntityRepository { /** * @param string $entityClass * @return WorkflowStep[] */ public function findByRelated...
Refactor reports and dashboard widgets that related to step entities - updated opportunities sales flow dashboard widget
BAP-2900: Refactor reports and dashboard widgets that related to step entities - updated opportunities sales flow dashboard widget
PHP
mit
hugeval/platform,mszajner/platform,Djamy/platform,ramunasd/platform,geoffroycochard/platform,mszajner/platform,2ndkauboy/platform,northdakota/platform,2ndkauboy/platform,ramunasd/platform,hugeval/platform,ramunasd/platform,trustify/oroplatform,geoffroycochard/platform,Djamy/platform,mszajner/platform,morontt/platform,t...
php
## Code Before: <?php namespace Oro\Bundle\WorkflowBundle\Entity\Repository; use Doctrine\ORM\EntityRepository; use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; class WorkflowStepRepository extends EntityRepository { /** * @param string $entityClass * @return WorkflowStep[] */ public functi...
8d9ed8724dc37cb8b2b268dbab0cf11edc56fdd4
README.md
README.md
MultipleKinectsPlatformServer ============================= The backend to receive information from a client
This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here using GitHub Flavored Markdown, select a template crafted by a designer, and publish. After your page is generated, you can check out the new branch: ``` $ cd your_repo_root/repo_name $ gi...
Use the default github template
Use the default github template
Markdown
agpl-3.0
ethanlim/MinorityViewport,ethanlim/MinorityViewport,ethanlim/MinorityViewport
markdown
## Code Before: MultipleKinectsPlatformServer ============================= The backend to receive information from a client ## Instruction: Use the default github template ## Code After: This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content her...
d0af4c45b3b650c8ebec61c2c37370ef542cd7ab
.travis.yml
.travis.yml
language: c compiler: - gcc - clang script: make all && make check
language: c compiler: - gcc install: - ./get-deps.sh - make cudd script: - make all - make check
Adjust Travis CI config to use get-deps.sh and `make cudd`
BUILD: Adjust Travis CI config to use get-deps.sh and `make cudd`
YAML
bsd-3-clause
slivingston/gr1c,slivingston/gr1c,slivingston/gr1c
yaml
## Code Before: language: c compiler: - gcc - clang script: make all && make check ## Instruction: BUILD: Adjust Travis CI config to use get-deps.sh and `make cudd` ## Code After: language: c compiler: - gcc install: - ./get-deps.sh - make cudd script: - make all - make check
40809336d676a25237a2619bb7fb94849213a529
agents/go-agents/core/rest/errors.go
agents/go-agents/core/rest/errors.go
// // Copyright (c) 2012-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) 2012-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...
Add 500 error to the rest framework for go agents
Add 500 error to the rest framework for go agents Signed-off-by: Oleksandr Garagatyi <4052944973da826587020fa2673f873866877623@redhat.com>
Go
epl-1.0
akervern/che,akervern/che,davidfestal/che,davidfestal/che,davidfestal/che,akervern/che,davidfestal/che,akervern/che,davidfestal/che,codenvy/che,codenvy/che,davidfestal/che,akervern/che,akervern/che,akervern/che,davidfestal/che,davidfestal/che,davidfestal/che,codenvy/che,akervern/che,codenvy/che,davidfestal/che,akervern...
go
## Code Before: // // Copyright (c) 2012-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....
91c4fe596badab527d44175de13cfe67193c7f2e
circle.yml
circle.yml
dependencies: override: - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution
dependencies: override: - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution - bundle exec pod install test: pre: - make ci override: - make test
Add `pod install` and custom test tasks.
[CircleCI] Add `pod install` and custom test tasks.
YAML
mit
zhuzhengwei/eigen,xxclouddd/eigen,1aurabrown/eigen,ichu501/eigen,mbogh/eigen,Shawn-WangDapeng/eigen,1aurabrown/eigen,Shawn-WangDapeng/eigen,neonichu/eigen,gaurav1981/eigen,srrvnn/eigen,artsy/eigen,Havi4/eigen,srrvnn/eigen,ashkan18/eigen,xxclouddd/eigen,ayunav/eigen,neonichu/eigen,liduanw/eigen,ashkan18/eigen,foxsofter/...
yaml
## Code Before: dependencies: override: - bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3 --without distribution ## Instruction: [CircleCI] Add `pod install` and custom test tasks. ## Code After: dependencies: override: - bundle check --path=vendor/bundle || bun...
fb0db9496aa2fb71f29448d66455062b54c85a62
lib/cocoapods/search/pod.rb
lib/cocoapods/search/pod.rb
module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count def initialize @star_count, @fork_count = nil, nil end def score if github? @star_count + @fork_count * 5 else 0 end end def to_a if github? [@name, score.t...
module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count def initialize @star_count, @fork_count = nil, nil end def score github? ? (@star_count + @fork_count * 5) : 0 end def to_a if github? [@name, score.to_s, @star_count.to_s, @fork_count...
Refactor 1liner as readability is not lost
Refactor 1liner as readability is not lost
Ruby
mit
rochefort/cocoapods-search
ruby
## Code Before: module Cocoapods::Search class Pod attr_accessor :name, :star_count, :fork_count def initialize @star_count, @fork_count = nil, nil end def score if github? @star_count + @fork_count * 5 else 0 end end def to_a if github? ...
b42e00f4409c325efb7f63ec34b4e6f6a9a50dae
lib/dnsimple/error.rb
lib/dnsimple/error.rb
module Dnsimple class Error < StandardError end # RequestError is raised when an API request fails for an client, a server error or invalid request information. class RequestError < Error attr_reader :http_response def initialize(http_response) @http_response = http_response super(http_re...
module Dnsimple class Error < StandardError end # RequestError is raised when an API request fails for an client, a server error or invalid request information. class RequestError < Error attr_reader :http_response def initialize(http_response) @http_response = http_response super(message...
Use code as message for non JSON responses
Use code as message for non JSON responses
Ruby
mit
aetrion/dnsimple-ruby
ruby
## Code Before: module Dnsimple class Error < StandardError end # RequestError is raised when an API request fails for an client, a server error or invalid request information. class RequestError < Error attr_reader :http_response def initialize(http_response) @http_response = http_response ...
5dce74a87b63ef7e04a1d0bfb4d42600cf9910aa
packages/di/diagrams-wx.yaml
packages/di/diagrams-wx.yaml
homepage: https://github.com/spinda/diagrams-wx#readme changelog-type: '' hash: 09c7edf8527f631442b1035b1a1c99bf13e5aa41082b8e2d0241c5fcb04abeac test-bench-deps: {} maintainer: Michael Smith <michael@spinda.net> synopsis: Backend for rendering diagrams in wxWidgets changelog: '' basic-deps: diagrams-lib: ==1.3.* di...
homepage: https://github.com/spinda/diagrams-wx#readme changelog-type: '' hash: 452db80a342185befdf2af460d74264149671d674654c898134d17b64f143b95 test-bench-deps: {} maintainer: Michael Smith <michael@spinda.net> synopsis: Backend for rendering diagrams in wxWidgets changelog: '' basic-deps: diagrams-lib: ! '>=1.3 && ...
Update from Hackage at 2016-04-07T09:20:11+0000
Update from Hackage at 2016-04-07T09:20:11+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/spinda/diagrams-wx#readme changelog-type: '' hash: 09c7edf8527f631442b1035b1a1c99bf13e5aa41082b8e2d0241c5fcb04abeac test-bench-deps: {} maintainer: Michael Smith <michael@spinda.net> synopsis: Backend for rendering diagrams in wxWidgets changelog: '' basic-deps: diagrams-l...
baf107c98959ba90b34ab9cf1104828cb4e257d2
tests/features/assets/singlefile/multiParentInheritance.php
tests/features/assets/singlefile/multiParentInheritance.php
<?php /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org> * @license http://www.opensource.org/licenses/mit-license.php MIT * @link ...
<?php /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org> * @license http://www.opensource.org/licenses/mit-license.php MIT * @link ...
Make testcase work like expected
Make testcase work like expected
PHP
mit
mbed67/phpDocumentor2,mbed67/phpDocumentor2,phpDocumentor/phpDocumentor2,rgeraads/phpDocumentor2,jaapio/phpDocumentor2,phpDocumentor/phpDocumentor2,mbed67/phpDocumentor2,phpDocumentor/phpDocumentor2,jaapio/phpDocumentor2,jaapio/phpDocumentor2,rgeraads/phpDocumentor2,rgeraads/phpDocumentor2,mbed67/phpDocumentor2,rgeraad...
php
## Code Before: <?php /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright 2010-2017 Mike van Riel<mike@phpdoc.org> * @license http://www.opensource.org/licenses/mit-license.ph...
ed76f45a7cdfcf2f0abd8f514a814ff51595be97
docs/advanced_usage.rst
docs/advanced_usage.rst
Advanced Usage ============== Interact with stored messages through the REST api -------------------------------------------------- When *Django REST framework* is available and installed, Stored Messages exposes a RESTful api which consists of the following endpoints: * `/inbox/` - method: `GET`: retrieve the list...
Advanced Usage ============== Interact with stored messages through the REST api -------------------------------------------------- When *Django REST framework* is available and installed, Stored Messages exposes a RESTful api which consists of the following endpoints: * `/inbox/` - method: `GET`: retrieve the list...
Document marking message as read via REST API
Document marking message as read via REST API Added description of how to mark a message as read via the REST API
reStructuredText
bsd-3-clause
evonove/django-stored-messages,xrmx/django-stored-messages,nthall/django-stored-messages,nthall/django-stored-messages,evonove/django-stored-messages,xrmx/django-stored-messages
restructuredtext
## Code Before: Advanced Usage ============== Interact with stored messages through the REST api -------------------------------------------------- When *Django REST framework* is available and installed, Stored Messages exposes a RESTful api which consists of the following endpoints: * `/inbox/` - method: `GET`: r...
c6cb5040770ca4f93ab88667e874190b19dbd8ed
lib/components/Layout.tsx
lib/components/Layout.tsx
import React from "react"; import Head from "./Head"; import Header from "./Header"; import Footer from "./Footer"; import Cookiescript from "./Cookiescript"; const Layout = ({ title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne", description = `Engineering Management ...
import React from "react"; import Head from "./Head"; import Header from "./Header"; import Footer from "./Footer"; import Cookiescript from "./Cookiescript"; const Layout = ({ title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne", description = `Engineering Management ...
Fix default image in layout
Fix default image in layout
TypeScript
mit
drublic/vc,drublic/vc,drublic/vc
typescript
## Code Before: import React from "react"; import Head from "./Head"; import Header from "./Header"; import Footer from "./Footer"; import Cookiescript from "./Cookiescript"; const Layout = ({ title = "drublic - Engineering Management & Software Architecture - Hans Christian Reinl, Cologne", description = `Enginee...
b1d0bbc76d14083d67cc5aa4e2b1aee03ac93638
app/utils/connector-rfb.coffee
app/utils/connector-rfb.coffee
`import Ember from 'ember'` `import ENV from 'irene/config/environment';` updateState = -> return true xvpInit = -> return true ConnectorRFB = Ember.Object.extend rfb: null constructor: (@canvasEl, @deviceToken) -> console.log "ConnectorRFB - constructor" console.log @canvasEl, @deviceToken @r...
`import ENV from 'irene/config/environment';` updateState = -> return true xvpInit = -> return true class ConnectorRFB rfb: null constructor: (@canvasEl, @deviceToken) -> @rfb = new RFB 'target': @canvasEl 'encrypt': ENV.deviceFarmSsl 'repeaterID': '' 'true_color': true '...
Move to regular class based views
Move to regular class based views
CoffeeScript
agpl-3.0
appknox/irene,appknox/irene,appknox/irene
coffeescript
## Code Before: `import Ember from 'ember'` `import ENV from 'irene/config/environment';` updateState = -> return true xvpInit = -> return true ConnectorRFB = Ember.Object.extend rfb: null constructor: (@canvasEl, @deviceToken) -> console.log "ConnectorRFB - constructor" console.log @canvasEl, @de...
a597a8bec78504675c6709d2a702f0030de13fe3
tips/git/maintenance/renaming-remote-repository.md
tips/git/maintenance/renaming-remote-repository.md
Allows the developer to change the name of the remote repository in the local repository. This makes things easier to remember if you have trouble with `origin` ### Syntax ```bash git remote rename <old_name> <new_name> ``` | | Option | Description | | :-----------: |...
Allows the developer to change the name of the remote repository in the local repository. This makes things easier to remember if you have trouble with `origin` ### Syntax ```bash git remote rename <old_name> <new_name> ``` | | Option | Description | | :-----------: |...
Update output in latest tip
Update output in latest tip changelog tipit/ tips/ git/ maintenance/ renaming-remote-repository.md - Update output
Markdown
mit
weirdpattern/tipit
markdown
## Code Before: Allows the developer to change the name of the remote repository in the local repository. This makes things easier to remember if you have trouble with `origin` ### Syntax ```bash git remote rename <old_name> <new_name> ``` | | Option | Description | |...
bcee668ba6a841865fb455fe9d4c6b4723de0be2
react-frontend/src/components/HeaderComponent.js
react-frontend/src/components/HeaderComponent.js
import React, { Component } from 'react' import { Link } from "react-router-dom"; class HeaderComponent extends Component { constructor(props) { super(props) this.state = { } } render() { return ( <div> <header> <nav classNa...
import React, { Component } from 'react' import { Link } from "react-router-dom"; import { Navbar, Nav } from "react-bootstrap"; class HeaderComponent extends Component { constructor(props) { super(props) this.state = { } } render() { return ( <Navbar bg="dark...
Fix displaying navbar when is collapsed.
Fix displaying navbar when is collapsed.
JavaScript
apache-2.0
sebastiansokolowski/AuctionHunter---Allegro
javascript
## Code Before: import React, { Component } from 'react' import { Link } from "react-router-dom"; class HeaderComponent extends Component { constructor(props) { super(props) this.state = { } } render() { return ( <div> <header> ...
aaaf429a73d85418da43a320a2c927a41096b403
bower.json
bower.json
{ "name": "Ansible Rails Deployment", "version": "0.4.1", "homepage": "https://github.com/nicolai86/ansible-rails-deployment", "authors": [ "Raphael Randschau" ], "description": "A role that executes common tasks when deploying ruby on rails applications.", "license": "MIT", "dependencies": { "n...
{ "name": "Ansible Rails Deployment", "version": "0.5.2", "homepage": "https://github.com/nicolai86/ansible-rails-deployment", "authors": [ "Raphael Randschau" ], "description": "A role that executes common tasks when deploying ruby on rails applications.", "license": "MIT", "dependencies": { "n...
Update Bower.json for latest version
Update Bower.json for latest version
JSON
mit
NerdsvilleCEO/ansible-rails-deployment,nicolai86/ansible-rails-deployment,jbmyid/ansible-rails-deployment,NerdsvilleCEO/ansible-rails-deployment
json
## Code Before: { "name": "Ansible Rails Deployment", "version": "0.4.1", "homepage": "https://github.com/nicolai86/ansible-rails-deployment", "authors": [ "Raphael Randschau" ], "description": "A role that executes common tasks when deploying ruby on rails applications.", "license": "MIT", "depende...
a65eb4af0c35c8e79d44efa6acb546e19008a8ee
elmo/moon_tracker/forms.py
elmo/moon_tracker/forms.py
from django import forms import csv from io import StringIO class BatchMoonScanForm(forms.Form): data = forms.CharField( widget=forms.Textarea(attrs={'class':'form-control monospace'}), ) def clean(self): cleaned_data = super(BatchMoonScanForm, self).clean() raw = StringIO(cleaned...
from django import forms import csv from io import StringIO class BatchMoonScanForm(forms.Form): data = forms.CharField( widget=forms.Textarea(attrs={'class':'form-control monospace'}), ) def clean(self): cleaned_data = super(BatchMoonScanForm, self).clean() raw = StringIO(cleaned...
Improve batch form return data structure.
Improve batch form return data structure.
Python
mit
StephenSwat/eve_lunar_mining_organiser,StephenSwat/eve_lunar_mining_organiser
python
## Code Before: from django import forms import csv from io import StringIO class BatchMoonScanForm(forms.Form): data = forms.CharField( widget=forms.Textarea(attrs={'class':'form-control monospace'}), ) def clean(self): cleaned_data = super(BatchMoonScanForm, self).clean() raw = ...
d1b7f2fca53655c7ec262d6501449b9367beb172
cmd/tchaik/ui/static/js/src/components/Top.js
cmd/tchaik/ui/static/js/src/components/Top.js
'use strict'; import React from 'react/addons'; import Icon from './Icon.js'; import LeftColumnActions from '../actions/LeftColumnActions.js'; import SearchActions from '../actions/SearchActions.js'; class MenuButton extends React.Component { constructor(props) { super(props); this._onClick = this._onCl...
'use strict'; import React from 'react/addons'; import Icon from './Icon.js'; import LeftColumnActions from '../actions/LeftColumnActions.js'; import SearchActions from '../actions/SearchActions.js'; class MenuButton extends React.Component { constructor(props) { super(props); this._onClick = this._onCl...
Select search text on click
Select search text on click
JavaScript
bsd-2-clause
GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik,tchaik/tchaik,GrahamGoudeau21/tchaik,GrahamGoudeau21/tchaik,tchaik/tchaik,tchaik/tchaik
javascript
## Code Before: 'use strict'; import React from 'react/addons'; import Icon from './Icon.js'; import LeftColumnActions from '../actions/LeftColumnActions.js'; import SearchActions from '../actions/SearchActions.js'; class MenuButton extends React.Component { constructor(props) { super(props); this._onCl...
2a721c7ea478d5431c83694b668e2a94f587f256
components/bslt-database-selector/bslt-database-selector.css
components/bslt-database-selector/bslt-database-selector.css
list-style-type: none; width: 40px; margin: 0; padding: 0; height: 100%; display: block; position: fixed; top: 0; left: 0; background: rgb(60, 60, 60); padding-top: 50px; color: rgb(250, 250, 250); text-align: center; z-index: 1000; } #database-list li { padd...
list-style-type: none; width: 40px; margin: 0; padding: 0; display: block; position: fixed; top: 0; left: 0; bottom: 0; background: rgb(60, 60, 60); padding-top: 50px; color: rgb(250, 250, 250); text-align: center; z-index: 1000; overflow: scroll; } #database...
Fix broken scroll for database selector
Fix broken scroll for database selector
CSS
mit
tnilles/basalt,tnilles/basalt
css
## Code Before: list-style-type: none; width: 40px; margin: 0; padding: 0; height: 100%; display: block; position: fixed; top: 0; left: 0; background: rgb(60, 60, 60); padding-top: 50px; color: rgb(250, 250, 250); text-align: center; z-index: 1000; } #database-li...
571a1a73a664b0430de5a2620e172683018eb660
styles.css
styles.css
.node path.success { fill: #729FCF; } .node path.unstable { fill: #FCE94F; } .node path.failure { fill: #EF2929; } .node path.aborted { fill: #ABABAB; } .node path.pending { fill: #ABABAB; } .node text.better { fill: #29EF29; } .node text.worse { fill: #EF2929; } .node circle { fill: white; } .n...
.node path.success { fill: #729FCF; } .node path.unstable { fill: #FCE94F; } .node path.failure { fill: #EF2929; } .node path.aborted { fill: #ABABAB; } .node path.pending { fill: #ABABAB; } .node text.better { fill: #29EF29; } .node text.worse { fill: #EF2929; } .node circle { fill: white; } .n...
Add support for Firefox Animations
Add support for Firefox Animations
CSS
apache-2.0
wolfs/where-is-my-commit,wolfs/where-is-my-commit,wolfs/where-is-my-commit
css
## Code Before: .node path.success { fill: #729FCF; } .node path.unstable { fill: #FCE94F; } .node path.failure { fill: #EF2929; } .node path.aborted { fill: #ABABAB; } .node path.pending { fill: #ABABAB; } .node text.better { fill: #29EF29; } .node text.worse { fill: #EF2929; } .node circle { fi...
84c4aa73e6792dad6853866c66c756073df71f27
tests/test_replace_all.py
tests/test_replace_all.py
import unittest, os, sys from custom_test_case import CustomTestCase PROJECT_ROOT = os.path.dirname(__file__) sys.path.append(os.path.join(PROJECT_ROOT, "..")) from CodeConverter import CodeConverter class TestReplaceAll(unittest.TestCase, CustomTestCase): # All replacement def test_replace_objc(self): ...
import unittest, os, sys from custom_test_case import CustomTestCase PROJECT_ROOT = os.path.dirname(__file__) sys.path.append(os.path.join(PROJECT_ROOT, "..")) from CodeConverter import CodeConverter class TestReplaceAll(unittest.TestCase, CustomTestCase): # All replacement def test_replace_objc(self): ...
Test for block with multi args
Test for block with multi args
Python
mit
kyamaguchi/SublimeObjC2RubyMotion,kyamaguchi/SublimeObjC2RubyMotion
python
## Code Before: import unittest, os, sys from custom_test_case import CustomTestCase PROJECT_ROOT = os.path.dirname(__file__) sys.path.append(os.path.join(PROJECT_ROOT, "..")) from CodeConverter import CodeConverter class TestReplaceAll(unittest.TestCase, CustomTestCase): # All replacement def test_replace_...
f590db8181f2a0bc2ff0c634b1e453dd052ea4d9
Casks/font-anonymous-pro.rb
Casks/font-anonymous-pro.rb
class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha1 '87651de93312fdd3f27e50741d2a0630a41ec30d' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf' font 'AnonymousPro-1.0...
class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha256 '86665847a51cdfb58a1e1dfd8b1ba33f183485affe50b53e3304f63d3d3552ab' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf...
Update Anonymous Pro to sha256 checksums
Update Anonymous Pro to sha256 checksums
Ruby
bsd-2-clause
bkudria/homebrew-fonts,andrewsardone/homebrew-fonts,bkudria/homebrew-fonts,andrewsardone/homebrew-fonts,sscotth/homebrew-fonts,mtakayuki/homebrew-fonts,herblover/homebrew-fonts,mtakayuki/homebrew-fonts,zorosteven/homebrew-fonts,elmariofredo/homebrew-fonts,kkung/homebrew-fonts,victorpopkov/homebrew-fonts,caskroom/homebr...
ruby
## Code Before: class FontAnonymousPro < Cask url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip' homepage 'http://www.marksimonson.com/fonts/view/anonymous-pro' version '1.002' sha1 '87651de93312fdd3f27e50741d2a0630a41ec30d' font 'AnonymousPro-1.002.001/Anonymous Pro B.ttf' font '...
864fbdc4ea5ff5ef2bbabd65f1da5d44dbde1dea
public/worker_comms.js
public/worker_comms.js
if (typeof define === 'undefined' && typeof importScripts !== 'undefined') importScripts('lib/require.js'); var string_split = /(\w+)(\s\w+){0,1}$/ require( ['worker_console', 'x_protocol', 'endianbuffer'] , function (console, x_protocol, EndianBuffer) { var buffer = null , clients = {} ...
if (typeof define === 'undefined' && typeof importScripts !== 'undefined') importScripts('lib/require.js'); var string_split = /(\w+)(\s\w+){0,1}$/ window = self; require( ['worker_console', 'x_protocol', 'endianbuffer'] , function (console, x_protocol, EndianBuffer) { self.console = console; var...
Fix for chrome developer tools console
Fix for chrome developer tools console
JavaScript
bsd-2-clause
mweimerskirch/javascript-x-server,mweimerskirch/javascript-x-server,GothAck/javascript-x-server,GothAck/javascript-x-server
javascript
## Code Before: if (typeof define === 'undefined' && typeof importScripts !== 'undefined') importScripts('lib/require.js'); var string_split = /(\w+)(\s\w+){0,1}$/ require( ['worker_console', 'x_protocol', 'endianbuffer'] , function (console, x_protocol, EndianBuffer) { var buffer = null , clien...
d269d2f911db0f81abe690d69a76853252b457db
.travis.yml
.travis.yml
language: cpp comiler: - gcc - clang before_install: - sudo apt-get update -qq - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz install: - sudo apt-get install -qq openmpi-bin openmpi-common openmpi-dev libh...
language: cpp comiler: - gcc - clang before_install: - sudo apt-get update -qq - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz install: - sudo apt-get install -qq openmpi-bin openmpi-common openmpi-dev libh...
Add sudo to install metis
Add sudo to install metis
YAML
bsd-3-clause
TUM-I5/PUML2,TUM-I5/PUML2
yaml
## Code Before: language: cpp comiler: - gcc - clang before_install: - sudo apt-get update -qq - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz - wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gz install: - sudo apt-get install -qq openmpi-bin openmpi-common ...
1e31c20a18ac79f9fa72eb6e06fce9fdbc131eb5
workers/worker_base.rb
workers/worker_base.rb
module FastlaneCI class WorkerBase def initialize Thread.new do loop do sleep(self.timeout) self.work end end end def work not_implemented(__method__) end # Timeout in seconds def timeout not_implemented(__method__) end end en...
module FastlaneCI class WorkerBase def initialize Thread.new do loop do sleep(self.timeout) begin self.work rescue => ex puts "[#{self.class} Exception]: #{ex}: " puts caller.join("\n") end end end end ...
Add basic exception handling for workers
Add basic exception handling for workers
Ruby
mit
fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci,fastlane/ci
ruby
## Code Before: module FastlaneCI class WorkerBase def initialize Thread.new do loop do sleep(self.timeout) self.work end end end def work not_implemented(__method__) end # Timeout in seconds def timeout not_implemented(__method__) ...
763e36bf630d68646e385ab8abd21005dc50cc60
common/models/comments/NestedSetComment.php
common/models/comments/NestedSetComment.php
<?php namespace common\models\comments; use yii\base\Exception; class NestedSetComment extends Comment { /** * @inheritdoc */ public static function tableName() { return '{{%comment_ns}}'; } public static function findByPostInternal($postId) { throw new Exception('M...
<?php namespace common\models\comments; use yii\db\Query; class NestedSetComment extends Comment { public $parent_id; /** * @inheritdoc */ public static function tableName() { return '{{%comment_ns}}'; } public static function findByPostInternal($postId) { retu...
Implement addition of the root nodes of the Nested Set.
Implement addition of the root nodes of the Nested Set.
PHP
bsd-3-clause
resurtm/forum,resurtm/forum
php
## Code Before: <?php namespace common\models\comments; use yii\base\Exception; class NestedSetComment extends Comment { /** * @inheritdoc */ public static function tableName() { return '{{%comment_ns}}'; } public static function findByPostInternal($postId) { throw ...
eb7b00a271086aad54895c14e8acbb3f28c8e2a9
CHANGELOG.md
CHANGELOG.md
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [v1.10.0-beta.1] - 2021-12-15 ### Changed - Ported to Min...
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [v1.10.0-beta.1] - 2021-12-15 ### Fixed - Fixed Relay not...
Add changelog for 1.9.17 to 1.10.0-beta.1
Add changelog for 1.9.17 to 1.10.0-beta.1
Markdown
mit
raoulvdberge/refinedstorage,raoulvdberge/refinedstorage
markdown
## Code Before: All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [v1.10.0-beta.1] - 2021-12-15 ### Changed ...
7ecd3b13af3fbc9e63223f6c70c67e8088a66dfc
SingularityUI/app/lib/view_helper.coffee
SingularityUI/app/lib/view_helper.coffee
Handlebars.registerHelper 'ifEqual', (v1, v2, options) -> if v1 is v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifLT', (v1, v2, options) -> if v1 < v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifGT', (v1, v2, options) -> if v1 > v2 then options.fn @ else options.inver...
Handlebars.registerHelper 'ifEqual', (v1, v2, options) -> if v1 is v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifLT', (v1, v2, options) -> if v1 < v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifGT', (v1, v2, options) -> if v1 > v2 then options.fn @ else options.inver...
Create view helper for getShortTaskIDMiddleEllipsis utils method
Create view helper for getShortTaskIDMiddleEllipsis utils method
CoffeeScript
apache-2.0
tejasmanohar/Singularity,stevenschlansker/Singularity,mjball/Singularity,mjball/Singularity,evertrue/Singularity,acbellini/Singularity,acbellini/Singularity,calebTomlinson/Singularity,calebTomlinson/Singularity,hs-jenkins-bot/Singularity,acbellini/Singularity,HubSpot/Singularity,grepsr/Singularity,andrhamm/Singularity,...
coffeescript
## Code Before: Handlebars.registerHelper 'ifEqual', (v1, v2, options) -> if v1 is v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifLT', (v1, v2, options) -> if v1 < v2 then options.fn @ else options.inverse @ Handlebars.registerHelper 'ifGT', (v1, v2, options) -> if v1 > v2 then options.fn @ el...
b17d907e3d57db0991138cc30fbf481595aa39d3
admin/public/js/onenorth.js
admin/public/js/onenorth.js
jQuery(function($) { $('#sidebar-toggle').click(function(e) { e.preventDefault(); $('body').toggleClass("sidebar-collapse"); }); });
jQuery(function($) { var path = window.location.pathname; $('#sidebar-toggle').click(function(e) { e.preventDefault(); $('body').toggleClass("sidebar-collapse"); }); $('.sidebar-nav a').filter(function(idx, link) { if (link.getAttribute('href') === path) { link.classList.add('is-active'); } ...
Check location.path against sidebar link href for active link
Check location.path against sidebar link href for active link
JavaScript
mit
onenorth/keystone,onenorth/keystone
javascript
## Code Before: jQuery(function($) { $('#sidebar-toggle').click(function(e) { e.preventDefault(); $('body').toggleClass("sidebar-collapse"); }); }); ## Instruction: Check location.path against sidebar link href for active link ## Code After: jQuery(function($) { var path = window.location.pathname; $('#side...
db7583b62aad9eaf10c67e89cd46087b36c77d81
scikits/image/io/setup.py
scikits/image/io/setup.py
from scikits.image._build import cython import os.path base_path = os.path.abspath(os.path.dirname(__file__)) def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs config = Configuration('io', parent_package, top_path) config.ad...
from scikits.image._build import cython import os.path base_path = os.path.abspath(os.path.dirname(__file__)) def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs config = Configuration('io', parent_package, top_path) config.ad...
Move plugin tests to io/tests.
io: Move plugin tests to io/tests.
Python
bsd-3-clause
ClinicalGraphics/scikit-image,emmanuelle/scikits.image,juliusbierk/scikit-image,Hiyorimi/scikit-image,almarklein/scikit-image,newville/scikit-image,SamHames/scikit-image,ClinicalGraphics/scikit-image,almarklein/scikit-image,youprofit/scikit-image,jwiggins/scikit-image,Britefury/scikit-image,pratapvardhan/scikit-image,c...
python
## Code Before: from scikits.image._build import cython import os.path base_path = os.path.abspath(os.path.dirname(__file__)) def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs config = Configuration('io', parent_package, top_pat...
a3ce70e06f298e9bc358196ea0086ee16c5f8520
SIGS/app/controllers/administrative_assistants_controller.rb
SIGS/app/controllers/administrative_assistants_controller.rb
class AdministrativeAssistantsController < ApplicationController def registration_request @users = User.where(active: false) return @users end def enable_registration @user = User.find(params[:id]) if @user.update_attributes(active: true) flash[:success] = "Usuário aprovado com sucesso" ...
class AdministrativeAssistantsController < ApplicationController def registration_request @users = User.where(active: false) return @users end def enable_registration @user = User.find(params[:id]) if @user.update_attributes(active: true) flash[:success] = "Usuário aprovado com sucesso" ...
Add method destroy_users in Administrative Assistant controller
Add method destroy_users in Administrative Assistant controller
Ruby
mit
fga-gpp-mds/2017.1-SIGS,fga-gpp-mds/2017.1-SIGS,fga-gpp-mds/2017.1-SIGS,fga-gpp-mds/2017.1-SIGS,fga-gpp-mds/2017.1-SIGS
ruby
## Code Before: class AdministrativeAssistantsController < ApplicationController def registration_request @users = User.where(active: false) return @users end def enable_registration @user = User.find(params[:id]) if @user.update_attributes(active: true) flash[:success] = "Usuário aprovad...
6e17d51b349410cc033c90d859618e0d87ae888a
README.md
README.md
`$.scrollomatic` ============ jQuery plugin for fragment scrolling with URL manipulation and support for fixed headers. Scrollomatic can be applied to a set of anchors that navigate to fragments within the page. When an anchor is clicked, the plugin will smooth-scroll to its target and update the URL fragment to the ...
`$.scrollomatic` ============ jQuery plugin for fragment scrolling with URL manipulation and support for fixed headers. Scrollomatic can be applied to a set of anchors that navigate to fragments within the page. When an anchor is clicked, the plugin will smooth-scroll to its target and update the URL fragment to the ...
Add note about only supporting vertical scrolling
Add note about only supporting vertical scrolling
Markdown
mit
hudl/scrollomatic
markdown
## Code Before: `$.scrollomatic` ============ jQuery plugin for fragment scrolling with URL manipulation and support for fixed headers. Scrollomatic can be applied to a set of anchors that navigate to fragments within the page. When an anchor is clicked, the plugin will smooth-scroll to its target and update the URL ...
458fb9b764cae3419b6513dcc1fedf2ea8949829
networkx/generators/tests/test_stochastic.py
networkx/generators/tests/test_stochastic.py
from nose.tools import assert_true, assert_equal,assert_raises import networkx as nx def test_stochastic(): G=nx.DiGraph() G.add_edge(0,1) G.add_edge(0,2) S=nx.stochastic_graph(G) assert_true(nx.is_isomorphic(G,S)) assert_equal(sorted(S.edges(data=True)), [(0, 1, {'weight': 0.5...
from nose.tools import assert_true, assert_equal,assert_raises import networkx as nx def test_stochastic(): G=nx.DiGraph() G.add_edge(0,1) G.add_edge(0,2) S=nx.stochastic_graph(G) assert_true(nx.is_isomorphic(G,S)) assert_equal(sorted(S.edges(data=True)), [(0, 1, {'weight': 0.5...
Test stochstic graph with ints
Test stochstic graph with ints
Python
bsd-3-clause
blublud/networkx,dhimmel/networkx,nathania/networkx,goulu/networkx,ltiao/networkx,ionanrozenfeld/networkx,bzero/networkx,dmoliveira/networkx,aureooms/networkx,yashu-seth/networkx,ghdk/networkx,ionanrozenfeld/networkx,nathania/networkx,harlowja/networkx,michaelpacer/networkx,ionanrozenfeld/networkx,aureooms/networkx,har...
python
## Code Before: from nose.tools import assert_true, assert_equal,assert_raises import networkx as nx def test_stochastic(): G=nx.DiGraph() G.add_edge(0,1) G.add_edge(0,2) S=nx.stochastic_graph(G) assert_true(nx.is_isomorphic(G,S)) assert_equal(sorted(S.edges(data=True)), [(0, 1...
29ea7bc48cc4ef81466764bdda3729ac44345154
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/statistics/RequiredStatisticsProvider.java
annotation-rest/src/main/java/uk/ac/ebi/quickgo/annotation/service/statistics/RequiredStatisticsProvider.java
package uk.ac.ebi.quickgo.annotation.service.statistics; import java.util.List; /** * A source of {@link RequiredStatistics} instances. * * @author Tony Wardell * Date: 19/12/2017 * Time: 11:04 * Created with IntelliJ IDEA. */ public class RequiredStatisticsProvider { private final RequiredStatistics stan...
package uk.ac.ebi.quickgo.annotation.service.statistics; import java.util.List; import java.util.Objects; import static com.google.common.base.Preconditions.checkArgument; /** * A source of {@link RequiredStatistics} instances. * * @author Tony Wardell * Date: 19/12/2017 * Time: 11:04 * Created with IntelliJ I...
Check configuration objects passed to the constructor are not null.
Check configuration objects passed to the constructor are not null.
Java
apache-2.0
ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE,ebi-uniprot/QuickGOBE
java
## Code Before: package uk.ac.ebi.quickgo.annotation.service.statistics; import java.util.List; /** * A source of {@link RequiredStatistics} instances. * * @author Tony Wardell * Date: 19/12/2017 * Time: 11:04 * Created with IntelliJ IDEA. */ public class RequiredStatisticsProvider { private final Require...
6665be92c5f9da47f9ae49342768e87cd21b772d
packages/fi/fib.yaml
packages/fi/fib.yaml
homepage: https://github.com/chessai/fib changelog-type: markdown hash: 29347a6b1ca2d76a1235b3b001730f5ac8d83f9db07cd2f1ee91cb83edd11128 test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Versioning][1]. The changelog is available...
homepage: https://github.com/chessai/fib changelog-type: markdown hash: 908695e8f5089f0b9ad05ba663a407c269c0553e9cd913a64f1b2543238427de test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Versioning][1]. The changelog is available...
Update from Hackage at 2019-03-02T19:52:55Z
Update from Hackage at 2019-03-02T19:52:55Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/chessai/fib changelog-type: markdown hash: 29347a6b1ca2d76a1235b3b001730f5ac8d83f9db07cd2f1ee91cb83edd11128 test-bench-deps: {} maintainer: chessai <chessai1996@gmail.com> synopsis: fibonacci algebra changelog: |- # Changelog `fib` uses [PVP Versioning][1]. The change...
d3c435bb558d8bb3e3f44224fb8844a838acb608
lib/hacky_hal/device_controllers/linux_computer.rb
lib/hacky_hal/device_controllers/linux_computer.rb
require_relative "generic_ssh" module HackyHAL module DeviceControllers class LinuxComputer < GenericSsh def mirror_screens(source_screen, dest_screen) xrandr_command("--output #{dest_screen} --same-as #{source_screen}") end def set_screen_position(screen_1, screen_2, position) ...
require_relative "generic_ssh" module HackyHAL module DeviceControllers class LinuxComputer < GenericSsh def mirror_screens(source_screen, dest_screen) xrandr_command("--output #{dest_screen} --same-as #{source_screen}") end def set_screen_position(screen_1, screen_2, position) ...
Fix bug with LinuxComputer controller xrandr command builder
Fix bug with LinuxComputer controller xrandr command builder
Ruby
mit
nickewing/hacky_hal
ruby
## Code Before: require_relative "generic_ssh" module HackyHAL module DeviceControllers class LinuxComputer < GenericSsh def mirror_screens(source_screen, dest_screen) xrandr_command("--output #{dest_screen} --same-as #{source_screen}") end def set_screen_position(screen_1, screen_2, p...
cd75e2ca01b208c80a32755955a40192400c63e4
demo/templates-demo/organisation-seller-ted.html
demo/templates-demo/organisation-seller-ted.html
<div class="container"> <!--Title Aggregate--> <div class="row"> <div class="col-md-12"> <yds-aggregate project-id="{{ projectId }}" view-type="organisation.contract.seller.title" element-h="60" base-url="{{ bas...
<div class="container"> <!--Title Aggregate--> <div class="row"> <div class="col-md-12"> <yds-aggregate project-id="{{ projectId }}" view-type="organisation.contract.seller.title" element-h="60" base-url="{{ bas...
Add contracts count aggregate to TED seller page
Add contracts count aggregate to TED seller page
HTML
apache-2.0
YourDataStories/components-visualisation,YourDataStories/components-visualisation,YourDataStories/components-visualisation
html
## Code Before: <div class="container"> <!--Title Aggregate--> <div class="row"> <div class="col-md-12"> <yds-aggregate project-id="{{ projectId }}" view-type="organisation.contract.seller.title" element-h="60" ...
1bc4889c8eabe8b171423720e3945390184f454e
pubspec.yaml
pubspec.yaml
name: euler version: 0.0.2 author: Lukas Renggli <renggli@gmail.com> description: My advances on Project Euler. homepage: https://github.com/renggli/dart-euler environment: sdk: ^2.0.0 dependencies: test: any more: any
name: euler version: 0.0.2 author: Lukas Renggli <renggli@gmail.com> description: My advances on Project Euler. homepage: https://github.com/renggli/dart-euler environment: sdk: '>=2.0.0-dev.61.0 <3.0.0' dependencies: test: any more: any
Revert SDK version to make Travis and Flutter work again
Revert SDK version to make Travis and Flutter work again
YAML
mit
renggli/dart-euler
yaml
## Code Before: name: euler version: 0.0.2 author: Lukas Renggli <renggli@gmail.com> description: My advances on Project Euler. homepage: https://github.com/renggli/dart-euler environment: sdk: ^2.0.0 dependencies: test: any more: any ## Instruction: Revert SDK version to make Travis and Flutter work again ## C...
98bf35e3a5f172554d0d10c39fc39848ece591c2
.travis.yml
.travis.yml
language: java sudo: required os: - linux dist: trusty install: - sudo pip install mkdocs - sudo pip install mkdocs-material script: - ./gradlew buildJar buildWar buildCli buildDoc -PbuildNumber=${TRAVIS_JOB_NUMBER} && ./e2e/integration_tests.sh - ./gradlew jacocoTestReport after_success: - bash <...
language: java sudo: required os: - linux dist: trusty install: - sudo pip install mkdocs - sudo pip install mkdocs-material script: - [[ $TRAVIS_BRANCH == "develop" ]] && CLIENT_PATH="-PclientPath=/ngb-dev" - ./gradlew buildJar buildWar buildCli buildDoc -PbuildNumber=${TRAVIS_JOB_NUMBER} ${CLIENT_...
Build "develop" branch with "/ngb-dev" clientPath.
Build "develop" branch with "/ngb-dev" clientPath.
YAML
mit
epam/NGB,epam/NGB,epam/NGB,epam/NGB
yaml
## Code Before: language: java sudo: required os: - linux dist: trusty install: - sudo pip install mkdocs - sudo pip install mkdocs-material script: - ./gradlew buildJar buildWar buildCli buildDoc -PbuildNumber=${TRAVIS_JOB_NUMBER} && ./e2e/integration_tests.sh - ./gradlew jacocoTestReport after_suc...
4fd4bc078870c04da86568d8d5ae012df3a97c1d
test/unit/health_check/search_check_test.rb
test/unit/health_check/search_check_test.rb
require_relative "../../test_helper" require "health_check/logging_config" require "health_check/search_check" Logging.logger.root.appenders = nil module HealthCheck class SearchCheckTest < ShouldaUnitTestCase end end
require_relative "../../test_helper" require "health_check/search_check" module HealthCheck class SearchCheckTest < ShouldaUnitTestCase def setup @subject = SearchCheck.new @search_results = ["any-old-thing"] end context "#result" do should "delegate to it's corresponding results class...
Add some simple testing for the SearchCheck struct
Add some simple testing for the SearchCheck struct
Ruby
mit
alphagov/rummager,alphagov/rummager
ruby
## Code Before: require_relative "../../test_helper" require "health_check/logging_config" require "health_check/search_check" Logging.logger.root.appenders = nil module HealthCheck class SearchCheckTest < ShouldaUnitTestCase end end ## Instruction: Add some simple testing for the SearchCheck struct ## Code Afte...
79e5cab2908c26ff80ae5c5e4b37ced9765a952c
dbaas/physical/forms/database_infra.py
dbaas/physical/forms/database_infra.py
from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): if args: ...
from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): if args and 'disk_...
Fix database infra save method
Fix database infra save method
Python
bsd-3-clause
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
python
## Code Before: from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): if...
02095500794565fc84aee8272bfece1b39bc270f
examples/example_architecture_upload.py
examples/example_architecture_upload.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import glob import datetime from teamscale_client import TeamscaleClient from teamscale_client.constants import CoverageFormats TEAMSCALE_URL = "http://localhost:8080" ...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import glob import datetime from teamscale_client import TeamscaleClient from teamscale_client.constants import CoverageFormats TEAMSCALE_URL = "http://localhost:8080" ...
Update example for architecture upload
Update example for architecture upload
Python
apache-2.0
cqse/teamscale-client-python
python
## Code Before: from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import glob import datetime from teamscale_client import TeamscaleClient from teamscale_client.constants import CoverageFormats TEAMSCALE_URL = "http://...
760c93b8321559157ae4618b3890178bee676793
README.md
README.md
BoxPacker ========= An implementation of the "4D" bin packing/knapsack problem i.e. given a list of items, how many boxes do you need to fit them all in taking into account physical dimensions and weights. Especially useful for e.g. e-commerce contexts when you need to know box size/weight to calculate shipping costs...
BoxPacker ========= [![Build Status](https://github.com/dvdoug/BoxPacker/workflows/CI/badge.svg?branch=master)](https://github.com/dvdoug/BoxPacker/actions?query=workflow%3ACI+branch%3Amaster) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/dvdoug/BoxPacker/badges/quality-score.png?b=master)](https://scrutin...
Move badges to top of readme
Move badges to top of readme
Markdown
mit
dvdoug/BoxPacker
markdown
## Code Before: BoxPacker ========= An implementation of the "4D" bin packing/knapsack problem i.e. given a list of items, how many boxes do you need to fit them all in taking into account physical dimensions and weights. Especially useful for e.g. e-commerce contexts when you need to know box size/weight to calculat...
714295fdcc9c64721b9f7d4db6fae8f7bdaca55a
X10_Project/Classes/ColliderManager.h
X10_Project/Classes/ColliderManager.h
class StageInformation; class Collider; class Bullet; class Sling; class ColliderManager { public: ColliderManager() {} ~ColliderManager() {} void InitBullets(StageInformation* si); void ResetBullets(); Bullet* GetBulletToShot(Sling* sling); Vector<Collider*>& GetColliders(){ return colliders; } bool HasBull...
class StageInformation; class Bullet; class Sling; class ColliderManager { public: ColliderManager() {} ~ColliderManager() {} void InitBullets(StageInformation* si); void ResetBullets(); Bullet* GetBulletToShot(Sling* sling); Vector<Collider*>& GetColliders(){ return colliders; } bool HasBullet(); void AddE...
Fix file include bug (cocos Vector<T>)
Fix file include bug (cocos Vector<T>)
C
mit
kimsin3003/X10,kimsin3003/X10,kimsin3003/X10,kimsin3003/X10,kimsin3003/X10
c
## Code Before: class StageInformation; class Collider; class Bullet; class Sling; class ColliderManager { public: ColliderManager() {} ~ColliderManager() {} void InitBullets(StageInformation* si); void ResetBullets(); Bullet* GetBulletToShot(Sling* sling); Vector<Collider*>& GetColliders(){ return colliders; ...
c82cec018d7de92014a771a74b2f199ef20af3d0
postinstall.sh
postinstall.sh
set -o errexit set -o pipefail if [[ $NODE_ENV == 'production' ]]; then # Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file) find . -name '*.c' -delete # And the tar files (sqlite3 module again) find . -name '*.tar.*' -delete # Who needs tests and docs? Pffft! - Ignoring error...
set -o errexit set -o pipefail if [[ $NODE_ENV == 'production' ]]; then # Remove node-gyp cache rm -rf ~/.node-gyp/ # Remove cached git deps rm -rf /tmp/* # Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file) find . -name '*.c' -delete # And the tar files (sqlite3 module agai...
Save space by removing more npm install artifacts.
Save space by removing more npm install artifacts.
Shell
apache-2.0
resin-io/resin-multivisor,nghiant2710/resin-supervisor,nghiant2710/resin-supervisor,deviceMP/resin-supervisor,deviceMP/resin-supervisor
shell
## Code Before: set -o errexit set -o pipefail if [[ $NODE_ENV == 'production' ]]; then # Remove the c files we no longer need (the sqlite3 node module has a massive ~5M c file) find . -name '*.c' -delete # And the tar files (sqlite3 module again) find . -name '*.tar.*' -delete # Who needs tests and docs? Pffft! ...
fe95d9293dc5a9ce3fe9de591b4a6ef91c94e3ac
AUTHORS.rst
AUTHORS.rst
Authors ======= Contributors to *comics* in the order of appearance: * Stein Magnus Jodal <stein.magnus@jodal.no> * Thomas Adamcik <adamcik@samfundet.no> * Johannes Knutsen <johannes@knutseninfo.no> * Kristian Klette <klette@klette.us> * Jim Wyllie <jwyllie83@gmail.com> * Rune Hammersland <?>
Authors ======= Contributors to *comics* in the order of appearance: * Stein Magnus Jodal <stein.magnus@jodal.no> * Thomas Adamcik <adamcik@samfundet.no> * Johannes Knutsen <johannes@knutseninfo.no> * Kristian Klette <klette@klette.us> * Jim Wyllie <jwyllie83@gmail.com> * Rune Hammersland <rune.hammersland+github@gma...
Add missing email address to authors list
Add missing email address to authors list
reStructuredText
agpl-3.0
klette/comics,jodal/comics,jodal/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,datagutten/comics,klette/comics,klette/comics,datagutten/comics
restructuredtext
## Code Before: Authors ======= Contributors to *comics* in the order of appearance: * Stein Magnus Jodal <stein.magnus@jodal.no> * Thomas Adamcik <adamcik@samfundet.no> * Johannes Knutsen <johannes@knutseninfo.no> * Kristian Klette <klette@klette.us> * Jim Wyllie <jwyllie83@gmail.com> * Rune Hammersland <?> ## Inst...
a9a81e56863a18e41eefcc5b4e6cb674eefa4ec2
grails-app/domain/org/grails/plugin/filterpane/nested/Function.groovy
grails-app/domain/org/grails/plugin/filterpane/nested/Function.groovy
package org.grails.plugin.filterpane.nested import groovy.transform.ToString @ToString(includes=['name']) class Function { String name = 'function' static belongsTo = [Part] static constraints = { } }
package org.grails.plugin.filterpane.nested import groovy.transform.ToString // Temporary fix due to groovy version @ToString(includes='name') class Function { String name = 'function' static belongsTo = [Part] static constraints = { } }
Fix for older groovy version
Fix for older groovy version
Groovy
apache-2.0
Grails-Plugin-Consortium/grails-filterpane
groovy
## Code Before: package org.grails.plugin.filterpane.nested import groovy.transform.ToString @ToString(includes=['name']) class Function { String name = 'function' static belongsTo = [Part] static constraints = { } } ## Instruction: Fix for older groovy version ## Code After: package org.grails.p...
415db1fda50e5fd222fff6270271ef615d0ac6b6
vagrant/scripts/provision.sh
vagrant/scripts/provision.sh
which curl docker make ruby || { sudo apt-get update sudo apt-get install -y curl docker.io make ruby sudo usermod -a -G docker ubuntu sudo gem install rubyzip } which docker-compose || { curl -sSL https://github.com/docker/compose/releases/download/1.9.0-rc2/docker-compose-`uname -s`-`uname -m` > docker-co...
git clone https://github.com/ojacques/chatopslab.git which curl docker make ruby || { sudo apt-get update sudo apt-get install -y curl docker.io make ruby sudo usermod -a -G docker ubuntu sudo gem install rubyzip } which docker-compose || { curl -sSL https://github.com/docker/compose/releases/download/1.9....
Add NodeJS install for hubot
Add NodeJS install for hubot
Shell
apache-2.0
ojacques/chatopslab,ojacques/chatopslab
shell
## Code Before: which curl docker make ruby || { sudo apt-get update sudo apt-get install -y curl docker.io make ruby sudo usermod -a -G docker ubuntu sudo gem install rubyzip } which docker-compose || { curl -sSL https://github.com/docker/compose/releases/download/1.9.0-rc2/docker-compose-`uname -s`-`uname...
5140d6520d43210e2deeb6b257e6bf85828a56ff
src/CDN.php
src/CDN.php
<?php namespace EngagementAgency\CDN; use InvalidArgumentException; class CDN { const MANIFEST_NAME = 'rev-manifest.json'; /** * @var array */ private $config; public function __construct($config = []) { $this->config = $config; } /** * @param string */ ...
<?php namespace EngagementAgency\CDN; use InvalidArgumentException; class CDN { const MANIFEST_NAME = 'rev-manifest.json'; /** * @var array */ private $config; public function __construct($config = []) { $this->config = $config; } /** * @param string */ ...
Split asset and versioning behaviour
Split asset and versioning behaviour
PHP
mit
Midvinter/Laravel-CDN
php
## Code Before: <?php namespace EngagementAgency\CDN; use InvalidArgumentException; class CDN { const MANIFEST_NAME = 'rev-manifest.json'; /** * @var array */ private $config; public function __construct($config = []) { $this->config = $config; } /** * @param str...
09e4dd8736d6e829b779dd14b882e0e1d7f5abb9
tester/register/prepare_test.py
tester/register/prepare_test.py
import sys import os import argparse def write_csv(filename, nb_users): with open(filename, "w") as csv_file: csv_file.write("SEQUENTIAL\n") for x in xrange(nb_users): line = "{uname};localhost;[authentication username={uname} password={uname}];\n".format(uname=str(1000+x)) csv_file.write(line) def write...
import sys import os import argparse def write_csv(filename, nb_users): with open(filename, "w") as csv_file: csv_file.write("SEQUENTIAL\n") for x in xrange(nb_users): line = "{uname};localhost;[authentication username={uname} password={uname}];\n".format(uname=str(1000+x)) csv_file.write(line) def write...
DROP DATABASE IF EXISTS in tests.
DROP DATABASE IF EXISTS in tests.
Python
agpl-3.0
BelledonneCommunications/flexisip,BelledonneCommunications/flexisip,BelledonneCommunications/flexisip,BelledonneCommunications/flexisip
python
## Code Before: import sys import os import argparse def write_csv(filename, nb_users): with open(filename, "w") as csv_file: csv_file.write("SEQUENTIAL\n") for x in xrange(nb_users): line = "{uname};localhost;[authentication username={uname} password={uname}];\n".format(uname=str(1000+x)) csv_file.write(...
575146a48b545fb7ac0a321546d2a6c23598642a
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.8) project(JniHelpers) if(NOT ANDROID) find_package(JNI REQUIRED) endif(NOT ANDROID) include_directories(${JNI_INCLUDE_DIRS}) file(GLOB libJniHelpers_SOURCES src/*.cpp) file(GLOB libJniHelpers_HEADERS src/*.h) link_directories(${JNI_LIBRARIES}) add_library(${PROJECT_NAME} ${libJni...
cmake_minimum_required(VERSION 2.8) project(JniHelpers) if(NOT ANDROID) find_package(JNI REQUIRED) endif(NOT ANDROID) include_directories(${JNI_INCLUDE_DIRS}) file(GLOB libJniHelpers_SOURCES src/*.cpp) file(GLOB libJniHelpers_HEADERS src/*.h) link_directories(${JNI_LIBRARIES}) add_library(${PROJECT_NAME} ${libJni...
Add headers to library dependencies
Add headers to library dependencies Helps with cmake project generation
Text
apache-2.0
spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers,spotify/JniHelpers
text
## Code Before: cmake_minimum_required(VERSION 2.8) project(JniHelpers) if(NOT ANDROID) find_package(JNI REQUIRED) endif(NOT ANDROID) include_directories(${JNI_INCLUDE_DIRS}) file(GLOB libJniHelpers_SOURCES src/*.cpp) file(GLOB libJniHelpers_HEADERS src/*.h) link_directories(${JNI_LIBRARIES}) add_library(${PROJEC...
a5a1a0210aeafd8d39669ff08c9fe3e5558e3210
migrations/20170514174820_blogs.js
migrations/20170514174820_blogs.js
exports.up = function(knex, Promise) { return knex.schema.createTable('blogs', function (table) { table.increments('id').primary() table.integer('tags').unsigned() table.foreign('tags').references('taxonomy.id') table.integer('author').unsigned() table.foreign('author').references('users.id') tab...
exports.up = function(knex, Promise) { return knex.schema.createTable('blogs', function (table) { table.increments('id').primary() table.integer('tags').unsigned() table.foreign('tags').references('taxonomy.id') table.integer('author').unsigned() table.foreign('author').references('users.id') tab...
Add two columns to blogs table - image and summary
Add two columns to blogs table - image and summary
JavaScript
mit
smanongga/smanongga.github.io,smanongga/smanongga.github.io,smanongga/smanongga.github.io
javascript
## Code Before: exports.up = function(knex, Promise) { return knex.schema.createTable('blogs', function (table) { table.increments('id').primary() table.integer('tags').unsigned() table.foreign('tags').references('taxonomy.id') table.integer('author').unsigned() table.foreign('author').references('users.id...
938938f7e5d806e14e4a4465647caf51d0a9bbaf
lib/bundler/build_metadata.rb
lib/bundler/build_metadata.rb
module Bundler # Represents metadata from when the Bundler gem was built. module BuildMetadata # begin ivars @release = false # end ivars # A hash representation of the build metadata. def self.to_h { "Built At" => built_at, "Git SHA" => git_commit_sha, "Released ...
module Bundler # Represents metadata from when the Bundler gem was built. module BuildMetadata # begin ivars @release = false # end ivars # A hash representation of the build metadata. def self.to_h { "Built At" => built_at, "Git SHA" => git_commit_sha, "Released ...
Check for file or folder when checking for git hash in build metadata
Check for file or folder when checking for git hash in build metadata
Ruby
mit
bundler/bundler,bundler/bundler,mvz/bundler,dilumnavanjana/bundler,dilumnavanjana/bundler,mvz/bundler
ruby
## Code Before: module Bundler # Represents metadata from when the Bundler gem was built. module BuildMetadata # begin ivars @release = false # end ivars # A hash representation of the build metadata. def self.to_h { "Built At" => built_at, "Git SHA" => git_commit_sha, ...
54fd5dd2359339df5e090aba067e9fad31fcc997
download/index.md
download/index.md
--- layout: maindownloadpage title: Download release_version: 2.10.3 release_date: "June 6, 2013" other_releases: [ ["maintenance_version", "Current maintenance release", 2.9.3, "February 28, 2013"], ["development_version", "Current development release", 2.11.0-M5, "September 06, 2013"] ] requirements: "This Scala ...
--- layout: maindownloadpage title: Download release_version: 2.10.3 release_date: "June 6, 2013" other_releases: [ ["maintenance_version", "Current maintenance release", 2.9.3, "February 28, 2013"], ["development_version", "Current development release", 2.11.0-M5, "September 06, 2013"] ] requirements: "This Scala ...
Remove stray references to 2.10.2
Remove stray references to 2.10.2 After this change: % ack -l --markdown 2.10.2 documentation/api.md download/_posts/2013-05-31-2.10.2-RC2.md download/_posts/2013-06-06-2.10.2.md news/_posts/2013-05-23-release-notes-v2.10.2-RC1.md news/_posts/2013-05-29-release-notes-v2.11.0-M3.md news/_posts/2013-05-31-releas...
Markdown
bsd-3-clause
jeantil/scala-lang,vl4ds/scala-lang,boldradius/scala-lang,andy1138/scala-lang,jeantil/scala-lang,andy1138/scala-lang,boldradius/scala-lang,jeantil/scala-lang,boldradius/scala-lang,andy1138/scala-lang,vl4ds/scala-lang,jeantil/scala-lang,andy1138/scala-lang,vl4ds/scala-lang,boldradius/scala-lang,vl4ds/scala-lang
markdown
## Code Before: --- layout: maindownloadpage title: Download release_version: 2.10.3 release_date: "June 6, 2013" other_releases: [ ["maintenance_version", "Current maintenance release", 2.9.3, "February 28, 2013"], ["development_version", "Current development release", 2.11.0-M5, "September 06, 2013"] ] requiremen...
2edecb46ecc41b25cb6e7c823671b7b54c3591e6
lib/blimpy/livery/puppet.rb
lib/blimpy/livery/puppet.rb
require 'blimpy/livery/base' require 'blimpy/livery/cwd' module Blimpy module Livery class Puppet < CWD attr_accessor :module_path, :manifest_path, :options def initialize(*args) super @module_path = './modules' @manifest_path = 'manifests/site.pp' @options = '--verbo...
require 'blimpy/livery/base' require 'blimpy/livery/cwd' module Blimpy module Livery class Puppet < CWD attr_accessor :module_path, :manifest_path, :options def initialize(*args) super @module_path = './modules' @manifest_path = 'manifests/site.pp' @options = '--verbo...
Add a minor optimization, don't bother bootstrapping Puppet if it's already in our PATH
Add a minor optimization, don't bother bootstrapping Puppet if it's already in our PATH
Ruby
mit
rtyler/blimpy,rtyler/blimpy
ruby
## Code Before: require 'blimpy/livery/base' require 'blimpy/livery/cwd' module Blimpy module Livery class Puppet < CWD attr_accessor :module_path, :manifest_path, :options def initialize(*args) super @module_path = './modules' @manifest_path = 'manifests/site.pp' @op...
9fbcca50db358205db5972f05c71222f76feb426
lib/parser/parse_error.fy
lib/parser/parse_error.fy
class Fancy { class Parser { class ParseError : StdError { read_slots: ['line, 'filename] def initialize: @line message: @message filename: @filename { initialize: "Parse error near '#{@message}' at line #{@line} in #{@filename}" } } } }
class Fancy { class Parser { class ParseError : StdError { read_slots: ['line, 'filename] def initialize: @line message: @message filename: @filename { initialize: $ "Parse error near '" ++ @message ++ "' at line " ++ @line ++ " in " ++ @filename } } } }
Fix to ParseError constructor. Use ++ for now, since string interpolation doesn't work during bootstrapping (in case we get parse errors there..)
Fix to ParseError constructor. Use ++ for now, since string interpolation doesn't work during bootstrapping (in case we get parse errors there..)
Fancy
bsd-3-clause
bakkdoor/fancy,bakkdoor/fancy,bakkdoor/fancy,bakkdoor/fancy
fancy
## Code Before: class Fancy { class Parser { class ParseError : StdError { read_slots: ['line, 'filename] def initialize: @line message: @message filename: @filename { initialize: "Parse error near '#{@message}' at line #{@line} in #{@filename}" } } } } ## Instruction: Fix to Parse...
f415a411f748ce5a8eb142d862970e00d0267004
tests/test_environment.py
tests/test_environment.py
import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises(UnknownExtension) as er...
import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises(UnknownExtension) as er...
Add a simple test to make sure cookiecutter comes with jinja2_time
Add a simple test to make sure cookiecutter comes with jinja2_time
Python
bsd-3-clause
Springerle/cookiecutter,dajose/cookiecutter,luzfcb/cookiecutter,michaeljoseph/cookiecutter,willingc/cookiecutter,luzfcb/cookiecutter,michaeljoseph/cookiecutter,Springerle/cookiecutter,dajose/cookiecutter,pjbull/cookiecutter,audreyr/cookiecutter,audreyr/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,hackebrot/co...
python
## Code Before: import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises(Unknown...
fb3f6c03f32dc06fe665ce35029e13fd450bee24
.eslintrc.yml
.eslintrc.yml
env: browser: true es6: true node: true extends: 'airbnb' parserOptions: sourceType: module rules: indent: - warn - 2 linebreak-style: - error - unix no-underscore-dangle: off no-param-reassign: - error - props: false object-shorthand: - 2 - consistent semi: - war...
env: browser: true es6: true node: true extends: 'airbnb' parserOptions: sourceType: module rules: indent: - warn - 2 linebreak-style: - error - unix - windows no-underscore-dangle: off no-param-reassign: - error - props: false object-shorthand: - 2 - consistent s...
Remove warnings about windows file endings
LV: Remove warnings about windows file endings
YAML
mit
saasquatch/squatch-js,saasquatch/squatch-js,saasquatch/squatch-js
yaml
## Code Before: env: browser: true es6: true node: true extends: 'airbnb' parserOptions: sourceType: module rules: indent: - warn - 2 linebreak-style: - error - unix no-underscore-dangle: off no-param-reassign: - error - props: false object-shorthand: - 2 - consistent ...
6c66286a761072fd7b69aabd85a7d75a93b7c80c
lib/initial.js
lib/initial.js
/*! * stylus-initial * Copyright (c) 2014 Pierre-Antoine "Leny" Delnatte <info@flatland.be> * (Un)Licensed */ "use strict"; var utils = require( "stylus" ).utils, rInitial = /([a-z\-]+)\s*:\s*(initial);/gi, oInitialValues = require( "./values.json" ); var plugin = function() { return function( stylus...
/*! * stylus-initial * Copyright (c) 2014 Pierre-Antoine "Leny" Delnatte <info@flatland.be> * (Un)Licensed */ "use strict"; var utils = require( "stylus" ).utils, rInitial = /([a-z\-]+)\s*:\s*(initial);/gi, oInitialValues = require( "./values.json" ); var plugin = function() { return function( stylus...
Refactor the code to be a pre-processing task.
Refactor the code to be a pre-processing task.
JavaScript
unlicense
leny/stylus-initial
javascript
## Code Before: /*! * stylus-initial * Copyright (c) 2014 Pierre-Antoine "Leny" Delnatte <info@flatland.be> * (Un)Licensed */ "use strict"; var utils = require( "stylus" ).utils, rInitial = /([a-z\-]+)\s*:\s*(initial);/gi, oInitialValues = require( "./values.json" ); var plugin = function() { return ...
b2155e167b559367bc24ba614f51360793951f12
mythril/support/source_support.py
mythril/support/source_support.py
from mythril.solidity.soliditycontract import SolidityContract from mythril.ethereum.evmcontract import EVMContract class Source: def __init__( self, source_type=None, source_format=None, source_list=None, meta=None ): self.source_type = source_type self.source_format = source_format ...
from mythril.solidity.soliditycontract import SolidityContract from mythril.ethereum.evmcontract import EVMContract class Source: def __init__( self, source_type=None, source_format=None, source_list=None, meta=None ): self.source_type = source_type self.source_format = source_format ...
Remove meta from source class (belongs to issue not source)
Remove meta from source class (belongs to issue not source)
Python
mit
b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril
python
## Code Before: from mythril.solidity.soliditycontract import SolidityContract from mythril.ethereum.evmcontract import EVMContract class Source: def __init__( self, source_type=None, source_format=None, source_list=None, meta=None ): self.source_type = source_type self.source_format =...
e51a8960110a7c6a057f8d24881f4f6606f0cd0b
README.md
README.md
A simple Firefox extension for editing tab titles.
A simple Firefox extension for editing tab titles. # Why does this project exist? To scratch an itch. As one opens more and more tabs in Firefox, one finds that a smaller and smaller part of the tab's full title gets displayed. Wouldn't it be nice if you could put useful information in the beginning of the title, wher...
Put some content in the readme
Put some content in the readme
Markdown
cc0-1.0
dearingj/edit-tab-titles,dearingj/edit-tab-titles,TheOpenSourceNinja/edit-tab-titles,TheOpenSourceNinja/edit-tab-titles
markdown
## Code Before: A simple Firefox extension for editing tab titles. ## Instruction: Put some content in the readme ## Code After: A simple Firefox extension for editing tab titles. # Why does this project exist? To scratch an itch. As one opens more and more tabs in Firefox, one finds that a smaller and smaller part ...
8534407981e1e3fb0d17062a3566bcdf2f22d494
benchmarking/src/main/java/ru/ifmo/nds/jmh/JMHBenchmark.java
benchmarking/src/main/java/ru/ifmo/nds/jmh/JMHBenchmark.java
package ru.ifmo.nds.jmh; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.*; import ru.ifmo.nds.IdCollection; import ru.ifmo.nds.NonDominatedSorting; import ru.ifmo.nds.rundb.Dataset; @State(Scope.Benchmark) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECONDS) public class...
package ru.ifmo.nds.jmh; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.*; import ru.ifmo.nds.IdCollection; import ru.ifmo.nds.NonDominatedSorting; import ru.ifmo.nds.rundb.Dataset; @State(Scope.Benchmark) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECONDS) @Timeout(tim...
Change timeout to one hour.
Change timeout to one hour.
Java
mit
mbuzdalov/non-dominated-sorting
java
## Code Before: package ru.ifmo.nds.jmh; import java.util.concurrent.TimeUnit; import org.openjdk.jmh.annotations.*; import ru.ifmo.nds.IdCollection; import ru.ifmo.nds.NonDominatedSorting; import ru.ifmo.nds.rundb.Dataset; @State(Scope.Benchmark) @BenchmarkMode(Mode.AverageTime) @OutputTimeUnit(TimeUnit.MICROSECON...
007cd14cd3fd215cd91403ebe09cd5c0bb555f23
armstrong/apps/related_content/admin.py
armstrong/apps/related_content/admin.py
from django.contrib import admin from django.contrib.contenttypes.generic import GenericTabularInline from .models import RelatedContent from .models import RelatedType class RelatedContentInline(GenericTabularInline): ct_field = "source_type" ct_fk_field = "source_id" model = RelatedContent admin.sit...
from django import forms from django.contrib import admin from django.contrib.contenttypes.generic import GenericTabularInline from armstrong.hatband import widgets from .models import RelatedContent from .models import RelatedType class RelatedContentInlineForm(forms.ModelForm): class Meta: widgets = { ...
Add in visualsearch for GFK
Add in visualsearch for GFK
Python
apache-2.0
texastribune/armstrong.apps.related_content,armstrong/armstrong.apps.related_content,armstrong/armstrong.apps.related_content,texastribune/armstrong.apps.related_content
python
## Code Before: from django.contrib import admin from django.contrib.contenttypes.generic import GenericTabularInline from .models import RelatedContent from .models import RelatedType class RelatedContentInline(GenericTabularInline): ct_field = "source_type" ct_fk_field = "source_id" model = RelatedCon...
278516ac486958342a0f8e2baafc093e9b00d1f2
docs/index.rst
docs/index.rst
.. image:: dead-parrot.jpg :width: 250 px :align: right .. toctree:: :maxdepth: 1 :hidden: release-notes/index mod_wsgi ======== The mod_wsgi package implements a simple to use Apache module which can host any Python application which supports the Python WSGI_ interface. .. _WSGI: http://www.python....
.. image:: dead-parrot.jpg :width: 250 px :align: right .. toctree:: :maxdepth: 1 :hidden: release-notes/index mod_wsgi ======== The mod_wsgi package implements a simple to use Apache module which can host any Python application which supports the Python WSGI_ interface. .. _WSGI: http://www.python....
Revise intro about the state of mod_wsgi.
Revise intro about the state of mod_wsgi.
reStructuredText
apache-2.0
Zunonia/mod_wsgi,Zunonia/mod_wsgi,paboldin/mod_wsgi,GrahamDumpleton/mod_wsgi,MinFu/mod_wsgi,paboldin/mod_wsgi,MinFu/mod_wsgi,paboldin/mod_wsgi,SGCreations/mod_wsgi,frewsxcv/mod_wsgi,MinFu/mod_wsgi,frewsxcv/mod_wsgi,frewsxcv/mod_wsgi,GrahamDumpleton/mod_wsgi,Zunonia/mod_wsgi,MinFu/mod_wsgi,frewsxcv/mod_wsgi,SGCreations/...
restructuredtext
## Code Before: .. image:: dead-parrot.jpg :width: 250 px :align: right .. toctree:: :maxdepth: 1 :hidden: release-notes/index mod_wsgi ======== The mod_wsgi package implements a simple to use Apache module which can host any Python application which supports the Python WSGI_ interface. .. _WSGI: ht...
75f674edb15e3df5b59e038610ea8772dc58c624
ci/run_build.sh
ci/run_build.sh
set -o errexit set -o nounset : ${SOURCE_DIR:="."} : ${DIST_DIR:="${SOURCE_DIR}/dist"} : ${BUILD_DIR:="/tmp/build"} # Set path to prioritize our utils export REAL_PATH="${PATH}" export PATH="${SOURCE_DIR}/ci/util:${PATH}" echo "PATH IS: $PATH" # Build cmake -B"${BUILD_DIR}" -H"${SOURCE_DIR}" pushd "${BUILD_DIR}" ma...
set -o errexit set -o nounset : ${SOURCE_DIR:="."} : ${DIST_DIR:="${SOURCE_DIR}/dist"} : ${BUILD_DIR:="/tmp/build"} # Set path to prioritize our utils export REAL_PATH="${PATH}" export PATH="$(readlink -f "${SOURCE_DIR}")/ci/util:${PATH}" echo "PATH IS: $PATH" # Build cmake -B"${BUILD_DIR}" -H"${SOURCE_DIR}" pushd ...
Use absolute path to load stub rpmbuild
Use absolute path to load stub rpmbuild On Travis, Cmake does not run from the same directory as in our local build environment. We need to ensure that PATH contains absolute paths so that Cmake can find our stub rpmbuild.
Shell
mit
krallin/tini,tianon/tini,tianon/tini,krallin/tini,krallin/tini,tianon/tini
shell
## Code Before: set -o errexit set -o nounset : ${SOURCE_DIR:="."} : ${DIST_DIR:="${SOURCE_DIR}/dist"} : ${BUILD_DIR:="/tmp/build"} # Set path to prioritize our utils export REAL_PATH="${PATH}" export PATH="${SOURCE_DIR}/ci/util:${PATH}" echo "PATH IS: $PATH" # Build cmake -B"${BUILD_DIR}" -H"${SOURCE_DIR}" pushd "...
bf4131eef156471a7863d5e392e0c863c51feb2f
lib/omniauth/strategies/pam.rb
lib/omniauth/strategies/pam.rb
module OmniAuth module Strategies class PAM include OmniAuth::Strategy option :fields, [:username] option :uid_field, :username def request_phase OmniAuth::Form.build( :title => (options[:title] || "Authenticate"), :url => callback_path ) do |field| ...
module OmniAuth module Strategies class PAM include OmniAuth::Strategy option :fields, [:username] option :uid_field, :username def request_phase OmniAuth::Form.build( :title => (options[:title] || "Authenticate"), :url => callback_path ) do |field| ...
Add missing omniauth interface requirements
Add missing omniauth interface requirements
Ruby
mit
nickcharlton/omniauth-pam
ruby
## Code Before: module OmniAuth module Strategies class PAM include OmniAuth::Strategy option :fields, [:username] option :uid_field, :username def request_phase OmniAuth::Form.build( :title => (options[:title] || "Authenticate"), :url => callback_path ...
ec37ad48e65db527c005c279d0af94796cb954c6
fedora22-net/ansible/server-playbook.yml
fedora22-net/ansible/server-playbook.yml
--- - hosts: pulp1.example.org become: true become_user: root remote_user: vagrant vars: roles: - db - qpidd - node_parent - pulp_ca - pulp_server - pulp_consumer
--- - hosts: pulp1.example.org become: true become_user: root remote_user: vagrant vars: roles: - db - qpidd - pulp_ca - pulp_server - node_parent - pulp_consumer
Fix order: setup node after base pkgs.
Fix order: setup node after base pkgs. Node components need some base components in place when being installed.
YAML
mit
ulif/vagrant-pulp,ulif/vagrant-pulp
yaml
## Code Before: --- - hosts: pulp1.example.org become: true become_user: root remote_user: vagrant vars: roles: - db - qpidd - node_parent - pulp_ca - pulp_server - pulp_consumer ## Instruction: Fix order: setup node after base pkgs. Node components need some base components in place...
c14f1eda3655f9f1cf8d1803c9b43e13e13054d1
project.clj
project.clj
(defproject io.replikativ/incognito "0.2.2" :description "Safe transport of unknown record types in distributed systems." :url "https://github.com/replikativ/incognito" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/clojure "1.9...
(defproject io.replikativ/incognito "0.2.3 - Snapshot" :description "Safe transport of unknown record types in distributed systems." :url "https://github.com/replikativ/incognito" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.clojure/c...
Add fressian for clojurescript lib.
Add fressian for clojurescript lib.
Clojure
epl-1.0
replikativ/incognito,replikativ/incognito
clojure
## Code Before: (defproject io.replikativ/incognito "0.2.2" :description "Safe transport of unknown record types in distributed systems." :url "https://github.com/replikativ/incognito" :license {:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} :dependencies [[org.cloj...
cecc6de2d3df51acd077c5e3f8e3c88b8608d987
app/services/index.js
app/services/index.js
import 'whatwg-fetch'; const apiBaseURL = 'http://localhost:1337'; function parseJSONFromResponse(response) { return response.json(); } export const bookshelfApi = { getBooks() { return fetch(`${apiBaseURL}/books`) .then(parseJSONFromResponse) .catch(error => console.error( `Something wen...
import 'whatwg-fetch'; const apiBaseURL = 'http://localhost:1337'; function parseJSONFromResponse(response) { return response.json(); } function stringIsEmpty(str) { return str === '' || str === undefined || str === null; } export const bookshelfApi = { getBooks() { return fetch(`${apiBaseURL}/books`) ...
Add method createBook to bookshelfApi connection.
Add method createBook to bookshelfApi connection.
JavaScript
mit
w1nston/bookshelf,w1nston/bookshelf
javascript
## Code Before: import 'whatwg-fetch'; const apiBaseURL = 'http://localhost:1337'; function parseJSONFromResponse(response) { return response.json(); } export const bookshelfApi = { getBooks() { return fetch(`${apiBaseURL}/books`) .then(parseJSONFromResponse) .catch(error => console.error...
19ce553632139b477260a368bb8ff2e3d7f79d03
ubuntu13.04.sh
ubuntu13.04.sh
sudo apt-get install git git config --global user.email "danielnuffer@gmail.com" git config --global user.name "Dan Nuffer" git config --global push.default matching sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git-core/git-subtre...
sudo apt-get install git git config --global user.email "danielnuffer@gmail.com" git config --global user.name "Dan Nuffer" git config --global push.default matching sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git-core/git-subtre...
Add section for synaptics settings.
Add section for synaptics settings.
Shell
mit
dnuffer/setup
shell
## Code Before: sudo apt-get install git git config --global user.email "danielnuffer@gmail.com" git config --global user.name "Dan Nuffer" git config --global push.default matching sudo chmod +x /usr/share/doc/git/contrib/subtree/git-subtree.sh sudo ln -s /usr/share/doc/git/contrib/subtree/git-subtree.sh /usr/lib/git...
55cdfaecf827c258434d51387d92bc21e8106950
lib/chef/chef_fs/data_handler/client_data_handler.rb
lib/chef/chef_fs/data_handler/client_data_handler.rb
require 'chef/chef_fs/data_handler/data_handler_base' require 'chef/api_client' class Chef module ChefFS module DataHandler class ClientDataHandler < DataHandlerBase def normalize(client, entry) super(client, { 'name' => remove_dot_json(entry.name), 'admin' => fals...
require 'chef/chef_fs/data_handler/data_handler_base' require 'chef/api_client' class Chef module ChefFS module DataHandler class ClientDataHandler < DataHandlerBase def normalize(client, entry) result = super(client, { 'name' => remove_dot_json(entry.name), 'clien...
Fix client ability to upload to Hosted Chef
Fix client ability to upload to Hosted Chef
Ruby
apache-2.0
tas50/chef-1,cmluciano/chef,Ppjet6/chef,pburkholder/chef,sideci-sample/sideci-sample-chef,ducthanh/chef,h4ck3rm1k3/chef,sekrett/chef,mio-g/chef,strangelittlemonkey/chef,brettcave/chef,skmichaelson/chef,AndyBoucher/Chef-Testing,gsaslis/chef,paulmooring/chef,ekometti/chef,someara/chef,oclaussen/chef,kaznishi/chef,youngjl...
ruby
## Code Before: require 'chef/chef_fs/data_handler/data_handler_base' require 'chef/api_client' class Chef module ChefFS module DataHandler class ClientDataHandler < DataHandlerBase def normalize(client, entry) super(client, { 'name' => remove_dot_json(entry.name), ...
2082e474c51a0ecd67124665e4d64c5e3b32f1e4
vincerp/Threading/DynamicVariable.swift
vincerp/Threading/DynamicVariable.swift
// // Created by Viktor Belenyesi on 18/04/15. // Copyright (c) 2015 Viktor Belenyesi. All rights reserved. // // Inspired by // http://www.scala-lang.org/api/2.11.5/index.html#scala.util.DynamicVariable // and // https://searchcode.com/codesearch/view/18473763/ // and // http://scalageek.blogspot.hu/2013/02/when-to-us...
// // Created by Viktor Belenyesi on 18/04/15. // Copyright (c) 2015 Viktor Belenyesi. All rights reserved. // // Inspired by // http://www.scala-lang.org/api/2.11.5/index.html#scala.util.DynamicVariable // and // https://searchcode.com/codesearch/view/18473763/ // and // http://scalageek.blogspot.hu/2013/02/when-to-us...
Remove unnecessary assignment and add noescape to thunk
Remove unnecessary assignment and add noescape to thunk - init(): probably unnecessary assignment to self.value - withValue(): thunk could be made @noescape
Swift
mit
bvic23/VinceRP,bvic23/VinceRP,bvic23/VinceRP
swift
## Code Before: // // Created by Viktor Belenyesi on 18/04/15. // Copyright (c) 2015 Viktor Belenyesi. All rights reserved. // // Inspired by // http://www.scala-lang.org/api/2.11.5/index.html#scala.util.DynamicVariable // and // https://searchcode.com/codesearch/view/18473763/ // and // http://scalageek.blogspot.hu/20...
7f1a58f9faacb0bb0e95c2527a348195742eb866
tornado/test/autoreload_test.py
tornado/test/autoreload_test.py
from __future__ import absolute_import, division, print_function import os import subprocess from subprocess import Popen import sys from tempfile import mkdtemp from tornado.test.util import unittest MAIN = """\ import os import sys from tornado import autoreload # This import will fail if path is not set up corr...
from __future__ import absolute_import, division, print_function import os import subprocess from subprocess import Popen import sys from tempfile import mkdtemp from tornado.test.util import unittest MAIN = """\ import os import sys from tornado import autoreload # This import will fail if path is not set up corr...
Fix newline handling in autoreload test
Fix newline handling in autoreload test
Python
apache-2.0
SuminAndrew/tornado,mivade/tornado,legnaleurc/tornado,tornadoweb/tornado,ifduyue/tornado,bdarnell/tornado,NoyaInRain/tornado,bdarnell/tornado,ajdavis/tornado,NoyaInRain/tornado,bdarnell/tornado,eklitzke/tornado,wujuguang/tornado,allenl203/tornado,SuminAndrew/tornado,Lancher/tornado,Lancher/tornado,NoyaInRain/tornado,No...
python
## Code Before: from __future__ import absolute_import, division, print_function import os import subprocess from subprocess import Popen import sys from tempfile import mkdtemp from tornado.test.util import unittest MAIN = """\ import os import sys from tornado import autoreload # This import will fail if path is...
beae1eb6e3b1a5cd8dfec6324acf9e995aa45b65
app/models/category.rb
app/models/category.rb
class Category < ActiveRecord::Base has_many :articles class << self def recent(limit = 5) OpenStruct.new(title: 'recently', articles: Article.recent(limit)) end end end
class Category < ActiveRecord::Base has_many :articles class << self def recent(limit = 5) OpenStruct.new( title: 'recently', description: 'The most recently posted articles.', articles: Article.recent(limit) ) end end end
Add description field to recent articles
Add description field to recent articles
Ruby
mit
indrode/lament-rails,indrode/lament-rails,indrode/lament-rails
ruby
## Code Before: class Category < ActiveRecord::Base has_many :articles class << self def recent(limit = 5) OpenStruct.new(title: 'recently', articles: Article.recent(limit)) end end end ## Instruction: Add description field to recent articles ## Code After: class Category < ActiveRecord::Base h...
f2e5eb9352fcb27bbc6af89c8f67a58fea0a30cf
remoting/host/event_executor_mac.cc
remoting/host/event_executor_mac.cc
// Copyright (c) 2010 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 "remoting/host/event_executor_mac.h" namespace remoting { EventExecutorMac::EventExecutorMac(Capturer* capturer) : EventExecutor(capturer...
// Copyright (c) 2010 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 "remoting/host/event_executor_mac.h" #include "remoting/protocol/messages_decoder.h" namespace remoting { EventExecutorMac::EventExecutorM...
Fix build break on mac. TBR=ajwong
Fix build break on mac. TBR=ajwong git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@61726 0039d316-1c4b-4281-b951-d872f2087c98
C++
bsd-3-clause
ltilve/chromium,markYoungH/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,rogerwang/chromium,hujiajie/pa-chromium,M4sse/chromium.src,robclark/chromium,Just-D/chr...
c++
## Code Before: // Copyright (c) 2010 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 "remoting/host/event_executor_mac.h" namespace remoting { EventExecutorMac::EventExecutorMac(Capturer* capturer) : EventE...
21cb2badd2729b4c677fa41b564a4634af0fcd0d
src/main/java/com/gr8pefish/portablecrafting/items/craftingItems/ItemSubCrafting.java
src/main/java/com/gr8pefish/portablecrafting/items/craftingItems/ItemSubCrafting.java
package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.S...
package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.S...
Fix registry for no-longer-present subItem
Fix registry for no-longer-present subItem
Java
mit
gr8pefish/PortableCrafting
java
## Code Before: package com.gr8pefish.portablecrafting.items.craftingItems; import com.gr8pefish.portablecrafting.items.ItemBase; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge....
0935bda983144d44b2a9a4435f0e97d9c9f60ecf
client/views/modifyBookModal/modifyBookModal.js
client/views/modifyBookModal/modifyBookModal.js
Template['modifyBookModal'].helpers({ header: function() { if (Session.get('modifyBookModal.doc')) { return "Modify book"; } else { return "Add a new book"; } }, type: function() { return Session.get('modifyBookModal.doc') ? 'update' : 'insert'; }, doc: function() { return Sess...
Template['modifyBookModal'].helpers({ header: function() { if (Session.get('modifyBookModal.doc')) { return "Modify book"; } else { return "Add a new book"; } }, type: function() { return Session.get('modifyBookModal.doc') ? 'update' : 'insert'; }, doc: function() { return Sess...
Fix bug where modal doesn't disappear on delete
Fix bug where modal doesn't disappear on delete
JavaScript
mit
RickCSong/simple-library,RickCSong/simple-library
javascript
## Code Before: Template['modifyBookModal'].helpers({ header: function() { if (Session.get('modifyBookModal.doc')) { return "Modify book"; } else { return "Add a new book"; } }, type: function() { return Session.get('modifyBookModal.doc') ? 'update' : 'insert'; }, doc: function() {...
4311fbdaaa1ecf35f943cb89504f3a5dfba3e6a6
.travis.yml
.travis.yml
language: go go: - 1.4 os: - osx osx_image: xcode7.2 before_install: - brew update - brew install cmake - brew install swig # already installed in travis-ci: # - brew install automake # - brew install libtool install: - go get github.com/stretchr/testify script: - ./build.sh test - ./go/build.sh t...
language: go go: - 1.4 os: - osx osx_image: xcode7.2 before_install: - brew update - brew install cmake - brew install swig # already installed in travis-ci: # - brew install automake # - brew install libtool - rvm install 2.1.5 - rvm use 2.1.5 install: - go get github.com/stretchr/testify script:...
Use Ruby 2.1 in Travis CI
Use Ruby 2.1 in Travis CI
YAML
mit
sony/v8eval,sony/v8eval,sony/v8eval,sony/v8eval,sony/v8eval
yaml
## Code Before: language: go go: - 1.4 os: - osx osx_image: xcode7.2 before_install: - brew update - brew install cmake - brew install swig # already installed in travis-ci: # - brew install automake # - brew install libtool install: - go get github.com/stretchr/testify script: - ./build.sh test -...
d0654bff5f2bf29da4ae97dd2bbc810c21fcf81f
bin/run-journey-test-from-ci.sh
bin/run-journey-test-from-ci.sh
trap 'exit 1' ERR bin/build-jq.sh pr_files_json=`curl -s https://api.github.com/repos/exercism/java/pulls/${TRAVIS_PULL_REQUEST}/files` # if jq fails to get the required data, then that means TRAVIS_PULL_REQUEST was not set (not run in travis-ci), # or was false (not a pull request). In that case, we should fall bac...
trap 'exit 1' ERR bin/build-jq.sh pr_files_json=`curl -s https://api.github.com/repos/exercism/java/pulls/${TRAVIS_PULL_REQUEST}/files` echo "Pull request number: ${TRAVIS_PULL_REQUEST}" echo "Changes in pr json: ${pr_files_json}" # if jq fails to get the required data, then that means TRAVIS_PULL_REQUEST was not s...
Add echo's to print info for debugging travis-build
Add echo's to print info for debugging travis-build
Shell
mit
exercism/xjava,FridaTveit/xjava,exercism/xjava,FridaTveit/xjava,jmluy/xjava,jmluy/xjava
shell
## Code Before: trap 'exit 1' ERR bin/build-jq.sh pr_files_json=`curl -s https://api.github.com/repos/exercism/java/pulls/${TRAVIS_PULL_REQUEST}/files` # if jq fails to get the required data, then that means TRAVIS_PULL_REQUEST was not set (not run in travis-ci), # or was false (not a pull request). In that case, we...
487ab5bdca0c5867ca64f84b6a09d37f69750537
.travis.yml
.travis.yml
language: java jdk: - oraclejdk11 - openjdk11
language: java jdk: - oraclejdk11 - openjdk11 before_install: - chmod +x gradlew
Migrate to Java 11 - Third attempt
Migrate to Java 11 - Third attempt
YAML
apache-2.0
bertilmuth/requirementsascode
yaml
## Code Before: language: java jdk: - oraclejdk11 - openjdk11 ## Instruction: Migrate to Java 11 - Third attempt ## Code After: language: java jdk: - oraclejdk11 - openjdk11 before_install: - chmod +x gradlew
bc5f2e05ca40a852a17bcfe478aa497671cbe964
OpenSim/Tests/CMakeLists.txt
OpenSim/Tests/CMakeLists.txt
include_directories(${OpenSim_SOURCE_DIR} ${OpenSim_SOURCE_DIR}/Vendors) if(WIN32) set( THREAD_LIB pthreadVC2) else(WIN32) set( THREAD_LIB ) endif(WIN32) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX ${OPENSIM_INSTALL_DIR}) endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFA...
include_directories(${OpenSim_SOURCE_DIR} ${OpenSim_SOURCE_DIR}/Vendors) if(WIN32) set( THREAD_LIB pthreadVC2) else(WIN32) set( THREAD_LIB ) endif(WIN32) if(BUILD_TESTING) add_subdirectory(Components) add_subdirectory(ControllerExample) add_subdirectory(CoupledBushingForceExample) add_subdirectory(E...
Remove CMAKE_INSTALL_PREFIX from testing dir.
[cmake] Remove CMAKE_INSTALL_PREFIX from testing dir.
Text
apache-2.0
opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core,opensim-org/opensim-core
text
## Code Before: include_directories(${OpenSim_SOURCE_DIR} ${OpenSim_SOURCE_DIR}/Vendors) if(WIN32) set( THREAD_LIB pthreadVC2) else(WIN32) set( THREAD_LIB ) endif(WIN32) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX ${OPENSIM_INSTALL_DIR}) endif(CMAKE_INSTALL_PREFIX_INI...
68591c7e5169908106d188a5cb9c0bf2094e7c68
core/app/models/spree/promotion_rule.rb
core/app/models/spree/promotion_rule.rb
module Spree class PromotionRule < Spree::Base belongs_to :promotion, class_name: 'Spree::Promotion', inverse_of: :promotion_rules scope :of_type, ->(t) { where(type: t) } validate :promotion, presence: true validate :unique_per_promotion, on: :create def self.for(promotable) all.select {...
module Spree class PromotionRule < Spree::Base belongs_to :promotion, class_name: 'Spree::Promotion', inverse_of: :promotion_rules, required: true scope :of_type, ->(t) { where(type: t) } validate :unique_per_promotion, on: :create def self.for(promotable) all.select { |rule| rule.appli...
Drop validate presence: true on PromotionRule
Drop validate presence: true on PromotionRule Not sure this ever worked as expected see: https://github.com/rails/rails/commit/0950d409b041415f13d037aa4293ac31f97ed236 https://github.com/rails/rails/pull/16056 for a bit of history
Ruby
bsd-3-clause
priyank-gupta/spree,builtbybuffalo/spree,madetech/spree,imella/spree,karlitxo/spree,tancnle/spree,yiqing95/spree,softr8/spree,cutefrank/spree,shekibobo/spree,yushine/spree,keatonrow/spree,TimurTarasenko/spree,derekluo/spree,useiichi/spree,rajeevriitm/spree,pulkit21/spree,FadliKun/spree,AgilTec/spree,quentinuys/spree,pa...
ruby
## Code Before: module Spree class PromotionRule < Spree::Base belongs_to :promotion, class_name: 'Spree::Promotion', inverse_of: :promotion_rules scope :of_type, ->(t) { where(type: t) } validate :promotion, presence: true validate :unique_per_promotion, on: :create def self.for(promotable) ...
ab7c6bdd82259417d2c02d6c0e3981a9faab2548
app/uploaders/image_uploader.rb
app/uploaders/image_uploader.rb
class ImageUploader < ApplicationUploader def path "/#{model.class.table_name}/#{model.token}" end # Example with a 600x400 picture: thumb_size('x200') -> '300x200' def thumb_size(geometry) w, _, h = geometry.partition("x") return unless h.present? || w.present? if h.present? h = h.to_i...
class ImageUploader < ApplicationUploader def path "/#{model.class.table_name}/#{model.token}" end # Example with a 600x400 picture: thumb_size('x200') -> '300x200' def thumb_size(geometry) w, _, h = geometry.partition("x") return unless h.present? || w.present? if h.present? h = h.to_i...
Read image dimensions with FastImage instead of MiniMagick
Read image dimensions with FastImage instead of MiniMagick
Ruby
mit
vinc/pi.ctu.re,vinc/pi.ctu.re,vinc/pi.ctu.re
ruby
## Code Before: class ImageUploader < ApplicationUploader def path "/#{model.class.table_name}/#{model.token}" end # Example with a 600x400 picture: thumb_size('x200') -> '300x200' def thumb_size(geometry) w, _, h = geometry.partition("x") return unless h.present? || w.present? if h.present? ...
c4263e7652b47a281b177582b0b1d7a4bcee5463
examples/index.html
examples/index.html
<!doctype html> <html> <head> <title>Dropbox JavaScript SDK Examples</title> <link rel="stylesheet" href="/styles.css"> </head> <body> <h1>Dropbox JavaScript SDK Examples</h1> <ul> <li><a href="basic">Basic example</a></li> <li><a href="auth">Authentication example</a></li> <li><a href="team">Team e...
<!doctype html> <html> <head> <title>Dropbox JavaScript SDK Examples</title> <link rel="stylesheet" href="/styles.css"> </head> <body> <h1>Dropbox JavaScript SDK Examples</h1> <ul> <li><a href="basic">Basic example</a></li> <li><a href="auth">Authentication example</a></li> <li><a href="team">Team e...
Add link to download file example
Add link to download file example
HTML
mit
smarx/dropbox-sdk-js,smarx/dropbox-sdk-js,smarx/dropbox-sdk-js
html
## Code Before: <!doctype html> <html> <head> <title>Dropbox JavaScript SDK Examples</title> <link rel="stylesheet" href="/styles.css"> </head> <body> <h1>Dropbox JavaScript SDK Examples</h1> <ul> <li><a href="basic">Basic example</a></li> <li><a href="auth">Authentication example</a></li> <li><a hr...
f70d5513858723b2882d00a32370e607bbac7918
src/js/pages/Documentation.js
src/js/pages/Documentation.js
import React from 'react'; import PageTitle from '../components/layout/PageTitle'; const Documentation = () => { return ( <div id='page-content-wrapper'> <div class='container-fluid'> <div class='row'> <div class='documentation col-lg-12'> <PageTitle pageTitle={'...
import React from 'react'; import PageTitle from '../components/layout/PageTitle'; const Documentation = () => { return ( <div id='page-content-wrapper'> <div class='container-fluid'> <div class='row'> <div class='documentation col-lg-12'> <PageTitle pageTitle={'...
Add stub blocks to Docs page
Add stub blocks to Docs page
JavaScript
mit
txwkx/RDFJS4U,txwkx/RDFJS4U
javascript
## Code Before: import React from 'react'; import PageTitle from '../components/layout/PageTitle'; const Documentation = () => { return ( <div id='page-content-wrapper'> <div class='container-fluid'> <div class='row'> <div class='documentation col-lg-12'> <PageTi...
064adb6c5f1b9f3ed6cd58c3d2832d840def88a0
javascripts/jsx/ResultModal.js
javascripts/jsx/ResultModal.js
/** * @jsx React.DOM */ var React = require('react'); exports.ResultModal = React.createClass({ /** * Invoked immediately after updating occurs. This method is not called for the initial render. */ componentDidUpdate: function (prevProps, prevState) { // Show only if truthy. if (this.props.dieString) { ...
/** */ var React = require('react'); var ReactDOM = require('react-dom'); exports.ResultModal = React.createClass({ /** * Invoked immediately after updating occurs. This method is not called for the initial render. */ componentDidUpdate: function (prevProps, prevState) { // Show only if truthy. if (this....
Update for React changes in API.
Update for React changes in API.
JavaScript
mit
ScottMaclure/dicey,ScottMaclure/dicey,ScottMaclure/dicey
javascript
## Code Before: /** * @jsx React.DOM */ var React = require('react'); exports.ResultModal = React.createClass({ /** * Invoked immediately after updating occurs. This method is not called for the initial render. */ componentDidUpdate: function (prevProps, prevState) { // Show only if truthy. if (this.pro...
5839fbf35836972272d7b1aec8a63ef1b9672b0f
.gitlab-ci.yml
.gitlab-ci.yml
image: cprov/stoq:candidate variables: GIT_SUBMODULE_STRATEGY: recursive stages: - test - build before_script: # Install tools to create debian packages - apt update - apt --yes install devscripts debhelper python3-all test: stage: test script: - make check generate_deb: stage: build script...
image: cprov/stoq:candidate variables: GIT_SUBMODULE_STRATEGY: recursive stages: - test - build before_script: # Install tools to create debian packages - apt update - apt --yes install devscripts debhelper python3-all test: stage: test script: - make check .create_deb: stage: build script:...
Enable manual trigger to build stage
Enable manual trigger to build stage Allow deb generation to be triggered manually when needed. Related to: https://gitlab.com/stoqtech/squads/kazoo/tasks/issues/17
YAML
lgpl-2.1
stoq/stoqdrivers,stoq/stoqdrivers
yaml
## Code Before: image: cprov/stoq:candidate variables: GIT_SUBMODULE_STRATEGY: recursive stages: - test - build before_script: # Install tools to create debian packages - apt update - apt --yes install devscripts debhelper python3-all test: stage: test script: - make check generate_deb: stage...
8eca778314b074a4a10ef7008584fa68d1e94d28
wagtail/admin/templates/wagtailadmin/pages/_unsaved_changes_warning.html
wagtail/admin/templates/wagtailadmin/pages/_unsaved_changes_warning.html
{% load wagtailadmin_tags i18n %} <li class="footer__container footer__container--hidden footer__save-warning" data-unsaved-warning> <div hidden data-unsaved-type="any" class="footer__emphasise-span-tags"> <div> <b hidden data-unsaved-type="edits">{% blocktrans %}You have <span>unsaved edits</sp...
{% load wagtailadmin_tags i18n %} <li class="footer__container footer__container--hidden" data-unsaved-warning> <div hidden data-unsaved-type="any" class="footer__save-warning footer__emphasise-span-tags"> <div> <b hidden data-unsaved-type="edits">{% blocktrans %}You have <span>unsaved edits</sp...
Swap footer__save-warning class to child to correct spacing
Swap footer__save-warning class to child to correct spacing
HTML
bsd-3-clause
mixxorz/wagtail,wagtail/wagtail,gasman/wagtail,zerolab/wagtail,jnns/wagtail,torchbox/wagtail,wagtail/wagtail,gasman/wagtail,wagtail/wagtail,jnns/wagtail,thenewguy/wagtail,wagtail/wagtail,mixxorz/wagtail,jnns/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,torchbox/wagtail,wagtail/wagtail,mixxorz/wagtail,zerolab/wagtail,torch...
html
## Code Before: {% load wagtailadmin_tags i18n %} <li class="footer__container footer__container--hidden footer__save-warning" data-unsaved-warning> <div hidden data-unsaved-type="any" class="footer__emphasise-span-tags"> <div> <b hidden data-unsaved-type="edits">{% blocktrans %}You have <span>u...
9807070e22c9dce4c871dc8ab5d03a7f0fd71dfd
physical/azure_test.go
physical/azure_test.go
package physical import ( "fmt" "os" "testing" "time" "github.com/hashicorp/vault/helper/logformat" log "github.com/mgutz/logxi/v1" "github.com/Azure/azure-storage-go" ) func TestAzureBackend(t *testing.T) { if os.Getenv("AZURE_ACCOUNT_NAME") == "" || os.Getenv("AZURE_ACCOUNT_KEY") == "" { t.SkipNow() ...
package physical import ( "fmt" "os" "testing" "time" "github.com/hashicorp/vault/helper/logformat" log "github.com/mgutz/logxi/v1" "github.com/Azure/azure-storage-go" ) func TestAzureBackend(t *testing.T) { if os.Getenv("AZURE_ACCOUNT_NAME") == "" || os.Getenv("AZURE_ACCOUNT_KEY") == "" { t.SkipNow() ...
Fix azure test round 2
Fix azure test round 2
Go
mpl-2.0
lemondrank/vault,quixoten/vault,hashicorp/vault,MonsantoCo/vault,wjam/vault,michaelansel/vault,hartsock/vault,joelthompson/vault,rnaveiras/vault,mgk/vault,tallpauley/vault,deverton/hashicorp-vault,Caiyeon/vault,hashicorp/vault,hartsock/vault,naunga/vault,quixoten/vault,lirao/vault,kingland/vault,ryon/vault,Aloomaio/vau...
go
## Code Before: package physical import ( "fmt" "os" "testing" "time" "github.com/hashicorp/vault/helper/logformat" log "github.com/mgutz/logxi/v1" "github.com/Azure/azure-storage-go" ) func TestAzureBackend(t *testing.T) { if os.Getenv("AZURE_ACCOUNT_NAME") == "" || os.Getenv("AZURE_ACCOUNT_KEY") == "" {...
6dcb4a443c4e75c28b02b869f50b1f21db7e0def
project/project_containers.go
project/project_containers.go
package project import ( "fmt" "golang.org/x/net/context" "github.com/docker/libcompose/project/events" ) // Containers lists the containers for the specified services. Can be filter using // the Filter struct. func (p *Project) Containers(ctx context.Context, filter Filter, services ...string) ([]string, error)...
package project import ( "fmt" "sync" "golang.org/x/net/context" "github.com/docker/libcompose/project/events" ) // Containers lists the containers for the specified services. Can be filter using // the Filter struct. func (p *Project) Containers(ctx context.Context, filter Filter, services ...string) ([]string...
Fix race condition on containers retrieval
Fix race condition on containers retrieval Signed-off-by: Carlos Pérez-Aradros Herce <a9fe7a739a79c3eddb29e5b128a9f0360449da12@gmail.com>
Go
apache-2.0
dweomer/docker-libcompose,Azure22/libcompose,docker/libcompose,vdemeester/libcompose,dweomer/docker-libcompose,docker/libcompose,Azure22/libcompose,vdemeester/libcompose
go
## Code Before: package project import ( "fmt" "golang.org/x/net/context" "github.com/docker/libcompose/project/events" ) // Containers lists the containers for the specified services. Can be filter using // the Filter struct. func (p *Project) Containers(ctx context.Context, filter Filter, services ...string) (...
bcee21ec58c98b2af3a056dc7e3f24b17a89e0e8
client/src/components/shared/Listing.js
client/src/components/shared/Listing.js
import React from 'react'; import { Card, Image, Icon } from 'semantic-ui-react'; import ListingDeleteModal from './ListingDeleteModal'; const getIconString = str => ( str === 'home improvement' ? 'home' : 'laptop' ); const Listing = ({ userId, listingId, title, createdAt, body, type, handleDelete, pathname, cutBod...
import React from 'react'; import { Link } from 'react-router'; import { Card, Image, Icon } from 'semantic-ui-react'; import ListingDeleteModal from './ListingDeleteModal'; const getIconString = str => ( str === 'home improvement' ? 'home' : 'laptop' ); const Listing = ({ userId, listingId, title, createdAt, body,...
Add ability to click on listing cards
Add ability to click on listing cards
JavaScript
mit
wolnewitz/raptor-ads,Velocies/raptor-ads,bwuphan/raptor-ads,wolnewitz/raptor-ads,Darkrender/raptor-ads,bwuphan/raptor-ads,Darkrender/raptor-ads,Velocies/raptor-ads
javascript
## Code Before: import React from 'react'; import { Card, Image, Icon } from 'semantic-ui-react'; import ListingDeleteModal from './ListingDeleteModal'; const getIconString = str => ( str === 'home improvement' ? 'home' : 'laptop' ); const Listing = ({ userId, listingId, title, createdAt, body, type, handleDelete, ...
ecde21c394f8491ae692df4a890e53fb7828a9fa
app/views/layouts/application.haml
app/views/layouts/application.haml
!!! %html %head %title Pivotal Planning Poker = stylesheet_link_tag 'blueprint/screen' = stylesheet_link_tag 'blueprint/print', :media => 'print' = stylesheet_link_tag 'poker' /[if lt IE 8] = stylesheet_link_tag 'blueprint/ie' %body = javascript_include_tag 'jquery' = csr...
!!! %html %head %title Pivotal Planning Poker = stylesheet_link_tag 'blueprint/screen' = stylesheet_link_tag 'blueprint/print', :media => 'print' = stylesheet_link_tag 'poker' /[if lt IE 8] = stylesheet_link_tag 'blueprint/ie' %body = javascript_include_tag 'jquery' = csr...
Add link to git repo
Add link to git repo
Haml
mit
stackbuilders/pivotal_planning_poker,stackbuilders/pivotal_planning_poker
haml
## Code Before: !!! %html %head %title Pivotal Planning Poker = stylesheet_link_tag 'blueprint/screen' = stylesheet_link_tag 'blueprint/print', :media => 'print' = stylesheet_link_tag 'poker' /[if lt IE 8] = stylesheet_link_tag 'blueprint/ie' %body = javascript_include_tag 'j...
9ba2b7cf0f0af8de482920a68147bfb612ec9d34
packages/ag-grid-docs/src/_assets/homepage/_demo.scss
packages/ag-grid-docs/src/_assets/homepage/_demo.scss
.div-percent-bar { display: inline-block; height: 100%; position: absolute; } .div-percent-value { position: absolute; padding-left: 4px; font-weight: bold; font-size: 13px; } .div-outer-div { display: inline-block; height: 100%; width: 100%; } [class^='ag-theme'][class$='dark...
.div-percent-bar { display: inline-block; height: 100%; position: absolute; } .div-percent-value { position: absolute; padding-left: 4px; font-weight: bold; font-size: 13px; } .div-outer-div { display: inline-block; height: 100%; width: 100%; } [class^='ag-theme'][class$='dark...
Make chart dialog scrollbars dark in Balham Dark.
Make chart dialog scrollbars dark in Balham Dark.
SCSS
mit
ceolter/angular-grid,ceolter/ag-grid,ceolter/angular-grid,ceolter/ag-grid
scss
## Code Before: .div-percent-bar { display: inline-block; height: 100%; position: absolute; } .div-percent-value { position: absolute; padding-left: 4px; font-weight: bold; font-size: 13px; } .div-outer-div { display: inline-block; height: 100%; width: 100%; } [class^='ag-them...
b881247b182a45774ed494146904dcf2b1826d5e
sla_bot.py
sla_bot.py
import discord import asyncio client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): if message.content.startswith('!test'): await client.send_message(me...
import asyncio import discord from discord.ext import commands bot = commands.Bot(command_prefix='!', description='test') @bot.event async def on_ready(): print('Logged in as') print(bot.user.name) print(bot.user.id) print('------') @bot.command() async def test(): await bot.say('Hello W...
Switch to Bot object instead of Client
Switch to Bot object instead of Client Better reflects examples in discord.py project
Python
mit
EsqWiggles/SLA-bot,EsqWiggles/SLA-bot
python
## Code Before: import discord import asyncio client = discord.Client() @client.event async def on_ready(): print('Logged in as') print(client.user.name) print(client.user.id) print('------') @client.event async def on_message(message): if message.content.startswith('!test'): await client...
ba5c4eee7d0d9f866b273e1ea12fc0994eb130e6
assets/sass/modules/_code.scss
assets/sass/modules/_code.scss
code { font-family: $code-font-stack; overflow: auto; }
code { font-family: $code-font-stack; overflow: auto; } pre > code { font-size: 90%; } code { font-size: 80%; }
Update font-sizes for code snippets
Update font-sizes for code snippets
SCSS
mit
ayoisaiah/ayoisaiah.github.io,ayoisaiah/ayoisaiah.github.io
scss
## Code Before: code { font-family: $code-font-stack; overflow: auto; } ## Instruction: Update font-sizes for code snippets ## Code After: code { font-family: $code-font-stack; overflow: auto; } pre > code { font-size: 90%; } code { font-size: 80%; }
e346b32961db8812c3e89e5da70785a4fb119da1
gnu/usr.bin/cc/cc_drv/Makefile
gnu/usr.bin/cc/cc_drv/Makefile
.include "../Makefile.inc" .PATH: ../cc_tools ${GCCDIR} SRCS= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c # XXX change choose-temp.c to use stock mkstemp() SRCS+= mkstemp.c CFLAGS+= -DPREFIX=\"/usr\" CFLAGS+= -DIN_GCC LIB= cc_drv NOPROFILE= YES NOPIC= YES install: @true ${OUT_OBJ}.o ${OUT...
.include "../Makefile.inc" .PATH: ../cc_tools ${GCCDIR} SRCS= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c CFLAGS+= -DPREFIX=\"/usr\" CFLAGS+= -DIN_GCC LIB= cc_drv NOPROFILE= YES NOPIC= YES install: @true ${OUT_OBJ}.o ${OUT_OBJ}.so: ${OUT_FILE} .include <bsd.lib.mk>
Remove mkstemp.c from build. This is now in libc.
Remove mkstemp.c from build. This is now in libc. Tested by: make buildworld
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: .include "../Makefile.inc" .PATH: ../cc_tools ${GCCDIR} SRCS= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c # XXX change choose-temp.c to use stock mkstemp() SRCS+= mkstemp.c CFLAGS+= -DPREFIX=\"/usr\" CFLAGS+= -DIN_GCC LIB= cc_drv NOPROFILE= YES NOPIC= YES install: @true ${...
98e4ebda59a2a14435249e9551a0c291ffdb196c
core/app/controllers/users/setup_controller.rb
core/app/controllers/users/setup_controller.rb
class Users::SetupController < ApplicationController before_filter :setup_step_in_process layout "one_column_simple" def setup_step_in_process @step_in_signup_process = :account end def edit authorize! :set_up, current_user @user = current_user mp_track "Tour: Started account setup", curr...
class Users::SetupController < ApplicationController before_filter :setup_step_in_process layout "one_column_simple" def setup_step_in_process @step_in_signup_process = :account end def edit authorize! :set_up, current_user @user = current_user mp_track "Tour: Started account setup", curr...
Check if the user still has changed records (save failed) instead of whether it has errors per @markijbema
Check if the user still has changed records (save failed) instead of whether it has errors per @markijbema
Ruby
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core
ruby
## Code Before: class Users::SetupController < ApplicationController before_filter :setup_step_in_process layout "one_column_simple" def setup_step_in_process @step_in_signup_process = :account end def edit authorize! :set_up, current_user @user = current_user mp_track "Tour: Started acco...
d76613c87f2f8cdfc7420505d7e8819817b1070a
lib/torque/postgresql/attributes/builder.rb
lib/torque/postgresql/attributes/builder.rb
require_relative 'builder/enum' require_relative 'builder/period' module Torque module PostgreSQL module Attributes module Builder def self.include_on(klass, method_name, builder_klass, **extra, &block) klass.define_singleton_method(method_name) do |*args, **options| return u...
require_relative 'builder/enum' require_relative 'builder/period' module Torque module PostgreSQL module Attributes module Builder def self.include_on(klass, method_name, builder_klass, **extra, &block) klass.define_singleton_method(method_name) do |*args, **options| return u...
Use table_exists? directly instead of going through connection
Use table_exists? directly instead of going through connection
Ruby
mit
crashtech/torque-postgresql
ruby
## Code Before: require_relative 'builder/enum' require_relative 'builder/period' module Torque module PostgreSQL module Attributes module Builder def self.include_on(klass, method_name, builder_klass, **extra, &block) klass.define_singleton_method(method_name) do |*args, **options| ...