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
563d5704a0e50e85ff5249fd3fde15a824fa74dc
V/V/Controllers/ContactsViewController.swift
V/V/Controllers/ContactsViewController.swift
// // ContactsViewController.swift // V // // Created by Dulio Denis on 7/5/16. // Copyright © 2016 Dulio Denis. All rights reserved. // import UIKit import CoreData import Contacts import ContactsUI class ContactsViewController: UIViewController, ContextViewController { // in order to fulfill the ContextVC ...
// // ContactsViewController.swift // V // // Created by Dulio Denis on 7/5/16. // Copyright © 2016 Dulio Denis. All rights reserved. // import UIKit import CoreData import Contacts import ContactsUI class ContactsViewController: UIViewController, ContextViewController { // in order to fulfill the ContextVC ...
Set the title to the ContactsVC
Set the title to the ContactsVC
Swift
mit
duliodenis/v
swift
## Code Before: // // ContactsViewController.swift // V // // Created by Dulio Denis on 7/5/16. // Copyright © 2016 Dulio Denis. All rights reserved. // import UIKit import CoreData import Contacts import ContactsUI class ContactsViewController: UIViewController, ContextViewController { // in order to fulfil...
// // ContactsViewController.swift // V // // Created by Dulio Denis on 7/5/16. // Copyright © 2016 Dulio Denis. All rights reserved. // import UIKit import CoreData import Contacts import ContactsUI class ContactsViewController: UIViewController, ContextViewController { // in...
2
0.046512
1
1
4184d968668ebd590d927aea7ecbaf7088473cb5
bot/action/util/reply_markup/inline_keyboard/button.py
bot/action/util/reply_markup/inline_keyboard/button.py
class InlineKeyboardButton: def __init__(self, data: dict): self.data = data @staticmethod def switch_inline_query(text: str, query: str = "", current_chat: bool = True): switch_inline_query_key = "switch_inline_query_current_chat" if current_chat else "switch_inline_query" return I...
class InlineKeyboardButton: def __init__(self, data: dict): self.data = data @staticmethod def create(text: str, url: str = None, callback_data: str = None, switch_inline_query: str = None, switch_inline_query_current_chat: str = None): ...
Add create static method to InlineKeyboardButton with all possible parameters
Add create static method to InlineKeyboardButton with all possible parameters
Python
agpl-3.0
alvarogzp/telegram-bot,alvarogzp/telegram-bot
python
## Code Before: class InlineKeyboardButton: def __init__(self, data: dict): self.data = data @staticmethod def switch_inline_query(text: str, query: str = "", current_chat: bool = True): switch_inline_query_key = "switch_inline_query_current_chat" if current_chat else "switch_inline_query" ...
class InlineKeyboardButton: def __init__(self, data: dict): self.data = data + + @staticmethod + def create(text: str, + url: str = None, + callback_data: str = None, + switch_inline_query: str = None, + switch_inline_query_current_c...
19
1.727273
19
0
14263550bed541fce2ab4f01a3e389872b82f58d
pan-domain-auth-verification/src/main/scala/com/gu/pandomainauth/package.scala
pan-domain-auth-verification/src/main/scala/com/gu/pandomainauth/package.scala
package com.gu package object pandomainauth { case class PublicKey(key: String) case class PrivateKey(key: String) case class Secret(secret: String) }
package com.gu package object pandomainauth { case class PublicKey(key: String) extends AnyVal case class PrivateKey(key: String) extends AnyVal case class Secret(secret: String) extends AnyVal }
Use AnyVal to automatically unwrap at compile time
Use AnyVal to automatically unwrap at compile time
Scala
apache-2.0
guardian/pan-domain-authentication,guardian/pan-domain-authentication,guardian/pan-domain-authentication,guardian/pan-domain-authentication
scala
## Code Before: package com.gu package object pandomainauth { case class PublicKey(key: String) case class PrivateKey(key: String) case class Secret(secret: String) } ## Instruction: Use AnyVal to automatically unwrap at compile time ## Code After: package com.gu package object pandomainauth { case class Pu...
package com.gu package object pandomainauth { - case class PublicKey(key: String) + case class PublicKey(key: String) extends AnyVal ? +++++++++++++++ - case class PrivateKey(key: String) + case class PrivateKey(key: String) extends AnyVal ? ...
6
0.857143
3
3
8509033597fcc3b9774d304bcff82f1cad107183
src/MartaBernach/MusicStore/FrontendBundle/Resources/views/Main/album.html.twig
src/MartaBernach/MusicStore/FrontendBundle/Resources/views/Main/album.html.twig
{% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %} {% block content %} <h2>{{ album.band }} - {{ album.name }}</h2> <ul class="list-group"> <li class="list-group-item"> <b>Rok wydania:</b> {{ album.releaseDate|date("Y") }} </li> {% if album.g...
{% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %} {% block content %} <h2><a href="{{ path('front_band', {'slug': album.band.slug}) }}">{{ album.band.name }}</a> - {{ album.name }}</h2> <ul class="list-group"> <li class="list-group-item"> <b>Rok wydania:</b> ...
Add link to band on album page
Add link to band on album page
Twig
mit
karminowa/martas-music-store,karminowa/martas-music-store
twig
## Code Before: {% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %} {% block content %} <h2>{{ album.band }} - {{ album.name }}</h2> <ul class="list-group"> <li class="list-group-item"> <b>Rok wydania:</b> {{ album.releaseDate|date("Y") }} </li> {% if ...
{% extends 'MartaBernachMusicStoreFrontendBundle:Main:index.html.twig' %} {% block content %} - <h2>{{ album.band }} - {{ album.name }}</h2> + <h2><a href="{{ path('front_band', {'slug': album.band.slug}) }}">{{ album.band.name }}</a> - {{ album.name }}</h2> <ul class="list-group"> <li...
2
0.052632
1
1
f71689b0b26748eb4f9f2719b70c7096995224ad
src/Listabierta/Bundle/MunicipalesBundle/Resources/views/Mail/candidacy_vote_address.html.twig
src/Listabierta/Bundle/MunicipalesBundle/Resources/views/Mail/candidacy_vote_address.html.twig
Hola <b>{{ name }},<br /> <br /> Puedes proporcionar este enlace público de votacion a los votantes para que procedan rellenando el formulario que les aparecerá:<br /><br /> <br /> <a href="http://municipales2015.listabierta.org/{{ address_slug }}/vota">http://municipales2015.listabierta.org/{{ address_slug }}/vota</a...
{{ 'mail.candidacy_vote_address.hello'|trans }} <b>{{ name }}</b>,<br /> <br /> {{ 'mail.candidacy_vote_address.can_public'|trans }}:<br /><br /> <br /> <a href="{{ path('town_candidacy_vote_step1', { 'address' : address_slug }) }}" title="{{ 'town.step1.header'|trans }}">{{ path('town_candidacy_vote_step1', { 'address...
Update mail candidacy vote address template
Update mail candidacy vote address template
Twig
agpl-3.0
listabierta/census-ahoraencomun,listabierta/census-ahoraencomun,listabierta/census-ahoraencomun,listabierta/census-ahoraencomun
twig
## Code Before: Hola <b>{{ name }},<br /> <br /> Puedes proporcionar este enlace público de votacion a los votantes para que procedan rellenando el formulario que les aparecerá:<br /><br /> <br /> <a href="http://municipales2015.listabierta.org/{{ address_slug }}/vota">http://municipales2015.listabierta.org/{{ address...
- Hola <b>{{ name }},<br /> + {{ 'mail.candidacy_vote_address.hello'|trans }} <b>{{ name }}</b>,<br /> <br /> + {{ 'mail.candidacy_vote_address.can_public'|trans }}:<br /><br /> - Puedes proporcionar este enlace público de votacion a los votantes para que procedan - rellenando el formulario que les aparecerá:<br /><...
7
1
3
4
629655bf7e5b665b07822721297655c40bda69c9
lib/ckeditor_tiki/tikistyles.js
lib/ckeditor_tiki/tikistyles.js
/* * $Id$ * (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project * * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. * * Ckeditor styles definition for Tiki 6 */ CKED...
/* * $Id$ * (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project * * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. * * Ckeditor styles definition for Tiki 6 */ /* I...
Add useful info in source
Add useful info in source git-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@61378 b456876b-0849-0410-b77d-98878d47e9d5
JavaScript
lgpl-2.1
oregional/tiki,oregional/tiki,oregional/tiki,oregional/tiki,tikiorg/tiki,tikiorg/tiki,tikiorg/tiki,tikiorg/tiki
javascript
## Code Before: /* * $Id$ * (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project * * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. * * Ckeditor styles definition for T...
/* * $Id$ * (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project * * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. * * Ckeditor styles definition for T...
8
0.421053
8
0
ce8dca20b8c364fa079330d41a0daff6a8842e0c
ir/be/test/mux.c
ir/be/test/mux.c
int f(int a, int b) { return a && b ? 11 : 42; } int x = 2, y = 3; int main(void) { int ret = 23 < f(x,y); printf("%d\n", ret); return ret; }
/*$ -march=pentium3 $*/ int f(int a, int b) { return a && b ? 11 : 42; } int x = 2, y = 3; int main(void) { int ret = 23 < f(x,y); printf("%d\n", ret); return ret; }
Use march=pentium3 to use if-conv
Use march=pentium3 to use if-conv [r21671]
C
lgpl-2.1
davidgiven/libfirm,jonashaag/libfirm,killbug2004/libfirm,killbug2004/libfirm,8l/libfirm,libfirm/libfirm,8l/libfirm,MatzeB/libfirm,8l/libfirm,libfirm/libfirm,MatzeB/libfirm,MatzeB/libfirm,8l/libfirm,davidgiven/libfirm,libfirm/libfirm,killbug2004/libfirm,davidgiven/libfirm,8l/libfirm,jonashaag/libfirm,MatzeB/libfirm,kill...
c
## Code Before: int f(int a, int b) { return a && b ? 11 : 42; } int x = 2, y = 3; int main(void) { int ret = 23 < f(x,y); printf("%d\n", ret); return ret; } ## Instruction: Use march=pentium3 to use if-conv [r21671] ## Code After: /*$ -march=pentium3 $*/ int f(int a, int b) { return a && b ? 11 : 42; } in...
+ /*$ -march=pentium3 $*/ int f(int a, int b) { return a && b ? 11 : 42; } int x = 2, y = 3; int main(void) { int ret = 23 < f(x,y); printf("%d\n", ret); return ret; }
1
0.083333
1
0
67ced813f639ca0571f3f146668b45617cc989e6
utils/context.js
utils/context.js
'use strict'; var _ = require('lodash'); var path = require('path'); var convert = require(path.resolve(__dirname, './convert.js')); var context = { getDefaults: getDefaults }; function getDefaults(name, module) { var folderName = convert.moduleToFolder(module); return _.clone({ module: module, camelNam...
'use strict'; var _ = require('lodash'); var path = require('path'); var convert = require(path.resolve(__dirname, './convert.js')); var context = { getDefaults: getDefaults }; function getDefaults(name, module) { var folderName = convert.moduleToFolder(module); return _.clone({ module: module, camelNam...
Set <controller> name scoped by modules 'namespace'
Set <controller> name scoped by modules 'namespace'
JavaScript
mit
sysgarage/generator-sys-angular,sysgarage/generator-sys-angular
javascript
## Code Before: 'use strict'; var _ = require('lodash'); var path = require('path'); var convert = require(path.resolve(__dirname, './convert.js')); var context = { getDefaults: getDefaults }; function getDefaults(name, module) { var folderName = convert.moduleToFolder(module); return _.clone({ module: modu...
'use strict'; var _ = require('lodash'); var path = require('path'); var convert = require(path.resolve(__dirname, './convert.js')); var context = { getDefaults: getDefaults }; function getDefaults(name, module) { var folderName = convert.moduleToFolder(module); return _.clone({ mo...
7
0.259259
6
1
5a1a1b4cd67215ea9cd07fdad7715d4ce34c1316
test/Role/Events/AbstractEventTest.php
test/Role/Events/AbstractEventTest.php
<?php namespace CultuurNet\UDB3\Role\Events; use PHPUnit\Framework\TestCase; use ValueObjects\Identity\UUID; class AbstractEventTest extends TestCase { /** * @var UUID */ protected $uuid; /** * @var AbstractEvent */ protected $event; protected function setUp() { ...
<?php namespace CultuurNet\UDB3\Role\Events; use PHPUnit\Framework\TestCase; use ValueObjects\Identity\UUID; class AbstractEventTest extends TestCase { /** * @var UUID */ protected $uuid; /** * @var AbstractEvent */ protected $event; protected function setUp() { ...
Fix test broken by removed deserialize() method
Fix test broken by removed deserialize() method
PHP
apache-2.0
cultuurnet/udb3-php
php
## Code Before: <?php namespace CultuurNet\UDB3\Role\Events; use PHPUnit\Framework\TestCase; use ValueObjects\Identity\UUID; class AbstractEventTest extends TestCase { /** * @var UUID */ protected $uuid; /** * @var AbstractEvent */ protected $event; protected function setUp(...
<?php namespace CultuurNet\UDB3\Role\Events; use PHPUnit\Framework\TestCase; use ValueObjects\Identity\UUID; class AbstractEventTest extends TestCase { /** * @var UUID */ protected $uuid; /** * @var AbstractEvent */ protected $event; p...
12
0.196721
0
12
b9731cd09b2f2b77f74e5106962814f758965138
.github/workflows/maven.yml
.github/workflows/maven.yml
name: CI with Maven on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ${{ matrix.os }} # Steps represent a sequence of tasks that will be executed as part of the job strategy: fail-fast: false matrix: # test against latest updat...
name: CI with Maven on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ${{ matrix.os }} # Steps represent a sequence of tasks that will be executed as part of the job strategy: fail-fast: false matrix: # test against latest updat...
Add WLP licenses and update run command with env vars.
Add WLP licenses and update run command with env vars.
YAML
apache-2.0
WASdev/ci.ant
yaml
## Code Before: name: CI with Maven on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ${{ matrix.os }} # Steps represent a sequence of tasks that will be executed as part of the job strategy: fail-fast: false matrix: # test agai...
name: CI with Maven on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: runs-on: ${{ matrix.os }} # Steps represent a sequence of tasks that will be executed as part of the job strategy: fail-fast: false matrix: ...
8
0.258065
6
2
ecccfceb60dcd628eb026966dba1e912bd4b74e8
src/main/resources/springrtsru/pages/BaseContentPage.html
src/main/resources/springrtsru/pages/BaseContentPage.html
<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> <body> <wicket:extend> <!--<div class="container">--> <!--<div class="base-contents">--> <wicket:child/> <!--</div>--...
<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> <body> <wicket:extend> <div class="container-fluid"> <div class="row"> <wicket:child/> </div> </div> </wicket:ex...
Use fluid container (fit to full screen)
Use fluid container (fit to full screen)
HTML
unlicense
spring-rts-ru/springrts-ru-website,Eltario/springrts-ru-website,Eltario/springrts-ru-website,spring-rts-ru/springrts-ru-website
html
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> <body> <wicket:extend> <!--<div class="container">--> <!--<div class="base-contents">--> <wicket:child/> ...
<?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"> <body> <wicket:extend> - <!--<div class="container">--> ? ---- --- + <div class="container-fluid"> ? ...
8
0.571429
4
4
478d731771bf7889d944ccc175fec0bdadaed57e
includes/ThanksLogFormatter.php
includes/ThanksLogFormatter.php
<?php /** * This class formats log entries for thanks */ class ThanksLogFormatter extends LogFormatter { /** * @inheritDoc * @suppress SecurityCheck-DoubleEscaped Problem with makeUserLink, see T201565 */ protected function getMessageParameters() { $params = parent::getMessageParameters(); // Convert targ...
<?php /** * This class formats log entries for thanks */ class ThanksLogFormatter extends LogFormatter { /** * @inheritDoc */ protected function getMessageParameters() { $params = parent::getMessageParameters(); // Convert target from a pageLink to a userLink since the target is // actually a user, not a ...
Remove unneccessary @suppress after phan-taint-check-plugin upgrade
Remove unneccessary @suppress after phan-taint-check-plugin upgrade Bug: T201565 Change-Id: Ib35e55e5bebbb7dc6ca8ef4f08b519ec2065037b
PHP
mit
wikimedia/mediawiki-extensions-Thanks,wikimedia/mediawiki-extensions-Thanks,wikimedia/mediawiki-extensions-Thanks
php
## Code Before: <?php /** * This class formats log entries for thanks */ class ThanksLogFormatter extends LogFormatter { /** * @inheritDoc * @suppress SecurityCheck-DoubleEscaped Problem with makeUserLink, see T201565 */ protected function getMessageParameters() { $params = parent::getMessageParameters(); ...
<?php /** * This class formats log entries for thanks */ class ThanksLogFormatter extends LogFormatter { /** * @inheritDoc - * @suppress SecurityCheck-DoubleEscaped Problem with makeUserLink, see T201565 */ protected function getMessageParameters() { $params = parent::getMessageParameter...
1
0.041667
0
1
6b1b7be26b5b721424e8d2f23e51903e31d6d6ed
phpunit_browser/README.md
phpunit_browser/README.md
Run PHPUnit in Browser ====================== **Purpose**<br /> Run PHPUnit in browser **Example**<br /> 1. Clone this project into your <webroot>/test. 2. Type the following in your browser: http://localhost/test/phpunit_browser.php 3. The script will load PersonTest.php (which uses Person.php) 4. You should see th...
Run PHPUnit in Browser ====================== **Purpose**<br /> Run PHPUnit in browser **Example**<br /> 1. Clone this project into your <webroot>/test. 2. Type the following in your browser: http://localhost/test/phpunit_browser.php 3. The script will load PersonTest.php (which uses Person.php) 4. You should see th...
Add output on config file
Add output on config file
Markdown
bsd-2-clause
zionsg/standalone-php-scripts,zionsg/standalone-php-scripts
markdown
## Code Before: Run PHPUnit in Browser ====================== **Purpose**<br /> Run PHPUnit in browser **Example**<br /> 1. Clone this project into your <webroot>/test. 2. Type the following in your browser: http://localhost/test/phpunit_browser.php 3. The script will load PersonTest.php (which uses Person.php) 4. Y...
Run PHPUnit in Browser ====================== **Purpose**<br /> Run PHPUnit in browser **Example**<br /> 1. Clone this project into your <webroot>/test. 2. Type the following in your browser: http://localhost/test/phpunit_browser.php 3. The script will load PersonTest.php (which uses Person.php...
4
0.181818
3
1
3bec6113fc517d44585f63ae567939637f1b5dc4
lib/peek/views/faraday.rb
lib/peek/views/faraday.rb
require 'atomic' module Peek module Views class Faraday < View def initialize(options = {}) @duration = Atomic.new(0) @calls = Atomic.new(0) @requests = Atomic.new([].freeze) setup_subscribers end def formatted_duration ms = @duration.value * 1000 ...
require 'atomic' module Peek module Views class Faraday < View def initialize(options = {}) @duration = Atomic.new(0) @calls = Atomic.new(0) @requests = Atomic.new([].freeze) setup_subscribers end def formatted_duration ms = @duration.value * 1000 ...
Include request data in the results.
Include request data in the results.
Ruby
mit
grk/peek-faraday
ruby
## Code Before: require 'atomic' module Peek module Views class Faraday < View def initialize(options = {}) @duration = Atomic.new(0) @calls = Atomic.new(0) @requests = Atomic.new([].freeze) setup_subscribers end def formatted_duration ms = @duration.va...
require 'atomic' module Peek module Views class Faraday < View def initialize(options = {}) @duration = Atomic.new(0) @calls = Atomic.new(0) @requests = Atomic.new([].freeze) setup_subscribers end def formatted_duration ms ...
2
0.043478
1
1
fc2fc91373a355bd8b1c9d599adff2e02d83c76c
.travis.yml
.travis.yml
language: go sudo: false go: - "1.16" - "1.17" - "1.18" - "tip" before_install: - export PATH=$HOME/gopath/bin:$PATH - go get github.com/mattn/goveralls script: - go test -race ./... - go test -coverprofile=coverage.out -cover ./... - goveralls -coverprofile=coverage.out -service=travis-ci matrix:...
language: go sudo: false go: - "1.16" - "1.17" - "1.18" - "tip" before_install: - export PATH=$HOME/gopath/bin:$PATH - go install github.com/mattn/goveralls@latest script: - go test -race ./... - go test -coverprofile=coverage.out -cover ./... - goveralls -coverprofile=coverage.out -service=travis-...
Use go install with version suffix
Use go install with version suffix
YAML
mit
oklahomer/go-sarah
yaml
## Code Before: language: go sudo: false go: - "1.16" - "1.17" - "1.18" - "tip" before_install: - export PATH=$HOME/gopath/bin:$PATH - go get github.com/mattn/goveralls script: - go test -race ./... - go test -coverprofile=coverage.out -cover ./... - goveralls -coverprofile=coverage.out -service=tr...
language: go sudo: false go: - "1.16" - "1.17" - "1.18" - "tip" before_install: - export PATH=$HOME/gopath/bin:$PATH - - go get github.com/mattn/goveralls ? ^^ + - go install github.com/mattn/goveralls@latest ? ^^^ +++ +++++++ script: ...
2
0.083333
1
1
cf03026a27f8f7d35430807d2295bf062c4e0ca9
master/skia_master_scripts/android_factory.py
master/skia_master_scripts/android_factory.py
from skia_master_scripts import factory as skia_factory class AndroidFactory(skia_factory.SkiaFactory): """Overrides for Android builds.""" def Build(self, clobber=None): """Build and return the complete BuildFactory. clobber: boolean indicating whether we should clean before building """ if clo...
from skia_master_scripts import factory as skia_factory class AndroidFactory(skia_factory.SkiaFactory): """Overrides for Android builds.""" def Build(self, clobber=None): """Build and return the complete BuildFactory. clobber: boolean indicating whether we should clean before building """ if clo...
Add RunTests step for Android buildbots
Add RunTests step for Android buildbots Requires https://codereview.appspot.com/5966078 ('Add AddRunCommandList(), a cleaner way of running multiple shell commands as a single buildbot step') to work. Review URL: https://codereview.appspot.com/5975072 git-svn-id: 32fc27f4dcfb6c0385cd9719852b95fe6680452d@3594 2bbb7eff...
Python
bsd-3-clause
google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Ti...
python
## Code Before: from skia_master_scripts import factory as skia_factory class AndroidFactory(skia_factory.SkiaFactory): """Overrides for Android builds.""" def Build(self, clobber=None): """Build and return the complete BuildFactory. clobber: boolean indicating whether we should clean before building ...
from skia_master_scripts import factory as skia_factory class AndroidFactory(skia_factory.SkiaFactory): """Overrides for Android builds.""" def Build(self, clobber=None): """Build and return the complete BuildFactory. clobber: boolean indicating whether we should clean before buildin...
27
1.227273
25
2
936b2cd2f7584b89ec50cfa8136521915d7d07d8
.travis.yml
.travis.yml
language: node_js node_js: "0.12" script: npm run travisci after_script: - codeclimate-test-reporter < coverage/lcov.info addons: code_climate: repo_token: 5a70e5fe98733645a6ed95bec6279111f14fdd17b297f1e2bfc038528320e9bb
language: node_js node_js: "0.12" script: npm run travisci after_script: - codeclimate-test-reporter < coverage/lcov.info addons: code_climate: repo_token: 5a70e5fe98733645a6ed95bec6279111f14fdd17b297f1e2bfc038528320e9bb
Fix YAML indentation. For Real.
Fix YAML indentation. For Real.
YAML
mit
NatLibFi/loglevel-message-prefix
yaml
## Code Before: language: node_js node_js: "0.12" script: npm run travisci after_script: - codeclimate-test-reporter < coverage/lcov.info addons: code_climate: repo_token: 5a70e5fe98733645a6ed95bec6279111f14fdd17b297f1e2bfc038528320e9bb ## Instruction: Fix YAML indentation. For Real. ## Code Aft...
language: node_js - node_js: "0.12" ? -- + node_js: "0.12" - script: npm run travisci ? -- + script: npm run travisci - after_script: ? -- + after_script: - - codeclimate-test-reporter < coverage/lcov.info ? -- + - codeclimate-test-reporter < coverage/lcov.info - addons: ? -- + addons: - code_c...
14
1.75
7
7
355eb8debb6147dfc6207b8863dbb45551558681
lib/task-data/tasks/install-windows-2012.js
lib/task-data/tasks/install-windows-2012.js
// Copyright 2016, EMC, Inc. 'use strict'; module.exports = { friendlyName: 'Install Windows', injectableName: 'Task.Os.Install.Win', implementsTask: 'Task.Base.Os.Install', options: { osType: 'windows', //readonly option, should avoid change it profile: 'windows.ipxe', ...
// Copyright 2016, EMC, Inc. 'use strict'; module.exports = { friendlyName: 'Install Windows', injectableName: 'Task.Os.Install.Win', implementsTask: 'Task.Base.Os.Install', options: { osType: 'windows', //readonly option, should avoid change it profile: 'windows.ipxe', ...
Include firewallDisable option to allow ping function to test static IP
Include firewallDisable option to allow ping function to test static IP
JavaScript
apache-2.0
nortonluo/on-tasks,AlaricChan/on-tasks,AlaricChan/on-tasks,bbcyyb/on-tasks,nortonluo/on-tasks,bbcyyb/on-tasks
javascript
## Code Before: // Copyright 2016, EMC, Inc. 'use strict'; module.exports = { friendlyName: 'Install Windows', injectableName: 'Task.Os.Install.Win', implementsTask: 'Task.Base.Os.Install', options: { osType: 'windows', //readonly option, should avoid change it profile: 'windo...
// Copyright 2016, EMC, Inc. 'use strict'; module.exports = { friendlyName: 'Install Windows', injectableName: 'Task.Os.Install.Win', implementsTask: 'Task.Base.Os.Install', options: { osType: 'windows', //readonly option, should avoid change it profile...
4
0.111111
2
2
efbd0e1885ca1f89304d8c1509879b1494bb7a23
.travis.yml
.travis.yml
dist: xenial language: go go: "1.13.x" env: - GO111MODULE=on cache: directories: - $GOPATH/pkg/mod - $HOME/.cache/go-build install: true before_script: - GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint script: - golangci-lint run - go test -race ./... deploy: - provider: script...
dist: xenial language: go go: "1.13.x" env: - GO111MODULE=on cache: directories: - $GOPATH/pkg/mod - $HOME/.cache/go-build install: true before_script: - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 script: - golangci-lint run - go ...
Revert "install golangci-lint from source for go 1.13"
Revert "install golangci-lint from source for go 1.13" This reverts commit d4a2971b6cbce4a538646230c986770c2238e66b.
YAML
mit
cenkalti/rain
yaml
## Code Before: dist: xenial language: go go: "1.13.x" env: - GO111MODULE=on cache: directories: - $GOPATH/pkg/mod - $HOME/.cache/go-build install: true before_script: - GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint script: - golangci-lint run - go test -race ./... deploy: - ...
dist: xenial language: go go: "1.13.x" env: - GO111MODULE=on cache: directories: - $GOPATH/pkg/mod - $HOME/.cache/go-build install: true before_script: - - GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint + - curl -sfL https://install.goreleaser.com/github....
2
0.090909
1
1
7a3e4237c0883f55e4fef88089f72b25b80dbc78
.travis.yml
.travis.yml
language: node_js node_js: - 0.10 sudo: false cache: directories: - bower_components - node_modules before_script: - node_modules/.bin/bower install --config.interactive=false
language: node_js node_js: - 0.10 sudo: false cache: directories: - bower_components - node_modules before_script: - npm install -g bower broccoli-cli - bower install --config.interactive=false - broccoli build release
Install bower and broccoli-cli globally in Travis
Install bower and broccoli-cli globally in Travis
YAML
mit
astrifex/astrifex,astrifex/astrifex
yaml
## Code Before: language: node_js node_js: - 0.10 sudo: false cache: directories: - bower_components - node_modules before_script: - node_modules/.bin/bower install --config.interactive=false ## Instruction: Install bower and broccoli-cli globally in Travis ## Code After: language: node_js node_js: - 0...
language: node_js node_js: - 0.10 sudo: false cache: directories: - bower_components - node_modules before_script: + - npm install -g bower broccoli-cli - - node_modules/.bin/bower install --config.interactive=false ? ------------------ + - bower install --config.interactive=f...
4
0.285714
3
1
e5d199250ee1ae4f30cd0440e42a759367e3fb60
recipes/plyer/recipe.sh
recipes/plyer/recipe.sh
VERSION_plyer=${VERSION_plyer:-master} URL_plyer=https://github.com/plyer/plyer/archive/$VERSION_plyer.zip DEPS_plyer=(pyjnius android) MD5_plyer= BUILD_plyer=$BUILD_PATH/plyer/$(get_directory $URL_plyer) RECIPE_plyer=$RECIPES_PATH/plyer function prebuild_plyer() { true } function shouldbuild_plyer() { if [ -d "$S...
VERSION_plyer=${VERSION_plyer:-master} URL_plyer=https://github.com/plyer/plyer/zipball/$VERSION_plyer/plyer-$VERSION_plyer.zip DEPS_plyer=(pyjnius android) MD5_plyer= BUILD_plyer=$BUILD_PATH/plyer/$(get_directory $URL_plyer) RECIPE_plyer=$RECIPES_PATH/plyer function prebuild_plyer() { true } function shouldbuild_p...
Revert "fix plyer archive location"
Revert "fix plyer archive location" This reverts commit 15426977d7f1d42a5e45d66e66b60402e8e74171.
Shell
mit
lc-soft/python-for-android,cbenhagen/python-for-android,kived/python-for-android,wexi/python-for-android,bob-the-hamster/python-for-android,olymk2/python-for-android,olymk2/python-for-android,Cheaterman/python-for-android,alanjds/python-for-android,ravsa/python-for-android,wexi/python-for-android,renpytom/python-for-an...
shell
## Code Before: VERSION_plyer=${VERSION_plyer:-master} URL_plyer=https://github.com/plyer/plyer/archive/$VERSION_plyer.zip DEPS_plyer=(pyjnius android) MD5_plyer= BUILD_plyer=$BUILD_PATH/plyer/$(get_directory $URL_plyer) RECIPE_plyer=$RECIPES_PATH/plyer function prebuild_plyer() { true } function shouldbuild_plyer(...
VERSION_plyer=${VERSION_plyer:-master} - URL_plyer=https://github.com/plyer/plyer/archive/$VERSION_plyer.zip ? ^^^^ ^ + URL_plyer=https://github.com/plyer/plyer/zipball/$VERSION_plyer/plyer-$VERSION_plyer.zip ? ++++ ++++++++++++++...
2
0.068966
1
1
2f176c1254d0344715ed035a56c8b22a37ca0ac1
app/page/SignUp.php
app/page/SignUp.php
<?php namespace Page; class SignUp { public function index() { if ($this->input->hasPost('username')) { $this->addUser(); } $this->load->storeView('SignUp'); $this->load->layout('Fresh'); } public...
<?php namespace Page; class SignUp { public function index() { if ($this->input->hasPost('username')) { $this->addUser(); } $this->load->storeView('SignUp'); $this->load->layout('Fresh'); } public...
Fix sign up to use new load system
Fix sign up to use new load system
PHP
mit
hernantas/MangaReader,hernantas/MangaReader,hernantas/MangaReader
php
## Code Before: <?php namespace Page; class SignUp { public function index() { if ($this->input->hasPost('username')) { $this->addUser(); } $this->load->storeView('SignUp'); $this->load->layout('Fresh'); }...
<?php namespace Page; class SignUp { public function index() { if ($this->input->hasPost('username')) { $this->addUser(); } $this->load->storeView('SignUp'); $this->load->layout('Fres...
17
0.309091
8
9
cb299697fea45483abcca7ca7ee7e1d07aadf477
app/exporters/publishing_api_manual_with_sections_withdrawer.rb
app/exporters/publishing_api_manual_with_sections_withdrawer.rb
class PublishingApiManualWithSectionsWithdrawer def call(manual, _ = nil) PublishingAPIWithdrawer.new( entity: manual, ).call manual.sections.each do |document| PublishingAPIWithdrawer.new( entity: document, ).call end end end
class PublishingApiManualWithSectionsWithdrawer def call(manual, _ = nil) PublishingAPIWithdrawer.new( entity: manual, ).call manual.sections.each do |section| PublishingAPIWithdrawer.new( entity: section, ).call end end end
Rename document -> section in PublishingApiManualWithSectionsWithdrawer
Rename document -> section in PublishingApiManualWithSectionsWithdrawer
Ruby
mit
alphagov/manuals-publisher,alphagov/manuals-publisher,alphagov/manuals-publisher
ruby
## Code Before: class PublishingApiManualWithSectionsWithdrawer def call(manual, _ = nil) PublishingAPIWithdrawer.new( entity: manual, ).call manual.sections.each do |document| PublishingAPIWithdrawer.new( entity: document, ).call end end end ## Instruction: Rename docume...
class PublishingApiManualWithSectionsWithdrawer def call(manual, _ = nil) PublishingAPIWithdrawer.new( entity: manual, ).call - manual.sections.each do |document| ? ^ ---- - + manual.sections.each do |section| ? ^^^^^ ...
4
0.307692
2
2
62636dbb85f26e1ef37e274bf1f4fc1683719dfd
src/index.js
src/index.js
import request from 'request-promise'; import uts46 from 'idna-uts46'; const returnValues = { free: 'FREE', not_valid: 'NOT_VALID', occupied: 'OCCUPIED', }; export default function isFree(domain) { const idnEncodedDomain = uts46.toAscii(domain); const requestUrl = `http://free.iis.se/free?q=${idnEncodedDoma...
import fetch from 'node-fetch'; import uts46 from 'idna-uts46'; const returnValues = { free: 'FREE', not_valid: 'NOT_VALID', occupied: 'OCCUPIED', }; export default function isFree(domain) { const idnEncodedDomain = uts46.toAscii(domain); const requestUrl = `http://free.iis.se/free?q=${idnEncodedDomain}`; ...
Refactor using node-fetch instead of request-promise
Refactor using node-fetch instead of request-promise
JavaScript
mit
kpalmvik/se-free
javascript
## Code Before: import request from 'request-promise'; import uts46 from 'idna-uts46'; const returnValues = { free: 'FREE', not_valid: 'NOT_VALID', occupied: 'OCCUPIED', }; export default function isFree(domain) { const idnEncodedDomain = uts46.toAscii(domain); const requestUrl = `http://free.iis.se/free?q=...
- import request from 'request-promise'; + import fetch from 'node-fetch'; import uts46 from 'idna-uts46'; const returnValues = { free: 'FREE', not_valid: 'NOT_VALID', occupied: 'OCCUPIED', }; export default function isFree(domain) { const idnEncodedDomain = uts46.toAscii(domain); cons...
15
0.6
11
4
2f64464027fde6b01ad6eab54b6888d71ae4f0a6
.travis.yml
.travis.yml
rvm: - 1.9.2 - 1.9.3 - jruby-19mode before_install: - gem update --system - gem install minitest-rails jdk: - openjdk6 gemfile: - gemfiles/rails3.0.gemfile - gemfiles/rails3.1.gemfile - gemfiles/rails3.2.gemfile branches: only: - master
rvm: - 1.9.2 - 1.9.3 - jruby-19mode before_install: - gem update --system - gem install minitest-rails sass-rails coffee-rails therubyrhino uglifier jquery-rails jdk: - openjdk6 gemfile: - gemfiles/rails3.0.gemfile - gemfiles/rails3.1.gemfile - gemfiles/rails3.2.gemfile branches: only: - master
Make sure the gems that the rails apps are going to need are in place ahead of time
Make sure the gems that the rails apps are going to need are in place ahead of time
YAML
mit
compwron/factory_girl_rails,compwron/factory_girl_rails,thoughtbot/factory_girl_rails,victor95pc/factory_girl_rails,t4deu/factory_girl_rails,blairanderson/factory_girl_rails,victor95pc/factory_girl_rails,ar-shestopal/factory_girl_rails,thoughtbot/factory_girl_rails,ar-shestopal/factory_girl_rails,JuanitoFatas/factory_g...
yaml
## Code Before: rvm: - 1.9.2 - 1.9.3 - jruby-19mode before_install: - gem update --system - gem install minitest-rails jdk: - openjdk6 gemfile: - gemfiles/rails3.0.gemfile - gemfiles/rails3.1.gemfile - gemfiles/rails3.2.gemfile branches: only: - master ## Instruction: Make sure the gems that th...
rvm: - 1.9.2 - 1.9.3 - jruby-19mode before_install: - gem update --system - - gem install minitest-rails + - gem install minitest-rails sass-rails coffee-rails therubyrhino uglifier jquery-rails jdk: - openjdk6 gemfile: - gemfiles/rails3.0.gemfile - gemfiles/rails3.1.gemfile ...
2
0.125
1
1
5f5a09acc6d2c811b8f2d98513ecf008a5dcf67a
README.md
README.md
Snack Overflow is a community of picky eaters. Always wanted to have a BLT but you are vegan or keep kosher? Snack overflow is the place for you. * Share recipes for people with specialized diets * Search for recipes by category (kosher, vegan, vegetarian, non-dairy, allergies, etc) or by ingredient * Join a communtiy...
Snack Overflow is a community of picky eaters. Always wanted to have a BLT but you are vegan or keep kosher? Snack overflow is the place for you. * Share recipes for people with specialized diets * Search for recipes by category (kosher, vegan, vegetarian, non-dairy, allergies, etc) or by ingredient * Join a communtiy...
Add dependencies and installation section to readme
Add dependencies and installation section to readme
Markdown
mit
harryganz/snackoverflow
markdown
## Code Before: Snack Overflow is a community of picky eaters. Always wanted to have a BLT but you are vegan or keep kosher? Snack overflow is the place for you. * Share recipes for people with specialized diets * Search for recipes by category (kosher, vegan, vegetarian, non-dairy, allergies, etc) or by ingredient * ...
Snack Overflow is a community of picky eaters. Always wanted to have a BLT but you are vegan or keep kosher? Snack overflow is the place for you. * Share recipes for people with specialized diets * Search for recipes by category (kosher, vegan, vegetarian, non-dairy, allergies, etc) or by ingredient * Join...
17
0.548387
17
0
056a46fed79f712c3c5114b2c52889a2f7c7d31a
client/lanes/models/mixins/HasCodeField.coffee
client/lanes/models/mixins/HasCodeField.coffee
Lanes.Models.Mixins.HasCodeField = { INVALID: /[^A-Z0-9a-z]/ included: -> this.prototype.INVALID_CODE_CLanes.RS ||= Lanes.Models.mixins.Lanes.sCodeField.INVALID initialize: -> this.on('change:code', this.upcaseCode ) upcaseCode: -> this.set('code', this.get('code').toUpperCas...
Lanes.Models.Mixins.HasCodeField = { INVALID: /[^A-Z0-9a-z]/ included: (klass)-> klass::INVALID_CODE_CHARS ||= Lanes.Models.mixins.Lanes.sCodeField.INVALID initialize: -> this.on('change:code', this.upcaseCode) upcaseCode: -> this.set('code', this.get('code').toUpperCase()) }...
Fix regex gone wild overwritting.
Fix regex gone wild overwritting. Belived this was a side-effect of the mass renaming from Stockor to Lanes
CoffeeScript
mit
argosity/hippo,argosity/lanes,argosity/lanes,argosity/hippo,argosity/lanes,argosity/hippo
coffeescript
## Code Before: Lanes.Models.Mixins.HasCodeField = { INVALID: /[^A-Z0-9a-z]/ included: -> this.prototype.INVALID_CODE_CLanes.RS ||= Lanes.Models.mixins.Lanes.sCodeField.INVALID initialize: -> this.on('change:code', this.upcaseCode ) upcaseCode: -> this.set('code', this.get('c...
Lanes.Models.Mixins.HasCodeField = { INVALID: /[^A-Z0-9a-z]/ - included: -> + included: (klass)-> ? +++++++ - this.prototype.INVALID_CODE_CLanes.RS ||= Lanes.Models.mixins.Lanes.sCodeField.INVALID ? ^^^ ^^^^^^^^^^^ ^^^^^^ + klass::INVALID_CODE_C...
6
0.461538
3
3
ac0ef50c0ff9788491997e3c8bc50509c7a914bf
app/assets/javascripts/components/tags.js.jsx
app/assets/javascripts/components/tags.js.jsx
var Tags = React.createClass({ mixins: [FluxMixin], emptyCopy: function() { if(this.props.tags.length === 0) { return "No tags yet, create some below :-)"; } }, renderTags: function() { return ( <ul className="Tags--list"> { this.props.tags.map(function(tag) { return ...
var Tags = React.createClass({ mixins: [FluxMixin], emptyCopy: function() { if(this.props.tags.length === 0) { return "No tags yet, create some below :-)"; } }, renderTags: function() { return ( <ul className="Tags--list"> { this.props.tags.map(function(tag) { return ...
Use unified click handler in tags.
Use unified click handler in tags.
JSX
mit
kirillis/mytopten,krisimmig/mytopten,kirillis/mytopten,krisimmig/mytopten,kirillis/mytopten,krisimmig/mytopten
jsx
## Code Before: var Tags = React.createClass({ mixins: [FluxMixin], emptyCopy: function() { if(this.props.tags.length === 0) { return "No tags yet, create some below :-)"; } }, renderTags: function() { return ( <ul className="Tags--list"> { this.props.tags.map(function(tag) { ...
var Tags = React.createClass({ mixins: [FluxMixin], emptyCopy: function() { if(this.props.tags.length === 0) { return "No tags yet, create some below :-)"; } }, renderTags: function() { return ( <ul className="Tags--list"> { this.props.tags.map(functio...
5
0.104167
3
2
8353b135e9c40f524de3ae4a238cea3581de4fd7
framework/tests/JPetTaskLoaderTest/JPetTaskLoaderTest.cpp
framework/tests/JPetTaskLoaderTest/JPetTaskLoaderTest.cpp
BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE( my_test1 ) { BOOST_REQUIRE(1==0); } BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE(defaultConstrutocTest) { /*JPetOptions::Options options = { {"inputFile", "data_files/cosm_barrel.hld.root"}, {"inputFileType", "hld"}, {"outputFile", "data_files/cosm_barrel.tslot.raw.out.root"}, {"outputFileType", "tslot.raw"}, ...
Change unit test for JPetTaskLoader.
Change unit test for JPetTaskLoader. Former-commit-id: 1cbaa59c1010a96926acec93a2e313f482e62943
C++
apache-2.0
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework
c++
## Code Before: BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TEST_CASE( my_test1 ) { BOOST_REQUIRE(1==0); } BOOST_AUTO_TEST_SUITE_END() ## Instruction: Change unit test for JPetTaskLoader. Former-commit-id: 1cbaa59c1010a96926acec93a2e313f482e62943 ## Code After: BOOST_AUTO_TEST_SUITE(FirstSuite) BOOST_AUTO_TE...
BOOST_AUTO_TEST_SUITE(FirstSuite) - BOOST_AUTO_TEST_CASE( my_test1 ) + BOOST_AUTO_TEST_CASE(defaultConstrutocTest) { - BOOST_REQUIRE(1==0); + /*JPetOptions::Options options = { + {"inputFile", "data_files/cosm_barrel.hld.root"}, + {"inputFileType", "hld"}, + {"outputFile", "data_files/...
15
1.666667
13
2
54b2518d099389ffb16a3d4d60129fe24fc63ce8
app/scripts/modules/templates/module_item.hbs
app/scripts/modules/templates/module_item.hbs
<td class="code"><a href="/modules/{{ModuleCode}}">{{ModuleCode}}</a></td> <td class="details"> <div class="pull-right"> <a class="ivle btn btn-primary btn-xs" data-code="{{ModuleCode}}" href="http://ivle.nus.edu.sg/lms/public/list_course_public.aspx?code={{ModuleCode}}" target="_blank"> ...
<td class="code"><a href="/modules/{{ModuleCode}}">{{ModuleCode}}</a></td> <td class="details"> <div class="pull-right"> <a class="ivle btn btn-default btn-xs" data-code="{{ModuleCode}}" href="http://ivle.nus.edu.sg/lms/public/list_course_public.aspx?code={{ModuleCode}}" target="_blank"> ...
Change button colors in modules listing to be consistent with add button on module page
Change button colors in modules listing to be consistent with add button on module page
Handlebars
mit
nathanajah/nusmods,zhouyichen/nusmods,mauris/nusmods,nusmodifications/nusmods,chunqi/nusmods,nathanajah/nusmods,Yunheng/nusmods,zhouyichen/nusmods,nusmodifications/nusmods,Yunheng/nusmods,zhouyichen/nusmods,Yunheng/nusmods,mauris/nusmods,mauris/nusmods,nathanajah/nusmods,zhouyichen/nusmods,mauris/nusmods,chunqi/nusmods...
handlebars
## Code Before: <td class="code"><a href="/modules/{{ModuleCode}}">{{ModuleCode}}</a></td> <td class="details"> <div class="pull-right"> <a class="ivle btn btn-primary btn-xs" data-code="{{ModuleCode}}" href="http://ivle.nus.edu.sg/lms/public/list_course_public.aspx?code={{ModuleCode}}" targe...
<td class="code"><a href="/modules/{{ModuleCode}}">{{ModuleCode}}</a></td> <td class="details"> <div class="pull-right"> - <a class="ivle btn btn-primary btn-xs" ? ^^^^ ^^ + <a class="ivle btn btn-default btn-xs" ? ^^^ ^^^ data-code="{{Mod...
4
0.108108
2
2
2074c33249e9950dd5b3cee88cb1561d8e229c0f
app/src/main/res/drawable/bg_course_purchase_promo_code_submit.xml
app/src/main/res/drawable/bg_course_purchase_promo_code_submit.xml
<?xml version="1.0" encoding="utf-8"?> <ripple android:color="?android:attr/colorControlHighlight" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/promo_code_layer_list"> <layer-list> <item android:id="@+id/idle_state"> <shape android:shape="rec...
<?xml version="1.0" encoding="utf-8"?> <ripple android:color="?android:attr/colorControlHighlight" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/promo_code_layer_list"> <layer-list> <item android:id="@+id/idle_state"> <shape android:shape="rec...
Fix stroke color in loading state
Fix stroke color in loading state
XML
apache-2.0
StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepic-android,StepicOrg/stepik-android,StepicOrg/stepik-android,StepicOrg/stepic-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <ripple android:color="?android:attr/colorControlHighlight" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/promo_code_layer_list"> <layer-list> <item android:id="@+id/idle_state"> <shape an...
<?xml version="1.0" encoding="utf-8"?> <ripple android:color="?android:attr/colorControlHighlight" xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/promo_code_layer_list"> <layer-list> <item android:id="@+id/idle_state"> <shape androi...
5
0.125
1
4
54f07b60261de30132af387a66e682bc9a0a670e
console/server/README.md
console/server/README.md
1. [Purpose](#1-purpose)<br/> 2. [REST API](#2-rest-api)<br> # 1. Purpose Darzee's reverse proxy server was created to both serve web UI and to overcome browser's limitations that occurred while developing. Some of the cases are: </br> * Serve web interface; </br> * Change Prometheus configuration; </br> * Reload Pr...
1. [Purpose](#1-purpose)<br/> 2. [REST API](#2-rest-api)<br> # 1. Purpose Darzee's reverse proxy server was created to both serve web UI and to overcome browser's limitations that occurred while developing. Some of the cases are: </br> * Serve web interface; </br> * Change Prometheus configuration; </br> * Reload Pr...
Fix link for architecture overview figure.
Fix link for architecture overview figure.
Markdown
mit
emc-mongoose/console,emc-mongoose/console,emc-mongoose/console
markdown
## Code Before: 1. [Purpose](#1-purpose)<br/> 2. [REST API](#2-rest-api)<br> # 1. Purpose Darzee's reverse proxy server was created to both serve web UI and to overcome browser's limitations that occurred while developing. Some of the cases are: </br> * Serve web interface; </br> * Change Prometheus configuration; <...
1. [Purpose](#1-purpose)<br/> 2. [REST API](#2-rest-api)<br> # 1. Purpose Darzee's reverse proxy server was created to both serve web UI and to overcome browser's limitations that occurred while developing. Some of the cases are: </br> * Serve web interface; </br> * Change Prometheus configuration;...
6
0.285714
3
3
abb824a37a838289ce5dc67ef73a49958cd72d7e
config/unicorn.rb
config/unicorn.rb
def load_file_if_exists(config, file) config.instance_eval(File.read(file)) if File.exist?(file) end load_file_if_exists(self, "/etc/govuk/unicorn.rb") working_directory File.dirname(File.dirname(__FILE__)) worker_processes 4 # Preload the entire app preload_app true before_fork do |server, worker| # The followin...
def load_file_if_exists(config, file) config.instance_eval(File.read(file)) if File.exist?(file) end load_file_if_exists(self, "/etc/govuk/unicorn.rb") working_directory File.dirname(File.dirname(__FILE__)) if ENV.has_key?("UNICORN_WORKER_PROCESSES") worker_processes = Integer(ENV["UNICORN_WORKER_PROCESSES"]) else...
Add UNICORN_WORKER_PROCESSES to config as this can vary
Add UNICORN_WORKER_PROCESSES to config as this can vary
Ruby
mit
alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall
ruby
## Code Before: def load_file_if_exists(config, file) config.instance_eval(File.read(file)) if File.exist?(file) end load_file_if_exists(self, "/etc/govuk/unicorn.rb") working_directory File.dirname(File.dirname(__FILE__)) worker_processes 4 # Preload the entire app preload_app true before_fork do |server, worker| ...
def load_file_if_exists(config, file) config.instance_eval(File.read(file)) if File.exist?(file) end load_file_if_exists(self, "/etc/govuk/unicorn.rb") working_directory File.dirname(File.dirname(__FILE__)) + + if ENV.has_key?("UNICORN_WORKER_PROCESSES") + worker_processes = Integer(ENV["UNICORN_WORKER_P...
7
0.291667
6
1
e3eef6de49696e88efd5bbb8edd6a6f001008b38
app/styles/_layout/_l-header.scss
app/styles/_layout/_l-header.scss
@import '../variables'; @import '../mixins/action'; .pwa-header { background-color: $color-background-brighter; padding: 1rem 2vw; &-left { text-align: left; @media screen and (max-width: $media-screen-s) { text-align: center; width: 100%; } } &-right { text-align: right; ...
@import '../variables'; @import '../mixins/action'; .pwa-header { background-color: $color-background-brighter; padding: 1rem 2vw; &-left { text-align: left; @media screen and (max-width: $media-screen-s) { text-align: center; width: 100%; } } &-right { text-align: right; ...
Fix responsive overflow for header
Fix responsive overflow for header
SCSS
mit
manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site,manifoldjs/manifoldjs-site
scss
## Code Before: @import '../variables'; @import '../mixins/action'; .pwa-header { background-color: $color-background-brighter; padding: 1rem 2vw; &-left { text-align: left; @media screen and (max-width: $media-screen-s) { text-align: center; width: 100%; } } &-right { text-ali...
@import '../variables'; @import '../mixins/action'; .pwa-header { background-color: $color-background-brighter; padding: 1rem 2vw; &-left { text-align: left; @media screen and (max-width: $media-screen-s) { text-align: center; width: 100%; } } &-ri...
1
0.019608
1
0
220513e2b980c1338b8e1a0231df7b6d6c1aaaeb
sources/us/pa/lehigh.json
sources/us/pa/lehigh.json
{ "coverage": { "US Census": { "geoid": "42077", "name": "Lehigh County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Lehigh" }, "data": "https://services1.arcgis.com/XWDNR4PQlDQwrRCL/ArcGIS/rest/services/A...
{ "coverage": { "US Census": { "geoid": "42077", "name": "Lehigh County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Lehigh" }, "website": "https://www.lehighcounty.org/Departments/GIS", "contact": { ...
Update Lehigh County, PA: - update Esri REST service and fields - add contact information
Update Lehigh County, PA: - update Esri REST service and fields - add contact information
JSON
bsd-3-clause
openaddresses/openaddresses,openaddresses/openaddresses,openaddresses/openaddresses
json
## Code Before: { "coverage": { "US Census": { "geoid": "42077", "name": "Lehigh County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Lehigh" }, "data": "https://services1.arcgis.com/XWDNR4PQlDQwrRCL/ArcGIS...
{ "coverage": { "US Census": { "geoid": "42077", "name": "Lehigh County", "state": "Pennsylvania" }, "country": "us", "state": "pa", "county": "Lehigh" }, - "data": "https://services1.arcgis.com/XWDNR4PQlDQwrRC...
22
0.814815
14
8
05e8b8ba0e6395af13a9eef65fd84865622f59be
.config/fish/abbrs.fish
.config/fish/abbrs.fish
abbr -a g 'git' abbr -a gd 'git diff' abbr -a gco 'git checkout' abbr -a vv 'git branches -vv' abbr -a chex 'chmod +x' abbr -a md 'mkdir -p' abbr -a rf 'rm -rfIv' abbr -a rl 'source ~/.config/fish/config.fish' abbr -a s 'ls' abbr -a cinnamon-restart='cinnamon –replace -d :0.0> /dev/null 2>&1 &' abbr -a unset 'set --er...
abbr -a g 'git' abbr -a gd 'git diff' abbr -a gco 'git checkout' abbr -a vv 'git branches -vv' abbr -a chex 'chmod +x' abbr -a md 'mkdir -p' abbr -a n 'nvim' abbr -a rf 'rm -rfv' abbr -a rl 'source ~/.config/fish/config.fish' abbr -a s 'ls' abbr -a cinnamon-restart='cinnamon –replace -d :0.0> /dev/null 2>&1 &' abbr -a...
Add abbr for nvim in fish
Add abbr for nvim in fish
fish
mit
aawc/dotfiles,aawc/dotfiles
fish
## Code Before: abbr -a g 'git' abbr -a gd 'git diff' abbr -a gco 'git checkout' abbr -a vv 'git branches -vv' abbr -a chex 'chmod +x' abbr -a md 'mkdir -p' abbr -a rf 'rm -rfIv' abbr -a rl 'source ~/.config/fish/config.fish' abbr -a s 'ls' abbr -a cinnamon-restart='cinnamon –replace -d :0.0> /dev/null 2>&1 &' abbr -a...
abbr -a g 'git' abbr -a gd 'git diff' abbr -a gco 'git checkout' abbr -a vv 'git branches -vv' abbr -a chex 'chmod +x' abbr -a md 'mkdir -p' + abbr -a n 'nvim' - abbr -a rf 'rm -rfIv' ? - + abbr -a rf 'rm -rfv' abbr -a rl 'source ~/.config/fish/config.fish' abbr -a s 'ls' abbr -a...
3
0.25
2
1
0737dc0eadf584c02276c37396e6291d5073a632
web/router.ex
web/router.ex
defmodule Tokenizer.Router do @moduledoc """ The router provides a set of macros for generating routes that dispatch to specific controllers and actions. Those macros are named after HTTP verbs. More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html """ use Tokenizer.Web, :router pipeline :api ...
defmodule Tokenizer.Router do @moduledoc """ The router provides a set of macros for generating routes that dispatch to specific controllers and actions. Those macros are named after HTTP verbs. More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html """ use Tokenizer.Web, :router pipeline :publ...
Split API in two parts
Split API in two parts
Elixir
mit
Nebo15/tokenizer.api
elixir
## Code Before: defmodule Tokenizer.Router do @moduledoc """ The router provides a set of macros for generating routes that dispatch to specific controllers and actions. Those macros are named after HTTP verbs. More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html """ use Tokenizer.Web, :router ...
defmodule Tokenizer.Router do @moduledoc """ The router provides a set of macros for generating routes that dispatch to specific controllers and actions. Those macros are named after HTTP verbs. More info at: https://hexdocs.pm/phoenix/Phoenix.Router.html """ use Tokenizer.Web, :rout...
17
0.53125
13
4
3ba4d8227c3098da2cbc666390d7b0d7835c3bc3
app/Joindin/Model/Db/User.php
app/Joindin/Model/Db/User.php
<?php namespace Joindin\Model\Db; class User { protected $keyName = 'users'; protected $db; public function __construct() { $this->db = new \Joindin\Service\Db; } public function getUriFor($username) { $data = $this->db->getOneByKey($this->keyName, 'username', $username); ...
<?php namespace Joindin\Model\Db; use \Joindin\Service\Db as DbService; class User { protected $keyName = 'users'; protected $db; public function __construct() { $this->db = new DbService(); } public function getUriFor($username) { $data = $this->db->getOneByKey($this->k...
Move fully qualified class name to a use statement
Move fully qualified class name to a use statement
PHP
bsd-3-clause
jan2442/joindin-web2,liam-wiltshire/joindin-web2,dstockto/joindin-web2,akrabat/joindin-web2,jozzya/joindin-web2,railto/joindin-web2,phoenixrises/joindin-web2,richsage/joindin-web2,dannym87/joindin-web2,cal-tec/joindin-web2,liam-wiltshire/joindin-web2,tdutrion/joindin-web2,shaunmza/joindin-web2,studio24/joindin-web2,lia...
php
## Code Before: <?php namespace Joindin\Model\Db; class User { protected $keyName = 'users'; protected $db; public function __construct() { $this->db = new \Joindin\Service\Db; } public function getUriFor($username) { $data = $this->db->getOneByKey($this->keyName, 'usernam...
<?php namespace Joindin\Model\Db; + + use \Joindin\Service\Db as DbService; class User { protected $keyName = 'users'; protected $db; public function __construct() { - $this->db = new \Joindin\Service\Db; ? ^^^^^^^^^ ^^^ + $this->db ...
4
0.093023
3
1
952f506b5f81a47d7a2061b8bab31533f740311f
BMCredentials.podspec
BMCredentials.podspec
Pod::Spec.new do |s| s.name = "BMCredentials" s.version = "1.0.0" s.summary = "Only make your users sign in once for all their devices. Conveniently and securely stores user credentials and syncs with iCloud Keychain." s.homepage = "https://github.com/iosengineer/BMCredenti...
Pod::Spec.new do |s| s.name = "BMCredentials" s.version = "1.0.1" s.summary = "Only make your users sign in once for all their devices. Conveniently and securely stores user credentials and syncs with iCloud Keychain." s.homepage = "https://github.com/iosengineer/BMCredenti...
Update spec for bugfix version 1.0.1
Update spec for bugfix version 1.0.1
Ruby
mit
iosengineer/BMCredentials,iosengineer/BMCredentials,iosengineer/BMCredentials
ruby
## Code Before: Pod::Spec.new do |s| s.name = "BMCredentials" s.version = "1.0.0" s.summary = "Only make your users sign in once for all their devices. Conveniently and securely stores user credentials and syncs with iCloud Keychain." s.homepage = "https://github.com/ioseng...
Pod::Spec.new do |s| s.name = "BMCredentials" - s.version = "1.0.0" ? ^ + s.version = "1.0.1" ? ^ s.summary = "Only make your users sign in once for all their devices. Conveniently and securely stores user cre...
4
0.190476
2
2
a13473d68f4233353e40c9f34305ebe3d18648d2
README.md
README.md
[![Backlog](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=backlog&title=Backlog)](http://waffle.io/cegeka/dev-workflow-skeleton) [![In Progress](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=in-progress&title=In-Progress)](http://waffle.io/cegeka/dev-workflow-skeleton) [![Done](https:...
The goal of this innovation center is to setup a small project that can be used to quickly bootstrap the development of new applications.
Remove badges again, not working yet
Remove badges again, not working yet
Markdown
apache-2.0
cegeka/dev-workflow-skeleton,cegeka/dev-workflow-skeleton,cegeka/dev-workflow-skeleton,cegeka/dev-workflow-skeleton,cegeka/dev-workflow-skeleton
markdown
## Code Before: [![Backlog](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=backlog&title=Backlog)](http://waffle.io/cegeka/dev-workflow-skeleton) [![In Progress](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=in-progress&title=In-Progress)](http://waffle.io/cegeka/dev-workflow-skeleton)...
- - [![Backlog](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=backlog&title=Backlog)](http://waffle.io/cegeka/dev-workflow-skeleton) [![In Progress](https://badge.waffle.io/cegeka/dev-workflow-skeleton.svg?label=in-progress&title=In-Progress)](http://waffle.io/cegeka/dev-workflow-skeleton) [![Done](ht...
2
0.5
0
2
87c6a75cc3fc42e09fe1867915442daedb08b3a8
.travis.yml
.travis.yml
language: python python: - "3.6" sudo: false install: - pip install pipenv - pipenv shell - pipenv install --dev - pip install tox-travis script: tox after_success: - tox -e ci - scripts/discord-webhook.sh success $WEBHOOK_URL after_failure: - scripts/discord-webhook.sh failure $WEBHOOK_URL
language: python python: - "3.6" sudo: false install: - pip install pipenv - pipenv install --dev --system - pipenv run pip install tox-travis script: pipenv run tox after_success: - pipenv run tox -e ci - scripts/discord-webhook.sh success $WEBHOOK_URL after_failure: - scripts/discord-webhook.sh failure ...
Use pipenv run instead of shell
ci: Use pipenv run instead of shell
YAML
mit
kevinkjt2000/discord-minecraft-server-status
yaml
## Code Before: language: python python: - "3.6" sudo: false install: - pip install pipenv - pipenv shell - pipenv install --dev - pip install tox-travis script: tox after_success: - tox -e ci - scripts/discord-webhook.sh success $WEBHOOK_URL after_failure: - scripts/discord-webhook.sh failure $WEBHOOK_...
language: python python: - "3.6" sudo: false install: - pip install pipenv - - pipenv shell - - pipenv install --dev + - pipenv install --dev --system ? +++++++++ - - pip install tox-travis + - pipenv run pip install tox-travis ? +++++++++++ - script: tox + script:...
9
0.6
4
5
ff4972c1eb1b5de439b841c7fadcd4f8692a54ef
README.md
README.md
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345344.svg)](https://doi.org/10.5281/zenodo.1345344) # r-cytoscape.js: Update **August 27, 2018** The r-cytoscape.js package has been updated to a new code base making use of the latest cytoscape.js. The code is very bleeding edge. Testing and documentation are st...
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345344.svg)](https://doi.org/10.5281/zenodo.1345344) # cyjShiny cytoscape.js as a shiny widget, with an API based on RCyjs (and ancestrally, RCy3) For more information, please visit the cyjShiny [Wiki](https://github.com/paul-shannon/cyjShiny/wiki). ![model](ygMo...
Downgrade information about previous implementation
Downgrade information about previous implementation
Markdown
apache-2.0
cytoscape/r-cytoscape.js,cytoscape/r-cytoscape.js
markdown
## Code Before: [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345344.svg)](https://doi.org/10.5281/zenodo.1345344) # r-cytoscape.js: Update **August 27, 2018** The r-cytoscape.js package has been updated to a new code base making use of the latest cytoscape.js. The code is very bleeding edge. Testing and docu...
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1345344.svg)](https://doi.org/10.5281/zenodo.1345344) - - # r-cytoscape.js: Update **August 27, 2018** - - The r-cytoscape.js package has been updated to a new code base making use of the latest cytoscape.js. The code is very bleeding edge. Testing and documentat...
8
0.615385
4
4
db5db27b52fbda40181eabc0dd4d036042e24e1c
reports.d/43-ntp.sh
reports.d/43-ntp.sh
echo "NTP Statistics" if [ -n "$(which ntpq)" ]; then echo "$(ntpq -p)" else echo "ntpq not installed" fi echo if [ -n "$(which ntpstat)" ]; then echo "$(ntpstat)" else echo "ntpstat not installed" fi
echo "NTP Statistics" if [ -n "$(which ntpq)" ]; then echo "$(ntpq -p 2>&1)" fi echo if [ -n "$(which chronyc)" ]; then echo "$(chronyc sources)" fi
Remove ntpstat command, add chronyc
Remove ntpstat command, add chronyc
Shell
mit
onesimus-systems/sysreporter
shell
## Code Before: echo "NTP Statistics" if [ -n "$(which ntpq)" ]; then echo "$(ntpq -p)" else echo "ntpq not installed" fi echo if [ -n "$(which ntpstat)" ]; then echo "$(ntpstat)" else echo "ntpstat not installed" fi ## Instruction: Remove ntpstat command, add chronyc ## Code After: echo "NTP Statistics" if [...
echo "NTP Statistics" if [ -n "$(which ntpq)" ]; then - echo "$(ntpq -p)" + echo "$(ntpq -p 2>&1)" ? +++++ - else - echo "ntpq not installed" fi echo - if [ -n "$(which ntpstat)" ]; then ? ^^^^^^ + if [ -n "$(which chronyc)" ]; then ? ++++ ^^ + ...
10
0.666667
3
7
e528d5178b8533c377e75ed7f7be6479d5d74340
lib/templates/json/production_package.json
lib/templates/json/production_package.json
{ "name": "<%= name %>", "version": "0.1.0", "description": "<%= name %> application built with Electron", "author": "<%= author %>", "license": "MIT", "main": "javascripts/main/index.js", "dependencies": { } }
{ "name": "<%= name %>", "version": "0.1.0", "description": "<%= name %> application built with Electron", "author": { "name": "<%= author %>", "email": "" }, "license": "MIT", "main": "javascripts/main/index.js", "dependencies": { } }
Update production package.json to contain author email
Update production package.json to contain author email
JSON
mit
railsware/bozon,railsware/bozon
json
## Code Before: { "name": "<%= name %>", "version": "0.1.0", "description": "<%= name %> application built with Electron", "author": "<%= author %>", "license": "MIT", "main": "javascripts/main/index.js", "dependencies": { } } ## Instruction: Update production package.json to contain author email ## ...
{ "name": "<%= name %>", "version": "0.1.0", "description": "<%= name %> application built with Electron", + "author": { - "author": "<%= author %>", ? ^^^^^ + "name": "<%= author %>", ? ++ + ^^ + "email": "" + }, "license": "MIT", "main": "javascripts/main/index.js", "de...
5
0.454545
4
1
a02aab5aa47b6488c285a480cb6ee66b0ed215af
main.cpp
main.cpp
int main() { int *a; int *n = a; a = n; *n = 5; return 0; }
int main() { int input; if (scanf("%d", &input) == 1) { if (input == 2) { int *a; int *n = a; a = n; *n = 5; } else { printf("OK\n"); } } return 0; }
Add a special condition so that static analyzers could write the exact condition when problem happens
Add a special condition so that static analyzers could write the exact condition when problem happens
C++
mit
mmenshchikov/bugdetection_uninitialized_value,mmenshchikov/bugdetection_uninitialized_value
c++
## Code Before: int main() { int *a; int *n = a; a = n; *n = 5; return 0; } ## Instruction: Add a special condition so that static analyzers could write the exact condition when problem happens ## Code After: int main() { int input; if (scanf("%d", &input) == 1) { if (input ==...
int main() { - int *a; + int input; + if (scanf("%d", &input) == 1) + { + if (input == 2) + { + int *a; - int *n = a; + int *n = a; ? ++++++++ - a = n; - *n = 5; + a = n; + *n = 5; + } + else + { ...
19
2.111111
15
4
accaed5f8fdad18e5ad404661b8754aaf9bd4b9c
package.json
package.json
{ "name": "linter-erlc", "version": "0.3.1", "linter-package": true, "main": "./lib/init", "description": "Bare Minimum Erlang lint package", "repository": "https://github.com/AtomLinter/linter-erlc", "license": "MIT", "engines": { "atom": ">=1.0.0 <2.0.0" }, "dependencies": { "atom-linter":...
{ "private": true, "name": "linter-erlc", "version": "0.3.1", "linter-package": true, "main": "./lib/init", "description": "Bare Minimum Erlang lint package", "repository": "https://github.com/AtomLinter/linter-erlc", "license": "MIT", "engines": { "atom": ">=1.0.0 <2.0.0" }, "dependencies": {...
Set the project to private for NPM
Set the project to private for NPM Make sure NPM never publishes this by accident and disables some meaningless checks.
JSON
mit
AtomLinter/linter-erlc
json
## Code Before: { "name": "linter-erlc", "version": "0.3.1", "linter-package": true, "main": "./lib/init", "description": "Bare Minimum Erlang lint package", "repository": "https://github.com/AtomLinter/linter-erlc", "license": "MIT", "engines": { "atom": ">=1.0.0 <2.0.0" }, "dependencies": { ...
{ + "private": true, "name": "linter-erlc", "version": "0.3.1", "linter-package": true, "main": "./lib/init", "description": "Bare Minimum Erlang lint package", "repository": "https://github.com/AtomLinter/linter-erlc", "license": "MIT", "engines": { "atom": ">=1.0.0 <2.0.0" ...
1
0.035714
1
0
e5d2c6404fe8250bf18381af78d5e3ba5c94c224
visualization/app/codeCharta/state/store/fileSettings/attributeTypes/attributeTypes.reducer.ts
visualization/app/codeCharta/state/store/fileSettings/attributeTypes/attributeTypes.reducer.ts
import { AttributeTypesAction, AttributeTypesActions, setAttributeTypes, UpdateAttributeTypeAction } from "./attributeTypes.actions" import { AttributeTypes } from "../../../../codeCharta.model" const clone = require("rfdc")() export function attributeTypes(state: AttributeTypes = setAttributeTypes().payload, action: ...
import { AttributeTypesAction, AttributeTypesActions, setAttributeTypes, UpdateAttributeTypeAction } from "./attributeTypes.actions" import { AttributeTypes } from "../../../../codeCharta.model" const clone = require("rfdc")() export function attributeTypes(state: AttributeTypes = setAttributeTypes().payload, action: ...
Refactor use shallow clone instead of deep clone
Refactor use shallow clone instead of deep clone
TypeScript
bsd-3-clause
MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta,MaibornWolff/codecharta
typescript
## Code Before: import { AttributeTypesAction, AttributeTypesActions, setAttributeTypes, UpdateAttributeTypeAction } from "./attributeTypes.actions" import { AttributeTypes } from "../../../../codeCharta.model" const clone = require("rfdc")() export function attributeTypes(state: AttributeTypes = setAttributeTypes().p...
import { AttributeTypesAction, AttributeTypesActions, setAttributeTypes, UpdateAttributeTypeAction } from "./attributeTypes.actions" import { AttributeTypes } from "../../../../codeCharta.model" const clone = require("rfdc")() export function attributeTypes(state: AttributeTypes = setAttributeTypes().payload...
8
0.363636
2
6
5f687da12aa3c567734490fa8de03c32170d9758
README.md
README.md
<a href="http://drone.cloud-api.info/github.com/rackerlabs/anchor"><img src="http://drone.cloud-api.info/github.com/rackerlabs/anchor/status.svg?branch=master" /></a>&nbsp;<a href="https://anchor.readthedocs.org"><img src="https://readthedocs.org/projects/anchor/badge/?version=latest" /></a> Anchor ======== Anchor pr...
<a href="http://drone.cloud-api.info/github.com/rackerlabs/anchor"><img src="http://drone.cloud-api.info/github.com/rackerlabs/anchor/status.svg?branch=master" /></a>&nbsp;<a href="https://anchor.readthedocs.org"><img src="https://readthedocs.org/projects/anchor/badge/?version=latest" /></a> Anchor ======== Anchor pr...
Update readme to make it flow better
Update readme to make it flow better
Markdown
apache-2.0
oldarmyc/anchor,oldarmyc/anchor,oldarmyc/anchor
markdown
## Code Before: <a href="http://drone.cloud-api.info/github.com/rackerlabs/anchor"><img src="http://drone.cloud-api.info/github.com/rackerlabs/anchor/status.svg?branch=master" /></a>&nbsp;<a href="https://anchor.readthedocs.org"><img src="https://readthedocs.org/projects/anchor/badge/?version=latest" /></a> Anchor ===...
<a href="http://drone.cloud-api.info/github.com/rackerlabs/anchor"><img src="http://drone.cloud-api.info/github.com/rackerlabs/anchor/status.svg?branch=master" /></a>&nbsp;<a href="https://anchor.readthedocs.org"><img src="https://readthedocs.org/projects/anchor/badge/?version=latest" /></a> Anchor ======== ...
4
0.4
2
2
60094f1b0c1517f823b47bf1f2f22340dc259cd3
lib/fucking_scripts_digital_ocean/scp.rb
lib/fucking_scripts_digital_ocean/scp.rb
module FuckingScriptsDigitalOcean class SCP FILENAME = "fss.tar.gz" def initialize(server, opts) @server, @opts = server, opts end def to_server create_local_archive scp_files_to_server extract_remote_archive remove_local_archive end private def create_loc...
module FuckingScriptsDigitalOcean class SCP FILENAME = "fss.tar.gz" def initialize(server, opts) @server, @opts = server, opts end def to_server create_local_archive scp_files_to_server extract_remote_archive remove_local_archive end private def create_loc...
Allow user to optionally skip either files or scripts
Allow user to optionally skip either files or scripts
Ruby
mit
phuongnd08/simple_provision
ruby
## Code Before: module FuckingScriptsDigitalOcean class SCP FILENAME = "fss.tar.gz" def initialize(server, opts) @server, @opts = server, opts end def to_server create_local_archive scp_files_to_server extract_remote_archive remove_local_archive end private ...
module FuckingScriptsDigitalOcean class SCP FILENAME = "fss.tar.gz" def initialize(server, opts) @server, @opts = server, opts end def to_server create_local_archive scp_files_to_server extract_remote_archive remove_local_archive end ...
9
0.257143
8
1
8118dcf15e59fdd32471a7e303af66ca90e09e5c
build-android-release.sh
build-android-release.sh
echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/build/outputs/apk/android-release-...
echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/app/build/outputs/apk/rele...
Fix for new paths in Cordova 8
Fix for new paths in Cordova 8
Shell
apache-2.0
evothings/evothings-viewer,evothings/evothings-viewer,evothings/evothings-viewer,evothings/evothings-viewer
shell
## Code Before: echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/build/outputs/apk/...
echo "Building Android release APK" cordova build android --release - jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias ? ...
6
1.2
3
3
0867054258e231b2ce9b028c5ce2bc3a26bca7be
gamernews/apps/threadedcomments/views.py
gamernews/apps/threadedcomments/views.py
from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.utils.translation import ugettext as _ from django.views.generic.list import ListView from core.models import Account as User from django_c...
from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.utils.translation import ugettext as _ from django.views.generic.list import ListView from core.models import Account as User from django_c...
Remove name, url and email from comment form
Remove name, url and email from comment form
Python
mit
underlost/GamerNews,underlost/GamerNews
python
## Code Before: from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.utils.translation import ugettext as _ from django.views.generic.list import ListView from core.models import Account as Us...
from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth.decorators import login_required from django.utils.translation import ugettext as _ from django.views.generic.list import ListView from core.models import Account as User...
9
0.36
5
4
33a5e57a9330bc8b02bceb25a8fcd9d92a6c4c7b
coffee/cilantro/models/concept.coffee
coffee/cilantro/models/concept.coffee
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, parse: true) ...
Add local sub-collections to ConceptCollection
Add local sub-collections to ConceptCollection This differentiates between _queryable_ vs. _viewable_ concepts for the query and results views, respectively.
CoffeeScript
bsd-2-clause
chop-dbhi/cilantro,chop-dbhi/cilantro,chop-dbhi/cilantro
coffeescript
## Code Before: define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, pa...
define ['../core', './field'], (c, field) -> class ConceptModel extends c.Backbone.Model parse: (resp) -> @fields = [] # Parse and attach field model instances to concept for attrs in resp.fields @fields.push(new field.FieldModel attrs, pa...
10
0.30303
10
0
b6cade2c2d1c7a76d665db53e7569900ec5bacb8
doc/cla/corporate/jarsa.md
doc/cla/corporate/jarsa.md
México,2015-09-23 Jarsa agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0. I declare that I am authorized and able to make this agreement and sign this declaration. Signed, Alan Ramos alan.ramos@jarsa.com.mx https://github.com/alan16 List of contributors: Alan Ramos alan.ramos@jarsa.co...
México,2015-09-23 Jarsa agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0. I declare that I am authorized and able to make this agreement and sign this declaration. Signed, Alan Ramos alan.ramos@jarsa.com.mx https://github.com/alan196 List of contributors: Alan Ramos alan.ramos@jarsa.c...
Fix typo and add another e-mail to CLA
[CLA]: Fix typo and add another e-mail to CLA
Markdown
agpl-3.0
Endika/OpenUpgrade,provaleks/o8,glovebx/odoo,markeTIC/OCB,diagramsoftware/odoo,Daniel-CA/odoo,microcom/odoo,tvibliani/odoo,glovebx/odoo,tvibliani/odoo,bplancher/odoo,datenbetrieb/odoo,ygol/odoo,makinacorpus/odoo,Noviat/odoo,Endika/odoo,Noviat/odoo,BT-ojossen/odoo,ehirt/odoo,rubencabrera/odoo,Antiun/odoo,NeovaHealth/odo...
markdown
## Code Before: México,2015-09-23 Jarsa agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0. I declare that I am authorized and able to make this agreement and sign this declaration. Signed, Alan Ramos alan.ramos@jarsa.com.mx https://github.com/alan16 List of contributors: Alan Ramos ala...
México,2015-09-23 Jarsa agrees to the terms of the Odoo Corporate Contributor License Agreement v1.0. I declare that I am authorized and able to make this agreement and sign this declaration. Signed, - Alan Ramos alan.ramos@jarsa.com.mx https://github.com/alan16 + Alan Ramos alan.ramos@jarsa.com.m...
3
0.214286
2
1
02dc0e9418994b8a3a4508e781406f0fb9dfffa6
reversesshfs.sh
reversesshfs.sh
echo $$ > `dirname \`realpath $0\``/reversesshfs.pid . `dirname \`realpath $0\``/config.source ssh $remote_server "sudo mkdir -p $remote_mountpoint" ssh $remote_server "sudo chown ubuntu:ubuntu $remote_mountpoint" while true ; do ssh -R $remote_port:localhost:22 $remote_server \ "sshfs -p $remote_port $extra_a...
echo $$ > `dirname \`realpath $0\``/reversesshfs.pid . `dirname \`realpath $0\``/config.source ssh $remote_server "sudo mkdir -p $remote_mountpoint" while true ; do ssh -R $remote_port:localhost:22 $remote_server \ "sudo sshfs -p $remote_port $extra_args $drobo_user@localhost:/mnt/DroboFS/Shares/$share_name $r...
Use sudo to run sshfs
Use sudo to run sshfs
Shell
mit
tkanemoto/drobofs-reverse-sshfs-service
shell
## Code Before: echo $$ > `dirname \`realpath $0\``/reversesshfs.pid . `dirname \`realpath $0\``/config.source ssh $remote_server "sudo mkdir -p $remote_mountpoint" ssh $remote_server "sudo chown ubuntu:ubuntu $remote_mountpoint" while true ; do ssh -R $remote_port:localhost:22 $remote_server \ "sshfs -p $remo...
echo $$ > `dirname \`realpath $0\``/reversesshfs.pid . `dirname \`realpath $0\``/config.source ssh $remote_server "sudo mkdir -p $remote_mountpoint" - ssh $remote_server "sudo chown ubuntu:ubuntu $remote_mountpoint" while true ; do ssh -R $remote_port:localhost:22 $remote_server \ - "sshfs -p $...
3
0.25
1
2
0543f03b58d980e06dc377ab7a6352806a680cdc
erpnext/hr/doctype/employee_separation/employee_separation_list.js
erpnext/hr/doctype/employee_separation/employee_separation_list.js
frappe.listview_settings['Employee Separation'] = { add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"], filters:[["boarding_status","=", "Pending"]], get_indicator: function(doc) { return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boar...
frappe.listview_settings['Employee Separation'] = { add_fields: ["boarding_status", "employee_name", "department"], filters:[["boarding_status","=", "Pending"]], get_indicator: function(doc) { return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "status,=," + doc.boarding_status]; } };...
Remove date_of_joining from field list
fix: Remove date_of_joining from field list
JavaScript
agpl-3.0
gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext
javascript
## Code Before: frappe.listview_settings['Employee Separation'] = { add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"], filters:[["boarding_status","=", "Pending"]], get_indicator: function(doc) { return [__(doc.boarding_status), frappe.utils.guess_colour(doc.boarding_status), "statu...
frappe.listview_settings['Employee Separation'] = { - add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"], ? ------------------- + add_fields: ["boarding_status", "employee_name", "department"], filters:[["boarding_status","=", "P...
2
0.285714
1
1
b6b2726bf52e7e0f9150672e18007bce6dab7c82
lib/rsvp.js
lib/rsvp.js
import Promise from "./rsvp/promise"; import EventTarget from "./rsvp/events"; import denodeify from "./rsvp/node"; import all from "./rsvp/all"; import race from "./rsvp/race"; import hash from "./rsvp/hash"; import rethrow from "./rsvp/rethrow"; import defer from "./rsvp/defer"; import { config, configure } from "./r...
import Promise from "./rsvp/promise"; import EventTarget from "./rsvp/events"; import denodeify from "./rsvp/node"; import all from "./rsvp/all"; import race from "./rsvp/race"; import hash from "./rsvp/hash"; import rethrow from "./rsvp/rethrow"; import defer from "./rsvp/defer"; import { config, configure } from "./r...
Add window.__PROMISE_INSTRUMENTATION__ flag to register RSVP.on callbacks
Add window.__PROMISE_INSTRUMENTATION__ flag to register RSVP.on callbacks
JavaScript
mit
tildeio/rsvp.js,twokul/rsvp.js,tildeio/rsvp.js,imshibaji/rsvp.js,alpapad/rsvp.js,alpapad/rsvp.js,waraujodesign/rsvp,seanpdoyle/rsvp.js,waraujodesign/rsvp,imshibaji/rsvp.js,twokul/rsvp.js,Rich-Harris/rsvp.js,seanpdoyle/rsvp.js,Rich-Harris/rsvp.js,MSch/rsvp.js,MSch/rsvp.js
javascript
## Code Before: import Promise from "./rsvp/promise"; import EventTarget from "./rsvp/events"; import denodeify from "./rsvp/node"; import all from "./rsvp/all"; import race from "./rsvp/race"; import hash from "./rsvp/hash"; import rethrow from "./rsvp/rethrow"; import defer from "./rsvp/defer"; import { config, confi...
import Promise from "./rsvp/promise"; import EventTarget from "./rsvp/events"; import denodeify from "./rsvp/node"; import all from "./rsvp/all"; import race from "./rsvp/race"; import hash from "./rsvp/hash"; import rethrow from "./rsvp/rethrow"; import defer from "./rsvp/defer"; import { config, con...
11
0.366667
11
0
399d6129b928fa4726e39f3ab3c72b7ddb80d8e1
logreader/test/server.yaml
logreader/test/server.yaml
--- traces: - trace: - url: /api/v1/get_all - span: /api/v1/get/1 - span: /api/v1/get/2 - span: /api/v1/get/3 - span: /api/v1/get/4 - span: /api/v1/get/5 - span: /api/v1/get/6 - span: /api/v1/get/7
--- traces: - trace: - url: /api/articles - span: /api/auth - span: /api/titles - span: /api/images - span: /api/correct - span: /api/compose
Test yaml file has been updated with a bit more readable endpoint names.
Test yaml file has been updated with a bit more readable endpoint names.
YAML
bsd-2-clause
varnish/zipnish,varnish/zipnish,varnish/varnish-microservice-monitor,varnish/varnish-microservice-monitor,varnish/varnish-microservice-monitor,varnish/zipnish,varnish/zipnish,varnish/zipnish,varnish/varnish-microservice-monitor,varnish/varnish-microservice-monitor
yaml
## Code Before: --- traces: - trace: - url: /api/v1/get_all - span: /api/v1/get/1 - span: /api/v1/get/2 - span: /api/v1/get/3 - span: /api/v1/get/4 - span: /api/v1/get/5 - span: /api/v1/get/6 - span: /api/v1/get/7 ## Instruction: Test yaml file has bee...
--- traces: - trace: - - url: /api/v1/get_all + - url: /api/articles + - span: /api/auth + - span: /api/titles - - span: /api/v1/get/1 ? ^^^ ^^^ + - span: /api/images ? ^^^ ^ - - span: /api/v1/get/2 ? ...
14
1.272727
6
8
86006b41483fdcfc3a37d2842e646fa94fc1e942
.travis.yml
.travis.yml
language: rust sudo: false cache: cargo # kcov dependencies (coverage) addons: apt: packages: - libcurl4-openssl-dev - libelf-dev - libdw-dev - binutils-dev - cmake sources: - kalakris-cmake # Test the trains rust: - stable - beta - nightly # build whitelist branch...
language: rust sudo: false cache: cargo # kcov dependencies (coverage) addons: apt: packages: - libcurl4-openssl-dev - libelf-dev - libdw-dev - zlib1g-dev - libiberty-dev - binutils-dev - cmake sources: - kalakris-cmake # Test the trains rust: - stable -...
Build all the branches on Travis
Build all the branches on Travis
YAML
apache-2.0
jzhu98/telescope
yaml
## Code Before: language: rust sudo: false cache: cargo # kcov dependencies (coverage) addons: apt: packages: - libcurl4-openssl-dev - libelf-dev - libdw-dev - binutils-dev - cmake sources: - kalakris-cmake # Test the trains rust: - stable - beta - nightly # build ...
language: rust sudo: false cache: cargo # kcov dependencies (coverage) addons: apt: packages: - libcurl4-openssl-dev - libelf-dev - libdw-dev + - zlib1g-dev + - libiberty-dev - binutils-dev - cmake sources: - kalakris-cmake ...
9
0.191489
2
7
856225eebd5662c216632733705fb5da1c1045e6
app/stylesheets/partials/content/_application.sass
app/stylesheets/partials/content/_application.sass
@import 'partials/content/invoice' @import 'partials/content/accounting' // Overview +overview-icon-48('store') +overview-icon-48('accounting') +overview-icon-48('invoicing') +overview-icon-48('basic_claims_data') +overview-icon-48('user_settings')
@import 'partials/content/invoice' @import 'partials/content/accounting' // Overview ul.overview-list.level-1 >li min-height: 9em +overview-icon-48('store') +overview-icon-48('accounting') +overview-icon-48('invoicing') +overview-icon-48('basic_claims_data') +overview-icon-48('user_settings')
Set min-height for overview items to 9em.
Set min-height for overview items to 9em.
Sass
agpl-3.0
silvermind/bookyt,xuewenfei/bookyt,xuewenfei/bookyt,wtag/bookyt,hauledev/bookyt,wtag/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,hauledev/bookyt,huerlisi/bookyt,hauledev/bookyt,wtag/bookyt,huerlisi/bookyt,silvermind/bookyt,gaapt/bookyt,huerlisi/bookyt,silvermind/bookyt,gaapt/bookyt,xuewenfei/bookyt,gaapt/book...
sass
## Code Before: @import 'partials/content/invoice' @import 'partials/content/accounting' // Overview +overview-icon-48('store') +overview-icon-48('accounting') +overview-icon-48('invoicing') +overview-icon-48('basic_claims_data') +overview-icon-48('user_settings') ## Instruction: Set min-height for overview items to ...
@import 'partials/content/invoice' @import 'partials/content/accounting' // Overview + ul.overview-list.level-1 >li + min-height: 9em + +overview-icon-48('store') +overview-icon-48('accounting') +overview-icon-48('invoicing') +overview-icon-48('basic_claims_data') +overview-icon-48('user_settings'...
3
0.333333
3
0
4c0fb22be7954dc9bbc73d202affe5544c39be44
app/collections/courses.js
app/collections/courses.js
Courses = new Mongo.Collection("courses"); Courses.schema = new SimpleSchema({ name: {type: String}, description: {type: String, optional: true}, listserv: {type: String, regEx: SimpleSchema.RegEx.Email, optional: true}, active: {type: Boolean}, htas: {type: [String], regEx: SimpleSchema.RegEx.Id, optional:...
Courses = new Mongo.Collection("courses"); Courses.schema = new SimpleSchema({ name: {type: String}, description: {type: String, optional: true}, listserv: {type: String, regEx: SimpleSchema.RegEx.Email, optional: true}, active: {type: Boolean}, htas: {type: [String], regEx: SimpleSchema.RegEx.Id, optional:...
Update course schema to make settings optional
Update course schema to make settings optional
JavaScript
mit
etremel/signmeup,gregcarlin/signmeup,athyuttamre/signmeup,etremel/signmeup,signmeup/signmeup,gregcarlin/signmeup,gregcarlin/signmeup,signmeup/signmeup,etremel/signmeup,athyuttamre/signmeup
javascript
## Code Before: Courses = new Mongo.Collection("courses"); Courses.schema = new SimpleSchema({ name: {type: String}, description: {type: String, optional: true}, listserv: {type: String, regEx: SimpleSchema.RegEx.Email, optional: true}, active: {type: Boolean}, htas: {type: [String], regEx: SimpleSchema.Reg...
Courses = new Mongo.Collection("courses"); Courses.schema = new SimpleSchema({ name: {type: String}, description: {type: String, optional: true}, listserv: {type: String, regEx: SimpleSchema.RegEx.Email, optional: true}, active: {type: Boolean}, htas: {type: [String], regEx: SimpleSchema.R...
3
0.111111
3
0
cb1c053bd5207074f26bed99806a18f04086bb9b
docs/plugins.md
docs/plugins.md
Writing Plugins =============== The PluginRegistry class is responsible for loading plugins and their metadata. Plugins are expected to be Python modules with an `__init__.py` file that provides a `getMetaData()` and a `register()` function. Plugins are loaded from all configured plugin paths. The `register()` functio...
Writing Plugins =============== The PluginRegistry class is responsible for loading plugins and their metadata. Plugins are expected to be Python modules with an `__init__.py` file that provides a `getMetaData()` and a `register()` function. Plugins are loaded from all configured plugin paths. The `register()` functio...
Add documentation about plugin about data
Add documentation about plugin about data
Markdown
agpl-3.0
onitake/Uranium,onitake/Uranium
markdown
## Code Before: Writing Plugins =============== The PluginRegistry class is responsible for loading plugins and their metadata. Plugins are expected to be Python modules with an `__init__.py` file that provides a `getMetaData()` and a `register()` function. Plugins are loaded from all configured plugin paths. The `reg...
Writing Plugins =============== The PluginRegistry class is responsible for loading plugins and their metadata. Plugins are expected to be Python modules with an `__init__.py` file that provides a `getMetaData()` and a `register()` function. Plugins are loaded from all configured plugin paths. The `regis...
6
0.166667
6
0
e2f004662b1a0d9dfd5c90dc1e54e84b9a5e7361
lib/cartodbmapclient.js
lib/cartodbmapclient.js
'use strict'; var request = require('request'); class CartoDBMapClient { constructor(user, apiKey) { this.user = user; this.apiKey = apiKey; this.baseURL = 'https://' + this.user + '.cartodb.com/'; } createNamedMap(options) { this.existsNamedMap(options.name).then(function() { }); } ex...
'use strict'; var request = require('request'); class CartoDBMapClient { constructor(user, apiKey) { this.user = user; this.apiKey = apiKey; this.baseURL = 'https://' + this.user + '.cartodb.com/'; } createNamedMap(options) { this.existsNamedMap(options.name).then(function() { }); } ex...
Fix promises params and this references
Fix promises params and this references
JavaScript
mit
gkudos/node-cartodb-map-api
javascript
## Code Before: 'use strict'; var request = require('request'); class CartoDBMapClient { constructor(user, apiKey) { this.user = user; this.apiKey = apiKey; this.baseURL = 'https://' + this.user + '.cartodb.com/'; } createNamedMap(options) { this.existsNamedMap(options.name).then(function() { ...
'use strict'; var request = require('request'); class CartoDBMapClient { constructor(user, apiKey) { this.user = user; this.apiKey = apiKey; this.baseURL = 'https://' + this.user + '.cartodb.com/'; } createNamedMap(options) { this.existsNamedMap(options.name).then(funct...
17
0.278689
9
8
93c86afefd0ad838171af52456f0281a55e91fbb
spec/spec_helper.rb
spec/spec_helper.rb
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'spree/testing_support/factories' require 'spree/testing_support/preferences' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and it...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'spree/testing_support/factories' require 'spree/testing_support/preferences' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and it...
Comment out SQL logging magic for now
Comment out SQL logging magic for now
Ruby
bsd-3-clause
njaw/spree,njaw/spree,njaw/spree
ruby
## Code Before: ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'spree/testing_support/factories' require 'spree/testing_support/preferences' # Requires supporting ruby files with custom matchers and macros, etc, # in spec...
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../../config/environment", __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'spree/testing_support/factories' require 'spree/testing_support/preferences' # Requires supporting ruby files with custom matchers and macros, etc, # in sp...
12
0.27907
6
6
7632101602c4b894ca78036435aedbcf8776cf5e
Profideo/FormulaInterpreterBundle/Excel/ExpressionLanguage/ExpressionFunction/RoundExpressionFunction.php
Profideo/FormulaInterpreterBundle/Excel/ExpressionLanguage/ExpressionFunction/RoundExpressionFunction.php
<?php namespace Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionFunction; /** * Represents the "ROUND" function that can be used in an expression. */ class RoundExpressionFunction extends ExpressionFunction { /** * @return string */ protected function getCompilerFunction() ...
<?php namespace Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionFunction; use Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionError; /** * Represents the "ROUND" function that can be used in an expression. */ class RoundExpressionFunction extends ExpressionFunction { /...
Add checks for ROUND function
Add checks for ROUND function
PHP
apache-2.0
Profideo/formula-interpretor
php
## Code Before: <?php namespace Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionFunction; /** * Represents the "ROUND" function that can be used in an expression. */ class RoundExpressionFunction extends ExpressionFunction { /** * @return string */ protected function getCompil...
<?php namespace Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionFunction; + + use Profideo\FormulaInterpreterBundle\Excel\ExpressionLanguage\ExpressionError; /** * Represents the "ROUND" function that can be used in an expression. */ class RoundExpressionFunction extends Expres...
18
0.439024
17
1
f80c11efb4bcbca6d20cdbbc1a552ebb04aa8302
api/config/settings/production.py
api/config/settings/production.py
import os import dj_database_url from .base import * # BASE_NAME and BASE_DOMAIN are intentionally unset # They are only needed to seed data in staging and local BASE_URL = "https://voterengagement.com" ############################################################################### # Core SECRET_KEY = os.environ['...
import os import dj_database_url from .base import * # BASE_NAME and BASE_DOMAIN are intentionally unset # They are only needed to seed data in staging and local BASE_URL = "https://voterengagement.com" ############################################################################### # Core SECRET_KEY = os.environ['...
Allow citizenlabs.org as a host
Allow citizenlabs.org as a host
Python
mit
citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement,citizenlabsgr/voter-engagement
python
## Code Before: import os import dj_database_url from .base import * # BASE_NAME and BASE_DOMAIN are intentionally unset # They are only needed to seed data in staging and local BASE_URL = "https://voterengagement.com" ############################################################################### # Core SECRET_KE...
import os import dj_database_url from .base import * # BASE_NAME and BASE_DOMAIN are intentionally unset # They are only needed to seed data in staging and local BASE_URL = "https://voterengagement.com" ############################################################################### # Core ...
4
0.121212
1
3
fe9db9481789cdf1200b73f47d148651f79e7899
config/initializers/session_store.rb
config/initializers/session_store.rb
Rails.application.config.session_store :cookie_store, key: '_epets_session'
Rails.application.config.session_store :cookie_store, key: '_epets_session', expire_after: 2.weeks
Make session cookie last for two weeks to work around iOS bug
Make session cookie last for two weeks to work around iOS bug Mobile Safari has a tendency to use cached form values even when the cache control headers tell it otherwise. However the session cookie has expired so when the form is submitted the CSRF token is invalid. See rails/rails#21948 for further details. Fixes ...
Ruby
mit
StatesOfJersey/e-petitions,joelanman/e-petitions,alphagov/e-petitions,StatesOfJersey/e-petitions,unboxed/e-petitions,oskarpearson/e-petitions,oskarpearson/e-petitions,unboxed/e-petitions,joelanman/e-petitions,StatesOfJersey/e-petitions,oskarpearson/e-petitions,joelanman/e-petitions,alphagov/e-petitions,unboxed/e-petiti...
ruby
## Code Before: Rails.application.config.session_store :cookie_store, key: '_epets_session' ## Instruction: Make session cookie last for two weeks to work around iOS bug Mobile Safari has a tendency to use cached form values even when the cache control headers tell it otherwise. However the session cookie has expire...
- Rails.application.config.session_store :cookie_store, key: '_epets_session' + Rails.application.config.session_store :cookie_store, key: '_epets_session', expire_after: 2.weeks ? +++++++++++++++++++++++
2
1
1
1
5854af946e7eb1136b951ec058d3a9952b11e0c8
test/commit-msg.js
test/commit-msg.js
import fs from 'fs' import test from 'tape' import sinon from 'sinon' import index, {formats} from '../src/commit-msg' test('index', t => { t.equal(typeof index, 'object', 'default export is an object') t.end() }) test('index.check()', t => { const readFileSync = sinon.stub(fs, 'readFileSync') const base = si...
import fs from 'fs' import test from 'tape' import sinon from 'sinon' import index, {formats} from '../src/commit-msg' test('index', t => { t.equal(typeof index, 'object', 'default export is an object') t.end() }) test('index.check()', t => { const readFileSync = sinon.stub(fs, 'readFileSync') const base = si...
Use helper to create test strings
Use helper to create test strings
JavaScript
mit
mmwtsn/hs-commit-message,mmwtsn/hook-commit-msg
javascript
## Code Before: import fs from 'fs' import test from 'tape' import sinon from 'sinon' import index, {formats} from '../src/commit-msg' test('index', t => { t.equal(typeof index, 'object', 'default export is an object') t.end() }) test('index.check()', t => { const readFileSync = sinon.stub(fs, 'readFileSync') ...
import fs from 'fs' import test from 'tape' import sinon from 'sinon' import index, {formats} from '../src/commit-msg' test('index', t => { t.equal(typeof index, 'object', 'default export is an object') t.end() }) test('index.check()', t => { const readFileSync = sinon.stub(fs, 'readFile...
16
0.390244
13
3
1961cd1213bd0920514c554cddaf598aa1152ce5
tasks/browserSync.js
tasks/browserSync.js
var task = function(gulp, config) { 'use strict'; gulp.task('browserSync', function() { var path = require('path'); var fs = require('fs'); var browserSync = require('browser-sync').create(); var html5Regex = new RegExp('\/'+config.name+'\/(.*)$'); browserSync.init({ server: { ...
var task = function(gulp, config) { 'use strict'; gulp.task('browserSync', function() { var path = require('path'); var fs = require('fs'); var browserSync = require('browser-sync').create(); var html5Regex = new RegExp('\/'+config.name+'\/(.*)$'); browserSync.init({ server: { //...
Fix bug in serving partial css files
Fix bug in serving partial css files
JavaScript
mit
npolar/npdc-gulp
javascript
## Code Before: var task = function(gulp, config) { 'use strict'; gulp.task('browserSync', function() { var path = require('path'); var fs = require('fs'); var browserSync = require('browser-sync').create(); var html5Regex = new RegExp('\/'+config.name+'\/(.*)$'); browserSync.init({ ...
var task = function(gulp, config) { 'use strict'; gulp.task('browserSync', function() { - + var path = require('path'); var fs = require('fs'); var browserSync = require('browser-sync').create(); var html5Regex = new RegExp('\/'+config.name+'\/(.*)$'); browserSync.init({...
8
0.177778
4
4
b4c0ab217626c922a662a1a294b6f8f51b66901d
README.md
README.md
gh-pages-demo ============= GitHub Pages Demonstration * [See the rendered demo page](http://haacked.github.io/gh-pages-demo/) * [See the raw code for that page](https://raw.githubusercontent.com/Haacked/gh-pages-demo/gh-pages/index.markdown)
GitHub Pages Demonstration ============= This repository is a bare-bones Jekyll site hosted on GitHub Pages. The goal is to help demonstrate some cool features you get when you host your site using GitHub pages. For example, your site has direct access to some GitHub metadata. No need to make extra requests to the Git...
Add link to blog post.
Add link to blog post.
Markdown
mit
Haacked/gh-pages-demo
markdown
## Code Before: gh-pages-demo ============= GitHub Pages Demonstration * [See the rendered demo page](http://haacked.github.io/gh-pages-demo/) * [See the raw code for that page](https://raw.githubusercontent.com/Haacked/gh-pages-demo/gh-pages/index.markdown) ## Instruction: Add link to blog post. ## Code After: GitH...
- gh-pages-demo + GitHub Pages Demonstration ============= - GitHub Pages Demonstration + This repository is a bare-bones Jekyll site hosted on GitHub Pages. The goal is to help demonstrate some cool features you get when you host your site using GitHub pages. For example, your site has direct access to some GitHu...
8
1.142857
6
2
04af59eeb0fbbea786c52ea5316b8de89235f041
packages/ye/yesod-sass.yaml
packages/ye/yesod-sass.yaml
homepage: '' changelog-type: '' hash: a64a09d99c5ad86f36653a2180baab4bfeca640991cd87b8256aa212dbdb302e test-bench-deps: {} maintainer: felipe.garay@usach.cl synopsis: A simple quasiquoter to include sass code in yesod changelog: '' basic-deps: shakespeare: ! '>=2.0 && <2.1' hsass: ! '>=0.2 && <0.3' yesod-core: ! ...
homepage: '' changelog-type: '' hash: 6bb272928543d663a6e0658dcec12e40a88fba5e868f7ce3f29ec84e886bdfc0 test-bench-deps: {} maintainer: felipe.garay@usach.cl synopsis: A simple quasiquoter to include sass code in yesod changelog: '' basic-deps: shakespeare: ! '>=2.0 && <2.1' hsass: ! '>=0.3 && <0.4' yesod-core: ! ...
Update from Hackage at 2015-07-16T01:19:22+0000
Update from Hackage at 2015-07-16T01:19:22+0000
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: a64a09d99c5ad86f36653a2180baab4bfeca640991cd87b8256aa212dbdb302e test-bench-deps: {} maintainer: felipe.garay@usach.cl synopsis: A simple quasiquoter to include sass code in yesod changelog: '' basic-deps: shakespeare: ! '>=2.0 && <2.1' hsass: ! '>=0.2 && <0.3' ...
homepage: '' changelog-type: '' - hash: a64a09d99c5ad86f36653a2180baab4bfeca640991cd87b8256aa212dbdb302e + hash: 6bb272928543d663a6e0658dcec12e40a88fba5e868f7ce3f29ec84e886bdfc0 test-bench-deps: {} maintainer: felipe.garay@usach.cl synopsis: A simple quasiquoter to include sass code in yesod changelog: '' ...
7
0.259259
4
3
d260e4607e932d7e96cbee239cb4bfb1db2c0927
appveyor.yml
appveyor.yml
before_build: - cmd: ECHO this is batch build_script: - qmake
init: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: ECHO this is batch build_script: - qmake on_finish: - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/a...
Add myself a way to RDP on the remote machine.
Add myself a way to RDP on the remote machine.
YAML
bsd-2-clause
wkoszek/flviz,wkoszek/flviz,wkoszek/flviz
yaml
## Code Before: before_build: - cmd: ECHO this is batch build_script: - qmake ## Instruction: Add myself a way to RDP on the remote machine. ## Code After: init: - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: EC...
+ init: + - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) before_build: - cmd: ECHO this is batch build_script: - qmake + on_finish: + - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubu...
4
1
4
0
3c3990afcf0b28145045ae78f4289f5075161a5e
lib/slack_coder/slack.ex
lib/slack_coder/slack.ex
defmodule SlackCoder.Slack do use Slack import SlackCoder.Slack.Helper alias SlackCoder.Config require Logger @online_message """ :slack: *Slack* :computer: *Coder* online! Reporting on any PRs since last online... """ def send_to(user, message) do send :slack, {user, String.strip(message)} end...
defmodule SlackCoder.Slack do use Slack import SlackCoder.Slack.Helper alias SlackCoder.Config require Logger @online_message """ :slack: *Slack* :computer: *Coder* online! Reporting on any PRs since last online... """ def send_to(user, message) when is_binary(user) do String.to_atom(user) |> sen...
Make sure user names are converted to atoms so that we can find them the user list.
Make sure user names are converted to atoms so that we can find them the user list.
Elixir
mit
mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder,mgwidmann/slack_coder
elixir
## Code Before: defmodule SlackCoder.Slack do use Slack import SlackCoder.Slack.Helper alias SlackCoder.Config require Logger @online_message """ :slack: *Slack* :computer: *Coder* online! Reporting on any PRs since last online... """ def send_to(user, message) do send :slack, {user, String.strip...
defmodule SlackCoder.Slack do use Slack import SlackCoder.Slack.Helper alias SlackCoder.Config require Logger @online_message """ :slack: *Slack* :computer: *Coder* online! Reporting on any PRs since last online... """ + + def send_to(user, message) when is_binary(user) do + Str...
4
0.088889
4
0
e2b382a69473dcfa6d93442f3ad3bc21ee6c90a0
examples/tic_ql_tabular_selfplay_all.py
examples/tic_ql_tabular_selfplay_all.py
''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningSelfPlay from ca...
''' The Q-learning algorithm is used to learn the state-action values for all Tic-Tac-Toe positions by playing games against itself (self-play). ''' from capstone.game.games import TicTacToe from capstone.game.players import GreedyQF, RandPlayer from capstone.game.utils import play_series, tic2pdf from capstone.rl impo...
Fix Tic-Tac-Toe Q-learning tabular self-play example
Fix Tic-Tac-Toe Q-learning tabular self-play example
Python
mit
davidrobles/mlnd-capstone-code
python
## Code Before: ''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearning...
''' - In this example the Q-learning algorithm is used via self-play - to learn the state-action values for all Tic-Tac-Toe positions. + The Q-learning algorithm is used to learn the state-action values for all + Tic-Tac-Toe positions by playing games against itself (self-play). ''' from capstone.game.games impor...
17
0.809524
11
6
ed69dd7849b8921917191d6a037d52043e44579f
algorithms/include/algorithms/quick_union_with_path_compression.h
algorithms/include/algorithms/quick_union_with_path_compression.h
/* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, this algorithm i...
/* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, this algorithm i...
Remove unnecessary checking of size_t >= 0
Remove unnecessary checking of size_t >= 0
C
mit
TusharJadhav/algorithms,TusharJadhav/algorithms
c
## Code Before: /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, ...
/* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data structure, any sequence of M union-find ops on N objects makes ≤ c ( N + M lg* N ) array accesses. In reality log * function can be considered to be at the most 5. Thus in theory, this...
2
0.064516
1
1
9d6b44313b7f2f2a5c2690939d942e3ce5b7cfc6
src/app/reducers/rootReducer.js
src/app/reducers/rootReducer.js
import {combineReducers} from "redux"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilots/pilotsReducer"; import mechsReducer from "features/mechs/mechsReducer"; ...
import {combineReducers} from "redux"; import {reduceReducers} from "common/utils/reducerUtils"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilots/pilotsReducer...
Update root reducer to wrap around combined reducer
Update root reducer to wrap around combined reducer
JavaScript
mit
markerikson/project-minimek,markerikson/project-minimek
javascript
## Code Before: import {combineReducers} from "redux"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilots/pilotsReducer"; import mechsReducer from "features/mechs...
import {combineReducers} from "redux"; + + import {reduceReducers} from "common/utils/reducerUtils"; import entitiesReducer from "./entitiesReducer"; import tabReducer from "features/tabs/tabReducer"; import unitInfoReducer from "features/unitInfo/unitInfoReducer"; import pilotsReducer from "features/pilo...
9
0.5
8
1
7fcb5b81f41088cdcb780e6c42dd529f8160ced5
src/js/app/global.js
src/js/app/global.js
import Helper from "./Helper"; const h = new Helper; export let userItems; if (h.detectEnvironment() === "development") { userItems = "./src/data/list.json"; } else if (h.detectEnvironment() === "production") { userItems = global.process.resourcesPath + "/app/src/data/list.json"; } else { throw `global |...
import Helper from "./Helper"; const h = new Helper; export let userItems; export let settings; if (h.detectEnvironment() === "development") { userItems = "./src/data/list.json"; settings = "./src/data/settings.json"; } else if (h.detectEnvironment() === "production") { userItems = global.process.resourc...
Fix wrong path to settings in production
Fix wrong path to settings in production
JavaScript
mpl-2.0
LosEagle/MediaWorld,LosEagle/MediaWorld
javascript
## Code Before: import Helper from "./Helper"; const h = new Helper; export let userItems; if (h.detectEnvironment() === "development") { userItems = "./src/data/list.json"; } else if (h.detectEnvironment() === "production") { userItems = global.process.resourcesPath + "/app/src/data/list.json"; } else { ...
import Helper from "./Helper"; const h = new Helper; export let userItems; + export let settings; if (h.detectEnvironment() === "development") { userItems = "./src/data/list.json"; + settings = "./src/data/settings.json"; } else if (h.detectEnvironment() === "production") { userItems ...
7
0.466667
4
3
5057b70a59c1a3c8301928c0297d4012bd96b21a
mapApp/views/index.py
mapApp/views/index.py
from django.shortcuts import render from mapApp.models import Incident, Theft, Hazard, Official, AlertArea from mapApp.forms import IncidentForm, HazardForm, TheftForm, GeofenceForm, EditForm import datetime def index(request, lat=None, lng=None, zoom=None): incidents = Incident.objects.select_related('point').all()...
from django.shortcuts import render from mapApp.models import Incident, Theft, Hazard, Official, AlertArea from mapApp.forms import IncidentForm, HazardForm, TheftForm, GeofenceForm, EditForm import datetime def index(request, lat=None, lng=None, zoom=None): incidents = Incident.objects.select_related('point').all()...
Remove expired hazards from main map
Remove expired hazards from main map
Python
mit
SPARLab/BikeMaps,SPARLab/BikeMaps,SPARLab/BikeMaps
python
## Code Before: from django.shortcuts import render from mapApp.models import Incident, Theft, Hazard, Official, AlertArea from mapApp.forms import IncidentForm, HazardForm, TheftForm, GeofenceForm, EditForm import datetime def index(request, lat=None, lng=None, zoom=None): incidents = Incident.objects.select_relate...
from django.shortcuts import render from mapApp.models import Incident, Theft, Hazard, Official, AlertArea from mapApp.forms import IncidentForm, HazardForm, TheftForm, GeofenceForm, EditForm import datetime def index(request, lat=None, lng=None, zoom=None): incidents = Incident.objects.select_relate...
2
0.057143
1
1
2778a83e7f77feb6b6acf04a2a557f6151bce352
src/pkg/tinysplinecxx-config.cmake.in
src/pkg/tinysplinecxx-config.cmake.in
@PACKAGE_INIT@ set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@") set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@") set_and_check(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@") set(TINYSPLINECXX_VERSION "@TINYSPLINE_VERSION@") se...
@PACKAGE_INIT@ set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@") set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@") set(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@") set(TINYSPLINECXX_VERSION "@TINYSPLINE_VERSION@") set(TINYSPLI...
Fix TINYSPLINECXX_BINARY_DIRS in CMake config file
Fix TINYSPLINECXX_BINARY_DIRS in CMake config file
unknown
mit
msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,msteinbeck/tinyspline,retuxx/tinyspline,retuxx/tinyspline
unknown
## Code Before: @PACKAGE_INIT@ set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@") set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@") set_and_check(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@") set(TINYSPLINECXX_VERSION "@TINYSPLI...
@PACKAGE_INIT@ set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@") set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@") - set_and_check(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@") ? ---------- + set(TINYSPLINECXX_BINARY_...
2
0.074074
1
1
fd0cb97366267bebc08af075d619bfbb9ab8ae38
packages/ma/MapWith.yaml
packages/ma/MapWith.yaml
homepage: '' changelog-type: markdown hash: b55c36b68c4a25f209b4013bb47d3184da9729df52e09ad45fb4473aaf3a850b test-bench-deps: base: -any maintainer: dj112358@outlook.com synopsis: 'mapWith: like fmap, but with additional arguments (isFirst, isLast, etc).' changelog: "# Revision history for MapWith\r\n\r\n## 0.1.0.0 -...
homepage: https://github.com/davjam/MapWith#readme changelog-type: markdown hash: 7ae1f42261f0f783f62bb76df2534cb02759788fdb987310783f3401fbc377fe test-bench-deps: base: -any maintainer: dj112358@outlook.com synopsis: 'mapWith: like fmap, but with additional arguments (isFirst, isLast, etc).' changelog: "# Revision h...
Update from Hackage at 2020-07-28T15:28:53Z
Update from Hackage at 2020-07-28T15:28:53Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: markdown hash: b55c36b68c4a25f209b4013bb47d3184da9729df52e09ad45fb4473aaf3a850b test-bench-deps: base: -any maintainer: dj112358@outlook.com synopsis: 'mapWith: like fmap, but with additional arguments (isFirst, isLast, etc).' changelog: "# Revision history for MapWith\r\n...
- homepage: '' + homepage: https://github.com/davjam/MapWith#readme changelog-type: markdown - hash: b55c36b68c4a25f209b4013bb47d3184da9729df52e09ad45fb4473aaf3a850b + hash: 7ae1f42261f0f783f62bb76df2534cb02759788fdb987310783f3401fbc377fe test-bench-deps: base: -any maintainer: dj112358@outlook.com synopsis...
4
0.190476
2
2
75ca68f4f89f18beb5b09c5f34b863f83899c2e8
localization/main.swift
localization/main.swift
import Foundation let count = CommandLine.arguments.count guard count > 1 else { abort() } let path = CommandLine.arguments[1] //Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit() if CommandLine.arguments.contains("export") { exportLocalizationsFro...
import Foundation let count = CommandLine.arguments.count guard count > 1 else { abort() } let path = CommandLine.arguments[1] if CommandLine.arguments.contains("export") { Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit() exportLocalizationsFr...
Revert "Revert "run localization_extract along with the export""
Revert "Revert "run localization_extract along with the export"" This reverts commit dd520ebe528fc80be404c21eb4b7af53478395cf.
Swift
mit
wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,montehurd/apps-ios-wikipedia,wikimedia/wikipedia-ios,julienbodet/wikipedia-ios,julienbodet/wikipedia-ios,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,josve05a/...
swift
## Code Before: import Foundation let count = CommandLine.arguments.count guard count > 1 else { abort() } let path = CommandLine.arguments[1] //Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit() if CommandLine.arguments.contains("export") { export...
import Foundation let count = CommandLine.arguments.count guard count > 1 else { abort() } let path = CommandLine.arguments[1] - //Process.launchedProcess(launchPath: "\(path)/scripts/localization_extract", arguments: [path]).waitUntilExit() - if CommandLine.arguments.contains("export") { + ...
3
0.166667
1
2
dbd401be6bae38cf3590891b5a71f4c71c23cfdb
src/components/Header.js
src/components/Header.js
"use strict"; import React, { Component } from 'react'; // Bootstrap import { Grid, Row, Col, Navbar, NavItem, Nav } from 'react-bootstrap'; export default class Header extends Component { render() { return( <Navbar inverse fixedTop> <Navbar.Header> <Navbar.Brand> <img src='/assets/...
"use strict"; import React, { Component } from 'react'; // Bootstrap import { Grid, Row, Col, Navbar, NavItem, Nav } from 'react-bootstrap'; export default class Header extends Component { render() { return( <Navbar inverse fixedTop> <Navbar.Header> <Navbar.Brand> <img src='http://l...
Fix link to nyc logo with temporary pointer to webpack-dev-server
Fix link to nyc logo with temporary pointer to webpack-dev-server
JavaScript
mit
codeforamerica/nyc-january-project,codeforamerica/nyc-january-project
javascript
## Code Before: "use strict"; import React, { Component } from 'react'; // Bootstrap import { Grid, Row, Col, Navbar, NavItem, Nav } from 'react-bootstrap'; export default class Header extends Component { render() { return( <Navbar inverse fixedTop> <Navbar.Header> <Navbar.Brand> <i...
"use strict"; import React, { Component } from 'react'; // Bootstrap import { Grid, Row, Col, Navbar, NavItem, Nav } from 'react-bootstrap'; export default class Header extends Component { render() { return( <Navbar inverse fixedTop> <Navbar.Header> <Navbar.Brand> - ...
2
0.076923
1
1
28e57d92de79391295198d738a7ae85021efb7e2
javascript/app.js
javascript/app.js
render("contacts"); render("projects"); function render(template) { var source = document.getElementById(template + "-template").innerHTML; var destination = document.querySelector("." + template); destination.innerHTML = Handlebars.compile(source)(data[template]); } var action = document.getElementById("...
render("contacts"); render("projects"); function render(template) { var source = document.getElementById(template + "-template").innerHTML; var destination = document.querySelector("." + template); destination.innerHTML = Handlebars.compile(source)(data[template]); } var action = document.getElementById("...
Set the bLazy offset to 500px
Set the bLazy offset to 500px
JavaScript
mit
AlanMorel/alanmorelcom
javascript
## Code Before: render("contacts"); render("projects"); function render(template) { var source = document.getElementById(template + "-template").innerHTML; var destination = document.querySelector("." + template); destination.innerHTML = Handlebars.compile(source)(data[template]); } var action = document....
render("contacts"); render("projects"); function render(template) { var source = document.getElementById(template + "-template").innerHTML; var destination = document.querySelector("." + template); destination.innerHTML = Handlebars.compile(source)(data[template]); } var action = docum...
3
0.130435
2
1
71fd1b82f4bc9f009a80a0495fafc82c15aa58b3
setup.py
setup.py
import sys from distutils.core import setup from setuptools import find_packages from lehrex import __version__ if not sys.version_info >= (3, 5, 1): sys.exit('Only support Python version >=3.5.1.\n' 'Found version is {}'.format(sys.version)) setup( name='lehrex', author='Lukas Kluft', a...
import sys from distutils.core import setup from setuptools import find_packages from lehrex import __version__ if not sys.version_info >= (3, 5, 1): sys.exit('Only support Python version >=3.5.1.\n' 'Found version is {}'.format(sys.version)) setup( name='lehrex', author='Lukas Kluft', a...
Add nose to list of dependencies.
Add nose to list of dependencies.
Python
mit
lkluft/lehrex
python
## Code Before: import sys from distutils.core import setup from setuptools import find_packages from lehrex import __version__ if not sys.version_info >= (3, 5, 1): sys.exit('Only support Python version >=3.5.1.\n' 'Found version is {}'.format(sys.version)) setup( name='lehrex', author='Luk...
import sys from distutils.core import setup from setuptools import find_packages from lehrex import __version__ if not sys.version_info >= (3, 5, 1): sys.exit('Only support Python version >=3.5.1.\n' 'Found version is {}'.format(sys.version)) setup( name='lehrex', a...
1
0.030303
1
0
c585aae7432af57f1818b3c6a8878f58e073723e
src/Log/Formatter/JsonFormatter.php
src/Log/Formatter/JsonFormatter.php
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files ...
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files ...
Disable slash escaping by default
Disable slash escaping by default
PHP
mit
ADmad/cakephp,ADmad/cakephp,cakephp/cakephp,ndm2/cakephp,ADmad/cakephp,CakeDC/cakephp,ADmad/cakephp,cakephp/cakephp,ndm2/cakephp,ndm2/cakephp,cakephp/cakephp,cakephp/cakephp,CakeDC/cakephp,CakeDC/cakephp,ndm2/cakephp,CakeDC/cakephp
php
## Code Before: <?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistrib...
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redis...
2
0.041667
1
1
a79ffcd91aa7720703bf88895aa0665257850932
src/main/java/net/mcft/copy/betterstorage/addon/armourersworkshop/AWDataManager.java
src/main/java/net/mcft/copy/betterstorage/addon/armourersworkshop/AWDataManager.java
package net.mcft.copy.betterstorage.addon.armourersworkshop; import net.minecraft.entity.Entity; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderHandler; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderManager; import riskyken.armourersWorkshop.api.common.equipment.EnumEquipment...
package net.mcft.copy.betterstorage.addon.armourersworkshop; import net.minecraft.entity.Entity; import net.minecraft.tileentity.TileEntity; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderHandler; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderManager; import riskyken.armourer...
Update to new Armourer's Workshop API
Update to new Armourer's Workshop API
Java
mit
TehStoneMan/BetterStorage,Adaptivity/BetterStorage,KingDarkLord/BetterStorage,CannibalVox/BetterStorage,TehStoneMan/BetterStorageToo,copygirl/BetterStorage,RX14/BetterStorage,Bunsan/BetterStorage,skyem123/BetterStorage,AnodeCathode/BetterStorage
java
## Code Before: package net.mcft.copy.betterstorage.addon.armourersworkshop; import net.minecraft.entity.Entity; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderHandler; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderManager; import riskyken.armourersWorkshop.api.common.equipme...
package net.mcft.copy.betterstorage.addon.armourersworkshop; import net.minecraft.entity.Entity; + import net.minecraft.tileentity.TileEntity; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderHandler; import riskyken.armourersWorkshop.api.client.render.IEquipmentRenderManager; import ris...
21
0.65625
12
9
77d0e1ca4fefd8cbe212403c16e41003ccdff484
app/assets/stylesheets/all/constructor.css.scss
app/assets/stylesheets/all/constructor.css.scss
$drop-area-height: 500px; .widgets-collection { ul.widgets { margin-bottom: 0; } } .constructor { .bootstrap-select { width: 100% !important; } .drop-area { min-height: $drop-area-height; ul { height: $drop-area-height; overflow: auto; } ul:empty { background: $p...
$drop-area-height: 500px; .widgets-collection { ul.widgets { margin-bottom: 0; } } .constructor { .bootstrap-select { width: 100% !important; } .drop-area { min-height: $drop-area-height; ul { height: $drop-area-height; overflow: auto; } ul:empty { background: $p...
Align placeholder text by center
Align placeholder text by center
SCSS
mit
supersid/railsbox,fastsupply/railsbox,wiserfirst/railsbox,andreychernih/railsbox,notch8/railsbox,notch8/railsbox,andreychernih/railsbox,notch8/railsbox,wiserfirst/railsbox,supersid/railsbox,notch8/railsbox,supersid/railsbox,supersid/railsbox,fastsupply/railsbox,andreychernih/railsbox,fastsupply/railsbox,wiserfirst/rail...
scss
## Code Before: $drop-area-height: 500px; .widgets-collection { ul.widgets { margin-bottom: 0; } } .constructor { .bootstrap-select { width: 100% !important; } .drop-area { min-height: $drop-area-height; ul { height: $drop-area-height; overflow: auto; } ul:empty { ...
$drop-area-height: 500px; .widgets-collection { ul.widgets { margin-bottom: 0; } } .constructor { .bootstrap-select { width: 100% !important; } .drop-area { min-height: $drop-area-height; ul { height: $drop-area-height; overflow: auto; ...
2
0.060606
2
0
e92f56d7f616381b41b6b285af133528702bea02
app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def get_title website_title = "NigoroJr" website_title = @page_title + " - " + website_title if @page_title return website_title end def get_login_status name = sprintf "%s (%s)", @logged_in_as.screen, @logged_in_as.username end def convert_to_markdown(text) ma...
module ApplicationHelper def get_title website_title = "NigoroJr" website_title = @page_title + " - " + website_title if @page_title return website_title end def get_login_status name = sprintf "%s (%s)", @logged_in_as.screen, @logged_in_as.username end def convert_to_markdown(text) ma...
Allow user-about page per language
Allow user-about page per language
Ruby
apache-2.0
NigoroJr/nigorojr.com,NigoroJr/nigorojr.com
ruby
## Code Before: module ApplicationHelper def get_title website_title = "NigoroJr" website_title = @page_title + " - " + website_title if @page_title return website_title end def get_login_status name = sprintf "%s (%s)", @logged_in_as.screen, @logged_in_as.username end def convert_to_markd...
module ApplicationHelper def get_title website_title = "NigoroJr" website_title = @page_title + " - " + website_title if @page_title return website_title end def get_login_status name = sprintf "%s (%s)", @logged_in_as.screen, @logged_in_as.username end def conv...
3
0.103448
3
0
c946d9fd72baf08d0ad70484729e3aebac36994b
roles/controller/tasks/nova.yml
roles/controller/tasks/nova.yml
--- - name: nova controller service start scripts action: template src=etc/init/{{ item }}.conf dest=/etc/init/{{ item }}.conf with_items: - nova-api - nova-cert - nova-conductor - nova-consoleauth - nova-scheduler - name: nova controller services action: service name={{ item }} state=started...
--- - name: nova controller service start scripts action: template src=etc/init/{{ item }}.conf dest=/etc/init/{{ item }}.conf with_items: - nova-api - nova-cert - nova-conductor - nova-consoleauth - nova-scheduler - name: nova controller services action: service name={{ item }} state=started...
Remove unused 'obtain admin tenant-id' task.
Remove unused 'obtain admin tenant-id' task. This task/var is no longer used after monitoring changes, and was showing spurious changes in ansible runs.
YAML
mit
davidcusatis/ursula,mjbrewer/ursula,jwaibel/ursula,msambol/ursula,pgraziano/ursula,rongzhus/ursula,andrewrothstein/ursula,j2sol/ursula,blueboxjesse/ursula,rongzhus/ursula,nirajdp76/ursula,channus/ursula,pbannister/ursula,zrs233/ursula,allomov/ursula,masteinhauser/ursula,blueboxgroup/ursula,blueboxgroup/ursula,channus/u...
yaml
## Code Before: --- - name: nova controller service start scripts action: template src=etc/init/{{ item }}.conf dest=/etc/init/{{ item }}.conf with_items: - nova-api - nova-cert - nova-conductor - nova-consoleauth - nova-scheduler - name: nova controller services action: service name={{ item ...
--- - name: nova controller service start scripts action: template src=etc/init/{{ item }}.conf dest=/etc/init/{{ item }}.conf with_items: - nova-api - nova-cert - nova-conductor - nova-consoleauth - nova-scheduler - name: nova controller services action: service name=...
4
0.181818
0
4
4ea883b0fb371da8f87d25bf3787d60b74443e19
roles/zookeeper/defaults/main.yml
roles/zookeeper/defaults/main.yml
zookeeper_service: zookeeper zookeeper_service_tags: "{{ zookeeper_service }}" zookeeper_env: dev zookeeper_ensemble: cluster1 zookeeper_container_name: "{{ zookeeper_service }}-{{ zookeeper_env }}-{{ zookeeper_ensemble }}-zkid{{ zk_id }}" zookeeper_data_volume: "zookeeperdata-{{ zookeeper_env }}-{{ zookeeper_ensemb...
zookeeper_service: zookeeper zookeeper_service_tags: "{{ zookeeper_service }}" zookeeper_ensemble: cluster1 zookeeper_container_name: "{{ zookeeper_service }}" zookeeper_data_volume: "{{ zookeeper_service }}-data-volume" zookeeper_image: asteris/zookeeper zookeeper_tag: latest zookeeper_ports: "-p 2181:2181 -p 2888...
Clean up zk default vars
Clean up zk default vars
YAML
apache-2.0
revpoint/microservices-infrastructure,ContainerSolutions/microservices-infrastructure,huodon/microservices-infrastructure,ddONGzaru/microservices-infrastructure,KaGeN101/mantl,CiscoCloud/microservices-infrastructure,mehulsbhatt/microservices-infrastructure,groknix/microservices-infrastructure,pinterb/microservices-infr...
yaml
## Code Before: zookeeper_service: zookeeper zookeeper_service_tags: "{{ zookeeper_service }}" zookeeper_env: dev zookeeper_ensemble: cluster1 zookeeper_container_name: "{{ zookeeper_service }}-{{ zookeeper_env }}-{{ zookeeper_ensemble }}-zkid{{ zk_id }}" zookeeper_data_volume: "zookeeperdata-{{ zookeeper_env }}-{{ ...
zookeeper_service: zookeeper zookeeper_service_tags: "{{ zookeeper_service }}" - zookeeper_env: dev zookeeper_ensemble: cluster1 - zookeeper_container_name: "{{ zookeeper_service }}-{{ zookeeper_env }}-{{ zookeeper_ensemble }}-zkid{{ zk_id }}" - zookeeper_data_volume: "zookeeperdata-{{ zookeeper_env }}-{{ zook...
13
1.083333
6
7
9a227b186108a0f7d6be3a9cdc91abbd392a8402
.github/release-drafter.yml
.github/release-drafter.yml
name-template: v$NEXT_PATCH_VERSION 🌈 tag-template: v$NEXT_PATCH_VERSION categories: - title: 🚀 Features label: feature - title: 🐛 Bug Fixes label: fix - title: 🧰 Maintenance label: chore change-template: '- $TITLE (#$NUMBER) - @$AUTHOR' template: | ## Changes $CHANGES ## Contributors ...
name-template: v$NEXT_PATCH_VERSION 🌈 tag-template: v$NEXT_PATCH_VERSION categories: - title: 🚀 Features label: feature - title: 🐛 Bug Fixes label: fix - title: 🧰 Maintenance label: chore - title: Dependencies and Libraries label: dependencies change-template: '- $TITLE (#$NUMBER) - @$AUTHOR...
Add dependencies section to release drafter
chore(tools): Add dependencies section to release drafter
YAML
apache-2.0
fossasia/open-event-android,fossasia/open-event-android,fossasia/rp15,fossasia/open-event-android
yaml
## Code Before: name-template: v$NEXT_PATCH_VERSION 🌈 tag-template: v$NEXT_PATCH_VERSION categories: - title: 🚀 Features label: feature - title: 🐛 Bug Fixes label: fix - title: 🧰 Maintenance label: chore change-template: '- $TITLE (#$NUMBER) - @$AUTHOR' template: | ## Changes $CHANGES ##...
name-template: v$NEXT_PATCH_VERSION 🌈 tag-template: v$NEXT_PATCH_VERSION categories: - title: 🚀 Features label: feature - title: 🐛 Bug Fixes label: fix - title: 🧰 Maintenance label: chore + - title: Dependencies and Libraries + label: dependencies change-template: '- $TIT...
2
0.105263
2
0
0c10896df49edd33e8db136daeaffd6c2c567ee6
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.0) project(vcmp-python-plugin) add_subdirectory(pybind11) add_library(${PROJECT_NAME} SHARED main.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE pybind11::embed) math(EXPR _CMAKE_BITS "${CMAKE_SIZEOF_VOID_P} * 8") if(CMAKE_SYSTEM_NAME STREQUAL "Windows") set(OS_NAME "win") else...
cmake_minimum_required(VERSION 3.0) project(vcmp-python-plugin) add_subdirectory(pybind11) add_library(${PROJECT_NAME} SHARED main.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE pybind11::embed) math(EXPR _CMAKE_BITS "${CMAKE_SIZEOF_VOID_P} * 8") if(CMAKE_SYSTEM_NAME STREQUAL "Windows") set(OS_NAME "win") else...
Add Python version info to output name.
Add Python version info to output name.
Text
mit
ysc3839/vcmp-python-plugin,ysc3839/vcmp-python-plugin,ysc3839/vcmp-python-plugin
text
## Code Before: cmake_minimum_required(VERSION 3.0) project(vcmp-python-plugin) add_subdirectory(pybind11) add_library(${PROJECT_NAME} SHARED main.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE pybind11::embed) math(EXPR _CMAKE_BITS "${CMAKE_SIZEOF_VOID_P} * 8") if(CMAKE_SYSTEM_NAME STREQUAL "Windows") set(OS_...
cmake_minimum_required(VERSION 3.0) project(vcmp-python-plugin) add_subdirectory(pybind11) add_library(${PROJECT_NAME} SHARED main.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE pybind11::embed) math(EXPR _CMAKE_BITS "${CMAKE_SIZEOF_VOID_P} * 8") if(CMAKE_SYSTEM_NAME STREQUAL "Windows")...
6
0.315789
5
1
6f608d521539a6c6d492185c964853021ba4a5a3
lib/assembly.h
lib/assembly.h
/* ===-- assembly.h - compiler-rt assembler support macros -----------------=== * * The LLVM Compiler Infrastructure * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * * ===-------------------------------------------------------...
/* ===-- assembly.h - compiler-rt assembler support macros -----------------=== * * The LLVM Compiler Infrastructure * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * * ===-------------------------------------------------------...
Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF.
Use __USER_LABEL_PREFIX__ so that we don't add a _ prefix on ELF. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@86542 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
c
## Code Before: /* ===-- assembly.h - compiler-rt assembler support macros -----------------=== * * The LLVM Compiler Infrastructure * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * * ===---------------------------------------...
/* ===-- assembly.h - compiler-rt assembler support macros -----------------=== * * The LLVM Compiler Infrastructure * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * * ===---------------------------------------...
2
0.047619
1
1
56f9e0d403402d7b3a210925a25fd110c597be4c
blueprints/ember-flexberry-data/index.js
blueprints/ember-flexberry-data/index.js
/*jshint node:true*/ module.exports = { description: 'Adds necessary packages to application', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } afterInstall: function(options) { var _this = this; ret...
/* globals module */ module.exports = { description: 'Adds necessary packages to application', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } afterInstall: function(options) { var _this = this; ret...
Fix `globals` label for jshint
Fix `globals` label for jshint in default blueprint
JavaScript
mit
Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-data,Flexberry/ember-flexberry-projections,Flexberry/ember-flexberry-projections
javascript
## Code Before: /*jshint node:true*/ module.exports = { description: 'Adds necessary packages to application', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } afterInstall: function(options) { var _this...
- /*jshint node:true*/ + /* globals module */ module.exports = { description: 'Adds necessary packages to application', // locals: function(options) { // // Return custom template variables here. // return { // foo: options.entity.options.foo // }; // } afterInstall: fu...
2
0.064516
1
1
99cff4f733c43b74bd4195e0df8d9b57671f369e
agent-container/agent-config.json
agent-container/agent-config.json
{"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","config":{"ExposedPorts":{"51678/tcp":{},"51679/tcp":{}},"Healthcheck":{"Test":["CMD","/agent","--healthcheck"]}},"history":[{"created":"~~timestamp~~","author":"Amazon Web Services, Inc.","created_by":"°o°","...
{"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","config":{"ExposedPorts":{"51678/tcp":{},"51679/tcp":{}},"Env":["PATH=/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Healthcheck":{"Test":["CMD","/agent","--healthcheck"]}},"history...
Add env with required path for appmesh integration.
Add env with required path for appmesh integration.
JSON
apache-2.0
aws/amazon-ecs-agent,aws/amazon-ecs-agent,aws/amazon-ecs-agent,aws/amazon-ecs-agent
json
## Code Before: {"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","config":{"ExposedPorts":{"51678/tcp":{},"51679/tcp":{}},"Healthcheck":{"Test":["CMD","/agent","--healthcheck"]}},"history":[{"created":"~~timestamp~~","author":"Amazon Web Services, Inc.","cre...
- {"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","config":{"ExposedPorts":{"51678/tcp":{},"51679/tcp":{}},"Healthcheck":{"Test":["CMD","/agent","--healthcheck"]}},"history":[{"created":"~~timestamp~~","author":"Amazon Web Services, Inc.","created_by":"°o°"...
2
2
1
1
efc34b5f3b38d70fc64e6595c95a74a919a40938
dev/install.cmd
dev/install.cmd
@echo off echo Update environment... echo Update Ruby... call gem update --system echo Update Ruby Sass... call gem update sass echo Update Bourbon... call gem update bourbon call gem update neat call gem update bitters echo Update Grunt... call npm update grunt-cli -g echo Install project... cal...
@echo off echo Update Grunt... call npm update grunt-cli -g echo Install project... call npm install --save-dev pause
Remove Ruby update from unstall
Remove Ruby update from unstall
Batchfile
mit
ideus-team/html-framework,ideus-team/html-framework
batchfile
## Code Before: @echo off echo Update environment... echo Update Ruby... call gem update --system echo Update Ruby Sass... call gem update sass echo Update Bourbon... call gem update bourbon call gem update neat call gem update bitters echo Update Grunt... call npm update grunt-cli -g echo Install project... call ...
@echo off - echo Update environment... - - echo Update Ruby... - call gem update --system - - echo Update Ruby Sass... - call gem update sass - - echo Update Bourbon... - call gem update bourbon - call gem update neat - call gem update bitters echo Update Grunt... call npm update grunt-cli -g echo Inst...
12
0.571429
0
12
09554e9fad0ca9d565008433dc7bfc87781060cd
presto-main/src/test/java/com/facebook/presto/operator/aggregation/TestCountColumnAggregation.java
presto-main/src/test/java/com/facebook/presto/operator/aggregation/TestCountColumnAggregation.java
package com.facebook.presto.operator.aggregation; import com.facebook.presto.block.Block; import com.facebook.presto.block.BlockBuilder; import static com.facebook.presto.operator.aggregation.CountColumnAggregation.COUNT_COLUMN; import static com.facebook.presto.tuple.TupleInfo.SINGLE_LONG; public class TestCountCo...
package com.facebook.presto.operator.aggregation; import com.facebook.presto.block.Block; import com.facebook.presto.block.BlockBuilder; import static com.facebook.presto.operator.aggregation.CountColumnAggregation.COUNT_COLUMN; import static com.facebook.presto.tuple.TupleInfo.SINGLE_LONG; public class TestCountCo...
Fix broken tests for count column
Fix broken tests for count column
Java
apache-2.0
EvilMcJerkface/presto,ajoabraham/presto,yuananf/presto,wyukawa/presto,hulu/presto,chrisunder/presto,troels/nz-presto,hgschmie/presto,zhenxiao/presto,EvilMcJerkface/presto,wagnermarkd/presto,rockerbox/presto,harunurhan/presto,nileema/presto,cosinequanon/presto,Yaliang/presto,mode/presto,stewartpark/presto,fiedukow/prest...
java
## Code Before: package com.facebook.presto.operator.aggregation; import com.facebook.presto.block.Block; import com.facebook.presto.block.BlockBuilder; import static com.facebook.presto.operator.aggregation.CountColumnAggregation.COUNT_COLUMN; import static com.facebook.presto.tuple.TupleInfo.SINGLE_LONG; public c...
package com.facebook.presto.operator.aggregation; import com.facebook.presto.block.Block; import com.facebook.presto.block.BlockBuilder; import static com.facebook.presto.operator.aggregation.CountColumnAggregation.COUNT_COLUMN; import static com.facebook.presto.tuple.TupleInfo.SINGLE_LONG; publ...
3
0.081081
0
3
26b07bafec285d68529f209bf37a6caffa71d356
.travis.yml
.travis.yml
language: clojure notifications: irc: "jcsi.ms#qualityclj"
language: clojure notifications: irc: channels: - "jcsi.ms#qualityclj" use_notice: true
Use a notice instead of join/message.
Use a notice instead of join/message.
YAML
epl-1.0
quality-clojure/qualityclj
yaml
## Code Before: language: clojure notifications: irc: "jcsi.ms#qualityclj" ## Instruction: Use a notice instead of join/message. ## Code After: language: clojure notifications: irc: channels: - "jcsi.ms#qualityclj" use_notice: true
language: clojure notifications: + irc: + channels: - irc: "jcsi.ms#qualityclj" ? ^^^^ + - "jcsi.ms#qualityclj" ? ^^^^ + use_notice: true
5
1.666667
4
1
7e406575de559869a44064fc4b3a46cc5b3f7571
src/ResourceManagement/Batch/Batch.Tests/project.json
src/ResourceManagement/Batch/Batch.Tests/project.json
{ "version": "1.0.0-*", "description": "Batch.Tests Class Library", "authors": [ "Microsoft Corporation" ], "testRunner": "xunit", "frameworks": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"], "dependencies": { "Microsoft.NETCore.App": { "type": "platfo...
{ "version": "1.0.0-*", "description": "Batch.Tests Class Library", "authors": [ "Microsoft Corporation" ], "buildOptions": { "delaySign": true, "publicSign": false, "keyFile": "../../../../tools/MSSharedLibKey.snk", "compile": "../../../../tools/DisableTestRunParallel.cs" }, "testRunner":...
Add build option to disable parallel test execution
Add build option to disable parallel test execution
JSON
mit
shahabhijeet/azure-sdk-for-net,yugangw-msft/azure-sdk-for-net,samtoubia/azure-sdk-for-net,markcowl/azure-sdk-for-net,jamestao/azure-sdk-for-net,pankajsn/azure-sdk-for-net,AsrOneSdk/azure-sdk-for-net,hyonholee/azure-sdk-for-net,yaakoviyun/azure-sdk-for-net,peshen/azure-sdk-for-net,btasdoven/azure-sdk-for-net,jamestao/az...
json
## Code Before: { "version": "1.0.0-*", "description": "Batch.Tests Class Library", "authors": [ "Microsoft Corporation" ], "testRunner": "xunit", "frameworks": { "netcoreapp1.0": { "imports": ["dnxcore50", "portable-net45+win8"], "dependencies": { "Microsoft.NETCore.App": { ...
{ "version": "1.0.0-*", "description": "Batch.Tests Class Library", "authors": [ "Microsoft Corporation" ], + + "buildOptions": { + "delaySign": true, + "publicSign": false, + "keyFile": "../../../../tools/MSSharedLibKey.snk", + "compile": "../../../../tools/DisableTestRunParallel.cs" +...
7
0.259259
7
0
628c92772d72467b9d5172434a259936e7e5d613
type/model/dependency.go
type/model/dependency.go
package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid"` DependentProjectUUID string `json:"dependent_project_uuid"` SourceCD int `json:"source_...
package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid" gorm:"ForeignKey:UUID"` DependentProjectUUID string `json:"dependent_project_uuid" gorm:"F...
Set foreign key information to Dependency
Set foreign key information to Dependency
Go
mit
torinos-io/api,torinos-io/api
go
## Code Before: package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { ProjectUUID string `json:"project_uuid"` DependentProjectUUID string `json:"dependent_project_uuid"` SourceCD in...
package model // SourceCD // 0 = unknown // 1 = carthage // 2 = cocoapods // 3 = submodule // Dependency has project dependency and source distination. type Dependency struct { - ProjectUUID string `json:"project_uuid"` + ProjectUUID string `json:"project_uuid" gorm:"ForeignKey...
4
0.266667
2
2
c0291513220b954d9a5732f8b0bf365474db9160
spec/title-bar-spec.coffee
spec/title-bar-spec.coffee
TitleBar = require '../src/title-bar' describe "TitleBar", -> it 'updates the title based on document.title when the active pane item changes', -> titleBar = new TitleBar({ workspace: atom.workspace, themes: atom.themes, applicationDelegate: atom.applicationDelegate, }) expect(titleBar...
TitleBar = require '../src/title-bar' describe "TitleBar", -> it "updates the title based on document.title when the active pane item changes", -> titleBar = new TitleBar({ workspace: atom.workspace, themes: atom.themes, applicationDelegate: atom.applicationDelegate, }) expect(titleBar...
Test that updateWindowSheetOffset can be called
Test that updateWindowSheetOffset can be called Testing the wiring to themes isn't worth it, but this at least makes sure we don't break if Electron APIs change.
CoffeeScript
mit
stinsonga/atom,andrewleverette/atom,t9md/atom,FIT-CSE2410-A-Bombs/atom,brettle/atom,andrewleverette/atom,PKRoma/atom,decaffeinate-examples/atom,me-benni/atom,kevinrenaers/atom,Ingramz/atom,helber/atom,Arcanemagus/atom,helber/atom,t9md/atom,tjkr/atom,tjkr/atom,atom/atom,stinsonga/atom,PKRoma/atom,FIT-CSE2410-A-Bombs/ato...
coffeescript
## Code Before: TitleBar = require '../src/title-bar' describe "TitleBar", -> it 'updates the title based on document.title when the active pane item changes', -> titleBar = new TitleBar({ workspace: atom.workspace, themes: atom.themes, applicationDelegate: atom.applicationDelegate, }) ...
TitleBar = require '../src/title-bar' describe "TitleBar", -> - it 'updates the title based on document.title when the active pane item changes', -> ? ^ ^ + it "updates the title based on document.title when the active pane item ...
12
0.631579
11
1