commit
stringlengths
40
40
old_file
stringlengths
4
184
new_file
stringlengths
4
184
old_contents
stringlengths
1
3.6k
new_contents
stringlengths
5
3.38k
subject
stringlengths
15
778
message
stringlengths
16
6.74k
lang
stringclasses
201 values
license
stringclasses
13 values
repos
stringlengths
6
116k
config
stringclasses
201 values
content
stringlengths
137
7.24k
diff
stringlengths
26
5.55k
diff_length
int64
1
123
relative_diff_length
float64
0.01
89
n_lines_added
int64
0
108
n_lines_deleted
int64
0
106
10d00b9e734714bc2a906842c42ebdf49a7c6293
.travis.yml
.travis.yml
language: node_js node_js: - "4.2" - "4.1" - "4.0" - "0.12" install: npm install before_script: - rvm implode --force - sudo rm ~/.rvmrc - sudo apt-get -y purge ruby - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 - \curl -sSL https://get.rvm.io | bash -s st...
language: node_js node_js: - "4.2" - "4.1" - "4.0" install: npm install before_script: - rvm implode --force - sudo rm ~/.rvmrc - sudo apt-get -y purge ruby - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 - \curl -sSL https://get.rvm.io | bash -s stable --ruby...
Remove NodeJS `v0.12` from build envs
Remove NodeJS `v0.12` from build envs NodeJS `v0.12`, despite being an LTS version, lags behind the newer releases, and its userbase is thinning in favour of newer Node versions. Since most of the dependencies in this project rely on Node `v4.x.` to work reliably, `v0.12` is now considereded obsolete.
YAML
apache-2.0
wfp/ui,wfp/ui,wfp/ui
yaml
## Code Before: language: node_js node_js: - "4.2" - "4.1" - "4.0" - "0.12" install: npm install before_script: - rvm implode --force - sudo rm ~/.rvmrc - sudo apt-get -y purge ruby - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 - \curl -sSL https://get.rvm...
language: node_js node_js: - "4.2" - "4.1" - "4.0" - - "0.12" install: npm install before_script: - rvm implode --force - sudo rm ~/.rvmrc - sudo apt-get -y purge ruby - gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 - \curl -sSL https...
1
0.034483
0
1
07dd5eff0b7e24be0a55a2a3df2e8db1f60e361b
zkfacade/src/main/java/com/yahoo/vespa/curator/package-info.java
zkfacade/src/main/java/com/yahoo/vespa/curator/package-info.java
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. @ExportPackage @PublicApi // TODO: Revoke this on Vespa 8. package com.yahoo.vespa.curator; import com.yahoo.api.annotations.PublicApi; import com.yahoo.osgi.annotation.ExportPackage;
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. @ExportPackage package com.yahoo.vespa.curator; import com.yahoo.osgi.annotation.ExportPackage;
Revoke package c.y.vespa.curator from PublicApi
Revoke package c.y.vespa.curator from PublicApi - Probably just used internally.
Java
apache-2.0
vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa
java
## Code Before: // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. @ExportPackage @PublicApi // TODO: Revoke this on Vespa 8. package com.yahoo.vespa.curator; import com.yahoo.api.annotations.PublicApi; import com.yahoo.osgi.annotation.ExportPackage; ## Instruction...
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. @ExportPackage - @PublicApi // TODO: Revoke this on Vespa 8. package com.yahoo.vespa.curator; - import com.yahoo.api.annotations.PublicApi; import com.yahoo.osgi.annotation.ExportPackage;
2
0.333333
0
2
0bf58503750773c3c39d46fe7405f1103c7c5e37
setup.py
setup.py
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in initf: ...
Exclude tests from getting installed
Exclude tests from getting installed
Python
mit
eventbrite/curator
python
## Code Before: import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: for line in i...
import os import re from setuptools import ( find_packages, setup, ) version_re = re.compile(r"__version__\s*=\s*['\"](.*?)['\"]") def get_version(): base = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(base, 'curator/__init__.py')) as initf: ...
2
0.046512
1
1
b38f6995f1d51144bd08c98ee75aee090a3e9ab3
src/react/src/routes/SprkDividerDocs/SprkDividerDocs.js
src/react/src/routes/SprkDividerDocs/SprkDividerDocs.js
import React from 'react'; import CentralColumnLayout from '../../containers/CentralColumnLayout/CentralColumnLayout'; import { SprkDivider } from '@sparkdesignsystem/spark-core-react'; const SprkDividerDocs = () => { return ( <CentralColumnLayout> <div className="sprk-u-mbm"> <h2 className="drizz...
import React from 'react'; import CentralColumnLayout from '../../containers/CentralColumnLayout/CentralColumnLayout'; import { SprkDivider } from '@sparkdesignsystem/spark-core-react'; import ExampleContainer from '../../containers/ExampleContainer/ExampleContainer'; const SprkDividerDocs = () => { return ( <C...
Update divs to ExampleContainer component
Update divs to ExampleContainer component
JavaScript
mit
sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system,sparkdesignsystem/spark-design-system
javascript
## Code Before: import React from 'react'; import CentralColumnLayout from '../../containers/CentralColumnLayout/CentralColumnLayout'; import { SprkDivider } from '@sparkdesignsystem/spark-core-react'; const SprkDividerDocs = () => { return ( <CentralColumnLayout> <div className="sprk-u-mbm"> <h2 ...
import React from 'react'; import CentralColumnLayout from '../../containers/CentralColumnLayout/CentralColumnLayout'; import { SprkDivider } from '@sparkdesignsystem/spark-core-react'; + import ExampleContainer from '../../containers/ExampleContainer/ExampleContainer'; const SprkDividerDocs = () => { ...
9
0.409091
5
4
2c3f63b6cc372fac32cc0a917100d381f82743be
ui/js/dashboard/nco.js
ui/js/dashboard/nco.js
'use strict'; module.exports = { template: require('./nco.html'), data: function () { return { region : 12907, campaign: true, // Trick with-indicator into loading without a campaign overview: [{ title : 'Influencer', indicators: [164,165,166,167], chart : 'chart-bar' }, { t...
'use strict'; module.exports = { template: require('./nco.html'), data: function () { return { region : null, campaign: null, overview: [{ title : 'Influencer', indicators: [164,165,166,167], chart : 'chart-bar' }, { title : 'Information Source', indicators: [164,165,...
Set campaign and region to null by default
Set campaign and region to null by default Campaign and region are getting passed down by the dashboard view from the dropdowns, so there is no need to provide defaults in the NCO dashboard component.
JavaScript
agpl-3.0
unicef/polio,unicef/polio,unicef/polio,unicef/polio,unicef/rhizome,SeedScientific/polio,unicef/rhizome,unicef/rhizome,SeedScientific/polio,SeedScientific/polio,SeedScientific/polio,SeedScientific/polio,unicef/rhizome
javascript
## Code Before: 'use strict'; module.exports = { template: require('./nco.html'), data: function () { return { region : 12907, campaign: true, // Trick with-indicator into loading without a campaign overview: [{ title : 'Influencer', indicators: [164,165,166,167], chart : 'chart-ba...
'use strict'; module.exports = { template: require('./nco.html'), data: function () { return { - region : 12907, ? ^^^^^ + region : null, ? ^^^^ - campaign: true, // Trick with-indicator into loading without a campaign + campaign: null, overview: [{...
4
0.095238
2
2
3fe65512aad9a257b391c9acdd7b09cf6df73053
tests/Event/AbstractEventTest.php
tests/Event/AbstractEventTest.php
<?php namespace WyriHaximus\Ratchet\Tests\Event; abstract class AbstractEventTest extends \PHPUnit_Framework_TestCase { public function testEventConst() { $fqcn = static::FQCN; $this->assertInternalType('string', $fqcn::EVENT); $this->assertTrue(strlen($fqcn::EVENT) > 0); } }
<?php namespace WyriHaximus\Ratchet\Tests\Event; abstract class AbstractEventTest extends \PHPUnit_Framework_TestCase { public function testEventConst() { $fqcn = static::FQCN; $this->assertInternalType('string', $fqcn::EVENT); $this->assertTrue(strlen($fqcn::EVENT) > 0); } pu...
Make sure all events extend Event
Make sure all events extend Event
PHP
mit
WyriHaximus/Ratchet,WyriHaximus/Ratchet,WyriHaximus/Ratchet
php
## Code Before: <?php namespace WyriHaximus\Ratchet\Tests\Event; abstract class AbstractEventTest extends \PHPUnit_Framework_TestCase { public function testEventConst() { $fqcn = static::FQCN; $this->assertInternalType('string', $fqcn::EVENT); $this->assertTrue(strlen($fqcn::EVENT) > 0...
<?php namespace WyriHaximus\Ratchet\Tests\Event; abstract class AbstractEventTest extends \PHPUnit_Framework_TestCase { public function testEventConst() { $fqcn = static::FQCN; $this->assertInternalType('string', $fqcn::EVENT); $this->assertTrue(strlen($fqcn::EVEN...
5
0.384615
5
0
5654ae73dd4b49402ce15ac4002ed2d18c1f2650
metadata/com.majeur.applicationsinfo.txt
metadata/com.majeur.applicationsinfo.txt
Categories:Office,System License:Apache2 Web Site:https://github.com/MajeurAndroid/Applications-Info/blob/HEAD/README.md Source Code:https://github.com/MajeurAndroid/Applications-Info Issue Tracker:https://github.com/MajeurAndroid/Applications-Info/issues Auto Name:Applications Info Summary:Show metadata of installed ...
Categories:Office,System License:Apache2 Web Site:https://github.com/MajeurAndroid/Applications-Info/blob/HEAD/README.md Source Code:https://github.com/MajeurAndroid/Applications-Info Issue Tracker:https://github.com/MajeurAndroid/Applications-Info/issues Auto Name:Applications Info Summary:Show metadata of installed ...
Update Applications Info to 1.3 (4)
Update Applications Info to 1.3 (4)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Office,System License:Apache2 Web Site:https://github.com/MajeurAndroid/Applications-Info/blob/HEAD/README.md Source Code:https://github.com/MajeurAndroid/Applications-Info Issue Tracker:https://github.com/MajeurAndroid/Applications-Info/issues Auto Name:Applications Info Summary:Show metada...
Categories:Office,System License:Apache2 Web Site:https://github.com/MajeurAndroid/Applications-Info/blob/HEAD/README.md Source Code:https://github.com/MajeurAndroid/Applications-Info Issue Tracker:https://github.com/MajeurAndroid/Applications-Info/issues Auto Name:Applications Info Summary:Show metada...
5
0.135135
5
0
135dd57106dd2f3be2e7bef0e721296613e7b5c8
layouts/blog-index.hbs
layouts/blog-index.hbs
<!DOCTYPE html> <html lang="{{site.locale}}"> {{> html-head }} <body> {{> header active="blog" }} <main> <div class="container"> <ul> {{#each collections.blog}} {{#if title}} <li> <a href="../{{ path }...
<!DOCTYPE html> <html lang="{{site.locale}}"> {{> html-head }} <body> {{> header active="blog" }} <main> <div class="container"> <ul> {{#each collections.blog}} {{#if title}} <li> <a href="/{{../../sit...
Use absolute paths for blog posts
Use absolute paths for blog posts
Handlebars
mit
targos/new.nodejs.org,a0viedo/new.nodejs.org,cgvarela/new.nodejs.org,windhamdavid/new.nodejs.org,tjconcept/new.nodejs.org,matthewloring/new.nodejs.org,Delapouite/new.nodejs.org,stojanovic/new.nodejs.org,vaniaul/new.nodejs.org,yosuke-furukawa/new.nodejs.org,evanlucas/new.nodejs.org,iancrowther/new.nodejs.org,nodejs/new....
handlebars
## Code Before: <!DOCTYPE html> <html lang="{{site.locale}}"> {{> html-head }} <body> {{> header active="blog" }} <main> <div class="container"> <ul> {{#each collections.blog}} {{#if title}} <li> <a hr...
<!DOCTYPE html> <html lang="{{site.locale}}"> {{> html-head }} <body> {{> header active="blog" }} <main> <div class="container"> <ul> {{#each collections.blog}} {{#if title}} <li> - ...
2
0.076923
1
1
5e2009a6dbd473e840fccb3ff61840c700bec195
src/Storage/Database/Schema/Timer.php
src/Storage/Database/Schema/Timer.php
<?php namespace Bolt\Storage\Database\Schema; use Bolt\Exception\StorageException; use Carbon\Carbon; use Doctrine\DBAL\Schema\Schema; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; /** * Schema validation check functionality. * * @author Gawain Lynch <gawain....
<?php namespace Bolt\Storage\Database\Schema; use Bolt\Exception\StorageException; use Carbon\Carbon; use Doctrine\DBAL\Schema\Schema; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; /** * Schema validation check functionality. * * @author Gawain Lynch <gawain....
Check to see if validation check is due
Check to see if validation check is due
PHP
mit
one988/cm,electrolinux/bolt,lenvanessen/bolt,cdowdy/bolt,bolt/bolt,lenvanessen/bolt,Raistlfiren/bolt,Raistlfiren/bolt,Intendit/bolt,rossriley/bolt,rarila/bolt,GawainLynch/bolt,electrolinux/bolt,cdowdy/bolt,nikgo/bolt,romulo1984/bolt,Intendit/bolt,CarsonF/bolt,rossriley/bolt,one988/cm,nikgo/bolt,CarsonF/bolt,bolt/bolt,r...
php
## Code Before: <?php namespace Bolt\Storage\Database\Schema; use Bolt\Exception\StorageException; use Carbon\Carbon; use Doctrine\DBAL\Schema\Schema; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; /** * Schema validation check functionality. * * @author Gawai...
<?php namespace Bolt\Storage\Database\Schema; use Bolt\Exception\StorageException; use Carbon\Carbon; use Doctrine\DBAL\Schema\Schema; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; /** * Schema validation check functionality. * * @...
21
0.65625
21
0
8d27e050596fcf78f9cc7eab7fca20aa053ad504
lib/beans.rb
lib/beans.rb
require 'beans/version' require 'beans/registry' Dir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/beans/use_cases/**/*.rb'].each { |f| require f } module Beans extend UseCases::Bean extend UseCases::Brand class << self attr_accessor :repo, :use_c...
require 'beans/version' require 'beans/registry' Dir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].sort.each { |f| require f } Dir[File.dirname(__FILE__) + '/beans/use_cases/**/*.rb'].sort.each { |f| require f } module Beans extend UseCases::Bean extend UseCases::Brand class << self attr_accessor :re...
Sort required files to 'fix' dependency issues
Sort required files to 'fix' dependency issues
Ruby
mit
dubdromic/beans
ruby
## Code Before: require 'beans/version' require 'beans/registry' Dir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/beans/use_cases/**/*.rb'].each { |f| require f } module Beans extend UseCases::Bean extend UseCases::Brand class << self attr_access...
require 'beans/version' require 'beans/registry' - Dir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].each { |f| require f } + Dir[File.dirname(__FILE__) + '/beans/entities/**/*.rb'].sort.each { |f| require f } ? +++++ - Dir[File.dirname(__FILE__) + '...
4
0.133333
2
2
52b6e1bf3759d0a58f478f9616ad822eb4cd3bd5
compiler/javatests/com/google/dart/compiler/parser/ParserTests.java
compiler/javatests/com/google/dart/compiler/parser/ParserTests.java
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.google.dart.compiler.parser; import junit.extensions.TestSetup; import junit.framework.Tes...
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.google.dart.compiler.parser; import junit.extensions.TestSetup; import junit.framework.Tes...
Disable dartc diet parser test
Disable dartc diet parser test Reviewed here: http://codereview.chromium.org/10696100/ Review URL: https://chromiumcodereview.appspot.com//10692081 git-svn-id: c93d8a2297af3b929165606efe145742a534bc71@9380 260f80e4-7a28-3924-810f-c04153c831b5
Java
bsd-3-clause
dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-la...
java
## Code Before: // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.google.dart.compiler.parser; import junit.extensions.TestSetup; import jun...
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package com.google.dart.compiler.parser; import junit.extensions.TestSetup; import jun...
4
0.117647
3
1
9220ba19802e617654483cd696d38d10e904506c
README.md
README.md
Generates lightcurve JSON files and Ouroboros manifest for Planet Hunters. Example usage: ``` docker run -it --rm -v /data/:/data/ -w /data zooniverse/planet-hunters-importer /usr/src/app/wgetkdwarfs.sh docker run -it --rm -v /data/:/data/ zooniverse/planet-hunters-importer ./generate.py /data/metadata.csv docker ru...
Generates lightcurve JSON files and Ouroboros manifest for Planet Hunters. Example usage: ``` docker run -it --rm -v /data/:/data/ -w /data zooniverse/planet-hunters-importer /usr/src/app/wgetkdwarfs.sh docker run -it --rm -v /data/:/data/ zooniverse/planet-hunters-importer ./generate.py /data/metadata.csv docker ru...
Add upload and ingestion instructions
Add upload and ingestion instructions
Markdown
apache-2.0
zooniverse/planet-hunters-importer,zooniverse/planet-hunters-importer,zooniverse/planet-hunters-importer
markdown
## Code Before: Generates lightcurve JSON files and Ouroboros manifest for Planet Hunters. Example usage: ``` docker run -it --rm -v /data/:/data/ -w /data zooniverse/planet-hunters-importer /usr/src/app/wgetkdwarfs.sh docker run -it --rm -v /data/:/data/ zooniverse/planet-hunters-importer ./generate.py /data/metada...
Generates lightcurve JSON files and Ouroboros manifest for Planet Hunters. Example usage: ``` docker run -it --rm -v /data/:/data/ -w /data zooniverse/planet-hunters-importer /usr/src/app/wgetkdwarfs.sh docker run -it --rm -v /data/:/data/ zooniverse/planet-hunters-importer ./generate.py /data/metada...
3
0.3
3
0
075ca002c2987372f3ff6fac43db54a02803da58
source/assets/stylesheets/styles/_footer_address.scss
source/assets/stylesheets/styles/_footer_address.scss
.footer-address__city { display: block; color: inherit; font-weight: 400; padding: 15px 0 10px; text-decoration: none; &:after { content: "›"; padding-left: 8px; } @include breakpoint($tablet-breakpoint) { padding-bottom: 15px; padding-top: 0; &:after { content: "" } }...
.footer-address__city { display: block; color: inherit; font-weight: 400; padding: 15px 0 10px; text-decoration: none; &:after { content: "›"; padding-left: 8px; } @include breakpoint($tablet-breakpoint) { padding-bottom: 15px; padding-top: 0; &:after { content: "" } }...
Remove inherited font-weight. Prefer number value for line-height
Remove inherited font-weight. Prefer number value for line-height
SCSS
mit
unboxed/ubxd_web_refresh,unboxed/unboxed.co,unboxed/unboxed.co,unboxed/ubxd_web_refresh,unboxed/ubxd_web_refresh,unboxed/unboxed.co
scss
## Code Before: .footer-address__city { display: block; color: inherit; font-weight: 400; padding: 15px 0 10px; text-decoration: none; &:after { content: "›"; padding-left: 8px; } @include breakpoint($tablet-breakpoint) { padding-bottom: 15px; padding-top: 0; &:after { conte...
.footer-address__city { display: block; color: inherit; font-weight: 400; padding: 15px 0 10px; text-decoration: none; &:after { content: "›"; padding-left: 8px; } @include breakpoint($tablet-breakpoint) { padding-bottom: 15px; padding-top: 0; &:a...
3
0.043478
1
2
eb60c3476d5ec0f1f58b04ec4352dbcdef6adb11
easy-coding-standard.yaml
easy-coding-standard.yaml
imports: - { resource: 'vendor/lmc/coding-standard/easy-coding-standard.yaml' } parameters: skip: PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff: - 'src-tests/bootstrap.php' - 'src-tests/ConfigHelper.php' - 'src-tests/ConfigProviderTest.php' ...
imports: - { resource: 'vendor/lmc/coding-standard/easy-coding-standard.yaml' } parameters: skip: PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff: - 'src-tests/bootstrap.php' - 'src-tests/ConfigHelper.php' - 'src-tests/ConfigProviderTest.php' ...
Declare phpunit target to avoid false positive codestyle error
Declare phpunit target to avoid false positive codestyle error
YAML
mit
lmc-eu/steward,OndraM/steward,OndraM/steward,lmc-eu/steward
yaml
## Code Before: imports: - { resource: 'vendor/lmc/coding-standard/easy-coding-standard.yaml' } parameters: skip: PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff: - 'src-tests/bootstrap.php' - 'src-tests/ConfigHelper.php' - 'src-tests/ConfigProvi...
imports: - { resource: 'vendor/lmc/coding-standard/easy-coding-standard.yaml' } parameters: skip: PHP_CodeSniffer\Standards\Generic\Sniffs\PHP\ForbiddenFunctionsSniff: - 'src-tests/bootstrap.php' - 'src-tests/ConfigHelper.php' - 'src-tests/ConfigPro...
2
0.08
2
0
163f01d5c313a2397372bcadd3d8e8e13a111e1e
_resources/meta.yml
_resources/meta.yml
kit: name: "Qubell Selenium Grid" link: https://github.com/qubell-bazaar/component-selenium-grid applications: - name: "Selenium Grid" manifest: "https://raw.github.com/qubell-bazaar/component-selenium-grid/master/selenium-grid-manifest.yml" provider: name: "Qubell" link: http://qubell.com ...
kit: name: "Qubell Selenium Grid" link: https://github.com/qubell-bazaar/component-selenium-grid applications: - name: "Selenium Grid" manifest: "https://raw.github.com/qubell-bazaar/component-selenium-grid/master/component-selenium-grid.yml" provider: name: "Qubell" link: http://qubell.com ...
Fix link to manifest
Fix link to manifest [ci skip]
YAML
apache-2.0
qubell-bazaar/component-selenium-grid,qubell-bazaar/component-selenium-grid,jollyrojer/component-selenium-grid,qubell-bazaar/component-selenium-grid,jollyrojer/component-selenium-grid,jollyrojer/component-selenium-grid
yaml
## Code Before: kit: name: "Qubell Selenium Grid" link: https://github.com/qubell-bazaar/component-selenium-grid applications: - name: "Selenium Grid" manifest: "https://raw.github.com/qubell-bazaar/component-selenium-grid/master/selenium-grid-manifest.yml" provider: name: "Qubell" link: http...
kit: name: "Qubell Selenium Grid" link: https://github.com/qubell-bazaar/component-selenium-grid applications: - name: "Selenium Grid" - manifest: "https://raw.github.com/qubell-bazaar/component-selenium-grid/master/selenium-grid-manifest.yml" ? ...
2
0.181818
1
1
a735cf90640899bc83a57f7b079b100f61f56e41
setup.py
setup.py
from distutils.core import setup from os.path import exists setup( name = "fsmonitor", version = "0.1", description = "Filesystem monitoring", long_description=(open('README.rst').read() if exists('README.rst') else ''), author = "Luke McCarthy", author_email = "luke@iogop...
from distutils.core import setup from os.path import exists from platform import system requires = [] if system == "Windows": requires = ["pypiwin32"] setup( name = "fsmonitor", version = "0.1", description = "Filesystem monitoring", long_description=(open('README.rst').read() if exists('README.rs...
Add requires pywin32 only for Windows
Add requires pywin32 only for Windows
Python
mit
shaurz/fsmonitor
python
## Code Before: from distutils.core import setup from os.path import exists setup( name = "fsmonitor", version = "0.1", description = "Filesystem monitoring", long_description=(open('README.rst').read() if exists('README.rst') else ''), author = "Luke McCarthy", author_ema...
from distutils.core import setup from os.path import exists + from platform import system + + requires = [] + if system == "Windows": + requires = ["pypiwin32"] setup( name = "fsmonitor", version = "0.1", description = "Filesystem monitoring", long_description=(open('README.rst').r...
9
0.5
6
3
7ad60dd24f24f2d36e988d94495a53e4f32a83e1
templates/footer.php
templates/footer.php
<nav> <ul id="menu-footer" class="menu"> <li class="menu-all-government-blogs"><a href="https://www.blog.gov.uk">All GOV.UK blogs</a></li> <li class="menu-all-government-blog-posts"><a href="https://www.blog.gov.uk/all-posts/">All GOV.UK blog posts</a></li> <li class="menu-gov-uk"><a href="https://www.gov...
<nav> <ul id="menu-footer" class="menu"> <li class="menu-all-government-blogs"><a href="https://www.blog.gov.uk">All GOV.UK blogs</a></li> <li class="menu-all-government-blog-posts"><a href="https://www.blog.gov.uk/all-posts/">All GOV.UK blog posts</a></li> <li class="menu-gov-uk"><a href="https://www.gov...
Add link to a11y statement
Add link to a11y statement This is a legal requirement for the client. Resolves: https://dxw.zendesk.com/agent/tickets/10049 Resolves: https://trello.com/c/SJFUZtxT
PHP
mit
dxw/govuk-blogs,dxw/govuk-blogs,dxw/govuk-blogs
php
## Code Before: <nav> <ul id="menu-footer" class="menu"> <li class="menu-all-government-blogs"><a href="https://www.blog.gov.uk">All GOV.UK blogs</a></li> <li class="menu-all-government-blog-posts"><a href="https://www.blog.gov.uk/all-posts/">All GOV.UK blog posts</a></li> <li class="menu-gov-uk"><a href=...
<nav> <ul id="menu-footer" class="menu"> <li class="menu-all-government-blogs"><a href="https://www.blog.gov.uk">All GOV.UK blogs</a></li> <li class="menu-all-government-blog-posts"><a href="https://www.blog.gov.uk/all-posts/">All GOV.UK blog posts</a></li> <li class="menu-gov-uk"><a href="https...
1
0.1
1
0
383f81ca1ab515ae4a490eec27ad43b4ce18a609
src/SimplePanel.scss
src/SimplePanel.scss
.slate-simplepanel { border-radius: 0 0 .25em .25em; box-shadow: 0 .125em .25em rgba(black, (1/6)); overflow: hidden; &.is-loading { min-height: 150px; } .empty-text { padding: 1.5em; text-align: center; } } .slate-simplepanel-header { background-color: #999; ...
.slate-simplepanel { border-radius: 0 0 .25em .25em; box-shadow: 0 .125em .25em rgba(black, (1/6)); overflow: hidden; &.is-loading { min-height: 150px; } .empty-text { padding: 1.5em; text-align: center; } } .slate-simplepanel-header { background-color: #999; ...
Make simplepanel titles a little nicer
Make simplepanel titles a little nicer
SCSS
mit
SlateFoundation/slate,SlateFoundation/slate,SlateFoundation/slate,SlateFoundation/slate,SlateFoundation/slate
scss
## Code Before: .slate-simplepanel { border-radius: 0 0 .25em .25em; box-shadow: 0 .125em .25em rgba(black, (1/6)); overflow: hidden; &.is-loading { min-height: 150px; } .empty-text { padding: 1.5em; text-align: center; } } .slate-simplepanel-header { backgroun...
.slate-simplepanel { border-radius: 0 0 .25em .25em; box-shadow: 0 .125em .25em rgba(black, (1/6)); overflow: hidden; &.is-loading { min-height: 150px; } .empty-text { padding: 1.5em; text-align: center; } } .slate-simplepanel-header...
7
0.155556
5
2
290075a3ab040d4b15155f5d2d29c2ecccdd07dc
packages/@sanity/form-builder/src/sanity/inputResolver/resolveReference.js
packages/@sanity/form-builder/src/sanity/inputResolver/resolveReference.js
import {ReferenceInput} from '../../index' import {materializeReferences, referenceSearch, fetch} from '../data/fetch' import {once} from 'lodash' import {materializeForPreview, resolveRefType} from 'part:@sanity/base/preview' const ReferenceBrowser = ReferenceInput.createBrowser({ fetch, materializeReferences }...
import {ReferenceInput} from '../../index' import {materializeReferences, referenceSearch, fetch} from '../data/fetch' import {once} from 'lodash' import {observeForPreview, resolveRefType} from 'part:@sanity/base/preview' const ReferenceBrowser = ReferenceInput.createBrowser({ fetch, materializeReferences }) e...
Fix broken references wrt previews
[form-builder] Fix broken references wrt previews
JavaScript
mit
sanity-io/sanity,sanity-io/sanity,sanity-io/sanity,sanity-io/sanity
javascript
## Code Before: import {ReferenceInput} from '../../index' import {materializeReferences, referenceSearch, fetch} from '../data/fetch' import {once} from 'lodash' import {materializeForPreview, resolveRefType} from 'part:@sanity/base/preview' const ReferenceBrowser = ReferenceInput.createBrowser({ fetch, materia...
import {ReferenceInput} from '../../index' import {materializeReferences, referenceSearch, fetch} from '../data/fetch' import {once} from 'lodash' - import {materializeForPreview, resolveRefType} from 'part:@sanity/base/preview' ? ^^^ ^^^^^ + import {observeForPreview, resolveRefType} from 'part:@san...
15
0.288462
13
2
bdf8cd4b02531eac63e30564d0e1400903ecff9d
tests/glob.js
tests/glob.js
'use strict'; var expect = require('chai').expect, fs = require('fs'), uncss = require('../lib/uncss'); describe('Using globbing patterns', function () { it('should find both index pages in the directory and return the used CSS for both of them', function (done) { this.timeout(25000); ...
'use strict'; var expect = require('chai').expect, uncss = require('../lib/uncss'); describe('Using globbing patterns', function () { it('should find both index pages in the directory and return the used CSS for both of them', function (done) { this.timeout(25000); uncss(['tests/glob/**/*.h...
Remove fs from test dependencies.
Remove fs from test dependencies.
JavaScript
mit
Renji/uncss,rafaelducati/uncss,webdev1001/uncss,cantyjeffrey/uncss,pingjiang/uncss,webdev1001/uncss,charaplessa/uncss,sdgdsffdsfff/uncss,TheNotary/uncss,joecritch/uncss,rafaelducati/uncss,joecritch/uncss,SteveGriffith/uncss,TheNotary/uncss,cantyjeffrey/uncss,Renji/uncss,sdgdsffdsfff/uncss,giakki/uncss,SteveGriffith/unc...
javascript
## Code Before: 'use strict'; var expect = require('chai').expect, fs = require('fs'), uncss = require('../lib/uncss'); describe('Using globbing patterns', function () { it('should find both index pages in the directory and return the used CSS for both of them', function (done) { this.timeou...
'use strict'; var expect = require('chai').expect, - fs = require('fs'), uncss = require('../lib/uncss'); describe('Using globbing patterns', function () { it('should find both index pages in the directory and return the used CSS for both of them', function (done) { this.ti...
1
0.041667
0
1
94baa9eadd05038a343bfd99f01493123f5a1526
lib/history.zsh
lib/history.zsh
if [ -z "$HISTFILE" ]; then HISTFILE=$HOME/.zsh_history fi HISTSIZE=10000 SAVEHIST=10000 ## History wrapper function omz_history { # Delete the history file if `-c' argument provided. # This won't affect the `history' command output until the next login. if [[ "${@[(i)-c]}" -le $# ]]; then echo -n >| "$...
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" HISTSIZE=10000 SAVEHIST=10000 ## History wrapper function omz_history { # Delete the history file if `-c' argument provided. # This won't affect the `history' command output until the next login. if [[ "${@[(i)-c]}" -le $# ]]; then echo -n >| "$HISTFILE" ...
Simplify `if' into oneliner, allow spaces in HISTFILE
Simplify `if' into oneliner, allow spaces in HISTFILE
Shell
mit
adrianchen19888/oh-my-zsh,jdob/oh-my-zsh,apjanke/oh-my-zsh,chinaran/oh-my-zsh,thearthur/.oh-my-zsh,alexduros/oh-my-zsh,jplandrain/oh-my-zsh,kaethorn/oh-my-zsh,stansage/oh-my-zsh,macmantrl/oh-my-zsh,data219/oh-my-zsh,tonydeng/oh-my-zsh,macmantrl/oh-my-zsh,mroth23/oh-my-zsh,johnamiahford/oh-my-zsh,friederbluemle/oh-my-zs...
shell
## Code Before: if [ -z "$HISTFILE" ]; then HISTFILE=$HOME/.zsh_history fi HISTSIZE=10000 SAVEHIST=10000 ## History wrapper function omz_history { # Delete the history file if `-c' argument provided. # This won't affect the `history' command output until the next login. if [[ "${@[(i)-c]}" -le $# ]]; then ...
- if [ -z "$HISTFILE" ]; then - HISTFILE=$HOME/.zsh_history + [ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" ? + ++ +++++++++++ ++++ + + - fi - HISTSIZE=10000 SAVEHIST=10000 ## History wrapper function omz_history { # Delete the history file if `-c' argument provided....
5
0.142857
1
4
1a78a1e8a8b323fe34ef21e9b4cc8184379809f3
src/JpegEnc/stdafx.h
src/JpegEnc/stdafx.h
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <cassert>
Remove unused headers and add cassert to PCH.
Remove unused headers and add cassert to PCH.
C
bsd-3-clause
dwarfcrank/yolo-dangerzone,dwarfcrank/yolo-dangerzone
c
## Code Before: // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> // TODO: reference additional headers your program requires here...
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" + #include <cassert> - #include <stdio.h> - #include <tchar.h> - - - - // TODO: reference additional...
7
0.466667
1
6
a9594a4bab9c4f1c49e0a2eda3374666249be38e
lib/effective_logging/email_logger.rb
lib/effective_logging/email_logger.rb
module EffectiveLogging class EmailLogger def self.delivering_email(message) return unless message.present? # collect a Hash of arguments used to invoke EffectiveLogger.success logged_fields = { from: message.from.join(','), to: message.to, subject: message.subject } # Add a log header t...
module EffectiveLogging class EmailLogger def self.delivering_email(message) return unless message.present? # collect a Hash of arguments used to invoke EffectiveLogger.success logged_fields = { from: message.from.join(','), to: message.to, subject: message.subject } # Add a log header t...
Set user and associated when logging emails
Set user and associated when logging emails
Ruby
mit
code-and-effect/effective_logging,code-and-effect/effective_logging,code-and-effect/effective_logging
ruby
## Code Before: module EffectiveLogging class EmailLogger def self.delivering_email(message) return unless message.present? # collect a Hash of arguments used to invoke EffectiveLogger.success logged_fields = { from: message.from.join(','), to: message.to, subject: message.subject } # Ad...
module EffectiveLogging class EmailLogger def self.delivering_email(message) return unless message.present? # collect a Hash of arguments used to invoke EffectiveLogger.success logged_fields = { from: message.from.join(','), to: message.to, subject: message.subject } # ...
5
0.15625
4
1
80e3398a7aea29d604c4ed6f53423e7a82629d50
espresso/src/main/java/com/elpassion/android/commons/espresso/matchers/TextInputEditTextHintMatcher.kt
espresso/src/main/java/com/elpassion/android/commons/espresso/matchers/TextInputEditTextHintMatcher.kt
package com.elpassion.android.commons.espresso.matchers import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org.hamcrest.Description class TextInputEditTextHintMatcher(pr...
package com.elpassion.android.commons.espresso.matchers import android.support.annotation.StringRes import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org.hamcrest.Descri...
Apply CR: apply consistent naming
Apply CR: apply consistent naming
Kotlin
apache-2.0
elpassion/android-commons,elpassion/android-commons,elpassion/android-commons
kotlin
## Code Before: package com.elpassion.android.commons.espresso.matchers import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org.hamcrest.Description class TextInputEditTe...
package com.elpassion.android.commons.espresso.matchers + import android.support.annotation.StringRes import android.support.design.widget.TextInputEditText import android.support.design.widget.TextInputLayout import android.support.test.espresso.matcher.BoundedMatcher import android.view.View import org...
7
0.318182
4
3
6ca15b8314e137f9839e47d31969a97293a48cd6
Twig/Extension/MarkdownTwigExtension.php
Twig/Extension/MarkdownTwigExtension.php
<?php namespace Knp\Bundle\MarkdownBundle\Twig\Extension; use Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper; class MarkdownTwigExtension extends \Twig_Extension { protected $helper; function __construct(MarkdownHelper $helper) { $this->helper = $helper; } public function getFilters() ...
<?php namespace Knp\Bundle\MarkdownBundle\Twig\Extension; use Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper; class MarkdownTwigExtension extends \Twig_Extension { protected $helper; public function __construct(MarkdownHelper $helper) { $this->helper = $helper; } public function getFil...
Switch the Twig integration to use non-deprecated APIs
Switch the Twig integration to use non-deprecated APIs
PHP
mit
gencer/KnpMarkdownBundle,KnpLabs/KnpMarkdownBundle
php
## Code Before: <?php namespace Knp\Bundle\MarkdownBundle\Twig\Extension; use Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper; class MarkdownTwigExtension extends \Twig_Extension { protected $helper; function __construct(MarkdownHelper $helper) { $this->helper = $helper; } public functi...
<?php namespace Knp\Bundle\MarkdownBundle\Twig\Extension; use Knp\Bundle\MarkdownBundle\Helper\MarkdownHelper; class MarkdownTwigExtension extends \Twig_Extension { protected $helper; - function __construct(MarkdownHelper $helper) + public function __construct(MarkdownHelper $helper)...
4
0.125
2
2
938c3207b0943ce53e58e6268c9c3e97fd000f89
src/main.rs
src/main.rs
use std::process::Command; use std::os::unix::process::CommandExt; fn main() { Command::new("java") .arg("-Xms512m") .arg("-Xmx1536m") .arg("-Xss2m") .args(&["-jar", "/Users/dnw/.sbt/launchers/0.13.13/sbt-launch.jar"]) .arg("shell") .exec(); }
use std::process::Command; use std::process::exit; use std::os::unix::process::CommandExt; fn main() { let err = Command::new("java") .arg("-Xms512m") .arg("-Xmx1536m") .arg("-Xss2m") .args(&["-jar", "/Users/dnw/.sbt/launchers/0.13.13/sbt-launch.jar"]) .arg("shell") ...
Handle failure to exec command
Handle failure to exec command
Rust
apache-2.0
dwijnand/sbtl,dwijnand/sbtl
rust
## Code Before: use std::process::Command; use std::os::unix::process::CommandExt; fn main() { Command::new("java") .arg("-Xms512m") .arg("-Xmx1536m") .arg("-Xss2m") .args(&["-jar", "/Users/dnw/.sbt/launchers/0.13.13/sbt-launch.jar"]) .arg("shell") .exec(); } ## Ins...
use std::process::Command; + use std::process::exit; use std::os::unix::process::CommandExt; fn main() { - Command::new("java") + let err = Command::new("java") ? ++++++++++ .arg("-Xms512m") .arg("-Xmx1536m") .arg("-Xss2m") .args(&["-jar", "/Users/dnw/.sbt/la...
8
0.666667
7
1
81ba488c3a2d3f9336b8e278c7b1159c1bc2c2ff
public/ts/ConnectState.ts
public/ts/ConnectState.ts
module Scuffle { export class ConnectState extends Phaser.State { game : Game create() { var group = this.add.group() group.alpha = 0 var text = this.add.text(this.world.centerX, this.world.centerY, this.game.socket === undefined ? 'Connecting' : 'Reconnecting', undefined, group) text.anchor....
module Scuffle { export class ConnectState extends Phaser.State { game : Game create() { var group = this.add.group() group.alpha = 0 var text = this.add.text(this.world.centerX, this.world.centerY, this.game.socket === undefined ? 'Connecting' : 'Reconnecting', undefined, group) text.anchor....
Remove listeners on reconnection, only fire disconnect event once
Remove listeners on reconnection, only fire disconnect event once
TypeScript
apache-2.0
shockkolate/scuffle,shockkolate/scuffle,shockkolate/scuffle
typescript
## Code Before: module Scuffle { export class ConnectState extends Phaser.State { game : Game create() { var group = this.add.group() group.alpha = 0 var text = this.add.text(this.world.centerX, this.world.centerY, this.game.socket === undefined ? 'Connecting' : 'Reconnecting', undefined, group)...
module Scuffle { export class ConnectState extends Phaser.State { game : Game create() { var group = this.add.group() group.alpha = 0 var text = this.add.text(this.world.centerX, this.world.centerY, this.game.socket === undefined ? 'Connecting' : 'Reconnecting', undefined, ...
4
0.133333
3
1
fcc8f763c1cd486da1a80176996a342245288d35
src/libstate/engine/openssl/eng_ossl.cpp
src/libstate/engine/openssl/eng_ossl.cpp
/** * Look for an OpenSSL-suported stream cipher (ARC4) */ StreamCipher* OpenSSL_Engine::find_stream_cipher(const std::string& algo_spec) const { SCAN_Name request(algo_spec); if(request.algo_name() == "ARC4") return new ARC4_OpenSSL(request.argument_as_u32bit(0, 0)); if(request.algo_name() == "RC4_...
/** OpenSSL Engine (C) 2008 Jack Lloyd */ #include <botan/eng_ossl.h> namespace Botan { /** * Look for an OpenSSL-suported stream cipher (ARC4) */ StreamCipher* OpenSSL_Engine::find_stream_cipher(const std::string& algo_spec) const { SCAN_Name request(algo_spec); if(request.algo_name() == "ARC4") ret...
Fix include, add namespace and copyright
Fix include, add namespace and copyright
C++
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randomb...
c++
## Code Before: /** * Look for an OpenSSL-suported stream cipher (ARC4) */ StreamCipher* OpenSSL_Engine::find_stream_cipher(const std::string& algo_spec) const { SCAN_Name request(algo_spec); if(request.algo_name() == "ARC4") return new ARC4_OpenSSL(request.argument_as_u32bit(0, 0)); if(request.algo...
+ /** + OpenSSL Engine + (C) 2008 Jack Lloyd + */ + + #include <botan/eng_ossl.h> + + namespace Botan { /** * Look for an OpenSSL-suported stream cipher (ARC4) */ StreamCipher* OpenSSL_Engine::find_stream_cipher(const std::string& algo_spec) const { SCAN_Name request(algo_spec); if(requ...
10
0.625
10
0
1404db367b331eae1dbb0f56804d1623745d0f52
.travis.yml
.travis.yml
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 - 3.7 services: - memcached - redis-server
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 # not supported by travis yet. # - 3.7 services: - memcached - redis-server
Remove (Unsupported) Python 3.7 From Travis
Remove (Unsupported) Python 3.7 From Travis
YAML
bsd-3-clause
datafolklabs/cement,datafolklabs/cement,datafolklabs/cement
yaml
## Code Before: language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 - 3.7 services: - memcached - redis-server ## Instruction: Remove (Unsupported) Python 3.7 From Travis ## Code After: language: python sudo: false script: ./scripts/travis.sh os: - linux python: -...
language: python sudo: false script: ./scripts/travis.sh os: - linux python: - 3.5 - 3.6 + # not supported by travis yet. - - 3.7 + # - 3.7 ? ++ services: - memcached - redis-server
3
0.230769
2
1
e74840fcd3b6204f3dd65f5151729a646aeefe3a
src/client/app/components/basket/basket.template.js
src/client/app/components/basket/basket.template.js
export class BasketTemplate { static update(render, state, events) { const headerClasses = "fw6 bb b--black-20 tl pb1 pr1 bg-white"; const trClasses = "pv1 pr1 bb b--black-20"; /* eslint-disable indent */ render` <h2>Basket</h2> <input id="assetsSearch" size...
import { Util } from "../../util.js"; export class BasketTemplate { static update(render, state, events) { const headerClasses = "fw6 bb b--black-20 tl pb1 pr1 bg-white"; const trClasses = "pv1 pr1 bb b--black-20"; /* eslint-disable indent */ render` <h2>Basket</h2> ...
Hide basket table if no search assets.
Hide basket table if no search assets.
JavaScript
mit
albertosantini/node-conpa,albertosantini/node-conpa
javascript
## Code Before: export class BasketTemplate { static update(render, state, events) { const headerClasses = "fw6 bb b--black-20 tl pb1 pr1 bg-white"; const trClasses = "pv1 pr1 bb b--black-20"; /* eslint-disable indent */ render` <h2>Basket</h2> <input id="as...
+ import { Util } from "../../util.js"; + export class BasketTemplate { static update(render, state, events) { const headerClasses = "fw6 bb b--black-20 tl pb1 pr1 bg-white"; const trClasses = "pv1 pr1 bb b--black-20"; /* eslint-disable indent */ render` ...
4
0.117647
3
1
16bd36fe6fdcbd267413eabe1997337165775f28
taOonja/game/admin.py
taOonja/game/admin.py
from django.contrib import admin # Register your models here.
from django.contrib import admin from game.models import * class LocationAdmin(admin.ModelAdmin): model = Location admin.site.register(Location, LocationAdmin) class DetailAdmin(admin.ModelAdmin): model = Detail admin.site.register(Detail, DetailAdmin)
Add models to Admin Panel
Add models to Admin Panel
Python
mit
Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja,Javid-Izadfar/TaOonja
python
## Code Before: from django.contrib import admin # Register your models here. ## Instruction: Add models to Admin Panel ## Code After: from django.contrib import admin from game.models import * class LocationAdmin(admin.ModelAdmin): model = Location admin.site.register(Location, LocationAdmin) class DetailAdm...
from django.contrib import admin + from game.models import * - # Register your models here. + class LocationAdmin(admin.ModelAdmin): + model = Location + + admin.site.register(Location, LocationAdmin) + + class DetailAdmin(admin.ModelAdmin): + + model = Detail + + admin.site.register(Detail, DetailAdmi...
12
4
11
1
a8eae9102b9c233142aa8d629d36a28cb129b65f
src/css/_objects.content.scss
src/css/_objects.content.scss
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows i...
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * This is allows i...
Add some media queries so things are presentable on mobile
Add some media queries so things are presentable on mobile
SCSS
mit
vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website
scss
## Code Before: /*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. * * ...
/*------------------------------------*\ #CONTENT \*------------------------------------*/ /* Wrappers for the page's content. * * `.content-wrapper` is the main class that will hold all the page's content, * then you use `.text-content` inside of it to put the text at the desired * width. *...
9
0.219512
9
0
6f9afe65bf5cc982de59ce4579755e37c8009447
README.md
README.md
Kevin Bacon's favourite reposotory ================================== How far is an actor from Kevin Bacon? ## Setup 1. Make sure leiningen is installed 2. `brew install datomic` 3. Copy .lein-env.example to .lein-env 4. Copy dev/transactor.example.properties to dev/transactor.properties 5. In another pane, run `dat...
Kevin Bacon's favourite reposotory ================================== How far is an actor from Kevin Bacon? ## Setup 1. Make sure leiningen is installed 2. `brew install datomic` 3. Copy .lein-env.example to .lein-env 4. Copy dev/transactor.example.properties to dev/transactor.properties 5. In another pane, run `dat...
Add instructions for sample data import
Add instructions for sample data import
Markdown
epl-1.0
jgdavey/kevin
markdown
## Code Before: Kevin Bacon's favourite reposotory ================================== How far is an actor from Kevin Bacon? ## Setup 1. Make sure leiningen is installed 2. `brew install datomic` 3. Copy .lein-env.example to .lein-env 4. Copy dev/transactor.example.properties to dev/transactor.properties 5. In anothe...
Kevin Bacon's favourite reposotory ================================== How far is an actor from Kevin Bacon? ## Setup 1. Make sure leiningen is installed 2. `brew install datomic` 3. Copy .lein-env.example to .lein-env 4. Copy dev/transactor.example.properties to dev/transactor.properties 5. I...
7
0.388889
7
0
894df59d7068a65d30feab78029b73119fa8ecc6
themes/sitesprocket/templates/Includes/ClientMessages.ss
themes/sitesprocket/templates/Includes/ClientMessages.ss
<div id="messages"> <% control Messages %> <div class="project_messages"> <div class="post"> <div class="<% if You %>you<% else %>admin<% end_if %>"> <div class="title"> <strong><% if You %><% _t('SSP.YOU','You') %><% else %>$Author.FirstName<% end_if %></s...
<div id="messages"> <% control Messages %> <div class="project_messages"> <div class="post"> <div class="<% if You %>you<% else %>admin<% end_if %>"> <div class="title"> <strong><% if You %><% _t('SSP.YOU','You') %><% else %>$Author.FirstName<% end_if %></s...
FIX - added laquo for downloads
FIX - added laquo for downloads
Scheme
bsd-3-clause
tbarho/SiteSprocket,tbarho/SiteSprocket,tbarho/SiteSprocket,tbarho/SiteSprocket
scheme
## Code Before: <div id="messages"> <% control Messages %> <div class="project_messages"> <div class="post"> <div class="<% if You %>you<% else %>admin<% end_if %>"> <div class="title"> <strong><% if You %><% _t('SSP.YOU','You') %><% else %>$Author.FirstNam...
<div id="messages"> <% control Messages %> <div class="project_messages"> <div class="post"> <div class="<% if You %>you<% else %>admin<% end_if %>"> <div class="title"> <strong><% if You %><% _t('SSP.YOU','You') %><% else %>$Author.Firs...
2
0.05
1
1
b4261a4be29f128d0b0a73a6fda7a685939e2e8f
topcat.rb
topcat.rb
require 'formula' class Topcat < Formula homepage 'http://www.star.bris.ac.uk/~mbt/topcat/' url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz' sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c' def install bin.install Dir['*'] end end
require 'formula' class Topcat < Formula homepage 'http://www.star.bris.ac.uk/~mbt/topcat/' url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz' sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c' def install bin.install 'topcat' (share+'java').install 'topcat-full.ja...
Install jar files in share.
Install jar files in share.
Ruby
bsd-2-clause
aeantipov/homebrew-science,ge11232002/homebrew-science,ahundt/homebrew-science,parcollet/homebrew-science,quantumsteve/homebrew-science,pmelsted/homebrew-science,heuermh/homebrew-science,dpo/homebrew-science,goxberry/homebrew-science,pditommaso/homebrew-science,philippbayer/homebrew-science,kozo2/homebrew-science,joshb...
ruby
## Code Before: require 'formula' class Topcat < Formula homepage 'http://www.star.bris.ac.uk/~mbt/topcat/' url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz' sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c' def install bin.install Dir['*'] end end ## Instruction:...
require 'formula' class Topcat < Formula homepage 'http://www.star.bris.ac.uk/~mbt/topcat/' url 'https://downloads.sourceforge.net/project/hongpublicfiles/topcat/topcat-4.0-1.tar.gz' sha1 '71ef9e3a6b749eb7baceb434e318a51da4ae669c' def install - bin.install Dir['*'] ? ---- ^...
10
0.909091
9
1
058021756d88d5b5f68070e2307e734fda86938d
utils/src/main/java/fr/unice/polytech/al/trafficlight/utils/enums/TrafficLightId.java
utils/src/main/java/fr/unice/polytech/al/trafficlight/utils/enums/TrafficLightId.java
package fr.unice.polytech.al.trafficlight.utils.enums; /** * Created by nathael on 27/10/16. */ public class TrafficLightId { private final String id; public TrafficLightId(String id) { this.id = id; } @Override public boolean equals(Object obj) { if(obj instanceof String) ...
package fr.unice.polytech.al.trafficlight.utils.enums; /** * Created by nathael on 27/10/16. */ public class TrafficLightId { private final String id; public TrafficLightId(String id) { this.id = id; } public String getId() { return id; } @Override public boolean equals...
Add a getter to the id
Add a getter to the id
Java
mit
Lydwen/CentralTrafficLightManagement-SmartCity,Lydwen/CentralTrafficLightManagement-SmartCity
java
## Code Before: package fr.unice.polytech.al.trafficlight.utils.enums; /** * Created by nathael on 27/10/16. */ public class TrafficLightId { private final String id; public TrafficLightId(String id) { this.id = id; } @Override public boolean equals(Object obj) { if(obj instance...
package fr.unice.polytech.al.trafficlight.utils.enums; /** * Created by nathael on 27/10/16. */ public class TrafficLightId { private final String id; public TrafficLightId(String id) { this.id = id; + } + + public String getId() { + return id; } @...
4
0.148148
4
0
e4dfe1199f5f741807244451866893d798b812cf
src/Oro/Bundle/ApiBundle/Resources/config/oro/routing.yml
src/Oro/Bundle/ApiBundle/Resources/config/oro/routing.yml
oro_rest_api: resource: Oro\Bundle\ApiBundle\Controller\RestApiController type: rest prefix: api/
oro_rest_api: resource: Oro\Bundle\ApiBundle\Controller\RestApiController type: rest prefix: api/ requirements: version: latest|v(\d+(\.\d+)*) defaults: version: latest
Create API Bundle. Fix options for REST API routes
BAP-9175: Create API Bundle. Fix options for REST API routes
YAML
mit
ramunasd/platform,Djamy/platform,orocrm/platform,Djamy/platform,trustify/oroplatform,geoffroycochard/platform,trustify/oroplatform,geoffroycochard/platform,trustify/oroplatform,ramunasd/platform,orocrm/platform,orocrm/platform,geoffroycochard/platform,ramunasd/platform,Djamy/platform
yaml
## Code Before: oro_rest_api: resource: Oro\Bundle\ApiBundle\Controller\RestApiController type: rest prefix: api/ ## Instruction: BAP-9175: Create API Bundle. Fix options for REST API routes ## Code After: oro_rest_api: resource: Oro\Bundle\ApiBundle\Controller\RestApiController type: rest pre...
oro_rest_api: resource: Oro\Bundle\ApiBundle\Controller\RestApiController type: rest prefix: api/ + requirements: + version: latest|v(\d+(\.\d+)*) + defaults: + version: latest
4
1
4
0
b752d8ae1a3cb49899b51413c181896834fadd50
build-commons.sh
build-commons.sh
oslist=(darwin windows linux freebsd) for os in "${oslist[@]}"; do [ "$os" = "windows" ] && suffix=".exe" || suffix="" dirname="dist/$os" filename="twhelp$suffix" zipname="../twhelp-x64$os.zip" ( GOARCH=amd64 GOOS="$os" go build -ldflags="-s -w" -o "$dirname/$filename" && cd "$dirna...
docker run --rm -it -v "$PWD":/_ -w /_ golang:1.7 bash -c ' go get -d ./... oslist=(darwin windows linux freebsd) for os in "${oslist[@]}"; do [ "$os" = "windows" ] && suffix=".exe" || suffix="" dirname="dist/$os" filename="twhelp$suffix" (GOARCH=amd64 GOOS="$os" go build ...
Update build script to use docker
Update build script to use docker
Shell
mit
mpyw/twhelp,mpyw/twhelp-go,mpyw/twhelp-go,mpyw/twhelp
shell
## Code Before: oslist=(darwin windows linux freebsd) for os in "${oslist[@]}"; do [ "$os" = "windows" ] && suffix=".exe" || suffix="" dirname="dist/$os" filename="twhelp$suffix" zipname="../twhelp-x64$os.zip" ( GOARCH=amd64 GOOS="$os" go build -ldflags="-s -w" -o "$dirname/$filename" && ...
+ docker run --rm -it -v "$PWD":/_ -w /_ golang:1.7 bash -c ' + + go get -d ./... + - oslist=(darwin windows linux freebsd) + oslist=(darwin windows linux freebsd) ? ++++ - for os in "${oslist[@]}"; do + for os in "${oslist[@]}"; do ? ++++ - [ "$os" = "windows" ] && suffix=".exe" || suffix="" + ...
41
2.928571
28
13
71e2550c9bbc7044e44fc975de5346cfdca19e50
subprojects/build-plugins/build-plugins.gradle.kts
subprojects/build-plugins/build-plugins.gradle.kts
import build.futureKotlin plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { outputFile = processResources.destinationDir.re...
import build.* plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { outputFile = processResources.destinationDir.resolve("${ba...
Allow :build-plugins tests to run in parallel
Allow :build-plugins tests to run in parallel Signed-off-by: Paul Merlin <a027184a55211cd23e3f3094f1fdc728df5e0500@gradle.com>
Kotlin
apache-2.0
robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,gradle/gradle-script-kotlin,robinverduijn/gradle,robinverduijn/gradle,robinver...
kotlin
## Code Before: import build.futureKotlin plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { outputFile = processResources.d...
- import build.futureKotlin + import build.* plugins { id("public-kotlin-dsl-module") } base { archivesBaseName = "gradle-kotlin-dsl-build-plugins" } val processResources: ProcessResources by tasks val writeKotlinDslProviderVersion by tasks.creating(WriteProperties::class) { ou...
4
0.075472
3
1
74532975917826a13a4b4d25abcacc84f72d169f
README.md
README.md
Python Flight Mechanics Engine License: MIT (see `COPYING`). ## How to run the tests Install in editable mode and call `py.test`: $ pip install -e . $ py.test
Python Flight Mechanics Engine License: MIT (see `COPYING`). **If you want to know how PyFME works, how to collaborate or get our contact information, please visit our [wiki](https://github.com/AeroPython/PyFME/wiki)** ## How to run the tests Install in editable mode and call `py.test`: $ pip install -e . ...
Update readme to include a link to the wiki
Update readme to include a link to the wiki
Markdown
mit
miqlar/PyFME,aeroaks/PyFME,Juanlu001/PyFME,JuanMatSa/PyFME,AlexS12/PyFME,AeroPython/PyFME,olrosales/PyFME
markdown
## Code Before: Python Flight Mechanics Engine License: MIT (see `COPYING`). ## How to run the tests Install in editable mode and call `py.test`: $ pip install -e . $ py.test ## Instruction: Update readme to include a link to the wiki ## Code After: Python Flight Mechanics Engine License: MIT (see `COPY...
Python Flight Mechanics Engine License: MIT (see `COPYING`). + + **If you want to know how PyFME works, how to collaborate or get our contact information, please visit our [wiki](https://github.com/AeroPython/PyFME/wiki)** ## How to run the tests Install in editable mode and call `py.test`: $...
2
0.181818
2
0
4f3a536eb011900b40600c9e70ebe10dc4052e60
.travis.yml
.travis.yml
language: node_js node_js: - "node" branches: only: - master
language: node_js node_js: - node branches: only: - master notifications: slack: secure: s0oc2e1NWqXhwsGtTQndL32Y222J01g0HuWS+BKRwDHxxSvgirhTxOrxDh89kpyukeUNrVg+bpW1lfBWvwcQXO/iuBgkHVgYd9mTwF0WaoOGaAmeY9yjprfN8EHwFyrc9VnCDqvLx34JHFdvGjW8fAuVNSjd53MnFu9U0//t+q5m8CqoMBFOsP/INHHxy2qfkt5xUsKNgvrBPe4OEFIdf2wGm1w0l...
Add slack integration for Travis
Add slack integration for Travis
YAML
mit
pyr0tecnix/TasksManager
yaml
## Code Before: language: node_js node_js: - "node" branches: only: - master ## Instruction: Add slack integration for Travis ## Code After: language: node_js node_js: - node branches: only: - master notifications: slack: secure: s0oc2e1NWqXhwsGtTQndL32Y222J01g0HuWS+BKRwDHxxSvgirhTxOrxDh89kpyukeUNr...
language: node_js node_js: - - "node" ? -- - - + - node - branches: only: - - master ? -- + - master + notifications: + slack: + secure: s0oc2e1NWqXhwsGtTQndL32Y222J01g0HuWS+BKRwDHxxSvgirhTxOrxDh89kpyukeUNrVg+bpW1lfBWvwcQXO/iuBgkHVgYd9mTwF0WaoOGaAmeY9yjprfN8EHwFyrc9VnCDqvLx34JHFdvGjW8fAuV...
8
1.142857
5
3
eb33d70bfda4857fbd76616cf3bf7fb7d7feec71
spoj/00005/palin.py
spoj/00005/palin.py
def next_palindrome(k): palin = list(k) n = len(k) mid = n // 2 # case 1: forward right just_copy = False for i in range(mid, n): mirrored = n - 1 - i if k[i] < k[mirrored]: just_copy = True if just_copy: palin[i] = palin[mirrored] # case 2: backward left if not just_copy: i = (n - 1) // 2 w...
def next_palindrome(k): palin = list(k) n = len(k) mid = n // 2 # case 1: forward right just_copy = False for i in range(mid, n): mirrored = n - 1 - i if k[i] < k[mirrored]: just_copy = True if just_copy: palin[i] = palin[mirrored] # case 2: backward left if not just_copy: i = (n - 1) // 2 w...
Fix bug in ranges (to middle)
Fix bug in ranges (to middle) - in SPOJ palin Signed-off-by: Karel Ha <70f8965fdfb04f1fc0e708a55d9e822c449f57d3@gmail.com>
Python
mit
mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming,mathemage/CompetitiveProgramming
python
## Code Before: def next_palindrome(k): palin = list(k) n = len(k) mid = n // 2 # case 1: forward right just_copy = False for i in range(mid, n): mirrored = n - 1 - i if k[i] < k[mirrored]: just_copy = True if just_copy: palin[i] = palin[mirrored] # case 2: backward left if not just_copy: i = ...
def next_palindrome(k): palin = list(k) n = len(k) mid = n // 2 # case 1: forward right just_copy = False for i in range(mid, n): mirrored = n - 1 - i if k[i] < k[mirrored]: just_copy = True if just_copy: palin[i] = palin[mirrored] # case 2: backward left if not j...
4
0.102564
2
2
122f1d0e5599526d56aafa4d87fa558a6a44378e
src/data.json
src/data.json
{ "name": "Hack Club", "title": "Hack Club: High school coding clubs", "description": "Join the movement of high school coding clubs around the world: by the students, for the students.", "url": "https://hackclub.com", "api": "https://api.hackclub.com", "twitter": "@starthackclub", "img": "https://hackclu...
{ "name": "Hack Club", "title": "Hack Club: High school computer science clubs", "description": "Join the movement of high school coding clubs around the world: by the students, for the students.", "url": "https://hackclub.com", "api": "https://api.hackclub.com", "twitter": "@starthackclub", "img": "https...
Change "coding" to "computer science" in our website title
Change "coding" to "computer science" in our website title
JSON
mit
hackclub/website,hackclub/website,hackclub/website
json
## Code Before: { "name": "Hack Club", "title": "Hack Club: High school coding clubs", "description": "Join the movement of high school coding clubs around the world: by the students, for the students.", "url": "https://hackclub.com", "api": "https://api.hackclub.com", "twitter": "@starthackclub", "img": ...
{ "name": "Hack Club", - "title": "Hack Club: High school coding clubs", ? ^ ^ + "title": "Hack Club: High school computer science clubs", ? ^^^^^^^^^ + ^^ "description": "Join the movement of high school coding clubs around the ...
2
0.125
1
1
9cba7a3403e6ab53b6c9373c2cc9d55c78975f44
source/about-me.html.erb
source/about-me.html.erb
--- title: About Me --- <h1><%= current_page.data.title %></h1> <p>My name is Martin, and I'm a software developer and tester based in London.</p> <p>I've been working in software development for over 8 years now since leaving the University of Birmingham in 2006 with a BSc in Physics and Astrophysics. My exper...
--- title: About Me --- <h1><%= current_page.data.title %></h1> <p>My name is Martin, and I'm a software developer and tester based in London.</p> <p>I've been working in software development for over 8 years now since leaving the University of Birmingham in 2006 with a BSc in Physics and Astrophysics. My exper...
Add link to root website.
Add link to root website.
HTML+ERB
mit
martincostello/blog,martincostello/blog,martincostello/blog
html+erb
## Code Before: --- title: About Me --- <h1><%= current_page.data.title %></h1> <p>My name is Martin, and I'm a software developer and tester based in London.</p> <p>I've been working in software development for over 8 years now since leaving the University of Birmingham in 2006 with a BSc in Physics and Astrophysics....
--- title: About Me --- <h1><%= current_page.data.title %></h1> <p>My name is Martin, and I'm a software developer and tester based in London.</p> <p>I've been working in software development for over 8 years now since leaving the University of Birmingham in 2006 with a BSc in Physics and Astrophysics. ...
1
0.090909
1
0
9c9d15722892cd7ad9a91d9555e78fe110bea780
README.md
README.md
Small side project for public use - code generator with JavaScript. Live and stable version at: [snipenator.com](http://snipenator.com)
Small side project for public use - code generator with JavaScript. ![Snipenator - Poster Image](https://raw.githubusercontent.com/Stilyan-Kangalov/Snipenator/master/assets/snip_poster.jpg "Current Screenshot") Live and stable version at: [snipenator.com](http://snipenator.com)
Update with the current screenshot.
Update with the current screenshot.
Markdown
mit
Stilyan-Kangalov/Snipenator,Stilyan-Kangalov/Snipenator,Stilyan-Kangalov/Snipenator
markdown
## Code Before: Small side project for public use - code generator with JavaScript. Live and stable version at: [snipenator.com](http://snipenator.com) ## Instruction: Update with the current screenshot. ## Code After: Small side project for public use - code generator with JavaScript. ![Snipenator - Poster Image](h...
Small side project for public use - code generator with JavaScript. + ![Snipenator - Poster Image](https://raw.githubusercontent.com/Stilyan-Kangalov/Snipenator/master/assets/snip_poster.jpg "Current Screenshot") + Live and stable version at: [snipenator.com](http://snipenator.com)
2
0.666667
2
0
4f6915eb0ee67ea77a69ac7d4653279abb6e6bbd
data-init.js
data-init.js
'use strict'; angular.module('ngAppInit', []). provider('$init', function( ){ this.$get = function() { return {}; }; }). directive('ngAppInit', function( $window, $init ){ return { compile: function() { return { pre: function(scope, element, attrs) { angular.extend($init, $w...
'use strict'; angular.module('data-init', []). provider('$init', function() { this.$get = function( $window ){ return $window.JSON.parse(document.querySelector('[ng-app]').dataset.init); }; });
Rewrite the logic without using directive
Rewrite the logic without using directive
JavaScript
mit
gsklee/angular-init
javascript
## Code Before: 'use strict'; angular.module('ngAppInit', []). provider('$init', function( ){ this.$get = function() { return {}; }; }). directive('ngAppInit', function( $window, $init ){ return { compile: function() { return { pre: function(scope, element, attrs) { angular....
'use strict'; - angular.module('ngAppInit', []). ? ^^^^^^ + angular.module('data-init', []). ? ^^^^^^ - provider('$init', function( + provider('$init', function() { ? +++ - ){ - this.$get = function() { ? --- + this.$get =...
26
1.04
6
20
d4e71313ffe8122f491ceb482696ba14b743af56
README.md
README.md
Download zips of github repositories easily. ## Installation Clone the repository and cd to it. Then do: ``` $ python setup.py install ``` ## Usage The point of `gitdl` is to quickly get something from GitHub. ### Download a repo with the best match ``` $ gitdl bootstrap ``` This will search for bootstrap, and ...
Download zips of github repositories easily. [![Build Status](https://travis-ci.org/SanketDG/gitdl.svg?branch=master)](https://travis-ci.org/SanketDG/gitdl) [![Coverage Status](https://coveralls.io/repos/github/SanketDG/gitdl/badge.svg?branch=master)](https://coveralls.io/github/SanketDG/gitdl?branch=master) ## Inst...
Add CI badges for Travis and Coveralls
Add CI badges for Travis and Coveralls
Markdown
mit
SanketDG/gitdl
markdown
## Code Before: Download zips of github repositories easily. ## Installation Clone the repository and cd to it. Then do: ``` $ python setup.py install ``` ## Usage The point of `gitdl` is to quickly get something from GitHub. ### Download a repo with the best match ``` $ gitdl bootstrap ``` This will search for...
Download zips of github repositories easily. + + [![Build Status](https://travis-ci.org/SanketDG/gitdl.svg?branch=master)](https://travis-ci.org/SanketDG/gitdl) [![Coverage Status](https://coveralls.io/repos/github/SanketDG/gitdl/badge.svg?branch=master)](https://coveralls.io/github/SanketDG/gitdl?branch=master) ...
2
0.036364
2
0
e67043d99fe79c525ad71a514dae4b7cb0370270
test/powershell/Get-Culture.Tests.ps1
test/powershell/Get-Culture.Tests.ps1
Describe "Get-Culture DRT Unit Tests" -Tags DRT{ It "Should works proper with get-culture" { $results = get-Culture $results | Should Not BeNullOrEmpty $results[0].GetType() | Should Be CultureInfo $results[0].Name | Should Be $PSCulture } } Describe "Get-Culture" { It "Sh...
Describe "Get-Culture DRT Unit Tests" -Tags DRT{ It "Should works proper with get-culture" { $results = get-Culture $results -is "System.Globalization.CultureInfo" | Should be $true $results[0].Name | Should Be $PSCulture } } Describe "Get-Culture" { It "Should return a type of Cul...
Fix the issue of CR fot Get-Culture
Fix the issue of CR fot Get-Culture
PowerShell
mit
TravisEz13/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,jsoref/PowerShell,JamesWTruher/PowerShell-1,JamesWTruher/PowerShell-1,daxian-dbw/PowerShell,kmosher/PowerShell,PaulHigin/PowerShell,daxian-dbw/PowerShell,kmosher/PowerShell,bmanikm/PowerShell,daxian-dbw/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/Power...
powershell
## Code Before: Describe "Get-Culture DRT Unit Tests" -Tags DRT{ It "Should works proper with get-culture" { $results = get-Culture $results | Should Not BeNullOrEmpty $results[0].GetType() | Should Be CultureInfo $results[0].Name | Should Be $PSCulture } } Describe "Get-Cultur...
Describe "Get-Culture DRT Unit Tests" -Tags DRT{ It "Should works proper with get-culture" { $results = get-Culture + $results -is "System.Globalization.CultureInfo" | Should be $true - $results | Should Not BeNullOrEmpty - $results[0].GetType() | Should Be CultureInfo ...
3
0.12
1
2
01b603037504cff2f90793ba26c1cb72e8debfbf
package.json
package.json
{ "name": "react-server-status", "version": "1.1.0", "description": "A declarative way to set server status", "main": "lib/index.js", "browser": "lib/browser.js", "scripts": { "build": "babel src --out-dir lib", "clean": "rimraf lib", "test": "npm run lint", "lint": "eslint .", "check": ...
{ "name": "react-server-status", "version": "1.1.0", "description": "A declarative way to set server status", "main": "lib/index.js", "browser": "lib/browser.js", "scripts": { "build": "babel src --out-dir lib", "clean": "rimraf lib", "test": "npm run lint", "lint": "eslint .", "check": ...
Update peer dependency to include react 16
Update peer dependency to include react 16 React 16 is backward compatible. This will remove warnings when packages that depend on this npm install/yarn/etc.
JSON
mit
vgno/react-server-status
json
## Code Before: { "name": "react-server-status", "version": "1.1.0", "description": "A declarative way to set server status", "main": "lib/index.js", "browser": "lib/browser.js", "scripts": { "build": "babel src --out-dir lib", "clean": "rimraf lib", "test": "npm run lint", "lint": "eslint ....
{ "name": "react-server-status", "version": "1.1.0", "description": "A declarative way to set server status", "main": "lib/index.js", "browser": "lib/browser.js", "scripts": { "build": "babel src --out-dir lib", "clean": "rimraf lib", "test": "npm run lint", "lint": "es...
2
0.054054
1
1
2b3f68ff311f1ad0175a0c741c48eb90ced08c1f
source/views/components/nav-buttons/styles.js
source/views/components/nav-buttons/styles.js
/** * @flow * A collection of common styles for navbar buttons */ import {StyleSheet, Platform} from 'react-native' import * as c from '../colors' export const commonStyles = StyleSheet.create({ button: { flexDirection: 'row', alignItems: 'center', ...Platform.select({ ios: { paddingVertical: 11, ...
/** * @flow * A collection of common styles for navbar buttons */ import {StyleSheet, Platform} from 'react-native' import * as c from '../colors' export const commonStyles = StyleSheet.create({ button: { flexDirection: 'row', alignItems: 'center', ...Platform.select({ ios: { paddingHorizontal: 18, ...
Remove vertical padding from nav button style
Remove vertical padding from nav button style
JavaScript
agpl-3.0
StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,carls-app/carls,carls-app/carls,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,carls-app/carls,carls-app/carls,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,carls-app/carls,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,StoDevX/AAO-React-Native,carls-app/carls...
javascript
## Code Before: /** * @flow * A collection of common styles for navbar buttons */ import {StyleSheet, Platform} from 'react-native' import * as c from '../colors' export const commonStyles = StyleSheet.create({ button: { flexDirection: 'row', alignItems: 'center', ...Platform.select({ ios: { paddingV...
/** * @flow * A collection of common styles for navbar buttons */ import {StyleSheet, Platform} from 'react-native' import * as c from '../colors' export const commonStyles = StyleSheet.create({ button: { flexDirection: 'row', alignItems: 'center', ...Platform.select({ ios: { ...
1
0.016129
0
1
4ba453fb4d7bab25e5fdcc3f2294f0a53a987b41
src/map/services/index.js
src/map/services/index.js
const mapBaseLayers = require('../../../public/static/map/map-base-layers.config.json') async function fetchMap(resolver, query) { const result = await fetch('http://localhost:8080/cms_search/graphql', { method: 'post', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ ...
const mapBaseLayers = require('../../../public/static/map/map-base-layers.config.json') async function fetchMap(resolver, query) { const result = await fetch(process.env.GRAPHQL_ENDPOINT, { method: 'post', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ query, ...
Use environment variable to fetch map information
Use environment variable to fetch map information
JavaScript
mpl-2.0
DatapuntAmsterdam/atlas,Amsterdam/atlas,DatapuntAmsterdam/atlas_prototype,DatapuntAmsterdam/atlas_prototype,Amsterdam/atlas,Amsterdam/atlas,DatapuntAmsterdam/atlas,DatapuntAmsterdam/atlas,Amsterdam/atlas
javascript
## Code Before: const mapBaseLayers = require('../../../public/static/map/map-base-layers.config.json') async function fetchMap(resolver, query) { const result = await fetch('http://localhost:8080/cms_search/graphql', { method: 'post', headers: { 'Content-Type': 'application/json', }, body: JSO...
const mapBaseLayers = require('../../../public/static/map/map-base-layers.config.json') async function fetchMap(resolver, query) { - const result = await fetch('http://localhost:8080/cms_search/graphql', { + const result = await fetch(process.env.GRAPHQL_ENDPOINT, { method: 'post', headers: { ...
2
0.057143
1
1
fbb9c2bc6f29b059da09764b563441ae687aee47
contentcuration/contentcuration/utils/asynccommand.py
contentcuration/contentcuration/utils/asynccommand.py
from abc import abstractmethod from django.core.management.base import BaseCommand class TaskCommand(BaseCommand): def start_progress(self, *args, **options): # TODO: needs implementation pass def update_progress(self, *args, **options): # TODO: needs implementation pass ...
from abc import abstractmethod from collections import namedtuple from django.core.management.base import BaseCommand from django.core.management.base import CommandError Progress = namedtuple( 'Progress', [ 'progress', 'total', 'fraction', ] ) class TaskCommand(BaseCommand): ...
Add a progress tracker to the async task command
Add a progress tracker to the async task command
Python
mit
DXCanas/content-curation,fle-internal/content-curation,DXCanas/content-curation,fle-internal/content-curation,DXCanas/content-curation,fle-internal/content-curation,fle-internal/content-curation,DXCanas/content-curation
python
## Code Before: from abc import abstractmethod from django.core.management.base import BaseCommand class TaskCommand(BaseCommand): def start_progress(self, *args, **options): # TODO: needs implementation pass def update_progress(self, *args, **options): # TODO: needs implementation ...
from abc import abstractmethod + from collections import namedtuple from django.core.management.base import BaseCommand + from django.core.management.base import CommandError + + Progress = namedtuple( + 'Progress', + [ + 'progress', + 'total', + 'fraction', + ] + ) c...
32
1.882353
26
6
fc983cf6d00bd296cc05b265c8218e52156d04ad
README.md
README.md
A set of utility scripts that you can use to bind to keyboard shortcuts in order to manage windows on any window manager. ## Current available commands ### x-window-move left Snap a window to the left, rotating between 50%, 33% and 66% screen width ### x-window-move right Snap a window to the right, rotating betw...
A set of utility scripts that you can use to bind to keyboard shortcuts in order to manage windows on any window manager. ## Current available commands ### x-window-move left Snap a window to the left, rotating between 50%, 33% and 66% screen width ### x-window-move right Snap a window to the right, rotating betw...
Add instructions for right and left screen
Add instructions for right and left screen
Markdown
mit
marcel-valdez/x-window-shortcuts
markdown
## Code Before: A set of utility scripts that you can use to bind to keyboard shortcuts in order to manage windows on any window manager. ## Current available commands ### x-window-move left Snap a window to the left, rotating between 50%, 33% and 66% screen width ### x-window-move right Snap a window to the righ...
A set of utility scripts that you can use to bind to keyboard shortcuts in order to manage windows on any window manager. ## Current available commands ### x-window-move left Snap a window to the left, rotating between 50%, 33% and 66% screen width ### x-window-move right Snap a window t...
8
0.275862
8
0
f1ea452112c9a5750bca129d5c026728fa12a324
src/themes/material/templates/body-cell-array-edit.tpl.html
src/themes/material/templates/body-cell-array-edit.tpl.html
<ng-template key='body-cell-array-edit.tpl.html' let-$cell let-$view="$view"> <div class="q-grid-editor q-grid-array"> <h2 class="md-title">Edit {{$cell.column.title}}</h2> <div class="q-grid-array-view"> <md-chip-list> <ng-template ngFor let-item [ngForOf]="$cell.value"> <md-chip selected="true">{{i...
<ng-template key='body-cell-array-edit.tpl.html' let-$cell let-$view="$view"> <div class="q-grid-editor q-grid-array"> <h2 class="md-title">Edit {{$cell.column.title}}</h2> <div class="q-grid-array-view"> <md-chip-list> <ng-template ngFor let-item [ngForOf]="$cell.value"> <md-chip selected="true">{{i...
Add template for body cell array edit
Add template for body cell array edit
HTML
mit
qgrid/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2,qgrid/ng2,azkurban/ng2
html
## Code Before: <ng-template key='body-cell-array-edit.tpl.html' let-$cell let-$view="$view"> <div class="q-grid-editor q-grid-array"> <h2 class="md-title">Edit {{$cell.column.title}}</h2> <div class="q-grid-array-view"> <md-chip-list> <ng-template ngFor let-item [ngForOf]="$cell.value"> <md-chip sel...
<ng-template key='body-cell-array-edit.tpl.html' let-$cell let-$view="$view"> <div class="q-grid-editor q-grid-array"> <h2 class="md-title">Edit {{$cell.column.title}}</h2> <div class="q-grid-array-view"> <md-chip-list> <ng-template ngFor let-item [ngForOf]="$cell.value"> <md-chip selec...
8
0.5
8
0
66a40f0af87113a1c9308321034637e3d258a091
README.md
README.md
An emulator for the TIS-100 written in Rust. The emulator currently implements the Simple Sandbox puzzle from the game. ## How to Run
An emulator for the TIS-100 written in Rust. The emulator currently implements the Simple Sandbox puzzle from the game. ## Usage ``` TIS-100 Sandbox Emulator Usage: tis-100 <save.txt> ```
Add usage info to readme.
Add usage info to readme.
Markdown
mit
rcolinray/tis-100-rs
markdown
## Code Before: An emulator for the TIS-100 written in Rust. The emulator currently implements the Simple Sandbox puzzle from the game. ## How to Run ## Instruction: Add usage info to readme. ## Code After: An emulator for the TIS-100 written in Rust. The emulator currently implements the Simple Sandbox puzzle fr...
An emulator for the TIS-100 written in Rust. The emulator currently implements the Simple Sandbox puzzle from the game. - ## How to Run + ## Usage + ``` + TIS-100 Sandbox Emulator + + Usage: + tis-100 <save.txt> + ``` +
9
1.8
8
1
afbfe545d84fb6037fd4791483bc61383a852f18
tests/CacheTool/Console/ApplicationTest.php
tests/CacheTool/Console/ApplicationTest.php
<?php namespace CacheTool\Console; use CacheTool\Command\CommandTest; class ApplicationTest extends CommandTest { public function testVersion() { $result = $this->runCommand('--version'); $this->assertStringStartsWith('CacheTool version @package_version@', $result); } }
<?php namespace CacheTool\Console; use CacheTool\Command\CommandTest; class ApplicationTest extends CommandTest { public function testVersion() { $result = $this->runCommand('--version'); $this->assertEquals("CacheTool version @package_version@\n", $result); } }
Test entire string in application
Test entire string in application
PHP
mit
continuousdemo/cachetool,gordalina/cachetool,oswaldderiemaecker/cachetool,oswaldderiemaecker/cachetool,continuousdemo/cachetool,gordalina/cachetool
php
## Code Before: <?php namespace CacheTool\Console; use CacheTool\Command\CommandTest; class ApplicationTest extends CommandTest { public function testVersion() { $result = $this->runCommand('--version'); $this->assertStringStartsWith('CacheTool version @package_version@', $result); } } #...
<?php namespace CacheTool\Console; use CacheTool\Command\CommandTest; class ApplicationTest extends CommandTest { public function testVersion() { $result = $this->runCommand('--version'); - $this->assertStringStartsWith('CacheTool version @package_version@', $result); ? ...
2
0.142857
1
1
e578c90cc542d3cf825645fa9376796a1e7c31f9
lib/cache.py
lib/cache.py
import functools import logging import redis import config # Default options redis_opts = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } redis_conn = None cache_prefix = None def init(): global redis_conn, cache_prefix cfg = config.load() cache = cfg.cache if not...
import functools import logging import redis import config # Default options redis_opts = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } redis_conn = None cache_prefix = None def init(): global redis_conn, cache_prefix cfg = config.load() cache = cfg.cache if not...
Remove unneeded lru specific helper methods
Remove unneeded lru specific helper methods
Python
apache-2.0
dalvikchen/docker-registry,atyenoria/docker-registry,atyenoria/docker-registry,ewindisch/docker-registry,docker/docker-registry,ken-saka/docker-registry,wakermahmud/docker-registry,Carrotzpc/docker-registry,kireal/docker-registry,ewindisch/docker-registry,yuriyf/docker-registry,whuwxl/docker-registry,Haitianisgood/dock...
python
## Code Before: import functools import logging import redis import config # Default options redis_opts = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } redis_conn = None cache_prefix = None def init(): global redis_conn, cache_prefix cfg = config.load() cache = cfg....
import functools import logging import redis import config # Default options redis_opts = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } redis_conn = None cache_prefix = None def init(): global redis_conn, cache_prefix cfg = ...
46
0.534884
0
46
048a65bb19412639c3abdaded8ad6d3d10e4033e
ext/narray_ffi_c/narray_ffi.c
ext/narray_ffi_c/narray_ffi.c
VALUE na_address(VALUE self) { struct NARRAY *ary; void * ptr; VALUE ret; GetNArray(self,ary); ptr = ary->ptr; ret = ULL2NUM( (unsigned long long int) ptr); return ret; } void Init_narray_ffi_c() { ID id; VALUE klass; id = rb_intern("NArray"); klass = rb_const_get(rb_cObject, id); rb_define_p...
VALUE na_address(VALUE self) { struct NARRAY *ary; void * ptr; VALUE ret; GetNArray(self,ary); ptr = ary->ptr; ret = ULL2NUM( sizeof(ptr) == 4 ? (unsigned long long int) (unsigned long int) ptr : (unsigned long long int) ptr ); return ret; } void Init_narray_ffi_c() { ID id; VALUE klass; id = rb_...
Fix nasty sign propagation bug on gcc and 32 bit architectures.
Fix nasty sign propagation bug on gcc and 32 bit architectures.
C
bsd-2-clause
Nanosim-LIG/narray-ffi,Nanosim-LIG/narray-ffi
c
## Code Before: VALUE na_address(VALUE self) { struct NARRAY *ary; void * ptr; VALUE ret; GetNArray(self,ary); ptr = ary->ptr; ret = ULL2NUM( (unsigned long long int) ptr); return ret; } void Init_narray_ffi_c() { ID id; VALUE klass; id = rb_intern("NArray"); klass = rb_const_get(rb_cObject, id...
VALUE na_address(VALUE self) { struct NARRAY *ary; void * ptr; VALUE ret; GetNArray(self,ary); ptr = ary->ptr; - ret = ULL2NUM( (unsigned long long int) ptr); + ret = ULL2NUM( sizeof(ptr) == 4 ? (unsigned long long int) (unsigned long int) ptr : (unsigned long long int) ptr ); return...
2
0.1
1
1
06bc9745e821a15a33d8dc52451248f96b99ed85
brackets-notifications.css
brackets-notifications.css
{ position: absolute; top: 5px; right: 5px; } #notifications-container .simple-notification { background-color: #FFF; width: 200px; height: 75px; }
{ position: absolute; top: 5px; right: 5px; z-index: 1; } #notifications-container .simple-notification { background-color: #FFF; width: 200px; height: 75px; padding: 0px 10px; }
Make notifications actually visible, added padding
Make notifications actually visible, added padding
CSS
mit
HalleyInteractive/brackets-notifications
css
## Code Before: { position: absolute; top: 5px; right: 5px; } #notifications-container .simple-notification { background-color: #FFF; width: 200px; height: 75px; } ## Instruction: Make notifications actually visible, added padding ## Code After: { position: absolute; top: 5px; right: 5px; z-index: 1; } ...
{ position: absolute; top: 5px; right: 5px; + z-index: 1; } #notifications-container .simple-notification { background-color: #FFF; width: 200px; height: 75px; + padding: 0px 10px; }
2
0.166667
2
0
198b12b992be72288fb63816e978b45d78680289
src/test/resources/testng.xml
src/test/resources/testng.xml
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="jenjin-io" verbose="1" > <test name="io"> <packages> <package name="com.jenjinstudios.io" /> </packages> </test> </suite>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="jenjin-io" verbose="1" > <test name="io"> <packages> <package name="com.jenjinstudios.io" /> </packages> </test> <test name="serialization" verbose="1" > <packages> <package name="com.je...
Add test for serialization package
Add test for serialization package
XML
mit
floralvikings/jenjin-io
xml
## Code Before: <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="jenjin-io" verbose="1" > <test name="io"> <packages> <package name="com.jenjinstudios.io" /> </packages> </test> </suite> ## Instruction: Add test for serialization package ## Code After: <!DO...
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > <suite name="jenjin-io" verbose="1" > <test name="io"> <packages> <package name="com.jenjinstudios.io" /> </packages> </test> + <test name="serialization" verbose="1" > + <packages> + ...
5
0.555556
5
0
3ba758b9148a8cee78a271e7c9c5a8cef174b337
app/views/ninetails/containers/_container.json.jbuilder
app/views/ninetails/containers/_container.json.jbuilder
json.container do json.call container, :id json.type container.type.demodulize if container.try(:layout).present? json.layout do json.partial! "/ninetails/containers/container", container: container.layout end end if container.try(:current_revision).present? json.current_revision do ...
json.container do json.call container, :id json.type container.type.demodulize json.layout_id container.layout_id if container.try(:layout).present? json.layout do json.partial! "/ninetails/containers/container", container: container.layout end end if container.try(:current_revision).present...
Include layout id in the page response
Include layout id in the page response
Ruby
mit
iZettle/ninetails
ruby
## Code Before: json.container do json.call container, :id json.type container.type.demodulize if container.try(:layout).present? json.layout do json.partial! "/ninetails/containers/container", container: container.layout end end if container.try(:current_revision).present? json.current_re...
json.container do json.call container, :id json.type container.type.demodulize + json.layout_id container.layout_id if container.try(:layout).present? json.layout do json.partial! "/ninetails/containers/container", container: container.layout end end if container.try(:c...
1
0.033333
1
0
e61f0b7831dccc0b76399d4d600481d75087613d
src/main/java/com/bourke/glimmr/common/Keys.java
src/main/java/com/bourke/glimmr/common/Keys.java
package com.bourke.glimmr.common; public class Keys { public static final String API_KEY = "***REMOVED***"; public static final String API_SECRET = "***REMOVED***"; }
package com.bourke.glimmr.common; public class Keys { public static final String API_KEY = ""; public static final String API_SECRET = ""; }
Remove api keys for open sourcing
Remove api keys for open sourcing
Java
apache-2.0
brk3/glimmr,brk3/glimmr
java
## Code Before: package com.bourke.glimmr.common; public class Keys { public static final String API_KEY = "***REMOVED***"; public static final String API_SECRET = "***REMOVED***"; } ## Instruction: Remove api keys for open sourcing ## Code After: package com.bourke.glimmr.common; public class Keys { ...
package com.bourke.glimmr.common; public class Keys { - public static final String API_KEY = "***REMOVED***"; ? ------------- + public static final String API_KEY = ""; - public static final String API_SECRET = "***REMOVED***"; ? ...
4
0.571429
2
2
520bc03b42cc2a6c981b2392b06c5ebfa852bc53
ElcodiProductCsvBundle.php
ElcodiProductCsvBundle.php
<?php /* * This file is part of the Elcodi package. * * Copyright (c) 2014-2015 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.c...
<?php /* * This file is part of the Elcodi package. * * Copyright (c) 2014-2015 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.c...
Store + Shipping + Menus
Store + Shipping + Menus * Using new Store feature from Elcodi * Added Store management in Admin * Changed all definitions that was depending on such implementation * Removed under construction logic and tests * Removed menu fixtures * Defined them as dynamic content. Some of them are generated dinamically, and som...
PHP
mit
elcodi-plugins/ProductCsvBundle,elcodi-plugins/ProductCsvBundle
php
## Code Before: <?php /* * This file is part of the Elcodi package. * * Copyright (c) 2014-2015 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera ...
<?php /* * This file is part of the Elcodi package. * * Copyright (c) 2014-2015 Elcodi.com * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Ma...
2
0.036364
2
0
d7f1d0838aa1ef3737521c56e5a19b39755763b3
modules/projects/templates/quehambre/nginx.conf.erb
modules/projects/templates/quehambre/nginx.conf.erb
server { access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main; listen 80; root <%= @repo_dir %>/src; server_name quehambre.dev quehambre.local www.quehambre.cl; client_max_body_size 50M; error_page 500 502 503 504 /50x.html; location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico...
upstream php { server unix:<%= scope.lookupvar "boxen::config::socketdir" %>/<%= @name %>; } server { error_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.error.log notice; access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main; listen 80; root <%= @repo_...
Fix quehambre nginx template with codeigniter support
Fix quehambre nginx template with codeigniter support
HTML+ERB
mit
platanus/our-boxen,platanus/our-boxen,platanus/our-boxen
html+erb
## Code Before: server { access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main; listen 80; root <%= @repo_dir %>/src; server_name quehambre.dev quehambre.local www.quehambre.cl; client_max_body_size 50M; error_page 500 502 503 504 /50x.html; location ~* ^.+.(jpg|jpeg|gi...
+ upstream php { + server unix:<%= scope.lookupvar "boxen::config::socketdir" %>/<%= @name %>; + } server { + error_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.error.log notice; access_log <%= scope.lookupvar "nginx::config::logdir" %>/<%= @name %>.access.log main; listen 80; ...
15
0.681818
9
6
c7329c1c5347ca2f453c41aeb0f479edc4050187
app/assets/javascripts/hyrax/browse_everything.js
app/assets/javascripts/hyrax/browse_everything.js
//= require jquery.treetable //= require browse_everything/behavior // Show the files in the queue Blacklight.onLoad( function() { // We need to check this because https://github.com/samvera/browse-everything/issues/169 if ($('#browse-btn').length > 0) { $('#browse-btn').browseEverything() .done(function(d...
//= require jquery.treetable //= require browse_everything/behavior // Show the files in the queue function showBrowseEverythingFiles() { // We need to check this because https://github.com/samvera/browse-everything/issues/169 if ($('#browse-btn').length > 0) { $('#browse-btn').browseEverything() .done(fun...
Fix loading of browse-everything done event
Fix loading of browse-everything done event Avoids situations where the prototype browseEverything() function has not been defined yet.
JavaScript
apache-2.0
samvera/hyrax,samvera/hyrax,samvera/hyrax,samvera/hyrax
javascript
## Code Before: //= require jquery.treetable //= require browse_everything/behavior // Show the files in the queue Blacklight.onLoad( function() { // We need to check this because https://github.com/samvera/browse-everything/issues/169 if ($('#browse-btn').length > 0) { $('#browse-btn').browseEverything() ...
//= require jquery.treetable //= require browse_everything/behavior // Show the files in the queue - Blacklight.onLoad( function() { + function showBrowseEverythingFiles() { // We need to check this because https://github.com/samvera/browse-everything/issues/169 if ($('#browse-btn').length > 0) { ...
6
0.4
4
2
e20244220c66655425c8d96a9122e11a2ba482dd
tests/paddleball/CMakeLists.txt
tests/paddleball/CMakeLists.txt
set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp") link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}") add_executable(paddleball ball.cpp computer.cpp main.cpp paddle.cpp score.cpp) set_property(TARGET paddleball APPEND PROPERTY COMPILE_FLAGS...
set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp") link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}") add_executable(paddleball ball.cpp computer.cpp main.cpp paddle.cpp score.cpp ball.h computer.h paddle.h score.h) set_property(TARGET p...
Include headers in add_executable since it might be nice to have them in say Code::Blocks projects.
Include headers in add_executable since it might be nice to have them in say Code::Blocks projects. Signed-off-by: Harley Laue <c8a0c029c1a7cee0af4c3de9665bbb05f63c8770@gmail.com>
Text
lgpl-2.1
losinggeneration/sdl4cpp,losinggeneration/sdl4cpp
text
## Code Before: set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp") link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}") add_executable(paddleball ball.cpp computer.cpp main.cpp paddle.cpp score.cpp) set_property(TARGET paddleball APPEND PROPER...
set(INC "${CMAKE_SOURCE_DIR}/include/SDL4Cpp") link_libraries(${SDL_LIBRARY} "${PROJECT_BINARY_DIR}/src/${CMAKE_FIND_LIBRARY_PREFIXES}SDL4Cpp${CMAKE_SHARED_LIBRARY_SUFFIX}") add_executable(paddleball ball.cpp computer.cpp main.cpp paddle.cpp - score.cpp) ? - + score.cpp + ball.h + co...
6
0.545455
5
1
6e853e6d2eba890ddff29b71a21130e145c747fb
html/directives/validateBitcoinAddress.js
html/directives/validateBitcoinAddress.js
angular.module('app').directive("validateBitcoinAddress", function() { return { require: 'ngModel', link: function(scope, ele, attrs, ctrl) { ctrl.$parsers.unshift(function(value) { // test and set the validity after update. var valid = window.bitcoinAdd...
angular.module('app').directive("validateBitcoinAddress", function() { return { require: 'ngModel', link: function(scope, ele, attrs, ctrl) { ctrl.$parsers.unshift(function(value) { var valid = window.bitcoinAddress.validate(value); ctrl.$setValidity('val...
Clean up comments and validity check
Clean up comments and validity check
JavaScript
mit
atsuyim/OpenBazaar,must-/OpenBazaar,must-/OpenBazaar,saltduck/OpenBazaar,NolanZhao/OpenBazaar,NolanZhao/OpenBazaar,tortxof/OpenBazaar,tortxof/OpenBazaar,must-/OpenBazaar,blakejakopovic/OpenBazaar,habibmasuro/OpenBazaar,bankonme/OpenBazaar,blakejakopovic/OpenBazaar,rllola/OpenBazaar,rllola/OpenBazaar,mirrax/OpenBazaar,b...
javascript
## Code Before: angular.module('app').directive("validateBitcoinAddress", function() { return { require: 'ngModel', link: function(scope, ele, attrs, ctrl) { ctrl.$parsers.unshift(function(value) { // test and set the validity after update. var valid = w...
angular.module('app').directive("validateBitcoinAddress", function() { return { require: 'ngModel', link: function(scope, ele, attrs, ctrl) { ctrl.$parsers.unshift(function(value) { - - // test and set the validity after update. var valid =...
11
0.37931
2
9
b64f3f1aad835722a6de11299070803e90726e10
app/views/entries/_entry.html.erb
app/views/entries/_entry.html.erb
<p><strong><%= link_to h(entry.title), entry.url %></strong> published <%= time_ago_in_words entry.published %> ago by <%= link_to h(entry.feed.user.name), entry.feed.user %></p>
<p><strong><%= link_to h(entry.title), entry.url %></strong> published<%= " #{time_ago_in_words entry.published} ago" if entry.published %> by <%= link_to h(entry.feed.user.name), entry.feed.user %></p>
Patch entries to handle nil publish dates
Patch entries to handle nil publish dates
HTML+ERB
mit
jaimeiniesta/planetoid,jaimeiniesta/planetoid
html+erb
## Code Before: <p><strong><%= link_to h(entry.title), entry.url %></strong> published <%= time_ago_in_words entry.published %> ago by <%= link_to h(entry.feed.user.name), entry.feed.user %></p> ## Instruction: Patch entries to handle nil publish dates ## Code After: <p><strong><%= link_to h(entry.title), entry.url %>...
- <p><strong><%= link_to h(entry.title), entry.url %></strong> published <%= time_ago_in_words entry.published %> ago by <%= link_to h(entry.feed.user.name), entry.feed.user %></p> ? - ^^^ + <p><strong><%= link_to...
2
2
1
1
367c54dec307f55f8f15a496b0e3b73f5cf0f68a
.config/dotnet-tools.json
.config/dotnet-tools.json
{ "version": 1, "isRoot": true, "tools": { "cake.tool": { "version": "0.37.0", "commands": [ "dotnet-cake" ] } } }
{ "version": 1, "isRoot": true, "tools": { "cake.tool": { "version": "0.38.2", "commands": [ "dotnet-cake" ] }, "minver-cli": { "version": "2.3.0", "commands": [ "minver" ] } } }
Add minver tool. Bump Cake tool to 0.38.2
Add minver tool. Bump Cake tool to 0.38.2
JSON
mit
spectresystems/commandline
json
## Code Before: { "version": 1, "isRoot": true, "tools": { "cake.tool": { "version": "0.37.0", "commands": [ "dotnet-cake" ] } } } ## Instruction: Add minver tool. Bump Cake tool to 0.38.2 ## Code After: { "version": 1, "isRoot": true, "tools": { "cake.tool": { ...
{ "version": 1, "isRoot": true, "tools": { "cake.tool": { - "version": "0.37.0", ? ^ ^ + "version": "0.38.2", ? ^ ^ "commands": [ "dotnet-cake" + ] + }, + "minver-cli": { + "version": "2.3.0", + "comm...
8
0.666667
7
1
edead63f66120a67780b627e74b511b54d39ec1b
.packit.yaml
.packit.yaml
upstream_package_name: python-nitrate downstream_package_name: python-nitrate specfile_path: python-nitrate.spec synced_files: [python-nitrate.spec] actions: create-archive: - make tarball get-current-version: - make version jobs: - job: copr_build metadata: targets: - fedora-all - epel-8 -...
upstream_package_name: python-nitrate downstream_package_name: python-nitrate specfile_path: python-nitrate.spec synced_files: [python-nitrate.spec] actions: create-archive: - make tarball get-current-version: - make version jobs: - job: copr_build metadata: targets: - fedora-all - epel-8 -...
Enable copr builds on commits in the master branch
Enable copr builds on commits in the master branch
YAML
lgpl-2.1
psss/python-nitrate
yaml
## Code Before: upstream_package_name: python-nitrate downstream_package_name: python-nitrate specfile_path: python-nitrate.spec synced_files: [python-nitrate.spec] actions: create-archive: - make tarball get-current-version: - make version jobs: - job: copr_build metadata: targets: - fedora-all ...
upstream_package_name: python-nitrate downstream_package_name: python-nitrate specfile_path: python-nitrate.spec synced_files: [python-nitrate.spec] actions: create-archive: - make tarball get-current-version: - make version jobs: - job: copr_build metadata: targets: ...
13
0.65
13
0
596199f9463eabab3ac638478efe7a7269d4b1bc
app/views/paywall/setpassword.html.erb
app/views/paywall/setpassword.html.erb
<div> <form action="activate" method="post" role="form" style="margin-left: 40%;margin-top: 10%;"> <fieldset> <input type="hidden" value="<%=@cred.id%>" name="id"> <div class="form-group"> <input class="form-control" style="width: 250px" type="password" id="password" name="password" placeholder="P...
<div class="row"> <div class="col-sm-4 col-sm-offset-4"> <form action="activate" method="post" role="form"> <fieldset> <input name="id" type="hidden" value="<%=@cred.id%>"> <div class="form-group"> <div class="row"> <div class="col-xs-6"> <input class="for...
Add more fields to the activation form
Add more fields to the activation form
HTML+ERB
agpl-3.0
payloadtech/mailpenny,payloadtech/mailpenny,payloadtech/mailpenny
html+erb
## Code Before: <div> <form action="activate" method="post" role="form" style="margin-left: 40%;margin-top: 10%;"> <fieldset> <input type="hidden" value="<%=@cred.id%>" name="id"> <div class="form-group"> <input class="form-control" style="width: 250px" type="password" id="password" name="password...
- <div> - <form action="activate" method="post" role="form" style="margin-left: 40%;margin-top: 10%;"> + <div class="row"> + <div class="col-sm-4 col-sm-offset-4"> + <form action="activate" method="post" role="form"> - <fieldset> + <fieldset> ? ++ - <input type="hidden" value="<%=@cred.id%>" na...
56
1.69697
34
22
9d4cbb30fe3a8f9040cd29958ed47db3fb1a14ac
image-diff/diff.js
image-diff/diff.js
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
Increase threshold and ignore anti-aliasing when comparing images
Increase threshold and ignore anti-aliasing when comparing images
JavaScript
apache-2.0
GoogleCloudPlatform/nodejs-serverless-microservices-demo,GoogleCloudPlatform/nodejs-serverless-microservices-demo
javascript
## Code Before: /* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
10
0.357143
8
2
d0be9009da99ef8530a0d2927350663b3b89547a
pep8ify/pep8ify.py
pep8ify/pep8ify.py
import sys from lib2to3.main import main try: import pep8ify.fixes except ImportError: # if importing pep8ify fails, try to load from parent # directory to support running without installation import imp, os if not hasattr(os, 'getuid') or os.getuid() != 0: imp.load_module('pep8ify', *imp...
from lib2to3.main import main try: import pep8ify.fixes except ImportError: # if importing pep8ify fails, try to load from parent # directory to support running without installation import imp, os if not hasattr(os, 'getuid') or os.getuid() != 0: imp.load_module('pep8ify', *imp.find_module...
Use `raise SystemExit` intead of `sys.exit`.
Clean-up: Use `raise SystemExit` intead of `sys.exit`.
Python
apache-2.0
spulec/pep8ify
python
## Code Before: import sys from lib2to3.main import main try: import pep8ify.fixes except ImportError: # if importing pep8ify fails, try to load from parent # directory to support running without installation import imp, os if not hasattr(os, 'getuid') or os.getuid() != 0: imp.load_module...
- - import sys from lib2to3.main import main try: import pep8ify.fixes except ImportError: # if importing pep8ify fails, try to load from parent # directory to support running without installation import imp, os if not hasattr(os, 'getuid') or os.getuid() != 0: imp.l...
4
0.190476
1
3
187c9d9f56fbb6531f9b396d6bace3880fa421ca
.travis.yml
.travis.yml
language: php sudo: false cache: directories: - $HOME/.composer/cache/files - $HOME/symfony-bridge/.phpunit php: - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - nightly env: global: - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" matrix: include: - php: 5.6...
language: php sudo: false cache: directories: - $HOME/.composer/cache/files - $HOME/symfony-bridge/.phpunit php: - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - nightly env: global: - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" matrix: include: - php: 5.6...
Add validation of the composer.json on Travis
Add validation of the composer.json on Travis This prevents PRs breaking the validity of the composer.json, which would then be rejected by Packagist. The lock file is not validated, as it is not committed in the repo.
YAML
mit
KnpLabs/KnpMenu
yaml
## Code Before: language: php sudo: false cache: directories: - $HOME/.composer/cache/files - $HOME/symfony-bridge/.phpunit php: - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - nightly env: global: - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" matrix: include: ...
language: php sudo: false cache: directories: - $HOME/.composer/cache/files - $HOME/symfony-bridge/.phpunit php: - 5.4 - 5.5 - 5.6 - 7.0 - 7.1 - nightly env: global: - SYMFONY_PHPUNIT_DIR="$HOME/symfony-bridge/.phpunit" ...
1
0.023256
1
0
6289377a466669aab620d6849b51ea5988f0d180
test/CMakeLists.txt
test/CMakeLists.txt
file(GLOB PluginParametersTest_SOURCES *.cpp) add_executable(pluginparameterstest ${PluginParametersTest_SOURCES})
file(GLOB PluginParametersTest_SOURCES *.cpp) set(TinyThread_SOURCES ${CMAKE_SOURCE_DIR}/include/tinythread/source/tinythread.cpp) add_executable(pluginparameterstest ${PluginParametersTest_SOURCES} ${TinyThread_SOURCES}) target_link_libraries(pluginparameterstest pthread)
Add tinythread to test suite sources
Add tinythread to test suite sources
Text
bsd-2-clause
teragonaudio/PluginParameters,alessandrostone/PluginParameters,teragonaudio/PluginParameters,alessandrostone/PluginParameters
text
## Code Before: file(GLOB PluginParametersTest_SOURCES *.cpp) add_executable(pluginparameterstest ${PluginParametersTest_SOURCES}) ## Instruction: Add tinythread to test suite sources ## Code After: file(GLOB PluginParametersTest_SOURCES *.cpp) set(TinyThread_SOURCES ${CMAKE_SOURCE_DIR}/include/tinythread/source/tiny...
file(GLOB PluginParametersTest_SOURCES *.cpp) + set(TinyThread_SOURCES ${CMAKE_SOURCE_DIR}/include/tinythread/source/tinythread.cpp) - add_executable(pluginparameterstest ${PluginParametersTest_SOURCES}) + add_executable(pluginparameterstest ${PluginParametersTest_SOURCES} ${TinyThread_SOURCES}) ? ...
4
2
3
1
ea6482019e8e85b5d88049d1c700b769d18d8d73
templates/default/systemd/nginx.erb
templates/default/systemd/nginx.erb
[Unit] Description=The nginx HTTP and reverse proxy server for <%= @nginx_instance_name %> After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/<%= @nginx_instance_name %>.pid ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx -c /etc/<%= @nginx_instance_name %>/nginx.con...
[Unit] Description=The nginx HTTP and reverse proxy server for <%= @nginx_instance_name %> After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/<%= @nginx_instance_name %>.pid ExecStartPre=/usr/sbin/nginx -t -c /etc/<%= @nginx_instance_name %>/nginx.conf ExecStart=/usr/sbin/ngin...
Add configuration parameter to systemd test command
Add configuration parameter to systemd test command
HTML+ERB
apache-2.0
ffuenf/nginx,ffuenf/nginx,ffuenf/nginx
html+erb
## Code Before: [Unit] Description=The nginx HTTP and reverse proxy server for <%= @nginx_instance_name %> After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/<%= @nginx_instance_name %>.pid ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx -c /etc/<%= @nginx_instance_n...
[Unit] Description=The nginx HTTP and reverse proxy server for <%= @nginx_instance_name %> After=network.target remote-fs.target nss-lookup.target [Service] Type=forking PIDFile=/run/<%= @nginx_instance_name %>.pid - ExecStartPre=/usr/sbin/nginx -t + ExecStartPre=/usr/sbin/nginx -t -c /etc/<%= @nginx_...
2
0.111111
1
1
7babaa6def1a4bfe610d10644d3db9e6ef5b7a2a
app/views/ems_middleware/edit.html.haml
app/views/ems_middleware/edit.html.haml
= render :partial => 'shared/views/ems_common/form'
= form_for(@ems, :url => ems_middleware_path(@ems), :method => :patch, :html => {"ng-controller" => "emsCommonFormController", "name" => "angularForm", "ng-show" => "afterGet", "update-url" ...
Edit form for Middleware Provider
Edit form for Middleware Provider
Haml
apache-2.0
skateman/manageiq,aufi/manageiq,jrafanie/manageiq,NaNi-Z/manageiq,gmcculloug/manageiq,d-m-u/manageiq,agrare/manageiq,d-m-u/manageiq,NickLaMuro/manageiq,d-m-u/manageiq,mfeifer/manageiq,chessbyte/manageiq,mfeifer/manageiq,ManageIQ/manageiq,hstastna/manageiq,lpichler/manageiq,josejulio/manageiq,chessbyte/manageiq,andyvese...
haml
## Code Before: = render :partial => 'shared/views/ems_common/form' ## Instruction: Edit form for Middleware Provider ## Code After: = form_for(@ems, :url => ems_middleware_path(@ems), :method => :patch, :html => {"ng-controller" => "emsCommonFormController", ...
- = render :partial => 'shared/views/ems_common/form' + = form_for(@ems, + :url => ems_middleware_path(@ems), + :method => :patch, + :html => {"ng-controller" => "emsCommonFormController", + "name" => "angularForm", + "ng-s...
18
18
17
1
f83d098d7809d47b2832b082bef619b142b5a3fd
bin/update.sh
bin/update.sh
PWD=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # Test version argument. if [ -z "$1" ]; then echo "A release version must be supplied (e.g. 7.0.1)." exit 1 fi # Remove previous src dir. find src -depth 1 ! -iregex 'src/index.js' | xargs rm -rf # Prepare a new branch for this update. git checkout -b support/u...
PWD=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # Test version argument. if [ -z "$1" ]; then echo "A release version must be supplied (e.g. 7.0.1)." exit 1 fi # Remove previous src dir. find src -depth 1 ! -iregex 'src/index.js' | xargs rm -rf # Prepare a new branch for this update. git checkout -b support/u...
Remove trailing whitespace from patch
Remove trailing whitespace from patch [skip ci]
Shell
apache-2.0
seegno/google-libphonenumber,seegno/google-libphonenumber,seegno/google-libphonenumber
shell
## Code Before: PWD=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # Test version argument. if [ -z "$1" ]; then echo "A release version must be supplied (e.g. 7.0.1)." exit 1 fi # Remove previous src dir. find src -depth 1 ! -iregex 'src/index.js' | xargs rm -rf # Prepare a new branch for this update. git check...
PWD=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # Test version argument. if [ -z "$1" ]; then echo "A release version must be supplied (e.g. 7.0.1)." exit 1 fi # Remove previous src dir. find src -depth 1 ! -iregex 'src/index.js' | xargs rm -rf # Prepare a new branch for this update....
2
0.0625
1
1
405bfa4440c16607a99d18b76c3db1bc8c2d4f7c
lineman/app/components/thread_page/position_buttons_panel/position_buttons_panel.coffee
lineman/app/components/thread_page/position_buttons_panel/position_buttons_panel.coffee
angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true controller: ($scope, ModalService, VoteForm, CurrentUser, Records) -> $scope.showPositionB...
angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true controller: ($scope, ModalService, VoteForm, CurrentUser, Records, AbilityService) -> $sco...
Fix for position buttons panel
Fix for position buttons panel
CoffeeScript
agpl-3.0
FSFTN/Loomio,loomio/loomio,piratas-ar/loomio,loomio/loomio,FSFTN/Loomio,mhjb/loomio,piratas-ar/loomio,sicambria/loomio,FSFTN/Loomio,loomio/loomio,mhjb/loomio,mhjb/loomio,sicambria/loomio,loomio/loomio,sicambria/loomio,mhjb/loomio,FSFTN/Loomio,piratas-ar/loomio,piratas-ar/loomio,sicambria/loomio
coffeescript
## Code Before: angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true controller: ($scope, ModalService, VoteForm, CurrentUser, Records) -> $sco...
angular.module('loomioApp').directive 'positionButtonsPanel', -> scope: {proposal: '='} restrict: 'E' templateUrl: 'generated/components/thread_page/position_buttons_panel/position_buttons_panel.html' replace: true - controller: ($scope, ModalService, VoteForm, CurrentUser, Records) -> + controlle...
5
0.25
2
3
bc139bde774d3da2768a5fe6724952d6f92eef75
client/views/new_battle.jade
client/views/new_battle.jade
p strong Alt: .alt-input.clearfix.hidden .input-wrapper input(type="text") .buttons-wrapper button.btn.add-button Add button.btn.cancel-button Cancel .alt-dropdown-section.dropdown .select.select-alt(data-toggle="dropdown") ul.dropdown-menu.alt-dropdown(role = "menu") p strong Format: .dropdo...
p strong Alternate Display Name: .alt-input.clearfix.hidden .input-wrapper input(type="text") .buttons-wrapper button.btn.add-button Add button.btn.cancel-button Cancel .alt-dropdown-section.dropdown .select.select-alt(data-toggle="dropdown") ul.dropdown-menu.alt-dropdown(role = "menu") p str...
Copy change to Alternate Display Name
Client: Copy change to Alternate Display Name
Jade
mit
sarenji/pokebattle-sim,sarenji/pokebattle-sim,sarenji/pokebattle-sim
jade
## Code Before: p strong Alt: .alt-input.clearfix.hidden .input-wrapper input(type="text") .buttons-wrapper button.btn.add-button Add button.btn.cancel-button Cancel .alt-dropdown-section.dropdown .select.select-alt(data-toggle="dropdown") ul.dropdown-menu.alt-dropdown(role = "menu") p strong...
p - strong Alt: + strong Alternate Display Name: .alt-input.clearfix.hidden .input-wrapper input(type="text") .buttons-wrapper button.btn.add-button Add button.btn.cancel-button Cancel .alt-dropdown-section.dropdown .select.select-alt(data-toggle="dropdown") ul.dropdown-menu....
2
0.052632
1
1
700a2f46efac1136206d218d0917c5f6ff0c5009
android/pts-spp.txt
android/pts-spp.txt
PTS test results for SPP PTS version: 5.2 Tested: 21-July-2014 Android version: 4.4.4 Results: PASS test passed FAIL test failed INC test is inconclusive N/A test is disabled due to PICS setup ------------------------------------------------------------------------------- Test Name Result Notes --------------------...
PTS test results for SPP PTS version: 5.2 Tested: 21-July-2014 Android version: 4.4.4 Results: PASS test passed FAIL test failed INC test is inconclusive N/A test is disabled due to PICS setup ------------------------------------------------------------------------------- Test Name Result Notes --------------------...
Update PTS tests for SPP
android/pts: Update PTS tests for SPP
Text
lgpl-2.1
silent-snowman/bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,ComputeCycles/bluez,pkarasev3/bluez,pkarasev3/bluez,mapfau/bluez,pstglia/external-bluetooth-bluez,silent-snowman/bluez,pkarasev3/bluez,silent-snowman/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,pkar...
text
## Code Before: PTS test results for SPP PTS version: 5.2 Tested: 21-July-2014 Android version: 4.4.4 Results: PASS test passed FAIL test failed INC test is inconclusive N/A test is disabled due to PICS setup ------------------------------------------------------------------------------- Test Name Result Notes ----...
PTS test results for SPP PTS version: 5.2 Tested: 21-July-2014 Android version: 4.4.4 Results: PASS test passed FAIL test failed INC test is inconclusive N/A test is disabled due to PICS setup ------------------------------------------------------------------------------- Test Name Resul...
2
0.076923
2
0
53bc98950c2e5f6d4b5a464b73386707034d2a3b
app/src/main/java/de/christinecoenen/code/zapp/models/shows/PersistedMediathekShow.kt
app/src/main/java/de/christinecoenen/code/zapp/models/shows/PersistedMediathekShow.kt
package de.christinecoenen.code.zapp.models.shows import androidx.room.Embedded import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey import org.joda.time.DateTime @Entity(indices = [Index(value = ["apiId"], unique = true)]) data class PersistedMediathekShow( @PrimaryKey(autoGenerat...
package de.christinecoenen.code.zapp.models.shows import androidx.room.Embedded import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey import org.joda.time.DateTime @Entity(indices = [Index(value = ["apiId"], unique = true)]) data class PersistedMediathekShow( @PrimaryKey(autoGenerat...
Fix NaN error in downloads tab
Fix NaN error in downloads tab
Kotlin
mit
cemrich/zapp
kotlin
## Code Before: package de.christinecoenen.code.zapp.models.shows import androidx.room.Embedded import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey import org.joda.time.DateTime @Entity(indices = [Index(value = ["apiId"], unique = true)]) data class PersistedMediathekShow( @Primar...
package de.christinecoenen.code.zapp.models.shows import androidx.room.Embedded import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey import org.joda.time.DateTime @Entity(indices = [Index(value = ["apiId"], unique = true)]) data class PersistedMediathekShow( ...
2
0.04878
1
1
78233db6f015ecbe1e42399edfd2e3999654b4f2
lib/sepa/banks/danske/danske_response.rb
lib/sepa/banks/danske/danske_response.rb
module Sepa class DanskeResponse < Response def bank_encryption_cert @bank_encryption_cert ||= extract_cert(doc, 'BankEncryptionCert', DANSKE_PKI) end def bank_signing_cert @bank_signing_cert ||= extract_cert(doc, 'BankSigningCert', DANSKE_PKI) end def bank_root_cert @bank_roo...
module Sepa class DanskeResponse < Response def bank_encryption_cert @bank_encryption_cert ||= extract_cert(doc, 'BankEncryptionCert', DANSKE_PKI) end def bank_signing_cert @bank_signing_cert ||= extract_cert(doc, 'BankSigningCert', DANSKE_PKI) end def bank_root_cert @bank_roo...
Add find_node_by_uri to DanskeResponse since they use a slightly different method from identifying xml nodes
Add find_node_by_uri to DanskeResponse since they use a slightly different method from identifying xml nodes
Ruby
mit
devlab-oy/sepa
ruby
## Code Before: module Sepa class DanskeResponse < Response def bank_encryption_cert @bank_encryption_cert ||= extract_cert(doc, 'BankEncryptionCert', DANSKE_PKI) end def bank_signing_cert @bank_signing_cert ||= extract_cert(doc, 'BankSigningCert', DANSKE_PKI) end def bank_root_cert...
module Sepa class DanskeResponse < Response def bank_encryption_cert @bank_encryption_cert ||= extract_cert(doc, 'BankEncryptionCert', DANSKE_PKI) end def bank_signing_cert @bank_signing_cert ||= extract_cert(doc, 'BankSigningCert', DANSKE_PKI) end def bank_r...
8
0.275862
8
0
a043b9a862caa721cf0ce65bdcee3518416aef26
lib/generators/atlassian_jwt_authentication/templates/jwt_token.rb
lib/generators/atlassian_jwt_authentication/templates/jwt_token.rb
class JwtToken < ActiveRecord::Base <% if database_name.present? %> databases = YAML::load(IO.read('config/database_<%= database_name %>.yml')) establish_connection databases[Rails.env] <% end %> has_many :jwt_users, dependent: :destroy end
class JwtToken < ActiveRecord::Base <% if database_name.present? %> databases = YAML::load(IO.read('config/database_<%= database_name %>.yml')) establish_connection databases[Rails.env] <% end %> has_many :jwt_users, dependent: :destroy attr_accessible :addon_key, :client_key, :shared_secret, :product_typ...
Add attr_accessible for JwtToken fields.
Add attr_accessible for JwtToken fields.
Ruby
mit
MeisterLabs/atlassian-jwt-authentication,MeisterLabs/atlassian-jwt-authentication
ruby
## Code Before: class JwtToken < ActiveRecord::Base <% if database_name.present? %> databases = YAML::load(IO.read('config/database_<%= database_name %>.yml')) establish_connection databases[Rails.env] <% end %> has_many :jwt_users, dependent: :destroy end ## Instruction: Add attr_accessible for JwtToken fie...
class JwtToken < ActiveRecord::Base <% if database_name.present? %> databases = YAML::load(IO.read('config/database_<%= database_name %>.yml')) establish_connection databases[Rails.env] <% end %> has_many :jwt_users, dependent: :destroy + + attr_accessible :addon_key, :client_key, :shared_se...
2
0.25
2
0
e69b86dc677dadb9d847549c30ebcf3f5090063b
Test/CMakeLists.txt
Test/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11) project(sgetest) # Library includes: include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) # Test includes: include_directories(../Source/Lib) # Source Files (Any .cpp file under Test/ will be included.) file(GLOB_RECURSE SOURCES *.cpp .) # Builds: sgetest add_e...
cmake_minimum_required(VERSION 2.8.11) project(sgetest) # Library includes: include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) # Test includes: include_directories(../Source/Lib) # Source Files (Any .cpp file under Test/ will be included.) file(GLOB_RECURSE SOURCES *.cpp .) # Convenience test comm...
Add convenient target to run tests
Add convenient target to run tests
Text
bsd-3-clause
stuhacking/SGEngine-Cpp,stuhacking/SGEngine-Cpp,stuhacking/SGEngine-Cpp
text
## Code Before: cmake_minimum_required(VERSION 2.8.11) project(sgetest) # Library includes: include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) # Test includes: include_directories(../Source/Lib) # Source Files (Any .cpp file under Test/ will be included.) file(GLOB_RECURSE SOURCES *.cpp .) # Build...
cmake_minimum_required(VERSION 2.8.11) project(sgetest) # Library includes: include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) # Test includes: include_directories(../Source/Lib) # Source Files (Any .cpp file under Test/ will be included.) file(GLOB_RECURSE SOURCES *.cpp .) ...
6
0.375
6
0
841ef3882528557830a39b6a995bf47510847d15
README.rst
README.rst
============== MPI for Python ============== Overview -------- Welcome to MPI for Python. This package provides Python bindings for the *Message Passing Interface* (`MPI <http://www.mpi-forum.org/>`_) standard. It is implemented on top of the MPI-1/2/3 specification and exposes an API which grounds on the standard MP...
============== MPI for Python ============== [![Build Status](https://api.travis-ci.org/mpi4py/mpi4py.png?branch=master)](https://travis-ci.org/mpi4py/mpi4py) Overview -------- Welcome to MPI for Python. This package provides Python bindings for the *Message Passing Interface* (`MPI <http://www.mpi-forum.org/>`_) st...
Add travis build status to readme
Add travis build status to readme
reStructuredText
bsd-2-clause
pressel/mpi4py,pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py
restructuredtext
## Code Before: ============== MPI for Python ============== Overview -------- Welcome to MPI for Python. This package provides Python bindings for the *Message Passing Interface* (`MPI <http://www.mpi-forum.org/>`_) standard. It is implemented on top of the MPI-1/2/3 specification and exposes an API which grounds on...
============== MPI for Python ============== + + [![Build Status](https://api.travis-ci.org/mpi4py/mpi4py.png?branch=master)](https://travis-ci.org/mpi4py/mpi4py) Overview -------- Welcome to MPI for Python. This package provides Python bindings for the *Message Passing Interface* (`MPI <http://www...
2
0.083333
2
0
c273a3dd7f0ae3d2b31c1dbc89ce1352d25945d2
lib/active_record/turntable/active_record_ext/connection_handler_extension.rb
lib/active_record/turntable/active_record_ext/connection_handler_extension.rb
module ActiveRecord::Turntable module ActiveRecordExt module ConnectionHandlerExtension extend ActiveSupport::Concern included do alias_method_chain :pool_for, :turntable end private # @note Override not to establish_connection destroy existing connection pool proxy object...
module ActiveRecord::Turntable module ActiveRecordExt module ConnectionHandlerExtension extend ActiveSupport::Concern included do alias_method_chain :pool_for, :turntable end private # @note Override not to establish_connection destroy existing connection pool proxy object...
Fix not to destroy other database extension's connection proxy object
Fix not to destroy other database extension's connection proxy object
Ruby
mit
drecom/activerecord-turntable,sue445/activerecord-turntable,if1live/activerecord-turntable,gussan/activerecord-turntable,monsterstrike/activerecord-turntable
ruby
## Code Before: module ActiveRecord::Turntable module ActiveRecordExt module ConnectionHandlerExtension extend ActiveSupport::Concern included do alias_method_chain :pool_for, :turntable end private # @note Override not to establish_connection destroy existing connection p...
module ActiveRecord::Turntable module ActiveRecordExt module ConnectionHandlerExtension extend ActiveSupport::Concern included do alias_method_chain :pool_for, :turntable end private # @note Override not to establish_connection destroy existing conn...
8
0.25
4
4
bf33c3e92d8eb65a5351cd3455c4197a6fbf2b29
requirements.txt
requirements.txt
numpy >= 1.7.0 scipy >= 0.9 matplotlib >= 1.1.0 sphinx numpydoc >= 0.3 h5py >= 2.0.1 netCDF4 >= 1.0 gdal pytz xmltodict
numpy >= 1.7.0 scipy >= 0.9 matplotlib >= 1.1.0 sphinx numpydoc >= 0.3 h5py >= 2.0.1 netCDF4 >= 1.0 gdal pytz xmltodict importlib
FIX merge imports with default wradlib 2
FIX merge imports with default wradlib 2 --HG-- branch : feature/eg/gabella_polar
Text
mit
wradlib/wradlib,heistermann/wradlib,heistermann/wradlib,wradlib/wradlib,kmuehlbauer/wradlib,kmuehlbauer/wradlib
text
## Code Before: numpy >= 1.7.0 scipy >= 0.9 matplotlib >= 1.1.0 sphinx numpydoc >= 0.3 h5py >= 2.0.1 netCDF4 >= 1.0 gdal pytz xmltodict ## Instruction: FIX merge imports with default wradlib 2 --HG-- branch : feature/eg/gabella_polar ## Code After: numpy >= 1.7.0 scipy >= 0.9 matplotlib >= 1.1.0 sphinx numpydoc >= 0...
numpy >= 1.7.0 scipy >= 0.9 matplotlib >= 1.1.0 sphinx numpydoc >= 0.3 h5py >= 2.0.1 netCDF4 >= 1.0 gdal pytz xmltodict + importlib
1
0.1
1
0
bc6caeabccf7de07c46d86edefa2583302b9c11f
pkgs/applications/networking/browsers/chromium/upstream-info.nix
pkgs/applications/networking/browsers/chromium/upstream-info.nix
{ beta = { sha256 = "1lix5wzcwf666vsdbdzz071rynswlxg5414k3nsrmlxwxhyh6qi4"; sha256bin64 = "02cv9vc1l2nlwa4a0lc7cj9c9czrwp1jd8d024bq16a5fvmhl01l"; version = "54.0.2840.50"; }; dev = { sha256 = "06kcymwi0wfir7w10g8viayk2h0b5a66dav76mlia4lm30p502kz"; sha256bin64 = "0mgamiffnnkaw8c68b5kyna84x7hlhr...
{ beta = { sha256 = "0f6cqvhlg06lrf4bzaiwzm9yi3fi1dk5jrzvjcg7alw3mzrmh2wv"; sha256bin64 = "02cv9vc1l2nlwa4a0lc7cj9c9czrwp1jd8d024bq16a5fvmhl01l"; version = "54.0.2840.50"; }; dev = { sha256 = "06kcymwi0wfir7w10g8viayk2h0b5a66dav76mlia4lm30p502kz"; sha256bin64 = "0mgamiffnnkaw8c68b5kyna84x7hlhr...
Fix wrong hash for beta channel
chromium: Fix wrong hash for beta channel It seems that upstream has re-uploaded the tarball again (see 0c2683cc110659d57e36329585469d5d653a0817). I've verified the new hash from two different hosts. Signed-off-by: aszlig <ee1aa092358634f9c53f01b5a783726c9e21b35a@redmoonstudios.org>
Nix
mit
SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixO...
nix
## Code Before: { beta = { sha256 = "1lix5wzcwf666vsdbdzz071rynswlxg5414k3nsrmlxwxhyh6qi4"; sha256bin64 = "02cv9vc1l2nlwa4a0lc7cj9c9czrwp1jd8d024bq16a5fvmhl01l"; version = "54.0.2840.50"; }; dev = { sha256 = "06kcymwi0wfir7w10g8viayk2h0b5a66dav76mlia4lm30p502kz"; sha256bin64 = "0mgamiffnnkaw8c...
{ beta = { - sha256 = "1lix5wzcwf666vsdbdzz071rynswlxg5414k3nsrmlxwxhyh6qi4"; + sha256 = "0f6cqvhlg06lrf4bzaiwzm9yi3fi1dk5jrzvjcg7alw3mzrmh2wv"; sha256bin64 = "02cv9vc1l2nlwa4a0lc7cj9c9czrwp1jd8d024bq16a5fvmhl01l"; version = "54.0.2840.50"; }; dev = { sha256 = "06kcymwi0wfir7w10g...
2
0.117647
1
1
7e9ae12a1d9c3a8699817f609e42c251ee08844c
docs/development.rst
docs/development.rst
Development =========== Since latest release -------------------- Version 0.1.0 (11 December 2017) -------------------------------- Initial release
Development =========== Since latest release -------------------- Add vertical diffusion of mass between layers (2 March 2018) Version 0.1.0 (11 December 2017) -------------------------------- Initial release
Update changelog in docs with vert. diffusion
Update changelog in docs with vert. diffusion
reStructuredText
mit
edoddridge/MIM,edoddridge/aronnax
restructuredtext
## Code Before: Development =========== Since latest release -------------------- Version 0.1.0 (11 December 2017) -------------------------------- Initial release ## Instruction: Update changelog in docs with vert. diffusion ## Code After: Development =========== Since latest release -------------------- Add ...
Development =========== Since latest release -------------------- + Add vertical diffusion of mass between layers (2 March 2018) + Version 0.1.0 (11 December 2017) -------------------------------- Initial release
2
0.166667
2
0
55120115af98f6d2f0c09daecfa7e0587d597425
gcsweb.k8s.io/service.yaml
gcsweb.k8s.io/service.yaml
apiVersion: v1 kind: Service metadata: name: gcsweb namespace: gcsweb labels: app: gcsweb spec: selector: app: gcsweb type: NodePort ports: - name: http port: 80 targetPort: 8080
apiVersion: v1 kind: Service metadata: name: gcsweb namespace: gcsweb annotations: cloud.google.com/neg: '{"ingress": true}' spec: selector: app: gcsweb type: ClusterIP ports: - name: http port: 80 targetPort: 8080
Convert gcsweb to VPC_native LB
Convert gcsweb to VPC_native LB
YAML
apache-2.0
kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io
yaml
## Code Before: apiVersion: v1 kind: Service metadata: name: gcsweb namespace: gcsweb labels: app: gcsweb spec: selector: app: gcsweb type: NodePort ports: - name: http port: 80 targetPort: 8080 ## Instruction: Convert gcsweb to VPC_native LB ## Code After: apiVersion: v1 kind: Ser...
apiVersion: v1 kind: Service metadata: name: gcsweb namespace: gcsweb - labels: - app: gcsweb + annotations: + cloud.google.com/neg: '{"ingress": true}' spec: selector: app: gcsweb - type: NodePort + type: ClusterIP ports: - name: http port: 80 targetP...
6
0.4
3
3
a7d2d81dffe6e598add5e159bd94e016eecec87a
SIGS/app/controllers/user_controller.rb
SIGS/app/controllers/user_controller.rb
class UserController < ApplicationController before_action :logged_in?, except: [:new,:create,:user_params] def new @user = User.new @user.build_department_assistant @user.build_coordinator @user.build_administrative_assistant end def show @user = User.find(params[:id]) end #Creating a ...
class UserController < ApplicationController before_action :logged_in?, except: [:new,:create,:user_params] def new @user = User.new @user.build_department_assistant @user.build_coordinator @user.build_administrative_assistant end def show @user = User.find(params[:id]) end #Creating a ...
Add destroy method of User Controller
Add destroy method of User 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 UserController < ApplicationController before_action :logged_in?, except: [:new,:create,:user_params] def new @user = User.new @user.build_department_assistant @user.build_coordinator @user.build_administrative_assistant end def show @user = User.find(params[:id]) end...
class UserController < ApplicationController before_action :logged_in?, except: [:new,:create,:user_params] def new @user = User.new @user.build_department_assistant @user.build_coordinator @user.build_administrative_assistant end def show @user = User.find(params[:id])...
12
0.235294
12
0
7278be28410c111280d4ccb566842419979843d3
mla_game/apps/transcript/management/commands/fake_game_one_gameplay.py
mla_game/apps/transcript/management/commands/fake_game_one_gameplay.py
import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) class Command(BaseCommand): help = 'Creates random votes for 5 phrases in a random t...
import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) from ...tasks import update_transcript_stats class Command(BaseCommand): help = 'Cre...
Use an actually random transcript; update stats immediately
Use an actually random transcript; update stats immediately
Python
mit
WGBH/FixIt,WGBH/FixIt,WGBH/FixIt
python
## Code Before: import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) class Command(BaseCommand): help = 'Creates random votes for 5 phras...
import random from django.core.management.base import BaseCommand from django.contrib.auth.models import User from mla_game.apps.accounts.models import Profile from ...models import ( Transcript, TranscriptPhraseDownvote ) + from ...tasks import update_transcript_stats class Command(B...
4
0.129032
3
1
58042c081bff56641d05a265b43c13e6546f68f6
gui/test/server_control/test_obmc_gui_virtual_media.robot
gui/test/server_control/test_obmc_gui_virtual_media.robot
*** Settings *** Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control". Resource ../../lib/resource.robot Suite Setup Launch Browser And Login OpenBMC GUI Suite Teardown Close Browser Test Setup Test Setup Execution *** Variables *** ${xpath_start_button} //*[@class=...
*** Settings *** Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control". Resource ../../lib/resource.robot Suite Setup Launch Browser And Login OpenBMC GUI Suite Teardown Close Browser Test Setup Test Setup Execution *** Variables *** ${xpath_start_button} //*[@class=...
Fix typo in the code
Fix typo in the code Change-Id: I6f3f58d3df1cdec4b9453daae68b573f64dc0a6c Signed-off-by: George Keishing <bef0a9ecac45fb57611777c8270153994e13fd2e@in.ibm.com>
RobotFramework
apache-2.0
openbmc/openbmc-test-automation,openbmc/openbmc-test-automation
robotframework
## Code Before: *** Settings *** Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control". Resource ../../lib/resource.robot Suite Setup Launch Browser And Login OpenBMC GUI Suite Teardown Close Browser Test Setup Test Setup Execution *** Variables *** ${xpath_start_button} ...
*** Settings *** Documentation Test OpenBMC GUI "Virtual Media" sub-menu of "Server control". Resource ../../lib/resource.robot Suite Setup Launch Browser And Login OpenBMC GUI Suite Teardown Close Browser Test Setup Test Setup Execution *** Variables *** ${xpath_star...
10
0.227273
5
5
6e8ed853c5263f194789bb452f84bb874e69a254
milton-caldav-demo/src/main/java/scratch/PrincipalsReport.java
milton-caldav-demo/src/main/java/scratch/PrincipalsReport.java
package scratch; import com.ettrema.httpclient.ReportMethod; import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.StringRequestEntity; /** * * @author brad */ public class PrincipalsReport { /** * @param args the command line arguments ...
package scratch; import com.ettrema.httpclient.ReportMethod; import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.StringRequestEntity; /** * * @author brad */ public class PrincipalsReport { /** * @param args the command line arguments ...
Change context to / to support OS X and Windows
Change context to / to support OS X and Windows
Java
apache-2.0
arkxu/milton2,arkxu/milton2,arkxu/milton2
java
## Code Before: package scratch; import com.ettrema.httpclient.ReportMethod; import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.StringRequestEntity; /** * * @author brad */ public class PrincipalsReport { /** * @param args the command...
package scratch; import com.ettrema.httpclient.ReportMethod; import java.io.IOException; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.methods.StringRequestEntity; /** * * @author brad */ public class PrincipalsReport { /** * @param ar...
2
0.068966
1
1
144b394a4567b4e985614a14cd0f7fd15501d4d9
lib/wulin_master/components/grid/grid_columns.rb
lib/wulin_master/components/grid/grid_columns.rb
module WulinMaster module GridColumns extend ActiveSupport::Concern included do class_eval do class << self attr_reader :columns_pool end end end module ClassMethods # Private - executed when class is subclassed def initialize_columns @co...
module WulinMaster module GridColumns extend ActiveSupport::Concern included do class_eval do class_attribute :columns_pool end end module ClassMethods # Private - executed when class is subclassed def initialize_columns self.columns_pool ||= [Column.new(:...
Revert "MISC - use attr_reader i/o class_attribute for columns_pool"
Revert "MISC - use attr_reader i/o class_attribute for columns_pool" This reverts commit ead8c75abbfc1cd6adb66dee63d21e1ed66f8cd6.
Ruby
mit
ekohe/wulin_master,ekohe/wulin_master,ekohe/wulin_master
ruby
## Code Before: module WulinMaster module GridColumns extend ActiveSupport::Concern included do class_eval do class << self attr_reader :columns_pool end end end module ClassMethods # Private - executed when class is subclassed def initialize_col...
module WulinMaster module GridColumns extend ActiveSupport::Concern included do class_eval do - class << self - attr_reader :columns_pool ? ^^ ^^ ---- + class_attribute :columns_pool ? ^^^^^^ ^^^^ - end end end ...
12
0.210526
5
7
9287d9dbb81769589d34b6f6360303ff1b2b753c
source/Pictus/reg_filter_mode_translator.cpp
source/Pictus/reg_filter_mode_translator.cpp
namespace Reg { namespace Internal { boost::optional<FilterModeTranslator::external_type> FilterModeTranslator::get_value(internal_type const sval) { if (sval.empty()) return boost::none; if (sval == "Bilinear") { return Filter::Mode::Bilinear; } if (sval == "Nearest") { return Filter::Mode::Nea...
namespace Reg { namespace Internal { boost::optional<FilterModeTranslator::external_type> FilterModeTranslator::get_value(internal_type const sval) { if (sval.empty()) return boost::none; if (sval == "Bilinear") { return Filter::Mode::Bilinear; } if (sval == "Nearest") { return Filter::Mode::Nea...
Fix compile errors on Linux
Fix compile errors on Linux
C++
mit
poppeman/Pictus,poppeman/Pictus,poppeman/Pictus
c++
## Code Before: namespace Reg { namespace Internal { boost::optional<FilterModeTranslator::external_type> FilterModeTranslator::get_value(internal_type const sval) { if (sval.empty()) return boost::none; if (sval == "Bilinear") { return Filter::Mode::Bilinear; } if (sval == "Nearest") { return F...
namespace Reg { namespace Internal { boost::optional<FilterModeTranslator::external_type> FilterModeTranslator::get_value(internal_type const sval) { if (sval.empty()) return boost::none; if (sval == "Bilinear") { return Filter::Mode::Bilinear; } if (sval == "Nearest") { retu...
6
0.146341
3
3
3353261d9036b691fe83b3f92598b25238b8abbc
recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx.cfg
recipes-kernel/linux/config/xilinx-common/bsp/xilinx/soc/drivers/xilinx.cfg
CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_UARTLITE=y CONFIG_SERIAL_UARTLITE_CONSOLE=y # DMA CONFIG_DMADEVICES=y CONFIG_XILINX_VDMA=y # Watchdog CONFIG_WATCHDOG=y CONFIG_XILINX_WATCHDOG=y # Ethernet CONFIG_XILINX_EMACLITE=y CONFIG_XILINX_AXI_EMAC=y # GPIO CONFIG_GPIOLIB=y CONFIG_OF_GPIO=y CONFI...
CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_UARTLITE=y CONFIG_SERIAL_UARTLITE_CONSOLE=y CONFIG_SERIAL_OF_PLATFORM=y # DMA CONFIG_DMADEVICES=y CONFIG_XILINX_VDMA=y # Watchdog CONFIG_WATCHDOG=y CONFIG_XILINX_WATCHDOG=y # Ethernet CONFIG_XILINX_EMACLITE=y CONFIG_XILINX_AXI_EMAC=y # GPIO CONFIG_GPIO...
Enable SERIAL_OF_PLATFORM to fix up dt parsing
linux/configs: Enable SERIAL_OF_PLATFORM to fix up dt parsing SERIAL_OF_PLATFORM needs to be set in order for the serial 8250 driver to parse and probe device tree configuration for 8250 nodes. This is needed so that the uart 16550 instances are probed correctly. Signed-off-by: Nathan Rossi <2e8aa918660411855c6d44d5b...
INI
mit
Xilinx/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx,nathanrossi/meta-xilinx,Xilinx/meta-xilinx
ini
## Code Before: CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_UARTLITE=y CONFIG_SERIAL_UARTLITE_CONSOLE=y # DMA CONFIG_DMADEVICES=y CONFIG_XILINX_VDMA=y # Watchdog CONFIG_WATCHDOG=y CONFIG_XILINX_WATCHDOG=y # Ethernet CONFIG_XILINX_EMACLITE=y CONFIG_XILINX_AXI_EMAC=y # GPIO CONFIG_GPIOLIB=y CONFIG...
CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_UARTLITE=y CONFIG_SERIAL_UARTLITE_CONSOLE=y + CONFIG_SERIAL_OF_PLATFORM=y # DMA CONFIG_DMADEVICES=y CONFIG_XILINX_VDMA=y # Watchdog CONFIG_WATCHDOG=y CONFIG_XILINX_WATCHDOG=y # Ethernet CONFIG_XILINX_EMACLITE=y CONFIG_XIL...
1
0.026316
1
0
8c51c80ac04935f4cc6ba5f531f826bf087b1d0e
php_cs.xml
php_cs.xml
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony/"> <exclude name="Symfony.Commenting"/> <exclude name="Symfony.Functions.ScopeOrder"/> ...
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony/"> <exclude name="Symfony.Commenting"/> <exclude name="Symfony.Functions.ScopeOrder"/> ...
Update PHP Code Sniffer config to ignore the reporting HTML template
Update PHP Code Sniffer config to ignore the reporting HTML template
XML
mit
scheb/tombstone,scheb/tombstone,scheb/tombstone
xml
## Code Before: <?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony/"> <exclude name="Symfony.Commenting"/> <exclude name="Symfony.Function...
<?xml version="1.0"?> <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> <rule ref="./vendor/escapestudios/symfony2-coding-standard/Symfony/"> <exclude name="Symfony.Commenting"/> <exclude name="Symfony.Functions.Scop...
4
0.363636
4
0
804ed81acbd6e6d03bb725f76deb1dd1ecce2b79
app/views/spree/admin/shared/_calculator_fields.html.haml
app/views/spree/admin/shared/_calculator_fields.html.haml
%fieldset#calculator_fields.no-border-bottom %legend{align: "center"}= t(:calculator) #preference-settings .row .alpha.four.columns = f.label(:calculator_type, t(:calculator), for: 'calc_type') .omega.twelve.columns = f.select(:calculator_type, @calculators.map { |c| [c.description, ...
%fieldset#calculator_fields.no-border-bottom %legend{align: "center"}= t(:fees) #preference-settings .row .alpha.four.columns = f.label(:calculator_type, t(:calculator), for: 'calc_type') .omega.twelve.columns = f.select(:calculator_type, @calculators.map { |c| [c.description, c.name...
Change translation for calculator section from Calculator to Fees
Change translation for calculator section from Calculator to Fees
Haml
agpl-3.0
mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork
haml
## Code Before: %fieldset#calculator_fields.no-border-bottom %legend{align: "center"}= t(:calculator) #preference-settings .row .alpha.four.columns = f.label(:calculator_type, t(:calculator), for: 'calc_type') .omega.twelve.columns = f.select(:calculator_type, @calculators.map { |c| ...
%fieldset#calculator_fields.no-border-bottom - %legend{align: "center"}= t(:calculator) ? ^^^^^^^^^^ + %legend{align: "center"}= t(:fees) ? ^^^^ #preference-settings .row .alpha.four.columns = f.label(:calculator_type, t(:...
2
0.105263
1
1