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
4f3bd077ee18a307e4692681c47587eb5128221b
views/index.slim
views/index.slim
doctype html html head meta charset="utf-8" meta name="apple-mobile-web-app-capable" content="yes" meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" meta name="viewport" content="initial-scale=1,maximum-scale=1,minimal-ui" title tottori.2574.jp script src="https://a...
doctype html html head meta charset="utf-8" meta name="apple-mobile-web-app-capable" content="yes" meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" meta name="viewport" content="initial-scale=1,maximum-scale=1,minimal-ui" title tottori.2574.jp link href="//api.tile...
Change the order of loading of scripts
Change the order of loading of scripts
Slim
mit
mh61503891/2574,mh61503891/2574
slim
## Code Before: doctype html html head meta charset="utf-8" meta name="apple-mobile-web-app-capable" content="yes" meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" meta name="viewport" content="initial-scale=1,maximum-scale=1,minimal-ui" title tottori.2574.jp scrip...
29bbc596487ec5a8f7f046d5c916fa8ec639aa6d
.travis.yml
.travis.yml
language: erlang otp_release: - 17.1 sudo: false before_install: - wget http://s3.hex.pm/builds/elixir/master.zip - unzip -d elixir master.zip before_script: - export PATH=`pwd`/elixir/bin:$PATH - yes | mix deps.get - mix deps.compile - mix IElixir test_connection_file script: mix test
language: erlang otp_release: - 17.1 sudo: false before_install: - wget http://s3.hex.pm/builds/elixir/master.zip - unzip -d elixir master.zip before_script: - export PATH=`pwd`/elixir/bin:$PATH - yes | mix deps.get - mix deps.compile # Integration tests are not configured yet # - configuring virtualenv...
Remove running mix project because application is listening and never shutdown
Remove running mix project because application is listening and never shutdown
YAML
mit
pprzetacznik/ielixir,milmazz/ielixir
yaml
## Code Before: language: erlang otp_release: - 17.1 sudo: false before_install: - wget http://s3.hex.pm/builds/elixir/master.zip - unzip -d elixir master.zip before_script: - export PATH=`pwd`/elixir/bin:$PATH - yes | mix deps.get - mix deps.compile - mix IElixir test_connection_file script: mix test ##...
43eeec1efd60c0a2f9283677f571f82e03658dab
tests/BrowserKitConfig.php
tests/BrowserKitConfig.php
<?php namespace Behat\Mink\Tests\Driver; use Behat\Mink\Driver\BrowserKitDriver; use Behat\Mink\Tests\Driver\Util\FixturesKernel; use Symfony\Component\HttpKernel\Client; class BrowserKitConfig extends AbstractConfig { public static function getInstance() { return new self(); } /** * {@...
<?php namespace Behat\Mink\Tests\Driver; use Behat\Mink\Driver\BrowserKitDriver; use Behat\Mink\Tests\Driver\Util\FixturesKernel; use Symfony\Component\HttpKernel\Client; class BrowserKitConfig extends AbstractConfig { public static function getInstance() { return new self(); } /** * {@...
Fix the detection of HTML5 support in the testsuite
Fix the detection of HTML5 support in the testsuite The detection relied on detecting the test method added when introducing the feature in symfony/dom-crawler. But as of Symfony 4.4, tests are stripped from the dist archives. An additional detection based on a new method added in later Symfony version is now used to ...
PHP
mit
minkphp/MinkBrowserKitDriver
php
## Code Before: <?php namespace Behat\Mink\Tests\Driver; use Behat\Mink\Driver\BrowserKitDriver; use Behat\Mink\Tests\Driver\Util\FixturesKernel; use Symfony\Component\HttpKernel\Client; class BrowserKitConfig extends AbstractConfig { public static function getInstance() { return new self(); } ...
185a0bad5381f256bc2968b0d225eb45d30a40cb
setup.py
setup.py
__author__ = 'karec' import os from setuptools import setup from octbrowser import __version__ BASE_DIR = os.path.abspath(os.path.dirname(__file__)) with open('README.rst') as f: long_description = f.read() setup( name='octbrowser', version=__version__, author='Emmanuel Valette', author_email='m...
__author__ = 'karec' import os from setuptools import setup from octbrowser import __version__ BASE_DIR = os.path.abspath(os.path.dirname(__file__)) with open('README.rst') as f: long_description = f.read() setup( name='octbrowser', version=__version__, author='Emmanuel Valette', author_email='m...
Add history subdirectory to the package
Add history subdirectory to the package
Python
mit
karec/oct-browser,karec/oct-browser
python
## Code Before: __author__ = 'karec' import os from setuptools import setup from octbrowser import __version__ BASE_DIR = os.path.abspath(os.path.dirname(__file__)) with open('README.rst') as f: long_description = f.read() setup( name='octbrowser', version=__version__, author='Emmanuel Valette', ...
e4b63bccc735c2855457aeb33298c3e20a4e3fb1
app/src/main/java/com/bookbase/bookbase/database/DatabaseFactory.java
app/src/main/java/com/bookbase/bookbase/database/DatabaseFactory.java
package com.bookbase.bookbase.database; import android.arch.persistence.room.Room; import android.content.Context; public class DatabaseFactory{ private static DatabaseFactory instance; private static AppDatabase db; private static void createDb(Context context){ if(db == null){ db ...
package com.bookbase.bookbase.database; import android.arch.persistence.room.Room; import android.content.Context; public class DatabaseFactory{ private static DatabaseFactory instance; private static AppDatabase db; private static void createDb(Context context){ if(db == null){ db ...
Move db access off main thread
Move db access off main thread
Java
mit
lachlan-eagling/Bookbase
java
## Code Before: package com.bookbase.bookbase.database; import android.arch.persistence.room.Room; import android.content.Context; public class DatabaseFactory{ private static DatabaseFactory instance; private static AppDatabase db; private static void createDb(Context context){ if(db == null){...
96c68e9160b849abbc032e023289b3cf07414a55
skel/docker/containers/nginx/container.yml
skel/docker/containers/nginx/container.yml
image: nginx labels: - role=nginx working_dir: /src network_mode: host expose: - '80' - '443' restart: unless-stopped cap_drop: - ALL cap_add: - NET_BIND_SERVICE - SYS_NICE volumes: - env-storage:/src/env environment: - PROJECT=$COMPOSE_PROJECT_NAME
image: nginx labels: - role=nginx working_dir: /src network_mode: host expose: - '80' restart: unless-stopped cap_drop: - ALL cap_add: - NET_BIND_SERVICE - SYS_NICE - CHOWN - DAC_OVERRIDE - SETGID - SETUID volumes: - env-storage:/src/env environment: - PROJECT=$COMPOSE_PROJECT_NAME
Fix nginx skeleton to work correct with capabilities of docker
Fix nginx skeleton to work correct with capabilities of docker
YAML
mit
dmitrykuzmenkov/kisscore,dmitrykuzmenkov/kisscore,dmitrykuzmenkov/kisscore,dmitrykuzmenkov/kisscore
yaml
## Code Before: image: nginx labels: - role=nginx working_dir: /src network_mode: host expose: - '80' - '443' restart: unless-stopped cap_drop: - ALL cap_add: - NET_BIND_SERVICE - SYS_NICE volumes: - env-storage:/src/env environment: - PROJECT=$COMPOSE_PROJECT_NAME ## Instruction: Fix nginx skeleton to...
7cf544d6e2c05751be6ed2f317bc9fdfd1991990
cmake/ClangFormat.cmake
cmake/ClangFormat.cmake
include(CMakeParseArguments) function(add_clang_format TARGET) cmake_parse_arguments(args "" "STYLE" "FILES" ${ARGN}) if(args_STYLE) get_filename_component(CFG_FILE ${args_STYLE} ABSOLUTE) set(STYLE "-style=file") set(STYLE_FILE "-assume-filename=${CFG_FILE}") endif() list(REMOVE_DUPLICATES arg...
include(CMakeParseArguments) function(add_clang_format TARGET) cmake_parse_arguments(args "" "STYLE" "FILES" ${ARGN}) if(args_STYLE) get_filename_component(CFG_FILE ${args_STYLE} ABSOLUTE) set(STYLE "-style=file") set(STYLE_FILE "-assume-filename=${CFG_FILE}") endif() list(REMOVE_DUPLICATES arg...
Add a version check for clang-format.
Add a version check for clang-format.
CMake
bsd-3-clause
UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol,UniStuttgart-VISUS/megamol
cmake
## Code Before: include(CMakeParseArguments) function(add_clang_format TARGET) cmake_parse_arguments(args "" "STYLE" "FILES" ${ARGN}) if(args_STYLE) get_filename_component(CFG_FILE ${args_STYLE} ABSOLUTE) set(STYLE "-style=file") set(STYLE_FILE "-assume-filename=${CFG_FILE}") endif() list(REMOV...
e95577d3c0c625b09cd6583cfaa1d672bb01e436
_includes/blocks/patterns/badge-headings.html
_includes/blocks/patterns/badge-headings.html
<div class="heading"> <h1>No badge</h1> </div> <div class="badge-heading"> <h1>Blue badge heading (default)</h1> </div> <div class="badge-heading badge-red"> <h1>Red badge heading</h1> <h2>with a sub-heading</h2> </div> <div class="badge-heading badge-orange"> <h1>Orange badge heading</h1> </div>...
<div class="heading"> <h2>No badge</h2> </div> <div class="badge-heading"> <h2>Blue badge heading (default)</h2> </div> <div class="badge-heading badge-red"> <h2>Red badge heading</h2> <h3>with a sub-heading</h3> </div> <div class="badge-heading badge-orange"> <h2>Orange badge heading</h2> </div>...
Update heading levels in badge pattern documentation
Update heading levels in badge pattern documentation
HTML
mit
codeforamerica/pattern-library,codeforamerica/pattern-library,codeforamerica/pattern-library
html
## Code Before: <div class="heading"> <h1>No badge</h1> </div> <div class="badge-heading"> <h1>Blue badge heading (default)</h1> </div> <div class="badge-heading badge-red"> <h1>Red badge heading</h1> <h2>with a sub-heading</h2> </div> <div class="badge-heading badge-orange"> <h1>Orange badge hea...
72ad3112ea25920152f1d8328537629acca79436
content/fr/products/products/aider-les-canadiens-à-faible-revenu-à-produire-leur-déclaration-fiscale.md
content/fr/products/products/aider-les-canadiens-à-faible-revenu-à-produire-leur-déclaration-fiscale.md
--- title: Aider les Canadiens à faible revenu à produire leur déclaration fiscale translationKey: low-income-file-taxes description: > Explorer l’idée d’un service pour aider les Canadiens à faible revenu à recevoir les prestations et les remboursements auxquels ils ont droit en facilitant la production de leur ...
--- title: Aider les Canadiens à faible revenu à produire leur déclaration fiscale translationKey: low-income-file-taxes description: > Explorer l’idée d’un service pour aider les Canadiens à faible revenu à recevoir les prestations et les remboursements auxquels ils ont droit en facilitant la production de leur ...
Fix for incorrect product url
Fix for incorrect product url
Markdown
mit
cds-snc/digital-canada-ca,cds-snc/digital-canada-ca
markdown
## Code Before: --- title: Aider les Canadiens à faible revenu à produire leur déclaration fiscale translationKey: low-income-file-taxes description: > Explorer l’idée d’un service pour aider les Canadiens à faible revenu à recevoir les prestations et les remboursements auxquels ils ont droit en facilitant la pro...
eff25ecf2a1a0fd53e37c078b03c8342978ba3f6
spec/earth/electricity/green_button_adoption_spec.rb
spec/earth/electricity/green_button_adoption_spec.rb
require 'spec_helper' require 'earth/electricity/green_button_adoption' describe GreenButtonAdoption do describe 'Green Button program adoption data', :data_miner => true do before :all do Earth.init :electricity, :load_data_miner => true GreenButtonAdoption.run_data_miner! end it 'Recognize...
require 'spec_helper' require 'earth/electricity/green_button_adoption' describe GreenButtonAdoption do describe 'import Green Button program adoption data', :data_miner => true do before :all do Earth.init :electricity, :load_data_miner => true end it 'imports data' do GreenButtonAdopti...
Tweak GreenButtonAdoption spec to match standard template
Tweak GreenButtonAdoption spec to match standard template
Ruby
agpl-3.0
faradayio/earth
ruby
## Code Before: require 'spec_helper' require 'earth/electricity/green_button_adoption' describe GreenButtonAdoption do describe 'Green Button program adoption data', :data_miner => true do before :all do Earth.init :electricity, :load_data_miner => true GreenButtonAdoption.run_data_miner! end ...
305ba342ee3c5b58393f885237aaec6237e7cd18
package.json
package.json
{ "name": "Inordinate", "version": "1.0.0", "main": "./public/index.html", "node-main": "./public/js/init.js", "window": { "title": "Inordinate", "toolbar": false, "frame": true, "width": 800, "height": 600, "resizable": true, "position": "center" }, "dependencies": { "reac...
{ "name": "Inordinate", "version": "1.0.0", "main": "./public/index.html", "node-main": "./public/js/init.js", "webkit": { "plugin": true }, "window": { "title": "Inordinate", "toolbar": false, "frame": true, "width": 800, "height": 600, "resizable": true, "position": "cent...
Load Chromecast plugin for YouTube videos to display properly
Load Chromecast plugin for YouTube videos to display properly
JSON
mit
tefu/inordinate,tefu/inordinate
json
## Code Before: { "name": "Inordinate", "version": "1.0.0", "main": "./public/index.html", "node-main": "./public/js/init.js", "window": { "title": "Inordinate", "toolbar": false, "frame": true, "width": 800, "height": 600, "resizable": true, "position": "center" }, "dependenci...
0f3a20e5173f0dedb0a959e233c9c2a7c43d4d06
app/templates/index.haml
app/templates/index.haml
%aside.who-am-i.yes %h1{title: 'Away from the keyboard, what defines me, in a nutshell?'} Caesium, abridged %ul %li Cyclist %li Dog Owner %li Low Carb, High Fat %li Scuba Diver %li{title: 'Born in York'} Yorkshireman .md %h1 cae.me.uk %p Hi. You've reached Chris (Caesium) Elsworth's personal websit...
.md %h1 cae.me.uk %figure{class: 'right'} %img{src: '/images/photos/IMG_1794.jpg', style: 'width: 120px', alt: 'Caesium, May 2016'} %figcaption Yep, that's me. %p Hi. I'm Chris (Caesium) Elsworth. %p I'm a programmer and sysadmin based in Solihull, currently contracting for %a{href: '//en.wikiped...
Remove Abridged box, didn't like it. Some rewriting.
Remove Abridged box, didn't like it. Some rewriting.
Haml
mit
celsworth/nabu,celsworth/nabu,celsworth/nabu
haml
## Code Before: %aside.who-am-i.yes %h1{title: 'Away from the keyboard, what defines me, in a nutshell?'} Caesium, abridged %ul %li Cyclist %li Dog Owner %li Low Carb, High Fat %li Scuba Diver %li{title: 'Born in York'} Yorkshireman .md %h1 cae.me.uk %p Hi. You've reached Chris (Caesium) Elsworth's...
5e5fbaddc0caf1fd2a99cb6e52fae78d151046e0
icons/bitbucket.svg
icons/bitbucket.svg
<svg aria-labelledby="simpleicons-bitbucket-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-bitbucket-icon">Bitbucket icon</title><path d="M.778 1.211c-.424-.006-.772.334-.778.758 0 .045.002.09.01.134l3.263 19.811c.084.499.515.867 1.022.872H19.95c.382.004.708-.271.77-.646l...
<svg aria-labelledby="simpleicons-bitbucket-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-bitbucket-icon">Bitbucket icon</title><path d="M.778 1.211c-.424-.006-.772.334-.778.758 0 .045.002.09.01.134l3.263 19.811c.084.499.515.867 1.022.872H19.95c.382.004.708-.271.77-.646l...
Remove redundant <path> in Bitbucket svg
Remove redundant <path> in Bitbucket svg
SVG
cc0-1.0
birjolaxew/simple-icons,birjolaxew/simple-icons,danleech/simpleicons.org,danleech/simpleicons.org,danleech/simple-icons,simple-icons/simple-icons,simple-icons/simple-icons
svg
## Code Before: <svg aria-labelledby="simpleicons-bitbucket-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-bitbucket-icon">Bitbucket icon</title><path d="M.778 1.211c-.424-.006-.772.334-.778.758 0 .045.002.09.01.134l3.263 19.811c.084.499.515.867 1.022.872H19.95c.382.004.7...
6f82f1db4245bf938662602b5a32311647d55b57
libraries/helpers.rb
libraries/helpers.rb
module SysctlCookbook module SysctlHelpers module Param def set_sysctl_param(key, value) o = shell_out("sysctl #{'-e ' if new_resource.ignore_error}-w \"#{key}=#{value}\"") o.error! ? false : true end def get_sysctl_value(key) o = shell_out("sysctl -n -e #{key}") ...
module SysctlCookbook module SysctlHelpers module Param def set_sysctl_param(key, value) o = shell_out("sysctl #{'-e ' if new_resource.ignore_error}-w \"#{key}=#{value}\"") o.error! ? false : true end def get_sysctl_value(key) o = shell_out("sysctl -n -e #{key}") ...
Remove coerce_value helper as it's not shared
Remove coerce_value helper as it's not shared
Ruby
apache-2.0
svanzoest-cookbooks/sysctl,svanzoest-cookbooks/sysctl,svanzoest-cookbooks/sysctl
ruby
## Code Before: module SysctlCookbook module SysctlHelpers module Param def set_sysctl_param(key, value) o = shell_out("sysctl #{'-e ' if new_resource.ignore_error}-w \"#{key}=#{value}\"") o.error! ? false : true end def get_sysctl_value(key) o = shell_out("sysctl -n -e ...
d95099ad13a602f2485cc79538c50e2c154046c7
fish/install.sh
fish/install.sh
ln -s -f $(git rev-parse --show-toplevel)/fish/functions/*.fish ~/.config/fish/functions/ ln -s -f $(git rev-parse --show-toplevel)/fish/conf.d/*.fish ~/.config/fish/conf.d/ ln -s -f $(git rev-parse --show-toplevel)/fish/fishfile ~/.config/fish/ ln -s -f $(git rev-parse --show-toplevel)/fish/fish_colors ~/.config/fish...
mkdir -p ~/.config/fish/functions mkdir -p ~/.config/fish/conf.d ln -s -f $(git rev-parse --show-toplevel)/fish/functions/*.fish ~/.config/fish/functions/ ln -s -f $(git rev-parse --show-toplevel)/fish/conf.d/*.fish ~/.config/fish/conf.d/ ln -s -f $(git rev-parse --show-toplevel)/fish/fishfile ~/.config/fish/ ln -s -f...
Add mkdir for fish config
Add mkdir for fish config Signed-off-by: Shen Yichen <be3bb257ef8d73236feaba36cd3e5ee9095e6819@gmail.com>
Shell
mit
yichenshen/holocron-configs
shell
## Code Before: ln -s -f $(git rev-parse --show-toplevel)/fish/functions/*.fish ~/.config/fish/functions/ ln -s -f $(git rev-parse --show-toplevel)/fish/conf.d/*.fish ~/.config/fish/conf.d/ ln -s -f $(git rev-parse --show-toplevel)/fish/fishfile ~/.config/fish/ ln -s -f $(git rev-parse --show-toplevel)/fish/fish_color...
45116fc996b097176bcfa2dcd7fb8c9710f6d66e
tests/test_basics.py
tests/test_basics.py
import os from xml.etree import ElementTree from utils import with_app, pretty_print_xml #============================================================================= # Tests @with_app(buildername="xml", srcdir="basics") def test_basics(app, status, warning): app.build() tree = ElementTree.pars...
import os from xml.etree import ElementTree from utils import with_app, pretty_print_xml #============================================================================= # Tests @with_app(buildername="xml", srcdir="basics") def test_basics(app, status, warning): app.build() tree = ElementTree.pars...
Remove debug printing from test case
Remove debug printing from test case
Python
apache-2.0
t4ngo/sphinxcontrib-traceables
python
## Code Before: import os from xml.etree import ElementTree from utils import with_app, pretty_print_xml #============================================================================= # Tests @with_app(buildername="xml", srcdir="basics") def test_basics(app, status, warning): app.build() tree = ElementTree....
a21685eab417189d887db6d5a83bfff83661c1eb
gui/mainwindow.h
gui/mainwindow.h
namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H
namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; };
Use pragma once instead of ifdef
Use pragma once instead of ifdef
C
bsd-2-clause
csete/softrig,csete/softrig,csete/softrig
c
## Code Before: namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private: Ui::MainWindow *ui; }; #endif // MAINWINDOW_H ## Instruction: Use pragma once instead of ifdef ## Code After: namespace Ui...
560df9dc209ebeef4270f580d52b083c2ea553b6
.github/workflows/test.yml
.github/workflows/test.yml
name: Test on: push: branches: [main] pull_request: branches: [main] jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '1.17.2' - run: go build main.go vet: name: Vet ...
name: Test on: push: branches: [main] pull_request: branches: [main] jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/cache@v2 with: path: | ~/.cache/go-build ~/go/pkg/mod key: ${...
Use cache for GH Actions
Use cache for GH Actions
YAML
mit
devmattrick/EmotesBot
yaml
## Code Before: name: Test on: push: branches: [main] pull_request: branches: [main] jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: go-version: '1.17.2' - run: go build main.go vet: ...
9eab666e6605d9a9441a57750ff273120ec6e8bc
lib/openxml/docx/elements/number.rb
lib/openxml/docx/elements/number.rb
module OpenXml module Docx module Elements class Number < OpenXml::Docx::Element include HasChildren, HasProperties tag :num def initialize(id) super() self.id = id end with_namespace :w do attribute :id, expects: :integer, displays_as:...
module OpenXml module Docx module Elements class Number < OpenXml::Docx::Element include HasChildren, HasProperties tag :num def initialize(id) super() self.id = id end with_namespace :w do attribute :id, expects: :integer, displays_as:...
Remove level_override: it is not a property, it is a child element
Remove level_override: it is not a property, it is a child element
Ruby
mit
genebot/rocx,openxml/openxml-docx,openxml/openxml-docx
ruby
## Code Before: module OpenXml module Docx module Elements class Number < OpenXml::Docx::Element include HasChildren, HasProperties tag :num def initialize(id) super() self.id = id end with_namespace :w do attribute :id, expects: :integ...
579b52b887e2e42a40c584fa1412c01fb86ef501
etc/protractorConf.js
etc/protractorConf.js
var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", directConnect: true, capabilities: { "brow...
var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", getPageTimeout: 30000, directConnect: true, ca...
Set protractor page timeout to 30s
Set protractor page timeout to 30s
JavaScript
agpl-3.0
xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,xs2maverick/adhocracy3.mercator,fhartwig/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adhocracy3.mercator,liqd/adh...
javascript
## Code Before: var exec = require("sync-exec"); exports.config = { suites: { core: "../src/adhocracy_frontend/adhocracy_frontend/tests/acceptance/*Spec.js", mercator: "../src/mercator/tests/acceptance/*Spec.js" }, baseUrl: "http://localhost:9090", directConnect: true, capabilities:...
9ecce4f703ea3a513956c07274ff4e3e463e7159
nixos/roles/java.nix
nixos/roles/java.nix
{ config, lib, pkgs, ... }: { options = { roles.java.haveIntelliJUltimateLicense = lib.mkOption { type = lib.types.bool; default = false; }; }; config = { environment.systemPackages = with pkgs; [ openjdk # Build tools maven gradle # IDEs eclipses.ec...
{ config, lib, pkgs, ... }: let pkgs-unstable = import <nixpkgs-unstable> { config = { allowUnfree = true; }; }; in { options = { roles.java.haveIntelliJUltimateLicense = lib.mkOption { type = lib.types.bool; default = false; }; }; config = { # add symlinks /etc/openjdk{8,12} to /nix/s...
Install OpenJDK 12 alongside OpenJDK 8, add symlinks to /nix/store
[nixos] Install OpenJDK 12 alongside OpenJDK 8, add symlinks to /nix/store
Nix
mit
timjb/dotfiles,timjb/dotfiles,timjb/dotfiles
nix
## Code Before: { config, lib, pkgs, ... }: { options = { roles.java.haveIntelliJUltimateLicense = lib.mkOption { type = lib.types.bool; default = false; }; }; config = { environment.systemPackages = with pkgs; [ openjdk # Build tools maven gradle # IDEs ...
178becd15ecc570345845e2d806a4a14e59c4966
scripts/documentation-build.sh
scripts/documentation-build.sh
rm -rf docbuild && git clone https://github.com/prest/doc-template docbuild && rm -rf docbuild/content && cp -rf docs docbuild/content && mv docbuild/content/assets docbuild/static/content && cd docbuild && hugo $@
rm -rf docbuild && \ git clone https://github.com/prest/doc-template docbuild && \ rm -rf docbuild/content && \ cp -rf docs docbuild/content && \ mv docbuild/content/assets docbuild/static/content && \ cd docbuild && \ hugo "$@"
Fix shell script that lacks of '\' at the end of each line of the command line splitted into several lines.
Fix shell script that lacks of '\' at the end of each line of the command line splitted into several lines. Signed-off-by: Fabrízio de Royes Mello <b43aa4da7d49446458a27682d03373956825fb53@gmail.com>
Shell
mit
nuveo/prest,nuveo/prest
shell
## Code Before: rm -rf docbuild && git clone https://github.com/prest/doc-template docbuild && rm -rf docbuild/content && cp -rf docs docbuild/content && mv docbuild/content/assets docbuild/static/content && cd docbuild && hugo $@ ## Instruction: Fix shell script that lacks of '\' at the end of...
6309031090a135856e6e2b3f8381202d6d17b72f
test_app/signals.py
test_app/signals.py
import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def on_callback_received(sende...
import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def on_callback_received(sende...
Send unknown events to HipChat in red
Send unknown events to HipChat in red If an event comes in to the test_app and has no matching template, then send it to HipChat in red, not yellow, making it easier to manage.
Python
mit
yunojuno/django-trello-webhooks,yunojuno/django-trello-webhooks
python
## Code Before: import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def on_callbac...
e9168cf52ef8bb75adffd8bd235a47191c0fec7e
Resources/includes/ui.js
Resources/includes/ui.js
(function() { exports.getEmptyRow = function() { var row = Ti.UI.createTableViewRow({ editable: false, isPlaceholder: true, selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY }); var lbl_title = Ti.UI.createLabel({ text: I('main.noContent.title'), font: { fontWeight: 'bold', ...
(function() { exports.getEmptyRow = function() { var row = Ti.UI.createTableViewRow({ editable: false, isPlaceholder: true, selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY }); var lbl_title = Ti.UI.createLabel({ text: I('main.noContent.title'), font: { fontWeight: 'bold', ...
Return empty row, fixes bug when there are no skins
Return empty row, fixes bug when there are no skins
JavaScript
mit
outadoc/SkinSwitch-iOS
javascript
## Code Before: (function() { exports.getEmptyRow = function() { var row = Ti.UI.createTableViewRow({ editable: false, isPlaceholder: true, selectionStyle: Ti.UI.iPhone.TableViewCellSelectionStyle.GRAY }); var lbl_title = Ti.UI.createLabel({ text: I('main.noContent.title'), font: { fontWe...
4fe36d6328e8b4519267cb513f8f4854509d269a
byceps/blueprints/site/seating/templates/site/seating/_legend.html
byceps/blueprints/site/seating/templates/site/seating/_legend.html
<div class="centered-block"> <small class="seats-legend"> <p><strong>{{ _('Legend') }}</strong></p> <ol> <li><div class="seat"></div> frei</li> <li><div class="seat seat--occupied"></div> belegt durch ein nicht von dir verwaltetes Ticket</li> {%- if manage_mode %} <li><...
<div class="centered-block"> <small class="seats-legend"> <p><strong>{{ _('Legend') }}</strong></p> <ol> <li><div class="seat"></div> frei</li> {%- if manage_mode %} <li><div class="seat seat--occupied"></div> belegt durch ein nicht von dir verwaltetes Ticket</li> <li><...
Fix seating area legend in non-manage mode
Fix seating area legend in non-manage mode
HTML
bsd-3-clause
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps
html
## Code Before: <div class="centered-block"> <small class="seats-legend"> <p><strong>{{ _('Legend') }}</strong></p> <ol> <li><div class="seat"></div> frei</li> <li><div class="seat seat--occupied"></div> belegt durch ein nicht von dir verwaltetes Ticket</li> {%- if manage_mode ...
b09770a8387137985cd564dc1eeca6eaf296b12f
README.rst
README.rst
pyramid_skosprovider ==================== This library integrates skosprovider_ in a pyramid application. .. image:: https://travis-ci.org/koenedaele/pyramid_skosprovider.png :target: https://travis-ci.org/koenedaele/pyramid_skosprovider .. image:: https://coveralls.io/repos/koenedaele/pyramid_skosprovider/ba...
pyramid_skosprovider ==================== This library integrates skosprovider_ in a pyramid application. .. image:: https://img.shields.io/pypi/v/pyramid_skosprovider.png :target: https://pypi.python.org/pypi/pyramid_skosprovider .. image:: https://readthedocs.org/projects/pyramid-skosprovider/badge/?version...
Use shields.io for pypi badge
Use shields.io for pypi badge
reStructuredText
mit
koenedaele/pyramid_skosprovider
restructuredtext
## Code Before: pyramid_skosprovider ==================== This library integrates skosprovider_ in a pyramid application. .. image:: https://travis-ci.org/koenedaele/pyramid_skosprovider.png :target: https://travis-ci.org/koenedaele/pyramid_skosprovider .. image:: https://coveralls.io/repos/koenedaele/pyramid...
7201625e4c4bb5c2fc3d5f6da653e2c1b01b02af
.travis.yml
.travis.yml
--- dist: trusty sudo: required language: ruby install: # Install Ansible - sudo apt-get install -y python-pip - pip install ansible # Install Test Kitchen - gem install test-kitchen kitchen-docker kitchen-ansible # install testinfra - pip install testinfra # Check Test Kitchen version - kitchen -...
--- dist: trusty sudo: required language: ruby install: # Install Ansible - sudo apt-get install -y python-pip - pip install ansible # Install Test Kitchen - gem install test-kitchen kitchen-docker kitchen-ansible # install testinfra - pip install testinfra # Check versions - kitchen --version -...
Print versions of ansible, test kitchen and testinfra
CI: Print versions of ansible, test kitchen and testinfra Signed-off-by: Tomas Hozza <2152b765a3a51268598a4503265cd77ce732fa8c@gmail.com>
YAML
mit
thozza/ansible-gitlab-runner
yaml
## Code Before: --- dist: trusty sudo: required language: ruby install: # Install Ansible - sudo apt-get install -y python-pip - pip install ansible # Install Test Kitchen - gem install test-kitchen kitchen-docker kitchen-ansible # install testinfra - pip install testinfra # Check Test Kitchen versi...
1d54d9aa58ff633ed30856f502bb994c99801a08
css/themes/light.css
css/themes/light.css
body.light { @apply bg-gray-200; @apply text-black; } .light a { @apply text-gray-900; @apply bg-white; @apply shadow; } .light a:hover, .light a:focus, .light a:active { @apply bg-blue-400; @apply text-white; } .light h1, .light h2 { @apply text-gray-800; } .light header { @apply bg-blue-400; @...
body.light { @apply bg-gray-200; @apply text-black; } .light a { @apply text-gray-900; @apply bg-white; @apply shadow; } .light a:hover, .light a:focus, .light a:active { @apply bg-blue-400; @apply text-white; } .light main h1, .light main h2 { @apply text-gray-800; } .light header { @apply bg-blu...
Rewrite text-shadow on header headings
Rewrite text-shadow on header headings
CSS
mit
le717/CodeTriangle,le717/CodeTriangle.me,le717/CodeTriangle,le717/CodeTriangle.me,le717/CodeTriangle.me
css
## Code Before: body.light { @apply bg-gray-200; @apply text-black; } .light a { @apply text-gray-900; @apply bg-white; @apply shadow; } .light a:hover, .light a:focus, .light a:active { @apply bg-blue-400; @apply text-white; } .light h1, .light h2 { @apply text-gray-800; } .light header { @apply ...
663e6925ab8b4634c2169ca764e38b2df2bf3140
src/Kunstmaan/MediaBundle/Repository/MediaRepository.php
src/Kunstmaan/MediaBundle/Repository/MediaRepository.php
<?php namespace Kunstmaan\MediaBundle\Repository; use Doctrine\ORM\EntityNotFoundException; use Doctrine\ORM\EntityRepository; use Kunstmaan\MediaBundle\Entity\Media; /** * MediaRepository */ class MediaRepository extends EntityRepository { /** * @param Media $media */ public function save(Media ...
<?php namespace Kunstmaan\MediaBundle\Repository; use Doctrine\ORM\EntityNotFoundException; use Doctrine\ORM\EntityRepository; use Kunstmaan\MediaBundle\Entity\Media; /** * MediaRepository */ class MediaRepository extends EntityRepository { /** * @param Media $media */ public function save(Media ...
Remove non working method which causes issues
[MediaBundle] Remove non working method which causes issues
PHP
mit
Kunstmaan/KunstmaanBundlesCMS,Kunstmaan/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,insiders/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,FVKVN/KunstmaanBundlesCMS,dbeerten/KunstmaanBundlesCMS,Numkil/KunstmaanBundlesCMS,dbeerten...
php
## Code Before: <?php namespace Kunstmaan\MediaBundle\Repository; use Doctrine\ORM\EntityNotFoundException; use Doctrine\ORM\EntityRepository; use Kunstmaan\MediaBundle\Entity\Media; /** * MediaRepository */ class MediaRepository extends EntityRepository { /** * @param Media $media */ public func...
76a9a617be464f665053dbaf43289c144a71e484
README.md
README.md
Depot Landing Page Example ========================== [Depot][1] is a PHP framework for the [Tent protocol][2]. This is a sample landing page built with Depot to display a configured Tent entity's recent status updates and essays. Installation ------------ The dependencies for this example are managed by [Composer]...
Depot Landing Page Example ========================== [Depot][1] is a PHP framework for the [Tent protocol][2]. This is a sample landing page built with Depot to display a configured Tent entity's recent status updates and essays. Installation ------------ Copy `app.ini.sample` to `app.ini` and change `entity_uri` ...
Improve docs; tell about app.ini copy
Improve docs; tell about app.ini copy
Markdown
mit
simensen/depot-landing-page-example
markdown
## Code Before: Depot Landing Page Example ========================== [Depot][1] is a PHP framework for the [Tent protocol][2]. This is a sample landing page built with Depot to display a configured Tent entity's recent status updates and essays. Installation ------------ The dependencies for this example are manag...
3e14577b378facd88719572cb0dfe61a5386e933
Source/Model/Create/MCreateMapStatusProtocol.swift
Source/Model/Create/MCreateMapStatusProtocol.swift
import UIKit protocol MCreateMapStatusProtocol { var menuItems:[MCreateMapMenuProtocol] { get } var barTop:CGFloat { get } }
import UIKit protocol MCreateMapStatusProtocol { var menuItems:[MCreateMapMenuProtocol] { get } var barTop:CGFloat { get } init() }
Add required init to protocol
Add required init to protocol
Swift
mit
velvetroom/columbus
swift
## Code Before: import UIKit protocol MCreateMapStatusProtocol { var menuItems:[MCreateMapMenuProtocol] { get } var barTop:CGFloat { get } } ## Instruction: Add required init to protocol ## Code After: import UIKit protocol MCreateMapStatusProtocol { var menuItems:[MCreateMapMenuProtocol] { get } va...
d864dae832e95e243e9e10c7b4d47fd6da849d0f
app/controllers/detailed_guides_controller.rb
app/controllers/detailed_guides_controller.rb
class DetailedGuidesController < DocumentsController layout "detailed-guidance" skip_before_filter :set_search_path before_filter :set_search_index before_filter :set_artefact, only: [:show] before_filter :set_expiry, only: [:show] before_filter :set_analytics_format, only: [:show] def show @categori...
class DetailedGuidesController < DocumentsController layout "detailed-guidance" skip_before_filter :set_search_path before_filter :set_search_index before_filter :set_breadcrumb_trail, only: [:show] before_filter :set_expiry, only: [:show] before_filter :set_analytics_format, only: [:show] def show @...
Rename filter method to set detailed guide breadcrumbs
Rename filter method to set detailed guide breadcrumbs
Ruby
mit
hotvulcan/whitehall,robinwhittleton/whitehall,hotvulcan/whitehall,YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whitehall,YOTOV-LIMITED/whitehall,ggoral/whitehall,robinwhittleton/whitehall,alphagov/whitehall,alphagov/whitehall,askl56/whitehall,hotvulcan/whitehall,alphagov/whitehall,YOTOV-LIMITED/whitehall,hotvulcan/whitehall,r...
ruby
## Code Before: class DetailedGuidesController < DocumentsController layout "detailed-guidance" skip_before_filter :set_search_path before_filter :set_search_index before_filter :set_artefact, only: [:show] before_filter :set_expiry, only: [:show] before_filter :set_analytics_format, only: [:show] def sh...
ec7e03b778c8f6b47af4647d440b4838221a4e33
jose/constants.py
jose/constants.py
import hashlib class Algorithms(object): NONE = 'none' HS256 = 'HS256' HS384 = 'HS384' HS512 = 'HS512' RS256 = 'RS256' RS384 = 'RS384' RS512 = 'RS512' ES256 = 'ES256' ES384 = 'ES384' ES512 = 'ES512' HMAC = set([HS256, HS384, HS512]) RSA = set([RS256, RS384, RS512]) ...
import hashlib class Algorithms(object): NONE = 'none' HS256 = 'HS256' HS384 = 'HS384' HS512 = 'HS512' RS256 = 'RS256' RS384 = 'RS384' RS512 = 'RS512' ES256 = 'ES256' ES384 = 'ES384' ES512 = 'ES512' HMAC = {HS256, HS384, HS512} RSA = {RS256, RS384, RS512} EC = {ES2...
Replace function calls with set literals
Replace function calls with set literals
Python
mit
mpdavis/python-jose
python
## Code Before: import hashlib class Algorithms(object): NONE = 'none' HS256 = 'HS256' HS384 = 'HS384' HS512 = 'HS512' RS256 = 'RS256' RS384 = 'RS384' RS512 = 'RS512' ES256 = 'ES256' ES384 = 'ES384' ES512 = 'ES512' HMAC = set([HS256, HS384, HS512]) RSA = set([RS256, RS...
8caf479fd3998b24b0fe5e7c06666c6eff243643
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ActionViaLinkDemo.java
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ActionViaLinkDemo.java
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed ...
// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed ...
Make a correction to how the event link is created
Make a correction to how the event link is created
Java
apache-2.0
apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5,apache/tapestry-5
java
## Code Before: // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software...
f2233d71d18b9a73e28450270daec6fdb5fce2fe
.travis.yml
.travis.yml
sudo: required cache: bundler services: - docker env: global: - COMPOSE_FILE: docker-compose.ci.yml before_install: - sudo rm /usr/local/bin/docker-compose - sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - ...
sudo: required cache: bundler services: - docker env: global: - COMPOSE_FILE: docker-compose.ci.yml before_install: - sudo rm /usr/local/bin/docker-compose - sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - ...
Update ruby versions supported by Rails 6
Update ruby versions supported by Rails 6
YAML
mit
rails-sqlserver/activerecord-sqlserver-adapter,rails-sqlserver/activerecord-sqlserver-adapter
yaml
## Code Before: sudo: required cache: bundler services: - docker env: global: - COMPOSE_FILE: docker-compose.ci.yml before_install: - sudo rm /usr/local/bin/docker-compose - sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/doc...
08c5e820dfd802f9e8fdf5177d0e2173f4d12ae9
src/gui-qml/src/components/VideoPlayer.qml
src/gui-qml/src/components/VideoPlayer.qml
import QtMultimedia 5.12 import QtQuick 2.12 import QtQuick.Controls 2.5 import QtQuick.Layouts 1.12 ColumnLayout { property alias source: video.source property alias fillMode: video.fillMode property alias autoPlay: video.autoPlay onAutoPlayChanged: { if (autoPlay && video.playbackState != Me...
import QtMultimedia 5.12 import QtQuick 2.12 import QtQuick.Controls 2.5 import QtQuick.Layouts 1.12 ColumnLayout { property alias source: video.source property alias fillMode: video.fillMode property alias autoPlay: video.autoPlay onAutoPlayChanged: { if (autoPlay && video.playbackState != Me...
Add 100ms error for video slider jumps
Add 100ms error for video slider jumps
QML
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
qml
## Code Before: import QtMultimedia 5.12 import QtQuick 2.12 import QtQuick.Controls 2.5 import QtQuick.Layouts 1.12 ColumnLayout { property alias source: video.source property alias fillMode: video.fillMode property alias autoPlay: video.autoPlay onAutoPlayChanged: { if (autoPlay && video.pla...
5d589edc46815a0f92802ab04ca3649f81df6a1c
src/app/leaflet/leaflet-button/leaflet-button.component.spec.ts
src/app/leaflet/leaflet-button/leaflet-button.component.spec.ts
/* tslint:disable:no-unused-variable */ /*! * Leaflet Button Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, fakeAsync, tick, inject } from '@angular/core/testing'; import { LeafletButtonCompone...
/* tslint:disable:no-unused-variable */ /*! * Leaflet Button Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, async, inject } from '@angular/core/testing'; import { LeafletButtonComponent } from ...
Add more tests for LeafletButtonComponent
Add more tests for LeafletButtonComponent
TypeScript
mit
ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps,ecsnavarretemit/sarai-ng2,ecsnavarretemit/sarai-interactive-maps
typescript
## Code Before: /* tslint:disable:no-unused-variable */ /*! * Leaflet Button Component Test * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Renderer } from '@angular/core'; import { TestBed, fakeAsync, tick, inject } from '@angular/core/testing'; import { Leaf...
44ff8680ebc2d85145fa800cccb51c93827ce53b
app/reducers/tree/reduceChangeElementPath.js
app/reducers/tree/reduceChangeElementPath.js
export default function reduceChangeElementPath(state, { elementPath, newElementPath }) { const element = state.getIn(elementPath); return state.setIn(newElementPath, element); }
export default function reduceChangeElementPath(state, { elementPath, newElementPath }) { const element = state.getIn(elementPath); const treeWithElementAtNewElementPath = state.setIn(newElementPath, element); // Return tree with element at new element path, with value at old element path deleted return treeWi...
Remove element from old path after moving it to new path
Remove element from old path after moving it to new path
JavaScript
mit
danscan/fractal,danscan/fractal
javascript
## Code Before: export default function reduceChangeElementPath(state, { elementPath, newElementPath }) { const element = state.getIn(elementPath); return state.setIn(newElementPath, element); } ## Instruction: Remove element from old path after moving it to new path ## Code After: export default function reduce...
108b6e20c7021b1bd8db8f361a05a0bb87e56565
src/test/java/me/coley/recaf/DecompileTest.java
src/test/java/me/coley/recaf/DecompileTest.java
package me.coley.recaf; import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler; import me.coley.recaf.workspace.*; import org.junit.jupiter.api.*; import java.io.IOException; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; public class Deco...
package me.coley.recaf; import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler; import me.coley.recaf.workspace.*; import org.junit.jupiter.api.*; import java.io.IOException; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; public class Deco...
Test for decompile against all classes in the primary resource
Test for decompile against all classes in the primary resource
Java
mit
Col-E/Recaf,Col-E/Recaf
java
## Code Before: package me.coley.recaf; import me.coley.recaf.decompile.fernflower.FernFlowerDecompiler; import me.coley.recaf.workspace.*; import org.junit.jupiter.api.*; import java.io.IOException; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.fail; p...
cb21298aa4921560ec9a69a349b37f60efea4fb5
app/routes/dashboard/group-manager/index.js
app/routes/dashboard/group-manager/index.js
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { return this.get('store').query('member', { 'person__user...
import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { let user = this.get('currentUser.user.id').then((data) => data...
Make user on Group Manager thennable
Make user on Group Manager thennable
JavaScript
bsd-2-clause
barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web
javascript
## Code Before: import Ember from 'ember'; import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; export default Ember.Route.extend(AuthenticatedRouteMixin, { currentUser: Ember.inject.service('current-user'), model: function() { return this.get('store').query('member', { ...
3493c3a0a90089bbb1035416d1d309e976bbdba9
client/src/styles/App.css
client/src/styles/App.css
* { background-color: #a3a3c2; } h1, h2, h3 { font-weight: 400; } .App { text-align: center; background-color: #a3a3c2; color: #f2f2f2; } .App-header { background-color: transparent; height: 150px; padding: 10px; color: white; /*width: 100%;*/ } .App-header h1 { font-size: 5em; font-family:...
* { background-color: #a3a3c2; border: 1px solid black; } h1, h2, h3 { font-weight: 400; } .App { text-align: center; background-color: #a3a3c2; color: #f2f2f2; } .App-header { background-color: transparent; height: 150px; padding: 10px; color: white; /*width: 100%;*/ } .App-header h1 { fon...
Add width to containing div
Add width to containing div
CSS
mit
kevinladkins/newsfeed,kevinladkins/newsfeed,kevinladkins/newsfeed
css
## Code Before: * { background-color: #a3a3c2; } h1, h2, h3 { font-weight: 400; } .App { text-align: center; background-color: #a3a3c2; color: #f2f2f2; } .App-header { background-color: transparent; height: 150px; padding: 10px; color: white; /*width: 100%;*/ } .App-header h1 { font-size: 5em...
4af6462a7bca71961350fb357164064095be7812
CHANGELOG.md
CHANGELOG.md
* Add start frame to show() # 0.1.0 (September 2, 2016) * Initial release
* Move GPIO and System modules to external crate * Remove temporary blinkt variable binding in new() # 0.1.1 (September 6, 2016) * Add start frame to show() # 0.1.0 (September 2, 2016) * Initial release
Update changelog with 0.1.2 code changes
Update changelog with 0.1.2 code changes
Markdown
mit
golemparts/blinkt
markdown
## Code Before: * Add start frame to show() # 0.1.0 (September 2, 2016) * Initial release ## Instruction: Update changelog with 0.1.2 code changes ## Code After: * Move GPIO and System modules to external crate * Remove temporary blinkt variable binding in new() # 0.1.1 (September 6, 2016) * Add start frame to ...
6c75e96ce774c490441daa0fa62bc2f74546b3f7
IBAnimatableApp/TransitionViewController.swift
IBAnimatableApp/TransitionViewController.swift
// // Created by Jake Lin on 3/1/16. // Copyright © 2016 Jake Lin. All rights reserved. // import UIKit import IBAnimatable class TransitionViewController: AnimatableViewController { var animationType: String? @IBOutlet var presentButton: AnimatableButton! override func viewDidLoad() { super.viewD...
// // Created by Jake Lin on 3/1/16. // Copyright © 2016 Jake Lin. All rights reserved. // import UIKit import IBAnimatable class TransitionViewController: AnimatableViewController { var animationType: String? @IBOutlet var presentButton: AnimatableButton! override func viewDidLoad() { super.viewD...
Fix the present Explode segue in demo app.
Fix the present Explode segue in demo app.
Swift
mit
IBAnimatable/IBAnimatable,alexiosdev/IBAnimatable,seanwoodward/IBAnimatable,seanwoodward/IBAnimatable,alexiosdev/IBAnimatable,JakeLin/IBAnimatable,IBAnimatable/IBAnimatable,IBAnimatable/IBAnimatable,JakeLin/IBAnimatable
swift
## Code Before: // // Created by Jake Lin on 3/1/16. // Copyright © 2016 Jake Lin. All rights reserved. // import UIKit import IBAnimatable class TransitionViewController: AnimatableViewController { var animationType: String? @IBOutlet var presentButton: AnimatableButton! override func viewDidLoad() {...
e212a38b3032b1ad19debbb5d7b3b183cc6b9670
webapp/routes/temperature_api.js
webapp/routes/temperature_api.js
'use strict'; const router = require('express').Router(); const temperatureapi = require('../api/temperature'); const requiresApiAuthorization = require('../auth/requiresApiAuthorization'); router.get('/api/temperature/currentTemperature', requiresApiAuthorization(), temperatureapi.getCurrentTemperature); module.exp...
'use strict'; const router = require('express').Router(); const temperatureapi = require('../api/temperature'); const requiresApiAuthorization = require('../auth/requiresApiAuthorization'); const auth = require('../auth/Authentication'); router.get('/api/temperature/currentTemperature', requiresApiAuthorization(), te...
Add token authenticated temperature route
Add token authenticated temperature route
JavaScript
apache-2.0
rossharper/raspberrysauce,rossharper/raspberrysauce
javascript
## Code Before: 'use strict'; const router = require('express').Router(); const temperatureapi = require('../api/temperature'); const requiresApiAuthorization = require('../auth/requiresApiAuthorization'); router.get('/api/temperature/currentTemperature', requiresApiAuthorization(), temperatureapi.getCurrentTemperatu...
828cb9b18c580208f74cf381e8124cba6d9a0b94
gigasecond/gigasecond.rb
gigasecond/gigasecond.rb
class Gigasecond def self.from time time + 10**9 end end module BookKeeping VERSION = 6 end
class Gigasecond def self.from time time + 10**9 end end module BookKeeping VERSION = 6 end
Fix style: tab-size (This time it will work)
Fix style: tab-size (This time it will work)
Ruby
agpl-3.0
NickSchimek/exercism-solutions
ruby
## Code Before: class Gigasecond def self.from time time + 10**9 end end module BookKeeping VERSION = 6 end ## Instruction: Fix style: tab-size (This time it will work) ## Code After: class Gigasecond def self.from time time + 10**9 end end module BookKeeping VERSION = 6 end
25f4abf41b506c8754a5bb2e74cc064d1e054770
qwtplot3d.rb
qwtplot3d.rb
require "formula" class Qwtplot3d < Formula homepage "http://qwtplot3d.sourceforge.net" url "https://github.com/mantidproject/homebrew-mantid/raw/master/kits/qwtplot3d-0.2.7.tgz" sha256 "8ed5f5cc9d5db2ca195e41280dbe8d2c971ca12253a0c02368fb37c491e5952b" depends_on :x11 depends_on 'qt' def install ...
require "formula" class Qwtplot3d < Formula homepage "http://qwtplot3d.sourceforge.net" url "https://github.com/mantidproject/homebrew-mantid/raw/master/kits/qwtplot3d-0.2.7.tgz" sha256 "8ed5f5cc9d5db2ca195e41280dbe8d2c971ca12253a0c02368fb37c491e5952b" depends_on :x11 depends_on 'cartr/qt4/qt' def instal...
Fix formula for new qt
Fix formula for new qt
Ruby
mit
mantidproject/homebrew-mantid
ruby
## Code Before: require "formula" class Qwtplot3d < Formula homepage "http://qwtplot3d.sourceforge.net" url "https://github.com/mantidproject/homebrew-mantid/raw/master/kits/qwtplot3d-0.2.7.tgz" sha256 "8ed5f5cc9d5db2ca195e41280dbe8d2c971ca12253a0c02368fb37c491e5952b" depends_on :x11 depends_on 'qt' def ...
8d60c1b35b9b946915b67e9fa88107bdb22e13da
karma.conf.js
karma.conf.js
module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'chai', 'sinon-chai', 'fixture'], files: [ 'public/javascripts/vendor/d3.v3.min.js', 'public/javascripts/vendor/raphael-min.js', 'public/javascripts/vendor/morris.min.js', ...
module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'chai', 'sinon-chai', 'fixture'], files: [ 'public/javascripts/vendor/d3.v3.min.js', 'public/javascripts/vendor/raphael-min.js', 'public/javascripts/vendor/morris.min.js', ...
Remove sparkline from spec (not needed anymore)
Remove sparkline from spec (not needed anymore)
JavaScript
mit
codeforamerica/city-analytics-dashboard,codeforamerica/city-analytics-dashboard,codeforamerica/city-analytics-dashboard
javascript
## Code Before: module.exports = function(config) { config.set({ basePath: '', frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'chai', 'sinon-chai', 'fixture'], files: [ 'public/javascripts/vendor/d3.v3.min.js', 'public/javascripts/vendor/raphael-min.js', 'public/javascripts/vendor/...
c7578896036bc07bb1edc2d79f699968c25ca89e
bika/lims/upgrade/to1117.py
bika/lims/upgrade/to1117.py
from Acquisition import aq_inner from Acquisition import aq_parent from Products.CMFCore.utils import getToolByName def upgrade(tool): """ Enable portlets for key=/ (re-import portlets.xml): issue #695 """ portal = aq_parent(aq_inner(tool)) setup = portal.portal_setup setup.runImportStepFromProfi...
from Acquisition import aq_inner from Acquisition import aq_parent from Products.CMFCore.utils import getToolByName def upgrade(tool): """ Enable portlets for key=/ (re-import portlets.xml): issue #695 """ portal = aq_parent(aq_inner(tool)) setup = portal.portal_setup setup.runImportStepFromProfi...
Upgrade 1117 - add run_dependencies=False
Upgrade 1117 - add run_dependencies=False Somehow re-importing the 'portlets' step, causes a beforeDelete handler to fail a HoldingReference check.
Python
agpl-3.0
labsanmartin/Bika-LIMS,veroc/Bika-LIMS,anneline/Bika-LIMS,veroc/Bika-LIMS,anneline/Bika-LIMS,rockfruit/bika.lims,rockfruit/bika.lims,labsanmartin/Bika-LIMS,anneline/Bika-LIMS,veroc/Bika-LIMS,DeBortoliWines/Bika-LIMS,labsanmartin/Bika-LIMS,DeBortoliWines/Bika-LIMS,DeBortoliWines/Bika-LIMS
python
## Code Before: from Acquisition import aq_inner from Acquisition import aq_parent from Products.CMFCore.utils import getToolByName def upgrade(tool): """ Enable portlets for key=/ (re-import portlets.xml): issue #695 """ portal = aq_parent(aq_inner(tool)) setup = portal.portal_setup setup.runImp...
b64b27e8a76d938a3cb030f0f01547586793a2fa
lyb_sidebar.gemspec
lyb_sidebar.gemspec
Gem::Specification.new do |s| s.name = "lyb_sidebar" s.summary = "LybSidebar drys sidebars." s.description = "LybSidebar simplifies dries up common sidebar code." s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.version = "0.1.0" end
Gem::Specification.new do |s| s.name = "lyb_sidebar" s.summary = "LybSidebar drys sidebars." s.authors = ["Simon Hürlimann (CyT)"] s.email = ["simon.huerlimann@cyt.ch"] s.description = "LybSidebar simplifies dries up common sidebar code." s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"...
Add authors and email to gemspec.
Add authors and email to gemspec.
Ruby
mit
huerlisi/lyb_sidebar,huerlisi/lyb_sidebar
ruby
## Code Before: Gem::Specification.new do |s| s.name = "lyb_sidebar" s.summary = "LybSidebar drys sidebars." s.description = "LybSidebar simplifies dries up common sidebar code." s.files = Dir["lib/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"] s.version = "0.1.0" end ## Instruction: Add authors and ema...
baac4543492e2a3b98fbd6223248b36b33a48e6f
Cargo.toml
Cargo.toml
[package] name = "graph-neighbor-matching" version = "0.7.1" authors = ["Michael Neumann <mneumann@ntecs.de>"] license = "MIT" repository = "https://github.com/mneumann/graph-neighbor-matching" description = "Graph similarity score using neighbor matching" keywords = ["graph", "algorithm", "similarity"] include = ["gra...
[package] name = "graph-neighbor-matching" version = "0.7.1" authors = ["Michael Neumann <mneumann@ntecs.de>"] license = "MIT" repository = "https://github.com/mneumann/graph-neighbor-matching" description = "Graph similarity score using neighbor matching" keywords = ["graph", "algorithm", "similarity"] include = ["gra...
Make cargo bench -- --save-baseline work
Make cargo bench -- --save-baseline work
TOML
mit
mneumann/graph-neighbor-matching,mneumann/graph-neighbor-matching
toml
## Code Before: [package] name = "graph-neighbor-matching" version = "0.7.1" authors = ["Michael Neumann <mneumann@ntecs.de>"] license = "MIT" repository = "https://github.com/mneumann/graph-neighbor-matching" description = "Graph similarity score using neighbor matching" keywords = ["graph", "algorithm", "similarity"]...
cbeb462999816caa93d57c309d7f4fd3168ac58a
src/js/UrlBuilder.js
src/js/UrlBuilder.js
class UrlBuilder { constructor(name, absolute, ziggyObject) { this.name = name; this.ziggy = ziggyObject; this.route = this.ziggy.namedRoutes[this.name]; if (typeof this.name === 'undefined') { throw new Error('Ziggy Error: You must provide a route name'); } els...
class UrlBuilder { constructor(name, absolute, ziggyObject) { this.name = name; this.ziggy = ziggyObject; this.route = this.ziggy.namedRoutes[this.name]; if (typeof this.name === 'undefined') { throw new Error('Ziggy Error: You must provide a route name'); } els...
Remove check for matching base domain and update host string concatenation to *append* the port rather than reconstructing the whole string
Remove check for matching base domain and update host string concatenation to *append* the port rather than reconstructing the whole string
JavaScript
mit
tightenco/ziggy,tightenco/ziggy
javascript
## Code Before: class UrlBuilder { constructor(name, absolute, ziggyObject) { this.name = name; this.ziggy = ziggyObject; this.route = this.ziggy.namedRoutes[this.name]; if (typeof this.name === 'undefined') { throw new Error('Ziggy Error: You must provide a route name'...
e959a1702c01f2b2714c001a995aad840872d6fe
dkrcp.sh
dkrcp.sh
path_Set(){ local scriptFilePath eval scriptFilePath\=\"$1\" local scriptDir scriptDir="$( dirname "$scriptFilePath")" export PATH="$scriptDir:$PATH" } path_Set "${BASH_SOURCE[0]}" source 'ucp.sh'
path_Set(){ local scriptFilePath eval scriptFilePath\=\"$1\" local scriptDir scriptDir="$( dirname "$scriptFilePath")" export PATH="$scriptDir:$PATH" } path_Set "${BASH_SOURCE[0]}" source "MessageInclude.sh"; source "ArgumentsGetInclude.sh"; source "ArrayMapTestInclude.sh"; source "VirtCmmdInterface.sh"; sour...
Make ucp.sh a fully included module.
Make ucp.sh a fully included module.
Shell
mit
WhisperingChaos/dkrcp
shell
## Code Before: path_Set(){ local scriptFilePath eval scriptFilePath\=\"$1\" local scriptDir scriptDir="$( dirname "$scriptFilePath")" export PATH="$scriptDir:$PATH" } path_Set "${BASH_SOURCE[0]}" source 'ucp.sh' ## Instruction: Make ucp.sh a fully included module. ## Code After: path_Set(){ local script...
058718953187c361ec9c0217fecd60ded4cb0a41
.rubocop.yml
.rubocop.yml
AllCops: Exclude: - db/schema.rb - web/node_modules/**/* Documentation: Enabled: false Metrics/LineLength: Max: 120 Exclude: - db/**/*.rb - spec/**/*.rb Style/HashSyntax: EnforcedStyle: hash_rockets Style/NestedParenthesizedCalls: Enabled: false Style/BlockDelimiters: Exclude: - c...
AllCops: Exclude: - db/schema.rb - web/node_modules/**/* Documentation: Enabled: false Metrics/LineLength: Max: 120 Exclude: - db/**/*.rb - spec/**/*.rb Metrics/BlockLength: Exclude: - spec/**/*.rb Style/HashSyntax: EnforcedStyle: hash_rockets Style/NestedParenthesizedCalls: Enabl...
Exclude specs from RuboCop BlockLength rule
Exclude specs from RuboCop BlockLength rule
YAML
mit
RailsRoading/wissle,RailsRoading/wissle,RailsRoading/wissle
yaml
## Code Before: AllCops: Exclude: - db/schema.rb - web/node_modules/**/* Documentation: Enabled: false Metrics/LineLength: Max: 120 Exclude: - db/**/*.rb - spec/**/*.rb Style/HashSyntax: EnforcedStyle: hash_rockets Style/NestedParenthesizedCalls: Enabled: false Style/BlockDelimiters: ...
f16e0e181816408e2e617429e5b47571c70528d2
README.asciidoc
README.asciidoc
== dda - Django Desktop Application === Introduction DDA is an example project to demonstrate how to use Django as a desktop application. It provides an alternative to using a GUI framework such as https://docs.python.org/3.4/library/tkinter.html[Tkinter] or http://sourceforge.net/projects/pyqt/[PyQt]. It is a work...
== dda - Django Desktop Application === Introduction DDA is an example project to demonstrate how to use Django as a desktop application. It provides an alternative to using a GUI framework such as https://docs.python.org/3.4/library/tkinter.html[Tkinter] or http://sourceforge.net/projects/pyqt/[PyQt]. It is a work...
Add credits section for included content.
Add credits section for included content.
AsciiDoc
mit
hoadlck/dda,hoadlck/dda
asciidoc
## Code Before: == dda - Django Desktop Application === Introduction DDA is an example project to demonstrate how to use Django as a desktop application. It provides an alternative to using a GUI framework such as https://docs.python.org/3.4/library/tkinter.html[Tkinter] or http://sourceforge.net/projects/pyqt/[PyQt...
e564bacd17a481f7d3e37b40d41acc94f0c00223
php/7.php
php/7.php
<?php // Find the $number-th prime number function q7($number) { $primes = [2]; $currentNumber = 2; while (true) { ++$currentNumber; if ($currentNumber & 2 === 0) { continue; } $squareRoot = sqrt($currentNumber); $foundPrimeDivisor = false; foreach ($primes as $prime) { if ($prime > $squareRoot...
<?php use tomzx\ProjectEuler\Generator\Prime; require_once 'vendor/autoload.php'; // Find the $number-th prime number function q7($number) { $count = 0; foreach (Prime::generator() as $prime) { ++$count; if ($count === $number) { return $prime; } } } assert(13 === q7(6)); echo q7(10001);
Optimize problem 9 using the prime generator.
Optimize problem 9 using the prime generator.
PHP
mit
tomzx/project-euler,tomzx/project-euler,tomzx/project-euler
php
## Code Before: <?php // Find the $number-th prime number function q7($number) { $primes = [2]; $currentNumber = 2; while (true) { ++$currentNumber; if ($currentNumber & 2 === 0) { continue; } $squareRoot = sqrt($currentNumber); $foundPrimeDivisor = false; foreach ($primes as $prime) { if ($pri...
06641e1be5996425ad6f916c1769b4fafdaedf8c
README.md
README.md
A lightening talk on tidying up view logic in Rails apps using the Decorator Pattern and Draper gem. You can find the slides at: <http://johnotander.com/decorators_on_rails> See README-reveal.js.md for instructions on running.
A lightening talk for [localmotion](http://localmotion.io) about tidying up view logic in Rails apps using the Decorator Pattern and Draper gem. You can find the slides at: <http://johnotander.com/decorators_on_rails> See README-reveal.js.md for instructions on running.
Add more to the readme.
Add more to the readme.
Markdown
mit
johnotander/decorators_on_rails,johnotander/decorators_on_rails
markdown
## Code Before: A lightening talk on tidying up view logic in Rails apps using the Decorator Pattern and Draper gem. You can find the slides at: <http://johnotander.com/decorators_on_rails> See README-reveal.js.md for instructions on running. ## Instruction: Add more to the readme. ## Code After: A lightening tal...
90316cd7baf6b9a249a9f8b3e3c8afc678147bf5
environment.yml
environment.yml
name: tohu dependencies: - python=3.6 - mako - pytest - pytest-cov - pytest - python-dateutil - pip: - nbval - yapf
name: tohu dependencies: - python=3.6 - ipython - jupyter - mako - pytest - pytest-cov - pytest - python-dateutil - pip: - nbval - yapf
Add ipython and jupyter as dependencies.
Add ipython and jupyter as dependencies.
YAML
mit
maxalbert/tohu
yaml
## Code Before: name: tohu dependencies: - python=3.6 - mako - pytest - pytest-cov - pytest - python-dateutil - pip: - nbval - yapf ## Instruction: Add ipython and jupyter as dependencies. ## Code After: name: tohu dependencies: - python=3.6 - ipython - jupyter - mako - pytest - ...
3a44dbeec871aa057c4d5b42c9089a8d2b649063
django_agpl/urls.py
django_agpl/urls.py
from django.conf.urls import patterns, url from . import views urlpatterns = patterns('django_agpl.views', url(r'^tar$', views.tar, name='download-tar'), url(r'^zip$', views.zip, name='download-zip'), url(r'^targz$', views.targz, name='download-targz'), url(r'^tarbz2$', views...
from django.conf.urls import url from . import views urlpatterns = ( url(r'^tar$', views.tar, name='download-tar'), url(r'^zip$', views.zip, name='download-zip'), url(r'^targz$', views.targz, name='download-targz'), url(r'^tarbz2$', views.tarbz2, name='download-tarbz2...
Drop patterns import for Django 1.0 compatibility.
Drop patterns import for Django 1.0 compatibility.
Python
agpl-3.0
lamby/django-agpl,lamby/django-agpl
python
## Code Before: from django.conf.urls import patterns, url from . import views urlpatterns = patterns('django_agpl.views', url(r'^tar$', views.tar, name='download-tar'), url(r'^zip$', views.zip, name='download-zip'), url(r'^targz$', views.targz, name='download-targz'), url(r'...
8e1918c155c25a46e08aa2247363e39a25b29ba8
utils/tag-xmms2.sh
utils/tag-xmms2.sh
VERSION=$(grep "^BASEVERSION" wscript | sed -r 's/BASEVERSION=["]([^"]+)["]/\1/') TAG=$(echo $VERSION | tr -d ' ') echo -e "New version: '$VERSION' (tag: $TAG)\n" git diff echo -n "Accept? [y/N] " read ACCEPT if [ x$ACCEPT = "xY" ] || [ x$ACCEPT = "xy" ]; then git commit -a -m "RELEASE: $VERSION" git tag -u 7A8057...
VERSION=$(grep "^BASEVERSION" wscript | sed -r 's/BASEVERSION=["]([^"]+)["]/\1/') TAG=$(echo $VERSION | tr -d ' ') export GIT_AUTHOR_NAME="XMMS2 Release" export GIT_AUTHOR_EMAIL="release@xmms2.org" echo -e "New version: '$VERSION' (tag: $TAG)\n" git diff echo -n "Accept? [y/N] " read ACCEPT if [ x$ACCEPT = "xY" ] |...
Update user/email in tag script.
OTHER: Update user/email in tag script.
Shell
lgpl-2.1
theefer/xmms2,xmms2/xmms2-stable,krad-radio/xmms2-krad,krad-radio/xmms2-krad,xmms2/xmms2-stable,theeternalsw0rd/xmms2,chrippa/xmms2,chrippa/xmms2,six600110/xmms2,chrippa/xmms2,krad-radio/xmms2-krad,theeternalsw0rd/xmms2,theefer/xmms2,chrippa/xmms2,six600110/xmms2,six600110/xmms2,theefer/xmms2,chrippa/xmms2,theefer/xmms...
shell
## Code Before: VERSION=$(grep "^BASEVERSION" wscript | sed -r 's/BASEVERSION=["]([^"]+)["]/\1/') TAG=$(echo $VERSION | tr -d ' ') echo -e "New version: '$VERSION' (tag: $TAG)\n" git diff echo -n "Accept? [y/N] " read ACCEPT if [ x$ACCEPT = "xY" ] || [ x$ACCEPT = "xy" ]; then git commit -a -m "RELEASE: $VERSION" g...
f8eff2308c23fd2995bdbec60349cc591553677a
README.md
README.md
uyjulian's X-ray mod ==================== A mod for Minecraft that allows viewing of just a specific set of blocks. Please visit http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1287646-uyjulians-x-ray-mod-1-11-2-no-patcher-required for more information. Compiling ========= You can run `gradle...
uyjulian's X-ray mod ==================== A mod for Minecraft that allows viewing of just a specific set of blocks. Please visit https://sites.google.com/site/awertyb/minecraft-mods/x-ray-mod/m for more information. Compiling ========= You can run `gradle build` to build `.litemod` files for all supported Minecraft ...
Update link to information page
Update link to information page
Markdown
bsd-2-clause
uyjulian/MinecraftX-RAY
markdown
## Code Before: uyjulian's X-ray mod ==================== A mod for Minecraft that allows viewing of just a specific set of blocks. Please visit http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1287646-uyjulians-x-ray-mod-1-11-2-no-patcher-required for more information. Compiling ========= You...
baf74d6eeaf12e07b332543dfe00e36ba59e9ff5
README.md
README.md
`Zend\Captcha` component is able to manage “Completely Automated Public Turing test to tell Computers and Humans Apart” (CAPTCHA); it is used as a challenge-response to ensure that the individual submitting information is a human and not an automated process. Typically, a captcha is used with form submissions where au...
[![Build Status](https://secure.travis-ci.org/zendframework/zend-captcha.svg?branch=master)](https://secure.travis-ci.org/zendframework/zend-captcha) [![Coverage Status](https://coveralls.io/repos/zendframework/zend-captcha/badge.svg?branch=master)](https://coveralls.io/r/zendframework/zend-captcha) `Zend\Captcha` co...
Add Travis-CI and Coveralls badges for master branch
[readme] Add Travis-CI and Coveralls badges for master branch
Markdown
bsd-3-clause
MadCat34/zend-captcha,Lansoweb/zend-captcha
markdown
## Code Before: `Zend\Captcha` component is able to manage “Completely Automated Public Turing test to tell Computers and Humans Apart” (CAPTCHA); it is used as a challenge-response to ensure that the individual submitting information is a human and not an automated process. Typically, a captcha is used with form subm...
60d14025174dc50acb83f2c559f665e56696e624
core/components/com_tools/migrations/Migration20180703151011ComTools.php
core/components/com_tools/migrations/Migration20180703151011ComTools.php
<?php use Hubzero\Content\Migration\Base; /** * Migration script for com_tools to specify display ranges assigned to a hub, * i.e., the range used on an execution host. **/ class Migration20180703151011ComTools extends Base { /** * Up **/ public function up() { if (!$mwdb = $this->getMWDBO()) { $t...
<?php use Hubzero\Content\Migration\Base; /** * Migration script for com_tools to specify display ranges assigned to a hub, * i.e., the range used on an execution host. **/ class Migration20180703151011ComTools extends Base { /** * Up **/ public function up() { if (!$mwdb = $this->getMWDBO()) { $t...
Use middleware db for the query
[fix] Use middleware db for the query
PHP
mit
zooley/hubzero-cms,zweidner/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zooley/hubzero-cms,anthonyfuentes/hubzero-cms,zooley/hubzero-cms,anthonyfuentes/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms
php
## Code Before: <?php use Hubzero\Content\Migration\Base; /** * Migration script for com_tools to specify display ranges assigned to a hub, * i.e., the range used on an execution host. **/ class Migration20180703151011ComTools extends Base { /** * Up **/ public function up() { if (!$mwdb = $this->getMW...
77ee4b80ee0af48452878f0eaa6232569c8a731f
prow/oss/cluster/build/serviceaccounts.yaml
prow/oss/cluster/build/serviceaccounts.yaml
--- apiVersion: v1 kind: ServiceAccount metadata: annotations: iam.gke.io/gcp-service-account: presubmits@oss-prow-builds.iam.gserviceaccount.com name: presubmits namespace: test-pods ---
--- apiVersion: v1 kind: ServiceAccount metadata: annotations: iam.gke.io/gcp-service-account: presubmits@oss-prow-builds.iam.gserviceaccount.com name: presubmits namespace: test-pods --- apiVersion: v1 kind: ServiceAccount metadata: annotations: iam.gke.io/gcp-service-account: prowjob-default-sa@oss-pr...
Add default prowjob service account for workload identity
Add default prowjob service account for workload identity
YAML
apache-2.0
GoogleCloudPlatform/oss-test-infra,GoogleCloudPlatform/oss-test-infra
yaml
## Code Before: --- apiVersion: v1 kind: ServiceAccount metadata: annotations: iam.gke.io/gcp-service-account: presubmits@oss-prow-builds.iam.gserviceaccount.com name: presubmits namespace: test-pods --- ## Instruction: Add default prowjob service account for workload identity ## Code After: --- apiVersion:...
23cd1ea939df8d78952f9b096207de0a3453529f
tests/test_create.py
tests/test_create.py
from matador.commands import CreateTicket, CreatePackage from dulwich.repo import Repo from pathlib import Path def test_add_to_git(project_repo): pass def test_create_ticket(session, project_repo): test_ticket = 'test-ticket' CreateTicket(ticket=test_ticket) ticket_folder = Path(project_repo, 'depl...
from matador.commands import CreateTicket, CreatePackage from dulwich.repo import Repo from pathlib import Path def test_add_to_git(project_repo): pass def test_create_ticket(session, project_repo): test_ticket = 'test-ticket' CreateTicket(ticket=test_ticket) ticket_folder = Path(project_repo, 'dep...
Add test for package commit
Add test for package commit
Python
mit
Empiria/matador
python
## Code Before: from matador.commands import CreateTicket, CreatePackage from dulwich.repo import Repo from pathlib import Path def test_add_to_git(project_repo): pass def test_create_ticket(session, project_repo): test_ticket = 'test-ticket' CreateTicket(ticket=test_ticket) ticket_folder = Path(pro...
4202c5f03b6bc1551b151007ea88dc88676b5781
app/views/case_workers/claims/_caseworker_claims.html.haml
app/views/case_workers/claims/_caseworker_claims.html.haml
%table#claims-list %thead %tr %th %th Case number %th Advocate %th Defendant(s) %th{:title => "Including VAT"} Claim Total %th Date %th Status %th.message-placeholder %tbody - @claims.each do |claim_object| ...
%table#claims-list %thead %tr %th %th Case number %th Advocate %th Defendant(s) %th{:title => "Including VAT"} Claim Total %th Date %th.message-placeholder %tbody - @claims.each do |claim_object| - present(claim_object) ...
Remove 'status' column from the report.
Remove 'status' column from the report.
Haml
mit
ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments,ministryofjustice/advocate-defence-payments
haml
## Code Before: %table#claims-list %thead %tr %th %th Case number %th Advocate %th Defendant(s) %th{:title => "Including VAT"} Claim Total %th Date %th Status %th.message-placeholder %tbody - @claims.each do |cla...
edd5daf2584a5feb9f1e38f163e9d66a1bf59a72
prototypes/using-aurora/main.html
prototypes/using-aurora/main.html
<!DOCTYPE html> <html> <head> <title>Simple web page, loading Twitter Bootstrap, Backbone, and jQuery</title> <script type="text/javascript" src="../shared/head.js"></script> <script type="text/javascript"> head.js("js/main.js"); </script> <link href="../shared/bootstrap/css/bootstrap.css" r...
<!DOCTYPE html> <html> <head> <title>Simple web page, loading Twitter Bootstrap, Backbone, and jQuery</title> <script type="text/javascript" src="../shared/head.js"></script> <script type="text/javascript"> head.js("js/main.js"); </script> <link href="../shared/bootstrap/css/bootstrap.css" r...
Clean up prototype page slightly
Clean up prototype page slightly
HTML
bsd-2-clause
calpath/scenario-editor,akurzhan/scenario-editor,akurzhan/scenario-editor,calpath/scenario-editor,akurzhan/scenario-editor,calpath/scenario-editor
html
## Code Before: <!DOCTYPE html> <html> <head> <title>Simple web page, loading Twitter Bootstrap, Backbone, and jQuery</title> <script type="text/javascript" src="../shared/head.js"></script> <script type="text/javascript"> head.js("js/main.js"); </script> <link href="../shared/bootstrap/css/...
01b2c520493a7ae51f21849f75b49c4e277b2249
README.md
README.md
convey ====== A PHP PRCE-based micro-router without dispatch responsibilities.
convey ====== [![Build Status](https://travis-ci.org/lord2800/convey.png?branch=master)](https://travis-ci.org/lord2800/convey) [https://lord2800.github.io/convey/coverage/](Code Coverage) A PHP PRCE-based micro-router without dispatch responsibilities.
Add code coverage to readme
Add code coverage to readme [ci-skip]
Markdown
mit
lord2800/convey,lord2800/convey
markdown
## Code Before: convey ====== A PHP PRCE-based micro-router without dispatch responsibilities. ## Instruction: Add code coverage to readme [ci-skip] ## Code After: convey ====== [![Build Status](https://travis-ci.org/lord2800/convey.png?branch=master)](https://travis-ci.org/lord2800/convey) [https://lord2800.githu...
0cacec3b2aa911757329bd3a9af342e760ca130c
gulp/test.js
gulp/test.js
'use strict'; let gulp = require('gulp'); let karma = require('karma'); /** * Run test once and exit */ gulp.task('test', function (done) { new karma.Server({ configFile: __dirname + '../../karma.conf.js', singleRun: true }, () => done()).start(); });
'use strict'; let gulp = require('gulp'); let karma = require('karma'); /** * Run test once and exit */ gulp.task('test', function (done) { new karma.Server({ configFile: __dirname + '../../karma.conf.js', singleRun: true }).start(); });
Remove unused callback (causing weird error)
Remove unused callback (causing weird error)
JavaScript
mit
niteshpatel/angular-seed-gulp-browserify
javascript
## Code Before: 'use strict'; let gulp = require('gulp'); let karma = require('karma'); /** * Run test once and exit */ gulp.task('test', function (done) { new karma.Server({ configFile: __dirname + '../../karma.conf.js', singleRun: true }, () => done()).start(); }); ## Instruction: Remove ...
a3822f5c4291d30131ed282888beedbf07624372
circle.yml
circle.yml
dependencies: pre: - pip install python-openstackclient test: override: - openstack orchestration template validate -e scaling/env.yml -t scaling/scale_down_up_vm_cpu.yml - openstack orchestration template validate -t heat_registry_proxy.yml
dependencies: pre: - pip install python-heatclient test: override: - heat template-validate -e scaling/env.yml -f scaling/scale_down_up_vm_cpu.yml - heat template-validate -f heat_registry_proxy.yml
Use heat client to validate templates
Use heat client to validate templates
YAML
apache-2.0
BBVA/heat-templates
yaml
## Code Before: dependencies: pre: - pip install python-openstackclient test: override: - openstack orchestration template validate -e scaling/env.yml -t scaling/scale_down_up_vm_cpu.yml - openstack orchestration template validate -t heat_registry_proxy.yml ## Instruction: Use heat client to validate ...
6a1466531944021bf13f0d24573fdda1e3991649
exercises/flatten-array/metadata.yml
exercises/flatten-array/metadata.yml
--- blurb: "Write a program that will take a nested list and returns a single list with all values except nil/null" source: "Interview Question" source_url: "https://reference.wolfram.com/language/ref/Flatten.html"
--- blurb: "Take a nested list and return a single list with all values except nil/null" source: "Interview Question" source_url: "https://reference.wolfram.com/language/ref/Flatten.html"
Remove "write a program" from flatten-array exercise
Remove "write a program" from flatten-array exercise
YAML
mit
kgengler/x-common,jmluy/x-common,ErikSchierboom/x-common,jmluy/x-common,exercism/x-common,Vankog/problem-specifications,jmluy/x-common,kgengler/x-common,exercism/x-common,petertseng/x-common,rpottsoh/x-common,rpottsoh/x-common,Vankog/problem-specifications,ErikSchierboom/x-common,petertseng/x-common
yaml
## Code Before: --- blurb: "Write a program that will take a nested list and returns a single list with all values except nil/null" source: "Interview Question" source_url: "https://reference.wolfram.com/language/ref/Flatten.html" ## Instruction: Remove "write a program" from flatten-array exercise ## Code After: ---...
f711feb61bf709fe982fd8c935814b10f7fb02e1
composer.json
composer.json
{ "name": "videlalvaro/php-amqplib", "type": "library", "description": "This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.", "keywords": ["rabbitmq", "message", "queue"], "homepage": "https://github.com/videlalvaro/php-amqplib/", "authors": [ ...
{ "name": "videlalvaro/php-amqplib", "type": "library", "description": "This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.", "keywords": ["rabbitmq", "message", "queue"], "homepage": "https://github.com/videlalvaro/php-amqplib/", "authors": [ ...
Add PHP sockets extension to gitignore
Add PHP sockets extension to gitignore
JSON
lgpl-2.1
ParentMail/php-amqplib,jeffreydwalter/php-amqplib,RealSelf/php-amqplib,Gelembjuk/php52-amqplib,videlalvaro/php-amqplib,DawidMazurek/php-amqplib,sivarajan/videlalvaro,LTD-Beget/php-amqplib,NickTaporuk/php-amqplib,NickTaporuk/php-amqplib,PepijnSenders/php-amqplib,fprochazka/php-amqplib,javabudd/php-amqplib,ruicampos/php-...
json
## Code Before: { "name": "videlalvaro/php-amqplib", "type": "library", "description": "This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.", "keywords": ["rabbitmq", "message", "queue"], "homepage": "https://github.com/videlalvaro/php-amqplib/", "a...
c8d3c48c4f1114195de52f0edddb56cb88188c2c
spec/models/article_spec.rb
spec/models/article_spec.rb
RSpec.describe Article, type: :model do subject(:article) { Article.new(id, source) } let(:id) { 'govspeak' } describe '#title' do subject(:title) { article.title } context 'when the article has no level one headers' do let(:source) { '## No level one headers' } it { is_expected.to be_blan...
RSpec.describe Article, type: :model do subject(:article) { Article.new(id, source) } let(:id) { 'govspeak' } describe '#title' do subject(:title) { article.title } context 'when the article has no level one headers' do let(:source) { '## No level one headers' } it { is_expected.to be_blan...
Reduce verbosity of article spec output
Reduce verbosity of article spec output
Ruby
mit
guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance,guidance-guarantee-programme/pension_guidance
ruby
## Code Before: RSpec.describe Article, type: :model do subject(:article) { Article.new(id, source) } let(:id) { 'govspeak' } describe '#title' do subject(:title) { article.title } context 'when the article has no level one headers' do let(:source) { '## No level one headers' } it { is_exp...
0c1d9d1694ade33dab52c138ffebd58fc2cb8b64
scripts/kerb.coffee
scripts/kerb.coffee
jsdom = require "jsdom" module.exports = (robot) -> robot.respond /what\'s on kerb/i, (msg) -> url = "http://www.kerbfood.com/kings-cross/" jsdom.env url, [ "http://code.jquery.com/jquery-1.5.min.js" ], (errors, window) -> d = new Date(); formatted_date = d.getFullYear() + "-" + (d.getMonth() +...
jsdom = require "jsdom" module.exports = (robot) -> robot.respond /what\'s on kerb/i, (msg) -> url = "http://www.kerbfood.com/kings-cross/" jsdom.env url, [ "http://code.jquery.com/jquery-1.5.min.js" ], (errors, window) -> d = new Date(); day = d.getDate() day = (day < 10 ? '0' : '') + nu...
Fix days of week formatting (1 -> 01)
Fix days of week formatting (1 -> 01)
CoffeeScript
mit
altmetric/hubot-kerb,altmetric/hubot-kerb
coffeescript
## Code Before: jsdom = require "jsdom" module.exports = (robot) -> robot.respond /what\'s on kerb/i, (msg) -> url = "http://www.kerbfood.com/kings-cross/" jsdom.env url, [ "http://code.jquery.com/jquery-1.5.min.js" ], (errors, window) -> d = new Date(); formatted_date = d.getFullYear() + "-" +...
7e2e8b75267506271ca44e3eea3035214ab71118
README.md
README.md
Alloy with Jade and Stylus Sample ================================= Preparation ------------ Require [Jade](https://www.npmjs.com/package/jade) and [Stylus](https://www.npmjs.com/package/stylus) ``` $ [sudo] npm install -g Jade $ [sudo] npm install -g stylus ```
Alloy with Jade and Stylus Sample ================================= Preparation ------------ Require [Jade](https://www.npmjs.com/package/jade) and [Stylus](https://www.npmjs.com/package/stylus) ``` $ [sudo] npm install -g Jade $ [sudo] npm install -g stylus ``` Usage ----- ### Use `include` Jade-file to be incl...
Add rules for using the include
Add rules for using the include
Markdown
apache-2.0
umi-uyura/AlloyJadeStylusExam,umi-uyura/AlloyJadeStylusExam,umi-uyura/AlloyJadeStylusExam
markdown
## Code Before: Alloy with Jade and Stylus Sample ================================= Preparation ------------ Require [Jade](https://www.npmjs.com/package/jade) and [Stylus](https://www.npmjs.com/package/stylus) ``` $ [sudo] npm install -g Jade $ [sudo] npm install -g stylus ``` ## Instruction: Add rules for using ...
2d26a529b74aaef715b2a2a2b0e20f981a332764
app/helpers/vue_helper.rb
app/helpers/vue_helper.rb
module VueHelper def link_and_dropdown_ssh(value) <<-EOS.html_safe <div v-if="#{value}" class="dropdown"> #{link_to "{{#{value}}}", "//{{#{value}}}", target: '_blank'} <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="caret"></span> </a> <ul cla...
module VueHelper def link_and_dropdown_ssh(value) <<-EOS.html_safe <div v-if="#{value}" class="dropdown"> #{link_to "{{#{value}}}", "//{{#{value}}}", target: '_blank'} <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="caret"></span> </a> <ul cla...
Enable to work copy button
Enable to work copy button
Ruby
mit
skyarch-networks/skyhopper,skyarch-networks/skyhopper,skyarch-networks/skyhopper,skyarch-networks/skyhopper
ruby
## Code Before: module VueHelper def link_and_dropdown_ssh(value) <<-EOS.html_safe <div v-if="#{value}" class="dropdown"> #{link_to "{{#{value}}}", "//{{#{value}}}", target: '_blank'} <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <span class="caret"></span> ...
13fc59baa49d4f49d4e6ad9e0766ae2aede2fc25
proselint/command_line.py
proselint/command_line.py
"""Command line utility for proselint.""" import click import os import imp def log_error(line, column, error_code, msg): """Print a message to the command line.""" click.echo(str(line) + ":" + str(column) + " \t" + error_code + ": " + msg + " " + ...
"""Command line utility for proselint.""" import click import os import imp def log_error(line, column, error_code, msg): """Print a message to the command line.""" click.echo(str(line) + ":" + str(column) + " \t" + error_code + ": " + msg + " " + ...
Raise an error if no file is specified
Raise an error if no file is specified
Python
bsd-3-clause
jstewmon/proselint,amperser/proselint,jstewmon/proselint,amperser/proselint,jstewmon/proselint,amperser/proselint,amperser/proselint,amperser/proselint
python
## Code Before: """Command line utility for proselint.""" import click import os import imp def log_error(line, column, error_code, msg): """Print a message to the command line.""" click.echo(str(line) + ":" + str(column) + " \t" + error_code + ": " + msg + " " +...
893ef83e588b5181101a13e412d72ebcc3f4f528
codebrag-ui/src/main/webapp/scripts/commits/comments/commentable.js
codebrag-ui/src/main/webapp/scripts/commits/comments/commentable.js
angular.module('codebrag.commits.comments') .directive('commentable', function($compile, events) { var template = $('#inlineCommentForm').html(); return { restrict: 'A', link: function(scope, element, attrs) { var alreadyOpened = false; var co...
angular.module('codebrag.commits.comments') .directive('commentable', function($compile, events) { var template = $('#inlineCommentForm').html(); return { restrict: 'A', link: function(scope, element) { var alreadyOpened = false; var onclick ...
Add possibility to open comment form by clicking anywhere in the diff line
Add possibility to open comment form by clicking anywhere in the diff line
JavaScript
agpl-3.0
cazacugmihai/codebrag,softwaremill/codebrag,cazacugmihai/codebrag,softwaremill/codebrag,softwaremill/codebrag,softwaremill/codebrag,cazacugmihai/codebrag,cazacugmihai/codebrag,cazacugmihai/codebrag
javascript
## Code Before: angular.module('codebrag.commits.comments') .directive('commentable', function($compile, events) { var template = $('#inlineCommentForm').html(); return { restrict: 'A', link: function(scope, element, attrs) { var alreadyOpened = false; ...
d92e4be5a9be70c02f471113e03f1c4054d1cd0f
src/app/views/pools/_images.html.haml
src/app/views/pools/_images.html.haml
-if flash[:error] -if flash[:error].kind_of?(String) .flash-subset %div.heading =image_tag 'flash_error_icon.png', :alt => 'Errors' =flash[:error] -else - @pool.catalogs.each do |catalog| %div.catalog_deployments_and_images %h1 = catalog.name = t('.catalog') ...
-if flash[:error] -if flash[:error].kind_of?(String) .flash-subset %div.heading =image_tag 'flash_error_icon.png', :alt => 'Errors' =flash[:error] -else - @pool.catalogs.list_for_user(current_user, Privilege::VIEW).each do |catalog| %div.catalog_deployments_and_images %h1 ...
Fix permission checking on pools/_images
BZ788048: Fix permission checking on pools/_images https://bugzilla.redhat.com/show_bug.cgi?id=788048 Resending it based on Scott's suggestion.
Haml
apache-2.0
aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor,aeolusproject/conductor
haml
## Code Before: -if flash[:error] -if flash[:error].kind_of?(String) .flash-subset %div.heading =image_tag 'flash_error_icon.png', :alt => 'Errors' =flash[:error] -else - @pool.catalogs.each do |catalog| %div.catalog_deployments_and_images %h1 = catalog.name = t('...
f8493acd6a626828651c252d453626998d6a9a81
config/system.date.yml
config/system.date.yml
country: default: '' first_day: 0 timezone: default: UTC user: configurable: true warn: false default: 0 _core: default_config_hash: V9UurX2GPT05NWKG9f2GWQqFG2TRG8vczidwjpy7Woo
country: default: '' first_day: 0 timezone: default: America/Los_Angeles user: configurable: true warn: false default: 0 _core: default_config_hash: V9UurX2GPT05NWKG9f2GWQqFG2TRG8vczidwjpy7Woo
Set timezone to L.A. again.
Set timezone to L.A. again.
YAML
mit
badcamp/badcamp-2017,badcamp/badcamp-2017,badcamp/badcamp-2017,badcamp/badcamp-2017
yaml
## Code Before: country: default: '' first_day: 0 timezone: default: UTC user: configurable: true warn: false default: 0 _core: default_config_hash: V9UurX2GPT05NWKG9f2GWQqFG2TRG8vczidwjpy7Woo ## Instruction: Set timezone to L.A. again. ## Code After: country: default: '' first_day: 0 timezone: ...
b6d27f2951782d03f8413ed2a041a80334c6977a
blueprints/acceptance-test/mocha-files/tests/acceptance/__name__-test.js
blueprints/acceptance-test/mocha-files/tests/acceptance/__name__-test.js
import { describe, it, beforeEach, afterEach } from 'mocha'; import { expect } from 'chai'; import startApp from '../helpers/start-app'; <% if (destroyAppExists) { %>import destroyApp from '../helpers/destroy-app';<% } else { %>import Ember from 'ember';<% } %> describe('<%= friendlyTestName %>', function() { let ap...
import { describe, it, beforeEach, afterEach } from 'mocha'; import { expect } from 'chai'; import startApp from '<%= dasherizedPackageName %>/helpers/start-app'; <% if (destroyAppExists) { %>import destroyApp from '<%= dasherizedPackageName %>/helpers/destroy-app';<% } else { %>import Ember from 'ember';<% } %> descr...
Use absolute path in mocha acceptance test blueprints
Use absolute path in mocha acceptance test blueprints
JavaScript
mit
mike-north/ember.js,thoov/ember.js,cbou/ember.js,mfeckie/ember.js,Patsy-issa/ember.js,nickiaconis/ember.js,kanongil/ember.js,mike-north/ember.js,GavinJoyce/ember.js,cibernox/ember.js,mike-north/ember.js,jaswilli/ember.js,Serabe/ember.js,stefanpenner/ember.js,cibernox/ember.js,amk221/ember.js,givanse/ember.js,davidpett/...
javascript
## Code Before: import { describe, it, beforeEach, afterEach } from 'mocha'; import { expect } from 'chai'; import startApp from '../helpers/start-app'; <% if (destroyAppExists) { %>import destroyApp from '../helpers/destroy-app';<% } else { %>import Ember from 'ember';<% } %> describe('<%= friendlyTestName %>', funct...
dd98e44ca493a7fa0c7a2f91716a3ad703b9f9a1
spec/api/v1/search_spec.rb
spec/api/v1/search_spec.rb
require 'search/repository' describe API::V1::Search do before(:context) do repo = Search::Repository.new repo.delete_index! if repo.index_exists? repo.create_index! sleep 1 create(:envelope_community) create(:envelope_community, name: 'credential_registry') end context 'GET /api/search...
require 'search/repository' describe API::V1::Search do before(:context) do repo = Search::Repository.new repo.delete_index! if repo.index_exists? repo.create_index! sleep 1 create(:envelope_community) create(:envelope_community, name: 'credential_registry') end context 'GET /api/search...
Comment search filter tests because of an issue with ES version on codeship
Comment search filter tests because of an issue with ES version on codeship
Ruby
apache-2.0
coffeejunk/CredentialRegistry,CredentialEngine/CredentialRegistry,learningtapestry/learningregistry,coffeejunk/CredentialRegistry,coffeejunk/CredentialRegistry,CredentialEngine/CredentialRegistry,learningtapestry/learningregistry,CredentialEngine/CredentialRegistry,learningtapestry/learningregistry
ruby
## Code Before: require 'search/repository' describe API::V1::Search do before(:context) do repo = Search::Repository.new repo.delete_index! if repo.index_exists? repo.create_index! sleep 1 create(:envelope_community) create(:envelope_community, name: 'credential_registry') end context ...
a794ddb2b7bd4bfcbaa8163f3308744b3da27bfb
README.md
README.md
Adds useful mappings `<leader>[` and `<leader>]` analogous to `{` and `}`. See animated gif for explanation (coming soon). ### How it works Coming soon... ### Installation * Vundle `Bundle 'bruno-/vim-paragraph-extended'` * Pathogen `git clone git://github.com/bruno-/vim-paragraph-extended.git ~/.vim/bundle...
![Build Status](https://travis-ci.org/bruno-/vim-paragraph-extended.png?branch=master) Adds useful mappings `<leader>[` and `<leader>]` analogous to `{` and `}`. See animated gif for explanation (coming soon). ### How it works Coming soon... ### Installation * Vundle `Bundle 'bruno-/vim-paragraph-extended'` *...
Add travis cs build status icon
Add travis cs build status icon
Markdown
mit
bruno-/vim-vertical-move,itchyny/vim-vertical-move
markdown
## Code Before: Adds useful mappings `<leader>[` and `<leader>]` analogous to `{` and `}`. See animated gif for explanation (coming soon). ### How it works Coming soon... ### Installation * Vundle `Bundle 'bruno-/vim-paragraph-extended'` * Pathogen `git clone git://github.com/bruno-/vim-paragraph-extended.g...
a1ff3b4dd6e635cfb7e3ee28a36ee3d26e67903d
app.rb
app.rb
require 'sinatra' require 'sinatra/reloader' configure do set :public_folder, File.dirname(__FILE__) + '/json' end get '/:name' do content_type 'application/json' if params[:name].nil? then File.readlines(params[:name]) else "File not found" end end
require 'sinatra' require 'sinatra/reloader' configure do set :public_folder, File.dirname(__FILE__) + '/json' end get '/:name' do content_type 'application/json' if params[:name].nil? then File.readlines(params[:name]) else status 400 end end
Return 404 if the request file is not there
Return 404 if the request file is not there
Ruby
apache-2.0
yelinaung/JSONatra
ruby
## Code Before: require 'sinatra' require 'sinatra/reloader' configure do set :public_folder, File.dirname(__FILE__) + '/json' end get '/:name' do content_type 'application/json' if params[:name].nil? then File.readlines(params[:name]) else "File not found" end end ## Instruction: Return 404 if th...
906ada3541c2d001f7bbdd1a2ad7ca1f4d9f754b
demo/controller/main.go
demo/controller/main.go
package main import ( "github.com/voxelbrain/goptions" "os" "time" ) func main() { options := struct { Servers []string `goptions:"-s, --server, obligatory, description='Servers to connect to'"` Password string `goptions:"-p, --password, description='Don\\'t prompt for password'"` Timeout time...
package main import ( "fmt" "os" "time" "github.com/voxelbrain/goptions" ) func main() { options := struct { Servers []string `goptions:"-s, --server, obligatory, description='Servers to connect to'"` Password string `goptions:"-p, --password, description='Don\\'t prompt for password'"` Timeo...
Apply golang opts, and give an example
Apply golang opts, and give an example
Go
mit
MarsBighead/garden,MarsBighead/garden,MarsBighead/garden,MarsBighead/garden
go
## Code Before: package main import ( "github.com/voxelbrain/goptions" "os" "time" ) func main() { options := struct { Servers []string `goptions:"-s, --server, obligatory, description='Servers to connect to'"` Password string `goptions:"-p, --password, description='Don\\'t prompt for password'"`...
2750a3347eaf472f0d11e6772a47dc29b5a5edb5
resources/config/subscribers.yml
resources/config/subscribers.yml
services: subscriber.stash_unstaged_changes: class: GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber arguments: - '@config' - '@git.repository' - '@grumphp.io' tags: - { name: grumphp.event_subscriber }
services: subscriber.stash_unstaged_changes: class: GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber arguments: - '@config' - '@git.repository' - '@grumphp.io' tags: - { name: grumphp.event_subscriber } public: true
Add a key 'public: true' for the service 'subscriber.stash_unstaged_changes' because we have a problem with symphony DI vendor of 4.0 version
Add a key 'public: true' for the service 'subscriber.stash_unstaged_changes' because we have a problem with symphony DI vendor of 4.0 version
YAML
mit
aderuwe/grumphp,aderuwe/grumphp,Big-Shark/grumphp,tombevers/grumphp,phpro/grumphp,jyggen/grumphp,janvernieuwe/grumphp,phpro/grumphp,janvernieuwe/grumphp,Big-Shark/grumphp,tombevers/grumphp,jyggen/grumphp,veewee/grumphp,veewee/grumphp
yaml
## Code Before: services: subscriber.stash_unstaged_changes: class: GrumPHP\Event\Subscriber\StashUnstagedChangesSubscriber arguments: - '@config' - '@git.repository' - '@grumphp.io' tags: - { name: grumphp.event_subscriber } ## Instruction: Add a key 'public: true' for the servic...
183c7ef90ecc588579362be8540a9317173b76b6
addon/components/lm-type-icon.js
addon/components/lm-type-icon.js
import Ember from 'ember'; import layout from '../templates/components/lm-type-icon'; const { computed } = Ember; export default Ember.Component.extend({ layout, listItem: false, type: null, mimetype: null, tagName: 'span', classNames: ['lm-type-icon'], icon: computed('type', 'mimetype', function() { ...
import Ember from 'ember'; import layout from '../templates/components/lm-type-icon'; const { computed } = Ember; export default Ember.Component.extend({ layout, listItem: false, type: null, mimetype: null, tagName: 'span', classNames: ['lm-type-icon'], icon: computed('type', 'mimetype', function() { ...
Remove deprecated fa- prefix from LM icons
Remove deprecated fa- prefix from LM icons
JavaScript
mit
ilios/common,ilios/common
javascript
## Code Before: import Ember from 'ember'; import layout from '../templates/components/lm-type-icon'; const { computed } = Ember; export default Ember.Component.extend({ layout, listItem: false, type: null, mimetype: null, tagName: 'span', classNames: ['lm-type-icon'], icon: computed('type', 'mimetype',...
a69260520015e65f86532c83c9a4ea2d5aef493b
lib/repository-mappers/figshare/parseL1ArticlePresenters.js
lib/repository-mappers/figshare/parseL1ArticlePresenters.js
import { map } from 'lodash'; function parseL1ArticlePresenter(article) { return { identifier: article.doi, datePublished: article.published_date, title: article.title, } } export default function parseL1ArticlePresenters(articles) { return map(articles, parseL1ArticlePresenter); }
import { map } from 'lodash'; function parseL1ArticlePresenter(article) { return { id: article.id, identifier: article.doi, datePublished: article.published_date, title: article.title, } } export default function parseL1ArticlePresenters(articles) { return map(articles, parseL1ArticlePresenter);...
Add figshare ID to L1 presenter data
Add figshare ID to L1 presenter data
JavaScript
mit
mozillascience/software-discovery-dashboard,mozillascience/software-discovery-dashboard
javascript
## Code Before: import { map } from 'lodash'; function parseL1ArticlePresenter(article) { return { identifier: article.doi, datePublished: article.published_date, title: article.title, } } export default function parseL1ArticlePresenters(articles) { return map(articles, parseL1ArticlePresenter); } ...
3edc988395a7724e10f65ea8121c494cb7961c17
src/OptionsParser.ts
src/OptionsParser.ts
import { ParsedArgs } from "minimist"; import * as path from "path"; import * as shelljs from "shelljs"; import * as OptionsParserInterfaces from "./OptionsParser.interfaces"; export abstract class OptionsParser { protected static HELP_MESSAGE_PATH: string = path.join(__dirname, "help"); protected options: O...
import { ParsedArgs } from "minimist"; import * as path from "path"; import * as shelljs from "shelljs"; import * as OptionsParserInterfaces from "./OptionsParser.interfaces"; export abstract class OptionsParser { protected static HELP_MESSAGE_PATH: string = path.join(__dirname, "help"); protected options: O...
Change exit permissions to protected
Change exit permissions to protected
TypeScript
isc
thecjharries/slim-ace,thecjharries/slim-ace
typescript
## Code Before: import { ParsedArgs } from "minimist"; import * as path from "path"; import * as shelljs from "shelljs"; import * as OptionsParserInterfaces from "./OptionsParser.interfaces"; export abstract class OptionsParser { protected static HELP_MESSAGE_PATH: string = path.join(__dirname, "help"); prot...
2d927dd672bda06cc9fb4cce73830c97712db009
packages/co/conversion-bytestring.yaml
packages/co/conversion-bytestring.yaml
homepage: https://github.com/nikita-volkov/conversion-bytestring changelog-type: markdown hash: 273d42b5fae89e38be49f9a871f8dc5665a706fc09027a0971e73becbddfce49 test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: ! '"Conversion" instances for the "bytestring" library' changelog: '' basic-d...
homepage: https://github.com/nikita-volkov/conversion-bytestring changelog-type: markdown hash: 65513d369524b79d080c1e995a8771231a31309ca64ccbe684b454a2bccd9a4d test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: '"Conversion" instances for the "bytestring" library' changelog: '' basic-dep...
Update from Hackage at 2022-05-04T14:44:00Z
Update from Hackage at 2022-05-04T14:44:00Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/nikita-volkov/conversion-bytestring changelog-type: markdown hash: 273d42b5fae89e38be49f9a871f8dc5665a706fc09027a0971e73becbddfce49 test-bench-deps: {} maintainer: Nikita Volkov <nikita.y.volkov@mail.ru> synopsis: ! '"Conversion" instances for the "bytestring" library' chang...
b8880086c6a401eeebd17af7158eab78c6b905b6
src/js/myapp.jsx
src/js/myapp.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import Data from '../../../data/monsters'; ReactDOM.render(<App allMonsters={Data} />, document.getElementById('mountpoint'));
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import Data from '../../../data/monsters'; import "../css/style"; ReactDOM.render(<App allMonsters={Data} />, document.getElementById('mountpoint'));
Add ref to style for webpack
Add ref to style for webpack
JSX
mit
jkrayer/summoner,jkrayer/summoner
jsx
## Code Before: import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; import Data from '../../../data/monsters'; ReactDOM.render(<App allMonsters={Data} />, document.getElementById('mountpoint')); ## Instruction: Add ref to style for webpack ## Code After: import React from 'react'; i...
30118d67068acf1db8e2be5fac6ba539d2ef658f
app/components/Header/Nav/Navbar/NavbarLinkItem.js
app/components/Header/Nav/Navbar/NavbarLinkItem.js
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 02 June, 2016 * License: MIT * * Navbar Link Item Component */ import React from "react"; export default class NavbarLink...
/** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 02 June, 2016 * License: MIT * * Navbar Link Item Component */ import React from "react"; import { Link } from "react-rout...
Use Link component instead of anchors to play nice with routes.
Use Link component instead of anchors to play nice with routes.
JavaScript
mit
kushalpandya/poster,kushalpandya/poster
javascript
## Code Before: /** * Poster v0.1.0 * A React webapp to list upcoming movies and maintain a watchlist, powered by TMDb * * Author: Kushal Pandya <kushalspandya@gmail.com> (https://doublslash.com) * Date: 02 June, 2016 * License: MIT * * Navbar Link Item Component */ import React from "react"; export default ...
80df9cb01bfdf94dea8dc9f3493b5dbb3f56ee6b
web/lib/fireworks-react/webpack.config.js
web/lib/fireworks-react/webpack.config.js
const { resolve } = require('path'); const webpack = require('webpack'); module.exports = { context: resolve(__dirname, 'src'), entry: [ './Fireworks.js' // the entry point of our app ], output: { filename: 'fireworks.bundle.js', // the output bundle path: resolve(__dirname,...
/* eslint-disable */ const { resolve } = require('path'); const webpack = require('webpack'); module.exports = { context: resolve(__dirname, 'src'), entry: [ './Fireworks.js' // the entry point of our app ], output: { filename: 'fireworks.bundle.js', // the output bundle pa...
Disable linting for fireworks-react webpack
Disable linting for fireworks-react webpack
JavaScript
mpl-2.0
gladly-team/tab,gladly-team/tab,gladly-team/tab
javascript
## Code Before: const { resolve } = require('path'); const webpack = require('webpack'); module.exports = { context: resolve(__dirname, 'src'), entry: [ './Fireworks.js' // the entry point of our app ], output: { filename: 'fireworks.bundle.js', // the output bundle path: resolve(__dirnam...
188740715a699c25651a74f3ce090aa130127680
src/commands.ts
src/commands.ts
import * as vscode from 'vscode'; const lodashSortBy = require('lodash.sortby'); export const COMMAND_LABELS = { '1toX': '1toX' }; export function runCommand (command: string) { const editor = vscode.window.activeTextEditor; const { document, selections } = editor; editor.edit(editBuilder => { ...
import * as vscode from 'vscode'; const lodashSortBy = require('lodash.sortby'); export const COMMAND_LABELS = { '1toX': '1toX' }; export function runCommand (command: string) { const editor = vscode.window.activeTextEditor; const { document, selections } = editor; editor.edit(editBuilder => { ...
Delete any existing selected text when inserting text
Delete any existing selected text when inserting text
TypeScript
mit
jkjustjoshing/vscode-text-pastry
typescript
## Code Before: import * as vscode from 'vscode'; const lodashSortBy = require('lodash.sortby'); export const COMMAND_LABELS = { '1toX': '1toX' }; export function runCommand (command: string) { const editor = vscode.window.activeTextEditor; const { document, selections } = editor; editor.edit(editBu...
4898cce00f0d1dc68b32b8bc01b74fc0d172cfd6
src/api/googleAPIResponseParser.js
src/api/googleAPIResponseParser.js
import { MAX_PHOTO_WIDTH_IN_PX } from '../constants'; export const getRestaurantId = restaurant => restaurant.place_id; export const getRestaurantLocation = restaurant => restaurant.geometry.location; const getRestaurantPhotoUrl = (restaurant) => { const { photos } = restaurant; if (!photos || !photos.length) r...
import { MAX_PHOTO_WIDTH_IN_PX } from '../constants'; export const getRestaurantId = restaurant => restaurant.place_id; export const getRestaurantLocation = restaurant => restaurant.geometry.location; const getRestaurantPhotoUrl = (restaurant) => { const { photos } = restaurant; if (!photos || !photos.length) r...
Simplify computation of photo width
Simplify computation of photo width
JavaScript
mit
soyguijarro/lunchroulette,soyguijarro/lunchroulette
javascript
## Code Before: import { MAX_PHOTO_WIDTH_IN_PX } from '../constants'; export const getRestaurantId = restaurant => restaurant.place_id; export const getRestaurantLocation = restaurant => restaurant.geometry.location; const getRestaurantPhotoUrl = (restaurant) => { const { photos } = restaurant; if (!photos || !...
33864bb7ba10f3e0e19f0ab6cd8ea87c035b75e1
lib/SReview/Talk/State.pm
lib/SReview/Talk/State.pm
package SReview::Talk::State; use overload '<=>' => 'statecmp', 'cmp' => 'statecmp', '""' => 'output'; use Carp; my %states = ( waiting_for_files => 0, cutting => 1, generating_previews => 2, notification => 3, preview => 4, transcoding => 5, uploading => 6, announcing => 7, done => 8, injecting => 9, bro...
package SReview::Talk::State; use overload '<=>' => 'statecmp', 'cmp' => 'statecmp', '""' => 'output'; use Carp; my %states = ( waiting_for_files => 0, cutting => 1, generating_previews => 2, notification => 3, preview => 4, transcoding => 5, uploading => 6, publishing => 7, announcing => 8, done => 9, in...
Add enum value for the Publishing state
Add enum value for the Publishing state
Perl
agpl-3.0
yoe/sreview,yoe/sreview,yoe/sreview,yoe/sreview
perl
## Code Before: package SReview::Talk::State; use overload '<=>' => 'statecmp', 'cmp' => 'statecmp', '""' => 'output'; use Carp; my %states = ( waiting_for_files => 0, cutting => 1, generating_previews => 2, notification => 3, preview => 4, transcoding => 5, uploading => 6, announcing => 7, done => 8, inje...
e4197accba9697b239e8a32811dbde4b70071c0b
bash_profile.d/bersc.sh
bash_profile.d/bersc.sh
function bersc() { if [ ! -d .git ]; then echo "$0: not a git repo!" return 1 fi bersc_SPECS=`git st | grep _spec.rb | grep -v "^D " | cut -b4- | tr "\n" ' '` for bersc_FILE_CHANGED in `git st | grep -v "^##" | cut -b4- | grep -v "^D "` do bersc_SPEC_FROM_FILE_CHANGED=`echo $bersc_FILE_CHANGED |...
function bersc() { if [ ! -d .git ]; then echo "$0: not a git repo!" return 1 fi bersc_SPECS=() for bersc_FILE_CHANGED in `git st | grep _spec.rb | grep -v "^D " | cut -b4- | sed -e 's/ -> /|/g' | cut -f 2 -d '|'` do bersc_SPECS+=$bersc_FILE_CHANGED done for bersc_FILE_CHANGED in `git st | gr...
Make alias work properly in zsh
Make alias work properly in zsh
Shell
mit
pr0d1r2/plexus,pr0d1r2/plexus
shell
## Code Before: function bersc() { if [ ! -d .git ]; then echo "$0: not a git repo!" return 1 fi bersc_SPECS=`git st | grep _spec.rb | grep -v "^D " | cut -b4- | tr "\n" ' '` for bersc_FILE_CHANGED in `git st | grep -v "^##" | cut -b4- | grep -v "^D "` do bersc_SPEC_FROM_FILE_CHANGED=`echo $bers...
44202fc0eb1b87d6afe926181b84b63323d83b0d
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
class SessionsController < ApplicationController before_action :prevent_duplicate_sign_in, only: [:create, :new] def create if params[:session][:login].match(User::EMAIL_REGEXP) user = User.find_by(email: params[:session][:login]) else user = User.find_by(handle: params[:session][:login]) ...
class SessionsController < ApplicationController before_action :prevent_duplicate_sign_in, only: [:create, :new] def create if params[:session][:login].match(User::EMAIL_REGEXP) user = User.find_by(email: params[:session][:login]) else user = User.find_by(handle: params[:session][:login]) ...
Fix sessions controller bug for nonexistent users.
Fix sessions controller bug for nonexistent users.
Ruby
mit
enthusiastick/my_crossroads,enthusiastick/my_crossroads,enthusiastick/my_crossroads,enthusiastick/my_crossroads
ruby
## Code Before: class SessionsController < ApplicationController before_action :prevent_duplicate_sign_in, only: [:create, :new] def create if params[:session][:login].match(User::EMAIL_REGEXP) user = User.find_by(email: params[:session][:login]) else user = User.find_by(handle: params[:sessio...
0471c689bbe4e5b1116c25a6ccea58588c09d4d7
jasmin_notifications/urls.py
jasmin_notifications/urls.py
__author__ = "Matt Pryor" __copyright__ = "Copyright 2015 UK Science and Technology Facilities Council" from django.conf.urls import url, include from . import views app_name = 'jasmin_notifications' urlpatterns = [ url(r'^(?P<uuid>[a-zA-Z0-9-]+)/$', views.follow, name = 'follow'), ]
__author__ = "Matt Pryor" __copyright__ = "Copyright 2015 UK Science and Technology Facilities Council" from django.conf.urls import url, include from . import views app_name = 'jasmin_notifications' urlpatterns = [ url( r'^(?P<uuid>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/$', ...
Update regex to match only UUIDs
Update regex to match only UUIDs
Python
mit
cedadev/jasmin-notifications,cedadev/jasmin-notifications
python
## Code Before: __author__ = "Matt Pryor" __copyright__ = "Copyright 2015 UK Science and Technology Facilities Council" from django.conf.urls import url, include from . import views app_name = 'jasmin_notifications' urlpatterns = [ url(r'^(?P<uuid>[a-zA-Z0-9-]+)/$', views.follow, name = 'follow'), ] ## Instruc...
81cc39ca4c9348732a18d2f1ee7edcdbc4c61479
tests/tags/test_div.py
tests/tags/test_div.py
from riot.layout import render_layout, patch_layout def test_render_div(): assert render_layout([ 'div', {}, [] ]) == [ 'div', { 'div_char': u' ', 'top': 0, 'bottom': 0, } ] def test_render_div_with_div_char(): el = render_layout([ ...
from riot.layout import render_layout, patch_layout def test_render_div(): assert render_layout([ 'div', {}, [] ]) == [ 'div', { 'div_char': u' ', 'top': 0, 'bottom': 0, } ] def test_render_div_with_opts(): assert render_layout([ ...
Allow render opts to div.
Allow render opts to div.
Python
mit
soasme/riotpy
python
## Code Before: from riot.layout import render_layout, patch_layout def test_render_div(): assert render_layout([ 'div', {}, [] ]) == [ 'div', { 'div_char': u' ', 'top': 0, 'bottom': 0, } ] def test_render_div_with_div_char(): el = r...
40b11d24608a82f3842665d7aee5d854668bd706
magnum/templates/kubernetes/fragments/write-kube-os-config.sh
magnum/templates/kubernetes/fragments/write-kube-os-config.sh
. /etc/sysconfig/heat-params KUBE_OS_CLOUD_CONFIG=/etc/sysconfig/kube_openstack_config # kubernetes backend only support keystone v2 at this point AUTH_URL=${AUTH_URL/v3/v2} # Generate a the configuration for Kubernetes services # to talk to OpenStack Neutron cat > $KUBE_OS_CLOUD_CONFIG <<EOF [Global] auth-url=$AUT...
. /etc/sysconfig/heat-params KUBE_OS_CLOUD_CONFIG=/etc/sysconfig/kube_openstack_config # kubernetes backend only support keystone v2 at this point AUTH_URL=$(echo "$AUTH_URL" | tr -s "v3" "v2") # Generate a the configuration for Kubernetes services # to talk to OpenStack Neutron cat > $KUBE_OS_CLOUD_CONFIG <<EOF [G...
Fix bashisms in k8s os config template fragment.
Fix bashisms in k8s os config template fragment. Partial fix for problems output by checkbashisms for file magnum/templates/kubernetes/fragments/write-kube-os-config.sh only. Change-Id: I68b021da63b6c2d058053023a4fa26d643f0134b Partial-Bug: #1561232
Shell
apache-2.0
jay-lau/magnum,openstack/magnum,ArchiFleKs/magnum,openstack/magnum,ArchiFleKs/magnum
shell
## Code Before: . /etc/sysconfig/heat-params KUBE_OS_CLOUD_CONFIG=/etc/sysconfig/kube_openstack_config # kubernetes backend only support keystone v2 at this point AUTH_URL=${AUTH_URL/v3/v2} # Generate a the configuration for Kubernetes services # to talk to OpenStack Neutron cat > $KUBE_OS_CLOUD_CONFIG <<EOF [Globa...