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
1a1e7b7564165352e0e1c17f3e013ca610974eaf
index.html
index.html
<!DOCTYPE html> <html lang="en"> <head> <title>Mac Chaffee</title> <meta charset="utf-8"> <meta name="description" content="The personal website of Mac Chaffee"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#ECEBF3"> <link rel="shortcut icon" href="static/favicon.png" type="image/png"> <link href="css/styles.css" rel="stylesheet"> </head> <body> <h1>Hi! I'm Mac Chaffee. I make software for a living and for fun!</h1> <main> <a href="https://github.com/mac-chaffee"><img src="static/github.png" alt="github" /></a> <a href="https://gitlab.com/users/mac-chaffee/projects"><img src="static/gitlab.png" alt="gitlab" /></a> <a href="/blog"><img src="static/blog.png" alt="blog" /></a> <a href="/static/resume.pdf"><img src="static/resume.png" alt="resume" /></a> </main> <footer> Bonus: <a href="/abgd">Here's a game I helped make for class</a> </footer> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <title>Mac Chaffee</title> <meta charset="utf-8"> <meta name="description" content="The personal website of Mac Chaffee"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#ECEBF3"> <link rel="shortcut icon" href="static/favicon.png" type="image/png"> <link href="css/styles.css" rel="stylesheet"> </head> <body> <h1>Hi! I'm Mac Chaffee. I make software with a focus on DevOps and security.</h1> <main> <a href="https://github.com/mac-chaffee"><img src="static/github.png" alt="github" /></a> <a href="https://gitlab.com/users/mac-chaffee/projects"><img src="static/gitlab.png" alt="gitlab" /></a> <a href="/blog"><img src="static/blog.png" alt="blog" /></a> <a href="/static/resume.pdf"><img src="static/resume.png" alt="resume" /></a> </main> <footer> Bonus: <a href="/abgd">Here's a game I helped make for class</a> </footer> </body> </html>
Change main header to be more specific
Change main header to be more specific
HTML
mit
mac-chaffee/personal-site,mac-chaffee/personal-site,mac-chaffee/personal-site,mac-chaffee/personal-site
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <title>Mac Chaffee</title> <meta charset="utf-8"> <meta name="description" content="The personal website of Mac Chaffee"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#ECEBF3"> <link rel="shortcut icon" href="static/favicon.png" type="image/png"> <link href="css/styles.css" rel="stylesheet"> </head> <body> <h1>Hi! I'm Mac Chaffee. I make software for a living and for fun!</h1> <main> <a href="https://github.com/mac-chaffee"><img src="static/github.png" alt="github" /></a> <a href="https://gitlab.com/users/mac-chaffee/projects"><img src="static/gitlab.png" alt="gitlab" /></a> <a href="/blog"><img src="static/blog.png" alt="blog" /></a> <a href="/static/resume.pdf"><img src="static/resume.png" alt="resume" /></a> </main> <footer> Bonus: <a href="/abgd">Here's a game I helped make for class</a> </footer> </body> </html> ## Instruction: Change main header to be more specific ## Code After: <!DOCTYPE html> <html lang="en"> <head> <title>Mac Chaffee</title> <meta charset="utf-8"> <meta name="description" content="The personal website of Mac Chaffee"/> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="theme-color" content="#ECEBF3"> <link rel="shortcut icon" href="static/favicon.png" type="image/png"> <link href="css/styles.css" rel="stylesheet"> </head> <body> <h1>Hi! I'm Mac Chaffee. I make software with a focus on DevOps and security.</h1> <main> <a href="https://github.com/mac-chaffee"><img src="static/github.png" alt="github" /></a> <a href="https://gitlab.com/users/mac-chaffee/projects"><img src="static/gitlab.png" alt="gitlab" /></a> <a href="/blog"><img src="static/blog.png" alt="blog" /></a> <a href="/static/resume.pdf"><img src="static/resume.png" alt="resume" /></a> </main> <footer> Bonus: <a href="/abgd">Here's a game I helped make for class</a> </footer> </body> </html>
b1dbe7edc9c75b7c4f21c2b0c78958604f3b2339
config/initializers/auth0.rb
config/initializers/auth0.rb
Rails.application.config.middleware.use OmniAuth::Builder do provider( :auth0, 'mV3LbBNO393VYjWHySzgONZT2t7kjqDh', '_ZnKuKfv17Vf_o_DA_KA7Ck5Nzzy-QvXi7U8GxBObHZkWuPAUwpMaDzTX_ZrzAzM', 'pc-load-letter.auth0.com', callback_path: "/auth/auth0/callback" ) end
Rails.application.config.middleware.use OmniAuth::Builder do provider( :auth0, ENV['AUTH0_CLIENT'], ENV['AUTH0_SECRET'], 'pc-load-letter.auth0.com', callback_path: "/auth/auth0/callback" ) end
Move keys to environment variables
Move keys to environment variables
Ruby
mit
walsh9/pc-load-letter,walsh9/pc-load-letter,walsh9/pc-load-letter
ruby
## Code Before: Rails.application.config.middleware.use OmniAuth::Builder do provider( :auth0, 'mV3LbBNO393VYjWHySzgONZT2t7kjqDh', '_ZnKuKfv17Vf_o_DA_KA7Ck5Nzzy-QvXi7U8GxBObHZkWuPAUwpMaDzTX_ZrzAzM', 'pc-load-letter.auth0.com', callback_path: "/auth/auth0/callback" ) end ## Instruction: Move keys to environment variables ## Code After: Rails.application.config.middleware.use OmniAuth::Builder do provider( :auth0, ENV['AUTH0_CLIENT'], ENV['AUTH0_SECRET'], 'pc-load-letter.auth0.com', callback_path: "/auth/auth0/callback" ) end
f005df229a4f79192a2ead502bd44845c0736aeb
template.html
template.html
<!doctype html> {{$places := .Places}} <div> <form action="/"> {{range .Places}} <input type="checkbox" name="placeID" value="{{.ID}}">{{.City}}{{if .Department}} / {{.Department}}{{else}}, {{.Arrondissement}}{{end}} {{end}} <br><input type="submit" value="Filter"> </form> </div> <div> {{range .Announces}} <div> <hr> {{.Date.Format "Monday January 2 15:04"}} (fetched at {{.Fetched.Format "15:04"}}) <br> <a href={{.ID}}>{{.Title}}</a> <br> {{$place := index $places .PlaceID}} {{$departement := $place.Department}} {{$arrondissement := $place.Arrondissement}} <a href="/?placeID={{.PlaceID}}">{{$place.City}}{{if $departement}} / {{$departement}}{{else}}, {{$arrondissement}}{{end}}</a> {{if .Price}}<br><strong>{{.Price}}</strong>{{end}} </div> {{end}} </div>
<!doctype html> <head> <title>pollbc</title> </head> {{$places := .Places}} <div> <form action="/"> {{range .Places}} <input type="checkbox" name="placeID" value="{{.ID}}">{{.City}}{{if .Department}} / {{.Department}}{{else}}, {{.Arrondissement}}{{end}} {{end}} <br><input type="submit" value="Filter"> </form> </div> <div> {{range .Announces}} <div> <hr> {{.Date.Format "Monday January 2 15:04"}} (fetched at {{.Fetched.Format "15:04"}}) <br> <a href={{.ID}}>{{.Title}}</a> <br> {{$place := index $places .PlaceID}} {{$departement := $place.Department}} {{$arrondissement := $place.Arrondissement}} <a href="/?placeID={{.PlaceID}}">{{$place.City}}{{if $departement}} / {{$departement}}{{else}}, {{$arrondissement}}{{end}}</a> {{if .Price}}<br><strong>{{.Price}}</strong>{{end}} </div> {{end}} </div>
Add title to html page
Add title to html page
HTML
mit
yansal/pollbc,yansal/pollbc
html
## Code Before: <!doctype html> {{$places := .Places}} <div> <form action="/"> {{range .Places}} <input type="checkbox" name="placeID" value="{{.ID}}">{{.City}}{{if .Department}} / {{.Department}}{{else}}, {{.Arrondissement}}{{end}} {{end}} <br><input type="submit" value="Filter"> </form> </div> <div> {{range .Announces}} <div> <hr> {{.Date.Format "Monday January 2 15:04"}} (fetched at {{.Fetched.Format "15:04"}}) <br> <a href={{.ID}}>{{.Title}}</a> <br> {{$place := index $places .PlaceID}} {{$departement := $place.Department}} {{$arrondissement := $place.Arrondissement}} <a href="/?placeID={{.PlaceID}}">{{$place.City}}{{if $departement}} / {{$departement}}{{else}}, {{$arrondissement}}{{end}}</a> {{if .Price}}<br><strong>{{.Price}}</strong>{{end}} </div> {{end}} </div> ## Instruction: Add title to html page ## Code After: <!doctype html> <head> <title>pollbc</title> </head> {{$places := .Places}} <div> <form action="/"> {{range .Places}} <input type="checkbox" name="placeID" value="{{.ID}}">{{.City}}{{if .Department}} / {{.Department}}{{else}}, {{.Arrondissement}}{{end}} {{end}} <br><input type="submit" value="Filter"> </form> </div> <div> {{range .Announces}} <div> <hr> {{.Date.Format "Monday January 2 15:04"}} (fetched at {{.Fetched.Format "15:04"}}) <br> <a href={{.ID}}>{{.Title}}</a> <br> {{$place := index $places .PlaceID}} {{$departement := $place.Department}} {{$arrondissement := $place.Arrondissement}} <a href="/?placeID={{.PlaceID}}">{{$place.City}}{{if $departement}} / {{$departement}}{{else}}, {{$arrondissement}}{{end}}</a> {{if .Price}}<br><strong>{{.Price}}</strong>{{end}} </div> {{end}} </div>
a6132c394a62fa86da541349bc8b0618d936a29a
spec/app/models/log_spec.rb
spec/app/models/log_spec.rb
require 'app' RSpec.describe Honeypot::Log do describe '#create_collection' do it 'works when the collection exists' do expect do described_class.create_collection end.to change { Honeypot::Log.all.size }.by(0) end it 'works when the collection exists but is not capped' do described_class.collection.drop described_class.create expect do described_class.create_collection end.to raise_error(Moped::Errors::OperationFailure) end end end
require 'app' RSpec.describe Honeypot::Log do describe '#create_collection' do it 'works when the collection exists' do expect do described_class.create_collection end.to change { described_class.all.size }.by(0) end it 'works when the collection exists but is not capped' do described_class.collection.drop described_class.create expect do described_class.create_collection end.to raise_error(Moped::Errors::OperationFailure) end end let(:last_log) do described_class.desc('_id').limit(1).first end it 'works with an array' do data = { status: [1, 2, 3] } expect do described_class.create(data) end.to change { described_class.all.size }.by(1) expect(last_log.status).to eq(data[:status]) end end
Add spec with an array
Add spec with an array
Ruby
mit
ermaker/honeypot,ermaker/honeypot,ermaker/honeypot
ruby
## Code Before: require 'app' RSpec.describe Honeypot::Log do describe '#create_collection' do it 'works when the collection exists' do expect do described_class.create_collection end.to change { Honeypot::Log.all.size }.by(0) end it 'works when the collection exists but is not capped' do described_class.collection.drop described_class.create expect do described_class.create_collection end.to raise_error(Moped::Errors::OperationFailure) end end end ## Instruction: Add spec with an array ## Code After: require 'app' RSpec.describe Honeypot::Log do describe '#create_collection' do it 'works when the collection exists' do expect do described_class.create_collection end.to change { described_class.all.size }.by(0) end it 'works when the collection exists but is not capped' do described_class.collection.drop described_class.create expect do described_class.create_collection end.to raise_error(Moped::Errors::OperationFailure) end end let(:last_log) do described_class.desc('_id').limit(1).first end it 'works with an array' do data = { status: [1, 2, 3] } expect do described_class.create(data) end.to change { described_class.all.size }.by(1) expect(last_log.status).to eq(data[:status]) end end
e8dffdae918fd10fdc547b80a10c5fb09e8fe188
app/scripts/map-data.js
app/scripts/map-data.js
(function(window, undefined) { var data = window.data = window.data || { }; var map = data.map = data.map || { }; map['Germany'] = [52.5, 13.4]; map['France'] = [48.9, 2.4]; })(window);
(function(window, undefined) { var data = window.data = window.data || { }; var map = data.map = data.map || { }; map['Germany'] = [52.5, 13.4]; map['France'] = [48.9, 2.4]; map['Spain'] = [40.4, -3.7]; map['Russia'] = [55.7, 37.6]; map['Italy'] = [41.9, 12.5]; map['Ukraine'] = [50.5, 30.5]; map['Sweden'] = [59.3, 18.0]; map['Norway'] = [60.0, 10.8]; map['Estonia'] = [59.4, 24.7]; })(window);
Add remaining capitals for FPO dataset
Add remaining capitals for FPO dataset
JavaScript
apache-2.0
SF-Housing-Visualization/mids-sf-housing-visualization,SF-Housing-Visualization/mids-sf-housing-visualization
javascript
## Code Before: (function(window, undefined) { var data = window.data = window.data || { }; var map = data.map = data.map || { }; map['Germany'] = [52.5, 13.4]; map['France'] = [48.9, 2.4]; })(window); ## Instruction: Add remaining capitals for FPO dataset ## Code After: (function(window, undefined) { var data = window.data = window.data || { }; var map = data.map = data.map || { }; map['Germany'] = [52.5, 13.4]; map['France'] = [48.9, 2.4]; map['Spain'] = [40.4, -3.7]; map['Russia'] = [55.7, 37.6]; map['Italy'] = [41.9, 12.5]; map['Ukraine'] = [50.5, 30.5]; map['Sweden'] = [59.3, 18.0]; map['Norway'] = [60.0, 10.8]; map['Estonia'] = [59.4, 24.7]; })(window);
178bde1703bbb044f8af8c70a57517af4490a3c0
databot/handlers/download.py
databot/handlers/download.py
import time import requests import bs4 from databot.recursive import call class DownloadErrror(Exception): pass def dump_response(response): return { 'headers': dict(response.headers), 'cookies': dict(response.cookies), 'status_code': response.status_code, 'encoding': response.encoding, 'content': response.content, } def download(url, delay=None, update=None, **kwargs): update = update or {} def func(row): if delay is not None: time.sleep(delay) kw = call(kwargs, row) _url = url(row) response = requests.get(_url, **kw) if response.status_code == 200: value = dump_response(response) for k, fn in update.items(): value[k] = fn(row) yield _url, value else: raise DownloadErrror('Error while downloading %s, returned status code was %s, response content:\n\n%s' % ( _url, response.status_code, response.content, )) return func def get_content(data): content_type = data.get('headers', {}).get('Content-Type') if content_type == 'text/html': soup = bs4.BeautifulSoup(data['content'], 'lxml') return data['content'].decode(soup.original_encoding) else: return data['content']
import time import requests import bs4 import cgi from databot.recursive import call class DownloadErrror(Exception): pass def dump_response(response): return { 'headers': dict(response.headers), 'cookies': response.cookies.get_dict(), 'status_code': response.status_code, 'encoding': response.encoding, 'content': response.content, } def download(url, delay=None, update=None, **kwargs): update = update or {} def func(row): if delay is not None: time.sleep(delay) kw = call(kwargs, row) _url = url(row) response = requests.get(_url, **kw) if response.status_code == 200: value = dump_response(response) for k, fn in update.items(): value[k] = fn(row) yield _url, value else: raise DownloadErrror('Error while downloading %s, returned status code was %s, response content:\n\n%s' % ( _url, response.status_code, response.content, )) return func def get_content(data): content_type_header = data.get('headers', {}).get('Content-Type', '') content_type, params = cgi.parse_header(content_type_header) if content_type == 'text/html': soup = bs4.BeautifulSoup(data['content'], 'lxml') return data['content'].decode(soup.original_encoding) else: return data['content']
Fix duplicate cookie issue and header parsing
Fix duplicate cookie issue and header parsing
Python
agpl-3.0
sirex/databot,sirex/databot
python
## Code Before: import time import requests import bs4 from databot.recursive import call class DownloadErrror(Exception): pass def dump_response(response): return { 'headers': dict(response.headers), 'cookies': dict(response.cookies), 'status_code': response.status_code, 'encoding': response.encoding, 'content': response.content, } def download(url, delay=None, update=None, **kwargs): update = update or {} def func(row): if delay is not None: time.sleep(delay) kw = call(kwargs, row) _url = url(row) response = requests.get(_url, **kw) if response.status_code == 200: value = dump_response(response) for k, fn in update.items(): value[k] = fn(row) yield _url, value else: raise DownloadErrror('Error while downloading %s, returned status code was %s, response content:\n\n%s' % ( _url, response.status_code, response.content, )) return func def get_content(data): content_type = data.get('headers', {}).get('Content-Type') if content_type == 'text/html': soup = bs4.BeautifulSoup(data['content'], 'lxml') return data['content'].decode(soup.original_encoding) else: return data['content'] ## Instruction: Fix duplicate cookie issue and header parsing ## Code After: import time import requests import bs4 import cgi from databot.recursive import call class DownloadErrror(Exception): pass def dump_response(response): return { 'headers': dict(response.headers), 'cookies': response.cookies.get_dict(), 'status_code': response.status_code, 'encoding': response.encoding, 'content': response.content, } def download(url, delay=None, update=None, **kwargs): update = update or {} def func(row): if delay is not None: time.sleep(delay) kw = call(kwargs, row) _url = url(row) response = requests.get(_url, **kw) if response.status_code == 200: value = dump_response(response) for k, fn in update.items(): value[k] = fn(row) yield _url, value else: raise DownloadErrror('Error while downloading %s, returned status code was %s, response content:\n\n%s' % ( _url, response.status_code, response.content, )) return func def get_content(data): content_type_header = data.get('headers', {}).get('Content-Type', '') content_type, params = cgi.parse_header(content_type_header) if content_type == 'text/html': soup = bs4.BeautifulSoup(data['content'], 'lxml') return data['content'].decode(soup.original_encoding) else: return data['content']
955cb0d27ab52348b753c3edea731223e2631f50
Climate_Police/tests/test_plot_pollutants.py
Climate_Police/tests/test_plot_pollutants.py
import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): result=plot_pollutants(df, year, state) expected_explanation="Levels of pollutants plotted." self.assertTrue(result, expected_explanation) if __name__ == '__main__': unittest.main()
import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): fig, flag = plot_pollutants(df, year, state) expected_explanation="Levels of pollutants plotted." self.assertEqual(flag, expected_explanation) if __name__ == '__main__': unittest.main()
Add flag to plot_pollutant unit test
Add flag to plot_pollutant unit test also change assertTrue to assertEqual
Python
mit
abhisheksugam/Climate_Police
python
## Code Before: import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): result=plot_pollutants(df, year, state) expected_explanation="Levels of pollutants plotted." self.assertTrue(result, expected_explanation) if __name__ == '__main__': unittest.main() ## Instruction: Add flag to plot_pollutant unit test also change assertTrue to assertEqual ## Code After: import unittest from plot_pollutants import plot_pollutants import pandas as pd df = pd.read_csv("../data/pollution_us_2000_2016.csv") year="2010" state="Arizona" class TestPlot(unittest.TestCase): def testPlotPollutants(self): fig, flag = plot_pollutants(df, year, state) expected_explanation="Levels of pollutants plotted." self.assertEqual(flag, expected_explanation) if __name__ == '__main__': unittest.main()
248110080721c137f3b9a864c08f90156a34699c
os/osx.sh
os/osx.sh
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false # Disable smart dashes. defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false # ---------------------------------------------------------------------------- # Finder # ---------------------------------------------------------------------------- # Display the full POSIX path as the Finder window title defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Disable the warning when changing a file extension defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Show the ~/Library folder chflags nohidden ~/Library # ---------------------------------------------------------------------------- # Messages # ---------------------------------------------------------------------------- # Disable automatic emoji substitution. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false # Disable smart quotes. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false # Disable smart dashes. defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false # ---------------------------------------------------------------------------- # Finder # ---------------------------------------------------------------------------- # Display the full POSIX path as the Finder window title defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Disable the warning when changing a file extension defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Show the ~/Library folder chflags nohidden ~/Library # ---------------------------------------------------------------------------- # Messages # ---------------------------------------------------------------------------- # Disable automatic emoji substitution. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false # Disable smart quotes. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false # ---------------------------------------------------------------------------- # Brew # ---------------------------------------------------------------------------- # Update brew installation and packages. if is_installed brew; then e_arrow "Updating brew..." && brew update &> /dev/null e_arrow "Upgrading brew packages..." && brew upgrade --all &> /dev/null fi
Update brew when reinitializing an OSX installation
Update brew when reinitializing an OSX installation
Shell
unlicense
dmulholland/dotfiles,dmulholland/dotfiles
shell
## Code Before: defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false # Disable smart dashes. defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false # ---------------------------------------------------------------------------- # Finder # ---------------------------------------------------------------------------- # Display the full POSIX path as the Finder window title defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Disable the warning when changing a file extension defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Show the ~/Library folder chflags nohidden ~/Library # ---------------------------------------------------------------------------- # Messages # ---------------------------------------------------------------------------- # Disable automatic emoji substitution. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false # Disable smart quotes. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false ## Instruction: Update brew when reinitializing an OSX installation ## Code After: defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false # Disable smart dashes. defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false # ---------------------------------------------------------------------------- # Finder # ---------------------------------------------------------------------------- # Display the full POSIX path as the Finder window title defaults write com.apple.finder _FXShowPosixPathInTitle -bool true # Disable the warning when changing a file extension defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false # Show the ~/Library folder chflags nohidden ~/Library # ---------------------------------------------------------------------------- # Messages # ---------------------------------------------------------------------------- # Disable automatic emoji substitution. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false # Disable smart quotes. defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false # ---------------------------------------------------------------------------- # Brew # ---------------------------------------------------------------------------- # Update brew installation and packages. if is_installed brew; then e_arrow "Updating brew..." && brew update &> /dev/null e_arrow "Upgrading brew packages..." && brew upgrade --all &> /dev/null fi
5c1f57214986c07ea713ab252669199faa27e0f0
settings/ajax/updateapp.php
settings/ajax/updateapp.php
<?php /** * Copyright (c) 2013 Georg Ehrke [email protected] * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ OCP\JSON::checkAdminUser(); OCP\JSON::callCheck(); if (!array_key_exists('appid', $_POST)) { OCP\JSON::error(array( 'message' => 'No AppId given!' )); exit; } $appId = $_POST['appid']; if (!is_numeric($appId)) { $appId = OC_Appconfig::getValue($appId, 'ocsid', null); $isShipped = OC_App::isShipped($appId); if ($appId === null) { OCP\JSON::error(array( 'message' => 'No OCS-ID found for app!' )); exit; } } else { $isShipped = false; } $appId = OC_App::cleanAppId($appId); $result = OC_Installer::updateAppByOCSId($appId, $isShipped); if($result !== false) { OC_JSON::success(array('data' => array('appid' => $appId))); } else { $l = OC_L10N::get('settings'); OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); }
<?php /** * Copyright (c) 2013 Georg Ehrke [email protected] * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ OCP\JSON::checkAdminUser(); OCP\JSON::callCheck(); if (!array_key_exists('appid', $_POST)) { OCP\JSON::error(array( 'message' => 'No AppId given!' )); exit; } $appId = $_POST['appid']; if (!is_numeric($appId)) { $appId = OC_Appconfig::getValue($appId, 'ocsid', null); $isShipped = OC_App::isShipped($appId); if ($appId === null) { OCP\JSON::error(array( 'message' => 'No OCS-ID found for app!' )); exit; } } else { $isShipped = false; } $appId = OC_App::cleanAppId($appId); \OC_Config::setValue('maintenance', true); $result = OC_Installer::updateAppByOCSId($appId, $isShipped); \OC_Config::setValue('maintenance', false); if($result !== false) { OC_JSON::success(array('data' => array('appid' => $appId))); } else { $l = OC_L10N::get('settings'); OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); }
Set maintaince mode when updating an app from the app store
Set maintaince mode when updating an app from the app store
PHP
agpl-3.0
michaelletzgus/nextcloud-server,Ardinis/server,cernbox/core,Ardinis/server,owncloud/core,whitekiba/server,endsguy/server,sharidas/core,pollopolea/core,IljaN/core,lrytz/core,owncloud/core,xx621998xx/server,IljaN/core,pmattern/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,whitekiba/server,pollopolea/core,bluelml/core,xx621998xx/server,pmattern/server,cernbox/core,whitekiba/server,phil-davis/core,sharidas/core,Ardinis/server,pollopolea/core,pixelipo/server,lrytz/core,lrytz/core,andreas-p/nextcloud-server,IljaN/core,cernbox/core,jbicha/server,IljaN/core,nextcloud/server,michaelletzgus/nextcloud-server,michaelletzgus/nextcloud-server,jbicha/server,pixelipo/server,owncloud/core,pmattern/server,xx621998xx/server,michaelletzgus/nextcloud-server,endsguy/server,sharidas/core,andreas-p/nextcloud-server,pmattern/server,IljaN/core,owncloud/core,whitekiba/server,bluelml/core,lrytz/core,owncloud/core,pixelipo/server,pixelipo/server,bluelml/core,andreas-p/nextcloud-server,nextcloud/server,nextcloud/server,sharidas/core,pmattern/server,jbicha/server,nextcloud/server,jbicha/server,bluelml/core,endsguy/server,endsguy/server,xx621998xx/server,bluelml/core,sharidas/core,pixelipo/server,cernbox/core,whitekiba/server,endsguy/server,Ardinis/server,cernbox/core,xx621998xx/server,pollopolea/core,pollopolea/core,jbicha/server,Ardinis/server,lrytz/core
php
## Code Before: <?php /** * Copyright (c) 2013 Georg Ehrke [email protected] * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ OCP\JSON::checkAdminUser(); OCP\JSON::callCheck(); if (!array_key_exists('appid', $_POST)) { OCP\JSON::error(array( 'message' => 'No AppId given!' )); exit; } $appId = $_POST['appid']; if (!is_numeric($appId)) { $appId = OC_Appconfig::getValue($appId, 'ocsid', null); $isShipped = OC_App::isShipped($appId); if ($appId === null) { OCP\JSON::error(array( 'message' => 'No OCS-ID found for app!' )); exit; } } else { $isShipped = false; } $appId = OC_App::cleanAppId($appId); $result = OC_Installer::updateAppByOCSId($appId, $isShipped); if($result !== false) { OC_JSON::success(array('data' => array('appid' => $appId))); } else { $l = OC_L10N::get('settings'); OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); } ## Instruction: Set maintaince mode when updating an app from the app store ## Code After: <?php /** * Copyright (c) 2013 Georg Ehrke [email protected] * This file is licensed under the Affero General Public License version 3 or * later. * See the COPYING-README file. */ OCP\JSON::checkAdminUser(); OCP\JSON::callCheck(); if (!array_key_exists('appid', $_POST)) { OCP\JSON::error(array( 'message' => 'No AppId given!' )); exit; } $appId = $_POST['appid']; if (!is_numeric($appId)) { $appId = OC_Appconfig::getValue($appId, 'ocsid', null); $isShipped = OC_App::isShipped($appId); if ($appId === null) { OCP\JSON::error(array( 'message' => 'No OCS-ID found for app!' )); exit; } } else { $isShipped = false; } $appId = OC_App::cleanAppId($appId); \OC_Config::setValue('maintenance', true); $result = OC_Installer::updateAppByOCSId($appId, $isShipped); \OC_Config::setValue('maintenance', false); if($result !== false) { OC_JSON::success(array('data' => array('appid' => $appId))); } else { $l = OC_L10N::get('settings'); OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); }
04d6fa662ba791d57d1ae06484968940ddffeaf3
scube-cli.gemspec
scube-cli.gemspec
require File.expand_path('../lib/scube/cli/version', __FILE__) Gem::Specification.new do |s| s.name = 'scube-cli' s.version = Scube::CLI::VERSION.dup s.summary = 'CLI client for Scube' s.description = s.name s.license = 'BSD-3-Clause' s.homepage = 'https://rubygems.org/gems/scube-cli' s.authors = 'Thibault Jouan' s.email = '[email protected]' s.files = `git ls-files lib`.split $/ s.executable = 'scube' s.extra_rdoc_files = %w[README.md] s.add_dependency 'faraday', '~> 0.9' s.add_dependency 'faraday_middleware', '~> 0.9' s.add_development_dependency 'aruba', '~> 0.9' s.add_development_dependency 'cucumber', '~> 2.0' s.add_development_dependency 'rake', '~> 10.4' s.add_development_dependency 'vcr', '~> 2.9' end
require File.expand_path('../lib/scube/cli/version', __FILE__) Gem::Specification.new do |s| s.name = 'scube-cli' s.version = Scube::CLI::VERSION.dup s.summary = 'CLI client for Scube' s.description = s.name s.license = 'BSD-3-Clause' s.homepage = 'https://rubygems.org/gems/scube-cli' s.authors = 'Thibault Jouan' s.email = '[email protected]' s.files = `git ls-files lib`.split $/ s.executable = 'scube' s.extra_rdoc_files = %w[README.md] s.add_dependency 'faraday', '~> 0.9' s.add_dependency 'faraday_middleware', '~> 0.9' s.add_dependency 'id3tag', '~> 0.8' s.add_development_dependency 'aruba', '~> 0.9' s.add_development_dependency 'cucumber', '~> 2.0' s.add_development_dependency 'rake', '~> 10.4' s.add_development_dependency 'vcr', '~> 2.9' end
Declare id3tag gem as runtime dependency
Declare id3tag gem as runtime dependency
Ruby
bsd-3-clause
scube-dev/scube-cli
ruby
## Code Before: require File.expand_path('../lib/scube/cli/version', __FILE__) Gem::Specification.new do |s| s.name = 'scube-cli' s.version = Scube::CLI::VERSION.dup s.summary = 'CLI client for Scube' s.description = s.name s.license = 'BSD-3-Clause' s.homepage = 'https://rubygems.org/gems/scube-cli' s.authors = 'Thibault Jouan' s.email = '[email protected]' s.files = `git ls-files lib`.split $/ s.executable = 'scube' s.extra_rdoc_files = %w[README.md] s.add_dependency 'faraday', '~> 0.9' s.add_dependency 'faraday_middleware', '~> 0.9' s.add_development_dependency 'aruba', '~> 0.9' s.add_development_dependency 'cucumber', '~> 2.0' s.add_development_dependency 'rake', '~> 10.4' s.add_development_dependency 'vcr', '~> 2.9' end ## Instruction: Declare id3tag gem as runtime dependency ## Code After: require File.expand_path('../lib/scube/cli/version', __FILE__) Gem::Specification.new do |s| s.name = 'scube-cli' s.version = Scube::CLI::VERSION.dup s.summary = 'CLI client for Scube' s.description = s.name s.license = 'BSD-3-Clause' s.homepage = 'https://rubygems.org/gems/scube-cli' s.authors = 'Thibault Jouan' s.email = '[email protected]' s.files = `git ls-files lib`.split $/ s.executable = 'scube' s.extra_rdoc_files = %w[README.md] s.add_dependency 'faraday', '~> 0.9' s.add_dependency 'faraday_middleware', '~> 0.9' s.add_dependency 'id3tag', '~> 0.8' s.add_development_dependency 'aruba', '~> 0.9' s.add_development_dependency 'cucumber', '~> 2.0' s.add_development_dependency 'rake', '~> 10.4' s.add_development_dependency 'vcr', '~> 2.9' end
81dfb5cb952fbca90882bd39e76887f0fa6479eb
msmexplorer/tests/test_msm_plot.py
msmexplorer/tests/test_msm_plot.py
import numpy as np from msmbuilder.msm import MarkovStateModel, BayesianMarkovStateModel from matplotlib.axes import SubplotBase from seaborn.apionly import JointGrid from ..plots import plot_pop_resids, plot_msm_network, plot_timescales rs = np.random.RandomState(42) data = rs.randint(low=0, high=10, size=100000) msm = MarkovStateModel() msm.fit(data) bmsm = BayesianMarkovStateModel() bmsm.fit(data) def test_plot_pop_resids(): ax = plot_pop_resids(msm) assert isinstance(ax, JointGrid) def test_plot_msm_network(): ax = plot_msm_network(msm) assert isinstance(ax, SubplotBase) def test_plot_timescales_msm(): ax = plot_timescales(msm, n_timescales=3, xlabel='x', ylabel='y') assert isinstance(ax, SubplotBase) def test_plot_timescales_bmsm(): ax = plot_timescales(bmsm) assert isinstance(ax, SubplotBase)
import numpy as np from msmbuilder.msm import MarkovStateModel, BayesianMarkovStateModel from matplotlib.axes import SubplotBase from seaborn.apionly import JointGrid from ..plots import plot_pop_resids, plot_msm_network, plot_timescales, plot_implied_timescales rs = np.random.RandomState(42) data = rs.randint(low=0, high=10, size=100000) msm = MarkovStateModel() msm.fit(data) bmsm = BayesianMarkovStateModel() bmsm.fit(data) def test_plot_pop_resids(): ax = plot_pop_resids(msm) assert isinstance(ax, JointGrid) def test_plot_msm_network(): ax = plot_msm_network(msm) assert isinstance(ax, SubplotBase) def test_plot_timescales_msm(): ax = plot_timescales(msm, n_timescales=3, xlabel='x', ylabel='y') assert isinstance(ax, SubplotBase) def test_plot_timescales_bmsm(): ax = plot_timescales(bmsm) assert isinstance(ax, SubplotBase) def test_plot_implied_timescales(): lag_times = [1, 10, 50, 100, 200, 250, 500] msm_objs = [] for lag in lag_times: # Construct MSM msm = MarkovStateModel(lag_time=lag, n_timescales=5) msm.fit(clustered_trajs) msm_objs.append(msm) ax = plot_implied_timescales(msm_objs) assert isinstance(ax, SubplotBase)
Add test for implied timescales plot
Add test for implied timescales plot
Python
mit
msmexplorer/msmexplorer,msmexplorer/msmexplorer
python
## Code Before: import numpy as np from msmbuilder.msm import MarkovStateModel, BayesianMarkovStateModel from matplotlib.axes import SubplotBase from seaborn.apionly import JointGrid from ..plots import plot_pop_resids, plot_msm_network, plot_timescales rs = np.random.RandomState(42) data = rs.randint(low=0, high=10, size=100000) msm = MarkovStateModel() msm.fit(data) bmsm = BayesianMarkovStateModel() bmsm.fit(data) def test_plot_pop_resids(): ax = plot_pop_resids(msm) assert isinstance(ax, JointGrid) def test_plot_msm_network(): ax = plot_msm_network(msm) assert isinstance(ax, SubplotBase) def test_plot_timescales_msm(): ax = plot_timescales(msm, n_timescales=3, xlabel='x', ylabel='y') assert isinstance(ax, SubplotBase) def test_plot_timescales_bmsm(): ax = plot_timescales(bmsm) assert isinstance(ax, SubplotBase) ## Instruction: Add test for implied timescales plot ## Code After: import numpy as np from msmbuilder.msm import MarkovStateModel, BayesianMarkovStateModel from matplotlib.axes import SubplotBase from seaborn.apionly import JointGrid from ..plots import plot_pop_resids, plot_msm_network, plot_timescales, plot_implied_timescales rs = np.random.RandomState(42) data = rs.randint(low=0, high=10, size=100000) msm = MarkovStateModel() msm.fit(data) bmsm = BayesianMarkovStateModel() bmsm.fit(data) def test_plot_pop_resids(): ax = plot_pop_resids(msm) assert isinstance(ax, JointGrid) def test_plot_msm_network(): ax = plot_msm_network(msm) assert isinstance(ax, SubplotBase) def test_plot_timescales_msm(): ax = plot_timescales(msm, n_timescales=3, xlabel='x', ylabel='y') assert isinstance(ax, SubplotBase) def test_plot_timescales_bmsm(): ax = plot_timescales(bmsm) assert isinstance(ax, SubplotBase) def test_plot_implied_timescales(): lag_times = [1, 10, 50, 100, 200, 250, 500] msm_objs = [] for lag in lag_times: # Construct MSM msm = MarkovStateModel(lag_time=lag, n_timescales=5) msm.fit(clustered_trajs) msm_objs.append(msm) ax = plot_implied_timescales(msm_objs) assert isinstance(ax, SubplotBase)
28b481287f2dbc2ba2547189b57dd47f1f16d497
app/controllers/letter_bomb/mailers_controller.rb
app/controllers/letter_bomb/mailers_controller.rb
module LetterBomb class MailersController < ApplicationController def index @mailers = LetterBomb::Preview.previews end def show klass = params[:mailer_class] @action = params[:mailer_action] @mail = klass.constantize.preview_action(@action) params[:format] ||= @mail.multipart? ? "html" : "text" respond_to do |format| format.html format.text { render formats: [:html], content_type: 'text/html' } end end private def body_part return @mail unless @mail.multipart? content_type = Rack::Mime.mime_type(".#{params[:format]}") if @mail.respond_to?(:all_parts) @mail.all_parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first else @mail.parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first end end helper_method :body_part def html_template? params[:format] == 'html' end helper_method :html_template? end end
module LetterBomb class MailersController < ApplicationController def index @mailers = LetterBomb::Preview.previews end def show klass = params[:mailer_class] @action = params[:mailer_action] @mail = klass.constantize.preview_action(@action) params[:format] ||= content_type_html? ? "html" : "text" respond_to do |format| format.html format.text { render formats: [:html], content_type: 'text/html' } end end private def content_type_html? @mail.content_type.match("text/html") end def body_part return @mail unless @mail.multipart? content_type = Rack::Mime.mime_type(".#{params[:format]}") if @mail.respond_to?(:all_parts) @mail.all_parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first else @mail.parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first end end helper_method :body_part def html_template? params[:format] == 'html' end helper_method :html_template? end end
Check message content type to determine default rendered format.
Check message content type to determine default rendered format.
Ruby
mit
ags/letter_bomb,ags/letter_bomb,ags/letter_bomb
ruby
## Code Before: module LetterBomb class MailersController < ApplicationController def index @mailers = LetterBomb::Preview.previews end def show klass = params[:mailer_class] @action = params[:mailer_action] @mail = klass.constantize.preview_action(@action) params[:format] ||= @mail.multipart? ? "html" : "text" respond_to do |format| format.html format.text { render formats: [:html], content_type: 'text/html' } end end private def body_part return @mail unless @mail.multipart? content_type = Rack::Mime.mime_type(".#{params[:format]}") if @mail.respond_to?(:all_parts) @mail.all_parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first else @mail.parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first end end helper_method :body_part def html_template? params[:format] == 'html' end helper_method :html_template? end end ## Instruction: Check message content type to determine default rendered format. ## Code After: module LetterBomb class MailersController < ApplicationController def index @mailers = LetterBomb::Preview.previews end def show klass = params[:mailer_class] @action = params[:mailer_action] @mail = klass.constantize.preview_action(@action) params[:format] ||= content_type_html? ? "html" : "text" respond_to do |format| format.html format.text { render formats: [:html], content_type: 'text/html' } end end private def content_type_html? @mail.content_type.match("text/html") end def body_part return @mail unless @mail.multipart? content_type = Rack::Mime.mime_type(".#{params[:format]}") if @mail.respond_to?(:all_parts) @mail.all_parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first else @mail.parts.find { |part| part.content_type.match(content_type) } || @mail.parts.first end end helper_method :body_part def html_template? params[:format] == 'html' end helper_method :html_template? end end
4680be1e6f5a6bbf4d073f7b60ee161a22c76933
lib/miq_automation_engine/service_models/miq_ae_service_service_template.rb
lib/miq_automation_engine/service_models/miq_ae_service_service_template.rb
module MiqAeMethodService class MiqAeServiceServiceTemplate < MiqAeServiceModelBase expose :service_templates, :association => true expose :services, :association => true expose :service_resources, :association => true expose :tenant, :association => true expose :provision_request def owner=(owner) if owner.nil? || owner.kind_of?(MiqAeMethodService::MiqAeServiceUser) if owner.nil? @object.evm_owner = nil else @object.evm_owner = User.find_by_id(owner.id) end @object.save end end def group=(group) if group.nil? || group.kind_of?(MiqAeMethodService::MiqAeServiceMiqGroup) if group.nil? @object.miq_group = nil else @object.miq_group = MiqGroup.find_by_id(group.id) end @object.save end end end end
module MiqAeMethodService class MiqAeServiceServiceTemplate < MiqAeServiceModelBase expose :service_templates, :association => true expose :services, :association => true expose :service_resources, :association => true expose :tenant, :association => true expose :provision_request def owner=(owner) if owner.nil? || owner.kind_of?(MiqAeMethodService::MiqAeServiceUser) if owner.nil? @object.evm_owner = nil else @object.evm_owner = User.find_by_id(owner.id) end @object.save end end def group=(group) if group.nil? || group.kind_of?(MiqAeMethodService::MiqAeServiceMiqGroup) if group.nil? @object.miq_group = nil else @object.miq_group = MiqGroup.find_by_id(group.id) end @object.save end end def provision_request(user, options) ar_method do wrap_results(@object.provision_request(user.instance_variable_get("@object"), options)) end end end end
Use user object instead of userid
Use user object instead of userid (transferred from ManageIQ/manageiq@bc8f06be80d4efcaa5b29a1e54c279a9132b84da)
Ruby
apache-2.0
bdunne/manageiq-automation_engine
ruby
## Code Before: module MiqAeMethodService class MiqAeServiceServiceTemplate < MiqAeServiceModelBase expose :service_templates, :association => true expose :services, :association => true expose :service_resources, :association => true expose :tenant, :association => true expose :provision_request def owner=(owner) if owner.nil? || owner.kind_of?(MiqAeMethodService::MiqAeServiceUser) if owner.nil? @object.evm_owner = nil else @object.evm_owner = User.find_by_id(owner.id) end @object.save end end def group=(group) if group.nil? || group.kind_of?(MiqAeMethodService::MiqAeServiceMiqGroup) if group.nil? @object.miq_group = nil else @object.miq_group = MiqGroup.find_by_id(group.id) end @object.save end end end end ## Instruction: Use user object instead of userid (transferred from ManageIQ/manageiq@bc8f06be80d4efcaa5b29a1e54c279a9132b84da) ## Code After: module MiqAeMethodService class MiqAeServiceServiceTemplate < MiqAeServiceModelBase expose :service_templates, :association => true expose :services, :association => true expose :service_resources, :association => true expose :tenant, :association => true expose :provision_request def owner=(owner) if owner.nil? || owner.kind_of?(MiqAeMethodService::MiqAeServiceUser) if owner.nil? @object.evm_owner = nil else @object.evm_owner = User.find_by_id(owner.id) end @object.save end end def group=(group) if group.nil? || group.kind_of?(MiqAeMethodService::MiqAeServiceMiqGroup) if group.nil? @object.miq_group = nil else @object.miq_group = MiqGroup.find_by_id(group.id) end @object.save end end def provision_request(user, options) ar_method do wrap_results(@object.provision_request(user.instance_variable_get("@object"), options)) end end end end
efd042cda8dba02e7e9868a02bfa1aa8d0ca917c
_sass/_page.scss
_sass/_page.scss
.page { vm: 100vh; vmin: 100vh; min-height: 100vh; padding: 100px 3% 0 3%; } #home { text-align: center; } .heading { background: $purple; color: white; text-align: center; } .thanks { text-align: center; } .signature { color: $purple; font-family: $heading-font-family; } .scroll-help-container { bottom: 25px; position: absolute; left: 50%; z-index: -1; } .scroll-help { position: relative; left: -50%; }
.page { vm: 100vh; vmin: 50vh; margin: 2em 0; min-height: 50vh; padding: 100px 3% 0 3%; } #home { text-align: center; } .heading { background: $purple; color: white; text-align: center; } .thanks { text-align: center; } .signature { color: $purple; font-family: $heading-font-family; } .scroll-help-container { bottom: 25px; position: absolute; left: 50%; z-index: -1; } .scroll-help { position: relative; left: -50%; }
Add some margin; max height 50vh instead of 100vh
Add some margin; max height 50vh instead of 100vh
SCSS
mit
rhewitt22/jessie,rhewitt22/jessie
scss
## Code Before: .page { vm: 100vh; vmin: 100vh; min-height: 100vh; padding: 100px 3% 0 3%; } #home { text-align: center; } .heading { background: $purple; color: white; text-align: center; } .thanks { text-align: center; } .signature { color: $purple; font-family: $heading-font-family; } .scroll-help-container { bottom: 25px; position: absolute; left: 50%; z-index: -1; } .scroll-help { position: relative; left: -50%; } ## Instruction: Add some margin; max height 50vh instead of 100vh ## Code After: .page { vm: 100vh; vmin: 50vh; margin: 2em 0; min-height: 50vh; padding: 100px 3% 0 3%; } #home { text-align: center; } .heading { background: $purple; color: white; text-align: center; } .thanks { text-align: center; } .signature { color: $purple; font-family: $heading-font-family; } .scroll-help-container { bottom: 25px; position: absolute; left: 50%; z-index: -1; } .scroll-help { position: relative; left: -50%; }
1d8b1cbf21e67f651e5aaea495a1e2fd9cdb55b2
lib/tasks/check.rake
lib/tasks/check.rake
require 'origin_detector' namespace :bruce do desc "Check many gems are created locally in Australia" task :check => :environment do |t| # Call the AussieDetector aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile") config = Bruce::Config.new config.save(aussieDetector.how_australian?) # Save into config/bruce_output.yml end end
require 'origin_detector' namespace :bruce do desc "Check many gems are created locally in Australia" task :check => :environment do |t| # Call the AussieDetector aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile") config = Bruce::Config.new result = aussieDetector.how_australian? config.save(result) # Save into config/bruce_output.yml puts result end end
Print the result after doing the rake task
Print the result after doing the rake task
Ruby
mit
map7/bruce,map7/bruce
ruby
## Code Before: require 'origin_detector' namespace :bruce do desc "Check many gems are created locally in Australia" task :check => :environment do |t| # Call the AussieDetector aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile") config = Bruce::Config.new config.save(aussieDetector.how_australian?) # Save into config/bruce_output.yml end end ## Instruction: Print the result after doing the rake task ## Code After: require 'origin_detector' namespace :bruce do desc "Check many gems are created locally in Australia" task :check => :environment do |t| # Call the AussieDetector aussieDetector = OriginDetector::AussieDetector.new("#{Rails.root}/Gemfile") config = Bruce::Config.new result = aussieDetector.how_australian? config.save(result) # Save into config/bruce_output.yml puts result end end
c11f3ba686a497e5a6a35e868d5a6b3a94824395
config/nginx.conf.erb
config/nginx.conf.erb
daemon off; #Heroku dynos have at least 4 cores. worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; events { use epoll; accept_mutex on; worker_connections 1024; } http { gzip on; gzip_comp_level 2; gzip_min_length 512; server_tokens off; log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id'; access_log logs/nginx/access.log l2met; error_log logs/nginx/error.log; include mime.types; default_type application/octet-stream; sendfile on; #Must read the body in 5 seconds. client_body_timeout 5; upstream app_server { server unix:/tmp/nginx.socket fail_timeout=0; } server { listen <%= ENV["PORT"] %>; server_name _; keepalive_timeout 5; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://app_server; } } }
daemon off; #Heroku dynos have at least 4 cores. worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; events { use epoll; accept_mutex on; worker_connections 1024; } http { gzip on; gzip_comp_level 2; gzip_min_length 512; server_tokens off; log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id'; access_log logs/nginx/access.log l2met; error_log logs/nginx/error.log; include mime.types; default_type application/octet-stream; sendfile on; #Must read the body in 5 seconds. client_body_timeout 5; upstream app_server { server unix:/tmp/nginx.socket fail_timeout=0; } server { listen <%= ENV["PORT"] %>; server_name _; keepalive_timeout 5; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; if ($http_x_forwarded_proto != 'https') { rewrite ^ https://$host$request_uri? permanent; } proxy_pass http://app_server; } } }
Add rewrite rule that requires https connections
Add rewrite rule that requires https connections
HTML+ERB
mit
gregburek/heroku-tls-auth-nginx-sample,gregburek/heroku-tls-auth-nginx-sample
html+erb
## Code Before: daemon off; #Heroku dynos have at least 4 cores. worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; events { use epoll; accept_mutex on; worker_connections 1024; } http { gzip on; gzip_comp_level 2; gzip_min_length 512; server_tokens off; log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id'; access_log logs/nginx/access.log l2met; error_log logs/nginx/error.log; include mime.types; default_type application/octet-stream; sendfile on; #Must read the body in 5 seconds. client_body_timeout 5; upstream app_server { server unix:/tmp/nginx.socket fail_timeout=0; } server { listen <%= ENV["PORT"] %>; server_name _; keepalive_timeout 5; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_pass http://app_server; } } } ## Instruction: Add rewrite rule that requires https connections ## Code After: daemon off; #Heroku dynos have at least 4 cores. worker_processes <%= ENV['NGINX_WORKERS'] || 4 %>; events { use epoll; accept_mutex on; worker_connections 1024; } http { gzip on; gzip_comp_level 2; gzip_min_length 512; server_tokens off; log_format l2met 'measure#nginx.service=$request_time request_id=$http_x_request_id'; access_log logs/nginx/access.log l2met; error_log logs/nginx/error.log; include mime.types; default_type application/octet-stream; sendfile on; #Must read the body in 5 seconds. client_body_timeout 5; upstream app_server { server unix:/tmp/nginx.socket fail_timeout=0; } server { listen <%= ENV["PORT"] %>; server_name _; keepalive_timeout 5; location / { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; if ($http_x_forwarded_proto != 'https') { rewrite ^ https://$host$request_uri? permanent; } proxy_pass http://app_server; } } }
5c7904797847cf09e750013db5da09bcc7a9905e
README.md
README.md
Installation ------------ Add the following lines to ~/.sbt/plugins/build.sbt: resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" libraryDependencies += "com.github.mpeltonen" %% "sbt-idea" % "0.10.0-SNAPSHOT" Usage ----- Run `gen-idea` from a SBT shell.
Requirements ------------ * [SBT 0.10+](https://github.com/harrah/xsbt/wiki) Installation ------------ Add the following lines to ~/.sbt/plugins/build.sbt: resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" libraryDependencies += "com.github.mpeltonen" %% "sbt-idea" % "0.10.0-SNAPSHOT" Usage ----- Run `gen-idea` from a SBT shell.
Add sbt 0.10 as requirement to readme
Add sbt 0.10 as requirement to readme
Markdown
bsd-3-clause
mpeltonen/sbt-idea
markdown
## Code Before: Installation ------------ Add the following lines to ~/.sbt/plugins/build.sbt: resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" libraryDependencies += "com.github.mpeltonen" %% "sbt-idea" % "0.10.0-SNAPSHOT" Usage ----- Run `gen-idea` from a SBT shell. ## Instruction: Add sbt 0.10 as requirement to readme ## Code After: Requirements ------------ * [SBT 0.10+](https://github.com/harrah/xsbt/wiki) Installation ------------ Add the following lines to ~/.sbt/plugins/build.sbt: resolvers += "sbt-idea-repo" at "http://mpeltonen.github.com/maven/" libraryDependencies += "com.github.mpeltonen" %% "sbt-idea" % "0.10.0-SNAPSHOT" Usage ----- Run `gen-idea` from a SBT shell.
1613925688cc4a5f8de9f15cd5aeda0aacd9eca7
lib/lazy/attribute/lazy_attribute.rb
lib/lazy/attribute/lazy_attribute.rb
module Lazy module Attribute module ClassMethods def lazy_attribute(attribute, options = {}) default_options = { raise_error: false, key: [], create_if_not_found: false } options.reverse_merge!(default_options) singleton_class.instance_eval do define_method(options[:key]) do |identifier| send(dynamic_find_method(options), { attribute.to_sym => identifier }) end end end def dynamic_find_method(options) create ='or_create' if options[:create_if_not_found] error = '!' if options[:raise_error] method = ['find', create, 'by'].compact.join('_') [method, error].compact.join('') end end end end
module Lazy module Attribute module ClassMethods # Including the lazy_attribute gem to the model # # @param attribute [Symbol] # @param [Hash] options # @option options [Symbol] :key (:default) if the key parameter is not set, it will take the default as the key # @option options [Boolean] :create_if_not_found (false) if the parameter is set as true, will create the record if the record is not available # @option options [Boolean] :raise_error (false) will raise exceptions # ActiveRecord::RecordNotFoundException if the value set as true and the record not present <br> # ActiveRecord::RecordInvalid: Validation failed exception if any validation error thrown at the time of creation missing record # # @return [none] def lazy_attribute(attribute, options = {}) default_options = { raise_error: false, key: [], create_if_not_found: false } options.reverse_merge!(default_options) singleton_class.instance_eval do define_method(options[:key]) do |identifier| send(dynamic_find_method(options), { attribute.to_sym => identifier }) end end end def dynamic_find_method(options) create ='or_create' if options[:create_if_not_found] error = '!' if options[:raise_error] method = ['find', create, 'by'].compact.join('_') [method, error].compact.join('') end end end end
Add docs for better usability
Add docs for better usability
Ruby
mit
selvachezhian/lazy-attribute
ruby
## Code Before: module Lazy module Attribute module ClassMethods def lazy_attribute(attribute, options = {}) default_options = { raise_error: false, key: [], create_if_not_found: false } options.reverse_merge!(default_options) singleton_class.instance_eval do define_method(options[:key]) do |identifier| send(dynamic_find_method(options), { attribute.to_sym => identifier }) end end end def dynamic_find_method(options) create ='or_create' if options[:create_if_not_found] error = '!' if options[:raise_error] method = ['find', create, 'by'].compact.join('_') [method, error].compact.join('') end end end end ## Instruction: Add docs for better usability ## Code After: module Lazy module Attribute module ClassMethods # Including the lazy_attribute gem to the model # # @param attribute [Symbol] # @param [Hash] options # @option options [Symbol] :key (:default) if the key parameter is not set, it will take the default as the key # @option options [Boolean] :create_if_not_found (false) if the parameter is set as true, will create the record if the record is not available # @option options [Boolean] :raise_error (false) will raise exceptions # ActiveRecord::RecordNotFoundException if the value set as true and the record not present <br> # ActiveRecord::RecordInvalid: Validation failed exception if any validation error thrown at the time of creation missing record # # @return [none] def lazy_attribute(attribute, options = {}) default_options = { raise_error: false, key: [], create_if_not_found: false } options.reverse_merge!(default_options) singleton_class.instance_eval do define_method(options[:key]) do |identifier| send(dynamic_find_method(options), { attribute.to_sym => identifier }) end end end def dynamic_find_method(options) create ='or_create' if options[:create_if_not_found] error = '!' if options[:raise_error] method = ['find', create, 'by'].compact.join('_') [method, error].compact.join('') end end end end
6ecfb54eec58e078a3e405fc6652576fd9a3f229
dplace_app/static/partials/search/language.html
dplace_app/static/partials/search/language.html
<div ng-controller="LanguageCtrl"> <h4>Search by Language Family / Phylogeny</h4> <form class="form-inline" role="form"> <div class="panel panel-default" ng-repeat="languageFilter in language.languageFilters"> <div class="panel-heading"> <div class="row"> <div ng-repeat="levelObject in language.levels" class="form-group col-xs-4"> <select ng-model="languageFilter[levelObject.level - 1].selectedItem" class="form-control" style="width:100%" ng-change="selectionChanged(languageFilter,levelObject)" ng-options="item.name for item in languageFilter[levelObject.level - 1].items" > <option value="">{{ levelObject.name }}</option> </select> </div> </div> </div> <div class="panel-body"> <div ng-repeat="classification in languageFilter.classifications"> <span class="language-label">{{ classification.language.name }}</span> <input class="pull-right" type="checkbox" ng-model="classification.isSelected"> </div> </div> </div> <div> <button class="btn btn-primary form-control" ng-disabled="true" ng-click="doSearch()">{{ searchButton.text }} (not yet functional)</button> </div> </form> </div>
<div ng-controller="LanguageCtrl"> <h4>Search by Language Family</h4> <form class="form-inline" role="form"> <div class="panel panel-default" ng-repeat="languageFilter in language.languageFilters"> <div class="panel-heading"> <div class="row"> <div ng-repeat="levelObject in language.levels" class="form-group col-xs-4"> <select ng-model="languageFilter[levelObject.level - 1].selectedItem" class="form-control" style="width:100%" ng-change="selectionChanged(languageFilter,levelObject)" ng-options="item.name for item in languageFilter[levelObject.level - 1].items" > <option value="">{{ levelObject.name }}</option> </select> </div> </div> </div> <div class="panel-body"> <div ng-repeat="classification in languageFilter.classifications"> <span class="language-label">{{ classification.language.name }}</span> <input class="pull-right" type="checkbox" ng-model="classification.isSelected"> </div> </div> </div> <div> <button class="btn btn-primary form-control" ng-disabled="true" ng-click="doSearch()">{{ searchButton.text }} (not yet functional)</button> </div> </form> </div>
Remove phylogeny from search title
Remove phylogeny from search title
HTML
mit
shh-dlce/dplace,stefelisabeth/dplace,shh-dlce/dplace,D-PLACE/dplace,NESCent/dplace,D-PLACE/dplace,shh-dlce/dplace,D-PLACE/dplace,D-PLACE/dplace,NESCent/dplace,stefelisabeth/dplace,NESCent/dplace,stefelisabeth/dplace,shh-dlce/dplace,stefelisabeth/dplace,NESCent/dplace
html
## Code Before: <div ng-controller="LanguageCtrl"> <h4>Search by Language Family / Phylogeny</h4> <form class="form-inline" role="form"> <div class="panel panel-default" ng-repeat="languageFilter in language.languageFilters"> <div class="panel-heading"> <div class="row"> <div ng-repeat="levelObject in language.levels" class="form-group col-xs-4"> <select ng-model="languageFilter[levelObject.level - 1].selectedItem" class="form-control" style="width:100%" ng-change="selectionChanged(languageFilter,levelObject)" ng-options="item.name for item in languageFilter[levelObject.level - 1].items" > <option value="">{{ levelObject.name }}</option> </select> </div> </div> </div> <div class="panel-body"> <div ng-repeat="classification in languageFilter.classifications"> <span class="language-label">{{ classification.language.name }}</span> <input class="pull-right" type="checkbox" ng-model="classification.isSelected"> </div> </div> </div> <div> <button class="btn btn-primary form-control" ng-disabled="true" ng-click="doSearch()">{{ searchButton.text }} (not yet functional)</button> </div> </form> </div> ## Instruction: Remove phylogeny from search title ## Code After: <div ng-controller="LanguageCtrl"> <h4>Search by Language Family</h4> <form class="form-inline" role="form"> <div class="panel panel-default" ng-repeat="languageFilter in language.languageFilters"> <div class="panel-heading"> <div class="row"> <div ng-repeat="levelObject in language.levels" class="form-group col-xs-4"> <select ng-model="languageFilter[levelObject.level - 1].selectedItem" class="form-control" style="width:100%" ng-change="selectionChanged(languageFilter,levelObject)" ng-options="item.name for item in languageFilter[levelObject.level - 1].items" > <option value="">{{ levelObject.name }}</option> </select> </div> </div> </div> <div class="panel-body"> <div ng-repeat="classification in languageFilter.classifications"> <span class="language-label">{{ classification.language.name }}</span> <input class="pull-right" type="checkbox" ng-model="classification.isSelected"> </div> </div> </div> <div> <button class="btn btn-primary form-control" ng-disabled="true" ng-click="doSearch()">{{ searchButton.text }} (not yet functional)</button> </div> </form> </div>
ae678d528b774cb98827306c12f70386df23ffe4
src/Oro/Bundle/WorkflowBundle/Resources/public/js/datagrid/workflow-action-permissions-row-view.js
src/Oro/Bundle/WorkflowBundle/Resources/public/js/datagrid/workflow-action-permissions-row-view.js
define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var _ = require('underscore'); var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permissions-field-view'); WorkflowActionPermissionsRowView = ActionPermissionsRowView.extend({ fieldItemView: FieldView, onAccessLevelChange: function(model) { // override to prevent marking 'Entity' permissions grid tabs as changed mediator.trigger('securityAccessLevelsComponent:link:click', { accessLevel: model.get('access_level'), identityId: model.get('identity'), permissionName: model.get('name') }); } }); return WorkflowActionPermissionsRowView; });
define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permissions-field-view'); WorkflowActionPermissionsRowView = ActionPermissionsRowView.extend({ fieldItemView: FieldView, onAccessLevelChange: function(model) { // override to prevent marking 'Entity' permissions grid tabs as changed mediator.trigger('securityAccessLevelsComponent:link:click', { accessLevel: model.get('access_level'), identityId: model.get('identity'), permissionName: model.get('name') }); } }); return WorkflowActionPermissionsRowView; });
Fix fields ACL JS component to support access_level_route parameter - fix CS
BB-5745: Fix fields ACL JS component to support access_level_route parameter - fix CS
JavaScript
mit
geoffroycochard/platform,Djamy/platform,Djamy/platform,Djamy/platform,orocrm/platform,orocrm/platform,geoffroycochard/platform,geoffroycochard/platform,orocrm/platform
javascript
## Code Before: define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var _ = require('underscore'); var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permissions-field-view'); WorkflowActionPermissionsRowView = ActionPermissionsRowView.extend({ fieldItemView: FieldView, onAccessLevelChange: function(model) { // override to prevent marking 'Entity' permissions grid tabs as changed mediator.trigger('securityAccessLevelsComponent:link:click', { accessLevel: model.get('access_level'), identityId: model.get('identity'), permissionName: model.get('name') }); } }); return WorkflowActionPermissionsRowView; }); ## Instruction: BB-5745: Fix fields ACL JS component to support access_level_route parameter - fix CS ## Code After: define(function(require) { 'use strict'; var WorkflowActionPermissionsRowView; var mediator = require('oroui/js/mediator'); var ActionPermissionsRowView = require('orouser/js/datagrid/action-permissions-row-view'); var FieldView = require('./workflow-action-permissions-field-view'); WorkflowActionPermissionsRowView = ActionPermissionsRowView.extend({ fieldItemView: FieldView, onAccessLevelChange: function(model) { // override to prevent marking 'Entity' permissions grid tabs as changed mediator.trigger('securityAccessLevelsComponent:link:click', { accessLevel: model.get('access_level'), identityId: model.get('identity'), permissionName: model.get('name') }); } }); return WorkflowActionPermissionsRowView; });
e1613dfa85f53d5c397e71577ab37ca98e44ab4f
test/Unit/ProjectCodeTest.php
test/Unit/ProjectCodeTest.php
<?php declare(strict_types=1); /** * Copyright (c) 2017 Andreas Möller. * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @link https://github.com/localheinz/test-util */ namespace Localheinz\Test\Util\Test\Unit; use Localheinz\Test\Util\Helper; use Localheinz\Test\Util\Test\Fixture; use PHPUnit\Framework; final class ProjectCodeTest extends Framework\TestCase { use Helper; public function testProductionClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/../../src'); } public function testProductionClassesHaveTests() { $this->assertClassesHaveTests( __DIR__ . '/../../src', 'Localheinz\\Test\\Util\\', 'Localheinz\\Test\\Util\\Test\\Unit\\' ); } public function testTestClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/..', [ Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\AlsoNeitherAbstractNorFinal::class, Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\NeitherAbstractNorFinal::class, Fixture\ClassIsAbstract\ConcreteClass::class, Fixture\ClassIsAbstractOrFinal\NeitherAbstractNorFinalClass::class, Fixture\ClassIsFinal\NeitherAbstractNorFinalClass::class, ]); } }
<?php declare(strict_types=1); /** * Copyright (c) 2017 Andreas Möller. * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @link https://github.com/localheinz/test-util */ namespace Localheinz\Test\Util\Test\Unit; use Localheinz\Test\Util\Helper; use Localheinz\Test\Util\Test\Fixture; use PHPUnit\Framework; final class ProjectCodeTest extends Framework\TestCase { use Helper; public function testProductionClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/../../src'); } public function testProductionClassesHaveTests() { $this->assertClassesHaveTests( __DIR__ . '/../../src', 'Localheinz\\Test\\Util\\', 'Localheinz\\Test\\Util\\Test\\Unit\\' ); } public function testTestClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/..', [ Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\AlsoNeitherAbstractNorFinal::class, Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\NeitherAbstractNorFinal::class, Fixture\ClassIsAbstract\ConcreteClass::class, Fixture\ClassIsFinal\NeitherAbstractNorFinalClass::class, ]); } }
Remove reference to non-existent class
Fix: Remove reference to non-existent class
PHP
mit
localheinz/test-util
php
## Code Before: <?php declare(strict_types=1); /** * Copyright (c) 2017 Andreas Möller. * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @link https://github.com/localheinz/test-util */ namespace Localheinz\Test\Util\Test\Unit; use Localheinz\Test\Util\Helper; use Localheinz\Test\Util\Test\Fixture; use PHPUnit\Framework; final class ProjectCodeTest extends Framework\TestCase { use Helper; public function testProductionClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/../../src'); } public function testProductionClassesHaveTests() { $this->assertClassesHaveTests( __DIR__ . '/../../src', 'Localheinz\\Test\\Util\\', 'Localheinz\\Test\\Util\\Test\\Unit\\' ); } public function testTestClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/..', [ Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\AlsoNeitherAbstractNorFinal::class, Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\NeitherAbstractNorFinal::class, Fixture\ClassIsAbstract\ConcreteClass::class, Fixture\ClassIsAbstractOrFinal\NeitherAbstractNorFinalClass::class, Fixture\ClassIsFinal\NeitherAbstractNorFinalClass::class, ]); } } ## Instruction: Fix: Remove reference to non-existent class ## Code After: <?php declare(strict_types=1); /** * Copyright (c) 2017 Andreas Möller. * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. * * @link https://github.com/localheinz/test-util */ namespace Localheinz\Test\Util\Test\Unit; use Localheinz\Test\Util\Helper; use Localheinz\Test\Util\Test\Fixture; use PHPUnit\Framework; final class ProjectCodeTest extends Framework\TestCase { use Helper; public function testProductionClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/../../src'); } public function testProductionClassesHaveTests() { $this->assertClassesHaveTests( __DIR__ . '/../../src', 'Localheinz\\Test\\Util\\', 'Localheinz\\Test\\Util\\Test\\Unit\\' ); } public function testTestClassesAreAbstractOrFinal() { $this->assertClassesAreAbstractOrFinal(__DIR__ . '/..', [ Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\AlsoNeitherAbstractNorFinal::class, Fixture\ClassesAreAbstractOrFinal\NotAllAbstractOrFinal\NeitherAbstractNorFinal::class, Fixture\ClassIsAbstract\ConcreteClass::class, Fixture\ClassIsFinal\NeitherAbstractNorFinalClass::class, ]); } }
74a4563bff984b04837f64f568b721406510d7ad
lib/extensions/identify.rb
lib/extensions/identify.rb
require 'cinch' module Cinch class Message def is_admin? self.user.host == $master end def is_op? ops = self.channel.ops.map { |usr| usr.host } ops.include? self.user.host end def is_unauthorized self.reply "https://youtu.be/OBWpzvJGTz4" end end end
require 'cinch' # User checks module YongIdentify # Checks if message is from $master def is_admin? self.user.host == $master end # Checks if message is from a channel operator def is_op? ops = self.channel.ops.map { |usr| usr.host } ops.include? self.user.host end # Response for unauthorized users def is_unauthorized reply "https://youtu.be/OBWpzvJGTz4" end end module Cinch # Prepend module to top-level class Message class Message prepend YongIdentify end end
Create YongIdentify module and prepend to Message class
Create YongIdentify module and prepend to Message class
Ruby
mit
dhanesana/yongBot
ruby
## Code Before: require 'cinch' module Cinch class Message def is_admin? self.user.host == $master end def is_op? ops = self.channel.ops.map { |usr| usr.host } ops.include? self.user.host end def is_unauthorized self.reply "https://youtu.be/OBWpzvJGTz4" end end end ## Instruction: Create YongIdentify module and prepend to Message class ## Code After: require 'cinch' # User checks module YongIdentify # Checks if message is from $master def is_admin? self.user.host == $master end # Checks if message is from a channel operator def is_op? ops = self.channel.ops.map { |usr| usr.host } ops.include? self.user.host end # Response for unauthorized users def is_unauthorized reply "https://youtu.be/OBWpzvJGTz4" end end module Cinch # Prepend module to top-level class Message class Message prepend YongIdentify end end
aa15181c91499d063194767f4d9d097e34951c7d
lib/runner/matcher.js
lib/runner/matcher.js
module.exports = { /** * @param {string} testFilePath - file path of a test * @param {array} tags - tags to match * @returns {boolean} true if specified test matches given tag */ tags: function (testFilePath, tags) { try { test = require(testFilePath); } catch (e) { // could not load test module return false; } return this.checkModuleTags(test, tags); }, /** * @param {object} test - test module * @param {array} tags - tags to match * @returns {boolean} */ checkModuleTags: function (test, tags) { var testTags = test.tags; var match = false; if (typeof tags === 'string') { tags = [tags]; } if (!Array.isArray(testTags)) { return false; } tags = tags.map(function (tag) { return tag.toLowerCase(); }); testTags .map(function (testTag) { return testTag.toLowerCase(); }) .some(function (testTag) { match = (tags.indexOf(testTag) !== -1); return match; }); return match; } };
module.exports = { /** * @param {string} testFilePath - file path of a test * @param {array} tags - tags to match * @returns {boolean} true if specified test matches given tag */ tags: function (testFilePath, tags) { var test; try { test = require(testFilePath); } catch (e) { // could not load test module return false; } return this.checkModuleTags(test, tags); }, /** * @param {object} test - test module * @param {array} tags - tags to match * @returns {boolean} */ checkModuleTags: function (test, tags) { var testTags = test.tags; var match = false; if (typeof tags === 'string') { tags = [tags]; } if (!Array.isArray(testTags)) { return false; } tags = tags.map(function (tag) { return tag.toLowerCase(); }); testTags .map(function (testTag) { return testTag.toLowerCase(); }) .some(function (testTag) { match = (tags.indexOf(testTag) !== -1); return match; }); return match; } };
Fix jsdoc error due to undeclared variable
Fix jsdoc error due to undeclared variable
JavaScript
mit
lukaszw82/nightwatch,mbixby/nightwatch,campbellwmorgan/nightwatch,LucioFranco/nightwatch,ervinb/nightwatch,sethmcl/nightwatch,CoderK/nightwatch,JonDum/nightwatch,obulisaravanan/nightwatch,Crunch-io/nightwatch,sknopf/nightwatch,vuthelinh/nightwatch,campbellwmorgan/nightwatch,awatson1978/nightwatch,beatfactor/nightwatch,teleological/nightwatch,gatero/nightwatch,nightwatchjs/nightwatch,bluemind-net/nightwatch,prolificcoder/nightwatch,Crunch-io/nightwatch,byron7g7/nightwatch,kpiwko/nightwatch,feedhenry/nightwatch,joel-airspring/nightwatch,iabw/nightwatch,joel-airspring/nightwatch,matskiv/nightwatch,nightwatchjs/nightwatch,aahill50/dibs-nightwatch,miguelangelrr6/originnightwatch,pmstss/nightwatch,mobify/nightwatch,aedile/nightwatch,ervinb/nightwatch
javascript
## Code Before: module.exports = { /** * @param {string} testFilePath - file path of a test * @param {array} tags - tags to match * @returns {boolean} true if specified test matches given tag */ tags: function (testFilePath, tags) { try { test = require(testFilePath); } catch (e) { // could not load test module return false; } return this.checkModuleTags(test, tags); }, /** * @param {object} test - test module * @param {array} tags - tags to match * @returns {boolean} */ checkModuleTags: function (test, tags) { var testTags = test.tags; var match = false; if (typeof tags === 'string') { tags = [tags]; } if (!Array.isArray(testTags)) { return false; } tags = tags.map(function (tag) { return tag.toLowerCase(); }); testTags .map(function (testTag) { return testTag.toLowerCase(); }) .some(function (testTag) { match = (tags.indexOf(testTag) !== -1); return match; }); return match; } }; ## Instruction: Fix jsdoc error due to undeclared variable ## Code After: module.exports = { /** * @param {string} testFilePath - file path of a test * @param {array} tags - tags to match * @returns {boolean} true if specified test matches given tag */ tags: function (testFilePath, tags) { var test; try { test = require(testFilePath); } catch (e) { // could not load test module return false; } return this.checkModuleTags(test, tags); }, /** * @param {object} test - test module * @param {array} tags - tags to match * @returns {boolean} */ checkModuleTags: function (test, tags) { var testTags = test.tags; var match = false; if (typeof tags === 'string') { tags = [tags]; } if (!Array.isArray(testTags)) { return false; } tags = tags.map(function (tag) { return tag.toLowerCase(); }); testTags .map(function (testTag) { return testTag.toLowerCase(); }) .some(function (testTag) { match = (tags.indexOf(testTag) !== -1); return match; }); return match; } };
cad7bdca07f5ba979f14b11e6fd4109b1f7043c9
terminate_instances.py
terminate_instances.py
s program terminate instances if proper tag is not used """ import time import boto3 start_time = time.time() ec2 = boto3.resource('ec2') ec2_client = boto3.client('ec2') tag_deparment = ['Finance', 'Marketing', 'HumanResources', 'Research'] # Your departments shutdown_instance = False for instance in ec2.instances.all(): instance_state = instance.state['Name'] if instance_state == ('running' or 'pending'): for tags in instance.tags: for department in tag_deparment: if tags['Value'] == department: shutdown_instance = False break else: shutdown_instance = True print('The following instance will be shutdown', instance.id, 'Shutdown = ', shutdown_instance) if shutdown_instance is True: ec2_client.stop_instances( InstanceIds = [instance.id], Force = True )
import time import boto3 start_time = time.time() ec2 = boto3.resource('ec2') ec2_client = boto3.client('ec2') tag_deparment = ['Finance', 'Marketing', 'HumanResources', 'Research'] # Your departments shutdown_instance = False for instance in ec2.instances.all(): instance_state = instance.state['Name'] if instance_state == ('running' or 'pending'): for tags in instance.tags: for department in tag_deparment: if tags['Value'] == department: shutdown_instance = False break else: shutdown_instance = True print('The following instance will be shutdown', instance.id, 'Shutdown = ', shutdown_instance) if shutdown_instance is True: ec2_client.stop_instances( InstanceIds = [instance.id], Force = True )
Terminate instances is not proper tag
Terminate instances is not proper tag
Python
mit
gabrielrojasnyc/AWS
python
## Code Before: s program terminate instances if proper tag is not used """ import time import boto3 start_time = time.time() ec2 = boto3.resource('ec2') ec2_client = boto3.client('ec2') tag_deparment = ['Finance', 'Marketing', 'HumanResources', 'Research'] # Your departments shutdown_instance = False for instance in ec2.instances.all(): instance_state = instance.state['Name'] if instance_state == ('running' or 'pending'): for tags in instance.tags: for department in tag_deparment: if tags['Value'] == department: shutdown_instance = False break else: shutdown_instance = True print('The following instance will be shutdown', instance.id, 'Shutdown = ', shutdown_instance) if shutdown_instance is True: ec2_client.stop_instances( InstanceIds = [instance.id], Force = True ) ## Instruction: Terminate instances is not proper tag ## Code After: import time import boto3 start_time = time.time() ec2 = boto3.resource('ec2') ec2_client = boto3.client('ec2') tag_deparment = ['Finance', 'Marketing', 'HumanResources', 'Research'] # Your departments shutdown_instance = False for instance in ec2.instances.all(): instance_state = instance.state['Name'] if instance_state == ('running' or 'pending'): for tags in instance.tags: for department in tag_deparment: if tags['Value'] == department: shutdown_instance = False break else: shutdown_instance = True print('The following instance will be shutdown', instance.id, 'Shutdown = ', shutdown_instance) if shutdown_instance is True: ec2_client.stop_instances( InstanceIds = [instance.id], Force = True )
1d501c19f37db0b6493081edf986a28e7ec15b5a
db/migrate/20150616203143_merge_people_with_same_name_and_email.rb
db/migrate/20150616203143_merge_people_with_same_name_and_email.rb
class MergePeopleWithSameNameAndEmail < ActiveRecord::Migration def change Person.current = RacingAssociation.current.person Person.transaction do DuplicatePerson.all_grouped_by_name(10_000).each do |name, people| original = people.sort_by(&:created_at).first people.each do |person| # Order cleanup can delete people if Person.exists?(original.id) && Person.exists?(person.id) original = Person.find(original.id) if person != original && original.first_name.present? && original.last_name.present? && person.first_name.present? && person.last_name.present? && (person.email == original.email || original.email.blank? || person.email.blank?) && (person.license.blank? || original.license.blank?) && (original.team_name.blank? || person.team_name.blank? || original.team_name == person.team_name) && person.date_of_birth.blank? say "Merge #{name}" person = Person.find(person.id) original.merge(person) end end end end end end end
class MergePeopleWithSameNameAndEmail < ActiveRecord::Migration def change create_table :event_teams do |t| t.references :event, null: false t.references :team, null: false t.timestamps t.index :event_id t.index :team_id t.index [ :event_id, :team_id ], unique: true end create_table :event_team_memberships do |t| t.references :event_team, null: false t.references :person, null: false t.timestamps t.index :event_team_id t.index :person_id t.index [ :event_team_id, :person_id ], unique: true end Person.current = RacingAssociation.current.person Person.transaction do DuplicatePerson.all_grouped_by_name(10_000).each do |name, people| original = people.sort_by(&:created_at).first people.each do |person| # Order cleanup can delete people if Person.exists?(original.id) && Person.exists?(person.id) original = Person.find(original.id) if person != original && original.first_name.present? && original.last_name.present? && person.first_name.present? && person.last_name.present? && (person.email == original.email || original.email.blank? || person.email.blank?) && (person.license.blank? || original.license.blank?) && (original.team_name.blank? || person.team_name.blank? || original.team_name == person.team_name) && person.date_of_birth.blank? say "Merge #{name}" person = Person.find(person.id) original.merge(person) end end end end end end end
Add blank event team memberships table to fix old migrations
Add blank event team memberships table to fix old migrations
Ruby
mit
scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails,scottwillson/racing_on_rails
ruby
## Code Before: class MergePeopleWithSameNameAndEmail < ActiveRecord::Migration def change Person.current = RacingAssociation.current.person Person.transaction do DuplicatePerson.all_grouped_by_name(10_000).each do |name, people| original = people.sort_by(&:created_at).first people.each do |person| # Order cleanup can delete people if Person.exists?(original.id) && Person.exists?(person.id) original = Person.find(original.id) if person != original && original.first_name.present? && original.last_name.present? && person.first_name.present? && person.last_name.present? && (person.email == original.email || original.email.blank? || person.email.blank?) && (person.license.blank? || original.license.blank?) && (original.team_name.blank? || person.team_name.blank? || original.team_name == person.team_name) && person.date_of_birth.blank? say "Merge #{name}" person = Person.find(person.id) original.merge(person) end end end end end end end ## Instruction: Add blank event team memberships table to fix old migrations ## Code After: class MergePeopleWithSameNameAndEmail < ActiveRecord::Migration def change create_table :event_teams do |t| t.references :event, null: false t.references :team, null: false t.timestamps t.index :event_id t.index :team_id t.index [ :event_id, :team_id ], unique: true end create_table :event_team_memberships do |t| t.references :event_team, null: false t.references :person, null: false t.timestamps t.index :event_team_id t.index :person_id t.index [ :event_team_id, :person_id ], unique: true end Person.current = RacingAssociation.current.person Person.transaction do DuplicatePerson.all_grouped_by_name(10_000).each do |name, people| original = people.sort_by(&:created_at).first people.each do |person| # Order cleanup can delete people if Person.exists?(original.id) && Person.exists?(person.id) original = Person.find(original.id) if person != original && original.first_name.present? && original.last_name.present? && person.first_name.present? && person.last_name.present? && (person.email == original.email || original.email.blank? || person.email.blank?) && (person.license.blank? || original.license.blank?) && (original.team_name.blank? || person.team_name.blank? || original.team_name == person.team_name) && person.date_of_birth.blank? say "Merge #{name}" person = Person.find(person.id) original.merge(person) end end end end end end end
a9042034bbf0c9879779284a71024fdc001f9845
.travis.yml
.travis.yml
dist: trusty language: python python: - "3.6" - "3.7-dev" install: - pip install . script: python setup.py pytest
dist: trusty language: python python: - "3.6" install: - pip install . script: python setup.py pytest
Remove Python 3.7 build: tensorflow not available yet on Python 3.7 via Pypi
Remove Python 3.7 build: tensorflow not available yet on Python 3.7 via Pypi
YAML
mit
yoeo/guesslang
yaml
## Code Before: dist: trusty language: python python: - "3.6" - "3.7-dev" install: - pip install . script: python setup.py pytest ## Instruction: Remove Python 3.7 build: tensorflow not available yet on Python 3.7 via Pypi ## Code After: dist: trusty language: python python: - "3.6" install: - pip install . script: python setup.py pytest
577868bc1b9e2bf6e10c10c20bba403b0dfbbdf8
web_external/stylesheets/body/imagesPage.styl
web_external/stylesheets/body/imagesPage.styl
position: relative; width: 100%; min-height: 500px; height: calc(100vh - 135px); margin: -10px; } #galleryContent #pageContent { position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: auto; }
/* patch backbone's awkward padding enforcement */ #g-app-body-container { padding: 0px !important; } #galleryContent { position: relative; width: 100%; min-height: 12em; height: calc(100vh - 12em); } #galleryContent #pageContent { position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: auto; }
Fix scroll bar style issues
Fix scroll bar style issues
Stylus
apache-2.0
ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive,ImageMarkup/isic-archive
stylus
## Code Before: position: relative; width: 100%; min-height: 500px; height: calc(100vh - 135px); margin: -10px; } #galleryContent #pageContent { position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: auto; } ## Instruction: Fix scroll bar style issues ## Code After: /* patch backbone's awkward padding enforcement */ #g-app-body-container { padding: 0px !important; } #galleryContent { position: relative; width: 100%; min-height: 12em; height: calc(100vh - 12em); } #galleryContent #pageContent { position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; overflow: auto; }
bcae5a7f57b76404fcc508dbe8d6e49a28a2f5a3
ktexteditor/editinterfaceext.cpp
ktexteditor/editinterfaceext.cpp
using namespace KTextEditor; uint EditInterfaceExt::globalEditInterfaceExtNumber = 0; EditInterfaceExt::EditInterfaceExt() : d(0L) { globalEditInterfaceExtNumber++; myEditInterfaceExtNumber = globalEditInterfaceExtNumber; } EditInterfaceExt::~EditInterfaceExt() { } uint EditInterfaceExt::editInterfaceExtNumber() const { return myEditInterfaceExtNumber; } EditInterfaceExt *KTextEditor::editInterfaceExt (Document *doc) { if (!doc) return 0; return static_cast<EditInterfaceExt*>(doc->qt_cast("KTextEditor::EditInterfaceExt")); }
/* This file is part of the KDE libraries Copyright (C) 2003 Hamish Rodda <[email protected]> Copyright (C) 2001 Christoph Cullmann <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "editinterfaceext.h" #include "document.h" using namespace KTextEditor; uint EditInterfaceExt::globalEditInterfaceExtNumber = 0; EditInterfaceExt::EditInterfaceExt() : d(0L) { globalEditInterfaceExtNumber++; myEditInterfaceExtNumber = globalEditInterfaceExtNumber; } EditInterfaceExt::~EditInterfaceExt() { } uint EditInterfaceExt::editInterfaceExtNumber() const { return myEditInterfaceExtNumber; } EditInterfaceExt *KTextEditor::editInterfaceExt (Document *doc) { if (!doc) return 0; return static_cast<EditInterfaceExt*>(doc->qt_cast("KTextEditor::EditInterfaceExt")); }
Add licence (yes, this means that editinterface.cpp has no licence)
Add licence (yes, this means that editinterface.cpp has no licence) svn path=/trunk/kdelibs/interfaces/ktexteditor/; revision=266753
C++
lgpl-2.1
DickJ/kate,jfmcarreira/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,sandsmark/kate,DickJ/kate,hlamer/kate,cmacq2/kate,hlamer/kate,sandsmark/kate,DickJ/kate,hlamer/kate,sandsmark/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,cmacq2/kate,cmacq2/kate,hlamer/kate,DickJ/kate
c++
## Code Before: using namespace KTextEditor; uint EditInterfaceExt::globalEditInterfaceExtNumber = 0; EditInterfaceExt::EditInterfaceExt() : d(0L) { globalEditInterfaceExtNumber++; myEditInterfaceExtNumber = globalEditInterfaceExtNumber; } EditInterfaceExt::~EditInterfaceExt() { } uint EditInterfaceExt::editInterfaceExtNumber() const { return myEditInterfaceExtNumber; } EditInterfaceExt *KTextEditor::editInterfaceExt (Document *doc) { if (!doc) return 0; return static_cast<EditInterfaceExt*>(doc->qt_cast("KTextEditor::EditInterfaceExt")); } ## Instruction: Add licence (yes, this means that editinterface.cpp has no licence) svn path=/trunk/kdelibs/interfaces/ktexteditor/; revision=266753 ## Code After: /* This file is part of the KDE libraries Copyright (C) 2003 Hamish Rodda <[email protected]> Copyright (C) 2001 Christoph Cullmann <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "editinterfaceext.h" #include "document.h" using namespace KTextEditor; uint EditInterfaceExt::globalEditInterfaceExtNumber = 0; EditInterfaceExt::EditInterfaceExt() : d(0L) { globalEditInterfaceExtNumber++; myEditInterfaceExtNumber = globalEditInterfaceExtNumber; } EditInterfaceExt::~EditInterfaceExt() { } uint EditInterfaceExt::editInterfaceExtNumber() const { return myEditInterfaceExtNumber; } EditInterfaceExt *KTextEditor::editInterfaceExt (Document *doc) { if (!doc) return 0; return static_cast<EditInterfaceExt*>(doc->qt_cast("KTextEditor::EditInterfaceExt")); }
a01a772b630c68dba2302bd909fcd4f59b1aa339
README.md
README.md
A Clojure library designed to ... well, that part is up to you. ## Usage FIXME ## License Copyright © 2015 FIXME Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version. ## TBD - test binding to local in div - callbacks -- pass locals :on-click (ui/add-user #@ :user) or (ui/add-user :user) - #get/#< binding for cells -> reaction. - #< binding for markup -> same as for cells or derefing right away. - cell expressions :first-user queries/first-user -> reaction based on globals only - parametrized cell expressions :first-user (queries/first-user #< :sort-by #< :desc) -> reaction. - binding local -> local in epressions - Nested markup with #bind in inner elements.
A Clojure library designed to ... well, that part is up to you. ## Running app rlwrap lein figwheel app ## Running tests lein doo phantom test ## License Copyright © 2015 Marcin Bilski Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version. ## TBD - test binding to local in div - callbacks -- pass locals :on-click (ui/add-user #@ :user) or (ui/add-user :user) - #get/#< binding for cells -> reaction. - #< binding for markup -> same as for cells or derefing right away. - cell expressions :first-user queries/first-user -> reaction based on globals only - parametrized cell expressions :first-user (queries/first-user #< :sort-by #< :desc) -> reaction. - binding local -> local in epressions - Nested markup with #bind in inner elements.
Add basic info to Readme.
Add basic info to Readme.
Markdown
epl-1.0
bilus/decl-ui,bilus/decl-ui
markdown
## Code Before: A Clojure library designed to ... well, that part is up to you. ## Usage FIXME ## License Copyright © 2015 FIXME Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version. ## TBD - test binding to local in div - callbacks -- pass locals :on-click (ui/add-user #@ :user) or (ui/add-user :user) - #get/#< binding for cells -> reaction. - #< binding for markup -> same as for cells or derefing right away. - cell expressions :first-user queries/first-user -> reaction based on globals only - parametrized cell expressions :first-user (queries/first-user #< :sort-by #< :desc) -> reaction. - binding local -> local in epressions - Nested markup with #bind in inner elements. ## Instruction: Add basic info to Readme. ## Code After: A Clojure library designed to ... well, that part is up to you. ## Running app rlwrap lein figwheel app ## Running tests lein doo phantom test ## License Copyright © 2015 Marcin Bilski Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version. ## TBD - test binding to local in div - callbacks -- pass locals :on-click (ui/add-user #@ :user) or (ui/add-user :user) - #get/#< binding for cells -> reaction. - #< binding for markup -> same as for cells or derefing right away. - cell expressions :first-user queries/first-user -> reaction based on globals only - parametrized cell expressions :first-user (queries/first-user #< :sort-by #< :desc) -> reaction. - binding local -> local in epressions - Nested markup with #bind in inner elements.
5085e2f8c97ecab6617b4f7b0c8250095d47b22d
boardinghouse/templatetags/boardinghouse.py
boardinghouse/templatetags/boardinghouse.py
from django import template from ..schema import is_shared_model as _is_shared_model from ..schema import get_schema_model Schema = get_schema_model() register = template.Library() @register.filter def is_schema_aware(obj): return obj and not _is_shared_model(obj) @register.filter def is_shared_model(obj): return obj and _is_shared_model(obj) @register.filter def schema_name(pk): try: return Schema.objects.get(pk=pk).name except Schema.DoesNotExist: return "no schema"
from django import template from ..schema import is_shared_model as _is_shared_model from ..schema import _get_schema register = template.Library() @register.filter def is_schema_aware(obj): return obj and not _is_shared_model(obj) @register.filter def is_shared_model(obj): return obj and _is_shared_model(obj) @register.filter def schema_name(schema): try: return _get_schema(schema).name except AttributeError: return "no schema"
Remove a database access from the template tag.
Remove a database access from the template tag. --HG-- branch : schema-invitations
Python
bsd-3-clause
schinckel/django-boardinghouse,schinckel/django-boardinghouse,schinckel/django-boardinghouse
python
## Code Before: from django import template from ..schema import is_shared_model as _is_shared_model from ..schema import get_schema_model Schema = get_schema_model() register = template.Library() @register.filter def is_schema_aware(obj): return obj and not _is_shared_model(obj) @register.filter def is_shared_model(obj): return obj and _is_shared_model(obj) @register.filter def schema_name(pk): try: return Schema.objects.get(pk=pk).name except Schema.DoesNotExist: return "no schema" ## Instruction: Remove a database access from the template tag. --HG-- branch : schema-invitations ## Code After: from django import template from ..schema import is_shared_model as _is_shared_model from ..schema import _get_schema register = template.Library() @register.filter def is_schema_aware(obj): return obj and not _is_shared_model(obj) @register.filter def is_shared_model(obj): return obj and _is_shared_model(obj) @register.filter def schema_name(schema): try: return _get_schema(schema).name except AttributeError: return "no schema"
111e7507c43f0c216f621917f48267b2d1cd832b
setup/default-editor-filetypes.txt
setup/default-editor-filetypes.txt
applescript c conf cpp css java js json less md md py rb scss sh sql ss ssp svg tpl ts txt yaml yml
applescript asm c conf cpp css java js json less lisp md py rb scss sh sql ss ssp svg tpl ts txt xml yaml yml
Add additional default file types
Add additional default file types
Text
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
text
## Code Before: applescript c conf cpp css java js json less md md py rb scss sh sql ss ssp svg tpl ts txt yaml yml ## Instruction: Add additional default file types ## Code After: applescript asm c conf cpp css java js json less lisp md py rb scss sh sql ss ssp svg tpl ts txt xml yaml yml
e361f1a6491f067b26c799190a87e71926910959
ansible_playbooks/files/configure_tmux.sh
ansible_playbooks/files/configure_tmux.sh
source ~/.bashrc if [ ! -d ~/.tmux ]; then mkdir ~/.tmux ln -s ~/dot_files/.tmux.conf ~/.tmux.conf git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm tmux && tmux source-file ~/.tmux.conf fi
if [ ! -d ~/.tmux ]; then mkdir ~/.tmux ln -s ~/dot_files/.tmux.conf ~/.tmux.conf git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm fi
Configure tmux script will no more try to load tmux.
Configure tmux script will no more try to load tmux.
Shell
mit
tiagoprn/devops,tiagoprn/devops,tiagoprn/devops,tiagoprn/devops
shell
## Code Before: source ~/.bashrc if [ ! -d ~/.tmux ]; then mkdir ~/.tmux ln -s ~/dot_files/.tmux.conf ~/.tmux.conf git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm tmux && tmux source-file ~/.tmux.conf fi ## Instruction: Configure tmux script will no more try to load tmux. ## Code After: if [ ! -d ~/.tmux ]; then mkdir ~/.tmux ln -s ~/dot_files/.tmux.conf ~/.tmux.conf git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm fi
59294fcfff13f61d4b68709bdf5d48e98b1c7fea
app/assets/stylesheets/components/buttons/_c-arrow-button.scss
app/assets/stylesheets/components/buttons/_c-arrow-button.scss
.c-arrow-button { position: relative; width: rem(60px); height: rem(60px); background-color: $white; border-radius: 50%; cursor: pointer; &:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: rem(46px); height: rem(46px); background-color: $green-gfw; border-radius: 50%; } &:hover:before { background-color: darken($green-gfw, 10%); } .icon { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; width: rem(16px); height: rem(16px); fill: $white; } &.-up .icon { top: 0; transform: rotateZ(180deg); } &.-down .icon { top: rem(3px); } &.-left .icon { top: 0; left: rem(-4px); transform: rotateZ(90deg); } &.-right .icon { top: 0; left: rem(2px); transform: rotateZ(-90deg); } }
.c-arrow-button { position: relative; width: rem(60px); height: rem(60px); border-radius: 50%; cursor: pointer; &:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: rem(46px); height: rem(46px); background-color: $green-gfw; border-radius: 50%; } &:hover:before { background-color: darken($green-gfw, 10%); } .icon { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; width: rem(16px); height: rem(16px); fill: $white; } &.-up .icon { top: 0; transform: rotateZ(180deg); } &.-down .icon { top: rem(3px); } &.-left .icon { top: 0; left: rem(-4px); transform: rotateZ(90deg); } &.-right .icon { top: 0; left: rem(2px); transform: rotateZ(-90deg); } }
Remove the arrow button border
Remove the arrow button border
SCSS
mit
Vizzuality/gfw,Vizzuality/gfw
scss
## Code Before: .c-arrow-button { position: relative; width: rem(60px); height: rem(60px); background-color: $white; border-radius: 50%; cursor: pointer; &:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: rem(46px); height: rem(46px); background-color: $green-gfw; border-radius: 50%; } &:hover:before { background-color: darken($green-gfw, 10%); } .icon { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; width: rem(16px); height: rem(16px); fill: $white; } &.-up .icon { top: 0; transform: rotateZ(180deg); } &.-down .icon { top: rem(3px); } &.-left .icon { top: 0; left: rem(-4px); transform: rotateZ(90deg); } &.-right .icon { top: 0; left: rem(2px); transform: rotateZ(-90deg); } } ## Instruction: Remove the arrow button border ## Code After: .c-arrow-button { position: relative; width: rem(60px); height: rem(60px); border-radius: 50%; cursor: pointer; &:before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: rem(46px); height: rem(46px); background-color: $green-gfw; border-radius: 50%; } &:hover:before { background-color: darken($green-gfw, 10%); } .icon { position: absolute; bottom: 0; left: 0; right: 0; margin: auto; width: rem(16px); height: rem(16px); fill: $white; } &.-up .icon { top: 0; transform: rotateZ(180deg); } &.-down .icon { top: rem(3px); } &.-left .icon { top: 0; left: rem(-4px); transform: rotateZ(90deg); } &.-right .icon { top: 0; left: rem(2px); transform: rotateZ(-90deg); } }
429c93cfa5745a9a37cb453a5fabb3eabf0a99cb
lab1/digenv.c
lab1/digenv.c
int main(int argc, char *argv[]) { /* Command argument vectors. */ char *more_argv[] = { "more", NULL }; char *less_argv[] = { "less", NULL }; char *pager_argv[] = { getenv("PAGER"), NULL }; char *sort_argv[] = { "sort", NULL }; char *printenv_argv[] = { "printenv", NULL }; char **grep_argv = argv; grep_argv[0] = "grep"; /* Construct pipeline. */ /* file argv err next fallback */ command_t more = { "more", more_argv, 0, NULL, NULL}; command_t less = { "less", less_argv, 0, NULL, &more }; command_t pager = { getenv("PAGER"), pager_argv, 0, NULL, &less }; command_t sort = { "sort", sort_argv, 0, &pager, NULL }; command_t grep = { "grep", grep_argv, 0, &sort, NULL }; command_t printenv = { "printenv", printenv_argv, 0, &sort, NULL }; if (argc > 1) { /* Arguments given: Run grep as well. */ printenv.next = &grep; } /* Run pipeline. */ run_pipeline(&printenv, STDIN_FILENO); return 0; }
int main(int argc, char *argv[]) { char *pager_env = getenv("PAGER"); /* Construct pipeline. */ /* file argv err next fallback */ command_t more = {"more", (char *[]){"more", NULL}, 0, NULL, NULL}; command_t less = {"less", (char *[]){"less", NULL}, 0, NULL, &more}; command_t pager = {pager_env, (char *[]){pager_env, NULL}, 0, NULL, &less}; command_t sort = {"sort", (char *[]){"sort", NULL}, 0, &pager, NULL}; command_t grep = {"grep", argv, 0, &sort, NULL}; command_t printenv = {"printenv", (char *[]){"printenv", NULL}, 0, &sort, NULL}; if (argc > 1) { /* Arguments given: Run grep as well. */ printenv.next = &grep; argv[0] = "grep"; } /* Run pipeline. */ run_pipeline(&printenv, STDIN_FILENO); return 0; }
Initialize argv vectors using compound literals.
Initialize argv vectors using compound literals.
C
mit
estan/ID2200,estan/ID2200
c
## Code Before: int main(int argc, char *argv[]) { /* Command argument vectors. */ char *more_argv[] = { "more", NULL }; char *less_argv[] = { "less", NULL }; char *pager_argv[] = { getenv("PAGER"), NULL }; char *sort_argv[] = { "sort", NULL }; char *printenv_argv[] = { "printenv", NULL }; char **grep_argv = argv; grep_argv[0] = "grep"; /* Construct pipeline. */ /* file argv err next fallback */ command_t more = { "more", more_argv, 0, NULL, NULL}; command_t less = { "less", less_argv, 0, NULL, &more }; command_t pager = { getenv("PAGER"), pager_argv, 0, NULL, &less }; command_t sort = { "sort", sort_argv, 0, &pager, NULL }; command_t grep = { "grep", grep_argv, 0, &sort, NULL }; command_t printenv = { "printenv", printenv_argv, 0, &sort, NULL }; if (argc > 1) { /* Arguments given: Run grep as well. */ printenv.next = &grep; } /* Run pipeline. */ run_pipeline(&printenv, STDIN_FILENO); return 0; } ## Instruction: Initialize argv vectors using compound literals. ## Code After: int main(int argc, char *argv[]) { char *pager_env = getenv("PAGER"); /* Construct pipeline. */ /* file argv err next fallback */ command_t more = {"more", (char *[]){"more", NULL}, 0, NULL, NULL}; command_t less = {"less", (char *[]){"less", NULL}, 0, NULL, &more}; command_t pager = {pager_env, (char *[]){pager_env, NULL}, 0, NULL, &less}; command_t sort = {"sort", (char *[]){"sort", NULL}, 0, &pager, NULL}; command_t grep = {"grep", argv, 0, &sort, NULL}; command_t printenv = {"printenv", (char *[]){"printenv", NULL}, 0, &sort, NULL}; if (argc > 1) { /* Arguments given: Run grep as well. */ printenv.next = &grep; argv[0] = "grep"; } /* Run pipeline. */ run_pipeline(&printenv, STDIN_FILENO); return 0; }
f92578e54548dfbab54bdd42ae8c42bb68945a8d
docker/kubernetes/pycsw-service.yaml
docker/kubernetes/pycsw-service.yaml
apiVersion: v1 kind: Service metadata: labels: io.kompose.service: pycsw name: pycsw spec: ports: - name: "8000" port: 8000 targetPort: 8000 selector: io.kompose.service: pycsw status: loadBalancer: {}
apiVersion: v1 kind: Service metadata: labels: io.kompose.service: pycsw name: pycsw spec: type: NodePort ports: - port: 8000 nodePort: 30000 selector: io.kompose.service: pycsw status: loadBalancer: {}
Use NodePort to expose pycsw service to external network
Use NodePort to expose pycsw service to external network
YAML
mit
tomkralidis/pycsw,bukun/pycsw,bukun/pycsw,geopython/pycsw,ricardogsilva/pycsw,kalxas/pycsw,kalxas/pycsw,tomkralidis/pycsw,geopython/pycsw,kalxas/pycsw,geopython/pycsw,ricardogsilva/pycsw,tomkralidis/pycsw,bukun/pycsw,ricardogsilva/pycsw
yaml
## Code Before: apiVersion: v1 kind: Service metadata: labels: io.kompose.service: pycsw name: pycsw spec: ports: - name: "8000" port: 8000 targetPort: 8000 selector: io.kompose.service: pycsw status: loadBalancer: {} ## Instruction: Use NodePort to expose pycsw service to external network ## Code After: apiVersion: v1 kind: Service metadata: labels: io.kompose.service: pycsw name: pycsw spec: type: NodePort ports: - port: 8000 nodePort: 30000 selector: io.kompose.service: pycsw status: loadBalancer: {}
0b75541559c0550bd3e195ca5aca55016fa614ef
spec/serializers/build_action_entity_spec.rb
spec/serializers/build_action_entity_spec.rb
require 'spec_helper' describe BuildActionEntity do let(:build) { create(:ci_build, name: 'test_build') } let(:entity) do described_class.new(build, request: double) end describe '#as_json' do subject { entity.as_json } it 'contains original build name' do expect(subject[:name]).to eq 'test_build' end it 'contains path to the action play' do expect(subject[:path]).to include "builds/#{build.id}/play" end it 'contains whether it is playable' do expect(subject[:playable]).to eq build.playable? end end end
require 'spec_helper' describe BuildActionEntity do let(:build) { create(:ci_build, name: 'test_build') } let(:request) { double('request') } let(:entity) do described_class.new(build, request: spy('request')) end describe '#as_json' do subject { entity.as_json } it 'contains original build name' do expect(subject[:name]).to eq 'test_build' end it 'contains path to the action play' do expect(subject[:path]).to include "builds/#{build.id}/play" end it 'contains whether it is playable' do expect(subject[:playable]).to eq build.playable? end end end
Fix manual action entity specs
Fix manual action entity specs
Ruby
mit
stoplightio/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,iiet/iiet-git,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,t-zuehlsdorff/gitlabhq,iiet/iiet-git,mmkassem/gitlabhq,mmkassem/gitlabhq,jirutka/gitlabhq,axilleas/gitlabhq,dplarson/gitlabhq,stoplightio/gitlabhq,iiet/iiet-git,htve/GitlabForChinese,dreampet/gitlab,stoplightio/gitlabhq,axilleas/gitlabhq,htve/GitlabForChinese,dreampet/gitlab,jirutka/gitlabhq,htve/GitlabForChinese,mmkassem/gitlabhq,dreampet/gitlab,dplarson/gitlabhq
ruby
## Code Before: require 'spec_helper' describe BuildActionEntity do let(:build) { create(:ci_build, name: 'test_build') } let(:entity) do described_class.new(build, request: double) end describe '#as_json' do subject { entity.as_json } it 'contains original build name' do expect(subject[:name]).to eq 'test_build' end it 'contains path to the action play' do expect(subject[:path]).to include "builds/#{build.id}/play" end it 'contains whether it is playable' do expect(subject[:playable]).to eq build.playable? end end end ## Instruction: Fix manual action entity specs ## Code After: require 'spec_helper' describe BuildActionEntity do let(:build) { create(:ci_build, name: 'test_build') } let(:request) { double('request') } let(:entity) do described_class.new(build, request: spy('request')) end describe '#as_json' do subject { entity.as_json } it 'contains original build name' do expect(subject[:name]).to eq 'test_build' end it 'contains path to the action play' do expect(subject[:path]).to include "builds/#{build.id}/play" end it 'contains whether it is playable' do expect(subject[:playable]).to eq build.playable? end end end
ddbf22b6e4d19c2b0c47543d6f4d7fe8fc704483
errors.py
errors.py
"""Errors specific to TwistedSNMP""" noError = 0 tooBig = 1 # Response message would have been too large noSuchName = 2 #There is no such variable name in this MIB badValue = 3 # The value given has the wrong type or length class OIDNameError( NameError ): """An OID was specified which is not defined in namespace""" def __init__( self, oid, errorIndex=-1 , errorCode=noSuchName, message=""): """Initialise the OIDNameError""" self.oid, self.errorIndex, self.errorCode, self.message = oid, errorIndex, errorCode, message def __repr__( self ): """Represent the OIDNameError as a string""" return """%s( %r, %s, %s, %r )"""%( self.__class__.__name__, self.oid, self.errorIndex, self.errorCode, self.message, )
"""Errors specific to TwistedSNMP""" noError = 0 tooBig = 1 # Response message would have been too large noSuchName = 2 #There is no such variable name in this MIB badValue = 3 # The value given has the wrong type or length class OIDNameError( NameError ): """An OID was specified which is not defined in namespace""" def __init__( self, oid, errorIndex=-1 , errorCode=noSuchName, message=""): """Initialise the OIDNameError""" self.oid, self.errorIndex, self.errorCode, self.message = oid, errorIndex, errorCode, message def __repr__( self ): """Represent the OIDNameError as a string""" return """%s( %r, %s, %s, %r )"""%( self.__class__.__name__, self.oid, self.errorIndex, self.errorCode, self.message, ) __str__ = __repr__
Make __str__ = to repr
Make __str__ = to repr
Python
bsd-3-clause
mmattice/TwistedSNMP
python
## Code Before: """Errors specific to TwistedSNMP""" noError = 0 tooBig = 1 # Response message would have been too large noSuchName = 2 #There is no such variable name in this MIB badValue = 3 # The value given has the wrong type or length class OIDNameError( NameError ): """An OID was specified which is not defined in namespace""" def __init__( self, oid, errorIndex=-1 , errorCode=noSuchName, message=""): """Initialise the OIDNameError""" self.oid, self.errorIndex, self.errorCode, self.message = oid, errorIndex, errorCode, message def __repr__( self ): """Represent the OIDNameError as a string""" return """%s( %r, %s, %s, %r )"""%( self.__class__.__name__, self.oid, self.errorIndex, self.errorCode, self.message, ) ## Instruction: Make __str__ = to repr ## Code After: """Errors specific to TwistedSNMP""" noError = 0 tooBig = 1 # Response message would have been too large noSuchName = 2 #There is no such variable name in this MIB badValue = 3 # The value given has the wrong type or length class OIDNameError( NameError ): """An OID was specified which is not defined in namespace""" def __init__( self, oid, errorIndex=-1 , errorCode=noSuchName, message=""): """Initialise the OIDNameError""" self.oid, self.errorIndex, self.errorCode, self.message = oid, errorIndex, errorCode, message def __repr__( self ): """Represent the OIDNameError as a string""" return """%s( %r, %s, %s, %r )"""%( self.__class__.__name__, self.oid, self.errorIndex, self.errorCode, self.message, ) __str__ = __repr__
11bcc53bc80409a0458e3a5b72014c9837561b65
src/main/python/setup.py
src/main/python/setup.py
import setuptools __version__ = None # This will get replaced when reading version.py exec(open('rlbot/version.py').read()) with open("README.md", "r") as readme_file: long_description = readme_file.read() setuptools.setup( name='rlbot', packages=setuptools.find_packages(), install_requires=['psutil', 'inputs', 'PyQt5', 'py4j'], version=__version__, description='A framework for writing custom Rocket League bots that run offline.', long_description=long_description, long_description_content_type="text/markdown", author='RLBot Community', author_email='[email protected]', url='https://github.com/RLBot/RLBot', keywords=['rocket-league'], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", ], package_data={ 'rlbot': [ '**/*.dll', '**/*.exe', '**/*.json', 'gui/design/*.ui', '**/*.png', '**/*.md', 'utils/prediction/*.dat' ] }, )
import setuptools __version__ = None # This will get replaced when reading version.py exec(open('rlbot/version.py').read()) with open("README.md", "r") as readme_file: long_description = readme_file.read() setuptools.setup( name='rlbot', packages=setuptools.find_packages(), install_requires=['psutil', 'inputs', 'PyQt5', 'py4j'], version=__version__, description='A framework for writing custom Rocket League bots that run offline.', long_description=long_description, long_description_content_type="text/markdown", author='RLBot Community', author_email='[email protected]', url='https://github.com/RLBot/RLBot', keywords=['rocket-league'], license='MIT License', classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", ], package_data={ 'rlbot': [ '**/*.dll', '**/*.exe', '**/*.json', 'gui/design/*.ui', '**/*.png', '**/*.md', 'utils/prediction/*.dat' ] }, )
Add MIT license that shows up in `pip show rlbot`
Add MIT license that shows up in `pip show rlbot`
Python
mit
drssoccer55/RLBot,drssoccer55/RLBot
python
## Code Before: import setuptools __version__ = None # This will get replaced when reading version.py exec(open('rlbot/version.py').read()) with open("README.md", "r") as readme_file: long_description = readme_file.read() setuptools.setup( name='rlbot', packages=setuptools.find_packages(), install_requires=['psutil', 'inputs', 'PyQt5', 'py4j'], version=__version__, description='A framework for writing custom Rocket League bots that run offline.', long_description=long_description, long_description_content_type="text/markdown", author='RLBot Community', author_email='[email protected]', url='https://github.com/RLBot/RLBot', keywords=['rocket-league'], classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", ], package_data={ 'rlbot': [ '**/*.dll', '**/*.exe', '**/*.json', 'gui/design/*.ui', '**/*.png', '**/*.md', 'utils/prediction/*.dat' ] }, ) ## Instruction: Add MIT license that shows up in `pip show rlbot` ## Code After: import setuptools __version__ = None # This will get replaced when reading version.py exec(open('rlbot/version.py').read()) with open("README.md", "r") as readme_file: long_description = readme_file.read() setuptools.setup( name='rlbot', packages=setuptools.find_packages(), install_requires=['psutil', 'inputs', 'PyQt5', 'py4j'], version=__version__, description='A framework for writing custom Rocket League bots that run offline.', long_description=long_description, long_description_content_type="text/markdown", author='RLBot Community', author_email='[email protected]', url='https://github.com/RLBot/RLBot', keywords=['rocket-league'], license='MIT License', classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: Microsoft :: Windows", ], package_data={ 'rlbot': [ '**/*.dll', '**/*.exe', '**/*.json', 'gui/design/*.ui', '**/*.png', '**/*.md', 'utils/prediction/*.dat' ] }, )
a880d5c877e925553a8c3db293b3549ca4f7ff27
frontend/app/templates/components/sighting-table.hbs
frontend/app/templates/components/sighting-table.hbs
<table class="table"> <thead> <tr> <th>ID</th> <th>Date</th> <th>Details</th> <th>Observations</th> <th>Signs</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> {{#each item in content}} <tr> <td>{{item.id}}</td> <td>{{item.created_at}}</td> <td> <dl> <dt>Adults</dt> <dd>{{item.no_of_adults}}</dd> <dt>Calves</dt> <dd>{{item.no_of_calves}}</dd> </dl> </td> <td> {{item.unusual_observations}} </td> <td> {{item.vsigns}} </td> <td> "Status" </td> <td> <button class="btn btn-default" {{action 'highlight' item}}>Map Highlight</button> {{link-to "View Comments" 'sightings.show' item class="btn btn-default"}} </td> </tr> {{/each}} </tbody> </table>
<table class="table"> <thead> <tr> <th>ID</th> <th>Date</th> <th>Details</th> <th>Observations</th> <th>Signs</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> {{#each item in content}} <tr> <td>{{item.id}}</td> <td>{{item.created_at}}</td> <td> <dl> <dt>Adults</dt> <dd>{{item.no_of_adults}}</dd> <dt>Calves</dt> <dd>{{item.no_of_calves}}</dd> </dl> </td> <td> {{item.unusual_observations}} </td> <td> {{item.vsigns}} </td> <td> {{item.status.state}} </td> <td> <button class="btn btn-default" {{action 'highlight' item}}>Map Highlight</button> {{link-to "View Comments" 'sightings.show' item class="btn btn-default"}} </td> </tr> {{/each}} </tbody> </table>
Update table with status for sighting
Update table with status for sighting
Handlebars
mit
johan--/abm-portal,GeoSensorWebLab/abm-portal,GeoSensorWebLab/abm-portal,johan--/abm-portal,GeoSensorWebLab/abm-portal,johan--/abm-portal
handlebars
## Code Before: <table class="table"> <thead> <tr> <th>ID</th> <th>Date</th> <th>Details</th> <th>Observations</th> <th>Signs</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> {{#each item in content}} <tr> <td>{{item.id}}</td> <td>{{item.created_at}}</td> <td> <dl> <dt>Adults</dt> <dd>{{item.no_of_adults}}</dd> <dt>Calves</dt> <dd>{{item.no_of_calves}}</dd> </dl> </td> <td> {{item.unusual_observations}} </td> <td> {{item.vsigns}} </td> <td> "Status" </td> <td> <button class="btn btn-default" {{action 'highlight' item}}>Map Highlight</button> {{link-to "View Comments" 'sightings.show' item class="btn btn-default"}} </td> </tr> {{/each}} </tbody> </table> ## Instruction: Update table with status for sighting ## Code After: <table class="table"> <thead> <tr> <th>ID</th> <th>Date</th> <th>Details</th> <th>Observations</th> <th>Signs</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> {{#each item in content}} <tr> <td>{{item.id}}</td> <td>{{item.created_at}}</td> <td> <dl> <dt>Adults</dt> <dd>{{item.no_of_adults}}</dd> <dt>Calves</dt> <dd>{{item.no_of_calves}}</dd> </dl> </td> <td> {{item.unusual_observations}} </td> <td> {{item.vsigns}} </td> <td> {{item.status.state}} </td> <td> <button class="btn btn-default" {{action 'highlight' item}}>Map Highlight</button> {{link-to "View Comments" 'sightings.show' item class="btn btn-default"}} </td> </tr> {{/each}} </tbody> </table>
22deed8dcb67a6031c05c83ac1b8ce87e134ca4c
appveyor.yml
appveyor.yml
semver: 1.2.0 version: '{semver}.{build}' image: Visual Studio 2019 configuration: Release assembly_info: patch: true file: '**\AssemblyInfo.*' assembly_version: '{semver}' assembly_file_version: '{semver}' assembly_informational_version: '{semver}' before_build: - ps: nuget restore RoslynAnalyzers.sln build: project: RoslynAnalyzers.sln publish_nuget: false publish_nuget_symbols: false use_snupkg_format: true parallel: true verbosity: minimal artifacts: - path: 'AssignAll\AssignAll\bin\Release\*.nupkg' deploy: - provider: NuGet api_key: secure: kx5RD9/LCY88bhFpoIasCPt3bJFnkhAG+LLk/JhS+s84OOYWYXthpr148JhsIXjr on: branch: master
version: 1.2.0.{build} image: Visual Studio 2019 configuration: Release assembly_info: patch: true file: '**\AssemblyInfo.*' assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}' before_build: - ps: nuget restore RoslynAnalyzers.sln build: project: RoslynAnalyzers.sln publish_nuget: false publish_nuget_symbols: false use_snupkg_format: true parallel: true verbosity: minimal artifacts: - path: 'AssignAll\AssignAll\bin\Release\*.nupkg' deploy: - provider: NuGet api_key: secure: kx5RD9/LCY88bhFpoIasCPt3bJFnkhAG+LLk/JhS+s84OOYWYXthpr148JhsIXjr on: branch: master
Revert "Try to remove build number from nuget version"
Revert "Try to remove build number from nuget version" This reverts commit 8fd1df628d070c67b2366090d899bd0266693a1a.
YAML
mit
anjdreas/roslyn-analyzers
yaml
## Code Before: semver: 1.2.0 version: '{semver}.{build}' image: Visual Studio 2019 configuration: Release assembly_info: patch: true file: '**\AssemblyInfo.*' assembly_version: '{semver}' assembly_file_version: '{semver}' assembly_informational_version: '{semver}' before_build: - ps: nuget restore RoslynAnalyzers.sln build: project: RoslynAnalyzers.sln publish_nuget: false publish_nuget_symbols: false use_snupkg_format: true parallel: true verbosity: minimal artifacts: - path: 'AssignAll\AssignAll\bin\Release\*.nupkg' deploy: - provider: NuGet api_key: secure: kx5RD9/LCY88bhFpoIasCPt3bJFnkhAG+LLk/JhS+s84OOYWYXthpr148JhsIXjr on: branch: master ## Instruction: Revert "Try to remove build number from nuget version" This reverts commit 8fd1df628d070c67b2366090d899bd0266693a1a. ## Code After: version: 1.2.0.{build} image: Visual Studio 2019 configuration: Release assembly_info: patch: true file: '**\AssemblyInfo.*' assembly_version: '{version}' assembly_file_version: '{version}' assembly_informational_version: '{version}' before_build: - ps: nuget restore RoslynAnalyzers.sln build: project: RoslynAnalyzers.sln publish_nuget: false publish_nuget_symbols: false use_snupkg_format: true parallel: true verbosity: minimal artifacts: - path: 'AssignAll\AssignAll\bin\Release\*.nupkg' deploy: - provider: NuGet api_key: secure: kx5RD9/LCY88bhFpoIasCPt3bJFnkhAG+LLk/JhS+s84OOYWYXthpr148JhsIXjr on: branch: master
8cb7aa2d2d5dbef0b0f21a69fd7d0e32108e8e47
app/assets/javascripts/sprangular/controllers/cart.coffee
app/assets/javascripts/sprangular/controllers/cart.coffee
Sprangular.controller "CartCtrl", ( $scope, Cart, Account, Status, Angularytics, Env ) -> $scope.user = Account.user $scope.cart = Cart.current $scope.status = Status $scope.currencySymbol = Env.currency.symbol $scope.removeAdjustment = (adjustment) -> Angularytics.trackEvent("Cart", "Coupon removed", adjustment.promoCode()) Cart.removeAdjustment(adjustment) $scope.removeItem = (item) -> Angularytics.trackEvent("Cart", "Item removed", item.variant.product.name) Cart.removeItem item $scope.isEmpty = -> Cart.current.isEmpty() $scope.empty = -> Cart.empty() Angularytics.trackEvent("Cart", "Emptied") $scope.$emit('cart.empty', Cart) $scope.reload = -> Cart.reload()
Sprangular.controller "CartCtrl", ( $scope, Cart, Account, Status, Angularytics, Env ) -> $scope.user = Account.user $scope.status = Status $scope.currencySymbol = Env.currency.symbol $scope.$watch (-> Cart.current), (newOrder) -> $scope.cart = newOrder $scope.removeAdjustment = (adjustment) -> Angularytics.trackEvent("Cart", "Coupon removed", adjustment.promoCode()) Cart.removeAdjustment(adjustment) $scope.removeItem = (item) -> Angularytics.trackEvent("Cart", "Item removed", item.variant.product.name) Cart.removeItem item $scope.isEmpty = -> Cart.current.isEmpty() $scope.empty = -> Cart.empty() Angularytics.trackEvent("Cart", "Emptied") $scope.$emit('cart.empty', Cart) $scope.reload = -> Cart.reload()
Add $watch for Cart.current in CartCtrl
Add $watch for Cart.current in CartCtrl
CoffeeScript
mit
sprangular/sprangular,sprangular/sprangular,sprangular/sprangular
coffeescript
## Code Before: Sprangular.controller "CartCtrl", ( $scope, Cart, Account, Status, Angularytics, Env ) -> $scope.user = Account.user $scope.cart = Cart.current $scope.status = Status $scope.currencySymbol = Env.currency.symbol $scope.removeAdjustment = (adjustment) -> Angularytics.trackEvent("Cart", "Coupon removed", adjustment.promoCode()) Cart.removeAdjustment(adjustment) $scope.removeItem = (item) -> Angularytics.trackEvent("Cart", "Item removed", item.variant.product.name) Cart.removeItem item $scope.isEmpty = -> Cart.current.isEmpty() $scope.empty = -> Cart.empty() Angularytics.trackEvent("Cart", "Emptied") $scope.$emit('cart.empty', Cart) $scope.reload = -> Cart.reload() ## Instruction: Add $watch for Cart.current in CartCtrl ## Code After: Sprangular.controller "CartCtrl", ( $scope, Cart, Account, Status, Angularytics, Env ) -> $scope.user = Account.user $scope.status = Status $scope.currencySymbol = Env.currency.symbol $scope.$watch (-> Cart.current), (newOrder) -> $scope.cart = newOrder $scope.removeAdjustment = (adjustment) -> Angularytics.trackEvent("Cart", "Coupon removed", adjustment.promoCode()) Cart.removeAdjustment(adjustment) $scope.removeItem = (item) -> Angularytics.trackEvent("Cart", "Item removed", item.variant.product.name) Cart.removeItem item $scope.isEmpty = -> Cart.current.isEmpty() $scope.empty = -> Cart.empty() Angularytics.trackEvent("Cart", "Emptied") $scope.$emit('cart.empty', Cart) $scope.reload = -> Cart.reload()
9949a1853f1e721e62304cf7af288d95253655b9
add_support_for_new_angular_version.txt
add_support_for_new_angular_version.txt
Notes from when I added Angular 11 support - in uirouter/angular: - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - gh pr create - update other libs - npx check-peer-dependencies - gh pr create - npm run release - in sample-app-angular: - git checkout -b update-to-latest-angular - npx ng update @angular/core @angular/cli - git commit -m "chore: update to Angular 11" - yarn && yarn test - gh pr create
Notes from when I added Angular 11 support - in uirouter/angular: - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - gh pr create - update other libs - npx check-peer-dependencies - gh pr create - npm run release - in sample-app-angular: - git checkout -b update-to-latest-angular - npx ng update @angular/core @angular/cli - git commit -m "chore: update to Angular 11" - yarn && yarn test - gh pr create - in sample-app-angular-hybrid - npx ng update @angular/core @angular/cli - yarn upgrade-interactive --latest (update uirouter libs) - push to a branch 'upgrade-to-angular-11' - in uirouter/angular-hybrid - target the sample-app branch in downstream_test.json: - "https://github.com/ui-router/sample-app-angular-hybrid.git@update-to-angular-11" - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - in example - npx ng update @angular/core @angular/cli - yarn upgrade-interactive --latest (update uirouter libs) - gh pr create - npm run release - revert downstream_projects.json and push - in sample-app-angular-hybrid after merging - yarn upgrade-interactive --latest (update uirouter libs) - push and merge
Add more notes on adding support for new Angular releases
Add more notes on adding support for new Angular releases
Text
mit
ui-router/angular,ui-router/angular,ui-router/angular,ui-router/angular
text
## Code Before: Notes from when I added Angular 11 support - in uirouter/angular: - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - gh pr create - update other libs - npx check-peer-dependencies - gh pr create - npm run release - in sample-app-angular: - git checkout -b update-to-latest-angular - npx ng update @angular/core @angular/cli - git commit -m "chore: update to Angular 11" - yarn && yarn test - gh pr create ## Instruction: Add more notes on adding support for new Angular releases ## Code After: Notes from when I added Angular 11 support - in uirouter/angular: - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - gh pr create - update other libs - npx check-peer-dependencies - gh pr create - npm run release - in sample-app-angular: - git checkout -b update-to-latest-angular - npx ng update @angular/core @angular/cli - git commit -m "chore: update to Angular 11" - yarn && yarn test - gh pr create - in sample-app-angular-hybrid - npx ng update @angular/core @angular/cli - yarn upgrade-interactive --latest (update uirouter libs) - push to a branch 'upgrade-to-angular-11' - in uirouter/angular-hybrid - target the sample-app branch in downstream_test.json: - "https://github.com/ui-router/sample-app-angular-hybrid.git@update-to-angular-11" - update peer deps for angular packages, bumping each range by one - update angular packages manually to the lower range supported (for angular 11, set to ^10.0.0) - update ng-packagr manually to the lower range supported (for angular 11, set to ^10.0.0) - update typescript to the version required by @angular/compiler-cli - npx check-peer-dependencies - in example - npx ng update @angular/core @angular/cli - yarn upgrade-interactive --latest (update uirouter libs) - gh pr create - npm run release - revert downstream_projects.json and push - in sample-app-angular-hybrid after merging - yarn upgrade-interactive --latest (update uirouter libs) - push and merge
b57b7e84c6f33b0b03fbd326728c9e9b6a80d944
f-tep-search/src/main/java/com/cgi/eoss/ftep/search/SearchConfig.java
f-tep-search/src/main/java/com/cgi/eoss/ftep/search/SearchConfig.java
package com.cgi.eoss.ftep.search; import com.cgi.eoss.ftep.catalogue.CatalogueConfig; import com.cgi.eoss.ftep.persistence.PersistenceConfig; import com.cgi.eoss.ftep.search.api.SearchFacade; import com.cgi.eoss.ftep.search.api.SearchProvider; import okhttp3.OkHttpClient; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import java.net.InetSocketAddress; import java.net.Proxy; import java.util.Collection; @Configuration @Import({ PropertyPlaceholderAutoConfiguration.class, CatalogueConfig.class, PersistenceConfig.class }) @ComponentScan(basePackageClasses = SearchConfig.class) public class SearchConfig { @Bean public SearchFacade searchFacade(Collection<SearchProvider> searchProviders) { return new SearchFacade(searchProviders); } @Bean public OkHttpClient httpClient() { return new OkHttpClient.Builder() .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.logica.com", 80))) .build(); } }
package com.cgi.eoss.ftep.search; import com.cgi.eoss.ftep.catalogue.CatalogueConfig; import com.cgi.eoss.ftep.persistence.PersistenceConfig; import com.cgi.eoss.ftep.search.api.SearchFacade; import com.cgi.eoss.ftep.search.api.SearchProvider; import okhttp3.OkHttpClient; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import java.util.Collection; @Configuration @Import({ PropertyPlaceholderAutoConfiguration.class, CatalogueConfig.class, PersistenceConfig.class }) @ComponentScan(basePackageClasses = SearchConfig.class) public class SearchConfig { @Bean public SearchFacade searchFacade(Collection<SearchProvider> searchProviders) { return new SearchFacade(searchProviders); } @Bean public OkHttpClient httpClient() { return new OkHttpClient.Builder().build(); } }
Remove invalid proxy config from search facade
Remove invalid proxy config from search facade Change-Id: I0cc7b4bab426a354524fb49f3670370142e8e9be
Java
agpl-3.0
cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep,cgi-eoss/ftep
java
## Code Before: package com.cgi.eoss.ftep.search; import com.cgi.eoss.ftep.catalogue.CatalogueConfig; import com.cgi.eoss.ftep.persistence.PersistenceConfig; import com.cgi.eoss.ftep.search.api.SearchFacade; import com.cgi.eoss.ftep.search.api.SearchProvider; import okhttp3.OkHttpClient; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import java.net.InetSocketAddress; import java.net.Proxy; import java.util.Collection; @Configuration @Import({ PropertyPlaceholderAutoConfiguration.class, CatalogueConfig.class, PersistenceConfig.class }) @ComponentScan(basePackageClasses = SearchConfig.class) public class SearchConfig { @Bean public SearchFacade searchFacade(Collection<SearchProvider> searchProviders) { return new SearchFacade(searchProviders); } @Bean public OkHttpClient httpClient() { return new OkHttpClient.Builder() .proxy(new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxy.logica.com", 80))) .build(); } } ## Instruction: Remove invalid proxy config from search facade Change-Id: I0cc7b4bab426a354524fb49f3670370142e8e9be ## Code After: package com.cgi.eoss.ftep.search; import com.cgi.eoss.ftep.catalogue.CatalogueConfig; import com.cgi.eoss.ftep.persistence.PersistenceConfig; import com.cgi.eoss.ftep.search.api.SearchFacade; import com.cgi.eoss.ftep.search.api.SearchProvider; import okhttp3.OkHttpClient; import org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import java.util.Collection; @Configuration @Import({ PropertyPlaceholderAutoConfiguration.class, CatalogueConfig.class, PersistenceConfig.class }) @ComponentScan(basePackageClasses = SearchConfig.class) public class SearchConfig { @Bean public SearchFacade searchFacade(Collection<SearchProvider> searchProviders) { return new SearchFacade(searchProviders); } @Bean public OkHttpClient httpClient() { return new OkHttpClient.Builder().build(); } }
90b053c3eddf2fa7308d83234f5d592e3ef0a1b7
repo-upgrade.sh
repo-upgrade.sh
list=`ls -d */` force_yes=false # Store user argument to force all repo update if [ "$1" = '-f' ] || [ "$1" = '--force-yes' ]; then force_yes=true fi function update { printf "\n-- Updating $Dir" cd $Dir git stash > /tmp/repoUpdate editedFiles=`cat /tmp/repoUpdate` echo $editedFiles git checkout master git pull --rebase git checkout - if [[ $editedFiles != *"No local changes to save"* ]] then git stash pop fi cd - printf "\n" } for Dir in $list do while true do # Check if the folder is a git repo if [[ -d "${Dir}/.git" ]]; then # Update without prompt if yes forced if [ "$force_yes" = true ] ; then update break; # Otherwise prompt user asking for repo update else read -p "Update $Dir? [y/n/q] " answer case $answer in [yY]* ) update break;; [nN]* ) break;; [qQ]* ) exit;; * ) echo "Enter Y, N or Q, please.";; esac fi else break fi done done
list=`ls -d */` force_yes=false # Store user argument to force all repo update if [ "$1" = '-f' ] || [ "$1" = '--force-yes' ]; then force_yes=true fi function update { printf "\n-- Updating $Dir" cd $Dir git stash > /tmp/repoUpdate editedFiles=`cat /tmp/repoUpdate` printf "\n" echo $editedFiles git checkout master git pull --rebase git checkout - if [[ $editedFiles != *"No local changes to save"* ]] then git stash pop fi cd - printf "\n" } for Dir in $list do while true do # Check if the folder is a git repo if [[ -d "${Dir}/.git" ]]; then # Update without prompt if yes forced if [ "$force_yes" = true ] ; then update break; # Otherwise prompt user asking for repo update else read -p "Update $Dir? [y/n/q] " answer case $answer in [yY]* ) update break;; [nN]* ) break;; [qQ]* ) exit;; * ) echo "Enter Y, N or Q, please.";; esac fi else break fi done done
Add newline for more pretty display
Add newline for more pretty display
Shell
mit
KillianKemps/Git-Repo-Update
shell
## Code Before: list=`ls -d */` force_yes=false # Store user argument to force all repo update if [ "$1" = '-f' ] || [ "$1" = '--force-yes' ]; then force_yes=true fi function update { printf "\n-- Updating $Dir" cd $Dir git stash > /tmp/repoUpdate editedFiles=`cat /tmp/repoUpdate` echo $editedFiles git checkout master git pull --rebase git checkout - if [[ $editedFiles != *"No local changes to save"* ]] then git stash pop fi cd - printf "\n" } for Dir in $list do while true do # Check if the folder is a git repo if [[ -d "${Dir}/.git" ]]; then # Update without prompt if yes forced if [ "$force_yes" = true ] ; then update break; # Otherwise prompt user asking for repo update else read -p "Update $Dir? [y/n/q] " answer case $answer in [yY]* ) update break;; [nN]* ) break;; [qQ]* ) exit;; * ) echo "Enter Y, N or Q, please.";; esac fi else break fi done done ## Instruction: Add newline for more pretty display ## Code After: list=`ls -d */` force_yes=false # Store user argument to force all repo update if [ "$1" = '-f' ] || [ "$1" = '--force-yes' ]; then force_yes=true fi function update { printf "\n-- Updating $Dir" cd $Dir git stash > /tmp/repoUpdate editedFiles=`cat /tmp/repoUpdate` printf "\n" echo $editedFiles git checkout master git pull --rebase git checkout - if [[ $editedFiles != *"No local changes to save"* ]] then git stash pop fi cd - printf "\n" } for Dir in $list do while true do # Check if the folder is a git repo if [[ -d "${Dir}/.git" ]]; then # Update without prompt if yes forced if [ "$force_yes" = true ] ; then update break; # Otherwise prompt user asking for repo update else read -p "Update $Dir? [y/n/q] " answer case $answer in [yY]* ) update break;; [nN]* ) break;; [qQ]* ) exit;; * ) echo "Enter Y, N or Q, please.";; esac fi else break fi done done
719b8cdb0062bed3bec4b114136e6d19a831af8e
src/test/cljc/mikron/test/core_macros.cljc
src/test/cljc/mikron/test/core_macros.cljc
(ns mikron.test.core-macros "Unit tests for each processor." (:require [clojure.test :as test] [mikron.runtime.core :as mikron] [mikron.compiler.util :as compiler.util]) #?(:cljs (:require-macros [mikron.test.core-macros]))) (defmulti test-mikron "Test function for :pack, :diff, :valid? and :interp processors." (fn [method schema dataset] method)) (defmacro def-mikron-tests "Generates test methods for all the test cases." [test-methods test-cases] (compiler.util/macro-context {:gen-syms [schema dataset]} `(do ~@(for [[schema-name schema-def] test-cases] `(let [~schema (mikron/schema ~schema-def :diff true :interp true) ~dataset (repeatedly 100 #(mikron/gen ~schema))] ~@(for [method test-methods] `(test/deftest ~(gensym (str (name method) "-" (name schema-name))) (test-mikron ~method ~schema ~dataset))))))))
(ns mikron.test.core-macros "Unit tests for each processor." (:require [clojure.test :as test] [mikron.runtime.core :as mikron] [mikron.compiler.util :as compiler.util]) #?(:cljs (:require-macros [mikron.test.core-macros]))) (defmulti test-mikron "Test function for :pack, :diff, :valid? and :interp processors." (fn [method schema dataset] method)) (defmacro def-mikron-tests "Generates test methods for all the test cases." [test-methods test-cases] (compiler.util/macro-context {:gen-syms [schema dataset]} `(do ~@(for [[schema-name schema-def] test-cases] `(let [~schema (mikron/schema ~schema-def :diff-paths true :interp-paths true) ~dataset (repeatedly 100 #(mikron/gen ~schema))] ~@(for [method test-methods] `(test/deftest ~(gensym (str (name method) "-" (name schema-name))) (test-mikron ~method ~schema ~dataset))))))))
Fix `diff-paths` and `interp-paths` in tests
Fix `diff-paths` and `interp-paths` in tests
Clojure
epl-1.0
moxaj/mikron,moxaj/mikron
clojure
## Code Before: (ns mikron.test.core-macros "Unit tests for each processor." (:require [clojure.test :as test] [mikron.runtime.core :as mikron] [mikron.compiler.util :as compiler.util]) #?(:cljs (:require-macros [mikron.test.core-macros]))) (defmulti test-mikron "Test function for :pack, :diff, :valid? and :interp processors." (fn [method schema dataset] method)) (defmacro def-mikron-tests "Generates test methods for all the test cases." [test-methods test-cases] (compiler.util/macro-context {:gen-syms [schema dataset]} `(do ~@(for [[schema-name schema-def] test-cases] `(let [~schema (mikron/schema ~schema-def :diff true :interp true) ~dataset (repeatedly 100 #(mikron/gen ~schema))] ~@(for [method test-methods] `(test/deftest ~(gensym (str (name method) "-" (name schema-name))) (test-mikron ~method ~schema ~dataset)))))))) ## Instruction: Fix `diff-paths` and `interp-paths` in tests ## Code After: (ns mikron.test.core-macros "Unit tests for each processor." (:require [clojure.test :as test] [mikron.runtime.core :as mikron] [mikron.compiler.util :as compiler.util]) #?(:cljs (:require-macros [mikron.test.core-macros]))) (defmulti test-mikron "Test function for :pack, :diff, :valid? and :interp processors." (fn [method schema dataset] method)) (defmacro def-mikron-tests "Generates test methods for all the test cases." [test-methods test-cases] (compiler.util/macro-context {:gen-syms [schema dataset]} `(do ~@(for [[schema-name schema-def] test-cases] `(let [~schema (mikron/schema ~schema-def :diff-paths true :interp-paths true) ~dataset (repeatedly 100 #(mikron/gen ~schema))] ~@(for [method test-methods] `(test/deftest ~(gensym (str (name method) "-" (name schema-name))) (test-mikron ~method ~schema ~dataset))))))))
88832323e4ba04741368c80d19be65a639833ecd
README.md
README.md
This small project turns images into their low-poly versions. It is painfully slow right now, hopefully there is a way to speed it up a bit in the future. ## Examples ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena3.png) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf4.jpg) ## To do: - Automated calculation of constants - Parallel processing (the loop in the `triangulate` function is by far the slowest part) - User interface (Qt or console?)
This small project turns images into their low-poly versions. It is painfully slow right now, hopefully there is a way to speed it up a bit in the future. ## Examples ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena3.png) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf4.jpg) ## To do: - Automated calculation of constants - User interface (Qt or console?)
Update readme file with recent progress
Update readme file with recent progress
Markdown
mit
louis-paul/polypy
markdown
## Code Before: This small project turns images into their low-poly versions. It is painfully slow right now, hopefully there is a way to speed it up a bit in the future. ## Examples ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena3.png) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf4.jpg) ## To do: - Automated calculation of constants - Parallel processing (the loop in the `triangulate` function is by far the slowest part) - User interface (Qt or console?) ## Instruction: Update readme file with recent progress ## Code After: This small project turns images into their low-poly versions. It is painfully slow right now, hopefully there is a way to speed it up a bit in the future. ## Examples ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/lena/lena3.png) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf.jpg) ![](https://raw.githubusercontent.com/louis-paul/polypy/master/examples/sf/sf4.jpg) ## To do: - Automated calculation of constants - User interface (Qt or console?)
14b4b116e9b81027515418cfc518f34b68ee46f4
src/main/java/valandur/webapi/json/serializers/events/CauseSerializer.java
src/main/java/valandur/webapi/json/serializers/events/CauseSerializer.java
package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.Map; public class CauseSerializer extends StdSerializer<Cause> { public CauseSerializer() { this(null); } public CauseSerializer(Class<Cause> t) { super(t); } @Override public void serialize(Cause value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeStartObject(); for (Map.Entry<String, Object> entry : value.getNamedCauses().entrySet()) { if (entry.getValue().getClass().getName().startsWith("net.minecraft.server")) gen.writeStringField(entry.getKey(), entry.getValue().getClass().getName()); else gen.writeObjectField(entry.getKey(), entry.getValue()); } gen.writeEndObject(); } }
package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; public class CauseSerializer extends StdSerializer<Cause> { private static List<String> blockedCauseClasses; static { List<String> classes = new ArrayList<>(); classes.add("net.minecraft.server"); classes.add("valandur.webapi"); blockedCauseClasses = classes; } public CauseSerializer() { this(null); } public CauseSerializer(Class<Cause> t) { super(t); } @Override public void serialize(Cause value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeStartObject(); for (Map.Entry<String, Object> entry : value.getNamedCauses().entrySet()) { if (blockedCauseClasses.stream().anyMatch(c -> entry.getValue().getClass().getName().startsWith(c))) gen.writeStringField(entry.getKey(), entry.getValue().getClass().getName()); else gen.writeObjectField(entry.getKey(), entry.getValue()); } gen.writeEndObject(); } }
Fix cmd hook not working for commands run via Web-API
fix(hooks): Fix cmd hook not working for commands run via Web-API
Java
mit
Valandur/Web-API,Valandur/Web-API,Valandur/Web-API
java
## Code Before: package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.Map; public class CauseSerializer extends StdSerializer<Cause> { public CauseSerializer() { this(null); } public CauseSerializer(Class<Cause> t) { super(t); } @Override public void serialize(Cause value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeStartObject(); for (Map.Entry<String, Object> entry : value.getNamedCauses().entrySet()) { if (entry.getValue().getClass().getName().startsWith("net.minecraft.server")) gen.writeStringField(entry.getKey(), entry.getValue().getClass().getName()); else gen.writeObjectField(entry.getKey(), entry.getValue()); } gen.writeEndObject(); } } ## Instruction: fix(hooks): Fix cmd hook not working for commands run via Web-API ## Code After: package valandur.webapi.json.serializers.events; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.ser.std.StdSerializer; import org.spongepowered.api.event.cause.Cause; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; public class CauseSerializer extends StdSerializer<Cause> { private static List<String> blockedCauseClasses; static { List<String> classes = new ArrayList<>(); classes.add("net.minecraft.server"); classes.add("valandur.webapi"); blockedCauseClasses = classes; } public CauseSerializer() { this(null); } public CauseSerializer(Class<Cause> t) { super(t); } @Override public void serialize(Cause value, JsonGenerator gen, SerializerProvider provider) throws IOException { gen.writeStartObject(); for (Map.Entry<String, Object> entry : value.getNamedCauses().entrySet()) { if (blockedCauseClasses.stream().anyMatch(c -> entry.getValue().getClass().getName().startsWith(c))) gen.writeStringField(entry.getKey(), entry.getValue().getClass().getName()); else gen.writeObjectField(entry.getKey(), entry.getValue()); } gen.writeEndObject(); } }
1b3c50986c0b2963316bafe610f1b5c130054b8e
spec/models/manageiq/providers/redhat/infra_manager/refresh/ovirt_refresher_spec_common.rb
spec/models/manageiq/providers/redhat/infra_manager/refresh/ovirt_refresher_spec_common.rb
module OvirtRefresherSpecCommon extend ActiveSupport::Concern def serialize_inventory(models = []) skip_attributes = %w(updated_on last_refresh_date updated_at last_updated finish_time) inventory = {} models.each do |model| inventory[model.name] = model.all.collect do |rec| rec.attributes.except(*skip_attributes) end end inventory end end
module OvirtRefresherSpecCommon extend ActiveSupport::Concern def serialize_inventory(models = []) skip_attributes = %w(updated_on last_refresh_date updated_at last_updated finish_time) inventory = {} models.each do |model| inventory[model.name] = model.all.collect do |rec| rec.attributes.except(*skip_attributes) end.sort { |rec| rec["id"] } end inventory end end
Sort records by ID when doing full table compares
Sort records by ID when doing full table compares
Ruby
apache-2.0
pkliczewski/manageiq-providers-ovirt
ruby
## Code Before: module OvirtRefresherSpecCommon extend ActiveSupport::Concern def serialize_inventory(models = []) skip_attributes = %w(updated_on last_refresh_date updated_at last_updated finish_time) inventory = {} models.each do |model| inventory[model.name] = model.all.collect do |rec| rec.attributes.except(*skip_attributes) end end inventory end end ## Instruction: Sort records by ID when doing full table compares ## Code After: module OvirtRefresherSpecCommon extend ActiveSupport::Concern def serialize_inventory(models = []) skip_attributes = %w(updated_on last_refresh_date updated_at last_updated finish_time) inventory = {} models.each do |model| inventory[model.name] = model.all.collect do |rec| rec.attributes.except(*skip_attributes) end.sort { |rec| rec["id"] } end inventory end end
9716c4487e38a9dba488b93543f0a39b92762b44
pkgs/development/python-modules/pytest-dependency/default.nix
pkgs/development/python-modules/pytest-dependency/default.nix
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }: buildPythonPackage rec { version = "0.5.1"; pname = "pytest-dependency"; src = fetchPypi { inherit pname version; sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; }; propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ]; checkPhase = '' pytest ''; meta = with lib; { homepage = "https://github.com/RKrahl/pytest-dependency"; description = "Manage dependencies of tests"; license = licenses.asl20; maintainers = [ maintainers.marsam ]; }; }
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }: buildPythonPackage rec { version = "0.5.1"; pname = "pytest-dependency"; src = fetchPypi { inherit pname version; sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; }; patches = [ # Fix build with pytest ≥ 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51 (fetchpatch { url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch"; sha256 = "0ka892j0rrlnfvk900fcph0f6lsnr9dy06q5k2s2byzwijhdw6n5"; }) ]; propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ]; checkPhase = '' pytest ''; meta = with lib; { homepage = "https://github.com/RKrahl/pytest-dependency"; description = "Manage dependencies of tests"; license = licenses.asl20; maintainers = [ maintainers.marsam ]; }; }
Fix build with pytest ≥ 6.2.0
python3Packages.pytest-dependency: Fix build with pytest ≥ 6.2.0 Commit 84d6dfc4aa22be61455c515975978ad9ae5ed195 (#113382) bumped pytest from 6.1.2 to 6.2.2 with insufficient testing, breaking pytest-dependency. Fix it by pulling in the upstream patch. Signed-off-by: Anders Kaseorg <[email protected]>
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs
nix
## Code Before: { lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }: buildPythonPackage rec { version = "0.5.1"; pname = "pytest-dependency"; src = fetchPypi { inherit pname version; sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; }; propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ]; checkPhase = '' pytest ''; meta = with lib; { homepage = "https://github.com/RKrahl/pytest-dependency"; description = "Manage dependencies of tests"; license = licenses.asl20; maintainers = [ maintainers.marsam ]; }; } ## Instruction: python3Packages.pytest-dependency: Fix build with pytest ≥ 6.2.0 Commit 84d6dfc4aa22be61455c515975978ad9ae5ed195 (#113382) bumped pytest from 6.1.2 to 6.2.2 with insufficient testing, breaking pytest-dependency. Fix it by pulling in the upstream patch. Signed-off-by: Anders Kaseorg <[email protected]> ## Code After: { lib, buildPythonPackage, fetchPypi, fetchpatch, pytest }: buildPythonPackage rec { version = "0.5.1"; pname = "pytest-dependency"; src = fetchPypi { inherit pname version; sha256 = "c2a892906192663f85030a6ab91304e508e546cddfe557d692d61ec57a1d946b"; }; patches = [ # Fix build with pytest ≥ 6.2.0, https://github.com/RKrahl/pytest-dependency/pull/51 (fetchpatch { url = "https://github.com/RKrahl/pytest-dependency/commit/0930889a13e2b9baa7617f05dc9b55abede5209d.patch"; sha256 = "0ka892j0rrlnfvk900fcph0f6lsnr9dy06q5k2s2byzwijhdw6n5"; }) ]; propagatedBuildInputs = [ pytest ]; checkInputs = [ pytest ]; checkPhase = '' pytest ''; meta = with lib; { homepage = "https://github.com/RKrahl/pytest-dependency"; description = "Manage dependencies of tests"; license = licenses.asl20; maintainers = [ maintainers.marsam ]; }; }
5a57f25a11fe5a0a31a347284aeb9c2ca831aa03
lib/utils/index.js
lib/utils/index.js
exports.get = function get (obj, key) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i]; return undefined; }; exports.set = function set (obj, key, val) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i] = val; return obj[key] = val; }; exports.bind = function bind (o, fn) { return function () { return fn.apply(o, arguments); }; }; exports.method = function method (o, fn) { return function () { return o[fn].apply(o, arguments); }; }; exports.log = function log (msg, pref) { pref = (pref && ": " + pref) || ""; if (msg) msg = "npm"+pref+": "+msg; node.stdio.writeError(msg+"\n"); }; exports.array = function array (arr) { return Array.prototype.slice.call(arr,0); };
module.exports = { set:set, bind:bind, method:method, log:log, array:array, succeed:succeed, fail:fail }; function get (obj, key) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i]; return undefined; }; function set (obj, key, val) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i] = val; return obj[key] = val; }; function has (obj, key) { for (var i in obj) if (obj.hasOwnProperty(i) && i.toLowerCase === key.toLowerCase()) return true; return false; }; function bind (o, fn) { var args = array(arguments, 2); return function () { return fn.apply(o, args.concat(array(arguments))); }; }; function method (o, fn) { var args = array(arguments, 2); return function () { return o[fn].apply(o, args.concat(array(arguments))); }; }; function log (msg, pref) { pref = (pref && ": " + pref) || ""; if (msg) msg = "npm"+pref+": "+msg; node.stdio.writeError(msg+"\n"); }; function array (arr, n) { return Array.prototype.slice.call(arr,n || 0); }; function succeed (p) { return method(p, "emitSuccess", array(arguments,1)); }; function fail (p) { return method(p, "emitError", array(arguments,1)); }
Reorganize this file a little bit.
Reorganize this file a little bit.
JavaScript
artistic-2.0
yodeyer/npm,rsp/npm,DIREKTSPEED-LTD/npm,DaveEmmerson/npm,xalopp/npm,DIREKTSPEED-LTD/npm,princeofdarkness76/npm,midniteio/npm,yodeyer/npm,rsp/npm,evanlucas/npm,kemitchell/npm,segrey/npm,midniteio/npm,chadnickbok/npm,Volune/npm,DIREKTSPEED-LTD/npm,yyx990803/npm,DaveEmmerson/npm,kemitchell/npm,misterbyrne/npm,kemitchell/npm,haggholm/npm,segmentio/npm,xalopp/npm,DaveEmmerson/npm,TimeToogo/npm,yyx990803/npm,evocateur/npm,evanlucas/npm,ekmartin/npm,TimeToogo/npm,segment-boneyard/npm,haggholm/npm,evanlucas/npm,misterbyrne/npm,cchamberlain/npm,ekmartin/npm,haggholm/npm,yibn2008/npm,yodeyer/npm,lxe/npm,cchamberlain/npm-msys2,segrey/npm,evocateur/npm,segment-boneyard/npm,thomblake/npm,xalopp/npm,ekmartin/npm,kriskowal/npm,kriskowal/npm,rsp/npm,thomblake/npm,segrey/npm,kimshinelove/naver-npm,TimeToogo/npm,thomblake/npm,cchamberlain/npm,chadnickbok/npm,kimshinelove/naver-npm,yibn2008/npm,segmentio/npm,lxe/npm,Volune/npm,cchamberlain/npm-msys2,lxe/npm,misterbyrne/npm,yyx990803/npm,kimshinelove/naver-npm,cchamberlain/npm,chadnickbok/npm,yibn2008/npm,kriskowal/npm,evocateur/npm,princeofdarkness76/npm,segmentio/npm,midniteio/npm,princeofdarkness76/npm,segment-boneyard/npm,cchamberlain/npm-msys2,Volune/npm
javascript
## Code Before: exports.get = function get (obj, key) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i]; return undefined; }; exports.set = function set (obj, key, val) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i] = val; return obj[key] = val; }; exports.bind = function bind (o, fn) { return function () { return fn.apply(o, arguments); }; }; exports.method = function method (o, fn) { return function () { return o[fn].apply(o, arguments); }; }; exports.log = function log (msg, pref) { pref = (pref && ": " + pref) || ""; if (msg) msg = "npm"+pref+": "+msg; node.stdio.writeError(msg+"\n"); }; exports.array = function array (arr) { return Array.prototype.slice.call(arr,0); }; ## Instruction: Reorganize this file a little bit. ## Code After: module.exports = { set:set, bind:bind, method:method, log:log, array:array, succeed:succeed, fail:fail }; function get (obj, key) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i]; return undefined; }; function set (obj, key, val) { for (var i in obj) if (i.toLowerCase() === key.toLowerCase()) return obj[i] = val; return obj[key] = val; }; function has (obj, key) { for (var i in obj) if (obj.hasOwnProperty(i) && i.toLowerCase === key.toLowerCase()) return true; return false; }; function bind (o, fn) { var args = array(arguments, 2); return function () { return fn.apply(o, args.concat(array(arguments))); }; }; function method (o, fn) { var args = array(arguments, 2); return function () { return o[fn].apply(o, args.concat(array(arguments))); }; }; function log (msg, pref) { pref = (pref && ": " + pref) || ""; if (msg) msg = "npm"+pref+": "+msg; node.stdio.writeError(msg+"\n"); }; function array (arr, n) { return Array.prototype.slice.call(arr,n || 0); }; function succeed (p) { return method(p, "emitSuccess", array(arguments,1)); }; function fail (p) { return method(p, "emitError", array(arguments,1)); }
57786affe2a525e155197aa8d936121dbb4ef76e
features/support/expectations.rb
features/support/expectations.rb
module Expectations def expect_code_with_result(string) code, result = string.split('#=>').map(&:strip) expect(eval_in_page(code)).to eq eval(result) end end World Expectations
module Expectations def expect_code_with_result(string, evaluator = :eval_in_page) code, result = string.split('#=>').map(&:strip) expect(send(evaluator, code)).to eq eval(result) end end World Expectations
Allow passing a custom evaluator.
[tests] Allow passing a custom evaluator.
Ruby
mit
mojotech/capybara-ui,mojotech/dill
ruby
## Code Before: module Expectations def expect_code_with_result(string) code, result = string.split('#=>').map(&:strip) expect(eval_in_page(code)).to eq eval(result) end end World Expectations ## Instruction: [tests] Allow passing a custom evaluator. ## Code After: module Expectations def expect_code_with_result(string, evaluator = :eval_in_page) code, result = string.split('#=>').map(&:strip) expect(send(evaluator, code)).to eq eval(result) end end World Expectations
8fc520df627566b2bc75e9971d9381f2d1cb5135
aconite-core/src/io/aconite/Exceptions.kt
aconite-core/src/io/aconite/Exceptions.kt
package io.aconite /** * Throws if something go wrong with HTTP interfaces. Most of the time this * exception means, that the interface is not satisfy some constraints. */ open class AconiteException(message: String? = null, cause: Throwable? = null): RuntimeException(message, cause) open class HttpException(val code: Int, message: String? = null, cause: Throwable? = null): Exception(message, cause) open class BadRequestException(message: String? = null, cause: Throwable? = null): HttpException(400, message, cause) open class ArgumentMissingException(message: String? = null, cause: Throwable? = null): BadRequestException(message, cause) open class MethodNotAllowedException(message: String? = null, cause: Throwable? = null): HttpException(405, message, cause) open class UnsupportedMediaTypeException(message: String? = null, cause: Throwable? = null): HttpException(415, message, cause)
package io.aconite /** * Throws if something go wrong with HTTP interfaces. Most of the time this * exception means, that the interface is not satisfy some constraints. */ open class AconiteException(message: String? = null, cause: Throwable? = null): RuntimeException(message, cause) open class HttpException(val code: Int, message: String? = null, cause: Throwable? = null): Exception(message, cause) { override fun toString(): String { return "HttpException(code=$code, message=$message)" } } open class BadRequestException(message: String? = null, cause: Throwable? = null): HttpException(400, message, cause) open class ArgumentMissingException(message: String? = null, cause: Throwable? = null): BadRequestException(message, cause) open class MethodNotAllowedException(message: String? = null, cause: Throwable? = null): HttpException(405, message, cause) open class UnsupportedMediaTypeException(message: String? = null, cause: Throwable? = null): HttpException(415, message, cause)
Add toString() implementation to HttpException
Add toString() implementation to HttpException
Kotlin
mit
AcapellaSoft/Aconite,AcapellaSoft/Aconite
kotlin
## Code Before: package io.aconite /** * Throws if something go wrong with HTTP interfaces. Most of the time this * exception means, that the interface is not satisfy some constraints. */ open class AconiteException(message: String? = null, cause: Throwable? = null): RuntimeException(message, cause) open class HttpException(val code: Int, message: String? = null, cause: Throwable? = null): Exception(message, cause) open class BadRequestException(message: String? = null, cause: Throwable? = null): HttpException(400, message, cause) open class ArgumentMissingException(message: String? = null, cause: Throwable? = null): BadRequestException(message, cause) open class MethodNotAllowedException(message: String? = null, cause: Throwable? = null): HttpException(405, message, cause) open class UnsupportedMediaTypeException(message: String? = null, cause: Throwable? = null): HttpException(415, message, cause) ## Instruction: Add toString() implementation to HttpException ## Code After: package io.aconite /** * Throws if something go wrong with HTTP interfaces. Most of the time this * exception means, that the interface is not satisfy some constraints. */ open class AconiteException(message: String? = null, cause: Throwable? = null): RuntimeException(message, cause) open class HttpException(val code: Int, message: String? = null, cause: Throwable? = null): Exception(message, cause) { override fun toString(): String { return "HttpException(code=$code, message=$message)" } } open class BadRequestException(message: String? = null, cause: Throwable? = null): HttpException(400, message, cause) open class ArgumentMissingException(message: String? = null, cause: Throwable? = null): BadRequestException(message, cause) open class MethodNotAllowedException(message: String? = null, cause: Throwable? = null): HttpException(405, message, cause) open class UnsupportedMediaTypeException(message: String? = null, cause: Throwable? = null): HttpException(415, message, cause)
f52a0d0d263473bc04af08074f7d54d219b5f74f
README.md
README.md
* Python 2.7 on the Google App Engine https://cloud.google.com/appengine/docs/standard/python/download * Bootstrap v3.3.7 http://getbootstrap.com * Colour scheme based on \web_app\static\img\wrekin_beyond.jpg using http://www.lavishbootstrap.com/ * jinja2 templating engine http://jinja.pocoo.org/ To run on Cloud9 (https://c9.io) use: ```python ./google_appengine/dev_appserver.py ./workspace/web_app/ --host=0.0.0.0 ``` To run on Cloud9 with access to the admin interface use: ```python ../google_appengine/dev_appserver.py ../workspace/web_app/ --host=0.0.0.0 --port=8080 --admin_host=0.0.0.0 --admin_port=8081``` ## Install GAE on C9 * Alt-T * cd .. * wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.57.zip * unzip google_appengine_1.9.57.zip * rm google_appengine_1.9.57.zip
* Python 2.7 on the Google App Engine https://cloud.google.com/appengine/docs/standard/python/download * Bootstrap v3.3.7 http://getbootstrap.com * Colour scheme based on \web_app\static\img\wrekin_beyond.jpg using http://www.lavishbootstrap.com/ * jinja2 templating engine http://jinja.pocoo.org/ To run on Cloud9 (https://c9.io) use: ```python ./google_appengine/dev_appserver.py ./environment/web_app/ --host=0.0.0.0 ``` To run on Cloud9 with access to the admin interface use: ```python ../google_appengine/dev_appserver.py ../environment/web_app/ --host=0.0.0.0 --port=8080 --admin_host=0.0.0.0 --admin_port=8081``` ## Install GAE on C9 * Alt-T * cd .. * wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.63.zip * unzip google_appengine_1.9.57.zip * rm google_appengine_1.9.57.zip
Check that it runs on AWS cloud 9
Check that it runs on AWS cloud 9
Markdown
mit
joejcollins/WomertonFarm,joejcollins/WomertonFarm,joejcollins/WomertonFarm,joejcollins/WomertonFarm
markdown
## Code Before: * Python 2.7 on the Google App Engine https://cloud.google.com/appengine/docs/standard/python/download * Bootstrap v3.3.7 http://getbootstrap.com * Colour scheme based on \web_app\static\img\wrekin_beyond.jpg using http://www.lavishbootstrap.com/ * jinja2 templating engine http://jinja.pocoo.org/ To run on Cloud9 (https://c9.io) use: ```python ./google_appengine/dev_appserver.py ./workspace/web_app/ --host=0.0.0.0 ``` To run on Cloud9 with access to the admin interface use: ```python ../google_appengine/dev_appserver.py ../workspace/web_app/ --host=0.0.0.0 --port=8080 --admin_host=0.0.0.0 --admin_port=8081``` ## Install GAE on C9 * Alt-T * cd .. * wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.57.zip * unzip google_appengine_1.9.57.zip * rm google_appengine_1.9.57.zip ## Instruction: Check that it runs on AWS cloud 9 ## Code After: * Python 2.7 on the Google App Engine https://cloud.google.com/appengine/docs/standard/python/download * Bootstrap v3.3.7 http://getbootstrap.com * Colour scheme based on \web_app\static\img\wrekin_beyond.jpg using http://www.lavishbootstrap.com/ * jinja2 templating engine http://jinja.pocoo.org/ To run on Cloud9 (https://c9.io) use: ```python ./google_appengine/dev_appserver.py ./environment/web_app/ --host=0.0.0.0 ``` To run on Cloud9 with access to the admin interface use: ```python ../google_appengine/dev_appserver.py ../environment/web_app/ --host=0.0.0.0 --port=8080 --admin_host=0.0.0.0 --admin_port=8081``` ## Install GAE on C9 * Alt-T * cd .. * wget https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.63.zip * unzip google_appengine_1.9.57.zip * rm google_appengine_1.9.57.zip
a895f0d41846bc85bcb42fe2e21e39c036e13ebd
configs/wordpad.yml
configs/wordpad.yml
project: name: Wordpad operations: - trace # - reduce # - minimize filter: mode: exclude # mode: include modules: - <unknown> - C:\DynamoRIO\lib32\release\dynamorio.dll - C:\DynamoRIO\tools\lib32\release\drcov.dll # - C:\Program Files\Windows NT\Accessories\wordpad.exe server: seed_dir: ./seeds/ working_dir: ./projects/ client: host: 192.168.56.1 drio_path: C:\DynamoRIO\bin32\drrun.exe target_path: C:\Program Files\Windows NT\Accessories\wordpad.exe target_args: pre_cmd: post_cmd: max_attempts: 3 wait_time: 5 max_timeout: 45
project: name: Wordpad operations: - trace - reduce # - minimize filter: # mode: exclude mode: include modules: #- <unknown> #- C:\DynamoRIO\lib32\release\dynamorio.dll #- C:\DynamoRIO\tools\lib32\release\drcov.dll - C:\Program Files\Windows NT\Accessories\wordpad.exe server: seed_dir: ./seeds/ working_dir: ./projects/ client: host: 192.168.56.1 drio_path: C:\DynamoRIO\bin32\drrun.exe target_path: C:\Program Files\Windows NT\Accessories\wordpad.exe target_args: pre_cmd: post_cmd: max_attempts: 3 wait_time: 5 max_timeout: 45
Set default filter mode to 'include'.
Set default filter mode to 'include'.
YAML
mit
pyoor/distiller
yaml
## Code Before: project: name: Wordpad operations: - trace # - reduce # - minimize filter: mode: exclude # mode: include modules: - <unknown> - C:\DynamoRIO\lib32\release\dynamorio.dll - C:\DynamoRIO\tools\lib32\release\drcov.dll # - C:\Program Files\Windows NT\Accessories\wordpad.exe server: seed_dir: ./seeds/ working_dir: ./projects/ client: host: 192.168.56.1 drio_path: C:\DynamoRIO\bin32\drrun.exe target_path: C:\Program Files\Windows NT\Accessories\wordpad.exe target_args: pre_cmd: post_cmd: max_attempts: 3 wait_time: 5 max_timeout: 45 ## Instruction: Set default filter mode to 'include'. ## Code After: project: name: Wordpad operations: - trace - reduce # - minimize filter: # mode: exclude mode: include modules: #- <unknown> #- C:\DynamoRIO\lib32\release\dynamorio.dll #- C:\DynamoRIO\tools\lib32\release\drcov.dll - C:\Program Files\Windows NT\Accessories\wordpad.exe server: seed_dir: ./seeds/ working_dir: ./projects/ client: host: 192.168.56.1 drio_path: C:\DynamoRIO\bin32\drrun.exe target_path: C:\Program Files\Windows NT\Accessories\wordpad.exe target_args: pre_cmd: post_cmd: max_attempts: 3 wait_time: 5 max_timeout: 45
a38f6fef179bedf0270face83074a8c6d04362e7
dev/run.sh
dev/run.sh
cd /opt/synclounge npm run server & node webapp.js --accessUrl=http://$DOMAIN
cd /opt/synclounge export accessUrl=http://$DOMAIN; npm run server & node webapp.js
Move accessUrl to env variable
Move accessUrl to env variable
Shell
mit
Starbix/docker-plextogether
shell
## Code Before: cd /opt/synclounge npm run server & node webapp.js --accessUrl=http://$DOMAIN ## Instruction: Move accessUrl to env variable ## Code After: cd /opt/synclounge export accessUrl=http://$DOMAIN; npm run server & node webapp.js
75d45dfc5b9dfbd2275f566d1289a6605478abf4
webapp/web/js/login/loginUtils.js
webapp/web/js/login/loginUtils.js
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error alerts $('section#error-alert').css('display', 'none').fadeIn(1500); // fade in fash-message when user log out $('section#flash-message').css('display', 'none').fadeIn(1500); });
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error alerts $('section#error-alert').css('display', 'none').fadeIn(1500); // fade in fash-message when user log out $('section#flash-message').css('display', 'none').fadeIn(1500); // fade out flash-message when user logs in $('section#welcome-message').css('display', 'block').delay(2500).fadeOut(1500); });
Update to fade out the welcome log in message
Update to fade out the welcome log in message
JavaScript
bsd-3-clause
vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro,vivo-project/Vitro
javascript
## Code Before: /* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error alerts $('section#error-alert').css('display', 'none').fadeIn(1500); // fade in fash-message when user log out $('section#flash-message').css('display', 'none').fadeIn(1500); }); ## Instruction: Update to fade out the welcome log in message ## Code After: /* $This file is distributed under the terms of the license in /doc/license.txt$ */ $(document).ready(function(){ // login form is hidden by default; use JavaScript to reveal $("#login").removeClass('hidden'); // focus on email or newpassword field $('.focus').focus(); // fade in error alerts $('section#error-alert').css('display', 'none').fadeIn(1500); // fade in fash-message when user log out $('section#flash-message').css('display', 'none').fadeIn(1500); // fade out flash-message when user logs in $('section#welcome-message').css('display', 'block').delay(2500).fadeOut(1500); });
74fc735c8b128c3a34a0072ef5ec688f0ffc82ef
packages/ac/accelerate-cufft.yaml
packages/ac/accelerate-cufft.yaml
homepage: http://hub.darcs.net/thielema/accelerate-cufft/ changelog-type: '' hash: e5dc88fada22aee8eec287a923d50ecb7c8c6e930078100d75b1c3bcd0297d1f test-bench-deps: {} maintainer: Henning Thielemann <[email protected]> synopsis: Accelerate frontend to the CUFFT library (Fourier transform) changelog: '' basic-deps: cufft: ! '>=0.1.1 && <0.2' accelerate-fourier: ! '>=0.0 && <0.1' accelerate-utility: ! '>=0.1 && <0.2' base: ! '>=4.5 && <4.10' cuda: ! '>=0.5 && <0.7' accelerate-cuda: ! '>=0.15 && <0.16' accelerate: ! '>=0.15 && <0.16' all-versions: - '0.0' - '0.0.0.1' author: Henning Thielemann <[email protected]> latest: '0.0.0.1' description-type: haddock description: ! 'An interface for the @accelerate@ framework to the Fourier Transform library @cufft@ provided by Nvidia for their CUDA enabled graphic cards.' license-name: BSD3
homepage: http://hub.darcs.net/thielema/accelerate-cufft/ changelog-type: '' hash: d1e4481a62c7cfc7c045021453173bcbe42361322a5bc50a4a27615da4305965 test-bench-deps: {} maintainer: Henning Thielemann <[email protected]> synopsis: Accelerate frontend to the CUFFT library (Fourier transform) changelog: '' basic-deps: cufft: ! '>=0.1.1 && <0.8' accelerate-fourier: ! '>=0.0 && <0.1' accelerate-utility: ! '>=0.1 && <0.2' base: ! '>=4.5 && <4.10' cuda: ! '>=0.5 && <0.8' accelerate-cuda: ! '>=0.16 && <0.17' accelerate: ! '>=0.15 && <0.16' all-versions: - '0.0' - '0.0.0.1' - '0.0.1' author: Henning Thielemann <[email protected]> latest: '0.0.1' description-type: haddock description: ! 'An interface for the @accelerate@ framework to the Fourier Transform library @cufft@ provided by Nvidia for their CUDA enabled graphic cards.' license-name: BSD3
Update from Hackage at 2017-04-23T08:25:03Z
Update from Hackage at 2017-04-23T08:25:03Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: http://hub.darcs.net/thielema/accelerate-cufft/ changelog-type: '' hash: e5dc88fada22aee8eec287a923d50ecb7c8c6e930078100d75b1c3bcd0297d1f test-bench-deps: {} maintainer: Henning Thielemann <[email protected]> synopsis: Accelerate frontend to the CUFFT library (Fourier transform) changelog: '' basic-deps: cufft: ! '>=0.1.1 && <0.2' accelerate-fourier: ! '>=0.0 && <0.1' accelerate-utility: ! '>=0.1 && <0.2' base: ! '>=4.5 && <4.10' cuda: ! '>=0.5 && <0.7' accelerate-cuda: ! '>=0.15 && <0.16' accelerate: ! '>=0.15 && <0.16' all-versions: - '0.0' - '0.0.0.1' author: Henning Thielemann <[email protected]> latest: '0.0.0.1' description-type: haddock description: ! 'An interface for the @accelerate@ framework to the Fourier Transform library @cufft@ provided by Nvidia for their CUDA enabled graphic cards.' license-name: BSD3 ## Instruction: Update from Hackage at 2017-04-23T08:25:03Z ## Code After: homepage: http://hub.darcs.net/thielema/accelerate-cufft/ changelog-type: '' hash: d1e4481a62c7cfc7c045021453173bcbe42361322a5bc50a4a27615da4305965 test-bench-deps: {} maintainer: Henning Thielemann <[email protected]> synopsis: Accelerate frontend to the CUFFT library (Fourier transform) changelog: '' basic-deps: cufft: ! '>=0.1.1 && <0.8' accelerate-fourier: ! '>=0.0 && <0.1' accelerate-utility: ! '>=0.1 && <0.2' base: ! '>=4.5 && <4.10' cuda: ! '>=0.5 && <0.8' accelerate-cuda: ! '>=0.16 && <0.17' accelerate: ! '>=0.15 && <0.16' all-versions: - '0.0' - '0.0.0.1' - '0.0.1' author: Henning Thielemann <[email protected]> latest: '0.0.1' description-type: haddock description: ! 'An interface for the @accelerate@ framework to the Fourier Transform library @cufft@ provided by Nvidia for their CUDA enabled graphic cards.' license-name: BSD3
3ccd876f9d00da099c5a2f6a91c1554b3def4614
keymaps/command-palette.cson
keymaps/command-palette.cson
'.platform-darwin, .platform-darwin .command-palette .editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle'
'.platform-darwin, .platform-darwin .command-palette atom-text-editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette atom-text-editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette atom-text-editor': 'ctrl-shift-p': 'command-palette:toggle'
Fix deprecated selectors in keymap
Fix deprecated selectors in keymap
CoffeeScript
mit
atom/command-palette
coffeescript
## Code Before: '.platform-darwin, .platform-darwin .command-palette .editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette .editor': 'ctrl-shift-p': 'command-palette:toggle' ## Instruction: Fix deprecated selectors in keymap ## Code After: '.platform-darwin, .platform-darwin .command-palette atom-text-editor': 'cmd-shift-p': 'command-palette:toggle' '.platform-win32, .platform-win32 .command-palette atom-text-editor': 'ctrl-shift-p': 'command-palette:toggle' '.platform-linux, .platform-linux .command-palette atom-text-editor': 'ctrl-shift-p': 'command-palette:toggle'
5132a8f2c96dc778614e5a49a3fd1d7ec9be2beb
audit.go
audit.go
package scipipe import ( "time" ) // AuditInfo contains structured audit/provenance logging information to go with an IP type AuditInfo struct { Command string Params map[string]string Keys map[string]string ExecTimeMS time.Duration Upstream map[string]*AuditInfo } // NewAuditInfo returns a new AuditInfo struct func NewAuditInfo() *AuditInfo { return &AuditInfo{ Command: "", Params: make(map[string]string), Keys: make(map[string]string), ExecTimeMS: -1, Upstream: make(map[string]*AuditInfo), } }
package scipipe import ( "time" ) // AuditInfo contains structured audit/provenance logging information for a // particular task (invocation), to go with all outgoing IPs from that task type AuditInfo struct { ID string Command string Params map[string]string Keys map[string]string ExecTimeMS time.Duration Upstream map[string]*AuditInfo } // NewAuditInfo returns a new AuditInfo struct func NewAuditInfo() *AuditInfo { return &AuditInfo{ ID: randSeqLC(20), Command: "", Params: make(map[string]string), Keys: make(map[string]string), ExecTimeMS: -1, Upstream: make(map[string]*AuditInfo), } }
Add an ID field to AuditInfo
Add an ID field to AuditInfo
Go
mit
scipipe/scipipe,scipipe/scipipe,samuell/scipipe
go
## Code Before: package scipipe import ( "time" ) // AuditInfo contains structured audit/provenance logging information to go with an IP type AuditInfo struct { Command string Params map[string]string Keys map[string]string ExecTimeMS time.Duration Upstream map[string]*AuditInfo } // NewAuditInfo returns a new AuditInfo struct func NewAuditInfo() *AuditInfo { return &AuditInfo{ Command: "", Params: make(map[string]string), Keys: make(map[string]string), ExecTimeMS: -1, Upstream: make(map[string]*AuditInfo), } } ## Instruction: Add an ID field to AuditInfo ## Code After: package scipipe import ( "time" ) // AuditInfo contains structured audit/provenance logging information for a // particular task (invocation), to go with all outgoing IPs from that task type AuditInfo struct { ID string Command string Params map[string]string Keys map[string]string ExecTimeMS time.Duration Upstream map[string]*AuditInfo } // NewAuditInfo returns a new AuditInfo struct func NewAuditInfo() *AuditInfo { return &AuditInfo{ ID: randSeqLC(20), Command: "", Params: make(map[string]string), Keys: make(map[string]string), ExecTimeMS: -1, Upstream: make(map[string]*AuditInfo), } }
246029c71413a7e8cbd05eeb834b93c723e3b104
README.md
README.md
[![Build Status](https://travis-ci.org/education/classroom-assistant.svg?branch=master)](https://travis-ci.org/education/classroom-assistant) GitHub Classroom Assistant is a cross-platform desktop application to help you get student repositories for grading. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://standardjs.com) ![alt text](./app/resources/images/classroom-assistant-downloading.png "Logo Title Text 1") ## Where can I get it? Download the latest build of Classroom Assistant: - [Mac OS](https://classroom.github.com/assistant/download/osx) - [Windows](https://classroom.github.com/assistant/download/win) - [Linux](https://classroom.github.com/assistant/download/linux_deb_64) ## Classroom Assistant isn't running on my platform More information about supported platforms and troubleshooting instructions can be found in the [docs](docs/) folder. There are known issues on some distros of Linux, if you don't see an issue already that matches what you're seeing, open a [new issue](https://github.com/education/classroom-assistant/issues/new) with relevant information about the problem ## Setting up for development The [development](docs/development.md) document contains information about setting up Classroom Assistant on your local computer.
[![Build Status](https://travis-ci.org/education/classroom-assistant.svg?branch=master)](https://travis-ci.org/education/classroom-assistant) GitHub Classroom Assistant is a cross-platform desktop application to help you get student repositories for grading. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://standardjs.com) ![alt text](./app/resources/images/classroom-assistant-downloading.png "Logo Title Text 1") ## Where can I get it? Download the latest build of Classroom Assistant from the [Releases page](https://github.com/education/classroom-assistant/releases). - For Mac OS, download the darwin zip package. - For Windows, download the .exe package. - For Linux, download the .deb package. ## Classroom Assistant isn't running on my platform More information about supported platforms and troubleshooting instructions can be found in the [docs](docs/) folder. There are known issues on some distros of Linux, if you don't see an issue already that matches what you're seeing, open a [new issue](https://github.com/education/classroom-assistant/issues/new) with relevant information about the problem ## Setting up for development The [development](docs/development.md) document contains information about setting up Classroom Assistant on your local computer.
Use Releases page to download latest version
Use Releases page to download latest version
Markdown
mit
education/classroom-desktop,education/classroom-desktop,education/classroom-desktop,education/classroom-desktop
markdown
## Code Before: [![Build Status](https://travis-ci.org/education/classroom-assistant.svg?branch=master)](https://travis-ci.org/education/classroom-assistant) GitHub Classroom Assistant is a cross-platform desktop application to help you get student repositories for grading. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://standardjs.com) ![alt text](./app/resources/images/classroom-assistant-downloading.png "Logo Title Text 1") ## Where can I get it? Download the latest build of Classroom Assistant: - [Mac OS](https://classroom.github.com/assistant/download/osx) - [Windows](https://classroom.github.com/assistant/download/win) - [Linux](https://classroom.github.com/assistant/download/linux_deb_64) ## Classroom Assistant isn't running on my platform More information about supported platforms and troubleshooting instructions can be found in the [docs](docs/) folder. There are known issues on some distros of Linux, if you don't see an issue already that matches what you're seeing, open a [new issue](https://github.com/education/classroom-assistant/issues/new) with relevant information about the problem ## Setting up for development The [development](docs/development.md) document contains information about setting up Classroom Assistant on your local computer. ## Instruction: Use Releases page to download latest version ## Code After: [![Build Status](https://travis-ci.org/education/classroom-assistant.svg?branch=master)](https://travis-ci.org/education/classroom-assistant) GitHub Classroom Assistant is a cross-platform desktop application to help you get student repositories for grading. [![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://standardjs.com) ![alt text](./app/resources/images/classroom-assistant-downloading.png "Logo Title Text 1") ## Where can I get it? Download the latest build of Classroom Assistant from the [Releases page](https://github.com/education/classroom-assistant/releases). - For Mac OS, download the darwin zip package. - For Windows, download the .exe package. - For Linux, download the .deb package. ## Classroom Assistant isn't running on my platform More information about supported platforms and troubleshooting instructions can be found in the [docs](docs/) folder. There are known issues on some distros of Linux, if you don't see an issue already that matches what you're seeing, open a [new issue](https://github.com/education/classroom-assistant/issues/new) with relevant information about the problem ## Setting up for development The [development](docs/development.md) document contains information about setting up Classroom Assistant on your local computer.
b796858658aefdedbb1685e4f350faf1d8a75e10
README.md
README.md
* Documentation: [bosh.io/docs](https://bosh.io/docs) and [bosh.io/docs/vsphere-cpi](https://bosh.io/docs/vsphere-cpi.html) * Slack: #bosh on <https://slack.cloudfoundry.org> * Mailing list: [cf-bosh](https://lists.cloudfoundry.org/pipermail/cf-bosh) * CI: <https://bosh-cpi.ci.cf-app.com/teams/pivotal/pipelines/bosh-vsphere-cpi> * Roadmap: [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2110693) This is a BOSH release for the vSphere CPI. See [Initializing a BOSH environment on vSphere](https://bosh.io/docs/init-vsphere.html) for example usage. ## Development See [development doc](docs/development.md). See [vSphere API Docs](http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/right-pane.html).
* Documentation: [bosh.io/docs](https://bosh.io/docs) and [bosh.io/docs/vsphere-cpi](https://bosh.io/docs/vsphere-cpi.html) * Slack: #bosh on <https://slack.cloudfoundry.org> * Mailing list: [cf-bosh](https://lists.cloudfoundry.org/pipermail/cf-bosh) * Roadmap: [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2110693) This is a BOSH release for the vSphere CPI. See [Initializing a BOSH environment on vSphere](https://bosh.io/docs/init-vsphere.html) for example usage. ## Development See [development doc](docs/development.md). See [vSphere API Docs](http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/right-pane.html).
Remove defunct CI link from Readme
Remove defunct CI link from Readme
Markdown
apache-2.0
cloudfoundry-incubator/bosh-vsphere-cpi-release,cloudfoundry-incubator/bosh-vsphere-cpi-release,cloudfoundry-incubator/bosh-vsphere-cpi-release,cloudfoundry-incubator/bosh-vsphere-cpi-release,cloudfoundry-incubator/bosh-vsphere-cpi-release
markdown
## Code Before: * Documentation: [bosh.io/docs](https://bosh.io/docs) and [bosh.io/docs/vsphere-cpi](https://bosh.io/docs/vsphere-cpi.html) * Slack: #bosh on <https://slack.cloudfoundry.org> * Mailing list: [cf-bosh](https://lists.cloudfoundry.org/pipermail/cf-bosh) * CI: <https://bosh-cpi.ci.cf-app.com/teams/pivotal/pipelines/bosh-vsphere-cpi> * Roadmap: [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2110693) This is a BOSH release for the vSphere CPI. See [Initializing a BOSH environment on vSphere](https://bosh.io/docs/init-vsphere.html) for example usage. ## Development See [development doc](docs/development.md). See [vSphere API Docs](http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/right-pane.html). ## Instruction: Remove defunct CI link from Readme ## Code After: * Documentation: [bosh.io/docs](https://bosh.io/docs) and [bosh.io/docs/vsphere-cpi](https://bosh.io/docs/vsphere-cpi.html) * Slack: #bosh on <https://slack.cloudfoundry.org> * Mailing list: [cf-bosh](https://lists.cloudfoundry.org/pipermail/cf-bosh) * Roadmap: [Pivotal Tracker](https://www.pivotaltracker.com/n/projects/2110693) This is a BOSH release for the vSphere CPI. See [Initializing a BOSH environment on vSphere](https://bosh.io/docs/init-vsphere.html) for example usage. ## Development See [development doc](docs/development.md). See [vSphere API Docs](http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/right-pane.html).
05c2a8d0321d186673c695902a1f40a06a7e7bc6
apps/publisher/themes/default/partials/tag-ui-container.hbs
apps/publisher/themes/default/partials/tag-ui-container.hbs
<div id='tag-ui'> <div class="form-group"> <label class="custom-form-label col-lg-2 col-md-2 col-sm-12 col-xs-12">Tags</label> <div class="custom-form-right col-lg-5 col-md-8 col-sm-8 col-xs-12"> <select class='tag-ui-selectbox form-control' multiple name='_tags' style="width:100%;"> {{#each assetTags}} <option selected="selected">{{this}}</option> {{/each}} </select> </div> </div> </div>
<div id='tag-ui'> <div class="form-group"> <label class="custom-form-label col-lg-2 col-md-2 col-sm-12 col-xs-12 text-right">Tags : </label> <div class="custom-form-right col-lg-5 col-md-8 col-sm-8 col-xs-12"> <select class='tag-ui-selectbox form-control' multiple name='_tags' style="width:100%;"> {{#each assetTags}} <option selected="selected">{{this}}</option> {{/each}} </select> </div> </div> </div>
Fix for STORE-1266, Add a seperator colon and fix alignment
Fix for STORE-1266, Add a seperator colon and fix alignment
Handlebars
apache-2.0
thushara35/carbon-store,splinter/carbon-store,cnapagoda/carbon-store,cnapagoda/carbon-store,daneshk/carbon-store,Rajith90/carbon-store,sameerak/carbon-store,wso2/carbon-store,daneshk/carbon-store,prasa7/carbon-store,daneshk/carbon-store,Rajith90/carbon-store,jeradrutnam/carbon-store,sameerak/carbon-store,Rajith90/carbon-store,splinter/carbon-store,jeradrutnam/carbon-store,madawas/carbon-store,cnapagoda/carbon-store,splinter/carbon-store,thushara35/carbon-store,madawas/carbon-store,wso2/carbon-store,prasa7/carbon-store,madawas/carbon-store,wso2/carbon-store,prasa7/carbon-store,thushara35/carbon-store,jeradrutnam/carbon-store,sameerak/carbon-store
handlebars
## Code Before: <div id='tag-ui'> <div class="form-group"> <label class="custom-form-label col-lg-2 col-md-2 col-sm-12 col-xs-12">Tags</label> <div class="custom-form-right col-lg-5 col-md-8 col-sm-8 col-xs-12"> <select class='tag-ui-selectbox form-control' multiple name='_tags' style="width:100%;"> {{#each assetTags}} <option selected="selected">{{this}}</option> {{/each}} </select> </div> </div> </div> ## Instruction: Fix for STORE-1266, Add a seperator colon and fix alignment ## Code After: <div id='tag-ui'> <div class="form-group"> <label class="custom-form-label col-lg-2 col-md-2 col-sm-12 col-xs-12 text-right">Tags : </label> <div class="custom-form-right col-lg-5 col-md-8 col-sm-8 col-xs-12"> <select class='tag-ui-selectbox form-control' multiple name='_tags' style="width:100%;"> {{#each assetTags}} <option selected="selected">{{this}}</option> {{/each}} </select> </div> </div> </div>
48a999572e1901816ea9a584ce48f462232269e4
client/skr/screens/time-tracking/PopoverMiniControls.cjsx
client/skr/screens/time-tracking/PopoverMiniControls.cjsx
class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> </BS.Button> render: -> <div className="mini-controls"> <div className='l'> {@props.date.format('MMM')} {@props.date.format('Do')} </div> <BS.Button onClick={@props.onCancel} title="Hide Controls"> <LC.Icon type='ban' 2x flush /> </BS.Button> <@EditButton /> <BS.Button onClick={@props.onAddEntry} title="Create Time Entry"> <LC.Icon type='plus-square' 2x flush /> </BS.Button> </div>
class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> </BS.Button> render: -> <div className="mini-controls"> <div className='l'> <span>{@props.date.format('MMM')}</span> <span>{@props.date.format('Do')}</span> </div> <BS.Button onClick={@props.onCancel} title="Hide Controls"> <LC.Icon type='ban' 2x flush /> </BS.Button> <@EditButton /> <BS.Button onClick={@props.onAddEntry} title="Create Time Entry"> <LC.Icon type='plus-square' 2x flush /> </BS.Button> </div>
Add span tags to match old behaviour of React
Add span tags to match old behaviour of React This is what happens when you rely on non-specified behaviour ;)
CoffeeScript
agpl-3.0
argosity/stockor,argosity/stockor,argosity/stockor,argosity/stockor
coffeescript
## Code Before: class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> </BS.Button> render: -> <div className="mini-controls"> <div className='l'> {@props.date.format('MMM')} {@props.date.format('Do')} </div> <BS.Button onClick={@props.onCancel} title="Hide Controls"> <LC.Icon type='ban' 2x flush /> </BS.Button> <@EditButton /> <BS.Button onClick={@props.onAddEntry} title="Create Time Entry"> <LC.Icon type='plus-square' 2x flush /> </BS.Button> </div> ## Instruction: Add span tags to match old behaviour of React This is what happens when you rely on non-specified behaviour ;) ## Code After: class Skr.Screens.TimeTracking.MiniControls extends Lanes.React.Component onEditEvent: -> @props.onEditEvent(@props.event) EditButton: -> return null unless @props.event <BS.Button onClick={@onEditEvent} title="Edit Time Entry"> <LC.Icon type='pencil-square-o' 2x flush /> </BS.Button> render: -> <div className="mini-controls"> <div className='l'> <span>{@props.date.format('MMM')}</span> <span>{@props.date.format('Do')}</span> </div> <BS.Button onClick={@props.onCancel} title="Hide Controls"> <LC.Icon type='ban' 2x flush /> </BS.Button> <@EditButton /> <BS.Button onClick={@props.onAddEntry} title="Create Time Entry"> <LC.Icon type='plus-square' 2x flush /> </BS.Button> </div>
84938b441a3ddacc61fd83685d4ee45de9e49c14
app/models/snapshot_diff_cluster.rb
app/models/snapshot_diff_cluster.rb
class SnapshotDiffCluster < ActiveRecord::Base belongs_to :snapshot_diff validates_numericality_of :start, :finish default_scope { order(:start) } # @return [Float] start expressed in percent relative to an image_height def relative_start(image_height) start.to_f / image_height * 100 end # @return [Float] the cluster height expressed in percent relative to an # image height def relative_height(image_height) (finish + 1 - start).to_f / image_height * 100 end end
class SnapshotDiffCluster < ActiveRecord::Base belongs_to :snapshot_diff validates :start, numericality: true validates :finish, numericality: true default_scope { order(:start) } # @return [Float] start expressed in percent relative to an image_height def relative_start(image_height) start.to_f / image_height * 100 end # @return [Float] the cluster height expressed in percent relative to an # image height def relative_height(image_height) (finish + 1 - start).to_f / image_height * 100 end end
Use the new "sexy" validations for SnapshotDiffCluster
Use the new "sexy" validations for SnapshotDiffCluster As pointed out by Rubocop. This resolves all of the cops for this file. Change-Id: I51fa7444f9f717f3f2848ff1bb87bd409ebbbe7b
Ruby
mit
kalw/diffux,diffux/diffux,kalw/diffux,diffux/diffux,diffux/diffux,kalw/diffux
ruby
## Code Before: class SnapshotDiffCluster < ActiveRecord::Base belongs_to :snapshot_diff validates_numericality_of :start, :finish default_scope { order(:start) } # @return [Float] start expressed in percent relative to an image_height def relative_start(image_height) start.to_f / image_height * 100 end # @return [Float] the cluster height expressed in percent relative to an # image height def relative_height(image_height) (finish + 1 - start).to_f / image_height * 100 end end ## Instruction: Use the new "sexy" validations for SnapshotDiffCluster As pointed out by Rubocop. This resolves all of the cops for this file. Change-Id: I51fa7444f9f717f3f2848ff1bb87bd409ebbbe7b ## Code After: class SnapshotDiffCluster < ActiveRecord::Base belongs_to :snapshot_diff validates :start, numericality: true validates :finish, numericality: true default_scope { order(:start) } # @return [Float] start expressed in percent relative to an image_height def relative_start(image_height) start.to_f / image_height * 100 end # @return [Float] the cluster height expressed in percent relative to an # image height def relative_height(image_height) (finish + 1 - start).to_f / image_height * 100 end end
8a30693120c4d5eb9afb65665d179d501626cc4c
run.sh
run.sh
set -e IMAGE_NAME=katas-image CONTAINER_NAME=katas-container # TODO check for a Dockerfile update and build new then too #if uname | grep -q "Darwin"; then # mod_time_fmt="-f %m" #else # mod_time_fmt="-c %Y" #fi #stat ${mod_time_fmt} Dockerfile #docker inspect -f '{{ .Created }}' katas-image if [[ $(docker inspect --format . ${IMAGE_NAME} 2>&1) != "." ]]; then echo "--- BUILDING image '${IMAGE_NAME}'---" docker build -t ${IMAGE_NAME} -f Dockerfile . fi echo "--- RUNNING container '${CONTAINER_NAME}'---" docker run --rm \ --name ${CONTAINER_NAME} \ --volume $(pwd):/home/node/app \ ${IMAGE_NAME} \ $1
set -e DOCKERFILE_HASH=$(md5 -q ./Dockerfile) CONTAINER_NAME=katas IMAGE_NAME=${CONTAINER_NAME}:${DOCKERFILE_HASH} if [[ $(docker inspect --format . ${IMAGE_NAME} 2>&1) != "." ]]; then echo "--- BUILDING image '${IMAGE_NAME}'---" docker build -t ${IMAGE_NAME} -f Dockerfile . fi echo "--- RUNNING container '${CONTAINER_NAME}'---" docker run --rm \ --name ${CONTAINER_NAME} \ --volume $(pwd):/home/node/app \ ${IMAGE_NAME} \ $1
Build the image name using the hash of the dockerfile, to rebuild after the Dockerfile changed.
Build the image name using the hash of the dockerfile, to rebuild after the Dockerfile changed.
Shell
mit
tddbin/katas,tddbin/katas,tddbin/katas
shell
## Code Before: set -e IMAGE_NAME=katas-image CONTAINER_NAME=katas-container # TODO check for a Dockerfile update and build new then too #if uname | grep -q "Darwin"; then # mod_time_fmt="-f %m" #else # mod_time_fmt="-c %Y" #fi #stat ${mod_time_fmt} Dockerfile #docker inspect -f '{{ .Created }}' katas-image if [[ $(docker inspect --format . ${IMAGE_NAME} 2>&1) != "." ]]; then echo "--- BUILDING image '${IMAGE_NAME}'---" docker build -t ${IMAGE_NAME} -f Dockerfile . fi echo "--- RUNNING container '${CONTAINER_NAME}'---" docker run --rm \ --name ${CONTAINER_NAME} \ --volume $(pwd):/home/node/app \ ${IMAGE_NAME} \ $1 ## Instruction: Build the image name using the hash of the dockerfile, to rebuild after the Dockerfile changed. ## Code After: set -e DOCKERFILE_HASH=$(md5 -q ./Dockerfile) CONTAINER_NAME=katas IMAGE_NAME=${CONTAINER_NAME}:${DOCKERFILE_HASH} if [[ $(docker inspect --format . ${IMAGE_NAME} 2>&1) != "." ]]; then echo "--- BUILDING image '${IMAGE_NAME}'---" docker build -t ${IMAGE_NAME} -f Dockerfile . fi echo "--- RUNNING container '${CONTAINER_NAME}'---" docker run --rm \ --name ${CONTAINER_NAME} \ --volume $(pwd):/home/node/app \ ${IMAGE_NAME} \ $1
0f3b8a4aa4e95a1e740724d47290932f0e6e993d
README.md
README.md
Cura plugin which provides a way to modify printer settings (build volume, nozzle size, start/end gcode) from within Cura. Installation ---- - Make sure your Cura version is 2.2 or newer - Download or clone the repository into [Cura installation folder]/plugins/MachineSettingsAction How to use ---- After adding a machine, go to "Manage Printers...", make sure your printer is active and select "Machine Settings"
Cura plugin which provides a way to modify printer settings (build volume, nozzle size, start/end gcode) from within Cura. Installation ---- - Make sure your Cura version is 2.2 or newer - Download or clone the repository into [Cura installation folder]/plugins/MachineSettingsAction How to use ---- After adding a machine, go to "Manage Printers...", make sure your printer is active and select "Machine Settings" Pro-tip: if you add a generic profile to the machine definitions and add ["MachineSettingsAction"] as a first_start_action, you get a nice solution to the "my printer is not listed" problem. *resource/definitions/generic_fdm.def.json* ``` { "version": 2, "name": "Generic FDM printer", "inherits": "fdmprinter", "metadata": { "visible": true, "author": "Ultimaker", "manufacturer": "Generic", "category": "Generic", "file_formats": "text/x-gcode", "has_materials": true, "preferred_material": "*pla*", "first_start_actions": ["MachineSettingsAction"] } } ```
Add a note about adding the action to the first_start_actions of a generic machine definition
Add a note about adding the action to the first_start_actions of a generic machine definition
Markdown
agpl-3.0
hmflash/Cura,fieldOfView/Cura,totalretribution/Cura,totalretribution/Cura,senttech/Cura,ynotstartups/Wanhao,ynotstartups/Wanhao,Curahelper/Cura,hmflash/Cura,senttech/Cura,fieldOfView/Cura,Curahelper/Cura
markdown
## Code Before: Cura plugin which provides a way to modify printer settings (build volume, nozzle size, start/end gcode) from within Cura. Installation ---- - Make sure your Cura version is 2.2 or newer - Download or clone the repository into [Cura installation folder]/plugins/MachineSettingsAction How to use ---- After adding a machine, go to "Manage Printers...", make sure your printer is active and select "Machine Settings" ## Instruction: Add a note about adding the action to the first_start_actions of a generic machine definition ## Code After: Cura plugin which provides a way to modify printer settings (build volume, nozzle size, start/end gcode) from within Cura. Installation ---- - Make sure your Cura version is 2.2 or newer - Download or clone the repository into [Cura installation folder]/plugins/MachineSettingsAction How to use ---- After adding a machine, go to "Manage Printers...", make sure your printer is active and select "Machine Settings" Pro-tip: if you add a generic profile to the machine definitions and add ["MachineSettingsAction"] as a first_start_action, you get a nice solution to the "my printer is not listed" problem. *resource/definitions/generic_fdm.def.json* ``` { "version": 2, "name": "Generic FDM printer", "inherits": "fdmprinter", "metadata": { "visible": true, "author": "Ultimaker", "manufacturer": "Generic", "category": "Generic", "file_formats": "text/x-gcode", "has_materials": true, "preferred_material": "*pla*", "first_start_actions": ["MachineSettingsAction"] } } ```
e1fc54e4e2193ea76201b9d2c4c6618e78bcf8f6
bin/update_countdown.sh
bin/update_countdown.sh
echo "$(~/bin/daysuntil 2019-10-13) days - TN Toughman" > ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2019-10-14) days - ICANS conference" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2019-10-22) days - HFIR startup" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-03-29) days - Knoxville Marathon" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-04-12) days - Python2 is dead" >> ~/.daysuntil.deadlines # sort the file just in case things aren't already in order sort ~/.daysuntil.deadlines -n -o ~/.daysuntil.deadlines
echo "$(~/bin/daysuntil 2019-11-01) days - HFIR startup" > ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-03-29) days - Knoxville Marathon" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-04-12) days - Python2 is dead" >> ~/.daysuntil.deadlines # sort the file just in case things aren't already in order sort ~/.daysuntil.deadlines -n -o ~/.daysuntil.deadlines
Remove things from the past
Remove things from the past
Shell
mit
peterfpeterson/dotfiles,peterfpeterson/dotfiles
shell
## Code Before: echo "$(~/bin/daysuntil 2019-10-13) days - TN Toughman" > ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2019-10-14) days - ICANS conference" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2019-10-22) days - HFIR startup" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-03-29) days - Knoxville Marathon" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-04-12) days - Python2 is dead" >> ~/.daysuntil.deadlines # sort the file just in case things aren't already in order sort ~/.daysuntil.deadlines -n -o ~/.daysuntil.deadlines ## Instruction: Remove things from the past ## Code After: echo "$(~/bin/daysuntil 2019-11-01) days - HFIR startup" > ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-03-29) days - Knoxville Marathon" >> ~/.daysuntil.deadlines echo "$(~/bin/daysuntil 2020-04-12) days - Python2 is dead" >> ~/.daysuntil.deadlines # sort the file just in case things aren't already in order sort ~/.daysuntil.deadlines -n -o ~/.daysuntil.deadlines
0664bb2600311ffe9b1199360231afe213d69c88
templates/_bookmark.html
templates/_bookmark.html
{% macro bookmark(b, back) %} <div class="bookmark"> <a class="press-right button" href="/edit?id={{ b.id }}&back={{ back }}" >Edit</a> <div class="name"> {{ b.name }} {% if b.keyword %} <span class="keyword"> (<span class="blue">{{ b.keyword }}</span>) {% if b.suggestions_url %} <span class="small">suggestions enabled</span> {% endif %} </span> {% endif %} </div> <div class="url"> <a href="{{ b.get_url() }}">{{ b.url }}</a> </div> {% if b.has_tags() %} <div class="tags">Tags: {{ b.get_tag_string() }}</div> {% endif %} </div> {% endmacro %} {% macro bookmarks(b, back) %} {% for i in b %} {{ bookmark(i, back) }} {% endfor %} {% endmacro %} <!-- vim: set filetype=jinja sw=2 sts=2 : -->
{% macro bookmark(b, back) %} <div class="bookmark"> <a class="press-right button" href="/edit?id={{ b.id }}&back={{ back }}" >Edit</a> <div class="name"> {{ b.name }} {% if b.keyword %} <span class="keyword"> (<span class="blue">{{ b.keyword }}</span>) {% if b.suggestions_url %} <span class="small">suggestions enabled</span> {% endif %} </span> {% endif %} </div> <div class="url"> <a href="{{ b.get_url() }}">{{ b.url }}</a> </div> <div class="tags"> {% if b.has_tags() %} Tags: {{ b.get_tag_string() }} {% else %} No tags {% endif %} </div> </div> {% endmacro %} {% macro bookmarks(b, back) %} {% for i in b %} {{ bookmark(i, back) }} {% endfor %} {% endmacro %} <!-- vim: set filetype=jinja sw=2 sts=2 : -->
Add empty tags to make box height same
Add empty tags to make box height same
HTML
mit
maarons/LinkMarks,maarons/LinkMarks,maarons/LinkMarks,maarons/LinkMarks
html
## Code Before: {% macro bookmark(b, back) %} <div class="bookmark"> <a class="press-right button" href="/edit?id={{ b.id }}&back={{ back }}" >Edit</a> <div class="name"> {{ b.name }} {% if b.keyword %} <span class="keyword"> (<span class="blue">{{ b.keyword }}</span>) {% if b.suggestions_url %} <span class="small">suggestions enabled</span> {% endif %} </span> {% endif %} </div> <div class="url"> <a href="{{ b.get_url() }}">{{ b.url }}</a> </div> {% if b.has_tags() %} <div class="tags">Tags: {{ b.get_tag_string() }}</div> {% endif %} </div> {% endmacro %} {% macro bookmarks(b, back) %} {% for i in b %} {{ bookmark(i, back) }} {% endfor %} {% endmacro %} <!-- vim: set filetype=jinja sw=2 sts=2 : --> ## Instruction: Add empty tags to make box height same ## Code After: {% macro bookmark(b, back) %} <div class="bookmark"> <a class="press-right button" href="/edit?id={{ b.id }}&back={{ back }}" >Edit</a> <div class="name"> {{ b.name }} {% if b.keyword %} <span class="keyword"> (<span class="blue">{{ b.keyword }}</span>) {% if b.suggestions_url %} <span class="small">suggestions enabled</span> {% endif %} </span> {% endif %} </div> <div class="url"> <a href="{{ b.get_url() }}">{{ b.url }}</a> </div> <div class="tags"> {% if b.has_tags() %} Tags: {{ b.get_tag_string() }} {% else %} No tags {% endif %} </div> </div> {% endmacro %} {% macro bookmarks(b, back) %} {% for i in b %} {{ bookmark(i, back) }} {% endfor %} {% endmacro %} <!-- vim: set filetype=jinja sw=2 sts=2 : -->
ef60a275a79febec5b1489cf8fc15259aef4f8dc
library/spec/pivotal-ui-react/accessibility-developer-tools-matcher.js
library/spec/pivotal-ui-react/accessibility-developer-tools-matcher.js
const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPassADT() { return { compare(node) { let result = {}; let config = new axs.AuditConfiguration(); config.showUnsupportedRulesWarning = false; config.scope = node; const adtResults = axs.Audit.run(config) .filter((adtResult) => adtResult.result === 'FAIL'); result.pass = adtResults.length === 0; if (result.pass) { result.message = 'Expected ADT to fail'; } else { const failures = adtResults .map((result) => failureMessageForAdtResult(result)) .join('\n '); result.message = `Expected ADT to pass but got errors:\n ${failures}`; } return result; } }; };
const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPassADT() { return { compare(node) { let result = {}; // // let config = new axs.AuditConfiguration(); // config.showUnsupportedRulesWarning = false; // config.scope = node; // // const adtResults = axs.Audit.run(config) // .filter((adtResult) => adtResult.result === 'FAIL'); // // result.pass = adtResults.length === 0; // // if (result.pass) { // result.message = 'Expected ADT to fail'; // } else { // const failures = adtResults // .map((result) => failureMessageForAdtResult(result)) // .join('\n '); // result.message = `Expected ADT to pass but got errors:\n ${failures}`; // } return result; } }; };
Allow trieOptions to be passed into autocomplete
feat(autocomplete): Allow trieOptions to be passed into autocomplete - trieOptions to be passed into autocomplete - add properties of autocomplete to documentation - update autocomplete syntax - update event-stream dependency to from and through [#130668639] Signed-off-by: Ryan Dy <[email protected]>
JavaScript
mit
sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui,pivotal-cf/pivotal-ui,sjolicoeur/pivotal-ui
javascript
## Code Before: const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPassADT() { return { compare(node) { let result = {}; let config = new axs.AuditConfiguration(); config.showUnsupportedRulesWarning = false; config.scope = node; const adtResults = axs.Audit.run(config) .filter((adtResult) => adtResult.result === 'FAIL'); result.pass = adtResults.length === 0; if (result.pass) { result.message = 'Expected ADT to fail'; } else { const failures = adtResults .map((result) => failureMessageForAdtResult(result)) .join('\n '); result.message = `Expected ADT to pass but got errors:\n ${failures}`; } return result; } }; }; ## Instruction: feat(autocomplete): Allow trieOptions to be passed into autocomplete - trieOptions to be passed into autocomplete - add properties of autocomplete to documentation - update autocomplete syntax - update event-stream dependency to from and through [#130668639] Signed-off-by: Ryan Dy <[email protected]> ## Code After: const axs = require('../../node_modules/accessibility-developer-tools/dist/js/axs_testing.js'); function failureMessageForAdtResult(result) { const elements = result.elements.map((element) => element.outerHTML); return [ result.rule.heading, ...elements ].join('\n '); } module.exports = function toPassADT() { return { compare(node) { let result = {}; // // let config = new axs.AuditConfiguration(); // config.showUnsupportedRulesWarning = false; // config.scope = node; // // const adtResults = axs.Audit.run(config) // .filter((adtResult) => adtResult.result === 'FAIL'); // // result.pass = adtResults.length === 0; // // if (result.pass) { // result.message = 'Expected ADT to fail'; // } else { // const failures = adtResults // .map((result) => failureMessageForAdtResult(result)) // .join('\n '); // result.message = `Expected ADT to pass but got errors:\n ${failures}`; // } return result; } }; };
14815758d6eca4e82b49b358dd3a67e4f8854188
.travis.yml
.travis.yml
language: node_js node_js: - 0.10
language: node_js node_js: - 0.10 addons: code_climate: repo_token: 7c7049626df7808a44f5a3e347a55c63ef07b220c5738d1a1f5c2d4b8fe635fc
Add code coverage to CodeClimate through TravisCI
Add code coverage to CodeClimate through TravisCI
YAML
mit
refinery29/jquery-ooyala,refinery29/jquery-ooyala
yaml
## Code Before: language: node_js node_js: - 0.10 ## Instruction: Add code coverage to CodeClimate through TravisCI ## Code After: language: node_js node_js: - 0.10 addons: code_climate: repo_token: 7c7049626df7808a44f5a3e347a55c63ef07b220c5738d1a1f5c2d4b8fe635fc
8f1bf33078ca9b3d6ace1a418c01da5c262569c2
tests/dummy/app/index.html
tests/dummy/app/index.html
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Dummy</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Pacifico|Nunito:800,800i|Noto+Sans:400,400i,700" rel="stylesheet"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/dummy.css"> {{content-for "head-footer"}} </head> <body> {{content-for "body"}} <script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/dummy.js"></script> {{content-for "body-footer"}} </body> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Ember Google Maps</title> <meta name="description" content="A lightweight, declarative, composable API for building ambitious map UIs in your Ember apps"> <meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Pacifico|Nunito:800,800i|Noto+Sans:400,400i,700" rel="stylesheet"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/dummy.css"> {{content-for "head-footer"}} </head> <body> {{content-for "body"}} <script async src="https://www.googletagmanager.com/gtag/js?id=UA-114496666-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-114496666-1'); </script> <script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/dummy.js"></script> {{content-for "body-footer"}} </body> </html>
Add meta tags and tracking
Add meta tags and tracking
HTML
mit
ryanholte/ember-google-maps,ryanholte/ember-google-maps,ryanholte/ember-google-maps
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Dummy</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Pacifico|Nunito:800,800i|Noto+Sans:400,400i,700" rel="stylesheet"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/dummy.css"> {{content-for "head-footer"}} </head> <body> {{content-for "body"}} <script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/dummy.js"></script> {{content-for "body-footer"}} </body> </html> ## Instruction: Add meta tags and tracking ## Code After: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Ember Google Maps</title> <meta name="description" content="A lightweight, declarative, composable API for building ambitious map UIs in your Ember apps"> <meta name="viewport" content="width=device-width, initial-scale=1"> {{content-for "head"}} <link href="https://fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Pacifico|Nunito:800,800i|Noto+Sans:400,400i,700" rel="stylesheet"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css"> <link integrity="" rel="stylesheet" href="{{rootURL}}assets/dummy.css"> {{content-for "head-footer"}} </head> <body> {{content-for "body"}} <script async src="https://www.googletagmanager.com/gtag/js?id=UA-114496666-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-114496666-1'); </script> <script src="{{rootURL}}assets/vendor.js"></script> <script src="{{rootURL}}assets/dummy.js"></script> {{content-for "body-footer"}} </body> </html>
0108d1890ee715e2211595412e0cc0ccf55925fa
Casks/xscope3.rb
Casks/xscope3.rb
cask :v1 => 'xscope3' do version '3.6.3' sha256 '1e5e46f50ecd81e35cf819fbd04b2c9726beddc24e86cdd2f6ae5dc60aeb4e4b' url 'https://iconfactory.com/assets/software/xscope/xScope-3.6.3.zip' appcast 'http://iconfactory.com/appcasts/xScope/appcast.xml' homepage 'http://iconfactory.com/software/xscope' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder app 'xScope.app' end
cask :v1 => 'xscope3' do version '3.6.3' sha256 '1e5e46f50ecd81e35cf819fbd04b2c9726beddc24e86cdd2f6ae5dc60aeb4e4b' url 'https://iconfactory.com/assets/software/xscope/xScope-#{version}.zip' appcast 'http://iconfactory.com/appcasts/xScope/appcast.xml' homepage 'http://iconfactory.com/software/xscope' license :commercial app 'xScope.app' end
Update license, use version in URL
Xscope3: Update license, use version in URL
Ruby
bsd-2-clause
mauricerkelly/homebrew-versions,hugoboos/homebrew-versions,yurikoles/homebrew-versions,bondezbond/homebrew-versions,caskroom/homebrew-versions,victorpopkov/homebrew-versions,404NetworkError/homebrew-versions,lantrix/homebrew-versions,Ngrd/homebrew-versions,FinalDes/homebrew-versions,coeligena/homebrew-verscustomized,FinalDes/homebrew-versions,peterjosling/homebrew-versions,victorpopkov/homebrew-versions,yurikoles/homebrew-versions,danielbayley/homebrew-versions,lantrix/homebrew-versions,mahori/homebrew-cask-versions,mahori/homebrew-versions,cprecioso/homebrew-versions,bondezbond/homebrew-versions,toonetown/homebrew-cask-versions,wickedsp1d3r/homebrew-versions,rogeriopradoj/homebrew-versions,danielbayley/homebrew-versions,rogeriopradoj/homebrew-versions,stigkj/homebrew-caskroom-versions,bey2lah/homebrew-versions,cprecioso/homebrew-versions,peterjosling/homebrew-versions,pkq/homebrew-versions,caskroom/homebrew-versions,stigkj/homebrew-caskroom-versions,toonetown/homebrew-cask-versions,wickedsp1d3r/homebrew-versions,Ngrd/homebrew-versions,hugoboos/homebrew-versions,hubwub/homebrew-versions,404NetworkError/homebrew-versions,zerrot/homebrew-versions,hubwub/homebrew-versions,RJHsiao/homebrew-versions,RJHsiao/homebrew-versions,pkq/homebrew-versions,mauricerkelly/homebrew-versions,bey2lah/homebrew-versions
ruby
## Code Before: cask :v1 => 'xscope3' do version '3.6.3' sha256 '1e5e46f50ecd81e35cf819fbd04b2c9726beddc24e86cdd2f6ae5dc60aeb4e4b' url 'https://iconfactory.com/assets/software/xscope/xScope-3.6.3.zip' appcast 'http://iconfactory.com/appcasts/xScope/appcast.xml' homepage 'http://iconfactory.com/software/xscope' license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder app 'xScope.app' end ## Instruction: Xscope3: Update license, use version in URL ## Code After: cask :v1 => 'xscope3' do version '3.6.3' sha256 '1e5e46f50ecd81e35cf819fbd04b2c9726beddc24e86cdd2f6ae5dc60aeb4e4b' url 'https://iconfactory.com/assets/software/xscope/xScope-#{version}.zip' appcast 'http://iconfactory.com/appcasts/xScope/appcast.xml' homepage 'http://iconfactory.com/software/xscope' license :commercial app 'xScope.app' end
77dd3690168768c19a2bb86edae5a8760272f228
guides/introduction/exit_statuses.md
guides/introduction/exit_statuses.md
Credo fails with an exit status != 0 if it shows any issues. This enables shell based pipeline workflows (e.g. on CI systems) which test Credo compliance. The exit status of each check is used to construct a bit map of the types of issues which were encountered by or-ing them together to produce the final result: ```elixir use Bitwise issues |> Enum.map(&(&1.exit_status)) |> Enum.reduce(0, &(&1 ||| &2)) ``` This way you can reason about the encountered issues right from the exit status. Default values for the checks are based on their category: consistency: 1 design: 2 readability: 4 refactor: 8 warning: 16 <custom category>: 32 <custom category>: 64 runtime errors: 128 (and above) Let's see what this means using an example: ```bash $ mix credo [...snip...] $ echo $? 12 ``` So an exit status of `12` tells you that you have only Readability Issues (`4`) and Refactoring Opportunities (`8`), but e.g. no Warnings. Naturally, custom checks and plugins can provide their own exit statuses.
Credo fails with an exit status != 0 if it shows any issues. This enables shell based pipeline workflows (e.g. on CI systems) which test Credo compliance. ## Issue Statuses The exit status of each check is used to construct a bit map of the types of issues which were encountered by or-ing them together to produce the final result: ```elixir use Bitwise issues |> Enum.map(&(&1.exit_status)) |> Enum.reduce(0, &(&1 ||| &2)) ``` This way you can reason about the encountered issues right from the exit status. Default values for the checks are based on their category: consistency: 1 design: 2 readability: 4 refactor: 8 warning: 16 Let's see what this means using an example: ```bash $ mix credo [...snip...] $ echo $? 12 ``` So an exit status of `12` tells you that you have only Readability Issues (`4`) and Refactoring Opportunities (`8`), but e.g. no Warnings. Naturally, custom checks and plugins can provide their own exit statuses. ```bash <custom category>: 32 <custom category>: 64 ``` ## Actual & Custom Errors To also allow for actual errors, an exit status of `>= 128` signals something went wrong during analysis itself. These status codes do not follow the bitwise notation described above: ```bash Generic Credo error: 128 Credo Config errors: 129-131 Reserved errors: 132-191 ``` Naturally, plugins can provide their own exit statuses. ```bash <custom errors>: 192-255 ```
Update docs on exit statuses
Update docs on exit statuses
Markdown
mit
rrrene/credo,rrrene/credo
markdown
## Code Before: Credo fails with an exit status != 0 if it shows any issues. This enables shell based pipeline workflows (e.g. on CI systems) which test Credo compliance. The exit status of each check is used to construct a bit map of the types of issues which were encountered by or-ing them together to produce the final result: ```elixir use Bitwise issues |> Enum.map(&(&1.exit_status)) |> Enum.reduce(0, &(&1 ||| &2)) ``` This way you can reason about the encountered issues right from the exit status. Default values for the checks are based on their category: consistency: 1 design: 2 readability: 4 refactor: 8 warning: 16 <custom category>: 32 <custom category>: 64 runtime errors: 128 (and above) Let's see what this means using an example: ```bash $ mix credo [...snip...] $ echo $? 12 ``` So an exit status of `12` tells you that you have only Readability Issues (`4`) and Refactoring Opportunities (`8`), but e.g. no Warnings. Naturally, custom checks and plugins can provide their own exit statuses. ## Instruction: Update docs on exit statuses ## Code After: Credo fails with an exit status != 0 if it shows any issues. This enables shell based pipeline workflows (e.g. on CI systems) which test Credo compliance. ## Issue Statuses The exit status of each check is used to construct a bit map of the types of issues which were encountered by or-ing them together to produce the final result: ```elixir use Bitwise issues |> Enum.map(&(&1.exit_status)) |> Enum.reduce(0, &(&1 ||| &2)) ``` This way you can reason about the encountered issues right from the exit status. Default values for the checks are based on their category: consistency: 1 design: 2 readability: 4 refactor: 8 warning: 16 Let's see what this means using an example: ```bash $ mix credo [...snip...] $ echo $? 12 ``` So an exit status of `12` tells you that you have only Readability Issues (`4`) and Refactoring Opportunities (`8`), but e.g. no Warnings. Naturally, custom checks and plugins can provide their own exit statuses. ```bash <custom category>: 32 <custom category>: 64 ``` ## Actual & Custom Errors To also allow for actual errors, an exit status of `>= 128` signals something went wrong during analysis itself. These status codes do not follow the bitwise notation described above: ```bash Generic Credo error: 128 Credo Config errors: 129-131 Reserved errors: 132-191 ``` Naturally, plugins can provide their own exit statuses. ```bash <custom errors>: 192-255 ```
9089a477c5b986ec5a134213dab58d0b1250fcca
Casks/zeroxed.rb
Casks/zeroxed.rb
class Zeroxed < Cask url 'http://www.suavetech.com/cgi-bin/download.cgi?0xED.tar.bz2' homepage 'http://www.suavetech.com/0xed/' version '1.1.3' sha256 '56b68898c7a8c1169e9f42790091b100841c3d43549445dc3c4986fae7152793' link '0xED.app' end
class Zeroxed < Cask url 'http://www.suavetech.com/cgi-bin/download.cgi?0xED.tar.bz2' homepage 'http://www.suavetech.com/0xed/' version 'latest' no_checksum link '0xED.app' end
Update ZeroXed to use the latest version.
Update ZeroXed to use the latest version.
Ruby
bsd-2-clause
farmerchris/homebrew-cask,exherb/homebrew-cask,otaran/homebrew-cask,optikfluffel/homebrew-cask,fharbe/homebrew-cask,d/homebrew-cask,bgandon/homebrew-cask,gmkey/homebrew-cask,fharbe/homebrew-cask,taherio/homebrew-cask,wickedsp1d3r/homebrew-cask,shorshe/homebrew-cask,lvicentesanchez/homebrew-cask,akiomik/homebrew-cask,j13k/homebrew-cask,winkelsdorf/homebrew-cask,askl56/homebrew-cask,moimikey/homebrew-cask,yurikoles/homebrew-cask,jiashuw/homebrew-cask,franklouwers/homebrew-cask,santoshsahoo/homebrew-cask,samnung/homebrew-cask,ksylvan/homebrew-cask,samshadwell/homebrew-cask,kuno/homebrew-cask,amatos/homebrew-cask,shanonvl/homebrew-cask,miguelfrde/homebrew-cask,joshka/homebrew-cask,jaredsampson/homebrew-cask,yurrriq/homebrew-cask,mattrobenolt/homebrew-cask,hackhandslabs/homebrew-cask,rkJun/homebrew-cask,ashishb/homebrew-cask,imgarylai/homebrew-cask,amatos/homebrew-cask,kuno/homebrew-cask,bosr/homebrew-cask,reelsense/homebrew-cask,thomanq/homebrew-cask,deiga/homebrew-cask,SamiHiltunen/homebrew-cask,christophermanning/homebrew-cask,ebraminio/homebrew-cask,mahori/homebrew-cask,n0ts/homebrew-cask,diogodamiani/homebrew-cask,carlmod/homebrew-cask,phpwutz/homebrew-cask,af/homebrew-cask,morsdyce/homebrew-cask,MerelyAPseudonym/homebrew-cask,cedwardsmedia/homebrew-cask,victorpopkov/homebrew-cask,BenjaminHCCarr/homebrew-cask,coneman/homebrew-cask,sscotth/homebrew-cask,Cottser/homebrew-cask,elyscape/homebrew-cask,lieuwex/homebrew-cask,FinalDes/homebrew-cask,dunn/homebrew-cask,barravi/homebrew-cask,pacav69/homebrew-cask,wesen/homebrew-cask,albertico/homebrew-cask,tjt263/homebrew-cask,kryhear/homebrew-cask,andersonba/homebrew-cask,josa42/homebrew-cask,petmoo/homebrew-cask,markthetech/homebrew-cask,Labutin/homebrew-cask,alloy/homebrew-cask,rednoah/homebrew-cask,freeslugs/homebrew-cask,prime8/homebrew-cask,cprecioso/homebrew-cask,flaviocamilo/homebrew-cask,cohei/homebrew-cask,bric3/homebrew-cask,sscotth/homebrew-cask,bric3/homebrew-cask,albertico/homebrew-cask,tedski/homebrew-cask,xight/homebrew-cask,zorosteven/homebrew-cask,0rax/homebrew-cask,kongslund/homebrew-cask,andyshinn/homebrew-cask,fkrone/homebrew-cask,zeusdeux/homebrew-cask,ponychicken/homebrew-customcask,donbobka/homebrew-cask,wuman/homebrew-cask,nysthee/homebrew-cask,mjgardner/homebrew-cask,MircoT/homebrew-cask,ingorichter/homebrew-cask,jen20/homebrew-cask,xyb/homebrew-cask,lucasmezencio/homebrew-cask,sirodoht/homebrew-cask,johntrandall/homebrew-cask,tan9/homebrew-cask,sgnh/homebrew-cask,buo/homebrew-cask,inta/homebrew-cask,ponychicken/homebrew-customcask,kievechua/homebrew-cask,imgarylai/homebrew-cask,uetchy/homebrew-cask,xiongchiamiov/homebrew-cask,JosephViolago/homebrew-cask,bchatard/homebrew-cask,tranc99/homebrew-cask,bcaceiro/homebrew-cask,Ngrd/homebrew-cask,jeanregisser/homebrew-cask,gabrielizaias/homebrew-cask,timsutton/homebrew-cask,sparrc/homebrew-cask,kostasdizas/homebrew-cask,thii/homebrew-cask,inz/homebrew-cask,jen20/homebrew-cask,cfillion/homebrew-cask,RogerThiede/homebrew-cask,samdoran/homebrew-cask,janlugt/homebrew-cask,maxnordlund/homebrew-cask,tjnycum/homebrew-cask,pgr0ss/homebrew-cask,skatsuta/homebrew-cask,inz/homebrew-cask,mrmachine/homebrew-cask,mwean/homebrew-cask,MichaelPei/homebrew-cask,fanquake/homebrew-cask,boydj/homebrew-cask,reelsense/homebrew-cask,sysbot/homebrew-cask,larseggert/homebrew-cask,cliffcotino/homebrew-cask,jbeagley52/homebrew-cask,mishari/homebrew-cask,tarwich/homebrew-cask,nathansgreen/homebrew-cask,daften/homebrew-cask,toonetown/homebrew-cask,casidiablo/homebrew-cask,jacobbednarz/homebrew-cask,SamiHiltunen/homebrew-cask,dlackty/homebrew-cask,jangalinski/homebrew-cask,lantrix/homebrew-cask,ericbn/homebrew-cask,n0ts/homebrew-cask,gerrypower/homebrew-cask,tdsmith/homebrew-cask,blainesch/homebrew-cask,mingzhi22/homebrew-cask,gibsjose/homebrew-cask,tangestani/homebrew-cask,deanmorin/homebrew-cask,jconley/homebrew-cask,astorije/homebrew-cask,coeligena/homebrew-customized,astorije/homebrew-cask,pkq/homebrew-cask,caskroom/homebrew-cask,ninjahoahong/homebrew-cask,MisumiRize/homebrew-cask,englishm/homebrew-cask,AndreTheHunter/homebrew-cask,m3nu/homebrew-cask,csmith-palantir/homebrew-cask,moimikey/homebrew-cask,larseggert/homebrew-cask,thii/homebrew-cask,devmynd/homebrew-cask,ch3n2k/homebrew-cask,dezon/homebrew-cask,royalwang/homebrew-cask,mjdescy/homebrew-cask,mkozjak/homebrew-cask,sanyer/homebrew-cask,tonyseek/homebrew-cask,guylabs/homebrew-cask,FranklinChen/homebrew-cask,scottsuch/homebrew-cask,forevergenin/homebrew-cask,sohtsuka/homebrew-cask,dieterdemeyer/homebrew-cask,kolomiichenko/homebrew-cask,troyxmccall/homebrew-cask,englishm/homebrew-cask,johndbritton/homebrew-cask,nanoxd/homebrew-cask,andyli/homebrew-cask,ericbn/homebrew-cask,winkelsdorf/homebrew-cask,johnste/homebrew-cask,RJHsiao/homebrew-cask,JacopKane/homebrew-cask,drostron/homebrew-cask,mwilmer/homebrew-cask,wayou/homebrew-cask,mazehall/homebrew-cask,jamesmlees/homebrew-cask,jhowtan/homebrew-cask,epardee/homebrew-cask,Gasol/homebrew-cask,Amorymeltzer/homebrew-cask,mattrobenolt/homebrew-cask,gord1anknot/homebrew-cask,mariusbutuc/homebrew-cask,enriclluelles/homebrew-cask,theoriginalgri/homebrew-cask,spruceb/homebrew-cask,carlmod/homebrew-cask,qbmiller/homebrew-cask,leipert/homebrew-cask,hswong3i/homebrew-cask,arranubels/homebrew-cask,riyad/homebrew-cask,L2G/homebrew-cask,bgandon/homebrew-cask,pinut/homebrew-cask,epardee/homebrew-cask,dvdoliveira/homebrew-cask,klane/homebrew-cask,ericbn/homebrew-cask,delphinus35/homebrew-cask,scw/homebrew-cask,alebcay/homebrew-cask,jayshao/homebrew-cask,kiliankoe/homebrew-cask,lukeadams/homebrew-cask,rajiv/homebrew-cask,rickychilcott/homebrew-cask,lcasey001/homebrew-cask,chrisRidgers/homebrew-cask,vuquoctuan/homebrew-cask,dlackty/homebrew-cask,cclauss/homebrew-cask,danielbayley/homebrew-cask,mjgardner/homebrew-cask,Philosoft/homebrew-cask,kamilboratynski/homebrew-cask,muan/homebrew-cask,onlynone/homebrew-cask,fly19890211/homebrew-cask,BenjaminHCCarr/homebrew-cask,kesara/homebrew-cask,buo/homebrew-cask,opsdev-ws/homebrew-cask,elseym/homebrew-cask,ashishb/homebrew-cask,zerrot/homebrew-cask,kesara/homebrew-cask,chuanxd/homebrew-cask,ingorichter/homebrew-cask,mfpierre/homebrew-cask,danielbayley/homebrew-cask,esebastian/homebrew-cask,mchlrmrz/homebrew-cask,hanxue/caskroom,jalaziz/homebrew-cask,jpmat296/homebrew-cask,hristozov/homebrew-cask,gyndav/homebrew-cask,samdoran/homebrew-cask,gerrymiller/homebrew-cask,otaran/homebrew-cask,miccal/homebrew-cask,taherio/homebrew-cask,dieterdemeyer/homebrew-cask,crmne/homebrew-cask,vuquoctuan/homebrew-cask,zhuzihhhh/homebrew-cask,slnovak/homebrew-cask,sanyer/homebrew-cask,deizel/homebrew-cask,patresi/homebrew-cask,rcuza/homebrew-cask,gilesdring/homebrew-cask,kkdd/homebrew-cask,hellosky806/homebrew-cask,joshka/homebrew-cask,ky0615/homebrew-cask-1,nickpellant/homebrew-cask,jgarber623/homebrew-cask,hackhandslabs/homebrew-cask,mokagio/homebrew-cask,ddm/homebrew-cask,mikem/homebrew-cask,morganestes/homebrew-cask,rubenerd/homebrew-cask,cobyism/homebrew-cask,opsdev-ws/homebrew-cask,crmne/homebrew-cask,mAAdhaTTah/homebrew-cask,fanquake/homebrew-cask,pablote/homebrew-cask,markhuber/homebrew-cask,skyyuan/homebrew-cask,sjackman/homebrew-cask,afh/homebrew-cask,thehunmonkgroup/homebrew-cask,tdsmith/homebrew-cask,kevyau/homebrew-cask,wickedsp1d3r/homebrew-cask,lalyos/homebrew-cask,nicholsn/homebrew-cask,BahtiyarB/homebrew-cask,psibre/homebrew-cask,howie/homebrew-cask,dictcp/homebrew-cask,tjnycum/homebrew-cask,ahvigil/homebrew-cask,athrunsun/homebrew-cask,artdevjs/homebrew-cask,joshka/homebrew-cask,vitorgalvao/homebrew-cask,wastrachan/homebrew-cask,tsparber/homebrew-cask,dvdoliveira/homebrew-cask,stonehippo/homebrew-cask,rubenerd/homebrew-cask,haha1903/homebrew-cask,elseym/homebrew-cask,epmatsw/homebrew-cask,mjgardner/homebrew-cask,guerrero/homebrew-cask,danielgomezrico/homebrew-cask,wickles/homebrew-cask,faun/homebrew-cask,gilesdring/homebrew-cask,dwihn0r/homebrew-cask,catap/homebrew-cask,MoOx/homebrew-cask,valepert/homebrew-cask,julienlavergne/homebrew-cask,zchee/homebrew-cask,xtian/homebrew-cask,timsutton/homebrew-cask,AdamCmiel/homebrew-cask,zorosteven/homebrew-cask,feniix/homebrew-cask,jangalinski/homebrew-cask,johan/homebrew-cask,kronicd/homebrew-cask,uetchy/homebrew-cask,tranc99/homebrew-cask,j13k/homebrew-cask,jrwesolo/homebrew-cask,Keloran/homebrew-cask,ctrevino/homebrew-cask,nshemonsky/homebrew-cask,mazehall/homebrew-cask,rkJun/homebrew-cask,codeurge/homebrew-cask,coeligena/homebrew-customized,andyshinn/homebrew-cask,anbotero/homebrew-cask,victorpopkov/homebrew-cask,perfide/homebrew-cask,scottsuch/homebrew-cask,gwaldo/homebrew-cask,optikfluffel/homebrew-cask,neil-ca-moore/homebrew-cask,wmorin/homebrew-cask,kingthorin/homebrew-cask,afdnlw/homebrew-cask,katoquro/homebrew-cask,jacobbednarz/homebrew-cask,bsiddiqui/homebrew-cask,linc01n/homebrew-cask,a-x-/homebrew-cask,bkono/homebrew-cask,Labutin/homebrew-cask,renaudguerin/homebrew-cask,andrewschleifer/homebrew-cask,Ketouem/homebrew-cask,dlovitch/homebrew-cask,klane/homebrew-cask,LaurentFough/homebrew-cask,nrlquaker/homebrew-cask,mindriot101/homebrew-cask,gregkare/homebrew-cask,freeslugs/homebrew-cask,nysthee/homebrew-cask,ksato9700/homebrew-cask,troyxmccall/homebrew-cask,hanxue/caskroom,nathanielvarona/homebrew-cask,doits/homebrew-cask,KosherBacon/homebrew-cask,johndbritton/homebrew-cask,genewoo/homebrew-cask,seanzxx/homebrew-cask,julionc/homebrew-cask,y00rb/homebrew-cask,fkrone/homebrew-cask,jeanregisser/homebrew-cask,chrisRidgers/homebrew-cask,Bombenleger/homebrew-cask,sjackman/homebrew-cask,cclauss/homebrew-cask,andyli/homebrew-cask,jeroenseegers/homebrew-cask,goxberry/homebrew-cask,xcezx/homebrew-cask,kongslund/homebrew-cask,qnm/homebrew-cask,imgarylai/homebrew-cask,wmorin/homebrew-cask,williamboman/homebrew-cask,mattfelsen/homebrew-cask,supriyantomaftuh/homebrew-cask,inta/homebrew-cask,ebraminio/homebrew-cask,howie/homebrew-cask,shonjir/homebrew-cask,tsparber/homebrew-cask,moogar0880/homebrew-cask,stevehedrick/homebrew-cask,dwkns/homebrew-cask,miguelfrde/homebrew-cask,goxberry/homebrew-cask,thomanq/homebrew-cask,asins/homebrew-cask,aguynamedryan/homebrew-cask,paulbreslin/homebrew-cask,BenjaminHCCarr/homebrew-cask,skyyuan/homebrew-cask,sachin21/homebrew-cask,afdnlw/homebrew-cask,yumitsu/homebrew-cask,xakraz/homebrew-cask,gurghet/homebrew-cask,neverfox/homebrew-cask,wayou/homebrew-cask,theoriginalgri/homebrew-cask,renard/homebrew-cask,claui/homebrew-cask,rajiv/homebrew-cask,ianyh/homebrew-cask,greg5green/homebrew-cask,caskroom/homebrew-cask,dspeckhard/homebrew-cask,dustinblackman/homebrew-cask,underyx/homebrew-cask,okket/homebrew-cask,jalaziz/homebrew-cask,n8henrie/homebrew-cask,aktau/homebrew-cask,winkelsdorf/homebrew-cask,wastrachan/homebrew-cask,andrewdisley/homebrew-cask,mattfelsen/homebrew-cask,chrisfinazzo/homebrew-cask,FinalDes/homebrew-cask,decrement/homebrew-cask,ohammersmith/homebrew-cask,AnastasiaSulyagina/homebrew-cask,Ketouem/homebrew-cask,dcondrey/homebrew-cask,adrianchia/homebrew-cask,JosephViolago/homebrew-cask,daften/homebrew-cask,gibsjose/homebrew-cask,JoelLarson/homebrew-cask,MerelyAPseudonym/homebrew-cask,christer155/homebrew-cask,lukeadams/homebrew-cask,dezon/homebrew-cask,cblecker/homebrew-cask,6uclz1/homebrew-cask,devmynd/homebrew-cask,tjnycum/homebrew-cask,rogeriopradoj/homebrew-cask,unasuke/homebrew-cask,Gasol/homebrew-cask,rhendric/homebrew-cask,stonehippo/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,joaocc/homebrew-cask,Ephemera/homebrew-cask,miccal/homebrew-cask,jellyfishcoder/homebrew-cask,lolgear/homebrew-cask,usami-k/homebrew-cask,mchlrmrz/homebrew-cask,shishi/homebrew-cask,jonathanwiesel/homebrew-cask,chino/homebrew-cask,paour/homebrew-cask,ohammersmith/homebrew-cask,MisumiRize/homebrew-cask,slack4u/homebrew-cask,samnung/homebrew-cask,djakarta-trap/homebrew-myCask,dunn/homebrew-cask,wKovacs64/homebrew-cask,helloIAmPau/homebrew-cask,mwek/homebrew-cask,hovancik/homebrew-cask,pinut/homebrew-cask,elnappo/homebrew-cask,chino/homebrew-cask,MatzFan/homebrew-cask,otzy007/homebrew-cask,chadcatlett/caskroom-homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,MicTech/homebrew-cask,hyuna917/homebrew-cask,mlocher/homebrew-cask,flaviocamilo/homebrew-cask,cliffcotino/homebrew-cask,wizonesolutions/homebrew-cask,ddm/homebrew-cask,joaoponceleao/homebrew-cask,johan/homebrew-cask,zhuzihhhh/homebrew-cask,moogar0880/homebrew-cask,puffdad/homebrew-cask,segiddins/homebrew-cask,jppelteret/homebrew-cask,hswong3i/homebrew-cask,elnappo/homebrew-cask,andersonba/homebrew-cask,uetchy/homebrew-cask,pkq/homebrew-cask,djakarta-trap/homebrew-myCask,kassi/homebrew-cask,kamilboratynski/homebrew-cask,malob/homebrew-cask,hellosky806/homebrew-cask,riyad/homebrew-cask,bcomnes/homebrew-cask,mathbunnyru/homebrew-cask,githubutilities/homebrew-cask,rednoah/homebrew-cask,wesen/homebrew-cask,huanzhang/homebrew-cask,JikkuJose/homebrew-cask,singingwolfboy/homebrew-cask,muan/homebrew-cask,ayohrling/homebrew-cask,0xadada/homebrew-cask,vigosan/homebrew-cask,alexg0/homebrew-cask,renard/homebrew-cask,antogg/homebrew-cask,seanzxx/homebrew-cask,mathbunnyru/homebrew-cask,greg5green/homebrew-cask,deizel/homebrew-cask,Hywan/homebrew-cask,m3nu/homebrew-cask,sebcode/homebrew-cask,kevyau/homebrew-cask,coneman/homebrew-cask,blogabe/homebrew-cask,jedahan/homebrew-cask,danielgomezrico/homebrew-cask,jeroenj/homebrew-cask,L2G/homebrew-cask,robbiethegeek/homebrew-cask,iAmGhost/homebrew-cask,tedbundyjr/homebrew-cask,artdevjs/homebrew-cask,SentinelWarren/homebrew-cask,Hywan/homebrew-cask,mchlrmrz/homebrew-cask,0rax/homebrew-cask,cblecker/homebrew-cask,lauantai/homebrew-cask,chadcatlett/caskroom-homebrew-cask,stephenwade/homebrew-cask,catap/homebrew-cask,rcuza/homebrew-cask,royalwang/homebrew-cask,segiddins/homebrew-cask,singingwolfboy/homebrew-cask,crzrcn/homebrew-cask,tmoreira2020/homebrew,kTitan/homebrew-cask,wKovacs64/homebrew-cask,jasmas/homebrew-cask,slack4u/homebrew-cask,ftiff/homebrew-cask,asbachb/homebrew-cask,My2ndAngelic/homebrew-cask,onlynone/homebrew-cask,ahbeng/homebrew-cask,nelsonjchen/homebrew-cask,wickles/homebrew-cask,schneidmaster/homebrew-cask,akiomik/homebrew-cask,faun/homebrew-cask,gregkare/homebrew-cask,squid314/homebrew-cask,bosr/homebrew-cask,aguynamedryan/homebrew-cask,seanorama/homebrew-cask,wolflee/homebrew-cask,guerrero/homebrew-cask,yutarody/homebrew-cask,bric3/homebrew-cask,djmonta/homebrew-cask,gerrymiller/homebrew-cask,jspahrsummers/homebrew-cask,Cottser/homebrew-cask,yuhki50/homebrew-cask,qnm/homebrew-cask,hristozov/homebrew-cask,Whoaa512/homebrew-cask,leipert/homebrew-cask,wolflee/homebrew-cask,jpmat296/homebrew-cask,jayshao/homebrew-cask,lieuwex/homebrew-cask,xalep/homebrew-cask,jacobdam/homebrew-cask,Whoaa512/homebrew-cask,hakamadare/homebrew-cask,brianshumate/homebrew-cask,jmeridth/homebrew-cask,Keloran/homebrew-cask,shanonvl/homebrew-cask,linc01n/homebrew-cask,mauricerkelly/homebrew-cask,RickWong/homebrew-cask,deanmorin/homebrew-cask,yuhki50/homebrew-cask,afh/homebrew-cask,githubutilities/homebrew-cask,blogabe/homebrew-cask,paour/homebrew-cask,dlovitch/homebrew-cask,Nitecon/homebrew-cask,codeurge/homebrew-cask,xakraz/homebrew-cask,RJHsiao/homebrew-cask,timsutton/homebrew-cask,Ibuprofen/homebrew-cask,mAAdhaTTah/homebrew-cask,haha1903/homebrew-cask,jeroenj/homebrew-cask,flada-auxv/homebrew-cask,schneidmaster/homebrew-cask,elyscape/homebrew-cask,lauantai/homebrew-cask,bdhess/homebrew-cask,jhowtan/homebrew-cask,Amorymeltzer/homebrew-cask,stevenmaguire/homebrew-cask,mauricerkelly/homebrew-cask,ky0615/homebrew-cask-1,gyndav/homebrew-cask,mattrobenolt/homebrew-cask,mahori/homebrew-cask,arranubels/homebrew-cask,nivanchikov/homebrew-cask,tedski/homebrew-cask,mkozjak/homebrew-cask,optikfluffel/homebrew-cask,xyb/homebrew-cask,chuanxd/homebrew-cask,sosedoff/homebrew-cask,puffdad/homebrew-cask,andrewschleifer/homebrew-cask,illusionfield/homebrew-cask,xight/homebrew-cask,supriyantomaftuh/homebrew-cask,kei-yamazaki/homebrew-cask,barravi/homebrew-cask,kei-yamazaki/homebrew-cask,adelinofaria/homebrew-cask,illusionfield/homebrew-cask,danielbayley/homebrew-cask,fwiesel/homebrew-cask,farmerchris/homebrew-cask,claui/homebrew-cask,mishari/homebrew-cask,jiashuw/homebrew-cask,syscrusher/homebrew-cask,esebastian/homebrew-cask,af/homebrew-cask,usami-k/homebrew-cask,sparrc/homebrew-cask,jgarber623/homebrew-cask,alexg0/homebrew-cask,jgarber623/homebrew-cask,ahundt/homebrew-cask,jamesmlees/homebrew-cask,gyugyu/homebrew-cask,giannitm/homebrew-cask,JacopKane/homebrew-cask,iamso/homebrew-cask,My2ndAngelic/homebrew-cask,leonmachadowilcox/homebrew-cask,nightscape/homebrew-cask,lumaxis/homebrew-cask,enriclluelles/homebrew-cask,dustinblackman/homebrew-cask,katoquro/homebrew-cask,garborg/homebrew-cask,tjt263/homebrew-cask,forevergenin/homebrew-cask,wizonesolutions/homebrew-cask,bsiddiqui/homebrew-cask,crzrcn/homebrew-cask,bendoerr/homebrew-cask,lvicentesanchez/homebrew-cask,nicolas-brousse/homebrew-cask,esebastian/homebrew-cask,malob/homebrew-cask,fazo96/homebrew-cask,adriweb/homebrew-cask,cfillion/homebrew-cask,ftiff/homebrew-cask,christophermanning/homebrew-cask,ptb/homebrew-cask,dictcp/homebrew-cask,miku/homebrew-cask,ldong/homebrew-cask,josa42/homebrew-cask,kiliankoe/homebrew-cask,kpearson/homebrew-cask,cobyism/homebrew-cask,mwilmer/homebrew-cask,adriweb/homebrew-cask,robbiethegeek/homebrew-cask,jaredsampson/homebrew-cask,arronmabrey/homebrew-cask,xyb/homebrew-cask,gguillotte/homebrew-cask,6uclz1/homebrew-cask,Saklad5/homebrew-cask,jtriley/homebrew-cask,vmrob/homebrew-cask,retrography/homebrew-cask,tmoreira2020/homebrew,otzy007/homebrew-cask,feigaochn/homebrew-cask,frapposelli/homebrew-cask,ahvigil/homebrew-cask,Fedalto/homebrew-cask,RogerThiede/homebrew-cask,mrmachine/homebrew-cask,exherb/homebrew-cask,csmith-palantir/homebrew-cask,xcezx/homebrew-cask,jpodlech/homebrew-cask,nicolas-brousse/homebrew-cask,andrewdisley/homebrew-cask,jawshooah/homebrew-cask,d/homebrew-cask,cprecioso/homebrew-cask,CameronGarrett/homebrew-cask,prime8/homebrew-cask,phpwutz/homebrew-cask,gabrielizaias/homebrew-cask,miku/homebrew-cask,remko/homebrew-cask,asbachb/homebrew-cask,a-x-/homebrew-cask,mfpierre/homebrew-cask,colindunn/homebrew-cask,sanyer/homebrew-cask,kingthorin/homebrew-cask,AnastasiaSulyagina/homebrew-cask,markthetech/homebrew-cask,gustavoavellar/homebrew-cask,shoichiaizawa/homebrew-cask,hakamadare/homebrew-cask,qbmiller/homebrew-cask,Ephemera/homebrew-cask,guylabs/homebrew-cask,Bombenleger/homebrew-cask,pkq/homebrew-cask,singingwolfboy/homebrew-cask,retbrown/homebrew-cask,michelegera/homebrew-cask,bcaceiro/homebrew-cask,fly19890211/homebrew-cask,3van/homebrew-cask,feniix/homebrew-cask,julienlavergne/homebrew-cask,joschi/homebrew-cask,mikem/homebrew-cask,13k/homebrew-cask,ianyh/homebrew-cask,mwean/homebrew-cask,pacav69/homebrew-cask,kpearson/homebrew-cask,JacopKane/homebrew-cask,koenrh/homebrew-cask,stonehippo/homebrew-cask,iAmGhost/homebrew-cask,mwek/homebrew-cask,JikkuJose/homebrew-cask,axodys/homebrew-cask,scottsuch/homebrew-cask,rogeriopradoj/homebrew-cask,seanorama/homebrew-cask,paulombcosta/homebrew-cask,retbrown/homebrew-cask,zmwangx/homebrew-cask,deiga/homebrew-cask,gurghet/homebrew-cask,shonjir/homebrew-cask,mjdescy/homebrew-cask,jalaziz/homebrew-cask,williamboman/homebrew-cask,Ibuprofen/homebrew-cask,jppelteret/homebrew-cask,vin047/homebrew-cask,pgr0ss/homebrew-cask,shonjir/homebrew-cask,jpodlech/homebrew-cask,dwihn0r/homebrew-cask,vmrob/homebrew-cask,feigaochn/homebrew-cask,ksato9700/homebrew-cask,napaxton/homebrew-cask,nicholsn/homebrew-cask,yurikoles/homebrew-cask,sanchezm/homebrew-cask,dcondrey/homebrew-cask,okket/homebrew-cask,m3nu/homebrew-cask,tolbkni/homebrew-cask,shoichiaizawa/homebrew-cask,koenrh/homebrew-cask,joaoponceleao/homebrew-cask,kirikiriyamama/homebrew-cask,christer155/homebrew-cask,ajbw/homebrew-cask,robertgzr/homebrew-cask,reitermarkus/homebrew-cask,slnovak/homebrew-cask,AdamCmiel/homebrew-cask,nightscape/homebrew-cask,kkdd/homebrew-cask,unasuke/homebrew-cask,diguage/homebrew-cask,kirikiriyamama/homebrew-cask,tangestani/homebrew-cask,bchatard/homebrew-cask,underyx/homebrew-cask,nrlquaker/homebrew-cask,arronmabrey/homebrew-cask,psibre/homebrew-cask,jacobdam/homebrew-cask,MatzFan/homebrew-cask,kronicd/homebrew-cask,malford/homebrew-cask,dspeckhard/homebrew-cask,atsuyim/homebrew-cask,ninjahoahong/homebrew-cask,mhubig/homebrew-cask,yurrriq/homebrew-cask,robertgzr/homebrew-cask,scribblemaniac/homebrew-cask,jellyfishcoder/homebrew-cask,athrunsun/homebrew-cask,cobyism/homebrew-cask,helloIAmPau/homebrew-cask,drostron/homebrew-cask,coeligena/homebrew-customized,blainesch/homebrew-cask,decrement/homebrew-cask,nathanielvarona/homebrew-cask,yumitsu/homebrew-cask,jbeagley52/homebrew-cask,LaurentFough/homebrew-cask,gwaldo/homebrew-cask,bdhess/homebrew-cask,syscrusher/homebrew-cask,xight/homebrew-cask,axodys/homebrew-cask,n8henrie/homebrew-cask,ywfwj2008/homebrew-cask,garborg/homebrew-cask,ch3n2k/homebrew-cask,lalyos/homebrew-cask,KosherBacon/homebrew-cask,lucasmezencio/homebrew-cask,samshadwell/homebrew-cask,malob/homebrew-cask,neverfox/homebrew-cask,gerrypower/homebrew-cask,tonyseek/homebrew-cask,MicTech/homebrew-cask,zmwangx/homebrew-cask,sirodoht/homebrew-cask,cedwardsmedia/homebrew-cask,gyndav/homebrew-cask,corbt/homebrew-cask,josa42/homebrew-cask,shoichiaizawa/homebrew-cask,Saklad5/homebrew-cask,joschi/homebrew-cask,kingthorin/homebrew-cask,patresi/homebrew-cask,mingzhi22/homebrew-cask,diogodamiani/homebrew-cask,nivanchikov/homebrew-cask,ksylvan/homebrew-cask,Ephemera/homebrew-cask,wmorin/homebrew-cask,franklouwers/homebrew-cask,blogabe/homebrew-cask,norio-nomura/homebrew-cask,JoelLarson/homebrew-cask,nelsonjchen/homebrew-cask,bcomnes/homebrew-cask,bendoerr/homebrew-cask,skatsuta/homebrew-cask,JosephViolago/homebrew-cask,MichaelPei/homebrew-cask,antogg/homebrew-cask,hvisage/homebrew-cask,nshemonsky/homebrew-cask,michelegera/homebrew-cask,bkono/homebrew-cask,julionc/homebrew-cask,vin047/homebrew-cask,moonboots/homebrew-cask,rogeriopradoj/homebrew-cask,Amorymeltzer/homebrew-cask,neil-ca-moore/homebrew-cask,nrlquaker/homebrew-cask,aki77/homebrew-cask,sohtsuka/homebrew-cask,miccal/homebrew-cask,hanxue/caskroom,Dremora/homebrew-cask,kTitan/homebrew-cask,rickychilcott/homebrew-cask,dictcp/homebrew-cask,fwiesel/homebrew-cask,stephenwade/homebrew-cask,jonathanwiesel/homebrew-cask,flada-auxv/homebrew-cask,iamso/homebrew-cask,petmoo/homebrew-cask,lcasey001/homebrew-cask,casidiablo/homebrew-cask,jspahrsummers/homebrew-cask,ahbeng/homebrew-cask,gguillotte/homebrew-cask,rajiv/homebrew-cask,antogg/homebrew-cask,alebcay/homebrew-cask,gmkey/homebrew-cask,nathanielvarona/homebrew-cask,ptb/homebrew-cask,asins/homebrew-cask,sebcode/homebrew-cask,lantrix/homebrew-cask,mgryszko/homebrew-cask,johntrandall/homebrew-cask,perfide/homebrew-cask,mhubig/homebrew-cask,atsuyim/homebrew-cask,reitermarkus/homebrew-cask,hyuna917/homebrew-cask,13k/homebrew-cask,MoOx/homebrew-cask,rhendric/homebrew-cask,jedahan/homebrew-cask,joschi/homebrew-cask,nathancahill/homebrew-cask,gustavoavellar/homebrew-cask,stevehedrick/homebrew-cask,toonetown/homebrew-cask,nathancahill/homebrew-cask,markhuber/homebrew-cask,xiongchiamiov/homebrew-cask,RickWong/homebrew-cask,aki77/homebrew-cask,alexg0/homebrew-cask,stevenmaguire/homebrew-cask,stigkj/homebrew-caskroom-cask,jrwesolo/homebrew-cask,donbobka/homebrew-cask,a1russell/homebrew-cask,brianshumate/homebrew-cask,lolgear/homebrew-cask,delphinus35/homebrew-cask,mindriot101/homebrew-cask,lukasbestle/homebrew-cask,shorshe/homebrew-cask,genewoo/homebrew-cask,kteru/homebrew-cask,squid314/homebrew-cask,stigkj/homebrew-caskroom-cask,frapposelli/homebrew-cask,tyage/homebrew-cask,moonboots/homebrew-cask,deiga/homebrew-cask,retrography/homebrew-cask,sachin21/homebrew-cask,kryhear/homebrew-cask,0xadada/homebrew-cask,nickpellant/homebrew-cask,andrewdisley/homebrew-cask,tan9/homebrew-cask,scw/homebrew-cask,adelinofaria/homebrew-cask,kolomiichenko/homebrew-cask,AndreTheHunter/homebrew-cask,cohei/homebrew-cask,johnste/homebrew-cask,Fedalto/homebrew-cask,anbotero/homebrew-cask,jconley/homebrew-cask,epmatsw/homebrew-cask,ayohrling/homebrew-cask,spruceb/homebrew-cask,doits/homebrew-cask,mahori/homebrew-cask,reitermarkus/homebrew-cask,lifepillar/homebrew-cask,sosedoff/homebrew-cask,3van/homebrew-cask,xalep/homebrew-cask,scribblemaniac/homebrew-cask,zeusdeux/homebrew-cask,maxnordlund/homebrew-cask,yutarody/homebrew-cask,Ngrd/homebrew-cask,corbt/homebrew-cask,janlugt/homebrew-cask,boecko/homebrew-cask,valepert/homebrew-cask,gord1anknot/homebrew-cask,huanzhang/homebrew-cask,tarwich/homebrew-cask,alebcay/homebrew-cask,santoshsahoo/homebrew-cask,tyage/homebrew-cask,vitorgalvao/homebrew-cask,boydj/homebrew-cask,kievechua/homebrew-cask,sgnh/homebrew-cask,lifepillar/homebrew-cask,mokagio/homebrew-cask,tolbkni/homebrew-cask,jawshooah/homebrew-cask,shishi/homebrew-cask,a1russell/homebrew-cask,ctrevino/homebrew-cask,johnjelinek/homebrew-cask,askl56/homebrew-cask,morganestes/homebrew-cask,jmeridth/homebrew-cask,ldong/homebrew-cask,ahundt/homebrew-cask,lumaxis/homebrew-cask,yurikoles/homebrew-cask,BahtiyarB/homebrew-cask,mlocher/homebrew-cask,stephenwade/homebrew-cask,renaudguerin/homebrew-cask,mgryszko/homebrew-cask,pablote/homebrew-cask,ywfwj2008/homebrew-cask,sanchezm/homebrew-cask,Nitecon/homebrew-cask,hvisage/homebrew-cask,y00rb/homebrew-cask,scribblemaniac/homebrew-cask,malford/homebrew-cask,sysbot/homebrew-cask,yutarody/homebrew-cask,morsdyce/homebrew-cask,a1russell/homebrew-cask,chrisfinazzo/homebrew-cask,chrisfinazzo/homebrew-cask,colindean/homebrew-cask,nathansgreen/homebrew-cask,colindunn/homebrew-cask,claui/homebrew-cask,napaxton/homebrew-cask,paour/homebrew-cask,fazo96/homebrew-cask,mariusbutuc/homebrew-cask,CameronGarrett/homebrew-cask,remko/homebrew-cask,wuman/homebrew-cask,ajbw/homebrew-cask,FredLackeyOfficial/homebrew-cask,kteru/homebrew-cask,Dremora/homebrew-cask,FranklinChen/homebrew-cask,tedbundyjr/homebrew-cask,hovancik/homebrew-cask,gyugyu/homebrew-cask,paulbreslin/homebrew-cask,boecko/homebrew-cask,joaocc/homebrew-cask,colindean/homebrew-cask,tangestani/homebrew-cask,jeroenseegers/homebrew-cask,nanoxd/homebrew-cask,adrianchia/homebrew-cask,lukasbestle/homebrew-cask,FredLackeyOfficial/homebrew-cask,jtriley/homebrew-cask,giannitm/homebrew-cask,moimikey/homebrew-cask,adrianchia/homebrew-cask,leonmachadowilcox/homebrew-cask,mathbunnyru/homebrew-cask,diguage/homebrew-cask,cblecker/homebrew-cask,kassi/homebrew-cask,thehunmonkgroup/homebrew-cask,kostasdizas/homebrew-cask,zerrot/homebrew-cask,norio-nomura/homebrew-cask,johnjelinek/homebrew-cask,Philosoft/homebrew-cask,SentinelWarren/homebrew-cask,jasmas/homebrew-cask,vigosan/homebrew-cask,aktau/homebrew-cask,sscotth/homebrew-cask,xtian/homebrew-cask,neverfox/homebrew-cask,MircoT/homebrew-cask,kesara/homebrew-cask,zchee/homebrew-cask,julionc/homebrew-cask,dwkns/homebrew-cask,djmonta/homebrew-cask,alloy/homebrew-cask,paulombcosta/homebrew-cask
ruby
## Code Before: class Zeroxed < Cask url 'http://www.suavetech.com/cgi-bin/download.cgi?0xED.tar.bz2' homepage 'http://www.suavetech.com/0xed/' version '1.1.3' sha256 '56b68898c7a8c1169e9f42790091b100841c3d43549445dc3c4986fae7152793' link '0xED.app' end ## Instruction: Update ZeroXed to use the latest version. ## Code After: class Zeroxed < Cask url 'http://www.suavetech.com/cgi-bin/download.cgi?0xED.tar.bz2' homepage 'http://www.suavetech.com/0xed/' version 'latest' no_checksum link '0xED.app' end
9fda96e197abc9eba24962443ed79bc11fef485c
scss/_breadcrumb.scss
scss/_breadcrumb.scss
.breadcrumb { display: flex; flex-wrap: wrap; padding: $breadcrumb-padding-y $breadcrumb-padding-x; margin-bottom: $breadcrumb-margin-bottom; list-style: none; background-color: $breadcrumb-bg; @include border-radius($breadcrumb-border-radius); } .breadcrumb-item { // The separator between breadcrumbs (by default, a forward-slash: "/") + .breadcrumb-item { padding-left: $breadcrumb-item-padding-x; &::before { display: inline-block; // Suppress underlining of the separator in modern browsers padding-right: $breadcrumb-item-padding-x; color: $breadcrumb-divider-color; content: $breadcrumb-divider; } } // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built // without `<ul>`s. The `::before` pseudo-element generates an element // *within* the .breadcrumb-item and thereby inherits the `text-decoration`. // // To trick IE into suppressing the underline, we give the pseudo-element an // underline and then immediately remove it. + .breadcrumb-item:hover::before { text-decoration: underline; } // stylelint-disable-next-line no-duplicate-selectors + .breadcrumb-item:hover::before { text-decoration: none; } &.active { color: $breadcrumb-active-color; } }
.breadcrumb { display: flex; flex-wrap: wrap; padding: $breadcrumb-padding-y $breadcrumb-padding-x; margin-bottom: $breadcrumb-margin-bottom; list-style: none; background-color: $breadcrumb-bg; @include border-radius($breadcrumb-border-radius); } .breadcrumb-item { // The separator between breadcrumbs (by default, a forward-slash: "/") + .breadcrumb-item { padding-left: $breadcrumb-item-padding-x; &::before { display: inline-block; // Suppress underlining of the separator in modern browsers padding-right: $breadcrumb-item-padding-x; color: $breadcrumb-divider-color; content: $breadcrumb-divider; } } + .breadcrumb-item:hover::before { text-decoration: none; } &.active { color: $breadcrumb-active-color; } }
Remove IE-specific breadcrumb CSS hack
Remove IE-specific breadcrumb CSS hack
SCSS
mit
tjkohli/bootstrap,twbs/bootstrap,tagliala/bootstrap,peterblazejewicz/bootstrap,m5o/bootstrap,coliff/bootstrap,twbs/bootstrap,coliff/bootstrap,GerHobbelt/bootstrap,zalog/bootstrap,stanwmusic/bootstrap,zalog/bootstrap,tjkohli/bootstrap,GerHobbelt/bootstrap,tagliala/bootstrap,zalog/bootstrap,m5o/bootstrap,inway/bootstrap,stanwmusic/bootstrap,peterblazejewicz/bootstrap,stanwmusic/bootstrap,kvlsrg/bootstrap,kvlsrg/bootstrap,stanwmusic/bootstrap,peterblazejewicz/bootstrap,inway/bootstrap,GerHobbelt/bootstrap,tagliala/bootstrap,inway/bootstrap,kvlsrg/bootstrap
scss
## Code Before: .breadcrumb { display: flex; flex-wrap: wrap; padding: $breadcrumb-padding-y $breadcrumb-padding-x; margin-bottom: $breadcrumb-margin-bottom; list-style: none; background-color: $breadcrumb-bg; @include border-radius($breadcrumb-border-radius); } .breadcrumb-item { // The separator between breadcrumbs (by default, a forward-slash: "/") + .breadcrumb-item { padding-left: $breadcrumb-item-padding-x; &::before { display: inline-block; // Suppress underlining of the separator in modern browsers padding-right: $breadcrumb-item-padding-x; color: $breadcrumb-divider-color; content: $breadcrumb-divider; } } // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built // without `<ul>`s. The `::before` pseudo-element generates an element // *within* the .breadcrumb-item and thereby inherits the `text-decoration`. // // To trick IE into suppressing the underline, we give the pseudo-element an // underline and then immediately remove it. + .breadcrumb-item:hover::before { text-decoration: underline; } // stylelint-disable-next-line no-duplicate-selectors + .breadcrumb-item:hover::before { text-decoration: none; } &.active { color: $breadcrumb-active-color; } } ## Instruction: Remove IE-specific breadcrumb CSS hack ## Code After: .breadcrumb { display: flex; flex-wrap: wrap; padding: $breadcrumb-padding-y $breadcrumb-padding-x; margin-bottom: $breadcrumb-margin-bottom; list-style: none; background-color: $breadcrumb-bg; @include border-radius($breadcrumb-border-radius); } .breadcrumb-item { // The separator between breadcrumbs (by default, a forward-slash: "/") + .breadcrumb-item { padding-left: $breadcrumb-item-padding-x; &::before { display: inline-block; // Suppress underlining of the separator in modern browsers padding-right: $breadcrumb-item-padding-x; color: $breadcrumb-divider-color; content: $breadcrumb-divider; } } + .breadcrumb-item:hover::before { text-decoration: none; } &.active { color: $breadcrumb-active-color; } }
42bfa6b69697c0c093a961df5708f477288a6efa
icekit/plugins/twitter_embed/forms.py
icekit/plugins/twitter_embed/forms.py
import re from django import forms from fluent_contents.forms import ContentItemForm class TwitterEmbedAdminForm(ContentItemForm): def clean_twitter_url(self): """ Make sure the URL provided matches the twitter URL format. """ url = self.cleaned_data['twitter_url'] if url: pattern = re.compile(r'https?://(www\.)?twitter.com/\S+/status(es)?/\S+') if not pattern.match(url): raise forms.ValidationError('Please provide a valid twitter link.') return url
import re from django import forms from fluent_contents.forms import ContentItemForm from icekit.plugins.twitter_embed.models import TwitterEmbedItem class TwitterEmbedAdminForm(ContentItemForm): class Meta: model = TwitterEmbedItem fields = '__all__' def clean_twitter_url(self): """ Make sure the URL provided matches the twitter URL format. """ url = self.cleaned_data['twitter_url'] if url: pattern = re.compile(r'https?://(www\.)?twitter.com/\S+/status(es)?/\S+') if not pattern.match(url): raise forms.ValidationError('Please provide a valid twitter link.') return url
Add model and firld information to form.
Add model and firld information to form.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
python
## Code Before: import re from django import forms from fluent_contents.forms import ContentItemForm class TwitterEmbedAdminForm(ContentItemForm): def clean_twitter_url(self): """ Make sure the URL provided matches the twitter URL format. """ url = self.cleaned_data['twitter_url'] if url: pattern = re.compile(r'https?://(www\.)?twitter.com/\S+/status(es)?/\S+') if not pattern.match(url): raise forms.ValidationError('Please provide a valid twitter link.') return url ## Instruction: Add model and firld information to form. ## Code After: import re from django import forms from fluent_contents.forms import ContentItemForm from icekit.plugins.twitter_embed.models import TwitterEmbedItem class TwitterEmbedAdminForm(ContentItemForm): class Meta: model = TwitterEmbedItem fields = '__all__' def clean_twitter_url(self): """ Make sure the URL provided matches the twitter URL format. """ url = self.cleaned_data['twitter_url'] if url: pattern = re.compile(r'https?://(www\.)?twitter.com/\S+/status(es)?/\S+') if not pattern.match(url): raise forms.ValidationError('Please provide a valid twitter link.') return url
66f0166d2880819cec111f379ef5646c94de4a1e
.travis.yml
.travis.yml
jdk: - oraclejdk8 - oraclejdk7 - openjdk6 script: - ./gradlew clean build after_success: - ./gradlew test jacocoTestReport coveralls -Pcoverage
jdk: - oraclejdk8 - oraclejdk7 script: - ./gradlew clean build after_success: - ./gradlew test jacocoTestReport coveralls -Pcoverage
Drop official support for Java 6
Drop official support for Java 6 Project dependencies require Java 7+
YAML
apache-2.0
marcingrzejszczak/gradle-test-profiler,gpie3k/gradle-test-profiler
yaml
## Code Before: jdk: - oraclejdk8 - oraclejdk7 - openjdk6 script: - ./gradlew clean build after_success: - ./gradlew test jacocoTestReport coveralls -Pcoverage ## Instruction: Drop official support for Java 6 Project dependencies require Java 7+ ## Code After: jdk: - oraclejdk8 - oraclejdk7 script: - ./gradlew clean build after_success: - ./gradlew test jacocoTestReport coveralls -Pcoverage
35de9077daad36cb2def095c6bc1b8488a8bd514
app/assets/javascripts/admin/enterprises/enterprises.js.coffee
app/assets/javascripts/admin/enterprises/enterprises.js.coffee
angular.module("admin.enterprises", [ "admin.paymentMethods", "admin.utils", "admin.shippingMethods", "admin.users", "textAngular", "admin.side_menu", "admin.taxons", 'admin.indexUtils', 'admin.tagRules', 'admin.dropdown', 'ngSanitize'] )
angular.module("admin.enterprises", [ "admin.paymentMethods", "admin.utils", "admin.shippingMethods", "admin.users", "textAngular", "admin.side_menu", "admin.taxons", 'admin.indexUtils', 'admin.tagRules', 'admin.dropdown', 'ngSanitize'] ) .config [ '$provide', ($provide) -> $provide.decorator 'taTranslations', [ '$delegate' (taTranslations) -> taTranslations.insertLink = { tooltip: 'Insert / edit link', dialogPrompt: "Please enter a URL to insert" } taTranslations ] ]
Add config for taTranslations (no functional change)
Add config for taTranslations (no functional change)
CoffeeScript
agpl-3.0
mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork
coffeescript
## Code Before: angular.module("admin.enterprises", [ "admin.paymentMethods", "admin.utils", "admin.shippingMethods", "admin.users", "textAngular", "admin.side_menu", "admin.taxons", 'admin.indexUtils', 'admin.tagRules', 'admin.dropdown', 'ngSanitize'] ) ## Instruction: Add config for taTranslations (no functional change) ## Code After: angular.module("admin.enterprises", [ "admin.paymentMethods", "admin.utils", "admin.shippingMethods", "admin.users", "textAngular", "admin.side_menu", "admin.taxons", 'admin.indexUtils', 'admin.tagRules', 'admin.dropdown', 'ngSanitize'] ) .config [ '$provide', ($provide) -> $provide.decorator 'taTranslations', [ '$delegate' (taTranslations) -> taTranslations.insertLink = { tooltip: 'Insert / edit link', dialogPrompt: "Please enter a URL to insert" } taTranslations ] ]
4315855af1fb21655fb7d50528bb9ee49ad971d9
services/Advice/app.js
services/Advice/app.js
var express = require('express'); var app = express(); var request = require('request'); var adviceArray = ["I am God's vessel. But my greatest pain in life is that I will never be able to see myself perform live.", "Would you believe in what you believe in if you were the only one who believed it?"]; var currentAdvice = 0; var adviceMax = adviceArray.length; function getAdvice() { var message = adviceArray[currentAdvice]; currentAdvice++; if (currentAdvice >= adviceMax) { currentAdvice = 0; } return message; } // The main app can hit this when an SMS is received app.get('/sms', function(req, res) { var message = getAdvice(); request("http://localhost:80/sendsms?message=" + message + "&number=" + encodeURIComponent(req.query.number)); res.status(200).end() }); app.listen(3000);
var express = require('express'); var app = express(); var request = require('request'); var adviceArray = ["I am God's vessel. But my greatest pain in life is that I will never be able to see myself perform live.", "Would you believe in what you believe in if you were the only one who believed it?"]; var currentAdvice = 0; var adviceMax = adviceArray.length; function getAdvice() { var message = adviceArray[currentAdvice]; currentAdvice++; if (currentAdvice >= adviceMax) { currentAdvice = 0; } return message; } // The main app can hit this when an SMS is received app.get('/sms', function(req, res) { if (req.query.message.toLowerCase() != "advice") { res.status(400).end(); } var message = getAdvice(); request("http://localhost:80/sendsms?message=" + message + "&number=" + encodeURIComponent(req.query.number)); res.status(200).end() }); app.listen(3000);
Check the message in advice
Check the message in advice
JavaScript
mit
AaronMorais/Kanye
javascript
## Code Before: var express = require('express'); var app = express(); var request = require('request'); var adviceArray = ["I am God's vessel. But my greatest pain in life is that I will never be able to see myself perform live.", "Would you believe in what you believe in if you were the only one who believed it?"]; var currentAdvice = 0; var adviceMax = adviceArray.length; function getAdvice() { var message = adviceArray[currentAdvice]; currentAdvice++; if (currentAdvice >= adviceMax) { currentAdvice = 0; } return message; } // The main app can hit this when an SMS is received app.get('/sms', function(req, res) { var message = getAdvice(); request("http://localhost:80/sendsms?message=" + message + "&number=" + encodeURIComponent(req.query.number)); res.status(200).end() }); app.listen(3000); ## Instruction: Check the message in advice ## Code After: var express = require('express'); var app = express(); var request = require('request'); var adviceArray = ["I am God's vessel. But my greatest pain in life is that I will never be able to see myself perform live.", "Would you believe in what you believe in if you were the only one who believed it?"]; var currentAdvice = 0; var adviceMax = adviceArray.length; function getAdvice() { var message = adviceArray[currentAdvice]; currentAdvice++; if (currentAdvice >= adviceMax) { currentAdvice = 0; } return message; } // The main app can hit this when an SMS is received app.get('/sms', function(req, res) { if (req.query.message.toLowerCase() != "advice") { res.status(400).end(); } var message = getAdvice(); request("http://localhost:80/sendsms?message=" + message + "&number=" + encodeURIComponent(req.query.number)); res.status(200).end() }); app.listen(3000);
e0e91d7673a1e167db3b2f88d6c267e2d556c3b1
lib/generators/cmsimple/install/templates/default.html.haml
lib/generators/cmsimple/install/templates/default.html.haml
%h2(data-mercury='simple')>< = render_region :header do Header %section.container = render_region :content, tag: :article do Add content here
%h2#header(data-mercury='simple')>< = render_region :header do Header %section#content.container = render_region :content, tag: :article do Add content here
Add ids to default template in install generator
Add ids to default template in install generator
Haml
mit
modeset/cmsimple,modeset/cmsimple,modeset/cmsimple
haml
## Code Before: %h2(data-mercury='simple')>< = render_region :header do Header %section.container = render_region :content, tag: :article do Add content here ## Instruction: Add ids to default template in install generator ## Code After: %h2#header(data-mercury='simple')>< = render_region :header do Header %section#content.container = render_region :content, tag: :article do Add content here
98aa2b25c63ec5bd6384a9d398a70996799b135e
mygpoauth/urls.py
mygpoauth/urls.py
from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import RedirectView from mygpoauth import oauth2 urlpatterns = [ # Examples: # url(r'^$', 'mygpoauth.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/'), name='index'), url(r'^admin/', include(admin.site.urls)), url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')), ]
from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import RedirectView from mygpoauth import oauth2 urlpatterns = [ # Examples: # url(r'^$', 'mygpoauth.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/', permanent=False), name='index'), url(r'^admin/', include(admin.site.urls)), url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')), ]
Make "/" a non-permanent redirect
Make "/" a non-permanent redirect
Python
agpl-3.0
gpodder/mygpo-auth,gpodder/mygpo-auth
python
## Code Before: from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import RedirectView from mygpoauth import oauth2 urlpatterns = [ # Examples: # url(r'^$', 'mygpoauth.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/'), name='index'), url(r'^admin/', include(admin.site.urls)), url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')), ] ## Instruction: Make "/" a non-permanent redirect ## Code After: from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import RedirectView from mygpoauth import oauth2 urlpatterns = [ # Examples: # url(r'^$', 'mygpoauth.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^$', RedirectView.as_view(url='http://mygpo-auth.rtfd.org/', permanent=False), name='index'), url(r'^admin/', include(admin.site.urls)), url(r'^oauth2/', include('mygpoauth.oauth2.urls', namespace='oauth2')), ]
22ee1bb460554a6db5428f269e779e57997b1225
www/includes/easyparliament/templates/emails/alert_mailout.txt
www/includes/easyparliament/templates/emails/alert_mailout.txt
Subject: Your OpenAustralia email alert ------------------------------------------------------------------------- Hi, did you know we make these other wonderful projects too? Right To Know: http://tinyurl.com/righttoknowau PlanningAlerts: http://tinyurl.com/planningalerts Election Leaflets: http://tinyurl.com/electionleaflets-oa ------------------------------------------------------------------------- {DATA} If clicking any of these links doesn't work, you may have to copy and then paste them into the 'Location' or 'Address' box of your web browser, and then press 'enter' or 'return' on your keyboard. Best wishes, OpenAustralia.org
Subject: Your OpenAustralia email alert ------------------------------------------------------------------------- Hi, did you know we make these other wonderful projects too? They Vote For You: http://tinyurl.com/theyvoteforyou-oa Right To Know: http://tinyurl.com/righttoknowau PlanningAlerts: http://tinyurl.com/planningalerts Election Leaflets: http://tinyurl.com/electionleaflets-oa ------------------------------------------------------------------------- {DATA} If clicking any of these links doesn't work, you may have to copy and then paste them into the 'Location' or 'Address' box of your web browser, and then press 'enter' or 'return' on your keyboard. Best wishes, OpenAustralia.org
Add They Vote For You to email outs
Add They Vote For You to email outs
Text
bsd-3-clause
openaustralia/twfy,openaustralia/twfy,openaustralia/twfy,openaustralia/twfy,archoo/twfy,archoo/twfy,archoo/twfy,openaustralia/twfy,archoo/twfy,archoo/twfy,archoo/twfy,archoo/twfy,openaustralia/twfy
text
## Code Before: Subject: Your OpenAustralia email alert ------------------------------------------------------------------------- Hi, did you know we make these other wonderful projects too? Right To Know: http://tinyurl.com/righttoknowau PlanningAlerts: http://tinyurl.com/planningalerts Election Leaflets: http://tinyurl.com/electionleaflets-oa ------------------------------------------------------------------------- {DATA} If clicking any of these links doesn't work, you may have to copy and then paste them into the 'Location' or 'Address' box of your web browser, and then press 'enter' or 'return' on your keyboard. Best wishes, OpenAustralia.org ## Instruction: Add They Vote For You to email outs ## Code After: Subject: Your OpenAustralia email alert ------------------------------------------------------------------------- Hi, did you know we make these other wonderful projects too? They Vote For You: http://tinyurl.com/theyvoteforyou-oa Right To Know: http://tinyurl.com/righttoknowau PlanningAlerts: http://tinyurl.com/planningalerts Election Leaflets: http://tinyurl.com/electionleaflets-oa ------------------------------------------------------------------------- {DATA} If clicking any of these links doesn't work, you may have to copy and then paste them into the 'Location' or 'Address' box of your web browser, and then press 'enter' or 'return' on your keyboard. Best wishes, OpenAustralia.org
b7f556585aa3d921a5484ce9d83c788bfc63b3fb
js/layer-data-config.js
js/layer-data-config.js
module.exports = { 1: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 2: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 3: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: true }, 4: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: true }, 5: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: false }, 6: { plateOutlines: false, plateMovement: false, earthquakes: false, volcanos: true, exclusiveLayers: true } }
module.exports = { 1: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 2: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 3: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: true }, 4: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: true }, 5: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: false }, 6: { plateOutlines: false, plateMovement: false, earthquakes: false, volcanos: true, exclusiveLayers: true }, 7: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: false }, }
Add configuration to show volcanoes and earthquakes simultaneously
Add configuration to show volcanoes and earthquakes simultaneously
JavaScript
mit
concord-consortium/seismic-eruptions2,concord-consortium/seismic-eruptions2,concord-consortium/seismic-eruptions2
javascript
## Code Before: module.exports = { 1: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 2: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 3: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: true }, 4: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: true }, 5: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: false }, 6: { plateOutlines: false, plateMovement: false, earthquakes: false, volcanos: true, exclusiveLayers: true } } ## Instruction: Add configuration to show volcanoes and earthquakes simultaneously ## Code After: module.exports = { 1: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 2: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: false, exclusiveLayers: true }, 3: { plateOutlines: true, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: true }, 4: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: true }, 5: { plateOutlines: true, plateMovement: true, earthquakes: true, volcanos: true, exclusiveLayers: false }, 6: { plateOutlines: false, plateMovement: false, earthquakes: false, volcanos: true, exclusiveLayers: true }, 7: { plateOutlines: false, plateMovement: false, earthquakes: true, volcanos: true, exclusiveLayers: false }, }
c58b035076a0878cf886cccdd924fc23bc238237
assets/css/temp.css
assets/css/temp.css
.navbar { margin-bottom: 0; } select { margin-bottom: 5%; } .underline { text-decoration: underline; } .players-panel, .stocks-panel { height: 100vh; overflow: auto; padding-bottom: 1%; } .highcharts-container svg text[zIndex="8"] { display: none } .navbar-brand { font-family: Serif, serif; font-size: 1.5em; } th { background: lightgrey; } .row-buy { background: lightgreen } .row-sell { background: lightcoral; }
.navbar { margin-bottom: 0; } select { margin-bottom: 5%; } .underline { text-decoration: underline; } @media screen and (min-width: 768px){ .players-panel, .stocks-panel { height: 100vh; overflow: auto; padding-bottom: 1%; } } .highcharts-container svg text[zIndex="8"] { display: none } .navbar-brand { font-family: Serif, serif; font-size: 1.5em; } th { background: lightgrey; } .row-buy { background: lightgreen } .row-sell { background: lightcoral; }
Add media query, less vertical space on mobile
Add media query, less vertical space on mobile
CSS
mit
khoanguyen96/stock-ticker,AdamSlater/stock-ticker,TheMysteriousTomato/stock-ticker,TheMysteriousTomato/stock-ticker,jDeluz/stock-ticker,khoanguyen96/stock-ticker,jDeluz/stock-ticker,AdamSlater/stock-ticker,AdamSlater/stock-ticker,jDeluz/stock-ticker,TheMysteriousTomato/stock-ticker,khoanguyen96/stock-ticker
css
## Code Before: .navbar { margin-bottom: 0; } select { margin-bottom: 5%; } .underline { text-decoration: underline; } .players-panel, .stocks-panel { height: 100vh; overflow: auto; padding-bottom: 1%; } .highcharts-container svg text[zIndex="8"] { display: none } .navbar-brand { font-family: Serif, serif; font-size: 1.5em; } th { background: lightgrey; } .row-buy { background: lightgreen } .row-sell { background: lightcoral; } ## Instruction: Add media query, less vertical space on mobile ## Code After: .navbar { margin-bottom: 0; } select { margin-bottom: 5%; } .underline { text-decoration: underline; } @media screen and (min-width: 768px){ .players-panel, .stocks-panel { height: 100vh; overflow: auto; padding-bottom: 1%; } } .highcharts-container svg text[zIndex="8"] { display: none } .navbar-brand { font-family: Serif, serif; font-size: 1.5em; } th { background: lightgrey; } .row-buy { background: lightgreen } .row-sell { background: lightcoral; }
655926c0f9bceec55dca7f92d18b085e4c2e060c
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) project(lxqt-qtplugin) include(GNUInstallDirs) set(LXQTBT_MINIMUM_VERSION "0.3.0") set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(Qt5Widgets REQUIRED QUIET) find_package(Qt5LinguistTools REQUIRED QUIET) find_package(Qt5DBus REQUIRED QUIET) find_package(dbusmenu-qt5 REQUIRED QUIET) find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) find_package(Qt5XdgIconLoader REQUIRED QUIET) # for file dialog support find_package(Qt5X11Extras REQUIRED QUIET) find_package(fm-qt REQUIRED) include(LXQtCompilerSettings NO_POLICY_SCOPE) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() add_subdirectory(src)
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) project(lxqt-qtplugin) include(GNUInstallDirs) set(LXQTBT_MINIMUM_VERSION "0.4.0") set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(Qt5Widgets REQUIRED) find_package(Qt5LinguistTools REQUIRED) find_package(Qt5DBus REQUIRED) find_package(dbusmenu-qt5 REQUIRED) find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) find_package(Qt5XdgIconLoader REQUIRED) # Patch Version 0 # for file dialog support find_package(Qt5X11Extras REQUIRED) find_package(fm-qt REQUIRED) include(LXQtCompilerSettings NO_POLICY_SCOPE) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() add_subdirectory(src)
Set an informal patch version
Set an informal patch version Removed some QUIET
Text
lgpl-2.1
lxde/lxqt-qtplugin
text
## Code Before: cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) project(lxqt-qtplugin) include(GNUInstallDirs) set(LXQTBT_MINIMUM_VERSION "0.3.0") set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(Qt5Widgets REQUIRED QUIET) find_package(Qt5LinguistTools REQUIRED QUIET) find_package(Qt5DBus REQUIRED QUIET) find_package(dbusmenu-qt5 REQUIRED QUIET) find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) find_package(Qt5XdgIconLoader REQUIRED QUIET) # for file dialog support find_package(Qt5X11Extras REQUIRED QUIET) find_package(fm-qt REQUIRED) include(LXQtCompilerSettings NO_POLICY_SCOPE) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() add_subdirectory(src) ## Instruction: Set an informal patch version Removed some QUIET ## Code After: cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) project(lxqt-qtplugin) include(GNUInstallDirs) set(LXQTBT_MINIMUM_VERSION "0.4.0") set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) find_package(Qt5Widgets REQUIRED) find_package(Qt5LinguistTools REQUIRED) find_package(Qt5DBus REQUIRED) find_package(dbusmenu-qt5 REQUIRED) find_package(lxqt-build-tools ${LXQTBT_MINIMUM_VERSION} REQUIRED) find_package(Qt5XdgIconLoader REQUIRED) # Patch Version 0 # for file dialog support find_package(Qt5X11Extras REQUIRED) find_package(fm-qt REQUIRED) include(LXQtCompilerSettings NO_POLICY_SCOPE) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release) endif() add_subdirectory(src)
3de16754eb8bcf9a0af4d4bdb1852c9a8a69a6bc
misc/sql/ddl.sql
misc/sql/ddl.sql
drop database if exists fizzbuzz_twitterbot; create database fizzbuzz_twitterbot character set = utf8; use fizzbuzz_twitterbot; drop table if exists fizzbuzz; create table fizzbuzz ( id bigint not null auto_increment, tweet_id bigint not null, num bigint not null unique, updated_at datetime not null default current_timestamp, created_at datetime not null, primary key (id) ) engine InnoDB charset utf8;
DROP DATABASE IF EXISTS fizzbuzz_twitterbot; CREATE DATABASE fizzbuzz_twitterbot CHARACTER SET = utf8; USE fizzbuzz_twitterbot; DROP TABLE IF EXISTS fizzbuzz; CREATE TABLE fizzbuzz ( id BIGINT NOT NULL AUTO_INCREMENT, tweet_id BIGINT NOT NULL, num BIGINT NOT NULL UNIQUE, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at DATETIME NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB CHARSET utf8;
Fix upper case for SQL reserved word.
Fix upper case for SQL reserved word.
SQL
mit
178inaba/fizzbuzz-twitterbot
sql
## Code Before: drop database if exists fizzbuzz_twitterbot; create database fizzbuzz_twitterbot character set = utf8; use fizzbuzz_twitterbot; drop table if exists fizzbuzz; create table fizzbuzz ( id bigint not null auto_increment, tweet_id bigint not null, num bigint not null unique, updated_at datetime not null default current_timestamp, created_at datetime not null, primary key (id) ) engine InnoDB charset utf8; ## Instruction: Fix upper case for SQL reserved word. ## Code After: DROP DATABASE IF EXISTS fizzbuzz_twitterbot; CREATE DATABASE fizzbuzz_twitterbot CHARACTER SET = utf8; USE fizzbuzz_twitterbot; DROP TABLE IF EXISTS fizzbuzz; CREATE TABLE fizzbuzz ( id BIGINT NOT NULL AUTO_INCREMENT, tweet_id BIGINT NOT NULL, num BIGINT NOT NULL UNIQUE, updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, created_at DATETIME NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB CHARSET utf8;
d25213c47a89cfe627f083bf7c89f474ee6d0d6b
tasks/deploy-lattice-website/run.sh
tasks/deploy-lattice-website/run.sh
set -e echo "$GITHUB_PRIVATE_KEY" > github.key chmod 600 github.key export GIT_SSH_COMMAND="/usr/bin/ssh -i $PWD/github.key" set -x pushd lattice-website >/dev/null bundle install apt-get install node -y --no-install-recommends bundle exec middleman build bundle exec middleman deploy popd >/dev/null
set -e echo "$GITHUB_PRIVATE_KEY" > github.key chmod 600 github.key export GIT_SSH_COMMAND="/usr/bin/ssh -i $PWD/github.key" set -x git config --global user.email "[email protected]" git config --global user.name "Concourse CI" pushd lattice-website >/dev/null bundle install apt-get install node -y --no-install-recommends bundle exec middleman build bundle exec middleman deploy popd >/dev/null
Configure git email and name for deploy-lattice-website
Configure git email and name for deploy-lattice-website [#103740070] Signed-off-by: Mark DeLillo <[email protected]>
Shell
apache-2.0
cloudfoundry-incubator/lattice-ci,cloudfoundry-incubator/lattice-ci,cloudfoundry-incubator/lattice-ci
shell
## Code Before: set -e echo "$GITHUB_PRIVATE_KEY" > github.key chmod 600 github.key export GIT_SSH_COMMAND="/usr/bin/ssh -i $PWD/github.key" set -x pushd lattice-website >/dev/null bundle install apt-get install node -y --no-install-recommends bundle exec middleman build bundle exec middleman deploy popd >/dev/null ## Instruction: Configure git email and name for deploy-lattice-website [#103740070] Signed-off-by: Mark DeLillo <[email protected]> ## Code After: set -e echo "$GITHUB_PRIVATE_KEY" > github.key chmod 600 github.key export GIT_SSH_COMMAND="/usr/bin/ssh -i $PWD/github.key" set -x git config --global user.email "[email protected]" git config --global user.name "Concourse CI" pushd lattice-website >/dev/null bundle install apt-get install node -y --no-install-recommends bundle exec middleman build bundle exec middleman deploy popd >/dev/null
7a1782c3cd86a739a19b5382235cfadd6bba7da2
data/hostname/worker02.softwareheritage.org.yaml
data/hostname/worker02.softwareheritage.org.yaml
networks: private: interface: ens19 address: 192.168.100.22 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: ens18 address: 128.93.193.22 netmask: 255.255.255.0 gateway: 128.93.193.254
networks: private: interface: ens19 address: 192.168.100.22 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: ens18 address: 128.93.193.22 netmask: 255.255.255.0 gateway: 128.93.193.254 swh::deploy::worker::instances: - swh_lister_debian - swh_lister_github - swh_loader_debian - swh_loader_git - swh_loader_git_disk - swh_loader_svn - swh_loader_deposit
Deploy deposit loader on worker02 as tryout
data/worker02: Deploy deposit loader on worker02 as tryout Related T821
YAML
apache-2.0
SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site,SoftwareHeritage/puppet-swh-site
yaml
## Code Before: networks: private: interface: ens19 address: 192.168.100.22 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: ens18 address: 128.93.193.22 netmask: 255.255.255.0 gateway: 128.93.193.254 ## Instruction: data/worker02: Deploy deposit loader on worker02 as tryout Related T821 ## Code After: networks: private: interface: ens19 address: 192.168.100.22 netmask: 255.255.255.0 gateway: 192.168.100.1 default: interface: ens18 address: 128.93.193.22 netmask: 255.255.255.0 gateway: 128.93.193.254 swh::deploy::worker::instances: - swh_lister_debian - swh_lister_github - swh_loader_debian - swh_loader_git - swh_loader_git_disk - swh_loader_svn - swh_loader_deposit
040e7c3a925f26a759722e90dcfb26a832c75a2a
test/dummy/app/views/events/_simple_form.html.erb
test/dummy/app/views/events/_simple_form.html.erb
<%= simple_form_for(@event, remote: true, authenticity_token: true) do |f| %> <% if @event.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2> <ul> <% @event.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.input :name %> </div> <div class="field"> <%= f.input :schedule, as: :schedule %><br> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
<%= simple_form_for(@event, remote: true, authenticity_token: true) do |f| %> <% if @event.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2> <ul> <% @event.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field form-group"> <%= f.input :name %> </div> <div class="field form-group"> <%= f.input :schedule, as: :schedule %><br> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
Add form-group class to simple form
Add form-group class to simple form
HTML+ERB
mit
benignware/schedulable,benignware/schedulable,benignware/schedulable
html+erb
## Code Before: <%= simple_form_for(@event, remote: true, authenticity_token: true) do |f| %> <% if @event.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2> <ul> <% @event.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= f.input :name %> </div> <div class="field"> <%= f.input :schedule, as: :schedule %><br> </div> <div class="actions"> <%= f.submit %> </div> <% end %> ## Instruction: Add form-group class to simple form ## Code After: <%= simple_form_for(@event, remote: true, authenticity_token: true) do |f| %> <% if @event.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2> <ul> <% @event.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field form-group"> <%= f.input :name %> </div> <div class="field form-group"> <%= f.input :schedule, as: :schedule %><br> </div> <div class="actions"> <%= f.submit %> </div> <% end %>
11acdd53ab086a9622074f79ef1535c1448cbb91
Shared/Encounter.h
Shared/Encounter.h
// // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class EncounterRegion; @class EncounterTimelineEntry; /** * An instance of this class represents an encounter created from a template that is being run. */ @interface Encounter : AbstractEncounter // -- Attributes -- /** * */ @property (nonatomic, assign) NSInteger currentRound; /** * */ @property (nonatomic, assign) NSTimeInterval endDate; /** * */ @property (nonatomic, assign) NSInteger numberOfRounds; /** * */ @property (nonatomic, assign) NSInteger numberOfTurns; /** * */ @property (nonatomic, copy) NSString *encounterTemplateName; /** * */ @property (nonatomic, assign) NSTimeInterval startDate; /** * */ @property (nonatomic, assign) EncounterState state; /** * */ @property (nonatomic, copy) NSData *turnQueue; // -- Relationships -- @end
// // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class EncounterRegion; @class EncounterTimelineEntry; /** * An instance of this class represents an encounter created from a template that is being run. */ @interface Encounter : AbstractEncounter // -- Attributes -- /** * */ @property (nonatomic, assign) NSInteger currentRound; /** * */ @property (nonatomic, assign) NSTimeInterval endDate; /** * */ @property (nonatomic, assign) NSInteger numberOfRounds; /** * */ @property (nonatomic, assign) NSInteger numberOfTurns; /** * */ @property (nonatomic, copy) NSString *encounterTemplateName; /** * */ @property (nonatomic, assign) NSTimeInterval startDate; /** * */ @property (nonatomic, assign) EncounterState state; /** * */ @property (nonatomic, copy) NSData *turnQueue; // -- Relationships -- /** */ @property (nonatomic, copy) NSString* templateId; @end
Store ID for source template.
Store ID for source template.
C
mit
pilgrimagesoftware/ProeliaKit,pilgrimagesoftware/ProeliaKit
c
## Code Before: // // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class EncounterRegion; @class EncounterTimelineEntry; /** * An instance of this class represents an encounter created from a template that is being run. */ @interface Encounter : AbstractEncounter // -- Attributes -- /** * */ @property (nonatomic, assign) NSInteger currentRound; /** * */ @property (nonatomic, assign) NSTimeInterval endDate; /** * */ @property (nonatomic, assign) NSInteger numberOfRounds; /** * */ @property (nonatomic, assign) NSInteger numberOfTurns; /** * */ @property (nonatomic, copy) NSString *encounterTemplateName; /** * */ @property (nonatomic, assign) NSTimeInterval startDate; /** * */ @property (nonatomic, assign) EncounterState state; /** * */ @property (nonatomic, copy) NSData *turnQueue; // -- Relationships -- @end ## Instruction: Store ID for source template. ## Code After: // // Encounter.h // ProeliaKit // // Created by Paul Schifferer on 3/5/15. // Copyright (c) 2015 Pilgrimage Software. All rights reserved. // @import Foundation; #import "EncounterConstants.h" #import "GameSystem.h" #import "AbstractEncounter.h" @class EncounterMap; @class EncounterParticipant; @class EncounterRegion; @class EncounterTimelineEntry; /** * An instance of this class represents an encounter created from a template that is being run. */ @interface Encounter : AbstractEncounter // -- Attributes -- /** * */ @property (nonatomic, assign) NSInteger currentRound; /** * */ @property (nonatomic, assign) NSTimeInterval endDate; /** * */ @property (nonatomic, assign) NSInteger numberOfRounds; /** * */ @property (nonatomic, assign) NSInteger numberOfTurns; /** * */ @property (nonatomic, copy) NSString *encounterTemplateName; /** * */ @property (nonatomic, assign) NSTimeInterval startDate; /** * */ @property (nonatomic, assign) EncounterState state; /** * */ @property (nonatomic, copy) NSData *turnQueue; // -- Relationships -- /** */ @property (nonatomic, copy) NSString* templateId; @end
ed80aa4484115484741dafa212d80d2e444bfb4d
sync-contentful.js
sync-contentful.js
require('dotenv').config(); let contentful = require('contentful'), fs = require('fs-extra'); let client = contentful.createClient({ space: process.env.CONTENTFUL_SPACE, accessToken: process.env.CONTENTFUL_API_KEY }); client.sync({initial: true}) .then((response) => { fs.outputJson('public/db/entries.json', response.entries, (err) => { if (err) { throw err; } }); fs.outputJson('public/db/assets.json', response.assets, (err) => { if (err) { throw err; } }); });
require('dotenv').config({silent: true}); let contentful = require('contentful'), fs = require('fs-extra'); let client = contentful.createClient({ space: process.env.CONTENTFUL_SPACE, accessToken: process.env.CONTENTFUL_API_KEY }); client.sync({initial: true}) .then((response) => { fs.outputJson('public/db/entries.json', response.entries, (err) => { if (err) { throw err; } }); fs.outputJson('public/db/assets.json', response.assets, (err) => { if (err) { throw err; } }); });
Fix sync no .env file
Fix sync no .env file
JavaScript
mit
reality-scheveningen/reality-website,reality-scheveningen/reality-website
javascript
## Code Before: require('dotenv').config(); let contentful = require('contentful'), fs = require('fs-extra'); let client = contentful.createClient({ space: process.env.CONTENTFUL_SPACE, accessToken: process.env.CONTENTFUL_API_KEY }); client.sync({initial: true}) .then((response) => { fs.outputJson('public/db/entries.json', response.entries, (err) => { if (err) { throw err; } }); fs.outputJson('public/db/assets.json', response.assets, (err) => { if (err) { throw err; } }); }); ## Instruction: Fix sync no .env file ## Code After: require('dotenv').config({silent: true}); let contentful = require('contentful'), fs = require('fs-extra'); let client = contentful.createClient({ space: process.env.CONTENTFUL_SPACE, accessToken: process.env.CONTENTFUL_API_KEY }); client.sync({initial: true}) .then((response) => { fs.outputJson('public/db/entries.json', response.entries, (err) => { if (err) { throw err; } }); fs.outputJson('public/db/assets.json', response.assets, (err) => { if (err) { throw err; } }); });
fd98ad2ce5cefb8e2b1d325ff852df9b17adea5b
scss/components/_repoColors.scss
scss/components/_repoColors.scss
$colors: ( #563d7c: $accent-purple, // CSS #f1e05a: $accent-yellow, // JavaScript #701516: $accent-red, // Ruby #4F5D95: $accent-blue-purple, // PHP #89e051: #7dbd45, // Shell #e44b23: #ab663c, // HTML #3572A5: $accent-blue, // Python #b07219: #61492b // Java ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } }
$colors: ( #6E4C13: #494829, // Assembly #f34b7d: #bf5b7f, // C++ #563d7c: $accent-purple, // CSS #e44b23: #ab663c, // HTML #b07219: #61492b, // Java #f1e05a: $accent-yellow, // JavaScript #427819: $accent-green, // Makefile #ededed: $bgDark, // Other #4F5D95: $accent-blue-purple, // PHP #3572A5: $accent-blue, // Python #701516: $accent-red, // Ruby #89e051: #7dbd45 // Shell ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } }
Add additional repo color overrides
Add additional repo color overrides
SCSS
mit
rmcfadzean/stylish-github
scss
## Code Before: $colors: ( #563d7c: $accent-purple, // CSS #f1e05a: $accent-yellow, // JavaScript #701516: $accent-red, // Ruby #4F5D95: $accent-blue-purple, // PHP #89e051: #7dbd45, // Shell #e44b23: #ab663c, // HTML #3572A5: $accent-blue, // Python #b07219: #61492b // Java ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } } ## Instruction: Add additional repo color overrides ## Code After: $colors: ( #6E4C13: #494829, // Assembly #f34b7d: #bf5b7f, // C++ #563d7c: $accent-purple, // CSS #e44b23: #ab663c, // HTML #b07219: #61492b, // Java #f1e05a: $accent-yellow, // JavaScript #427819: $accent-green, // Makefile #ededed: $bgDark, // Other #4F5D95: $accent-blue-purple, // PHP #3572A5: $accent-blue, // Python #701516: $accent-red, // Ruby #89e051: #7dbd45 // Shell ); @each $base, $replacement in $colors { .repo-language-color[style="background-color:#{$base};"], .language-color[style$="background-color:#{$base};"] { background-color: $replacement !important; } }
cb33a762c368ee701ddc1f71a0d6ecd4dc0b239c
src/setting/ResizablePMCArray.pm
src/setting/ResizablePMCArray.pm
=begin ResizablePMCArray Methods These methods extend Parrot's ResizablePMCArray type to include more methods typical of Perl 6 lists and arrays. =end module ResizablePMCArray { =begin item delete Remove item at C<$pos> =end item method delete($pos) { pir::delete__vQi(self, $pos); } =begin item exists Return true if item exists at C<$pos> =end item method exists($pos) { pir::exists__IQi(self, $pos); } =begin item join Return all elements joined by $sep. =end item method join ($separator) { pir::join($separator, self); } =begin item map Return an array with the results of applying C<&code> to each element of the invocant. Note that NQP doesn't have a flattening list context, so the number of elements returned is exactly the same as the original. =end item method map (&code) { my @mapped; for self { @mapped.push( &code($_) ); } @mapped; } =begin item reverse Return a reversed copy of the invocant. =end item method reverse () { my @reversed; for self { @reversed.unshift($_); } @reversed; } } our sub join ($separator, *@values) { @values.join($separator); } our sub map (&code, *@values) { @values.map(&code); } our sub list (*@values) { @values; } # vim: ft=perl6
=begin ResizablePMCArray Methods These methods extend Parrot's ResizablePMCArray type to include more methods typical of Perl 6 lists and arrays. =end module ResizablePMCArray { =begin item delete Remove item at C<$pos> =end item method delete($pos) { pir::delete(self, $pos); } =begin item exists Return true if item exists at C<$pos> =end item method exists($pos) { pir::exists(self, $pos); } =begin item join Return all elements joined by $sep. =end item method join ($separator) { pir::join($separator, self); } =begin item map Return an array with the results of applying C<&code> to each element of the invocant. Note that NQP doesn't have a flattening list context, so the number of elements returned is exactly the same as the original. =end item method map (&code) { my @mapped; for self { @mapped.push( &code($_) ); } @mapped; } =begin item reverse Return a reversed copy of the invocant. =end item method reverse () { my @reversed; for self { @reversed.unshift($_); } @reversed; } } our sub join ($separator, *@values) { @values.join($separator); } our sub map (&code, *@values) { @values.map(&code); } our sub list (*@values) { @values; } # vim: ft=perl6
Remove redundant pirop signatures. PAST::Compiler is smart enough to handle it as is.
Remove redundant pirop signatures. PAST::Compiler is smart enough to handle it as is.
Perl
artistic-2.0
perl6/nqp-rx,perl6/nqp-rx
perl
## Code Before: =begin ResizablePMCArray Methods These methods extend Parrot's ResizablePMCArray type to include more methods typical of Perl 6 lists and arrays. =end module ResizablePMCArray { =begin item delete Remove item at C<$pos> =end item method delete($pos) { pir::delete__vQi(self, $pos); } =begin item exists Return true if item exists at C<$pos> =end item method exists($pos) { pir::exists__IQi(self, $pos); } =begin item join Return all elements joined by $sep. =end item method join ($separator) { pir::join($separator, self); } =begin item map Return an array with the results of applying C<&code> to each element of the invocant. Note that NQP doesn't have a flattening list context, so the number of elements returned is exactly the same as the original. =end item method map (&code) { my @mapped; for self { @mapped.push( &code($_) ); } @mapped; } =begin item reverse Return a reversed copy of the invocant. =end item method reverse () { my @reversed; for self { @reversed.unshift($_); } @reversed; } } our sub join ($separator, *@values) { @values.join($separator); } our sub map (&code, *@values) { @values.map(&code); } our sub list (*@values) { @values; } # vim: ft=perl6 ## Instruction: Remove redundant pirop signatures. PAST::Compiler is smart enough to handle it as is. ## Code After: =begin ResizablePMCArray Methods These methods extend Parrot's ResizablePMCArray type to include more methods typical of Perl 6 lists and arrays. =end module ResizablePMCArray { =begin item delete Remove item at C<$pos> =end item method delete($pos) { pir::delete(self, $pos); } =begin item exists Return true if item exists at C<$pos> =end item method exists($pos) { pir::exists(self, $pos); } =begin item join Return all elements joined by $sep. =end item method join ($separator) { pir::join($separator, self); } =begin item map Return an array with the results of applying C<&code> to each element of the invocant. Note that NQP doesn't have a flattening list context, so the number of elements returned is exactly the same as the original. =end item method map (&code) { my @mapped; for self { @mapped.push( &code($_) ); } @mapped; } =begin item reverse Return a reversed copy of the invocant. =end item method reverse () { my @reversed; for self { @reversed.unshift($_); } @reversed; } } our sub join ($separator, *@values) { @values.join($separator); } our sub map (&code, *@values) { @values.map(&code); } our sub list (*@values) { @values; } # vim: ft=perl6
0f9586df3c5688db72c6e0fe869863f1959c3baf
app/assets/stylesheets/structures/_markdown.sass
app/assets/stylesheets/structures/_markdown.sass
// ************************************* // // Markdown // -> Namespaced Markdown styles // // ************************************* .markdown // ----- Block Content ----- // // Blockquote blockquote padding-left: $b-space // Headings h1, h2, h3, h4, h5, h6 font-family: $b-fontFamily font-weight: bold margin-bottom: $b-space-s h1 font-family: $b-fontFamily-heading margin-bottom: $b-space-xs h2 font-size: $b-fontSize-l h3 color: $c-subdue font-size: $b-fontSize-l font-style: italic font-weight: normal h4 letter-spacing: 2px text-transform: uppercase h5 font-size: $b-fontSize h6 color: $c-subdue font-size: $b-fontSize font-style: italic font-weight: normal // ----- Inline Content ----- // // Links a &[href^='http'] word-wrap: break-word // Break lengthy URLs entered in content // Code code background: $c-background border-radius: $b-borderRadius display: inline-block padding-left: $b-space-xs padding-right: $b-space-xs
// ************************************* // // Markdown // -> Namespaced Markdown styles // // ************************************* .markdown // ----- Block Content ----- // // Blockquote blockquote border-left: 4px solid $c-border margin: $b-space 0 padding-left: $b-space // Lists ol, ul padding-left: $b-space > li margin-bottom: $b-space-s // Headings h1, h2, h3, h4, h5, h6 font-family: $b-fontFamily font-weight: bold margin-bottom: $b-space-s h1 font-family: $b-fontFamily-heading margin-bottom: $b-space-xs h2 font-size: $b-fontSize-l h3 color: $c-subdue font-size: $b-fontSize-l font-style: italic font-weight: normal h4 letter-spacing: 2px text-transform: uppercase h5 font-size: $b-fontSize h6 color: $c-subdue font-size: $b-fontSize font-style: italic font-weight: normal // ----- Inline Content ----- // // Links a &[href^='http'] word-wrap: break-word // NOTE: Added to break URLs entered in content // Code code background: $c-background border-radius: $b-borderRadius display: inline-block padding-left: $b-space-xs padding-right: $b-space-xs
Add Markdown blockquote and list styles
Add Markdown blockquote and list styles
Sass
mit
cmckni3/orientation,orientation/orientation,orientation/orientation,LogicalBricks/orientation,liufffan/orientation,friism/orientation,robomc/orientation,splicers/orientation,IZEA/orientation,smashingboxes/orientation,codio/orientation,hashrocket/orientation,jefmathiot/orientation,twinn/orientation,ferdinandrosario/orientation,orientation/orientation,codio/orientation,Scripted/orientation,Scripted/orientation,splicers/orientation,cmckni3/orientation,orientation/orientation,codeschool/orientation,codeschool/orientation,IZEA/orientation,ferdinandrosario/orientation,LogicalBricks/orientation,friism/orientation,splicers/orientation,robomc/orientation,smashingboxes/orientation,hashrocket/orientation,cmckni3/orientation,codeschool/orientation,jefmathiot/orientation,liufffan/orientation,twinn/orientation,Scripted/orientation
sass
## Code Before: // ************************************* // // Markdown // -> Namespaced Markdown styles // // ************************************* .markdown // ----- Block Content ----- // // Blockquote blockquote padding-left: $b-space // Headings h1, h2, h3, h4, h5, h6 font-family: $b-fontFamily font-weight: bold margin-bottom: $b-space-s h1 font-family: $b-fontFamily-heading margin-bottom: $b-space-xs h2 font-size: $b-fontSize-l h3 color: $c-subdue font-size: $b-fontSize-l font-style: italic font-weight: normal h4 letter-spacing: 2px text-transform: uppercase h5 font-size: $b-fontSize h6 color: $c-subdue font-size: $b-fontSize font-style: italic font-weight: normal // ----- Inline Content ----- // // Links a &[href^='http'] word-wrap: break-word // Break lengthy URLs entered in content // Code code background: $c-background border-radius: $b-borderRadius display: inline-block padding-left: $b-space-xs padding-right: $b-space-xs ## Instruction: Add Markdown blockquote and list styles ## Code After: // ************************************* // // Markdown // -> Namespaced Markdown styles // // ************************************* .markdown // ----- Block Content ----- // // Blockquote blockquote border-left: 4px solid $c-border margin: $b-space 0 padding-left: $b-space // Lists ol, ul padding-left: $b-space > li margin-bottom: $b-space-s // Headings h1, h2, h3, h4, h5, h6 font-family: $b-fontFamily font-weight: bold margin-bottom: $b-space-s h1 font-family: $b-fontFamily-heading margin-bottom: $b-space-xs h2 font-size: $b-fontSize-l h3 color: $c-subdue font-size: $b-fontSize-l font-style: italic font-weight: normal h4 letter-spacing: 2px text-transform: uppercase h5 font-size: $b-fontSize h6 color: $c-subdue font-size: $b-fontSize font-style: italic font-weight: normal // ----- Inline Content ----- // // Links a &[href^='http'] word-wrap: break-word // NOTE: Added to break URLs entered in content // Code code background: $c-background border-radius: $b-borderRadius display: inline-block padding-left: $b-space-xs padding-right: $b-space-xs
adb7925ea9e3a2a6805fb033e94310f3de6400b7
android/entityextraction/gradle/wrapper/gradle-wrapper.properties
android/entityextraction/gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionBase=GRADLE_USER_HOME distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME
Update entity extraction gradle version.
Update entity extraction gradle version. Change-Id: I664e1e3525b22fddef4ba7302b5490d065e22e76
INI
apache-2.0
googlesamples/mlkit,googlesamples/mlkit,googlesamples/mlkit,googlesamples/mlkit
ini
## Code Before: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip ## Instruction: Update entity extraction gradle version. Change-Id: I664e1e3525b22fddef4ba7302b5490d065e22e76 ## Code After: distributionBase=GRADLE_USER_HOME distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip distributionPath=wrapper/dists zipStorePath=wrapper/dists zipStoreBase=GRADLE_USER_HOME
e2abd47f4f177f39c65624e991b233435d4a8acc
docs/requirements.txt
docs/requirements.txt
websockets pyyaml theblues python-dateutil sphinx sphinxcontrib-asyncio sphinx_rtd_theme
pytz<2018.0,>=2017.2 # conflict between sphinx and macaroonbakery sphinx sphinxcontrib-asyncio sphinx_rtd_theme
Fix dependency conflict for building docs
Fix dependency conflict for building docs
Text
apache-2.0
juju/python-libjuju,juju/python-libjuju
text
## Code Before: websockets pyyaml theblues python-dateutil sphinx sphinxcontrib-asyncio sphinx_rtd_theme ## Instruction: Fix dependency conflict for building docs ## Code After: pytz<2018.0,>=2017.2 # conflict between sphinx and macaroonbakery sphinx sphinxcontrib-asyncio sphinx_rtd_theme
0b84783cd8e7ebf748f38c3933ba3bebf64006c3
_next_events/2017-09-21.md
_next_events/2017-09-21.md
--- title: "Talks: September 21st, 2017 @ 18:00" date: 2017-09-21 meetup_id: "242552194" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/242552194/" venue_name: "TouchTunes" venue_address: "7250 Rue du Mile End Suite 202, Montréal, QC" venue_address_map_url: "https://www.google.com/maps/place/7250+Rue+du+Mile+End+%23202,+Montr%C3%A9al,+QC+H2R+3A4,+Canada/@45.5316085,-73.6227476,17z/data=!4m2!3m1!1s0x4cc9190e728b3977:0x9acf13e419978f90?hl=en" speakers: - name: "Juan Garcia" title: "Bringing Jukeboxes to life with CoreML and ARKit" - name: "Your talk could be here!" ---
--- title: "Talks: September 21st, 2017 @ 18:00" date: 2017-09-21 meetup_id: "242552194" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/242552194/" venue_name: "TouchTunes" venue_address: "7250 Rue du Mile End Suite 202, Montréal, QC" venue_address_map_url: "https://www.google.com/maps/place/7250+Rue+du+Mile+End+%23202,+Montr%C3%A9al,+QC+H2R+3A4,+Canada/@45.5316085,-73.6227476,17z/data=!4m2!3m1!1s0x4cc9190e728b3977:0x9acf13e419978f90?hl=en" speakers: - name: "Juan Garcia" title: "Bringing Jukeboxes to Life With CoreML and ARKit" - name: "Danny Yassine" title: "Advanced Notifications With UserNotifications and UserNotificationsUI Framework" twitter: danyassine - name: "Thibault Wittemberg" title: "Let's Weave Your Application" twitter: thwittem ---
Add more speakers to September 17
Add more speakers to September 17
Markdown
cc0-1.0
CocoaheadsMTL/cocoaheadsmtl.github.io
markdown
## Code Before: --- title: "Talks: September 21st, 2017 @ 18:00" date: 2017-09-21 meetup_id: "242552194" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/242552194/" venue_name: "TouchTunes" venue_address: "7250 Rue du Mile End Suite 202, Montréal, QC" venue_address_map_url: "https://www.google.com/maps/place/7250+Rue+du+Mile+End+%23202,+Montr%C3%A9al,+QC+H2R+3A4,+Canada/@45.5316085,-73.6227476,17z/data=!4m2!3m1!1s0x4cc9190e728b3977:0x9acf13e419978f90?hl=en" speakers: - name: "Juan Garcia" title: "Bringing Jukeboxes to life with CoreML and ARKit" - name: "Your talk could be here!" --- ## Instruction: Add more speakers to September 17 ## Code After: --- title: "Talks: September 21st, 2017 @ 18:00" date: 2017-09-21 meetup_id: "242552194" meetup_url: "https://www.meetup.com/CocoaHeads-Montreal/events/242552194/" venue_name: "TouchTunes" venue_address: "7250 Rue du Mile End Suite 202, Montréal, QC" venue_address_map_url: "https://www.google.com/maps/place/7250+Rue+du+Mile+End+%23202,+Montr%C3%A9al,+QC+H2R+3A4,+Canada/@45.5316085,-73.6227476,17z/data=!4m2!3m1!1s0x4cc9190e728b3977:0x9acf13e419978f90?hl=en" speakers: - name: "Juan Garcia" title: "Bringing Jukeboxes to Life With CoreML and ARKit" - name: "Danny Yassine" title: "Advanced Notifications With UserNotifications and UserNotificationsUI Framework" twitter: danyassine - name: "Thibault Wittemberg" title: "Let's Weave Your Application" twitter: thwittem ---
b6c24ef29e5d3145de10b610e0ecc5dc9ce36bbc
contrib/ci/pre_test_hook.sh
contrib/ci/pre_test_hook.sh
cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack
cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack localrc_path=$BASE/new/devstack/localrc # Set big quota for share networks to avoid limit exceedances echo "MANILA_OPTGROUP_DEFAULT_quota_share_networks=50" >> $localrc_path
Increase quota for share networks in manila installation
Increase quota for share networks in manila installation Functional tests create a lot of share networks and may cause exceedance of default limit. So, increase it, to be able to run tests not restricting amount of threads. Change-Id: I43ffdc54f924020bed876927bbd693593de726b2
Shell
apache-2.0
sniperganso/python-manilaclient,sniperganso/python-manilaclient
shell
## Code Before: cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack ## Instruction: Increase quota for share networks in manila installation Functional tests create a lot of share networks and may cause exceedance of default limit. So, increase it, to be able to run tests not restricting amount of threads. Change-Id: I43ffdc54f924020bed876927bbd693593de726b2 ## Code After: cp -r $BASE/new/manila/contrib/devstack/* $BASE/new/devstack localrc_path=$BASE/new/devstack/localrc # Set big quota for share networks to avoid limit exceedances echo "MANILA_OPTGROUP_DEFAULT_quota_share_networks=50" >> $localrc_path
904160cf0f8df646ad2ecbb6eff879326433b8b2
.travis.yml
.travis.yml
language: erlang notifications: email: false otp_release: - 18.0 - 17.5 - 17.4 - 17.3 install: true script: "make && make ct"
language: erlang notifications: email: false otp_release: - 17.5 - 17.4 - 17.3 install: true script: "make && make ct"
Remove otp 18.0 for now
Remove otp 18.0 for now
YAML
mit
bwegh/erwa,ethrbh/erwa
yaml
## Code Before: language: erlang notifications: email: false otp_release: - 18.0 - 17.5 - 17.4 - 17.3 install: true script: "make && make ct" ## Instruction: Remove otp 18.0 for now ## Code After: language: erlang notifications: email: false otp_release: - 17.5 - 17.4 - 17.3 install: true script: "make && make ct"
0dddfcbdb46ac91ddc0bfed4482bce049a8593c2
lazyblacksmith/views/blueprint.py
lazyblacksmith/views/blueprint.py
from flask import Blueprint from flask import render_template from lazyblacksmith.models import Activity from lazyblacksmith.models import Item from lazyblacksmith.models import Region blueprint = Blueprint('blueprint', __name__) @blueprint.route('/manufacturing/<int:item_id>') def manufacturing(item_id): """ Display the manufacturing page with all data """ item = Item.query.get(item_id) activity = item.activities.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() materials = item.activity_materials.filter_by(activity=Activity.ACTIVITY_MANUFACTURING) product = item.activity_products.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() regions = Region.query.filter_by(wh=False) # is any of the materials manufactured ? has_manufactured_components = False for material in materials: if material.material.is_manufactured(): has_manufactured_components = True break return render_template('blueprint/manufacturing.html', **{ 'blueprint': item, 'materials': materials, 'activity': activity, 'product': product, 'regions': regions, 'has_manufactured_components': has_manufactured_components, }) @blueprint.route('/') def search(): return render_template('blueprint/search.html')
import config from flask import Blueprint from flask import render_template from lazyblacksmith.models import Activity from lazyblacksmith.models import Item from lazyblacksmith.models import Region blueprint = Blueprint('blueprint', __name__) @blueprint.route('/manufacturing/<int:item_id>') def manufacturing(item_id): """ Display the manufacturing page with all data """ item = Item.query.get(item_id) activity = item.activities.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() materials = item.activity_materials.filter_by(activity=Activity.ACTIVITY_MANUFACTURING) product = item.activity_products.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() regions = Region.query.filter( Region.id.in_(config.CREST_REGION_PRICE) ).filter_by( wh=False ) # is any of the materials manufactured ? has_manufactured_components = False for material in materials: if material.material.is_manufactured(): has_manufactured_components = True break return render_template('blueprint/manufacturing.html', **{ 'blueprint': item, 'materials': materials, 'activity': activity, 'product': product, 'regions': regions, 'has_manufactured_components': has_manufactured_components, }) @blueprint.route('/') def search(): return render_template('blueprint/search.html')
Change region list to match config
Change region list to match config
Python
bsd-3-clause
Kyria/LazyBlacksmith,Kyria/LazyBlacksmith,Kyria/LazyBlacksmith,Kyria/LazyBlacksmith
python
## Code Before: from flask import Blueprint from flask import render_template from lazyblacksmith.models import Activity from lazyblacksmith.models import Item from lazyblacksmith.models import Region blueprint = Blueprint('blueprint', __name__) @blueprint.route('/manufacturing/<int:item_id>') def manufacturing(item_id): """ Display the manufacturing page with all data """ item = Item.query.get(item_id) activity = item.activities.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() materials = item.activity_materials.filter_by(activity=Activity.ACTIVITY_MANUFACTURING) product = item.activity_products.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() regions = Region.query.filter_by(wh=False) # is any of the materials manufactured ? has_manufactured_components = False for material in materials: if material.material.is_manufactured(): has_manufactured_components = True break return render_template('blueprint/manufacturing.html', **{ 'blueprint': item, 'materials': materials, 'activity': activity, 'product': product, 'regions': regions, 'has_manufactured_components': has_manufactured_components, }) @blueprint.route('/') def search(): return render_template('blueprint/search.html') ## Instruction: Change region list to match config ## Code After: import config from flask import Blueprint from flask import render_template from lazyblacksmith.models import Activity from lazyblacksmith.models import Item from lazyblacksmith.models import Region blueprint = Blueprint('blueprint', __name__) @blueprint.route('/manufacturing/<int:item_id>') def manufacturing(item_id): """ Display the manufacturing page with all data """ item = Item.query.get(item_id) activity = item.activities.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() materials = item.activity_materials.filter_by(activity=Activity.ACTIVITY_MANUFACTURING) product = item.activity_products.filter_by(activity=Activity.ACTIVITY_MANUFACTURING).one() regions = Region.query.filter( Region.id.in_(config.CREST_REGION_PRICE) ).filter_by( wh=False ) # is any of the materials manufactured ? has_manufactured_components = False for material in materials: if material.material.is_manufactured(): has_manufactured_components = True break return render_template('blueprint/manufacturing.html', **{ 'blueprint': item, 'materials': materials, 'activity': activity, 'product': product, 'regions': regions, 'has_manufactured_components': has_manufactured_components, }) @blueprint.route('/') def search(): return render_template('blueprint/search.html')