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
40e6d90286092ba927ce00f8d35faa8688ffbb00
website/src/components/blog/Blog/index.js
website/src/components/blog/Blog/index.js
import React from 'react'; import {Helmet} from 'react-helmet'; import Logo from '../../common/Logo'; import StyledLink from '../../common/StyledLink'; import NewsletterSignupForm from '../NewsletterSignupForm'; import { Title, Wrapper, Divider, BlogPostCardWrapper, BlogPostDate, BlogPostDescription, } fr...
import React from 'react'; import {Helmet} from 'react-helmet'; import Logo from '../../common/Logo'; import StyledLink from '../../common/StyledLink'; import NewsletterSignupForm from '../NewsletterSignupForm'; import { Title, Wrapper, Divider, BlogPostCardWrapper, BlogPostDate, BlogPostDescription, } fr...
Add missing key prop to blog post list
Add missing key prop to blog post list
JavaScript
mit
jwngr/sdow,jwngr/sdow,jwngr/sdow,jwngr/sdow
javascript
## Code Before: import React from 'react'; import {Helmet} from 'react-helmet'; import Logo from '../../common/Logo'; import StyledLink from '../../common/StyledLink'; import NewsletterSignupForm from '../NewsletterSignupForm'; import { Title, Wrapper, Divider, BlogPostCardWrapper, BlogPostDate, BlogPostD...
f8561caa2c981a6f09b02bad89e931cb0419de0c
src/cpp/desktop/DesktopNetworkAccessManager.cpp
src/cpp/desktop/DesktopNetworkAccessManager.cpp
/* * DesktopNetworkAccessManager.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILI...
/* * DesktopNetworkAccessManager.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERCHANTABILI...
Revert "use file based webkit cache in desktop mode" (was crashing when opening the history pane on linux)
Revert "use file based webkit cache in desktop mode" (was crashing when opening the history pane on linux)
C++
agpl-3.0
JanMarvin/rstudio,sfloresm/rstudio,maligulzar/Rstudio-instrumented,jar1karp/rstudio,githubfun/rstudio,pssguy/rstudio,brsimioni/rstudio,suribes/rstudio,jzhu8803/rstudio,pssguy/rstudio,vbelakov/rstudio,githubfun/rstudio,edrogers/rstudio,nvoron23/rstudio,maligulzar/Rstudio-instrumented,jar1karp/rstudio,piersharding/rstudi...
c++
## Code Before: /* * DesktopNetworkAccessManager.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, ...
3b5f1749a8065bb9241d6a8ed77c047a05b3f6e2
bcbio/distributed/sge.py
bcbio/distributed/sge.py
import re import subprocess _jobid_pat = re.compile('Your job (?P<jobid>\d+) \("') def submit_job(scheduler_args, command): """Submit a job to the scheduler, returning the supplied job ID. """ cl = ["qsub", "-cwd", "-b", "y", "-j", "y"] + scheduler_args + command status = subprocess.check_output(cl) ...
import re import time import subprocess _jobid_pat = re.compile('Your job (?P<jobid>\d+) \("') def submit_job(scheduler_args, command): """Submit a job to the scheduler, returning the supplied job ID. """ cl = ["qsub", "-cwd", "-b", "y", "-j", "y"] + scheduler_args + command status = subprocess.check_...
Handle temporary errors returned from SGE qstat
Handle temporary errors returned from SGE qstat
Python
mit
biocyberman/bcbio-nextgen,Cyberbio-Lab/bcbio-nextgen,mjafin/bcbio-nextgen,chapmanb/bcbio-nextgen,lpantano/bcbio-nextgen,fw1121/bcbio-nextgen,brainstorm/bcbio-nextgen,fw1121/bcbio-nextgen,elkingtonmcb/bcbio-nextgen,verdurin/bcbio-nextgen,mjafin/bcbio-nextgen,vladsaveliev/bcbio-nextgen,SciLifeLab/bcbio-nextgen,SciLifeLab...
python
## Code Before: import re import subprocess _jobid_pat = re.compile('Your job (?P<jobid>\d+) \("') def submit_job(scheduler_args, command): """Submit a job to the scheduler, returning the supplied job ID. """ cl = ["qsub", "-cwd", "-b", "y", "-j", "y"] + scheduler_args + command status = subprocess.ch...
9192df8289a4ff9959fc385b2683cad02b3d1425
lib/hash_to_json.rb
lib/hash_to_json.rb
require 'cuba' require 'cuba/render' require 'json' Cuba.plugin Cuba::Render Cuba.define do on get do on root do hash = '' on param('q') do | hash | json = '' json = JSON.parse(hash.gsub('=>', ' : ')).to_json if hash res.write render('templates/home.haml', hash: hash , json:...
require 'cuba' require 'cuba/render' require 'json' Cuba.plugin Cuba::Render Cuba.define do on get do on root do hash = '' on param('q') do | hash | json = if hash && hash[ /=>/ ] JSON.parse(hash.gsub('nil', '').gsub('=>', ' : ')).to_json else hash end ...
Handle exception when new hash syntax is passed
Handle exception when new hash syntax is passed
Ruby
mit
revathskumar/hash2json
ruby
## Code Before: require 'cuba' require 'cuba/render' require 'json' Cuba.plugin Cuba::Render Cuba.define do on get do on root do hash = '' on param('q') do | hash | json = '' json = JSON.parse(hash.gsub('=>', ' : ')).to_json if hash res.write render('templates/home.haml', ha...
cff1932d4026ec3c166051b94cf7e3e8ade5d5bc
ci/script.sh
ci/script.sh
set -ex if [ "$RUSTFMT" = "yes" ]; then cargo fmt --all -- --check elif [ "$CLIPPY" = "yes" ]; then cargo clippy --all -- -D warnings else cargo test fi
set -ex export CARGO_INCREMENTAL=0 if [ "$RUSTFMT" = "yes" ]; then cargo fmt --all -- --check elif [ "$CLIPPY" = "yes" ]; then cargo clippy --all -- -D warnings else cargo test fi
Disable incremental compilation in CI.
Disable incremental compilation in CI.
Shell
apache-2.0
bheisler/TinyTemplate
shell
## Code Before: set -ex if [ "$RUSTFMT" = "yes" ]; then cargo fmt --all -- --check elif [ "$CLIPPY" = "yes" ]; then cargo clippy --all -- -D warnings else cargo test fi ## Instruction: Disable incremental compilation in CI. ## Code After: set -ex export CARGO_INCREMENTAL=0 if [ "$RUSTFMT" = "yes" ]; t...
045a3b0d7024e34dc27d013697406757de41ecce
style.css
style.css
body { margin: 0; overflow: hidden; } header{ background-color:black; color:white; text-align:center; height: 100px; } footer{ background-color:black; color:white; clear:both; text-align:center; height: 100px; } p, span, table{ font-family: "sans-serif"; font-weight: bold; } .main { top: ...
* {cursor: none;} body { margin: 0; overflow: hidden; } header{ background-color:black; color:white; text-align:center; height: 100px; } footer{ background-color:black; color:white; clear:both; text-align:center; height: 100px; } p, span, table{ font-family: "sans-serif"; font-weight: bold;...
Hide the mouse on the page
Hide the mouse on the page
CSS
mit
shackspace/kiosk_v4,shackspace/kiosk_v4
css
## Code Before: body { margin: 0; overflow: hidden; } header{ background-color:black; color:white; text-align:center; height: 100px; } footer{ background-color:black; color:white; clear:both; text-align:center; height: 100px; } p, span, table{ font-family: "sans-serif"; font-weight: bold; } ...
46c0553951a15006e86ddaff2ce3ab6a884faabf
setup/default-editor-filetypes.txt
setup/default-editor-filetypes.txt
applescript asm c code-snippets coffee conf cpp cs css diff h java js json jsx less lisp md patch pegjs php plist py rb rss scss sh sql ss ssp svg tex tpl ts tsx txt xml yaml yml
applescript asm bash_profile bashrc c cfg code-snippets coffee conf cpp cs css diff editorconfig h java js json jsx less lisp md patch pegjs php plist py rb rss scss sh sql ss ssp svg tex tpl ts tsx txt xml yaml yml
Update default editor filetypes with more types
Update default editor filetypes with more types
Text
mit
caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles,caleb531/dotfiles
text
## Code Before: applescript asm c code-snippets coffee conf cpp cs css diff h java js json jsx less lisp md patch pegjs php plist py rb rss scss sh sql ss ssp svg tex tpl ts tsx txt xml yaml yml ## Instruction: Update default editor filetypes with more types ## Code After: applescript asm bash_profile bashrc c cfg co...
6565a8b168f2299db6d198f76358b4781ac7c1df
spec/features/user_visits_verify_will_not_work_for_you_page_spec.rb
spec/features/user_visits_verify_will_not_work_for_you_page_spec.rb
require 'feature_helper' require 'api_test_helper' RSpec.describe 'When the user visits the Verify will not work for you page' do before(:each) do set_session_and_session_cookies! page.set_rack_session(transaction_simple_id: 'test-rp') end it 'displays the page in Welsh' do visit '/dim-ffon-symudol'...
require 'feature_helper' require 'api_test_helper' RSpec.describe 'When the user visits the Verify will not work for you page' do before(:each) do set_session_and_session_cookies! page.set_rack_session(transaction_simple_id: 'test-rp') end it 'displays the page in Welsh' do visit '/ni-fydd-verify-yn...
Fix failing test with new Welsh translation
BAU: Fix failing test with new Welsh translation
Ruby
mit
alphagov/verify-frontend,alphagov/verify-frontend,alphagov/verify-frontend,alphagov/verify-frontend
ruby
## Code Before: require 'feature_helper' require 'api_test_helper' RSpec.describe 'When the user visits the Verify will not work for you page' do before(:each) do set_session_and_session_cookies! page.set_rack_session(transaction_simple_id: 'test-rp') end it 'displays the page in Welsh' do visit '/d...
3f4f27594ab66195115f96834381306fd0fb7a05
README.md
README.md
Octave/Spice tool for characterizing the metastability resolution time constant tau ![Example 1](figures/example1.svg)
Octave/Spice tool for characterizing the metastability resolution time constant tau ![Example 1](https://cdn.rawgit.com/xprova/bisect-tau/master/figures/example1.svg)
Fix svg include in readme
Fix svg include in readme
Markdown
mit
xprova/bisect-tau,xprova/bisect-tau
markdown
## Code Before: Octave/Spice tool for characterizing the metastability resolution time constant tau ![Example 1](figures/example1.svg) ## Instruction: Fix svg include in readme ## Code After: Octave/Spice tool for characterizing the metastability resolution time constant tau ![Example 1](https://cdn.rawgit.com/xpro...
e575105c4f32cd5ceb057548f326e1c6a529aaf3
gitconfig.erb
gitconfig.erb
[user] name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %> email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = subl -n -w [pull] rebase = true [push] default = current [rebase] autosquash = true autostash = true...
[user] name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %> email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = subl -n -w [pull] rebase = true [push] default = current [rebase] autosquash = true autostash = true...
Make git-status show untracked files
Make git-status show untracked files
HTML+ERB
mit
lexmag/dotfiles,lexmag/dotfiles,lexmag/dotfiles
html+erb
## Code Before: [user] name = <%= print("Your Name: "); STDOUT.flush; STDIN.gets.chomp %> email = <%= print("Your Email: "); STDOUT.flush; STDIN.gets.chomp %> [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = subl -n -w [pull] rebase = true [push] default = current [rebase] autosquash = true ...
3d0fe4de6736f148c0b41c0da685ef3a750401fc
stack.yaml
stack.yaml
resolver: lts-6.10 packages: - '.' extra-deps: - haskell-src-exts-1.18.2 - descriptive-0.9.4
resolver: lts-6.10 packages: - '.' extra-deps: - haskell-src-exts-1.18.2 - descriptive-0.9.4 - path-0.5.9 - path-io-1.2.0
Add path back to the .yaml
Add path back to the .yaml
YAML
bsd-3-clause
sighingnow/hindent,cblp/hindent
yaml
## Code Before: resolver: lts-6.10 packages: - '.' extra-deps: - haskell-src-exts-1.18.2 - descriptive-0.9.4 ## Instruction: Add path back to the .yaml ## Code After: resolver: lts-6.10 packages: - '.' extra-deps: - haskell-src-exts-1.18.2 - descriptive-0.9.4 - path-0.5.9 - path-io-1.2.0
76771f4ecc408258f1aab5467aa1e862d0f91d56
scripts/vmtool.sh
scripts/vmtool.sh
echo "==> Installing VirtualBox guest additions" dnf -y install kernel-headers-$(uname -r) kernel-devel-$(uname -r) gcc make perl VBOX_VERSION=$(cat /home/vagrant/.vbox_version) mount -o loop /home/vagrant/VBoxGuestAdditions_${VBOX_VERSION}.iso /mnt sh /mnt/VBoxLinuxAdditions.run --nox11 umount /mnt rm -rf /home/va...
echo "==> Installing VirtualBox guest additions" dnf -y install kernel-headers-$(uname -r) kernel-devel-$(uname -r) elfutils-libelf-devel gcc make perl VBOX_VERSION=$(cat /home/vagrant/.vbox_version) mount -o loop /home/vagrant/VBoxGuestAdditions_${VBOX_VERSION}.iso /mnt sh /mnt/VBoxLinuxAdditions.run --nox11 umoun...
Fix issue building VBoxGuestAdditions 5.2.6 with kernel 4.14.14
Fix issue building VBoxGuestAdditions 5.2.6 with kernel 4.14.14
Shell
apache-2.0
idi-ops/packer-fedora
shell
## Code Before: echo "==> Installing VirtualBox guest additions" dnf -y install kernel-headers-$(uname -r) kernel-devel-$(uname -r) gcc make perl VBOX_VERSION=$(cat /home/vagrant/.vbox_version) mount -o loop /home/vagrant/VBoxGuestAdditions_${VBOX_VERSION}.iso /mnt sh /mnt/VBoxLinuxAdditions.run --nox11 umount /mnt...
1b3adfd987f45312f9a0d10a458c037baedb0b9f
src/app/components/serviceInstance/serviceInstanceDeleteCtrl.js
src/app/components/serviceInstance/serviceInstanceDeleteCtrl.js
angular.module('app.serviceInstance').controller('ServiceInstanceDeleteCtrl', ['$scope', '$modalInstance', '$log', 'serviceInstance', 'serviceInstanceService', 'messageService', function($scope, $modalInstance, $log, serviceInstance, serviceInstanceService, messageService) { $scope.serviceInstance = serviceInstance;...
angular.module('app.serviceInstance').controller('ServiceInstanceDeleteCtrl', ['$scope', '$q', '$modalInstance', '$log', 'serviceInstance', 'serviceInstanceService', 'serviceBindingService', 'messageService', function($scope, $q, $modalInstance, $log, serviceInstance, serviceInstanceService, serviceBindingService, mess...
Delete service instance bindings before deleting service instance
Delete service instance bindings before deleting service instance
JavaScript
apache-2.0
icclab/cf-webui,icclab/cf-webui
javascript
## Code Before: angular.module('app.serviceInstance').controller('ServiceInstanceDeleteCtrl', ['$scope', '$modalInstance', '$log', 'serviceInstance', 'serviceInstanceService', 'messageService', function($scope, $modalInstance, $log, serviceInstance, serviceInstanceService, messageService) { $scope.serviceInstance = ...
58bb79c7a4a6d4ce6b61635ee4b1750a02149fef
EXAMPLES/base-hadoop/docker-compose.yaml
EXAMPLES/base-hadoop/docker-compose.yaml
namenode: image: "hadoop:2.7.0" hostname: namenode.localdomain dns: 172.17.42.1 dns_search: localdomain volumes: - ./etc/hadoop:/etc/hadoop expose: - 8020 - 50070 user: hdfs command: hdfs namenode datanode: image: "hadoop:2.7.0" dns: 172.17.42.1 dns_search: localdomain volumes: ...
namenode: image: "hadoop:2.7.0" hostname: namenode.localdomain volumes: - ./etc/hadoop:/etc/hadoop expose: - 8020 - 50070 user: hdfs command: hdfs namenode datanode: image: "hadoop:2.7.0" volumes: - ./etc/hadoop:/etc/hadoop expose: - 50010 - 50020 - 50075 user: hdfs co...
Change example to use 1.9 networking (overlay)
Change example to use 1.9 networking (overlay)
YAML
mit
jake-low/hadoop.docker
yaml
## Code Before: namenode: image: "hadoop:2.7.0" hostname: namenode.localdomain dns: 172.17.42.1 dns_search: localdomain volumes: - ./etc/hadoop:/etc/hadoop expose: - 8020 - 50070 user: hdfs command: hdfs namenode datanode: image: "hadoop:2.7.0" dns: 172.17.42.1 dns_search: localdomain...
6f75c552fc924e171712bbb04e7afe7a2ecc250a
django_cradmin/templates/django_cradmin/viewhelpers/create_update_base.django.html
django_cradmin/templates/django_cradmin/viewhelpers/create_update_base.django.html
{% extends "django_cradmin/base.django.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block content %} {% block pageheader %} <div class="page-header page-header-nomargin"> <div class="container-fluid"> {% block pageheader-inner %}{% endblock pageheader-inner %} ...
{% extends "django_cradmin/base.django.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block content %} {% block pageheader %} <div class="page-header page-header-nomargin"> <div class="container-fluid"> {% block pageheader-inner %}{% endblock pageheader-inner %} ...
Include form media in create_update_base template.
Include form media in create_update_base template.
HTML
bsd-3-clause
appressoas/django_cradmin,appressoas/django_cradmin,appressoas/django_cradmin
html
## Code Before: {% extends "django_cradmin/base.django.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block content %} {% block pageheader %} <div class="page-header page-header-nomargin"> <div class="container-fluid"> {% block pageheader-inner %}{% endblock pageheader...
0e4cebad2acb269667b14ddc58cb3bb172809234
katas/es6/language/block-scoping/let.js
katas/es6/language/block-scoping/let.js
// block scope - let // To do: make all tests pass, leave the asserts unchanged! describe('`let` restricts the scope of the variable to the current block', () => { describe('`let` vs. `var`', () => { it('`var` works as usual', () => { if (true) { var varX = true; } assert.equal(varX, ...
// block scope - let // To do: make all tests pass, leave the asserts unchanged! describe('`let` restricts the scope of the variable to the current block', () => { describe('`let` vs. `var`', () => { it('`var` works as usual', () => { if (true) { let varX = true; } assert.equal(varX, ...
Make it nicer and break it, to be a kata :).
Make it nicer and break it, to be a kata :).
JavaScript
mit
cmisenas/katas,JonathanPrince/katas,cmisenas/katas,rafaelrocha/katas,JonathanPrince/katas,ehpc/katas,cmisenas/katas,rafaelrocha/katas,JonathanPrince/katas,Semigradsky/katas,tddbin/katas,ehpc/katas,tddbin/katas,Semigradsky/katas,Semigradsky/katas,rafaelrocha/katas,tddbin/katas,ehpc/katas
javascript
## Code Before: // block scope - let // To do: make all tests pass, leave the asserts unchanged! describe('`let` restricts the scope of the variable to the current block', () => { describe('`let` vs. `var`', () => { it('`var` works as usual', () => { if (true) { var varX = true; } ass...
8631a61b9b243e5c1724fb2df06f33b1400fb59e
tests/test_koji_sign.py
tests/test_koji_sign.py
import unittest import os import sys DIR = os.path.dirname(__file__) sys.path.insert(0, os.path.join(DIR, "..")) from releng_sop.common import Environment # noqa: E402 from releng_sop.koji_sign import get_rpmsign_class, LocalRPMSign # noqa: E402 RELEASES_DIR = os.path.join(DIR, "releases") ENVIRONMENTS_DIR = o...
import unittest import os import sys # HACK: inject empty koji module to silence failing tests. # We need to add koji to deps (currently not possible) # or create a mock object for testing. import imp sys.modules["koji"] = imp.new_module("koji") DIR = os.path.dirname(__file__) sys.path.insert(0, os.path.join(DIR...
Fix failing tests by injecting an empty koji module.
Fix failing tests by injecting an empty koji module.
Python
mit
release-engineering/releng-sop,release-engineering/releng-sop
python
## Code Before: import unittest import os import sys DIR = os.path.dirname(__file__) sys.path.insert(0, os.path.join(DIR, "..")) from releng_sop.common import Environment # noqa: E402 from releng_sop.koji_sign import get_rpmsign_class, LocalRPMSign # noqa: E402 RELEASES_DIR = os.path.join(DIR, "releases") ENVI...
4156966905342a4ef72c3746af253b7044aa176c
pages/archive/page-archive.htm
pages/archive/page-archive.htm
--- url: /archive/:type/:category?/:page? name: Blog archive description: Displays a list of CMS content blog posts. action: cmscontent:archive template: default published: true --- {% set blog_slugs = [] %} {% set blog_categories = [] %} {# Iterate by ascending published_on so that new posts don't change the #} {# ord...
--- url: /archive/:type/:category?/:page? name: Blog archive description: Displays a list of CMS content blog posts. action: cmscontent:archive template: default published: true --- {% set blog_slugs = [] %} {% set blog_categories = [] %} {# Iterate by ascending published_on so that new posts don't change the #} {# ord...
Move blog categories down to make title right.
Move blog categories down to make title right.
HTML
mit
lemonstand/lscloud-theme-bones,lemonstand/lscloud-theme-bones
html
## Code Before: --- url: /archive/:type/:category?/:page? name: Blog archive description: Displays a list of CMS content blog posts. action: cmscontent:archive template: default published: true --- {% set blog_slugs = [] %} {% set blog_categories = [] %} {# Iterate by ascending published_on so that new posts don't chan...
b2d84d0e32b91762d2ffcb3380f168e7255c104f
app/controllers/page_feedbacks_controller.rb
app/controllers/page_feedbacks_controller.rb
class PageFeedbacksController < Comfy::Admin::Cms::BaseController def index @page_feedbacks = PageFeedback.includes(:page).page(params[:page]) end end
class PageFeedbacksController < Comfy::Admin::Cms::BaseController def index @page_feedbacks = PageFeedback.includes(:page).page(params[:page]).order('created_at DESC') end end
Sort by created at on page feedback list
Sort by created at on page feedback list
Ruby
mit
moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms
ruby
## Code Before: class PageFeedbacksController < Comfy::Admin::Cms::BaseController def index @page_feedbacks = PageFeedback.includes(:page).page(params[:page]) end end ## Instruction: Sort by created at on page feedback list ## Code After: class PageFeedbacksController < Comfy::Admin::Cms::BaseController def...
46e6641528de2a747507453b24278bbd55c33393
guide/src/qs_1.md
guide/src/qs_1.md
Before we begin, we need to install Rust using the [rustup](https://www.rustup.rs/) installer: ```bash curl https://sh.rustup.rs -sSf | sh ``` If you already have rustup installed, run this command to ensure you have the latest version of Rust: ```bash rustup update ``` Actix web framework requires rust version 1....
Before we begin, we need to install Rust using the [rustup](https://www.rustup.rs/): ```bash curl https://sh.rustup.rs -sSf | sh ``` If you already have rustup installed, run this command to ensure you have the latest version of Rust: ```bash rustup update ``` Actix web framework requires rust version 1.21 and up....
Add repository hyperlink and trim repeat.
Add repository hyperlink and trim repeat.
Markdown
apache-2.0
actix/actix-web,actix/actix-web,actix/actix-web
markdown
## Code Before: Before we begin, we need to install Rust using the [rustup](https://www.rustup.rs/) installer: ```bash curl https://sh.rustup.rs -sSf | sh ``` If you already have rustup installed, run this command to ensure you have the latest version of Rust: ```bash rustup update ``` Actix web framework requires...
54b28185776bf158a71c492b085519e67a851440
README.md
README.md
This application improves the ics file given by MyCourses by making the event name more descriptive (e.g. "T-61.3050 L1, T1 (Machine Learning: Basic Principles)"). The output file can be imported to Google Calendar for example. ## Installation Before using this script you should install BeautifulSoup (pip install beau...
This application improves the ics file given by MyCourses by making the event name more descriptive (e.g. "T-61.3050 L1, T1 (Machine Learning: Basic Principles)"). The output file can be imported to Google Calendar for example. ## Installation Before using this script you should install BeautifulSoup (pip install beau...
Update the usage section of readme
Update the usage section of readme
Markdown
mit
karkkainenk1/MyCoursesCalendar
markdown
## Code Before: This application improves the ics file given by MyCourses by making the event name more descriptive (e.g. "T-61.3050 L1, T1 (Machine Learning: Basic Principles)"). The output file can be imported to Google Calendar for example. ## Installation Before using this script you should install BeautifulSoup (...
703745c29aba2c3fe6618b6258bddf2ee4754252
lib/FrontendTool/CMakeLists.txt
lib/FrontendTool/CMakeLists.txt
add_swift_library(swiftFrontendTool FrontendTool.cpp LINK_LIBRARIES swiftIDE swiftIRGen swiftSIL swiftSILGen swiftSILOptimizer swiftImmediate swiftSerialization swiftPrintAsObjC swiftFrontend swiftClangImporter swiftOption clangAPINotes clangBasic )
add_swift_library(swiftFrontendTool FrontendTool.cpp DEPENDS SwiftOptions LINK_LIBRARIES swiftIDE swiftIRGen swiftSIL swiftSILGen swiftSILOptimizer swiftImmediate swiftSerialization swiftPrintAsObjC swiftFrontend swiftClangImporter swiftOption clangAPINotes clangBasic )
Add missing dependency on Options.inc generation.
Add missing dependency on Options.inc generation.
Text
apache-2.0
danielmartin/swift,brentdax/swift,zisko/swift,jckarter/swift,glessard/swift,atrick/swift,karwa/swift,modocache/swift,arvedviehweger/swift,tardieu/swift,amraboelela/swift,russbishop/swift,gregomni/swift,swiftix/swift,glessard/swift,gottesmm/swift,shajrawi/swift,roambotics/swift,gmilos/swift,tinysun212/swift-windows,deyt...
text
## Code Before: add_swift_library(swiftFrontendTool FrontendTool.cpp LINK_LIBRARIES swiftIDE swiftIRGen swiftSIL swiftSILGen swiftSILOptimizer swiftImmediate swiftSerialization swiftPrintAsObjC swiftFrontend swiftClangImporter swiftOption clangAPINotes clangBasic ) ## Instru...
8dc6fe73d1fbba1253e89f16089088d479a13c18
gem/templates/chhaajaa/comments/form.html
gem/templates/chhaajaa/comments/form.html
{% with article as article %} <form method="post" id="comment-form" action="{% url 'molo.commenting:molo-comments-post' %}"> {% csrf_token %} <div class="form-group{% if form.comment.errors %} input-error {% endif %}"> {% if form.errors %} <p class="errors">{% trans "Please correct the error below" %}...
{% with article as article %} <form method="post" id="comment-form" action="{% url 'molo.commenting:molo-comments-post' %}"> {% csrf_token %} <div class="form-group{% if form.comment.errors %} input-error {% endif %}"> {% if form.errors %} <p class="errors">{% trans "Please correct the error below" %}...
Add comment success message to chhaajaa template
Add comment success message to chhaajaa template
HTML
bsd-2-clause
praekelt/molo-gem,praekelt/molo-gem,praekelt/molo-gem
html
## Code Before: {% with article as article %} <form method="post" id="comment-form" action="{% url 'molo.commenting:molo-comments-post' %}"> {% csrf_token %} <div class="form-group{% if form.comment.errors %} input-error {% endif %}"> {% if form.errors %} <p class="errors">{% trans "Please correct the...
d46ed93bc5a2cf6b02952b32e81e2e505d489846
src/Helper/HttpClientHelper.php
src/Helper/HttpClientHelper.php
<?php /** * @file * Contains \Drupal\Console\Helper\HttpClientHelper. */ namespace Drupal\Console\Helper; use Drupal\Console\Helper\Helper; use GuzzleHttp\Client; /** * Class HttpClientHelper * @package \Drupal\Console\Helper\HttpClientHelper */ class HttpClientHelper extends Helper { public function down...
<?php /** * @file * Contains \Drupal\Console\Helper\HttpClientHelper. */ namespace Drupal\Console\Helper; use Drupal\Console\Helper\Helper; use GuzzleHttp\Client; /** * Class HttpClientHelper * @package \Drupal\Console\Helper\HttpClientHelper */ class HttpClientHelper extends Helper { public function down...
Remove try/catch to test TravisCI error
[console] Remove try/catch to test TravisCI error
PHP
mit
revagomes/DrupalConsole,dkgndec/DrupalConsole,revagomes/DrupalConsole,dkgndec/DrupalConsole,dkgndec/DrupalConsole,revagomes/DrupalConsole
php
## Code Before: <?php /** * @file * Contains \Drupal\Console\Helper\HttpClientHelper. */ namespace Drupal\Console\Helper; use Drupal\Console\Helper\Helper; use GuzzleHttp\Client; /** * Class HttpClientHelper * @package \Drupal\Console\Helper\HttpClientHelper */ class HttpClientHelper extends Helper { publ...
ca6a758f525c741f277e7e7be115b5b9d20fa5c1
openxc/tools/dump.py
openxc/tools/dump.py
from __future__ import absolute_import import argparse import time from openxc.formats.json import JsonFormatter from .common import device_options, configure_logging, select_device def receive(message, **kwargs): message['timestamp'] = time.time() # TODO update docs on trace file format print(JsonFormat...
from __future__ import absolute_import import argparse import time from openxc.formats.json import JsonFormatter from .common import device_options, configure_logging, select_device def receive(message, **kwargs): message['timestamp'] = time.time() print(JsonFormatter.serialize(message)) def parse_options(...
Remove a resolved TODO - trace file formats now standardized.
Remove a resolved TODO - trace file formats now standardized.
Python
bsd-3-clause
openxc/openxc-python,openxc/openxc-python,openxc/openxc-python
python
## Code Before: from __future__ import absolute_import import argparse import time from openxc.formats.json import JsonFormatter from .common import device_options, configure_logging, select_device def receive(message, **kwargs): message['timestamp'] = time.time() # TODO update docs on trace file format ...
fb080282a15df43d0d88b8a30dc707bd0b7a1445
README.md
README.md
Demo repo for practice
- @mrclement - @mehrenfried ``` //Example code here var bob = "Bob" ``` This is a demo repo for practice
Add example code and contributors as a bullet list
Add example code and contributors as a bullet list I did this to demonstrate markdown
Markdown
mit
KentDenverSchool/sigcse-example-html
markdown
## Code Before: Demo repo for practice ## Instruction: Add example code and contributors as a bullet list I did this to demonstrate markdown ## Code After: - @mrclement - @mehrenfried ``` //Example code here var bob = "Bob" ``` This is a demo repo for practice
cb78167f867d5a4ae1ea61b993e349df978a17f5
app/controllers/admin/papers_controller.rb
app/controllers/admin/papers_controller.rb
class Admin::PapersController < Admin::ApplicationController helper_method :sort_column, :sort_direction before_action :set_activity before_action :set_paper, only: [:show, :update] def index @papers = Paper.joins(:user).where(activity: @activity).order(sort_column + " "+ sort_direction) @notification =...
class Admin::PapersController < Admin::ApplicationController helper_method :sort_column, :sort_direction before_action :set_activity before_action :set_paper, only: [:show, :update] def index @papers = Paper.joins(:user).where(activity: @activity).order(sort_sql) @notification = Notification.new end ...
Use sort_sql to merge order and column
Use sort_sql to merge order and column
Ruby
apache-2.0
5xRuby/rubyconftw-cfp,5xRuby/rubyconftw-cfp,5xRuby/rubyconftw-cfp,5xRuby/rubyconftw-cfp
ruby
## Code Before: class Admin::PapersController < Admin::ApplicationController helper_method :sort_column, :sort_direction before_action :set_activity before_action :set_paper, only: [:show, :update] def index @papers = Paper.joins(:user).where(activity: @activity).order(sort_column + " "+ sort_direction) ...
fe16e5ef86604cd0a71bcc542419edf693a17408
sample-config/session.js
sample-config/session.js
var chalk = require('chalk'); var redisStore; var config = { secret: 'change-this-fool', resave: true, saveUninitialized: true }; var redisConfig = { host: 'localhost', port: 6379 }; if(ENV === 'production') { var RedisStore = require('connect-redis')(require('express-session')); redisStore = new RedisStore...
var chalk = require('chalk'); var redisStore; var config = { secret: 'change-this-fool', resave: true, saveUninitialized: true }; var redisConfig = { host: 'localhost', port: 6379 }; if(ENV === 'production') { var RedisStore = require('connect-redis')(require('express-session')); redisStore = new RedisStore...
Throw error (instead of log and exit) on redis connection failure.
Throw error (instead of log and exit) on redis connection failure.
JavaScript
mit
thecodebureau/epiphany
javascript
## Code Before: var chalk = require('chalk'); var redisStore; var config = { secret: 'change-this-fool', resave: true, saveUninitialized: true }; var redisConfig = { host: 'localhost', port: 6379 }; if(ENV === 'production') { var RedisStore = require('connect-redis')(require('express-session')); redisStore ...
924fdbc1f4394865d5592fb7d1cd5fa5f98ac694
docs/reference/indices/get-mapping.asciidoc
docs/reference/indices/get-mapping.asciidoc
[[indices-get-mapping]] == Get Mapping The get mapping API allows to retrieve mapping definitions for an index or index/type. [source,js] -------------------------------------------------- curl -XGET 'http://localhost:9200/twitter/_mapping/tweet' -------------------------------------------------- [float] === Multipl...
[[indices-get-mapping]] == Get Mapping The get mapping API allows to retrieve mapping definitions for an index or index/type. [source,js] -------------------------------------------------- curl -XGET 'http://localhost:9200/twitter/_mapping/tweet' -------------------------------------------------- [float] === Multipl...
Update to the new {index}/_mapping/{type} format
[DOCS] Update to the new {index}/_mapping/{type} format
AsciiDoc
apache-2.0
aparo/elasticsearch,aparo/elasticsearch,fubuki/elasticsearch,aparo/elasticsearch,fubuki/elasticsearch,fubuki/elasticsearch,fubuki/elasticsearch,aparo/elasticsearch,aparo/elasticsearch,fubuki/elasticsearch,fubuki/elasticsearch,aparo/elasticsearch
asciidoc
## Code Before: [[indices-get-mapping]] == Get Mapping The get mapping API allows to retrieve mapping definitions for an index or index/type. [source,js] -------------------------------------------------- curl -XGET 'http://localhost:9200/twitter/_mapping/tweet' -------------------------------------------------- [fl...
54cb542867322654179fe5a6edec3972f0e5a33a
.travis.yml
.travis.yml
language: python python: - 3.3 - 3.4 env: - DJANGO=Django==1.7.1 - DJANGO=https://github.com/django/django/archive/master.zip matrix: # 2014-11-16: global failure due to django-nose failure allow_failures: - env: DJANGO=https://github.com/django/django/archive/master.zip install: - sudo apt-get in...
language: python python: - 3.3 - 3.4 env: - DJANGO=Django==1.7.1 - DJANGO=https://github.com/django/django/archive/master.zip matrix: # 2014-11-16: global failure due to django-nose failure allow_failures: - env: DJANGO=https://github.com/django/django/archive/master.zip install: - sudo apt-get in...
Send coverage report only once (python-3.3 + django-1.7)
Send coverage report only once (python-3.3 + django-1.7)
YAML
bsd-2-clause
chgans/django-google-dork
yaml
## Code Before: language: python python: - 3.3 - 3.4 env: - DJANGO=Django==1.7.1 - DJANGO=https://github.com/django/django/archive/master.zip matrix: # 2014-11-16: global failure due to django-nose failure allow_failures: - env: DJANGO=https://github.com/django/django/archive/master.zip install: -...
df6cd5b266dcc5d04c033b447be2382cbfbcf1e2
app/views/split_checkout/_checkout.html.haml
app/views/split_checkout/_checkout.html.haml
%checkout.row#checkout .small-12.medium-12.columns = render partial: "split_checkout/tabs" = render partial: "split_checkout/already_ordered" if @already_ordered = render partial: "split_checkout/form"
%checkout.row#checkout .small-12.medium-12.columns = render partial: "split_checkout/tabs" = render partial: "split_checkout/already_ordered" if @already_ordered && checkout_step?(:summary) = render partial: "split_checkout/form"
Add already ordered panel only on summary step
Add already ordered panel only on summary step
Haml
agpl-3.0
mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/...
haml
## Code Before: %checkout.row#checkout .small-12.medium-12.columns = render partial: "split_checkout/tabs" = render partial: "split_checkout/already_ordered" if @already_ordered = render partial: "split_checkout/form" ## Instruction: Add already ordered panel only on summary step ## Code After: %checkou...
8f8667e17e67eaedb9983a9802e5003d3c4f29cd
spec/timestamp.rb
spec/timestamp.rb
require 'spec/helper' $dbh = connect_to_spec_database describe 'a DBI::Timestamp object' do before do @ts = $dbh.sc "SELECT ts FROM many_col_table WHERE ts IS NOT NULL LIMIT 1" end it 'acts like a Time object' do should.raise( NoMethodError ) do @ts.no_such_method_on_time_objects end shoul...
require 'spec/helper' $dbh = connect_to_spec_database describe 'a DBI::Timestamp object' do before do @ts = $dbh.sc "SELECT ts FROM many_col_table WHERE ts IS NOT NULL LIMIT 1" end it 'acts like a Time object' do # Only test this if the resultant column is actually a timestamp as returned by the DBD. ...
Put condition around Timestamp test, requiring that the variable tested is actually a Timestamp.
Put condition around Timestamp test, requiring that the variable tested is actually a Timestamp.
Ruby
mit
Pistos/m4dbi
ruby
## Code Before: require 'spec/helper' $dbh = connect_to_spec_database describe 'a DBI::Timestamp object' do before do @ts = $dbh.sc "SELECT ts FROM many_col_table WHERE ts IS NOT NULL LIMIT 1" end it 'acts like a Time object' do should.raise( NoMethodError ) do @ts.no_such_method_on_time_objects ...
0fbe7b261e6491aacc470c5d7328d2539cdedc0e
form/admin/fb.js
form/admin/fb.js
'use strict'; var form = require('express-form') , field = form.field; module.exports = form( field('settingForm[fb:appId]').trim().is(/^\d+$/), field('settingForm[fb:seret]').trim().is(/^[\da-z]+$/) );
'use strict'; var form = require('express-form') , field = form.field; module.exports = form( field('settingForm[facebook:appId]').trim().is(/^\d+$/), field('settingForm[facebook:secret]').trim().is(/^[\da-z]+$/) );
Fix typo on facebook setting form
Fix typo on facebook setting form
JavaScript
mit
crowi/crowi,kyonmm/crowi,otobank/crowi,otobank/crowi,kyonmm/crowi,crowi/crowi,crow-misia/crowi,crow-misia/crowi,crowi/crowi
javascript
## Code Before: 'use strict'; var form = require('express-form') , field = form.field; module.exports = form( field('settingForm[fb:appId]').trim().is(/^\d+$/), field('settingForm[fb:seret]').trim().is(/^[\da-z]+$/) ); ## Instruction: Fix typo on facebook setting form ## Code After: 'use strict'; var form =...
3ad0835f36c87cdbb6e66528177e1a1413d0c113
test/integration/test/integration-mocha-setup.js
test/integration/test/integration-mocha-setup.js
const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const td = require('testdouble') const tdChai = require('testdouble-chai') chai.use(chaiAsPromised) chai.use(tdChai(td)) chai.config.includeStack = true chai.config.showDiff = false global.expect = chai.expect // if any unhandled rejecti...
const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const td = require('testdouble') const tdChai = require('testdouble-chai') chai.use(chaiAsPromised) chai.use(tdChai(td)) chai.config.includeStack = true chai.config.showDiff = false global.expect = chai.expect // if any unhandled rejecti...
Fix build error on node v4
Fix build error on node v4
JavaScript
mit
mwolson/jazzdom
javascript
## Code Before: const chai = require('chai') const chaiAsPromised = require('chai-as-promised') const td = require('testdouble') const tdChai = require('testdouble-chai') chai.use(chaiAsPromised) chai.use(tdChai(td)) chai.config.includeStack = true chai.config.showDiff = false global.expect = chai.expect // if any u...
806d141a46a48e9d0fd7c919d2878daf41d1b87b
lib/libra2/app/views/curation_concerns/base/_form_metadata.html.erb
lib/libra2/app/views/curation_concerns/base/_form_metadata.html.erb
<div class="form-instructions"> <p>The more descriptive information you provide the better we can serve your needs.</p> <div class="clearfix"> <small class="pull-left"><span class="error">*</span> required</small> </div> </div> <div class="base-terms"> ...
<div class="form-instructions"> <p>The more descriptive information you provide the better we can serve your needs.</p> <div class="clearfix"> <small class="pull-left"><span class="error">*</span> required</small> </div> </div> <div class="base-terms"> ...
Move representitive media section to the bottom of the form
Move representitive media section to the bottom of the form
HTML+ERB
apache-2.0
uvalib/Libra2,uvalib/Libra2,uvalib/Libra2,uvalib/Libra2,uvalib/Libra2
html+erb
## Code Before: <div class="form-instructions"> <p>The more descriptive information you provide the better we can serve your needs.</p> <div class="clearfix"> <small class="pull-left"><span class="error">*</span> required</small> </div> </div> <div clas...
029edcfe1769dd65fa2fac566abb5686c5986890
backdrop/core/records.py
backdrop/core/records.py
import datetime class Record(object): def __init__(self, data): self.data = data self.meta = {} if "_timestamp" in self.data: days_since_week_start = datetime.timedelta( days=self.data['_timestamp'].weekday()) week_start = self.data['_timestamp'] - ...
import datetime class Record(object): def __init__(self, data): self.data = data self.meta = {} if "_timestamp" in self.data: day_of_week = self.data['_timestamp'].weekday() delta_from_week_start = datetime.timedelta(days=day_of_week) week_start = self...
Refactor for clarity around _week_start_at
Refactor for clarity around _week_start_at
Python
mit
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
python
## Code Before: import datetime class Record(object): def __init__(self, data): self.data = data self.meta = {} if "_timestamp" in self.data: days_since_week_start = datetime.timedelta( days=self.data['_timestamp'].weekday()) week_start = self.data[...
5507cf5e6af4efd165a85f69f54574b37451aa2c
X/Image.swift
X/Image.swift
// // Image.swift // X // // Created by Sam Soffes on 4/28/15. // Copyright (c) 2015 Sam Soffes. All rights reserved. // #if os(iOS) import UIKit.UIImage public typealias ImageType = UIImage #else import AppKit.NSImage public typealias ImageType = NSImage extension NSImage { public var CGImage: CGImageRef...
// // Image.swift // X // // Created by Sam Soffes on 4/28/15. // Copyright (c) 2015 Sam Soffes. All rights reserved. // #if os(iOS) import UIKit.UIImage public typealias ImageType = UIImage #else import AppKit.NSImage public typealias ImageType = NSImage extension NSImage { public var CGImage: CGImageRef...
Update for Xcode 7 beta 5
Update for Xcode 7 beta 5
Swift
mit
soffes/X
swift
## Code Before: // // Image.swift // X // // Created by Sam Soffes on 4/28/15. // Copyright (c) 2015 Sam Soffes. All rights reserved. // #if os(iOS) import UIKit.UIImage public typealias ImageType = UIImage #else import AppKit.NSImage public typealias ImageType = NSImage extension NSImage { public var CGI...
dfaf3d1461a25ca26ed7562831373603010d2f29
xml_json_import/__init__.py
xml_json_import/__init__.py
from django.conf import settings class XmlJsonImportModuleException(Exception): pass if not hasattr(settings, 'XSLT_FILES_DIR'): raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter')
from django.conf import settings from os import path class XmlJsonImportModuleException(Exception): pass if not hasattr(settings, 'XSLT_FILES_DIR'): raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter') if not path.exists(settings.XSLT_FILES_DIR): raise XmlJsonImp...
Throw exception for not existing XSLT_FILES_DIR path
Throw exception for not existing XSLT_FILES_DIR path
Python
mit
lev-veshnyakov/django-import-data,lev-veshnyakov/django-import-data
python
## Code Before: from django.conf import settings class XmlJsonImportModuleException(Exception): pass if not hasattr(settings, 'XSLT_FILES_DIR'): raise XmlJsonImportModuleException('Settings must contain XSLT_FILES_DIR parameter') ## Instruction: Throw exception for not existing XSLT_FILES_DIR path ## Code A...
e5557e7d2fe24771f106d2219310f5ca678db41b
.github/actions/build_ruby/entrypoint.sh
.github/actions/build_ruby/entrypoint.sh
set -e PACKAGE_VERSION=$(jq '.version' --raw-output ./package.json) PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/0.0.0./0.0.0.pre./g') PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/-rc/.pre/g') echo "************* Building v$PACKAGE_VERSION *************" # Setup rubygems creds mkdir -p ~/.gem cat << ...
set -e PACKAGE_VERSION=$(jq '.version' --raw-output ./package.json) PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/0.0.0./0.0.0.pre./g') PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/-rc/.pre/g') echo "************* Building v$PACKAGE_VERSION *************" # Setup rubygems creds mkdir -p ~/.gem cat << ...
Update the gemfile special case
Update the gemfile special case
Shell
mit
primer/octicons,primer/octicons,primer/octicons,primer/octicons
shell
## Code Before: set -e PACKAGE_VERSION=$(jq '.version' --raw-output ./package.json) PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/0.0.0./0.0.0.pre./g') PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed -e 's/-rc/.pre/g') echo "************* Building v$PACKAGE_VERSION *************" # Setup rubygems creds mkdir -...
2d71b5d2a280041b922099235d59dd5076510fa0
frontend/templates/searchResultModal.html
frontend/templates/searchResultModal.html
<div class="modal-header"> <h3 class="modal-title">{{beer.name}}</h3> </div> <div class="modal-body"> <img class="beerLabel" ng-src="{{beer.data.beer_label}}"> <p><strong>Style:</strong> {{beer.data.beer_style ? beer.data.beer_style : 'n/a'}}</p> <p><strong>ABV:</strong> {{beer.data.beer_abv | number : ...
<div class="modal-header"> <h3 class="modal-title">{{beer.name}}</h3> </div> <div class="modal-body"> <img class="beerLabel" ng-src="{{beer.data.beer_label}}"> <p><strong>Style:</strong> {{beer.data.beer_style ? beer.data.beer_style : 'n/a'}}</p> <p><strong>ABV:</strong> <span ng-hide="{{beer.data.beer_...
Fix for display of zeroed abc's from untappd
Fix for display of zeroed abc's from untappd
HTML
mit
patch-e/beers-at-als,patch-e/beers-at-als
html
## Code Before: <div class="modal-header"> <h3 class="modal-title">{{beer.name}}</h3> </div> <div class="modal-body"> <img class="beerLabel" ng-src="{{beer.data.beer_label}}"> <p><strong>Style:</strong> {{beer.data.beer_style ? beer.data.beer_style : 'n/a'}}</p> <p><strong>ABV:</strong> {{beer.data.beer...
964d71c7fd84e38e0f906cbbde520858ec0471b8
tests/index.html
tests/index.html
<!DOCTYPE html> <html> <head> <title>cookie.js test suite</title> <link rel="stylesheet" href="vendor/mocha.css" /> <script src="vendor/jquery.js"></script> <script src="vendor/mocha.js"></script> <script src="vendor/chai.js"></script> <script> chai.should(); chai.expect(); mocha.setup({ ui: 'bdd', ignore...
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>cookie.js test suite</title> <link rel="stylesheet" href="vendor/mocha.css" /> <script src="vendor/jquery.js"></script> <script src="vendor/mocha.js"></script> <script src="vendor/chai.js"></script> <script> chai.should(); chai.expect(); mocha.set...
Add meta charset on the test page
Add meta charset on the test page
HTML
mit
florian/cookie.js,js-coder/cookie.js,js-coder/cookie.js
html
## Code Before: <!DOCTYPE html> <html> <head> <title>cookie.js test suite</title> <link rel="stylesheet" href="vendor/mocha.css" /> <script src="vendor/jquery.js"></script> <script src="vendor/mocha.js"></script> <script src="vendor/chai.js"></script> <script> chai.should(); chai.expect(); mocha.setup({ ui:...
a4ca69e789e35a9efa96a60ebedaff7c6a9e0326
core/runtime/src/main/java/io/quarkus/runtime/graal/JavaIOSubstitutions.java
core/runtime/src/main/java/io/quarkus/runtime/graal/JavaIOSubstitutions.java
package io.quarkus.runtime.graal; import java.io.ObjectStreamClass; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; @TargetClass(java.io.ObjectStreamClass.class) @SuppressWarnings({ "unused" }) final class Target_java_io_ObjectStreamClass { @Substitute privat...
package io.quarkus.runtime.graal; import java.io.ObjectStreamClass; import java.util.function.BooleanSupplier; import org.graalvm.home.Version; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; import io.quarkus.runtime.graal.Target_java_io_ObjectStreamClass.GraalVM20O...
Enable Java serialization for GraalVM 21+
Enable Java serialization for GraalVM 21+
Java
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
java
## Code Before: package io.quarkus.runtime.graal; import java.io.ObjectStreamClass; import com.oracle.svm.core.annotate.Substitute; import com.oracle.svm.core.annotate.TargetClass; @TargetClass(java.io.ObjectStreamClass.class) @SuppressWarnings({ "unused" }) final class Target_java_io_ObjectStreamClass { @Subst...
2d2179bb42fab664515bf6479ff0fac383e2525a
helm/README.md
helm/README.md
$ git clone https://github.com/yuanying/charts.git ~/.helm/charts
$ kubectl create clusterrolebinding \ tiller-cluster-rule \ --clusterrole=cluster-admin \ --serviceaccount=kube-system:default ## Setup local repository $ git clone https://github.com/yuanying/charts.git ~/.helm/charts
Add document about RBAC support for helm
Add document about RBAC support for helm
Markdown
apache-2.0
yuanying/k8s-env,yuanying/k8s-env,yuanying/k8s-env
markdown
## Code Before: $ git clone https://github.com/yuanying/charts.git ~/.helm/charts ## Instruction: Add document about RBAC support for helm ## Code After: $ kubectl create clusterrolebinding \ tiller-cluster-rule \ --clusterrole=cluster-admin \ --serviceaccount=kube-...
6fb68731142264a489ab1e76e3a3d19a96d56948
lib/plugins.sty
lib/plugins.sty
% To enable Gameki plugins, add the following before % \ProcessOptions*\relax % in LaTeX/gametex.sty: % % \input \gamepath/Gameki/lib/plugins.sty % % Add stuff to the \STARTINPUTS..\FINISHINPUTS block. \long\def\ADDINPUTS#1\FINISHINPUTS{% \edef\@inputinputs{% \expandafter\unexpanded\expandafter{\@inputinputs}% ...
% To enable Gameki plugins, add the following before % \ProcessOptions*\relax % in LaTeX/gametex.sty: % % \input \gamepath/Gameki/lib/plugins.sty % % Add stuff to the \STARTINPUTS..\FINISHINPUTS block. \long\def\ADDINPUTS#1\FINISHINPUTS{% \edef\@inputinputs{% \expandafter\unexpanded\expandafter{\@inputinputs}% ...
Make booksheets optional based on a def in the .cls, setstretch{1}.
Make booksheets optional based on a def in the .cls, setstretch{1}.
TeX
mit
xavidotron/gameki-tools
tex
## Code Before: % To enable Gameki plugins, add the following before % \ProcessOptions*\relax % in LaTeX/gametex.sty: % % \input \gamepath/Gameki/lib/plugins.sty % % Add stuff to the \STARTINPUTS..\FINISHINPUTS block. \long\def\ADDINPUTS#1\FINISHINPUTS{% \edef\@inputinputs{% \expandafter\unexpanded\expandafter{...
d2f2bff9c7a124cc77429538f076cdf529f4926e
docs/vbucketmigrator.pod
docs/vbucketmigrator.pod
=head1 NAME vbucketmigrator - migrate virtual buckets =head1 SYNOPSIS vbucketmigrator [options] =head1 DESCRIPTION vbucketmigrator lets you move/copy the content of one vbucket from one memcached server to another. =head1 OPTIONS The following options is supported: =over 4 =item -h hostname:port Connect to ...
=head1 NAME vbucketmigrator - migrate virtual buckets =head1 SYNOPSIS vbucketmigrator [options] =head1 DESCRIPTION vbucketmigrator lets you move/copy the content of one vbucket from one memcached server to another. =head1 OPTIONS The following options is supported: =over 4 =item -h hostname:port Connect to ...
Add -e to the man page
Add -e to the man page Change-Id: I9fffe8a8fdbce3b6b655cafc8bffef493aebcc26 Reviewed-on: http://review.northscale.com/2187 Reviewed-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net> Tested-by: Dustin Sallings <1c08efb9b3965701be9d700d9a6f481f1ffec3ea@spy.net>
Pod
apache-2.0
zbase/vbucketmigrator,membase/vbucketmigrator,zbase/vbucketmigrator,zbase/vbucketmigrator,membase/vbucketmigrator,membase/vbucketmigrator,zbase/vbucketmigrator,membase/vbucketmigrator
pod
## Code Before: =head1 NAME vbucketmigrator - migrate virtual buckets =head1 SYNOPSIS vbucketmigrator [options] =head1 DESCRIPTION vbucketmigrator lets you move/copy the content of one vbucket from one memcached server to another. =head1 OPTIONS The following options is supported: =over 4 =item -h hostname:p...
f92d27d214546b0a419d469a8eb79cea27947b34
pkgs/development/libraries/neon/default.nix
pkgs/development/libraries/neon/default.nix
{ stdenv, fetchurl, libxml2, pkgconfig , compressionSupport ? true, zlib ? null , sslSupport ? true, openssl ? null , static ? false , shared ? true }: assert compressionSupport -> zlib != null; assert sslSupport -> openssl != null; assert static || shared; let inherit (stdenv.lib) optionals; in stdenv.mkDerivati...
{ stdenv, fetchurl, libxml2, pkgconfig , compressionSupport ? true, zlib ? null , sslSupport ? true, openssl ? null , static ? false , shared ? true }: assert compressionSupport -> zlib != null; assert sslSupport -> openssl != null; assert static || shared; let inherit (stdenv.lib) optionals; in stdenv.mkDerivati...
Put version into own variable
neon: Put version into own variable
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,triton/triton,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,Sy...
nix
## Code Before: { stdenv, fetchurl, libxml2, pkgconfig , compressionSupport ? true, zlib ? null , sslSupport ? true, openssl ? null , static ? false , shared ? true }: assert compressionSupport -> zlib != null; assert sslSupport -> openssl != null; assert static || shared; let inherit (stdenv.lib) optionals; in s...
0888d13a335c78c71fc7aa517e35d08675a68881
doc/source/index.rst
doc/source/index.rst
============================================================= stevedore -- Manage Dynamic Plugins for Python Applications ============================================================= Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extension...
============================================================= stevedore -- Manage Dynamic Plugins for Python Applications ============================================================= Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and loading extension...
Remove reference to non-existing page
Remove reference to non-existing page There is no modindex page generated, remove reference to it. Change-Id: I2707c653ab4c7ab6b13478c5c0da35b82f0b5f65
reStructuredText
apache-2.0
openstack/stevedore
restructuredtext
## Code Before: ============================================================= stevedore -- Manage Dynamic Plugins for Python Applications ============================================================= Python makes loading code dynamically easy, allowing you to configure and extend your application by discovering and l...
6c534ea468ae0651a7a4f95cec8e2159fbde08bf
components/InputRow.jsx
components/InputRow.jsx
var React = require('react'); var Label = require('./Label.jsx'); var ClassBuilder = require('../utils/ClassBuilder'); var InputRow = React.createClass({ displayName: 'InputRow', propTypes: { label: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.object ...
var React = require('react'); var Label = require('./Label.jsx'); var ClassBuilder = require('../utils/ClassBuilder'); var InputRow = React.createClass({ displayName: 'InputRow', propTypes: { label: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.object ...
Remove inline widths from 'input row' component
Remove inline widths from 'input row' component
JSX
bsd-3-clause
bigdatr/bd-stampy
jsx
## Code Before: var React = require('react'); var Label = require('./Label.jsx'); var ClassBuilder = require('../utils/ClassBuilder'); var InputRow = React.createClass({ displayName: 'InputRow', propTypes: { label: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes...
8a067f2b217526da993ae2f93a383fd4ab5926ae
scripts/docker/fedora.23/Dockerfile
scripts/docker/fedora.23/Dockerfile
FROM fedora:23 # Install the base toolchain we need to build anything (clang, cmake, make and the like) # this does not include libraries that we need to compile different projects, we'd like # them in a different layer. RUN dnf install -y cmake \ clang \ make \ which \ tar \ ...
FROM fedora:23 # Install the base toolchain we need to build anything (clang, cmake, make and the like) # this does not include libraries that we need to compile different projects, we'd like # them in a different layer. RUN dnf install -y cmake \ clang \ make \ which \ tar \ ...
Upgrade nss in the Fedora 23 dockerfile
Upgrade nss in the Fedora 23 dockerfile (cherry picked from commit bf4fafbbe146cd5b9b7ee83270a114a4f78f9643)
unknown
mit
weshaggard/core-setup,rakeshsinghranchi/core-setup,ericstj/core-setup,ramarag/core-setup,wtgodbe/core-setup,cakine/core-setup,chcosta/core-setup,rakeshsinghranchi/core-setup,karajas/core-setup,karajas/core-setup,weshaggard/core-setup,janvorli/core-setup,zamont/core-setup,weshaggard/core-setup,ellismg/core-setup,ravimed...
unknown
## Code Before: FROM fedora:23 # Install the base toolchain we need to build anything (clang, cmake, make and the like) # this does not include libraries that we need to compile different projects, we'd like # them in a different layer. RUN dnf install -y cmake \ clang \ make \ which \ ...
a2d07a11223471664992837f6ea77d1b2e2dc946
package.json
package.json
{ "name": "tree-view", "version": "0.170.0", "main": "./lib/main", "description": "Explore and open files in the current project.", "repository": "https://github.com/atom/tree-view", "license": "MIT", "engines": { "atom": "*" }, "private": true, "dependencies": { "atom-space-pen-views": "^2....
{ "name": "tree-view", "version": "0.170.0", "main": "./lib/main", "description": "Explore and open files in the current project.", "repository": "https://github.com/atom/tree-view", "license": "MIT", "engines": { "atom": "*" }, "private": true, "dependencies": { "atom-space-pen-views": "^2....
Save coffeelint as a dev dependency
Save coffeelint as a dev dependency
JSON
mit
cgrabowski/webgl-studio-tree-view,tbryant/tree-view,jarig/tree-view,samu/tree-view,laituan245/tree-view,atom/tree-view,matthewbauer/tree-view,ayumi/tree-view,jasonhinkle/tree-view,thgaskell/tree-view,tomekwi/tree-view,learn-co/learn-ide-tree,benjaminRomano/tree-view,pombredanne/tree-view-1,Galactix/tree-view
json
## Code Before: { "name": "tree-view", "version": "0.170.0", "main": "./lib/main", "description": "Explore and open files in the current project.", "repository": "https://github.com/atom/tree-view", "license": "MIT", "engines": { "atom": "*" }, "private": true, "dependencies": { "atom-space-...
2c833f57eb12a31cd4eeba9e5e515bba8508fe8b
src/Elements/HttpResponseElement.php
src/Elements/HttpResponseElement.php
<?php namespace Hmaus\Reynaldo\Elements; class HttpResponseElement extends BaseElement implements ApiElement, ApiHttpResponse { public function getStatusCode() { return (int)$this->attributes['statusCode']; } public function getHeaders() { $headersFromAttributes = $this->getAttrib...
<?php namespace Hmaus\Reynaldo\Elements; class HttpResponseElement extends BaseElement implements ApiElement, ApiHttpResponse { public function getStatusCode() { return isset($this->attributes['statusCode']) ? (int)$this->attributes['statusCode'] : 0; } public function getHeaders() { ...
Fix NOTICE error on PHP 7.4: Trying to access array offset on value of type null
Fix NOTICE error on PHP 7.4: Trying to access array offset on value of type null
PHP
mit
hendrikmaus/reynaldo
php
## Code Before: <?php namespace Hmaus\Reynaldo\Elements; class HttpResponseElement extends BaseElement implements ApiElement, ApiHttpResponse { public function getStatusCode() { return (int)$this->attributes['statusCode']; } public function getHeaders() { $headersFromAttributes = ...
fa35387994334043619637090ded84b2730a8837
README.md
README.md
[![Code Climate](https://codeclimate.com/github/thomas-mcdonald/qa.png)](https://codeclimate.com/github/thomas-mcdonald/qa) QA will be a decent q&a application built on Rails. I'm currently rewriting everything, check the `old` branch if you want a semi-runnable application.
[![Code Climate](https://codeclimate.com/github/thomas-mcdonald/qa.png)](https://codeclimate.com/github/thomas-mcdonald/qa) [![Coverage Status](https://coveralls.io/repos/thomas-mcdonald/qa/badge.png?branch=master)](https://coveralls.io/r/thomas-mcdonald/qa) QA will be a decent q&a application built on Rails. I'm cu...
Add Coveralls badge to readme
Add Coveralls badge to readme
Markdown
mit
thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa,thomas-mcdonald/qa
markdown
## Code Before: [![Code Climate](https://codeclimate.com/github/thomas-mcdonald/qa.png)](https://codeclimate.com/github/thomas-mcdonald/qa) QA will be a decent q&a application built on Rails. I'm currently rewriting everything, check the `old` branch if you want a semi-runnable application. ## Instruction: Add Cover...
ccf846633f0bcc9836d3d05403094c37be3de07c
core/classes/utility.php
core/classes/utility.php
<?php class Utility { public function __construct() { // } public static function displayError($message) { // Clear the buffer. ob_end_clean(); // Terminate with an error message. exit("Error: {$message}."); } public static function getRootAddress() { $host = $_SERVER["HTTP_HOS...
<?php if (!defined("KAKU_ACCESS")) { // Deny direct access to this file. exit(); } class Utility { public function displayError($message) { if (ob_get_status()["level"] > 0) { // Clear the buffer. ob_end_clean(); } // Terminate with an error message. exit("Error: {$message}."); ...
Check for buffer before calling ob_end_clean()
Check for buffer before calling ob_end_clean() If ob_end_clean() is called before ob_start() has been called, PHP will throw an error. This ensures that the buffer is only terminated if it exists in the first place. In addition, getRootAddress() has been removed.
PHP
mit
ecj2/kaku,ecj2/kaku
php
## Code Before: <?php class Utility { public function __construct() { // } public static function displayError($message) { // Clear the buffer. ob_end_clean(); // Terminate with an error message. exit("Error: {$message}."); } public static function getRootAddress() { $host = $_...
a5e0a54b4e74e43c41bdf59f22cbfe3771419870
README.md
README.md
TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'cool_faker' And then execute: $ bundle Or install it yourself as: $ gem install cool_faker ## Usage TODO: Write usage instructions here ## Contributing 1. Fork it ( http://github.com/<my-github-userna...
A faker gem that generate famous and fun data ! ## Installation Add this line to your application's Gemfile: gem 'cool_faker' And then execute: $ bundle Or install it yourself as: $ gem install cool_faker ## Usage There are 2 parts to this gem : ### Characters #### Name CoolFaker::Character...
Add info to the readme
Add info to the readme
Markdown
mit
Qt-dev/cool-faker
markdown
## Code Before: TODO: Write a gem description ## Installation Add this line to your application's Gemfile: gem 'cool_faker' And then execute: $ bundle Or install it yourself as: $ gem install cool_faker ## Usage TODO: Write usage instructions here ## Contributing 1. Fork it ( http://github.com/<...
c03a3d0ad3e073f0df66c029394b6e9d304fa24a
lib/undo/serializer/active_model.rb
lib/undo/serializer/active_model.rb
require "active_support/core_ext/hash" require "active_support/core_ext/string" module Undo module Serializer class ActiveModel VERSION = "0.0.2" def initialize(*args) options = args.extract_options! @serializer = args.first @serializer_source = options.fetch :serializer, ...
module Undo module Serializer class ActiveModel VERSION = "0.0.2" def initialize(*args) options = args.extract_options! @serializer = args.first @serializer_source = options.fetch :serializer, ->(object) { object.active_model_serializer.new object } end ...
Revert "load hash and object core_ext"
Revert "load hash and object core_ext" This reverts commit 9ded0797e3e6eebef5adab1f4d02bf991780aa63.
Ruby
mit
AlexParamonov/undo-serializer-active_model
ruby
## Code Before: require "active_support/core_ext/hash" require "active_support/core_ext/string" module Undo module Serializer class ActiveModel VERSION = "0.0.2" def initialize(*args) options = args.extract_options! @serializer = args.first @serializer_source = options.fetch ...
a8aec78df7eae087b912808f912b9a92035a4062
Modules/Remote/IOSTL.remote.cmake
Modules/Remote/IOSTL.remote.cmake
itk_fetch_module(IOSTL "This module contains classes for reading and writing QuadEdgeMeshes using the STL (STereoLithography)file format. https://hdl.handle.net/10380/3452" GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKSTLMeshIO.git GIT_TAG f4723954fdfe294f84f69907e964b50e48b60218 )...
itk_fetch_module(IOSTL "This module contains classes for reading and writing QuadEdgeMeshes using the STL (STereoLithography)file format. https://hdl.handle.net/10380/3452" GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKSTLMeshIO.git GIT_TAG e681a38aba1d89561eec89584d80f62dd2affa23 )...
Update IOSTL to 2019-01-16 master
ENH: Update IOSTL to 2019-01-16 master Jon Haitz Legarreta Gorroño (3): ENH: Improve the `README` file. ENH: Add CI. DOC: Re-use `README.rst` info in `itk-module.cmake`. Matt McCormick (1): ENH: Enable mesh module factory registration
CMake
apache-2.0
LucasGandel/ITK,Kitware/ITK,LucasGandel/ITK,richardbeare/ITK,malaterre/ITK,malaterre/ITK,blowekamp/ITK,InsightSoftwareConsortium/ITK,fbudin69500/ITK,LucasGandel/ITK,vfonov/ITK,BRAINSia/ITK,richardbeare/ITK,InsightSoftwareConsortium/ITK,malaterre/ITK,malaterre/ITK,Kitware/ITK,fbudin69500/ITK,blowekamp/ITK,thewtex/ITK,ri...
cmake
## Code Before: itk_fetch_module(IOSTL "This module contains classes for reading and writing QuadEdgeMeshes using the STL (STereoLithography)file format. https://hdl.handle.net/10380/3452" GIT_REPOSITORY ${git_protocol}://github.com/InsightSoftwareConsortium/ITKSTLMeshIO.git GIT_TAG f4723954fdfe294f84f69907e964...
398f8778615201c7f9c76dd4c356597b1147f5f1
lib/openlogi/item.rb
lib/openlogi/item.rb
require "openlogi/base_object" require "openlogi/stock" require "openlogi/international_info" require "openlogi/boolean" module Openlogi class Item < BaseObject property :id property :code property :name property :price, coerce: Integer property :unit_price, coerce: Integer property :barcode ...
require "openlogi/base_object" require "openlogi/stock" require "openlogi/international_info" require "openlogi/boolean" module Openlogi class Item < BaseObject property :id property :code property :name property :price, coerce: Integer property :unit_price, coerce: Integer property :barcode ...
Add missing gift_wrapping_type property to Item
Add missing gift_wrapping_type property to Item
Ruby
mit
degica/openlogi,degica/openlogi
ruby
## Code Before: require "openlogi/base_object" require "openlogi/stock" require "openlogi/international_info" require "openlogi/boolean" module Openlogi class Item < BaseObject property :id property :code property :name property :price, coerce: Integer property :unit_price, coerce: Integer pr...
d08ee2781552e6dcbb5ab041032416889725032e
models/ApplicationConsole.php
models/ApplicationConsole.php
<?php namespace app\models; use Yii; use app\models\Config; use yii\console\Application; class ApplicationConsole extends Application { public function __construct($config) { parent::__construct($config); // Set name from database if not set by config file. if (!isset($config['name'])) { if (($name = Conf...
<?php namespace app\models; use Yii; use app\models\Config; use yii\console\Application; use yii\db\Exception as DBException; class ApplicationConsole extends Application { public function __construct($config) { parent::__construct($config); // If database if unavailable skip settings (initital install). try...
Make console work before initial install.
Make console work before initial install.
PHP
mpl-2.0
SingleSO/singleso,SingleSO/singleso
php
## Code Before: <?php namespace app\models; use Yii; use app\models\Config; use yii\console\Application; class ApplicationConsole extends Application { public function __construct($config) { parent::__construct($config); // Set name from database if not set by config file. if (!isset($config['name'])) { i...
a950065a4753c9303df1ba3b9180d7b6c6b188db
lib/timezone/net_http_client.rb
lib/timezone/net_http_client.rb
require 'uri' require 'net/http' module Timezone # A basic HTTP Client that handles requests to Geonames and Google. # # You can create your own version of this class if you want to use # a proxy or a different http library such as faraday. # # @example # Timezone::Lookup.config(:google) do |c| # ...
require 'uri' require 'net/http' module Timezone # @!visibility private # A basic HTTP Client that handles requests to Geonames and Google. # # You can create your own version of this class if you want to use # a proxy or a different http library such as faraday. # # @example # Timezone::Lookup.con...
Make http client docs private
[0.99] Make http client docs private
Ruby
mit
garyharan/timezone,panthomakos/timezone
ruby
## Code Before: require 'uri' require 'net/http' module Timezone # A basic HTTP Client that handles requests to Geonames and Google. # # You can create your own version of this class if you want to use # a proxy or a different http library such as faraday. # # @example # Timezone::Lookup.config(:goog...
fe62d5fdb49eb58a000e9c68e40594a5647a6fb8
example/index.css
example/index.css
/*----------------------------------------------------------------------------- | Copyright (c) 2014-2015, PhosphorJS Contributors | | Distributed under the terms of the BSD 3-Clause License. | | The full license is in the file LICENSE, distributed with this software. |--------------------------------------------------...
/*----------------------------------------------------------------------------- | Copyright (c) 2014-2015, PhosphorJS Contributors | | Distributed under the terms of the BSD 3-Clause License. | | The full license is in the file LICENSE, distributed with this software. |--------------------------------------------------...
Remove extra css in example
Remove extra css in example
CSS
bsd-3-clause
blink1073/phosphor-codemirror,blink1073/phosphor-codemirror,blink1073/phosphor-codemirror,blink1073/phosphor-codemirror
css
## Code Before: /*----------------------------------------------------------------------------- | Copyright (c) 2014-2015, PhosphorJS Contributors | | Distributed under the terms of the BSD 3-Clause License. | | The full license is in the file LICENSE, distributed with this software. |----------------------------------...
2acc6cd18e309434da21ca4e79e6f610b07ded62
scripts/build-android-signed.sh
scripts/build-android-signed.sh
cordova build android --verbose --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/android/build/outputs/apk/android-x86-release-unsigned.apk google_play jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/androi...
cordova build android --verbose --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/android/build/outputs/apk/android-x86-release-unsigned.apk google_play jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/androi...
Add zipalign to signing script
Add zipalign to signing script
Shell
mit
learning-layers/sardroid,learning-layers/sardroid,learning-layers/sardroid
shell
## Code Before: cordova build android --verbose --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore platforms/android/build/outputs/apk/android-x86-release-unsigned.apk google_play jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ~/aalto_android.keystore ...
894144b48b1e87c1d0781eae097ca47908a779e2
pixel-saver@deadalnix.me/metadata.json
pixel-saver@deadalnix.me/metadata.json
{"shell-version": ["3.4.2"], "uuid": "pixel-saver@deadalnix.me", "name": "Pixel Saver", "description": "Pixel Saver is designed to save pixel by fusing activity bar and title bar in a natural way"}
{"shell-version": ["3.4", "3.6", "3.8"], "uuid": "pixel-saver@deadalnix.me", "name": "Pixel Saver", "description": "Pixel Saver is designed to save pixel by fusing activity bar and title bar in a natural way"}
Enable for 3.4 to 3.8
Enable for 3.4 to 3.8
JSON
mit
deadalnix/pixel-saver,deadalnix/pixel-saver
json
## Code Before: {"shell-version": ["3.4.2"], "uuid": "pixel-saver@deadalnix.me", "name": "Pixel Saver", "description": "Pixel Saver is designed to save pixel by fusing activity bar and title bar in a natural way"} ## Instruction: Enable for 3.4 to 3.8 ## Code After: {"shell-version": ["3.4", "3.6", "3.8"], "uuid": "pi...
0a8471efa7c89d7eb0d472372f2b2ef9509ace85
CHANGES.rst
CHANGES.rst
============================== Turbulenz Python Tools Changes ============================== .. contents:: :local: .. _version-1.x-dev: 1.x-dev ------- 2013-05-17 - Update exportevents tool to support gzipped responses for efficient download of user metrics .. _version-1.0: 1.0 --- :release-date: 2013-05-...
============================== Turbulenz Python Tools Changes ============================== .. contents:: :local: .. _version-1.x-dev: 1.x-dev ------- 2013-05-17 - Fix exportevents tool when working with encrypted data stored in the local filesystem 2013-05-17 - Update exportevents tool to support gzipped...
Update changes for exportevents local file fix
Update changes for exportevents local file fix
reStructuredText
mit
turbulenz/turbulenz_tools
restructuredtext
## Code Before: ============================== Turbulenz Python Tools Changes ============================== .. contents:: :local: .. _version-1.x-dev: 1.x-dev ------- 2013-05-17 - Update exportevents tool to support gzipped responses for efficient download of user metrics .. _version-1.0: 1.0 --- :releas...
e40617d63554dc521062800c63ee81322f5b15f6
package.json
package.json
{ "name": "roat", "version": "0.0.0", "description": "Continuous integration server", "main": "index.js", "scripts": { "test": "node_modules/.bin/mocha -R spec" }, "repository": "git@github.com:brikteknologier/roat.git", "author": "Magnus Hoff <magnus.hoff@brik.no>", "private": true, "license": ...
{ "name": "roat", "version": "0.0.0", "description": "Continuous integration server", "main": "index.js", "scripts": { "test": "node_modules/.bin/mocha -R spec" }, "repository": "git@github.com:brikteknologier/roat.git", "author": "Magnus Hoff <magnus.hoff@brik.no>", "private": true, "license": ...
Use fixed version of mu2, until they accept the pull request or otherwise fixes the nextTick issue.
Use fixed version of mu2, until they accept the pull request or otherwise fixes the nextTick issue.
JSON
mit
brikteknologier/roat,PavelKonon/roat,brikteknologier/roat,PavelKonon/roat
json
## Code Before: { "name": "roat", "version": "0.0.0", "description": "Continuous integration server", "main": "index.js", "scripts": { "test": "node_modules/.bin/mocha -R spec" }, "repository": "git@github.com:brikteknologier/roat.git", "author": "Magnus Hoff <magnus.hoff@brik.no>", "private": tru...
f6045b9c65448252deb924ff3422fe61b8651d7f
main_test.go
main_test.go
package main import ( "testing" "github.com/kellydunn/golang-geo" ) func TestGeocode(t *testing.T) { query := "1600 amphitheatre parkway" expectedAddress := "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA" expectedLatitude, expectedLongitude := 37.4219998, -122.0839596 result, err := geocode(query, n...
package main import ( "testing" "github.com/kellydunn/golang-geo" ) func TestGeocode(t *testing.T) { query := "1600 amphitheatre parkway" expectedAddress := "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA" expectedLatitude, expectedLongitude := 37.4219998, -122.0839596 result, err := geocode(query, n...
Add benchmark for geocode function.
Add benchmark for geocode function.
Go
mit
zachlatta/geodude
go
## Code Before: package main import ( "testing" "github.com/kellydunn/golang-geo" ) func TestGeocode(t *testing.T) { query := "1600 amphitheatre parkway" expectedAddress := "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA" expectedLatitude, expectedLongitude := 37.4219998, -122.0839596 result, err := ...
92c4f662a22720138028c09fd599168aebd68031
.bumpversion.cfg
.bumpversion.cfg
[bumpversion] files = setup.py parse_type/__init__.py .bumpversion.cfg commit = True tag = True
[bumpversion] current_version = 0.3.2 files = setup.py parse_type/__init__.py .bumpversion.cfg commit = True tag = True
Add current_version to keep track of it.
Add current_version to keep track of it.
INI
bsd-3-clause
benthomasson/parse_type,jenisys/parse_type,benthomasson/parse_type,jenisys/parse_type
ini
## Code Before: [bumpversion] files = setup.py parse_type/__init__.py .bumpversion.cfg commit = True tag = True ## Instruction: Add current_version to keep track of it. ## Code After: [bumpversion] current_version = 0.3.2 files = setup.py parse_type/__init__.py .bumpversion.cfg commit = True tag = True
c9d33ef9a7f98798aec521e7f9e25e1db07bd077
ursgal/__init__.py
ursgal/__init__.py
from __future__ import absolute_import import sys import os import ursgal.uparams # this is for unorthodox queries of the params. # please use the unode functions or UParamsMapper # to access params since they are translated, # grouped and so on ... base_dir = os.path.dirname(__file__) from .umapmaster import UParam...
from __future__ import absolute_import import sys import os from packaging.version import parse as parse_version import ursgal.uparams # this is for unorthodox queries of the params. # please use the unode functions or UParamsMapper # to access params since they are translated, # grouped and so on ... base_dir = os....
Use `packaging.version.parser` for version parsing
Use `packaging.version.parser` for version parsing
Python
mit
ursgal/ursgal,ursgal/ursgal
python
## Code Before: from __future__ import absolute_import import sys import os import ursgal.uparams # this is for unorthodox queries of the params. # please use the unode functions or UParamsMapper # to access params since they are translated, # grouped and so on ... base_dir = os.path.dirname(__file__) from .umapmast...
5233745eaabae57bea6492608c909639cd9817b0
integration_tests/flutter_libs/test_driver/integration.dart
integration_tests/flutter_libs/test_driver/integration.dart
import 'dart:ffi'; import 'dart:io'; import 'package:flutter_driver/driver_extension.dart'; import 'package:test/test.dart'; import 'package:sqlite3/sqlite3.dart'; import 'package:sqlite3/src/ffi/ffi.dart' show char, Utf8Utils, PointerUtils; import 'package:sqlite3/open.dart'; typedef _sqlite3_compileoption_get_nativ...
import 'dart:ffi'; import 'dart:io'; import 'package:flutter_driver/driver_extension.dart'; import 'package:test/test.dart'; import 'package:sqlite3/sqlite3.dart'; import 'package:sqlite3/src/ffi/ffi.dart' show char, Utf8Utils, PointerUtils; import 'package:sqlite3/open.dart'; typedef _sqlite3_compileoption_get_nativ...
Fix infinite loop in test
Fix infinite loop in test
Dart
mit
simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart
dart
## Code Before: import 'dart:ffi'; import 'dart:io'; import 'package:flutter_driver/driver_extension.dart'; import 'package:test/test.dart'; import 'package:sqlite3/sqlite3.dart'; import 'package:sqlite3/src/ffi/ffi.dart' show char, Utf8Utils, PointerUtils; import 'package:sqlite3/open.dart'; typedef _sqlite3_compile...
ced218643784838d68961a926cc0dd18c3a3f01f
skald/geometry.py
skald/geometry.py
from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for addition and subtraction. """ _...
from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) class Rectangle(namedtuple("Rectangle", ["x0", "y0", "x1", "y1"])): def __contains__(self, other): """Check if this rectangle and `other` overlaps eachother. Essentially this is a bit of a hack to be able to write ...
Add intersection test for rectangles
Add intersection test for rectangles
Python
mit
bjornarg/skald,bjornarg/skald
python
## Code Before: from collections import namedtuple Size = namedtuple("Size", ["width", "height"]) Rectangle = namedtuple("Rectangle", ["x0", "y0", "x1", "y1"]) class Point(namedtuple("Point", ["x", "y"])): """Point in a two-dimensional space. Named tuple implementation that allows for addition and subtractio...
7b0f7f9c1ee4d8e7ee3d464a2e87c5d533935a06
rsrcs/js/Yks/libs/xslt.js
rsrcs/js/Yks/libs/xslt.js
var XML = { serialize:function(el){ if(window.XMLSerializer) return (new XMLSerializer()).serializeToString(el); return el.xml; }, makesoup:function(xml_str){ return $n("div").set('html', xml_str).getFirst(); } }; function transformer_xslt(xsl_lnk){ this.xsl_xml = xsl_lnk; if(Browse...
var XML = { serialize:function(el){ if(window.XMLSerializer) return (new XMLSerializer()).serializeToString(el); return el.xml; }, makesoup:function(xml_str){ return $n("div").set('html', xml_str);//.getFirst(); //dont <null><br/><box/></null> } }; function transformer_xslt(xsl_lnk){ th...
Fix bug for IE (firefox can deal with anonymous node for null, not ie)
Fix bug for IE (firefox can deal with anonymous node for null, not ie) git-svn-id: 4cd2d1688610a87757c9f4de95975a674329c79f@740 b8ca103b-dd03-488c-9448-c80b36131af2
JavaScript
mit
131/yks,131/yks,131/yks
javascript
## Code Before: var XML = { serialize:function(el){ if(window.XMLSerializer) return (new XMLSerializer()).serializeToString(el); return el.xml; }, makesoup:function(xml_str){ return $n("div").set('html', xml_str).getFirst(); } }; function transformer_xslt(xsl_lnk){ this.xsl_xml = xsl_ln...
317618595c91e802913b20352fb4d17f108d5bcb
engines/order_management/spec/services/order_management/stock/coordinator_spec.rb
engines/order_management/spec/services/order_management/stock/coordinator_spec.rb
require 'spec_helper' module OrderManagement module Stock describe Coordinator do let!(:order) { create(:order_with_line_items, distributor: create(:distributor_enterprise)) } subject { Coordinator.new(order) } context "packages" do it "builds, prioritizes and estimates" do ...
require 'spec_helper' module OrderManagement module Stock describe Coordinator do let!(:order) do build_stubbed( :order_with_line_items, distributor: build_stubbed(:distributor_enterprise) ) end subject { Coordinator.new(order) } context "packages" d...
Replace `create` with `build_stubbed` in coordinator model specs
Replace `create` with `build_stubbed` in coordinator model specs
Ruby
agpl-3.0
Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,m...
ruby
## Code Before: require 'spec_helper' module OrderManagement module Stock describe Coordinator do let!(:order) { create(:order_with_line_items, distributor: create(:distributor_enterprise)) } subject { Coordinator.new(order) } context "packages" do it "builds, prioritizes and estimat...
f66f4858816646f8f070910de63e11064a69d4e0
setup.py
setup.py
from setuptools import setup, find_packages import re #pattern = re.compile(r'^VERSION=(.+)$') #version = None #for line in open('Makefile'): # match = pattern.match(line) # if match is None: # continue # version = match.group(1) # break #if version is None: # raise EnvironmentError, '/^VERSION=/...
from setuptools import setup, find_packages import re #pattern = re.compile(r'^VERSION=(.+)$') #version = None #for line in open('Makefile'): # match = pattern.match(line) # if match is None: # continue # version = match.group(1) # break #if version is None: # raise EnvironmentError, '/^VERSION=/...
Include scripts in the PyPI package.
Include scripts in the PyPI package.
Python
bsd-2-clause
AndBicScadMedia/blueprint,nginxxx/blueprint,volcomism/blueprint,AndBicScadMedia/blueprint,nginxxx/blueprint,devstructure/blueprint,volcomism/blueprint,volcomism/blueprint,AndBicScadMedia/blueprint,devstructure/blueprint,nginxxx/blueprint
python
## Code Before: from setuptools import setup, find_packages import re #pattern = re.compile(r'^VERSION=(.+)$') #version = None #for line in open('Makefile'): # match = pattern.match(line) # if match is None: # continue # version = match.group(1) # break #if version is None: # raise EnvironmentErr...
b0a471d832d75681434f1eada16aee8dab0cfa95
src/Eloquent/Repository.php
src/Eloquent/Repository.php
<?php namespace Coreplex\Meta\Eloquent; use Coreplex\Meta\Contracts\Repository as Contract; use Coreplex\Meta\Exceptions\MetaGroupNotFoundException; class Repository implements Contract { /** * Find a meta group by it's identifier * * @param mixed $identifier * @return \Coreplex\Meta\Contrac...
<?php namespace Coreplex\Meta\Eloquent; use Coreplex\Meta\Contracts\Repository as Contract; use Coreplex\Meta\Contracts\Variant; use Coreplex\Meta\Exceptions\MetaGroupNotFoundException; class Repository implements Contract { /** * Find a meta group by it's identifier * * @param mixed $identifier...
Update the find method in the repository to work with variants
Update the find method in the repository to work with variants
PHP
mit
coreplex/meta
php
## Code Before: <?php namespace Coreplex\Meta\Eloquent; use Coreplex\Meta\Contracts\Repository as Contract; use Coreplex\Meta\Exceptions\MetaGroupNotFoundException; class Repository implements Contract { /** * Find a meta group by it's identifier * * @param mixed $identifier * @return \Corep...
f60980a571dc9da77a6718d889faf0b8a9b4b58b
src/Package.hs
src/Package.hs
module Package (Package (..), library, setCabal) where import Base import Util -- pkgPath is the path to the source code relative to the root data Package = Package { pkgName :: String, -- Examples: "deepseq", "Cabal/Cabal" pkgPath :: FilePath, -- "libraries/deepseq", "libraries/Cabal/Cabal...
module Package (Package (..), library, topLevel, setCabal) where import Base import Util -- pkgPath is the path to the source code relative to the root data Package = Package { pkgName :: String, -- Examples: "deepseq", "Cabal/Cabal" pkgPath :: FilePath, -- "libraries/deepseq", "libraries/C...
Add topLevel function to construct top-level packages like compiler.
Add topLevel function to construct top-level packages like compiler.
Haskell
bsd-3-clause
sdiehl/ghc,bgamari/shaking-up-ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,snowleopard/shaking-up-ghc,sdiehl/ghc,quchen/shaking-up-ghc,snowleopard/hadrian,sdiehl/ghc,sdiehl/ghc,izgzhen/hadrian
haskell
## Code Before: module Package (Package (..), library, setCabal) where import Base import Util -- pkgPath is the path to the source code relative to the root data Package = Package { pkgName :: String, -- Examples: "deepseq", "Cabal/Cabal" pkgPath :: FilePath, -- "libraries/deepseq", "libra...
c658218de6063c5838d01b7166a6e869c32f09e9
README.md
README.md
hex-grid ======== A library for working with hexagonal grids. Running the tests ----------------- After installing development dependencies using `npm install` you should be able to run the tests using: ``` mocha ```
hex-grid.js =========== A JavaScript library for working with hexagonal grids. Running the tests ----------------- After installing development dependencies using `npm install` you should be able to run the tests using: ``` mocha ```
Rename from hex-grid to hex-grid.js
Rename from hex-grid to hex-grid.js
Markdown
isc
euoia/hex-grid.js,euoia/hex-grid.js
markdown
## Code Before: hex-grid ======== A library for working with hexagonal grids. Running the tests ----------------- After installing development dependencies using `npm install` you should be able to run the tests using: ``` mocha ``` ## Instruction: Rename from hex-grid to hex-grid.js ## Code After: hex-grid.js =====...
905f14b88013921e84487c9da949d0107db4f165
app/controllers/islay_shop/admin/promotions_controller.rb
app/controllers/islay_shop/admin/promotions_controller.rb
module IslayShop module Admin class PromotionsController < IslayShop::Admin::ApplicationController resourceful :promotion header 'Orders - Promotions' nav_scope :orders def index @promotions = Promotion.summary.page(params[:page]).filtered(params[:filter]).sorted(params[:sort]) ...
module IslayShop module Admin class PromotionsController < IslayShop::Admin::ApplicationController resourceful :promotion header 'Orders - Promotions' nav_scope :orders def index @promotions = Promotion.summary.page(params[:page]).filtered(params[:filter]).sorted(params[:sort]) ...
Fix sorting of SKUs when editing promotion.
Fix sorting of SKUs when editing promotion.
Ruby
mit
spookandpuff/islay-shop,spookandpuff/islay-shop,spookandpuff/islay-shop
ruby
## Code Before: module IslayShop module Admin class PromotionsController < IslayShop::Admin::ApplicationController resourceful :promotion header 'Orders - Promotions' nav_scope :orders def index @promotions = Promotion.summary.page(params[:page]).filtered(params[:filter]).sorted(p...
9b4e2dbe974f6759f7922ea68e3ded4292122393
coding/emacs/NOTES.txt
coding/emacs/NOTES.txt
________________________________________________________________________ This file is part of Logtalk <http://logtalk.org/> Logtalk is free software. You can redistribute it and/or modify it under the terms of the FSF GNU General Public License 3 (plus some additional terms per section 7). Consult the `LICE...
________________________________________________________________________ This file is part of Logtalk <http://logtalk.org/> Logtalk is free software. You can redistribute it and/or modify it under the terms of the FSF GNU General Public License 3 (plus some additional terms per section 7). Consult the `LICE...
Add note on Emacs regular expression limitations for syntax coloring
Add note on Emacs regular expression limitations for syntax coloring
Text
apache-2.0
LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3,LogtalkDotOrg/logtalk3
text
## Code Before: ________________________________________________________________________ This file is part of Logtalk <http://logtalk.org/> Logtalk is free software. You can redistribute it and/or modify it under the terms of the FSF GNU General Public License 3 (plus some additional terms per section 7). C...
12a7fa56d420d71901e39c37a2b5cadfd653f622
SetTests/MultisetCountTests.swift
SetTests/MultisetCountTests.swift
// Copyright (c) 2015 Rob Rix. All rights reserved. import Set import XCTest final class MultisetCountTests: XCTestCase { func testCountSumsElementsMultiplicities() { XCTAssertEqual(Multiset(0, 1, 1).count, 3) } func testCountOfAnElementIsItsMultiplicity() { XCTAssertEqual(Multiset(0, 1, 1).count(1), 2) } ...
// Copyright (c) 2015 Rob Rix. All rights reserved. import Set import XCTest final class MultisetCountTests: XCTestCase { func testCountSumsElementsMultiplicities() { XCTAssertEqual(Multiset(0, 1, 1).count, 3) } func testCountOfAnElementIsItsMultiplicity() { XCTAssertEqual(Multiset(0, 1, 1).count(1), 2) } ...
Test that inserting elements makes a multiset non-empty.
Test that inserting elements makes a multiset non-empty.
Swift
mit
madbat/Set,robrix/Set,natecook1000/Set,natecook1000/Set,madbat/Set,robrix/Set,natecook1000/Set,madbat/Set,robrix/Set
swift
## Code Before: // Copyright (c) 2015 Rob Rix. All rights reserved. import Set import XCTest final class MultisetCountTests: XCTestCase { func testCountSumsElementsMultiplicities() { XCTAssertEqual(Multiset(0, 1, 1).count, 3) } func testCountOfAnElementIsItsMultiplicity() { XCTAssertEqual(Multiset(0, 1, 1).c...
c450c04bc5cfca30438ffb2bb0f9d43bb443c304
app/containers/App/saga.js
app/containers/App/saga.js
// auth sagas live here import { put, call, takeEvery } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import client from 'utils/client'; import { SESSION_CHECKED, RELOAD_SESSION, } from './constants'; import { SEARCH_CHANGED } from '../SearchPage/constants'; export function* checkSession() ...
// auth sagas live here import { put, call, takeEvery } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import client from 'utils/client'; import { SESSION_CHECKED, RELOAD_SESSION, } from './constants'; import { SEARCH_CHANGED } from '../SearchPage/constants'; export function* checkSession() ...
Fix search input redirect to gqlsearch
Fix search input redirect to gqlsearch
JavaScript
mit
clinwiki-org/clinwiki,clinwiki-org/clinwiki,clinwiki-org/cw-app,clinwiki-org/clinwiki,clinwiki-org/cw-app,clinwiki-org/clinwiki,clinwiki-org/clinwiki,clinwiki-org/cw-app,clinwiki-org/cw-app
javascript
## Code Before: // auth sagas live here import { put, call, takeEvery } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import client from 'utils/client'; import { SESSION_CHECKED, RELOAD_SESSION, } from './constants'; import { SEARCH_CHANGED } from '../SearchPage/constants'; export function*...
1a44936a957c4b0075194a869895a24bae32117b
cmd/kubectl-gke-exec-auth-plugin/main.go
cmd/kubectl-gke-exec-auth-plugin/main.go
package main import ( "encoding/json" "fmt" "github.com/spf13/pflag" "k8s.io/cloud-provider-gcp/cmd/kubectl-gke-exec-auth-plugin/provider" "k8s.io/component-base/version/verflag" ) func main() { pflag.Parse() verflag.PrintAndExitIfRequested() ec, err := provider.ExecCredential() if err != nil { msg := fm...
package main import ( "encoding/json" "fmt" "github.com/spf13/pflag" "k8s.io/cloud-provider-gcp/cmd/kubectl-gke-exec-auth-plugin/provider" "k8s.io/component-base/version/verflag" ) func main() { pflag.Parse() verflag.PrintAndExitIfRequested() ec, err := provider.ExecCredential() if err != nil { msg := fm...
Handle error message from json formatting.
Handle error message from json formatting.
Go
apache-2.0
kubernetes/cloud-provider-gcp,kubernetes/cloud-provider-gcp
go
## Code Before: package main import ( "encoding/json" "fmt" "github.com/spf13/pflag" "k8s.io/cloud-provider-gcp/cmd/kubectl-gke-exec-auth-plugin/provider" "k8s.io/component-base/version/verflag" ) func main() { pflag.Parse() verflag.PrintAndExitIfRequested() ec, err := provider.ExecCredential() if err != n...
8260366dd2fae9ef15a8da52451757ef32e88aca
docs/reference/commandline/stack_ls.md
docs/reference/commandline/stack_ls.md
--- title: "stack ls" description: "The stack ls command description and usage" keywords: "stack, ls" --- <!-- This file is maintained within the docker/docker Github repository at https://github.com/docker/docker/. Make all pull requests against that repo. If you see this file in another repository, co...
--- title: "stack ls" description: "The stack ls command description and usage" keywords: "stack, ls" --- <!-- This file is maintained within the docker/docker Github repository at https://github.com/docker/docker/. Make all pull requests against that repo. If you see this file in another repository, co...
Add aliases and options to `docker stack ls` docs
Add aliases and options to `docker stack ls` docs Signed-off-by: Harald Albers <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@albersweb.de>
Markdown
apache-2.0
dsheets/moby,michael-holzheu/docker,harche/docker,ripcurld0/moby,konstruktoid/docker-upstream,darrenstahlmsft/moby,rremer/moby,fcrisciani/docker,darrenstahlmsft/docker,kolyshkin/moby,ColinHebert/docker,AkihiroSuda/docker,pramodhkp/moby,darrenstahlmsft/docker,dims/docker,srust/docker,scotttlin/docker,cpuguy83/docker,har...
markdown
## Code Before: --- title: "stack ls" description: "The stack ls command description and usage" keywords: "stack, ls" --- <!-- This file is maintained within the docker/docker Github repository at https://github.com/docker/docker/. Make all pull requests against that repo. If you see this file in anothe...
96e794abfd17ea3209cbf9697ee7f5284aa1b535
package.json
package.json
{ "name": "pipeline.sjs", "version": "1.0.2", "license": "MIT", "homepage": "https://github.com/adlawson/pipeline.sjs", "description": "Naturally expressive functional composition", "keywords": [ "compose", "composition", "functional", "pipe", "pipeline", ...
{ "name": "pipeline.sjs", "version": "1.0.2", "license": "MIT", "homepage": "https://github.com/adlawson/pipeline.sjs", "description": "Naturally expressive functional composition", "keywords": [ "compose", "composition", "functional", "pipe", "pipeline", ...
Add make target to test script
Add make target to test script
JSON
mit
adlawson/sweetjs-pipeline
json
## Code Before: { "name": "pipeline.sjs", "version": "1.0.2", "license": "MIT", "homepage": "https://github.com/adlawson/pipeline.sjs", "description": "Naturally expressive functional composition", "keywords": [ "compose", "composition", "functional", "pipe", ...
9d76bdcfe2faf7142a7da4da5ad9c9ac5c8beb33
.vim/vundle.vim
.vim/vundle.vim
filetype off set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#rc() Plugin 'altercation/vim-colors-solarized' Plugin 'airblade/vim-gitgutter' Plugin 'derekwyatt/vim-scala' Plugin 'gmarik/Vundle.vim' Plugin 'groenewege/vim-less' Plugin 'jalvesaq/R-Vim-runtime' Plugin 'jalvesaq/Nvim-R' Plugin 'jistr/vim-nerdtree-tabs' Plu...
filetype off set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#rc() Plugin 'altercation/vim-colors-solarized' Plugin 'airblade/vim-gitgutter' Plugin 'derekwyatt/vim-scala' Plugin 'gmarik/Vundle.vim' Plugin 'groenewege/vim-less' Plugin 'jalvesaq/R-Vim-runtime' Plugin 'jalvesaq/Nvim-R' Plugin 'jistr/vim-nerdtree-tabs' Plu...
Use own Snakemake Vim configuration
Use own Snakemake Vim configuration
VimL
apache-2.0
klmr/.files,klmr/.files,klmr/.files
viml
## Code Before: filetype off set rtp+=~/.vim/bundle/Vundle.vim/ call vundle#rc() Plugin 'altercation/vim-colors-solarized' Plugin 'airblade/vim-gitgutter' Plugin 'derekwyatt/vim-scala' Plugin 'gmarik/Vundle.vim' Plugin 'groenewege/vim-less' Plugin 'jalvesaq/R-Vim-runtime' Plugin 'jalvesaq/Nvim-R' Plugin 'jistr/vim-ne...
db8c94ce58334b3a686359db57575ec96fd55e42
install/osx.sh
install/osx.sh
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" brew tap caskroom/cask brew install brew-cask brew tap caskroom/versions # Install brew & brew-cask packages source "$DOTFILES_DIR/install/brew.sh" source "$DOTFILES_DIR/install/brew-cask.sh" # Install bash (with Homebrew) source "$DOTFILE...
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew tap caskroom/cask brew install brew-cask brew tap caskroom/versions # Install brew & brew-cask packages source "$DOTFILES_DIR/install/brew.sh" source "$DOTFILES_DIR/install/brew-cask.sh" # Install bash (with Homebrew) so...
Update brew install script location
Update brew install script location
Shell
mit
destenson/dotfiles,destenson/dotfiles,initialkommit/dotfiles,davidpfahler/dotfiles,davidpfahler/dotfiles,destenson/dotfiles
shell
## Code Before: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" brew tap caskroom/cask brew install brew-cask brew tap caskroom/versions # Install brew & brew-cask packages source "$DOTFILES_DIR/install/brew.sh" source "$DOTFILES_DIR/install/brew-cask.sh" # Install bash (with Homebrew) ...
86ed5a8a6cd2d75753f4d22bcc919e14c98a889b
app/controllers/carto/api/public/user_public_profile_presenter.rb
app/controllers/carto/api/public/user_public_profile_presenter.rb
module Carto module Api module Public class UserPublicProfilePresenter < UserPublicPresenter def initialize(user) @user = user end def to_hash org_hash = OrganizationPublicProfilePresenter.new(@user.organization).to_hash if @user.has_organization? sup...
module Carto module Api module Public class UserPublicProfilePresenter < UserPublicPresenter def initialize(user) @user = user end def to_hash org_hash = OrganizationPublicProfilePresenter.new(@user.organization).to_hash if @user.has_organization? sup...
Add Maps API v2 related config to authenticated v4/me endpoint
Add Maps API v2 related config to authenticated v4/me endpoint
Ruby
bsd-3-clause
CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb
ruby
## Code Before: module Carto module Api module Public class UserPublicProfilePresenter < UserPublicPresenter def initialize(user) @user = user end def to_hash org_hash = OrganizationPublicProfilePresenter.new(@user.organization).to_hash if @user.has_organization...
8d1cd85bcb37f11026c3e850cee21a818523dae3
app/views/user/_change_receive_email.rhtml
app/views/user/_change_receive_email.rhtml
<% form_tag(:controller=>"user", :action=>"set_receive_email_alerts") do %> <% if @user.receive_email_alerts %> <%= _('You are currently receiving notification of new activity on your wall by email.', :wall_url => show_user_wall_path) %> <%= hidden_field_tag 'receive_email_alerts', 'false' %> <%= submit_tag _("T...
<% form_tag(:controller=>"user", :action=>"set_receive_email_alerts") do %> <div> <% if @user.receive_email_alerts %> <%= _('You are currently receiving notification of new activity on your wall by email.', :wall_url => show_user_wall_path) %> <%= hidden_field_tag 'receive_email_alerts', 'false' %> <%= submit_t...
Fix "follow" toolbox HTML to be valid 4.01 transitional
Fix "follow" toolbox HTML to be valid 4.01 transitional
RHTML
agpl-3.0
andreicristianpetcu/alaveteli,datauy/alaveteli,andreicristianpetcu/alaveteli_old,petterreinholdtsen/alaveteli,TEDICpy/QueremoSaber,sarhane/alaveteli-test,obshtestvo/alaveteli-bulgaria,datauy/alaveteli,codeforcroatia/alaveteli,4bic/alaveteli,andreicristianpetcu/alaveteli_old,andreicristianpetcu/alaveteli_old,codeforcroa...
rhtml
## Code Before: <% form_tag(:controller=>"user", :action=>"set_receive_email_alerts") do %> <% if @user.receive_email_alerts %> <%= _('You are currently receiving notification of new activity on your wall by email.', :wall_url => show_user_wall_path) %> <%= hidden_field_tag 'receive_email_alerts', 'false' %> <%=...
fbd865887888ae61866490f849d88e3109f36543
.travis.yml
.travis.yml
addons: postgresql: "9.1" language: python python: - "2.7" env: - DJANGO=Django==1.4.10 install: - pip install -q $DJANGO --use-mirrors - pip install -r requirements.txt --use-mirrors # Django 1.4 requires a template_postgis, so install old way before_script: # - sudo apt-get install libgeoip-dev # ...
addons: postgresql: "9.1" language: python python: - "2.7" env: - DJANGO=Django==1.4.10 install: - pip install -q $DJANGO --use-mirrors - pip install -r requirements.txt --use-mirrors before_script: - psql -U postgres -c "create database jmbo_twitter encoding 'UTF8'" script: python setup.py test
Remove cruft from Travis conf
Remove cruft from Travis conf
YAML
bsd-3-clause
praekelt/jmbo-twitter,praekelt/jmbo-twitter,praekelt/jmbo-twitter
yaml
## Code Before: addons: postgresql: "9.1" language: python python: - "2.7" env: - DJANGO=Django==1.4.10 install: - pip install -q $DJANGO --use-mirrors - pip install -r requirements.txt --use-mirrors # Django 1.4 requires a template_postgis, so install old way before_script: # - sudo apt-get install...
bfb3e28e8b7cc725dafa7e5dda47cf633ec49d3b
command/sqlplus/README.md
command/sqlplus/README.md
sqlplus is the command line interface to an Oracle database. Apart from the "connect" examples, the rest are done when logged in. ## Connect to database as SYSDBA sqlplus / as sysdba ## Quit sqlplus exit ## View table details describe my_table_name Prints "Name", "Null?" and "Type".
sqlplus is the command line interface to an Oracle database. Apart from the "connect" examples, the rest are done when logged in. ## Connect to database as SYSDBA sqlplus / as sysdba ## Quit sqlplus exit ## View table details describe my_table_name Prints "Name", "Null?" and "Type". From: [How do I list...
Add reference to sqlplus describe
Add reference to sqlplus describe
Markdown
mit
MattMS/shelp
markdown
## Code Before: sqlplus is the command line interface to an Oracle database. Apart from the "connect" examples, the rest are done when logged in. ## Connect to database as SYSDBA sqlplus / as sysdba ## Quit sqlplus exit ## View table details describe my_table_name Prints "Name", "Null?" and "Type". ## I...
5d9c81a2fe8feb9eace90adb7bd653ccd3b8f339
app/views/shared/_yin_yang_logo.html.erb
app/views/shared/_yin_yang_logo.html.erb
<script type="text/javascript"> 'use strict'; $(() => { const yinYang = $('#yin-yang-logo'); yinYang.click(() => window.location.href = '/dojo/index'); cd.createTip(yinYang, 'go back to the home page'); }); </script> <span id="yin-yang-logo"> <img src="/images/cyber-dojo.png" /> </span>
<script type="text/javascript"> 'use strict'; $(() => { const yinYang = $('#yin-yang-logo'); yinYang.click(() => window.location.href = '/'); cd.createTip(yinYang, 'go back to the home page'); }); </script> <span id="yin-yang-logo"> <img src="/images/cyber-dojo.png" /> </span>
Use / for home page URL on top-left yin-yang logo
Use / for home page URL on top-left yin-yang logo
HTML+ERB
bsd-2-clause
cyber-dojo/web,cyber-dojo/web,cyber-dojo/web,cyber-dojo/web
html+erb
## Code Before: <script type="text/javascript"> 'use strict'; $(() => { const yinYang = $('#yin-yang-logo'); yinYang.click(() => window.location.href = '/dojo/index'); cd.createTip(yinYang, 'go back to the home page'); }); </script> <span id="yin-yang-logo"> <img src="/images/cyber-dojo.png" /> </span> ## ...
f857043c884b01ded77a6bf486c692f3f68c593e
README.md
README.md
Dine Out helps you to find a nearby place to party/dine at or order from. You can sort the places by 14 different categories and view their location and other info on google maps. Dine Out uses google maps api and zomato api to retrieve the desired restaurants info from zomato's database and display them on t...
Dine Out helps you to find a nearby place to party/dine at or order from. You can sort the places by 14 different categories and view their location and other info on google maps. Dine Out uses google maps api and zomato api to retrieve the desired restaurants info from zomato's database and display them on t...
Add site link to readme
Add site link to readme
Markdown
mit
manas94gupta/Dine-Out,manas94gupta/Dine-Out
markdown
## Code Before: Dine Out helps you to find a nearby place to party/dine at or order from. You can sort the places by 14 different categories and view their location and other info on google maps. Dine Out uses google maps api and zomato api to retrieve the desired restaurants info from zomato's database and d...
d18c92e171c7525165672f999711fec6e12fb20b
Publish-Release.ps1
Publish-Release.ps1
param ( [Parameter(Mandatory=$true)][string]$apiKey ) $branch = invoke-expression "git branch --show-current" if ($branch -ne 'master') { Write-Error "Publishing only allowed from master branch" exit } $projPaths = @( "." ) # Ensure everything is built Write-Verbose "Pack projects" $projPaths | %{ ...
param ( [Parameter(Mandatory=$true)][string]$apiKey ) $branch = invoke-expression "git branch --show-current" if ($branch -ne 'master') { Write-Error "Publishing only allowed from master branch" exit } $projPaths = @( "./AMT.LinqExtensions" ) # Ensure everything is built Write-Verbose "Pack projects...
Set path in Publish script
Set path in Publish script
PowerShell
apache-2.0
AltaModaTech/LINQExtensions
powershell
## Code Before: param ( [Parameter(Mandatory=$true)][string]$apiKey ) $branch = invoke-expression "git branch --show-current" if ($branch -ne 'master') { Write-Error "Publishing only allowed from master branch" exit } $projPaths = @( "." ) # Ensure everything is built Write-Verbose "Pack projects" $...
529c849b3b7ef2c99aa9d4ef372777f6de0acdc1
lib/git_fame/result.rb
lib/git_fame/result.rb
module GitFame class Result < Struct.new(:data, :success?) def to_s data end end end
module GitFame class Result < Struct.new(:data, :success) def to_s; data; end def success?; success; end end end
Remove ? in struct method for 1.9.2 compatibility
Remove ? in struct method for 1.9.2 compatibility
Ruby
mit
oleander/git-fame-rb
ruby
## Code Before: module GitFame class Result < Struct.new(:data, :success?) def to_s data end end end ## Instruction: Remove ? in struct method for 1.9.2 compatibility ## Code After: module GitFame class Result < Struct.new(:data, :success) def to_s; data; end def success?; success; end en...
b7460934cb537f3ecce5631111d81dc404efac5a
playbooks/tasks/lb-all.yml
playbooks/tasks/lb-all.yml
--- - name: Install Haproxy Rsyslog Config template: src="haproxy-rsyslog.conf.j2" dest="/etc/rsyslog.d/haproxy.conf" - name: Restart Rsyslog service: name="rsyslog" state="restarted"
--- - name: Ensure Haproxy Chroot Dev Dir Exists file: name: "{{ haproxy_global.chroot }}/dev" state: directory - name: Install Haproxy Rsyslog Config template: src="haproxy-rsyslog.conf.j2" dest="/etc/rsyslog.d/haproxy.conf" - name: Restart Rsyslog service: name="rsyslog" state="resta...
Make haproxy chroot/dev folder so rsyslog can create log device
Make haproxy chroot/dev folder so rsyslog can create log device
YAML
mit
nexpoehler/ansible-playbook-cloud-app
yaml
## Code Before: --- - name: Install Haproxy Rsyslog Config template: src="haproxy-rsyslog.conf.j2" dest="/etc/rsyslog.d/haproxy.conf" - name: Restart Rsyslog service: name="rsyslog" state="restarted" ## Instruction: Make haproxy chroot/dev folder so rsyslog can create log device ## Code After: ...
f0faa8b4531759620b74f17f07ddfd2930d99fb1
.travis.yml
.travis.yml
sudo: false language: perl addons: apt: packages: - libdb-dev - libgd2-noxpm-dev install: - cpanm --notest GD::Image - cpanm --notest git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server jshint script: - node src/dojo/dojo.js load=build --require "src/JBr...
sudo: false language: perl addons: apt: packages: - libdb-dev - libgd2-noxpm-dev install: - cpanm --notest GD::Image Text::Markdown DateTime - cpanm --notest git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server jshint script: - node src/dojo/dojo.js load=...
Add the libs for the makefile
Add the libs for the makefile
YAML
lgpl-2.1
Arabidopsis-Information-Portal/jbrowse,Arabidopsis-Information-Portal/jbrowse,GMOD/jbrowse,erasche/jbrowse,GMOD/jbrowse,erasche/jbrowse,nathandunn/jbrowse,erasche/jbrowse,erasche/jbrowse,GMOD/jbrowse,Arabidopsis-Information-Portal/jbrowse,Arabidopsis-Information-Portal/jbrowse,erasche/jbrowse,GMOD/jbrowse,erasche/jbrow...
yaml
## Code Before: sudo: false language: perl addons: apt: packages: - libdb-dev - libgd2-noxpm-dev install: - cpanm --notest GD::Image - cpanm --notest git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server jshint script: - node src/dojo/dojo.js load=build --...
6e2db5de1cdc512e4338a9ba7f696af3139347c1
src/components/courses-list/courses-list.vue
src/components/courses-list/courses-list.vue
<template src='./courses-list.html'></template> <style scoped src='./courses-list.css'></style> <script> import courseCard from '../course-card/course-card' import gql from 'graphql-tag' // GraphQL query // const courseList = gql` // query CourseList($test: String!) { // courses(title: $test) // } // ` ...
<template src='./courses-list.html'></template> <style scoped src='./courses-list.css'></style> <script> import courseCard from '../course-card/course-card' import gql from 'graphql-tag' // GraphQL query // const courseList = gql` // query CourseList($test: String!) { // courses(title: $test) // } // ` ...
Add course id to course-list
Add course id to course-list
Vue
apache-2.0
libre-forge/vijecnica,libre-forge/vijecnica
vue
## Code Before: <template src='./courses-list.html'></template> <style scoped src='./courses-list.css'></style> <script> import courseCard from '../course-card/course-card' import gql from 'graphql-tag' // GraphQL query // const courseList = gql` // query CourseList($test: String!) { // courses(title: $tes...
547c886a7ee65b55d30dcf3822d3edf6d1a04f88
app/config/routing.yml
app/config/routing.yml
sylius_shop: resource: "@SyliusShopBundle/Resources/config/routing.yml" sylius_admin: resource: "@SyliusAdminBundle/Resources/config/routing.yml" prefix: /admin sylius_api: resource: "@SyliusApiBundle/Resources/config/routing/main.yml" prefix: /api
sylius_admin_dashboard_redirect: path: /admin defaults: _controller: FrameworkBundle:Redirect:redirect route: sylius_admin_dashboard permanent: true sylius_shop: resource: "@SyliusShopBundle/Resources/config/routing.yml" sylius_admin: resource: "@SyliusAdminBundle/Resources/co...
Fix admin without a slash sufix path
[Admin] Fix admin without a slash sufix path
YAML
mit
Lowlo/Sylius,jjanvier/Sylius,torinaki/Sylius,sweoggy/Sylius,foobarflies/Sylius,ylastapis/Sylius,Zales0123/Sylius,NeverResponse/Sylius,ezecosystem/Sylius,gabiudrescu/Sylius,davalb/Sylius,101medialab/Sylius,vihuvac/Sylius,Pitoune/Sylius,gruberro/Sylius,gorkalaucirica/Sylius,Niiko/Sylius,danut007ro/Sylius,videni/Sylius,mh...
yaml
## Code Before: sylius_shop: resource: "@SyliusShopBundle/Resources/config/routing.yml" sylius_admin: resource: "@SyliusAdminBundle/Resources/config/routing.yml" prefix: /admin sylius_api: resource: "@SyliusApiBundle/Resources/config/routing/main.yml" prefix: /api ## Instruction: [Admin] Fix...
9be7b5a049e47eadeb5e5e5662cf3f30e45c54dd
js/contribjs.js
js/contribjs.js
console.log('eu.wemove.contribjs');
// set default amount based on param donation_amount in url var name = 'donation_amount'; var da = decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; if (da > 0) { da = da.replace('.', '\\.'); jQuery(".price-set-row input[data-a...
Set default amount based on param donation_amount in url
Set default amount based on param donation_amount in url
JavaScript
agpl-3.0
WeMoveEU/contribjs,WeMoveEU/contribjs
javascript
## Code Before: console.log('eu.wemove.contribjs'); ## Instruction: Set default amount based on param donation_amount in url ## Code After: // set default amount based on param donation_amount in url var name = 'donation_amount'; var da = decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exe...
ab0fd99e1c2c336cd5ce68e5fdb8a58384bfa794
elasticsearch.py
elasticsearch.py
import json import requests ES_HOST = 'localhost' ES_PORT = '9200' ELASTICSEARCH = 'http://{0}:{1}'.format(ES_HOST, ES_PORT) def find_indices(): """Find indices created by logstash.""" url = ELASTICSEARCH + '/_search' r = requests.get(url, params={'_q': '_index like logstash%'}) return sorted(res['_i...
import json import requests ES_HOST = 'localhost' ES_PORT = '9200' ELASTICSEARCH = 'http://{0}:{1}'.format(ES_HOST, ES_PORT) def find_indices(): """Find indices created by logstash.""" url = ELASTICSEARCH + '/_search' r = requests.get(url, params={'_q': '_index like logstash%'}) return sorted(res['_i...
Handle the case where there are no logs
Handle the case where there are no logs
Python
apache-2.0
mancdaz/rpc-openstack,busterswt/rpc-openstack,npawelek/rpc-maas,git-harry/rpc-openstack,sigmavirus24/rpc-openstack,jpmontez/rpc-openstack,mattt416/rpc-openstack,xeregin/rpc-openstack,busterswt/rpc-openstack,stevelle/rpc-openstack,xeregin/rpc-openstack,miguelgrinberg/rpc-openstack,cfarquhar/rpc-openstack,xeregin/rpc-ope...
python
## Code Before: import json import requests ES_HOST = 'localhost' ES_PORT = '9200' ELASTICSEARCH = 'http://{0}:{1}'.format(ES_HOST, ES_PORT) def find_indices(): """Find indices created by logstash.""" url = ELASTICSEARCH + '/_search' r = requests.get(url, params={'_q': '_index like logstash%'}) retur...
6c26bc4f729200710ec0cf6df04fadefa8094de8
lib/codeclimate_ci/configuration.rb
lib/codeclimate_ci/configuration.rb
require 'git' module CodeclimateCi class Configuration OPTIONS = %i(codeclimate_api_token repo_id branch_name retry_count sleep_time) DEFAULTS = { 'retry_count' => '3', 'sleep_time' => '5' } attr_accessor(*OPTIONS) def load_from_options(options) OPTIONS.each do |option| ...
require 'git' module CodeclimateCi class Configuration OPTIONS = %i(codeclimate_api_token repo_id branch_name retry_count sleep_time) DEFAULTS = { 'retry_count' => '3', 'sleep_time' => '5' } attr_accessor(*OPTIONS) def load_from_options(options) OPTIONS.each do |option| ...
Refactor branch fetching method in Configuration class
Refactor branch fetching method in Configuration class
Ruby
mit
fs/codeclimate_ci,fs/codeclimate_ci
ruby
## Code Before: require 'git' module CodeclimateCi class Configuration OPTIONS = %i(codeclimate_api_token repo_id branch_name retry_count sleep_time) DEFAULTS = { 'retry_count' => '3', 'sleep_time' => '5' } attr_accessor(*OPTIONS) def load_from_options(options) OPTIONS.each do...
840ac3c1902107eba772b7097f69467ca8bff9e3
app/scripts/lib/handlebars-helpers.coffee
app/scripts/lib/handlebars-helpers.coffee
require [ "handlebars" ], ( Handlebars ) -> helpers = highlightMatches: (match) -> result = match.wrap (match) -> "<span class=\"match\">#{match}</span>" new Handlebars.SafeString result prettyUrl: (url) -> url.replace /^((http|https):\/\/)?(www.)?/, "" Handlebars.registerHe...
require [ "handlebars" ], ( Handlebars ) -> helpers = highlightMatches: (match) -> result = match.wrap (match) -> "<span class=\"match\">#{match}</span>" new Handlebars.SafeString result prettyUrl: (url) -> url.replace(/^((http|https):\/\/)?(www.)?/, "") .replace(/\/$/...
Remove trailing slashes and HTML file extension from prettyfied URLs
Remove trailing slashes and HTML file extension from prettyfied URLs
CoffeeScript
mit
JoelBesada/Backtick
coffeescript
## Code Before: require [ "handlebars" ], ( Handlebars ) -> helpers = highlightMatches: (match) -> result = match.wrap (match) -> "<span class=\"match\">#{match}</span>" new Handlebars.SafeString result prettyUrl: (url) -> url.replace /^((http|https):\/\/)?(www.)?/, "" Handl...