commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
5
4.84k
subject
stringlengths
15
778
message
stringlengths
16
6.86k
lang
stringlengths
1
30
license
stringclasses
13 values
repos
stringlengths
5
116k
config
stringlengths
1
30
content
stringlengths
105
8.72k
d12c73b38cc700cec97649e517006a259a88eb05
.github/workflows/main.yml
.github/workflows/main.yml
name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set Docker image name run: echo ::set-env name=BLD_DOCKER_IMAGE::$(echo $GITHUB_REPOSITORY/${PWD##*/} | tr '[:upper:]' '[:lower:]') - name: Extract Docker username ...
name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set Docker image name run: echo "BLD_DOCKER_IMAGE=$(echo $GITHUB_REPOSITORY/${PWD##*/} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV - name: Extract Docker username ...
Fix GitHub Action environment configuration
Fix GitHub Action environment configuration
YAML
mit
MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure,MCLD/greatreadingadventure
yaml
## Code Before: name: CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Set Docker image name run: echo ::set-env name=BLD_DOCKER_IMAGE::$(echo $GITHUB_REPOSITORY/${PWD##*/} | tr '[:upper:]' '[:lower:]') - name: Extract Do...
d758ff96e486afc2359f5b958cc213d76c56f89c
pkg/a8rcloud/apikeys.go
pkg/a8rcloud/apikeys.go
package a8rcloud import ( "github.com/telepresenceio/telepresence/rpc/v2/manager" ) // API key descriptions to use when requesting API keys from Ambassador Cloud. const ( KeyDescWorkstation = "laptop" KeyDescTrafficManager = "manager" ) func KeyDescAgent(spec *manager.InterceptSpec) string { return "agent-" +...
package a8rcloud import ( "github.com/telepresenceio/telepresence/rpc/v2/manager" ) // API key descriptions to use when requesting API keys from Ambassador Cloud. const ( KeyDescWorkstation = "telepresence:workstation" KeyDescTrafficManager = "telepresence:traffic-manager" ) func KeyDescAgent(spec *manager.Int...
Use slightly more explicit API key descriptions
pkg/a8rcloud: Use slightly more explicit API key descriptions Signed-off-by: Luke Shumaker <1abe3165bcc8c29e8b31e5c88636540fb9350004@datawire.io>
Go
apache-2.0
datawire/telepresence,datawire/telepresence,datawire/telepresence
go
## Code Before: package a8rcloud import ( "github.com/telepresenceio/telepresence/rpc/v2/manager" ) // API key descriptions to use when requesting API keys from Ambassador Cloud. const ( KeyDescWorkstation = "laptop" KeyDescTrafficManager = "manager" ) func KeyDescAgent(spec *manager.InterceptSpec) string { r...
2f16eb25db856b72138f6dfb7d19e799bd460287
tests/test_helpers.py
tests/test_helpers.py
import pytest from os.path import basename from helpers import utils, fixture @pytest.mark.skipif(pytest.config.getoption("--application") is not False, reason="application passed; skipping base module tests") class TestHelpers(): def test_wildcards1(): d = utils.get_wildcards([('"{prefix}.bam"', "medium....
import pytest from os.path import basename from helpers import utils, fixture pytestmark = pytest.mark.skipif(pytest.config.getoption("--application") is not False, reason="application passed; skipping base module tests") def test_wildcards1(): d = utils.get_wildcards([('"{prefix}.bam"', "medium.bam")], {}) ...
Use global pytestmark to skip tests; deprecate class
Use global pytestmark to skip tests; deprecate class
Python
mit
percyfal/snakemake-rules,percyfal/snakemake-rules,percyfal/snakemakelib-rules,percyfal/snakemakelib-rules,percyfal/snakemakelib-rules
python
## Code Before: import pytest from os.path import basename from helpers import utils, fixture @pytest.mark.skipif(pytest.config.getoption("--application") is not False, reason="application passed; skipping base module tests") class TestHelpers(): def test_wildcards1(): d = utils.get_wildcards([('"{prefix}...
46c3140c3f14e68f89ec32ab8a9260be6af98033
Cargo.toml
Cargo.toml
[package] name = "lossy" version = "0.0.1" authors = ["Liam Marshall <liam@cpan.org>"] [lib] crate-type = ["staticlib"] [dependencies] rlibc = "0.1.4"
[package] name = "lossy" version = "0.0.1" authors = ["Liam Marshall <liam@cpan.org>"] [lib] crate-type = ["staticlib"] [dependencies] rlibc = "0.1.4" spin = "0.3.4"
Add dependency on spin crate (for spinlocks)
Add dependency on spin crate (for spinlocks)
TOML
bsd-3-clause
ArchimedesPi/lossy
toml
## Code Before: [package] name = "lossy" version = "0.0.1" authors = ["Liam Marshall <liam@cpan.org>"] [lib] crate-type = ["staticlib"] [dependencies] rlibc = "0.1.4" ## Instruction: Add dependency on spin crate (for spinlocks) ## Code After: [package] name = "lossy" version = "0.0.1" authors = ["Liam Marshall <lia...
adb93285168d6abd0e7cb09fbf1f004c97a79627
lib/index.js
lib/index.js
var through = require("through"); var path = require("path"); console.warn("Injecting Rewireify into modules"); module.exports = function rewireify(file, options) { options = { ignore: options.ignore || "" }; var ignore = ["__get__", "__set__", "rewire"].concat(options.ignore.split(",")); if (/\.json$/....
var through = require("through"); var path = require("path"); console.warn("Injecting Rewireify into modules"); module.exports = function rewireify(file, options) { options = { ignore: options.ignore || "" }; var ignore = ["__get__", "__set__", "rewire"].concat(options.ignore.split(",")); if (/\.json$/....
Move getter and setter require statements to post so that test error line numbers are not skewed
Move getter and setter require statements to post so that test error line numbers are not skewed
JavaScript
mit
TheSavior/rewireify
javascript
## Code Before: var through = require("through"); var path = require("path"); console.warn("Injecting Rewireify into modules"); module.exports = function rewireify(file, options) { options = { ignore: options.ignore || "" }; var ignore = ["__get__", "__set__", "rewire"].concat(options.ignore.split(",")); ...
a37ef5af5a28207d21b11f08990e233a34afa768
acme/utils/loggers/__init__.py
acme/utils/loggers/__init__.py
"""Acme loggers.""" from acme.utils.loggers.aggregators import Dispatcher from acme.utils.loggers.asynchronous import AsyncLogger from acme.utils.loggers.base import Logger from acme.utils.loggers.base import to_numpy from acme.utils.loggers.csv import CSVLogger from acme.utils.loggers.filters import NoneFilter from ...
"""Acme loggers.""" from acme.utils.loggers.aggregators import Dispatcher from acme.utils.loggers.asynchronous import AsyncLogger from acme.utils.loggers.base import Logger from acme.utils.loggers.base import LoggingData from acme.utils.loggers.base import to_numpy from acme.utils.loggers.csv import CSVLogger from ac...
Add LoggingData annotation to Logger base import so users can type-annotate Logger subclasses properly.
Add LoggingData annotation to Logger base import so users can type-annotate Logger subclasses properly. PiperOrigin-RevId: 315308368 Change-Id: I608c9f6f5f4b9edbbf504ec321fc4c8e90ed8193
Python
apache-2.0
deepmind/acme,deepmind/acme
python
## Code Before: """Acme loggers.""" from acme.utils.loggers.aggregators import Dispatcher from acme.utils.loggers.asynchronous import AsyncLogger from acme.utils.loggers.base import Logger from acme.utils.loggers.base import to_numpy from acme.utils.loggers.csv import CSVLogger from acme.utils.loggers.filters import ...
d243d79d1eda6849c75af9cfe444f4aaea6aa218
modules/collectd/templates/etc/collectd/collectd.conf.erb
modules/collectd/templates/etc/collectd/collectd.conf.erb
Hostname "<%= @fqdn_metrics %>" FQDNLookup false #BaseDir "/var/lib/collectd" #PluginDir "/usr/lib/collectd" #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db" #Interval 10 #Timeout 2 #ReadThreads 5 Include "/etc/collectd/types.conf" Include "/etc/collectd/conf.d/*.conf"
<% if scope.lookupvar('::aws_migration') -%> Hostname "<%= scope.lookupvar('::govuk_node_class') %>-<%= @fqdn %>" <% else -%> Hostname "<%= @fqdn_metrics %>" <% end -%> FQDNLookup false #BaseDir "/var/lib/collectd" #PluginDir "/usr/lib/collectd" #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db" #Inte...
Change the collectd naming scheme when on AWS
Change the collectd naming scheme when on AWS We need to change the way we name machines on collectd when on AWS since the machines have different hostnames now.
HTML+ERB
mit
alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet,alphagov/govuk-puppet
html+erb
## Code Before: Hostname "<%= @fqdn_metrics %>" FQDNLookup false #BaseDir "/var/lib/collectd" #PluginDir "/usr/lib/collectd" #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db" #Interval 10 #Timeout 2 #ReadThreads 5 Include "/etc/collectd/types.conf" Include "/etc/collectd/conf.d/*.conf" ## Instructi...
3c56cf28543d39013285591c16a148a5bd4a300d
clojure/anagrams-mutable.clj
clojure/anagrams-mutable.clj
; An attempt to use in-place array mutation in Clojure ; Highly non-idiomatic. Should not be used. EXPERIMENTAL. ; Also it is ridiculously slow. Does anyone know why? (defn generatePermutations [a n] (if (zero? n) (println (apply str a)) (doseq [i (range 0 (inc n))] (generatePermutations a (dec n)) ...
; An attempt to use in-place array mutation in Clojure ; Highly non-idiomatic. Should not be used. EXPERIMENTAL. ; Also it is ridiculously slow. Does anyone know why? (defn generatePermutations [^chars a n] (if (zero? n) ();(println (apply str a)) (doseq [i (range 0 (inc n))] (generatePermutations a (d...
Use char arrays and type hints
Use char arrays and type hints
Clojure
mit
rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal...
clojure
## Code Before: ; An attempt to use in-place array mutation in Clojure ; Highly non-idiomatic. Should not be used. EXPERIMENTAL. ; Also it is ridiculously slow. Does anyone know why? (defn generatePermutations [a n] (if (zero? n) (println (apply str a)) (doseq [i (range 0 (inc n))] (generatePermutation...
cc77e86408f3502ce353e30ee0fc8f006afb048e
ports/nrf/boards/ohs2020_badge/mpconfigboard.mk
ports/nrf/boards/ohs2020_badge/mpconfigboard.mk
USB_VID = 0x239A USB_PID = 0x8072 USB_PRODUCT = "OHS2020 Badge" USB_MANUFACTURER = "Adafruit Industries LLC" MCU_CHIP = nrf52840 QSPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICE_COUNT = 1 EXTERNAL_FLASH_DEVICES = "W25Q32JV_IQ"
USB_VID = 0x239A USB_PID = 0x8080 USB_PRODUCT = "OHS2020 Badge" USB_MANUFACTURER = "OSHWA" MCU_CHIP = nrf52840 QSPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICE_COUNT = 1 EXTERNAL_FLASH_DEVICES = "W25Q32JV_IQ"
Update the VID and USB company string
Update the VID and USB company string Signed-off-by: Michael Welling <0be6b46d22db2f730b2107511aee020d642b52a4@ieee.org>
Makefile
mit
adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/micropython
makefile
## Code Before: USB_VID = 0x239A USB_PID = 0x8072 USB_PRODUCT = "OHS2020 Badge" USB_MANUFACTURER = "Adafruit Industries LLC" MCU_CHIP = nrf52840 QSPI_FLASH_FILESYSTEM = 1 EXTERNAL_FLASH_DEVICE_COUNT = 1 EXTERNAL_FLASH_DEVICES = "W25Q32JV_IQ" ## Instruction: Update the VID and USB company string Signed-off-by: Micha...
b57f844d79652f50ffac18cfe7a93ffa6119c31f
addon/chrome/popup.js
addon/chrome/popup.js
function renderStatus(statusText) { document.getElementById('status').textContent = statusText; } document.addEventListener('DOMContentLoaded', function() { });
// also add animation like http://codepen.io/lbebber/pen/KwGEQv function renderStatus(statusText) { document.getElementById('status').textContent = statusText; } document.addEventListener('DOMContentLoaded', function() { });
Add link to additional animation
Add link to additional animation
JavaScript
apache-2.0
hebra/achromajs,hebra/achromajs,hebra/achromajs
javascript
## Code Before: function renderStatus(statusText) { document.getElementById('status').textContent = statusText; } document.addEventListener('DOMContentLoaded', function() { }); ## Instruction: Add link to additional animation ## Code After: // also add animation like http://codepen.io/lbebber/pen/KwGEQv funct...
281ae2c53272cb1f78e883c3680f45157e717c44
docs/major-releases.md
docs/major-releases.md
* First release. ## 2.x ### New features * Support for PostgreSQL 11.x declarative table partitioning. ### Other changes * Uses Django 2.x's mechanism for overriding queries and compilers. `django-postgres-extra` is extensible in the same way that Django is extensible now. * Removes hacks because Django 2.x is more e...
* First release. ## 2.x ### New features * Support for PostgreSQL 11.x declarative table partitioning. ### Other changes * Uses Django 2.x's mechanism for overriding queries and compilers. `django-postgres-extra` is extensible in the same way that Django is extensible now. * Removes hacks because Django 2.x is more e...
Add FAQ for breaking changes
Add FAQ for breaking changes
Markdown
mit
SectorLabs/django-postgres-extra
markdown
## Code Before: * First release. ## 2.x ### New features * Support for PostgreSQL 11.x declarative table partitioning. ### Other changes * Uses Django 2.x's mechanism for overriding queries and compilers. `django-postgres-extra` is extensible in the same way that Django is extensible now. * Removes hacks because Djan...
4e2fd123b77572bdf74938d08f3e84ccfa15af36
pycargr/cli.py
pycargr/cli.py
import csv from argparse import ArgumentParser from json import dumps from pycargr.model import to_dict from pycargr.parser import parse_car_page parser = ArgumentParser() parser.add_argument('car_ids', nargs='+') parser.add_argument('--output', choices=['csv', 'json', 'stdout'], default='stdout') def main(): a...
import csv from argparse import ArgumentParser from json import dumps from pycargr.model import to_dict from pycargr.parser import parse_car_page parser = ArgumentParser() parser.add_argument('car_ids', nargs='+') parser.add_argument('--output', choices=['csv', 'json', 'stdout'], default='stdout') def main(): a...
Support both json and stdout the same
Support both json and stdout the same
Python
mit
Florents-Tselai/PyCarGr
python
## Code Before: import csv from argparse import ArgumentParser from json import dumps from pycargr.model import to_dict from pycargr.parser import parse_car_page parser = ArgumentParser() parser.add_argument('car_ids', nargs='+') parser.add_argument('--output', choices=['csv', 'json', 'stdout'], default='stdout') d...
51cf0602019e1458312cea4d566306bd8640e463
doc/index.rst
doc/index.rst
FOSHttpCache ============ This is the documentation for the FOSHttpCache library. This library integrates your PHP applications with HTTP caching proxies such as Varnish. Use this library to send invalidation requests from your application to the caching proxy and to test your caching and invalidation code against a ...
FOSHttpCache ============ This is the documentation for the `FOSHttpCache library <https://github.com/FriendsOfSymfony/FOSHttpCache>`_. This library integrates your PHP applications with HTTP caching proxies such as Varnish. Use this library to send invalidation requests from your application to the caching proxy and...
Add a link to GitHub
Add a link to GitHub
reStructuredText
mit
stof/FOSHttpCache,dantleech/FOSHttpCache,dantleech/FOSHttpCache,dantleech/FOSHttpCache,stof/FOSHttpCache,stof/FOSHttpCache
restructuredtext
## Code Before: FOSHttpCache ============ This is the documentation for the FOSHttpCache library. This library integrates your PHP applications with HTTP caching proxies such as Varnish. Use this library to send invalidation requests from your application to the caching proxy and to test your caching and invalidation...
9263664861ad49c3ea1ff214cb8c523cbfbc9ded
README.md
README.md
ASN.1 parser and (de)serializer in Rust
[![Build Status][build-image]][build-link] [build-image]: https://travis-ci.org/haxney/rust-asn1.svg?branch=master [build-link]: https://travis-ci.org/haxney/rust-asn1 # asn1 ASN.1 parser and (de)serializer in Rust
Add Travis build status badge like a cool person
Add Travis build status badge like a cool person
Markdown
mit
haxney/rust-asn1
markdown
## Code Before: ASN.1 parser and (de)serializer in Rust ## Instruction: Add Travis build status badge like a cool person ## Code After: [![Build Status][build-image]][build-link] [build-image]: https://travis-ci.org/haxney/rust-asn1.svg?branch=master [build-link]: https://travis-ci.org/haxney/rust-asn1 # asn1 ASN...
de74d2c424a43dc475888f8d96d323321de376bf
soda-fountain-jetty/src/main/scala/com/socrata/soda/server/SodaFountainJetty.scala
soda-fountain-jetty/src/main/scala/com/socrata/soda/server/SodaFountainJetty.scala
package com.socrata.soda.server import com.rojoma.simplearm.util._ import com.socrata.http.server.SocrataServerJetty import com.socrata.http.server.curator.CuratorBroker import com.socrata.soda.server.config.SodaFountainConfig import com.socrata.thirdparty.curator.DiscoveryFromConfig import com.socrata.thirdparty.metr...
package com.socrata.soda.server import com.rojoma.simplearm.util._ import com.socrata.http.server.SocrataServerJetty import com.socrata.http.server.curator.CuratorBroker import com.socrata.soda.server.config.SodaFountainConfig import com.socrata.thirdparty.curator.DiscoveryFromConfig import com.socrata.thirdparty.metr...
Use managed version of MetricsReporter
Use managed version of MetricsReporter
Scala
apache-2.0
socrata-platform/soda-fountain,socrata-platform/soda-fountain
scala
## Code Before: package com.socrata.soda.server import com.rojoma.simplearm.util._ import com.socrata.http.server.SocrataServerJetty import com.socrata.http.server.curator.CuratorBroker import com.socrata.soda.server.config.SodaFountainConfig import com.socrata.thirdparty.curator.DiscoveryFromConfig import com.socrata...
e6a76b4efa8de9d0a20e8bd5523675ca7eb1e184
db.go
db.go
package main import ( "database/sql" _ "github.com/go-sql-driver/mysql" "log" ) func dbConnection() *sql.DB { db, err := sql.Open("mysql", "root:@tcp(127.0.0.1:3306)/blog") if err != nil { log.Fatal(err) } return db }
package main import ( "database/sql" _ "github.com/go-sql-driver/mysql" "log" ) // dbConnection opens a new database connection and // returns a pointer to the sql.DB func dbConnection() *sql.DB { db, err := sql.Open("mysql", "root:@tcp(127.0.0.1:3306)/blog") if err != nil { log.Fatal(err) } return db }
Add documentation comments to methods
Add documentation comments to methods
Go
mit
nicholasrucci/blog,nicholasrucci/blog,nicholasrucci/blog
go
## Code Before: package main import ( "database/sql" _ "github.com/go-sql-driver/mysql" "log" ) func dbConnection() *sql.DB { db, err := sql.Open("mysql", "root:@tcp(127.0.0.1:3306)/blog") if err != nil { log.Fatal(err) } return db } ## Instruction: Add documentation comments to methods ## Code After: ...
33d39785187ac72165ec7021e9d56eb8f5110d6d
README.md
README.md
--- Python Version of Infinitesimal Plane-based Pose Estimation (IPPE) Original Matlab version from [tobycollins/IPPE](https://github.com/tobycollins/IPPE) Python Dependencies: numpy, opencv-python If you find this code useful, please cite the authors' paper in your work: @article{ year={2014}, issn={0920-5691}, jo...
--- Python Version of Infinitesimal Plane-based Pose Estimation (IPPE) Original Matlab version from [tobycollins/IPPE](https://github.com/tobycollins/IPPE) Python Dependencies: numpy, opencv-python If you find this code useful, please cite the authors' paper in your work: @article{ year={2014}, issn={0920-5691}, jo...
Add matlab to python info
Add matlab to python info
Markdown
mit
royxue/ippe_py
markdown
## Code Before: --- Python Version of Infinitesimal Plane-based Pose Estimation (IPPE) Original Matlab version from [tobycollins/IPPE](https://github.com/tobycollins/IPPE) Python Dependencies: numpy, opencv-python If you find this code useful, please cite the authors' paper in your work: @article{ year={2014}, issn...
c50d470492ed38aa05f147ad554c58877e5050ec
Execute/execute.py
Execute/execute.py
from importlib import import_module _modules = ['branching', 'data_processing'] class Execute(object): def __init__(self, registers, process_mode, memory): self.instruction = {} for module_name in _modules: mod = import_module("Execute." + module_name) for cls in [obj for ...
from importlib import import_module _modules = ['branching', 'data_processing'] class Execute(object): def __init__(self, registers, process_mode, memory): self.instruction = {} for module_name in _modules: mod = import_module("Execute." + module_name) for cls in [obj for ...
Check for duplicate instruction handlers
Check for duplicate instruction handlers
Python
mit
tdpearson/armdecode
python
## Code Before: from importlib import import_module _modules = ['branching', 'data_processing'] class Execute(object): def __init__(self, registers, process_mode, memory): self.instruction = {} for module_name in _modules: mod = import_module("Execute." + module_name) for ...
325fed2ef774e708e96d1b123672e1be238d7d21
nailgun/nailgun/models.py
nailgun/nailgun/models.py
from django.db import models from django.contrib.auth.models import User from jsonfield import JSONField class Environment(models.Model): #user = models.ForeignKey(User, related_name='environments') name = models.CharField(max_length=100) class Role(models.Model): id = models.CharField(max_length=30, pr...
from django.db import models from django.contrib.auth.models import User from jsonfield import JSONField class Environment(models.Model): #user = models.ForeignKey(User, related_name='environments') name = models.CharField(max_length=100) class Role(models.Model): id = models.CharField(max_length=30, pr...
Allow nodes not to have related environment
Allow nodes not to have related environment
Python
apache-2.0
SmartInfrastructures/fuel-main-dev,nebril/fuel-web,dancn/fuel-main-dev,SergK/fuel-main,zhaochao/fuel-main,nebril/fuel-web,prmtl/fuel-web,zhaochao/fuel-main,eayunstack/fuel-web,nebril/fuel-web,SmartInfrastructures/fuel-main-dev,SmartInfrastructures/fuel-main-dev,teselkin/fuel-main,Fiware/ops.Fuel-main-dev,teselkin/fuel-...
python
## Code Before: from django.db import models from django.contrib.auth.models import User from jsonfield import JSONField class Environment(models.Model): #user = models.ForeignKey(User, related_name='environments') name = models.CharField(max_length=100) class Role(models.Model): id = models.CharField(m...
0c78ce9a9818ceef865aba2c68f50238c5d50dec
lib/tentd/models/posts_attachment.rb
lib/tentd/models/posts_attachment.rb
module TentD module Model class PostsAttachment < Sequel::Model(TentD.database[:posts_attachments]) plugin :paranoia if Model.soft_delete end end end
module TentD module Model class PostsAttachment < Sequel::Model(TentD.database[:posts_attachments]) plugin :paranoia if Model.soft_delete def self.create(attrs) super rescue Sequel::UniqueConstraintViolation => e if e.message =~ /duplicate key.*unique_posts_attachments/ ...
Patch PostsAttachments.create to allow attempting to create duplicates without error being raised
Patch PostsAttachments.create to allow attempting to create duplicates without error being raised
Ruby
bsd-3-clause
tent/tentd
ruby
## Code Before: module TentD module Model class PostsAttachment < Sequel::Model(TentD.database[:posts_attachments]) plugin :paranoia if Model.soft_delete end end end ## Instruction: Patch PostsAttachments.create to allow attempting to create duplicates without error being raised ## Code After: mod...
6cd4ee918db6900a6841dff5eaa045e7af9cd55e
data/transition-sites/phe_noo.yml
data/transition-sites/phe_noo.yml
--- site: phe_noo whitehall_slug: public-health-england homepage: https://www.gov.uk/government/organisations/public-health-england homepage_furl: www.gov.uk/phe tna_timestamp: 20170110165405 host: www.noo.org.uk aliases: - noo.org.uk
--- site: phe_noo whitehall_slug: public-health-england homepage: https://www.gov.uk/guidance/phe-data-and-analysis-tools#obesity-diet-and-physical-activity homepage_furl: www.gov.uk/phe tna_timestamp: 20170110165405 host: www.noo.org.uk aliases: - noo.org.uk
Update Most appropriate single URL for noo.org.uk
Update Most appropriate single URL for noo.org.uk Details here: https://govuk.zendesk.com/agent/tickets/2158525
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: phe_noo whitehall_slug: public-health-england homepage: https://www.gov.uk/government/organisations/public-health-england homepage_furl: www.gov.uk/phe tna_timestamp: 20170110165405 host: www.noo.org.uk aliases: - noo.org.uk ## Instruction: Update Most appropriate single URL for noo.org.uk D...
4dbad38b98815c425d253a5fe7c4105c9850f6cb
src/templates/infinite-scroll-link.js
src/templates/infinite-scroll-link.js
import React from 'react' import Link from 'gatsby-link' export default class InfiniteScrollLink extends React.Component { constructor (props) { super(props) const observerOptions = { root: null, rootMargin: '0px', threshold: 0.25 } this.observerCallback = this.observerCallback.bi...
import React from 'react' import Link from 'gatsby-link' export default class InfiniteScrollLink extends React.Component { constructor (props) { super(props) const observerOptions = { root: null, rootMargin: '0px', threshold: 0.25 } this.observerCallback = this.observerCallback.bi...
Call the callback function only when the target element is intersecting the root element; Avoids extra calls.
Call the callback function only when the target element is intersecting the root element; Avoids extra calls.
JavaScript
mit
LuisLoureiro/placard-wrapper
javascript
## Code Before: import React from 'react' import Link from 'gatsby-link' export default class InfiniteScrollLink extends React.Component { constructor (props) { super(props) const observerOptions = { root: null, rootMargin: '0px', threshold: 0.25 } this.observerCallback = this.obs...
9e18b79b6fc751e4acbcb5c3bafd9ed0a128bf8d
ci/docker/boshcpi.s3cli/Dockerfile
ci/docker/boshcpi.s3cli/Dockerfile
FROM ubuntu:latest RUN locale-gen en_US.UTF-8 RUN dpkg-reconfigure locales ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 RUN apt-get update; apt-get -y upgrade; apt-get clean RUN apt-get install -y git curl python; apt-get clean RUN cd /tmp && \ curl -O -L https://storage.googleapis.com/golang/go1.5.1.linux-amd64....
FROM ubuntu:latest RUN locale-gen en_US.UTF-8 RUN dpkg-reconfigure locales ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 RUN apt-get update; apt-get -y upgrade; apt-get clean RUN apt-get install -y git curl python uuid-runtime; apt-get clean RUN cd /tmp && \ curl -O -L https://storage.googleapis.com/golang/go1.5.1...
Make `uuidgen` available in the Garden container.
Make `uuidgen` available in the Garden container. [#105489488](https://www.pivotaltracker.com/story/show/105489488) Signed-off-by: Jonathan Barnes <bc7add126c2dbb8382bf1c28ac262b9363a32706@pivotal.io>
unknown
mit
pivotal-golang/s3cli,pivotal-golang/s3cli,pivotal-golang/s3cli,pivotal-golang/s3cli
unknown
## Code Before: FROM ubuntu:latest RUN locale-gen en_US.UTF-8 RUN dpkg-reconfigure locales ENV LANG en_US.UTF-8 ENV LC_ALL en_US.UTF-8 RUN apt-get update; apt-get -y upgrade; apt-get clean RUN apt-get install -y git curl python; apt-get clean RUN cd /tmp && \ curl -O -L https://storage.googleapis.com/golang/go1....
0454e48e207b7c8de207a4430fcba55f1d01b529
.php-censor.yml
.php-censor.yml
build_settings: ignore: - vendor - tests setup: composer: action: install test: php_unit: config: - phpunit.xml.dist coverage: true php_cs_fixer: args: '--allow-risky=yes' errors: true report_errors: true config: .php...
build_settings: ignore: - vendor - tests setup: composer: action: install test: php_unit: config: - phpunit.xml.dist coverage: true php_cs_fixer: args: '--allow-risky=yes' errors: true report_errors: true config: .php...
Add languages folder to copy & paste ignore
Add languages folder to copy & paste ignore
YAML
bsd-2-clause
php-censor/php-censor,corpsee/php-censor,php-censor/php-censor,php-censor/php-censor,corpsee/php-censor,corpsee/php-censor
yaml
## Code Before: build_settings: ignore: - vendor - tests setup: composer: action: install test: php_unit: config: - phpunit.xml.dist coverage: true php_cs_fixer: args: '--allow-risky=yes' errors: true report_errors: true ...
5ce0646415c87cd3cfdbb5d10186ebe83d214f24
old_virtualbox_vm_build_all.sh
old_virtualbox_vm_build_all.sh
cd old_templates/ #Debian 7.1 cd ./debian-7.1-amd64 packer build --only=virtualbox template.json #Debian 7.2 cd ../debian-7.2-amd64 packer build --only=virtualbox template.json #Debian 7.3 cd ../debian-7.3-amd64 packer build --only=virtualbox template.json #Debian 7.4 cd ../debian-7.4-amd64 packer build --only=virt...
cd old_templates/ #Debian 7.1 cd ./debian-7.1-amd64 packer build --only=virtualbox template.json #Debian 7.2 cd ../debian-7.2-amd64 packer build --only=virtualbox template.json #Debian 7.3 cd ../debian-7.3-amd64 packer build --only=virtualbox template.json #Debian 7.4 cd ../debian-7.4-amd64 packer build --only=virt...
Add Debian 7.6 to the old VirtualBox build script.
Add Debian 7.6 to the old VirtualBox build script.
Shell
apache-2.0
danieldreier/packer-templates,nickchappell/packer-templates
shell
## Code Before: cd old_templates/ #Debian 7.1 cd ./debian-7.1-amd64 packer build --only=virtualbox template.json #Debian 7.2 cd ../debian-7.2-amd64 packer build --only=virtualbox template.json #Debian 7.3 cd ../debian-7.3-amd64 packer build --only=virtualbox template.json #Debian 7.4 cd ../debian-7.4-amd64 packer b...
9539e41d95c1f4c84058c69107e13a7826a9f8ec
.github/issue_template.md
.github/issue_template.md
<!-- Required Add detailed description of what you are reporting. Good example: https://os.mbed.com/docs/latest/reference/workflow.html Things to consider sharing: - What target does this relate to? - What toolchain (name + version) are you using? - What tools (name + version - is it mbed-c...
<!-- ************************************** WARNING ************************************** This header is parsed automatically by the ciarcom bot. Any deviation from the template may cause this header to be automatically corrected or result in a warning message being issued, requesting updates. Plea...
Add warning about deviating from the template format
Add warning about deviating from the template format Detail the fact that the issue header is automatically parsed.
Markdown
apache-2.0
mbedmicro/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os,kjbracey-arm/mbed,andcor02/mbed-os
markdown
## Code Before: <!-- Required Add detailed description of what you are reporting. Good example: https://os.mbed.com/docs/latest/reference/workflow.html Things to consider sharing: - What target does this relate to? - What toolchain (name + version) are you using? - What tools (name + versio...
72495d162f2fe11ebd089cd4e8eeddb6351110f8
run-chrome.sh
run-chrome.sh
SUDO="sudo -E -u $CHROMIUMUSER_USERNAME" groupadd --gid $CHROMIUMUSER_GID $CHROMIUMUSER_USERNAME useradd -m $CHROMIUMUSER_USERNAME --uid $CHROMIUMUSER_UID --gid $CHROMIUMUSER_GID && \ usermod -a -G audio $CHROMIUMUSER_USERNAME export HOME=/home/$CHROMIUMUSER_USERNAME PULSE_PATH=$LXC_ROOTFS_PATH/$HOME/.pulse_socke...
SUDO="sudo -E -u $CHROMIUMUSER_USERNAME" if [ "$CHROMIUMUSER_USERNAME" == "chromiumuser" ]; then echo To run Chrome, please run the following commands: echo echo "sudo docker run transistor1/chrome config > start.sh" echo sudo chmod +x start.sh echo ./start.sh echo exit 0 fi if [ "$CHROMIUMUSER_USERNAME" == "...
Add usage, warning if run as root
Add usage, warning if run as root
Shell
mit
transistor1/chrome
shell
## Code Before: SUDO="sudo -E -u $CHROMIUMUSER_USERNAME" groupadd --gid $CHROMIUMUSER_GID $CHROMIUMUSER_USERNAME useradd -m $CHROMIUMUSER_USERNAME --uid $CHROMIUMUSER_UID --gid $CHROMIUMUSER_GID && \ usermod -a -G audio $CHROMIUMUSER_USERNAME export HOME=/home/$CHROMIUMUSER_USERNAME PULSE_PATH=$LXC_ROOTFS_PATH/$H...
59c4df3d9bdb6c0103efd65a399bf60fe9fb6034
www/common/sframe-boot2.js
www/common/sframe-boot2.js
// This is stage 1, it can be changed but you must bump the version of the project. // Note: This must only be loaded from inside of a sandbox-iframe. define([ '/common/requireconfig.js', '/common/test.js' ], function (RequireConfig, Test) { require.config(RequireConfig()); // most of CryptPad breaks i...
// This is stage 1, it can be changed but you must bump the version of the project. // Note: This must only be loaded from inside of a sandbox-iframe. define([ '/common/requireconfig.js', '/common/test.js' ], function (RequireConfig, Test) { require.config(RequireConfig()); // most of CryptPad breaks i...
Fix 'NaN' txid for RPC when using IE
Fix 'NaN' txid for RPC when using IE
JavaScript
agpl-3.0
xwiki-labs/cryptpad,xwiki-labs/cryptpad,xwiki-labs/cryptpad
javascript
## Code Before: // This is stage 1, it can be changed but you must bump the version of the project. // Note: This must only be loaded from inside of a sandbox-iframe. define([ '/common/requireconfig.js', '/common/test.js' ], function (RequireConfig, Test) { require.config(RequireConfig()); // most of C...
206db6986b443ed7f3a1b37f1137033e453dd107
test/withings-oauth2-spec.js
test/withings-oauth2-spec.js
var expect = require('chai').expect; var assert = require('chai').assert; var sinon = require('sinon'); var Withings = require('../dist/Withings').Withings; var options; var client; var error = new Error('ERROR'); describe('Withings API Client:', function () { });
var expect = require('chai').expect; var assert = require('chai').assert; var sinon = require('sinon'); var Withings = require('../dist/Withings').Withings; var options; var client; var error = new Error('ERROR'); describe('Withings API Client:', function () { describe('OAuth functionality:', function () { ...
Add unit testing on oauth
Add unit testing on oauth
JavaScript
isc
mpicciolli/withings-oauth2,mpicciolli/withings-oauth2
javascript
## Code Before: var expect = require('chai').expect; var assert = require('chai').assert; var sinon = require('sinon'); var Withings = require('../dist/Withings').Withings; var options; var client; var error = new Error('ERROR'); describe('Withings API Client:', function () { }); ## Instruction: Add unit testing o...
93f9b5943fc53c936abcc0fcbcb72d6f32db8bd5
docs/release_notes.rst
docs/release_notes.rst
Release Notes ============= v0.1 - Unreleased ----------------- - Documentation update and tutorial. v0.0.1 - 2020-07-15 ------------------- First Release
Release Notes ============= v0.1 - Unreleased ----------------- - Documentation update and tutorial. - Allow rechunk to accept a Dask array. v0.0.1 - 2020-07-15 ------------------- First Release
Add line to release notes
Add line to release notes
reStructuredText
mit
pangeo-data/rechunker
restructuredtext
## Code Before: Release Notes ============= v0.1 - Unreleased ----------------- - Documentation update and tutorial. v0.0.1 - 2020-07-15 ------------------- First Release ## Instruction: Add line to release notes ## Code After: Release Notes ============= v0.1 - Unreleased ----------------- - Documentation upd...
39e694d6a9213666b127cc6e7d515d2fa863e969
css/components/_figures.scss
css/components/_figures.scss
/** * FIGURES * ------- * Default styles for figures and their captions */ main img { margin: 1.5rem 0; } figure:not(.plain-figure) { width: auto; background-color: white; margin: 1.5rem auto; border: 4px solid tint($tertiary-color, 50); } figcaption { font-family: $interface-font-stack; font-size: 0...
/** * FIGURES * ------- * Default styles for figures and their captions */ main img { margin: 1.5rem 0; } figure:not(.plain-figure) { margin: 1.5rem auto; // border: 4px solid tint($tertiary-color, 50); text-align: center; } figcaption { font-family: $interface-font-stack; font-size: 0.8rem; padding:...
Make figure styles less garish
Make figure styles less garish
SCSS
mit
curiositry/sassisfy,curiositry/sassisfy
scss
## Code Before: /** * FIGURES * ------- * Default styles for figures and their captions */ main img { margin: 1.5rem 0; } figure:not(.plain-figure) { width: auto; background-color: white; margin: 1.5rem auto; border: 4px solid tint($tertiary-color, 50); } figcaption { font-family: $interface-font-stack...
033ba980410fd5c90c166c50664c4ae55af7a05e
docs/yuidoc.json
docs/yuidoc.json
{ "options": { "paths": [ "lib" ], "themedir": "node_modules/yuidoc-ember-cli-theme", "helpers": ["node_modules/yuidoc-ember-cli-theme/helpers.js"], "outdir": "docs/build", "preprocessor": "docs/project_version_preprocessor.js" } }
{ "options": { "paths": [ "lib" ], "themedir": "node_modules/yuidoc-ember-cli-theme", "helpers": ["node_modules/yuidoc-ember-cli-theme/helpers.js"], "outdir": "docs/build", "preprocessor": "docs/project_version_preprocessor.js", "linkNatives": true } }
Enable native type linking to MDN
docs: Enable native type linking to MDN
JSON
mit
BrianSipple/ember-cli,HeroicEric/ember-cli,rtablada/ember-cli,pzuraq/ember-cli,josemarluedke/ember-cli,gfvcastro/ember-cli,jrjohnson/ember-cli,johanneswuerbach/ember-cli,jasonmit/ember-cli,sivakumar-kailasam/ember-cli,BrianSipple/ember-cli,rtablada/ember-cli,fpauser/ember-cli,cibernox/ember-cli,mohlek/ember-cli,caldera...
json
## Code Before: { "options": { "paths": [ "lib" ], "themedir": "node_modules/yuidoc-ember-cli-theme", "helpers": ["node_modules/yuidoc-ember-cli-theme/helpers.js"], "outdir": "docs/build", "preprocessor": "docs/project_version_preprocessor.js" } } ## Instruction: docs: Enable native...
5e7d9a705bae1afea00ae12aa8645eb8e9e2d721
src/test/bin/testme.sh
src/test/bin/testme.sh
$JAVA_HOME/bin/java -cp ./lib/junit-3.8.1.jar:./lib/exec-test-1.0-SNAPSHOT.jar:./lib/exec-1.0-SNAPSHOT.jar org.apache.commons.exec.TestRunner
chmod ug+x ./src/test/scripts/*.sh $JAVA_HOME/bin/java -cp ./lib/junit-3.8.1.jar:./lib/exec-test-1.0-SNAPSHOT.jar:./lib/exec-1.0-SNAPSHOT.jar org.apache.commons.exec.TestRunner
Make the test scripts executable otherwise the tests will fail
Make the test scripts executable otherwise the tests will fail git-svn-id: a20303ca0449e3ef575223833049c5e6a53b9062@645485 13f79535-47bb-0310-9956-ffa450edef68
Shell
apache-2.0
mohanaraosv/commons-exec,sgoeschl/commons-exec,apache/commons-exec,apache/commons-exec,mohanaraosv/commons-exec,sgoeschl/commons-exec
shell
## Code Before: $JAVA_HOME/bin/java -cp ./lib/junit-3.8.1.jar:./lib/exec-test-1.0-SNAPSHOT.jar:./lib/exec-1.0-SNAPSHOT.jar org.apache.commons.exec.TestRunner ## Instruction: Make the test scripts executable otherwise the tests will fail git-svn-id: a20303ca0449e3ef575223833049c5e6a53b9062@645485 13f79535-47bb-0310-99...
b88d7dcdb4d1ee963395acea9e42ad1b2eff342f
.travis.yml
.travis.yml
language: objective-c osx_image: xcode11.2 script: - xcodebuild clean build test -workspace ActionSheetPicker-3.0.xcworkspace -scheme ActionSheetPicker -sdk iphonesimulator -destination "platform=iOS Simulator,OS=11.0,name=iPhone X" ONLY_ACTIVE_ARCH=NO notifications: email: recipients: - sky4winder+act...
language: objective-c osx_image: xcode11.2 script: - xcodebuild clean build test -workspace ActionSheetPicker-3.0.xcworkspace -scheme ActionSheetPicker -sdk iphonesimulator -destination "platform=iOS Simulator,OS=13.2.2,name=iPhone 11 Pro" ONLY_ACTIVE_ARCH=NO notifications: email: recipients: - sky4win...
Update Travis configuration to build on the newer iPhone 11 Pro and iOS 13
Update Travis configuration to build on the newer iPhone 11 Pro and iOS 13
YAML
bsd-3-clause
ChronicStim/ActionSheetPicker,ChronicStim/ActionSheetPicker,skywinder/ActionSheetPicker-3.0,skywinder/ActionSheetPicker-3.0
yaml
## Code Before: language: objective-c osx_image: xcode11.2 script: - xcodebuild clean build test -workspace ActionSheetPicker-3.0.xcworkspace -scheme ActionSheetPicker -sdk iphonesimulator -destination "platform=iOS Simulator,OS=11.0,name=iPhone X" ONLY_ACTIVE_ARCH=NO notifications: email: recipients: ...
6c752a49f6cf24825f256652de95fc8402fe1f94
.scripts/tag_with_changelog.sh
.scripts/tag_with_changelog.sh
set -e # Abort on first failure, so we don't mess something up if [ -z "$1" ]; then # Missing tag name echo "usage: git tag-cl <tag>" >&2 exit 129 fi if [ ! -f CHANGELOG ]; then # No changelog to be used echo "fatal: CHANGELOG missing" >&2 exit 128 fi if [ ! -z "$(git status --short)" ]; then ...
set -e # Abort on first failure, so we don't mess something up if [ -z "$1" ]; then # Missing tag name echo "usage: git tag-cl <tag>" >&2 exit 129 fi if [ ! -f CHANGELOG ]; then # No changelog to be used echo "fatal: CHANGELOG missing" >&2 exit 128 fi if [ ! -z "$(git status --short)" ]; then ...
Add Hex.pm specification when tagging
Add Hex.pm specification when tagging
Shell
apache-2.0
norton/meck,lilrooness/meck,soranoba/meck,basho/meck,ptuckey/meck,eproxus/meck,edgurgel/meck,apache/couchdb-meck,kivra/meck
shell
## Code Before: set -e # Abort on first failure, so we don't mess something up if [ -z "$1" ]; then # Missing tag name echo "usage: git tag-cl <tag>" >&2 exit 129 fi if [ ! -f CHANGELOG ]; then # No changelog to be used echo "fatal: CHANGELOG missing" >&2 exit 128 fi if [ ! -z "$(git status --...
c44f5fb85ad05f672f33bed779cd8b8614cbf3c2
service/database/seeds/UsersSeeder.php
service/database/seeds/UsersSeeder.php
<?php use Illuminate\Database\Seeder; use App\User as User; // to use Eloquent Model use App\Http\Controllers\AccountsController as AccountsController; class UsersSeeder extends Seeder { public function run() { // hash the password $password = 'catmandudu'; $salt=AccountsController::oem...
<?php use Illuminate\Database\Seeder; use App\User as User; // to use Eloquent Model use App\Http\Controllers\AccountsController as AccountsController; class UsersSeeder extends Seeder { public function run() { // hash the password $password = 'catmandudu'; $salt=AccountsController::oemr...
Add salt to test user
Add salt to test user
PHP
agpl-3.0
mi-squared/volunteer-portal,mi-squared/volunteer-portal,mi-squared/volunteer-portal
php
## Code Before: <?php use Illuminate\Database\Seeder; use App\User as User; // to use Eloquent Model use App\Http\Controllers\AccountsController as AccountsController; class UsersSeeder extends Seeder { public function run() { // hash the password $password = 'catmandudu'; $salt=Account...
a1a6242eb0e4bcb0ae783a572b4406567a91e21b
src/components/HitTable/HitItem.tsx
src/components/HitTable/HitItem.tsx
import * as React from 'react'; import { Hit, Requester } from '../../types'; import { ResourceList } from '@shopify/polaris'; import UnqualifiedCard from './UnqualifiedCard'; import { calculateAllBadges } from '../../utils/badges'; export interface Props { readonly hit: Hit; readonly requester?: Requester...
import * as React from 'react'; import { Hit, Requester } from '../../types'; import { ResourceList } from '@shopify/polaris'; import { calculateAllBadges } from '../../utils/badges'; export interface Props { readonly hit: Hit; readonly requester?: Requester; } const HitCard = ({ hit, requester }: Props...
Remove UnqualifiedCard as a conditional render when groupId is invalid
Remove UnqualifiedCard as a conditional render when groupId is invalid
TypeScript
mit
Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine
typescript
## Code Before: import * as React from 'react'; import { Hit, Requester } from '../../types'; import { ResourceList } from '@shopify/polaris'; import UnqualifiedCard from './UnqualifiedCard'; import { calculateAllBadges } from '../../utils/badges'; export interface Props { readonly hit: Hit; readonly requester?: R...
001877f6444d1640b01d0362e01c3ec4dc2fa566
runtests.jl
runtests.jl
using Base.Test for (root, dirs, files) in walkdir("exercises") for exercise in dirs # Allow only testing specified execises if !isempty(ARGS) && !(exercise in ARGS) continue end exercise_path = joinpath("exercises", exercise) # Create temporary directory ...
using Base.Test for (root, dirs, files) in walkdir("exercises") for exercise in dirs # Allow only testing specified execises if !isempty(ARGS) && !(exercise in ARGS) continue end exercise_path = joinpath("exercises", exercise) # Create temporary directory ...
Fix removal of temp directory if tests fail
Fix removal of temp directory if tests fail
Julia
mit
andrej-makarov-skrt/xjulia,exercism/xjulia
julia
## Code Before: using Base.Test for (root, dirs, files) in walkdir("exercises") for exercise in dirs # Allow only testing specified execises if !isempty(ARGS) && !(exercise in ARGS) continue end exercise_path = joinpath("exercises", exercise) # Create temporary...
796ca0bf40baa76320a07ca6525fc60d0aff53c0
setup/shells.sh
setup/shells.sh
. ./utils.sh || exit 1 # add shells to /etc/shells shells="zsh bash dash fish ksh pdksh xonsh" for shell in $shells; do _test_executable "$shell" || return 1 shell_path="$(command -v "$shell")" if grep -Fqx "$shell_path" /etc/shells; then printf "Shell %s is already installed\n" "$shell_path" else printf "Add...
. ./utils.sh || exit 1 # add shells to /etc/shells shells="zsh bash dash fish ksh pdksh xonsh" for shell in $shells; do _test_executable "$shell" || return 1 shell_path="$(command -v "$shell")" if grep -Fqx "$shell_path" /etc/shells; then printf "Shell %s is already installed\n" "$shell_path" else printf "Add...
Switch to zsh in script
Switch to zsh in script
Shell
mit
lendenmc/dotfiles
shell
## Code Before: . ./utils.sh || exit 1 # add shells to /etc/shells shells="zsh bash dash fish ksh pdksh xonsh" for shell in $shells; do _test_executable "$shell" || return 1 shell_path="$(command -v "$shell")" if grep -Fqx "$shell_path" /etc/shells; then printf "Shell %s is already installed\n" "$shell_path" el...
160adc1002c69a1c232aaa1b51be6e785b3cfeb0
packages/st/streaming-base64.yaml
packages/st/streaming-base64.yaml
homepage: '' changelog-type: '' hash: 39c13f271422b7f295d4cb210fe788472d6e108ee281e9b3f38357c1990d8755 test-bench-deps: base: ! '>=4.9 && <5' streaming-base64: -any tasty-hunit: -any tasty: -any streaming-bytestring: -any maintainer: chahine.moreau@gmail.com synopsis: Streaming conversion from/to base64 chang...
homepage: '' changelog-type: '' hash: 3bf2da52d920c47376f924641961c4ec9a20e4808adee7710ffc81c799b3c88c test-bench-deps: base-compat-batteries: -any base: ! '>=4.7 && <5' tasty-golden: -any streaming-with: -any filepath: -any streaming-base64: -any tasty: -any streaming-bytestring: -any maintainer: chahi...
Update from Hackage at 2019-02-19T14:22:59Z
Update from Hackage at 2019-02-19T14:22:59Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: '' hash: 39c13f271422b7f295d4cb210fe788472d6e108ee281e9b3f38357c1990d8755 test-bench-deps: base: ! '>=4.9 && <5' streaming-base64: -any tasty-hunit: -any tasty: -any streaming-bytestring: -any maintainer: chahine.moreau@gmail.com synopsis: Streaming conversion from...
590ae1e07a8929a97694ec1c0658983133fa1b78
.travis.yml
.travis.yml
language: go install: pwd ; echo "GOPATH $GOPATH"; go get -v github.com/mattn/goveralls ; go get code.google.com/p/go.tools/cmd/cover ; go get after_success: - /home/travis/gopath/bin/goveralls -coverprofile=profile.out -service=travis-ci -package=Yelp/dockersh -repotoken="$COVERALLS_TOKEN" env: global: secu...
language: go install: pwd ; echo "GOPATH $GOPATH"; go get -v github.com/mattn/goveralls ; go get code.google.com/p/go.tools/cmd/cover ; GOPATH="$GOPATH:/home/travis/gopath/src/github.com/docker/libcontainer/vendor" go get after_success: - /home/travis/gopath/bin/goveralls -coverprofile=profile.out -service=travis-ci ...
Fix GOPATH in the install key
Fix GOPATH in the install key
YAML
apache-2.0
beni55/dockersh,mehulsbhatt/dockersh,mehulsbhatt/dockersh,pugna0/dockersh,Yelp/dockersh,chenrui2014/dockersh,chenrui2014/dockersh,Yelp/dockersh,beni55/dockersh,CS497-F15/dockersh,pugna0/dockersh,CS497-F15/dockersh
yaml
## Code Before: language: go install: pwd ; echo "GOPATH $GOPATH"; go get -v github.com/mattn/goveralls ; go get code.google.com/p/go.tools/cmd/cover ; go get after_success: - /home/travis/gopath/bin/goveralls -coverprofile=profile.out -service=travis-ci -package=Yelp/dockersh -repotoken="$COVERALLS_TOKEN" env: g...
f46e9864bf0e069c2b0519bd9c01019023804003
bot/mozdefbot.ini
bot/mozdefbot.ini
[uwsgi] chdir = /opt/mozdef/envs/mozdef/bot/irc/ uid = mozdef mule = mozdefbot.py pyargv = -c /opt/mozdef/envs/mozdef/bot/irc/mozdefbot.conf log-syslog = mozdefbot-worker log-drain = generated 0 bytes socket = /opt/mozdef/envs/mozdef/bot/irc/mozdefbot.socket virtualenv = /opt/mozdef/envs/python/ procname-master = [m] p...
[uwsgi] chdir = /opt/mozdef/envs/mozdef/bot/slack/ uid = mozdef mule = mozdefbot.py pyargv = -c /opt/mozdef/envs/mozdef/bot/slack/mozdefbot.conf log-syslog = mozdefbot-worker log-drain = generated 0 bytes socket = /opt/mozdef/envs/mozdef/bot/slack/mozdefbot.socket virtualenv = /opt/mozdef/envs/python/ procname-master =...
Modify bot ini file to use slack as main protocol
Modify bot ini file to use slack as main protocol
INI
mpl-2.0
Phrozyn/MozDef,gdestuynder/MozDef,Phrozyn/MozDef,mozilla/MozDef,jeffbryner/MozDef,gdestuynder/MozDef,gdestuynder/MozDef,mpurzynski/MozDef,mpurzynski/MozDef,mozilla/MozDef,jeffbryner/MozDef,mpurzynski/MozDef,Phrozyn/MozDef,jeffbryner/MozDef,mpurzynski/MozDef,jeffbryner/MozDef,mozilla/MozDef,gdestuynder/MozDef,mozilla/Mo...
ini
## Code Before: [uwsgi] chdir = /opt/mozdef/envs/mozdef/bot/irc/ uid = mozdef mule = mozdefbot.py pyargv = -c /opt/mozdef/envs/mozdef/bot/irc/mozdefbot.conf log-syslog = mozdefbot-worker log-drain = generated 0 bytes socket = /opt/mozdef/envs/mozdef/bot/irc/mozdefbot.socket virtualenv = /opt/mozdef/envs/python/ procnam...
bca6a06f6035e7a10c9726ef40e7aed4b4b7ee34
tests/test_init.py
tests/test_init.py
import os import subprocess from pathlib import Path import json from .fixtures import * def test_init(tmp_path, process): assert "Initializing a new ArchiveBox collection in this folder..." in process.stdout.decode("utf-8") def test_update(tmp_path, process): os.chdir(tmp_path) update_process = sub...
import os import subprocess from pathlib import Path import json from .fixtures import * def test_init(tmp_path, process): assert "Initializing a new ArchiveBox collection in this folder..." in process.stdout.decode("utf-8") def test_update(tmp_path, process): os.chdir(tmp_path) update_process = sub...
Fix test to reflect new API changes
test: Fix test to reflect new API changes
Python
mit
pirate/bookmark-archiver,pirate/bookmark-archiver,pirate/bookmark-archiver
python
## Code Before: import os import subprocess from pathlib import Path import json from .fixtures import * def test_init(tmp_path, process): assert "Initializing a new ArchiveBox collection in this folder..." in process.stdout.decode("utf-8") def test_update(tmp_path, process): os.chdir(tmp_path) upda...
c1c42560018e8c5c09648585aa28b40d121c68dd
client/styles/app/_requirementSet.scss
client/styles/app/_requirementSet.scss
$border-color: rgba(50, 50, 50, 0.25); .requirement-set { h2 { border-top: 1px solid $border-color; margin: 0; padding-top: 2px; background-color: rgb(245, 245, 245); text-transform: uppercase; font-size: 0.85em; font-family: $heading-font-stack; font-weight: 300; text-align: center; } h2.inco...
$border-color: rgba(50, 50, 50, 0.25); .requirement-set { h2 { border-top: 1px solid $border-color; margin: 0; padding-top: 2px; background-color: rgb(245, 245, 245); text-transform: uppercase; font-size: 0.85em; font-family: $heading-font-stack; font-weight: 300; text-align: center; } margin-...
Stop highlighting the reqset section headers with colors
Stop highlighting the reqset section headers with colors
SCSS
agpl-3.0
hawkrives/gobbldygook,hawkrives/gobbldygook,hawkrives/gobbldygook
scss
## Code Before: $border-color: rgba(50, 50, 50, 0.25); .requirement-set { h2 { border-top: 1px solid $border-color; margin: 0; padding-top: 2px; background-color: rgb(245, 245, 245); text-transform: uppercase; font-size: 0.85em; font-family: $heading-font-stack; font-weight: 300; text-align: cent...
9fedacdef43854a45733842c1c3d9511835f2bf3
packages/truffle-db/src/loaders/test/index.ts
packages/truffle-db/src/loaders/test/index.ts
import fs from "fs"; import path from "path"; import gql from "graphql-tag"; import { TruffleDB } from "truffle-db"; const fixturesDirectory = path.join(__dirname, "..", "artifacts", "test"); // minimal config const config = { contracts_build_directory: path.join(fixturesDirectory, "build"), contracts_directory...
import fs from "fs"; import path from "path"; import gql from "graphql-tag"; import { TruffleDB } from "truffle-db"; import * as Contracts from "truffle-workflow-compile"; jest.mock("truffle-workflow-compile", () => ({ compile: function(config, callback) { const magicSquare= require(path.join(__dirname,"..", "arti...
Add mocking of manual compilation to loader test file
Add mocking of manual compilation to loader test file
TypeScript
mit
ConsenSys/truffle
typescript
## Code Before: import fs from "fs"; import path from "path"; import gql from "graphql-tag"; import { TruffleDB } from "truffle-db"; const fixturesDirectory = path.join(__dirname, "..", "artifacts", "test"); // minimal config const config = { contracts_build_directory: path.join(fixturesDirectory, "build"), con...
8c00a3b45356aab379302932414a431f39420142
README.md
README.md
Manage your daily tasks via CLI. **Commands:** _task_ - _add_ - Add a new task to todays list. - _browse_ - Open browser for a task with a link. - _done_ - Toggles complete status for a passed index. - _ls_ - List todays tasks. weekly (-w) monthly (-m) - _rm_ - Remove a task for the passed index. ## I...
Manage your daily tasks via CLI. **Commands:** _task_ - _add_ - Add a new task to todays list. - _browse_ - Open browser for a task with a link. - _done_ - Toggles complete status for a passed index. - _ls_ - List todays tasks. day (-d YYYY-MM-DD) weekly (-w) monthly (-m) - mv - Move a task up/down. Can...
Update readme with mv command
Update readme with mv command
Markdown
apache-2.0
t0mj/Tasker
markdown
## Code Before: Manage your daily tasks via CLI. **Commands:** _task_ - _add_ - Add a new task to todays list. - _browse_ - Open browser for a task with a link. - _done_ - Toggles complete status for a passed index. - _ls_ - List todays tasks. weekly (-w) monthly (-m) - _rm_ - Remove a task for the pas...
189899c09aff9a579f7dcf18fa208b1ea6b1dd1a
examples/README.rst
examples/README.rst
Elasticsearch DSL Examples ========================== In this directory you can see several complete examples demonstrating key concepts and patterns exposed by ``elasticsearch-dsl``. ``alias_migration.py`` ---------------------- The alias migration example shows a useful pattern where we use versioned indices (``te...
Elasticsearch DSL Examples ========================== In this directory you can see several complete examples demonstrating key concepts and patterns exposed by ``elasticsearch-dsl``. ``alias_migration.py`` ---------------------- The alias migration example shows a useful pattern where we use versioned indices (``te...
Add links to parent/child and nested
Add links to parent/child and nested
reStructuredText
apache-2.0
elastic/elasticsearch-dsl-py,3lnc/elasticsearch-dsl-py
restructuredtext
## Code Before: Elasticsearch DSL Examples ========================== In this directory you can see several complete examples demonstrating key concepts and patterns exposed by ``elasticsearch-dsl``. ``alias_migration.py`` ---------------------- The alias migration example shows a useful pattern where we use version...
59fe8f69bbf3b1772d289174d9098e46ede813f9
lib/config-mock-builder.js
lib/config-mock-builder.js
'use strict'; const _sinon = require('sinon'); const _clone = require('clone'); /** * Helper class that helps construct mock config objects. */ class ConfigMockBuilder { /** * @param {Object} [props={}] An optional config object that contains * the config parameters represented by the mock ...
'use strict'; const _sinon = require('sinon'); const _clone = require('clone'); /** * Helper class that helps construct mock config objects. */ class ConfigMockBuilder { /** * @param {Object} [props={}] An optional config object that contains * the config parameters represented by the mock ...
Add utility method to set config properties
Add utility method to set config properties
JavaScript
mit
vamship/wysknd-test
javascript
## Code Before: 'use strict'; const _sinon = require('sinon'); const _clone = require('clone'); /** * Helper class that helps construct mock config objects. */ class ConfigMockBuilder { /** * @param {Object} [props={}] An optional config object that contains * the config parameters represented ...
991c24c2191675e52417063dae5d107f1fa5bb15
contrib/scalaz/src/test/scala/eu/timepit/refined/scalaz/RefTypeSpecScalazTag.scala
contrib/scalaz/src/test/scala/eu/timepit/refined/scalaz/RefTypeSpecScalazTag.scala
package eu.timepit.refined.scalaz import eu.timepit.refined.TestUtils._ import eu.timepit.refined.api.{ RefType, RefTypeSpec } import eu.timepit.refined.numeric._ import eu.timepit.refined.scalaz.auto._ import org.scalacheck.Prop._ import shapeless.test.illTyped import _root_.scalaz.@@ class RefTypeSpecScalazTag ext...
package eu.timepit.refined.scalaz import _root_.scalaz.@@ import eu.timepit.refined.TestUtils._ import eu.timepit.refined.api.{ RefType, RefTypeSpec } import eu.timepit.refined.numeric._ import eu.timepit.refined.scalaz.auto._ import org.scalacheck.Prop._ import shapeless.test.illTyped class RefTypeSpecScalazTag exte...
Fix import order in test
Fix import order in test
Scala
mit
sh0hei/refined,fthomas/refined
scala
## Code Before: package eu.timepit.refined.scalaz import eu.timepit.refined.TestUtils._ import eu.timepit.refined.api.{ RefType, RefTypeSpec } import eu.timepit.refined.numeric._ import eu.timepit.refined.scalaz.auto._ import org.scalacheck.Prop._ import shapeless.test.illTyped import _root_.scalaz.@@ class RefTypeS...
0dbe4b3537fc065f71e2ee003241a718f8bb8ee7
.travis.yml
.travis.yml
before_script: - sh -e /etc/init.d/xvfb start - bundle exec rake test_app script: - export DISPLAY=:99.0 - bundle exec rspec spec rvm: - 2.1.1 language: ruby notifications: slack: secure: IY/Qc9EW1xBpm1vgvMrwN5vDOTxLOT5TCHc8WeuehG7MI365gTvJ4QT9yX/Qc5vWiC42Hzex/ObJ9f2K9QRAlfd80XCtRfS4SaevUjmALqdeCgU2UZpBC76WxT4zIk...
before_script: - sh -e /etc/init.d/xvfb start - bundle exec rake test_app script: - export DISPLAY=:99.0 - bundle exec rspec spec rvm: - 2.1.1 language: ruby notifications: slack: secure: NjHvOHAmpKt1hVv3pdoNLbVFcXpE4gVdMqiP9qPF/SKPXE0CNJZTyatatRmSbUZ65bjN61yLbXer6bMuA8LXefHtgepyPxuQZNqGqSb23S2j0S9q6WXO7W7zK31UEz...
Add Slack notification for Travis builds
Add Slack notification for Travis builds
YAML
bsd-3-clause
crowdint/spree_brightpearl,crowdint/spree_brightpearl
yaml
## Code Before: before_script: - sh -e /etc/init.d/xvfb start - bundle exec rake test_app script: - export DISPLAY=:99.0 - bundle exec rspec spec rvm: - 2.1.1 language: ruby notifications: slack: secure: IY/Qc9EW1xBpm1vgvMrwN5vDOTxLOT5TCHc8WeuehG7MI365gTvJ4QT9yX/Qc5vWiC42Hzex/ObJ9f2K9QRAlfd80XCtRfS4SaevUjmALqdeCg...
0d2c181b01dc7f0775f8197a338768de0f80d226
metadata.rb
metadata.rb
name 'consul' maintainer 'John Bellone' maintainer_email 'jbellone@bloomberg.net' license 'Apache 2.0' description 'Installs/Configures consul' long_description 'Installs/Configures consul' version '0.1.0' recipe 'consul', 'Installs consul service from binary.' recipe 'consul::...
name 'consul' maintainer 'John Bellone' maintainer_email 'jbellone@bloomberg.net' license 'Apache v2.0' description 'Installs/Configures consul' long_description 'Installs/Configures consul' version '0.1.0' recipe 'consul', 'Installs consul service from binary.' recipe 'consul:...
Apply more strict support for operating systems.
Apply more strict support for operating systems.
Ruby
apache-2.0
johnbellone/consul-cookbook,johnbellone/consul-cookbook,johnbellone/consul-cookbook
ruby
## Code Before: name 'consul' maintainer 'John Bellone' maintainer_email 'jbellone@bloomberg.net' license 'Apache 2.0' description 'Installs/Configures consul' long_description 'Installs/Configures consul' version '0.1.0' recipe 'consul', 'Installs consul service from binary.' ...
02ee190d7383336953c7dde6d3e4f50285a7d113
src/interface/common/Ad.js
src/interface/common/Ad.js
import React from 'react'; import PropTypes from 'prop-types'; class Ad extends React.PureComponent { static propTypes = { style: PropTypes.object, }; componentDidMount() { (window.adsbygoogle = window.adsbygoogle || []).push({}); } render() { const { style, ...others } = this.props; const...
import React from 'react'; import PropTypes from 'prop-types'; class Ad extends React.PureComponent { static propTypes = { style: PropTypes.object, }; componentDidMount() { try { (window.adsbygoogle = window.adsbygoogle || []).push({}); } catch (err) { // "adsbygoogle.push() error: No sl...
Fix crash caused by google adsense
Fix crash caused by google adsense
JavaScript
agpl-3.0
WoWAnalyzer/WoWAnalyzer,anom0ly/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,fyruna/WoWAnalyzer,fyruna/WoWAnalyzer,ronaldpereira/WoWAnalyzer,anom0ly/WoWAnalyzer,sMteX/WoWAnalyzer,anom0ly/WoWAnalyzer,Juko8/WoWAnalyzer,ronaldpereira/WoWAnalyzer,yajinni/WoWAnalyzer,WoWAnalyzer/WoWAnalyzer,Juko8/WoWAnalyzer,ronaldpereira/WoWAnalyze...
javascript
## Code Before: import React from 'react'; import PropTypes from 'prop-types'; class Ad extends React.PureComponent { static propTypes = { style: PropTypes.object, }; componentDidMount() { (window.adsbygoogle = window.adsbygoogle || []).push({}); } render() { const { style, ...others } = this.p...
e67571cd3f1e9ce652b15b5d85b71d66e0bc06ba
README.md
README.md
This repository contains a set of relatively small programs (usually based on [gbenchmark](https://github.com/google/benchmark) micro benchmarking infrastructure) built on top of [ROOT](https://github.com/root-project/root). Their primary goal is to provide stable performance metrics which can be monitored over time. ...
This repository contains a set of relatively small programs (usually based on [gbenchmark](https://github.com/google/benchmark) micro benchmarking infrastructure) built on top of [ROOT](https://github.com/root-project/root). Their primary goal is to provide stable performance metrics which can be monitored over time. ...
Improve docs how to build ROOTbench.
Improve docs how to build ROOTbench.
Markdown
lgpl-2.1
vgvassilev/rootbench
markdown
## Code Before: This repository contains a set of relatively small programs (usually based on [gbenchmark](https://github.com/google/benchmark) micro benchmarking infrastructure) built on top of [ROOT](https://github.com/root-project/root). Their primary goal is to provide stable performance metrics which can be monit...
0da08ee3374b3923c3d5d64fec7344cbc6089f1b
BitBay-Ticker/Main/TrendView.swift
BitBay-Ticker/Main/TrendView.swift
import UIKit final class TrendView: UIView { var value: Double? { didSet { valueLabel.text = TrendViewValueStringFactory.makeValueString(from: value) guard let value = value else { backgroundColor = UIColor.positiveTrend ...
import UIKit final class TrendView: UIView { var value: Double? { didSet { valueLabel.text = TrendViewValueStringFactory.makeValueString(from: value) guard let value = value else { backgroundColor = .positiveTrend re...
Remove UIColor in places where it is not needed
Remove UIColor in places where it is not needed
Swift
mit
albinekcom/BitBay-Ticker-iOS,albinekcom/BitBay-Ticker-iOS
swift
## Code Before: import UIKit final class TrendView: UIView { var value: Double? { didSet { valueLabel.text = TrendViewValueStringFactory.makeValueString(from: value) guard let value = value else { backgroundColor = UIColor.positiveTrend ...
5ff559f386957844f32d6f96987bcece5c9a43cc
webserver/profiles/templatetags/profile_tags.py
webserver/profiles/templatetags/profile_tags.py
from django import template from django.conf import settings import urllib import hashlib register = template.Library() class GravatarUrlNode(template.Node): def __init__(self, email): self.email = template.Variable(email) def render(self, context): try: email = self.email.resolv...
from django import template from django.conf import settings import urllib import hashlib register = template.Library() class GravatarUrlNode(template.Node): def __init__(self, email): self.email = template.Variable(email) def render(self, context): try: email = self.email.resolv...
Use secure gravatar and fix gravatar image size
Use secure gravatar and fix gravatar image size Fixes #106 Fixes #112
Python
bsd-3-clause
siggame/webserver,siggame/webserver,siggame/webserver
python
## Code Before: from django import template from django.conf import settings import urllib import hashlib register = template.Library() class GravatarUrlNode(template.Node): def __init__(self, email): self.email = template.Variable(email) def render(self, context): try: email = s...
a30c0038343c6ccdfbe78c7e31e787b701b02e0c
gulpfile.js
gulpfile.js
const gulp = require('gulp'); const jasmineNode = require('gulp-jasmine-node'); const livereload = require('gulp-livereload'); // Loads Jasmine Browser gulp.task('test', () => gulp.src('jasmine/spec/*_spec.js').pipe(jasmineNode())); // Loads Jasmine Browser gulp.task('browser', () => gulp.src('index.html').pipe(live...
/* jshint esversion: 6 */ const gulp = require('gulp'); const jasmineNode = require('gulp-jasmine-node'); const livereload = require('gulp-livereload'); // Loads Jasmine Browser gulp.task('test', () => gulp.src('jasmine/spec/*_spec.js').pipe(jasmineNode())); // Loads Jasmine Browser gulp.task('browser', () => gul...
Add jshint esverion: 6 comment
Add jshint esverion: 6 comment
JavaScript
mit
andela-wmaina/inverted-index,andela-wmaina/inverted-index
javascript
## Code Before: const gulp = require('gulp'); const jasmineNode = require('gulp-jasmine-node'); const livereload = require('gulp-livereload'); // Loads Jasmine Browser gulp.task('test', () => gulp.src('jasmine/spec/*_spec.js').pipe(jasmineNode())); // Loads Jasmine Browser gulp.task('browser', () => gulp.src('index....
a01cfd0f9593052e89288045a3c3133d3ab2bcfb
.travis.yml
.travis.yml
go_import_path: github.com/cloudflare/unsee jobs: include: - stage: Lint docs language: node_js node_js: "8" cache: directories: - node_modules # install defaults to "npm install", which is done via make install: [] script: make lint-docs - stage: Test G...
go_import_path: github.com/cloudflare/unsee defaults_go: &DEFAULTS_GO language: go go: "1.9.2" cache: directories: - vendor defaults_js: &DEFAULTS_JS language: node_js node_js: "8" # install defaults to "npm install", which is done via make install: [] cache: directories: - node_mo...
Use YAML anchors to deduplicate common stage variables
Use YAML anchors to deduplicate common stage variables
YAML
apache-2.0
cloudflare/unsee,cloudflare/unsee,cloudflare/unsee,cloudflare/unsee,cloudflare/unsee
yaml
## Code Before: go_import_path: github.com/cloudflare/unsee jobs: include: - stage: Lint docs language: node_js node_js: "8" cache: directories: - node_modules # install defaults to "npm install", which is done via make install: [] script: make lint-docs ...
d1014c3a2cf87b783f383e52b8923a42ee1bc31c
tests/pos/escapingRefs.scala
tests/pos/escapingRefs.scala
class Outer { class Inner { class Inner2 } } object Test { def test = { val a: Outer#Inner = { val o = new Outer new o.Inner } val b: Outer#Inner#Inner2 = { val o = new Outer val i = new o.Inner new i.Inner2 } } }
class Outer { class Inner { class Inner2 } } class HasA { type A } object Test { def test = { val a: Outer#Inner = { val o = new Outer new o.Inner } val b: Outer#Inner#Inner2 = { val o = new Outer val i = new o.Inner new i.Inner2 } val c: HasA { type A = I...
Add pos test about escaping refinements
Add pos test about escaping refinements
Scala
apache-2.0
som-snytt/dotty,lampepfl/dotty,lampepfl/dotty,lampepfl/dotty,densh/dotty,sjrd/dotty,som-snytt/dotty,som-snytt/dotty,dotty-staging/dotty,densh/dotty,lampepfl/dotty,lampepfl/dotty,som-snytt/dotty,dotty-staging/dotty,sjrd/dotty,sjrd/dotty,dotty-staging/dotty,sjrd/dotty,sjrd/dotty,som-snytt/dotty,dotty-staging/dotty,reacto...
scala
## Code Before: class Outer { class Inner { class Inner2 } } object Test { def test = { val a: Outer#Inner = { val o = new Outer new o.Inner } val b: Outer#Inner#Inner2 = { val o = new Outer val i = new o.Inner new i.Inner2 } } } ## Instruction: Add pos test ...
628d777e3751ec8e38f1b98f558799b28cda1569
src/services/TemperatureMonitor/TemperatureMonitor.py
src/services/TemperatureMonitor/TemperatureMonitor.py
import sys from src.TemperatureMonitor import TemperatureMonitor from src.temperature import TemperatureSensor SENSOR_ADDRESS = 0x48 tempMonitor = TemperatureMonitor(TemperatureSensor(SENSOR_ADDRESS), observers=sys.argv[1:]) tempMonitor.run()
import sys from src.TemperatureMonitor import TemperatureMonitor from src.temperature import TemperatureSensor import argparse parser = argparse.ArgumentParser(description='Broadcast temperatures to URLs') parser.add_argument('observers', metavar='N', type=str, nargs='+', help='the observers', def...
Allow Control of Interval and Observers
Allow Control of Interval and Observers
Python
mit
IAPark/PITherm
python
## Code Before: import sys from src.TemperatureMonitor import TemperatureMonitor from src.temperature import TemperatureSensor SENSOR_ADDRESS = 0x48 tempMonitor = TemperatureMonitor(TemperatureSensor(SENSOR_ADDRESS), observers=sys.argv[1:]) tempMonitor.run() ## Instruction: Allow Control of Interval and Observers ...
fc12655be5affa692a80d9439e93c7e897f06eef
activesupport/lib/active_support/core_ext/module/attr_internal.rb
activesupport/lib/active_support/core_ext/module/attr_internal.rb
class Module # Declares an attribute reader backed by an internally-named instance variable. def attr_internal_reader(*attrs) attrs.each {|attr_name| attr_internal_define(attr_name, :reader)} end # Declares an attribute writer backed by an internally-named instance variable. def attr_internal_writer(*att...
class Module # Declares an attribute reader backed by an internally-named instance variable. def attr_internal_reader(*attrs) attrs.each {|attr_name| attr_internal_define(attr_name, :reader)} end # Declares an attribute writer backed by an internally-named instance variable. def attr_internal_writer(*att...
Remove extra class_eval for Ruby 1.9
Remove extra class_eval for Ruby 1.9
Ruby
mit
betesh/rails,samphilipd/rails,flanger001/rails,rbhitchcock/rails,esparta/rails,gfvcastro/rails,kirs/rails-1,starknx/rails,alecspopa/rails,rossta/rails,gfvcastro/rails,yawboakye/rails,koic/rails,tjschuck/rails,kenta-s/rails,felipecvo/rails,iainbeeston/rails,Edouard-chin/rails,baerjam/rails,shioyama/rails,BlakeWilliams/r...
ruby
## Code Before: class Module # Declares an attribute reader backed by an internally-named instance variable. def attr_internal_reader(*attrs) attrs.each {|attr_name| attr_internal_define(attr_name, :reader)} end # Declares an attribute writer backed by an internally-named instance variable. def attr_inte...
2a02992e70abf1bc1cb47baf86feb65339937acf
README.md
README.md
Symfony console application that will serve a fresh WordPress installation. ## Alpha This project is a work in progress. It does work, but needs some improvements. ## Todo - [ ] Code improvements - [ ] Optional argument to specify the WordPress version - [ ] Error handling (show stack trace) - [ ] Show progress bar f...
Symfony console application that will serve a fresh WordPress installation. ## Alpha This project is a work in progress. It does work, but needs some improvements. ## Todo - [ ] Code improvements - [ ] Optional argument to specify the WordPress version - [ ] Error handling (show stack trace) - [ ] Show [progress bar]...
Add link to Progress bar
Add link to Progress bar
Markdown
mit
matthijs110/wordpress-downloader
markdown
## Code Before: Symfony console application that will serve a fresh WordPress installation. ## Alpha This project is a work in progress. It does work, but needs some improvements. ## Todo - [ ] Code improvements - [ ] Optional argument to specify the WordPress version - [ ] Error handling (show stack trace) - [ ] Sho...
52067078724231a5e7c79043df2b458b86303365
wiki/articles/Installation_guide.md
wiki/articles/Installation_guide.md
--- layout: article title: ---
--- layout: article title: --- # Colorscheme of Codeblocks The colorscheme of code blocks can be changed in the file `_assets/stylesheets/app.css.sass.erb`. The line ``` //= require highlightjs/styles/default ``` can be changed to other styles.
Add note how to change colorscheme for code
Add note how to change colorscheme for code
Markdown
lgpl-2.1
matthiasbeyer/wiki.template,matthiasbeyer/wiki.template,matthiasbeyer/wiki.template
markdown
## Code Before: --- layout: article title: --- ## Instruction: Add note how to change colorscheme for code ## Code After: --- layout: article title: --- # Colorscheme of Codeblocks The colorscheme of code blocks can be changed in the file `_assets/stylesheets/app.css.sass.erb`. The line ``` //= require highli...
a21fa4e2c3d2706658377927c04d0860ba27e334
_posts/2016-08-07-welcome.md
_posts/2016-08-07-welcome.md
--- layout: post title: Welcome! --- Hi! This is the first post on my new website. [Here is my old blog.](http://premgane.wordpress.com) For now, if you want to read things I've written, you'll have to go there instead.
--- layout: post title: Welcome! --- Hi! This is the first post on my new website. You can read all about me [here.](/about) [Here is my old blog.](http://premgane.wordpress.com) For now, if you want to read things I've written, you'll have to go there instead.
Add link to About in the welcome post
Add link to About in the welcome post
Markdown
mit
premgane/premgane.github.io,premgane/premgane.github.io,premgane/premgane.github.io
markdown
## Code Before: --- layout: post title: Welcome! --- Hi! This is the first post on my new website. [Here is my old blog.](http://premgane.wordpress.com) For now, if you want to read things I've written, you'll have to go there instead. ## Instruction: Add link to About in the welcome post ## Code After: --- layout:...
aed98f8ca60f1fb474a4db3ade066155d2b040f7
Tests/Functional/Bundle/RememberMeBundle/Security/UserChangingUserProvider.php
Tests/Functional/Bundle/RememberMeBundle/Security/UserChangingUserProvider.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\RememberMeBundle\S...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\RememberMeBundle\S...
Fix wrong cache directive when using the new PUBLIC_ACCESS attribute
[Security] Fix wrong cache directive when using the new PUBLIC_ACCESS attribute
PHP
mit
symfony/security-bundle
php
## Code Before: <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\Re...
9e0433a7da04e43127a27f061445aabf4bc577bd
google-cloud-print-connector/README.md
google-cloud-print-connector/README.md
This image only contains the binaries necessary to run/configure the GCP connector -- you'll want to read https://github.com/google/cloud-print-connector/wiki/Configuration for more information on how to configure and use it. The easiest way to ensure your container can see your local printers is to use `--net=host` a...
This image only contains the binaries necessary to run/configure the GCP connector -- you'll want to read https://github.com/google/cloud-print-connector/wiki/Configuration for more information on how to configure and use it. The easiest way to ensure your container can see your local printers is to use `--net=host` a...
Add "--restart=always" to the example run line
Add "--restart=always" to the example run line
Markdown
mit
jakirkham/dockerfiles,jakirkham/dockerfiles,jakirkham/dockerfiles,jakirkham/dockerfiles,jakirkham/dockerfiles
markdown
## Code Before: This image only contains the binaries necessary to run/configure the GCP connector -- you'll want to read https://github.com/google/cloud-print-connector/wiki/Configuration for more information on how to configure and use it. The easiest way to ensure your container can see your local printers is to us...
bdc6bb0c30f6cc151b4b5279ec91c8a4a1706b04
README.md
README.md
This Dockerfile is ported from debian's buildpack-deps to Ubuntu. For more information about this, please see [original buildpack-deps README](https://github.com/docker-library/buildpack-deps). ![](https://raw.githubusercontent.com/docker-library/docs/master/buildpack-deps/logo.png) ## HOW TO USE This stack is design...
This Dockerfile is ported from debian's buildpack-deps to Ubuntu. For more information about this, please see [original buildpack-deps README](https://github.com/docker-library/buildpack-deps). ![](https://raw.githubusercontent.com/docker-library/docs/master/buildpack-deps/logo.png) ## HOW TO USE This stack is design...
Move license badge to LISENCE section
Move license badge to LISENCE section
Markdown
mit
wantedly/buildpack-deps
markdown
## Code Before: This Dockerfile is ported from debian's buildpack-deps to Ubuntu. For more information about this, please see [original buildpack-deps README](https://github.com/docker-library/buildpack-deps). ![](https://raw.githubusercontent.com/docker-library/docs/master/buildpack-deps/logo.png) ## HOW TO USE This...
95f07d119ead0ec4961e1224f1cfe706b804d7cc
guides/config/deploy.rb
guides/config/deploy.rb
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. require "bundler/capistrano" set :application, (exists?(:edge) ? "edge-guides" : "guides") set :user, 'spree' set :group, 'www-data' set :domain, ...
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. require "bundler/capistrano" set :application, (exists?(:edge) ? "edge-guides" : "guides") set :user, 'spree' set :group, 'www-data' set :domain, ...
Include GA for edge and stable
Include GA for edge and stable
Ruby
bsd-3-clause
jaspreet21anand/spree,net2b/spree,gautamsawhney/spree,karlitxo/spree,tesserakt/clean_spree,shaywood2/spree,Senjai/solidus,bonobos/solidus,zaeznet/spree,jparr/spree,builtbybuffalo/spree,kewaunited/spree,jasonfb/spree,jaspreet21anand/spree,yiqing95/spree,yiqing95/spree,project-eutopia/spree,PhoenixTeam/spree_phoenix,soft...
ruby
## Code Before: $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. require "bundler/capistrano" set :application, (exists?(:edge) ? "edge-guides" : "guides") set :user, 'spree' set :group, 'www-dat...
23e8da34bae3a22e200f3052964e64e583e4d08a
README.md
README.md
Home page for the Ruby Belgium association. You can preview it at http://brug-be.github.io/rubybelgium. ## Installation The site is based on [Middleman](https://middlemanapp.com) and the [Agency](http://startbootstrap.com/template-overviews/agency/) Bootstrap template. 1. Clone this repository (`git clone git@gith...
Home page for the Ruby Belgium association. http://rubybelgium.be (or http://brug-be.github.io/rubybelgium) ## Installation The site is based on [Middleman](https://middlemanapp.com) and the [Agency](http://startbootstrap.com/template-overviews/agency/) Bootstrap template. 1. Clone this repository (`git clone git@...
Update site link in readme
Update site link in readme
Markdown
mit
brug-be/rubybelgium,brug-be/rubybelgium,otagi/rubybelgium,otagi/rubybelgium,otagi/rubybelgium,brug-be/rubybelgium
markdown
## Code Before: Home page for the Ruby Belgium association. You can preview it at http://brug-be.github.io/rubybelgium. ## Installation The site is based on [Middleman](https://middlemanapp.com) and the [Agency](http://startbootstrap.com/template-overviews/agency/) Bootstrap template. 1. Clone this repository (`gi...
74cadd321d92e8d7b5caeb6c7315c437362728ad
src/Ojs/OAIBundle/Resources/views/Default/sets.xml.twig
src/Ojs/OAIBundle/Resources/views/Default/sets.xml.twig
{% extends 'OjsOAIBundle:Default:layout.xml.twig' %} {% block content %} <request verb="ListSets">http://ojs.dev/oai</request> <ListSets> {% for record in records %} <set> <setSpec>{{ record.slug }}</setSpec> <setName>{{ record.title }}</setName> ...
{% extends 'OjsOAIBundle:Default:layout.xml.twig' %} {% block content %} <request verb="ListSets">http://ojs.dev/oai</request> <ListSets> {% for record in records %} <set> <setSpec>{{ record.slug }}</setSpec> <setName>{{ record.title }}</setName> ...
Replace removed article subtitle field with article abstract field
Replace removed article subtitle field with article abstract field
Twig
mit
okulbilisim/ojs,okulbilisim/ojs,okulbilisim/ojs
twig
## Code Before: {% extends 'OjsOAIBundle:Default:layout.xml.twig' %} {% block content %} <request verb="ListSets">http://ojs.dev/oai</request> <ListSets> {% for record in records %} <set> <setSpec>{{ record.slug }}</setSpec> <setName>{{ record.title }}</setNam...
b1890ccd9946054cde25bbd511e317ec0b844b9a
webserver/hermes/models.py
webserver/hermes/models.py
from django.db import models from django.db.models.signals import pre_save, post_save from django.dispatch import receiver from django.conf import settings from competition.models import Team import json class TeamStats(models.Model): team = models.OneToOneField(Team) data_field = models.TextField(null=True...
from django.db import models from django.db.models.signals import pre_save, post_save from django.dispatch import receiver from django.conf import settings from competition.models import Team import json class TeamStats(models.Model): team = models.OneToOneField(Team) data_field = models.TextField(null=True...
Add str method to TeamStats
Add str method to TeamStats
Python
bsd-3-clause
siggame/webserver,siggame/webserver,siggame/webserver
python
## Code Before: from django.db import models from django.db.models.signals import pre_save, post_save from django.dispatch import receiver from django.conf import settings from competition.models import Team import json class TeamStats(models.Model): team = models.OneToOneField(Team) data_field = models.Tex...
e4d06cf4121bc9e1a1f9635e159187b8bed1b2ee
pyalysis/analysers/raw.py
pyalysis/analysers/raw.py
import codecs from blinker import Signal from pyalysis.utils import detect_encoding, Location from pyalysis.warnings import LineTooLong class LineAnalyser(object): """ Line-level analyser of Python source code. """ on_analyse = Signal() on_line = Signal() def __init__(self, module): ...
import codecs from blinker import Signal from pyalysis.utils import detect_encoding, Location from pyalysis.warnings import LineTooLong class LineAnalyser(object): """ Line-level analyser of Python source code. """ on_analyse = Signal() on_line = Signal() def __init__(self, module): ...
Fix location of line length check
Fix location of line length check
Python
bsd-3-clause
DasIch/pyalysis,DasIch/pyalysis
python
## Code Before: import codecs from blinker import Signal from pyalysis.utils import detect_encoding, Location from pyalysis.warnings import LineTooLong class LineAnalyser(object): """ Line-level analyser of Python source code. """ on_analyse = Signal() on_line = Signal() def __init__(self, ...
e225033270c6770d57ab722d56b191ddbe537466
README.md
README.md
[![Build Status](https://travis-ci.org/Arvinje/lexigen.svg)](https://travis-ci.org/Arvinje/lexigen) # Lexigen ## Currently experimenting some ideas! ### 1. Define the state machine ```ruby Lexigen.define do from(0).to(1).if(/\d/) from(1).to(1).if(/\d/) from(1).unless(/\d/).return_as(:integer) from(1).to(2)....
[![Build Status](https://travis-ci.org/Arvinje/lexigen.svg)](https://travis-ci.org/Arvinje/lexigen) # Lexigen ## Currently experimenting some ideas! ### 1. Define the state machine (TO BE CHANGED!) ```ruby machine = Lexigen.define do from(0).to(1).if(/\d/) from(1).to(1).if(/\d/) from(1).unless(/\d/).return_as(...
Add lexer generate method docs.
Add lexer generate method docs.
Markdown
mit
Arvinje/lexigen,Arvinje/lexigen
markdown
## Code Before: [![Build Status](https://travis-ci.org/Arvinje/lexigen.svg)](https://travis-ci.org/Arvinje/lexigen) # Lexigen ## Currently experimenting some ideas! ### 1. Define the state machine ```ruby Lexigen.define do from(0).to(1).if(/\d/) from(1).to(1).if(/\d/) from(1).unless(/\d/).return_as(:integer) ...
d9b5a78b36729bdb3ce11c8626d00b57555fb356
core/views.py
core/views.py
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin from core.permissi...
Allow only the user-data fetching
Refactor: Allow only the user-data fetching
Python
bsd-2-clause
pinry/pinry,pinry/pinry,lapo-luchini/pinry,lapo-luchini/pinry,lapo-luchini/pinry,lapo-luchini/pinry,pinry/pinry,pinry/pinry
python
## Code Before: from django_filters.rest_framework import DjangoFilterBackend from rest_framework import viewsets, mixins, routers from rest_framework.filters import SearchFilter, OrderingFilter from rest_framework.viewsets import GenericViewSet from core import serializers as api from core.models import Image, Pin fr...
f0869aa1c13052145b2000bb78ad644444acc7b8
sample_source.ini
sample_source.ini
[__config__] oldver = old_ver.txt newver = new_ver.txt [vim] url = http://ftp.vim.org/pub/vim/patches/7.3/ regex = 7\.3\.\d+ ; [badone] ; url = http://www.baidu.com/ ; regex = baidu (\d+) [google-chrome] cmd = wget -qO- http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zgrep "google-chrome-...
[__config__] oldver = old_ver.txt newver = new_ver.txt [vim] url = http://ftp.vim.org/pub/vim/patches/7.3/ regex = 7\.3\.\d+ ; [badone] ; url = http://www.baidu.com/ ; regex = baidu (\d+) [google-chrome] cmd = wget -qO- http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zgrep "google-chrome-...
Add sparkle to sample source
feat: Add sparkle to sample source
INI
mit
lilydjwg/nvchecker
ini
## Code Before: [__config__] oldver = old_ver.txt newver = new_ver.txt [vim] url = http://ftp.vim.org/pub/vim/patches/7.3/ regex = 7\.3\.\d+ ; [badone] ; url = http://www.baidu.com/ ; regex = baidu (\d+) [google-chrome] cmd = wget -qO- http://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zgrep...
e118612153a2b1b24c44ecb63e2f24846e9c6814
spec/integration/spec_helper.rb
spec/integration/spec_helper.rb
require 'serverspec' require 'net/ssh' if ENV['TARGET_HOST'] != 'localhost' set :backend, :ssh host = ENV['TARGET_HOST'] options = Net::SSH::Config.for(host, ["#{ENV['HOME']}/.ssh/config_rundock_spec_#{ENV['TARGET_HOST']}"]) options[:user] ||= Etc.getlogin set :host, options[:host_name] || host ...
require 'serverspec' require 'net/ssh' if ENV['TARGET_HOST'] != 'localhost' set :backend, :ssh host = ENV['TARGET_HOST'] options = Net::SSH::Config.for(host, ["#{ENV['HOME']}/.ssh/config_rundock_spec_#{ENV['TARGET_HOST']}"]) options[:user] ||= Etc.getlogin options[:paranoid] = false set :host, o...
Fix knownhost warn for tests
Fix knownhost warn for tests
Ruby
mit
hiracy/rundock,hiracy/rundock
ruby
## Code Before: require 'serverspec' require 'net/ssh' if ENV['TARGET_HOST'] != 'localhost' set :backend, :ssh host = ENV['TARGET_HOST'] options = Net::SSH::Config.for(host, ["#{ENV['HOME']}/.ssh/config_rundock_spec_#{ENV['TARGET_HOST']}"]) options[:user] ||= Etc.getlogin set :host, options[:host_...
a10b1e8a2bfc032663fea8d9585020c55d17cfbc
app/javascript/app/components/about/about-contact/about-contact-component.jsx
app/javascript/app/components/about/about-contact/about-contact-component.jsx
import React from 'react'; import cx from 'classnames'; import layout from 'styles/layout'; import styles from './about-contact-styles.scss'; const AboutContact = () => ( <div className={cx(styles.aboutContact, layout.content)}> <p> We’d love to hear from you. Please submit questions, comments or feedback ...
import React, { useState } from 'react'; import cx from 'classnames'; import layout from 'styles/layout'; import Loading from 'components/loading'; import styles from './about-contact-styles.scss'; const AboutContact = () => { const [iframeLoaded, setIframeLoaded] = useState(false); return ( <div className={cx...
Add loader until iframe loads
Add loader until iframe loads
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
jsx
## Code Before: import React from 'react'; import cx from 'classnames'; import layout from 'styles/layout'; import styles from './about-contact-styles.scss'; const AboutContact = () => ( <div className={cx(styles.aboutContact, layout.content)}> <p> We’d love to hear from you. Please submit questions, comme...
63d2a9cd58d424f13a38e8a078f37f64565a2771
components/dashboards-web-component/jest.config.js
components/dashboards-web-component/jest.config.js
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/...
Set test regex to select only *.test.js/jsx files in the test directory.
Set test regex to select only *.test.js/jsx files in the test directory. And add the root directory as a module directory so that file imports will be absolute.
JavaScript
apache-2.0
wso2/carbon-dashboards,ksdperera/carbon-dashboards,lasanthaS/carbon-dashboards,wso2/carbon-dashboards,ksdperera/carbon-dashboards,ksdperera/carbon-dashboards,lasanthaS/carbon-dashboards,lasanthaS/carbon-dashboards
javascript
## Code Before: /* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http:/...
12e29887821b877c5afdb359e588cacc10b30fba
server/app/controllers/RestImage.scala
server/app/controllers/RestImage.scala
package controllers import models.db import play.api.mvc._ import scalikejdbc._ import scala.concurrent.ExecutionContext.Implicits._ import scala.concurrent.Future /** * * @author ponkotuy * Date: 14/03/22. */ object RestImage extends Controller { def ship = shipCommon(_: Int, _: Int) def shipHead = shipCom...
package controllers import models.db import play.api.mvc._ import scalikejdbc._ /** * * @author ponkotuy * Date: 14/03/22. */ object RestImage extends Controller { import controllers.Common._ def ship = shipCommon(_: Int, _: Int) def shipHead = shipCommon(_: Int, _: Int) // swfId 5 => 通常画像 7 => 中破画像 1 ...
Add Damaged Image to Xmas and New Year's ship
Add Damaged Image to Xmas and New Year's ship
Scala
mit
b-wind/MyFleetGirls,Moesugi/MFG,ttdoda/MyFleetGirls,ttdoda/MyFleetGirls,b-wind/MyFleetGirls,Moesugi/MFG,ponkotuy/MyFleetGirls,ttdoda/MyFleetGirls,nekoworkshop/MyFleetGirls,nekoworkshop/MyFleetGirls,b-wind/MyFleetGirls,Moesugi/MFG,ponkotuy/MyFleetGirls,kxbmap/MyFleetGirls,kxbmap/MyFleetGirls,kxbmap/MyFleetGirls,b-wind/M...
scala
## Code Before: package controllers import models.db import play.api.mvc._ import scalikejdbc._ import scala.concurrent.ExecutionContext.Implicits._ import scala.concurrent.Future /** * * @author ponkotuy * Date: 14/03/22. */ object RestImage extends Controller { def ship = shipCommon(_: Int, _: Int) def sh...
82dcddeba2a7eae588726f51d5d4a8cd1ff6a9e5
README.md
README.md
CourseMap ====== Contribution Setting Up Dev Environment ------ ###Set Up Locally 1. Install [Github For Windows](https://windows.github.com/) 2. Install [Node.js](http://nodejs.org/). 3. Open up "Git Shell" which comes with Github For Windows. 4. Install duo.js by `npm install -g duo`. ###Vagrant VM **This is not...
CourseMap ====== [![Stories in Ready](https://badge.waffle.io/louy2/coursemap.svg?label=ready&title=Ready)](http://waffle.io/louy2/coursemap) CourseMap is a new way to explore the course catalog of [RPI](http://www.rpi.edu/). CourseMap is an [RCOS](http://rcos.rpi.edu/) project. Setting Up Dev Environment ------ #...
Add introduction and waffle badge
Add introduction and waffle badge
Markdown
mpl-2.0
louy2/CourseMap,louy2/CourseMap
markdown
## Code Before: CourseMap ====== Contribution Setting Up Dev Environment ------ ###Set Up Locally 1. Install [Github For Windows](https://windows.github.com/) 2. Install [Node.js](http://nodejs.org/). 3. Open up "Git Shell" which comes with Github For Windows. 4. Install duo.js by `npm install -g duo`. ###Vagrant V...
d0322e02afb817f060767b832f54c1029c0006bf
package.json
package.json
{ "name": "proxyquireify", "version": "0.4.0", "description": "Proxies browserify's require in order to allow overriding dependencies during testing.", "main": "index.js", "scripts": { "test": "tap test/*.js && echo 'TODO: node test/clientside/run.js'" }, "repository": { "type": "git", "url": ...
{ "name": "proxyquireify", "version": "0.4.0", "description": "Proxies browserify's require in order to allow overriding dependencies during testing.", "main": "index.js", "scripts": { "test": "tap test/*.js && node test/clientside/run.js" }, "repository": { "type": "git", "url": "git://github...
Enable clientside tests now that they are working
Enable clientside tests now that they are working
JSON
mit
royriojas/browsyquire,royriojas/proxyquireify,royriojas/proxyquireify,thlorenz/proxyquireify,royriojas/browsyquire
json
## Code Before: { "name": "proxyquireify", "version": "0.4.0", "description": "Proxies browserify's require in order to allow overriding dependencies during testing.", "main": "index.js", "scripts": { "test": "tap test/*.js && echo 'TODO: node test/clientside/run.js'" }, "repository": { "type": "g...
5e3c6d6ab892a87ca27c05c01b39646bd339b3f2
tests/test_event.py
tests/test_event.py
import unittest from event import Event class EventTest(unittest.TestCase): def test_a_listener_is_notified_when_event_is_raised(self): called = False def listener(): nonlocal called called = True event = Event() event.connect(listener) event.fire(...
import unittest from event import Event class Mock: def __init__(self): self.called = False self.params = () def __call__(self, *args, **kwargs): self.called = True self.params = (args, kwargs) class EventTest(unittest.TestCase): def test_a_listener_is_notified_when_even...
Refactor a lightweight Mock class.
Refactor a lightweight Mock class.
Python
mit
bsmukasa/stock_alerter
python
## Code Before: import unittest from event import Event class EventTest(unittest.TestCase): def test_a_listener_is_notified_when_event_is_raised(self): called = False def listener(): nonlocal called called = True event = Event() event.connect(listener) ...
6be3278f04c623b4777feb1dd2d6903c48c713a0
src/js/templates.js
src/js/templates.js
miniLock.templates = {} miniLock.templates.keyStrengthMoreInfo = '' + 'The passphrase you have entered is too weak.' + '<p>Having a long, unique key is very important for using miniLock. ' + 'Try using a <strong>phrase</strong> that makes sense only to you.<br /><br />' + 'We strongly recommend allowing miniLock t...
miniLock.templates = {} miniLock.templates.keyStrengthMoreInfo = '' + 'The passphrase you have entered is too weak.' + '<p>Having a long, unique key is very important for using miniLock. ' + 'Try using a <strong>phrase</strong> that makes sense only to you.<br /><br />' + 'We strongly recommend allowing miniLock t...
Allow .minilock extensions to wrap onscreen also so that names don’t look weird when they are shelved.
Allow .minilock extensions to wrap onscreen also so that names don’t look weird when they are shelved.
JavaScript
agpl-3.0
reelsense/miniLock,Sc00bz/miniLock,kaepora/miniLock,reelsense/miniLock,Sc00bz/miniLock,arno01/miniLock,arno01/miniLock,kaepora/miniLock
javascript
## Code Before: miniLock.templates = {} miniLock.templates.keyStrengthMoreInfo = '' + 'The passphrase you have entered is too weak.' + '<p>Having a long, unique key is very important for using miniLock. ' + 'Try using a <strong>phrase</strong> that makes sense only to you.<br /><br />' + 'We strongly recommend all...
6ad3ec81633df6f2db44708fbcba795cf2fef4d6
source/styles/components/feed/_feed.scss
source/styles/components/feed/_feed.scss
.feed { .expander { padding-right: 9px; font-size: 1.2rem; } .favorite { font-size: 1.8rem; float: right; } .header > div, .request-details > div { padding-top: 8px; padding-bottom: 8px; @extend .truncate; } .header { color: ...
.feed { .expander { padding-right: 9px; font-size: 1.2rem; } .favorite { font-size: 1.8rem; float: right; } .header > div, .request-details > div { padding-top: 8px; padding-bottom: 8px; @extend .truncate; } .header { color: ...
Change favorite header icon hover color to white.
Change favorite header icon hover color to white.
SCSS
bsd-3-clause
lloydbenson/tv,louisbl/tv,louisbl/tv,lloydbenson/tv,geek/tv,geek/tv
scss
## Code Before: .feed { .expander { padding-right: 9px; font-size: 1.2rem; } .favorite { font-size: 1.8rem; float: right; } .header > div, .request-details > div { padding-top: 8px; padding-bottom: 8px; @extend .truncate; } .header {...
aa5b03c6ad9b1b063235f397d81f170c75ad479f
Test/Throttle.hs
Test/Throttle.hs
module Test.Throttle(main) where import Development.Shake import General.Base import Development.Shake.FilePath import Test.Type import Control.Monad main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.2 want $ map obj ["file1.1","file2.1","file3.2","file4.1","file5.2"] obj "*.*" *> \out ...
module Test.Throttle(main) where import Development.Shake import General.Base import Development.Shake.FilePath import Test.Type import Control.Monad main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.2 want $ map obj ["file1.1","file2.1","file3.2","file4.1","file5.2"] obj "*.*" *> \out ...
Make sure the throttle tests checks when everyone is waiting and nothing has been returned
Make sure the throttle tests checks when everyone is waiting and nothing has been returned
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
haskell
## Code Before: module Test.Throttle(main) where import Development.Shake import General.Base import Development.Shake.FilePath import Test.Type import Control.Monad main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.2 want $ map obj ["file1.1","file2.1","file3.2","file4.1","file5.2"] ob...
deea5060e95963bbd3475f507139e4ffdb436ae9
templates/index.html
templates/index.html
<!DOCTYPE html> <html lang="en"> <head> <title>Documentation for REST routes</title> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> <link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"...
<!DOCTYPE html> <html lang="en"> <head> <title>Documentation for REST routes</title> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> <link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-inverse navbar-fixed-top"...
Make entire row a link instead of route
Make entire row a link instead of route in ./templates/index.html the path is the link by default, instead of the entire row. This provides poor user experience in tiny links to click for short paths like '/' and unexpected behaviour as the entire highlights on hover. Fix makes entire row the link.
HTML
bsd-3-clause
lloydbenson/lout,evdevgit/lout,evdevgit/lout,lloydbenson/lout
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <title>Documentation for REST routes</title> <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> <link href=".{{@cssBaseUrl}}/style.css" rel="stylesheet"> </head> <body> <div class="navbar navbar-inverse n...
7ca03dfa3581aa3dc68d3bb028b6737d81516e1e
docs/linux-build.md
docs/linux-build.md
``` sudo apt-get install golang-go git ./script/bootstrap ``` That will place a git-lfs binary in the `bin/` directory. Copy the binary to a directory in your path: ``` sudo cp bin/git-lfs /usr/local/bin ``` Try it: ``` [949][rubiojr@octox] git lfs git-lfs v0.0.1 [~] [949][rubiojr@octox] git lfs init git lfs ini...
``` sudo apt-get install golang-go git bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) source ~/.gvm/scripts/gvm gvm install go1.4.2 # or something 1.3.1 or newer gvm use go1.4.2 ./script/bootstrap ``` That will place a git-lfs binary in the `bin/` directory. Copy...
Add instructions on how to get prereqs.
Add instructions on how to get prereqs. Default packages for 14.04 are too old to build with these instructions. Add instructions for getting newer go. Add instructions for getting newer ruby and associated packages.
Markdown
mit
JeckoHeroOrg/-git-lfs_miilkyway,dakotahawkins/git-lfs,iSC-Labs/git-lfs,rubiojr/git-lfs,Aorjoa/git-lfs,beni55/git-lfs,phungmy/git-lfs,aleb/git-lfs,andyneff/git-lfs,engsoonhock1967/git-lfs,iSC-Labs/git-lfs,crealytics/git-lfs,aleb/git-lfs,yonglehou/git-lfs,ttaylorr/git-lfs,sanoursa/git-lfs,michael-k/git-lfs,rubiojr/git-lf...
markdown
## Code Before: ``` sudo apt-get install golang-go git ./script/bootstrap ``` That will place a git-lfs binary in the `bin/` directory. Copy the binary to a directory in your path: ``` sudo cp bin/git-lfs /usr/local/bin ``` Try it: ``` [949][rubiojr@octox] git lfs git-lfs v0.0.1 [~] [949][rubiojr@octox] git lfs ...
665cf3ad4235befb89c1f414239bf041896fac75
tests/commands/tgrTests.js
tests/commands/tgrTests.js
var tgr = require("__buttercup/classes/commands/command.tgr.js"); /* module.exports = { failMe: { failmeplease: function(test) { console.log(tgr); test.fail(); test.done(); } } }; */
var tgr = require("__buttercup/classes/commands/command.tgr.js"); module.exports = { errors: { groupNotFoundThrowsError: function (test) { var command = new tgr(); var fakeSearching = { findGroupByID: function (a, b) { return false; } }; command.injectSearching...
Add test around group not being found
Add test around group not being found
JavaScript
mit
perry-mitchell/buttercup-core,buttercup-pw/buttercup-core,buttercup/buttercup-core,buttercup-pw/buttercup-core,buttercup/buttercup-core,buttercup/buttercup-core,perry-mitchell/buttercup-core
javascript
## Code Before: var tgr = require("__buttercup/classes/commands/command.tgr.js"); /* module.exports = { failMe: { failmeplease: function(test) { console.log(tgr); test.fail(); test.done(); } } }; */ ## Instruction: Add test around group not being found ## Code After: var tgr = require("_...
d6720d7e7dc08a22e3cdad8734bd35791cdcc956
config/global.json
config/global.json
{ "argv": { "offset": 0, "base": "" }, "page": { "title": "", "description": "", "keywords": "", "robots": "noindex, nofollow", "favicon": "", "share": { "image": "", "twitter": { "username": "" } }, "googleAnalytics": "", "js": [ "/" ...
{ "argv": { "offset": 0, "base": "" }, "page": { "title": "", "description": "", "keywords": "", "robots": "noindex, nofollow", "favicon": "", "share": { "image": "", "twitter": { "username": "" } }, "googleAnalytics": "", "js": [ "/js/ap...
Load on every site the JS API client
Load on every site the JS API client
JSON
mit
42php/42php,42php/42php,42php/42php
json
## Code Before: { "argv": { "offset": 0, "base": "" }, "page": { "title": "", "description": "", "keywords": "", "robots": "noindex, nofollow", "favicon": "", "share": { "image": "", "twitter": { "username": "" } }, "googleAnalytics": "", "js":...
5841e975da566235305618937959d3a066886d7e
README.md
README.md
[![Docker Automated buil](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg?maxAge=2592000)](https://hub.docker.com/r/devopsopen/docker-ci-jenkins/) # CI/CD Management - Jenkins CI jenkins Image for Open DevOps Pipeline - Use latest OS / TINI / Jenkins releases - Avoid 2.0 setup wizard but provide secure...
[![Docker Automated buil](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg?maxAge=2592000)](https://hub.docker.com/r/devopsopen/docker-ci-jenkins/) # CI/CD Management - Jenkins CI jenkins Image for Open DevOps Pipeline - Use latest OS / TINI / Jenkins releases - Avoid 2.0 setup wizard but provide secure...
Add CloudBees Docker Pipeline Plugin support
Add CloudBees Docker Pipeline Plugin support
Markdown
apache-2.0
open-devops/docker-ci-jenkins
markdown
## Code Before: [![Docker Automated buil](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg?maxAge=2592000)](https://hub.docker.com/r/devopsopen/docker-ci-jenkins/) # CI/CD Management - Jenkins CI jenkins Image for Open DevOps Pipeline - Use latest OS / TINI / Jenkins releases - Avoid 2.0 setup wizard bu...
db9d72affc00fa73697bd0196b6f77c56c6f553a
config/nvim/coc-settings.json
config/nvim/coc-settings.json
{ "coc.preferences.formatOnSaveFiletypes": [ "vue", "json", "php", "blade.php", "blade" ], "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.options.tabSize": 2, "vetur.format.options.useTabs": false, "diagnostic.virtualText": false, ...
{ "coc.preferences.formatOnSaveFiletypes": [ "vue", "json", "php", "blade.php", "blade" ], "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.options.tabSize": 2, "vetur.format.options.useTabs": false, "diagnostic.virtualText": false, ...
Fix problem with coc-explorer with recent version
Fix problem with coc-explorer with recent version
JSON
mit
rodrigore/Dotfiles,rodrigore/Dotfiles,rodrigore/Dotfiles
json
## Code Before: { "coc.preferences.formatOnSaveFiletypes": [ "vue", "json", "php", "blade.php", "blade" ], "vetur.format.defaultFormatter.html": "js-beautify-html", "vetur.format.options.tabSize": 2, "vetur.format.options.useTabs": false, "diagnostic.virtu...
c12a1b53166c34c074e018fcc149a0aa2db56b43
helpscout/models/folder.py
helpscout/models/folder.py
import properties from .. import BaseModel class Folder(BaseModel): name = properties.String( 'Folder name', required=True, ) type = properties.StringChoice( 'The type of folder.', choices=['needsattention', 'drafts', 'assigned', ...
import properties from .. import BaseModel class Folder(BaseModel): name = properties.String( 'Folder name', required=True, ) type = properties.StringChoice( 'The type of folder.', choices=['needsattention', 'drafts', 'assigned', ...
Add 'team' to Folder type options
[ADD] Add 'team' to Folder type options
Python
mit
LasLabs/python-helpscout
python
## Code Before: import properties from .. import BaseModel class Folder(BaseModel): name = properties.String( 'Folder name', required=True, ) type = properties.StringChoice( 'The type of folder.', choices=['needsattention', 'drafts', 'as...
39af1168ca17f6c6673a4ffb609f34b96019e649
docker-compose-test.yml
docker-compose-test.yml
version: '2' services: ram-postgis: image: mdillon/postgis:9.6 ports: - 5432 environment: POSTGRES_PASSWORD: ramtest POSTGRES_USER: ramtest POSTGRES_DB: ramtest ram-minio: image: minio/minio ports: - 9000 environment: MINIO_ACCESS_KEY: minio MINIO_SE...
version: '2' services: ram-postgis: image: mdillon/postgis:9.6 ports: - 5432 environment: POSTGRES_PASSWORD: ramtest POSTGRES_USER: ramtest POSTGRES_DB: ramtest ram-minio: image: minio/minio ports: - 9000 environment: MINIO_ACCESS_KEY: minio MINIO_SE...
Set OSM P2P variable. Make those test pass
Set OSM P2P variable. Make those test pass
YAML
mit
WorldBank-Transport/Rural-Road-Accessibility,WorldBank-Transport/Rural-Road-Accessibility,WorldBank-Transport/ram-backend,WorldBank-Transport/Rural-Road-Accessibility,WorldBank-Transport/ram-backend,WorldBank-Transport/ram-backend
yaml
## Code Before: version: '2' services: ram-postgis: image: mdillon/postgis:9.6 ports: - 5432 environment: POSTGRES_PASSWORD: ramtest POSTGRES_USER: ramtest POSTGRES_DB: ramtest ram-minio: image: minio/minio ports: - 9000 environment: MINIO_ACCESS_KEY: mini...
87d84c6facbe02c94df86ff9f1104816a04a26b0
.github/workflows/maven.yml
.github/workflows/maven.yml
name: Java CI on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - name: Build with Maven run: mvn package --file pom.xml
name: Java CI on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Get OpenJDK 11 run: wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x64_linux_hotspot_11.0.4_11.tar....
Use OpenJDK from AdoptOpenJDK releases
Use OpenJDK from AdoptOpenJDK releases
YAML
apache-2.0
mosoft521/wicket,apache/wicket,mosoft521/wicket,mosoft521/wicket,apache/wicket,mosoft521/wicket,apache/wicket,apache/wicket,mosoft521/wicket,apache/wicket
yaml
## Code Before: name: Java CI on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - name: Build with Maven run: mvn package --file pom....
e767c25c55af9a5f8be26f5ddbd629a4d7b03d40
.travis.yml
.travis.yml
language: ruby rvm: - 1.9.3 - 1.9.2 - jruby-19mode env: - "RAILS_ENV=test DB=mysql DISPLAY=:99 BUNDLE_WITHOUT=postgres:sqlite" - "RAILS_ENV=test DB=postgres DISPLAY=:99 BUNDLE_WITHOUT=mysql:sqlite" before_script: - sh -c "cp config/database.$DB.yml config/database.yml" - sh -c "cp config/environment....
language: ruby rvm: - 1.9.3 - 1.9.2 - jruby-19mode env: - "RAILS_ENV=test DB=mysql BUNDLE_WITHOUT=postgres:sqlite" - "RAILS_ENV=test DB=postgres BUNDLE_WITHOUT=mysql:sqlite" before_script: - sh -c "cp config/database.$DB.yml config/database.yml" - sh -c "cp config/environment.local.example config/env...
Simplify and speed up build preparing scipts
Simplify and speed up build preparing scipts
YAML
agpl-3.0
xuewenfei/jobsworth,webstream-io/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,webstream-io/jobsworth,digitalnatives/jobsworth,digitalnatives/jobsworth,xuewenfei/jobsworth,ari/jobsworth,webstream-io/jobsworth,ari/jobsworth,digitalnatives/jobsworth,ari/jobsworth,digitalnatives/jobsworth,digitalnatives/jobsworth,webs...
yaml
## Code Before: language: ruby rvm: - 1.9.3 - 1.9.2 - jruby-19mode env: - "RAILS_ENV=test DB=mysql DISPLAY=:99 BUNDLE_WITHOUT=postgres:sqlite" - "RAILS_ENV=test DB=postgres DISPLAY=:99 BUNDLE_WITHOUT=mysql:sqlite" before_script: - sh -c "cp config/database.$DB.yml config/database.yml" - sh -c "cp con...
d9a4006478ccc770cdb31ba2ac1b71c257cf27b1
src/java/us/kbase/templates/module_readme_data.vm.properties
src/java/us/kbase/templates/module_readme_data.vm.properties
This directory should contain any data required for your module to work that is not already present in KBase. This includes both reference data for your module to run as well as data used in testing your code. If you have reference data that is too large to store on GitHub check out our [Reference Data Guide](https://k...
This directory contains any data required for this module to run that is not already present in KBase, including both reference data and test data. Follow the [Reference Data Guide](https://kbase.github.io/kb_sdk_docs/howtos/work_with_reference_data.html) for using data that is too large to host on Github (greater tha...
Copy edits for the data directory readme
Copy edits for the data directory readme
INI
mit
kbase/kb_sdk,kbase/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,kbaseIncubator/kb_sdk,kbase/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,kbaseIncubator/kb_sdk,kbase/kb_sdk
ini
## Code Before: This directory should contain any data required for your module to work that is not already present in KBase. This includes both reference data for your module to run as well as data used in testing your code. If you have reference data that is too large to store on GitHub check out our [Reference Data ...
5cec3c656ec26f1cae38e918a34098d40dcde397
app/models/entity.rb
app/models/entity.rb
class Entity < ActiveRecord::Base # Associations has_one :contact, as: :contactable has_one :manifest has_many :channels has_many :items, through: :channels has_and_belongs_to_many :users belongs_to :parent, class_name: "Entity" has_many :children, class_name: "Entity", foreign_key: "parent_id" has_an...
class Entity < ActiveRecord::Base # Associations has_one :contact, as: :contactable has_one :manifest has_many :channels has_many :items, through: :channels has_and_belongs_to_many :users belongs_to :parent, class_name: "Entity" has_many :children, class_name: "Entity", foreign_key: "parent_id" has_an...
Define to_s to make life easier
Define to_s to make life easier
Ruby
agpl-3.0
osucomm/mediamagnet,osucomm/mediamagnet
ruby
## Code Before: class Entity < ActiveRecord::Base # Associations has_one :contact, as: :contactable has_one :manifest has_many :channels has_many :items, through: :channels has_and_belongs_to_many :users belongs_to :parent, class_name: "Entity" has_many :children, class_name: "Entity", foreign_key: "par...
d28776e1533663ec7601eb11214252d35ba33859
README.md
README.md
[![Build Status](https://travis-ci.org/ikr/react-star-rating-input.svg?branch=master)](https://travis-ci.org/ikr/react-star-rating-input) # About React.js components for entering 0—N stars (N is 5 by default), or displaying 0—N stars. See [the demo](http://ikr.su/h/react-star-rating-input/demo.html). # Installation ...
[![Build Status](https://travis-ci.org/ikr/react-star-rating-input.svg?branch=master)](https://travis-ci.org/ikr/react-star-rating-input) # About React.js components for entering 0—N stars (N is 5 by default), or displaying 0—N stars. See [the demo](http://ikr.su/h/react-star-rating-input/demo.html). It's published ...
Add a note on compatibility
Add a note on compatibility
Markdown
mit
ikr/react-star-rating-input,ikr/react-star-rating-input,ikr/react-star-rating-input
markdown
## Code Before: [![Build Status](https://travis-ci.org/ikr/react-star-rating-input.svg?branch=master)](https://travis-ci.org/ikr/react-star-rating-input) # About React.js components for entering 0—N stars (N is 5 by default), or displaying 0—N stars. See [the demo](http://ikr.su/h/react-star-rating-input/demo.html). ...
fb0b54e58e0ae7aa1d0aad891d4c7a30a5850d33
README.md
README.md
apc_monitoring ============== Perl tools to get APC PDU / UPS data into Nagios/Graphite. Tested with the following PDUs: AP8941, AP7921, AP7941 and a Symmetra LX UPS. Basic usage: check_apc nagios host [community] warn crit Single shot check mode of checking just a single host. If the community ...
apc_monitoring ============== Perl tools to get APC PDU / UPS data into Nagios/Graphite. Tested with the following PDUs: AP8941, AP7921, AP7941 and a Symmetra LX UPS. Basic usage: check_apc nagios host [community] warn crit Single shot check mode of checking just a single host. If the community ...
Add note about the dependencies
Add note about the dependencies
Markdown
bsd-2-clause
brd/apc_monitoring
markdown
## Code Before: apc_monitoring ============== Perl tools to get APC PDU / UPS data into Nagios/Graphite. Tested with the following PDUs: AP8941, AP7921, AP7941 and a Symmetra LX UPS. Basic usage: check_apc nagios host [community] warn crit Single shot check mode of checking just a single host. If the co...
7942b0f27712af17062795577d7dbc82de4d781b
dallinger/frontend/templates/base/dashboard.html
dallinger/frontend/templates/base/dashboard.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{% block title %}{{title}} - {{app_id}} Dashboard{% endblock %}</title> {% block replace_stylesheets %} <link rel="st...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{% block title %}{{title}} - {{app_id}} Dashboard{% endblock %}</title> {% block replace_stylesheets %} <link rel="st...
Add some bootstrap navigation styling.
Add some bootstrap navigation styling.
HTML
mit
Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>{% block title %}{{title}} - {{app_id}} Dashboard{% endblock %}</title> {% block replace_stylesheets %} ...
22fe422e08032ddf65408473a7737b151a262cf1
assignment2/src/assignment2/PerfectBinTree.java
assignment2/src/assignment2/PerfectBinTree.java
package assignment2; import be.ac.ua.ansymo.adbc.annotations.invariant; @invariant("$this.sameHeight() == true") public class PerfectBinTree extends FullBinTree { public PerfectBinTree(long id) { super(id); } public boolean sameHeight() { int leftHeight = (this.getLeft() != null) ? this.getLeft().height() : ...
package assignment2; import be.ac.ua.ansymo.adbc.annotations.invariant; @invariant({"$super", "$this.sameHeight() == true"}) public class PerfectBinTree extends FullBinTree { public PerfectBinTree(long id) { super(id); } public boolean sameHeight() { int leftHeight = (this.getLeft() != null) ? this.getLeft()...
Enforce the invariant contraints of the parent.
Enforce the invariant contraints of the parent.
Java
unlicense
alanly/soen331,alanly/soen331,alanly/soen331,alanly/soen331
java
## Code Before: package assignment2; import be.ac.ua.ansymo.adbc.annotations.invariant; @invariant("$this.sameHeight() == true") public class PerfectBinTree extends FullBinTree { public PerfectBinTree(long id) { super(id); } public boolean sameHeight() { int leftHeight = (this.getLeft() != null) ? this.getLe...