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
e39f1529f43fe8dc4cc794b7af0d96226d4413e6
cookbooks/zookeeper/templates/default/zkRollSnapshot.sh
cookbooks/zookeeper/templates/default/zkRollSnapshot.sh
COMMAND="java" if [ "$(whoami)" != "zookeeper" ] then COMMAND="sudo -u zookeeper java" fi source /home/zookeeper/.profile /opt/zookeeper/zookeeper-<%= node[:zookeeper][:version] %>/bin/zkCleanup.sh <%= node[:zookeeper][:dataDir] %> <%= node[:zookeeper][:snapshotDir] %> <%= node[:zookeeper][:snapshotNum] %> exit 0...
COMMAND="java" if [ "$(whoami)" != "zookeeper" ] then COMMAND="sudo -u zookeeper java" fi source /home/zookeeper/.profile <%= node[:zookeeper][:installDir] %>/zookeeper-<%= node[:zookeeper][:version] %>/bin/zkCleanup.sh <%= node[:zookeeper][:dataDir] %> <%= node[:zookeeper][:snapshotDir] %> <%= node[:zookeeper][:s...
Use attributes for the installdir not a hardcoded value
Use attributes for the installdir not a hardcoded value
Shell
apache-2.0
scottymarshall/rundeck,scottymarshall/rundeck,scottymarshall/rundeck
shell
## Code Before: COMMAND="java" if [ "$(whoami)" != "zookeeper" ] then COMMAND="sudo -u zookeeper java" fi source /home/zookeeper/.profile /opt/zookeeper/zookeeper-<%= node[:zookeeper][:version] %>/bin/zkCleanup.sh <%= node[:zookeeper][:dataDir] %> <%= node[:zookeeper][:snapshotDir] %> <%= node[:zookeeper][:snapsho...
fa1b111e63ebd069c027a3b969f679b2de54949f
tests/conftest.py
tests/conftest.py
import pytest from sanic import Sanic from sanic_openapi import swagger_blueprint @pytest.fixture() def app(): app = Sanic('test') app.blueprint(swagger_blueprint) return app
import pytest from sanic import Sanic import sanic_openapi @pytest.fixture() def app(): app = Sanic("test") app.blueprint(sanic_openapi.swagger_blueprint) yield app # Clean up sanic_openapi.swagger.definitions = {} sanic_openapi.swagger._spec = {}
Add clean up in app fixture
Test: Add clean up in app fixture
Python
mit
channelcat/sanic-openapi,channelcat/sanic-openapi
python
## Code Before: import pytest from sanic import Sanic from sanic_openapi import swagger_blueprint @pytest.fixture() def app(): app = Sanic('test') app.blueprint(swagger_blueprint) return app ## Instruction: Test: Add clean up in app fixture ## Code After: import pytest from sanic import Sanic import sa...
7cffc0df1e2ca3b0e2396c106696dc5e563cf135
src/PHPCensor/Logging/BuildDBLogHandler.php
src/PHPCensor/Logging/BuildDBLogHandler.php
<?php namespace PHPCensor\Logging; use b8\Store\Factory; use Monolog\Handler\AbstractProcessingHandler; use PHPCensor\Model\Build; use Psr\Log\LogLevel; /** * Class BuildDBLogHandler writes the build log to the database. */ class BuildDBLogHandler extends AbstractProcessingHandler { /** * @var Build ...
<?php namespace PHPCensor\Logging; use b8\Store\Factory; use Monolog\Handler\AbstractProcessingHandler; use PHPCensor\Model\Build; use Psr\Log\LogLevel; /** * Class BuildDBLogHandler writes the build log to the database. */ class BuildDBLogHandler extends AbstractProcessingHandler { /** * @var Build ...
Add write cache to build log (improve speed)
Add write cache to build log (improve speed)
PHP
bsd-2-clause
corpsee/php-censor,php-censor/php-censor,corpsee/php-censor,php-censor/php-censor,corpsee/php-censor,php-censor/php-censor
php
## Code Before: <?php namespace PHPCensor\Logging; use b8\Store\Factory; use Monolog\Handler\AbstractProcessingHandler; use PHPCensor\Model\Build; use Psr\Log\LogLevel; /** * Class BuildDBLogHandler writes the build log to the database. */ class BuildDBLogHandler extends AbstractProcessingHandler { /** * ...
2143c25bcf5b2a2fc485db3969bca44e1670f972
tests/integration/components/medium-editor-test.js
tests/integration/components/medium-editor-test.js
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { find, fillIn } from 'ember-native-dom-helpers'; import { skip } from 'qunit'; moduleForComponent('medium-editor', 'Integration | Component | medium editor', { integration: true }); test('it renders', funct...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { find } from 'ember-native-dom-helpers'; import MediumEditor from 'medium-editor'; const meClass = '.medium-editor-element'; moduleForComponent('medium-editor', 'Integration | Component | medium editor', { ...
Update tests to test onChange and value.
Update tests to test onChange and value.
JavaScript
mit
kolybasov/ember-medium-editor,kolybasov/ember-medium-editor
javascript
## Code Before: import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { find, fillIn } from 'ember-native-dom-helpers'; import { skip } from 'qunit'; moduleForComponent('medium-editor', 'Integration | Component | medium editor', { integration: true }); test('it...
9d7cf0638d06a99adec746d87bf82bbb3adbaef7
src/main/resources/application-mail.properties
src/main/resources/application-mail.properties
spring.mail.host=smtp.qq.com spring.mail.username= spring.mail.password= spring.mail.testConnection=false spring.mail.properties.mail.smtp.ssl.enable=true spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.socketFactory.port=465 spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl...
spring.mail.host=smtp.qq.com spring.mail.username= spring.mail.password= spring.mail.testConnection=false spring.mail.properties.mail.smtp.starttls.enable=true spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.socketFactory.port=465 spring.mail.properties.mail.smtp.socketFactory.class=javax.ne...
Use tls and reject fallback
Use tls and reject fallback
INI
apache-2.0
zjnu-acm/judge,zjnu-acm/judge,zjnu-acm/judge,zjnu-acm/judge,zjnu-acm/judge
ini
## Code Before: spring.mail.host=smtp.qq.com spring.mail.username= spring.mail.password= spring.mail.testConnection=false spring.mail.properties.mail.smtp.ssl.enable=true spring.mail.properties.mail.smtp.auth=true spring.mail.properties.mail.smtp.socketFactory.port=465 spring.mail.properties.mail.smtp.socketFactory.cla...
1861155258d041d1c4b0c00dfb5b5e7407a37f0c
src/peeracle.js
src/peeracle.js
'use strict'; (function () { var Peeracle = {}; Peeracle.Media = require('./media'); Peeracle.Peer = require('./peer'); Peeracle.Tracker = require('./tracker'); module.exports = Peeracle; })();
'use strict'; (function () { var Peeracle = {}; Peeracle.Media = require('./media'); Peeracle.Metadata = require('./metadata'); Peeracle.Peer = require('./peer'); Peeracle.Tracker = require('./tracker'); Peeracle.Utils = require('./utils'); module.exports = Peeracle; })();
Load Metadata and Utils in node
Load Metadata and Utils in node
JavaScript
mit
peeracle/legacy
javascript
## Code Before: 'use strict'; (function () { var Peeracle = {}; Peeracle.Media = require('./media'); Peeracle.Peer = require('./peer'); Peeracle.Tracker = require('./tracker'); module.exports = Peeracle; })(); ## Instruction: Load Metadata and Utils in node ## Code After: 'use strict'; (function () { va...
cc7d8f9cfdfc9f76254528eb69e521aadea5c3b3
index.md
index.md
--- layout: page title: Chunmeng's Blog --- {% include JB/setup %} ### Hello World! Hi, welcome to my personal blog website! I am Chunmeng from EEE in NTU. This blog host on Github is still under construction. I am learning Jekyll-Bootstrap now, which is a little bit difficult as I have no web development experience ...
--- layout: page title: Chunmeng's Blog --- {% include JB/setup %} ### Hello World! Hi, welcome to my personal blog website! I am Chunmeng from EEE in NTU. This blog host on Github is still under construction. I am learning Jekyll-Bootstrap now, which is a little bit difficult as I have no web development experience ...
Add the useful links at the home page
Add the useful links at the home page
Markdown
mit
Silverneo/Silverneo.github.io,Silverneo/Silverneo.github.io
markdown
## Code Before: --- layout: page title: Chunmeng's Blog --- {% include JB/setup %} ### Hello World! Hi, welcome to my personal blog website! I am Chunmeng from EEE in NTU. This blog host on Github is still under construction. I am learning Jekyll-Bootstrap now, which is a little bit difficult as I have no web develop...
f113215ac10949571a475b33c53f9ec63ea550c5
_posts/2016-04-02-when-i-say-i-love-02.markdown
_posts/2016-04-02-when-i-say-i-love-02.markdown
--- published: true title: I love the way layout: post --- <pre> I love the way you visit each night and fill my dreams with desire. touch my hand and fill my soul with fire. draw me near for a warm and loving embrace. I love the way when I close my eyes I see your smiling face. your lips meet m...
--- published: true title: I love the way layout: post --- I love the way you visit each night and fill my dreams with desire. <br> I love the way you touch my hand and fill my soul with fire.<br> I love the way you draw me near for a warm and loving embrace.<br> I love the way when I close my eyes I see your s...
Revert back to original formatt
Revert back to original formatt Revert
Markdown
mit
varunkaushish/varunkaushish.github.io
markdown
## Code Before: --- published: true title: I love the way layout: post --- <pre> I love the way you visit each night and fill my dreams with desire. touch my hand and fill my soul with fire. draw me near for a warm and loving embrace. I love the way when I close my eyes I see your smiling face. your lips mee...
f5daff0d00407cc9d57b780f2d6fd33a16ab65b7
projects/library/drawer/src/drawer-animations.ts
projects/library/drawer/src/drawer-animations.ts
import { animate, AnimationTriggerMetadata, state, style, transition, trigger, } from '@angular/animations'; /** * Animations used by the {@link TsDrawerComponent}. */ export const tsDrawerAnimations: { readonly transformDrawer: AnimationTriggerMetadata; } = { // Animation that expands and collapses ...
import { animate, AnimationTriggerMetadata, state, style, transition, trigger, } from '@angular/animations'; /** * Animations used by the {@link TsDrawerComponent}. */ export const tsDrawerAnimations: { readonly transformDrawer: AnimationTriggerMetadata; } = { // Animation that expands and collapses ...
Fix missing animation when shadow is always visible
fix(Drawer): Fix missing animation when shadow is always visible
TypeScript
mit
GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui,GetTerminus/terminus-ui
typescript
## Code Before: import { animate, AnimationTriggerMetadata, state, style, transition, trigger, } from '@angular/animations'; /** * Animations used by the {@link TsDrawerComponent}. */ export const tsDrawerAnimations: { readonly transformDrawer: AnimationTriggerMetadata; } = { // Animation that expand...
460c7a1a934e8ee6d14e96454814189ffacc5460
frontend/src/components/labeledSlider.js
frontend/src/components/labeledSlider.js
import Rx from 'rx'; import {h} from '@cycle/dom'; export function labeledSlider(responses) { function intent(DOM) { return { newValue: DOM.select('.slider').events('input') .map(ev => ev.target.value) }; } function model({props}, {newValue}) { const initialValue$ = props.get('initial'...
import Rx from 'rx'; import {h} from '@cycle/dom'; export function labeledSlider(responses) { const events = intent(responses.DOM), DOM = view(model(responses, events)); return {DOM, events}; function intent(DOM) { return { newValue: DOM.select('.slider').events('input') .map(ev => ev...
Read what you're getting up front
Read what you're getting up front
JavaScript
mit
blakelapierre/cyclebox,blakelapierre/base-cyclejs,blakelapierre/cyclebox,blakelapierre/base-cyclejs,blakelapierre/cyclebox
javascript
## Code Before: import Rx from 'rx'; import {h} from '@cycle/dom'; export function labeledSlider(responses) { function intent(DOM) { return { newValue: DOM.select('.slider').events('input') .map(ev => ev.target.value) }; } function model({props}, {newValue}) { const initialValue$ = pro...
752ae706e1ce9142a7ffb10a2b54f7848d90ee75
tasks/Debian.yml
tasks/Debian.yml
--- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present - name: Add Mesosphere repo apt_repository: repo="{{marathon_apt_repo}}" state=present - name: Install Marathon package apt: pkg={{ marathon_apt_package }} state=present update_cache=yes notify: Restart marathon
--- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present - name: Add Mesosphere repo apt_repository: repo="{{marathon_apt_repo}}" state=present update_cache=yes - name: Install Marathon package apt: pkg={{ marathon_apt_package }} state=present notify: Restart marathon
Update cache after adding the repository, not before installing the package
Update cache after adding the repository, not before installing the package
YAML
apache-2.0
AnsibleShipyard/ansible-marathon
yaml
## Code Before: --- - name: Add apt-key apt_key: id=E56151BF keyserver=keyserver.ubuntu.com state=present - name: Add Mesosphere repo apt_repository: repo="{{marathon_apt_repo}}" state=present - name: Install Marathon package apt: pkg={{ marathon_apt_package }} state=present update_cache=yes notify: Restart m...
4f65378a57aceb5da601f24ce8447d656796516c
docs/installing.rst
docs/installing.rst
.. include:: ./vars.rst Installing discord.js ===================== To install discord.js, you need a few dependencies. .. warning:: **When installing with any of these methods, you'll encounter some errors.** This is because an optional dependency isn't working properly, but discord.js should still work fine...
.. include:: ./vars.rst Installing discord.js ===================== To install discord.js, you need a few dependencies. .. warning:: **When installing with any of these methods, you'll encounter some errors.** This is because an optional dependency isn't working properly, but discord.js should still work fine...
Fix installation instructions on Linux
Fix installation instructions on Linux @hydrabolt what were you thinking?!
reStructuredText
apache-2.0
zajrik/discord.js,Lewdcario/discord.js,robflop/discord.js,zajrik/discord.js,Lewdcario/discord.js,devsnek/discord.js,meew0/discord.js,CodeMan99/discord.js,Drahcirius/discord.js,CodeMan99/discord.js,devsnek/discord.js,hydrabolt/discord.js,aemino/discord.js,appellation/discord.js,aemino/discord.js,CodeMan99/discord.js,rob...
restructuredtext
## Code Before: .. include:: ./vars.rst Installing discord.js ===================== To install discord.js, you need a few dependencies. .. warning:: **When installing with any of these methods, you'll encounter some errors.** This is because an optional dependency isn't working properly, but discord.js should still ...
271c1afcb93f9bcda68b0e9da537f7085643a773
appveyor.yml
appveyor.yml
init: - git config --global core.autocrlf input environment: matrix: - nodejs_version: 0.11 npm_extra_args: "" platform: x86 - nodejs_version: 0.11 npm_extra_args: "--msvs_version=2013" platform: x64 - nodejs_version: 0.12 npm_extra_args: "" platform: x86 - ...
init: - git config --global core.autocrlf input environment: matrix: - nodejs_version: 0.11 - nodejs_version: 0.12 - nodejs_version: 1 platform: - x86 - x64 install: - ps: Install-Product node $env:nodejs_version $env:platform - git submodule update --init --recursive - npm install --msvs...
Revert "Use correct msvs on x64, but not on x86"
Revert "Use correct msvs on x64, but not on x86" This reverts commit 67ae01efefc64a2fac78f8a88998f6a6a3a16cb0.
YAML
bsd-3-clause
badboy/hiredis-node-win,badboy/hiredis-node-win,badboy/hiredis-node-win
yaml
## Code Before: init: - git config --global core.autocrlf input environment: matrix: - nodejs_version: 0.11 npm_extra_args: "" platform: x86 - nodejs_version: 0.11 npm_extra_args: "--msvs_version=2013" platform: x64 - nodejs_version: 0.12 npm_extra_args: "" platf...
1f31e426e2ec1add216736beedc9fb86067500a7
katas/es6/language/template-strings/basics.js
katas/es6/language/template-strings/basics.js
// 1: template strings - basics // To do: make all tests pass describe('template string, are wrapped in backticks', function() { it('prints x into a string using ${x}', function() { var x = 42; assert.equal(`x=${x}`, 'x=' + x); }); it('add two numbers inside the ${...}', function() { var x = 42...
// 1: template strings - basics // To do: make all tests pass, leave the asserts unchanged! describe('a template string, is wrapped in backticks', function() { describe('by default, behaves like a normal string', function() { it('just surrounded by backticks', function() { var str = `like a string`; ...
Make it more explicit and improve instructions and group it better.
Make it more explicit and improve instructions and group it better.
JavaScript
mit
tddbin/katas,tddbin/katas,tddbin/katas
javascript
## Code Before: // 1: template strings - basics // To do: make all tests pass describe('template string, are wrapped in backticks', function() { it('prints x into a string using ${x}', function() { var x = 42; assert.equal(`x=${x}`, 'x=' + x); }); it('add two numbers inside the ${...}', function() ...
cc3a5d38f7f616a2a8f419bf4aca8c2d9178bd98
src/main/java/org/threadly/test/concurrent/TestUtils.java
src/main/java/org/threadly/test/concurrent/TestUtils.java
package org.threadly.test.concurrent; /** * Generic tools to be used in unit testing. * * @author jent - Mike Jensen */ public class TestUtils { private TestUtils() { // don't construct } /** * Since sleeps are sometimes necessary, this makes * an easy way to ignore InterruptedException's. *...
package org.threadly.test.concurrent; import org.threadly.util.Clock; /** * Generic tools to be used in unit testing. * * @author jent - Mike Jensen */ public class TestUtils { private TestUtils() { // don't construct } /** * Since sleeps are sometimes necessary, this makes * an easy way to ig...
Change this to use Clock in case people are relying on this function to advance the Clock abstraction
Change this to use Clock in case people are relying on this function to advance the Clock abstraction
Java
mpl-2.0
jentfoo/threadly,threadly/threadly
java
## Code Before: package org.threadly.test.concurrent; /** * Generic tools to be used in unit testing. * * @author jent - Mike Jensen */ public class TestUtils { private TestUtils() { // don't construct } /** * Since sleeps are sometimes necessary, this makes * an easy way to ignore InterruptedE...
4334968bf354dd98c00baec2b044b09c71b7e0a6
sitebricks-persist/src/main/java/com/google/sitebricks/persist/PersistAopModule.java
sitebricks-persist/src/main/java/com/google/sitebricks/persist/PersistAopModule.java
package com.google.sitebricks.persist; import com.google.inject.AbstractModule; import com.google.inject.Key; import com.google.inject.matcher.Matcher; import java.lang.reflect.AnnotatedElement; import static com.google.inject.matcher.Matchers.annotatedWith; import static com.google.inject.matcher.Matchers.any; /**...
package com.google.sitebricks.persist; import com.google.inject.AbstractModule; import com.google.inject.Key; import com.google.inject.matcher.Matcher; import java.lang.reflect.AnnotatedElement; import static com.google.inject.matcher.Matchers.annotatedWith; import static com.google.inject.matcher.Matchers.any; /**...
Fix a bad, silly bug where selectors were not being added to matchers in the Persist AOP module
Fix a bad, silly bug where selectors were not being added to matchers in the Persist AOP module
Java
apache-2.0
dhanji/sitebricks,dhanji/sitebricks,dhanji/sitebricks,dhanji/sitebricks
java
## Code Before: package com.google.sitebricks.persist; import com.google.inject.AbstractModule; import com.google.inject.Key; import com.google.inject.matcher.Matcher; import java.lang.reflect.AnnotatedElement; import static com.google.inject.matcher.Matchers.annotatedWith; import static com.google.inject.matcher.Ma...
7580ee7a2b2ef461748d223e5fcbb83bff942588
app/assets/stylesheets/main.scss
app/assets/stylesheets/main.scss
$header-font-style: 'Roboto', Helvetica, Arial, sans-serif; $body-font-style: 'Open Sans', Arial, sans-serif; %custom-header { font-family: $header-font-style; font-weight: bold; letter-spacing: 0.5px; } h1 { @extend %custom-header; font-size: 80px; } h2 { @extend %custom-header; font-size: 26px; } h3...
$header-font-style: 'Roboto', Helvetica, Arial, sans-serif; $body-font-style: 'Open Sans', Arial, sans-serif; %custom-header { font-family: $header-font-style; font-weight: bold; letter-spacing: 0.5px; } h1 { @extend %custom-header; font-size: 80px; } h2 { @extend %custom-header; font-size: 26px; } h3...
Update rendering of footer hovering over items on screen and fix to bottom
Update rendering of footer hovering over items on screen and fix to bottom
SCSS
mit
evanscloud/uponnyc,evanscloud/uponnyc,evanscloud/uponnyc
scss
## Code Before: $header-font-style: 'Roboto', Helvetica, Arial, sans-serif; $body-font-style: 'Open Sans', Arial, sans-serif; %custom-header { font-family: $header-font-style; font-weight: bold; letter-spacing: 0.5px; } h1 { @extend %custom-header; font-size: 80px; } h2 { @extend %custom-header; font-s...
ac658b3bdcd2262b7db7d6b8bebadb05e31a07d4
src/selectors/tactics.js
src/selectors/tactics.js
import { createSelector } from 'reselect'; const getTactics = state => state.entities.tactics; export const tacticsSelector = createSelector( [getTactics], tactics => tactics.items.map(id => tactics.byId[id]), );
import { denormalize } from 'normalizr'; import { createSelector } from 'reselect'; import { tacticSchema } from '../constants/Schemas'; const getTactics = state => state.entities.tactics; const getTeams = state => state.entities.teams; export const tacticsSelector = createSelector( [getTactics], tactics => tactics...
Add tacticDetailsSelector that returns denormalized data
Add tacticDetailsSelector that returns denormalized data
JavaScript
mit
m-mik/tactic-editor,m-mik/tactic-editor
javascript
## Code Before: import { createSelector } from 'reselect'; const getTactics = state => state.entities.tactics; export const tacticsSelector = createSelector( [getTactics], tactics => tactics.items.map(id => tactics.byId[id]), ); ## Instruction: Add tacticDetailsSelector that returns denormalized data ## Code Afte...
e8d68e3b899172e86a708ae917706e0cd573d2d1
config/schedule.rb
config/schedule.rb
require 'whenever' require 'yaml' # Learn more: http://github.com/javan/whenever app_config = YAML.load_file(File.join(__dir__, 'application.yml')) env "MAILTO", app_config["SCHEDULE_NOTIFICATIONS"] if app_config["SCHEDULE_NOTIFICATIONS"] # If we use -e with a file containing specs, rspec interprets it and filters ...
require 'whenever' require 'yaml' # Learn more: http://github.com/javan/whenever app_config = YAML.load_file(File.join(__dir__, 'application.yml')) env "MAILTO", app_config["SCHEDULE_NOTIFICATIONS"] if app_config["SCHEDULE_NOTIFICATIONS"] # If we use -e with a file containing specs, rspec interprets it and filters ...
Make whenever properly read the S3 bucket
Make whenever properly read the S3 bucket For unknown reasons the magic [Figaro](https://github.com/laserlemon/figaro) does to turn keys in `config/application.yml` into ENV vars that can be read through Ruby's `ENV[]` is not working in `config/schedule.rb`. As a result, the `db2fog` tasks are not translated into cro...
Ruby
agpl-3.0
mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/...
ruby
## Code Before: require 'whenever' require 'yaml' # Learn more: http://github.com/javan/whenever app_config = YAML.load_file(File.join(__dir__, 'application.yml')) env "MAILTO", app_config["SCHEDULE_NOTIFICATIONS"] if app_config["SCHEDULE_NOTIFICATIONS"] # If we use -e with a file containing specs, rspec interprets...
850fc14d2472b38be9d4683206a69e9719e3210e
Manifold/Description.swift
Manifold/Description.swift
// Copyright (c) 2015 Rob Rix. All rights reserved. public enum Description<Index> { // MARK: Constructors public static func end(index: Index) -> Description { return .End(Box(index)) } public static func recursive(index: Index, _ description: Description) -> Description { return .Recursive(Box(index), Box...
// Copyright (c) 2015 Rob Rix. All rights reserved. public enum Description<Index> { // MARK: Constructors public static func end(index: Index) -> Description { return .End(Box(index)) } public static func recursive(index: Index, _ description: Description) -> Description { return .Recursive(Box(index), Box...
Add a (probably incorrect) case for arguments.
Add a (probably incorrect) case for arguments.
Swift
mit
antitypical/Manifold,antitypical/Manifold
swift
## Code Before: // Copyright (c) 2015 Rob Rix. All rights reserved. public enum Description<Index> { // MARK: Constructors public static func end(index: Index) -> Description { return .End(Box(index)) } public static func recursive(index: Index, _ description: Description) -> Description { return .Recursive...
dbf54c0a84221af6704c9c76ad4511c30bb7299b
croaring-sys/build.rs
croaring-sys/build.rs
extern crate bindgen; extern crate cc; use std::env; use std::path::PathBuf; fn main() { cc::Build::new() .flag("-std=c11") .flag("-march=native") .flag("-O3") .file("CRoaring/roaring.c") .compile("libroaring.a"); let bindings = bindgen::Builder::default() .bla...
extern crate bindgen; extern crate cc; use std::env; use std::path::PathBuf; fn main() { cc::Build::new() .flag_if_supported("-std=c11") .flag_if_supported("-march=native") .flag_if_supported("-O3") .file("CRoaring/roaring.c") .compile("libroaring.a"); let bindings = b...
Build CRoaring with flags if compiler supports them
Build CRoaring with flags if compiler supports them Prevents warning during Windows build. Possibly fixes #36.
Rust
apache-2.0
saulius/croaring-rs,saulius/croaring-rs,saulius/croaring-rs
rust
## Code Before: extern crate bindgen; extern crate cc; use std::env; use std::path::PathBuf; fn main() { cc::Build::new() .flag("-std=c11") .flag("-march=native") .flag("-O3") .file("CRoaring/roaring.c") .compile("libroaring.a"); let bindings = bindgen::Builder::defaul...
f47972da7a0ac28f88ae2cf9400e6141bf3a10e0
src/Generics/Logger/LoggerTrait.php
src/Generics/Logger/LoggerTrait.php
<?php /** * This file is part of the PHP Generics package. * * @package Generics */ namespace Generics\Logger; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; trait LoggerTrait { /** * Logger instance * * @var AbstractLogger */ private $logger = null; /* * (non-PHPdoc)...
<?php /** * This file is part of the PHP Generics package. * * @package Generics */ namespace Generics\Logger; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; trait LoggerTrait { /** * Logger instance * * @var \Psr\Log\LoggerInterface */ private $logger = null; /* * (n...
Set correct type to member variable and return value
Set correct type to member variable and return value
PHP
bsd-2-clause
maikgreubel/phpgenerics
php
## Code Before: <?php /** * This file is part of the PHP Generics package. * * @package Generics */ namespace Generics\Logger; use Psr\Log\LoggerInterface; use Psr\Log\NullLogger; trait LoggerTrait { /** * Logger instance * * @var AbstractLogger */ private $logger = null; /* ...
3d5f483f48f226ebb2acd7bbf0c6a1076562408a
tools/apidoc/templates/partials.mako
tools/apidoc/templates/partials.mako
<%def name="type(t)"> %if t: <span class="type"><a href="type-${t.canonical}.html">${t.canonical | h}</a></span> %endif </%def> <%def name="struct(s)"> <h3 id="${s.name}">struct <span class="type">${s.name}</span>${generic_vars(s)}</h3> <p> ${s.description} </p> <h4>Members:</h4> <ul> % for m i...
<%def name="type(t)"> %if t: <span class="type"><a href="type-${t.canonical}.html">${t.canonical | h}</a></span> %endif </%def> <%def name="struct(s)"> <h3 id="${s.name}">struct <span class="type">${s.name}</span>${generic_vars(s)}</h3> <p>${s.description}</p> <h4>Members:</h4> <ul> % for m in s.me...
Add type xref to struct members.
Add type xref to struct members.
Mako
bsd-2-clause
twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc,twoporeguys/librpc
mako
## Code Before: <%def name="type(t)"> %if t: <span class="type"><a href="type-${t.canonical}.html">${t.canonical | h}</a></span> %endif </%def> <%def name="struct(s)"> <h3 id="${s.name}">struct <span class="type">${s.name}</span>${generic_vars(s)}</h3> <p> ${s.description} </p> <h4>Members:</h4> <u...
725808b800bdce0a46ef06ad0badd8e00d5c612f
README.md
README.md
docker-squid ------------ A full-featured Web proxy cache server. Exposed Ports ------------- * 3128 Volumes ------- * `/etc/squid/` * `/var/log/squid/` License ------- [MIT](https://tldrlegal.com/license/mit-license) Contributors ------------ * [Chris Olstrom](https://colstrom.github.io/) | [e-mail](mailto:...
docker-squid ------------ A full-featured Web proxy cache server. Exposed Ports ------------- * 3128 Volumes ------- * `/etc/squid/` * `/var/cache/squid/` * `/var/log/squid/` License ------- [MIT](https://tldrlegal.com/license/mit-license) Contributors ------------ * [Chris Olstrom](https://colstrom.github...
Add missing volumes to documentation
Add missing volumes to documentation
Markdown
mit
colstrom/docker-squid
markdown
## Code Before: docker-squid ------------ A full-featured Web proxy cache server. Exposed Ports ------------- * 3128 Volumes ------- * `/etc/squid/` * `/var/log/squid/` License ------- [MIT](https://tldrlegal.com/license/mit-license) Contributors ------------ * [Chris Olstrom](https://colstrom.github.io/) | ...
b2515838f89a70ffb8703880dacdfdf043fa60a6
src/main/java/editor/views/ElementTreeView.java
src/main/java/editor/views/ElementTreeView.java
package editor.views; import editor.ElementTreeModel; import editor.controllers.ElementTreeController; import utility.Observer; import xml.Element; import javax.swing.*; /** * The ElementTreeView controls the section of the GUI that displays the tree * representation of an XML element tree. */ public class Elemen...
package editor.views; import editor.ElementTreeModel; import editor.controllers.ElementTreeController; import utility.Observer; import xml.Element; import javax.swing.*; /** * The ElementTreeView controls the section of the GUI that displays the tree * representation of an XML element tree. */ public class Elemen...
Add function to get selected tree node
Add function to get selected tree node
Java
mpl-2.0
dwjackson/EditSomeXML
java
## Code Before: package editor.views; import editor.ElementTreeModel; import editor.controllers.ElementTreeController; import utility.Observer; import xml.Element; import javax.swing.*; /** * The ElementTreeView controls the section of the GUI that displays the tree * representation of an XML element tree. */ pub...
770a4a0f6f07d795d5147960cc904514d47f8a6e
Cargo.toml
Cargo.toml
[package] name = "Tina" version = "0.1.0" authors = ["wafrelka <wafrelka@gmail.com>"] [dependencies] oauthcli = "0.1" url = "0.5" yaml-rust = "0.3" hyper = "0.8" openssl = "< 0.7.11, >= 0.7.0"
[package] name = "Tina" version = "0.1.0" authors = ["wafrelka <wafrelka@gmail.com>"] [dependencies] oauthcli = "0.1" url = "0.5" yaml-rust = "0.3" hyper = "0.8"
Remove the unneeded explicit dependency description
Remove the unneeded explicit dependency description
TOML
mit
wafrelka/tina,wafrelka/tina
toml
## Code Before: [package] name = "Tina" version = "0.1.0" authors = ["wafrelka <wafrelka@gmail.com>"] [dependencies] oauthcli = "0.1" url = "0.5" yaml-rust = "0.3" hyper = "0.8" openssl = "< 0.7.11, >= 0.7.0" ## Instruction: Remove the unneeded explicit dependency description ## Code After: [package] name = "Tina" v...
8d54b3a1d510d0094cbc76862d98308fd056a924
neovim/files/settings/keys.vim
neovim/files/settings/keys.vim
" Use spacebar as leader let mapleader="\<Space>" " Navigation nnoremap j gj nnoremap k gk " Windows " Move nnoremap H <C-w>h nnoremap J <C-w>j nnoremap K <C-w>k nnoremap L <C-w>l " Maximise nnoremap <leader>_ <C-w>_ nnoremap <leader>\| <C-w>\| nnoremap <leader>= <C-w>_<C-w>\| " Tabs " Tab navigation nnoremap <C-h>...
" Use spacebar as leader let mapleader="\<Space>" " Navigation nnoremap j gj nnoremap k gk " Windows " Move nnoremap H <C-w>h nnoremap J <C-w>j nnoremap K <C-w>k nnoremap L <C-w>l " Maximise nnoremap <leader>_ <C-w>_ nnoremap <leader>\| <C-w>\| nnoremap <leader>= <C-w>_<C-w>\| " Tabs " Tab navigation nnoremap <C-h>...
Add hotkey for repeat last command
Add hotkey for repeat last command
VimL
mit
Fulmene/dotfiles
viml
## Code Before: " Use spacebar as leader let mapleader="\<Space>" " Navigation nnoremap j gj nnoremap k gk " Windows " Move nnoremap H <C-w>h nnoremap J <C-w>j nnoremap K <C-w>k nnoremap L <C-w>l " Maximise nnoremap <leader>_ <C-w>_ nnoremap <leader>\| <C-w>\| nnoremap <leader>= <C-w>_<C-w>\| " Tabs " Tab navigatio...
a15560670541d1837e3d94b28749c10d9193aba4
examples/peep-peep/js/peep-peep.js
examples/peep-peep/js/peep-peep.js
'use strict'; $('#message').keyup(function(e) { if ((e.keyCode || e.which) == 13) { if (!e.srcElement.value) return; // enter was pressed $state.at('chat').push({ from: $('#username').val(), message: e.srcElement.value }); $(e.srcElement).val(null); ...
'use strict'; $('#message').keyup(function(e) { if ((e.keyCode || e.which) == 13) { if (!e.srcElement.value) return; // enter was pressed $state.at('chat').push({ from: $('#username').val(), message: e.srcElement.value }); $(e.srcElement).val(null); } }) function addPost(m) { va...
Standardize indent to 2 characters rather than beautify-js's standard 4.
Standardize indent to 2 characters rather than beautify-js's standard 4.
JavaScript
mit
kustomzone/ShareJS,Nzaga/ShareJS,share/ShareJS,modulexcite/ShareJS,gdseller/ShareJS,dialoghq/ShareJS,dialoghq/ShareJS,dialoghq/ShareJS,rasata/ShareJS,rchrd2/ShareJS,playcanvas/ShareJS,igmcdowell/ShareJS,gdseller/ShareJS,mcanthony/ShareJS,igmcdowell/ShareJS,luto/ShareJS,kantele/k-share,matthewbauer/ShareJS,freewind/Shar...
javascript
## Code Before: 'use strict'; $('#message').keyup(function(e) { if ((e.keyCode || e.which) == 13) { if (!e.srcElement.value) return; // enter was pressed $state.at('chat').push({ from: $('#username').val(), message: e.srcElement.value }); $(e.srcEleme...
19da6c14a5063d3d0361b9b887fd0e4ed8d7a83d
nflpool/data/seasoninfo.py
nflpool/data/seasoninfo.py
from nflpool.data.modelbase import SqlAlchemyBase import sqlalchemy class SeasonInfo(SqlAlchemyBase): __tablename__ = 'SeasonInfo' id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True, autoincrement=True) current_season = sqlalchemy.Column(sqlalchemy.Integer) season_start_date = sqlalchemy.Colu...
from nflpool.data.modelbase import SqlAlchemyBase import sqlalchemy class SeasonInfo(SqlAlchemyBase): __tablename__ = 'SeasonInfo' id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True, autoincrement=True) current_season = sqlalchemy.Column(sqlalchemy.Integer) season_start_date = sqlalchemy.Colu...
Update SeasonInfo database table info
Update SeasonInfo database table info Add columns for the first game star time, home and away teams for the first NFL game played of the season
Python
mit
prcutler/nflpool,prcutler/nflpool
python
## Code Before: from nflpool.data.modelbase import SqlAlchemyBase import sqlalchemy class SeasonInfo(SqlAlchemyBase): __tablename__ = 'SeasonInfo' id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True, autoincrement=True) current_season = sqlalchemy.Column(sqlalchemy.Integer) season_start_date =...
214b74d4cf3902456ed274f756f4827f18c0c988
logster/server.py
logster/server.py
import os from tornado.ioloop import IOLoop from tornado.web import Application from tornado.httpserver import HTTPServer from . import handlers class LogsterApplication(Application): handlers = [ (r'/', handlers.IndexHandler), ] settings = { 'template_path': os.path.join( o...
import os from tornado.ioloop import IOLoop from tornado.web import Application from tornado.httpserver import HTTPServer from . import handlers from .conf import config class LogsterApplication(Application): handlers = [ (r'/', handlers.IndexHandler), ] settings = { 'template_path': os...
Use post value from config
Use post value from config
Python
mit
irvind/logster,irvind/logster,irvind/logster
python
## Code Before: import os from tornado.ioloop import IOLoop from tornado.web import Application from tornado.httpserver import HTTPServer from . import handlers class LogsterApplication(Application): handlers = [ (r'/', handlers.IndexHandler), ] settings = { 'template_path': os.path.joi...
88753670e59fddcc3e8c4ff0ae555d41e7819749
src/main.rs
src/main.rs
fn main() { }
/// /// Should program usage be printed? /// /// # Arguments /// /// * `args` - Program arguments, excluding program name. /// pub fn should_print_usage(args: &Vec<String>) -> bool { args.len() != 1 || args[0] == "-h" || args[0] == "--help" } /// /// Prints program usage to the standard output. /// pub fn print_us...
Add obtaining of program arguments.
Add obtaining of program arguments.
Rust
apache-2.0
s3rvac/yabir
rust
## Code Before: fn main() { } ## Instruction: Add obtaining of program arguments. ## Code After: /// /// Should program usage be printed? /// /// # Arguments /// /// * `args` - Program arguments, excluding program name. /// pub fn should_print_usage(args: &Vec<String>) -> bool { args.len() != 1 || args[0] == "-h"...
fe35c1c3aed03cfd5332c78dd38423a726c71d93
src/main/ed/security/Security.java
src/main/ed/security/Security.java
// Security.java package ed.security; import ed.js.engine.*; public class Security { public final static boolean OFF = Boolean.getBoolean( "NO-SECURITY" ); final static boolean TEST_BYPASS = Boolean.getBoolean("ed.js.engine.SECURITY_BYPASS"); final static String SECURE[] = new String[]{ Conver...
// Security.java package ed.security; import ed.js.engine.*; public class Security { public final static boolean OFF = Boolean.getBoolean( "NO-SECURITY" ); final static String SECURE[] = new String[]{ Convert.DEFAULT_PACKAGE + "._data_corejs_" , Convert.DEFAULT_PACKAGE + "._data_sites_adm...
Remove the security bypass hack. It's not needed anymore.
Remove the security bypass hack. It's not needed anymore.
Java
apache-2.0
babble/babble,babble/babble,babble/babble,babble/babble,babble/babble,babble/babble
java
## Code Before: // Security.java package ed.security; import ed.js.engine.*; public class Security { public final static boolean OFF = Boolean.getBoolean( "NO-SECURITY" ); final static boolean TEST_BYPASS = Boolean.getBoolean("ed.js.engine.SECURITY_BYPASS"); final static String SECURE[] = new String[]{...
bdf7d545d56691037585e519bfa1de54addf4edd
app/src/main/java/org/mym/prettylog/PLogApplication.java
app/src/main/java/org/mym/prettylog/PLogApplication.java
package org.mym.prettylog; import android.app.Application; import org.mym.plog.PLog; import org.mym.plog.config.PLogConfig; /** * <p> * This class shows how to init PLog Library. * </p> * Created by muyangmin on 9/1/16. * * @author muyangmin * @since V3.94 */ public class PLogApplication extends Application ...
package org.mym.prettylog; import android.app.Application; import org.mym.plog.PLog; import org.mym.plog.config.PLogConfig; /** * <p> * This class shows how to init PLog Library. * </p> * Created by muyangmin on 9/1/16. * * @author muyangmin * @since V1.3.0 */ public class PLogApplication extends Application...
Fix a wrong config in sample application.
Fix a wrong config in sample application.
Java
apache-2.0
Muyangmin/Android-PLog
java
## Code Before: package org.mym.prettylog; import android.app.Application; import org.mym.plog.PLog; import org.mym.plog.config.PLogConfig; /** * <p> * This class shows how to init PLog Library. * </p> * Created by muyangmin on 9/1/16. * * @author muyangmin * @since V3.94 */ public class PLogApplication exte...
d72406985b9d7c2feeada257e64bfb7aa6ae71ce
pkgs/build-support/fetchbower/default.nix
pkgs/build-support/fetchbower/default.nix
{ stdenv, lib, bower2nix }: let bowerVersion = version: let components = lib.splitString "#" version; hash = lib.last components; ver = if builtins.length components == 1 then version else hash; in ver; fetchbower = name: version: target: outputHash: stdenv.mkDerivation { name = "${na...
{ stdenv, lib, bower2nix, cacert }: let bowerVersion = version: let components = lib.splitString "#" version; hash = lib.last components; ver = if builtins.length components == 1 then version else hash; in ver; fetchbower = name: version: target: outputHash: stdenv.mkDerivation { name...
Fix fetchbower to handle SSL origins
Fix fetchbower to handle SSL origins
Nix
mit
SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixO...
nix
## Code Before: { stdenv, lib, bower2nix }: let bowerVersion = version: let components = lib.splitString "#" version; hash = lib.last components; ver = if builtins.length components == 1 then version else hash; in ver; fetchbower = name: version: target: outputHash: stdenv.mkDerivation { ...
f6e21b0d939cfbb9d9c63d0ea3d3f861087e3365
ui/constants/supported_languages.js
ui/constants/supported_languages.js
import LANGUAGES from './languages'; const SUPPORTED_LANGUAGES = { en: LANGUAGES.en[1], pl: LANGUAGES.pl[1], id: LANGUAGES.id[1], de: LANGUAGES.de[1], fr: LANGUAGES.fr[1], sk: LANGUAGES.sk[1], tr: LANGUAGES.tr[1], zh: LANGUAGES.zh[1], ml: LANGUAGES.ml[1], sr: LANGUAGES.sr[1] }; export default SUPP...
import LANGUAGES from './languages'; const SUPPORTED_LANGUAGES = { zh: LANGUAGES.zh[1], hr: LANGUAGES.hr[1], nl: LANGUAGES.nl[1], fr: LANGUAGES.fr[1], de: LANGUAGES.de[1], gu: LANGUAGES.gu[1], hi: LANGUAGES.hi[1], id: LANGUAGES.id[1], it: LANGUAGES.it[1], ms: LANGUAGES.ms[1], ml: LANGUAGES.ml[1],...
Sort alphabetical + new languages
Sort alphabetical + new languages
JavaScript
mit
lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-electron,lbryio/lbry-app
javascript
## Code Before: import LANGUAGES from './languages'; const SUPPORTED_LANGUAGES = { en: LANGUAGES.en[1], pl: LANGUAGES.pl[1], id: LANGUAGES.id[1], de: LANGUAGES.de[1], fr: LANGUAGES.fr[1], sk: LANGUAGES.sk[1], tr: LANGUAGES.tr[1], zh: LANGUAGES.zh[1], ml: LANGUAGES.ml[1], sr: LANGUAGES.sr[1] }; exp...
22ff0c0f3bc0aa862ac80852d251a71620aaeb3a
cindyberg/QLJava/src/org/uva/sea/ql/gui/widget/StringWidget.java
cindyberg/QLJava/src/org/uva/sea/ql/gui/widget/StringWidget.java
package org.uva.sea.ql.gui.widget; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JComponent; import javax.swing.JTextField; import org.uva.sea.ql.ast.Identifier; import org.uva.sea.ql.evaluate.StringValue; import org.uva.sea.ql.evaluate.Value; import org.uva.s...
package org.uva.sea.ql.gui.widget; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JComponent; import javax.swing.JTextField; import org.uva.sea.ql.ast.Identifier; import org.uva.sea.ql.evaluate.StringValue; import org.uva.sea.ql.evaluate.Value; import org.uva.s...
Remove money, bugfixing, added typecheckertests
Remove money, bugfixing, added typecheckertests
Java
apache-2.0
software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql,software-engineering-amsterdam/poly-ql
java
## Code Before: package org.uva.sea.ql.gui.widget; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JComponent; import javax.swing.JTextField; import org.uva.sea.ql.ast.Identifier; import org.uva.sea.ql.evaluate.StringValue; import org.uva.sea.ql.evaluate.Value; import org....
35cf669a00de6e4d901b23267e1d36e7f986be99
app/views/goals/item.blade.php
app/views/goals/item.blade.php
<?php /* This template expects following variables: - Mandatory $d: the object holding the goal $p: the object describing the permissions - Optional */ $parent = $d->parent; $child = $d->child; ?> @include('field', array('name' => 'name')) @if($p['own_page']) {{ link_to_route('goals.create', trans('ui.goals.n...
<?php /* This template expects following variables: - Mandatory $d: the object holding the goal $p: the object describing the permissions - Optional */ $parent = $d->parent; $child = $d->child; ?> @include('field', array('name' => 'name')) @if(isset($p['own_page']) and $p['own_page']) {{ link_to_route('goals....
Fix button for new versions
Fix button for new versions
PHP
agpl-3.0
Tribeforce/Tribeforce-Project-Love,Tribeforce/Tribeforce-Project-Love,Tribeforce/Tribeforce-Project-Love
php
## Code Before: <?php /* This template expects following variables: - Mandatory $d: the object holding the goal $p: the object describing the permissions - Optional */ $parent = $d->parent; $child = $d->child; ?> @include('field', array('name' => 'name')) @if($p['own_page']) {{ link_to_route('goals.create', t...
6d14b359fe3e4377931f71cc84f402355e3b3b5c
RELEASE_NOTES.md
RELEASE_NOTES.md
* Created basic NetConsole.Core project * Handle command and basic error management * Supported And (&&), Or (||) and Pipe (|) operations * Default Action attribute * Initial release
* Added CommandImporter for easier usage of grammar and commands * Removed unused classes and interfaces #### 0.1.0 - April 26 2015 * Created basic NetConsole.Core project * Handle command and basic error management * Supported And (&&), Or (||) and Pipe (|) operations * Default Action attribute * Initial release
Bump version in Release notes
Bump version in Release notes
Markdown
mit
renehernandez/NetConsole.Core,renehernandez/NetConsole.Core
markdown
## Code Before: * Created basic NetConsole.Core project * Handle command and basic error management * Supported And (&&), Or (||) and Pipe (|) operations * Default Action attribute * Initial release ## Instruction: Bump version in Release notes ## Code After: * Added CommandImporter for easier usage of grammar and co...
b7ca2e59fadbfe8a69bb0c70b4ab7cb85c986af2
README.md
README.md
Make the invitation function plugable. ## Usage ```ruby # config/initializer/rails_invitable.rb RailsInvitable.user_class = "User" # Or other user class name used in your project. Should be a string or symbol. ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'rails_invitable' ``` And the...
Make the invitation function plugable. ## Requirement * User has class ApplicationController with method current_user avaiable there. * User class which the name can be configured. ## Usage ```ruby # config/initializer/rails_invitable.rb RailsInvitable.user_class = "User" # Or other user class name used in your proje...
Add basic requirement on readme
Add basic requirement on readme
Markdown
mit
aihehuo/rails-invitable,aihehuo/rails-invitable,aihehuo/rails-invitable
markdown
## Code Before: Make the invitation function plugable. ## Usage ```ruby # config/initializer/rails_invitable.rb RailsInvitable.user_class = "User" # Or other user class name used in your project. Should be a string or symbol. ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'rails_invitab...
a7559260a86d4607c9aee6c76fc527ef082375c7
README.md
README.md
XV Proxy ======== Extensible proxy class. Roadmap ------- * Throttling * SSL * OS X integration * Firefox integration * Allow read hooks * Allow stub hooks * Access control (remote proxying)
XV Proxy ======== Extensible proxy class. [![Build Status](https://secure.travis-ci.org/seppo0010/xv-proxy.svg?branch=master)](http://travis-ci.org/seppo0010/xv-proxy) Roadmap ------- * Throttling * SSL * OS X integration * Firefox integration * Allow read hooks * Allow stub hooks * Access control (remote proxying)...
Add travis test link to readme
Add travis test link to readme
Markdown
bsd-2-clause
seppo0010/xv-proxy,seppo0010/xv-proxy,seppo0010/xv-proxy
markdown
## Code Before: XV Proxy ======== Extensible proxy class. Roadmap ------- * Throttling * SSL * OS X integration * Firefox integration * Allow read hooks * Allow stub hooks * Access control (remote proxying) ## Instruction: Add travis test link to readme ## Code After: XV Proxy ======== Extensible proxy class. [!...
8a521622997636e10699208d718689e290604b88
src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java
src/main/java/com/faforever/api/data/listeners/AvatarEnricherListener.java
package com.faforever.api.data.listeners; import com.faforever.api.config.FafApiProperties; import com.faforever.api.data.domain.Avatar; import org.springframework.stereotype.Component; import javax.inject.Inject; import javax.persistence.PostLoad; import java.io.UnsupportedEncodingException; import java.net.URLEncod...
package com.faforever.api.data.listeners; import com.faforever.api.config.FafApiProperties; import com.faforever.api.data.domain.Avatar; import org.springframework.stereotype.Component; import org.springframework.web.util.UriUtils; import javax.inject.Inject; import javax.persistence.PostLoad; import java.nio.charset...
Fix avatar url encoding (whitespace was encoded with + rather than %20)
Fix avatar url encoding (whitespace was encoded with + rather than %20)
Java
mit
FAForever/faf-java-api,micheljung/faf-java-api,FAForever/faf-java-api,FAForever/faf-java-api,micheljung/faf-java-api
java
## Code Before: package com.faforever.api.data.listeners; import com.faforever.api.config.FafApiProperties; import com.faforever.api.data.domain.Avatar; import org.springframework.stereotype.Component; import javax.inject.Inject; import javax.persistence.PostLoad; import java.io.UnsupportedEncodingException; import j...
f9dbba0f43671d3a756ff67e74acdea6e6931d44
README.md
README.md
A library to morph back-tick wrapped markup in to `<code>`. https://github.com/ryanpcmcquen/codeFormatter There is code in here to support the PrettyPrint library for syntax highlighting, but unfortunately, all the times I have submitted code that included PrettyPrint to various browser extension repositories, it ha...
A library to morph back-tick wrapped markup in to `<code>`. https://github.com/ryanpcmcquen/codeFormatter This used to support language specific syntax highlighting, but unfortunately, all the times I have submitted code that included PrettyPrint to various browser extension repositories, it has been an uphill battl...
Add more notes about Microlight.
Add more notes about Microlight.
Markdown
mpl-2.0
ryanpcmcquen/codeFormatter
markdown
## Code Before: A library to morph back-tick wrapped markup in to `<code>`. https://github.com/ryanpcmcquen/codeFormatter There is code in here to support the PrettyPrint library for syntax highlighting, but unfortunately, all the times I have submitted code that included PrettyPrint to various browser extension rep...
ead2a19725156193cf5b587285ceca33a0f05686
src/milligram.sass
src/milligram.sass
// Sass Modules // –––––––––––––––––––––––––––––––––––––––––––––––––– @import Color @import Base @import Blockquote @import Button @import Code @import Divider @import Form @import Grid @import Link @import List @import Spacing @import Table @import Typography @import Image @import Utility
// Modules // –––––––––––––––––––––––––––––––––––––––––––––––––– @import _Color @import _Base @import _Blockquote @import _Button @import _Code @import _Divider @import _Form @import _Grid @import _Link @import _List @import _Spacing @import _Table @import _Typography @import _Image @import _Utility
Update the main sass file
Update the main sass file
Sass
mit
milligram/milligram,milligram/milligram
sass
## Code Before: // Sass Modules // –––––––––––––––––––––––––––––––––––––––––––––––––– @import Color @import Base @import Blockquote @import Button @import Code @import Divider @import Form @import Grid @import Link @import List @import Spacing @import Table @import Typography @import Image @import Utility ## Instruc...
bd00dbf0eedda89ca5d09fcef3fc1cf8f9dd31dd
post.hbs
post.hbs
{{!< default}} {{#post}} <header class="big {{#if image}}cover" style="background-image: url({{image}})"{{else}}no-cover"{{/if}}> <h1 class="post-title" style="text-align:left">{{title}}</h1> <div class="post-meta meta"> <span>{{date format="DD MMMM YYYY"}}</span> {{#if tags}} · <spa...
{{!< default}} {{#post}} <header class="big {{#if image}}cover" style="background-image: url({{image}})"{{else}}no-cover"{{/if}}> <h1 class="post-title" style="text-align:left">{{title}}</h1> <div class="post-meta meta"> <span>{{date format="DD MMMM YYYY"}}</span> {{#if tags}} <span styl...
Remove seperator between date and tags
Remove seperator between date and tags
Handlebars
mit
Nildeala/Stitch-Blue,Schoewilliam/Stitch-Blue,Schoewilliam/Stitch-Blue,postblue/Stitsch,postblue/Stitsch,Nildeala/Stitch-Blue
handlebars
## Code Before: {{!< default}} {{#post}} <header class="big {{#if image}}cover" style="background-image: url({{image}})"{{else}}no-cover"{{/if}}> <h1 class="post-title" style="text-align:left">{{title}}</h1> <div class="post-meta meta"> <span>{{date format="DD MMMM YYYY"}}</span> {{#if tags}} ...
afc1ee9d5b2b50657c435b595a88698ea2deb6a1
src/documents/SearchDomain.js
src/documents/SearchDomain.js
import { action, observable, computed } from 'mobx' class SearchDomain { @observable searchText = '' constructor(items = [], retrievers) { this.items = items this.retrievers = retrievers } @action onSearch = (searchText) => { this.searchText = searchText } @computed get itemsTexts() {...
import { action, observable, computed } from 'mobx' class SearchDomain { @observable searchText = '' constructor(items = [], retrievers) { this.items = items this.retrievers = retrievers } @action onSearch = (searchText) => { this.searchText = searchText } @computed get itemsTexts() {...
Handle search retrievers returning nothing
Handle search retrievers returning nothing
JavaScript
mit
mindhivenz/mui-components
javascript
## Code Before: import { action, observable, computed } from 'mobx' class SearchDomain { @observable searchText = '' constructor(items = [], retrievers) { this.items = items this.retrievers = retrievers } @action onSearch = (searchText) => { this.searchText = searchText } @computed ge...
2356eadd174d57fa7fc226892d4fcaa1c4551545
start-app.sh
start-app.sh
VENV_DIR=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))-$1-$2 LOCK_DIR=./tmp-start trap "rm -rf $LOCK_DIR" EXIT INT TERM waiting=0 until mkdir $LOCK_DIR > /dev/null 2>&1; do if [ $waiting -eq 0 ]; then echo "waiting for startup lock" waiting=1 fi sleep 1 done if [ ! -f "${VENV_...
export MONGO_REPLICA_SET='' VENV_DIR=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))-$1-$2 LOCK_DIR=./tmp-start trap "rm -rf $LOCK_DIR" EXIT INT TERM waiting=0 until mkdir $LOCK_DIR > /dev/null 2>&1; do if [ $waiting -eq 0 ]; then echo "waiting for startup lock" waiting=1 fi slee...
Correct replica set for gov.uk dev vm
Correct replica set for gov.uk dev vm The gov.uk dev vm doesnt setup a replica set for mongo, so we need to override the default setting to try connecting to a replica set called production. start-app.sh is only used in development, so it should be safe to include.
Shell
mit
alphagov/backdrop,alphagov/backdrop,alphagov/backdrop
shell
## Code Before: VENV_DIR=~/.virtualenvs/$(basename $(cd $(dirname $0) && pwd -P))-$1-$2 LOCK_DIR=./tmp-start trap "rm -rf $LOCK_DIR" EXIT INT TERM waiting=0 until mkdir $LOCK_DIR > /dev/null 2>&1; do if [ $waiting -eq 0 ]; then echo "waiting for startup lock" waiting=1 fi sleep 1 done if...
0a84e78e04cbdf891417e21a83a27d1bfc972e9e
client/lib/juggernaut.rb
client/lib/juggernaut.rb
require "redis" require "json" module Juggernaut def redis_options @redis_options ||= {} end def publish(channels, data, options = {}) message = ({:channels => Array(channels).uniq, :data => data}).merge(options) redis.publish(key, message.to_json) end def subscribe Redis.new(redis_opt...
require "redis" require "json" module Juggernaut EVENTS = [ "juggernaut:subscribe", "juggernaut:unsubscribe", "juggernaut:custom" ] def redis_options @redis_options ||= {} end def publish(channels, data, options = {}) message = ({:channels => Array(channels).uniq, :data => data})....
Fix subscribe in newer versions of Redis (thanks mikedemers)
Fix subscribe in newer versions of Redis (thanks mikedemers)
Ruby
mit
maccman/juggernaut,strideapp/juggernaut,mediweb/juggernaut,strideapp/juggernaut,civicevolution/juggernaut-OLD,civicevolution/juggernaut-OLD,mediweb/juggernaut,strideapp/juggernaut,civicevolution/juggernaut,strideapp/juggernaut,maccman/juggernaut,civicevolution/juggernaut,mediweb/juggernaut
ruby
## Code Before: require "redis" require "json" module Juggernaut def redis_options @redis_options ||= {} end def publish(channels, data, options = {}) message = ({:channels => Array(channels).uniq, :data => data}).merge(options) redis.publish(key, message.to_json) end def subscribe Red...
d5b08c602a00ef9a5f773864bdb6f09c61ffc85d
config/initializers/db2fog.rb
config/initializers/db2fog.rb
require_relative 'spree' # See: https://github.com/yob/db2fog DB2Fog.config = { :aws_access_key_id => Spree::Config[:s3_access_key], :aws_secret_access_key => Spree::Config[:s3_secret], :directory => ENV['S3_BACKUPS_BUCKET'], :provider => 'AWS' }
require_relative 'spree' # See: https://github.com/yob/db2fog DB2Fog.config = { :aws_access_key_id => Spree::Config[:s3_access_key], :aws_secret_access_key => Spree::Config[:s3_secret], :directory => ENV['S3_BACKUPS_BUCKET'], :provider => 'AWS' } DB2Fog.config[:region] = E...
Allow passing a specific AWS region to S3 settings
Allow passing a specific AWS region to S3 settings This solves the error showed below when executed `bundle exec rake db2fog:backup RAILS_ENV=staging` on Katuma staging ``` Excon::Error::BadRequest: Expected(200) <=> Actual(400 Bad Request) excon.error.response :body => "<?xml version=\"1.0\" encoding=\"UT...
Ruby
agpl-3.0
Matt-Yorkley/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfo...
ruby
## Code Before: require_relative 'spree' # See: https://github.com/yob/db2fog DB2Fog.config = { :aws_access_key_id => Spree::Config[:s3_access_key], :aws_secret_access_key => Spree::Config[:s3_secret], :directory => ENV['S3_BACKUPS_BUCKET'], :provider => 'AWS' } ## Instruc...
75f75cfa9fd7c304822293ef98a18258ebde8b58
app/views/shared/_timeline_pic.html.erb
app/views/shared/_timeline_pic.html.erb
<% if user.timeline_pic.url %> <div class="timeline_pic" style="background-image: url(<%= user.timeline_pic.url %>);"></div> <% else %> <div class="timeline_pic" style="background-image: url(/assets/timeline_pic_default.jpg);"></div> <% end %>
<% if user.timeline_pic.url %> <div class="timeline_pic" style="background-image: url(<%= user.timeline_pic.url %>);"></div> <% else %> <div class="timeline_pic" style="background-image: url(<%= asset_url('timeline_pic_default.jpg') %>);"></div> <% end %>
Make default timeline pic precompile
fix: Make default timeline pic precompile
HTML+ERB
mit
frankolson/BIC_Hub,frankolson/BIC_Hub,frankolson/BIC_Hub
html+erb
## Code Before: <% if user.timeline_pic.url %> <div class="timeline_pic" style="background-image: url(<%= user.timeline_pic.url %>);"></div> <% else %> <div class="timeline_pic" style="background-image: url(/assets/timeline_pic_default.jpg);"></div> <% end %> ## Instruction: fix: Make default timeline pic precompi...
804c2e785deb5671839edf00125d19f449f029ca
app/views/api/user_configs/show.json.erb
app/views/api/user_configs/show.json.erb
{ "quick_reading": <%= user.quick_reading %>, "open_all_entries": <%= user.open_all_entries %>, "show_main_tour": <%= user.show_main_tour %> }
{ "quick_reading": <%= user.quick_reading %>, "open_all_entries": <%= user.open_all_entries %>, "show_main_tour": <%= user.show_main_tour %>, "show_mobile_tour": <%= user.show_mobile_tour %> }
Return the show_mobile_tour flag with the rest of user configurations via JSON.
Return the show_mobile_tour flag with the rest of user configurations via JSON.
HTML+ERB
mit
amatriain/feedbunch,amatriain/feedbunch,amatriain/feedbunch,amatriain/feedbunch,jmwenda/feedbunch,jmwenda/feedbunch,jmwenda/feedbunch
html+erb
## Code Before: { "quick_reading": <%= user.quick_reading %>, "open_all_entries": <%= user.open_all_entries %>, "show_main_tour": <%= user.show_main_tour %> } ## Instruction: Return the show_mobile_tour flag with the rest of user configurations via JSON. ## Code After: { "quick_reading": <%= user.quick_reading...
ab1a42d151c3e4e493c50150e93ce2646f2b3bc9
requirements.txt
requirements.txt
Fabric==1.7.0 LinkChecker==9.2 Logbook==0.8.0 Mako==1.0.0 Markdown==2.5.2 MarkupSafe==0.23 Nikola==7.2.0 Pillow==2.6.1 PyRSS2Gen==1.1 Pygments==2.0.1 Unidecode==0.04.16 Yapsy==1.10.423 blinker==1.3 certifi==14.05.14 cssselect==0.9.1 docutils==0.12 doit==0.26.0 ecdsa==0.11 geopy==1.10.0 lxml==3.4.1 mincss==0.8.1 natsort...
Fabric==1.7.0 LinkChecker==9.2 Logbook==0.8.0 Mako==1.0.0 Markdown==2.5.2 MarkupSafe==0.23 Nikola==7.2.0 Pillow==2.6.1 PyRSS2Gen==1.1 Pygments==2.0.1 Unidecode==0.04.16 Yapsy==1.10.423 blinker==1.3 certifi==14.05.14 cssselect==0.9.1 docutils==0.12 doit==0.26.0 ecdsa==0.11 flickr-api==0.5 geopy==1.10.0 lxml==3.4.1 mincs...
Add flickr api for picture helper
Add flickr api for picture helper
Text
cc0-1.0
edwinsteele/wordspeak.org,edwinsteele/wordspeak.org,edwinsteele/wordspeak.org
text
## Code Before: Fabric==1.7.0 LinkChecker==9.2 Logbook==0.8.0 Mako==1.0.0 Markdown==2.5.2 MarkupSafe==0.23 Nikola==7.2.0 Pillow==2.6.1 PyRSS2Gen==1.1 Pygments==2.0.1 Unidecode==0.04.16 Yapsy==1.10.423 blinker==1.3 certifi==14.05.14 cssselect==0.9.1 docutils==0.12 doit==0.26.0 ecdsa==0.11 geopy==1.10.0 lxml==3.4.1 mincs...
28e65f8d80f5f983a60f3b10e60d876e8378ab40
app/content/examples/index.hbs
app/content/examples/index.hbs
--- layout: examples.hbs short_title: Examples title: Examples summary: Examples short_summary: Examples --- <h1>Examples</h1> <ul> <li><a href="sticky-footer/index.html">Sticky Footer</a></li> <li><a href="copyright/index.html">Copyright</a></li> <li><a href="lazy-load/index.html">Lazy Load</a></li> ...
--- layout: examples.hbs short_title: Examples title: Examples summary: Examples short_summary: Examples --- <h1>Examples</h1> <ul> <li><a href="sticky-footer/index.html">Sticky Footer</a></li> <li><a href="copyright/index.html">Copyright</a></li> <li><a href="lazy-load/index.html">Lazy Load</a></li> ...
Remove share link from examples page
Remove share link from examples page
Handlebars
mit
oksana-khristenko/assemble-starter,oksana-khristenko/assemble-starter
handlebars
## Code Before: --- layout: examples.hbs short_title: Examples title: Examples summary: Examples short_summary: Examples --- <h1>Examples</h1> <ul> <li><a href="sticky-footer/index.html">Sticky Footer</a></li> <li><a href="copyright/index.html">Copyright</a></li> <li><a href="lazy-load/index.html">Lazy L...
061641ca134da73ebe7d8c74a9631a33050dc7fb
_includes/product.html
_includes/product.html
<article id="product" class="Product"> <div class="image"> <img class="u-photo" src="media/images/product-shot.png" alt="Product shot of the Rinse Cup bottle" itemprop="image" /> </div> <h2 class="Heading">About <span class="p-name" itemprop="name">Rinse Cup</span></h2> <ul class="listing"> ...
<article id="product" class="Product"> <div class="image"> <img class="u-photo" src="media/images/product-shot.png" alt="Product shot of the Rinse Cup bottle" itemprop="image" /> </div> <h2 class="Heading">About <span class="p-name" itemprop="name">Rinse Cup</span></h2> <ul class="listing"> ...
Remove text as per Dan
Remove text as per Dan
HTML
mit
chrisopedia/rinsecup.com,chrisopedia/rinsecup.com
html
## Code Before: <article id="product" class="Product"> <div class="image"> <img class="u-photo" src="media/images/product-shot.png" alt="Product shot of the Rinse Cup bottle" itemprop="image" /> </div> <h2 class="Heading">About <span class="p-name" itemprop="name">Rinse Cup</span></h2> <ul class...
706b75e739199bddc70b691e83ecce87b8f9c772
test_client.qbs
test_client.qbs
import qbs CppApplication { type: "application" files: "raw_socket_write/raw_socket.c" }
import qbs CppApplication { type: "application" name: "test_session" }
Add dummy qbs build configuration
Add dummy qbs build configuration Signed-off-by: Brian McGillion <e5584ecd8ee5868d4650d758a8412085be93f4f1@intel.com>
QML
apache-2.0
Open-TEE/CAs,Open-TEE/CAs
qml
## Code Before: import qbs CppApplication { type: "application" files: "raw_socket_write/raw_socket.c" } ## Instruction: Add dummy qbs build configuration Signed-off-by: Brian McGillion <e5584ecd8ee5868d4650d758a8412085be93f4f1@intel.com> ## Code After: import qbs CppApplication { type: "application" ...
1dc4a80c9d6948b70eac8902214b1bd4dfc3ff75
lib/active_record/connection_adapters/clickhouse/oid/date_time.rb
lib/active_record/connection_adapters/clickhouse/oid/date_time.rb
module ActiveRecord module ConnectionAdapters module Clickhouse module OID # :nodoc: class DateTime < Type::DateTime # :nodoc: def serialize(value) value = super return value.strftime('%Y-%m-%d %H:%M:%S') unless value.acts_like?(:time) value.to_time.s...
module ActiveRecord module ConnectionAdapters module Clickhouse module OID # :nodoc: class DateTime < Type::DateTime # :nodoc: def serialize(value) value = super return unless value return value.strftime('%Y-%m-%d %H:%M:%S') unless value.acts_like?(:ti...
Allow to pass nil to DateTime field
Allow to pass nil to DateTime field
Ruby
mit
PNixx/clickhouse-activerecord,PNixx/clickhouse-activerecord
ruby
## Code Before: module ActiveRecord module ConnectionAdapters module Clickhouse module OID # :nodoc: class DateTime < Type::DateTime # :nodoc: def serialize(value) value = super return value.strftime('%Y-%m-%d %H:%M:%S') unless value.acts_like?(:time) ...
f8874f086048dc104df0f744355f0d32fff947d9
app/views/admin/whitelisted_hosts/index.html.erb
app/views/admin/whitelisted_hosts/index.html.erb
<% content_for :page_title, 'Redirect whitelist' %> <div class="page-title"> <h1> Redirection whitelist<br/> <small> You can only create redirects if they go to a domain on this list or the domain ends in .gov.uk or .mod.uk. </small> </h1> </div> <div class="pull-left add-bottom-margin"> <h2><...
<% content_for :page_title, 'Redirect whitelist' %> <div class="page-title"> <h1> Redirection whitelist<br/> <small> You can only create redirects if they go to a domain on this list or the domain ends in .gov.uk or .mod.uk. </small> </h1> </div> <div class="pull-left add-bottom-margin"> <h2><...
Add filtering to the whitelist view
Add filtering to the whitelist view - This behaves more like the organisation view.
HTML+ERB
mit
alphagov/transition,alphagov/transition,alphagov/transition
html+erb
## Code Before: <% content_for :page_title, 'Redirect whitelist' %> <div class="page-title"> <h1> Redirection whitelist<br/> <small> You can only create redirects if they go to a domain on this list or the domain ends in .gov.uk or .mod.uk. </small> </h1> </div> <div class="pull-left add-bottom-...
177084edee5625f1b33270c795dec57e2be40b4b
roles/st2smoketests/tasks/main.yml
roles/st2smoketests/tasks/main.yml
--- # Small suite of smoke tests to execute to ensure that the playbook has deployed as expected - meta: flush_handlers tags: - smoke-tests - name: Make sure packs are reloaded become: yes command: st2ctl reload --register-all tags: - smoke-tests - name: st2 installed command: st2 --version tags...
--- # Small suite of smoke tests to execute to ensure that the playbook has deployed as expected - meta: flush_handlers tags: - smoke-tests - name: Make sure packs are reloaded become: yes command: st2ctl reload --register-all changed_when: no tags: - smoke-tests - name: st2 installed command: st...
Mark all Smoketests as idempotent
Mark all Smoketests as idempotent
YAML
apache-2.0
armab/ansible-st2,StackStorm/ansible-st2
yaml
## Code Before: --- # Small suite of smoke tests to execute to ensure that the playbook has deployed as expected - meta: flush_handlers tags: - smoke-tests - name: Make sure packs are reloaded become: yes command: st2ctl reload --register-all tags: - smoke-tests - name: st2 installed command: st2 ...
9587469139951f6cdbdc85211dde120591c3e816
docker/common/rabbitmq/start.sh
docker/common/rabbitmq/start.sh
set -o errexit CMD="/usr/sbin/rabbitmq-server" ARGS="" # loading common functions source /opt/kolla/kolla-common.sh # config-internal script exec out of this function, it does not return here set_configs # loading functions source /opt/kolla/config-rabbit.sh # This catches all cases of the BOOTSTRAP variable bein...
set -o errexit CMD="/usr/sbin/rabbitmq-server" ARGS="" # loading common functions source /opt/kolla/kolla-common.sh # Execute config strategy set_configs # loading functions source /opt/kolla/config-rabbit.sh # This catches all cases of the BOOTSTRAP variable being set, including empty if [[ "${!KOLLA_BOOTSTRAP[@...
Clean up comment in rabbitmq
Clean up comment in rabbitmq Change-Id: I87ff9b8319d29cc41ab7a0fb63025b434fab10f8 Partially-Implements: blueprint remove-config-internal
Shell
apache-2.0
GalenMa/kolla,toby82/kolla,coolsvap/kolla,rajalokan/kolla,dardelean/kolla-ansible,toby82/kolla,jakedahn/kolla,LoHChina/kolla,rahulunair/kolla,limamauricio/mykolla,tonyli71/kolla,tonyli71/kolla,jakedahn/kolla,stackforge/kolla,chenzhiwei/kolla,LoHChina/kolla,stackforge/kolla,chenzhiwei/kolla,nihilifer/kolla,mandre/kolla,...
shell
## Code Before: set -o errexit CMD="/usr/sbin/rabbitmq-server" ARGS="" # loading common functions source /opt/kolla/kolla-common.sh # config-internal script exec out of this function, it does not return here set_configs # loading functions source /opt/kolla/config-rabbit.sh # This catches all cases of the BOOTSTR...
8c397b63405792dfae35873a67fce1fa703ccf84
tests/modules/lib/systemd.sh
tests/modules/lib/systemd.sh
unit_start() { /usr/bin/systemctl daemon-reload /usr/bin/systemctl enable "$1" /usr/bin/systemctl start "$1" } unit_install() { cp "$1" /etc/systemd/system } unit_active() { /usr/bin/systemctl is-active "$1" && return 0 return 1 }
function unit_cleanup() { PRINT "+" "Deleting incomplete systemd unit..." rm -f "/etc/systemd/system/$SERVICE" systemctl daemon-reload } trap unit_cleanup ERR unit_start() { /usr/bin/systemctl daemon-reload /usr/bin/systemctl enable "$1" /usr/bin/systemctl start "$1" } unit_install() { cp ...
Move trap here for cleaner scripts.
rerun.lib: Move trap here for cleaner scripts.
Shell
mit
Configi/configi,Configi/configi,Configi/configi,Configi/configi,Configi/configi
shell
## Code Before: unit_start() { /usr/bin/systemctl daemon-reload /usr/bin/systemctl enable "$1" /usr/bin/systemctl start "$1" } unit_install() { cp "$1" /etc/systemd/system } unit_active() { /usr/bin/systemctl is-active "$1" && return 0 return 1 } ## Instruction: rerun.lib: Move trap here fo...
98f92d1972ce06111ade8abb8a820389a3c6f030
core/lib/spree/permission_sets/product_display.rb
core/lib/spree/permission_sets/product_display.rb
module Spree module PermissionSets class ProductDisplay < PermissionSets::Base def activate! can [:display, :admin, :edit], Spree::Product can [:display, :admin], Spree::Image can [:display, :admin], Spree::Variant can [:display, :admin], Spree::OptionValue can [:disp...
module Spree module PermissionSets class ProductDisplay < PermissionSets::Base def activate! can [:display, :admin, :edit], Spree::Product can [:display, :admin], Spree::Image can [:display, :admin], Spree::Variant can [:display, :admin], Spree::OptionValue can [:disp...
Remove prototype from product display permission set
Remove prototype from product display permission set
Ruby
bsd-3-clause
Arpsara/solidus,pervino/solidus,Arpsara/solidus,Arpsara/solidus,Arpsara/solidus,pervino/solidus,pervino/solidus,pervino/solidus
ruby
## Code Before: module Spree module PermissionSets class ProductDisplay < PermissionSets::Base def activate! can [:display, :admin, :edit], Spree::Product can [:display, :admin], Spree::Image can [:display, :admin], Spree::Variant can [:display, :admin], Spree::OptionValue ...
881cda193c44a1bea0bd02f0cf5ca263a5e3730f
packages/react-scripts/template/src/App.test.js
packages/react-scripts/template/src/App.test.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); });
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { window.matchMedia = jest.genMockFunction().mockImplementation(function () { return { matches: true }; }); const div = document.createElement('div'); ReactDOM.render(<App />...
Add a mock for window.matchMedia.
Add a mock for window.matchMedia. The window.matchMedia function is used in the Spectacle Slide component (and other parts of Radium).
JavaScript
bsd-3-clause
igetgames/spectacle-create-react-app,igetgames/spectacle-create-react-app,igetgames/spectacle-create-react-app
javascript
## Code Before: import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); }); ## Instruction: Add a mock for window.matchMedia. The window.matchMedia function is used in th...
4cd37689ec74fab64e8f9ec829936e6418525d74
lib/jade-rails.rb
lib/jade-rails.rb
require 'json' require 'execjs' module Jade class << self def compile(source, options = {}) jade_js = File.read(File.expand_path('../../vendor/assets/javascripts/jade/jade.js', __FILE__)) context = ExecJS.compile <<-JS var window = {}; #{jade_js} var jade = window.jade; ...
require 'json' require 'execjs' module Jade class << self def compile(source, options = {}) @@context ||= begin jade_js = File.read(File.expand_path('../../vendor/assets/javascripts/jade/jade.js', __FILE__)) ExecJS.compile <<-JS var window = {}; #{jade_js} va...
Improve performance by memoizing context.
Jade.compile: Improve performance by memoizing context.
Ruby
mit
mahipal/jade-rails,muthhus/jade-rails
ruby
## Code Before: require 'json' require 'execjs' module Jade class << self def compile(source, options = {}) jade_js = File.read(File.expand_path('../../vendor/assets/javascripts/jade/jade.js', __FILE__)) context = ExecJS.compile <<-JS var window = {}; #{jade_js} var jade = w...
4e52f15c442875322e2b6c3e51108297eb8945a0
src/com/davidmogar/njc/ast/types/StringType.java
src/com/davidmogar/njc/ast/types/StringType.java
package com.davidmogar.njc.ast.types; import com.davidmogar.njc.visitors.Visitor; import com.davidmogar.njc.ast.AbstractAstNode; public class StringType extends AbstractType implements Type { private static StringType instance; private StringType(int line, int column) { super(line, column); } ...
package com.davidmogar.njc.ast.types; import com.davidmogar.njc.TypeError; import com.davidmogar.njc.visitors.Visitor; import com.davidmogar.njc.ast.AbstractAstNode; public class StringType extends AbstractType implements Type { private static StringType instance; private StringType(int line, int column) { ...
Remove code added in a previous commit
Remove code added in a previous commit String literals shouldn't be assignable.
Java
mit
davidmogar/njc
java
## Code Before: package com.davidmogar.njc.ast.types; import com.davidmogar.njc.visitors.Visitor; import com.davidmogar.njc.ast.AbstractAstNode; public class StringType extends AbstractType implements Type { private static StringType instance; private StringType(int line, int column) { super(line, c...
c6bf12e83cdf792c986b3fc4348a0165fe569e8a
frontend/src/Lists/ListsView.js
frontend/src/Lists/ListsView.js
import React, { Component } from "react"; import styled from "styled-components"; import { Row, RowContent, ColumnContainer } from "../SharedComponents.js"; import Loading from "../loading.js"; import List from "./List.js"; import CreateList from "./CreateList.js"; import Notes from "./Notes.js"; class ListsView ex...
import React, { Component } from "react"; import styled from "styled-components"; import { Row, RowContent, ColumnContainer } from "../SharedComponents.js"; import Loading from "../loading.js"; import List from "./List.js"; import CreateList from "./CreateList.js"; import Notes from "./Notes.js"; class ListsView ex...
Move lists to the left
Move lists to the left
JavaScript
mit
Tejpbit/talarlista,Tejpbit/talarlista,Tejpbit/talarlista
javascript
## Code Before: import React, { Component } from "react"; import styled from "styled-components"; import { Row, RowContent, ColumnContainer } from "../SharedComponents.js"; import Loading from "../loading.js"; import List from "./List.js"; import CreateList from "./CreateList.js"; import Notes from "./Notes.js"; cl...
3f0bcb866d6c5555cffc58ecf8909a15e65d0a9a
app/helpers/AZ_url_helper.php
app/helpers/AZ_url_helper.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!function_exists('skin_url')) { function skin_url($theme = 'default') { $uri = & load_class('URI', 'core'); $admin = $uri->segment(1); $is_admin = ($admin == 'administrator' || $admin == 'admin') ? true : f...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!function_exists('skin_url')) { function skin_url($theme = 'default') { $uri = & load_class('URI', 'core'); $admin = $uri->segment(1); $is_admin = ($admin == 'administrator' || $admin == 'admin') ? true : f...
Add some url helper like is_front
Add some url helper like is_front
PHP
mit
azinkey/bootigniter,azinkey/bootigniter,azinkey/bootigniter
php
## Code Before: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!function_exists('skin_url')) { function skin_url($theme = 'default') { $uri = & load_class('URI', 'core'); $admin = $uri->segment(1); $is_admin = ($admin == 'administrator' || $admin == 'ad...
7485f45b30ffca63891551aad7d452ea61857344
app/assets/javascripts/client/inventories/edit_sidebar.html
app/assets/javascripts/client/inventories/edit_sidebar.html
<div class="sidebar inventory-edit-sidebar"> <ul> <li> <a ng-click="inventoryEditSidebar.markInventoryComplete()" class="btn btn-primary">Mark Inventory Complete</a> </li> <li> <a ng-click="inventoryEditSidebar.transitionToDashboard()" class="btn btn-secondary">Save and Exit Inventory</a> ...
<div class="sidebar inventory-edit-sidebar"> <ul> <li> <a ng-click="inventoryEditSidebar.markInventoryComplete()" class="btn btn-primary">Mark Inventory Complete</a> </li> <li> <a ng-click="inventoryEditSidebar.transitionToDashboard()" class="btn btn-tertiary">Go to Dashboard</a> </li> ...
Change copy of sidebar button
Change copy of sidebar button
HTML
mit
MobilityLabs/pdredesign-server,MobilityLabs/pdredesign-server,MobilityLabs/pdredesign-server,MobilityLabs/pdredesign-server
html
## Code Before: <div class="sidebar inventory-edit-sidebar"> <ul> <li> <a ng-click="inventoryEditSidebar.markInventoryComplete()" class="btn btn-primary">Mark Inventory Complete</a> </li> <li> <a ng-click="inventoryEditSidebar.transitionToDashboard()" class="btn btn-secondary">Save and Exit In...
f26bbc6e76dd26e823c8286f740e2f1c0f491881
.circleci/config.yml
.circleci/config.yml
workflows: version: 2 node-multi-build: jobs: - test - deploy: filters: branches: only: master requires: - test reserved-posts: jobs: - deploy triggers: - schedule: cron: '0 0,6,12,18 * * *' # On 6 hours ...
workflows: version: 2 node-multi-build: jobs: - test - deploy: filters: branches: only: master requires: - test reserved-posts: jobs: - deploy triggers: - schedule: cron: '0 0,6,12,18 * * *' # On 6 hours ...
Add gatsby-remark-expand-github-embedded-code-snippet to list of cache
Add gatsby-remark-expand-github-embedded-code-snippet to list of cache
YAML
mit
Leko/WEB-EGG,Leko/WEB-EGG,Leko/WEB-EGG
yaml
## Code Before: workflows: version: 2 node-multi-build: jobs: - test - deploy: filters: branches: only: master requires: - test reserved-posts: jobs: - deploy triggers: - schedule: cron: '0 0,6,12,18 * * *' # O...
5d29122a6316ff7722278e1c95d1de4df78fc2d2
week-5/calculate-mode/my_solution.rb
week-5/calculate-mode/my_solution.rb
=begin # Calculate the mode Pairing Challenge # I worked on this challenge [by myself, with: ] # I spent [] hours on this challenge. # Complete each step below according to the challenge directions and # include it in this file. Also make sure everything that isn't code # is commented. # 0. Pseudocode # What is ...
=begin # Calculate the mode Pairing Challenge # I worked on this challenge [with: Alan Alcesto] # I spent [] hours on this challenge. # Complete each step below according to the challenge directions and # include it in this file. Also make sure everything that isn't code # is commented. # 0. Pseudocode # What is...
Add my initial pseudocode for 5.3
Add my initial pseudocode for 5.3
Ruby
mit
sheamunion/phase-0,sheamunion/phase-0,sheamunion/phase-0-unit-1,sheamunion/phase-0,sheamunion/phase-0-unit-1,sheamunion/phase-0,sheamunion/phase-0-unit-1,sheamunion/phase-0-unit-1
ruby
## Code Before: =begin # Calculate the mode Pairing Challenge # I worked on this challenge [by myself, with: ] # I spent [] hours on this challenge. # Complete each step below according to the challenge directions and # include it in this file. Also make sure everything that isn't code # is commented. # 0. Pseudo...
02cc0490e1abd7692fe12c04bb35059dcc625204
app/controllers/renalware/pathology/observations_controller.rb
app/controllers/renalware/pathology/observations_controller.rb
require_dependency "renalware/pathology" module Renalware module Pathology class ObservationsController < Pathology::BaseController before_filter :load_patient def index query = Renalware::Pathology::ArchivedResultsQuery.new(patient: @patient).call observation_descriptions = Renalwar...
require_dependency "renalware/pathology" module Renalware module Pathology class ObservationsController < Pathology::BaseController before_filter :load_patient def index query = Renalware::Pathology::ArchivedResultsQuery.new(patient: @patient).call observation_descriptions = Renalwar...
Add the observation descriptions required for this display
Add the observation descriptions required for this display Need to create a subset due to screen formatting issues
Ruby
mit
airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core
ruby
## Code Before: require_dependency "renalware/pathology" module Renalware module Pathology class ObservationsController < Pathology::BaseController before_filter :load_patient def index query = Renalware::Pathology::ArchivedResultsQuery.new(patient: @patient).call observation_descrip...
98f08fee9800d0a423aaa614cb8e3dc0a8578ed4
.travis.yml
.travis.yml
language: python python: - "2.7" # - "3.2" # - "3.3" # - "3.4" # - "3.5" # - "nightly" # currently points to 3.6-dev sudo: false notifications: email: false # Setup anaconda and install packages install: - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - bash ...
language: python python: - "2.7" # - "3.2" # - "3.3" # - "3.4" # - "3.5" # - "nightly" # currently points to 3.6-dev sudo: false notifications: email: false # Setup anaconda and install packages install: - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh - bash ...
Clone bleeding edge of pymodeler
Clone bleeding edge of pymodeler
YAML
mit
kadrlica/dmsky
yaml
## Code Before: language: python python: - "2.7" # - "3.2" # - "3.3" # - "3.4" # - "3.5" # - "nightly" # currently points to 3.6-dev sudo: false notifications: email: false # Setup anaconda and install packages install: - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O minico...
4e5e7d8e3c534a8982181b3f9cb665bcda4abb37
src/Language/Scala/Tuple.hs
src/Language/Scala/Tuple.hs
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE StaticPointers #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Language.Scala.T...
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StaticPointers #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -fno-warn...
Update sparkle to build with distributed-closure-0.4.0.
Update sparkle to build with distributed-closure-0.4.0.
Haskell
bsd-3-clause
tweag/sparkle,tweag/sparkle
haskell
## Code Before: {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE StaticPointers #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module ...
7123db0e75a7f281b7e2c69b7afc3ba39bc1815a
src/app/services/NwjsService.js
src/app/services/NwjsService.js
import { get, inject, Service } from "ember"; import nwWindow, { toggleVisibility, toggleMaximize, toggleMinimize } from "nwjs/Window"; const { service } = inject; export default Service.extend({ modal: service(), settings: service(), streaming: service(), reload() { nwWindow.reloadIgnoringCache(); }...
import { get, inject, Service } from "ember"; import nwWindow, { toggleVisibility, toggleMaximize, toggleMinimize } from "nwjs/Window"; const { service } = inject; export default Service.extend({ modal: service(), settings: service(), streaming: service(), reload() { nwWindow.reloadIgnoringCache(); }...
Fix ModalQuitDialog showing on ended streams
Fix ModalQuitDialog showing on ended streams
JavaScript
mit
bastimeyer/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,bastimeyer/livestreamer-twitch-gui,streamlink/streamlink-twitch-gui,streamlink/streamlink-twitch-gui,bastimeyer/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui,chhe/livestreamer-twitch-gui
javascript
## Code Before: import { get, inject, Service } from "ember"; import nwWindow, { toggleVisibility, toggleMaximize, toggleMinimize } from "nwjs/Window"; const { service } = inject; export default Service.extend({ modal: service(), settings: service(), streaming: service(), reload() { nwWindow.reloadIgn...
06aa4e70b9e7a53a441ac527fb83e899c47871c8
src/main/java/link/infra/simpleprocessors/ModItems.java
src/main/java/link/infra/simpleprocessors/ModItems.java
package link.infra.simpleprocessors; import link.infra.simpleprocessors.items.DuctTape; import link.infra.simpleprocessors.items.SolderingIron; import link.infra.simpleprocessors.items.processor.Processor; import link.infra.simpleprocessors.util.SPItem; import net.minecraft.creativetab.CreativeTabs; import net.minecra...
package link.infra.simpleprocessors; import link.infra.simpleprocessors.items.DuctTape; import link.infra.simpleprocessors.items.SolderingIron; import link.infra.simpleprocessors.items.processor.Processor; import link.infra.simpleprocessors.util.SPItem; import net.minecraft.creativetab.CreativeTabs; import net.minecra...
Change to meta 1 (iron) for creative tab icon
Change to meta 1 (iron) for creative tab icon
Java
mit
comp500/SimpleProcessors
java
## Code Before: package link.infra.simpleprocessors; import link.infra.simpleprocessors.items.DuctTape; import link.infra.simpleprocessors.items.SolderingIron; import link.infra.simpleprocessors.items.processor.Processor; import link.infra.simpleprocessors.util.SPItem; import net.minecraft.creativetab.CreativeTabs; im...
62adf191951949d1db6218ac6cd426624a63e5e0
packages/veritone-widgets/src/build-entry.js
packages/veritone-widgets/src/build-entry.js
export VeritoneApp from './shared/VeritoneApp'; export AppBar from './widgets/AppBar'; export OAuthLoginButton from './widgets/OAuthLoginButton';
export VeritoneApp from './shared/VeritoneApp'; export AppBar from './widgets/AppBar'; export OAuthLoginButton from './widgets/OAuthLoginButton'; export FilePicker from './widgets/FilePicker';
Add FilePicker widget to bundle
Add FilePicker widget to bundle
JavaScript
apache-2.0
veritone/veritone-sdk,veritone/veritone-sdk,veritone/veritone-sdk,veritone/veritone-sdk
javascript
## Code Before: export VeritoneApp from './shared/VeritoneApp'; export AppBar from './widgets/AppBar'; export OAuthLoginButton from './widgets/OAuthLoginButton'; ## Instruction: Add FilePicker widget to bundle ## Code After: export VeritoneApp from './shared/VeritoneApp'; export AppBar from './widgets/AppBar'; export...
1c758c8e1c54df5e0728873803d425b229f2fb14
app/scripts/lazerscripts/stage2/train_assaulter.coffee
app/scripts/lazerscripts/stage2/train_assaulter.coffee
Game = @Game Game.Scripts ||= {} class Game.Scripts.TrainAssaulter extends Game.EntityScript spawn: (options) -> dir = options.from ? 'top' switch dir when 'top' startY = .3 @endY = .6 when 'middle' startY = .5 @endY = .5 else startY = .6 @end...
Game = @Game Game.Scripts ||= {} class Game.Scripts.TrainAssaulter extends Game.EntityScript assets: -> @loadAssets('playerShip') spawn: (options) -> dir = options.from ? 'top' switch dir when 'top' startY = .3 @endY = .6 when 'middle' startY = .5 @endY = .5...
Replace player clones in tunnel
Replace player clones in tunnel
CoffeeScript
mit
matthijsgroen/game-play,matthijsgroen/game-play,matthijsgroen/game-play
coffeescript
## Code Before: Game = @Game Game.Scripts ||= {} class Game.Scripts.TrainAssaulter extends Game.EntityScript spawn: (options) -> dir = options.from ? 'top' switch dir when 'top' startY = .3 @endY = .6 when 'middle' startY = .5 @endY = .5 else startY =...
79517a22ccc7e538269835c82eabcaba66ce1cc9
open-bot.yaml
open-bot.yaml
bot: "webpack-bot" rules: - filters: open: true status: context: "continuous-integration/travis-ci/pr" state: "success" actions: label: add: "PR: CI-ok" remove: "PR: CI-not-ok" comment: identifier: "ci-result" readd: true message: |- The most important...
bot: "webpack-bot" rules: - filters: open: true status: context: "continuous-integration/travis-ci/pr" ensure: value: "{{status.state}}" equals: "success" actions: label: add: "PR: CI-ok" remove: "PR: CI-not-ok" comment: identifier: "ci-result" readd: true...
Improve bot to only read the latest PR status
Improve bot to only read the latest PR status
YAML
mit
ts-webpack/webpack,SimenB/webpack,NekR/webpack,SimenB/webpack,g0ddish/webpack,ts-webpack/webpack,webpack/webpack,ts-webpack/webpack,webpack/webpack,SimenB/webpack,ts-webpack/webpack,g0ddish/webpack,EliteScientist/webpack,webpack/webpack,SimenB/webpack,webpack/webpack,EliteScientist/webpack,NekR/webpack,g0ddish/webpack
yaml
## Code Before: bot: "webpack-bot" rules: - filters: open: true status: context: "continuous-integration/travis-ci/pr" state: "success" actions: label: add: "PR: CI-ok" remove: "PR: CI-not-ok" comment: identifier: "ci-result" readd: true message: |- Th...
1154f05a8a686b7a9ba46691a11ec496c3a502b0
ktor-core/src/org/jetbrains/ktor/routing/RoutingPath.kt
ktor-core/src/org/jetbrains/ktor/routing/RoutingPath.kt
package org.jetbrains.ktor.routing import org.jetbrains.ktor.http.* class RoutingPath private constructor(val parts: List<RoutingPathSegment>) { companion object { val root: RoutingPath = RoutingPath(listOf()) fun parse(path: String): RoutingPath { if (path == "/") return root ...
package org.jetbrains.ktor.routing import org.jetbrains.ktor.http.decodeURLPart class RoutingPath private constructor(val parts: List<RoutingPathSegment>) { companion object { val root: RoutingPath = RoutingPath(listOf()) fun parse(path: String): RoutingPath { if (path == "/") return r...
Replace size check with isNotEmpty
Replace size check with isNotEmpty
Kotlin
apache-2.0
ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor
kotlin
## Code Before: package org.jetbrains.ktor.routing import org.jetbrains.ktor.http.* class RoutingPath private constructor(val parts: List<RoutingPathSegment>) { companion object { val root: RoutingPath = RoutingPath(listOf()) fun parse(path: String): RoutingPath { if (path == "/") retu...
debca74b772a46eccf86315a80a3e73a904cd654
src/server/db/s3.js
src/server/db/s3.js
import S3 from 'aws-sdk/clients/s3'; const AWS_S3_UPLOAD_BUCKET = process.env.AWS_S3_UPLOAD_BUCKET; const s3 = new S3({ accessKeyId: process.env.AWS_S3_USER_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_S3_USER_SECRET_ACCESS_KEY, region: process.env.AWS_S3_REGION }); const s3Admin = new S3({ accessKeyId: proc...
import S3 from 'aws-sdk/clients/s3'; const AWS_S3_UPLOAD_BUCKET = process.env.AWS_S3_UPLOAD_BUCKET; const s3 = new S3({ apiVersion: '2006-03-01', accessKeyId: process.env.AWS_S3_USER_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_S3_USER_SECRET_ACCESS_KEY, region: process.env.AWS_S3_REGION }); const s3Admin = ...
Add API version to S3
[ADD] Add API version to S3
JavaScript
mit
bwyap/ptc-amazing-g-race,bwyap/ptc-amazing-g-race
javascript
## Code Before: import S3 from 'aws-sdk/clients/s3'; const AWS_S3_UPLOAD_BUCKET = process.env.AWS_S3_UPLOAD_BUCKET; const s3 = new S3({ accessKeyId: process.env.AWS_S3_USER_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_S3_USER_SECRET_ACCESS_KEY, region: process.env.AWS_S3_REGION }); const s3Admin = new S3({ a...
79541990ca5a5363d33106bf13ef1c3808f452e9
lib/versioncheck.php
lib/versioncheck.php
<?php // Show warning if a PHP version below 7.2 is used, if (version_compare(PHP_VERSION, '7.2') === -1) { http_response_code(500); echo 'This version of Nextcloud requires at least PHP 7.2<br/>'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; exit(-1); } // Show warning i...
<?php // Show warning if a PHP version below 7.2 is used, if (PHP_VERSION_ID < 70200) { http_response_code(500); echo 'This version of Nextcloud requires at least PHP 7.2<br/>'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; exit(-1); } // Show warning if > PHP 7.4 is used ...
Use PHP_VERSION_ID to check for the current php version
Use PHP_VERSION_ID to check for the current php version Signed-off-by: Daniel Kesselberg <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@danielkesselberg.de>
PHP
agpl-3.0
nextcloud/server,nextcloud/server,nextcloud/server,nextcloud/server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server,andreas-p/nextcloud-server
php
## Code Before: <?php // Show warning if a PHP version below 7.2 is used, if (version_compare(PHP_VERSION, '7.2') === -1) { http_response_code(500); echo 'This version of Nextcloud requires at least PHP 7.2<br/>'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; exit(-1); } /...
c5e307dcdea3a63f7356e578d09b4b82d7b449ed
test/type/opaque_experimental.swift
test/type/opaque_experimental.swift
// RUN: %target-typecheck-verify-swift -enable-experimental-opaque-return-types -disable-availability-checking // Tests for experimental extensions to opaque return type support. func f0() -> <T> () { } func f1() -> <T, U, V> () { } func f2() -> <T: Collection, U: SignedInteger> () { } func f4() async -> <T> () { } ...
// RUN: %target-typecheck-verify-swift -enable-experimental-opaque-return-types -disable-availability-checking // Tests for experimental extensions to opaque return type support. func f0() -> <T> () { } func f1() -> <T, U, V> () { } func f2() -> <T: Collection, U: SignedInteger> () { } func f4() async -> <T> () { } ...
Add named opaque type test cases for patterns and subscripts
Add named opaque type test cases for patterns and subscripts
Swift
apache-2.0
atrick/swift,tkremenek/swift,rudkx/swift,roambotics/swift,xwu/swift,hooman/swift,parkera/swift,parkera/swift,rudkx/swift,xwu/swift,tkremenek/swift,tkremenek/swift,atrick/swift,parkera/swift,benlangmuir/swift,JGiola/swift,xwu/swift,xwu/swift,JGiola/swift,tkremenek/swift,glessard/swift,tkremenek/swift,roambotics/swift,gr...
swift
## Code Before: // RUN: %target-typecheck-verify-swift -enable-experimental-opaque-return-types -disable-availability-checking // Tests for experimental extensions to opaque return type support. func f0() -> <T> () { } func f1() -> <T, U, V> () { } func f2() -> <T: Collection, U: SignedInteger> () { } func f4() async...
50780ff48b6761a3b5972de0bf60f8df7ec107cd
examples/index.html
examples/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <!-- For Promise & Reflect.construct --> <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script> <!-- For CustomEvent --> <script src="https://unpkg.com/@webcomponents/webcomponents-platform@1.0.0/webcomponen...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>include-fragment demo</title> </head> <body> <include-fragment src="./pull.html">Loading</include-fragment> <!-- <script src="../dist/index-umd.js"></script> --> <script src="https://unpkg.com/@github/include-fragment-element@latest"></scri...
Remove polyfills and add unpkg endpoint
Remove polyfills and add unpkg endpoint
HTML
mit
github/include-fragment-element,github/include-fragment-element
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <!-- For Promise & Reflect.construct --> <script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.2/es6-shim.min.js"></script> <!-- For CustomEvent --> <script src="https://unpkg.com/@webcomponents/webcomponents-platform@1...
82058a3111242314425764f93fb81fd5e00d9530
src/main/java/com/rewayaat/RewayaatApplication.java
src/main/java/com/rewayaat/RewayaatApplication.java
package com.rewayaat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; /** * Main entrypoint to rewayaat app. */ @EnableCaching @...
package com.rewayaat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; /** * Main entrypoint to rewayaat app. */ @EnableCaching @...
Update spring base packages scan list
Update spring base packages scan list
Java
apache-2.0
rewayaat/rewayaat,rewayaat/rewayaat,rewayaat/rewayaat,rewayaat/rewayaat
java
## Code Before: package com.rewayaat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; /** * Main entrypoint to rewayaat app. */ ...
7798699b1a5be2f501e0e346a737662432dc44a6
app/models/vote.rb
app/models/vote.rb
class Vote < ActiveRecord::Base belongs_to :votable, polymorphic: true validates :voter_id, presence: true validates :votable_type, presence: true validates :value, presence: true end
class Vote < ActiveRecord::Base belongs_to :votable, polymorphic: true validates :voter_id, presence: true validates :votable_type, presence: true validates :value, presence: true validates :votable_id, presence: true end
Add presence validation for votable_id in Vote class
Add presence validation for votable_id in Vote class
Ruby
mit
JacobCrofts/plate-overflow,JacobCrofts/plate-overflow,JacobCrofts/plate-overflow
ruby
## Code Before: class Vote < ActiveRecord::Base belongs_to :votable, polymorphic: true validates :voter_id, presence: true validates :votable_type, presence: true validates :value, presence: true end ## Instruction: Add presence validation for votable_id in Vote class ## Code After: class Vote < ActiveRecor...
43f830ddaf5d8af27f2bf8f21cc9f7bc6eba7874
lib/foodlogiq-client/audits.js
lib/foodlogiq-client/audits.js
module.exports = function(conn) { return { list: function(businessId, callback) { conn.get('/businesses/'+businessId+'/audits', callback); }, create: function(businessId, audit, callback) { conn.post('/businesses/'+businessId+'/audits', audit, callback); }, edit: function(businessId,...
module.exports = function(conn) { return { list: function(businessId, callback) { conn.get('/businesses/'+businessId+'/audits', callback); }, create: function(businessId, audit, callback) { conn.post('/businesses/'+businessId+'/audits', audit, callback); }, edit: function(businessId,...
Use database ID, not filename, to identify documents to remove
Use database ID, not filename, to identify documents to remove
JavaScript
mit
FoodLogiQ/foodlogiq-node,ventres/foodlogiq-node
javascript
## Code Before: module.exports = function(conn) { return { list: function(businessId, callback) { conn.get('/businesses/'+businessId+'/audits', callback); }, create: function(businessId, audit, callback) { conn.post('/businesses/'+businessId+'/audits', audit, callback); }, edit: func...
9e81efaf8b231fc067fc159f8aeede88c0da6776
guice/webapp/src/main/java/com/peterphi/std/guice/web/rest/templating/thymeleaf/TemplateResolverProvider.java
guice/webapp/src/main/java/com/peterphi/std/guice/web/rest/templating/thymeleaf/TemplateResolverProvider.java
package com.peterphi.std.guice.web.rest.templating.thymeleaf; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.name.Named; import com.peterphi.std.annotation.Doc; import com.peterphi.std.threading.Timeout; import org.thymeleaf.templateresolver.ITemplateResolver; import org.t...
package com.peterphi.std.guice.web.rest.templating.thymeleaf; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.name.Named; import com.peterphi.std.annotation.Doc; import com.peterphi.std.threading.Timeout; import org.thymeleaf.templateresolver.ITemplateResolver; import org.t...
Update thymeleaf.cache-ttl documentation to indicate the default value
Update thymeleaf.cache-ttl documentation to indicate the default value
Java
mit
petergeneric/stdlib,petergeneric/stdlib,petergeneric/stdlib
java
## Code Before: package com.peterphi.std.guice.web.rest.templating.thymeleaf; import com.google.inject.Inject; import com.google.inject.Provider; import com.google.inject.name.Named; import com.peterphi.std.annotation.Doc; import com.peterphi.std.threading.Timeout; import org.thymeleaf.templateresolver.ITemplateResolv...
a75e470c7d5584e161d2e5d3af251f868ffaf638
app/assets/stylesheets/sdg/goals/index.scss
app/assets/stylesheets/sdg/goals/index.scss
.sdg-goals-index { .section-header { h1 { &::before { @extend %font-icon; background: image-url("sdg.svg"); content: ""; display: inline-block; height: 1.5em; width: 1.5em; } } } .sdg-goal-list { $spacing: 1.5%; @include sdg-goal-lis...
.sdg-goals-index { .banner, .header-card, .section-header { @include full-width-background($adjust-padding: true); } .section-header { @include full-width-border(bottom, 1px solid #eee, $adjust-padding: true); h1 { &::before { @extend %font-icon; background: image-url("sdg...
Fix SDG section header and banner background
Fix SDG section header and banner background They weren't taking the full width because in the SDG index the `main` element has a padding.
SCSS
agpl-3.0
consul/consul,consul/consul,consul/consul,consul/consul,consul/consul
scss
## Code Before: .sdg-goals-index { .section-header { h1 { &::before { @extend %font-icon; background: image-url("sdg.svg"); content: ""; display: inline-block; height: 1.5em; width: 1.5em; } } } .sdg-goal-list { $spacing: 1.5%; @incl...
9e98a88c7e7b7689bd9a44e8ccb306fd7d5d965f
circle.yml
circle.yml
dependencies: cache_directories: - "~/.stack" - ".stack-work" pre: - curl -L https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-linux-x86_64.tar.gz | tar zx -C /tmp - sudo mv /tmp/stack-1.1.2-linux-x86_64/stack /usr/bin override: - stack setup - rm -fr $(stack ...
dependencies: cache_directories: - "~/.stack" - ".stack-work" pre: - curl -L https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-linux-x86_64.tar.gz | tar zx -C /tmp - sudo mv /tmp/stack-1.1.2-linux-x86_64/stack /usr/bin override: - stack setup - rm -fr $(stack ...
Add copy compiled version gziped to artifacts directory
Add copy compiled version gziped to artifacts directory
YAML
mit
diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws
yaml
## Code Before: dependencies: cache_directories: - "~/.stack" - ".stack-work" pre: - curl -L https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-linux-x86_64.tar.gz | tar zx -C /tmp - sudo mv /tmp/stack-1.1.2-linux-x86_64/stack /usr/bin override: - stack setup -...
3df6a5bcf5d4e0110ae224aa3d2cb5b83cfa979a
.travis.yml
.travis.yml
language: php php: - 5.5 - 5.4 before_install: - composer self-update - cp app/config/parameters.yml.dist app/config/parameters.yml - psql -c "CREATE USER forex_test WITH PASSWORD 'forex_test';" -U postgres - psql -c 'CREATE DATABASE forex_test;' -U postgres - psql -c 'GRANT ALL PRIVILEGES ON ...
language: php php: - 5.5 - 5.4 before_install: - composer self-update - cp app/config/parameters.yml.dist app/config/parameters.yml - psql -c "CREATE USER forex_test WITH PASSWORD 'forex_test';" -U postgres - psql -c 'CREATE DATABASE forex_test;' -U postgres - psql -c 'GRANT ALL PRIVILEGES ON ...
Split into functional and non-functional groups
Split into functional and non-functional groups
YAML
mit
ForexCashBack/forex,ForexCashBack/forex
yaml
## Code Before: language: php php: - 5.5 - 5.4 before_install: - composer self-update - cp app/config/parameters.yml.dist app/config/parameters.yml - psql -c "CREATE USER forex_test WITH PASSWORD 'forex_test';" -U postgres - psql -c 'CREATE DATABASE forex_test;' -U postgres - psql -c 'GRANT AL...
c3a04018a280b0c7e852fbc41f7a7b582c37b70f
Example/Tests/Tests.swift
Example/Tests/Tests.swift
// https://github.com/Quick/Quick import Quick import Nimble import LoginKit class LoginKitSpec: QuickSpec { override func spec() { describe("testing travis ci"){ it("failure") { expect(2) == 1 } it("success") { expect(1) == 1 ...
// https://github.com/Quick/Quick import Quick import Nimble @testable import LoginKit class LoginKitSpec: QuickSpec { override func spec() { describe("testing travis ci"){ it("failure") { expect(2) == 1 } it("success") { expect...
Improve tests for private methods testing
Improve tests for private methods testing
Swift
bsd-3-clause
TigerWolf/LoginKit,TigerWolf/LoginKit,TigerWolf/LoginKit
swift
## Code Before: // https://github.com/Quick/Quick import Quick import Nimble import LoginKit class LoginKitSpec: QuickSpec { override func spec() { describe("testing travis ci"){ it("failure") { expect(2) == 1 } it("success") { expect(1) ...
8732abeacccd2c8a125d9df1d86a257f464b7b02
templates/tests/pluginpointertest/CMakeLists.txt
templates/tests/pluginpointertest/CMakeLists.txt
cmake_minimum_required(VERSION 2.8.11) project(sometest) find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/../../corelib ) set(myplugin_headers myobject.h) set(myplugin_sources myobject.cpp...
cmake_minimum_required(VERSION 2.8.11) project(pluginpointertest) set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) set(myplugin_headers myobject.h) set(myplugin_sources myobject.cpp) add_library(myplugin SHARED ${myplugin_sources} ${_plugin_moc_srcs}) set_target_properties(myplugin PROPERTIES PREFIX "" ) ...
Fix up the plugin pointer test.
Fix up the plugin pointer test.
Text
lgpl-2.1
cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee
text
## Code Before: cmake_minimum_required(VERSION 2.8.11) project(sometest) find_package(Qt4 REQUIRED) include(${QT_USE_FILE}) set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} ) include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}/../../corelib ) set(myplugin_headers myobject.h) set(myplugin_sour...
7350e5112a37ad19fe219462056a8f7ca55fd49f
src/Genes/King_Protection_Gene.cpp
src/Genes/King_Protection_Gene.cpp
double King_Protection_Gene::score_board(const Board& board, Piece_Color perspective, size_t, double) const noexcept { auto square_count = 0; for(size_t attack_index = 0; attack_index < 16; ++attack_index) { auto step = Move::attack_direction_from_index(attack_index); for(auto square : Squ...
double King_Protection_Gene::score_board(const Board& board, Piece_Color perspective, size_t, double) const noexcept { auto square_count = 0; auto king_square = board.find_king(perspective); for(size_t attack_index = 0; attack_index < 16; ++attack_index) { auto step = Move::attack_direction_fr...
Move unchanging lookup to outside of loop
Move unchanging lookup to outside of loop
C++
mit
MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess
c++
## Code Before: double King_Protection_Gene::score_board(const Board& board, Piece_Color perspective, size_t, double) const noexcept { auto square_count = 0; for(size_t attack_index = 0; attack_index < 16; ++attack_index) { auto step = Move::attack_direction_from_index(attack_index); for(a...
d692489fabf76c53fe967b3d8339d0d9a513b3c9
_src/scss/_post.scss
_src/scss/_post.scss
// Monolith by BigSpring // Licensed under MIT Open Source // @package monolith // Styles for single post // add a default margin to a post's featured image .post-featured-image { margin-bottom: 1rem; } // alignment classes .alignleft { float: left; margin-right: 1rem; } .alignright { float: right; margin...
// Monolith by BigSpring // Licensed under MIT Open Source // @package monolith // Styles for single post // add a default margin to a post's featured image .post-featured-image { margin-bottom: 2rem; } .alignnone { //margin-bottom: 2rem; } // alignment classes .alignleft { float: none; margin: 1rem 0; } ....
Add utility classes for aligned embedded images
Add utility classes for aligned embedded images
SCSS
mit
bigspring/monolith,bigspring/monolith,bigspring/monolith
scss
## Code Before: // Monolith by BigSpring // Licensed under MIT Open Source // @package monolith // Styles for single post // add a default margin to a post's featured image .post-featured-image { margin-bottom: 1rem; } // alignment classes .alignleft { float: left; margin-right: 1rem; } .alignright { float:...
df65d75132c9f144a21e67bf1e36064adb05805b
client/head.jade
client/head.jade
head title Festival EKlore des Talents et de l'Emploi : festivaleklore.fr meta(charset="utf-8") meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no") meta(name="google-site-verification" content="p4MtkG3Oo_YOsQlGnl-zHYgkBg7nUP8vv1TeAzZ74Jk")
head title Festival EKlore des Talents et de l'Emploi : festivaleklore.fr meta(charset="utf-8") meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no") meta(name="google-site-verification" content="p4MtkG3Oo_YOsQlGnl-zHYgkBg7nUP8vv1TeAzZ74Jk") script(type="application/...
Add better referencement for google
Add better referencement for google
Jade
mit
EKlore/EKlore,EKlore/EKlore
jade
## Code Before: head title Festival EKlore des Talents et de l'Emploi : festivaleklore.fr meta(charset="utf-8") meta(name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no") meta(name="google-site-verification" content="p4MtkG3Oo_YOsQlGnl-zHYgkBg7nUP8vv1TeAzZ74Jk") ## Instru...
e2f4ae1f47aecd6576d7bb6360eb9ff262e46513
bash/aliases.sh
bash/aliases.sh
if [[ $(uname) == "Darwin" ]]; then ls_color="-G" else ls_color="--color" fi # List files and directories alias ls="ls -lh ${ls_color}" alias ll="ls -lhA ${ls_color}" # Enable colored `grep` output alias grep="grep --color=auto" # Enable aliases to be executed with sudo alias sudo="sudo " # Print current week n...
if [[ $(uname) == "Darwin" ]]; then ls_color="-G" else ls_color="--color" fi # List files and directories alias ls="ls -lh ${ls_color}" alias ll="ls -lhA ${ls_color}" # Enable colored `grep` output alias grep="grep --color=auto" # Enable aliases to be executed with sudo alias sudo="sudo " # Print current week n...
Rename alias ip to externalip
Rename alias ip to externalip
Shell
mit
keysh/dotfiles,keysh/dotfiles
shell
## Code Before: if [[ $(uname) == "Darwin" ]]; then ls_color="-G" else ls_color="--color" fi # List files and directories alias ls="ls -lh ${ls_color}" alias ll="ls -lhA ${ls_color}" # Enable colored `grep` output alias grep="grep --color=auto" # Enable aliases to be executed with sudo alias sudo="sudo " # Prin...
a7c83f6e2e2c77727088cbc7cb86bae90d8b9a43
autoload/sy/util.vim
autoload/sy/util.vim
" vim: et sw=2 sts=2 scriptencoding utf-8 " Function: #escape {{{1 function! sy#util#escape(path) abort if exists('+shellslash') let old_ssl = &shellslash set noshellslash endif let path = shellescape(a:path) if exists('old_ssl') let &shellslash = old_ssl endif return path endfunction " Fu...
" vim: et sw=2 sts=2 scriptencoding utf-8 " Function: #escape {{{1 function! sy#util#escape(path) abort if exists('+shellslash') let old_ssl = &shellslash if fnamemodify(&shell, ':t') == 'cmd.exe' set noshellslash else set shellslash endif endif let path = shellescape(a:path) if ...
Set noshellslash only for cmd.exe
Set noshellslash only for cmd.exe Thanks @Haroogan. Closes #99.
VimL
mit
mhinz/vim-signify,jamessan/vim-signify
viml
## Code Before: " vim: et sw=2 sts=2 scriptencoding utf-8 " Function: #escape {{{1 function! sy#util#escape(path) abort if exists('+shellslash') let old_ssl = &shellslash set noshellslash endif let path = shellescape(a:path) if exists('old_ssl') let &shellslash = old_ssl endif return path e...
c2f06dbfb170a6e76e9cc81c843fa4f9008e5231
js/pages/concept-sets/routes.js
js/pages/concept-sets/routes.js
define( (require, factory) => { const { AuthorizedRoute } = require('pages/Route'); function routes(appModel, router) { const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => { appModel.activePage(this.title); require(['./conceptset-manager', 'component...
define( (require, factory) => { const { AuthorizedRoute } = require('pages/Route'); function routes(appModel, router) { const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => { appModel.activePage(this.title); require(['./conceptset-manager', 'component...
Remove redundant call to resolveConceptSetExpression
Remove redundant call to resolveConceptSetExpression
JavaScript
apache-2.0
anthonysena/Atlas,OHDSI/Atlas,OHDSI/Atlas,anthonysena/Atlas,OHDSI/Atlas,OHDSI/Atlas
javascript
## Code Before: define( (require, factory) => { const { AuthorizedRoute } = require('pages/Route'); function routes(appModel, router) { const detailsRoute = new AuthorizedRoute((conceptSetId, mode = 'conceptset-expression') => { appModel.activePage(this.title); require(['./conceptset-mana...
bcaded91d17f9ac4a1b485e8f9b1561f33dfa31a
assets/etag_test.go
assets/etag_test.go
package assets import ( "testing" "time" . "github.com/smartystreets/goconvey/convey" ) func TestMain(t *testing.T) { Convey("ETags generated on startup", t, func() { So(etags, ShouldHaveLength, len(_bindata)) tag, err := GetAssetETag("path/doesnt/exist") So(tag, ShouldBeEmpty) So(err, ShouldEqual, ErrE...
package assets import ( "os" "testing" "time" . "github.com/smartystreets/goconvey/convey" ) type testBindataFileInfo struct { name string size int64 mode os.FileMode modTime time.Time } func (fi testBindataFileInfo) Name() string { return fi.name } func (fi testBindataFileInfo) Size() int64 { re...
Fix assets test for debug version generated files
Fix assets test for debug version generated files
Go
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
go
## Code Before: package assets import ( "testing" "time" . "github.com/smartystreets/goconvey/convey" ) func TestMain(t *testing.T) { Convey("ETags generated on startup", t, func() { So(etags, ShouldHaveLength, len(_bindata)) tag, err := GetAssetETag("path/doesnt/exist") So(tag, ShouldBeEmpty) So(err, S...
64d5f167d54091ff9f7da9d2bcf88ccd699a52d4
CHANGELOG.md
CHANGELOG.md
- Fix npm dependencies ## 0.1.0 - Initial release
- Reduce jaggedness from thin segments ## 0.1.1 - Fix npm dependencies ## 0.1.0 - Initial release
Add thin slice jagged fix to changelog
Add thin slice jagged fix to changelog
Markdown
mit
dpastoor/react-simple-pie-chart,tudorilisoi/react-simple-pie-chart,brigade/react-simple-pie-chart
markdown
## Code Before: - Fix npm dependencies ## 0.1.0 - Initial release ## Instruction: Add thin slice jagged fix to changelog ## Code After: - Reduce jaggedness from thin segments ## 0.1.1 - Fix npm dependencies ## 0.1.0 - Initial release
1636cf91cd66ab4cae55854b25f45b1b77151c88
src/idx.h
src/idx.h
typedef struct { unsigned char header[4]; int length; unsigned char *data; } IDX1_DATA ; typedef struct { unsigned char header[4]; int nimages; int nrows; int ncols; unsigned char *data; } IDX3_DATA ; int fread_idx1_file( char *slabelfname, IDX1_DATA *idxdata); #endif /* __IDX_H_ENTRY_H__ *...
typedef struct { unsigned char header[4]; int length; unsigned char *data; } IDX1_DATA ; typedef struct { unsigned char header[4]; int nimages; int nrows; int ncols; int length; unsigned char *data; } IDX3_DATA ; int fread_idx1_file( char *slabelfname, IDX1_DATA *idxdata); #endif /* __ID...
Add a length field to the IDX3_DATA structure.
Add a length field to the IDX3_DATA structure.
C
mit
spytheman/MNIST-idx1-and-idx3-file-readers
c
## Code Before: typedef struct { unsigned char header[4]; int length; unsigned char *data; } IDX1_DATA ; typedef struct { unsigned char header[4]; int nimages; int nrows; int ncols; unsigned char *data; } IDX3_DATA ; int fread_idx1_file( char *slabelfname, IDX1_DATA *idxdata); #endif /* __I...
3f034fd3146ad0e462a87ddda944c240f44947bc
technologies/index.html
technologies/index.html
--- layout: default title: Technologies description: Technologies that I have used --- <table class="table table-striped"> <thead> <tr> <th>Category</th> <th>Particulars</th> </tr> </thead> <tbody> {% for technology in site.data.technologies %} <tr> ...
--- layout: default title: Technologies description: Technologies that I have used --- <table class="table table-striped"> <thead> <tr> <th>Category</th> <th>Particulars</th> </tr> </thead> <tbody> {% for technology in site.data.technologies %} <tr> ...
Remove theme color on the below text
Remove theme color on the below text
HTML
mit
dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io,dhilipsiva/dhilipsiva.github.io
html
## Code Before: --- layout: default title: Technologies description: Technologies that I have used --- <table class="table table-striped"> <thead> <tr> <th>Category</th> <th>Particulars</th> </tr> </thead> <tbody> {% for technology in site.data.technologies %}...