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
2e8f858671a21f27a6a0b75eb24f897dc872722f
beam/sbm_local.sh
beam/sbm_local.sh
OUTPUT_PATH="/tmp/sbm" rm -rf "${OUTPUT_PATH}" docker-compose run \ --entrypoint "python3 /app/beam_sbm.py \ --output ${OUTPUT_PATH} \ --nsamples 5 \ --nvertex_min 10 --nvertex_max 15 \ --nedges_min 5 --nedges_max 10 \ --runner=DirectRunner" \ research-graph-synthetic
OUTPUT_PATH="/tmp/sbm" rm -rf "${OUTPUT_PATH}" mkdir -p ${OUTPUT_PATH} docker-compose run \ --entrypoint "python3 /app/beam_sbm.py \ --output ${OUTPUT_PATH} \ --nsamples 5 \ --nvertex_min 10 --nvertex_max 15 \ --nedges_min 5 --nedges_max 10 \ --runner=DirectRunner" \ research-graph-synthetic
Make the output dir after deleting it.
Make the output dir after deleting it.
Shell
apache-2.0
google-research/graphworld,google-research/graphworld
shell
## Code Before: OUTPUT_PATH="/tmp/sbm" rm -rf "${OUTPUT_PATH}" docker-compose run \ --entrypoint "python3 /app/beam_sbm.py \ --output ${OUTPUT_PATH} \ --nsamples 5 \ --nvertex_min 10 --nvertex_max 15 \ --nedges_min 5 --nedges_max 10 \ --runner=DirectRunner" \ research-graph-synthetic ## Instructi...
7ca17e79f8c3dba7bc04377e7746a383a281562d
serverless_helpers/__init__.py
serverless_helpers/__init__.py
import dotenv
from dotenv import load_dotenv, get_key, set_key, unset_key def load_envs(path): import os path, _ = os.path.split(path) if path == '/': # bail out when you reach top of the FS load_dotenv(os.path.join(path, '.env')) return # load higher envs first # closer-to-base environm...
Add `load_envs` to take a base path and recurse up, looking for .envs
Add `load_envs` to take a base path and recurse up, looking for .envs
Python
mit
serverless/serverless-helpers-py
python
## Code Before: import dotenv ## Instruction: Add `load_envs` to take a base path and recurse up, looking for .envs ## Code After: from dotenv import load_dotenv, get_key, set_key, unset_key def load_envs(path): import os path, _ = os.path.split(path) if path == '/': # bail out when you reach t...
6b6eef4207690e30c42ad511c69d7c0cb682dd4a
Resources/public/js/emails.js
Resources/public/js/emails.js
$(document).ready(function () { $('#add-another-email').click(function () { var emailList = $('#email-fields-list'); var newWidget = emailList.attr('data-prototype'); newWidget = newWidget.replace(/__name__/g, emailCount); emailCount++; var newDiv = $('<div></div>').html(newW...
$(function () { var cList = $('#email-fields-list'), cCount = cList.children().length; $('#add-another-email').on('click', function () { widget = cList.attr('data-prototype').replace(/__name__/g, cCount++); $('<div></div>').html(widget).appendTo(cList); return false; }); ...
Apply layout to user edit account form. JS collection minor refactoring.
BAP-258: Apply layout to user edit account form. JS collection minor refactoring.
JavaScript
mit
geoffroycochard/platform,ramunasd/platform,northdakota/platform,orocrm/platform,hugeval/platform,geoffroycochard/platform,umpirsky/platform,hugeval/platform,northdakota/platform,orocrm/platform,geoffroycochard/platform,morontt/platform,trustify/oroplatform,Djamy/platform,2ndkauboy/platform,trustify/oroplatform,Djamy/pl...
javascript
## Code Before: $(document).ready(function () { $('#add-another-email').click(function () { var emailList = $('#email-fields-list'); var newWidget = emailList.attr('data-prototype'); newWidget = newWidget.replace(/__name__/g, emailCount); emailCount++; var newDiv = $('<div></...
015bb3ab18eb6fb5a468118bfda8f57fba55b12b
README.md
README.md
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe/mini.png)](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe) Description ----------- Visual Content Layout is a Drupal 8 Module developed to manage text filters HTML content layout and visual e...
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe/mini.png)](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe) Description ----------- Visual Content Layout is a Drupal 8 Module developed to manage text filters HTML content layout and visual e...
Update Instalation and usage specs.
Update Instalation and usage specs.
Markdown
mit
ParallelDevs/vcl,ParallelDevs/visual_content_layout,ParallelDevs/visual_content_layout,ParallelDevs/vcl,ParallelDevs/vcl,ParallelDevs/visual_content_layout
markdown
## Code Before: [![SensioLabsInsight](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe/mini.png)](https://insight.sensiolabs.com/projects/caba99f3-16eb-4bee-8f2a-349a33a61afe) Description ----------- Visual Content Layout is a Drupal 8 Module developed to manage text filters HTML content lay...
31b37c1e2d7ddeaa46a7d145c1f07b9b2e4d44e4
install.conf.yaml
install.conf.yaml
- defaults: link: create: true relink: true - clean: ['~', '~/.config', '~/.config/git', '~/.local/bin', '~/.atom'] - link: ~/.config/base16-shell: base16-shell ~/.config/zsh: zsh ~/.config/nvim: nvim ~/.config/git/config: git/config ~/.tmux.conf: tmux/tmux.conf ~/.editorconfig...
- defaults: link: create: true relink: true - clean: ['~', '~/.config', '~/.config/git', '~/.config/zsh', '~/.config/nvim', '~/.config/base16-shell', '~/bin'] - link: ~/.config/base16-shell: base16-shell ~/.config/zsh: zsh ~/.config/nvim: nvim ~/.config/git/config: git/config ~/.tm...
Update install script 'clean' directive
Update install script 'clean' directive
YAML
mit
andrew-dias/dotfiles-base,andrew-dias/dotfiles
yaml
## Code Before: - defaults: link: create: true relink: true - clean: ['~', '~/.config', '~/.config/git', '~/.local/bin', '~/.atom'] - link: ~/.config/base16-shell: base16-shell ~/.config/zsh: zsh ~/.config/nvim: nvim ~/.config/git/config: git/config ~/.tmux.conf: tmux/tmux.conf ...
c5f91728babd01201249c2f06048d57230a4fc26
public/css/style.css
public/css/style.css
body { padding-top: 50px; } .main-container { padding-top: 40px; } .inline-form { display: inline; padding-left: 10px; } .form-register { max-width: 330px; padding: 15px; margin: 0 auto; } .form-register .form-register-heading, .form-register .checkbox { margin-bottom: 10px; } .form-register .checkbo...
body { padding-top: 50px; } .main-container { padding-top: 40px; } .inline-form { display: inline; } .form-register { max-width: 330px; padding: 15px; margin: 0 auto; } .form-register .form-register-heading, .form-register .checkbox { margin-bottom: 10px; } .form-register .checkbox { font-weight: nor...
Remove left padding of the inline form
Remove left padding of the inline form
CSS
mit
dimitaruzunov/journal,dimitaruzunov/journal,dimitaruzunov/journal
css
## Code Before: body { padding-top: 50px; } .main-container { padding-top: 40px; } .inline-form { display: inline; padding-left: 10px; } .form-register { max-width: 330px; padding: 15px; margin: 0 auto; } .form-register .form-register-heading, .form-register .checkbox { margin-bottom: 10px; } .form-r...
e8aef4b9bf80da660c0374c6d476c87a3233a35e
examples/crasher/main.go
examples/crasher/main.go
package main import ( "image/color" "time" "github.com/voxelbrain/pixelpixel/imageutils" "github.com/voxelbrain/pixelpixel/protocol" ) func main() { c := protocol.PixelPusher() img := protocol.NewPixel() dImg := imageutils.DimensionChanger(img, 4, 1) for i := 0; i < 5; i++ { if i < 3 { dImg.Set(i, 0, c...
package main import ( "fmt" "image" "time" "github.com/voxelbrain/pixelpixel/imageutils" "github.com/voxelbrain/pixelpixel/protocol" ) func main() { c := protocol.PixelPusher() img := protocol.NewPixel() dImg := imageutils.DimensionChanger(img, 4, 6) for i := 0; i < 5; i++ { color := imageutils.Green i...
Rewrite crash with actual textual countdown
Rewrite crash with actual textual countdown
Go
mit
voxelbrain/pixelpixel,voxelbrain/pixelpixel,voxelbrain/pixelpixel,voxelbrain/pixelpixel,voxelbrain/pixelpixel,voxelbrain/pixelpixel
go
## Code Before: package main import ( "image/color" "time" "github.com/voxelbrain/pixelpixel/imageutils" "github.com/voxelbrain/pixelpixel/protocol" ) func main() { c := protocol.PixelPusher() img := protocol.NewPixel() dImg := imageutils.DimensionChanger(img, 4, 1) for i := 0; i < 5; i++ { if i < 3 { ...
fe077e837b29b3c1ce2477cac307829467455e98
templates/index.html
templates/index.html
<!DOCTYPE html> <html> <head> <title>{{{user}}}'s GitHub Pages Repositories</title> </head> <body> <p> You can provide a username in the URL, for example, <a href="https://github-gh-pages-list.herokuapp.com/?user=Mark-Simulacrum">https://github-gh-pages-list.herokuapp.com/?user=M...
<!DOCTYPE html> <html> <head> <title>{{{user}}}'s GitHub Pages Repositories</title> <script> window.onload = function () { document.getElementById("username-input").addEventListener("change", function (e) { var a = document.createElement("a"); ...
Add input to ease inputting usernames for the server to find.
Add input to ease inputting usernames for the server to find.
HTML
mit
Mark-Simulacrum/github-pages-check
html
## Code Before: <!DOCTYPE html> <html> <head> <title>{{{user}}}'s GitHub Pages Repositories</title> </head> <body> <p> You can provide a username in the URL, for example, <a href="https://github-gh-pages-list.herokuapp.com/?user=Mark-Simulacrum">https://github-gh-pages-list.herok...
ad07405ca877d65f30c9acd19abb4e782d854eaa
workshops/views.py
workshops/views.py
from django.views.generic import ListView, DetailView from config.utils import get_active_event from workshops.models import Workshop class WorkshopListView(ListView): template_name = 'workshops/list_workshops.html' model = Workshop context_object_name = 'workshops' def get_queryset(self): ev...
from django.views.generic import ListView, DetailView from config.utils import get_active_event from workshops.models import Workshop class WorkshopListView(ListView): template_name = 'workshops/list_workshops.html' model = Workshop context_object_name = 'workshops' def get_queryset(self): ev...
Order workshops by start date before title
Order workshops by start date before title
Python
bsd-3-clause
WebCampZg/conference-web,WebCampZg/conference-web,WebCampZg/conference-web
python
## Code Before: from django.views.generic import ListView, DetailView from config.utils import get_active_event from workshops.models import Workshop class WorkshopListView(ListView): template_name = 'workshops/list_workshops.html' model = Workshop context_object_name = 'workshops' def get_queryset(s...
cd460dadc9bd85f4dc7356b20abf7cb3e3401dd0
index.js
index.js
const Automerge = require('automerge') function applyCodeMirrorChangeToAutomerge(state, findList, change, cm) { const startPos = cm.indexFromPos(change.from) if (change.to.line === change.from.line && change.to.ch === change.from.ch) { // nothing was removed. } else { // delete.removed contains an array...
const Automerge = require('automerge') function applyCodeMirrorChangeToAutomerge(state, findList, change, cm) { const startPos = cm.indexFromPos(change.from) if (change.to.line === change.from.line && change.to.ch === change.from.ch) { // nothing was removed. } else { // delete.removed contains an array...
Use Array.reduce to compute how much to delete
Use Array.reduce to compute how much to delete
JavaScript
mit
aslakhellesoy/automerge-codemirror,aslakhellesoy/automerge-codemirror
javascript
## Code Before: const Automerge = require('automerge') function applyCodeMirrorChangeToAutomerge(state, findList, change, cm) { const startPos = cm.indexFromPos(change.from) if (change.to.line === change.from.line && change.to.ch === change.from.ch) { // nothing was removed. } else { // delete.removed c...
13aead9124467d533caf274bf4f473ec3773e525
tests/514-string-multiline.check.sh
tests/514-string-multiline.check.sh
set -x OUTPUT=514-string-multiline.out grep -q 1234 ${OUTPUT} || exit 1 grep -q 4321 ${OUTPUT} || exit 1 grep -q AA ${OUTPUT} || exit 1 grep -q "x=1" ${OUTPUT} || exit 1 echo OK exit 0
set -x grep -q 1234 ${TURBINE_OUTPUT} || exit 1 grep -q 4321 ${TURBINE_OUTPUT} || exit 1 grep -q AA ${TURBINE_OUTPUT} || exit 1 grep -q "x=1" ${TURBINE_OUTPUT} || exit 1 echo OK exit 0
Fix test 514 so it isn't sensitive to test directory
Fix test 514 so it isn't sensitive to test directory git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@7696 dc4e9af1-7f46-4ead-bba6-71afc04862de
Shell
apache-2.0
swift-lang/swift-t,blue42u/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,JohnPJenkins/swift-t,blue42u/swift-t,blue42u/swift-t,blue42u/swift-t,basheersubei/swift-t,swift-lang/swift-t,swift-lang/swift-t,swift-lang/swift-t,JohnPJenkins/swift-t,basheersubei/swift-t,JohnPJenkins/swift-t,basheersubei/swift-t,swift-lang/s...
shell
## Code Before: set -x OUTPUT=514-string-multiline.out grep -q 1234 ${OUTPUT} || exit 1 grep -q 4321 ${OUTPUT} || exit 1 grep -q AA ${OUTPUT} || exit 1 grep -q "x=1" ${OUTPUT} || exit 1 echo OK exit 0 ## Instruction: Fix test 514 so it isn't sensitive to test directory git-svn-id: 47705994653588c662f4ea400df...
62d77d6b44cb24415559a63f6cd43dc8adb6ca74
src/views/resources/page.blade.php
src/views/resources/page.blade.php
@extends('orchestra/foundation::layout.main') @section('content') <div class="row"> <div class="three columns"> <div class="list-group"> <?php foreach ($resources['list'] as $name => $resource) : ?> <a href="<?php echo resources($name); ?>" class="list-group-item <?php echo Request::is("*/resources/{$n...
@extends('orchestra/foundation::layout.main') @section('content') <div class="row"> <div class="three columns"> <div class="list-group"> <?php foreach ($resources['list'] as $name => $resource) : ?> <a href="<?php echo resources($name); ?>" class="list-group-item <?php echo Request::is("*/resources/{$n...
Add .pull-right to resources sidebar nav.
Add .pull-right to resources sidebar nav. Signed-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>
PHP
mit
stevebauman/foundation,orchestral/foundation,orchestral/foundation,orchestral/foundation
php
## Code Before: @extends('orchestra/foundation::layout.main') @section('content') <div class="row"> <div class="three columns"> <div class="list-group"> <?php foreach ($resources['list'] as $name => $resource) : ?> <a href="<?php echo resources($name); ?>" class="list-group-item <?php echo Request::is(...
3a9530e4d278ea3f4e1f4339dfa71f1a7cd2b3fa
app/graphql/types/ticket_type_type.rb
app/graphql/types/ticket_type_type.rb
class Types::TicketTypeType < Types::BaseObject field :id, Integer, null: false field :name, String, null: true field :publicly_available, Boolean, null: false field :counts_towards_convention_maximum, Boolean, null: false field :allows_event_signups, Boolean, null: false field :maximum_event_provided_ticke...
class Types::TicketTypeType < Types::BaseObject field :id, Integer, null: false field :name, String, null: true field :publicly_available, Boolean, null: false field :counts_towards_convention_maximum, Boolean, null: false field :allows_event_signups, Boolean, null: false field :maximum_event_provided_ticke...
Fix one more schema discrepancy
Fix one more schema discrepancy
Ruby
mit
neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode,neinteractiveliterature/intercode
ruby
## Code Before: class Types::TicketTypeType < Types::BaseObject field :id, Integer, null: false field :name, String, null: true field :publicly_available, Boolean, null: false field :counts_towards_convention_maximum, Boolean, null: false field :allows_event_signups, Boolean, null: false field :maximum_even...
789e04879e362ced05ee7b4a1ab534004e7291f2
requirements-common.txt
requirements-common.txt
Django==1.5.5 Markdown==2.4 Pygments==1.6 South==0.8.4 django-generic-aggregation==0.3.2 django-haystack==2.1.0 django-pagination==1.0.7 django-registration==1.0 django-taggit==0.11.2 -e git+https://github.com/django-de/cab#egg=cab -e git+https://github.com/jezdez/django-simple-ratings#egg=django-simple-ratings
Django==1.5.5 Markdown==2.4 Pygments==1.6 South==0.8.4 django-generic-aggregation==0.3.2 django-haystack==2.1.0 django-pagination==1.0.7 django-registration==1.0 django-taggit==0.11.2 django-cab==0.3 django-simple-ratings==0.3.3
Use released versions of own packages.
Use released versions of own packages.
Text
bsd-3-clause
django/djangosnippets.org,django-de/djangosnippets.org,django-de/djangosnippets.org,django/djangosnippets.org,django-de/djangosnippets.org,django/djangosnippets.org,django-de/djangosnippets.org,django/djangosnippets.org,django/djangosnippets.org
text
## Code Before: Django==1.5.5 Markdown==2.4 Pygments==1.6 South==0.8.4 django-generic-aggregation==0.3.2 django-haystack==2.1.0 django-pagination==1.0.7 django-registration==1.0 django-taggit==0.11.2 -e git+https://github.com/django-de/cab#egg=cab -e git+https://github.com/jezdez/django-simple-ratings#egg=django-simpl...
07f320b50de665ea8529f7a6a340f8d287b22814
noudar-rendering/Logger.cpp
noudar-rendering/Logger.cpp
// // Created by monty on 26/09/16. // #include <string> #include <cstdarg> #ifdef __ANDROID__ #include <android/log.h> #else #include <cstdio> #endif #include "Logger.h" namespace odb { void doLog(const char *format, va_list args) { char buffer[255]; std::vsnprintf(buffer, 255, format, args);...
// // Created by monty on 26/09/16. // #include <string> #include <cstdarg> #include <cstring> #ifdef __ANDROID__ #include <android/log.h> #else #include <cstdio> #endif #include "Logger.h" namespace odb { void doLog(const char *format, va_list args) { char buffer[255]; return; memset(...
Fix compilation error on OSX
Fix compilation error on OSX
C++
bsd-2-clause
TheFakeMontyOnTheRun/dungeons-of-noudar,TheFakeMontyOnTheRun/dungeons-of-noudar
c++
## Code Before: // // Created by monty on 26/09/16. // #include <string> #include <cstdarg> #ifdef __ANDROID__ #include <android/log.h> #else #include <cstdio> #endif #include "Logger.h" namespace odb { void doLog(const char *format, va_list args) { char buffer[255]; std::vsnprintf(buffer, 255...
4ba98c04c130a32a5a88f100e8e919236c17e784
app/templates/words/index.hbs
app/templates/words/index.hbs
<div class="wrapper words-index"> <h1>Browse Words</h1> <div class="select-pos"> <div class="title">Part of Speech</div> <label> {{input type="checkbox" checked=isChecked}} <span>Verb</span> </label> <label> {{input type="checkbox" checked=isChecked}} <span>Adjective</span> ...
<div class="wrapper words-index"> <h1>Browse Words</h1> <div class="select-pos"> <div class="title">Part of Speech</div> <label> {{input type="checkbox"}} <span>Verb</span> </label> <label> {{input type="checkbox"}} <span>Adjective</span> </label> </div> <div class=...
Remove attributes from the browse page
Remove attributes from the browse page
Handlebars
mit
BryanCode/wordset-ui,BryanCode/wordset-ui,BryanCode/wordset-ui,wordset/wordset-ui,wordset/wordset-ui,wordset/wordset-ui
handlebars
## Code Before: <div class="wrapper words-index"> <h1>Browse Words</h1> <div class="select-pos"> <div class="title">Part of Speech</div> <label> {{input type="checkbox" checked=isChecked}} <span>Verb</span> </label> <label> {{input type="checkbox" checked=isChecked}} <span>A...
0e3e30bd9ace8984385796708a8aa547c849cdc0
salt/apps/ocw/pull_edx_courses_json.sls
salt/apps/ocw/pull_edx_courses_json.sls
pull_edx_courses_json: module.run: - name: s3.get - bucket: open-learning-course-data - path: edx_courses.json - local_file: /var/www/ocw/courses/edx_courses.json ensure_ownership_and_perms_of_edx_courses_json: file.managed: - name: /var/www/ocw/courses/edx_courses.json - user: fsuser ...
pull_edx_courses_json: module.run: - name: s3.get - bucket: open-learning-course-data-production - path: edx_courses.json - local_file: /var/www/ocw/courses/edx_courses.json ensure_ownership_and_perms_of_edx_courses_json: file.managed: - name: /var/www/ocw/courses/edx_courses.json - user: ...
Update bucket for OCW edx_courses.json scheduled task
Update bucket for OCW edx_courses.json scheduled task
SaltStack
bsd-3-clause
mitodl/salt-ops,mitodl/salt-ops
saltstack
## Code Before: pull_edx_courses_json: module.run: - name: s3.get - bucket: open-learning-course-data - path: edx_courses.json - local_file: /var/www/ocw/courses/edx_courses.json ensure_ownership_and_perms_of_edx_courses_json: file.managed: - name: /var/www/ocw/courses/edx_courses.json - u...
ca0c159e54cde05ef2a1eca02a3b0b4ecfdf1f7a
README.md
README.md
> Elegantly visualising bundle sizes over time. Bramble is a bundle analyser. It can be easily composed into your build pipeline. It maintains data about, and generates visualisations for your bundle. ## Install ```sh npm install bramble ``` ## Build integration The recommended ways to setup bramble are: ### Net...
> Elegantly visualising bundle sizes over time. Bramble is a bundle analyser. It can be easily composed into your build pipeline. It maintains data about, and generates visualisations for your bundle. ## Install ```sh npm install bramble ``` ## Build integration The recommended ways to setup bramble are: ### Net...
Add --threshold argument to docs.
Add --threshold argument to docs.
Markdown
mit
bramblejs/bramble,bramblejs/bramble
markdown
## Code Before: > Elegantly visualising bundle sizes over time. Bramble is a bundle analyser. It can be easily composed into your build pipeline. It maintains data about, and generates visualisations for your bundle. ## Install ```sh npm install bramble ``` ## Build integration The recommended ways to setup bramb...
8a9962882ccd1dda3cdb9708d3db3205d40deb4a
builder/hyperv/common/ssh.go
builder/hyperv/common/ssh.go
package common import ( "log" "github.com/hashicorp/packer/helper/multistep" ) func CommHost(host string) func(multistep.StateBag) (string, error) { return func(state multistep.StateBag) (string, error) { if host != "" { log.Println("Using ssh_host value: %s", ipAddress) return host, nil } vmName :=...
package common import ( "log" "github.com/hashicorp/packer/helper/multistep" ) func CommHost(host string) func(multistep.StateBag) (string, error) { return func(state multistep.StateBag) (string, error) { if host != "" { log.Printf("Using ssh_host value: %s", host) return host, nil } vmName := state...
Use Printf not Println. D'oh.
Use Printf not Println. D'oh.
Go
mpl-2.0
mitchellh/packer,pecigonzalo/packer,mkuzmin/packer,bryson/packer,ricardclau/packer,paulmey/packer,bryson/packer,ricardclau/packer,paulmey/packer,dave2/packer,pecigonzalo/packer,tas50/packer,bryson/packer,rnaveiras/packer,timsutton/packer,hashicorp/packer,paulmey/packer,timsutton/packer,tas50/packer,grubernaut/packer,yo...
go
## Code Before: package common import ( "log" "github.com/hashicorp/packer/helper/multistep" ) func CommHost(host string) func(multistep.StateBag) (string, error) { return func(state multistep.StateBag) (string, error) { if host != "" { log.Println("Using ssh_host value: %s", ipAddress) return host, nil ...
4d51e8279cdf10b0b4940a7845bd92c87f59881f
dependencies-debian-runtime.txt
dependencies-debian-runtime.txt
libgstreamer1.0-0 (>= 1.8.3), gstreamer1.0-tools (>= 1.8.0), gstreamer1.0-x (>= 1.8.3), gstreamer1.0-plugins-base (>= 1.8.0), gstreamer1.0-plugins-good (>= 1.8.0), gstreamer1.0-plugins-bad (>= 1.8.0), gstreamer1.0-plugins-ugly (>= 1.8.3), libxml2 (>= 2.9.3), libzip4 (>= 1.0.1), libglib2.0-0 (>= 2.48.2), libgirepositor...
libgstreamer1.0-0 (>= 1.8.3), gstreamer1.0-tools (>= 1.8.0), gstreamer1.0-x (>= 1.8.3), gstreamer1.0-plugins-base (>= 1.8.0), gstreamer1.0-plugins-good (>= 1.8.0), gstreamer1.0-plugins-bad (>= 1.8.0), gstreamer1.0-plugins-ugly (>= 1.8.3), libxml2 (>= 2.9.3), # glob to address different libzip versions # ubuntu 20.04 h...
Use libzip[4-5] in dependency description
dependencies: Use libzip[4-5] in dependency description
Text
apache-2.0
TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera
text
## Code Before: libgstreamer1.0-0 (>= 1.8.3), gstreamer1.0-tools (>= 1.8.0), gstreamer1.0-x (>= 1.8.3), gstreamer1.0-plugins-base (>= 1.8.0), gstreamer1.0-plugins-good (>= 1.8.0), gstreamer1.0-plugins-bad (>= 1.8.0), gstreamer1.0-plugins-ugly (>= 1.8.3), libxml2 (>= 2.9.3), libzip4 (>= 1.0.1), libglib2.0-0 (>= 2.48.2)...
4cf4487e326f45b6d3639513b76c8833eb8d1d3e
app/models/item.rb
app/models/item.rb
class Item < ApplicationRecord has_attached_file :image, styles: { thumbnail: "150x150" } validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/ belongs_to :category has_many :order_items has_many :orders, through: :order_items validates :title, :description, :price, :inventory_status, :im...
class Item < ApplicationRecord has_attached_file :image, styles: { thumbnail: "150x150" } validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/ belongs_to :category has_many :order_items has_many :orders, through: :order_items validates :title, :description, :price, :inventory...
Move validation to new line
Move validation to new line Style for 80 char limit.
Ruby
mit
nickedwards109/little-shop,nickedwards109/little-shop,nickedwards109/little-shop
ruby
## Code Before: class Item < ApplicationRecord has_attached_file :image, styles: { thumbnail: "150x150" } validates_attachment_content_type :image, content_type: /\Aimage\/.*\z/ belongs_to :category has_many :order_items has_many :orders, through: :order_items validates :title, :description, :price, :inven...
b5b2611475e387c4eda6d22ac6d8802ac75968f1
appveyor.yml
appveyor.yml
environment: ELECTRON_RUN_AS_NODE: 1 VSCODE_BUILD_VERBOSE: true platform: - x86 - x64 install: - ps: Install-Product node 8 cache: - node_modules - "%APPDATA%\\npm-cache" test_script: - node --version - npm --version - npm run lint - npm run vscode:prepublish - npm run test --silent # - .\scr...
environment: ELECTRON_RUN_AS_NODE: 1 VSCODE_BUILD_VERBOSE: true platform: - x86 - x64 install: - ps: Install-Product node 8 - npm install cache: - node_modules - "%APPDATA%\\npm-cache" test_script: - node --version - npm --version - npm run lint - npm run vscode:prepublish - npm run test --s...
Add missing npm install task
Add missing npm install task
YAML
apache-2.0
KamiKillertO/vscode-colorize,KamiKillertO/vscode-colorize
yaml
## Code Before: environment: ELECTRON_RUN_AS_NODE: 1 VSCODE_BUILD_VERBOSE: true platform: - x86 - x64 install: - ps: Install-Product node 8 cache: - node_modules - "%APPDATA%\\npm-cache" test_script: - node --version - npm --version - npm run lint - npm run vscode:prepublish - npm run test --s...
3a0c7caadb46a69fb29fe34bd64de28c9b263fd6
restconverter.py
restconverter.py
from docutils import core from docutils.writers.html4css1 import Writer, HTMLTranslator class HTMLFragmentTranslator(HTMLTranslator): def __init__(self, document): HTMLTranslator.__init__(self, document) self.head_prefix = ['','','','',''] self.body_prefix = [] self.body_suffix = [...
from docutils import core from docutils.writers.html4css1 import Writer, HTMLTranslator class HTMLFragmentTranslator(HTMLTranslator): def __init__(self, document): HTMLTranslator.__init__(self, document) self.head_prefix = ['','','','',''] self.body_prefix = [] self.body_suffix = [...
Add rest_to_html_fragment to be able to convert just the body part
Add rest_to_html_fragment to be able to convert just the body part
Python
bsd-2-clause
jkossen/flaskjk
python
## Code Before: from docutils import core from docutils.writers.html4css1 import Writer, HTMLTranslator class HTMLFragmentTranslator(HTMLTranslator): def __init__(self, document): HTMLTranslator.__init__(self, document) self.head_prefix = ['','','','',''] self.body_prefix = [] self...
925f6ba2f764c1579adb86da5da7eb20486c4c30
test/koans/map_sets_koans_test.exs
test/koans/map_sets_koans_test.exs
defmodule MapSetsTest do use ExUnit.Case import TestHarness test "MapSets" do answers = [ true, {:multiple, [true, false]}, true, false, 5, false, true, 3, 7, [1, 2, 3, 4, 5], ] test_all(MapSets, answers) end end
defmodule MapSetsTest do use ExUnit.Case import TestHarness test "MapSets" do answers = [ {:multiple, [true, false]}, 3, true, true, false, 5, false, true, 7, [1, 2, 3, 4, 5], ] test_all(MapSets, answers) end end
Change order of answers to make unit tests pass
Change order of answers to make unit tests pass
Elixir
mit
samstarling/elixir-koans,elixirkoans/elixir-koans
elixir
## Code Before: defmodule MapSetsTest do use ExUnit.Case import TestHarness test "MapSets" do answers = [ true, {:multiple, [true, false]}, true, false, 5, false, true, 3, 7, [1, 2, 3, 4, 5], ] test_all(MapSets, answers) end end ## Instr...
260121fec45c0a4c4135159be19fe181aa328b48
org.metaborg.meta.lang.dynsem.interpreter/src/main/java/org/metaborg/meta/lang/dynsem/interpreter/nodes/matching/IntLiteralTermMatchPattern.java
org.metaborg.meta.lang.dynsem.interpreter/src/main/java/org/metaborg/meta/lang/dynsem/interpreter/nodes/matching/IntLiteralTermMatchPattern.java
package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.source.SourceSection; public abstract class IntLiteralTermMatchPattern extends LiteralMatchPattern { protected final int lit; public IntLiteralTermMatchPattern(int lit,...
package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.profiles.ConditionProfile; import com.oracle.truffle.api.source.SourceSection; public abstract class IntLiteralTermMatchPattern extends LiteralMatchPattern { protected fi...
Fix competely invalid value specialization in integer literal matching
Fix competely invalid value specialization in integer literal matching Fixes #124.
Java
apache-2.0
metaborg/dynsem,metaborg/dynsem
java
## Code Before: package org.metaborg.meta.lang.dynsem.interpreter.nodes.matching; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.source.SourceSection; public abstract class IntLiteralTermMatchPattern extends LiteralMatchPattern { protected final int lit; public IntLiteralTermMatch...
d90358d861e2436fc468b199943bb7e53b31290b
test/jobs/clean_abandoned_site_channels_job_test.rb
test/jobs/clean_abandoned_site_channels_job_test.rb
require 'test_helper' class CleanAbandonedSiteChannelsJobTest < ActiveJob::TestCase test "cleans abandoned site channels older than one day" do publisher = publishers(:medium_media_group) assert SiteChannelDetails.find_by(brave_publisher_id: "medium_2.org") assert_difference("Channel.count", -1) do ...
require 'test_helper' class CleanAbandonedSiteChannelsJobTest < ActiveJob::TestCase test "cleans non-visible (abandoned) site channels older than one day" do publisher = publishers(:medium_media_group) assert SiteChannelDetails.find_by(brave_publisher_id: "medium_2.org") assert_difference("Channel.coun...
Change requirements for abandoned channels
Change requirements for abandoned channels
Ruby
mpl-2.0
brave/publishers,brave/publishers,brave/publishers
ruby
## Code Before: require 'test_helper' class CleanAbandonedSiteChannelsJobTest < ActiveJob::TestCase test "cleans abandoned site channels older than one day" do publisher = publishers(:medium_media_group) assert SiteChannelDetails.find_by(brave_publisher_id: "medium_2.org") assert_difference("Channel.co...
f8cc074dc127b863054cfdf51f5769bf34fc2cbf
lib/genera/function.rb
lib/genera/function.rb
module Genera class Function attr_reader :prototype def initialize(*args, &body) if args.first.kind_of?(Prototype) proto = args.first else proto = Prototype.new(*args) end validate(proto, body) @prototype = proto @func = generate(@prototype, &bo...
module Genera class Function attr_reader :prototype def initialize(*args, &body) if args.first.kind_of?(Prototype) proto = args.first else proto = Prototype.new(*args) end validate(proto, body) @prototype = proto @func = generate(@prototype, &bo...
Simplify error handling for Genera::Function. Don't swallow/rethrow exceptions unrelated to the return type.
Simplify error handling for Genera::Function. Don't swallow/rethrow exceptions unrelated to the return type.
Ruby
bsd-3-clause
jvoorhis/Genera
ruby
## Code Before: module Genera class Function attr_reader :prototype def initialize(*args, &body) if args.first.kind_of?(Prototype) proto = args.first else proto = Prototype.new(*args) end validate(proto, body) @prototype = proto @func = generate...
64f4ec5b40a6668f171cbeabb5d05606e68f2d6c
teleport/teleport-palcu-back.cpp
teleport/teleport-palcu-back.cpp
using namespace std; const int NMAX = 100000, PASI_INFINITI = NMAX*2; int v[NMAX], nVector, sizeOfCheat; int back(int pozitieCurenta, int cheatsAvailable) { if (pozitieCurenta > nVector) return PASI_INFINITI; if (pozitieCurenta == nVector) return 0; int sol = min(back(po...
// @palcu // InfoOltenia 2015, teleport, backtracking #include <cstdio> #include <algorithm> using namespace std; const int NMAX = 100000, PASI_INFINITI = NMAX*2; int v[NMAX], nVector, sizeOfCheat; int back(int pozitieCurenta, int cheatsAvailable) { if (pozitieCurenta > nVector) return P...
Add comments in the source code
Add comments in the source code
C++
mit
palcu/infooltenia,palcu/infooltenia,palcu/infooltenia,palcu/infooltenia,palcu/infooltenia,palcu/infooltenia
c++
## Code Before: using namespace std; const int NMAX = 100000, PASI_INFINITI = NMAX*2; int v[NMAX], nVector, sizeOfCheat; int back(int pozitieCurenta, int cheatsAvailable) { if (pozitieCurenta > nVector) return PASI_INFINITI; if (pozitieCurenta == nVector) return 0; int s...
f26e3e703f4cf3f0400a50114b54d32e1f1b4277
modules/capture/benchmark/CMakeLists.txt
modules/capture/benchmark/CMakeLists.txt
find_package(PCAP REQUIRED) if(PCAP_FOUND) add_library(benchmark MODULE main.c) include_directories(${PCAP_INCLUDE_DIR}) target_link_libraries(benchmark LINK_PRIVATE ${PCAP_LIBRARY}) DEPENDS_MODULE(benchmark pcap capture) INSTALL_MODULE(benchmark capture) endif()
find_package(PCAP REQUIRED) if(PCAP_FOUND) INCLUDE_MODULE(pcap capture) add_library(benchmark MODULE main.c) include_directories(${PCAP_INCLUDE_DIR}) target_link_libraries(benchmark LINK_PRIVATE ${PCAP_LIBRARY}) DEPENDS_MODULE(benchmark capture-pcap capture) INSTALL_MODULE(benchmark capture) endif()
Revert benchmark capture module build
Revert benchmark capture module build
Text
mpl-2.0
haka-security/haka,haka-security/haka,nabilbendafi/haka,nabilbendafi/haka,nabilbendafi/haka,haka-security/haka
text
## Code Before: find_package(PCAP REQUIRED) if(PCAP_FOUND) add_library(benchmark MODULE main.c) include_directories(${PCAP_INCLUDE_DIR}) target_link_libraries(benchmark LINK_PRIVATE ${PCAP_LIBRARY}) DEPENDS_MODULE(benchmark pcap capture) INSTALL_MODULE(benchmark capture) endif() ## Instruction: Revert benchmar...
d6922a6f030c8b16e5d1e293281d2de9c58551fb
src/main/page/home/index.html
src/main/page/home/index.html
{% extends 'layout.html' %} {% set id = 'contents' %} {% set title = false %} {% set description = title + ': The comprehensive documentation' %} {% set keywords = [ 'overview', 'topics', 'table of contents' ] %} {% block content %} {{ section( 'page/home/contents.html', level = 0, class = 'toc' ) }} {{ section_fur...
{% extends 'layout.html' %} {% set id = 'contents' %} {% set title = false %} {% set description = 'Scala on Android: The comprehensive documentation' %} {% set keywords = [ 'overview', 'topics', 'table of contents' ] %} {% block content %} {{ section( 'page/home/contents.html', level = 0, class = 'toc' ) }} {{ se...
Fix home title containing 'false'
Fix home title containing 'false'
HTML
mit
Taig/Scala-on-Android,Taig/Scala-on-Android,Taig/Scala-on-Android,Taig/Scala-on-Android
html
## Code Before: {% extends 'layout.html' %} {% set id = 'contents' %} {% set title = false %} {% set description = title + ': The comprehensive documentation' %} {% set keywords = [ 'overview', 'topics', 'table of contents' ] %} {% block content %} {{ section( 'page/home/contents.html', level = 0, class = 'toc' ) }}...
b2c69dbb27d7398b5c89e0211263dd32943900c5
modules/custom/ga_front/src/FrontUtils.php
modules/custom/ga_front/src/FrontUtils.php
<?php namespace Drupal\ga_front; class FrontUtils { public static function getPreliveConfiguration() { $config = \Drupal::config('ga_ticket.settings'); $variables['edition_name'] = $config->get('edition_name'); $variables['event_title'] = $config->get('event_title'); $variab...
<?php namespace Drupal\ga_front; class FrontUtils { public static function getPreliveConfiguration() { $config = \Drupal::config('ga_front.prelive.settings'); $variables['edition_name'] = $config->get('edition_name'); $variables['event_title'] = $config->get('event_title'); ...
Fix bug on homepage configuration
Fix bug on homepage configuration
PHP
agpl-3.0
Futurolan/ga-website,Futurolan/ga-website,Futurolan/ga-website,Futurolan/ga-website
php
## Code Before: <?php namespace Drupal\ga_front; class FrontUtils { public static function getPreliveConfiguration() { $config = \Drupal::config('ga_ticket.settings'); $variables['edition_name'] = $config->get('edition_name'); $variables['event_title'] = $config->get('event_title');...
13d9cf933e49849a3c5343e7bdbf887b9aee6097
busbus/entity.py
busbus/entity.py
from busbus import util class LazyEntityProperty(object): def __init__(self, f, *args, **kwargs): self.f = f self.args = args self.kwargs = kwargs def __call__(self): return self.f(*self.args, **self.kwargs) class BaseEntity(object): def __init__(self, provider, **kwar...
from busbus import util class LazyEntityProperty(object): def __init__(self, f, *args, **kwargs): self.f = f self.args = args self.kwargs = kwargs def __call__(self): return self.f(*self.args, **self.kwargs) class BaseEntity(object): __repr_attrs__ = ('id',) def __...
Use an instance variable instead of a non-standard argument to __repr__
Use an instance variable instead of a non-standard argument to __repr__
Python
mit
spaceboats/busbus
python
## Code Before: from busbus import util class LazyEntityProperty(object): def __init__(self, f, *args, **kwargs): self.f = f self.args = args self.kwargs = kwargs def __call__(self): return self.f(*self.args, **self.kwargs) class BaseEntity(object): def __init__(self, ...
150e67103dc9107f0b52a444809e821c3c744076
lib/bricks/builder_set.rb
lib/bricks/builder_set.rb
require 'bricks/dsl' module Bricks class BuilderSet include Bricks::DSL def build(klass) (@builders << super).last end def build!(klass) (@builders << super).last end def clear @builders.clear end def create(klass) (@builders << super).last end def...
require 'bricks/dsl' module Bricks class BuilderSet include Bricks::DSL def build(klass = @class) (@builders << super).last end def build!(klass = @class) (@builders << super).last end def clear @builders.clear end def create(klass = @class) (@builders << s...
Use the BuilderSet class as the default for BuilderSet DSL methods.
Use the BuilderSet class as the default for BuilderSet DSL methods.
Ruby
mit
mojotech/bricks
ruby
## Code Before: require 'bricks/dsl' module Bricks class BuilderSet include Bricks::DSL def build(klass) (@builders << super).last end def build!(klass) (@builders << super).last end def clear @builders.clear end def create(klass) (@builders << super).last ...
b5dd7072d4c98c04f55e0503509f27f6fc1ed2fc
README.txt
README.txt
Building with Maven 2 Requires maven 2.0.4 Before building: mvn install:install-file -Dfile=xstream-website/lib/sitemesh-20051115.jar -DgroupId=opensymphony -DartifactId=sitemesh -Dversion=20051115 -Dpackaging=jar To build: mvn clean install Before deploying: copy settings-template.xml to ~/.m2/settings.xml addi...
Building with Maven 2 Requires maven 2.0.4 Before building: mvn install:install-file -Dfile=xstream-website/lib/sitemesh-20051115.jar -DgroupId=opensymphony -DartifactId=sitemesh -Dversion=20051115 -Dpackaging=jar -DgeneratePom=true To build: mvn clean install Before deploying: copy settings-template.xml to ~/.m...
Build breaks without auto-generated POM.
Build breaks without auto-generated POM.
Text
bsd-3-clause
codehaus/xstream,codehaus/xstream
text
## Code Before: Building with Maven 2 Requires maven 2.0.4 Before building: mvn install:install-file -Dfile=xstream-website/lib/sitemesh-20051115.jar -DgroupId=opensymphony -DartifactId=sitemesh -Dversion=20051115 -Dpackaging=jar To build: mvn clean install Before deploying: copy settings-template.xml to ~/.m2/s...
3bca087ce549093e20b9d1860c887e4e693cff36
tests/check_ios_test.sh
tests/check_ios_test.sh
while true; do BUILD_STATUS=`curl --header "Accept: application/json" https://circleci.com/api/v1/project/mnaza/objcthemis-tests/$1 | python -c 'import sys; import json; print(json.load(sys.stdin)["status"])'` if [[ $? -ne 0 ]] echo "Can't get build $1 status" then exit 1 fi echo $BUILD_STATUS i...
while true; do BUILD_STATUS=`curl --header "Accept: application/json" https://circleci.com/api/v1/project/mnaza/objcthemis-tests/$1 | python -c 'import sys; import json; print(json.load(sys.stdin)["status"])'` if [ "$?" != "0" ] then echo "Can't get build $1 status" exit 1 fi echo $BUILD_STATUS ...
Add ios test to main test script
Add ios test to main test script
Shell
apache-2.0
mnaza/themis,mnaza/themis,cossacklabs/themis,Lagovas/themis,cossacklabs/themis,Lagovas/themis,mnaza/themis,cossacklabs/themis,Lagovas/themis,mnaza/themis,storojs72/themis,storojs72/themis,Lagovas/themis,Lagovas/themis,storojs72/themis,storojs72/themis,storojs72/themis,mnaza/themis,storojs72/themis,Lagovas/themis,Lagova...
shell
## Code Before: while true; do BUILD_STATUS=`curl --header "Accept: application/json" https://circleci.com/api/v1/project/mnaza/objcthemis-tests/$1 | python -c 'import sys; import json; print(json.load(sys.stdin)["status"])'` if [[ $? -ne 0 ]] echo "Can't get build $1 status" then exit 1 fi echo $BU...
dcc4f4a874d4421431e5e857ca8156b4d32b7ea4
tests/dummy/test/integration/controllers/Errors.test.js
tests/dummy/test/integration/controllers/Errors.test.js
var request = require('supertest'); var JSONAPIValidator = require('jsonapi-validator').Validator; validateJSONapi = function(res) { var validator = new JSONAPIValidator(); validator.validate(res.body); } describe('Error handling', function() { describe('GET /fake', function() { it('Should return 404', fun...
var request = require('supertest'); var JSONAPIValidator = require('jsonapi-validator').Validator; validateJSONapi = function(res) { var validator = new JSONAPIValidator(); validator.validate(res.body); } describe('Error handling', function() { describe('GET /fake', function() { it('Should return 404', fun...
Add expectation on Error output
Add expectation on Error output
JavaScript
mit
dynamiccast/sails-json-api-blueprints
javascript
## Code Before: var request = require('supertest'); var JSONAPIValidator = require('jsonapi-validator').Validator; validateJSONapi = function(res) { var validator = new JSONAPIValidator(); validator.validate(res.body); } describe('Error handling', function() { describe('GET /fake', function() { it('Should ...
ac685a42dcec3bc4dd178a9d7a1ed1da7d63bc52
app/models/payload.rb
app/models/payload.rb
require 'json' # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md#merge-request-events class Payload pattr_initialize :unparsed_data def data @data ||= parse_data end def gitlab_repo_id merge_request["target_project_id"] end def full_repo_name "#{repository['na...
require 'json' # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md#merge-request-events class Payload pattr_initialize :unparsed_data def data @data ||= parse_data end def gitlab_repo_id merge_request["target_project_id"] end def full_repo_name "#{repository['na...
Fix bug when branch name contains slash.
Fix bug when branch name contains slash.
Ruby
mit
larrylv/hound-gitlab,e-sabelhaus/gitlab-doge,larrylv/hound-gitlab,e-sabelhaus/gitlab-doge,e-sabelhaus/gitlab-doge,larrylv/hound-gitlab,e-sabelhaus/gitlab-doge
ruby
## Code Before: require 'json' # https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md#merge-request-events class Payload pattr_initialize :unparsed_data def data @data ||= parse_data end def gitlab_repo_id merge_request["target_project_id"] end def full_repo_name "...
6d2a7cb0593ea00a711359e34f1bf2c974f53ccb
src/PostgRESTWS/HasqlBroadcast.hs
src/PostgRESTWS/HasqlBroadcast.hs
module PostgRESTWS.HasqlBroadcast ( newHasqlBroadcaster -- re-export , acquire , relayMessages , relayMessagesForever ) where import Protolude import Hasql.Connection import PostgRESTWS.Database import PostgRESTWS.Broadcast newHasqlBroadcaster :: Connection -> IO Multiplexer newHasqlBroadcaster con = ne...
{-| Module : PostgRESTWS.HasqlBroadcast Description : Uses Broadcast module adding database as a source producer. This module provides a function to produce a 'Multiplexer' from a Hasql 'Connection'. The producer issues a LISTEN command upon Open commands and UNLISTEN upon Close. -} module PostgRESTWS.HasqlBroad...
Add haddock comments to give example of database multiplexer.
Add haddock comments to give example of database multiplexer.
Haskell
mit
diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws
haskell
## Code Before: module PostgRESTWS.HasqlBroadcast ( newHasqlBroadcaster -- re-export , acquire , relayMessages , relayMessagesForever ) where import Protolude import Hasql.Connection import PostgRESTWS.Database import PostgRESTWS.Broadcast newHasqlBroadcaster :: Connection -> IO Multiplexer newHasqlBroa...
cb8fe1698fe5fe121df5bd530af9ce0fccc5adaf
README.md
README.md
Peak calling tool for CLIP-seq data ## License [ICSL](https://en.wikipedia.org/wiki/ISC_license) (Internet Systems Consortium license ~ simplified BSD license) - see LICENSE ## Development * The git braching model is very close to the one proposed [here](http://nvie.com/posts/a-successful-git-branching-model/). ...
Peak calling tool for CLIP-seq data ## Installation $ make readme_rst $ make package $ pip3 install --user dist/PEAKachu-0.1.dev0.tar.gz ## License [ICSL](https://en.wikipedia.org/wiki/ISC_license) (Internet Systems Consortium license ~ simplified BSD license) - see LICENSE ## Development * The git braching model...
Add description of current installation
Add description of current installation
Markdown
isc
tbischler/PEAKachu
markdown
## Code Before: Peak calling tool for CLIP-seq data ## License [ICSL](https://en.wikipedia.org/wiki/ISC_license) (Internet Systems Consortium license ~ simplified BSD license) - see LICENSE ## Development * The git braching model is very close to the one proposed [here](http://nvie.com/posts/a-successful-git-bran...
f36b74f606249367ed007a9d91c92f4b1b5c0ecb
action/createschema.go
action/createschema.go
package action import ( "encoding/gob" "fmt" ) type CreateSchema struct { SchemaName string } // Register type for gob func init() { gob.Register(&CreateSchema{}) } func (a *CreateSchema) Execute(c *Context) error { _, err := c.Tx.Exec( fmt.Sprintf("CREATE SCHEMA IF NOT EXISTS \"%s\";", a.SchemaName), ) r...
package action import ( "encoding/gob" "fmt" ) type CreateSchema struct { SchemaName string } // Register type for gob func init() { gob.Register(&CreateSchema{}) } func (a *CreateSchema) Execute(c *Context) error { _, err := c.Tx.Exec( fmt.Sprintf(` DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_name...
Fix create schema action on postgres 9.2.
Fix create schema action on postgres 9.2.
Go
mit
pagarme/teleport,pagarme/teleport
go
## Code Before: package action import ( "encoding/gob" "fmt" ) type CreateSchema struct { SchemaName string } // Register type for gob func init() { gob.Register(&CreateSchema{}) } func (a *CreateSchema) Execute(c *Context) error { _, err := c.Tx.Exec( fmt.Sprintf("CREATE SCHEMA IF NOT EXISTS \"%s\";", a.Sch...
78b4ab0eaf829b0318496f8f14777ae84c0263fc
src/run-header-components.js
src/run-header-components.js
import { select } from 'd3-selection' export function createRunHeaderComponents() { function runHeaderComponents(s) { s.selectAll('.zambezi-grid-headers .zambezi-grid-header') .each(runComponents) } return runHeaderComponents function runComponents(d, i) { const components = d.headerComponen...
import { select } from 'd3-selection' import { selectionChanged, rebind } from '@zambezi/d3-utils' export function createRunHeaderComponents() { const changed = selectionChanged().key(columnChangeKey) const api = rebind().from(changed, 'key') function runHeaderComponents(s) { s.selectAll('.zambezi-grid-hea...
Implement optionally running header components only on column change
Implement optionally running header components only on column change
JavaScript
mit
zambezi/grid-components
javascript
## Code Before: import { select } from 'd3-selection' export function createRunHeaderComponents() { function runHeaderComponents(s) { s.selectAll('.zambezi-grid-headers .zambezi-grid-header') .each(runComponents) } return runHeaderComponents function runComponents(d, i) { const components = ...
8a61d1b06b0cc4b0a2cbc4e2a81f1a28c97479af
sitting.php
sitting.php
<?php include 'header.php'; require_once 'dbconfig.php'; require_once 'database.php'; $db = new Database(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE); $db->openConnection(); if(!$db->isConnected()) { header("Location: cannotConnect.php"); exit(); } $sittings = $db->getSitting(); $db->closeC...
<?php require_once 'header.php'; $dbHandler = new DatabaseHandler(); $restaurant = $dbHandler->getRestaurant('Nilles nation'); $sitting = $dbHandler->getSitting($_GET['sittDate']); $parties = $dbHandler->getParties($_GET['sittDate']); $dbHandler->disconnect(); ?> <div class="content"> <div class="title"> ...
Refactor to use dataconverted results
Refactor to use dataconverted results
PHP
mit
cNille/lundasittning,cNille/lundasittning
php
## Code Before: <?php include 'header.php'; require_once 'dbconfig.php'; require_once 'database.php'; $db = new Database(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_DATABASE); $db->openConnection(); if(!$db->isConnected()) { header("Location: cannotConnect.php"); exit(); } $sittings = $db->getSitting(); ...
e937804e7ed3952d044cff127e3460e2be660c12
demo/case1/router2-content.js
demo/case1/router2-content.js
;(_ => { 'use strict'; class Router2Content extends HTMLElement { createdCallback() { this.hidden = true; // by default } } window.addEventListener('hashchange', (e) => { var containers = document.querySelectorAll('router2-content'); for (var i = 0; i < containers.length; i++) { co...
;(_ => { 'use strict'; function matchHash() { var containers = document.querySelectorAll('router2-content'); for (var i = 0; i < containers.length; i++) { containers[i].hidden = true; } var hash = window.location.hash.slice(1); // nothing to unhide... if (!hash) { return; }...
Add more complexity to the simple example
Add more complexity to the simple example
JavaScript
isc
m3co/router3,m3co/router3
javascript
## Code Before: ;(_ => { 'use strict'; class Router2Content extends HTMLElement { createdCallback() { this.hidden = true; // by default } } window.addEventListener('hashchange', (e) => { var containers = document.querySelectorAll('router2-content'); for (var i = 0; i < containers.length;...
92f18cc15c31152aa81d0f012ff20799f58b3c31
Cargo.toml
Cargo.toml
[package] name = "soa_derive" version = "0.5.0" authors = ["Guillaume Fraux <guillaume.fraux@chimie-paristech.fr>"] license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/lumol-org/soa-derive" homepage = "https://github.com/lumol-org/soa-derive" documentation = "https://docs.rs/soa_derive/" de...
[package] name = "soa_derive" version = "0.5.0" authors = ["Guillaume Fraux <guillaume.fraux@chimie-paristech.fr>"] license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/lumol-org/soa-derive" homepage = "https://github.com/lumol-org/soa-derive" documentation = "https://docs.rs/soa_derive/" de...
Set a version for soa-derive-internal
Set a version for soa-derive-internal
TOML
apache-2.0
lumol-org/soa-derive,lumol-org/soa-derive
toml
## Code Before: [package] name = "soa_derive" version = "0.5.0" authors = ["Guillaume Fraux <guillaume.fraux@chimie-paristech.fr>"] license = "MIT/Apache-2.0" readme = "README.md" repository = "https://github.com/lumol-org/soa-derive" homepage = "https://github.com/lumol-org/soa-derive" documentation = "https://docs.rs...
2625af663ac4eabc953c712f39fac1e6c5e6896c
lib/runoff/commands/command.rb
lib/runoff/commands/command.rb
module Runoff # Commands that can be executed by the application. module Commands # The base class for every runoff command. class Command def self.get_file_writer_components(args, options) if args.empty? && !options.from raise ArgumentError.new 'Error: You must specify the Skype use...
module Runoff # Commands that can be executed by the application. module Commands # The base class for every runoff command. class Command # Public: Provides a FileWriter object and the destination path for the command. # # args - an array of command line arguments # options - an obj...
Use instead of and add a documentation comment
Use instead of and add a documentation comment
Ruby
mit
aigarsdz/runoff
ruby
## Code Before: module Runoff # Commands that can be executed by the application. module Commands # The base class for every runoff command. class Command def self.get_file_writer_components(args, options) if args.empty? && !options.from raise ArgumentError.new 'Error: You must speci...
c1343c392a45d2069b893841f82bf426462bef55
threadmanager.py
threadmanager.py
import logsupport from logsupport import ConsoleWarning HelperThreads = {} class ThreadItem(object): def __init__(self, name, start, restart): self.name = name self.StartThread = start self.RestartThread = restart self.Thread = None def CheckThreads(): for T in HelperThreads.values(): if not T.Thread.is_...
import logsupport from logsupport import ConsoleWarning HelperThreads = {} class ThreadItem(object): def __init__(self, name, start, restart): self.name = name self.StartThread = start self.RestartThread = restart self.Thread = None def StopThread(self): self.Thread.stop() def CheckThreads(): for T in ...
Add a stop thread - may be needed for loss of heartbeat case
Add a stop thread - may be needed for loss of heartbeat case
Python
apache-2.0
kevinkahn/softconsole,kevinkahn/softconsole
python
## Code Before: import logsupport from logsupport import ConsoleWarning HelperThreads = {} class ThreadItem(object): def __init__(self, name, start, restart): self.name = name self.StartThread = start self.RestartThread = restart self.Thread = None def CheckThreads(): for T in HelperThreads.values(): if ...
47950cf16a857cefcf0dde86e9696640fba5e7fc
src/coffee/game/enums.coffee
src/coffee/game/enums.coffee
angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student: 'Ms. Denotto'
angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student: 'Ms. Denotto'...
Add Roxy Lead to Enums
Add Roxy Lead to Enums
CoffeeScript
unlicense
arashikou/exper3-2015
coffeescript
## Code Before: angular.module 'gameDefinition.enums', [] .factory 'enums', () -> origins: illusionist: 'an illusionist' hallucinist: 'a hallucinist' hypnotist: 'a hypnotist' leads: none: undefined jackie: 'Jackie' employer: 'KB&S' cop: 'Officer Dentley' student...
974160117e2f36b12b52df13d4a35726a4ff0907
boxsdk/object/api_json_object.py
boxsdk/object/api_json_object.py
from __future__ import unicode_literals, absolute_import from collections import Mapping from abc import ABCMeta from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta from ..util.compat import with_metaclass class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta): """ Avoid conflicting...
from __future__ import unicode_literals, absolute_import from collections import Mapping from abc import ABCMeta from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta from ..util.compat import with_metaclass class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta): """ Avoid conflicting...
Remove redundant __iter__ from APIJsonObject base class
Remove redundant __iter__ from APIJsonObject base class
Python
apache-2.0
box/box-python-sdk
python
## Code Before: from __future__ import unicode_literals, absolute_import from collections import Mapping from abc import ABCMeta from .base_api_json_object import BaseAPIJSONObject, BaseAPIJSONObjectMeta from ..util.compat import with_metaclass class APIJSONObjectMeta(BaseAPIJSONObjectMeta, ABCMeta): """ A...
b7810ae58d85ecf2d3988815f77749e5c344fbef
lib/jumubase_web/views/error_view.ex
lib/jumubase_web/views/error_view.ex
defmodule JumubaseWeb.ErrorView do use JumubaseWeb, :view def render("404.html", assigns) do render_error_layout( assigns, dgettext("errors", "The page was not found."), dgettext("errors", "Maybe try one of the links above?") ) end def render("500.html", assigns) do render_error_...
defmodule JumubaseWeb.ErrorView do use JumubaseWeb, :view alias JumubaseWeb.LayoutView def render("404.html", assigns) do render_error_layout( assigns, dgettext("errors", "The page was not found."), dgettext("errors", "Maybe try one of the links above?") ) end def render("500.html"...
Use root layout to render errors
Use root layout to render errors This is a bit risky as it can lead to recursion (if the layout itself contains errors), but looks a lot better to the user when hitting a 404.
Elixir
mit
richeterre/jumubase-phoenix,richeterre/jumubase-phoenix
elixir
## Code Before: defmodule JumubaseWeb.ErrorView do use JumubaseWeb, :view def render("404.html", assigns) do render_error_layout( assigns, dgettext("errors", "The page was not found."), dgettext("errors", "Maybe try one of the links above?") ) end def render("500.html", assigns) do ...
5a920d9c940132f4a69a993aceccae560be00483
requirements.txt
requirements.txt
Flask==1.1.2 Flask-Login==0.5.0 Flask-Webpack==0.1.0 mediacloud==3.11.2 pymongo==3.10.1 requests==2.23.0 raven[flask]==6.10.0 redis==2.10.6 networkx==1.9 Flask-Mail==0.9.1 mediacloud-cliff==2.6.1 gunicorn==20.0.4 dogpile.cache==0.7.1 # upgrading dogpile.cache caused problems - leave it on this version python-dateutil=...
Flask==1.1.2 Flask-Login==0.5.0 Flask-Webpack==0.1.0 mediacloud==3.11.2 pymongo==3.10.1 requests==2.23.0 raven[flask]==6.10.0 redis==2.10.6 networkx==1.9 Flask-Mail==0.9.1 mediacloud-cliff==2.6.1 gunicorn==20.0.4 dogpile.cache==0.7.1 # upgrading dogpile.cache caused problems - leave it on this version python-dateutil=...
Add back ing event dependency
Add back ing event dependency
Text
apache-2.0
mitmedialab/MediaCloud-Web-Tools,mitmedialab/MediaCloud-Web-Tools,mitmedialab/MediaCloud-Web-Tools,mitmedialab/MediaCloud-Web-Tools
text
## Code Before: Flask==1.1.2 Flask-Login==0.5.0 Flask-Webpack==0.1.0 mediacloud==3.11.2 pymongo==3.10.1 requests==2.23.0 raven[flask]==6.10.0 redis==2.10.6 networkx==1.9 Flask-Mail==0.9.1 mediacloud-cliff==2.6.1 gunicorn==20.0.4 dogpile.cache==0.7.1 # upgrading dogpile.cache caused problems - leave it on this version ...
4218488ed9b55d0bb16c6614f89645fb47d2d120
app/views/gobierto_admin/shared/_save_widget.html.erb
app/views/gobierto_admin/shared/_save_widget.html.erb
<div class="pure-u-1 pure-u-md-1-4 "> <div class="widget_save stick_in_parent"> <% if levels.any? %> <div class="form_item person-visibility-level-radio-buttons"> <div class="options compact"> <%= f.collection_radio_buttons(:visibility_level, levels, :first, :first) do |b| %> ...
<div class="pure-u-1 pure-u-md-1-4 "> <div class="stick_in_parent"> <div class="widget_save"> <% if levels.any? %> <div class="form_item person-visibility-level-radio-buttons"> <div class="options compact"> <%= f.collection_radio_buttons(:visibility_level, levels, :first, :...
Allow save widget to include yielded content
Allow save widget to include yielded content
HTML+ERB
agpl-3.0
PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto,PopulateTools/gobierto,PopulateTools/gobierto-dev,PopulateTools/gobierto-dev
html+erb
## Code Before: <div class="pure-u-1 pure-u-md-1-4 "> <div class="widget_save stick_in_parent"> <% if levels.any? %> <div class="form_item person-visibility-level-radio-buttons"> <div class="options compact"> <%= f.collection_radio_buttons(:visibility_level, levels, :first, :first) do |...
7b5d45ddca83ae2e3dd97f5da270c885496a75a4
server/startup/migrations/v096.js
server/startup/migrations/v096.js
RocketChat.Migrations.add({ version: 96, up() { const query = { $or: [{ 's3.path': { $exists: true } }, { 'googleCloudStorage.path': { $exists: true } }] }; RocketChat.models.Uploads.find(query).forEach((record) => { if (record.s3) { RocketChat.models.Uploads.model.dir...
RocketChat.Migrations.add({ version: 96, up() { const query = { $or: [{ 's3.path': { $exists: true } }, { 'googleCloudStorage.path': { $exists: true } }] }; RocketChat.models.Uploads.find(query).forEach((record) => { if (record.s3) { RocketChat.models.Uploads.model.dir...
Migrate old FS and GridFS store names
Uploads: Migrate old FS and GridFS store names
JavaScript
mit
inoio/Rocket.Chat,pitamar/Rocket.Chat,cnash/Rocket.Chat,nishimaki10/Rocket.Chat,Kiran-Rao/Rocket.Chat,flaviogrossi/Rocket.Chat,flaviogrossi/Rocket.Chat,trt15-ssci-organization/Rocket.Chat,Kiran-Rao/Rocket.Chat,cnash/Rocket.Chat,pkgodara/Rocket.Chat,fatihwk/Rocket.Chat,mrinaldhar/Rocket.Chat,VoiSmart/Rocket.Chat,mrinald...
javascript
## Code Before: RocketChat.Migrations.add({ version: 96, up() { const query = { $or: [{ 's3.path': { $exists: true } }, { 'googleCloudStorage.path': { $exists: true } }] }; RocketChat.models.Uploads.find(query).forEach((record) => { if (record.s3) { RocketChat.models.U...
b9fc486eb24ff551e61c460a62dbc7e5cc162856
lib/nyaplot/charts/base.rb
lib/nyaplot/charts/base.rb
module Nyaplot module Charts class ChartBase class << self def allow(x, y) @@allow_x = x @@allow_y = y end def need(*args) @@needs = args end end attr_reader :glyphs, :deps def initialize(**opts) @glyphs = [] @...
module Nyaplot module Charts class ChartBase class << self def allow(x, y) @@allow_x = x @@allow_y = y end def need(*args) @@needs = args end end attr_reader :glyphs, :deps, :xdomain, :ydomain def initialize(**opts) @g...
Add reader for xdomain and ydomain of Charts
Add reader for xdomain and ydomain of Charts
Ruby
mit
domitry/nyaplot,domitry/nyaplot
ruby
## Code Before: module Nyaplot module Charts class ChartBase class << self def allow(x, y) @@allow_x = x @@allow_y = y end def need(*args) @@needs = args end end attr_reader :glyphs, :deps def initialize(**opts) @glyph...
991c0707a2aa9913424361787be8d9c60260de33
README.md
README.md
A Select2 v4 [Theme](https://select2.github.io/examples.html#themes) for Bootstrap 3 Demonstrations available at http://fk.github.io/select2-bootstrap-theme/ Tested with Bootstrap v3.3.4 and Select2 v4.0.0 in latest Chrome. ##### Installation The Select2 Bootstrap Theme only works with Select2 v4.x. Applying the th...
A Select2 v4 [Theme](https://select2.github.io/examples.html#themes) for Bootstrap 3 Demonstrations available at http://fk.github.io/select2-bootstrap-theme/ Tested with Bootstrap v3.3.4 and Select2 v4.0.0 in latest Chrome. ##### Installation The Select2 Bootstrap Theme only works with Select2 v4.x. Applying the th...
Remove `$( document ).ready()` from the installation example.
Remove `$( document ).ready()` from the installation example.
Markdown
mit
ivelum/select2-bootstrap-theme,inway/select2-bootstrap-theme,blackbricksoftware/select2-bootstrap-theme,borodulin/select2-bootstrap-theme,kartik-v/select2-bootstrap-theme,select2/select2-bootstrap-theme
markdown
## Code Before: A Select2 v4 [Theme](https://select2.github.io/examples.html#themes) for Bootstrap 3 Demonstrations available at http://fk.github.io/select2-bootstrap-theme/ Tested with Bootstrap v3.3.4 and Select2 v4.0.0 in latest Chrome. ##### Installation The Select2 Bootstrap Theme only works with Select2 v4.x....
babdd57bb9452032c0299d117c975dc246366eae
src/main/java/org/purescript/psi/expression/ExpressionConstructorReference.kt
src/main/java/org/purescript/psi/expression/ExpressionConstructorReference.kt
package org.purescript.psi.expression import com.intellij.codeInspection.LocalQuickFix import com.intellij.codeInspection.LocalQuickFixProvider import com.intellij.psi.PsiNamedElement import com.intellij.psi.PsiReferenceBase import com.intellij.psi.SmartPointerManager class ExpressionConstructorReference(expressionCo...
package org.purescript.psi.expression import com.intellij.codeInspection.LocalQuickFix import com.intellij.codeInspection.LocalQuickFixProvider import com.intellij.psi.PsiNamedElement import com.intellij.psi.PsiReferenceBase import com.intellij.psi.SmartPointerManager class ExpressionConstructorReference(expressionCo...
Implement navigation for qualified expression constructors
Implement navigation for qualified expression constructors
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
kotlin
## Code Before: package org.purescript.psi.expression import com.intellij.codeInspection.LocalQuickFix import com.intellij.codeInspection.LocalQuickFixProvider import com.intellij.psi.PsiNamedElement import com.intellij.psi.PsiReferenceBase import com.intellij.psi.SmartPointerManager class ExpressionConstructorRefere...
a35295bd484decde161a45e93d75a5115938af8b
breadwallet/src/Views/TransactionCells/MaskedShadow.swift
breadwallet/src/Views/TransactionCells/MaskedShadow.swift
// // ShadowView.swift // breadwallet // // Created by Adrian Corscadden on 2016-11-17. // Copyright © 2016 breadwallet LLC. All rights reserved. // import UIKit class MaskedShadow: UIView { var style: TransactionCellStyle = .middle { didSet { setNeedsLayout() } } private ...
// // ShadowView.swift // breadwallet // // Created by Adrian Corscadden on 2016-11-17. // Copyright © 2016 breadwallet LLC. All rights reserved. // import UIKit class MaskedShadow: UIView { var style: TransactionCellStyle = .middle { didSet { setNeedsLayout() } } private ...
Make transaction cells work with single transaction
Make transaction cells work with single transaction
Swift
mit
breadwallet/breadwallet-ios,breadwallet/breadwallet-ios,breadwallet/breadwallet-ios,breadwallet/breadwallet-ios,breadwallet/breadwallet-ios
swift
## Code Before: // // ShadowView.swift // breadwallet // // Created by Adrian Corscadden on 2016-11-17. // Copyright © 2016 breadwallet LLC. All rights reserved. // import UIKit class MaskedShadow: UIView { var style: TransactionCellStyle = .middle { didSet { setNeedsLayout() } ...
2bea0c8d746076bb7e6a86d229646d3dd48ea282
README.md
README.md
A daemon that consumes assignments from the message queue, builds and runs them and then sends results back. ## How to run it - Install ZeroMQ, version at least 4.0. Package name should be `libzmq3-dev` - Install dependencies with `git submodule update --init` - Install CMake, GNU Make, G++ > 5 - Install isolate - ...
[![Build Status](https://travis-ci.org/ReCodEx/BasicWorker.svg?branch=master)](https://travis-ci.org/ReCodEx/BasicWorker) A daemon that consumes assignments from the message queue, builds and runs them and then sends results back. ## How to run it - Install ZeroMQ, version at least 4.0. Package name should be `libz...
Add a fancy build status indicator
Add a fancy build status indicator
Markdown
mit
ReCodEx/worker,ReCodEx/worker,ReCodEx/worker
markdown
## Code Before: A daemon that consumes assignments from the message queue, builds and runs them and then sends results back. ## How to run it - Install ZeroMQ, version at least 4.0. Package name should be `libzmq3-dev` - Install dependencies with `git submodule update --init` - Install CMake, GNU Make, G++ > 5 - In...
2e79c42b8d003df020076511f0b978897245d1ea
packages/no/non-empty-zipper.yaml
packages/no/non-empty-zipper.yaml
homepage: '' changelog-type: markdown hash: 7cb42774a3712b82037e1705b8414d1d2684ce59b0454379ada0c3a4edac9009 test-bench-deps: checkers: -any base: -any QuickCheck: -any non-empty-zipper: -any maintainer: fresheyeball@gmail.com synopsis: The Zipper for NonEmpty changelog: ! '# Revision history for NonEmptyZipper...
homepage: '' changelog-type: markdown hash: 607814b4dc4149540c3dbc50c38b04574e9cf4c5650b5983936725d3faf7d8a1 test-bench-deps: checkers: -any base: -any QuickCheck: -any non-empty-zipper: -any maintainer: fresheyeball@gmail.com synopsis: The Zipper for NonEmpty changelog: ! '# Revision history for NonEmptyZipper...
Update from Hackage at 2017-01-24T06:13:47Z
Update from Hackage at 2017-01-24T06:13:47Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: '' changelog-type: markdown hash: 7cb42774a3712b82037e1705b8414d1d2684ce59b0454379ada0c3a4edac9009 test-bench-deps: checkers: -any base: -any QuickCheck: -any non-empty-zipper: -any maintainer: fresheyeball@gmail.com synopsis: The Zipper for NonEmpty changelog: ! '# Revision history fo...
65954ba3b3c69863bd413c1d727c18d38b973860
src/test/java/specs/MutableWrapperSpec.java
src/test/java/specs/MutableWrapperSpec.java
package specs; import static com.greghaskins.spectrum.Spectrum.describe; import static com.greghaskins.spectrum.Spectrum.it; import static com.greghaskins.spectrum.Spectrum.value; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue;...
package specs; import static com.greghaskins.spectrum.Spectrum.describe; import static com.greghaskins.spectrum.Spectrum.it; import static com.greghaskins.spectrum.Spectrum.value; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.nullValue;...
Make sure tests cover deprecated value(Class<T>) method
Make sure tests cover deprecated value(Class<T>) method
Java
mit
greghaskins/spectrum
java
## Code Before: package specs; import static com.greghaskins.spectrum.Spectrum.describe; import static com.greghaskins.spectrum.Spectrum.it; import static com.greghaskins.spectrum.Spectrum.value; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.hamcrest.Mat...
fd0c64a1ec00338417f5309d095781d59d10d293
README.md
README.md
Programme PHP pour lire le télérelevé # Install Clone the project or download the tarball. Open terminal and execute : ``` $ php composer.phar install --no-dev -o ``` If you want use InfluxDB storage, exetute this command ``` $ php composer.phar require influxdb/influxdb-php:^1.4 ``` # Usage In the terminal : ...
Programme PHP pour lire le télérelevé # Install Clone the project or download the tarball. Open terminal and execute : ```bash $ php composer.phar install --no-dev -o ``` If you want use InfluxDB storage, exetute this command ```bash $ php composer.phar require influxdb/influxdb-php:^1.4 ``` # Configuration Mak...
Add config definition and config part
Add config definition and config part
Markdown
mit
Mactronique/edf-telereleve,Mactronique/edf-telereleve
markdown
## Code Before: Programme PHP pour lire le télérelevé # Install Clone the project or download the tarball. Open terminal and execute : ``` $ php composer.phar install --no-dev -o ``` If you want use InfluxDB storage, exetute this command ``` $ php composer.phar require influxdb/influxdb-php:^1.4 ``` # Usage In ...
29ab95ebcf56ca146cef2351fded14a0896f4cb7
app/views/home/facebook_login.html.haml
app/views/home/facebook_login.html.haml
.container.large-6 .center .row.large-8 %h2 Please login to Facebook to start searching... #status %br %fb:login-button{ onlogin: 'FacebookLogin.checkLoginState();', data: { 'max-rows' => '1', size: 'medium', 'show-faces' => 'true' } } - content_for :javascript do = java...
.container.large-6 .center .row.large-8 %h2 Please login to Facebook to start searching for new events... .row.large-4 %fb:login-button{ onlogin: 'FacebookLogin.checkLoginState();', data: { 'max-rows' => '1', size: 'medium', 'show-faces' => 'true' } } %br .row.large...
Update text in facebook login layout
Update text in facebook login layout
Haml
mit
davidochoa/happenin
haml
## Code Before: .container.large-6 .center .row.large-8 %h2 Please login to Facebook to start searching... #status %br %fb:login-button{ onlogin: 'FacebookLogin.checkLoginState();', data: { 'max-rows' => '1', size: 'medium', 'show-faces' => 'true' } } - content_for :javasc...
4412942712a52664c1561a3d82b6caa93b548de2
cloudbuild.yaml
cloudbuild.yaml
options: substitution_option: ALLOW_LOOSE steps: - name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964' entrypoint: bash env: - DOCKER_CLI_EXPERIMENTAL=enabled - TAG=$_GIT_TAG - BASE_REF=$_PULL_BASE_REF - REGISTRY=gcr.io/k8s-staging-ingress-nginx - HOME=/root a...
options: substitution_option: ALLOW_LOOSE steps: - name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964' entrypoint: bash env: - DOCKER_CLI_EXPERIMENTAL=enabled - TAG=$_GIT_TAG - BASE_REF=$_PULL_BASE_REF - REGISTRY=gcr.io/k8s-staging-ingress-nginx - HOME=/root ...
Set missing USER in cloud-build
Set missing USER in cloud-build
YAML
apache-2.0
canhnt/ingress,caicloud/ingress,aledbf/ingress-nginx,caicloud/ingress,aledbf/ingress-nginx,canhnt/ingress,caicloud/ingress,caicloud/ingress,kubernetes/ingress-nginx,canhnt/ingress,canhnt/ingress,kubernetes/ingress-nginx,kubernetes/ingress-nginx,aledbf/ingress-nginx,kubernetes/ingress-nginx,kubernetes/ingress-nginx,aled...
yaml
## Code Before: options: substitution_option: ALLOW_LOOSE steps: - name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964' entrypoint: bash env: - DOCKER_CLI_EXPERIMENTAL=enabled - TAG=$_GIT_TAG - BASE_REF=$_PULL_BASE_REF - REGISTRY=gcr.io/k8s-staging-ingress-nginx - ...
774ba9672ac0ba3f403768920d36d0657021b8a9
Magento_Checkout/layout/checkout_cart_index.xml
Magento_Checkout/layout/checkout_cart_index.xml
<?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <updat...
<?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <updat...
Remove with-items as invalid reference
Remove with-items as invalid reference
XML
mit
webgriffe/theme-bootstrap,webgriffe/theme-bootstrap,webgriffe/theme-bootstrap
xml
## Code Before: <?xml version="1.0"?> <!-- /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration....
86aedc2fcb50a06ca5890917df1d83c3e27264f7
requirements/build_windows.txt
requirements/build_windows.txt
-r common.txt flake8==2.5.4 isort==4.2.2 marshmallow==2.6.0 pytest==2.9.0 wheel==0.29.0
-r common.txt flake8==2.5.4 isort==4.2.2 marshmallow==2.6.0 pytest==2.9.0 wheel==0.29.0 pytest-xdist==1.15.0
Add xdist requirements to windows
Add xdist requirements to windows
Text
mit
MuhammadAlkarouri/hug,timothycrosley/hug,timothycrosley/hug,MuhammadAlkarouri/hug,timothycrosley/hug,MuhammadAlkarouri/hug
text
## Code Before: -r common.txt flake8==2.5.4 isort==4.2.2 marshmallow==2.6.0 pytest==2.9.0 wheel==0.29.0 ## Instruction: Add xdist requirements to windows ## Code After: -r common.txt flake8==2.5.4 isort==4.2.2 marshmallow==2.6.0 pytest==2.9.0 wheel==0.29.0 pytest-xdist==1.15.0
c3e6c4dfa125198fddd50e84704026d73995846b
src/isaac-generator.ts
src/isaac-generator.ts
import { SeedProvider } from './seed-provider'; export class IsaacGenerator { private _count: number; private _memory: any; constructor(seed: Array<number>) { this._count = 0; this._memory = SeedProvider.getMemory(seed); } public getValue(): number { if (this._count <= 0) { this._randomi...
import { SeedProvider } from './seed-provider'; export class IsaacGenerator { private _count: number; private _accumulatorShifts: Array<(x: number) => number>; private _memory: any; constructor(seed: Array<number>) { this._count = 0; this._accumulatorShifts = [ (x: number) => x << 13, (x:...
Store required accumulator shifts (in order)
Store required accumulator shifts (in order)
TypeScript
mit
Jameskmonger/isaac-crypto
typescript
## Code Before: import { SeedProvider } from './seed-provider'; export class IsaacGenerator { private _count: number; private _memory: any; constructor(seed: Array<number>) { this._count = 0; this._memory = SeedProvider.getMemory(seed); } public getValue(): number { if (this._count <= 0) { ...
f86bc40fbc753e0e9e27405d697eaee4d768c7e1
README.md
README.md
[![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/issue)](http://issuestats.com/github/fsprojects/FSharpx.Collections) [![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/pr)](http://issuestats.com/github/fsprojects/FSharpx.Collections) # FSharpx.Collection...
[![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/issue)](http://issuestats.com/github/fsprojects/FSharpx.Collections) [![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/pr)](http://issuestats.com/github/fsprojects/FSharpx.Collections) # FSharpx.Collection...
Add build status badges for travis and appveyor
Add build status badges for travis and appveyor
Markdown
apache-2.0
fsprojects/FSharpx.Collections,fsprojects/FSharpx.Collections,yever/FSharpx.Collections
markdown
## Code Before: [![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/issue)](http://issuestats.com/github/fsprojects/FSharpx.Collections) [![Issue Stats](http://issuestats.com/github/fsprojects/FSharpx.Collections/badge/pr)](http://issuestats.com/github/fsprojects/FSharpx.Collections) # FS...
dad3aef53d4dc4a036c3acea51590609056bb80f
src/main/web/templates/handlebars/list/t9-7.handlebars
src/main/web/templates/handlebars/list/t9-7.handlebars
{{!-- {{#partial "block-title"}} {{#last breadcrumb}}{{description.title}}{{/last}} methodology {{/partial}} --}} {{#partial "block-results-text"}} <div class="col col--md-28 col--lg-38"> {{> list/partials/list-results-text-number result resultsLabel="methodology"}} </div> {{/partial}} {{#partial "block-filter...
{{!-- {{#partial "block-title"}} {{#last breadcrumb}}{{description.title}}{{/last}} methodology {{/partial}} --}} {{#partial "block-results-text"}} <div class="col col--md-28 col--lg-38"> {{> list/partials/list-results-text-number result resultsLabel="methodology"}} </div> {{/partial}} {{#partial "block-filter...
Remove methodology type partial from filters block
Remove methodology type partial from filters block
Handlebars
mit
ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage,ONSdigital/babbage
handlebars
## Code Before: {{!-- {{#partial "block-title"}} {{#last breadcrumb}}{{description.title}}{{/last}} methodology {{/partial}} --}} {{#partial "block-results-text"}} <div class="col col--md-28 col--lg-38"> {{> list/partials/list-results-text-number result resultsLabel="methodology"}} </div> {{/partial}} {{#parti...
c987ed375da13f53928157f14528bed0c148eeac
tasks.py
tasks.py
import asyncio import threading class Tasks: loop = asyncio.new_event_loop() @classmethod def _run(cls): try: cls.loop.run_forever() finally: cls.loop.close() @classmethod def do(cls, func, *args, **kwargs): cls.loop.call_soon(lambda: func(*args, *...
import asyncio import threading class Tasks: loop = asyncio.new_event_loop() @classmethod def _run(cls): asyncio.set_event_loop(cls.loop) try: cls.loop.run_forever() finally: cls.loop.close() @classmethod def do(cls, func, *args, **kwargs): ...
Set implicit loop for Python <3.6
Set implicit loop for Python <3.6
Python
apache-2.0
Charcoal-SE/SmokeDetector,Charcoal-SE/SmokeDetector
python
## Code Before: import asyncio import threading class Tasks: loop = asyncio.new_event_loop() @classmethod def _run(cls): try: cls.loop.run_forever() finally: cls.loop.close() @classmethod def do(cls, func, *args, **kwargs): cls.loop.call_soon(lambd...
2a0df796f230824d5564f2aedaeac1da5172152c
documentation/source/users/rmg/installation/index.rst
documentation/source/users/rmg/installation/index.rst
.. _installation: ************ Installation ************ .. NOTE:: RMG has been tested on the Python 2.5, 2.6, and 2.7 releases; dependency issues render it incompatible with Python 3.x releases Briefly, RMG depends on the following packages: * **NumPy:** fast matrix operations * **SciPy:** fast mathematical ...
.. _installation: ************ Installation ************ .. NOTE:: RMG has been tested on the Python 2.5, 2.6, and 2.7 releases; dependency issues render it incompatible with Python 3.x releases Briefly, RMG depends on the following packages: * **NumPy:** fast matrix operations * **SciPy:** fast mathematical t...
Correct line endings in installation instructions.
Correct line endings in installation instructions. Accidentally ended up with some DOS line endings in here somehow.
reStructuredText
mit
chatelak/RMG-Py,comocheng/RMG-Py,KEHANG/RMG-Py,comocheng/RMG-Py,chatelak/RMG-Py,nickvandewiele/RMG-Py,pierrelb/RMG-Py,enochd/RMG-Py,KEHANG/RMG-Py,nyee/RMG-Py,nyee/RMG-Py,faribas/RMG-Py,nickvandewiele/RMG-Py,pierrelb/RMG-Py,enochd/RMG-Py,faribas/RMG-Py
restructuredtext
## Code Before: .. _installation: ************ Installation ************ .. NOTE:: RMG has been tested on the Python 2.5, 2.6, and 2.7 releases; dependency issues render it incompatible with Python 3.x releases Briefly, RMG depends on the following packages: * **NumPy:** fast matrix operations * **SciPy:** fas...
3b874cb26b038d3d477afe90e810ecfff0f7b2c6
src/App.jsx
src/App.jsx
import React, { Component } from "react"; import GoogleAnalytics from "react-ga"; import { BrowserRouter, Route } from "react-router-dom"; import ListPage from "./ListPage"; import RunPage from "./RunPage"; import config from "./config"; import "./App.css"; class App extends Component { constructor(props) { supe...
import React, { Component } from "react"; import GoogleAnalytics from "react-ga"; import { BrowserRouter, Route } from "react-router-dom"; import ListPage from "./ListPage"; import RunPage from "./RunPage"; import config from "./config"; import "./App.css"; class App extends Component { constructor(props) { supe...
Add route for drag & drop ROMs
Add route for drag & drop ROMs
JSX
apache-2.0
bfirsh/jsnes-web,bfirsh/jsnes-web
jsx
## Code Before: import React, { Component } from "react"; import GoogleAnalytics from "react-ga"; import { BrowserRouter, Route } from "react-router-dom"; import ListPage from "./ListPage"; import RunPage from "./RunPage"; import config from "./config"; import "./App.css"; class App extends Component { constructor(p...
90247df35d3e6c006a45a980c7284eebb95b82cf
.github/workflows/release-demo-functions.yaml
.github/workflows/release-demo-functions.yaml
name: release-demo-functions on: push: tags: - release-demo-functions-* jobs: e2e-ci: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x] steps: - uses: actions/checkout@v1 - name: Set up gcloud uses: GoogleCloudPlatform/github-actions/setup-gcloud@maste...
name: release-demo-functions on: push: tags: - release-demo-functions-* jobs: e2e-ci: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x] steps: - uses: actions/checkout@v1 - name: Set up gcloud uses: GoogleCloudPlatform/github-actions/setup-gcloud@maste...
Use gcloud to configure docker during release
Use gcloud to configure docker during release
YAML
apache-2.0
GoogleContainerTools/kpt-functions-sdk,GoogleContainerTools/kpt-functions-sdk,GoogleContainerTools/kpt-functions-sdk,GoogleContainerTools/kpt-functions-sdk
yaml
## Code Before: name: release-demo-functions on: push: tags: - release-demo-functions-* jobs: e2e-ci: runs-on: ubuntu-latest strategy: matrix: node-version: [12.x] steps: - uses: actions/checkout@v1 - name: Set up gcloud uses: GoogleCloudPlatform/github-actions/se...
e9046cd448f57d035c9891dd40746b993cb0ec67
app/scripts/modules/payments/components/payment-create.jsx
app/scripts/modules/payments/components/payment-create.jsx
'use strict'; var React = require('react'); var PaymentHistory = React.createClass({ componentDidMount: function() { this.props.model.on('change', function() { // ??? }); }, componentWillUnmout: function() { this.props.model.off('change'); }, render: function() { return (); } }); ...
'use strict'; var React = require('react'); var Navigation = require('react-router').Navigation; var Input = require('react-bootstrap').Input; var Button = require('react-bootstrap').Button; var paymentActions = require('../actions'); var PaymentHistory = React.createClass({ mixins: [Navigation], formatInput: fu...
Create form for sending payments
[TASK] Create form for sending payments
JSX
isc
dabibbit/dream-stack-seed,dabibbit/dream-stack-seed
jsx
## Code Before: 'use strict'; var React = require('react'); var PaymentHistory = React.createClass({ componentDidMount: function() { this.props.model.on('change', function() { // ??? }); }, componentWillUnmout: function() { this.props.model.off('change'); }, render: function() { retu...
e1eb1ac412fa33ef9f895ec6bf21b1743cb2c75e
config/initializers/marshal_autoloader.rb
config/initializers/marshal_autoloader.rb
module Marshal def self.load_with_autoload_missing_constants(data) load_without_autoload_missing_constants(data) rescue ArgumentError => error if error.to_s.include?('undefined class') begin error.to_s.split.last.constantize rescue NameError raise error end retry ...
module MarshalAutoloader def load(data) super rescue ArgumentError => error if error.to_s.include?('undefined class') begin error.to_s.split.last.constantize rescue NameError raise error end retry end raise error end end module Marshal class << self pr...
Use prepend instead of alias_method_chain
Use prepend instead of alias_method_chain
Ruby
apache-2.0
fbladilo/manageiq,tinaafitz/manageiq,NaNi-Z/manageiq,billfitzgerald0120/manageiq,romaintb/manageiq,ManageIQ/manageiq,djberg96/manageiq,gmcculloug/manageiq,josejulio/manageiq,romaintb/manageiq,syncrou/manageiq,mzazrivec/manageiq,ilackarms/manageiq,billfitzgerald0120/manageiq,djberg96/manageiq,maas-ufcg/manageiq,d-m-u/ma...
ruby
## Code Before: module Marshal def self.load_with_autoload_missing_constants(data) load_without_autoload_missing_constants(data) rescue ArgumentError => error if error.to_s.include?('undefined class') begin error.to_s.split.last.constantize rescue NameError raise error end ...
909f993be317a1c85d4cca69bc5f31e46d2a6f90
.travis.yml
.travis.yml
language: php php: - 5.3.3 - 5.3 - 5.4 - 5.5 - 5.6 - hhvm - hhvm-nightly matrix: allow_failures: - php: hhvm - php: hhvm-nightly - php: 5.6 before_script: - composer update --prefer-source script: - vendor/bin/php-cs-fixer fix src --dry-run -v - mkdir -p build/logs - ./vendor/bin...
language: php php: - 5.3 - 5.4 - 5.5 - 5.6 - hhvm - hhvm-nightly matrix: allow_failures: - php: hhvm - php: hhvm-nightly - php: 5.6 before_script: - composer update --prefer-source script: - vendor/bin/php-cs-fixer fix src --dry-run -v - mkdir -p build/logs - ./vendor/bin/phpunit -...
Remove PHP 5.3.3 check (since ZF also need 5.3.23)
Remove PHP 5.3.3 check (since ZF also need 5.3.23)
YAML
mit
zfc-datagrid/zfc-datagrid,kokspflanze/ZfcDatagrid,kokspflanze/ZfcDatagrid,FraGoTe/ZfcDatagrid,weckx/ZfcDatagrid,zfc-datagrid/zfc-datagrid,ThaDafinser/ZfcDatagrid,weckx/ZfcDatagrid,ThaDafinser/ZfcDatagrid,FraGoTe/ZfcDatagrid
yaml
## Code Before: language: php php: - 5.3.3 - 5.3 - 5.4 - 5.5 - 5.6 - hhvm - hhvm-nightly matrix: allow_failures: - php: hhvm - php: hhvm-nightly - php: 5.6 before_script: - composer update --prefer-source script: - vendor/bin/php-cs-fixer fix src --dry-run -v - mkdir -p build/logs...
0c8f75f03020c53bcf4c6be258faf433d24b2c2b
lib/multi_json/adapters/oj.rb
lib/multi_json/adapters/oj.rb
require 'oj' unless defined?(::Oj) module MultiJson module Adapters # Use the Oj library to dump/load. class Oj ParseError = SyntaxError ::Oj.default_options = {:mode => :compat} def self.load(string, options={}) #:nodoc: ::Oj.load(string, :symbol_keys => options[:symbolize_keys])...
require 'oj' unless defined?(::Oj) module MultiJson module Adapters # Use the Oj library to dump/load. class Oj ParseError = SyntaxError ::Oj.default_options = {:mode => :compat} def self.load(string, options={}) #:nodoc: ::Oj.load(string, :symbol_keys => options[:symbolize_keys])...
Add pretty support to Oj adapter
Add pretty support to Oj adapter Fixes #51.
Ruby
mit
intridea/multi_json
ruby
## Code Before: require 'oj' unless defined?(::Oj) module MultiJson module Adapters # Use the Oj library to dump/load. class Oj ParseError = SyntaxError ::Oj.default_options = {:mode => :compat} def self.load(string, options={}) #:nodoc: ::Oj.load(string, :symbol_keys => options[:...
e61bc8e29f3061e7356ff9fd2b16c8d901d1b5ce
actionpack/test/template/safe_buffer_test.rb
actionpack/test/template/safe_buffer_test.rb
require 'abstract_unit' class SafeBufferTest < ActionView::TestCase def setup @buffer = ActionView::SafeBuffer.new end test "Should look like a string" do assert @buffer.is_a?(String) assert_equal "", @buffer end test "Should escape a raw string which is passed to them" do @buffer << "<scri...
require 'abstract_unit' class SafeBufferTest < ActionView::TestCase def setup @buffer = ActionView::SafeBuffer.new end test "Should look like a string" do assert @buffer.is_a?(String) assert_equal "", @buffer end test "Should escape a raw string which is passed to them" do @buffer << "<scri...
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.
Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.
Ruby
mit
flanger001/rails,mtsmfm/rails,tgxworld/rails,notapatch/rails,elfassy/rails,lcreid/rails,ngpestelos/rails,jeremy/rails,illacceptanything/illacceptanything,brchristian/rails,illacceptanything/illacceptanything,ngpestelos/rails,bolek/rails,mtsmfm/rails,samphilipd/rails,tijwelch/rails,gfvcastro/rails,tgxworld/rails,Envek/r...
ruby
## Code Before: require 'abstract_unit' class SafeBufferTest < ActionView::TestCase def setup @buffer = ActionView::SafeBuffer.new end test "Should look like a string" do assert @buffer.is_a?(String) assert_equal "", @buffer end test "Should escape a raw string which is passed to them" do @...
586ed8350562a4aefc3b43b3a1bfac5e0b9f3322
app/views/layouts/comfy/admin/cms/_body.html.haml
app/views/layouts/comfy/admin/cms/_body.html.haml
%body#comfy.theme.theme--cms{:class => "c-#{params[:controller].slugify} a-#{params[:action].slugify}"} .l-app = render 'comfy/admin/cms/partials/body_before' = render :partial => 'layouts/comfy/admin/cms/nav_main' = render :partial => 'layouts/comfy/admin/cms/nav_secondary' / = render :partial => 'la...
%body#comfy.theme.theme--cms{:class => "c-#{params[:controller].slugify} a-#{params[:action].slugify} lang-#{@site.label}"} .l-app = render 'comfy/admin/cms/partials/body_before' = render :partial => 'layouts/comfy/admin/cms/nav_main' = render :partial => 'layouts/comfy/admin/cms/nav_secondary' / = re...
Add lang helper class to body
Add lang helper class to body
Haml
mit
moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms
haml
## Code Before: %body#comfy.theme.theme--cms{:class => "c-#{params[:controller].slugify} a-#{params[:action].slugify}"} .l-app = render 'comfy/admin/cms/partials/body_before' = render :partial => 'layouts/comfy/admin/cms/nav_main' = render :partial => 'layouts/comfy/admin/cms/nav_secondary' / = render...
c2963e7a14999bafa3d1a803ab7c833ee7f59833
app/src/main/res/values/colors.xml
app/src/main/res/values/colors.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#00E676</color> <color name="colorPrimaryDark">#00C853</color> <color name="colorAccent">#ffb300</color> <color name="colorAccentDark">#FFA000</color> <color name="colorGreyDark">#212121</color> <color name="colorGreyDarker">#1818...
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#00E676</color> <color name="colorPrimaryDark">#00C853</color> <color name="colorAccent">#ffb300</color> <color name="colorAccentDark">#FFA000</color> <color name="colorGreyDark">#212121</color> <color name="colorGreyDarker">#1818...
Add color red and red dark
Add color red and red dark
XML
mit
naijab/nextzytimeline,naijab/nextzytimeline
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#00E676</color> <color name="colorPrimaryDark">#00C853</color> <color name="colorAccent">#ffb300</color> <color name="colorAccentDark">#FFA000</color> <color name="colorGreyDark">#212121</color> <color name="colorG...
47259a936e7e58b0c96c55081e1e3f67c98dffa9
x3-assignment/x3-assignment-preamble.tex
x3-assignment/x3-assignment-preamble.tex
\documentclass[a4paper,ngerman]{article} % Make it possible to enable or disable TOC \newif\ifShowTOC
\documentclass[a4paper,ngerman]{article} % Make it possible to enable or disable TOC \newif\ifShowTOC % Utility stuff, used, for example, in x3-mmd-compat % That is why we need to include it here, and not in -begin \usepackage{etoolbox}
Use etoolbox, mainly for checking for undefined macros
Use etoolbox, mainly for checking for undefined macros
TeX
mit
x3ro/x3-latex
tex
## Code Before: \documentclass[a4paper,ngerman]{article} % Make it possible to enable or disable TOC \newif\ifShowTOC ## Instruction: Use etoolbox, mainly for checking for undefined macros ## Code After: \documentclass[a4paper,ngerman]{article} % Make it possible to enable or disable TOC \newif\ifShowTOC % Utility...
8be765427b1a64aace278314b6d9fa97edc47f78
init/ctrlp.vim
init/ctrlp.vim
let g:ctrlp_max_height = 20 let g:ctrlp_match_window_reversed = 0 let g:ctrlp_dotfiles = 0 " When a file is chosen that's already open in a window, don't jump that " window. let g:ctrlp_jump_to_buffer = 0
let g:ctrlp_max_height = 20 let g:ctrlp_match_window_reversed = 0 let g:ctrlp_dotfiles = 0
Revert "CtrlP: Don't jump to an existing window with buff."
Revert "CtrlP: Don't jump to an existing window with buff." This reverts commit a04208df01b7160e993f553ee2e51248fe6b3459.
VimL
mit
danfinnie/vim-config,compozed/vim-config,pivotalcommon/vim-config,gust/vim-config,miketierney/vim-config,brittlewis12/vim-config,brittlewis12/vim-config,brittlewis12/vim-config,wenzowski/vim-config,mntj/vim,kmarter/vim-config,benliscio/vim,davgomgar/vim-config,LaunchAcademy/vim-config,austenito/vim-config,kmarter/vim-c...
viml
## Code Before: let g:ctrlp_max_height = 20 let g:ctrlp_match_window_reversed = 0 let g:ctrlp_dotfiles = 0 " When a file is chosen that's already open in a window, don't jump that " window. let g:ctrlp_jump_to_buffer = 0 ## Instruction: Revert "CtrlP: Don't jump to an existing window with buff." This reverts commit ...
c5a2bed3a95d43862a1750e9b8af556cd02268e3
.ci/install-silo-on-github.sh
.ci/install-silo-on-github.sh
sudo apt update sudo apt install libsilo-dev curl -L -O https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/silo/silo-4.10.2/silo-4.10.2-bsd-smalltest.tar.gz tar xfz silo-4.10.2-bsd-smalltest.tar.gz sudo cp silo-4.10.2-bsd/src/silo/silo_exports.h /usr/include sudo chmod a+rX /usr/include/silo_exports.h
sudo apt update sudo apt install libsilo-dev # As of 2021-01-04, the download links at https://wci.llnl.gov/simulation/computer-codes/silo are dead. curl -L -O https://deb.debian.org/debian/pool/main/s/silo-llnl/silo-llnl_4.10.2.real.orig.tar.xz tar xfa silo-llnl_4.10.2.real.orig.tar.xz sudo cp silo-llnl-4.10.2.real/s...
Fix libsilo download URL for Github CI
Fix libsilo download URL for Github CI
Shell
mit
inducer/pyvisfile,inducer/pyvisfile,inducer/pyvisfile
shell
## Code Before: sudo apt update sudo apt install libsilo-dev curl -L -O https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/silo/silo-4.10.2/silo-4.10.2-bsd-smalltest.tar.gz tar xfz silo-4.10.2-bsd-smalltest.tar.gz sudo cp silo-4.10.2-bsd/src/silo/silo_exports.h /usr/include sudo chmod a+rX /usr/include...
8e06b70a7c711a5ad950222c039d04af92f2341c
tasks/editor.yml
tasks/editor.yml
--- - name: check Visual Studio Code installed shell: code -v register: vscode_check ignore_errors: true - name: install Visual Studio Code apt: deb: https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable become: true when: vscode_check.rc - name: install Visual Studio Code extensions com...
--- - name: add Visual Studio Code repository apt_repository: repo: deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main become: true - name: install Visual Studio Code apt: name: code become: true - name: install Visual Studio Code extensions command: "{{ home | quote }}/.yadm/vsc...
Install vscode from microsoft repository
Install vscode from microsoft repository
YAML
mit
mskrajnowski/dev-setup
yaml
## Code Before: --- - name: check Visual Studio Code installed shell: code -v register: vscode_check ignore_errors: true - name: install Visual Studio Code apt: deb: https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable become: true when: vscode_check.rc - name: install Visual Studio Code ...
496bb8c672b22ce832c887ad255246ae15fbf2cc
challenge-0020.cpp
challenge-0020.cpp
int main(int argc, char ** argv) { std::ifstream input{argv[1]}; std::string line; std::getline(input, line); while(input) { std::for_each(std::begin(line), std::end(line), [](char c) { std::cout << static_cast<char>(std::tolower(c)); }); std::cout << '\n'; ...
int main(int argc, char ** argv) { std::ifstream input{argv[1]}; std::string line; std::getline(input, line); while(input) { std::transform(std::begin(line), std::end(line), std::begin(line), [](char c) { return static_cast<char>(std::tolower(c)); }); std::cout ...
Use transform instead of for_each
Use transform instead of for_each
C++
mit
snewell/codeeval,snewell/codeeval
c++
## Code Before: int main(int argc, char ** argv) { std::ifstream input{argv[1]}; std::string line; std::getline(input, line); while(input) { std::for_each(std::begin(line), std::end(line), [](char c) { std::cout << static_cast<char>(std::tolower(c)); }); std::co...
f8a670f3ab0e1022206ba5dfaccb85d42609f1d3
app/io/sphere/sdk/play/metrics/MetricHttpClient.java
app/io/sphere/sdk/play/metrics/MetricHttpClient.java
package io.sphere.sdk.play.metrics; import io.sphere.sdk.http.HttpClient; import io.sphere.sdk.http.HttpRequest; import io.sphere.sdk.http.HttpResponse; import play.mvc.Http; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletionStage; public class MetricHttpClient implements HttpCl...
package io.sphere.sdk.play.metrics; import io.sphere.sdk.http.HttpClient; import io.sphere.sdk.http.HttpRequest; import io.sphere.sdk.http.HttpResponse; import play.mvc.Http; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletionStage; public class MetricHttpClient implements HttpCl...
Improve metric http client to deal with missing report data list.
Improve metric http client to deal with missing report data list.
Java
apache-2.0
commercetools/commercetools-sunrise-java,sphereio/sphere-sunrise,rfuertesp/pruebas2,sphereio/sphere-sunrise,commercetools/commercetools-sunrise-java,sphereio/sphere-sunrise,commercetools/commercetools-sunrise-java,rfuertesp/pruebas2,sphereio/commercetools-sunrise-java,sphereio/commercetools-sunrise-java,commercetools/c...
java
## Code Before: package io.sphere.sdk.play.metrics; import io.sphere.sdk.http.HttpClient; import io.sphere.sdk.http.HttpRequest; import io.sphere.sdk.http.HttpResponse; import play.mvc.Http; import java.util.List; import java.util.Optional; import java.util.concurrent.CompletionStage; public class MetricHttpClient i...
9d4f0ee09fb9c73d12263f928d2ea5d06148fcda
example/testagent/test/runtests.sh
example/testagent/test/runtests.sh
set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out echo "Run testagent to convert $input into $output" # Remove lines with timestamps fr...
set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out output_tmp="$name-${LIBOFP_DEFAULT_PORT}.out" echo "Run testagent to convert $input i...
Make sure multiple tests can run in parallel.
Make sure multiple tests can run in parallel.
Shell
mit
byllyfish/oftr,byllyfish/oftr,byllyfish/libofp,byllyfish/libofp,byllyfish/libofp,byllyfish/oftr,byllyfish/oftr,byllyfish/oftr
shell
## Code Before: set -e CURRENT_SOURCE_DIR=`dirname "$0"` TESTAGENT=$1 LIBOFP_DEFAULT_PORT=${LIBOFP_DEFAULT_PORT:-6653} echo "Working Directory:" `pwd` for input in $CURRENT_SOURCE_DIR/*.in ; do name=`basename $input .in` output=$name.out echo "Run testagent to convert $input into $output" # Remove lines wi...
53be5c9c86d544567f8171baba58128b5ad0502a
tests/test_io.py
tests/test_io.py
import nonstdlib def test_capture_output(): import sys with nonstdlib.capture_output() as output: print('std', end='', file=sys.stdout) print('st', end='', file=sys.stderr) print('out', file=sys.stdout) print('derr', file=sys.stderr) assert 'stdout' in output assert 's...
from __future__ import division from __future__ import print_function from __future__ import unicode_literals import nonstdlib def test_capture_output(): import sys with nonstdlib.capture_output() as output: print('std', end='', file=sys.stdout) print('st', end='', file=sys.stderr) p...
Make the tests compatible with python2.
Make the tests compatible with python2.
Python
mit
kalekundert/nonstdlib,KenKundert/nonstdlib,KenKundert/nonstdlib,kalekundert/nonstdlib
python
## Code Before: import nonstdlib def test_capture_output(): import sys with nonstdlib.capture_output() as output: print('std', end='', file=sys.stdout) print('st', end='', file=sys.stderr) print('out', file=sys.stdout) print('derr', file=sys.stderr) assert 'stdout' in outp...
439b401d44571300fcf3689ed41a48f16f211187
README.md
README.md
<p align="center"> <a href="https://github.com/hipacc/hipacc/actions?query=workflow%3A%22Build+and+Test%22+branch%3Asiemens-dev"><img alt="Build and Test Status" src="https://github.com/hipacc/hipacc/workflows/Build%20and%20Test/badge.svg?branch=siemens-dev"></a> </p> # Hipacc A domain-specific language and compiler...
<p align="center"> <a href="https://github.com/hipacc/hipacc/actions?query=workflow%3A%22Build+and+Test%22+branch%3Asiemens-dev"><img alt="Build and Test Status" src="https://github.com/hipacc/hipacc/workflows/Build%20and%20Test/badge.svg?branch=siemens-dev&event=push"></a> </p> # Hipacc A domain-specific language a...
Update badge to show only push events
Update badge to show only push events
Markdown
bsd-2-clause
hipacc/hipacc,hipacc/hipacc
markdown
## Code Before: <p align="center"> <a href="https://github.com/hipacc/hipacc/actions?query=workflow%3A%22Build+and+Test%22+branch%3Asiemens-dev"><img alt="Build and Test Status" src="https://github.com/hipacc/hipacc/workflows/Build%20and%20Test/badge.svg?branch=siemens-dev"></a> </p> # Hipacc A domain-specific langu...
31c9a8e3915438487f067df3d68420d0b4436a25
lib/puppet/parser/functions/query_nodes.rb
lib/puppet/parser/functions/query_nodes.rb
Puppet::Parser::Functions.newfunction(:query_nodes, :type => :rvalue, :doc => <<-EOT accepts two arguments, a query used to discover nodes, and a filter used to specify the fact that should be returned. The query specified should conform to the following format: (Type[title] and fact_name<operator>fact_valu...
Puppet::Parser::Functions.newfunction(:query_nodes, :type => :rvalue, :doc => <<-EOT accepts two arguments, a query used to discover nodes, and a filter used to specify the fact that should be returned. The query specified should conform to the following format: (Type[title] and fact_name<operator>fact_valu...
Fix query node to remove active only filter.
Fix query node to remove active only filter. Query node should not filter by active_only node.
Ruby
apache-2.0
gwdg/puppet-puppetdbquery,pyther/puppet-puppetdbquery,redhat-cip/puppet-puppetdbquery,gcmalloc/puppet-puppetdbquery,baptistejammet/puppet-puppetdbquery,unki/puppet-puppetdbquery,natemccurdy/puppet-puppetdbquery,danieldreier/puppet-puppetdbquery,MelanieGault/puppet-puppetdbquery,ccin2p3/puppet-puppetdbquery,dalen/puppet...
ruby
## Code Before: Puppet::Parser::Functions.newfunction(:query_nodes, :type => :rvalue, :doc => <<-EOT accepts two arguments, a query used to discover nodes, and a filter used to specify the fact that should be returned. The query specified should conform to the following format: (Type[title] and fact_name<op...
e44bda9b82b15cfa30717b36815e81df3025238e
test/factories/teaching_period_factory.rb
test/factories/teaching_period_factory.rb
require 'date' FactoryBot.define do factory :teaching_period do sequence(:period, (1..3).cycle) { |n| "T#{n}" } sequence(:start_date, (1..3).cycle) { |n| Time.zone.now + n * 15.weeks } year { start_date.year } end_date { start_date + 14.weeks } active_...
require 'date' FactoryBot.define do factory :teaching_period do sequence(:period, (1..3).cycle) { |n| "T#{n}" } sequence(:start_date, (1..3).cycle) { |n| Time.zone.now + n * 15.weeks } year { start_date.year } end_date { start_date + 14.weeks } active_...
Add breaks to teaching period factory
TEST: Add breaks to teaching period factory
Ruby
agpl-3.0
jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubt...
ruby
## Code Before: require 'date' FactoryBot.define do factory :teaching_period do sequence(:period, (1..3).cycle) { |n| "T#{n}" } sequence(:start_date, (1..3).cycle) { |n| Time.zone.now + n * 15.weeks } year { start_date.year } end_date { start_date + 14.wee...
37300646f1b814095e2add27eaa8170e02a3453f
README.md
README.md
Personal ESLint config. ## Installation [![NPM](https://nodei.co/npm/eslint-config-njakob.png?downloads=true)](https://nodei.co/npm/eslint-config-njakob/) ``` $ npm install eslint-config-njakob --sav-dev ``` ## Usage ```json { "extends": "njakob" } ``` ## Licences [MIT](LICENSE)
Personal ESLint config. ## Rules sets * [Flowtype](/rules/flow.js) * [Import](/rules/import.js) * [ES6](/rules/es6.js) ## Installation [![NPM](https://nodei.co/npm/eslint-config-njakob.png?downloads=true)](https://nodei.co/npm/eslint-config-njakob/) ``` $ npm install eslint-config-njakob --sav-dev ``` ## Usage ...
Update readme with extended sets of rules
Update readme with extended sets of rules
Markdown
mit
njakob/eslint-config
markdown
## Code Before: Personal ESLint config. ## Installation [![NPM](https://nodei.co/npm/eslint-config-njakob.png?downloads=true)](https://nodei.co/npm/eslint-config-njakob/) ``` $ npm install eslint-config-njakob --sav-dev ``` ## Usage ```json { "extends": "njakob" } ``` ## Licences [MIT](LICENSE) ## Instruction...
746df99d416599a2c7c33b5b35f5685af9bbb832
bower.json
bower.json
{ "name": "pinny", "version": "2.0.2", "homepage": "https://github.com/mobify/pinny", "authors": [ "Mobify <jobs@mobify.com>" ], "description": "A mobile first content fly-in UI plugin", "main": "dist/pinny.min.js", "keywords": [ "pinny", "fly-in", "modal", "mobile", "mobify" ]...
{ "name": "pinny", "version": "2.0.2", "homepage": "https://github.com/mobify/pinny", "authors": [ "Mobify <jobs@mobify.com>" ], "description": "A mobile first content fly-in UI plugin", "main": "dist/pinny.min.js", "keywords": [ "pinny", "fly-in", "modal", "mobile", "mobify" ]...
Use new bugfix release of lockup
Use new bugfix release of lockup
JSON
mit
mobify/pinny,mobify/pinny
json
## Code Before: { "name": "pinny", "version": "2.0.2", "homepage": "https://github.com/mobify/pinny", "authors": [ "Mobify <jobs@mobify.com>" ], "description": "A mobile first content fly-in UI plugin", "main": "dist/pinny.min.js", "keywords": [ "pinny", "fly-in", "modal", "mobile", ...
e0ac6b9b91385983b7f371eb0849283493845495
bower.json
bower.json
{ "name": "experiment", "description": "Experiment", "main": "gulpfile.js", "authors": [ "Thomas Lecoeur <tlecoeur@agencenetdesign.com>" ], "license": "ISC", "moduleType": [], "homepage": "src/index.html", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests"...
{ "name": "experiment", "description": "Experiment", "main": "gulpfile.js", "authors": [ "Thomas Lecoeur <tlecoeur@agencenetdesign.com>" ], "license": "ISC", "moduleType": [], "homepage": "src/index.html", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests"...
Remove three.js pointerLock intergration dep
Remove three.js pointerLock intergration dep
JSON
mit
Thomeuxe/LUMA-VR-experiment,Thomeuxe/LUMA-VR-experiment
json
## Code Before: { "name": "experiment", "description": "Experiment", "main": "gulpfile.js", "authors": [ "Thomas Lecoeur <tlecoeur@agencenetdesign.com>" ], "license": "ISC", "moduleType": [], "homepage": "src/index.html", "ignore": [ "**/.*", "node_modules", "bower_components", "te...
a1f8182123ec7c255173ffa5e7d80a51159edc3e
src/main/kotlin/net/moltendorf/Bukkit/IntelliDoors/IntelliDoors.kt
src/main/kotlin/net/moltendorf/Bukkit/IntelliDoors/IntelliDoors.kt
package net.moltendorf.Bukkit.IntelliDoors import net.moltendorf.Bukkit.IntelliDoors.listener.Interact import net.moltendorf.Bukkit.IntelliDoors.listener.Redstone import org.bukkit.plugin.java.JavaPlugin /** * Created by moltendorf on 15/05/23. * @author moltendorf */ class IntelliDoors : JavaPlugin() { // Vari...
package net.moltendorf.Bukkit.IntelliDoors import net.moltendorf.Bukkit.IntelliDoors.listener.Interact import net.moltendorf.Bukkit.IntelliDoors.listener.Redstone import org.bukkit.plugin.java.JavaPlugin import kotlin.concurrent.timer /** * Created by moltendorf on 15/05/23. * @author moltendorf */ class IntelliD...
Add some more logs for when the plugin enables
Add some more logs for when the plugin enables
Kotlin
mit
moltendorf/IntelliDoors
kotlin
## Code Before: package net.moltendorf.Bukkit.IntelliDoors import net.moltendorf.Bukkit.IntelliDoors.listener.Interact import net.moltendorf.Bukkit.IntelliDoors.listener.Redstone import org.bukkit.plugin.java.JavaPlugin /** * Created by moltendorf on 15/05/23. * @author moltendorf */ class IntelliDoors : JavaPlug...
0b9285b0f3808d33b17c5aea8763e8194412eabf
package.json
package.json
{ "name": "koser.us-metalsmith", "private": true, "dependencies": { "metalsmith": "^1.0.0" } }
{ "name": "koser.us-metalsmith", "private": true, "dependencies": { "metalsmith": "1.7.x", "metalsmith-in-place": "1.3.x", "metalsmith-layouts": "1.4.x", "metalsmith-markdown": "0.2.x" } }
Update metalsmith and plugin versions
Update metalsmith and plugin versions
JSON
mit
briankoser/koser.us-metalsmith,briankoser/koser.us-metalsmith
json
## Code Before: { "name": "koser.us-metalsmith", "private": true, "dependencies": { "metalsmith": "^1.0.0" } } ## Instruction: Update metalsmith and plugin versions ## Code After: { "name": "koser.us-metalsmith", "private": true, "dependencies": { "metalsmith": "1.7.x", "metalsmith-in-place":...
f283ed1c9df5b8daee0fe32d9670d23100733d33
test/style-examples.test.js
test/style-examples.test.js
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('setup', function(t...
Test that no mapid is set on example styles.
Test that no mapid is set on example styles.
JavaScript
bsd-3-clause
wakermahmud/mapbox-studio,tizzybec/mapbox-studio,wakermahmud/mapbox-studio,tizzybec/mapbox-studio,adozenlines/mapbox-studio,mapbox/mapbox-studio-classic,wakermahmud/mapbox-studio,crowdcover/mapbox-studio,danieljoppi/mapbox-studio,Zhao-Qi/mapbox-studio-classic,AbelSu131/mapbox-studio,Zhao-Qi/mapbox-studio-classic,ali/ma...
javascript
## Code Before: var test = require('tape'); var tm = require('../lib/tm'); var style = require('../lib/style'); var source = require('../lib/source'); var mockOauth = require('../lib/mapbox-mock')(require('express')()); var tmppath = tm.join(require('os').tmpdir(), 'Examples ШЖФ -' + (+new Date)); var server; test('se...
317b91044c9f07648c1bbed943c586103519f874
.config/sh/config.sh
.config/sh/config.sh
set -o vi . ~/.env case "$(uname)" in Darwin) test -z ${HOMEBREW_PREFIX:+null} && test -x /usr/local/bin/brew && eval "$(SHELL=/bin/sh /usr/local/bin/brew shellenv)" command -v docker-machine >/dev/null && eval $(docker-machine env 2>/dev/null) ;; Linux) test -z ${HOMEBREW_PREFIX:+null} && test -...
set -o vi . ~/.env case "$(uname)" in Darwin) test -z ${HOMEBREW_PREFIX:+null} && test -x /usr/local/bin/brew && eval "$(SHELL=/bin/sh /usr/local/bin/brew shellenv)" JAVA_HOME="$(/usr/libexec/java_home 2>/dev/null)" test -n "$JAVA_HOME" && export JAVA_HOME || unset JAVA_HOME command -v docker-mac...
Set JAVA_HOME to current default JDK on macOS
Set JAVA_HOME to current default JDK on macOS - brew hardwires many commands to its own openjdk if JAVA_HOME is not set, which causes lots of unexpected behaviors, such as keystore being different.
Shell
bsd-2-clause
ntkme/ntkme,ntkme/ntkme
shell
## Code Before: set -o vi . ~/.env case "$(uname)" in Darwin) test -z ${HOMEBREW_PREFIX:+null} && test -x /usr/local/bin/brew && eval "$(SHELL=/bin/sh /usr/local/bin/brew shellenv)" command -v docker-machine >/dev/null && eval $(docker-machine env 2>/dev/null) ;; Linux) test -z ${HOMEBREW_PREFIX:...
0eb8b9eca262cfb32ca5bb5d473c4b637169d0a5
app/assets/javascripts/modules/track-brexit-qa-choices.js
app/assets/javascripts/modules/track-brexit-qa-choices.js
window.GOVUK = window.GOVUK || {} window.GOVUK.Modules = window.GOVUK.Modules || {}; (function (global, GOVUK) { 'use strict' GOVUK.Modules.TrackBrexitQaChoices = function () { this.start = function (element) { track(element) } function track (element) { element.on('submit', function (eve...
window.GOVUK = window.GOVUK || {} window.GOVUK.Modules = window.GOVUK.Modules || {}; (function (global, GOVUK) { 'use strict' GOVUK.Modules.TrackBrexitQaChoices = function () { this.start = function (element) { track(element) } function track (element) { element.on('submit', function (eve...
Replace jQuery `each` method with for loop
Replace jQuery `each` method with for loop
JavaScript
mit
alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend
javascript
## Code Before: window.GOVUK = window.GOVUK || {} window.GOVUK.Modules = window.GOVUK.Modules || {}; (function (global, GOVUK) { 'use strict' GOVUK.Modules.TrackBrexitQaChoices = function () { this.start = function (element) { track(element) } function track (element) { element.on('submit...
7e7f33146dbc60ecdd3e3183ceb8254fa6fb8eca
lib/spring/commands/cucumber.rb
lib/spring/commands/cucumber.rb
module Spring module Commands class Cucumber class << self attr_accessor :environment_matchers end self.environment_matchers = { :default => "test", /^features($|\/)/ => "test" # if a path is passed, make sure the default env is applied } def env(args) ...
module Spring module Commands class Cucumber class << self attr_accessor :environment_matchers end self.environment_matchers = { :default => "test", /^features($|\/)/ => "test" # if a path is passed, make sure the default env is applied } def env(args) ...
Replace Rake env variable handling with usual
Replace Rake env variable handling with usual
Ruby
mit
jonleighton/spring-commands-cucumber
ruby
## Code Before: module Spring module Commands class Cucumber class << self attr_accessor :environment_matchers end self.environment_matchers = { :default => "test", /^features($|\/)/ => "test" # if a path is passed, make sure the default env is applied } ...
4d6a3b00595860f990e6d549bfc41e2fbaf0a8cf
templates/search.php
templates/search.php
<h2 class="govuk-heading-l">Search results for <?php the_search_query(); ?> </h2> <?php if (have_posts()) { ?> <?php while (have_posts()) : the_post() ?> <article <?php post_class() ?>> <header> <h3 class=govuk-heading-m"><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h3> <...
<hr class="govuk-section-break govuk-section-break--l govuk-section-break--visible"> <h2 class="govuk-heading-l">Search results for <?php the_search_query(); ?> </h2> <?php if (have_posts()) { ?> <?php while (have_posts()) : the_post() ?> <article <?php post_class() ?>> <header> <h3 class=govuk-...
Add horizontal line element to header
Add horizontal line element to header
PHP
mit
dxw/govuk-blogs,dxw/govuk-blogs,dxw/govuk-blogs
php
## Code Before: <h2 class="govuk-heading-l">Search results for <?php the_search_query(); ?> </h2> <?php if (have_posts()) { ?> <?php while (have_posts()) : the_post() ?> <article <?php post_class() ?>> <header> <h3 class=govuk-heading-m"><a href="<?php the_permalink() ?>"><?php the_title() ?></a...
ae18815f96933a7fcf98dda9ac7ea0de2ef22cba
src/app/core/error-handler/app-error-handler.service.ts
src/app/core/error-handler/app-error-handler.service.ts
import { Injectable, ErrorHandler } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { environment } from '@env/environment'; import { NotificationService } from '../notifications/notification.service'; import { NotificationStyles } from '../notifications/notification-styles'; /**...
import { Injectable, ErrorHandler } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { environment } from '@env/environment'; import { NotificationService } from '../notifications/notification.service'; /** Application-wide error handler that adds a UI notification to the error ha...
Remove non existing import NotificationStyles
fix: Remove non existing import NotificationStyles Remove a non existing import in the error handler service for NotificationStyles. Can cause an error when typescript compiling the application.
TypeScript
mit
tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter,tomastrajan/angular-ngrx-material-starter
typescript
## Code Before: import { Injectable, ErrorHandler } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { environment } from '@env/environment'; import { NotificationService } from '../notifications/notification.service'; import { NotificationStyles } from '../notifications/notificati...