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
a243b48c80fe221238137f7921e2b961a40396fa
src/providers/File.ts
src/providers/File.ts
import i = require('../Interfaces'); import _ = require('lodash'); import Utils = require('../Utils'); import Path = require('path'); var filter: any = require('fuzzaldrin').filter; class File implements i.AutocompletionProvider { getSuggestions(currentDirectory: string, input: i.Parsable) { return new Pro...
import i = require('../Interfaces'); import _ = require('lodash'); import Utils = require('../Utils'); import Path = require('path'); var filter: any = require('fuzzaldrin').filter; class File implements i.AutocompletionProvider { getSuggestions(currentDirectory: string, input: i.Parsable) { return new Pro...
Allow to glob absolute paths.
Allow to glob absolute paths.
TypeScript
mit
Cavitt/black-screen,Ribeiro/black-screen,Thundabrow/black-screen,Dangku/black-screen,smaty1/black-screen,Ribeiro/black-screen,Dangku/black-screen,w9jds/black-screen,Dangku/black-screen,geksilla/black-screen,drew-gross/black-screen,smaty1/black-screen,Young55555/black-screen,jacobmarshall/black-screen,noikiy/black-scree...
typescript
## Code Before: import i = require('../Interfaces'); import _ = require('lodash'); import Utils = require('../Utils'); import Path = require('path'); var filter: any = require('fuzzaldrin').filter; class File implements i.AutocompletionProvider { getSuggestions(currentDirectory: string, input: i.Parsable) { ...
8ad3d57312dfc476b7ab137fb675ec0b6efa81a4
.travis.yml
.travis.yml
language: ruby rvm: - 2.0.0 addons: apt: packages: - lpass script: - echo ss | lpass login 1qlhs3+4znburynmwnkhpe92lerwhefkhk@sharklasers.com - lpass ls
language: ruby rvm: - 2.0.0 env: global: LPASS=${HOME}/bin/bin/lpass script: - cd tests - ./build-lpass.sh - $(LPASS) ls - echo ss | $(LPASS) login 1qlhs3+4znburynmwnkhpe92lerwhefkhk@sharklasers.com
Improve Travis now that we can build lpass.
Improve Travis now that we can build lpass.
YAML
bsd-2-clause
wkoszek/lastpass-ssh,wkoszek/lastpass-ssh
yaml
## Code Before: language: ruby rvm: - 2.0.0 addons: apt: packages: - lpass script: - echo ss | lpass login 1qlhs3+4znburynmwnkhpe92lerwhefkhk@sharklasers.com - lpass ls ## Instruction: Improve Travis now that we can build lpass. ## Code After: language: ruby rvm: - 2.0.0 env: global: LPASS=${HO...
cd8bfc6241896d100eb6a5af53c217d0cdcfde08
packages/te/telega.yaml
packages/te/telega.yaml
homepage: https://github.com/iokasimov/telega changelog-type: markdown hash: 8a54cea881a13d89bf992366fc0fc8b568942507b3aad40089aa0d3e2bc2e53b test-bench-deps: {} maintainer: Murat Kasimov <iokasimov.m@gmail.com> synopsis: Telegram Bot API binding changelog: | # 0.1.1 * Define `chat` lens for `Update` datatype * A...
homepage: https://github.com/iokasimov/telega changelog-type: markdown hash: 13c9cbb8529a6064d7b5344a4eb14b81b63c1b0695302b85d6b279f1e26b1818 test-bench-deps: {} maintainer: Murat Kasimov <iokasimov.m@gmail.com> synopsis: Telegram Bot API binding changelog: | # 0.1.1 * Define `chat` lens for `Update` datatype * A...
Update from Hackage at 2019-04-05T12:56:40Z
Update from Hackage at 2019-04-05T12:56:40Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/iokasimov/telega changelog-type: markdown hash: 8a54cea881a13d89bf992366fc0fc8b568942507b3aad40089aa0d3e2bc2e53b test-bench-deps: {} maintainer: Murat Kasimov <iokasimov.m@gmail.com> synopsis: Telegram Bot API binding changelog: | # 0.1.1 * Define `chat` lens for `Update...
a76e769741fdbede78f11dd942ff6732e317fe3a
lib/assert.js
lib/assert.js
'use strict'; var Assert = require('test/assert').Assert , bindMethods = require('es5-ext/lib/Object/bind-methods') , never, neverBind; never = function (message) { this.fail({ message: message, operator: "never" }); }; neverBind = function (message) { return never.bind(this, message); }; module.ex...
'use strict'; var extend = require('es5-ext/lib/Object/extend') , map = require('es5-ext/lib/Object/map') , Assert = require('test/assert').Assert , never, neverBind; never = function (message) { this.fail({ message: message, operator: "never" }); }; neverBind = function (message) { return never.bin...
Update up to changes in es5-ext package
Update up to changes in es5-ext package
JavaScript
isc
medikoo/tad
javascript
## Code Before: 'use strict'; var Assert = require('test/assert').Assert , bindMethods = require('es5-ext/lib/Object/bind-methods') , never, neverBind; never = function (message) { this.fail({ message: message, operator: "never" }); }; neverBind = function (message) { return never.bind(this, message...
9d0e9af5844772c18ca24d4012642d4518b66dfc
tests/test_judicious.py
tests/test_judicious.py
"""Tests for `judicious` package.""" import pytest import judicious @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://github.com/audreyr/cookiecutter-pypackage') def test_c...
"""Tests for `judicious` package.""" import random import pytest import judicious def test_seeding(): r1 = random.random() r2 = random.random() judicious.seed("70d911d5-6d93-3c42-f9a4-53e493a79bff") r3 = random.random() r4 = random.random() judicious.seed("70d911d5-6d93-3c42-f9a4-53e493a79...
Add test of seeding PRNG
Add test of seeding PRNG
Python
mit
suchow/judicious,suchow/judicious,suchow/judicious
python
## Code Before: """Tests for `judicious` package.""" import pytest import judicious @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('https://github.com/audreyr/cookiecutter-pypackag...
442649b9ebd795c83dc643d0cc067f8ec35baff2
source/renderer/app/components/status/NetworkStatus.scss
source/renderer/app/components/status/NetworkStatus.scss
.component { align-items: center; background: var(--theme-connecting-background-color); color: var(--theme-connecting-text-color); height: 100%; display: flex; flex-direction: column; font-family: var(--font-medium); font-size: 14px; line-height: 1.5; justify-content: center; width: 100%; } .tabl...
.component { align-items: center; background: #202225; color: #fff; height: 100%; display: flex; flex-direction: column; font-family: var(--font-medium); font-size: 14px; line-height: 1.5; justify-content: center; width: 100%; } .table { width: 50%; th { padding-top: 30px; text-align...
Use same styling for Network Status screen for all themes
[DDW-275] Use same styling for Network Status screen for all themes
SCSS
apache-2.0
input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus,input-output-hk/daedalus
scss
## Code Before: .component { align-items: center; background: var(--theme-connecting-background-color); color: var(--theme-connecting-text-color); height: 100%; display: flex; flex-direction: column; font-family: var(--font-medium); font-size: 14px; line-height: 1.5; justify-content: center; width...
b55234e0c10b31268f4dccebf534e283dfba0701
installer/linux/launcher.sh
installer/linux/launcher.sh
export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH ./BlackPearlDS3BrowserApp
pwd=`pwd` export LD_LIBRARY_PATH=$pwd/lib:$LD_LIBRARY_PATH export QT_QPA_PLATFORM_PLUGIN_PATH=$pwd/lib/plugins ./app/BlackPearl\ DS3\ Browser
Set QT_QPA_PLATFORM_PLUGIN_PATH so Qt can find its platform-specific plugins
Set QT_QPA_PLATFORM_PLUGIN_PATH so Qt can find its platform-specific plugins
Shell
apache-2.0
SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,Klopsch/ds3_browser,Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser
shell
## Code Before: export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH ./BlackPearlDS3BrowserApp ## Instruction: Set QT_QPA_PLATFORM_PLUGIN_PATH so Qt can find its platform-specific plugins ## Code After: pwd=`pwd` export LD_LIBRARY_PATH=$pwd/lib:$LD_LIBRARY_PATH export QT_QPA_PLATFORM_PLUGIN_PATH=$pwd/lib/plugins ./app/B...
cba84223b4544b93f619113d96e749bd6b58368c
AngularBasic/webpack.config.ts
AngularBasic/webpack.config.ts
import { AngularCompilerPlugin } from "@ngtools/webpack"; import * as path from "path"; import { Configuration, DllReferencePlugin } from "webpack"; import * as webpackMerge from "webpack-merge"; import { isAOT, isProd, outputDir, WebpackCommonConfig } from "./webpack.config.common"; module.exports = (env: any) => { ...
import { AngularCompilerPlugin } from "@ngtools/webpack"; import * as path from "path"; import { Configuration, DllReferencePlugin } from "webpack"; import * as webpackMerge from "webpack-merge"; import { isAOT, isProd, outputDir, WebpackCommonConfig } from "./webpack.config.common"; module.exports = (env: any) => { ...
Add warning when trying to use dev + aot that vendor bundle will not be used
Add warning when trying to use dev + aot that vendor bundle will not be used
TypeScript
mit
MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic,MattJeanes/AngularBasic
typescript
## Code Before: import { AngularCompilerPlugin } from "@ngtools/webpack"; import * as path from "path"; import { Configuration, DllReferencePlugin } from "webpack"; import * as webpackMerge from "webpack-merge"; import { isAOT, isProd, outputDir, WebpackCommonConfig } from "./webpack.config.common"; module.exports = ...
d078ec00d5553b0985d9c724a223c74b80b2c5ab
grains/grains.py
grains/grains.py
square = [x for x in range(1, 65)] grains = [2 ** x for x in range(0, 65)] board = zip(square, grains) print (board)
square = [x for x in range(1, 65)] grains = [2 ** x for x in range(0, 65)] board = dict(zip(square, grains)) print type(board) for k, v in board.iteritems(): print k, v
Convert zipped list to dictionary
Convert zipped list to dictionary
Python
mit
amalshehu/exercism-python
python
## Code Before: square = [x for x in range(1, 65)] grains = [2 ** x for x in range(0, 65)] board = zip(square, grains) print (board) ## Instruction: Convert zipped list to dictionary ## Code After: square = [x for x in range(1, 65)] grains = [2 ** x for x in range(0, 65)] board = dict(zip(square, grains)) print ...
07dd4e5045c94fd23071539e9ba4817085523ed9
spec/tasks/reparty_task_spec.rb
spec/tasks/reparty_task_spec.rb
require_relative '../spec_helper' require 'action_mailer' require_relative '../../app/mailers/report_mailer' describe "reparty:email" do include_context "rake" its(:prerequisites) { should include("environment") } it "requires an address" do STDOUT.should_receive(:puts) subject.invoke end it "shou...
require_relative '../spec_helper' require 'action_mailer' require_relative '../../app/mailers/report_mailer' describe "reparty:email" do include_context "rake" its(:prerequisites) { should include("environment") } it "requires an address" do STDOUT.should_receive(:puts) subject.invoke end it "shou...
Move those tmp files to the root.
Move those tmp files to the root.
Ruby
mit
timdorr/reparty
ruby
## Code Before: require_relative '../spec_helper' require 'action_mailer' require_relative '../../app/mailers/report_mailer' describe "reparty:email" do include_context "rake" its(:prerequisites) { should include("environment") } it "requires an address" do STDOUT.should_receive(:puts) subject.invoke ...
d618f430c143874011b70afe0a4fa62c06f5e28c
md5bot.py
md5bot.py
import time import hashlib import tweepy CONSUMER_KEY = 'xxxxxxxxxxxx' CONSUMER_SECRET = 'xxxxxxxxxxxx' ACCESS_KEY = 'xxxxxxxxxxxx' ACCESS_SECRET = 'xxxxxxxxxxxx' auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) api = tweepy.API(auth) def checkTime(): ts = ...
__author__ = "Patrick Guelcher" __copyright__ = "(C) 2016 Patrick Guelcher" __license__ = "MIT" __version__ = "1.0" """ A bot for Twitter that checks the time and then posts it as an md5 hash value. """ import time import hashlib import tweepy # Configuration (Twitter API Settings) CONSUMER_KEY = 'npfl47weJ6vSn3MRX...
Clean code and conform to python conventions
Clean code and conform to python conventions Some things are still a bit weird, mostly due to my limited knowledge of Python. Also fixed code to conform to Python naming conventions for variables/functions.
Python
mit
aerovolts/python-scripts
python
## Code Before: import time import hashlib import tweepy CONSUMER_KEY = 'xxxxxxxxxxxx' CONSUMER_SECRET = 'xxxxxxxxxxxx' ACCESS_KEY = 'xxxxxxxxxxxx' ACCESS_SECRET = 'xxxxxxxxxxxx' auth = tweepy.OAuthHandler(CONSUMER_KEY, CONSUMER_SECRET) auth.set_access_token(ACCESS_KEY, ACCESS_SECRET) api = tweepy.API(auth) def che...
9e148028300a46f9074b9f188dc04d87884c8905
rsr/headerbar.py
rsr/headerbar.py
from gi.repository import Gio, Gtk from rsr.commands import commands class HeaderBar(Gtk.HeaderBar): def __init__(self, win): super(HeaderBar, self).__init__() self.win = win self.set_show_close_button(True) self.set_title('RunSQLRun') self.set_subtitle('Database query t...
from gi.repository import Gio, Gtk from rsr.commands import commands class HeaderBar(Gtk.HeaderBar): def __init__(self, win): super(HeaderBar, self).__init__() self.win = win self.set_show_close_button(True) self.set_title('RunSQLRun') self.set_subtitle('Database query t...
Hide preferences button for now.
Hide preferences button for now.
Python
mit
andialbrecht/runsqlrun
python
## Code Before: from gi.repository import Gio, Gtk from rsr.commands import commands class HeaderBar(Gtk.HeaderBar): def __init__(self, win): super(HeaderBar, self).__init__() self.win = win self.set_show_close_button(True) self.set_title('RunSQLRun') self.set_subtitle('...
146912ae9c43da6eea390fc58e6777757fd9746b
collector/http_util.go
collector/http_util.go
package collector import ( "errors" "fmt" "io/ioutil" "net/http" ) func HttpGet(endpoint string) (body []byte, err error) { response, err := http.Get(endpoint) if err != nil { return nil, err } if response.StatusCode < 200 || response.StatusCode >= 300 { return nil, errors.New(fmt.Sprintf( "Got respons...
package collector import ( "errors" "fmt" "io/ioutil" "net/http" ) const ( userAgent = "metrics-collector/1.0" ) func HttpGet(endpoint string) (body []byte, err error) { // Configure custom UA header for tracing in mesos logs request, err := http.NewRequest("GET", endpoint, nil) if err != nil { return nil,...
Include User-Agent header in outgoing HTTP requests
Include User-Agent header in outgoing HTTP requests Mesos includes the agent string in logs, so this should make collector requests more traceable
Go
apache-2.0
dcos/dcos-metrics,dcos/dcos-metrics,dcos/dcos-metrics,dcos/dcos-metrics,dcos/dcos-metrics
go
## Code Before: package collector import ( "errors" "fmt" "io/ioutil" "net/http" ) func HttpGet(endpoint string) (body []byte, err error) { response, err := http.Get(endpoint) if err != nil { return nil, err } if response.StatusCode < 200 || response.StatusCode >= 300 { return nil, errors.New(fmt.Sprintf(...
be3b32777b32774c288b604f0d95eacb32a4d1a2
tox.ini
tox.ini
[tox] minversion = 3.14.0 envlist = py36, py37, py38, py39, lint skip_missing_interpreters = true [testenv] extras = testing commands = coverage run -m pytest {posargs} [testenv:lint] skip_install = true basepython = python3.9 extras = tests deps = flake8 black commands = make lint [testenv:coverage-repo...
[tox] minversion = 3.14.0 envlist = py36, py37, py38, py39, py310, lint skip_missing_interpreters = true [testenv] extras = testing commands = coverage run -m pytest {posargs} [testenv:lint] skip_install = true basepython = python3.9 extras = tests deps = flake8 black commands = make lint [testenv:covera...
Include Python 3.10 in Tox test runs.
build: Include Python 3.10 in Tox test runs. Signed-off-by: Michael Seifert <47dcc024e7532b8660ec7c70e7b97dacd24ea73a@digitalernachschub.de>
INI
apache-2.0
pytest-dev/pytest-asyncio
ini
## Code Before: [tox] minversion = 3.14.0 envlist = py36, py37, py38, py39, lint skip_missing_interpreters = true [testenv] extras = testing commands = coverage run -m pytest {posargs} [testenv:lint] skip_install = true basepython = python3.9 extras = tests deps = flake8 black commands = make lint [teste...
0899ae61157b5e81c0d284db94f0df3e62bc797c
src/app/code/community/Linus/CanadaPost/controllers/ApiController.php
src/app/code/community/Linus/CanadaPost/controllers/ApiController.php
<?php use LinusShops\CanadaPost\Services\GetNearestPostOffice; /** * Index Controller * */ class Linus_CanadaPost_OfficeController extends Mage_Core_Controller_Front_Action { /** * Get the list of nearest post offices */ public function nearestAction() { $common = Mage::helper('linus_c...
<?php use LinusShops\CanadaPost\Services\GetNearestPostOffice; /** * Index Controller * */ class Linus_CanadaPost_OfficeController extends Mage_Core_Controller_Front_Action { /** * Get the list of nearest post offices */ public function nearestAction() { $common = Mage::helper('linus_c...
Return office data in json form.
Return office data in json form.
PHP
mit
linusshops/canadapost-magento,linusshops/canadapost-magento,linusshops/canadapost-magento
php
## Code Before: <?php use LinusShops\CanadaPost\Services\GetNearestPostOffice; /** * Index Controller * */ class Linus_CanadaPost_OfficeController extends Mage_Core_Controller_Front_Action { /** * Get the list of nearest post offices */ public function nearestAction() { $common = Mage:...
33d59b7f640d646dfda9efa66659a058b8aa053a
src/main/groovy/com/github/aesteve/vertx/groovy/HttpClientResponseExtension.groovy
src/main/groovy/com/github/aesteve/vertx/groovy/HttpClientResponseExtension.groovy
package com.github.aesteve.vertx.groovy import groovy.transform.TypeChecked import io.vertx.core.Handler import io.vertx.groovy.core.MultiMap import io.vertx.groovy.core.http.HttpClientResponse @TypeChecked class HttpClientResponseExtension { static void rightShiftUnsigned(HttpClientResponse self, Handler handler) {...
package com.github.aesteve.vertx.groovy import groovy.transform.TypeChecked import io.vertx.core.Handler import io.vertx.groovy.core.MultiMap import io.vertx.groovy.core.buffer.Buffer import io.vertx.groovy.core.http.HttpClientResponse @TypeChecked class HttpClientResponseExtension { static void rightShiftUnsigned(...
Add Closure support w/ delegate
Add Closure support w/ delegate
Groovy
apache-2.0
aesteve/vertx-groovy-sugar,aesteve/grooveex
groovy
## Code Before: package com.github.aesteve.vertx.groovy import groovy.transform.TypeChecked import io.vertx.core.Handler import io.vertx.groovy.core.MultiMap import io.vertx.groovy.core.http.HttpClientResponse @TypeChecked class HttpClientResponseExtension { static void rightShiftUnsigned(HttpClientResponse self, Ha...
f52963f99cb4c32b2db2a06f8c1fd254b33ac3c2
rules/ExcludePodcastAnnouncements.js
rules/ExcludePodcastAnnouncements.js
module.exports = function ExcludePodcastAnnouncements(item) { if (item.title.indexOf('#') >= 0) { if (item.content.indexOf('This week on') >= 0 && item.content.indexOf('relay.fm') >= 0) { return true; } } if (/^Appearance: /.test(item.title)) { if (item.content.indexOf('...
module.exports = function ExcludePodcastAnnouncements(item) { if (item.title.indexOf('#') >= 0) { if (item.content.indexOf('relay.fm') >= 0) { return true; } } if (/^Appearance: /.test(item.title)) { if (item.content.indexOf('I joined') >= 0) { return true; ...
Make the relay.fm announcement rule more general
Make the relay.fm announcement rule more general
JavaScript
mit
shinypb/feedfilterer
javascript
## Code Before: module.exports = function ExcludePodcastAnnouncements(item) { if (item.title.indexOf('#') >= 0) { if (item.content.indexOf('This week on') >= 0 && item.content.indexOf('relay.fm') >= 0) { return true; } } if (/^Appearance: /.test(item.title)) { if (item.c...
d392c6cdbdd207b9c22c2942825b5f6d403834e4
lib/credo/execution/task/validate_config.ex
lib/credo/execution/task/validate_config.ex
defmodule Credo.Execution.Task.ValidateConfig do use Credo.Execution.Task def call(exec, _opts) do exec end end
defmodule Credo.Execution.Task.ValidateConfig do use Credo.Execution.Task alias Credo.CLI.Output.UI def call(exec, _opts) do exec |> validate_checks() |> remove_missing_checks() end defp validate_checks(%Execution{checks: checks} = exec) do Enum.each(checks, &warn_if_check_missing/1) e...
Remove non-existing checks from Execution
Remove non-existing checks from Execution
Elixir
mit
rrrene/credo,rrrene/credo
elixir
## Code Before: defmodule Credo.Execution.Task.ValidateConfig do use Credo.Execution.Task def call(exec, _opts) do exec end end ## Instruction: Remove non-existing checks from Execution ## Code After: defmodule Credo.Execution.Task.ValidateConfig do use Credo.Execution.Task alias Credo.CLI.Output.UI ...
9df5dfed6a2a0e8125213785ed418e9515e0c0db
.travis.yml
.travis.yml
language: python python: - "2.7" # command to install dependencies before_install: - sudo rm /etc/apt/sources.list - echo 'deb http://http.debian.net/debian/ jessie main' | sudo dd of=/etc/apt/sources.list - sudo apt-get update - sudo apt-get --force-yes -y install debian-archive-keyring - sudo apt-get upda...
language: python python: - "2.7" # command to install dependencies before_install: - sudo rm /etc/apt/sources.list - echo 'deb http://http.debian.net/debian/ jessie main' | sudo dd of=/etc/apt/sources.list - sudo apt-get update - sudo apt-get --force-yes -y install debian-archive-keyring - sudo apt-get upda...
Remove Ubuntu-specific multiarch config files for dpkg
Remove Ubuntu-specific multiarch config files for dpkg
YAML
apache-2.0
sandstorm-io/sandcats,sandstorm-io/sandcats,sandstorm-io/sandcats,sandstorm-io/sandcats
yaml
## Code Before: language: python python: - "2.7" # command to install dependencies before_install: - sudo rm /etc/apt/sources.list - echo 'deb http://http.debian.net/debian/ jessie main' | sudo dd of=/etc/apt/sources.list - sudo apt-get update - sudo apt-get --force-yes -y install debian-archive-keyring - s...
e338cf7652eda31cdb568e63c3489520039b0078
README.md
README.md
varnish3to4 =========== A script to assist migrating a VCL file from Varnish 3 to 4. Currently understands: V3 | V4 :-- | :-- vcl_fetch | vcl_backend_response vcl_error | vcl_synth error code response | return (vcl_synth(code, response)) remove | unset {bereq,req}.request | {bereq,req}.method {beresp,obj,resp}.respo...
varnish3to4 =========== A script to assist migrating a VCL file from Varnish 3 to 4. Currently understands: V3 | V4 :-- | :-- vcl_fetch | vcl_backend_response vcl_error | vcl_synth error code response | return (vcl_synth(code, response)) remove | unset {bereq,req}.request | {bereq,req}.method {beresp,obj,resp}.respo...
Add purge -> return (purge)
Add purge -> return (purge)
Markdown
bsd-2-clause
fgsch/varnish3to4,fgsch/varnish3to4
markdown
## Code Before: varnish3to4 =========== A script to assist migrating a VCL file from Varnish 3 to 4. Currently understands: V3 | V4 :-- | :-- vcl_fetch | vcl_backend_response vcl_error | vcl_synth error code response | return (vcl_synth(code, response)) remove | unset {bereq,req}.request | {bereq,req}.method {beresp...
90ddaaf32fea22932fb35574d7d3b82f12d7f3a3
pages/es/_data/nav.yml
pages/es/_data/nav.yml
- title: Apps & Juegos desc: Descubra recursos para comenzar a crear sus aplicaciones de Android, aplicaciones web y juegos para Chrome OS. icon: game-controller sections: - title: Adaptar Android url: android - title: Adaptar Web url: web - title: Juegos url: games - title: Publicar...
- title: Apps & Juegos desc: Descubra recursos para comenzar a crear sus aplicaciones de Android, aplicaciones web y juegos para Chrome OS. icon: game-controller sections: - title: Adaptar Android url: android - title: Adaptar Web url: web - title: Juegos url: games - title: Publicar...
Use correct icon for Spanish's Publish section
Use correct icon for Spanish's Publish section
YAML
apache-2.0
chromeos/chromeos.dev,chromeos/chromeos.dev
yaml
## Code Before: - title: Apps & Juegos desc: Descubra recursos para comenzar a crear sus aplicaciones de Android, aplicaciones web y juegos para Chrome OS. icon: game-controller sections: - title: Adaptar Android url: android - title: Adaptar Web url: web - title: Juegos url: games -...
5871a4d6a54b03c83d3117ce72009368158d3c57
doc/update_tutorial.sh
doc/update_tutorial.sh
set -e set -u if [ "$(basename $(pwd))" != "doc" ] then echo "Execute this script within the doc folder!" exit 1 fi PWD=$(pwd) function cleanup { cd $PWD rm -rf signac-examples } trap cleanup EXIT git clone --reference ~/local/gitcaches/signac-examples.reference git@bitbucket.org:glotzer/signac-example...
set -e set -u if [ "$(basename $(pwd))" != "doc" ] then echo "Execute this script within the doc folder!" exit 1 fi PWD=$(pwd) export PYTHONPATH=$PWD/.. function cleanup { cd $PWD #rm -rf signac-examples } trap cleanup EXIT git clone git@github.com:csadorf/signac-examples.git cd signac-examples/ scons ...
Use signac-examples github repository instead of bitbucket.
Use signac-examples github repository instead of bitbucket.
Shell
bsd-3-clause
csadorf/signac,csadorf/signac
shell
## Code Before: set -e set -u if [ "$(basename $(pwd))" != "doc" ] then echo "Execute this script within the doc folder!" exit 1 fi PWD=$(pwd) function cleanup { cd $PWD rm -rf signac-examples } trap cleanup EXIT git clone --reference ~/local/gitcaches/signac-examples.reference git@bitbucket.org:glotze...
1ae868c781c4bafd2da912ad8c16ac9435346d43
conda.recipe/meta.yaml
conda.recipe/meta.yaml
package: name: radarmodel source: git_url: https://github.com/ryanvolz/radarmodel.git requirements: build: - python - setuptools - cython - numpy run: - python - setuptools - numba - numpy - pyfftw - scipy test: imports: - radarmodel about: home: http://github...
package: name: radarmodel source: path: ../ #git_url: https://github.com/ryanvolz/radarmodel.git requirements: build: - python - setuptools - cython - numpy run: - python - setuptools - numba - numpy - pyfftw - scipy test: imports: - radarmodel about: home: ...
Change conda recipe to build from local source instead of github.
Change conda recipe to build from local source instead of github.
YAML
mit
ryanvolz/radarmodel,ryanvolz/radarmodel
yaml
## Code Before: package: name: radarmodel source: git_url: https://github.com/ryanvolz/radarmodel.git requirements: build: - python - setuptools - cython - numpy run: - python - setuptools - numba - numpy - pyfftw - scipy test: imports: - radarmodel about: hom...
de045fc626d0137f088c0187903b707c24739a1e
README.md
README.md
A simple wrapper for the [Nexmo](http://nexmo.com/) API ======================================================= Installation ------------ Run `gem install nexmo` and `require 'nexmo'`, or do the gemfile/bundle thing if you're using Rails. Usage ----- Construct a client object with your Nexmo API credentials: ```...
A simple wrapper for the [Nexmo](http://nexmo.com/) API ======================================================= Installation ------------ Run `gem install nexmo` and `require 'nexmo'`, or do the gemfile/bundle thing if you're using Rails. Usage ----- Construct a client object with your Nexmo API credentials: ```...
Add note about international formatting of phone numbers and link to nexmo error codes
Add note about international formatting of phone numbers and link to nexmo error codes
Markdown
mit
Nexmo/ruby-nexmo
markdown
## Code Before: A simple wrapper for the [Nexmo](http://nexmo.com/) API ======================================================= Installation ------------ Run `gem install nexmo` and `require 'nexmo'`, or do the gemfile/bundle thing if you're using Rails. Usage ----- Construct a client object with your Nexmo API c...
b6bf15de7fa51a79f55f3f34f0398685c8765a00
app/views/logs/show.html.erb
app/views/logs/show.html.erb
<h1><%= @log.entry_name %></h1> <div class="links"> <p> <%= link_to "Edit", edit_log_path(@log) %> | <%= link_to "Destroy", log_path(@log), method: :delete %> </p> </div> <h3>Countries</h3> <ul> <% @log.countries.each do |country| %> <li><%= country.name %></li> <% end %> </ul> <h3>Custom ...
<h1><%= @log.entry_name %></h1> <div class="links"> <p> <%= link_to "Edit", edit_log_path(@log) %> | <%= link_to "Destroy", log_path(@log), method: :delete %> | <%= link_to "All Logs", logs_path %> </p> </div> <h3>Countries</h3> <ul> <% @log.countries.each do |country| %> <li><%= country....
Add link to index on show
Add link to index on show
HTML+ERB
mit
kyletolle/has-many-through-polymorphic,kyletolle/has-many-through-polymorphic
html+erb
## Code Before: <h1><%= @log.entry_name %></h1> <div class="links"> <p> <%= link_to "Edit", edit_log_path(@log) %> | <%= link_to "Destroy", log_path(@log), method: :delete %> </p> </div> <h3>Countries</h3> <ul> <% @log.countries.each do |country| %> <li><%= country.name %></li> <% end %> </...
a60dc6d648f5343690e0a6578ac1638f9e07a856
code/manifest.json
code/manifest.json
{ "manifest_version": 2, "name": "Google Calendar Scroll Disabler", "version": "0.1", "icons": { "16": "icon16.png", "48": "icon48.png" }, "content_scripts": [ { "matches": [ "https://www.google.com/calendar/*" ], "js": ["jquery-2.1.4.min.js", "content.js"] } ] }
{ "manifest_version": 2, "name": "Google Calendar Scroll Disabler", "version": "0.2", "icons": { "16": "icon16.png", "48": "icon48.png" }, "content_scripts": [ { "matches": [ "https://calendar.google.com/calendar/*" ], "js": ["jquery-2.1.4.min.js", "content.js"] } ] }
Migrate to new Google Calendar domain
Migrate to new Google Calendar domain
JSON
apache-2.0
alter-ego/google-calendar-scroll-disabler
json
## Code Before: { "manifest_version": 2, "name": "Google Calendar Scroll Disabler", "version": "0.1", "icons": { "16": "icon16.png", "48": "icon48.png" }, "content_scripts": [ { "matches": [ "https://www.google.com/calendar/*" ], "js": ["jquery-2.1.4.min.js", "content.js"] } ] } ## Instruc...
d076080ea0b8bbb24fa4287361203c3ea4d0fa2c
scalameta/io/jvm/src/main/scala/scala/meta/internal/io/PlatformFileIO.scala
scalameta/io/jvm/src/main/scala/scala/meta/internal/io/PlatformFileIO.scala
package scala.meta.internal.io import java.net.URI import java.nio.charset.Charset import java.nio.file.FileVisitOption import scala.meta.io._ import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.nio.file.SimpleFileVisitor object PlatformFileIO { def readAllBytes(uri: URI): Ar...
package scala.meta.internal.io import java.net.URI import java.nio.charset.Charset import java.nio.file.FileVisitOption import scala.meta.io._ import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.nio.file.SimpleFileVisitor import java.util.stream.Collectors object PlatformFileIO...
Use nio collectors to safely close stream.
Use nio collectors to safely close stream.
Scala
bsd-3-clause
DavidDudson/scalameta,MasseGuillaume/scalameta,olafurpg/scalameta,xeno-by/scalameta,xeno-by/scalameta,scalameta/scalameta,MasseGuillaume/scalameta,olafurpg/scalameta,xeno-by/scalameta,DavidDudson/scalameta,scalameta/scalameta,scalameta/scalameta,scalameta/scalameta,MasseGuillaume/scalameta,olafurpg/scalameta,scalameta/...
scala
## Code Before: package scala.meta.internal.io import java.net.URI import java.nio.charset.Charset import java.nio.file.FileVisitOption import scala.meta.io._ import java.nio.file.Files import java.nio.file.Path import java.nio.file.Paths import java.nio.file.SimpleFileVisitor object PlatformFileIO { def readAllByt...
134fb48961a03bc17b34154b54875b543f1f27b8
legcoscraper/scripts/report-summary.py
legcoscraper/scripts/report-summary.py
import argparse import json from collections import Counter from pprint import pprint parser = argparse.ArgumentParser() parser.add_argument("json_file", type=str, help="JSON data file from scraper") args = parser.parse_args() type_count = Counter() infile = open(args.json_file, 'r') for line in infile.readlines():...
import argparse import json from collections import Counter from pprint import pprint import re parser = argparse.ArgumentParser() parser.add_argument("json_file", type=str, help="JSON data file from scraper") args = parser.parse_args() type_count = Counter() year_count = Counter() year_regex = re.compile('(?P<year...
Print count summaries for Hansard by year
Print count summaries for Hansard by year
Python
mit
comsaint/legco-watch,legco-watch/legco-watch,comsaint/legco-watch,legco-watch/legco-watch,legco-watch/legco-watch,comsaint/legco-watch,comsaint/legco-watch,legco-watch/legco-watch
python
## Code Before: import argparse import json from collections import Counter from pprint import pprint parser = argparse.ArgumentParser() parser.add_argument("json_file", type=str, help="JSON data file from scraper") args = parser.parse_args() type_count = Counter() infile = open(args.json_file, 'r') for line in inf...
7eb5fed22b0a84342452309f283c15e9f0931787
.travis.yml
.travis.yml
language: objective-c before_script: - export LANG=en_US.UTF-8 - cd Demo ; pod install ; cd .. xcode_workspace: Demo/RPBorderlessSegmentedControlDemo.xcworkspace xcode_scheme: RPBorderlessSegmentedControlDemo
language: objective-c before_install: - gem install cocoapods before_script: - export LANG=en_US.UTF-8 - cd Demo ; pod install ; cd .. xcode_workspace: Demo/RPBorderlessSegmentedControlDemo.xcworkspace xcode_scheme: RPBorderlessSegmentedControlDemo
Install cocoapods on Travis before build
Install cocoapods on Travis before build
YAML
mit
RobotsAndPencils/RPBorderlessSegmentedControl,RobotsAndPencils/RPBorderlessSegmentedControl,alldritt/RPBorderlessSegmentedControl,RobotsAndPencils/RPBorderlessSegmentedControl
yaml
## Code Before: language: objective-c before_script: - export LANG=en_US.UTF-8 - cd Demo ; pod install ; cd .. xcode_workspace: Demo/RPBorderlessSegmentedControlDemo.xcworkspace xcode_scheme: RPBorderlessSegmentedControlDemo ## Instruction: Install cocoapods on Travis before build ## Code After: language: objectiv...
2229367a3e1d6dca3b8007ae4923442fbbc76f74
.travis.yml
.travis.yml
language: node_js node_js: - "0.10" before_script: npm test
language: node_js node_js: - "0.10" before_script: node build.js build after: npm test
Update Travis.yml with before_script and script configuration.
Update Travis.yml with before_script and script configuration.
YAML
mit
CoNarrative/glujs,CoNarrative/glujs,codekoala/glujs,codekoala/glujs,CoNarrative/glujs,codekoala/glujs
yaml
## Code Before: language: node_js node_js: - "0.10" before_script: npm test ## Instruction: Update Travis.yml with before_script and script configuration. ## Code After: language: node_js node_js: - "0.10" before_script: node build.js build after: npm test
b360acfc0c250fe786044eaa44e9c9b93cd99aaf
waypoints_navigation/package.xml
waypoints_navigation/package.xml
<?xml version="1.0"?> <package> <name>waypoints_navigation</name> <version>0.1.1</version> <description>The waypoints_navigation package</description> <maintainer email="method_aspect_card@yahoo.co.jp">Daiki Maekawa</maintainer> <author>Daiki Maekawa</author> <license>BSD</license> <buildtool_depend>cat...
<?xml version="1.0"?> <package> <name>waypoints_navigation</name> <version>0.1.1</version> <description>The waypoints_navigation package</description> <maintainer email="method_aspect_card@yahoo.co.jp">Daiki Maekawa</maintainer> <author>Daiki Maekawa</author> <url type="website">http://wiki.ros.org/waypoin...
Add link to wiki page
Add link to wiki page
XML
bsd-2-clause
open-rdc/icart_mini,open-rdc/icart,open-rdc/icart_mini,open-rdc/icart
xml
## Code Before: <?xml version="1.0"?> <package> <name>waypoints_navigation</name> <version>0.1.1</version> <description>The waypoints_navigation package</description> <maintainer email="method_aspect_card@yahoo.co.jp">Daiki Maekawa</maintainer> <author>Daiki Maekawa</author> <license>BSD</license> <buil...
cdc0a84bdae039b871744f7e7fad4eee9ffacda9
api/scheduling/index.js
api/scheduling/index.js
var app = require('express'); const router = app.Router({ mergeParams: true }); var retrieval = require('../retrieval/retrieval'); var schedule = require('./algorithms-courseformat/courseMatrixUsage') router.get('/', function(req, res){ if (!req.query.hasOwnProperty('courses')){ res.status(400).json({mes...
var app = require('express'); const router = app.Router({ mergeParams: true }); var retrieval = require('../retrieval/retrieval'); var schedule = require('./algorithms-courseformat/courseMatrixUsage') // .../api/scheduling?courses=['course1','course2',...,'courseN'] router.get('/', function(req, res){ if (!req.q...
Comment added; Scheduling still in question
Comment added; Scheduling still in question
JavaScript
bsd-3-clause
alexram1313/course-scheduler-node,alexram1313/course-scheduler-node,alexram1313/course-scheduler-node
javascript
## Code Before: var app = require('express'); const router = app.Router({ mergeParams: true }); var retrieval = require('../retrieval/retrieval'); var schedule = require('./algorithms-courseformat/courseMatrixUsage') router.get('/', function(req, res){ if (!req.query.hasOwnProperty('courses')){ res.statu...
81dd29b63f88d166294dbacf33cad6e07fc1e9cd
lib/bourgeois/presenter.rb
lib/bourgeois/presenter.rb
module Bourgeois class Presenter < ::SimpleDelegator def initialize(object, view = nil) @view = view super(@object = object) end def inspect "#<#{self.class} object=#{@object.inspect}>" end def kind_of?(mod) @object.kind_of?(mod) end def self.model_name kla...
module Bourgeois class Presenter < ::SimpleDelegator def initialize(object, view = nil) @view = view super(@object = object) end # Return a String representation of the presenter + the original object def inspect "#<#{self.class} object=#{@object.inspect}>" end # We need to...
Add a few code comments
Add a few code comments
Ruby
bsd-3-clause
mirego/bourgeois
ruby
## Code Before: module Bourgeois class Presenter < ::SimpleDelegator def initialize(object, view = nil) @view = view super(@object = object) end def inspect "#<#{self.class} object=#{@object.inspect}>" end def kind_of?(mod) @object.kind_of?(mod) end def self.mode...
36322116993aed56a40bcc1bfd6cca1ac5138699
source/layouts/layout.html.haml
source/layouts/layout.html.haml
!!! %html %head %meta{charset: "utf-8"} %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"} %title= current_page.data.title || "OpenFW" = stylesheet_link_tag "all" = javascript_include_tag "moder...
!!! %html %head %meta{charset: "utf-8"} %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"} %title= current_page.data.title || "OpenFW" = stylesheet_link_tag "all" = javascript_include_tag "moder...
Add link to data portal
Add link to data portal
Haml
mit
OpenFW/openfw-website,OpenFW/openfw-website
haml
## Code Before: !!! %html %head %meta{charset: "utf-8"} %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} %meta{content: "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"} %title= current_page.data.title || "OpenFW" = stylesheet_link_tag "all" = javascript_inc...
9db1229f8ac16a1d12b1df9a3b467b347dcd48c9
lib/panoramio-rb.rb
lib/panoramio-rb.rb
require 'rubygems' require 'json' require 'hashie' require 'rest_client' module PanoramioRb URL = 'http://www.panoramio.com/map/get_panoramas.php' DEFAULT_OPTIONS = { :set => :public, # Cant be :public, :full, or a USER ID number :size => :medium, # Cant be :original, :medium (default value), :small, :thu...
require 'rubygems' require 'json' require 'hashie' require 'rest_client' module PanoramioRb URL = 'http://www.panoramio.com/map/get_panoramas.php' DEFAULT_OPTIONS = { :set => :public, # Cant be :public, :full, or a USER ID number :size => :medium, # Cant be :original, :medium (default value), :small, :thu...
Rename funcion to get panoramas
Rename funcion to get panoramas
Ruby
mit
willywg/panoramio-rb,willywg/panoramio-rb,kesha-antonov/panoramio-rb,kesha-antonov/panoramio-rb,kesha-antonov/panoramio-rb
ruby
## Code Before: require 'rubygems' require 'json' require 'hashie' require 'rest_client' module PanoramioRb URL = 'http://www.panoramio.com/map/get_panoramas.php' DEFAULT_OPTIONS = { :set => :public, # Cant be :public, :full, or a USER ID number :size => :medium, # Cant be :original, :medium (default valu...
8190a09ab77fc0407e2e1b41764f6a1f0d9fd3bb
Cargo.toml
Cargo.toml
[package] name = "grust" version = "0.4.0-dev" authors = ["Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"] license = "LGPL-2.1+" readme = "README.md" keywords = ["GObjectIntrospection", "GLib", "GObject", "GNOME"] description = """GObjectIntrospection bindings for Rust. This is the core library providing basic functi...
[package] name = "grust" version = "0.4.0-dev" authors = ["Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"] license = "LGPL-2.1+" readme = "README.md" keywords = ["GObjectIntrospection", "GLib", "GObject", "GNOME"] description = """GObjectIntrospection bindings for Rust. This is the core library providing basic functi...
Switch to git-based dependencies for -sys crates
Switch to git-based dependencies for -sys crates The master branch should never be pushed to crates.io. Meanwhile, dependency management of locally installed 0.x versions is going to be tedious.
TOML
lgpl-2.1
gi-rust/grust
toml
## Code Before: [package] name = "grust" version = "0.4.0-dev" authors = ["Mikhail Zabaluev <mikhail.zabaluev@gmail.com>"] license = "LGPL-2.1+" readme = "README.md" keywords = ["GObjectIntrospection", "GLib", "GObject", "GNOME"] description = """GObjectIntrospection bindings for Rust. This is the core library provid...
1f8b11a30b499e92157126c77e1c212e5593d818
Cargo.toml
Cargo.toml
[package] name = "dot_vox" version = "0.1.0" authors = ["David Edmonds <edmonds.d.r@gmail.com>"] description = "A Rust library for loading MagicaVoxel .vox files." license = "MIT" keywords = ['voxel', 'MagicaVoxel', 'game', 'game-dev'] repository = "https://github.com/davidedmonds/dot_vox" readme = "README.md" [depend...
[package] name = "dot_vox" version = "0.1.1" authors = ["David Edmonds <edmonds.d.r@gmail.com>"] description = "A Rust library for loading MagicaVoxel .vox files." license = "MIT" keywords = ['voxel', 'MagicaVoxel', 'game', 'game-dev'] documentation = "https://docs.rs/dot_vox" homepage = "https://docs.rs/dot_vox" repos...
Add links to docs.rs documentation and bump version.
Add links to docs.rs documentation and bump version.
TOML
mit
davidedmonds/dot_vox
toml
## Code Before: [package] name = "dot_vox" version = "0.1.0" authors = ["David Edmonds <edmonds.d.r@gmail.com>"] description = "A Rust library for loading MagicaVoxel .vox files." license = "MIT" keywords = ['voxel', 'MagicaVoxel', 'game', 'game-dev'] repository = "https://github.com/davidedmonds/dot_vox" readme = "REA...
e1795c6888e4a26bb563623da18217b5c6096e0d
website/src/app/project/experiments/experiment/components/tasks/mc-experiment-task-details.component.js
website/src/app/project/experiments/experiment/components/tasks/mc-experiment-task-details.component.js
angular.module('materialscommons').component('mcExperimentTaskDetails', { templateUrl: 'app/project/experiments/experiment/components/tasks/mc-experiment-task-details.html', controller: MCExperimentTaskDetailsComponentController, bindings: { task: '=' } }); /*@ngInject*/ function MCExperimentTa...
angular.module('materialscommons').component('mcExperimentTaskDetails', { templateUrl: 'app/project/experiments/experiment/components/tasks/mc-experiment-task-details.html', controller: MCExperimentTaskDetailsComponentController, bindings: { task: '=' } }); /*@ngInject*/ function MCExperimentTa...
Return if note is null.
Return if note is null.
JavaScript
mit
materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org
javascript
## Code Before: angular.module('materialscommons').component('mcExperimentTaskDetails', { templateUrl: 'app/project/experiments/experiment/components/tasks/mc-experiment-task-details.html', controller: MCExperimentTaskDetailsComponentController, bindings: { task: '=' } }); /*@ngInject*/ functio...
3b146038ca6aebfdc11920cc688903124ccc2b3a
src/ggrc/converters/handlers/document.py
src/ggrc/converters/handlers/document.py
"""Handlers for special object mappings.""" from flask import current_app from ggrc import models from ggrc.login import get_current_user_id from ggrc.converters import errors from ggrc.converters import get_importables from ggrc.converters.handlers import handlers class RequestLinkHandler(handlers.ColumnHandler): ...
"""Handlers for special object mappings.""" from flask import current_app from ggrc import models from ggrc.login import get_current_user_id from ggrc.converters import errors from ggrc.converters import get_importables from ggrc.converters.handlers import handlers class RequestLinkHandler(handlers.ColumnHandler): ...
Add import parser for url and evidence
Add import parser for url and evidence
Python
apache-2.0
selahssea/ggrc-core,VinnieJohns/ggrc-core,andrei-karalionak/ggrc-core,AleksNeStu/ggrc-core,j0gurt/ggrc-core,plamut/ggrc-core,VinnieJohns/ggrc-core,edofic/ggrc-core,j0gurt/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,AleksNeStu/ggrc-core,edofic/ggrc-core,j0gurt/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,sela...
python
## Code Before: """Handlers for special object mappings.""" from flask import current_app from ggrc import models from ggrc.login import get_current_user_id from ggrc.converters import errors from ggrc.converters import get_importables from ggrc.converters.handlers import handlers class RequestLinkHandler(handlers....
225e052366ac182cc4c053d23714223c897bfd79
lib/applyDependencies.coffee
lib/applyDependencies.coffee
applyDependencies = (services, resolver) -> wrappedServices = {} for serviceName, serviceDef of services dependencies = {} # we will create keys for any declared dependency types # and have them map to resolved dependencies for dependencyType of serviceDef.dependencies # initialize sub-ob...
applyDependencies = (services, resolver) -> wrappedServices = {} for serviceName, serviceDef of services dependencies = {} # we will create keys for any declared dependency types # and have them map to resolved dependencies for dependencyType of serviceDef.dependencies # initialize sub-ob...
Remove unnecessary manual copying, add comments
Remove unnecessary manual copying, add comments
CoffeeScript
mit
TorchlightSoftware/law
coffeescript
## Code Before: applyDependencies = (services, resolver) -> wrappedServices = {} for serviceName, serviceDef of services dependencies = {} # we will create keys for any declared dependency types # and have them map to resolved dependencies for dependencyType of serviceDef.dependencies # i...
36dd94919a78b96cc2583b30da7ba762d181ba4c
app/views/events/index.html.erb
app/views/events/index.html.erb
<h1>Listing events</h1> <h2>Category: <%= @category.to_s %></h2> <div style="float:left"> <table> <tr> <th>Name</th> <th>Description</th> <th>Position</th> <th></th> <th></th> <th></th> </tr> <% @events.each do |event| %> <tr> <td><%= event.name %></td>...
<h1>Listing events</h1> <h2>Category: <%= @category.to_s %></h2> <div style="float:left"> <table> <tr> <th>Name</th> <th>Description</th> <th>Position</th> <th></th> <th></th> <th></th> </tr> <% @events.each do |event| %> <tr> <td><%= event.name %></td>...
Add link from Events page to Categories page
Add link from Events page to Categories page
HTML+ERB
mit
rdunlop/unicycling-registration,scotthue/unicycling-registration,scotthue/unicycling-registration,rdunlop/unicycling-registration,scotthue/unicycling-registration,rdunlop/unicycling-registration,rdunlop/unicycling-registration
html+erb
## Code Before: <h1>Listing events</h1> <h2>Category: <%= @category.to_s %></h2> <div style="float:left"> <table> <tr> <th>Name</th> <th>Description</th> <th>Position</th> <th></th> <th></th> <th></th> </tr> <% @events.each do |event| %> <tr> <td><%= ev...
c4987264ace27b59cd0c8eeb893b267e6c32e3b8
spec/controllers/admin/sidebar_controller_spec.rb
spec/controllers/admin/sidebar_controller_spec.rb
require 'rails_helper' describe Admin::SidebarController, type: :controller do let!(:blog) { create(:blog) } before do henri = create(:user, :as_admin) sign_in henri end describe 'rendering' do render_views it 'test_index' do get :index assert_template 'index' assert_select...
require 'rails_helper' describe Admin::SidebarController, type: :controller do let!(:blog) { create(:blog) } before do henri = create(:user, :as_admin) sign_in henri end describe '#index' do context 'when rendering' do render_views it 'renders the sidebar configuration' do ge...
Improve spec nesting and description
Improve spec nesting and description
Ruby
mit
drakontia/publify,publify/publify,drakontia/publify,SF-WDI-LABS/publify_debugging_lab,whithajess/publify,whithajess/publify,whithajess/publify,SF-WDI-LABS/publify_debugging_lab,publify/publify,Juuro/publify,publify/publify,Juuro/publify,SF-WDI-LABS/publify_debugging_lab,Juuro/publify
ruby
## Code Before: require 'rails_helper' describe Admin::SidebarController, type: :controller do let!(:blog) { create(:blog) } before do henri = create(:user, :as_admin) sign_in henri end describe 'rendering' do render_views it 'test_index' do get :index assert_template 'index' ...
c89b5627036c1da024e9d8a4858f4ef05ac38b69
templates/modular.html.twig
templates/modular.html.twig
{% extends 'partials/base.html.twig' %} {% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} {% block javascripts %} {% do assets.add('theme://js/singlePageNav.min.js') %} {{ parent() }} {% endblock %} {% block bottom %} {{ parent() }} <script> // singlePageNav initialization & config...
{% extends 'partials/base.html.twig' %} {% set show_onpage_menu = header.onpage_menu == true or header.onpage_menu is null %} {% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} {% block javascripts %} {% if show_onpage_menu %} {% do assets.add('theme://js/singlePageNav.min.js'...
Make toggle option to enable/disable on-page menu
Make toggle option to enable/disable on-page menu
Twig
mit
dedude/grav-theme-antimatter,getgrav/grav-theme-antimatter,franzyke/senhri-website-theme,franzyke/senhri-website-theme,dedude/grav-theme-antimatter,dimayakovlev/grav-theme-antimatter,dimayakovlev/grav-theme-antimatter,dimayakovlev/grav-theme-antimatter,franzyke/senhri-website-theme,franzyke/senhri-website-theme,getgrav...
twig
## Code Before: {% extends 'partials/base.html.twig' %} {% macro pageLinkName(text) %}{{ text|lower|replace({' ':'_'}) }}{% endmacro %} {% block javascripts %} {% do assets.add('theme://js/singlePageNav.min.js') %} {{ parent() }} {% endblock %} {% block bottom %} {{ parent() }} <script> // singlePageNav initial...
48eb93339ab5ba759d1926431f69f86dd55fbb3b
tests/integration/components/animate-on-change-test.js
tests/integration/components/animate-on-change-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('animate-on-change', 'Integration | Component | animate on property change', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'val...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('animate-on-change', 'Integration | Component | animate on property change', { integration: true }); test('it renders', function (assert) { assert.expect(2); this.render(hbs`{{animate-on-cha...
Add integration tests for `animate-on-change`
Add integration tests for `animate-on-change` Summary: Add integration tests for the `animate-on-change` component. Depends on D3916. Reviewers: fdanielsen, asteinlein Reviewed By: asteinlein Differential Revision: http://dev.e5r.no/D3918
JavaScript
mit
eliksir/ember-css-animation-triggers,eliksir/ember-css-animation-triggers
javascript
## Code Before: import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('animate-on-change', 'Integration | Component | animate on property change', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('m...
dfb1294674fd1a576cea292ee92034e6907a1c29
test/i_object_info_test.rb
test/i_object_info_test.rb
require File.expand_path('test_helper.rb', File.dirname(__FILE__)) module GirFFI class IObjectInfoTest < Test::Unit::TestCase context "An IObjectInfo object" do setup do gir = IRepository.default gir.require 'Everything', nil @info = gir.find_by_name 'Everything', 'TestObj' end should "fin...
require File.expand_path('test_helper.rb', File.dirname(__FILE__)) module GirFFI class IObjectInfoTest < Test::Unit::TestCase context "An IObjectInfo object" do setup do gir = IRepository.default gir.require 'Regress', nil @info = gir.find_by_name 'Regress', 'TestObj' end should "find a vf...
Make tests in IObjectInfoTest pass by changing Everything to Regress.
Make tests in IObjectInfoTest pass by changing Everything to Regress.
Ruby
lgpl-2.1
mvz/gir_ffi,mvz/gir_ffi,jcupitt/gir_ffi,mvz/gir_ffi,jcupitt/gir_ffi
ruby
## Code Before: require File.expand_path('test_helper.rb', File.dirname(__FILE__)) module GirFFI class IObjectInfoTest < Test::Unit::TestCase context "An IObjectInfo object" do setup do gir = IRepository.default gir.require 'Everything', nil @info = gir.find_by_name 'Everything', 'TestObj' end ...
bce7c9a49645363320a43bb44df91a9be360a738
.travis.yml
.travis.yml
language: ruby script: bundle exec rake cache: bundler sudo: false after_success: - bundle exec rake test:accuracy - bundle exec rake benchmark:memory rvm: - ruby-head
language: ruby script: bundle exec rake cache: bundler sudo: false before_install: - gem install bundler after_success: - bundle exec rake test:accuracy - bundle exec rake benchmark:memory rvm: - ruby-head
Make sure to always use the latest bundler
Make sure to always use the latest bundler
YAML
mit
yuki24/did_you_mean
yaml
## Code Before: language: ruby script: bundle exec rake cache: bundler sudo: false after_success: - bundle exec rake test:accuracy - bundle exec rake benchmark:memory rvm: - ruby-head ## Instruction: Make sure to always use the latest bundler ## Code After: language: ruby script: bundle exec rake c...
03c0ef6be422bb814dab160b984110827a71cc3f
view/carrier_form.xml
view/carrier_form.xml
<data> <xpath expr="/form/field[@name='carrier_cost_method']" position="after"> <label name="currency"/> <field name="currency"/> <newline/> <field name="tracking_numbers" colspan="4"/> </xpath> </data>
<data> <xpath expr="/form/field[@name='carrier_cost_method']" position="after"> <label name="currency"/> <field name="currency"/> <newline/> <notebook colspan="4"> <page id="tracking_numbers" string="Tracking Numbers"> <field name="tracking_numbers" colspa...
Add tracking numbers to notebook in carrier
Add tracking numbers to notebook in carrier
XML
bsd-3-clause
trytonus/trytond-shipping,riteshshrv/trytond-shipping,fulfilio/trytond-shipping,prakashpp/trytond-shipping,tarunbhardwaj/trytond-shipping,joeirimpan/trytond-shipping
xml
## Code Before: <data> <xpath expr="/form/field[@name='carrier_cost_method']" position="after"> <label name="currency"/> <field name="currency"/> <newline/> <field name="tracking_numbers" colspan="4"/> </xpath> </data> ## Instruction: Add tracking numbers to notebook in carrier ...
4cd5ac564c5117685bd8dcf2d60b61351790d301
raspberrypi/camera/dropbox-driect-url.js
raspberrypi/camera/dropbox-driect-url.js
var request = require('request'); function dropboxImageDirectUrlParser(url, cb) { request({ method: 'GET', uri: url, followRedirect: false }, function (error, response, body) { if (error) { return cb && cb(error); } var redirectUrl = response.headers.location; var imageUrl = redi...
'use strict'; var request = require('request'); function dropboxImageDirectUrlParser(url, cb) { request({ method: 'GET', uri: url, followRedirect: false }, function (error, response, body) { if (error) { return cb && cb(error); } var imageUrl = url.replace('www.dropbox.com', 'dl.dro...
Fix the bug caused by Dropbox API v2
Fix the bug caused by Dropbox API v2
JavaScript
apache-2.0
daliworks/openhardware,daliworks/openhardware
javascript
## Code Before: var request = require('request'); function dropboxImageDirectUrlParser(url, cb) { request({ method: 'GET', uri: url, followRedirect: false }, function (error, response, body) { if (error) { return cb && cb(error); } var redirectUrl = response.headers.location; var...
4a0744dd94e87cbb10a399b9c0b4052b7201f0b3
app/views/shared/_register_call.html.haml
app/views/shared/_register_call.html.haml
.alert-cta %h6 %a{href: "/register", target: "_blank"} = t '.selling_on_ofn' &nbsp; %strong = t '.register' %i.ofn-i_054-point-right
.alert-cta %h6 -# Please forgive the hard-coded link: The more elegant 'registration_path' resolves to /signup due to spree_auth_device > config > routes.rb This is one of several possible fixes. Long-term, we'd like to bring the accounts page into OFN. View the discussion here: https://githu...
Add comment to explain hard-coded link
Add comment to explain hard-coded link
Haml
agpl-3.0
Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoo...
haml
## Code Before: .alert-cta %h6 %a{href: "/register", target: "_blank"} = t '.selling_on_ofn' &nbsp; %strong = t '.register' %i.ofn-i_054-point-right ## Instruction: Add comment to explain hard-coded link ## Code After: .alert-cta %h6 -# Please forgive the hard-coded link:...
ffcebd5acaae528c9267bce3a296f0ea2065a361
build/_vods.haml
build/_vods.haml
- if vod_urls.length == 1 %a.data.vod.revealed{href: vod_urls.first, target: '_blank'} vod - else - vod_urls.each_with_index do |url, i| %a.data.vod{href: surprise_link(url), target: '_blank', class: "#{'revealed' if i == 0}"} vod #{i + 1} %a.data.reveal{href: '#'} …
- if vod_urls.length == 1 %a.data.vod.revealed{href: surprise_link(vod_urls.first), target: '_blank'} vod - else - vod_urls.each_with_index do |url, i| %a.data.vod{href: surprise_link(url), target: '_blank', class: "#{'revealed' if i == 0}"} vod #{i + 1} %a.data.reveal{href: '#'} …
Fix missing surprise_link for single vods
Fix missing surprise_link for single vods
Haml
mit
bloopletech/lolschedule,bloopletech/lolschedule,bloopletech/lolschedule
haml
## Code Before: - if vod_urls.length == 1 %a.data.vod.revealed{href: vod_urls.first, target: '_blank'} vod - else - vod_urls.each_with_index do |url, i| %a.data.vod{href: surprise_link(url), target: '_blank', class: "#{'revealed' if i == 0}"} vod #{i + 1} %a.data.reveal{href: '#'} … ## Instruction: Fix ...
417831ea9232687c7f73c3324431509e7ddc1401
aliases/aliases.zsh
aliases/aliases.zsh
alias e="$EDITOR" alias v="$VISUAL" alias l='ls -lah' alias ll='ls -lh' alias la='ls -lAh' alias md='mkdir -p' # Other alias doc='cd ~/Documents' alias dow='cd ~/Downloads' alias drop='cd ~/Dropbox' alias src='source ~/.zshrc' alias ev='vim ~/dotfiles-local/vimrc' alias ea='vim ~/dotfiles-local/aliases' alias ez='vim ...
alias e="$EDITOR" alias v="$VISUAL" alias l='ls -lah' alias ll='ls -lh' alias la='ls -lAh' alias md='mkdir -p' # Other alias doc='cd ~/Documents' alias dow='cd ~/Downloads' alias drop='cd ~/Dropbox' alias src='source ~/.zshrc' alias ev='vim ~/dotfiles-local/vimrc' alias ea='vim ~/dotfiles-local/aliases' alias ez='vim ...
Add alias for opening modified files with vim
Add alias for opening modified files with vim
Shell
mit
azevedo-252/zsh-files
shell
## Code Before: alias e="$EDITOR" alias v="$VISUAL" alias l='ls -lah' alias ll='ls -lh' alias la='ls -lAh' alias md='mkdir -p' # Other alias doc='cd ~/Documents' alias dow='cd ~/Downloads' alias drop='cd ~/Dropbox' alias src='source ~/.zshrc' alias ev='vim ~/dotfiles-local/vimrc' alias ea='vim ~/dotfiles-local/aliases...
72b162a4e8dcc4c0316eac397935cabb048cdbbd
src/Mapbender/CoreBundle/Component/SecurityContext.php
src/Mapbender/CoreBundle/Component/SecurityContext.php
<?php /** * * @author Andriy Oblivantsev <eslider@gmail.com> * @copyright 19.02.2015 by WhereGroup GmbH & Co. KG */ namespace Mapbender\CoreBundle\Component; use FOM\UserBundle\Component\User\UserEntityInterface; use FOM\UserBundle\Entity\User; /** * Class SecurityContext * * @package FOM\Us...
<?php /** * * @author Andriy Oblivantsev <eslider@gmail.com> * @copyright 19.02.2015 by WhereGroup GmbH & Co. KG */ namespace Mapbender\CoreBundle\Component; use FOM\UserBundle\Entity\User; /** * Class SecurityContext * * @package FOM\UserBundle\Component * @author Andriy Oblivantsev <es...
Fix security context annotation return type
Fix security context annotation return type
PHP
mit
mapbender/mapbender-printclient,mapbender/mapbender-printclient,mapbender/mapbender-printclient
php
## Code Before: <?php /** * * @author Andriy Oblivantsev <eslider@gmail.com> * @copyright 19.02.2015 by WhereGroup GmbH & Co. KG */ namespace Mapbender\CoreBundle\Component; use FOM\UserBundle\Component\User\UserEntityInterface; use FOM\UserBundle\Entity\User; /** * Class SecurityContext * * @package FOM\...
ca7a8e414dae0ea8351eb6ac7ae8f039d0d4b296
static/src/stylesheets/App.scss
static/src/stylesheets/App.scss
@import "./variables.json"; * { margin:0; padding:0; font-family: Helvetica; font-size: 14px; font-weight: 300; color: white; } html, body, #app { height: 100%; } body { background: $blackBackground; overflow: hidden; } .app-container { height: 100%; }
@import "./variables.json"; * { margin:0; padding:0; font-family: Helvetica; font-size: 14px; font-weight: 300; color: white; } html, body, #app { height: 100%; } body { background: $blackBackground; overflow: hidden; } .app-container { height: 100%; } input:focus { outline: 0; } select:focus { outlin...
Add :focus outline:0 in input and select elements
Add :focus outline:0 in input and select elements
SCSS
mit
ffont/freesound-explorer,ffont/freesound-explorer,ffont/freesound-explorer
scss
## Code Before: @import "./variables.json"; * { margin:0; padding:0; font-family: Helvetica; font-size: 14px; font-weight: 300; color: white; } html, body, #app { height: 100%; } body { background: $blackBackground; overflow: hidden; } .app-container { height: 100%; } ## Instruction: Add :focus outline:0...
f572a7461226139baa13bb4b94c985dd8356a79d
src/private/indoor_watermark_controller.js
src/private/indoor_watermark_controller.js
var IndoorWatermarkController = function() { var _indoorWatermarkElement = null; var _elementId = "eegeo-indoor-map-watermark"; var _urlRoot = "https://cdn-webgl.eegeo.com/eegeojs/resources/indoor-vendors/"; var _buildUrlForVendor = function(vendorKey) { return _urlRoot + vendorKey + "_logo.png"; }; v...
var IndoorWatermarkController = function() { var _indoorWatermarkElement = null; var _elementId = "eegeo-indoor-map-watermark"; var _urlRoot = "https://cdn-webgl.eegeo.com/eegeojs/resources/indoor-vendors/"; var _buildUrlForVendor = function(vendorKey) { var vendorKeyLower = vendorKey.toLowerCase(); if...
Watermark for WRLD branding. Also fixes a bug where the micello logo is not displayed due to case sensitivity. Pair: Malc
Watermark for WRLD branding. Also fixes a bug where the micello logo is not displayed due to case sensitivity. Pair: Malc
JavaScript
bsd-2-clause
eegeo/eegeo.js,eegeo/eegeo.js
javascript
## Code Before: var IndoorWatermarkController = function() { var _indoorWatermarkElement = null; var _elementId = "eegeo-indoor-map-watermark"; var _urlRoot = "https://cdn-webgl.eegeo.com/eegeojs/resources/indoor-vendors/"; var _buildUrlForVendor = function(vendorKey) { return _urlRoot + vendorKey + "_logo...
b130b1d396c98ca0ab15493e796fb1101ad8d8a4
test/Modules/preprocess-unavailable.cpp
test/Modules/preprocess-unavailable.cpp
// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify module a { module b { requires cplusplus11 } } #pragma clang module contents // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}} int f(); int...
// RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify -std=c++98 module a { module b { requires cplusplus11 } } #pragma clang module contents // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragma}} i...
Add an explicit -std= to test to unbreak on PS4 targets.
Add an explicit -std= to test to unbreak on PS4 targets. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@304237 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl...
c++
## Code Before: // RUN: %clang_cc1 -x c++-module-map %s -fmodule-name=a -verify module a { module b { requires cplusplus11 } } #pragma clang module contents // expected-error@3 {{module 'a.b' requires feature 'cplusplus11'}} #pragma clang module begin a.b // expected-note {{entering module 'a' due to this pragm...
ba34c802d9bb4990f71ebe7bebb59736f340031f
pypi_packager.sh
pypi_packager.sh
PROGRAM_NAME="pypi_packager" # Parse arguments TEMP=$(getopt -n $PROGRAM_NAME -o s --long submit -- "$@") eval set -- "$TEMP" while true; do case $1 in -s|--submit) SUBMIT=1; shift; continue ;; --) # no more arguments to parse break ;; *)...
PROGRAM_NAME="pypi_packager" # Parse arguments TEMP=$(getopt -n $PROGRAM_NAME -o s --long submit -- "$@") eval set -- "$TEMP" while true; do case $1 in -s|--submit) SUBMIT=1; shift; continue ;; --) # no more arguments to parse break ;; *)...
Add mandatory PyPI package registration
Add mandatory PyPI package registration
Shell
mit
mbourqui/django-publications-bootstrap,mbourqui/django-publications-bootstrap,mbourqui/django-publications-bootstrap
shell
## Code Before: PROGRAM_NAME="pypi_packager" # Parse arguments TEMP=$(getopt -n $PROGRAM_NAME -o s --long submit -- "$@") eval set -- "$TEMP" while true; do case $1 in -s|--submit) SUBMIT=1; shift; continue ;; --) # no more arguments to parse break ...
94c766597c3c40ab08128d6944736e32edaf8d61
superstatic.json
superstatic.json
{ "clean_urls": [ "/**", "/!bower_components/**", "/!elements/**", "/!images/**", "/!node_modules/**", "/!scripts/**", "/!sounds/**", "/!styles/**", "/!translations/**", "/!videos/**" ], "headers": [ { "source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)", "hea...
{ "clean_urls": [ "/**", "/!bower_components/**", "/!elements/**", "/!images/**", "/!node_modules/**", "/!scripts/**", "/!sounds/**", "/!styles/**", "/!translations/**", "/!videos/**" ], "headers": [ { "source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)", "hea...
Set default catch-all route in Superstatic manifest
Set default catch-all route in Superstatic manifest
JSON
bsd-3-clause
cookadlib/www.cookadlib.com,cookadlib/www.cookadlib.com,cookadlib/www.cookadlib.com
json
## Code Before: { "clean_urls": [ "/**", "/!bower_components/**", "/!elements/**", "/!images/**", "/!node_modules/**", "/!scripts/**", "/!sounds/**", "/!styles/**", "/!translations/**", "/!videos/**" ], "headers": [ { "source" : "**/*.@(eot|otf|ttf|ttc|woff|font.c...
a67349e1f812d483b99f4ec16ede89cfa86b195b
.travis.yml
.travis.yml
language: node_js node_js: - 8.10.0 cache: directories: - node_modules before_install: - npm -g install yarn@^1.7.0 - yarn add --dev codecov.io script: - yarn test after_success: - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js - yarn build deploy: - provider: pages sk...
language: node_js node_js: lts cache: yarn before_install: - yarn add --dev codecov.io install: yarn script: - yarn test after_success: - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js - yarn build deploy: # Github Releases: deploys the tagged version - provider: releases ...
Raise NodeJS version to LTS, Add deploy stage for Github Releases
[Travis] Raise NodeJS version to LTS, Add deploy stage for Github Releases
YAML
mit
Sharlaan/material-ui-superselectfield
yaml
## Code Before: language: node_js node_js: - 8.10.0 cache: directories: - node_modules before_install: - npm -g install yarn@^1.7.0 - yarn add --dev codecov.io script: - yarn test after_success: - cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js - yarn build deploy: - provid...
95ccab69cfff30c24932c4cd156983a29639435d
nginxauthdaemon/crowdauth.py
nginxauthdaemon/crowdauth.py
import crowd from auth import Authenticator class CrowdAuthenticator(Authenticator): """Atlassian Crowd authenticator. Requires configuration options CROWD_URL, CROWD_APP_NAME, CROWD_APP_PASSWORD""" def __init__(self, config): super(CrowdAuthenticator, self).__init__(config) app_url = config[...
import crowd from auth import Authenticator class CrowdAuthenticator(Authenticator): """Atlassian Crowd authenticator. Requires configuration options CROWD_URL, CROWD_APP_NAME, CROWD_APP_PASSWORD""" def __init__(self, config): super(CrowdAuthenticator, self).__init__(config) app_url = config[...
Fix 500 error when Crowd auth is failed
Fix 500 error when Crowd auth is failed
Python
mit
akurdyukov/nginxauthdaemon,akurdyukov/nginxauthdaemon
python
## Code Before: import crowd from auth import Authenticator class CrowdAuthenticator(Authenticator): """Atlassian Crowd authenticator. Requires configuration options CROWD_URL, CROWD_APP_NAME, CROWD_APP_PASSWORD""" def __init__(self, config): super(CrowdAuthenticator, self).__init__(config) a...
b712ba1e04c7425edad0bdfb27be8049cf9ac631
test/640_proxy_restart_reattaches_test.sh
test/640_proxy_restart_reattaches_test.sh
. ./config.sh C1=10.2.0.78 C2=10.2.0.34 NAME=seetwo.weave.local start_suite "Proxy restart reattaches networking to containers" weave_on $HOST1 launch proxy_start_container $HOST1 -e WEAVE_CIDR=$C2/24 -dt --name=c2 -h $NAME proxy_start_container_with_dns $HOST1 -e WEAVE_CIDR=$C1/24 -dt --name=c1 proxy doc...
. ./config.sh C1=10.2.0.78 C2=10.2.0.34 NAME=seetwo.weave.local check_attached() { assert_raises "proxy exec_on $HOST1 c2 $CHECK_ETHWE_UP" assert_dns_record $HOST1 c1 $NAME $C2 } start_suite "Proxy restart reattaches networking to containers" weave_on $HOST1 launch proxy_start_container $HOST1 -e ...
Extend test to cover containers restarting automatically
Extend test to cover containers restarting automatically
Shell
apache-2.0
awanke/weave,n054/weave,tomwilkie/weave,bboreham/weave,weaveworks/weave,rade/weave,tomwilkie/weave,dpw/weave,dpw/weave,squaremo/weave,awh/weave,tomwilkie/weave,rade/weave,bboreham/weave,awh/weave,paulbellamy/weave,squaremo/weave,aaam/weave,squaremo/weave,bboreham/weave,beni55/weave,beni55/weave,bboreham/weave,paulbella...
shell
## Code Before: . ./config.sh C1=10.2.0.78 C2=10.2.0.34 NAME=seetwo.weave.local start_suite "Proxy restart reattaches networking to containers" weave_on $HOST1 launch proxy_start_container $HOST1 -e WEAVE_CIDR=$C2/24 -dt --name=c2 -h $NAME proxy_start_container_with_dns $HOST1 -e WEAVE_CIDR=$C1/24 -dt --na...
70e7f88492d1d3dd6062e84cc58e0c8b88b4a2db
server/config/environment/development.js
server/config/environment/development.js
'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: process.env.MONGOLAB_URI || 'mongodb://localhost:27017/easydownload-dev' }, itemCron: '*/5 * * * * *', thingCron: '*/10 * * * * *', esCron: '*/20 * *...
'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: process.env.MONGOLAB_URI || 'mongodb://localhost:27017/easydownload-dev' }, itemCron: '*/5 * * * * *', thingCron: '*/10 * * * * *', esCron: '*/20 * *...
Add some comments in dockerfile
Add some comments in dockerfile
JavaScript
mit
zycbobby/easy_download,zycbobby/easy_download,zycbobby/easy_download
javascript
## Code Before: 'use strict'; // Development specific configuration // ================================== module.exports = { // MongoDB connection options mongo: { uri: process.env.MONGOLAB_URI || 'mongodb://localhost:27017/easydownload-dev' }, itemCron: '*/5 * * * * *', thingCron: '*/10 * * * * *', e...
31e82ace194d1d43e0c7f1ac05f839a323e53957
config/application.rb
config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) Dotenv::Railtie.load module TwitterGreatRss class Application < Rails::Application # Initialize con...
require File.expand_path('../boot', __FILE__) #require 'rails/all' # Include each railties manually, excluding `active_storage/engine` %w( active_record/railtie action_controller/railtie action_view/railtie action_mailer/railtie active_job/railtie action_cable/engine rails/test_unit/railtie sprockets/...
Disable ActiveStorage to avoid heroku warn when deploy
Disable ActiveStorage to avoid heroku warn when deploy
Ruby
mit
yayugu/twitter-great-rss,yayugu/twitter-great-rss,yayugu/twitter-great-rss
ruby
## Code Before: require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) Dotenv::Railtie.load module TwitterGreatRss class Application < Rails::Application ...
43b1f8c2f4d2f46817e81a3ba57e64ad2e602197
setup.py
setup.py
from setuptools import setup from setuptools import find_packages setup( name="threat_intel", version='0.0.7', provides=['threat_intel'], author="Yelp Security", url='https://github.com/Yelp/threat_intel', setup_requires='setuptools', license='Copyright 2015 Yelp', author_email="opens...
from setuptools import find_packages from setuptools import setup setup( name="threat_intel", version='0.0.8', provides=['threat_intel'], author="Yelp Security", url='https://github.com/Yelp/threat_intel', setup_requires='setuptools', license='Copyright 2015 Yelp', author_email="openso...
Reorder imports and bump version
Reorder imports and bump version
Python
mit
megancarney/threat_intel,Yelp/threat_intel,SYNchroACK/threat_intel
python
## Code Before: from setuptools import setup from setuptools import find_packages setup( name="threat_intel", version='0.0.7', provides=['threat_intel'], author="Yelp Security", url='https://github.com/Yelp/threat_intel', setup_requires='setuptools', license='Copyright 2015 Yelp', aut...
ffdfe8c984c502dbb146370258ac7918adcb8c78
timeAsyncMethod.coffee
timeAsyncMethod.coffee
module.exports = (obj, methodName, key, logger) -> metrics = require('./metrics') if typeof obj[methodName] != 'function' throw new Error("[Metrics] expected object property '#{methodName}' to be a function") realMethod = obj[methodName] key = "methods.#{key}" obj[methodName] = (originalArgs...) -> [first...
module.exports = (obj, methodName, key, logger) -> metrics = require('./metrics') if typeof obj[methodName] != 'function' throw new Error("[Metrics] expected object property '#{methodName}' to be a function") realMethod = obj[methodName] key = "methods.#{key}" obj[methodName] = (originalArgs...) -> [first...
Clean up, don't allocate an extra date
Clean up, don't allocate an extra date
CoffeeScript
mit
sharelatex/metrics-sharelatex
coffeescript
## Code Before: module.exports = (obj, methodName, key, logger) -> metrics = require('./metrics') if typeof obj[methodName] != 'function' throw new Error("[Metrics] expected object property '#{methodName}' to be a function") realMethod = obj[methodName] key = "methods.#{key}" obj[methodName] = (originalArgs....
e55078f5fdd0b4e2af89acf4632a942586935150
_includes/profile.html
_includes/profile.html
<div class="profile"> <section id="wrapper"> <header id="header"> <!-- <a href='{{ site.baseurl }}about'> --> <img id="avatar" class="2x" src="/assets/images/avatar.png"/> <!-- </a> --> <h1>{{ site.author }}</h1> <h2>{{ site.description }}</h2>...
<div class="profile"> <section id="wrapper"> <header id="header"> <a href="https://twitter.com/{{ site.authorTwitter }}" target="_blank"> <img id="avatar" class="2x" src="https://www.gravatar.com/avatar/4a0fecf18d3f617771b45194659da7e4.jpg?s=200" alt="My face"/> </a> ...
Add twitter link to avatar
Add twitter link to avatar * Use gravatar for avatar
HTML
mit
mixxorz/mixxorz.github.io,mixxorz/mixxorz.github.io,mixxorz/mixxorz.github.io
html
## Code Before: <div class="profile"> <section id="wrapper"> <header id="header"> <!-- <a href='{{ site.baseurl }}about'> --> <img id="avatar" class="2x" src="/assets/images/avatar.png"/> <!-- </a> --> <h1>{{ site.author }}</h1> <h2>{{ site.des...
bdbafc18317070530573bd28a2ec5241c793340b
ghost/admin/routes/posts.js
ghost/admin/routes/posts.js
import styleBody from 'ghost/mixins/style-body'; import AuthenticatedRoute from 'ghost/routes/authenticated'; var paginationSettings = { status: 'all', staticPages: 'all', page: 1, limit: 15 }; var PostsRoute = AuthenticatedRoute.extend(styleBody, { classNames: ['manage'], model: function () ...
import styleBody from 'ghost/mixins/style-body'; import AuthenticatedRoute from 'ghost/routes/authenticated'; var paginationSettings = { status: 'all', staticPages: 'all', page: 1 }; var PostsRoute = AuthenticatedRoute.extend(styleBody, { classNames: ['manage'], model: function () { // us...
Remove limit from ember post API calls
Remove limit from ember post API calls ref #3004 - this is unnecessary and causing bugs
JavaScript
mit
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
javascript
## Code Before: import styleBody from 'ghost/mixins/style-body'; import AuthenticatedRoute from 'ghost/routes/authenticated'; var paginationSettings = { status: 'all', staticPages: 'all', page: 1, limit: 15 }; var PostsRoute = AuthenticatedRoute.extend(styleBody, { classNames: ['manage'], mod...
cc8d83fda2b19864a16bcb1e7191222cee03f95b
test/integration/character_stories_test.rb
test/integration/character_stories_test.rb
require 'test_helper' # Tests scenarios related to interacting with Characters class CharacterStoriesTest < ActionDispatch::IntegrationTest setup do @user = log_in_as_user end test 'a user can create a new character' do character = build(:character) visit new_character_path fill_in 'charact...
require 'test_helper' # Tests scenarios related to interacting with Characters class CharacterStoriesTest < ActionDispatch::IntegrationTest setup do @user = log_in_as_user end test 'a user can create a new character' do character = build(:character) visit new_character_path fill_in 'character_n...
Remove failing line from story
Remove failing line from story
Ruby
mit
indentlabs/notebook,indentlabs/notebook,indentlabs/notebook
ruby
## Code Before: require 'test_helper' # Tests scenarios related to interacting with Characters class CharacterStoriesTest < ActionDispatch::IntegrationTest setup do @user = log_in_as_user end test 'a user can create a new character' do character = build(:character) visit new_character_path ...
595345aec59d6024ece4a4481b431ccce32590bf
README.md
README.md
Camera Name Normalization
Camera Name Normalization ===== Before normalization: Canon 5D mark II Canon 5d MKII Canon 5dMKII Canon 5D Mk III After normalization: Canon 5D Mark II Canon 5D Mk III Using the normalizer =================== **from within Python**: from .camera_name_normalizer import CameraNameNorma...
Add readme to define intended approach and usage
Add readme to define intended approach and usage
Markdown
mit
timothycrosley/camera_name_normalizer
markdown
## Code Before: Camera Name Normalization ## Instruction: Add readme to define intended approach and usage ## Code After: Camera Name Normalization ===== Before normalization: Canon 5D mark II Canon 5d MKII Canon 5dMKII Canon 5D Mk III After normalization: Canon 5D Mark II Canon 5D Mk III ...
365d6e1c306549c07c1449d7d5e7cea5a8bc2634
src/main/java/com/alexrnl/subtitlecorrector/correctionstrategy/AbstractStrategy.java
src/main/java/com/alexrnl/subtitlecorrector/correctionstrategy/AbstractStrategy.java
package com.alexrnl.subtitlecorrector.correctionstrategy; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.logging.Logger; import com.alexrnl.subtitlecorrector.service.SessionParameters; /** * Abstract strategy implementation.<br /> * Provide a basic body for the actual...
package com.alexrnl.subtitlecorrector.correctionstrategy; import java.util.Collections; import java.util.List; import java.util.Objects; import java.util.logging.Logger; import com.alexrnl.subtitlecorrector.service.SessionParameters; /** * Abstract strategy implementation.<br /> * Provide a basic body for the actu...
Replace empty list creation with Collections.emptyList()
Replace empty list creation with Collections.emptyList()
Java
bsd-3-clause
AlexRNL/SubtitleCorrector
java
## Code Before: package com.alexrnl.subtitlecorrector.correctionstrategy; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.logging.Logger; import com.alexrnl.subtitlecorrector.service.SessionParameters; /** * Abstract strategy implementation.<br /> * Provide a basic bod...
266ff7e4b2cf8c51410a39d56b233649c32536c3
jenkins/jobs/scripts/promote-get-hash.sh
jenkins/jobs/scripts/promote-get-hash.sh
export NEW_HASH=`curl $DELOREAN_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` export OLD_HASH=`curl $LAST_PROMOTED_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` # No need to run the whole promote pipeline if there is nothing new to promote if [ $OLD_HASH == $NEW_HASH ]; then exit 23 fi ech...
export NEW_HASH=`curl $DELOREAN_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` export OLD_HASH=`curl $LAST_PROMOTED_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` # No need to run the whole promote pipeline if there is nothing new to promote if [ $OLD_HASH == $NEW_HASH ]; then exit 23 fi ech...
Put variables for image promotion in the hash file
Put variables for image promotion in the hash file Change-Id: Idf95014926a7274527db3e3075afec7acb8bd7f1
Shell
apache-2.0
rdo-infra/ci-config,redhat-openstack/rdo-infra,rdo-infra/ci-config,rdo-infra/ci-config,redhat-openstack/rdo-infra,redhat-openstack/rdo-infra,redhat-openstack/rdo-infra,rdo-infra/ci-config
shell
## Code Before: export NEW_HASH=`curl $DELOREAN_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` export OLD_HASH=`curl $LAST_PROMOTED_URL | grep baseurl | awk -F '/' '{ print $5"/"$6"/"$7 }'` # No need to run the whole promote pipeline if there is nothing new to promote if [ $OLD_HASH == $NEW_HASH ]; then ...
36769ee8d5ff62f95006483e6598b67a8e80330f
scripts/sbin/setup_zram.sh
scripts/sbin/setup_zram.sh
if [[ -f /.dockerenv ]]; then exit 0 fi modprobe zram num_devices=4 totalmem=$(free -m | awk '/Mem:/{print $2}') mem=$(( ($totalmem / 4 / 2)* 1024 * 1024)) for i in `seq 0 3`; do if [[ ! -e /dev/zram${i} ]]; then echo $mem > /sys/block/zram${i}/disksize mkswap /dev/zram${i} swapon -p 5 /dev/zram${i} ...
if [[ -f /.dockerenv ]]; then exit 0 fi modprobe zram num_devices=4 totalmem=$(free -m | awk '/Mem:/{print $2}') mem=$(( ($totalmem / 4 / 2)* 1024 * 1024)) for i in `seq 0 3`; do echo $mem > /sys/block/zram${i}/disksize mkswap /dev/zram${i} swapon -p 5 /dev/zram${i} done
Revert "only create zram if not exists"
Revert "only create zram if not exists" This reverts commit 61a11498655132cb924abaa5a5cd3f5b1274b529.
Shell
agpl-3.0
firewalla/firewalla,MelvinTo/firewalla,firewalla/firewalla,firewalla/firewalla,MelvinTo/firewalla,MelvinTo/firewalla,MelvinTo/firewalla,firewalla/firewalla,firewalla/firewalla,MelvinTo/firewalla
shell
## Code Before: if [[ -f /.dockerenv ]]; then exit 0 fi modprobe zram num_devices=4 totalmem=$(free -m | awk '/Mem:/{print $2}') mem=$(( ($totalmem / 4 / 2)* 1024 * 1024)) for i in `seq 0 3`; do if [[ ! -e /dev/zram${i} ]]; then echo $mem > /sys/block/zram${i}/disksize mkswap /dev/zram${i} swapon -p ...
7f652c4e4441ef9e0c148948232075aed410db80
README.md
README.md
Web Extension for handling groups of tabs persisted as bookmarks. [![Build Status](https://travis-ci.org/hupf/tabmarks.svg?branch=master)](https://travis-ci.org/hupf/tabmarks) ## Known issues * Only tested with Firefox. * No i18n support (currently english only) * Changes to the persisted bookmarks will not yet be...
Web Extension for handling groups of tabs persisted as bookmarks. [![Build Status](https://travis-ci.org/hupf/tabmarks.svg?branch=master)](https://travis-ci.org/hupf/tabmarks) ## Known issues * Switching to a group loads all tabs (which is slow and clutters browser history), see #9 * No ability to rename, move or ...
Update know issues in readme
Update know issues in readme
Markdown
mit
hupf/tabmarks,hupf/tabmarks
markdown
## Code Before: Web Extension for handling groups of tabs persisted as bookmarks. [![Build Status](https://travis-ci.org/hupf/tabmarks.svg?branch=master)](https://travis-ci.org/hupf/tabmarks) ## Known issues * Only tested with Firefox. * No i18n support (currently english only) * Changes to the persisted bookmarks...
30f33de6fea95287064f35bb916bdeaf6db7d949
resources/sparql/get_exercise.mustache
resources/sparql/get_exercise.mustache
{{! @param IRI exercise }} {{> sparql/prefixes.mustache }} SELECT (REPLACE(STR(<{{exercise}}>), "^.*\\/([^/]+)$", "$1") AS ?id) ?name (REPLACE(?_description, "^\\s+|\\s+$", "") AS ?description) ?query WHERE { <{{exercise}}> a sp:Query ; rdfs:label ?name ; rdfs:comment ?_description ; ...
{{! @param IRI exercise }} {{> sparql/prefixes.mustache }} SELECT (REPLACE(STR(<{{exercise}}>), "^.*\\/([^/]+)$", "$1") AS ?id) ?name (REPLACE(?_description, "^\\s+|\\s+$", "") AS ?description) (REPLACE(?_query, "^\\s+|\\s+$", "") AS ?query) WHERE { <{{exercise}}> a sp:Query ; rdfs:label ?n...
Trim trailing whitespace from canonical queries
Trim trailing whitespace from canonical queries
HTML+Django
epl-1.0
jindrichmynarz/sparqlab,jindrichmynarz/sparqlab,jindrichmynarz/sparqlab
html+django
## Code Before: {{! @param IRI exercise }} {{> sparql/prefixes.mustache }} SELECT (REPLACE(STR(<{{exercise}}>), "^.*\\/([^/]+)$", "$1") AS ?id) ?name (REPLACE(?_description, "^\\s+|\\s+$", "") AS ?description) ?query WHERE { <{{exercise}}> a sp:Query ; rdfs:label ?name ; rdfs:comment ?_...
1d098bd297e00ba3196f67e2d222898e67750f81
playbooks/tester/rally/run.yml
playbooks/tester/rally/run.yml
--- - name: Copy to Task Files Rally hosts: tester tasks: - name: Copy Task file from settings copy: dest: "{{ tester.rally.dir }}/{{ tester.rally.taskfile }}" src: "{{ tester.tests.rally.task }}" force: yes - name: Run Rally Task hosts: tester tasks: - name: Check Rally deployment ...
--- - name: Copy to Task Files Rally hosts: tester tasks: - name: Copy Task file from settings copy: dest: "{{ tester.rally.dir }}/{{ tester.rally.taskfile }}" content: "{{ tester.tests.rally.task | to_nice_json }}" force: yes - name: Run Rally Task hosts: tester tasks: - name: Check ...
Revert "Running Rally task from a file"
Revert "Running Rally task from a file" This reverts commit c22a8037bfb813cd4b58b201755e274bbaf47097. Based on comment, please submit a new patch that aligns the ODL to the rest of the rally tests Change-Id: I08712dab14216a2fd1f268e830c490567d70ba25
YAML
apache-2.0
okolisny/InfraRed,redhat-openstack/infrared,redhat-openstack/infrared,redhat-openstack/infrared,okolisny/InfraRed,okolisny/InfraRed
yaml
## Code Before: --- - name: Copy to Task Files Rally hosts: tester tasks: - name: Copy Task file from settings copy: dest: "{{ tester.rally.dir }}/{{ tester.rally.taskfile }}" src: "{{ tester.tests.rally.task }}" force: yes - name: Run Rally Task hosts: tester tasks: - name: Check Ra...
bbdd6ab38e003e94147a35a6c9c29c85d0e365b5
README.md
README.md
Kubo is a [BOSH](https://bosh.io/) release for Kubernetes. It provides a solution for deploying and managing Kubernetes with BOSH This repository contains the documentation and manifests for deploying [kubo-release](https://github.com/cloudfoundry-incubator/kubo-release) with BOSH. **Slack**: #cfcr on https://slack....
Kubo is a [BOSH](https://bosh.io/) release for Kubernetes. It provides a solution for deploying and managing Kubernetes with BOSH This repository contains the documentation and manifests for deploying [kubo-release](https://github.com/cloudfoundry-incubator/kubo-release) with BOSH. **Slack**: #cfcr on https://slack....
Drop troubleshooting sections from readme
Drop troubleshooting sections from readme The link is dead
Markdown
apache-2.0
pivotal-cf-experimental/kubo-deployment,jaimegag/kubo-deployment,pivotal-cf-experimental/kubo-deployment,jaimegag/kubo-deployment
markdown
## Code Before: Kubo is a [BOSH](https://bosh.io/) release for Kubernetes. It provides a solution for deploying and managing Kubernetes with BOSH This repository contains the documentation and manifests for deploying [kubo-release](https://github.com/cloudfoundry-incubator/kubo-release) with BOSH. **Slack**: #cfcr o...
ad402ed6db5d68fd804830ae00a2e0efa95d41f8
xsl/preprocess.xsl
xsl/preprocess.xsl
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:arc="http://www.opengroup.org/xsd/archimate"> <xsl:param name="customxsl"/> <xsl:template ...
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:arc="http://www.opengroup.org/xsd/archimate"> <xsl:param name="customxsl"/> <xsl:template ...
Fix for windows custom xsl
Fix for windows custom xsl
XSLT
mit
guidohajanssen/archimateviewer,guidohajanssen/archimateviewer,guidohajanssen/archimateviewer
xslt
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:arc="http://www.opengroup.org/xsd/archimate"> <xsl:param name="customxsl"/>...
ef075dcf518b9b290342a1d13fe3c4c64e3d9e8a
.travis.yml
.travis.yml
language: go go: - 1.9 - tip env: - DEP_VERSION="0.3.2" notifications: email: false before_install: - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep - chmod +x $GOPATH/bin/dep install: - dep ensure script: - go vet ./... - go test -v...
language: go go: - 1.9 - tip env: - DEP_VERSION="0.3.2" matrix: allow_failures: - go: tip fast_finish: true notifications: email: false before_install: - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep - chmod +x $GOPATH/bin/dep ins...
Enable fast_finish and allow failures for tip in TravisCI
Enable fast_finish and allow failures for tip in TravisCI
YAML
mit
venyii/instabot
yaml
## Code Before: language: go go: - 1.9 - tip env: - DEP_VERSION="0.3.2" notifications: email: false before_install: - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep - chmod +x $GOPATH/bin/dep install: - dep ensure script: - go vet ./.....
e64116d69cb82268fdf7161a7b157db04ffd32ff
lib/nylas/current_account.rb
lib/nylas/current_account.rb
module Nylas # Ruby representation of the Nylas /account API # @see https://docs.nylas.com/reference#account class CurrentAccount include Model self.showable = true self.resources_path = "/account" attribute :id, :string attribute :object, :string, default: "account" attribute :account_...
module Nylas # Ruby representation of the Nylas /account API # @see https://docs.nylas.com/reference#account class CurrentAccount include Model self.showable = true self.resources_path = "/account" attribute :id, :string attribute :object, :string, default: "account" attribute :account_...
Add new `linked_at` field to CurrentAccount
Add new `linked_at` field to CurrentAccount
Ruby
mit
nylas/nylas-ruby,nylas/nylas-ruby
ruby
## Code Before: module Nylas # Ruby representation of the Nylas /account API # @see https://docs.nylas.com/reference#account class CurrentAccount include Model self.showable = true self.resources_path = "/account" attribute :id, :string attribute :object, :string, default: "account" att...
76971ba45745f1205393a89d79e27bab179cc557
lib/locations_ng/state.rb
lib/locations_ng/state.rb
module LocationsNg class State @@all_states class << self def all load_states.map{ |s| {name: s['name'], capital: s['capital']} } end def details(state) load_states state_index = @@all_states.index{ |s| s['alias'] == format_query(state) } if state_index.ni...
module LocationsNg class State @all_states = LocationsNg::LoadFile.read('states') class << self def all @all_states.map{ |s| {name: s['name'], capital: s['capital']} } end def details(state) state_index = @all_states.index{ |s| s['alias'] == format_query(state) } i...
Refactor State class to use new LoadFile class, and instance var instead of class var.
Refactor State class to use new LoadFile class, and instance var instead of class var.
Ruby
mit
ceemion/locations_ng
ruby
## Code Before: module LocationsNg class State @@all_states class << self def all load_states.map{ |s| {name: s['name'], capital: s['capital']} } end def details(state) load_states state_index = @@all_states.index{ |s| s['alias'] == format_query(state) } i...
56de005c8a20f028a386a0a72f8a8e48985d86f5
terraform/shared/scripts/ip_tables.sh
terraform/shared/scripts/ip_tables.sh
set -e sudo iptables -I INPUT -s 0/0 -p tcp --dport 8300 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8301 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8302 -j ACCEPT if [ -d /etc/sysconfig ]; then sudo iptables-save | sudo tee /etc/sysconfig/iptables else sudo iptables-save | sudo tee /etc/ip...
set -e sudo iptables -I INPUT -s 0/0 -p tcp --dport 8300 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8301 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8302 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8400 -j ACCEPT if [ -d /etc/sysconfig ]; then sudo iptables-save | sudo tee /etc/sys...
Add RPC port to iptables config
Add RPC port to iptables config From https://www.consul.io/docs/agent/options.html#ports
Shell
mpl-2.0
zeroae/consul,rhyas/consul,zeroae/consul,sunadm/consul,sweeneyb/consul,scalp42/consul,i0rek/consul,kylemcc/consul,sean-/consul,Thib17/consul,scalp42/consul,Pivotal-Pierre-Delagrave/consul,42wim/consul,mckennajones/consul,calgaryscientific/consul,tshak/consul,Pivotal-Pierre-Delagrave/consul,kingland/consul,pmalmgren/con...
shell
## Code Before: set -e sudo iptables -I INPUT -s 0/0 -p tcp --dport 8300 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8301 -j ACCEPT sudo iptables -I INPUT -s 0/0 -p tcp --dport 8302 -j ACCEPT if [ -d /etc/sysconfig ]; then sudo iptables-save | sudo tee /etc/sysconfig/iptables else sudo iptables-save | ...
830f8f5d262c69ae2f7a9ba511c0ad202dc80012
lib/easy_breadcrumbs.rb
lib/easy_breadcrumbs.rb
require 'sinatra/base' require 'easy_breadcrumbs/version' require 'easy_breadcrumbs/breadcrumb' module Sinatra include ::EasyBreadcrumbs module EasyBreadcrumbs Breadcrumb = ::EasyBreadcrumbs::Breadcrumb def easy_breadcrumbs # Path from current Rack::Request object request_path = request.path ...
require 'sinatra/base' require 'easy_breadcrumbs/version' require 'easy_breadcrumbs/breadcrumb' module Sinatra include ::EasyBreadcrumbs module EasyBreadcrumbs Breadcrumb = ::EasyBreadcrumbs::Breadcrumb def easy_breadcrumbs # Path from current Rack::Request object request_path = request.path ...
Fix issue for modular style applications by accessing sinatra routes through self.class rather than Sinatra::Application.
Fix issue for modular style applications by accessing sinatra routes through self.class rather than Sinatra::Application.
Ruby
mit
nerboda/easy_breadcrumbs,nerboda/easy_breadcrumbs
ruby
## Code Before: require 'sinatra/base' require 'easy_breadcrumbs/version' require 'easy_breadcrumbs/breadcrumb' module Sinatra include ::EasyBreadcrumbs module EasyBreadcrumbs Breadcrumb = ::EasyBreadcrumbs::Breadcrumb def easy_breadcrumbs # Path from current Rack::Request object request_path...
e32919d6c53a5ed59f354b80e6e4d8528a2fa040
test/test_parser.rb
test/test_parser.rb
require 'rubygems' require 'bundler/setup' require 'toml' require 'minitest/autorun' class TestParser < MiniTest::Unit::TestCase def setup filepath = File.join(File.dirname(__FILE__), 'spec.toml') @doc = TOML::Parser.new(File.read(filepath)).parsed end def test_string assert_equal @doc["string"]...
require 'rubygems' require 'bundler/setup' require 'toml' require 'minitest/autorun' class TestParser < MiniTest::Unit::TestCase def setup filepath = File.join(File.dirname(__FILE__), 'spec.toml') @doc = TOML::Parser.new(File.read(filepath)).parsed end def test_string assert_equal "string\n\t\"s...
Fix testing syntax (expected, actual rather than the reverse)
Fix testing syntax (expected, actual rather than the reverse)
Ruby
mit
jm/toml,jm/toml
ruby
## Code Before: require 'rubygems' require 'bundler/setup' require 'toml' require 'minitest/autorun' class TestParser < MiniTest::Unit::TestCase def setup filepath = File.join(File.dirname(__FILE__), 'spec.toml') @doc = TOML::Parser.new(File.read(filepath)).parsed end def test_string assert_equa...
d7b51d8a67d5e3fec5430ff05b1c9b09d8e367d1
doc/README.md
doc/README.md
- Typescript - Angular2 ### Backend - Java - Spring boot (use as rest server only) - H2 (may use pg for production) - Elasticsearch (for search) - Mongodb or redis (for NoSQL or cache)
- Typescript - Angular2 ### Backend - Nginx (Openresty) - Java - Spring boot (use as rest server only) - H2 (may use pg for production) - Elasticsearch (for search) - Mongodb or redis (for NoSQL or cache) ## Setup on Windows - [Install Nginx](https://moonbingbing.gitbooks.io/openresty-best-practices/content/openre...
Add doc for setup on windows
Add doc for setup on windows
Markdown
apache-2.0
at15/bform,at15/bform
markdown
## Code Before: - Typescript - Angular2 ### Backend - Java - Spring boot (use as rest server only) - H2 (may use pg for production) - Elasticsearch (for search) - Mongodb or redis (for NoSQL or cache) ## Instruction: Add doc for setup on windows ## Code After: - Typescript - Angular2 ### Backend - Nginx (Openres...
466f8afb30a85c84a90464b9bae2ed372091a14d
src/main/java/com/github/solairerove/woodstock/repository/GenericRepository.java
src/main/java/com/github/solairerove/woodstock/repository/GenericRepository.java
package com.github.solairerove.woodstock.repository; import com.github.solairerove.woodstock.domain.base.BaseEntity; import org.springframework.data.neo4j.repository.GraphRepository; public interface GenericRepository<T extends BaseEntity> extends GraphRepository<T> { }
package com.github.solairerove.woodstock.repository; import com.github.solairerove.woodstock.domain.base.BaseEntity; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.GraphRepository; import org.springframework.data.repository.query.Param; public interface Generi...
Create generic repository stub: - how solve problem with entity
Create generic repository stub: - how solve problem with entity
Java
apache-2.0
solairerove/woodstock,solairerove/woodstock,solairerove/woodstock
java
## Code Before: package com.github.solairerove.woodstock.repository; import com.github.solairerove.woodstock.domain.base.BaseEntity; import org.springframework.data.neo4j.repository.GraphRepository; public interface GenericRepository<T extends BaseEntity> extends GraphRepository<T> { } ## Instruction: Create generi...
0a3eb4b966dff69cbe582c60bf4444facb4b683d
tcconfig/_tc_command_helper.py
tcconfig/_tc_command_helper.py
from __future__ import absolute_import, unicode_literals import subprocrunner as spr from ._common import find_bin_path from ._const import TcSubCommand from ._error import NetworkInterfaceNotFoundError def get_tc_base_command(tc_subcommand): if tc_subcommand not in TcSubCommand: raise ValueError("the ...
from __future__ import absolute_import, unicode_literals import subprocrunner as spr from ._common import find_bin_path from ._const import TcSubCommand from ._error import NetworkInterfaceNotFoundError def get_tc_base_command(tc_subcommand): if not isinstance(tc_subcommand, TcSubCommand): raise ValueE...
Change to avoid a DeprecationWarning
Change to avoid a DeprecationWarning
Python
mit
thombashi/tcconfig,thombashi/tcconfig
python
## Code Before: from __future__ import absolute_import, unicode_literals import subprocrunner as spr from ._common import find_bin_path from ._const import TcSubCommand from ._error import NetworkInterfaceNotFoundError def get_tc_base_command(tc_subcommand): if tc_subcommand not in TcSubCommand: raise ...
b79c30ea93bca3111cba435aa380c11200946a8b
.travis.yml
.travis.yml
language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly before_install: - sudo apt-get update -qq - sudo apt-get install -y libx11-xcb-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-keysyms1-dev
dist: trusty sudo: required language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly before_install: - sudo apt-get update -qq - sudo apt-get install -y libx11-xcb-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-keysyms1-dev
Use Ubuntu Trusty (for XCB packages).
Travis: Use Ubuntu Trusty (for XCB packages).
YAML
mit
mjkillough/lanta
yaml
## Code Before: language: rust rust: - stable - beta - nightly matrix: allow_failures: - rust: nightly before_install: - sudo apt-get update -qq - sudo apt-get install -y libx11-xcb-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-keysyms1-dev ## Instruction: Travis: Use Ubuntu Trusty (for XCB packa...
308ee10ee4d516fd4542e750e788b6fdc2f0cd2b
app/models/item.rb
app/models/item.rb
class Item < ActiveRecord::Base serialize :sections, Hash belongs_to :item_type belongs_to :origin, polymorphic: true has_many :user_votes, dependent: :destroy has_many :motion, dependent: :destroy has_and_belongs_to_many :wards accepts_nested_attributes_for :user_votes def next Item.where("id > ?", id)....
class Item < ActiveRecord::Base serialize :sections, Hash belongs_to :item_type belongs_to :origin, polymorphic: true has_many :user_votes, dependent: :destroy has_many :motion, dependent: :destroy has_and_belongs_to_many :wards accepts_nested_attributes_for :user_votes def next Item.where("id > ?", id)....
Change Method Name, Count Votes To Get User Votes
Change Method Name, Count Votes To Get User Votes Change the name and function of Count Votes from to Get User Votes because the count votes is doing too many select statements to the database. Get User Votes will find a participially vote type and return an array of objects for the vote.
Ruby
mit
CivicHaxx/ok_councillr,CivicHaxx/ok_councillr,CivicHaxx/ok_councillr
ruby
## Code Before: class Item < ActiveRecord::Base serialize :sections, Hash belongs_to :item_type belongs_to :origin, polymorphic: true has_many :user_votes, dependent: :destroy has_many :motion, dependent: :destroy has_and_belongs_to_many :wards accepts_nested_attributes_for :user_votes def next Item.wher...
bdcf90a0fdf782b1c6cfd261e0dbb208e013eb1b
python/day12.py
python/day12.py
import json import pathlib input_file = pathlib.Path(__file__).parent.parent.joinpath('day12_input.txt') def sum_data(d): total = 0 if isinstance(d, dict): d = d.values() for item in d: if isinstance(item, int): total += item elif isinstance(item, (list, dict)): ...
import json import pathlib input_file = pathlib.Path(__file__).parent.parent.joinpath('day12_input.txt') def sum_data(d): total = 0 if isinstance(d, dict): d = d.values() if 'red' in d: return 0 for item in d: if isinstance(item, int): total += item elif isin...
Add day 12 part two solution in python
Add day 12 part two solution in python
Python
mit
robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions,robjwells/adventofcode-solutions
python
## Code Before: import json import pathlib input_file = pathlib.Path(__file__).parent.parent.joinpath('day12_input.txt') def sum_data(d): total = 0 if isinstance(d, dict): d = d.values() for item in d: if isinstance(item, int): total += item elif isinstance(item, (li...
e43c1335bb48e8ba3321ddd9471ac04fd75a4250
broker/ivorn_db.py
broker/ivorn_db.py
import os import anydbm import datetime from contextlib import closing from threading import Lock class IVORN_DB(object): # Using one big lock for all the databases is a little clunky. def __init__(self, root): self.root = root self.lock = Lock() def check_ivorn(self, ivorn): db_pa...
import os import anydbm import datetime from threading import Lock from collections import defaultdict class IVORN_DB(object): def __init__(self, root): self.root = root self.locks = defaultdict(Lock) def check_ivorn(self, ivorn): db_path, key = ivorn.split('//')[1].split('#') ...
Use a separate lock per ivorn database
Use a separate lock per ivorn database
Python
bsd-2-clause
jdswinbank/Comet,jdswinbank/Comet
python
## Code Before: import os import anydbm import datetime from contextlib import closing from threading import Lock class IVORN_DB(object): # Using one big lock for all the databases is a little clunky. def __init__(self, root): self.root = root self.lock = Lock() def check_ivorn(self, ivorn...
bc50d364149115cf5ab898cdf409bac274aea319
lib/pipenv.js
lib/pipenv.js
const fse = require('fs-extra'); const path = require('path'); const { spawnSync } = require('child_process'); /** * pipenv install */ function pipfileToRequirements() { if ( !this.options.usePipenv || !fse.existsSync(path.join(this.servicePath, 'Pipfile')) ) { return; } this.serverless.cli.log(...
const fse = require('fs-extra'); const path = require('path'); const { spawnSync } = require('child_process'); const { EOL } = require('os'); /** * pipenv install */ function pipfileToRequirements() { if ( !this.options.usePipenv || !fse.existsSync(path.join(this.servicePath, 'Pipfile')) ) { return; ...
Support editable packages with Pipfile. Remove editableFlag from .serverless/requirements.txt when using Pipfile.
Support editable packages with Pipfile. Remove editableFlag from .serverless/requirements.txt when using Pipfile.
JavaScript
mit
UnitedIncome/serverless-python-requirements,UnitedIncome/serverless-python-requirements
javascript
## Code Before: const fse = require('fs-extra'); const path = require('path'); const { spawnSync } = require('child_process'); /** * pipenv install */ function pipfileToRequirements() { if ( !this.options.usePipenv || !fse.existsSync(path.join(this.servicePath, 'Pipfile')) ) { return; } this.ser...
e29ee7860946a2f3c8b8fc4c1bd38dea2c006550
.travis.yml
.travis.yml
language: node_js node_js: - "node" before_install: - npm -g install node-gyp node-pre-gyp before_deploy: - npm run-script predeploy - LAST_COMMIT=$(git log -1 --pretty=format:'%h <%an> - %s') - echo "Deploying changes from $LAST_COMMIT" - node_modules/gh-pages/bin/gh-pages -d dist/ -m "Updates from $LAST...
language: node_js node_js: - "node" before_install: - npm -g install node-gyp@3.4.0 node-pre-gyp@0.6.32 before_deploy: - npm run-script predeploy - LAST_COMMIT=$(git log -1 --pretty=format:'%h <%an> - %s') - echo "Deploying changes from $LAST_COMMIT" - node_modules/gh-pages/bin/gh-pages -d dist/ -m "Updat...
Use node-gyp and node-pre-gyp versions that phantom wants
Use node-gyp and node-pre-gyp versions that phantom wants
YAML
unlicense
mauriciovieira/mauriciovieira.net,mauriciovieira/mauriciovieira.net
yaml
## Code Before: language: node_js node_js: - "node" before_install: - npm -g install node-gyp node-pre-gyp before_deploy: - npm run-script predeploy - LAST_COMMIT=$(git log -1 --pretty=format:'%h <%an> - %s') - echo "Deploying changes from $LAST_COMMIT" - node_modules/gh-pages/bin/gh-pages -d dist/ -m "Up...
77bfe540a86e1ca09b340726c809f569b641f07d
README.md
README.md
A tiny generic colorscript strongly inspired by @roberoonska's dotfiles ## How to use it Get repository: git clone https://github.com/aloisdg/Ascolorii.git Run the script with a path to a 11x6 ascii art file: ./ascolorii ascii/hello.txt Enjoy ! ## Create Ascii Art I draw hello.txt by hand. I used [Blo...
A tiny generic colorscript strongly inspired by @roberoonska's [dotfiles](https://github.com/roberoonska/dotfiles). ## How to use it Get repository: git clone https://github.com/aloisdg/Ascolorii.git Run the script with a path to a 11x6 ascii art file: ./ascolorii ascii/hello.txt Enjoy ! ## Create Asci...
Add missing links to Summary
Add missing links to Summary
Markdown
mpl-2.0
aloisdg/ascolorii
markdown
## Code Before: A tiny generic colorscript strongly inspired by @roberoonska's dotfiles ## How to use it Get repository: git clone https://github.com/aloisdg/Ascolorii.git Run the script with a path to a 11x6 ascii art file: ./ascolorii ascii/hello.txt Enjoy ! ## Create Ascii Art I draw hello.txt by h...
0c67cff030592cd44023444a5f10eef6570bfdf0
odinweb/testing.py
odinweb/testing.py
from odin.codecs import json_codec from odinweb.constants import Method class MockRequest(object): """ Mocked Request object """ def __init__(self, query=None, post=None, headers=None, method=Method.GET, body='', host='127.0.0.1', request_codec=None, response_codec=None): sel...
from typing import Dict, Any from odin.codecs import json_codec try: from urllib.parse import urlparse, parse_qs except ImportError: from urlparse import urlparse, parse_qs from odinweb.constants import Method class MockRequest(object): """ Mocked Request object. This can be treated as a templa...
Expand Mock Request to include path and built in URL parsing.
Expand Mock Request to include path and built in URL parsing.
Python
bsd-3-clause
python-odin/odinweb,python-odin/odinweb
python
## Code Before: from odin.codecs import json_codec from odinweb.constants import Method class MockRequest(object): """ Mocked Request object """ def __init__(self, query=None, post=None, headers=None, method=Method.GET, body='', host='127.0.0.1', request_codec=None, response_codec=No...
3c5bf7e5ddb3b197e1fa55c168a162ea23bf94a0
plugins/tripleo-overcloud/tasks/upgrade/undercloud_validation.yml
plugins/tripleo-overcloud/tasks/upgrade/undercloud_validation.yml
--- - fail: msg: "Upgrade is supported only for versions 7, 8, 9 and 10" when: - undercloud_version|openstack_release not in [8, 9, 10, 11] - name: Checking overcloud_deploy_file stat: path: "~/overcloud_deploy.sh" register: overcloud_deploy_file - fail: msg: "Overcloud deployment script...
--- - fail: msg: "Upgrade is supported only for versions 7, 8, 9 and 10" when: - undercloud_version|openstack_release not in [8, 9, 10, 11] - name: Checking overcloud_deploy_file stat: path: "{{ overcloud_deploy_script }}" register: overcloud_deploy_file - fail: msg: "Overcloud deploymen...
Use the setting for overcloud deploy path
Use the setting for overcloud deploy path When the provided script is different than the standard one, this step is failing. It should be using the right var, and this path should not be hardcoded. Change-Id: Ibbf4671040227faa8f2a53a21fb8880c1ea04a28
YAML
apache-2.0
redhat-openstack/infrared,redhat-openstack/infrared,redhat-openstack/infrared
yaml
## Code Before: --- - fail: msg: "Upgrade is supported only for versions 7, 8, 9 and 10" when: - undercloud_version|openstack_release not in [8, 9, 10, 11] - name: Checking overcloud_deploy_file stat: path: "~/overcloud_deploy.sh" register: overcloud_deploy_file - fail: msg: "Overcloud d...
83c8e10f04bc68c072b1f5133a59ad3b949d89bc
docker-compose.yml
docker-compose.yml
version: '3' services: gargbot_server: container_name: gargbot_server build: . env_file: - .env command: "venv/bin/python -m gargbot_3000 --mode server" expose: - 5000 ports: - "5000:5000" depends_on: - postgres_db networks: - gargbot_network - nginx...
version: '3' services: gargbot_server: container_name: gargbot_server build: . env_file: - .env command: "venv/bin/python -m gargbot_3000 --mode server" expose: - 5000 ports: - "5000:5000" depends_on: - postgres_db networks: - gargbot_network - nginx...
Add restart policy to worker
Add restart policy to worker
YAML
mit
eirki/gargbot_3000,eirki/gargbot_3000,eirki/gargbot_3000,eirki/gargbot_3000
yaml
## Code Before: version: '3' services: gargbot_server: container_name: gargbot_server build: . env_file: - .env command: "venv/bin/python -m gargbot_3000 --mode server" expose: - 5000 ports: - "5000:5000" depends_on: - postgres_db networks: - gargbot_netwo...
8970ad3e9a02b5995c024e51f405d1078bce6619
jirabot.rb
jirabot.rb
require 'slack-ruby-bot' class JiraBot < SlackRubyBot::Bot match(/([a-z]+-[0-9]+)/i) do |client, data, issues| results = [] tomatch = data.text # Remove links from text, since they're already links, by grabbing everything between < and > tomatch = tomatch.sub /(<.+>)/i, '' # Also remove emo...
require 'slack-ruby-bot' require "net/https" require "uri" require "JSON" class JiraBot < SlackRubyBot::Bot match(/([a-z]+-[0-9]+)/i) do |client, data, issues| results = [] tomatch = data.text # Remove links from text, since they're already links, by grabbing everything between < and > tomatch =...
Call JIRA and fetch issue details
Call JIRA and fetch issue details
Ruby
mit
calciphus/jirabot
ruby
## Code Before: require 'slack-ruby-bot' class JiraBot < SlackRubyBot::Bot match(/([a-z]+-[0-9]+)/i) do |client, data, issues| results = [] tomatch = data.text # Remove links from text, since they're already links, by grabbing everything between < and > tomatch = tomatch.sub /(<.+>)/i, '' #...
09a11a9059eeedc722120720d66730b40e4b6c8d
lib/unisms/router/random.rb
lib/unisms/router/random.rb
require_relative 'base' module Unisms::Router class Random < Base attr_accessor :available_adapters def initialize(available_adapters = nil) @available_adapters = available_adapters.is_a?(Array) ? available_adapters : [available_adapters].compact end def route @available_adapters.sample end end end...
require_relative 'base' module Unisms::Router class Random < Base attr_accessor :adapters def initialize(adapters = nil) @adapters = adapters.is_a?(Array) ? adapters : [adapters].compact end def route @adapters.sample end end end module Unisms::Router class Random < Base def load_internal_adapt...
Rename "available_adapter" in Adapter::Random to "adapter" for better readability
Rename "available_adapter" in Adapter::Random to "adapter" for better readability
Ruby
mit
CrBoy/unisms,CrBoy/unisms
ruby
## Code Before: require_relative 'base' module Unisms::Router class Random < Base attr_accessor :available_adapters def initialize(available_adapters = nil) @available_adapters = available_adapters.is_a?(Array) ? available_adapters : [available_adapters].compact end def route @available_adapters.sampl...
6296e0b198bd5430967cb3c3013aa2feb6c746fa
.github/workflows/ci.yml
.github/workflows/ci.yml
name: Node CI on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: '10.x' - run: npm ci - run: npm test env: CI: true - run: npm run build - name: Run E2E uses: mujo-code/pupp...
name: Node CI on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: '10.x' - run: npm ci - run: npm test env: CI: true - run: npm run build - name: Run E2E uses...
Revert "Trigger CI on push"
Revert "Trigger CI on push" This reverts commit 8592ae655e9dba4b1e7929590775b75ae5f79e71.
YAML
mit
OctoLinker/browser-extension,OctoLinker/browser-extension,OctoLinker/browser-extension
yaml
## Code Before: name: Node CI on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: node-version: '10.x' - run: npm ci - run: npm test env: CI: true - run: npm run build - name: Run E2E uses...
2795b1cf5bf1bc3dc5cb4e97596fb28aa5c92099
src/components/atoms/ToolbarButtonGroup.tsx
src/components/atoms/ToolbarButtonGroup.tsx
import styled from '../../lib/styled' export default styled.div` border-radius: 2px; border: solid 1px ${({ theme }) => theme.colors.border}; & > button { margin: 0; border: 0; border-right: 1px solid ${({ theme }) => theme.colors.border}; border-radius: 0; &:last-child { border-right: ...
import styled from '../../lib/styled' export default styled.div` border-radius: 2px; border: solid 1px ${({ theme }) => theme.colors.border}; & > button { margin: 0; border: 0; border-right: 1px solid ${({ theme }) => theme.colors.border}; border-radius: 0; &:first-child { border-top-le...
Fix toolbar button group border radius style
Fix toolbar button group border radius style
TypeScript
mit
Sarah-Seo/Inpad,Sarah-Seo/Inpad
typescript
## Code Before: import styled from '../../lib/styled' export default styled.div` border-radius: 2px; border: solid 1px ${({ theme }) => theme.colors.border}; & > button { margin: 0; border: 0; border-right: 1px solid ${({ theme }) => theme.colors.border}; border-radius: 0; &:last-child { ...
25cec2a87fe3e41875a3fcf1c8cfd71ec6495402
spec/spec_helper.rb
spec/spec_helper.rb
require 'tmpdir' require 'fileutils' require 'vimrunner' VIM = Vimrunner::Runner.start_gvim VIM.add_plugin(File.expand_path('../..', __FILE__), 'plugin/runspec.vim') RSpec.configure do |config| # cd into a temporary directory for every example. config.around do |example| original_dir = FileUtils.getwd Di...
require 'tmpdir' require 'fileutils' require 'vimrunner' VIM = Vimrunner::Runner.start_gvim VIM.add_plugin(File.expand_path('../..', __FILE__), 'plugin/runspec.vim') RSpec.configure do |config| # cd into a temporary directory for every example. config.around do |example| Dir.mktmpdir do |dir| Dir.chdir...
Use Dir.chdir to switch directories.
Use Dir.chdir to switch directories.
Ruby
mit
mudge/runspec.vim
ruby
## Code Before: require 'tmpdir' require 'fileutils' require 'vimrunner' VIM = Vimrunner::Runner.start_gvim VIM.add_plugin(File.expand_path('../..', __FILE__), 'plugin/runspec.vim') RSpec.configure do |config| # cd into a temporary directory for every example. config.around do |example| original_dir = FileUt...