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
6e2d16315b294ff8e5773c16c1007cd205818974
README.md
README.md
A PHP client for Camo - the SSL image proxy. [![Build Status](https://travis-ci.org/willwashburn/CamoClient.svg)](https://travis-ci.org/willwashburn/CamoClient) [![Latest Stable Version](https://poser.pugx.org/willwashburn/camo/v/stable.svg)](https://packagist.org/packages/willwashburn/camo) [![Total Downloads](https://poser.pugx.org/willwashburn/camo/downloads.svg)](https://packagist.org/packages/willwashburn/camo) [![License](https://poser.pugx.org/willwashburn/camo/license.svg)](https://packagist.org/packages/willwashburn/camo) For more infomration about Camo, please see the [atmos/camo] (https://github.com/atmos/camohttps://github.com/atmos/camo) repository. ## Installation ```composer require willwashburn/camo``` Alternatively, add ```"willwashburn/camo": "0.0.1"``` to your composer.json ## Usage ```PHP $camo = new WillWashburn\Camo\Client(); $camo->setDomain('YOUR_CAMO_DOMAIN'); $camo->setCamoKey('YOUR_CAMO_KEY'); $camo->proxy($url); // returns the proxy url ```
[![Build Status](https://travis-ci.org/willwashburn/CamoClient.svg)](https://travis-ci.org/willwashburn/CamoClient) [![Latest Stable Version](https://poser.pugx.org/willwashburn/camo/v/stable.svg)](https://packagist.org/packages/willwashburn/camo) [![Total Downloads](https://poser.pugx.org/willwashburn/camo/downloads.svg)](https://packagist.org/packages/willwashburn/camo) [![License](https://poser.pugx.org/willwashburn/camo/license.svg)](https://packagist.org/packages/willwashburn/camo) A PHP client for Camo - the SSL image proxy. For more infomration about Camo, please see the [atmos/camo] (https://github.com/atmos/camo) repository. ## Installation ```composer require willwashburn/camo``` Alternatively, add ```"willwashburn/camo": "0.0.1"``` to your composer.json ## Usage ```PHP $camo = new WillWashburn\Camo\Client(); $camo->setDomain('YOUR_CAMO_DOMAIN'); $camo->setCamoKey('YOUR_CAMO_KEY'); $camo->proxy($url); // returns the proxy url ```
Fix link to camo library
Fix link to camo library
Markdown
mit
willwashburn/phpamo
markdown
## Code Before: A PHP client for Camo - the SSL image proxy. [![Build Status](https://travis-ci.org/willwashburn/CamoClient.svg)](https://travis-ci.org/willwashburn/CamoClient) [![Latest Stable Version](https://poser.pugx.org/willwashburn/camo/v/stable.svg)](https://packagist.org/packages/willwashburn/camo) [![Total Downloads](https://poser.pugx.org/willwashburn/camo/downloads.svg)](https://packagist.org/packages/willwashburn/camo) [![License](https://poser.pugx.org/willwashburn/camo/license.svg)](https://packagist.org/packages/willwashburn/camo) For more infomration about Camo, please see the [atmos/camo] (https://github.com/atmos/camohttps://github.com/atmos/camo) repository. ## Installation ```composer require willwashburn/camo``` Alternatively, add ```"willwashburn/camo": "0.0.1"``` to your composer.json ## Usage ```PHP $camo = new WillWashburn\Camo\Client(); $camo->setDomain('YOUR_CAMO_DOMAIN'); $camo->setCamoKey('YOUR_CAMO_KEY'); $camo->proxy($url); // returns the proxy url ``` ## Instruction: Fix link to camo library ## Code After: [![Build Status](https://travis-ci.org/willwashburn/CamoClient.svg)](https://travis-ci.org/willwashburn/CamoClient) [![Latest Stable Version](https://poser.pugx.org/willwashburn/camo/v/stable.svg)](https://packagist.org/packages/willwashburn/camo) [![Total Downloads](https://poser.pugx.org/willwashburn/camo/downloads.svg)](https://packagist.org/packages/willwashburn/camo) [![License](https://poser.pugx.org/willwashburn/camo/license.svg)](https://packagist.org/packages/willwashburn/camo) A PHP client for Camo - the SSL image proxy. For more infomration about Camo, please see the [atmos/camo] (https://github.com/atmos/camo) repository. ## Installation ```composer require willwashburn/camo``` Alternatively, add ```"willwashburn/camo": "0.0.1"``` to your composer.json ## Usage ```PHP $camo = new WillWashburn\Camo\Client(); $camo->setDomain('YOUR_CAMO_DOMAIN'); $camo->setCamoKey('YOUR_CAMO_KEY'); $camo->proxy($url); // returns the proxy url ```
e103d80bcd9da220065bd891abcaba34f22c4919
static/js/disclaimer/common.js
static/js/disclaimer/common.js
/*! * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ const disagreedRedirectLink = "https://google.com"; $(document).ready(function () { let oDisclaimer = new Disclaimer(); if (!oDisclaimer.isAccepted()) { oDisclaimer.centerDialog(); oDisclaimer.loadDialog(); } document.getElementById('agree-over18').onclick = function () { oDisclaimer.disableDialog(); oDisclaimer.setAccepted(); }; document.getElementById('disagree-under18').onclick = function () { location.href = disagreedRedirectLink } });
/*! * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ const disagreedRedirectLink = "https://google.com"; // <= URL to show when the visitor is likely to be under 18yrs $(document).ready(function () { const oDisclaimer = new Disclaimer(); if (!oDisclaimer.isAccepted()) { oDisclaimer.loadDialog(); oDisclaimer.centerDialog(); } document.getElementById('agree-over18').onclick = function () { oDisclaimer.disableDialog(); oDisclaimer.setAccepted(); }; document.getElementById('disagree-under18').onclick = function () { location.href = disagreedRedirectLink } });
Use const keyword for object var
Use const keyword for object var
JavaScript
mit
pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS,pH7Software/pH7-Social-Dating-CMS
javascript
## Code Before: /*! * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ const disagreedRedirectLink = "https://google.com"; $(document).ready(function () { let oDisclaimer = new Disclaimer(); if (!oDisclaimer.isAccepted()) { oDisclaimer.centerDialog(); oDisclaimer.loadDialog(); } document.getElementById('agree-over18').onclick = function () { oDisclaimer.disableDialog(); oDisclaimer.setAccepted(); }; document.getElementById('disagree-under18').onclick = function () { location.href = disagreedRedirectLink } }); ## Instruction: Use const keyword for object var ## Code After: /*! * Author: Pierre-Henry Soria <hello@ph7cms.com> * Copyright: (c) 2020, Pierre-Henry Soria. All Rights Reserved. * License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. */ const disagreedRedirectLink = "https://google.com"; // <= URL to show when the visitor is likely to be under 18yrs $(document).ready(function () { const oDisclaimer = new Disclaimer(); if (!oDisclaimer.isAccepted()) { oDisclaimer.loadDialog(); oDisclaimer.centerDialog(); } document.getElementById('agree-over18').onclick = function () { oDisclaimer.disableDialog(); oDisclaimer.setAccepted(); }; document.getElementById('disagree-under18').onclick = function () { location.href = disagreedRedirectLink } });
b2d9b56ceb96718d1f3edc8ec019ca7218e33e7d
src/rnaseq_lib/math/__init__.py
src/rnaseq_lib/math/__init__.py
import numpy as np # Outlier def iqr_bounds(ys): """ Return upper and lower bound for an array of values Lower bound: Q1 - (IQR * 1.5) Upper bound: Q3 + (IQR * 1.5) :param list ys: List of values to calculate IQR :return: Upper and lower bound :rtype: tuple(float, float) """ quartile_1, quartile_3 = np.percentile(ys, [25, 75]) iqr = quartile_3 - quartile_1 lower_bound = quartile_1 - (iqr * 1.5) upper_bound = quartile_3 + (iqr * 1.5) return upper_bound, lower_bound # Normalization def min_max_normalize(df): return (df - df.min()) / (df.max() - df.min()) def mean_normalize(df): return (df - df.mean()) / df.std() def l2norm(x, pad=0.001): """ Log2 normalization function :param float x: Input value :param int|float pad: Pad value (to handle zeros) :return: log2(x+1) normalized value :rtype: float """ return np.log2(x + pad)
import numpy as np # Outlier def iqr_bounds(ys): """ Return upper and lower bound for an array of values Lower bound: Q1 - (IQR * 1.5) Upper bound: Q3 + (IQR * 1.5) :param list ys: List of values to calculate IQR :return: Upper and lower bound :rtype: tuple(float, float) """ quartile_1, quartile_3 = np.percentile(ys, [25, 75]) iqr = quartile_3 - quartile_1 lower_bound = quartile_1 - (iqr * 1.5) upper_bound = quartile_3 + (iqr * 1.5) return upper_bound, lower_bound # Normalization def min_max_normalize(df): return (df - df.min()) / (df.max() - df.min()) def mean_normalize(df): return (df - df.mean()) / df.std() def softmax(df): """ Normalizes columns to sum to 1 :param pd.DataFrame df: Dataframe to normalize :return: Normalized DataFrame :rtype: pd.DataFrame """ return df.divide(df.sum()) def l2norm(x, pad=0.001): """ Log2 normalization function :param float x: Input value :param int|float pad: Pad value (to handle zeros) :return: log2(x+1) normalized value :rtype: float """ return np.log2(x + pad)
Add docstring for softmax normalization function
Add docstring for softmax normalization function
Python
mit
jvivian/rnaseq-lib,jvivian/rnaseq-lib
python
## Code Before: import numpy as np # Outlier def iqr_bounds(ys): """ Return upper and lower bound for an array of values Lower bound: Q1 - (IQR * 1.5) Upper bound: Q3 + (IQR * 1.5) :param list ys: List of values to calculate IQR :return: Upper and lower bound :rtype: tuple(float, float) """ quartile_1, quartile_3 = np.percentile(ys, [25, 75]) iqr = quartile_3 - quartile_1 lower_bound = quartile_1 - (iqr * 1.5) upper_bound = quartile_3 + (iqr * 1.5) return upper_bound, lower_bound # Normalization def min_max_normalize(df): return (df - df.min()) / (df.max() - df.min()) def mean_normalize(df): return (df - df.mean()) / df.std() def l2norm(x, pad=0.001): """ Log2 normalization function :param float x: Input value :param int|float pad: Pad value (to handle zeros) :return: log2(x+1) normalized value :rtype: float """ return np.log2(x + pad) ## Instruction: Add docstring for softmax normalization function ## Code After: import numpy as np # Outlier def iqr_bounds(ys): """ Return upper and lower bound for an array of values Lower bound: Q1 - (IQR * 1.5) Upper bound: Q3 + (IQR * 1.5) :param list ys: List of values to calculate IQR :return: Upper and lower bound :rtype: tuple(float, float) """ quartile_1, quartile_3 = np.percentile(ys, [25, 75]) iqr = quartile_3 - quartile_1 lower_bound = quartile_1 - (iqr * 1.5) upper_bound = quartile_3 + (iqr * 1.5) return upper_bound, lower_bound # Normalization def min_max_normalize(df): return (df - df.min()) / (df.max() - df.min()) def mean_normalize(df): return (df - df.mean()) / df.std() def softmax(df): """ Normalizes columns to sum to 1 :param pd.DataFrame df: Dataframe to normalize :return: Normalized DataFrame :rtype: pd.DataFrame """ return df.divide(df.sum()) def l2norm(x, pad=0.001): """ Log2 normalization function :param float x: Input value :param int|float pad: Pad value (to handle zeros) :return: log2(x+1) normalized value :rtype: float """ return np.log2(x + pad)
8dd74597a0ae1947290619ff03e5fc9f9d33db33
README.md
README.md
cpm-google-test =============== CPM external for google test
cpm-google-test =============== [![Build Status](https://travis-ci.org/iauns/cpm-google-test.png)](https://travis-ci.org/iauns/cpm-google-test) CPM external for google test. Use --- ```c++ #include "gtest/gtest.h" ```
Update readme with travis hook and use clause.
Update readme with travis hook and use clause.
Markdown
mit
iauns/cpm-google-test,iauns/cpm-google-test
markdown
## Code Before: cpm-google-test =============== CPM external for google test ## Instruction: Update readme with travis hook and use clause. ## Code After: cpm-google-test =============== [![Build Status](https://travis-ci.org/iauns/cpm-google-test.png)](https://travis-ci.org/iauns/cpm-google-test) CPM external for google test. Use --- ```c++ #include "gtest/gtest.h" ```
ba2f79369cafaafb748c4cc8be758615bd295d7b
README.md
README.md
[![Join the chat at https://gitter.im/realjs/algorithms.js](https://badges.gitter.im/realjs/algorithms.js.svg)](https://gitter.im/realjs/algorithms.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Algorithm.JS is a Javascript library providing full implementation of most Computer Science algorithms and data structures.
[![Build Status](https://travis-ci.org/realjs/algorithms.js.svg?branch=master)](https://travis-ci.org/realjs/algorithms.js) [![Join the chat at https://gitter.im/realjs/algorithms.js](https://badges.gitter.im/realjs/algorithms.js.svg)](https://gitter.im/realjs/algorithms.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Algorithm.JS is a Javascript library providing full implementation of most Computer Science algorithms and data structures.
Add travis CI status image
Add travis CI status image
Markdown
mit
realjs/algorithms.js
markdown
## Code Before: [![Join the chat at https://gitter.im/realjs/algorithms.js](https://badges.gitter.im/realjs/algorithms.js.svg)](https://gitter.im/realjs/algorithms.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Algorithm.JS is a Javascript library providing full implementation of most Computer Science algorithms and data structures. ## Instruction: Add travis CI status image ## Code After: [![Build Status](https://travis-ci.org/realjs/algorithms.js.svg?branch=master)](https://travis-ci.org/realjs/algorithms.js) [![Join the chat at https://gitter.im/realjs/algorithms.js](https://badges.gitter.im/realjs/algorithms.js.svg)](https://gitter.im/realjs/algorithms.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Algorithm.JS is a Javascript library providing full implementation of most Computer Science algorithms and data structures.
afa8074ccfc405d91803f946d4dcc878886620d0
WebDriverAgentLib/Utilities/FBConfiguration.h
WebDriverAgentLib/Utilities/FBConfiguration.h
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Accessors for Global Constants. */ @interface FBConfiguration : NSObject /*! If set to YES will ask TestManagerDaemon for element visibility */ @property (class, nonatomic, assign) BOOL shouldUseTestManagerForVisibilityDetection; /* The maximum typing frequency for all typing activities */ @property (class, nonatomic, assign) NSUInteger maxTypingFrequency; /** Switch for enabling/disabling reporting fake collection view cells by Accessibility framework. If set to YES it will report also invisible cells. */ + (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells; /** The range of ports that the HTTP Server should attempt to bind on launch */ + (NSRange)bindingPortRange; /** YES if verbose logging is enabled. NO otherwise. */ + (BOOL)verboseLoggingEnabled; @end NS_ASSUME_NONNULL_END
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Accessors for Global Constants. */ @interface FBConfiguration : NSObject /*! If set to YES will ask TestManagerDaemon for element visibility */ + (void)setShouldUseTestManagerForVisibilityDetection:(BOOL)value; + (BOOL)shouldUseTestManagerForVisibilityDetection; /* The maximum typing frequency for all typing activities */ + (void)setMaxTypingFrequency:(NSUInteger)value; + (NSUInteger)maxTypingFrequency; /** Switch for enabling/disabling reporting fake collection view cells by Accessibility framework. If set to YES it will report also invisible cells. */ + (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells; /** The range of ports that the HTTP Server should attempt to bind on launch */ + (NSRange)bindingPortRange; /** YES if verbose logging is enabled. NO otherwise. */ + (BOOL)verboseLoggingEnabled; @end NS_ASSUME_NONNULL_END
Switch from class property to methods
Switch from class property to methods Summary: Some recent changes use class properties, which break building with Xcode 7. This exposes the same API without the new syntax. Closes https://github.com/facebook/WebDriverAgent/pull/539 Differential Revision: D4880364 Pulled By: marekcirkos fbshipit-source-id: dace4b2413cb8c52dd0783da03f216da8a26fc97
C
bsd-3-clause
PiranhaTeam/WebDriverAgent,ymin/WebDriverAgent,PiranhaTeam/WebDriverAgent,PiranhaTeam/WebDriverAgent,ymin/WebDriverAgent,ymin/WebDriverAgent,PiranhaTeam/WebDriverAgent,ymin/WebDriverAgent,PiranhaTeam/WebDriverAgent
c
## Code Before: /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Accessors for Global Constants. */ @interface FBConfiguration : NSObject /*! If set to YES will ask TestManagerDaemon for element visibility */ @property (class, nonatomic, assign) BOOL shouldUseTestManagerForVisibilityDetection; /* The maximum typing frequency for all typing activities */ @property (class, nonatomic, assign) NSUInteger maxTypingFrequency; /** Switch for enabling/disabling reporting fake collection view cells by Accessibility framework. If set to YES it will report also invisible cells. */ + (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells; /** The range of ports that the HTTP Server should attempt to bind on launch */ + (NSRange)bindingPortRange; /** YES if verbose logging is enabled. NO otherwise. */ + (BOOL)verboseLoggingEnabled; @end NS_ASSUME_NONNULL_END ## Instruction: Switch from class property to methods Summary: Some recent changes use class properties, which break building with Xcode 7. This exposes the same API without the new syntax. Closes https://github.com/facebook/WebDriverAgent/pull/539 Differential Revision: D4880364 Pulled By: marekcirkos fbshipit-source-id: dace4b2413cb8c52dd0783da03f216da8a26fc97 ## Code After: /** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** Accessors for Global Constants. */ @interface FBConfiguration : NSObject /*! If set to YES will ask TestManagerDaemon for element visibility */ + (void)setShouldUseTestManagerForVisibilityDetection:(BOOL)value; + (BOOL)shouldUseTestManagerForVisibilityDetection; /* The maximum typing frequency for all typing activities */ + (void)setMaxTypingFrequency:(NSUInteger)value; + (NSUInteger)maxTypingFrequency; /** Switch for enabling/disabling reporting fake collection view cells by Accessibility framework. If set to YES it will report also invisible cells. */ + (void)shouldShowFakeCollectionViewCells:(BOOL)showFakeCells; /** The range of ports that the HTTP Server should attempt to bind on launch */ + (NSRange)bindingPortRange; /** YES if verbose logging is enabled. NO otherwise. */ + (BOOL)verboseLoggingEnabled; @end NS_ASSUME_NONNULL_END
08c84d3e92636445f8ddc6f507d0d3020935ecf2
src/lib.rs
src/lib.rs
pub extern crate fiz_math as math; mod test{ #[allow(unused_imports)] use super::math; #[test] fn crate_names() { assert!(math::equal(1.0, 1.0)); } }
pub extern crate fiz_math as math; mod test{ #[allow(unused_imports)] use super::math::Float; #[test] fn crate_names() { assert!(1.0.equal(1.0)); } }
Update to most recent math API changes.
Update to most recent math API changes.
Rust
bsd-3-clause
fiz3d/fiz
rust
## Code Before: pub extern crate fiz_math as math; mod test{ #[allow(unused_imports)] use super::math; #[test] fn crate_names() { assert!(math::equal(1.0, 1.0)); } } ## Instruction: Update to most recent math API changes. ## Code After: pub extern crate fiz_math as math; mod test{ #[allow(unused_imports)] use super::math::Float; #[test] fn crate_names() { assert!(1.0.equal(1.0)); } }
c1db8dbf24dd935e780e5734c372c607f0ad7e16
requirements.txt
requirements.txt
cherrypy >= 3.3.0, < 3.4 decorator >= 3.4.0, < 3.5 netifaces >= 0.10.4, < 0.11 numpy >= 1.9.1, < 1.10 # pyopencv 3.0.0 is in beta and not released to PyPI as of 2015-01-15, so # you'll need to install it manually #pyopencv >= 3.0.0 pyserial >= 2.7.0, < 2.8 ws4py >= 0.3.4, < 0.4
-e git://github.com/bskari/RPIO#egg=RPIO cherrypy >= 3.3.0, < 3.4 decorator >= 3.4.0, < 3.5 netifaces >= 0.10.4, < 0.11 numpy >= 1.9.1, < 1.10 # pyopencv 3.0.0 is in beta and not released to PyPI as of 2015-01-15, so # you'll need to install it manually #pyopencv >= 3.0.0 pyserial >= 2.7.0, < 2.8 ws4py >= 0.3.4, < 0.4
Change RPIO installation to my repo from GitHub
Change RPIO installation to my repo from GitHub
Text
mit
bskari/sparkfun-avc,bskari/sparkfun-avc,bskari/sparkfun-avc,bskari/sparkfun-avc,bskari/sparkfun-avc,bskari/sparkfun-avc
text
## Code Before: cherrypy >= 3.3.0, < 3.4 decorator >= 3.4.0, < 3.5 netifaces >= 0.10.4, < 0.11 numpy >= 1.9.1, < 1.10 # pyopencv 3.0.0 is in beta and not released to PyPI as of 2015-01-15, so # you'll need to install it manually #pyopencv >= 3.0.0 pyserial >= 2.7.0, < 2.8 ws4py >= 0.3.4, < 0.4 ## Instruction: Change RPIO installation to my repo from GitHub ## Code After: -e git://github.com/bskari/RPIO#egg=RPIO cherrypy >= 3.3.0, < 3.4 decorator >= 3.4.0, < 3.5 netifaces >= 0.10.4, < 0.11 numpy >= 1.9.1, < 1.10 # pyopencv 3.0.0 is in beta and not released to PyPI as of 2015-01-15, so # you'll need to install it manually #pyopencv >= 3.0.0 pyserial >= 2.7.0, < 2.8 ws4py >= 0.3.4, < 0.4
289ea87e20553a9d9b6ac6722d8374c1b8eaae13
script/ci_install_deps.sh
script/ci_install_deps.sh
set -ex BUILD_DIR=${TRAVIS_BUILD_DIR} mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}" #--- GTest if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]] then git clone --depth=1 -b master https://github.com/google/googletest googletest fi cd googletest if [[ "${CXX}" == clang* ]] then BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/include/libcxxabi" echo "*** Searching for cxxabi.h ***" find /usr/ -type f -name "cxxabi.h" fi mkdir -p build-${CC} && cd build-${CC} cmake ${BUILD_FLAGS} .. make -j4 sudo make install cd ${BUILD_DIR}
set -ex BUILD_DIR=${TRAVIS_BUILD_DIR} mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}" #--- GTest if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]] then git clone --depth=1 -b master https://github.com/google/googletest googletest fi cd googletest if [[ "${CXX}" == clang* ]] then BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/local/clang-3.9.0/include/c++/v1/" echo "*** Searching for cxxabi.h ***" find /usr/ -type f -name "cxxabi.h" fi mkdir -p build-${CC} && cd build-${CC} cmake ${BUILD_FLAGS} .. make -j4 sudo make install cd ${BUILD_DIR}
Add some Clang cxxabi.h include path.
Add some Clang cxxabi.h include path.
Shell
mit
offa/danek,offa/danek
shell
## Code Before: set -ex BUILD_DIR=${TRAVIS_BUILD_DIR} mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}" #--- GTest if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]] then git clone --depth=1 -b master https://github.com/google/googletest googletest fi cd googletest if [[ "${CXX}" == clang* ]] then BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/include/libcxxabi" echo "*** Searching for cxxabi.h ***" find /usr/ -type f -name "cxxabi.h" fi mkdir -p build-${CC} && cd build-${CC} cmake ${BUILD_FLAGS} .. make -j4 sudo make install cd ${BUILD_DIR} ## Instruction: Add some Clang cxxabi.h include path. ## Code After: set -ex BUILD_DIR=${TRAVIS_BUILD_DIR} mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}" #--- GTest if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]] then git clone --depth=1 -b master https://github.com/google/googletest googletest fi cd googletest if [[ "${CXX}" == clang* ]] then BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/local/clang-3.9.0/include/c++/v1/" echo "*** Searching for cxxabi.h ***" find /usr/ -type f -name "cxxabi.h" fi mkdir -p build-${CC} && cd build-${CC} cmake ${BUILD_FLAGS} .. make -j4 sudo make install cd ${BUILD_DIR}
e20f9559645c6ee8910de4fb27c911dd7f6d140c
.travis.yml
.travis.yml
langauge: python python: 3.5 env: - TOX_ENV=py27 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=py35 - TOX_ENV=lint sudo: required install: sudo pip install tox script: tox -e $TOX_ENV
langauge: python notifications: email: false python: 3.5 env: - TOX_ENV=py27 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=py35 - TOX_ENV=lint sudo: required install: sudo pip install tox script: tox -e $TOX_ENV
Stop with the email notifications.
Stop with the email notifications.
YAML
mit
YPlan/treepoem
yaml
## Code Before: langauge: python python: 3.5 env: - TOX_ENV=py27 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=py35 - TOX_ENV=lint sudo: required install: sudo pip install tox script: tox -e $TOX_ENV ## Instruction: Stop with the email notifications. ## Code After: langauge: python notifications: email: false python: 3.5 env: - TOX_ENV=py27 - TOX_ENV=py33 - TOX_ENV=py34 - TOX_ENV=py35 - TOX_ENV=lint sudo: required install: sudo pip install tox script: tox -e $TOX_ENV
748d0e1dc897b7103c7c1b057751cbc5ae99c6bf
tests/Unit/MessagePackResponseTest.php
tests/Unit/MessagePackResponseTest.php
<?php use Symfony\Component\HttpFoundation\Response; use App\Http\Response\MessagePackResponse; class MessagePackResponseTest extends TestCase { /** * Message pack response * * @var \App\Http\Response\MessagePackResponse */ protected $response; /** * setUp * * @return void */ public function setUp() { $this->response = new MessagePackResponse([ 'hello' => 'lumtify' ]); } /** * Test Extends Response * * @return void */ public function testExtendsResponse() { $this->assertTrue($this->response instanceof Response); } /** * Test setData. * * @return void */ public function testSetData() { $data = $this->response->setData([ 'a' => 'ha' ]); $this->assertEquals($data, $this->response->getContent()->content); } /** * Test getData. * * @return void */ public function testGetData() { $data = $this->response->getData(); $this->assertEquals([ 'hello' => 'lumtify' ], $data); } }
<?php use Symfony\Component\HttpFoundation\Response; use App\Http\Response\MessagePackResponse; class MessagePackResponseTest extends TestCase { /** * Message pack response * * @var \App\Http\Response\MessagePackResponse */ protected $response; /** * setUp * * @return void */ public function setUp() { $this->response = new MessagePackResponse([ 'hello' => 'lumtify' ]); } /** * Test Extends Response * * @return void */ public function testExtendsResponse() { $this->assertTrue($this->response instanceof Response); } /** * Test setData. * * @return void */ public function testSetData() { $origin = $this->response->getContent(); $data = $this->response->setData([ 'a' => 'ha' ]); $this->assertNotEquals($data->getContent(), $origin); } /** * Test getData. * * @return void */ public function testGetData() { $data = $this->response->getData(); $this->assertEquals([ 'hello' => 'lumtify' ], $data); } }
Change setData test Let setData assert not equals to origin content.
Change setData test Let setData assert not equals to origin content.
PHP
mit
sc0Vu/lumtify,sc0Vu/lumtify,sc0Vu/lumtify
php
## Code Before: <?php use Symfony\Component\HttpFoundation\Response; use App\Http\Response\MessagePackResponse; class MessagePackResponseTest extends TestCase { /** * Message pack response * * @var \App\Http\Response\MessagePackResponse */ protected $response; /** * setUp * * @return void */ public function setUp() { $this->response = new MessagePackResponse([ 'hello' => 'lumtify' ]); } /** * Test Extends Response * * @return void */ public function testExtendsResponse() { $this->assertTrue($this->response instanceof Response); } /** * Test setData. * * @return void */ public function testSetData() { $data = $this->response->setData([ 'a' => 'ha' ]); $this->assertEquals($data, $this->response->getContent()->content); } /** * Test getData. * * @return void */ public function testGetData() { $data = $this->response->getData(); $this->assertEquals([ 'hello' => 'lumtify' ], $data); } } ## Instruction: Change setData test Let setData assert not equals to origin content. ## Code After: <?php use Symfony\Component\HttpFoundation\Response; use App\Http\Response\MessagePackResponse; class MessagePackResponseTest extends TestCase { /** * Message pack response * * @var \App\Http\Response\MessagePackResponse */ protected $response; /** * setUp * * @return void */ public function setUp() { $this->response = new MessagePackResponse([ 'hello' => 'lumtify' ]); } /** * Test Extends Response * * @return void */ public function testExtendsResponse() { $this->assertTrue($this->response instanceof Response); } /** * Test setData. * * @return void */ public function testSetData() { $origin = $this->response->getContent(); $data = $this->response->setData([ 'a' => 'ha' ]); $this->assertNotEquals($data->getContent(), $origin); } /** * Test getData. * * @return void */ public function testGetData() { $data = $this->response->getData(); $this->assertEquals([ 'hello' => 'lumtify' ], $data); } }
ce43fb2953d118bcae95d2afc87846ecaaa3e571
scripts/k8s-worker-gpu.sh
scripts/k8s-worker-gpu.sh
: ${TOKEN:=$1} : ${K8S_HOSTIP:=$2} : ${NVIDIA_VERSION:=375} ./network.sh ./docker.sh ./k8s-packages.sh wget --directory-prefix=/tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb sudo ln -s /var/lib/nvidia-docker/volumes/nvidia_driver/* /usr/local/lib/nvidia NVIDIA_GPU_NAME=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader --id=0) cat <<EOF | sudo tee /etc/systemd/system/kubelet.service.d/override.conf > /dev/null [Service] Environment="KUBELET_EXTRA_ARGS=--feature-gates='Accelerators=true' --node-labels='alpha.kubernetes.io/nvidia-gpu-name=$NVIDIA_GPU_NAME'" EOF # Join K8S Master sudo kubeadm reset # Workaround for https://github.com/kubernetes/kubeadm/issues/1 sudo kubeadm join --token $TOKEN $K8S_HOSTIP
: ${TOKEN:=$1} : ${K8S_HOSTIP:=$2} : ${NVIDIA_VERSION:=375} ./network.sh ./docker.sh ./k8s-packages.sh wget --directory-prefix=/tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb sudo ln -s /usr/lib/nvidia-$NVIDIA_VERSION /usr/local/lib/nvidia sudo cp /usr/lib/x86_64-linux-gnu/libcuda* /usr/local/lib/nvidia NVIDIA_GPU_NAME=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader --id=0) cat <<EOF | sudo tee /etc/systemd/system/kubelet.service.d/override.conf > /dev/null [Service] Environment="KUBELET_EXTRA_ARGS=--feature-gates='Accelerators=true' --node-labels='alpha.kubernetes.io/nvidia-gpu-name=$NVIDIA_GPU_NAME'" EOF # Join K8S Master sudo kubeadm reset # Workaround for https://github.com/kubernetes/kubeadm/issues/1 sudo kubeadm join --token $TOKEN $K8S_HOSTIP
Create generic link to specific nvidia driver version, copy cuda libraries in
Create generic link to specific nvidia driver version, copy cuda libraries in
Shell
apache-2.0
dhague/maas-k8s
shell
## Code Before: : ${TOKEN:=$1} : ${K8S_HOSTIP:=$2} : ${NVIDIA_VERSION:=375} ./network.sh ./docker.sh ./k8s-packages.sh wget --directory-prefix=/tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb sudo ln -s /var/lib/nvidia-docker/volumes/nvidia_driver/* /usr/local/lib/nvidia NVIDIA_GPU_NAME=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader --id=0) cat <<EOF | sudo tee /etc/systemd/system/kubelet.service.d/override.conf > /dev/null [Service] Environment="KUBELET_EXTRA_ARGS=--feature-gates='Accelerators=true' --node-labels='alpha.kubernetes.io/nvidia-gpu-name=$NVIDIA_GPU_NAME'" EOF # Join K8S Master sudo kubeadm reset # Workaround for https://github.com/kubernetes/kubeadm/issues/1 sudo kubeadm join --token $TOKEN $K8S_HOSTIP ## Instruction: Create generic link to specific nvidia driver version, copy cuda libraries in ## Code After: : ${TOKEN:=$1} : ${K8S_HOSTIP:=$2} : ${NVIDIA_VERSION:=375} ./network.sh ./docker.sh ./k8s-packages.sh wget --directory-prefix=/tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb sudo dpkg -i /tmp/nvidia-docker_1.0.1-1_amd64.deb sudo ln -s /usr/lib/nvidia-$NVIDIA_VERSION /usr/local/lib/nvidia sudo cp /usr/lib/x86_64-linux-gnu/libcuda* /usr/local/lib/nvidia NVIDIA_GPU_NAME=$(nvidia-smi --query-gpu=gpu_name --format=csv,noheader --id=0) cat <<EOF | sudo tee /etc/systemd/system/kubelet.service.d/override.conf > /dev/null [Service] Environment="KUBELET_EXTRA_ARGS=--feature-gates='Accelerators=true' --node-labels='alpha.kubernetes.io/nvidia-gpu-name=$NVIDIA_GPU_NAME'" EOF # Join K8S Master sudo kubeadm reset # Workaround for https://github.com/kubernetes/kubeadm/issues/1 sudo kubeadm join --token $TOKEN $K8S_HOSTIP
02c936308cf646b8cdcdc5ac51d3cfdecb3f29c2
spec/support/page_transition_support.rb
spec/support/page_transition_support.rb
module PageTransitionSupport def change_language(languageCode) within 'select[name=locale]' do find("option[value=#{languageCode}]").click expect(find("option[value=#{languageCode}][selected]")).to be_present end end end RSpec.configure do |config| config.include PageTransitionSupport, :type => :feature end
module PageTransitionSupport def change_language(languageCode) within 'select[name=locale]' do find("option[value=#{languageCode}]").click expect(find("option[value=#{languageCode}][selected]", wait: 5)).to be_present end end end RSpec.configure do |config| config.include PageTransitionSupport, :type => :feature end
Increase the wait time for the locale selector
Increase the wait time for the locale selector This reduces flaky test failures.
Ruby
agpl-3.0
cartothemax/ifme,julianguyen/ifme,julianguyen/ifme,cartothemax/ifme,cartothemax/ifme,julianguyen/ifme,cartothemax/ifme,julianguyen/ifme
ruby
## Code Before: module PageTransitionSupport def change_language(languageCode) within 'select[name=locale]' do find("option[value=#{languageCode}]").click expect(find("option[value=#{languageCode}][selected]")).to be_present end end end RSpec.configure do |config| config.include PageTransitionSupport, :type => :feature end ## Instruction: Increase the wait time for the locale selector This reduces flaky test failures. ## Code After: module PageTransitionSupport def change_language(languageCode) within 'select[name=locale]' do find("option[value=#{languageCode}]").click expect(find("option[value=#{languageCode}][selected]", wait: 5)).to be_present end end end RSpec.configure do |config| config.include PageTransitionSupport, :type => :feature end
8316bb650800ac9dd895be76c8ca664af60d3251
docs/sdk/font.rst
docs/sdk/font.rst
Font ==== Allows loading fonts from the web and using them in React Native components. .. function:: Exponent.Font.loadAsync(name, url) Load a font for use later. :param string name: A user-defined name to identify this font by later. You can make up any name you want, you just have to specify the same name in :func:`Exponent.Font.style` to use this font. :returns: Doesn't return anything, simply awaits till the font is available to use. .. function:: Exponent.Font.style(name) Return style attributes to use with a ``Text`` or other React Native component. You can even call this function before calling :func:`Exponent.Font.loadAsync`, it will still return the correct style attributes. This way you can use this function with ``StyleSheet.create()`` at global scope. :param string name: The user-defined name for this font specified in :func:`Exponent.Font.loadAsync`. :returns: An object with style attributes to use in a ``Text`` or similar component. Here's an example use of this function: .. code-block:: javascript <Text style={{ ...Exponent.Font.style('helloFont'), color: 'red' }}> Hello world! </Text> Before the component is rendered, the font must be loaded by calling ``Exponent.Font.loadAsync('helloFont', 'http://url/to/font.ttf')``.
Font ==== Allows loading fonts from the web and using them in React Native components. .. function:: Exponent.Font.loadAsync(name, url) Load a font for use later. :param string name: A user-defined name to identify this font by later. You can make up any name you want, you just have to specify the same name in :func:`Exponent.Font.style` to use this font. :returns: Doesn't return anything, simply awaits till the font is available to use. .. function:: Exponent.Font.style(name) Return style attributes to use with a ``Text`` or other React Native component. You can even call this function before calling :func:`Exponent.Font.loadAsync`, it will still return the correct style attributes. This way you can use this function with ``StyleSheet.create()`` at global scope. :param string name: The user-defined name for this font specified in :func:`Exponent.Font.loadAsync`. :returns: An object with style attributes to use in a ``Text`` or similar component. :example: .. code-block:: javascript <Text style={{ ...Exponent.Font.style('helloFont'), color: 'red' }}> Hello world! </Text> Before the component is rendered, the font must be loaded by calling ``Exponent.Font.loadAsync('helloFont', 'http://url/to/font.ttf')``.
Make code example an actual heading
[docs] Make code example an actual heading
reStructuredText
bsd-3-clause
exponentjs/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent
restructuredtext
## Code Before: Font ==== Allows loading fonts from the web and using them in React Native components. .. function:: Exponent.Font.loadAsync(name, url) Load a font for use later. :param string name: A user-defined name to identify this font by later. You can make up any name you want, you just have to specify the same name in :func:`Exponent.Font.style` to use this font. :returns: Doesn't return anything, simply awaits till the font is available to use. .. function:: Exponent.Font.style(name) Return style attributes to use with a ``Text`` or other React Native component. You can even call this function before calling :func:`Exponent.Font.loadAsync`, it will still return the correct style attributes. This way you can use this function with ``StyleSheet.create()`` at global scope. :param string name: The user-defined name for this font specified in :func:`Exponent.Font.loadAsync`. :returns: An object with style attributes to use in a ``Text`` or similar component. Here's an example use of this function: .. code-block:: javascript <Text style={{ ...Exponent.Font.style('helloFont'), color: 'red' }}> Hello world! </Text> Before the component is rendered, the font must be loaded by calling ``Exponent.Font.loadAsync('helloFont', 'http://url/to/font.ttf')``. ## Instruction: [docs] Make code example an actual heading ## Code After: Font ==== Allows loading fonts from the web and using them in React Native components. .. function:: Exponent.Font.loadAsync(name, url) Load a font for use later. :param string name: A user-defined name to identify this font by later. You can make up any name you want, you just have to specify the same name in :func:`Exponent.Font.style` to use this font. :returns: Doesn't return anything, simply awaits till the font is available to use. .. function:: Exponent.Font.style(name) Return style attributes to use with a ``Text`` or other React Native component. You can even call this function before calling :func:`Exponent.Font.loadAsync`, it will still return the correct style attributes. This way you can use this function with ``StyleSheet.create()`` at global scope. :param string name: The user-defined name for this font specified in :func:`Exponent.Font.loadAsync`. :returns: An object with style attributes to use in a ``Text`` or similar component. :example: .. code-block:: javascript <Text style={{ ...Exponent.Font.style('helloFont'), color: 'red' }}> Hello world! </Text> Before the component is rendered, the font must be loaded by calling ``Exponent.Font.loadAsync('helloFont', 'http://url/to/font.ttf')``.
eac0039f0b1131ed026bccfd984aa8ce00083b94
docs/README.md
docs/README.md
Teleport docs are built using [mkdocs](http://www.mkdocs.org/) and hosted as a bunch of static files in S3. Look at `build.sh` script to see how it works. ## To Publish New Version * Update [build.sh](build.sh). * Update theme/base.html to add a new version to the Javascript arrray of versions * Create a new YAML file, like `5.5.1.yaml` if you are releasing version 5.5.1 ## Deploying Teleport docs are published using a private `web` repository. See `web/README.md` for more info. ## Running Locally First time users will need to install MkDocs https://www.mkdocs.org/#installation. `brew install parallel` To run the latest version of the docs on [http://127.0.0.1:8000](http://127.0.0.1:8000/quickstart): ```bash $ ./serve.sh ``` To run a specific version of the docs: ```bash $ mkdocs serve --config-file 1.3.yaml ```
Teleport docs are built using [mkdocs](http://www.mkdocs.org/) and hosted as a bunch of static files in S3. Look at `build.sh` script to see how it works. ## To Publish New Version * Update [build.sh](build.sh). * Update theme/base.html to add a new version to the Javascript arrray of versions * Create a new YAML file, like `5.5.1.yaml` if you are releasing version 5.5.1 ## Deploying Teleport docs are published using a private `web` repository. See `web/README.md` for more info. ## Running Locally We recommend using Docker to run and build the docs. `make run-docs` will run the docs and setup a [livereload server](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en) for easy previewing of changes. `make docs` will build the docs, so they are ready to ship to production. ## Tools used to build the Docs Teleport Docs are made with MkDocs and a few markdown extensions, First time users will need to install MkDocs https://www.mkdocs.org/#installation. To run the latest version of the docs on [http://127.0.0.1:8000](http://127.0.0.1:8000/quickstart): ```bash $ ./run.sh ``` To run a specific version of the docs: ```bash $ mkdocs serve --config-file 1.3.yaml ```
Update Readme for Docker Build Process
Update Readme for Docker Build Process
Markdown
apache-2.0
gravitational/teleport,gravitational/teleport,gravitational/teleport,gravitational/teleport,gravitational/teleport,gravitational/teleport
markdown
## Code Before: Teleport docs are built using [mkdocs](http://www.mkdocs.org/) and hosted as a bunch of static files in S3. Look at `build.sh` script to see how it works. ## To Publish New Version * Update [build.sh](build.sh). * Update theme/base.html to add a new version to the Javascript arrray of versions * Create a new YAML file, like `5.5.1.yaml` if you are releasing version 5.5.1 ## Deploying Teleport docs are published using a private `web` repository. See `web/README.md` for more info. ## Running Locally First time users will need to install MkDocs https://www.mkdocs.org/#installation. `brew install parallel` To run the latest version of the docs on [http://127.0.0.1:8000](http://127.0.0.1:8000/quickstart): ```bash $ ./serve.sh ``` To run a specific version of the docs: ```bash $ mkdocs serve --config-file 1.3.yaml ``` ## Instruction: Update Readme for Docker Build Process ## Code After: Teleport docs are built using [mkdocs](http://www.mkdocs.org/) and hosted as a bunch of static files in S3. Look at `build.sh` script to see how it works. ## To Publish New Version * Update [build.sh](build.sh). * Update theme/base.html to add a new version to the Javascript arrray of versions * Create a new YAML file, like `5.5.1.yaml` if you are releasing version 5.5.1 ## Deploying Teleport docs are published using a private `web` repository. See `web/README.md` for more info. ## Running Locally We recommend using Docker to run and build the docs. `make run-docs` will run the docs and setup a [livereload server](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en) for easy previewing of changes. `make docs` will build the docs, so they are ready to ship to production. ## Tools used to build the Docs Teleport Docs are made with MkDocs and a few markdown extensions, First time users will need to install MkDocs https://www.mkdocs.org/#installation. To run the latest version of the docs on [http://127.0.0.1:8000](http://127.0.0.1:8000/quickstart): ```bash $ ./run.sh ``` To run a specific version of the docs: ```bash $ mkdocs serve --config-file 1.3.yaml ```
d717d322e531803a92e1040d9df3c4c264dbc0e3
plugins/tempest/tasks/configure/method/rpm.yml
plugins/tempest/tasks/configure/method/rpm.yml
- name: Create the tempest directory file: dest: "~/{{ test.dir }}" state: directory - name: Get the script which configures the tempest directory shell: ls -d /usr/share/openstack-tempest-*/tools/configure-tempest-directory register: configure_tempest_dir ignore_errors: true - name: Initialize tempest workspace directory using configure-tempest-directory command: "{{ configure_tempest_dir.stdout_lines[0] }}" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/LICENSE" when: configure_tempest_dir.rc == 0 - name: Install tempestconf if config script is not part of tempest package: name: python-tempestconf state: present when: configure_tempest_dir.rc != 0 - name: Initialize tempest workspace directory using tempest init command: "tempest init" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/etc" when: configure_tempest_dir.rc != 0 - name: Check if we have tempestconf tool installed stat: path: /usr/bin/discover-tempest-config register: tempest_conf_tool - name: Set facts for configuration run set_fact: config_command: /usr/bin/discover-tempest-config when: tempest_conf_tool.stat.exists
- name: Create the tempest directory file: dest: "~/{{ test.dir }}" state: directory - name: Get the script which configures the tempest directory shell: ls -d /usr/share/openstack-tempest-*/tools/configure-tempest-directory register: configure_tempest_dir ignore_errors: true - name: Initialize tempest workspace directory using configure-tempest-directory command: "{{ configure_tempest_dir.stdout_lines[0] }}" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/LICENSE" when: configure_tempest_dir.rc == 0 - name: Install tempestconf if config script is not part of tempest become: yes package: name: python-tempestconf state: present when: configure_tempest_dir.rc != 0 - name: Initialize tempest workspace directory using tempest init command: "tempest init" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/etc" when: configure_tempest_dir.rc != 0 - name: Check if we have tempestconf tool installed stat: path: /usr/bin/discover-tempest-config register: tempest_conf_tool - name: Set facts for configuration run set_fact: config_command: /usr/bin/discover-tempest-config when: tempest_conf_tool.stat.exists
Fix missing sudo for tempestconf installation
Fix missing sudo for tempestconf installation Change-Id: I6ae8ca47a8241612fcddf77c398aa4fc54adad76
YAML
apache-2.0
okolisny/InfraRed,okolisny/InfraRed,redhat-openstack/infrared,redhat-openstack/infrared,okolisny/InfraRed,redhat-openstack/infrared
yaml
## Code Before: - name: Create the tempest directory file: dest: "~/{{ test.dir }}" state: directory - name: Get the script which configures the tempest directory shell: ls -d /usr/share/openstack-tempest-*/tools/configure-tempest-directory register: configure_tempest_dir ignore_errors: true - name: Initialize tempest workspace directory using configure-tempest-directory command: "{{ configure_tempest_dir.stdout_lines[0] }}" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/LICENSE" when: configure_tempest_dir.rc == 0 - name: Install tempestconf if config script is not part of tempest package: name: python-tempestconf state: present when: configure_tempest_dir.rc != 0 - name: Initialize tempest workspace directory using tempest init command: "tempest init" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/etc" when: configure_tempest_dir.rc != 0 - name: Check if we have tempestconf tool installed stat: path: /usr/bin/discover-tempest-config register: tempest_conf_tool - name: Set facts for configuration run set_fact: config_command: /usr/bin/discover-tempest-config when: tempest_conf_tool.stat.exists ## Instruction: Fix missing sudo for tempestconf installation Change-Id: I6ae8ca47a8241612fcddf77c398aa4fc54adad76 ## Code After: - name: Create the tempest directory file: dest: "~/{{ test.dir }}" state: directory - name: Get the script which configures the tempest directory shell: ls -d /usr/share/openstack-tempest-*/tools/configure-tempest-directory register: configure_tempest_dir ignore_errors: true - name: Initialize tempest workspace directory using configure-tempest-directory command: "{{ configure_tempest_dir.stdout_lines[0] }}" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/LICENSE" when: configure_tempest_dir.rc == 0 - name: Install tempestconf if config script is not part of tempest become: yes package: name: python-tempestconf state: present when: configure_tempest_dir.rc != 0 - name: Initialize tempest workspace directory using tempest init command: "tempest init" args: chdir: "~/{{ test.dir }}" creates: "~/{{ test.dir }}/etc" when: configure_tempest_dir.rc != 0 - name: Check if we have tempestconf tool installed stat: path: /usr/bin/discover-tempest-config register: tempest_conf_tool - name: Set facts for configuration run set_fact: config_command: /usr/bin/discover-tempest-config when: tempest_conf_tool.stat.exists
fe974197217eff350f1dc0bc5687c83066d6dd34
kaggle_tools/features_engineering/dates_engineering.py
kaggle_tools/features_engineering/dates_engineering.py
import pandas as pd def date_features(input_df, datetime_column='tms_gmt'): """ Given a datetime column, extracts useful date information (minute, hour, dow...) """ df = input_df.copy() return (df.set_index(time_column) .assign(minute=lambda df: df.index.minute, hour=lambda df: df.index.hour, day=lambda df: df.index.day, dow=lambda df: df.index.dayofweek, month=lambda df: df.index.month, week=lambda df: df.index.week, woy=lambda df: df.index.weekofyear, year=lambda df: df.index.year))
import pandas as pd import pytz def date_features(input_df, datetime_column='tms_gmt'): """ Given a datetime column, extracts useful date information (minute, hour, dow...) """ df = input_df.copy() return (df.set_index(time_column) .assign(minute=lambda df: df.index.minute, hour=lambda df: df.index.hour, day=lambda df: df.index.day, dow=lambda df: df.index.dayofweek, month=lambda df: df.index.month, week=lambda df: df.index.week, woy=lambda df: df.index.weekofyear, year=lambda df: df.index.year)) def localize_datetime(input_df, timezone='Europe/Paris', datetime_column='tms_gmt'): """ Convert datetime column from UTC to another timezone. """ tmz = pytz.timezone(timezone) df = input_df.copy() return (df.set_index(datetime_column) .tz_localize(pytz.utc) #  UTC time .tz_convert(tmz)) # Timezone time
Add a datetime localization function
Add a datetime localization function
Python
mit
yassineAlouini/kaggle-tools,yassineAlouini/kaggle-tools
python
## Code Before: import pandas as pd def date_features(input_df, datetime_column='tms_gmt'): """ Given a datetime column, extracts useful date information (minute, hour, dow...) """ df = input_df.copy() return (df.set_index(time_column) .assign(minute=lambda df: df.index.minute, hour=lambda df: df.index.hour, day=lambda df: df.index.day, dow=lambda df: df.index.dayofweek, month=lambda df: df.index.month, week=lambda df: df.index.week, woy=lambda df: df.index.weekofyear, year=lambda df: df.index.year)) ## Instruction: Add a datetime localization function ## Code After: import pandas as pd import pytz def date_features(input_df, datetime_column='tms_gmt'): """ Given a datetime column, extracts useful date information (minute, hour, dow...) """ df = input_df.copy() return (df.set_index(time_column) .assign(minute=lambda df: df.index.minute, hour=lambda df: df.index.hour, day=lambda df: df.index.day, dow=lambda df: df.index.dayofweek, month=lambda df: df.index.month, week=lambda df: df.index.week, woy=lambda df: df.index.weekofyear, year=lambda df: df.index.year)) def localize_datetime(input_df, timezone='Europe/Paris', datetime_column='tms_gmt'): """ Convert datetime column from UTC to another timezone. """ tmz = pytz.timezone(timezone) df = input_df.copy() return (df.set_index(datetime_column) .tz_localize(pytz.utc) #  UTC time .tz_convert(tmz)) # Timezone time
56946dbddb5b853628761512839ad740e4b4e478
static/templates/me_message.hbs
static/templates/me_message.hbs
<span class="message_sender no-select"> <span class="sender_info_hover"> {{> message_avatar}} </span> <span class="sender-status"> <span class="sender_info_hover sender_name-in-status auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span> {{#if sender_is_bot}} <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i> {{/if}} <span class="status-message auto-select"> {{{ status_message }}} </span> {{#if edited_status_msg}} {{> edited_notice}} {{/if}} </span> </span>
<span class="message_sender no-select"> <span class="sender_info_hover"> {{> message_avatar}} </span> <span class="sender-status"> <span class="sender_info_hover sender_name-in-status auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span> {{#if sender_is_bot}} <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i> {{/if}} <span class="rendered_markdown status-message auto-select"> {{{ status_message }}} </span> {{#if edited_status_msg}} {{> edited_notice}} {{/if}} </span> </span>
Fix missing rendered_markdown class on /me content.
design: Fix missing rendered_markdown class on /me content. There may be a deeper issue that various JavaScript logic expects every message to have a `.message_content` element, but we definitely should have the `.rendered_markdown` class on any markdown content. Fixes #13634.
Handlebars
apache-2.0
kou/zulip,brainwane/zulip,rht/zulip,rht/zulip,zulip/zulip,showell/zulip,brainwane/zulip,showell/zulip,andersk/zulip,timabbott/zulip,brainwane/zulip,punchagan/zulip,shubhamdhama/zulip,eeshangarg/zulip,synicalsyntax/zulip,brainwane/zulip,shubhamdhama/zulip,hackerkid/zulip,kou/zulip,hackerkid/zulip,kou/zulip,kou/zulip,punchagan/zulip,zulip/zulip,eeshangarg/zulip,timabbott/zulip,hackerkid/zulip,synicalsyntax/zulip,shubhamdhama/zulip,hackerkid/zulip,zulip/zulip,andersk/zulip,punchagan/zulip,shubhamdhama/zulip,synicalsyntax/zulip,rht/zulip,punchagan/zulip,rht/zulip,hackerkid/zulip,synicalsyntax/zulip,andersk/zulip,andersk/zulip,shubhamdhama/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,eeshangarg/zulip,showell/zulip,hackerkid/zulip,timabbott/zulip,punchagan/zulip,synicalsyntax/zulip,synicalsyntax/zulip,punchagan/zulip,rht/zulip,brainwane/zulip,kou/zulip,timabbott/zulip,eeshangarg/zulip,shubhamdhama/zulip,rht/zulip,andersk/zulip,shubhamdhama/zulip,timabbott/zulip,zulip/zulip,showell/zulip,brainwane/zulip,showell/zulip,eeshangarg/zulip,andersk/zulip,timabbott/zulip,hackerkid/zulip,showell/zulip,zulip/zulip,brainwane/zulip,zulip/zulip,rht/zulip,zulip/zulip,punchagan/zulip,showell/zulip,kou/zulip,timabbott/zulip,kou/zulip,eeshangarg/zulip
handlebars
## Code Before: <span class="message_sender no-select"> <span class="sender_info_hover"> {{> message_avatar}} </span> <span class="sender-status"> <span class="sender_info_hover sender_name-in-status auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span> {{#if sender_is_bot}} <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i> {{/if}} <span class="status-message auto-select"> {{{ status_message }}} </span> {{#if edited_status_msg}} {{> edited_notice}} {{/if}} </span> </span> ## Instruction: design: Fix missing rendered_markdown class on /me content. There may be a deeper issue that various JavaScript logic expects every message to have a `.message_content` element, but we definitely should have the `.rendered_markdown` class on any markdown content. Fixes #13634. ## Code After: <span class="message_sender no-select"> <span class="sender_info_hover"> {{> message_avatar}} </span> <span class="sender-status"> <span class="sender_info_hover sender_name-in-status auto-select" role="button" tabindex="0">{{msg/sender_full_name}}</span> {{#if sender_is_bot}} <i class="zulip-icon bot" aria-label="{{t 'Bot' }}"></i> {{/if}} <span class="rendered_markdown status-message auto-select"> {{{ status_message }}} </span> {{#if edited_status_msg}} {{> edited_notice}} {{/if}} </span> </span>
80844d75d9535452abda92f791e0c4b1c697bd20
app/serializers/task_comment_serializer.rb
app/serializers/task_comment_serializer.rb
class TaskCommentSerializer < ActiveModel::Serializer attributes :id, :comment, :created_at, :comment_by def comment_by object.user.name end end
class TaskCommentSerializer < ActiveModel::Serializer attributes :id, :comment, :created_at, :comment_by, :recipient_id, :is_new def comment_by object.user.name end end
Add recipient_id and is_new to comment serializer
NEW: Add recipient_id and is_new to comment serializer
Ruby
agpl-3.0
alexcu/doubtfire-api,alexcu/doubtfire-api,jakerenzella/doubtfire-api,alexcu/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,alexcu/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,alexcu/doubtfire-api,doubtfire-lms/doubtfire-api,alexcu/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api
ruby
## Code Before: class TaskCommentSerializer < ActiveModel::Serializer attributes :id, :comment, :created_at, :comment_by def comment_by object.user.name end end ## Instruction: NEW: Add recipient_id and is_new to comment serializer ## Code After: class TaskCommentSerializer < ActiveModel::Serializer attributes :id, :comment, :created_at, :comment_by, :recipient_id, :is_new def comment_by object.user.name end end
3f1f63a004f247f5b56ce8c8bf784124e62fd143
.travis.yml
.travis.yml
language: java sudo: required services: - docker install: - sudo pip install nose2 script: - make - make test - make sdkbase
language: java sudo: required services: - docker install: - sudo pip install nose2 script: - make - make sdkbase
Remove make test for now until we get a token mgmt strategy into place
Remove make test for now until we get a token mgmt strategy into place
YAML
mit
msneddon/kb_sdk,msneddon/kb_sdk,msneddon/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,msneddon/kb_sdk,msneddon/kb_sdk,kbase/kb_sdk,msneddon/kb_sdk,msneddon/kb_sdk,kbase/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,kbaseIncubator/kb_sdk,kbase/kb_sdk,kbaseIncubator/kb_sdk,kbaseIncubator/kb_sdk,kbase/kb_sdk,kbase/kb_sdk
yaml
## Code Before: language: java sudo: required services: - docker install: - sudo pip install nose2 script: - make - make test - make sdkbase ## Instruction: Remove make test for now until we get a token mgmt strategy into place ## Code After: language: java sudo: required services: - docker install: - sudo pip install nose2 script: - make - make sdkbase
8544bdd7fb15220bac1744adb1c7498bf0809b56
js/front/dataset/preview-modal.vue
js/front/dataset/preview-modal.vue
<template> <modal class="preview-modal" v-ref:modal :title="_('Preview')" large> <div class="modal-body"> <iframe :src="url" width="100%" height="600" frameborder="0"></iframe> </div> <footer class="modal-footer text-center"> <button class="btn btn-default" @click="$refs.modal.close"> {{ _('Close') }} </button> </footer> </modal> </template> <script> import Modal from 'components/modal.vue'; export default { props: { url: String }, components: {Modal} }; </script> <style lang="less"> @import "~less/udata/variables.less"; @media (min-width: @screen-sm-min) { .preview-modal { .modal-dialog { width: 99%; } } } </style>
<template> <modal class="preview-modal" v-ref:modal :title="_('Preview')" large> <div class="modal-body"> <iframe :src="url" width="100%" height="600" frameborder="0"></iframe> </div> <footer class="modal-footer text-center"> <button class="btn btn-default" @click="$refs.modal.close"> {{ _('Close') }} </button> </footer> </modal> </template> <script> import Modal from 'components/modal.vue'; export default { props: { url: String }, components: {Modal} }; </script> <style lang="less"> @import "~less/udata/variables.less"; .preview-modal { .modal-dialog { @media (min-width: @screen-sm-min) { // Full width on sm+ devices width: 99%; } } .modal-body { // Thinner padding padding: 1px; } } </style>
Make the preview fill the modal body
Make the preview fill the modal body
Vue
agpl-3.0
opendatateam/udata,opendatateam/udata,etalab/udata,etalab/udata,etalab/udata,opendatateam/udata
vue
## Code Before: <template> <modal class="preview-modal" v-ref:modal :title="_('Preview')" large> <div class="modal-body"> <iframe :src="url" width="100%" height="600" frameborder="0"></iframe> </div> <footer class="modal-footer text-center"> <button class="btn btn-default" @click="$refs.modal.close"> {{ _('Close') }} </button> </footer> </modal> </template> <script> import Modal from 'components/modal.vue'; export default { props: { url: String }, components: {Modal} }; </script> <style lang="less"> @import "~less/udata/variables.less"; @media (min-width: @screen-sm-min) { .preview-modal { .modal-dialog { width: 99%; } } } </style> ## Instruction: Make the preview fill the modal body ## Code After: <template> <modal class="preview-modal" v-ref:modal :title="_('Preview')" large> <div class="modal-body"> <iframe :src="url" width="100%" height="600" frameborder="0"></iframe> </div> <footer class="modal-footer text-center"> <button class="btn btn-default" @click="$refs.modal.close"> {{ _('Close') }} </button> </footer> </modal> </template> <script> import Modal from 'components/modal.vue'; export default { props: { url: String }, components: {Modal} }; </script> <style lang="less"> @import "~less/udata/variables.less"; .preview-modal { .modal-dialog { @media (min-width: @screen-sm-min) { // Full width on sm+ devices width: 99%; } } .modal-body { // Thinner padding padding: 1px; } } </style>
7e0e26a2cfee4f0760b7da235c49f8427d1c8e8d
fst_web/templates/atomfeed.xml
fst_web/templates/atomfeed.xml
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:le="http://purl.org/atompub/link-extensions/1.0" xmlns:at="http://purl.org/atompub/tombstones/1.0" xmlns:rae="http://rinfo.lagrummet.se/ns/2009/09/atom-extensions#" xmlns:dct="http://purl.org/dc/terms/" xml:lang="sv"> <id>{{feed_id}}</id> <title>{{feed_title}}</title> <updated>{{last_updated}}</updated> <author> <name>{{feed_contact_name}}</name> <uri>{{feed_contact_url}}</uri> <email>{{feed_contact_email}}</email> </author> <link href="{{fst_site_url}}/feed/" rel="self"/> {% for entry in entries %} {{entry.to_entryxml}} {% endfor %} </feed>
<?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:at="http://purl.org/atompub/tombstones/1.0" xmlns:dct="http://purl.org/dc/terms/" xml:lang="sv"> <id>{{feed_id}}</id> <title>{{feed_title}}</title> <updated>{{last_updated}}</updated> <author> <name>{{feed_contact_name}}</name> <uri>{{feed_contact_url}}</uri> <email>{{feed_contact_email}}</email> </author> <link href="{{fst_site_url}}/feed/" rel="self"/> {% for entry in entries %} {{entry.to_entryxml}} {% endfor %} </feed>
Remove unused link-extensions namespace from feed root
Remove unused link-extensions namespace from feed root
XML
bsd-3-clause
rinfo/fst,kamidev/autobuild_fst,rinfo/fst,rinfo/fst,rinfo/fst,kamidev/autobuild_fst,kamidev/autobuild_fst,kamidev/autobuild_fst
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:le="http://purl.org/atompub/link-extensions/1.0" xmlns:at="http://purl.org/atompub/tombstones/1.0" xmlns:rae="http://rinfo.lagrummet.se/ns/2009/09/atom-extensions#" xmlns:dct="http://purl.org/dc/terms/" xml:lang="sv"> <id>{{feed_id}}</id> <title>{{feed_title}}</title> <updated>{{last_updated}}</updated> <author> <name>{{feed_contact_name}}</name> <uri>{{feed_contact_url}}</uri> <email>{{feed_contact_email}}</email> </author> <link href="{{fst_site_url}}/feed/" rel="self"/> {% for entry in entries %} {{entry.to_entryxml}} {% endfor %} </feed> ## Instruction: Remove unused link-extensions namespace from feed root ## Code After: <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:at="http://purl.org/atompub/tombstones/1.0" xmlns:dct="http://purl.org/dc/terms/" xml:lang="sv"> <id>{{feed_id}}</id> <title>{{feed_title}}</title> <updated>{{last_updated}}</updated> <author> <name>{{feed_contact_name}}</name> <uri>{{feed_contact_url}}</uri> <email>{{feed_contact_email}}</email> </author> <link href="{{fst_site_url}}/feed/" rel="self"/> {% for entry in entries %} {{entry.to_entryxml}} {% endfor %} </feed>
fa9446c6c8710acea0327928e410f8a5fb7e2b51
README.md
README.md
NixOS configuration for a mid-2015 Macboo Pro retina 15" (11,5)
NixOS configuration for a mid-2015 Macboo Pro retina 15" (11,5) # Resources [Apple Macbook Pro Linux Isse Tracking](https://teamsammut.com/blog/2015/09/apple-macbook-pro-linux-issue-tracking.html)
Add link to Apple Macbook Pro Linux Isse Tracking
Add link to Apple Macbook Pro Linux Isse Tracking
Markdown
mit
jeremiehuchet/nixos-macbookpro
markdown
## Code Before: NixOS configuration for a mid-2015 Macboo Pro retina 15" (11,5) ## Instruction: Add link to Apple Macbook Pro Linux Isse Tracking ## Code After: NixOS configuration for a mid-2015 Macboo Pro retina 15" (11,5) # Resources [Apple Macbook Pro Linux Isse Tracking](https://teamsammut.com/blog/2015/09/apple-macbook-pro-linux-issue-tracking.html)
d1fd045791ad4d7c3544352faf68361637213f57
product_onepage/templatetags/onepage_tags.py
product_onepage/templatetags/onepage_tags.py
"""Gallery templatetags""" from django.template import Library from django.core.exceptions import ObjectDoesNotExist register = Library() @register.filter(name='divide') def divide(dividend, divisor): return dividend / divisor @register.filter(name='get_language') def get_language(list, language): try: return list.get(language=language) except ObjectDoesNotExist: try: return list.get(language='en') except ObjectDoesNotExist: return list.all()[0]
"""Gallery templatetags""" from django.template import Library from django.core.exceptions import ObjectDoesNotExist register = Library() @register.filter(name='divide') def divide(dividend, divisor): return dividend / divisor @register.filter(name='get_language') def get_language(queryset, language): try: return queryset.get(language=language) except ObjectDoesNotExist: try: return queryset.get(language='en') except ObjectDoesNotExist: return queryset.all()[0]
Fix variable name in get_language tag
Fix variable name in get_language tag
Python
mit
emencia/emencia-product-onepage,emencia/emencia-product-onepage
python
## Code Before: """Gallery templatetags""" from django.template import Library from django.core.exceptions import ObjectDoesNotExist register = Library() @register.filter(name='divide') def divide(dividend, divisor): return dividend / divisor @register.filter(name='get_language') def get_language(list, language): try: return list.get(language=language) except ObjectDoesNotExist: try: return list.get(language='en') except ObjectDoesNotExist: return list.all()[0] ## Instruction: Fix variable name in get_language tag ## Code After: """Gallery templatetags""" from django.template import Library from django.core.exceptions import ObjectDoesNotExist register = Library() @register.filter(name='divide') def divide(dividend, divisor): return dividend / divisor @register.filter(name='get_language') def get_language(queryset, language): try: return queryset.get(language=language) except ObjectDoesNotExist: try: return queryset.get(language='en') except ObjectDoesNotExist: return queryset.all()[0]
a3dde5b9fb7c848d0e59b25e14119c2cbb13c923
src/exometer_function.erl
src/exometer_function.erl
-module(exometer_function). -behaviour(exometer_entry). -export([new/3, update/4, reset/3, setopts/4, get_value/3, sample/3, delete/3, reset/3, setopts/4]). -export([empty/0]). new(_Name, function, Opts) -> case lists:keyfind(type_arg, 1, Opts) of {_, {function, M, F}} -> {ok, {M, F}}; false -> {ok, {?MODULE, empty}} end. get_value(_, function, {M, F}) -> M:F(). update(_, _, _, _) -> {error, unsupported}. sample(_, _, _) -> {error, unsupported}. reset(_, _, _) -> {error, unsupported}. setopts(_,_, _, _) -> {error, unsupported}. delete(_, _, _) -> ok. reset(_, _, _) -> {error, unsupported}. setopts(_, _, _, _) -> {error, unsupported}. empty() -> [].
-module(exometer_function). -behaviour(exometer_entry). -export([new/3, update/4, reset/3, get_value/3, sample/3, delete/3, setopts/4]). -export([empty/0]). new(_Name, function, Opts) -> case lists:keyfind(type_arg, 1, Opts) of {_, {function, M, F}} -> {ok, {M, F}}; false -> {ok, {?MODULE, empty}} end. get_value(_, function, {M, F}) -> M:F(). update(_, _, _, _) -> {error, unsupported}. sample(_, _, _) -> {error, unsupported}. reset(_, _, _) -> {error, unsupported}. setopts(_,_, _, _) -> {error, unsupported}. delete(_, _, _) -> ok. empty() -> [].
Duplicate code from merge fixed
Duplicate code from merge fixed
Erlang
mpl-2.0
systra/exometer
erlang
## Code Before: -module(exometer_function). -behaviour(exometer_entry). -export([new/3, update/4, reset/3, setopts/4, get_value/3, sample/3, delete/3, reset/3, setopts/4]). -export([empty/0]). new(_Name, function, Opts) -> case lists:keyfind(type_arg, 1, Opts) of {_, {function, M, F}} -> {ok, {M, F}}; false -> {ok, {?MODULE, empty}} end. get_value(_, function, {M, F}) -> M:F(). update(_, _, _, _) -> {error, unsupported}. sample(_, _, _) -> {error, unsupported}. reset(_, _, _) -> {error, unsupported}. setopts(_,_, _, _) -> {error, unsupported}. delete(_, _, _) -> ok. reset(_, _, _) -> {error, unsupported}. setopts(_, _, _, _) -> {error, unsupported}. empty() -> []. ## Instruction: Duplicate code from merge fixed ## Code After: -module(exometer_function). -behaviour(exometer_entry). -export([new/3, update/4, reset/3, get_value/3, sample/3, delete/3, setopts/4]). -export([empty/0]). new(_Name, function, Opts) -> case lists:keyfind(type_arg, 1, Opts) of {_, {function, M, F}} -> {ok, {M, F}}; false -> {ok, {?MODULE, empty}} end. get_value(_, function, {M, F}) -> M:F(). update(_, _, _, _) -> {error, unsupported}. sample(_, _, _) -> {error, unsupported}. reset(_, _, _) -> {error, unsupported}. setopts(_,_, _, _) -> {error, unsupported}. delete(_, _, _) -> ok. empty() -> [].
2e4542b2b279666aa6e7c48f863ff618719e5b73
config.yaml
config.yaml
--- # file: stats config default: transport: tcp # udp or tcp, tcp is so far performant enough host: riemann.example.com frequency: 10 enabled plugins: network: - network_io disk: - disk_io - disk_usage load: - load_avg memory: - virtual_memory - swap_memory mysql: - status apache2: - status # Specific settings # module: # method: # metric: # warn: VAL # crit: VAL # trigger: gt(default)|lt|ignore # tags: # - any # - aditional # - tags load: load_avg: freq: 5 1_min: warn: 5.0 crit: 8.0 5_min: warn: 4.0 crit: 5.0 15_min: warn: 3.5 crit: 4.0 memory: virtual_memory: freq: 30 percent: warn: 90 crit: 95 swap_memory: freq: 30 percent: warn: 25 crit: 50 disk: disk_usage: percent: warn: 75 crit: 90
--- # file: stats config default: transport: tcp # udp or tcp, tcp is so far performant enough host: riemann.example.com frequency: 10 enabled plugins: network: - network_io disk: - disk_io - disk_usage load: - load_avg memory: - virtual_memory - swap_memory # Specific settings # module: # method: # metric: # warn: VAL # crit: VAL # trigger: gt(default)|lt|ignore # tags: # - any # - aditional # - tags load: load_avg: freq: 5 1_min: warn: 5.0 crit: 8.0 5_min: warn: 4.0 crit: 5.0 15_min: warn: 3.5 crit: 4.0 memory: virtual_memory: freq: 30 percent: warn: 90 crit: 95 swap_memory: freq: 30 percent: warn: 25 crit: 50 disk: disk_usage: percent: warn: 75 crit: 90
Disable mysql and apache by default
Disable mysql and apache by default
YAML
bsd-3-clause
thepearson/pyriem
yaml
## Code Before: --- # file: stats config default: transport: tcp # udp or tcp, tcp is so far performant enough host: riemann.example.com frequency: 10 enabled plugins: network: - network_io disk: - disk_io - disk_usage load: - load_avg memory: - virtual_memory - swap_memory mysql: - status apache2: - status # Specific settings # module: # method: # metric: # warn: VAL # crit: VAL # trigger: gt(default)|lt|ignore # tags: # - any # - aditional # - tags load: load_avg: freq: 5 1_min: warn: 5.0 crit: 8.0 5_min: warn: 4.0 crit: 5.0 15_min: warn: 3.5 crit: 4.0 memory: virtual_memory: freq: 30 percent: warn: 90 crit: 95 swap_memory: freq: 30 percent: warn: 25 crit: 50 disk: disk_usage: percent: warn: 75 crit: 90 ## Instruction: Disable mysql and apache by default ## Code After: --- # file: stats config default: transport: tcp # udp or tcp, tcp is so far performant enough host: riemann.example.com frequency: 10 enabled plugins: network: - network_io disk: - disk_io - disk_usage load: - load_avg memory: - virtual_memory - swap_memory # Specific settings # module: # method: # metric: # warn: VAL # crit: VAL # trigger: gt(default)|lt|ignore # tags: # - any # - aditional # - tags load: load_avg: freq: 5 1_min: warn: 5.0 crit: 8.0 5_min: warn: 4.0 crit: 5.0 15_min: warn: 3.5 crit: 4.0 memory: virtual_memory: freq: 30 percent: warn: 90 crit: 95 swap_memory: freq: 30 percent: warn: 25 crit: 50 disk: disk_usage: percent: warn: 75 crit: 90
a58730c82ba4ecc2b580a0cc74a30871f669d778
db/migrate/20160204080445_add_posts_original_updated_at.rb
db/migrate/20160204080445_add_posts_original_updated_at.rb
class AddPostsOriginalUpdatedAt < ActiveRecord::Migration def change add_column :posts, :original_updated_at, :datetime end end
class AddPostsOriginalUpdatedAt < ActiveRecord::Migration def change add_column :posts, :original_updated_at, :datetime execute 'UPDATE posts SET original_updated_at = updated_at' end end
Copy updated_at to original_updated_at for existing records
Copy updated_at to original_updated_at for existing records
Ruby
mit
bm-sms/daimon-news,bm-sms/daimon-news,bm-sms/daimon-news
ruby
## Code Before: class AddPostsOriginalUpdatedAt < ActiveRecord::Migration def change add_column :posts, :original_updated_at, :datetime end end ## Instruction: Copy updated_at to original_updated_at for existing records ## Code After: class AddPostsOriginalUpdatedAt < ActiveRecord::Migration def change add_column :posts, :original_updated_at, :datetime execute 'UPDATE posts SET original_updated_at = updated_at' end end
519ed90fcb665dc7b49fe6d0599290c9f429c690
contact.html
contact.html
--- layout: default title: Contact --- <section class="jumbotron text-center"> <div class="container"> <h1 class="jumbotron-heading">Contact</h1> <p class="lead text-muted">Contact us through e-mail at <a href="mailto:uavaustin@gmail.com">uavaustin@gmail.com</a>, or connect with us on <a href="https://www.facebook.com/uavaustin/" target="_blank">Facebook</a>, <a href="https://www.instagram.com/uavaustin/" target="_blank">Instagram</a>, <a href="https://www.linkedin.com/company/unmanned-aerial-vehicles-austin/" target="_blank">LinkedIn</a>, <a href="https://twitter.com/uavaustin" target="_blank">Twitter</a>, and <a href="https://github.com/uavaustin" target="_blank">GitHub</a>.</p> </div> <img id="contact-image" src="assets/img/overhead.JPG" class="img-fluid box-shadow"/> </section>
--- layout: default title: Contact --- <section class="jumbotron text-center"> <div class="container"> <h1 class="jumbotron-heading">Contact</h1> <p class="lead text-muted">Contact us through e-mail at <a href="mailto:uavaustin@gmail.com">uavaustin@gmail.com</a>, or connect with us on <a href="https://www.facebook.com/uavaustin/" target="_blank">Facebook</a>, <a href="https://www.instagram.com/uavaustin/" target="_blank">Instagram</a>, <a href="https://www.linkedin.com/company/unmanned-aerial-vehicles-austin/" target="_blank">LinkedIn</a>, <a href="https://twitter.com/uavaustin" target="_blank">Twitter</a>, and <a href="https://github.com/uavaustin" target="_blank">GitHub</a>.</p> </div> <img id="contact-image" src="assets/img/overhead.JPG" class="img-fluid box-shadow"/> <div class="container"> <p class="text-muted lead">Website designed by <a href="https://ojas.fi/">Ojas Ahuja</a>.</p> </div> </section>
Add credit for website design
Add credit for website design
HTML
mit
uavaustin/uavaustin.org,uavaustin/uavaustin.org
html
## Code Before: --- layout: default title: Contact --- <section class="jumbotron text-center"> <div class="container"> <h1 class="jumbotron-heading">Contact</h1> <p class="lead text-muted">Contact us through e-mail at <a href="mailto:uavaustin@gmail.com">uavaustin@gmail.com</a>, or connect with us on <a href="https://www.facebook.com/uavaustin/" target="_blank">Facebook</a>, <a href="https://www.instagram.com/uavaustin/" target="_blank">Instagram</a>, <a href="https://www.linkedin.com/company/unmanned-aerial-vehicles-austin/" target="_blank">LinkedIn</a>, <a href="https://twitter.com/uavaustin" target="_blank">Twitter</a>, and <a href="https://github.com/uavaustin" target="_blank">GitHub</a>.</p> </div> <img id="contact-image" src="assets/img/overhead.JPG" class="img-fluid box-shadow"/> </section> ## Instruction: Add credit for website design ## Code After: --- layout: default title: Contact --- <section class="jumbotron text-center"> <div class="container"> <h1 class="jumbotron-heading">Contact</h1> <p class="lead text-muted">Contact us through e-mail at <a href="mailto:uavaustin@gmail.com">uavaustin@gmail.com</a>, or connect with us on <a href="https://www.facebook.com/uavaustin/" target="_blank">Facebook</a>, <a href="https://www.instagram.com/uavaustin/" target="_blank">Instagram</a>, <a href="https://www.linkedin.com/company/unmanned-aerial-vehicles-austin/" target="_blank">LinkedIn</a>, <a href="https://twitter.com/uavaustin" target="_blank">Twitter</a>, and <a href="https://github.com/uavaustin" target="_blank">GitHub</a>.</p> </div> <img id="contact-image" src="assets/img/overhead.JPG" class="img-fluid box-shadow"/> <div class="container"> <p class="text-muted lead">Website designed by <a href="https://ojas.fi/">Ojas Ahuja</a>.</p> </div> </section>
b74de19a6f3ddf8813efae9a67659ca287b31472
lib/cloud_formation/bridge/cli.rb
lib/cloud_formation/bridge/cli.rb
require 'thor' require 'cloud_formation/bridge/poller' require 'cloud_formation/bridge/util' module CloudFormation module Bridge class Cli < Thor desc "start QUEUE_NAME", "Starts watching this specific SQS queue" def start(queue_name) STDOUT.sync = true poller = CloudFormation::Bridge::Poller.new(queue_name) poller.start end end end end
require 'thor' require 'cloud_formation/bridge/poller' require 'cloud_formation/bridge/util' require 'cloud_formation/bridge/version' module CloudFormation module Bridge class Cli < Thor desc "start QUEUE_NAME", "Starts watching this specific SQS queue" def start(queue_name) STDOUT.sync = true Util::LOGGER.info("Starting cfn-bridge with queue #{queue_name} - version #{CloudFormation::Bridge::VERSION}") poller = CloudFormation::Bridge::Poller.new(queue_name) poller.start end end end end
Print version when you start
Print version when you start
Ruby
mit
TheNeatCompany/cfn-bridge,DomainGroupOSS/cfn-bridge
ruby
## Code Before: require 'thor' require 'cloud_formation/bridge/poller' require 'cloud_formation/bridge/util' module CloudFormation module Bridge class Cli < Thor desc "start QUEUE_NAME", "Starts watching this specific SQS queue" def start(queue_name) STDOUT.sync = true poller = CloudFormation::Bridge::Poller.new(queue_name) poller.start end end end end ## Instruction: Print version when you start ## Code After: require 'thor' require 'cloud_formation/bridge/poller' require 'cloud_formation/bridge/util' require 'cloud_formation/bridge/version' module CloudFormation module Bridge class Cli < Thor desc "start QUEUE_NAME", "Starts watching this specific SQS queue" def start(queue_name) STDOUT.sync = true Util::LOGGER.info("Starting cfn-bridge with queue #{queue_name} - version #{CloudFormation::Bridge::VERSION}") poller = CloudFormation::Bridge::Poller.new(queue_name) poller.start end end end end
3b65e71015ecea61c7eb6ce86eaef7135486aadb
Source/sourcekitten/main.swift
Source/sourcekitten/main.swift
// // main.swift // SourceKitten // // Created by JP Simard on 2015-01-03. // Copyright (c) 2015 SourceKitten. All rights reserved. // import Darwin import Commandant // `sourcekitd_set_notification_handler()` set the handler to be executed on main thread queue. // So, we vacate main thread to `dispatch_main()`. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(VersionCommand()) let helpCommand = HelpCommand(registry: registry) registry.register(helpCommand) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatch_main()
// // main.swift // SourceKitten // // Created by JP Simard on 2015-01-03. // Copyright (c) 2015 SourceKitten. All rights reserved. // import Darwin import Foundation import Commandant // `sourcekitd_set_notification_handler()` set the handler to be executed on main thread queue. // So, we vacate main thread to `dispatch_main()`. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(VersionCommand()) let helpCommand = HelpCommand(registry: registry) registry.register(helpCommand) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatch_main()
Fix build error on `make spm_test`
Fix build error on `make spm_test`
Swift
mit
jpsim/SourceKitten,jpsim/SourceKitten,jpsim/SourceKitten,jpsim/SourceKitten,jpsim/SourceKitten
swift
## Code Before: // // main.swift // SourceKitten // // Created by JP Simard on 2015-01-03. // Copyright (c) 2015 SourceKitten. All rights reserved. // import Darwin import Commandant // `sourcekitd_set_notification_handler()` set the handler to be executed on main thread queue. // So, we vacate main thread to `dispatch_main()`. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(VersionCommand()) let helpCommand = HelpCommand(registry: registry) registry.register(helpCommand) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatch_main() ## Instruction: Fix build error on `make spm_test` ## Code After: // // main.swift // SourceKitten // // Created by JP Simard on 2015-01-03. // Copyright (c) 2015 SourceKitten. All rights reserved. // import Darwin import Foundation import Commandant // `sourcekitd_set_notification_handler()` set the handler to be executed on main thread queue. // So, we vacate main thread to `dispatch_main()`. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)) { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(VersionCommand()) let helpCommand = HelpCommand(registry: registry) registry.register(helpCommand) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatch_main()
2364d568cde0b70f8982b89f900df69dbcea083a
routes/cosimg.js
routes/cosimg.js
var Cosimg = require('../models/cosimg'); var express = require('express'); var router = express.Router(); //retrieve all router.route('/cosimg').get(function (req, res) { Cosimg.find({}).exec(function (err, data) { if(err) { return res.send(err); } res.json(data); }); }); //add new router.route('/cosimg').post(function (req, res) { var movie = new Cosimg(req.body); movie.save(function (err) { if(err) { return res.send(err); } res.json({message: 'New cosimg added'}); }); }); //retrieve by id router.route('/cosimg/:id').get(function (req, res) { Cosimg.findOne({ _id: req.params.id }, function (err, movie) { if(err) { return res.send(err); } res.json(movie); }); }); module.exports = router;
var Cosimg = require('../models/cosimg'); var express = require('express'); var router = express.Router(); //retrieve all router.route('/cosimgs').get(function (req, res) { Cosimg.find({}).exec(function (err, data) { if(err) { return res.send(err); } res.json(data); }); }); //add new router.route('/cosimgs').post(function (req, res) { var cosimg = new Cosimg(req.body); cosimg.save(function (err) { if(err) { return res.send(err); } res.json({message: 'New cosimg added'}); }); }); //retrieve by id router.route('/cosimgs/:id').get(function (req, res) { Cosimg.findOne({ _id: req.params.id }, function (err, cosimg) { if(err) { return res.send(err); } res.json(cosimg); }); }); //deleting movie by id router.route('/cosimgs/:id').delete( function (req, res) { Cosimg.remove({_id: req.params.id}, function (err) { if(err) { return res.send(err); } res.json({ message: 'Cosimg deleted'}); }); }); module.exports = router;
Fix routes, add new ones
Fix routes, add new ones
JavaScript
mit
harunurhan/open-cosmics-mean,harunurhan/open-cosmics-mean
javascript
## Code Before: var Cosimg = require('../models/cosimg'); var express = require('express'); var router = express.Router(); //retrieve all router.route('/cosimg').get(function (req, res) { Cosimg.find({}).exec(function (err, data) { if(err) { return res.send(err); } res.json(data); }); }); //add new router.route('/cosimg').post(function (req, res) { var movie = new Cosimg(req.body); movie.save(function (err) { if(err) { return res.send(err); } res.json({message: 'New cosimg added'}); }); }); //retrieve by id router.route('/cosimg/:id').get(function (req, res) { Cosimg.findOne({ _id: req.params.id }, function (err, movie) { if(err) { return res.send(err); } res.json(movie); }); }); module.exports = router; ## Instruction: Fix routes, add new ones ## Code After: var Cosimg = require('../models/cosimg'); var express = require('express'); var router = express.Router(); //retrieve all router.route('/cosimgs').get(function (req, res) { Cosimg.find({}).exec(function (err, data) { if(err) { return res.send(err); } res.json(data); }); }); //add new router.route('/cosimgs').post(function (req, res) { var cosimg = new Cosimg(req.body); cosimg.save(function (err) { if(err) { return res.send(err); } res.json({message: 'New cosimg added'}); }); }); //retrieve by id router.route('/cosimgs/:id').get(function (req, res) { Cosimg.findOne({ _id: req.params.id }, function (err, cosimg) { if(err) { return res.send(err); } res.json(cosimg); }); }); //deleting movie by id router.route('/cosimgs/:id').delete( function (req, res) { Cosimg.remove({_id: req.params.id}, function (err) { if(err) { return res.send(err); } res.json({ message: 'Cosimg deleted'}); }); }); module.exports = router;
d3b758cfe512967e12b13cf7a07e3dec21e4c58d
sqlite3/pubspec.yaml
sqlite3/pubspec.yaml
name: sqlite3 description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi version: 0.1.10-nullsafety.0 homepage: https://github.com/simolus3/sqlite3.dart/tree/master/sqlite3 issue_tracker: https://github.com/simolus3/sqlite3.dart/issues environment: sdk: '>=2.12.0-0 <3.0.0' dependencies: collection: ^1.15.0-nullsafety.5 ffi: ^0.3.0-nullsafety meta: ^1.3.0-nullsafety dev_dependencies: build_ffi_generator: git: url: https://github.com/simolus3/build_ffi_generator.git build_runner: ^1.10.4 extra_pedantic: ^1.2.0 path: ^1.8.0-nullsafety test: ^1.16.0-nullsafety
name: sqlite3 description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi version: 0.1.10-nullsafety.0 homepage: https://github.com/simolus3/sqlite3.dart/tree/master/sqlite3 issue_tracker: https://github.com/simolus3/sqlite3.dart/issues environment: sdk: '>=2.12.0-0 <3.0.0' dependencies: collection: ^1.15.0 ffi: ^0.3.0-nullsafety meta: ^1.3.0 dev_dependencies: build_ffi_generator: git: url: https://github.com/simolus3/build_ffi_generator.git build_runner: ^1.10.4 extra_pedantic: ^1.2.0 path: ^1.8.0 test: ^1.16.0
Use stable null-safe libraries where possible
Use stable null-safe libraries where possible
YAML
mit
simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart,simolus3/sqlite3.dart
yaml
## Code Before: name: sqlite3 description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi version: 0.1.10-nullsafety.0 homepage: https://github.com/simolus3/sqlite3.dart/tree/master/sqlite3 issue_tracker: https://github.com/simolus3/sqlite3.dart/issues environment: sdk: '>=2.12.0-0 <3.0.0' dependencies: collection: ^1.15.0-nullsafety.5 ffi: ^0.3.0-nullsafety meta: ^1.3.0-nullsafety dev_dependencies: build_ffi_generator: git: url: https://github.com/simolus3/build_ffi_generator.git build_runner: ^1.10.4 extra_pedantic: ^1.2.0 path: ^1.8.0-nullsafety test: ^1.16.0-nullsafety ## Instruction: Use stable null-safe libraries where possible ## Code After: name: sqlite3 description: Provides lightweight yet convenient bindings to SQLite by using dart:ffi version: 0.1.10-nullsafety.0 homepage: https://github.com/simolus3/sqlite3.dart/tree/master/sqlite3 issue_tracker: https://github.com/simolus3/sqlite3.dart/issues environment: sdk: '>=2.12.0-0 <3.0.0' dependencies: collection: ^1.15.0 ffi: ^0.3.0-nullsafety meta: ^1.3.0 dev_dependencies: build_ffi_generator: git: url: https://github.com/simolus3/build_ffi_generator.git build_runner: ^1.10.4 extra_pedantic: ^1.2.0 path: ^1.8.0 test: ^1.16.0
3aaf67741f6f432d35b026bff71c91f0762a4cf7
requirements.test.txt
requirements.test.txt
git+https://github.com/F5Networks/pytest-symbols.git # Test Requirements f5-sdk==3.0.3 f5-icontrol-rest==1.3.4 ipaddress==1.0.17 PyJWT==1.4.0 mock==2.0.0 pytest==3.0.5 pytest-cov>=2.2.1 pytest-benchmark==3.1.1 python-coveralls==2.7.0 pyOpenSSL==17.5.0 requests-mock==1.2.0 flake8 pylint netaddr q PyYAML==3.13 simplejson jsonschema==3.0.0 jsonpatch==1.16 python-coveralls==2.7.0 requests==2.20.0 asn1crypto==0.24.0 certifi==2018.11.29 chardet==3.0.4 enum34==1.1.6 cryptography==2.5 idna==2.7 pycparser==2.19 urllib3==1.24.2 six==1.12.0 attrs==18.2.0 cffi==1.12.2 pyrsistent==0.14.11
f5-sdk==3.0.3 f5-icontrol-rest==1.3.4 ipaddress==1.0.17 PyJWT==1.4.0 mock==2.0.0 pytest==4.6.11 pytest-cov>=2.2.1 pytest-benchmark==3.1.1 python-coveralls==2.9.3 pyOpenSSL==17.5.0 requests-mock==1.2.0 flake8 pylint netaddr q PyYAML==5.3.1 simplejson jsonschema==3.0.0 jsonpatch==1.16 requests==2.20.0 asn1crypto==0.24.0 certifi==2018.11.29 chardet==3.0.4 enum34==1.1.6 cryptography==2.5 idna==2.7 pycparser==2.19 urllib3==1.24.2 six==1.15.0 attrs==18.2.0 cffi==1.12.2 pyrsistent==0.14.11
Update PyYAML version in requirements
Update PyYAML version in requirements Signed-off-by: Subba Reddy Veeramreddy <38948bf3ca3af6d8dac1ec2ed9128aded2d19a49@gmail.com>
Text
apache-2.0
f5devcentral/f5-cccl,f5devcentral/f5-cccl
text
## Code Before: git+https://github.com/F5Networks/pytest-symbols.git # Test Requirements f5-sdk==3.0.3 f5-icontrol-rest==1.3.4 ipaddress==1.0.17 PyJWT==1.4.0 mock==2.0.0 pytest==3.0.5 pytest-cov>=2.2.1 pytest-benchmark==3.1.1 python-coveralls==2.7.0 pyOpenSSL==17.5.0 requests-mock==1.2.0 flake8 pylint netaddr q PyYAML==3.13 simplejson jsonschema==3.0.0 jsonpatch==1.16 python-coveralls==2.7.0 requests==2.20.0 asn1crypto==0.24.0 certifi==2018.11.29 chardet==3.0.4 enum34==1.1.6 cryptography==2.5 idna==2.7 pycparser==2.19 urllib3==1.24.2 six==1.12.0 attrs==18.2.0 cffi==1.12.2 pyrsistent==0.14.11 ## Instruction: Update PyYAML version in requirements Signed-off-by: Subba Reddy Veeramreddy <38948bf3ca3af6d8dac1ec2ed9128aded2d19a49@gmail.com> ## Code After: f5-sdk==3.0.3 f5-icontrol-rest==1.3.4 ipaddress==1.0.17 PyJWT==1.4.0 mock==2.0.0 pytest==4.6.11 pytest-cov>=2.2.1 pytest-benchmark==3.1.1 python-coveralls==2.9.3 pyOpenSSL==17.5.0 requests-mock==1.2.0 flake8 pylint netaddr q PyYAML==5.3.1 simplejson jsonschema==3.0.0 jsonpatch==1.16 requests==2.20.0 asn1crypto==0.24.0 certifi==2018.11.29 chardet==3.0.4 enum34==1.1.6 cryptography==2.5 idna==2.7 pycparser==2.19 urllib3==1.24.2 six==1.15.0 attrs==18.2.0 cffi==1.12.2 pyrsistent==0.14.11
978c6950b7166048b3718c0bbb1df3e884b12f6b
update_stdlib.sh
update_stdlib.sh
CPYTHON=${1-$HOME/cpython} if [ ! -d $CPYTHON ] then echo Bad destination $CPYTHON exit 1 fi if [ ! -f asyncio/__init__.py ] then echo Bad current directory exit 1 fi maybe_copy() { SRC=$1 DST=$CPYTHON/$2 if cmp $DST $SRC then return fi echo ======== $SRC === $DST ======== diff -u $DST $SRC echo -n "Copy $SRC? [y/N] " read X case $X in [yY]*) echo Copying $SRC; cp $SRC $DST;; *) echo Not copying $SRC;; esac } for i in `(cd asyncio && ls *.py)` do if [ $i == selectors.py ] then maybe_copy asyncio/$i Lib/$i else maybe_copy asyncio/$i Lib/asyncio/$i fi done for i in `(cd tests && ls *.py sample.???)` do if [ $i == test_selectors.py ] then continue fi maybe_copy tests/$i Lib/test/test_asyncio/$i done maybe_copy overlapped.c Modules/overlapped.c
CPYTHON=${1-$HOME/cpython} if [ ! -d $CPYTHON ] then echo Bad destination $CPYTHON exit 1 fi if [ ! -f asyncio/__init__.py ] then echo Bad current directory exit 1 fi maybe_copy() { SRC=$1 DST=$CPYTHON/$2 if cmp $DST $SRC then return fi echo ======== $SRC === $DST ======== diff -u $DST $SRC echo -n "Copy $SRC? [y/N/back] " read X case $X in [yY]*) echo Copying $SRC; cp $SRC $DST;; back) echo Copying TO $SRC; cp $DST $SRC;; *) echo Not copying $SRC;; esac } for i in `(cd asyncio && ls *.py)` do if [ $i == selectors.py ] then maybe_copy asyncio/$i Lib/$i else maybe_copy asyncio/$i Lib/asyncio/$i fi done for i in `(cd tests && ls *.py sample.???)` do if [ $i == test_selectors.py ] then continue fi maybe_copy tests/$i Lib/test/test_asyncio/$i done maybe_copy overlapped.c Modules/overlapped.c
Add 'back' option to update script.
Add 'back' option to update script.
Shell
apache-2.0
leetreveil/tulip,leetreveil/tulip,overcastcloud/trollius,overcastcloud/trollius,leetreveil/tulip,overcastcloud/trollius
shell
## Code Before: CPYTHON=${1-$HOME/cpython} if [ ! -d $CPYTHON ] then echo Bad destination $CPYTHON exit 1 fi if [ ! -f asyncio/__init__.py ] then echo Bad current directory exit 1 fi maybe_copy() { SRC=$1 DST=$CPYTHON/$2 if cmp $DST $SRC then return fi echo ======== $SRC === $DST ======== diff -u $DST $SRC echo -n "Copy $SRC? [y/N] " read X case $X in [yY]*) echo Copying $SRC; cp $SRC $DST;; *) echo Not copying $SRC;; esac } for i in `(cd asyncio && ls *.py)` do if [ $i == selectors.py ] then maybe_copy asyncio/$i Lib/$i else maybe_copy asyncio/$i Lib/asyncio/$i fi done for i in `(cd tests && ls *.py sample.???)` do if [ $i == test_selectors.py ] then continue fi maybe_copy tests/$i Lib/test/test_asyncio/$i done maybe_copy overlapped.c Modules/overlapped.c ## Instruction: Add 'back' option to update script. ## Code After: CPYTHON=${1-$HOME/cpython} if [ ! -d $CPYTHON ] then echo Bad destination $CPYTHON exit 1 fi if [ ! -f asyncio/__init__.py ] then echo Bad current directory exit 1 fi maybe_copy() { SRC=$1 DST=$CPYTHON/$2 if cmp $DST $SRC then return fi echo ======== $SRC === $DST ======== diff -u $DST $SRC echo -n "Copy $SRC? [y/N/back] " read X case $X in [yY]*) echo Copying $SRC; cp $SRC $DST;; back) echo Copying TO $SRC; cp $DST $SRC;; *) echo Not copying $SRC;; esac } for i in `(cd asyncio && ls *.py)` do if [ $i == selectors.py ] then maybe_copy asyncio/$i Lib/$i else maybe_copy asyncio/$i Lib/asyncio/$i fi done for i in `(cd tests && ls *.py sample.???)` do if [ $i == test_selectors.py ] then continue fi maybe_copy tests/$i Lib/test/test_asyncio/$i done maybe_copy overlapped.c Modules/overlapped.c
cbd9622719e477ac693abf58fd3e20b1398e4d6a
src/PaginationStream.coffee
src/PaginationStream.coffee
reqr = if global.GENTLY then GENTLY.hijack(require) else require stream = reqr "stream" class PaginationStream extends stream.Readable constructor: (fetchPage) -> super objectMode: true @_fetchPage = fetchPage @_pageno = 0 @_items = [] @_itemsRead = 0 _read: -> if @_items.length > 0 @_itemsRead++ return process.nextTick => @push @_items.pop() if @_nitems? && @_itemsRead >= @_nitems return process.nextTick => @push null @_fetchPage ++@_pageno, (err, result) => if err? return @emit "error", err @_nitems = result.count @_items = (result.items[i] for i in [result.items.length-1 .. 0]) return @_read() module.exports = PaginationStream
reqr = if global.GENTLY then GENTLY.hijack(require) else require TransloaditClient = reqr "./TransloaditClient" stream = reqr "stream" class PaginationStream extends stream.Readable constructor: (@_fetchPage) -> super objectMode: true @_pageno = 0 @_items = [] @_itemsRead = 0 _read: -> if @_items.length > 0 @_itemsRead++ return process.nextTick => @push @_items.pop() if @_nitems? && @_itemsRead >= @_nitems return process.nextTick => @push null @_fetchPage ++@_pageno, (err, result) => if err? return @emit "error", err @_nitems = result.count @_items = (result.items[i] for i in [result.items.length-1 .. 0]) return @_read() module.exports = PaginationStream
Revert "Some nice warnings away"
Revert "Some nice warnings away" This reverts commit 1e04dc556af840e0e4571e287135e510245524d7.
CoffeeScript
mit
transloadit/node-sdk,adrusi/node-sdk,transloadit/node-sdk
coffeescript
## Code Before: reqr = if global.GENTLY then GENTLY.hijack(require) else require stream = reqr "stream" class PaginationStream extends stream.Readable constructor: (fetchPage) -> super objectMode: true @_fetchPage = fetchPage @_pageno = 0 @_items = [] @_itemsRead = 0 _read: -> if @_items.length > 0 @_itemsRead++ return process.nextTick => @push @_items.pop() if @_nitems? && @_itemsRead >= @_nitems return process.nextTick => @push null @_fetchPage ++@_pageno, (err, result) => if err? return @emit "error", err @_nitems = result.count @_items = (result.items[i] for i in [result.items.length-1 .. 0]) return @_read() module.exports = PaginationStream ## Instruction: Revert "Some nice warnings away" This reverts commit 1e04dc556af840e0e4571e287135e510245524d7. ## Code After: reqr = if global.GENTLY then GENTLY.hijack(require) else require TransloaditClient = reqr "./TransloaditClient" stream = reqr "stream" class PaginationStream extends stream.Readable constructor: (@_fetchPage) -> super objectMode: true @_pageno = 0 @_items = [] @_itemsRead = 0 _read: -> if @_items.length > 0 @_itemsRead++ return process.nextTick => @push @_items.pop() if @_nitems? && @_itemsRead >= @_nitems return process.nextTick => @push null @_fetchPage ++@_pageno, (err, result) => if err? return @emit "error", err @_nitems = result.count @_items = (result.items[i] for i in [result.items.length-1 .. 0]) return @_read() module.exports = PaginationStream
3599993713d4f850a467bf4c2c8a4136d325b756
.travis.yml
.travis.yml
language: csharp solution: JsonLD.sln script: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" after_success: - curl -s https://codecov.io/bash > codecov - chmod +x codecov - ./codecov -f "*opencover.xml"
language: csharp env: global: - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet: 2.1.401 script: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" after_success: - curl -s https://codecov.io/bash > codecov - chmod +x codecov - ./codecov -f "*opencover.xml"
Set up dotnet version and global env vars
Set up dotnet version and global env vars
YAML
apache-2.0
NuGet/json-ld.net
yaml
## Code Before: language: csharp solution: JsonLD.sln script: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" after_success: - curl -s https://codecov.io/bash > codecov - chmod +x codecov - ./codecov -f "*opencover.xml" ## Instruction: Set up dotnet version and global env vars ## Code After: language: csharp env: global: - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 - DOTNET_CLI_TELEMETRY_OPTOUT=1 dotnet: 2.1.401 script: dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[JsonLD.Test*]*" after_success: - curl -s https://codecov.io/bash > codecov - chmod +x codecov - ./codecov -f "*opencover.xml"
e97b45438dc2c3e265d1ed3e858177c8d14ff814
src/prepare_galaxy_tools/prepare_assigne_taxonomy_to_non_rRNA_tools.sh
src/prepare_galaxy_tools/prepare_assigne_taxonomy_to_non_rRNA_tools.sh
. ./src/prepare_galaxy_tools/functions.sh galaxy_tool_dir=$1 tool_dir=$2 current_dir=`pwd` section_dir=assigne_taxonomy_to_non_rRNA echo "Assign taxonomy to non rRNA..." create_tool_section_dir $galaxy_tool_dir/$section_dir ## metaphlan echo " Metaphlan..." metaphlan=$section_dir/metaphlan cd $galaxy_tool_dir/ if [ ! -d "metaphlan/" ]; then echo " cloning" hg clone https://toolshed.g2.bx.psu.edu/repos/dannon/metaphlan else echo " updating" cd "metaphlan/" hg pull cd ../ fi ## metaphlan 2 echo " Metaphlan 2..." metaphlan2_dir=$section_dir/metaphlan2 create_copy_tool_dir $tool_dir/$metaphlan2_dir $galaxy_tool_dir/$metaphlan2_dir cd $galaxy_tool_dir/$metaphlan2_dir if [ ! -d "metaphlan2/" ]; then echo " cloning" #hg clone https://bitbucket.org/biobakery/metaphlan2 else echo " updating" cd "metaphlan2/" #hg pull cd ../ fi cd $current_dir
. ./src/prepare_galaxy_tools/functions.sh galaxy_tool_dir=$1 tool_dir=$2 current_dir=`pwd` section_dir=assigne_taxonomy_to_non_rRNA echo "Assign taxonomy to non rRNA..." create_tool_section_dir $galaxy_tool_dir/$section_dir ## metaphlan echo " Metaphlan..." cd $galaxy_tool_dir/$section_dir if [ ! -d "metaphlan/" ]; then echo " cloning" hg clone https://toolshed.g2.bx.psu.edu/repos/dannon/metaphlan else echo " updating" cd "metaphlan/" hg pull cd ../ fi ## metaphlan 2 echo " Metaphlan 2..." metaphlan2_dir=$section_dir/metaphlan2 create_copy_tool_dir $tool_dir/$metaphlan2_dir $galaxy_tool_dir/$metaphlan2_dir cd $galaxy_tool_dir/$metaphlan2_dir if [ ! -d "metaphlan2/" ]; then echo " cloning" #hg clone https://bitbucket.org/biobakery/metaphlan2 else echo " updating" cd "metaphlan2/" #hg pull cd ../ fi cd $current_dir
Change dir move for metaphlan wrapper
Change dir move for metaphlan wrapper
Shell
apache-2.0
ASaiM/framework,ASaiM/framework
shell
## Code Before: . ./src/prepare_galaxy_tools/functions.sh galaxy_tool_dir=$1 tool_dir=$2 current_dir=`pwd` section_dir=assigne_taxonomy_to_non_rRNA echo "Assign taxonomy to non rRNA..." create_tool_section_dir $galaxy_tool_dir/$section_dir ## metaphlan echo " Metaphlan..." metaphlan=$section_dir/metaphlan cd $galaxy_tool_dir/ if [ ! -d "metaphlan/" ]; then echo " cloning" hg clone https://toolshed.g2.bx.psu.edu/repos/dannon/metaphlan else echo " updating" cd "metaphlan/" hg pull cd ../ fi ## metaphlan 2 echo " Metaphlan 2..." metaphlan2_dir=$section_dir/metaphlan2 create_copy_tool_dir $tool_dir/$metaphlan2_dir $galaxy_tool_dir/$metaphlan2_dir cd $galaxy_tool_dir/$metaphlan2_dir if [ ! -d "metaphlan2/" ]; then echo " cloning" #hg clone https://bitbucket.org/biobakery/metaphlan2 else echo " updating" cd "metaphlan2/" #hg pull cd ../ fi cd $current_dir ## Instruction: Change dir move for metaphlan wrapper ## Code After: . ./src/prepare_galaxy_tools/functions.sh galaxy_tool_dir=$1 tool_dir=$2 current_dir=`pwd` section_dir=assigne_taxonomy_to_non_rRNA echo "Assign taxonomy to non rRNA..." create_tool_section_dir $galaxy_tool_dir/$section_dir ## metaphlan echo " Metaphlan..." cd $galaxy_tool_dir/$section_dir if [ ! -d "metaphlan/" ]; then echo " cloning" hg clone https://toolshed.g2.bx.psu.edu/repos/dannon/metaphlan else echo " updating" cd "metaphlan/" hg pull cd ../ fi ## metaphlan 2 echo " Metaphlan 2..." metaphlan2_dir=$section_dir/metaphlan2 create_copy_tool_dir $tool_dir/$metaphlan2_dir $galaxy_tool_dir/$metaphlan2_dir cd $galaxy_tool_dir/$metaphlan2_dir if [ ! -d "metaphlan2/" ]; then echo " cloning" #hg clone https://bitbucket.org/biobakery/metaphlan2 else echo " updating" cd "metaphlan2/" #hg pull cd ../ fi cd $current_dir
e65b494ad48062560d4724a0461644cb31a7e4ce
manifests/acceptance-tests-job.yml
manifests/acceptance-tests-job.yml
jobs: - name: acceptance_tests instances: 1 lifecycle: errand networks: - name: cf_private resource_pool: small_z1 templates: - name: acceptance-tests release: cf properties: acceptance_tests: admin_password: <%= ENV.fetch('CF_PASSWORD', 'admin') %> admin_user: <%= ENV.fetch('CF_USER', 'admin') %> api: api.<%= ENV.fetch('CF_DOMAIN', 'system.domain') %> apps_domain: <%= ENV.fetch('CF_DOMAIN', 'system.domain') %> nodes: 5 skip_ssl_validation: true use_http: true
jobs: - name: acceptance_tests instances: 1 lifecycle: errand networks: - name: cf_private resource_pool: small_z1 templates: - name: acceptance-tests release: cf properties: acceptance_tests: admin_password: <%= ENV.fetch('CF_PASSWORD', 'admin') %> admin_user: <%= ENV.fetch('CF_USER', 'admin') %> api: api.<%= ENV.fetch('CF_DOMAIN', 'system.domain') %> apps_domain: <%= ENV.fetch('CF_DOMAIN', 'system.domain') %> nodes: 5 skip_ssl_validation: true use_http: true include_detect: false
Exclude CAT suite 'detect' to make pipeline green
Exclude CAT suite 'detect' to make pipeline green There was a recent addition to CATs: https://github.com/cloudfoundry/cf-acceptance-tests/commit/112fab9f0d0a6e7a65832afa4a8d9e821cef8fad which seems to need special setup. Someone already marked this test as pending as it seems to be problematic (https://github.com/cloudfoundry/cf-acceptance-tests/commit/366101cbdd581acab462254d7774c704c610f28a). However, this change will only become available in the next cf-release. It's also unclear who made that change. We should watch this issue closely and re-include this test when possible.
YAML
apache-2.0
cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci,cloudfoundry-incubator/bits-service-ci
yaml
## Code Before: jobs: - name: acceptance_tests instances: 1 lifecycle: errand networks: - name: cf_private resource_pool: small_z1 templates: - name: acceptance-tests release: cf properties: acceptance_tests: admin_password: <%= ENV.fetch('CF_PASSWORD', 'admin') %> admin_user: <%= ENV.fetch('CF_USER', 'admin') %> api: api.<%= ENV.fetch('CF_DOMAIN', 'system.domain') %> apps_domain: <%= ENV.fetch('CF_DOMAIN', 'system.domain') %> nodes: 5 skip_ssl_validation: true use_http: true ## Instruction: Exclude CAT suite 'detect' to make pipeline green There was a recent addition to CATs: https://github.com/cloudfoundry/cf-acceptance-tests/commit/112fab9f0d0a6e7a65832afa4a8d9e821cef8fad which seems to need special setup. Someone already marked this test as pending as it seems to be problematic (https://github.com/cloudfoundry/cf-acceptance-tests/commit/366101cbdd581acab462254d7774c704c610f28a). However, this change will only become available in the next cf-release. It's also unclear who made that change. We should watch this issue closely and re-include this test when possible. ## Code After: jobs: - name: acceptance_tests instances: 1 lifecycle: errand networks: - name: cf_private resource_pool: small_z1 templates: - name: acceptance-tests release: cf properties: acceptance_tests: admin_password: <%= ENV.fetch('CF_PASSWORD', 'admin') %> admin_user: <%= ENV.fetch('CF_USER', 'admin') %> api: api.<%= ENV.fetch('CF_DOMAIN', 'system.domain') %> apps_domain: <%= ENV.fetch('CF_DOMAIN', 'system.domain') %> nodes: 5 skip_ssl_validation: true use_http: true include_detect: false
e21b17fd277b9a2424ea2b3f727325d1df65c713
src/Illuminate/Mail/Transport/SesTransport.php
src/Illuminate/Mail/Transport/SesTransport.php
<?php namespace Illuminate\Mail\Transport; use Aws\Ses\SesClient; use Swift_Mime_SimpleMessage; class SesTransport extends Transport { /** * The Amazon SES instance. * * @var \Aws\Ses\SesClient */ protected $ses; /** * Create a new SES transport instance. * * @param \Aws\Ses\SesClient $ses * @return void */ public function __construct(SesClient $ses) { $this->ses = $ses; } /** * {@inheritdoc} */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { $this->beforeSendPerformed($message); $headers = $message->getHeaders(); $headers->addTextHeader('X-SES-Message-ID', $this->ses->sendRawEmail([ 'Source' => key($message->getSender() ?: $message->getFrom()), 'RawMessage' => [ 'Data' => $message->toString(), ], ])->get('MessageId')); $this->sendPerformed($message); return $this->numberOfRecipients($message); } }
<?php namespace Illuminate\Mail\Transport; use Aws\Ses\SesClient; use Swift_Mime_SimpleMessage; class SesTransport extends Transport { /** * The Amazon SES instance. * * @var \Aws\Ses\SesClient */ protected $ses; /** * Transmission options. * * @var array */ protected $options = []; /** * Create a new SES transport instance. * * @param \Aws\Ses\SesClient $ses * @param array $options * @return void */ public function __construct(SesClient $ses, $options = []) { $this->ses = $ses; $this->options = $options; } /** * {@inheritdoc} */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { $this->beforeSendPerformed($message); $result = $this->ses->sendRawEmail( array_merge( $this->options, [ 'Source' => key($message->getSender() ?: $message->getFrom()), 'RawMessage' => [ 'Data' => $message->toString(), ], ] ) ); $message->getHeaders()->addTextHeader('X-SES-Message-ID', $result->get('MessageId')); $this->sendPerformed($message); return $this->numberOfRecipients($message); } /** * Get the transmission options being used by the transport. * * @return array */ public function getOptions() { return $this->options; } /** * Set the transmission options being used by the transport. * * @param array $options * @return array */ public function setOptions(array $options) { return $this->options = $options; } }
Add options for SES’s sendRawEmail
Add options for SES’s sendRawEmail
PHP
mit
BePsvPT-Fork/framework,morrislaptop/framework,dwightwatson/framework,leo108/laravel_framework,driesvints/framework,cviebrock/framework,arturock/framework,mul14/laravel-framework,stevebauman/framework,laravel/framework,cybercog/framework,cviebrock/framework,samlev/framework,tjbp/framework,vlakoff/framework,barryvdh/framework,gms8994/framework,laravel/framework,bytestream/framework,vlakoff/framework,leo108/laravel_framework,rodrigopedra/framework,srmkliveforks/framework,srmkliveforks/framework,halaei/framework,morrislaptop/framework,barryvdh/framework,crynobone/framework,notebowl/laravel-framework,jerguslejko/framework,halaei/framework,cviebrock/framework,JamesForks/framework,lucasmichot/framework,cybercog/framework,barryvdh/framework,stevebauman/framework,rodrigopedra/framework,ChristopheB/framework,gms8994/framework,jerguslejko/framework,mul14/laravel-framework,jerguslejko/framework,bytestream/framework,jerguslejko/framework,BePsvPT-Fork/framework,tjbp/framework,tomschlick/framework,crynobone/framework,dwightwatson/framework,hafezdivandari/framework,gms8994/framework,JamesForks/framework,stidges/framework,tomschlick/framework,notebowl/laravel-framework,stidges/framework,halaei/framework,ChristopheB/framework,mul14/laravel-framework,mul14/laravel-framework,rodrigopedra/framework,lucasmichot/framework,arturock/framework,rodrigopedra/framework,hafezdivandari/framework,BePsvPT-Fork/framework,stidges/framework,arturock/framework,srmkliveforks/framework,cybercog/framework,JosephSilber/framework,stidges/framework,tomschlick/framework,srmkliveforks/framework,BePsvPT-Fork/framework,barryvdh/framework,driesvints/framework,gms8994/framework,ChristopheB/framework,cviebrock/framework,samlev/framework,vlakoff/framework,JosephSilber/framework,tjbp/framework
php
## Code Before: <?php namespace Illuminate\Mail\Transport; use Aws\Ses\SesClient; use Swift_Mime_SimpleMessage; class SesTransport extends Transport { /** * The Amazon SES instance. * * @var \Aws\Ses\SesClient */ protected $ses; /** * Create a new SES transport instance. * * @param \Aws\Ses\SesClient $ses * @return void */ public function __construct(SesClient $ses) { $this->ses = $ses; } /** * {@inheritdoc} */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { $this->beforeSendPerformed($message); $headers = $message->getHeaders(); $headers->addTextHeader('X-SES-Message-ID', $this->ses->sendRawEmail([ 'Source' => key($message->getSender() ?: $message->getFrom()), 'RawMessage' => [ 'Data' => $message->toString(), ], ])->get('MessageId')); $this->sendPerformed($message); return $this->numberOfRecipients($message); } } ## Instruction: Add options for SES’s sendRawEmail ## Code After: <?php namespace Illuminate\Mail\Transport; use Aws\Ses\SesClient; use Swift_Mime_SimpleMessage; class SesTransport extends Transport { /** * The Amazon SES instance. * * @var \Aws\Ses\SesClient */ protected $ses; /** * Transmission options. * * @var array */ protected $options = []; /** * Create a new SES transport instance. * * @param \Aws\Ses\SesClient $ses * @param array $options * @return void */ public function __construct(SesClient $ses, $options = []) { $this->ses = $ses; $this->options = $options; } /** * {@inheritdoc} */ public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null) { $this->beforeSendPerformed($message); $result = $this->ses->sendRawEmail( array_merge( $this->options, [ 'Source' => key($message->getSender() ?: $message->getFrom()), 'RawMessage' => [ 'Data' => $message->toString(), ], ] ) ); $message->getHeaders()->addTextHeader('X-SES-Message-ID', $result->get('MessageId')); $this->sendPerformed($message); return $this->numberOfRecipients($message); } /** * Get the transmission options being used by the transport. * * @return array */ public function getOptions() { return $this->options; } /** * Set the transmission options being used by the transport. * * @param array $options * @return array */ public function setOptions(array $options) { return $this->options = $options; } }
6edf60fbae6a2b158f3af47e144cd23715eac8bb
application/templates/_macros.html
application/templates/_macros.html
{% macro render_field(field) %} <div class="form-group"> {{ field.label(class_="form-label") }} {% if not kwargs['class_'] %} {{ field(class_="form-control", **kwargs)|safe }} {% else %} {{ field(**kwargs)|safe }} {% endif %} {% if field.errors %} {% for error in field.errors %} <span class="error">{{error}}</span> {% endfor %} {% endif %} </div> {% endmacro %} {% macro render_hidden(form) %} {{ form.hidden_tag() }} {% endmacro %} {% macro linked_with(links) %} <p>Linked with:</p> <ul> {% for link in links %} <li> {%- if link.__class__.__name__ == 'Competency' -%} Competency: {{ link.name }} {%- elif link.entry_type == 'objective' -%} Objective: {{ link.entry.what }} {%- elif link.entry_type == 'feedback' -%} Feedback: {{ link.entry.details }} {%- elif link.entry_type == 'log' -%} Note: {{ link.entry.content }} {%- endif -%} <a href="#remove-link?link={{ link.id }}">remove</a> </li> {% endfor %} </ul> {% endmacro %}
{% macro render_field(field) %} <div class="form-group"> {{ field.label(class_="form-label") }} {% if not kwargs['class_'] %} {{ field(class_="form-control", **kwargs)|safe }} {% else %} {{ field(**kwargs)|safe }} {% endif %} {% if field.errors %} {% for error in field.errors %} <span class="error">{{error}}</span> {% endfor %} {% endif %} </div> {% endmacro %} {% macro render_hidden(form) %} {{ form.hidden_tag() }} {% endmacro %} {% macro linked_with(links) %} <h3 class="heading-small">Linked to:</h3> <ul class="linked-list"> {% if links %} {% for link in links %} <li class="linked-item"> {%- if link.__class__.__name__ == 'Competency' -%} Competency: <a href="">{{ link.name }}</a> {%- elif link.entry_type == 'objective' -%} Objective: <a href="">{{ link.entry.what|truncate(40) }}</a> {%- elif link.entry_type == 'feedback' -%} Feedback: <a href="">{{ link.entry.details|truncate(40) }}</a> {%- elif link.entry_type == 'log' -%} Note: <a href="">{{ link.entry.content|truncate(40) }}</a> {%- endif -%} <span class="remove-link"><a href="">remove</a></span> </li> {% endfor %} {% endif %} </ul> {% endmacro %}
Update linked-with macro to use new layout
Update linked-with macro to use new layout
HTML
mit
crossgovernmentservices/csdigital-prototype,crossgovernmentservices/csdigital-prototype,crossgovernmentservices/csdigital-prototype,crossgovernmentservices/csdigital-prototype
html
## Code Before: {% macro render_field(field) %} <div class="form-group"> {{ field.label(class_="form-label") }} {% if not kwargs['class_'] %} {{ field(class_="form-control", **kwargs)|safe }} {% else %} {{ field(**kwargs)|safe }} {% endif %} {% if field.errors %} {% for error in field.errors %} <span class="error">{{error}}</span> {% endfor %} {% endif %} </div> {% endmacro %} {% macro render_hidden(form) %} {{ form.hidden_tag() }} {% endmacro %} {% macro linked_with(links) %} <p>Linked with:</p> <ul> {% for link in links %} <li> {%- if link.__class__.__name__ == 'Competency' -%} Competency: {{ link.name }} {%- elif link.entry_type == 'objective' -%} Objective: {{ link.entry.what }} {%- elif link.entry_type == 'feedback' -%} Feedback: {{ link.entry.details }} {%- elif link.entry_type == 'log' -%} Note: {{ link.entry.content }} {%- endif -%} <a href="#remove-link?link={{ link.id }}">remove</a> </li> {% endfor %} </ul> {% endmacro %} ## Instruction: Update linked-with macro to use new layout ## Code After: {% macro render_field(field) %} <div class="form-group"> {{ field.label(class_="form-label") }} {% if not kwargs['class_'] %} {{ field(class_="form-control", **kwargs)|safe }} {% else %} {{ field(**kwargs)|safe }} {% endif %} {% if field.errors %} {% for error in field.errors %} <span class="error">{{error}}</span> {% endfor %} {% endif %} </div> {% endmacro %} {% macro render_hidden(form) %} {{ form.hidden_tag() }} {% endmacro %} {% macro linked_with(links) %} <h3 class="heading-small">Linked to:</h3> <ul class="linked-list"> {% if links %} {% for link in links %} <li class="linked-item"> {%- if link.__class__.__name__ == 'Competency' -%} Competency: <a href="">{{ link.name }}</a> {%- elif link.entry_type == 'objective' -%} Objective: <a href="">{{ link.entry.what|truncate(40) }}</a> {%- elif link.entry_type == 'feedback' -%} Feedback: <a href="">{{ link.entry.details|truncate(40) }}</a> {%- elif link.entry_type == 'log' -%} Note: <a href="">{{ link.entry.content|truncate(40) }}</a> {%- endif -%} <span class="remove-link"><a href="">remove</a></span> </li> {% endfor %} {% endif %} </ul> {% endmacro %}
c53939ffeeb6fbc1729a1f0d0724e99bb6fec6f4
src/exchange-main.js
src/exchange-main.js
'use babel' import {Disposable, CompositeDisposable} from 'sb-event-kit' import Communication from 'sb-communication' class Exchange { constructor(worker) { this.worker = worker this.port = worker.port || worker this.communication = new Communication() this.subscriptions = new CompositeDisposable() this.subscriptions.add(this.communication) const callback = message => { this.communication.parseMessage(message.data) } this.port.addEventListener('message', callback) this.subscriptions.add(new Disposable(() => { this.port.removeEventListener('message', callback) })) this.communication.onShouldSend(message => { this.port.postMessage(message) }) this.onRequest('ping', function(_, message) { message.response = 'pong' }) } request(name, data = {}) { return this.communication.request(name, data) } onRequest(name, callback) { return this.communication.onRequest(name, callback) } terminate() { this.worker.terminate() this.dispose() } dispose() { this.subscriptions.dispose() } static create(filePath) { return new Exchange(new Worker(filePath)) } static createShared(filePath) { const worker = new SharedWorker(filePath) const exchange = new Exchange(worker) worker.port.start() return exchange } } module.exports = Exchange
'use babel' import {Disposable, CompositeDisposable} from 'sb-event-kit' import Communication from 'sb-communication' class Exchange { constructor(worker) { this.worker = worker this.port = worker.port || worker this.communication = new Communication() this.subscriptions = new CompositeDisposable() this.subscriptions.add(this.communication) const callback = message => { this.communication.parseMessage(message.data) } this.port.addEventListener('message', callback) this.subscriptions.add(new Disposable(() => { this.port.removeEventListener('message', callback) })) this.communication.onShouldSend(message => { this.port.postMessage(message) }) this.onRequest('ping', function(_, message) { message.response = 'pong' }) } request(name, data = {}) { return this.communication.request(name, data) } onRequest(name, callback) { return this.communication.onRequest(name, callback) } terminate() { if (this.worker.terminate) { this.worker.terminate() } else { this.port.close() } this.dispose() } dispose() { this.subscriptions.dispose() } static create(filePath) { return new Exchange(new Worker(filePath)) } static createShared(filePath) { const worker = new SharedWorker(filePath) const exchange = new Exchange(worker) worker.port.start() return exchange } } module.exports = Exchange
Make terminate work for shared workers
:new: Make terminate work for shared workers
JavaScript
mit
steelbrain/Worker-Exchange,steelbrain/Worker-Exchange
javascript
## Code Before: 'use babel' import {Disposable, CompositeDisposable} from 'sb-event-kit' import Communication from 'sb-communication' class Exchange { constructor(worker) { this.worker = worker this.port = worker.port || worker this.communication = new Communication() this.subscriptions = new CompositeDisposable() this.subscriptions.add(this.communication) const callback = message => { this.communication.parseMessage(message.data) } this.port.addEventListener('message', callback) this.subscriptions.add(new Disposable(() => { this.port.removeEventListener('message', callback) })) this.communication.onShouldSend(message => { this.port.postMessage(message) }) this.onRequest('ping', function(_, message) { message.response = 'pong' }) } request(name, data = {}) { return this.communication.request(name, data) } onRequest(name, callback) { return this.communication.onRequest(name, callback) } terminate() { this.worker.terminate() this.dispose() } dispose() { this.subscriptions.dispose() } static create(filePath) { return new Exchange(new Worker(filePath)) } static createShared(filePath) { const worker = new SharedWorker(filePath) const exchange = new Exchange(worker) worker.port.start() return exchange } } module.exports = Exchange ## Instruction: :new: Make terminate work for shared workers ## Code After: 'use babel' import {Disposable, CompositeDisposable} from 'sb-event-kit' import Communication from 'sb-communication' class Exchange { constructor(worker) { this.worker = worker this.port = worker.port || worker this.communication = new Communication() this.subscriptions = new CompositeDisposable() this.subscriptions.add(this.communication) const callback = message => { this.communication.parseMessage(message.data) } this.port.addEventListener('message', callback) this.subscriptions.add(new Disposable(() => { this.port.removeEventListener('message', callback) })) this.communication.onShouldSend(message => { this.port.postMessage(message) }) this.onRequest('ping', function(_, message) { message.response = 'pong' }) } request(name, data = {}) { return this.communication.request(name, data) } onRequest(name, callback) { return this.communication.onRequest(name, callback) } terminate() { if (this.worker.terminate) { this.worker.terminate() } else { this.port.close() } this.dispose() } dispose() { this.subscriptions.dispose() } static create(filePath) { return new Exchange(new Worker(filePath)) } static createShared(filePath) { const worker = new SharedWorker(filePath) const exchange = new Exchange(worker) worker.port.start() return exchange } } module.exports = Exchange
3e0e4bff6aff0661ec7cd319ed43e5058d24bafa
.travis.yml
.travis.yml
language: python sudo: false python: - '2.7' before_install: - pip install codecov install: pip install tox script: - tox after_success: - codecov deploy: provider: pypi user: dbryant4 server: https://testpypi.python.org/pypi password: secure: bOcu5tnHlag84/sV6lchV24XCOVh+i7tk73aLtEChpL0U99MbJSrEpvG+VnOBPEsusePZEgaPC0rcdsXKRb8GiTCidNvthBE9wSc9jDZyf1sDVx3VVd4vwpms99EEo9q79FL2llImG8mDghg9bTpDndgoJvynv3Lwl7Eo7BofsM= on: tags: true repo: dbryant4/furtive
language: python sudo: false python: - '2.7' before_install: - pip install codecov install: pip install tox script: - tox after_success: - codecov deploy: provider: pypi user: dbryant4 server: https://testpypi.python.org/pypi distributions: "sdist bdist_wheel" password: secure: bOcu5tnHlag84/sV6lchV24XCOVh+i7tk73aLtEChpL0U99MbJSrEpvG+VnOBPEsusePZEgaPC0rcdsXKRb8GiTCidNvthBE9wSc9jDZyf1sDVx3VVd4vwpms99EEo9q79FL2llImG8mDghg9bTpDndgoJvynv3Lwl7Eo7BofsM= on: tags: true repo: dbryant4/furtive
Add distributions to deploy to pypi
Add distributions to deploy to pypi
YAML
mit
dbryant4/furtive
yaml
## Code Before: language: python sudo: false python: - '2.7' before_install: - pip install codecov install: pip install tox script: - tox after_success: - codecov deploy: provider: pypi user: dbryant4 server: https://testpypi.python.org/pypi password: secure: bOcu5tnHlag84/sV6lchV24XCOVh+i7tk73aLtEChpL0U99MbJSrEpvG+VnOBPEsusePZEgaPC0rcdsXKRb8GiTCidNvthBE9wSc9jDZyf1sDVx3VVd4vwpms99EEo9q79FL2llImG8mDghg9bTpDndgoJvynv3Lwl7Eo7BofsM= on: tags: true repo: dbryant4/furtive ## Instruction: Add distributions to deploy to pypi ## Code After: language: python sudo: false python: - '2.7' before_install: - pip install codecov install: pip install tox script: - tox after_success: - codecov deploy: provider: pypi user: dbryant4 server: https://testpypi.python.org/pypi distributions: "sdist bdist_wheel" password: secure: bOcu5tnHlag84/sV6lchV24XCOVh+i7tk73aLtEChpL0U99MbJSrEpvG+VnOBPEsusePZEgaPC0rcdsXKRb8GiTCidNvthBE9wSc9jDZyf1sDVx3VVd4vwpms99EEo9q79FL2llImG8mDghg9bTpDndgoJvynv3Lwl7Eo7BofsM= on: tags: true repo: dbryant4/furtive
33847ef179b99d1384f1a58cf2025d844e88d0fa
composer.json
composer.json
{ "description": "Neos Project Marketplace", "name": "neos/marketplace", "type": "neos-package", "require": { "typo3/flow": "*", "flowpack/searchplugin": "*", "knplabs/packagist-api": "^1.3" }, "autoload": { "psr-4": { "Neos\\MarketPlace\\": "Classes/" } }, "extra": { "neos": { "package-key": "Neos.MarketPlace" } } }
{ "description": "Neos Project Marketplace", "name": "neos/marketplace", "type": "neos-package", "require": { "typo3/flow": "*", "flowpack/searchplugin": "*", "knplabs/packagist-api": "^1.3", "cocur/slugify": "^2.0" }, "autoload": { "psr-4": { "Neos\\MarketPlace\\": "Classes/" } }, "extra": { "neos": { "package-key": "Neos.MarketPlace" } } }
Add missing dependency to cocur/slugify
TASK: Add missing dependency to cocur/slugify
JSON
mit
neos/Neos.MarketPlace,dfeyer/Neos.MarketPlace,neos/Neos.MarketPlace,dfeyer/Neos.MarketPlace,neos/Neos.MarketPlace
json
## Code Before: { "description": "Neos Project Marketplace", "name": "neos/marketplace", "type": "neos-package", "require": { "typo3/flow": "*", "flowpack/searchplugin": "*", "knplabs/packagist-api": "^1.3" }, "autoload": { "psr-4": { "Neos\\MarketPlace\\": "Classes/" } }, "extra": { "neos": { "package-key": "Neos.MarketPlace" } } } ## Instruction: TASK: Add missing dependency to cocur/slugify ## Code After: { "description": "Neos Project Marketplace", "name": "neos/marketplace", "type": "neos-package", "require": { "typo3/flow": "*", "flowpack/searchplugin": "*", "knplabs/packagist-api": "^1.3", "cocur/slugify": "^2.0" }, "autoload": { "psr-4": { "Neos\\MarketPlace\\": "Classes/" } }, "extra": { "neos": { "package-key": "Neos.MarketPlace" } } }
d9bb2cf22a0e5ef03dcdc6387dc4151b02b83cde
app.yaml
app.yaml
application: restoncoffeemachine version: 1 runtime: python27 api_version: 1 handlers: - url: /favicon\.ico static_files: img/favicon.ico upload: img/favicon\.ico - url: /img/(.*) static_files: img/\1 upload: img/(.*) mime_type: image/jpeg expiration: "30d" - url: .* script: result.py
application: restoncoffeemachine version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /favicon\.ico static_files: img/favicon.ico upload: img/favicon\.ico - url: /img/(.*) static_files: img/\1 upload: img/(.*) mime_type: image/jpeg expiration: "30d" - url: .* script: result.py
Make sure to incldue the threadsafe keyword in yaml.
Make sure to incldue the threadsafe keyword in yaml.
YAML
apache-2.0
morrowc/restoncoffeemachine
yaml
## Code Before: application: restoncoffeemachine version: 1 runtime: python27 api_version: 1 handlers: - url: /favicon\.ico static_files: img/favicon.ico upload: img/favicon\.ico - url: /img/(.*) static_files: img/\1 upload: img/(.*) mime_type: image/jpeg expiration: "30d" - url: .* script: result.py ## Instruction: Make sure to incldue the threadsafe keyword in yaml. ## Code After: application: restoncoffeemachine version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /favicon\.ico static_files: img/favicon.ico upload: img/favicon\.ico - url: /img/(.*) static_files: img/\1 upload: img/(.*) mime_type: image/jpeg expiration: "30d" - url: .* script: result.py
6f778070a10bb30b61e53743f70e88577ac884ee
growl-test.rb
growl-test.rb
require 'growl' Growl.notify { self.message = "<a href='http://www.google.com'>This is a test!</a>" self.icon = :Safari sticky! }
require 'rubygems' require 'bundler/setup' require 'growl' notify = Growl.new notify.title = "Hello, World!" notify.message = "This is a message to you!" notify.url = "https://google.com" notify.run
Add url to growl test file; update code
Add url to growl test file; update code
Ruby
mit
geopet/grunido-noticias
ruby
## Code Before: require 'growl' Growl.notify { self.message = "<a href='http://www.google.com'>This is a test!</a>" self.icon = :Safari sticky! } ## Instruction: Add url to growl test file; update code ## Code After: require 'rubygems' require 'bundler/setup' require 'growl' notify = Growl.new notify.title = "Hello, World!" notify.message = "This is a message to you!" notify.url = "https://google.com" notify.run
83f08b88010dc87d3f99f8fd2ac8e8c68f659bea
spec/spec_helper.rb
spec/spec_helper.rb
ENV["RAILS_ENV"] ||= "test" PROJECT_ROOT = File.expand_path("../..", __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, "lib") Bundler.require require 'overriaktion' require 'httparty' require 'singleton' require 'webmock/rspec' require 'json'
ENV["RAILS_ENV"] ||= "test" PROJECT_ROOT = File.expand_path("../..", __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, "lib") Bundler.require require 'overriaktion' require 'webmock/rspec'
Move requires out of the spec helper.
Move requires out of the spec helper.
Ruby
mit
cmeiklejohn/overriaktion
ruby
## Code Before: ENV["RAILS_ENV"] ||= "test" PROJECT_ROOT = File.expand_path("../..", __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, "lib") Bundler.require require 'overriaktion' require 'httparty' require 'singleton' require 'webmock/rspec' require 'json' ## Instruction: Move requires out of the spec helper. ## Code After: ENV["RAILS_ENV"] ||= "test" PROJECT_ROOT = File.expand_path("../..", __FILE__) $LOAD_PATH << File.join(PROJECT_ROOT, "lib") Bundler.require require 'overriaktion' require 'webmock/rspec'
fc842d4727f5d1b2a58cbf1e15a5fb7a84f4ab4c
scripts/compile-dotnet-assemblies.bat
scripts/compile-dotnet-assemblies.bat
::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems exit /b :64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems
::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems ) exit /b :64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems )
Check whether ngen.exe exists and execute only if it exists. Some versions of Windows 7 (e.g. without updates) do not include .NET Framework 4.0 by default.
Check whether ngen.exe exists and execute only if it exists. Some versions of Windows 7 (e.g. without updates) do not include .NET Framework 4.0 by default.
Batchfile
mit
TaylorMonacelli/packer-windows,TheBigBear/packer-windows-joefitzgerald,floradu88/packer-windows,tsew/packer-windows,joefitzgerald/packer-windows,bigwave/packer-windows
batchfile
## Code Before: ::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems exit /b :64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems ## Instruction: Check whether ngen.exe exists and execute only if it exists. Some versions of Windows 7 (e.g. without updates) do not include .NET Framework 4.0 by default. ## Code After: ::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems ) exit /b :64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems )
0965a5332835da0bba7baac38840b494f858218b
scripts/import.sh
scripts/import.sh
set -o errexit set -o nounset set -o pipefail set -o xtrace IMAGE_REPO=${IMAGE_REPO:-mirantis/k8s-appcontroller} IMAGE_TAG=${IMAGE_TAG:-latest} NUM_NODES=${NUM_NODES:-2} TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar} MASTER_NAME=${MASTER_NAME=} SLAVE_PATTERN=${SLAVE_PATTERN:-"dind_node_"} function import-image { docker save ${IMAGE_REPO}:${IMAGE_TAG} -o "${TMP_IMAGE_PATH}" if [ -n "$MASTER_NAME" ]; then docker cp "${TMP_IMAGE_PATH}" kube-master:/image.tar docker exec -ti "${MASTER_NAME}" docker load -i /image.tar fi for i in `seq 1 "${NUM_NODES}"`; do docker cp "${TMP_IMAGE_PATH}" "${SLAVE_PATTERN}$i":/image.tar docker exec -ti "${SLAVE_PATTERN}$i" docker load -i /image.tar done set +o xtrace echo "Finished copying docker image to dind nodes" } import-image
set -o errexit set -o nounset set -o pipefail set -o xtrace IMAGE_REPO=${IMAGE_REPO:-mirantis/k8s-appcontroller} IMAGE_TAG=${IMAGE_TAG:-latest} NUM_NODES=${NUM_NODES:-2} TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar} MASTER_NAME=${MASTER_NAME="kube-master"} SLAVE_PATTERN=${SLAVE_PATTERN:-"kube-node-"} function import-image { docker save ${IMAGE_REPO}:${IMAGE_TAG} -o "${TMP_IMAGE_PATH}" if [ -n "$MASTER_NAME" ]; then docker cp "${TMP_IMAGE_PATH}" kube-master:/image.tar docker exec -ti "${MASTER_NAME}" docker load -i /image.tar fi for i in `seq 1 "${NUM_NODES}"`; do docker cp "${TMP_IMAGE_PATH}" "${SLAVE_PATTERN}$i":/image.tar docker exec -ti "${SLAVE_PATTERN}$i" docker load -i /image.tar done set +o xtrace echo "Finished copying docker image to dind nodes" } import-image
Change patterns to work with kubeadm-dind
Change patterns to work with kubeadm-dind
Shell
apache-2.0
Mirantis/k8s-AppController,Mirantis/k8s-AppController,istalker2/k8s-AppController,istalker2/k8s-AppController,istalker2/k8s-AppController,Mirantis/k8s-AppController,istalker2/k8s-AppController,Mirantis/k8s-AppController
shell
## Code Before: set -o errexit set -o nounset set -o pipefail set -o xtrace IMAGE_REPO=${IMAGE_REPO:-mirantis/k8s-appcontroller} IMAGE_TAG=${IMAGE_TAG:-latest} NUM_NODES=${NUM_NODES:-2} TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar} MASTER_NAME=${MASTER_NAME=} SLAVE_PATTERN=${SLAVE_PATTERN:-"dind_node_"} function import-image { docker save ${IMAGE_REPO}:${IMAGE_TAG} -o "${TMP_IMAGE_PATH}" if [ -n "$MASTER_NAME" ]; then docker cp "${TMP_IMAGE_PATH}" kube-master:/image.tar docker exec -ti "${MASTER_NAME}" docker load -i /image.tar fi for i in `seq 1 "${NUM_NODES}"`; do docker cp "${TMP_IMAGE_PATH}" "${SLAVE_PATTERN}$i":/image.tar docker exec -ti "${SLAVE_PATTERN}$i" docker load -i /image.tar done set +o xtrace echo "Finished copying docker image to dind nodes" } import-image ## Instruction: Change patterns to work with kubeadm-dind ## Code After: set -o errexit set -o nounset set -o pipefail set -o xtrace IMAGE_REPO=${IMAGE_REPO:-mirantis/k8s-appcontroller} IMAGE_TAG=${IMAGE_TAG:-latest} NUM_NODES=${NUM_NODES:-2} TMP_IMAGE_PATH=${TMP_IMAGE_PATH:-/tmp/image.tar} MASTER_NAME=${MASTER_NAME="kube-master"} SLAVE_PATTERN=${SLAVE_PATTERN:-"kube-node-"} function import-image { docker save ${IMAGE_REPO}:${IMAGE_TAG} -o "${TMP_IMAGE_PATH}" if [ -n "$MASTER_NAME" ]; then docker cp "${TMP_IMAGE_PATH}" kube-master:/image.tar docker exec -ti "${MASTER_NAME}" docker load -i /image.tar fi for i in `seq 1 "${NUM_NODES}"`; do docker cp "${TMP_IMAGE_PATH}" "${SLAVE_PATTERN}$i":/image.tar docker exec -ti "${SLAVE_PATTERN}$i" docker load -i /image.tar done set +o xtrace echo "Finished copying docker image to dind nodes" } import-image
5738d3735152a494b5a7e7d8f7000a09e44ad11f
utils/patient-notes-mig.js
utils/patient-notes-mig.js
var config = require('../config.js'); var nano = require('nano')(config.couchAuthDbURL); var maindb = nano.use('main'); var uuid = require('node-uuid'); var recordsToUpdate = []; maindb.list({startkey: 'visit_', endkey: 'visit_\uffff', include_docs: true}, function(err, results) { if (!err) { results.rows.forEach(function(result) { var visitDoc = result.doc.data; if (visitDoc !== null && visitDoc.notes && !visitDoc.patientNotes) { var noteUuid = uuid.v4(); var visitId = result.doc._id.substr(8); var patientNote = { _id: 'patientNote_2_' + noteUuid, data: { content: visitDoc.notes, createdBy: 'system', date: new Date(), noteType: 'General', patient: visitDoc.patient, visit: visitId } }; recordsToUpdate.push(patientNote); result.doc.data.patientNotes = [noteUuid]; recordsToUpdate.push(result.doc); } }); if (recordsToUpdate.length > 0) { maindb.bulk({ docs: recordsToUpdate}, function(err, results) { if (err) { console.log('Error updating patient notes records.', err); } else { console.log('Success updating patient notes records.', JSON.stringify(results, null, 2)); } }); } } else { console.log('ERROR fetching visit records', err); } });
var config = require('../config.js'); var nano = require('nano')(config.couchAuthDbURL); var maindb = nano.use('main'); var uuid = require('node-uuid'); var recordsToUpdate = []; maindb.list({startkey: 'visit_', endkey: 'visit_\uffff', include_docs: true}, function(err, results) { if (!err) { results.rows.forEach(function(result) { var visitDoc = result.doc.data; if (visitDoc !== null && visitDoc.notes && !visitDoc.patientNotes) { var noteUuid = uuid.v4(); var visitId = result.doc._id.substr(8); var patientNote = { _id: 'patientNote_2_' + noteUuid, data: { content: visitDoc.notes, createdBy: visitDoc.examiner || '', date: visitDoc.startDate, noteType: 'General', patient: visitDoc.patient, visit: visitId } }; recordsToUpdate.push(patientNote); result.doc.data.patientNotes = [noteUuid]; recordsToUpdate.push(result.doc); } }); if (recordsToUpdate.length > 0) { maindb.bulk({ docs: recordsToUpdate}, function(err, results) { if (err) { console.log('Error updating patient notes records.', err); } else { console.log('Success updating patient notes records.', JSON.stringify(results, null, 2)); } }); } } else { console.log('ERROR fetching visit records', err); } });
Update notes migration to use examiner and startDate
Update notes migration to use examiner and startDate
JavaScript
mit
HospitalRun/hospitalrun-server,HospitalRun/hospitalrun-server
javascript
## Code Before: var config = require('../config.js'); var nano = require('nano')(config.couchAuthDbURL); var maindb = nano.use('main'); var uuid = require('node-uuid'); var recordsToUpdate = []; maindb.list({startkey: 'visit_', endkey: 'visit_\uffff', include_docs: true}, function(err, results) { if (!err) { results.rows.forEach(function(result) { var visitDoc = result.doc.data; if (visitDoc !== null && visitDoc.notes && !visitDoc.patientNotes) { var noteUuid = uuid.v4(); var visitId = result.doc._id.substr(8); var patientNote = { _id: 'patientNote_2_' + noteUuid, data: { content: visitDoc.notes, createdBy: 'system', date: new Date(), noteType: 'General', patient: visitDoc.patient, visit: visitId } }; recordsToUpdate.push(patientNote); result.doc.data.patientNotes = [noteUuid]; recordsToUpdate.push(result.doc); } }); if (recordsToUpdate.length > 0) { maindb.bulk({ docs: recordsToUpdate}, function(err, results) { if (err) { console.log('Error updating patient notes records.', err); } else { console.log('Success updating patient notes records.', JSON.stringify(results, null, 2)); } }); } } else { console.log('ERROR fetching visit records', err); } }); ## Instruction: Update notes migration to use examiner and startDate ## Code After: var config = require('../config.js'); var nano = require('nano')(config.couchAuthDbURL); var maindb = nano.use('main'); var uuid = require('node-uuid'); var recordsToUpdate = []; maindb.list({startkey: 'visit_', endkey: 'visit_\uffff', include_docs: true}, function(err, results) { if (!err) { results.rows.forEach(function(result) { var visitDoc = result.doc.data; if (visitDoc !== null && visitDoc.notes && !visitDoc.patientNotes) { var noteUuid = uuid.v4(); var visitId = result.doc._id.substr(8); var patientNote = { _id: 'patientNote_2_' + noteUuid, data: { content: visitDoc.notes, createdBy: visitDoc.examiner || '', date: visitDoc.startDate, noteType: 'General', patient: visitDoc.patient, visit: visitId } }; recordsToUpdate.push(patientNote); result.doc.data.patientNotes = [noteUuid]; recordsToUpdate.push(result.doc); } }); if (recordsToUpdate.length > 0) { maindb.bulk({ docs: recordsToUpdate}, function(err, results) { if (err) { console.log('Error updating patient notes records.', err); } else { console.log('Success updating patient notes records.', JSON.stringify(results, null, 2)); } }); } } else { console.log('ERROR fetching visit records', err); } });
27a26ac06e29294535107f744b76b2abbbcc161a
.travis.yml
.travis.yml
language: go script: make && make test
language: go go: - 1.1 - 1.2 matrix: allow_failures: - go: 1.1 script: make && make test
Test on 1.1 and 1.2, but ignore 1.2 failures
Test on 1.1 and 1.2, but ignore 1.2 failures
YAML
apache-2.0
skottler/go-nrpe,skottler/go-nrpe
yaml
## Code Before: language: go script: make && make test ## Instruction: Test on 1.1 and 1.2, but ignore 1.2 failures ## Code After: language: go go: - 1.1 - 1.2 matrix: allow_failures: - go: 1.1 script: make && make test
41696ab8a868f34af14c5e78830abe58c2ad0716
composer.json
composer.json
{ "name": "aerialship/saml-sp-bundle", "license": "MIT", "type": "symfony-bundle", "description": "Symfony2 SAML2 authentication bundle", "autoload": { "psr-0": { "AerialShip\\SamlSPBundle\\": "src/" } }, "require": { "php": ">=5.4.1", "aerialship/lightsaml": "~1.0", "symfony/symfony": "~2.3" }, "suggest": { "doctrine/orm": "If you want store sso state in relational database", "doctrine/mongodb-odm": "If you want store sso state to mongodb" }, "config": { "bin-dir": "bin" }, "prefer-stable": true, "minimum-stability": "dev" }
{ "name": "aerialship/saml-sp-bundle", "license": "MIT", "type": "symfony-bundle", "description": "Symfony2 SAML2 authentication bundle", "autoload": { "psr-0": { "AerialShip\\SamlSPBundle\\": "src/" } }, "require": { "php": ">=5.4.1", "aerialship/lightsaml": "~1.0", "symfony/symfony": "~2.3" }, "suggest": { "doctrine/orm": "If you want store sso state in relational database", "doctrine/mongodb-odm": "If you want store sso state to mongodb" }, "scripts": { "post-install-cmd": [ "bash contrib/setup.sh" ], "post-update-cmd": [ ] }, "config": { "bin-dir": "bin" }, "prefer-stable": true, "minimum-stability": "dev", "require-dev": { "squizlabs/php_codesniffer": "~2.0@dev" } }
Add php_codesniffer as dev dependency for project.
Add php_codesniffer as dev dependency for project.
JSON
mit
aerialship/SamlSPBundle,Causecast/SamlSPBundle,rlustin/SamlSPBundle,rlustin/SamlSPBundle,HearstCorp/SamlSPBundle,stuartwilsondev/SamlSPBundle,INSEAD-asim/SamlSPBundle,aerialship/SamlSPBundle,rlustin/SamlSPBundle,HearstCorp/SamlSPBundle,stuartwilsondev/SamlSPBundle,INSEAD-asim/SamlSPBundle,INSEAD-asim/SamlSPBundle,aerialship/SamlSPBundle,stuartwilsondev/SamlSPBundle,Causecast/SamlSPBundle,Causecast/SamlSPBundle
json
## Code Before: { "name": "aerialship/saml-sp-bundle", "license": "MIT", "type": "symfony-bundle", "description": "Symfony2 SAML2 authentication bundle", "autoload": { "psr-0": { "AerialShip\\SamlSPBundle\\": "src/" } }, "require": { "php": ">=5.4.1", "aerialship/lightsaml": "~1.0", "symfony/symfony": "~2.3" }, "suggest": { "doctrine/orm": "If you want store sso state in relational database", "doctrine/mongodb-odm": "If you want store sso state to mongodb" }, "config": { "bin-dir": "bin" }, "prefer-stable": true, "minimum-stability": "dev" } ## Instruction: Add php_codesniffer as dev dependency for project. ## Code After: { "name": "aerialship/saml-sp-bundle", "license": "MIT", "type": "symfony-bundle", "description": "Symfony2 SAML2 authentication bundle", "autoload": { "psr-0": { "AerialShip\\SamlSPBundle\\": "src/" } }, "require": { "php": ">=5.4.1", "aerialship/lightsaml": "~1.0", "symfony/symfony": "~2.3" }, "suggest": { "doctrine/orm": "If you want store sso state in relational database", "doctrine/mongodb-odm": "If you want store sso state to mongodb" }, "scripts": { "post-install-cmd": [ "bash contrib/setup.sh" ], "post-update-cmd": [ ] }, "config": { "bin-dir": "bin" }, "prefer-stable": true, "minimum-stability": "dev", "require-dev": { "squizlabs/php_codesniffer": "~2.0@dev" } }
39dd65878e3fb92b40c4760e56f3c7b803ce5173
bin/test/before.js
bin/test/before.js
/** * Dependencies */ var TemplateManifest = require('./fixtures/TemplateManifest'); var FileHeap = require('./fixtures/FileHeap'); before(function (cb) { var self = this; /* * Use an allocator to make it easier to manage files * generated during testing */ self.heap = new FileHeap(); /* * Another file allocator made to look like a Sails app * to test behavior with and without `--force`, inside * and outside of a Sails project directory. */ self.sailsHeap = new FileHeap(); self.sailsHeap.outputJSON( self.sailsHeap.alloc('package.json'), { dependencies: { sails: '~5.0.0' } }, cb ); /* * Load template fixtures up front so they're accessible * throughout the generator tests. */ // var self = this; // TemplateManifest.load(function (err) { // if (err) return err; // self.templates = TemplateManifest; // cb(); // }); }); after(function (cb) { /* * Clean up loose files afterwards */ this.heap.cleanAll(cb); this.sailsHeap.cleanAll(cb); });
/** * Dependencies */ var TemplateManifest = require('./fixtures/TemplateManifest'); var FileHeap = require('./fixtures/FileHeap'); var GenerateJSONFileHelper = require('../generators/_helpers/jsonfile'); before(function (cb) { var self = this; /* * Use an allocator to make it easier to manage files * generated during testing */ self.heap = new FileHeap(); /* * Another file allocator made to look like a Sails app * to test behavior with and without `--force`, inside * and outside of a Sails project directory. */ self.sailsHeap = new FileHeap(); GenerateJSONFileHelper({ pathToNew: self.sailsHeap.alloc('package.json'), data: { dependencies: { sails: '~5.0.0' } } }, { ok: cb }); /* * Load template fixtures up front so they're accessible * throughout the generator tests. */ // var self = this; // TemplateManifest.load(function (err) { // if (err) return err; // self.templates = TemplateManifest; // cb(); // }); }); after(function (cb) { /* * Clean up loose files afterwards */ this.heap.cleanAll(cb); this.sailsHeap.cleanAll(cb); });
Use jsonfile helper to create package.json fixture.
Use jsonfile helper to create package.json fixture.
JavaScript
mit
vip-git/sails,adrianha/sails,ctartist621/sails,janladaking/sails,dylannnn/sails,hellowin/sails,winlolo/sails,vip-git/sails,antodoms/sails,rlugojr/sails,yangchuoxian/sails,taogb/sails,EdisonSu768/sails,dbuentello/sails,jakutis/sails,curphey/sails,hokkoo/sails,Karnith/sails-for-gulp,boarderdav/sails,AnyPresence/sails,tempbottle/sails,mnaughto/sails,Josebaseba/sails,cazulu/sails,tjwebb/sails,sunnycmf/sails,pmq20/sails,kevinburke/sails,denismars/sails,baracudaengine/SailsUi,jianpingw/sails,balderdashy/sails,yinhe007/sails,xjpro/sails-windows-associations,wsaccaco/sails,shaunstanislaus/sails,mauricionr/sails,jianpingw/sails,Benew/sails,t2013anurag/sails,antoniopol06/sails,apowers313/sails,youprofit/sails,saronwei/sails,konstantinzolotarev/sails,erkstruwe/sails,krishnaglick/sails,prssn/sails,calling/sails,togusafish/logikinc-_-sails,JumpLink/sails,rlugojr/sails,harrissoerja/sails,saniko/soundcloud_mithril,alexferreira/sails,jsisaev1/sails,corbanb/sails,leobudima/sails,haavardw/sails,artBrown/sails,saniko/soundcloud_mithril,scippio/sails,listepo/sails,hokkoo/sails,Hanifb/sails,metidia/sails,Shyp/sails,zand3rs/sails,mphasize/sails,justsml/sails,marnusw/sails,anweiss/sails,alex-zhang/sails,jenalgit/sails
javascript
## Code Before: /** * Dependencies */ var TemplateManifest = require('./fixtures/TemplateManifest'); var FileHeap = require('./fixtures/FileHeap'); before(function (cb) { var self = this; /* * Use an allocator to make it easier to manage files * generated during testing */ self.heap = new FileHeap(); /* * Another file allocator made to look like a Sails app * to test behavior with and without `--force`, inside * and outside of a Sails project directory. */ self.sailsHeap = new FileHeap(); self.sailsHeap.outputJSON( self.sailsHeap.alloc('package.json'), { dependencies: { sails: '~5.0.0' } }, cb ); /* * Load template fixtures up front so they're accessible * throughout the generator tests. */ // var self = this; // TemplateManifest.load(function (err) { // if (err) return err; // self.templates = TemplateManifest; // cb(); // }); }); after(function (cb) { /* * Clean up loose files afterwards */ this.heap.cleanAll(cb); this.sailsHeap.cleanAll(cb); }); ## Instruction: Use jsonfile helper to create package.json fixture. ## Code After: /** * Dependencies */ var TemplateManifest = require('./fixtures/TemplateManifest'); var FileHeap = require('./fixtures/FileHeap'); var GenerateJSONFileHelper = require('../generators/_helpers/jsonfile'); before(function (cb) { var self = this; /* * Use an allocator to make it easier to manage files * generated during testing */ self.heap = new FileHeap(); /* * Another file allocator made to look like a Sails app * to test behavior with and without `--force`, inside * and outside of a Sails project directory. */ self.sailsHeap = new FileHeap(); GenerateJSONFileHelper({ pathToNew: self.sailsHeap.alloc('package.json'), data: { dependencies: { sails: '~5.0.0' } } }, { ok: cb }); /* * Load template fixtures up front so they're accessible * throughout the generator tests. */ // var self = this; // TemplateManifest.load(function (err) { // if (err) return err; // self.templates = TemplateManifest; // cb(); // }); }); after(function (cb) { /* * Clean up loose files afterwards */ this.heap.cleanAll(cb); this.sailsHeap.cleanAll(cb); });
72691fbefd2d04a57a66dd3b1cd88b2a1b9478d2
src/FOM/CoreBundle/Resources/public/js/widgets/dropdown.js
src/FOM/CoreBundle/Resources/public/js/widgets/dropdown.js
$(function() { $('.dropdown').each(function() { var element = $(this); var dropdownList = element.find(".dropdownList"); if(dropdownList.children().length === 0) { element.find("option").each(function(i, e) { $(e).addClass("opt-" + i); dropdownList.append($('<li class="item-' + i + '">' + $(e).text() + '</li>')); }); } var select = element.find("select").val(); element.find(".dropdownValue").text(element.find('option[value="' + select + '"]').text()) }).on('click', function() { var me = $(this); var list = me.find(".dropdownList"); var opts = me.find(".hiddenDropdown"); if(list.css("display") == "block") { list.hide(); } else { $(".dropdownList").hide(); list.show(); list.find("li").one("click", function(event) { event.stopPropagation(); list.hide().find("li").off("click"); var me2 = $(this); var opt = me2.attr("class").replace("item", "opt"); me.find(".dropdownValue").text(me2.text()); opts.find("[selected=selected]").removeAttr("selected"); var val = opts.find("." + opt).attr("selected", "selected").val(); opts.val(val).trigger('change'); }) } $(document).one("click", function() { list.hide().find("li").off("mouseout").off("click"); }); return false; }) });
$(function() { $('.dropdown').each(function() { var me = $(this); var dropdownList = me.find(".dropdownList"); if(dropdownList.children().length === 0) { me.find("option").each(function(i, e) { $(e).addClass("opt-" + i); dropdownList.append($('<li class="item-' + i + '">' + $(e).text() + '</li>')); }); } var select = me.find("select").val(); me.find(".dropdownValue").text(me.find('option[value="' + select + '"]').text()) }); $(document).on("click", ".dropdown", function() { var me = $(this); var list = me.find(".dropdownList"); var opts = me.find(".hiddenDropdown"); if(list.css("display") == "block") { list.hide(); } else { $(".dropdownList").hide(); list.show(); list.find("li").one("click", function(event) { event.stopPropagation(); list.hide().find("li").off("click"); var me2 = $(this); var opt = me2.attr("class").replace("item", "opt"); me.find(".dropdownValue").text(me2.text()); opts.find("[selected=selected]").removeAttr("selected"); var val = opts.find("." + opt).attr("selected", "selected").val(); opts.val(val).trigger('change'); }) } $(document).one("click", function() { list.hide().find("li").off("mouseout").off("click"); }); return false; }); });
Fix select element global listener
Fix select element global listener
JavaScript
mit
mapbender/fom,mapbender/fom,mapbender/fom
javascript
## Code Before: $(function() { $('.dropdown').each(function() { var element = $(this); var dropdownList = element.find(".dropdownList"); if(dropdownList.children().length === 0) { element.find("option").each(function(i, e) { $(e).addClass("opt-" + i); dropdownList.append($('<li class="item-' + i + '">' + $(e).text() + '</li>')); }); } var select = element.find("select").val(); element.find(".dropdownValue").text(element.find('option[value="' + select + '"]').text()) }).on('click', function() { var me = $(this); var list = me.find(".dropdownList"); var opts = me.find(".hiddenDropdown"); if(list.css("display") == "block") { list.hide(); } else { $(".dropdownList").hide(); list.show(); list.find("li").one("click", function(event) { event.stopPropagation(); list.hide().find("li").off("click"); var me2 = $(this); var opt = me2.attr("class").replace("item", "opt"); me.find(".dropdownValue").text(me2.text()); opts.find("[selected=selected]").removeAttr("selected"); var val = opts.find("." + opt).attr("selected", "selected").val(); opts.val(val).trigger('change'); }) } $(document).one("click", function() { list.hide().find("li").off("mouseout").off("click"); }); return false; }) }); ## Instruction: Fix select element global listener ## Code After: $(function() { $('.dropdown').each(function() { var me = $(this); var dropdownList = me.find(".dropdownList"); if(dropdownList.children().length === 0) { me.find("option").each(function(i, e) { $(e).addClass("opt-" + i); dropdownList.append($('<li class="item-' + i + '">' + $(e).text() + '</li>')); }); } var select = me.find("select").val(); me.find(".dropdownValue").text(me.find('option[value="' + select + '"]').text()) }); $(document).on("click", ".dropdown", function() { var me = $(this); var list = me.find(".dropdownList"); var opts = me.find(".hiddenDropdown"); if(list.css("display") == "block") { list.hide(); } else { $(".dropdownList").hide(); list.show(); list.find("li").one("click", function(event) { event.stopPropagation(); list.hide().find("li").off("click"); var me2 = $(this); var opt = me2.attr("class").replace("item", "opt"); me.find(".dropdownValue").text(me2.text()); opts.find("[selected=selected]").removeAttr("selected"); var val = opts.find("." + opt).attr("selected", "selected").val(); opts.val(val).trigger('change'); }) } $(document).one("click", function() { list.hide().find("li").off("mouseout").off("click"); }); return false; }); });
5f2c09671649f50e481776760d87bdd940c029d0
src/plugins/commands/get_abbrv.rb
src/plugins/commands/get_abbrv.rb
require 'cinch' module Plugins module Commands class GetAbbreviation include Cinch::Plugin match(/getabbrv (.+)/) # Gets either the abbreviation of a mod, or the mod using an abbreviation. # @param msg [Cinch::Message] # @param thing [String] The abbreviation OR mod. def execute(msg, thing) page = 'Module:Mods/list' butt = LittleHelper.init_wiki module_text = butt.get_text(page) thing.gsub!(/'/) { "\\'" } if module_text.include?(thing) if module_text.include?("#{thing} = {'") match_data = module_text.scan(/#{thing} = {'(.+)',/) mod_name = match_data[0][0] msg.reply("#{thing} is the abbreviation for #{mod_name}") elsif module_text.include?("= {'#{thing}',") thing.gsub!(/\'/) { "\\'" } match_data = module_text.scan(/([A-Z0-9\-]+) = {'#{thing}',/) msg.reply("#{thing} is abbreviated as #{match_data[0][0]}") else msg.reply('I do not know what happened.') end else msg.reply("#{thing} does not appear to be in the abbreviation list.") end end end end end
require 'cinch' module Plugins module Commands class GetAbbreviation include Cinch::Plugin match(/getabbrv (.+)/) # Gets either the abbreviation of a mod, or the mod using an abbreviation. # @param msg [Cinch::Message] # @param thing [String] The abbreviation OR mod. def execute(msg, thing) page = 'Module:Mods/list' butt = LittleHelper.init_wiki module_text = butt.get_text(page) thing.gsub!(/'/) { "\\'" } if module_text.include?(thing) if module_text.include?("#{thing} = {'") match_data = module_text.scan(/#{thing} = {'(.+)',/) mod_name = match_data[0][0] msg.reply("#{thing} is the abbreviation for #{mod_name}") elsif module_text.include?("= {'#{thing}',") thing.gsub!(/\'/) { "\\'" } match_data = module_text.scan(/([A-Z0-9\-]+) = {'#{thing}',/) msg.reply("#{thing} is abbreviated as #{match_data[0][0]}") else msg.reply("#{thing} does not appear to be in the abbreviation " \ 'list, but there were similar non-exact results. ' \ 'Try something similar.') end else msg.reply("#{thing} does not appear to be in the abbreviation list.") end end end end end
Fix unclear message in getabbrv
:bug: Fix unclear message in getabbrv
Ruby
unknown
FTB-Gamepedia/SatanicBot,elifoster/SatanicBot
ruby
## Code Before: require 'cinch' module Plugins module Commands class GetAbbreviation include Cinch::Plugin match(/getabbrv (.+)/) # Gets either the abbreviation of a mod, or the mod using an abbreviation. # @param msg [Cinch::Message] # @param thing [String] The abbreviation OR mod. def execute(msg, thing) page = 'Module:Mods/list' butt = LittleHelper.init_wiki module_text = butt.get_text(page) thing.gsub!(/'/) { "\\'" } if module_text.include?(thing) if module_text.include?("#{thing} = {'") match_data = module_text.scan(/#{thing} = {'(.+)',/) mod_name = match_data[0][0] msg.reply("#{thing} is the abbreviation for #{mod_name}") elsif module_text.include?("= {'#{thing}',") thing.gsub!(/\'/) { "\\'" } match_data = module_text.scan(/([A-Z0-9\-]+) = {'#{thing}',/) msg.reply("#{thing} is abbreviated as #{match_data[0][0]}") else msg.reply('I do not know what happened.') end else msg.reply("#{thing} does not appear to be in the abbreviation list.") end end end end end ## Instruction: :bug: Fix unclear message in getabbrv ## Code After: require 'cinch' module Plugins module Commands class GetAbbreviation include Cinch::Plugin match(/getabbrv (.+)/) # Gets either the abbreviation of a mod, or the mod using an abbreviation. # @param msg [Cinch::Message] # @param thing [String] The abbreviation OR mod. def execute(msg, thing) page = 'Module:Mods/list' butt = LittleHelper.init_wiki module_text = butt.get_text(page) thing.gsub!(/'/) { "\\'" } if module_text.include?(thing) if module_text.include?("#{thing} = {'") match_data = module_text.scan(/#{thing} = {'(.+)',/) mod_name = match_data[0][0] msg.reply("#{thing} is the abbreviation for #{mod_name}") elsif module_text.include?("= {'#{thing}',") thing.gsub!(/\'/) { "\\'" } match_data = module_text.scan(/([A-Z0-9\-]+) = {'#{thing}',/) msg.reply("#{thing} is abbreviated as #{match_data[0][0]}") else msg.reply("#{thing} does not appear to be in the abbreviation " \ 'list, but there were similar non-exact results. ' \ 'Try something similar.') end else msg.reply("#{thing} does not appear to be in the abbreviation list.") end end end end end
8aa5868c504a0f4d2b53a014b002fb350d99ed83
app/views/articles/show.html.erb
app/views/articles/show.html.erb
<% set_meta_tags(title: article.title, description: article.description, canonical: article.canonical_url, alternate: article.alternate_options) %> <% content_for(:context_bar) do %> <% if @breadcrumbs.present? %> <%= render 'shared/breadcrumbs', breadcrumbs: @breadcrumbs %> <% elsif article.categories.present? %> <%= render 'shared/related_categories', categories: article.categories %> <% end %> <% end %> <div class="l-main editorial"> <div class="l-main__row"> <main class="l-main__cell-single" role="main"> <%= heading_tag article.title %> <%= article.content %> <%= render 'shared/related_links', article: @article, categories: related_content %> <%= render 'shared/feedback_panel', article: @article %> </main> </div> </div> <div class="l-nav"> <%= render 'shared/nav', categories: category_navigation, active_categories: active_categories %> </div> <% content_for(:alternate_link) do %> <% article.footer_alternate_options.each do |locale, url| %> <%= link_to(url, id: "#{locale}Link", lang: locale, class: 'footer-secondary__link') do %> <span class="icon icon--globe"></span> <%= t("locales.#{locale}") %> <% end %> <% end %> <% end %>
<% set_meta_tags(title: article.title, description: article.description, canonical: article.canonical_url, alternate: article.alternate_options) %> <% content_for(:context_bar) do %> <% if @breadcrumbs.present? %> <%= render 'shared/breadcrumbs', breadcrumbs: @breadcrumbs %> <% elsif article.categories.present? %> <%= render 'shared/related_categories', categories: article.categories %> <% end %> <% end %> <div class="l-main editorial"> <div class="l-main__row"> <main class="l-main__cell-single" role="main"> <%= heading_tag article.title %> <%= article.content %> <%= render 'shared/related_links', article: @article, categories: related_content %> <% if Feature.active?(:feedback) %> <%= render 'shared/feedback_panel', article: article %> <% end %> </main> </div> </div> <div class="l-nav"> <%= render 'shared/nav', categories: category_navigation, active_categories: active_categories %> </div> <% content_for(:alternate_link) do %> <% article.footer_alternate_options.each do |locale, url| %> <%= link_to(url, id: "#{locale}Link", lang: locale, class: 'footer-secondary__link') do %> <span class="icon icon--globe"></span> <%= t("locales.#{locale}") %> <% end %> <% end %> <% end %>
Put the feedback panel on articles behind a feature toggle.
Put the feedback panel on articles behind a feature toggle.
HTML+ERB
mit
moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend,moneyadviceservice/frontend
html+erb
## Code Before: <% set_meta_tags(title: article.title, description: article.description, canonical: article.canonical_url, alternate: article.alternate_options) %> <% content_for(:context_bar) do %> <% if @breadcrumbs.present? %> <%= render 'shared/breadcrumbs', breadcrumbs: @breadcrumbs %> <% elsif article.categories.present? %> <%= render 'shared/related_categories', categories: article.categories %> <% end %> <% end %> <div class="l-main editorial"> <div class="l-main__row"> <main class="l-main__cell-single" role="main"> <%= heading_tag article.title %> <%= article.content %> <%= render 'shared/related_links', article: @article, categories: related_content %> <%= render 'shared/feedback_panel', article: @article %> </main> </div> </div> <div class="l-nav"> <%= render 'shared/nav', categories: category_navigation, active_categories: active_categories %> </div> <% content_for(:alternate_link) do %> <% article.footer_alternate_options.each do |locale, url| %> <%= link_to(url, id: "#{locale}Link", lang: locale, class: 'footer-secondary__link') do %> <span class="icon icon--globe"></span> <%= t("locales.#{locale}") %> <% end %> <% end %> <% end %> ## Instruction: Put the feedback panel on articles behind a feature toggle. ## Code After: <% set_meta_tags(title: article.title, description: article.description, canonical: article.canonical_url, alternate: article.alternate_options) %> <% content_for(:context_bar) do %> <% if @breadcrumbs.present? %> <%= render 'shared/breadcrumbs', breadcrumbs: @breadcrumbs %> <% elsif article.categories.present? %> <%= render 'shared/related_categories', categories: article.categories %> <% end %> <% end %> <div class="l-main editorial"> <div class="l-main__row"> <main class="l-main__cell-single" role="main"> <%= heading_tag article.title %> <%= article.content %> <%= render 'shared/related_links', article: @article, categories: related_content %> <% if Feature.active?(:feedback) %> <%= render 'shared/feedback_panel', article: article %> <% end %> </main> </div> </div> <div class="l-nav"> <%= render 'shared/nav', categories: category_navigation, active_categories: active_categories %> </div> <% content_for(:alternate_link) do %> <% article.footer_alternate_options.each do |locale, url| %> <%= link_to(url, id: "#{locale}Link", lang: locale, class: 'footer-secondary__link') do %> <span class="icon icon--globe"></span> <%= t("locales.#{locale}") %> <% end %> <% end %> <% end %>
fd5dd54e90b46048453b08d3012bf02ba1551e07
uk_central_london.html
uk_central_london.html
--- layout: base title: Computer Anonymous Central London --- <h1>Computer Anonymous — Central London</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h2>The Meetings</h2> <h3>Venue</h3> <p><a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <p>The nearest station is Holborn</p> <p>We're open to other venue suggestions in Zone 1, especially those that are accessible, well connected, and not necessarily in a pub, or loud</p> <h3>Date</h3> <p>Our first meeting will be Thursday the 21st of Novemeber, from 18.00, at <a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <h3>Questions/Problems?</h3> <p>Talk to us if you want to attend, or just turn up!</p> <p>On twitter: <a href="https://twitter.com/doismellburning">@doismellburning</a>, <a href="https://twitter.com/alsothings">@alsothings</a></p> <p>If you want to attend, say hello to someone, and they will drag you along.</p>
--- layout: base title: Computer Anonymous Central London --- <h1>Computer Anonymous — Central London</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h2>Current Status</h2> <p>The Central London group is currently inactive — please see <a href="http://computeranonymous.org/uk_london.html">the London group</a> for ongoing meetups.</p> <h2>The Meetings</h2> <h3>Venue</h3> <p><a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <p>The nearest station is Holborn</p> <p>We're open to other venue suggestions in Zone 1, especially those that are accessible, well connected, and not necessarily in a pub, or loud</p> <h3>Date</h3> <p>Our first meeting will be Thursday the 21st of Novemeber, from 18.00, at <a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <h3>Questions/Problems?</h3> <p>Talk to us if you want to attend, or just turn up!</p> <p>On twitter: <a href="https://twitter.com/doismellburning">@doismellburning</a>, <a href="https://twitter.com/alsothings">@alsothings</a></p> <p>If you want to attend, say hello to someone, and they will drag you along.</p>
Add note on current status of Central London group
Add note on current status of Central London group
HTML
cc0-1.0
ComputerAnonymousSeattle/computer,ComputerAnonymousSeattle/computer,patrickod/computer,patrickod/computer,tdfischer/computer,tdfischer/computer
html
## Code Before: --- layout: base title: Computer Anonymous Central London --- <h1>Computer Anonymous — Central London</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h2>The Meetings</h2> <h3>Venue</h3> <p><a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <p>The nearest station is Holborn</p> <p>We're open to other venue suggestions in Zone 1, especially those that are accessible, well connected, and not necessarily in a pub, or loud</p> <h3>Date</h3> <p>Our first meeting will be Thursday the 21st of Novemeber, from 18.00, at <a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <h3>Questions/Problems?</h3> <p>Talk to us if you want to attend, or just turn up!</p> <p>On twitter: <a href="https://twitter.com/doismellburning">@doismellburning</a>, <a href="https://twitter.com/alsothings">@alsothings</a></p> <p>If you want to attend, say hello to someone, and they will drag you along.</p> ## Instruction: Add note on current status of Central London group ## Code After: --- layout: base title: Computer Anonymous Central London --- <h1>Computer Anonymous — Central London</h1> <p> Read <a href="index.html">The overview</a> if you haven't already, especially the code of conduct. </p> <h2>Current Status</h2> <p>The Central London group is currently inactive — please see <a href="http://computeranonymous.org/uk_london.html">the London group</a> for ongoing meetups.</p> <h2>The Meetings</h2> <h3>Venue</h3> <p><a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <p>The nearest station is Holborn</p> <p>We're open to other venue suggestions in Zone 1, especially those that are accessible, well connected, and not necessarily in a pub, or loud</p> <h3>Date</h3> <p>Our first meeting will be Thursday the 21st of Novemeber, from 18.00, at <a href="http://holbornwhippet.com/">The Holborn Whippet</a></p> <h3>Questions/Problems?</h3> <p>Talk to us if you want to attend, or just turn up!</p> <p>On twitter: <a href="https://twitter.com/doismellburning">@doismellburning</a>, <a href="https://twitter.com/alsothings">@alsothings</a></p> <p>If you want to attend, say hello to someone, and they will drag you along.</p>
3bbe3a5569cf2f031e70919de6dc70ee39b15441
src/Compiler/TypeChecking/Context.hs
src/Compiler/TypeChecking/Context.hs
module Compiler.TypeChecking.Context ( -- * Kinds. Kind , KindCtx -- * Types. , Scheme(..) , TyCtx ) where import qualified Data.Map as Map import Data.Map (Map) import Compiler.AST -- | The type for kinds. -- -- Since the only possible kinds are of the form @* -> * -> ... -> *@, -- we can just store their arity. type Kind = Int -- | Kind context. -- -- Used for kind checking of data definitions and user-declared types. -- Internal types have correct kind by construction. type KindCtx = Map Name Kind -- | Typing context. type TyCtx = Map Name Scheme
module Compiler.TypeChecking.Context ( -- * Kinds. Kind , KindCtx -- * Types. , TyCtx -- * Type signatures. , SigCtx -- * Type inference context. , TICtx ) where import qualified Data.Map as Map import Data.Map (Map) import Compiler.AST -- | The type for kinds. -- -- Since the only possible kinds are of the form @* -> * -> ... -> *@, -- we can just store their arity. type Kind = Int -- | Kind context. -- -- Used for kind checking of data definitions and user-declared types. -- Internal types have correct kind by construction. type KindCtx = Map Name Kind -- | Typing context. type TyCtx = Map Name Scheme -- | Declared type signatures. type SigCtx = Map Name Scheme -- | All contexts needed for type inference. type TICtx = (KindCtx, TyCtx, SigCtx)
Add rest of contexts needed for type inference.
Add rest of contexts needed for type inference.
Haskell
bsd-3-clause
vituscze/norri
haskell
## Code Before: module Compiler.TypeChecking.Context ( -- * Kinds. Kind , KindCtx -- * Types. , Scheme(..) , TyCtx ) where import qualified Data.Map as Map import Data.Map (Map) import Compiler.AST -- | The type for kinds. -- -- Since the only possible kinds are of the form @* -> * -> ... -> *@, -- we can just store their arity. type Kind = Int -- | Kind context. -- -- Used for kind checking of data definitions and user-declared types. -- Internal types have correct kind by construction. type KindCtx = Map Name Kind -- | Typing context. type TyCtx = Map Name Scheme ## Instruction: Add rest of contexts needed for type inference. ## Code After: module Compiler.TypeChecking.Context ( -- * Kinds. Kind , KindCtx -- * Types. , TyCtx -- * Type signatures. , SigCtx -- * Type inference context. , TICtx ) where import qualified Data.Map as Map import Data.Map (Map) import Compiler.AST -- | The type for kinds. -- -- Since the only possible kinds are of the form @* -> * -> ... -> *@, -- we can just store their arity. type Kind = Int -- | Kind context. -- -- Used for kind checking of data definitions and user-declared types. -- Internal types have correct kind by construction. type KindCtx = Map Name Kind -- | Typing context. type TyCtx = Map Name Scheme -- | Declared type signatures. type SigCtx = Map Name Scheme -- | All contexts needed for type inference. type TICtx = (KindCtx, TyCtx, SigCtx)
9839d312cf9a3605f3b78eefc9a0133b9a5e333c
.travis.yml
.travis.yml
language: ruby bundler_args: --without extras osx rvm: - 1.9.3 - jruby-19mode - rbx-19mode
language: ruby bundler_args: --without extras osx rvm: - 1.9.3 - rbx-19mode
Remove JRuby from Travis Rubies for now
Remove JRuby from Travis Rubies for now JRuby can not build and install the posix-spawn gem, which causes the build to fail.
YAML
mit
jcf/rails_git_version,jcf/rails_git_version,jcf/rails_git_version
yaml
## Code Before: language: ruby bundler_args: --without extras osx rvm: - 1.9.3 - jruby-19mode - rbx-19mode ## Instruction: Remove JRuby from Travis Rubies for now JRuby can not build and install the posix-spawn gem, which causes the build to fail. ## Code After: language: ruby bundler_args: --without extras osx rvm: - 1.9.3 - rbx-19mode
5d14030bad8c2840bc045ca428ab831e2f1a6695
ui/plugins/talos/main.html
ui/plugins/talos/main.html
<span ng-repeat="line in job_details"> <ul ng-if="line.content_type == 'TalosResult'"> <li>Datazilla: <ul> <li ng-repeat="(k,v) in line.value.datazilla"><a href="{{::v.url}}" target="_blank">{{::k}}</a> </li> </ul> </li> <li>Graphserver: <ul> <li ng-repeat="(k,v) in line.value.graphserver">{{::k}}:<a href="{{::v.url}}" target="_blank">{{::v.result}}</a> </li> </ul> </li> </ul> </span> <ul> <li ng-repeat="line in job_details" ng-if="line.content_type == 'link' && line.value.substr(-8) == '.sps.zip'"> <a href="http://people.mozilla.com/~bgirard/cleopatra/?zippedProfile={{line.url}}">Open {{line.value}} in Cleopatra</a> </li> </ul>
<span ng-repeat="line in job_details"> <ul ng-if="line.content_type == 'TalosResult'"> <li>Datazilla: <ul> <li ng-repeat="(k,v) in line.value.datazilla"><a href="{{::v.url}}" target="_blank">{{::k}}</a> </li> </ul> </li> <li>Graphserver: <ul> <li ng-repeat="(k,v) in line.value.graphserver">{{::k}}:<a href="{{::v.url}}" target="_blank">{{::v.result}}</a> </li> </ul> </li> </ul> </span> <ul> <li ng-repeat="line in job_details" ng-if="line.content_type == 'link' && line.value.substr(-8) == '.sps.zip'"> <a href="http://people.mozilla.com/~bgirard/cleopatra/?zippedProfile={{line.url}}" target="_blank">Open {{line.value}} in Cleopatra</a> </li> </ul>
Add target="_blank" to the cleopatra links.
Add target="_blank" to the cleopatra links.
HTML
mpl-2.0
rail/treeherder,rail/treeherder,parkouss/treeherder,KWierso/treeherder,KWierso/treeherder,adusca/treeherder,sylvestre/treeherder,parkouss/treeherder,glenn124f/treeherder,kapy2010/treeherder,akhileshpillai/treeherder,adusca/treeherder,deathping1994/treeherder,edmorley/treeherder,wlach/treeherder,edmorley/treeherder,sylvestre/treeherder,sylvestre/treeherder,rail/treeherder,jgraham/treeherder,adusca/treeherder,adusca/treeherder,gbrmachado/treeherder,moijes12/treeherder,kapy2010/treeherder,vaishalitekale/treeherder,wlach/treeherder,moijes12/treeherder,tojon/treeherder,tojonmz/treeherder,akhileshpillai/treeherder,moijes12/treeherder,avih/treeherder,glenn124f/treeherder,glenn124f/treeherder,kapy2010/treeherder,moijes12/treeherder,vaishalitekale/treeherder,vaishalitekale/treeherder,avih/treeherder,jgraham/treeherder,tojon/treeherder,wlach/treeherder,gbrmachado/treeherder,sylvestre/treeherder,glenn124f/treeherder,tojonmz/treeherder,tojonmz/treeherder,jgraham/treeherder,rail/treeherder,akhileshpillai/treeherder,moijes12/treeherder,kapy2010/treeherder,akhileshpillai/treeherder,rail/treeherder,moijes12/treeherder,parkouss/treeherder,kapy2010/treeherder,vaishalitekale/treeherder,jgraham/treeherder,deathping1994/treeherder,wlach/treeherder,avih/treeherder,tojon/treeherder,sylvestre/treeherder,rail/treeherder,akhileshpillai/treeherder,avih/treeherder,tojonmz/treeherder,KWierso/treeherder,tojonmz/treeherder,vaishalitekale/treeherder,tojonmz/treeherder,adusca/treeherder,glenn124f/treeherder,parkouss/treeherder,gbrmachado/treeherder,vaishalitekale/treeherder,tojon/treeherder,jgraham/treeherder,deathping1994/treeherder,edmorley/treeherder,avih/treeherder,KWierso/treeherder,edmorley/treeherder,deathping1994/treeherder,glenn124f/treeherder,avih/treeherder,gbrmachado/treeherder,deathping1994/treeherder,parkouss/treeherder,deathping1994/treeherder,wlach/treeherder,wlach/treeherder,adusca/treeherder,jgraham/treeherder,gbrmachado/treeherder,parkouss/treeherder,akhileshpillai/treeherder,gbrmachado/treeherder,sylvestre/treeherder
html
## Code Before: <span ng-repeat="line in job_details"> <ul ng-if="line.content_type == 'TalosResult'"> <li>Datazilla: <ul> <li ng-repeat="(k,v) in line.value.datazilla"><a href="{{::v.url}}" target="_blank">{{::k}}</a> </li> </ul> </li> <li>Graphserver: <ul> <li ng-repeat="(k,v) in line.value.graphserver">{{::k}}:<a href="{{::v.url}}" target="_blank">{{::v.result}}</a> </li> </ul> </li> </ul> </span> <ul> <li ng-repeat="line in job_details" ng-if="line.content_type == 'link' && line.value.substr(-8) == '.sps.zip'"> <a href="http://people.mozilla.com/~bgirard/cleopatra/?zippedProfile={{line.url}}">Open {{line.value}} in Cleopatra</a> </li> </ul> ## Instruction: Add target="_blank" to the cleopatra links. ## Code After: <span ng-repeat="line in job_details"> <ul ng-if="line.content_type == 'TalosResult'"> <li>Datazilla: <ul> <li ng-repeat="(k,v) in line.value.datazilla"><a href="{{::v.url}}" target="_blank">{{::k}}</a> </li> </ul> </li> <li>Graphserver: <ul> <li ng-repeat="(k,v) in line.value.graphserver">{{::k}}:<a href="{{::v.url}}" target="_blank">{{::v.result}}</a> </li> </ul> </li> </ul> </span> <ul> <li ng-repeat="line in job_details" ng-if="line.content_type == 'link' && line.value.substr(-8) == '.sps.zip'"> <a href="http://people.mozilla.com/~bgirard/cleopatra/?zippedProfile={{line.url}}" target="_blank">Open {{line.value}} in Cleopatra</a> </li> </ul>
7d4ae01a2cea86a33d33662c7ac0c1f79588b03f
src/Listeners/LogOutUser.php
src/Listeners/LogOutUser.php
<?php namespace TitusPiJean\Flarum\Auth\SSOwat\Listeners; use Flarum\Core\User; use Flarum\Event\UserLoggedOut; use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; class LogOutUser { protected $settings; public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; //$this->user = $user; } public function subscribe(Dispatcher $events) { $events->listen(UserLoggedOut::class, [$this, 'addLogoutRedirect']); } public function addLogoutRedirect(UserLoggedOut $event) { $ssowat = $this->settings->get('flarum-ext-auth-ssowat.address'); $ssowat_user = $_SERVER['PHP_AUTH_USER']; $flarum_user = $event->user->username; if ( $ssowat_user == $flarum_user ) { $r = base64_encode( "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $urlredirect = "https://" . $ssowat . "/yunohost/sso/?action=logout&r=" . $r; header("Location: " . $urlredirect . $r); /* Redirect browser */ die(); } else { die(); } } }
<?php namespace TitusPiJean\Flarum\Auth\SSOwat\Listeners; use Flarum\Core\User; use Flarum\Event\UserLoggedOut; use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; class LogOutUser { protected $settings; public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; } public function subscribe(Dispatcher $events) { $events->listen(UserLoggedOut::class, [$this, 'addLogoutRedirect']); } public function addLogoutRedirect(UserLoggedOut $event) { if isset($_SERVER['PHP_AUTH_USER']) { $ssowat = $this->settings->get('flarum-ext-auth-ssowat.address'); $ssowat_user = $_SERVER['PHP_AUTH_USER']; $flarum_user = $event->user->username; if ( $ssowat_user == $flarum_user ) { $r = base64_encode( "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $urlredirect = "https://" . $ssowat . "/yunohost/sso/?action=logout&r=" . $r; header("Location: " . $urlredirect . $r); /* Redirect browser */ exit; // Stop at SSO login } else { // Nothing } } else { // Nothing } } }
Fix logging out for non-SSO users
Fix logging out for non-SSO users
PHP
mit
tituspijean/flarum-ext-auth-ssowat,tituspijean/flarum-ext-auth-ssowat
php
## Code Before: <?php namespace TitusPiJean\Flarum\Auth\SSOwat\Listeners; use Flarum\Core\User; use Flarum\Event\UserLoggedOut; use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; class LogOutUser { protected $settings; public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; //$this->user = $user; } public function subscribe(Dispatcher $events) { $events->listen(UserLoggedOut::class, [$this, 'addLogoutRedirect']); } public function addLogoutRedirect(UserLoggedOut $event) { $ssowat = $this->settings->get('flarum-ext-auth-ssowat.address'); $ssowat_user = $_SERVER['PHP_AUTH_USER']; $flarum_user = $event->user->username; if ( $ssowat_user == $flarum_user ) { $r = base64_encode( "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $urlredirect = "https://" . $ssowat . "/yunohost/sso/?action=logout&r=" . $r; header("Location: " . $urlredirect . $r); /* Redirect browser */ die(); } else { die(); } } } ## Instruction: Fix logging out for non-SSO users ## Code After: <?php namespace TitusPiJean\Flarum\Auth\SSOwat\Listeners; use Flarum\Core\User; use Flarum\Event\UserLoggedOut; use Flarum\Settings\SettingsRepositoryInterface; use Illuminate\Contracts\Events\Dispatcher; class LogOutUser { protected $settings; public function __construct(SettingsRepositoryInterface $settings) { $this->settings = $settings; } public function subscribe(Dispatcher $events) { $events->listen(UserLoggedOut::class, [$this, 'addLogoutRedirect']); } public function addLogoutRedirect(UserLoggedOut $event) { if isset($_SERVER['PHP_AUTH_USER']) { $ssowat = $this->settings->get('flarum-ext-auth-ssowat.address'); $ssowat_user = $_SERVER['PHP_AUTH_USER']; $flarum_user = $event->user->username; if ( $ssowat_user == $flarum_user ) { $r = base64_encode( "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); $urlredirect = "https://" . $ssowat . "/yunohost/sso/?action=logout&r=" . $r; header("Location: " . $urlredirect . $r); /* Redirect browser */ exit; // Stop at SSO login } else { // Nothing } } else { // Nothing } } }
c59c811893fbffd62e9175898e68abdbb44f7ef7
lib/knowledge_base/concerns/models/category.rb
lib/knowledge_base/concerns/models/category.rb
module KnowledgeBase::Concerns::Models::Category extend ActiveSupport::Concern included do extend FriendlyId publishable on: :published_at friendly_id :title, use: :slugged belongs_to :category has_many :category_article_associations, -> { order 'position ASC' } has_many :articles, through: :category_article_associations accepts_nested_attributes_for :category_article_associations, allow_destroy: true scope :root, -> { where parent_id: nil } scope :published, -> { where published: true } def to_s title end end end
module KnowledgeBase::Concerns::Models::Category extend ActiveSupport::Concern included do extend FriendlyId publishable on: :published_at friendly_id :title, use: :slugged belongs_to :category has_many :category_article_associations, -> { order 'position ASC' } has_many :articles, through: :category_article_associations accepts_nested_attributes_for :category_article_associations, allow_destroy: true scope :root, -> { where parent_id: nil } def to_s title end end end
Remove scope that shouldn't be there
Remove scope that shouldn't be there
Ruby
mit
hyperoslo/knowledge_base,hyperoslo/knowledge_base,hyperoslo/knowledge_base
ruby
## Code Before: module KnowledgeBase::Concerns::Models::Category extend ActiveSupport::Concern included do extend FriendlyId publishable on: :published_at friendly_id :title, use: :slugged belongs_to :category has_many :category_article_associations, -> { order 'position ASC' } has_many :articles, through: :category_article_associations accepts_nested_attributes_for :category_article_associations, allow_destroy: true scope :root, -> { where parent_id: nil } scope :published, -> { where published: true } def to_s title end end end ## Instruction: Remove scope that shouldn't be there ## Code After: module KnowledgeBase::Concerns::Models::Category extend ActiveSupport::Concern included do extend FriendlyId publishable on: :published_at friendly_id :title, use: :slugged belongs_to :category has_many :category_article_associations, -> { order 'position ASC' } has_many :articles, through: :category_article_associations accepts_nested_attributes_for :category_article_associations, allow_destroy: true scope :root, -> { where parent_id: nil } def to_s title end end end
5ba1b7b0f32c690454a5cefdd0185fb6d3717337
scss/modules/_images.scss
scss/modules/_images.scss
// RESPONSIVE FLOATED IMAGES // -------------------------------------------------------------------- %image-block { display: block; @include x-rem(margin, 1 0); } // For use with → processwire.com // .align_left, // .align_right { // @extend %image-block; // }
// RESPONSIVE FLOATED IMAGES // -------------------------------------------------------------------- %image-block { display: block; @include x-rem(margin, 1 0); } // For use with → processwire.com // .align_left, // .align_right { // @extend %image-block; // } @media only screen and (min-width: 768px) { %image-left { float: left; @include x-rem(margin, 0.25 1 0.75 0); } %image-right { float: right; @include x-rem(margin, 0.25 0 0.75 1); } // For use with → processwire.com // .align_left { // @extend %image-left; // } // .align_right { // @extend %image-right; // } }
Move these back to images module.
Move these back to images module.
SCSS
mit
yellowled/yl-bp,yellowled/yl-bp
scss
## Code Before: // RESPONSIVE FLOATED IMAGES // -------------------------------------------------------------------- %image-block { display: block; @include x-rem(margin, 1 0); } // For use with → processwire.com // .align_left, // .align_right { // @extend %image-block; // } ## Instruction: Move these back to images module. ## Code After: // RESPONSIVE FLOATED IMAGES // -------------------------------------------------------------------- %image-block { display: block; @include x-rem(margin, 1 0); } // For use with → processwire.com // .align_left, // .align_right { // @extend %image-block; // } @media only screen and (min-width: 768px) { %image-left { float: left; @include x-rem(margin, 0.25 1 0.75 0); } %image-right { float: right; @include x-rem(margin, 0.25 0 0.75 1); } // For use with → processwire.com // .align_left { // @extend %image-left; // } // .align_right { // @extend %image-right; // } }
fabcdef8e6e97d50c83d5745810807c79f14ae1e
CONTRIBUTING.md
CONTRIBUTING.md
TK ### Code formatting Please make sure that you always apply the project codestyles when formatting the code. If you are not sure how to configure that properly in Android Studio or IntelliJ please follow the official [instructions](https://www.jetbrains.com/help/idea/configuring-code-style.html).
Please make sure that you always apply the project codestyles when formatting the code. If you are not sure how to configure that properly in Android Studio or IntelliJ please follow the official [instructions](https://www.jetbrains.com/help/idea/configuring-code-style.html).
Remove TK abbreviation and change headline formats.
Remove TK abbreviation and change headline formats.
Markdown
apache-2.0
grandcentrix/ThirtyInch,grandcentrix/ThirtyInch
markdown
## Code Before: TK ### Code formatting Please make sure that you always apply the project codestyles when formatting the code. If you are not sure how to configure that properly in Android Studio or IntelliJ please follow the official [instructions](https://www.jetbrains.com/help/idea/configuring-code-style.html). ## Instruction: Remove TK abbreviation and change headline formats. ## Code After: Please make sure that you always apply the project codestyles when formatting the code. If you are not sure how to configure that properly in Android Studio or IntelliJ please follow the official [instructions](https://www.jetbrains.com/help/idea/configuring-code-style.html).
299f484b680631d30da76543c1eb0318d859eb87
gradle.properties
gradle.properties
name=SpongeAPI version=7.3.0 description=A Minecraft plugin API url=https://www.spongepowered.org organization=SpongePowered gradleVersion=3.3 org.gradle.jvmargs=-Xmx3G
name=SpongeAPI version=7.4.0-SNAPSHOT description=A Minecraft plugin API url=https://www.spongepowered.org organization=SpongePowered gradleVersion=3.3 org.gradle.jvmargs=-Xmx3G
Set version to 7.4.0-SNAPSHOT for continued development
Set version to 7.4.0-SNAPSHOT for continued development
INI
mit
SpongePowered/SpongeAPI,SpongePowered/SpongeAPI,SpongePowered/SpongeAPI
ini
## Code Before: name=SpongeAPI version=7.3.0 description=A Minecraft plugin API url=https://www.spongepowered.org organization=SpongePowered gradleVersion=3.3 org.gradle.jvmargs=-Xmx3G ## Instruction: Set version to 7.4.0-SNAPSHOT for continued development ## Code After: name=SpongeAPI version=7.4.0-SNAPSHOT description=A Minecraft plugin API url=https://www.spongepowered.org organization=SpongePowered gradleVersion=3.3 org.gradle.jvmargs=-Xmx3G
99305027a162e30813fce773a9c44bb9d0f67381
lib/hue.rb
lib/hue.rb
require 'hue/version' require 'hue/errors' require 'hue/client' require 'hue/bridge' require 'hue/editable_state' require 'hue/translate_keys' require 'hue/light' require 'hue/group' require 'hue/scene' module Hue USERNAME_RANGE = 10..40 USERNAME = '1234567890' end
require 'hue/version' require 'hue/errors' require 'hue/client' require 'hue/bridge' require 'hue/editable_state' require 'hue/translate_keys' require 'hue/light' require 'hue/group' require 'hue/scene' module Hue USERNAME_RANGE = 10..40 USERNAME = (ENV['HUE_BRIDGE_USER'] && ENV['HUE_BRIDGE_USER'] != '') ? ENV['HUE_BRIDGE_USER'] : '1234567890' end
Allow specifying user ID via env var.
Allow specifying user ID via env var.
Ruby
mit
MrJoy/audio_playground,MrJoy/sparkle_motion,MrJoy/flux-hue,MrJoy/flux-hue,MrJoy/flux-hue,MrJoy/audio_playground,MrJoy/sparkle_motion,MrJoy/sparkle_motion,MrJoy/audio_playground
ruby
## Code Before: require 'hue/version' require 'hue/errors' require 'hue/client' require 'hue/bridge' require 'hue/editable_state' require 'hue/translate_keys' require 'hue/light' require 'hue/group' require 'hue/scene' module Hue USERNAME_RANGE = 10..40 USERNAME = '1234567890' end ## Instruction: Allow specifying user ID via env var. ## Code After: require 'hue/version' require 'hue/errors' require 'hue/client' require 'hue/bridge' require 'hue/editable_state' require 'hue/translate_keys' require 'hue/light' require 'hue/group' require 'hue/scene' module Hue USERNAME_RANGE = 10..40 USERNAME = (ENV['HUE_BRIDGE_USER'] && ENV['HUE_BRIDGE_USER'] != '') ? ENV['HUE_BRIDGE_USER'] : '1234567890' end
9a18702defa8e9a66cbc8e81ac7c4dc1d8a991ae
app/views/index.html
app/views/index.html
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Who dat baby</title> <link rel="stylesheet" href="app.css"/> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-route.js"></script> <script src="app.js"></script> <script src="services.js"></script> <script src="controllers.js"></script> <script src="filters.js"></script> <script src="directives.js"></script> </head> <body ng-app="whodatbaby"> <ul class="menu"> <li><a href="#/getBabies/100/100">view1</a></li> </ul> <div class="container"> <ng-view></ng-view> </div> <!-- In production use: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> --> </body> </html>
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Know dat baby</title> <link rel="stylesheet" href="app.css"/> <link href="bootstrap.min.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-route.js"></script> <script src="app.js"></script> <script src="services.js"></script> <script src="controllers.js"></script> <script src="filters.js"></script> <script src="directives.js"></script> </head> <body ng-app="whodatbaby"> <ul class="menu"> <li><a href="#/getBabies/100/100">view1</a></li> </ul> <div class="container"> <ng-view></ng-view> </div> <!-- In production use: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> --> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://code.jquery.com/jquery.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="bootstrap.min.js"></script> </body> </html>
Load css and scripts for bootstrap
Load css and scripts for bootstrap
HTML
mit
surajp/whodatbaby,surajp/whodatbaby,surajp/whodatbaby
html
## Code Before: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Who dat baby</title> <link rel="stylesheet" href="app.css"/> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-route.js"></script> <script src="app.js"></script> <script src="services.js"></script> <script src="controllers.js"></script> <script src="filters.js"></script> <script src="directives.js"></script> </head> <body ng-app="whodatbaby"> <ul class="menu"> <li><a href="#/getBabies/100/100">view1</a></li> </ul> <div class="container"> <ng-view></ng-view> </div> <!-- In production use: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> --> </body> </html> ## Instruction: Load css and scripts for bootstrap ## Code After: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Know dat baby</title> <link rel="stylesheet" href="app.css"/> <link href="bootstrap.min.css" rel="stylesheet"> <link href="style.css" rel="stylesheet"> <script src="lib/angular/angular.js"></script> <script src="lib/angular/angular-route.js"></script> <script src="app.js"></script> <script src="services.js"></script> <script src="controllers.js"></script> <script src="filters.js"></script> <script src="directives.js"></script> </head> <body ng-app="whodatbaby"> <ul class="menu"> <li><a href="#/getBabies/100/100">view1</a></li> </ul> <div class="container"> <ng-view></ng-view> </div> <!-- In production use: <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> --> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://code.jquery.com/jquery.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="bootstrap.min.js"></script> </body> </html>
0f18b3ff63bf6183247e7bce25160547f8cfc21d
setup.py
setup.py
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.3', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://bitbucket.org/brandon/adventure/overview', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], )
import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.3', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://bitbucket.org/brandon/adventure/overview', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], )
Change PyPI trove classifier for license terms.
Change PyPI trove classifier for license terms.
Python
apache-2.0
devinmcgloin/advent,devinmcgloin/advent
python
## Code Before: import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.3', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://bitbucket.org/brandon/adventure/overview', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], ) ## Instruction: Change PyPI trove classifier for license terms. ## Code After: import os import sys from distutils.core import setup if sys.version_info < (3,): print('\nSorry, but Adventure can only be installed under Python 3.\n') sys.exit(1) README_PATH = os.path.join(os.path.dirname(__file__), 'adventure', 'README.txt') with open(README_PATH, encoding="utf-8") as f: README_TEXT = f.read() setup( name='adventure', version='1.3', description='Colossal Cave adventure game at the Python prompt', long_description=README_TEXT, author='Brandon Craig Rhodes', author_email='brandon@rhodesmill.org', url='https://bitbucket.org/brandon/adventure/overview', packages=['adventure', 'adventure/tests'], package_data={'adventure': ['README.txt', '*.dat', 'tests/*.txt']}, classifiers=[ 'Development Status :: 6 - Mature', 'Environment :: Console', 'Intended Audience :: End Users/Desktop', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Topic :: Games/Entertainment', ], )
460571689631e080ede6757e106f86817b7069ac
test/fog/compute/brightbox_test.rb
test/fog/compute/brightbox_test.rb
require "minitest/autorun" require "fog/brightbox" class Fog::Compute::BrightboxTest < Minitest::Test def setup @arguments = {} @service = Fog::Compute::Brightbox.new(@arguments) end def test_respond_to_request assert_respond_to @service, :request end def test_respond_to_request_access_token assert_respond_to @service, :request_access_token end def test_respond_to_wrapped_request assert_respond_to @service, :wrapped_request end end
require "minitest/autorun" require "fog/brightbox" class Fog::Compute::BrightboxTest < Minitest::Test def setup @arguments = { :brightbox_auth_url => "http://localhost", :brightbox_api_url => "http://localhost", :brightbox_client_id => "", :brightbox_secret => "", :brightbox_username => "", :brightbox_password => "", :brightbox_account => "" } @credential_guard = Minitest::Mock.new def @credential_guard.reject {} end Fog.stub :credentials, @credential_guard do @service = Fog::Compute::Brightbox.new(@arguments) end end def test_respond_to_request assert_respond_to @service, :request end def test_respond_to_request_access_token assert_respond_to @service, :request_access_token end def test_respond_to_wrapped_request assert_respond_to @service, :wrapped_request end end
Remove dependency on .fog in test
[Brightbox] Remove dependency on .fog in test This isolates the tests from the values in `Fog.credentials` which is based on the contents of `~/.fog` Underlying problem is that the code (and many others) rely on the Fog global making it too tightly coupled to the environment hence having to stub. Full issue: https://github.com/fog/fog/issues/1390 This will probably be a repeating pattern we need to work on to DRY up so every test from every provider doesn't include this setup workaround.
Ruby
mit
fog/fog-brightbox,plribeiro3000/fog-brightbox
ruby
## Code Before: require "minitest/autorun" require "fog/brightbox" class Fog::Compute::BrightboxTest < Minitest::Test def setup @arguments = {} @service = Fog::Compute::Brightbox.new(@arguments) end def test_respond_to_request assert_respond_to @service, :request end def test_respond_to_request_access_token assert_respond_to @service, :request_access_token end def test_respond_to_wrapped_request assert_respond_to @service, :wrapped_request end end ## Instruction: [Brightbox] Remove dependency on .fog in test This isolates the tests from the values in `Fog.credentials` which is based on the contents of `~/.fog` Underlying problem is that the code (and many others) rely on the Fog global making it too tightly coupled to the environment hence having to stub. Full issue: https://github.com/fog/fog/issues/1390 This will probably be a repeating pattern we need to work on to DRY up so every test from every provider doesn't include this setup workaround. ## Code After: require "minitest/autorun" require "fog/brightbox" class Fog::Compute::BrightboxTest < Minitest::Test def setup @arguments = { :brightbox_auth_url => "http://localhost", :brightbox_api_url => "http://localhost", :brightbox_client_id => "", :brightbox_secret => "", :brightbox_username => "", :brightbox_password => "", :brightbox_account => "" } @credential_guard = Minitest::Mock.new def @credential_guard.reject {} end Fog.stub :credentials, @credential_guard do @service = Fog::Compute::Brightbox.new(@arguments) end end def test_respond_to_request assert_respond_to @service, :request end def test_respond_to_request_access_token assert_respond_to @service, :request_access_token end def test_respond_to_wrapped_request assert_respond_to @service, :wrapped_request end end
5e2111a5ccc0bcbe7b9af4fec09b9b46eb03ebd3
GenNowPlayingMovieID.py
GenNowPlayingMovieID.py
import requests import re if __name__=="__main__": page = requests.get('https://movie.douban.com/nowplaying/beijing/') content=page.text.encode("utf-8") pattern=re.compile(r'(?<=id=")\d+(?="\n)') result=pattern.findall(content) for iterm in result: print iterm
import requests import re import time from time import gmtime, strftime class GenNowPlayingID(object): """docstring for ClassName""" def __init__(self): #super(ClassName, self).__init__() # self.arg = arg pass def GenNowPlayingIdList(self): page = requests.get('https://movie.douban.com/nowplaying/beijing/') content=page.text.encode("utf-8") pattern=re.compile(r'(?<=id=")\d+(?="\n)') result=pattern.findall(content) currentTime = strftime("%Y%m%d_%H:%M:%S", time.localtime(time.time())) print currentTime filename = './nowplaying_id/' + currentTime + '.id' fp = open(filename,'w') for iterm in result: fp.write(iterm+"\n") fp.close() if __name__=="__main__": genNowPlayingID = GenNowPlayingID() genNowPlayingID.GenNowPlayingIdList()
Write the nowplaying movie id to file
Write the nowplaying movie id to file
Python
apache-2.0
ModernKings/MKMovieCenter,ModernKings/MKMovieCenter,ModernKings/MKMovieCenter
python
## Code Before: import requests import re if __name__=="__main__": page = requests.get('https://movie.douban.com/nowplaying/beijing/') content=page.text.encode("utf-8") pattern=re.compile(r'(?<=id=")\d+(?="\n)') result=pattern.findall(content) for iterm in result: print iterm ## Instruction: Write the nowplaying movie id to file ## Code After: import requests import re import time from time import gmtime, strftime class GenNowPlayingID(object): """docstring for ClassName""" def __init__(self): #super(ClassName, self).__init__() # self.arg = arg pass def GenNowPlayingIdList(self): page = requests.get('https://movie.douban.com/nowplaying/beijing/') content=page.text.encode("utf-8") pattern=re.compile(r'(?<=id=")\d+(?="\n)') result=pattern.findall(content) currentTime = strftime("%Y%m%d_%H:%M:%S", time.localtime(time.time())) print currentTime filename = './nowplaying_id/' + currentTime + '.id' fp = open(filename,'w') for iterm in result: fp.write(iterm+"\n") fp.close() if __name__=="__main__": genNowPlayingID = GenNowPlayingID() genNowPlayingID.GenNowPlayingIdList()
f4893ea0c415f1633367fb66dff068eaaf247060
README.md
README.md
Shnappy =======
Shnappy ======= A simple website renderer built on dotCloud and Cloudant. What you need ------------- 1. A dotCloud account: https://www.dotcloud.com 2. A Cloudant account: https://cloudant.com How to Build ------------ 1. Make sure SBT is installed. Setup instructions are available here: http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html 2. Make sure Ruby is installed: ``` sudo apt-get install ruby-full build-essential; ``` 3. Install Bundler: ``` gem install bundler; bundle install; ``` 4. Then configure your site: ``` bundle exec rake setup; ``` 5. Deploy your code: ``` bundle exec rake deploy; ```
Add build instructions to wiki
Add build instructions to wiki
Markdown
mit
Nycto/Shnappy
markdown
## Code Before: Shnappy ======= ## Instruction: Add build instructions to wiki ## Code After: Shnappy ======= A simple website renderer built on dotCloud and Cloudant. What you need ------------- 1. A dotCloud account: https://www.dotcloud.com 2. A Cloudant account: https://cloudant.com How to Build ------------ 1. Make sure SBT is installed. Setup instructions are available here: http://www.scala-sbt.org/release/docs/Getting-Started/Setup.html 2. Make sure Ruby is installed: ``` sudo apt-get install ruby-full build-essential; ``` 3. Install Bundler: ``` gem install bundler; bundle install; ``` 4. Then configure your site: ``` bundle exec rake setup; ``` 5. Deploy your code: ``` bundle exec rake deploy; ```
0b939787f12fec3c842ecaaecc3cff2003611da5
richsobjects-api-provider-base-tests/src/main/java/com/github/ryanbrainard/richsobjects/api/client/SfdcApiTestSessionProvider.java
richsobjects-api-provider-base-tests/src/main/java/com/github/ryanbrainard/richsobjects/api/client/SfdcApiTestSessionProvider.java
package com.github.ryanbrainard.richsobjects.api.client; /** * @author Ryan Brainard */ public class SfdcApiTestSessionProvider implements SfdcApiSessionProvider { @Override public String getAccessToken() { return System.getProperty("sfdc.test.sessionId"); } @Override public String getApiEndpoint() { return System.getProperty("sfdc.test.endpoint"); } }
package com.github.ryanbrainard.richsobjects.api.client; /** * @author Ryan Brainard */ public class SfdcApiTestSessionProvider implements SfdcApiSessionProvider { @Override public String getAccessToken() { return getSystemPropertyOrEnvVar("sfdc.test.sessionId", "SFDC_TEST_SESSION_ID"); } @Override public String getApiEndpoint() { return getSystemPropertyOrEnvVar("sfdc.test.endpoint", "SFDC_TEST_ENDPOINT"); } private static String getSystemPropertyOrEnvVar(String systemProperty, String envVar) { if (System.getProperties().containsKey(systemProperty)) { return System.getProperty(systemProperty); } else if (System.getenv().containsKey(envVar)) { return System.getenv(envVar); } else { throw new RuntimeException("Could not log system property [" + systemProperty + "]" + " or environment variable [" + envVar + "]"); } } }
Allow test session and endpoint to come from env vars
Allow test session and endpoint to come from env vars
Java
mit
ryanbrainard/richsobjects
java
## Code Before: package com.github.ryanbrainard.richsobjects.api.client; /** * @author Ryan Brainard */ public class SfdcApiTestSessionProvider implements SfdcApiSessionProvider { @Override public String getAccessToken() { return System.getProperty("sfdc.test.sessionId"); } @Override public String getApiEndpoint() { return System.getProperty("sfdc.test.endpoint"); } } ## Instruction: Allow test session and endpoint to come from env vars ## Code After: package com.github.ryanbrainard.richsobjects.api.client; /** * @author Ryan Brainard */ public class SfdcApiTestSessionProvider implements SfdcApiSessionProvider { @Override public String getAccessToken() { return getSystemPropertyOrEnvVar("sfdc.test.sessionId", "SFDC_TEST_SESSION_ID"); } @Override public String getApiEndpoint() { return getSystemPropertyOrEnvVar("sfdc.test.endpoint", "SFDC_TEST_ENDPOINT"); } private static String getSystemPropertyOrEnvVar(String systemProperty, String envVar) { if (System.getProperties().containsKey(systemProperty)) { return System.getProperty(systemProperty); } else if (System.getenv().containsKey(envVar)) { return System.getenv(envVar); } else { throw new RuntimeException("Could not log system property [" + systemProperty + "]" + " or environment variable [" + envVar + "]"); } } }
76695aee5de66b4db45d7fc2c04d81f6b283c536
public/locales/sn/send.ftl
public/locales/sn/send.ftl
title = Firefox Send siteFeedback = Zvirikutaurwa importingFile = Kutora faira enableJavascript = Ndinokumbira mubvumidze JavaScript moedza zvekare # A short representation of a countdown timer containing the number of hours and minutes remaining as digits, example "13h 47m" expiresHoursMinutes = { $hours }maawa { $minutes }mineti # A short representation of a countdown timer containing the number of minutes remaining as digits, example "56m" expiresMinutes = { $minutes }mineti # A short status message shown when the user enters a long password maxPasswordLength = Pasiwedhi haipfuuri mavara:{ $length } # A short status message shown when there was an error setting the password passwordSetError = Pasiwedhi haina kuita ## Send version 2 strings
title = Firefox Send siteFeedback = Zvirikutaurwa importingFile = Kutora faira encryptingFile = Kuinikiriputa enableJavascript = Ndinokumbira mubvumidze JavaScript moedza zvekare # A short representation of a countdown timer containing the number of hours and minutes remaining as digits, example "13h 47m" expiresHoursMinutes = { $hours }maawa { $minutes }mineti # A short representation of a countdown timer containing the number of minutes remaining as digits, example "56m" expiresMinutes = { $minutes }mineti # A short status message shown when the user enters a long password maxPasswordLength = Pasiwedhi haipfuuri mavara:{ $length } # A short status message shown when there was an error setting the password passwordSetError = Pasiwedhi haina kuita ## Send version 2 strings
Update Shona (sn) localization of Firefox Send
Pontoon: Update Shona (sn) localization of Firefox Send Localization authors: - Anesu Chiodza <anesuchiodza@gmail.com>
FreeMarker
mpl-2.0
mozilla/send,mozilla/send,mozilla/send,mozilla/send,mozilla/send
freemarker
## Code Before: title = Firefox Send siteFeedback = Zvirikutaurwa importingFile = Kutora faira enableJavascript = Ndinokumbira mubvumidze JavaScript moedza zvekare # A short representation of a countdown timer containing the number of hours and minutes remaining as digits, example "13h 47m" expiresHoursMinutes = { $hours }maawa { $minutes }mineti # A short representation of a countdown timer containing the number of minutes remaining as digits, example "56m" expiresMinutes = { $minutes }mineti # A short status message shown when the user enters a long password maxPasswordLength = Pasiwedhi haipfuuri mavara:{ $length } # A short status message shown when there was an error setting the password passwordSetError = Pasiwedhi haina kuita ## Send version 2 strings ## Instruction: Pontoon: Update Shona (sn) localization of Firefox Send Localization authors: - Anesu Chiodza <anesuchiodza@gmail.com> ## Code After: title = Firefox Send siteFeedback = Zvirikutaurwa importingFile = Kutora faira encryptingFile = Kuinikiriputa enableJavascript = Ndinokumbira mubvumidze JavaScript moedza zvekare # A short representation of a countdown timer containing the number of hours and minutes remaining as digits, example "13h 47m" expiresHoursMinutes = { $hours }maawa { $minutes }mineti # A short representation of a countdown timer containing the number of minutes remaining as digits, example "56m" expiresMinutes = { $minutes }mineti # A short status message shown when the user enters a long password maxPasswordLength = Pasiwedhi haipfuuri mavara:{ $length } # A short status message shown when there was an error setting the password passwordSetError = Pasiwedhi haina kuita ## Send version 2 strings
2b0b686d8b0cb60b927347114fe69873134ce799
.travis.yml
.travis.yml
language: java pip install wstest # Should be default: # ./gradlew check
language: java install: "pip install wstest" # Should be default: # ./gradlew check
Put pip install in an install section
Travis: Put pip install in an install section
YAML
bsd-3-clause
provegard/tinyws
yaml
## Code Before: language: java pip install wstest # Should be default: # ./gradlew check ## Instruction: Travis: Put pip install in an install section ## Code After: language: java install: "pip install wstest" # Should be default: # ./gradlew check
29d1aed549321abb7ce74a4924df252ab5f75129
shaq_overflow/app/controllers/users_controller.rb
shaq_overflow/app/controllers/users_controller.rb
class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] before_action :require_login, except: [:new, :create] def new @user.new end def create @user = User.new(user_params) respond_to do |format| if @user.save format.html { redirect_to @user, notice: 'User Created' } format.json { render :user, status: :created, location: @user } else format.html { redirect_to :new_user } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def show end def edit end def update respond_to do |format| if @user.update(user_params) format.html { redirect_to @user, notice: 'User Updated' } format.json { render :show, status: :updated, location: @user } else format.html { redirect to :edit } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def destroy session.clear if @user == current_user @user.destroy respond_to do |format| format.html { redirect_to login } format.json { head :no_content } end end private def set_user @user = User.find(params[:id]) end def user_params params.require(:user).permit(:username, :email, :password) end end
class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] before_action :require_login, except: [:new, :create] def new @user = User.new end def create @user = User.new(user_params) respond_to do |format| if @user.save set_session format.html { redirect_to @user, notice: 'User Created' } format.json { render :user, status: :created, location: @user } else format.html { redirect_to :new_user } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def show end def edit end def update respond_to do |format| if @user.update(user_params) format.html { redirect_to @user, notice: 'User Updated' } format.json { render :show, status: :updated, location: @user } else format.html { redirect to :edit } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def destroy session.clear if @user == current_user @user.destroy respond_to do |format| format.html { redirect_to login } format.json { head :no_content } end end private def set_user @user = User.find(params[:id]) end def user_params params.require(:user).permit(:username, :email, :password) end end
Add redirect to user creation
Add redirect to user creation
Ruby
mit
lucasrsantos1/lucky-ambassador,lucasrsantos1/lucky-ambassador,lucasrsantos1/lucky-ambassador
ruby
## Code Before: class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] before_action :require_login, except: [:new, :create] def new @user.new end def create @user = User.new(user_params) respond_to do |format| if @user.save format.html { redirect_to @user, notice: 'User Created' } format.json { render :user, status: :created, location: @user } else format.html { redirect_to :new_user } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def show end def edit end def update respond_to do |format| if @user.update(user_params) format.html { redirect_to @user, notice: 'User Updated' } format.json { render :show, status: :updated, location: @user } else format.html { redirect to :edit } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def destroy session.clear if @user == current_user @user.destroy respond_to do |format| format.html { redirect_to login } format.json { head :no_content } end end private def set_user @user = User.find(params[:id]) end def user_params params.require(:user).permit(:username, :email, :password) end end ## Instruction: Add redirect to user creation ## Code After: class UsersController < ApplicationController before_action :set_user, only: [:show, :edit, :update, :destroy] before_action :require_login, except: [:new, :create] def new @user = User.new end def create @user = User.new(user_params) respond_to do |format| if @user.save set_session format.html { redirect_to @user, notice: 'User Created' } format.json { render :user, status: :created, location: @user } else format.html { redirect_to :new_user } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def show end def edit end def update respond_to do |format| if @user.update(user_params) format.html { redirect_to @user, notice: 'User Updated' } format.json { render :show, status: :updated, location: @user } else format.html { redirect to :edit } format.json { render json: @user.errors, status: :unprocessable_entity } end end end def destroy session.clear if @user == current_user @user.destroy respond_to do |format| format.html { redirect_to login } format.json { head :no_content } end end private def set_user @user = User.find(params[:id]) end def user_params params.require(:user).permit(:username, :email, :password) end end
d7ae0370396cf76e3e057ec7da83504f7a7673f4
src/js_types/mod.rs
src/js_types/mod.rs
mod js_obj; mod js_type; use std::string::String; pub struct JsUndef; pub struct JsNull; pub struct JsBool(bool); pub struct JsNum(f64); pub struct JsSym(String); pub struct JsStr { text: String, } impl JsStr { const MAX_STR_LEN: u64 = 9007199254740991; // 2^53 - 1 fn new(s: &str) -> JsStr { assert!((s.len() as u64) < JsStr::MAX_STR_LEN); JsStr { text: s.to_string(), } } }
mod js_obj; mod js_type; use std::string::String; use std::vec::Vec; pub struct JsUndef; pub struct JsNull; pub struct JsBool(bool); pub struct JsNum(f64); pub struct JsSym(String); pub struct JsStr { text: String, } impl JsStr { const MAX_STR_LEN: u64 = 9007199254740991; // 2^53 - 1 fn new(s: &str) -> JsStr { assert!((s.len() as u64) < JsStr::MAX_STR_LEN); JsStr { text: s.to_string(), } } } type JsArr<JsT> = Vec<Box<JsT>>;
Add type alias for JsArr
Add type alias for JsArr
Rust
mit
rustoscript/french-press
rust
## Code Before: mod js_obj; mod js_type; use std::string::String; pub struct JsUndef; pub struct JsNull; pub struct JsBool(bool); pub struct JsNum(f64); pub struct JsSym(String); pub struct JsStr { text: String, } impl JsStr { const MAX_STR_LEN: u64 = 9007199254740991; // 2^53 - 1 fn new(s: &str) -> JsStr { assert!((s.len() as u64) < JsStr::MAX_STR_LEN); JsStr { text: s.to_string(), } } } ## Instruction: Add type alias for JsArr ## Code After: mod js_obj; mod js_type; use std::string::String; use std::vec::Vec; pub struct JsUndef; pub struct JsNull; pub struct JsBool(bool); pub struct JsNum(f64); pub struct JsSym(String); pub struct JsStr { text: String, } impl JsStr { const MAX_STR_LEN: u64 = 9007199254740991; // 2^53 - 1 fn new(s: &str) -> JsStr { assert!((s.len() as u64) < JsStr::MAX_STR_LEN); JsStr { text: s.to_string(), } } } type JsArr<JsT> = Vec<Box<JsT>>;
325537cb941ecfc68e730fd1619092d4fd5dcad2
README.md
README.md
[![Build Status](https://travis-ci.org/cloudfoundry/console-vmc-plugin.png)](https://travis-ci.org/cloudfoundry/console-vmc-plugin) ## Deprecated VMC and its plugins have been renamed. You can find the current version of the code for this gem at http://github.com/cloudfoundry/console-cf-plugin ## Console ### Info This plugin lets you connect to a Cloud Foundry application via telnet. ### Installation ``` gem install console-vmc-plugin ``` ### Usage ``` console APP Open a console connected to your app ```
[![Build Status](https://travis-ci.org/cloudfoundry/console-vmc-plugin.png)](https://travis-ci.org/cloudfoundry/console-vmc-plugin) [![Gem Version](https://badge.fury.io/rb/console-vmc-plugin.png)](http://badge.fury.io/rb/console-vmc-plugin) ## Deprecated VMC and its plugins have been renamed. You can find the current version of the code for this gem at http://github.com/cloudfoundry/console-cf-plugin ## Console ### Info This plugin lets you connect to a Cloud Foundry application via telnet. ### Installation ``` gem install console-vmc-plugin ``` ### Usage ``` console APP Open a console connected to your app ```
Add Gem version badge to readme - AML + CB
Add Gem version badge to readme - AML + CB
Markdown
apache-2.0
cloudfoundry-attic/console-vmc-plugin,cloudfoundry-attic/console-vmc-plugin
markdown
## Code Before: [![Build Status](https://travis-ci.org/cloudfoundry/console-vmc-plugin.png)](https://travis-ci.org/cloudfoundry/console-vmc-plugin) ## Deprecated VMC and its plugins have been renamed. You can find the current version of the code for this gem at http://github.com/cloudfoundry/console-cf-plugin ## Console ### Info This plugin lets you connect to a Cloud Foundry application via telnet. ### Installation ``` gem install console-vmc-plugin ``` ### Usage ``` console APP Open a console connected to your app ``` ## Instruction: Add Gem version badge to readme - AML + CB ## Code After: [![Build Status](https://travis-ci.org/cloudfoundry/console-vmc-plugin.png)](https://travis-ci.org/cloudfoundry/console-vmc-plugin) [![Gem Version](https://badge.fury.io/rb/console-vmc-plugin.png)](http://badge.fury.io/rb/console-vmc-plugin) ## Deprecated VMC and its plugins have been renamed. You can find the current version of the code for this gem at http://github.com/cloudfoundry/console-cf-plugin ## Console ### Info This plugin lets you connect to a Cloud Foundry application via telnet. ### Installation ``` gem install console-vmc-plugin ``` ### Usage ``` console APP Open a console connected to your app ```
52f12241644c9afe61cb51cafeb5695effb7e7bf
step-release-vis/src/app/components/environment/environment.css
step-release-vis/src/app/components/environment/environment.css
.environment-title { color: dimgrey; margin-bottom: 0; font-family: "Courier New", sans-serif; }
.environment-title { color: dimgrey; margin-bottom: 0; font-family: "Courier New", sans-serif; } #tooltip { width: 10%; height: 10%; padding: 1%; background-color: rgba(240, 240, 240, 0.8); border: 1px solid black; text-align: center; font-family: Roboto, Arial, sans-serif; font-size: 2vmin; }
Add CSS to the tooltip.
Add CSS to the tooltip.
CSS
apache-2.0
googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020,googleinterns/step251-2020
css
## Code Before: .environment-title { color: dimgrey; margin-bottom: 0; font-family: "Courier New", sans-serif; } ## Instruction: Add CSS to the tooltip. ## Code After: .environment-title { color: dimgrey; margin-bottom: 0; font-family: "Courier New", sans-serif; } #tooltip { width: 10%; height: 10%; padding: 1%; background-color: rgba(240, 240, 240, 0.8); border: 1px solid black; text-align: center; font-family: Roboto, Arial, sans-serif; font-size: 2vmin; }
5687b3c29c8d489d96e7cfe80a025fc37845b9fd
donations/index.markdown
donations/index.markdown
--- author: Michael Paquier date: 2011-02-27 12:13:51+00:00 layout: page type: page slug: donations title: 'Donations' tags: - michael - paquier - developer - database - open - source - postgresql - employer - job - litecoin - bitcoin - donation - inquiry - contribution - money --- This site uses no ads. There is as well no tracking of any information, no hidden logging process, and no statistics gatherer. Its content is made using the free time of its maintainer, so donations of any kind are well-appreciated. To donate to the author of this blog, use one of the following options: * Bitcoin wallet address: 1HFRvuQdwVuJZkjE3go9CWhCpgstMe8JXT * Litecoin wallet address: La2EWbjVNC32mdtA16UtaygVGgmERQ6kk8 Thanks for your contributions!
--- author: Michael Paquier date: 2011-02-27 12:13:51+00:00 layout: page type: page slug: donations title: 'Donations' tags: - michael - paquier - developer - database - open - source - postgresql - employer - job - litecoin - bitcoin - peercoin - donation - inquiry - contribution - money --- This site uses no ads. There is as well no tracking of any information, no hidden logging process, and no statistics gatherer. Its content is made using the free time of its maintainer, so donations of any kind are well-appreciated. To donate to the author of this blog, use one of the following options: * Bitcoin wallet address: 1HFRvuQdwVuJZkjE3go9CWhCpgstMe8JXT * Litecoin wallet address: La2EWbjVNC32mdtA16UtaygVGgmERQ6kk8 * Peercoin wallet address: PQFsctSUexu8n9y8LAtsn97HwZHi6QEQjF Thanks for your contributions!
Add Peercoin wallet address for possible donation entry
Add Peercoin wallet address for possible donation entry This makes the way of donating going up to three, with Litecoin as well as Bitcoin.
Markdown
mit
michaelpq/michaelpq.github.io,michaelpq/michaelpq.github.io
markdown
## Code Before: --- author: Michael Paquier date: 2011-02-27 12:13:51+00:00 layout: page type: page slug: donations title: 'Donations' tags: - michael - paquier - developer - database - open - source - postgresql - employer - job - litecoin - bitcoin - donation - inquiry - contribution - money --- This site uses no ads. There is as well no tracking of any information, no hidden logging process, and no statistics gatherer. Its content is made using the free time of its maintainer, so donations of any kind are well-appreciated. To donate to the author of this blog, use one of the following options: * Bitcoin wallet address: 1HFRvuQdwVuJZkjE3go9CWhCpgstMe8JXT * Litecoin wallet address: La2EWbjVNC32mdtA16UtaygVGgmERQ6kk8 Thanks for your contributions! ## Instruction: Add Peercoin wallet address for possible donation entry This makes the way of donating going up to three, with Litecoin as well as Bitcoin. ## Code After: --- author: Michael Paquier date: 2011-02-27 12:13:51+00:00 layout: page type: page slug: donations title: 'Donations' tags: - michael - paquier - developer - database - open - source - postgresql - employer - job - litecoin - bitcoin - peercoin - donation - inquiry - contribution - money --- This site uses no ads. There is as well no tracking of any information, no hidden logging process, and no statistics gatherer. Its content is made using the free time of its maintainer, so donations of any kind are well-appreciated. To donate to the author of this blog, use one of the following options: * Bitcoin wallet address: 1HFRvuQdwVuJZkjE3go9CWhCpgstMe8JXT * Litecoin wallet address: La2EWbjVNC32mdtA16UtaygVGgmERQ6kk8 * Peercoin wallet address: PQFsctSUexu8n9y8LAtsn97HwZHi6QEQjF Thanks for your contributions!
5c2c2f5a64a83efa01ac85e45c94c3bd6bd747bb
blog/blog-template.html
blog/blog-template.html
<!DOCTYPE html> <html> <head> <title>Your page title here</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="stylesheets/blog-stylesheet.css"> </head> <body> <div class="container"> <div class="logo"> <img src="logo.png" alt="DBC Logo" /> </div> <h4 class="date"></h4> <h1 class="title"></h1> <h2 class="subtitle"></h2> <section> <p> </p> <p> </p> <p> </p> </section> <footer> &nbsp; </footer> </div> </body> </html>
<!DOCTYPE html> <html> <head> <title>Personal Blog for Curtis Seaton</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="stylesheets/reset.css"> <link rel="stylesheet" type="text/css" href="stylesheets/blog-stylesheet.css"> </head> <body> <div class="container"> <div class="logo"> <img src="logo.png" alt="DBC Logo" /> </div> <h4 class="date"></h4> <h1 class="title"></h1> <h2 class="subtitle"></h2> <section> <p> </p> <p> </p> <p> </p> </section> <footer> &nbsp; </footer> </div> </body> </html>
Add template page title and syntax
Add template page title and syntax
HTML
mit
codemecurtis/codemecurtis.github.io,codemecurtis/codemecurtis.github.io,codemecurtis/codemecurtis.github.io,codemecurtis/codemecurtis.github.io
html
## Code Before: <!DOCTYPE html> <html> <head> <title>Your page title here</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="stylesheets/blog-stylesheet.css"> </head> <body> <div class="container"> <div class="logo"> <img src="logo.png" alt="DBC Logo" /> </div> <h4 class="date"></h4> <h1 class="title"></h1> <h2 class="subtitle"></h2> <section> <p> </p> <p> </p> <p> </p> </section> <footer> &nbsp; </footer> </div> </body> </html> ## Instruction: Add template page title and syntax ## Code After: <!DOCTYPE html> <html> <head> <title>Personal Blog for Curtis Seaton</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="stylesheets/reset.css"> <link rel="stylesheet" type="text/css" href="stylesheets/blog-stylesheet.css"> </head> <body> <div class="container"> <div class="logo"> <img src="logo.png" alt="DBC Logo" /> </div> <h4 class="date"></h4> <h1 class="title"></h1> <h2 class="subtitle"></h2> <section> <p> </p> <p> </p> <p> </p> </section> <footer> &nbsp; </footer> </div> </body> </html>
d1bcf59c9df22076d3e910fb7640707a5806ff48
test/C++Frontend/2003-11-04-ArrayConstructors.cpp
test/C++Frontend/2003-11-04-ArrayConstructors.cpp
struct Foo { Foo(int); }; void foo() { struct { Foo name; } Int[] = { 1 }; }
struct Foo { Foo(int); ~Foo(); }; void foo() { struct { Foo name; } Int[] = { 1 }; }
Add a dtor to ensure that they are called the right number of times.
Add a dtor to ensure that they are called the right number of times. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@9721 91177308-0d34-0410-b5e6-96231b3b80d8
C++
apache-2.0
llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap
c++
## Code Before: struct Foo { Foo(int); }; void foo() { struct { Foo name; } Int[] = { 1 }; } ## Instruction: Add a dtor to ensure that they are called the right number of times. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@9721 91177308-0d34-0410-b5e6-96231b3b80d8 ## Code After: struct Foo { Foo(int); ~Foo(); }; void foo() { struct { Foo name; } Int[] = { 1 }; }
d27be745db844e51c3d83b95d2980cf09a06aee1
doc/source/cli/commands.rst
doc/source/cli/commands.rst
General keystone-manage options: -------------------------------- * ``--help`` : display verbose help output. Invoking ``keystone-manage`` by itself will give you some usage information. Available commands: * ``bootstrap``: Perform the basic bootstrap process. * ``credential_migrate``: Encrypt credentials using a new primary key. * ``credential_rotate``: Rotate Fernet keys for credential encryption. * ``credential_setup``: Setup a Fernet key repository for credential encryption. * ``db_sync``: Sync the database. * ``db_version``: Print the current migration version of the database. * ``doctor``: Diagnose common problems with keystone deployments. * ``domain_config_upload``: Upload domain configuration file. * ``fernet_rotate``: Rotate keys in the Fernet key repository. * ``fernet_setup``: Setup a Fernet key repository for token encryption. * ``mapping_populate``: Prepare domain-specific LDAP backend. * ``mapping_purge``: Purge the identity mapping table. * ``mapping_engine``: Test your federation mapping rules. * ``saml_idp_metadata``: Generate identity provider metadata. * ``trust_flush``: Purge expired trusts.
General keystone-manage options: -------------------------------- * ``--help`` : display verbose help output. Invoking ``keystone-manage`` by itself will give you some usage information. Available commands: * ``bootstrap``: Perform the basic bootstrap process. * ``credential_migrate``: Encrypt credentials using a new primary key. * ``credential_rotate``: Rotate Fernet keys for credential encryption. * ``credential_setup``: Setup a Fernet key repository for credential encryption. * ``db_sync``: Sync the database. * ``db_version``: Print the current migration version of the database. * ``doctor``: Diagnose common problems with keystone deployments. * ``domain_config_upload``: Upload domain configuration file. * ``fernet_rotate``: Rotate keys in the Fernet key repository. * ``fernet_setup``: Setup a Fernet key repository for token encryption. * ``token_rotate``: Rotate token keys in the key repository. * ``token_setup``: Setup a token key repository for token encryption. * ``mapping_populate``: Prepare domain-specific LDAP backend. * ``mapping_purge``: Purge the identity mapping table. * ``mapping_engine``: Test your federation mapping rules. * ``saml_idp_metadata``: Generate identity provider metadata. * ``trust_flush``: Purge expired trusts.
Update doc for token_setup and token_rotate
Update doc for token_setup and token_rotate New setup commands are added to keystone-manage cli [1] which are not mentioned anywhere in docs. This patch is added for the same. [1] https://review.openstack.org/#/c/547657/ Change-Id: I50e77566662d7f525c1cce6ce52d14dd31c6e5a2
reStructuredText
apache-2.0
openstack/keystone,openstack/keystone,mahak/keystone,openstack/keystone,mahak/keystone,mahak/keystone
restructuredtext
## Code Before: General keystone-manage options: -------------------------------- * ``--help`` : display verbose help output. Invoking ``keystone-manage`` by itself will give you some usage information. Available commands: * ``bootstrap``: Perform the basic bootstrap process. * ``credential_migrate``: Encrypt credentials using a new primary key. * ``credential_rotate``: Rotate Fernet keys for credential encryption. * ``credential_setup``: Setup a Fernet key repository for credential encryption. * ``db_sync``: Sync the database. * ``db_version``: Print the current migration version of the database. * ``doctor``: Diagnose common problems with keystone deployments. * ``domain_config_upload``: Upload domain configuration file. * ``fernet_rotate``: Rotate keys in the Fernet key repository. * ``fernet_setup``: Setup a Fernet key repository for token encryption. * ``mapping_populate``: Prepare domain-specific LDAP backend. * ``mapping_purge``: Purge the identity mapping table. * ``mapping_engine``: Test your federation mapping rules. * ``saml_idp_metadata``: Generate identity provider metadata. * ``trust_flush``: Purge expired trusts. ## Instruction: Update doc for token_setup and token_rotate New setup commands are added to keystone-manage cli [1] which are not mentioned anywhere in docs. This patch is added for the same. [1] https://review.openstack.org/#/c/547657/ Change-Id: I50e77566662d7f525c1cce6ce52d14dd31c6e5a2 ## Code After: General keystone-manage options: -------------------------------- * ``--help`` : display verbose help output. Invoking ``keystone-manage`` by itself will give you some usage information. Available commands: * ``bootstrap``: Perform the basic bootstrap process. * ``credential_migrate``: Encrypt credentials using a new primary key. * ``credential_rotate``: Rotate Fernet keys for credential encryption. * ``credential_setup``: Setup a Fernet key repository for credential encryption. * ``db_sync``: Sync the database. * ``db_version``: Print the current migration version of the database. * ``doctor``: Diagnose common problems with keystone deployments. * ``domain_config_upload``: Upload domain configuration file. * ``fernet_rotate``: Rotate keys in the Fernet key repository. * ``fernet_setup``: Setup a Fernet key repository for token encryption. * ``token_rotate``: Rotate token keys in the key repository. * ``token_setup``: Setup a token key repository for token encryption. * ``mapping_populate``: Prepare domain-specific LDAP backend. * ``mapping_purge``: Purge the identity mapping table. * ``mapping_engine``: Test your federation mapping rules. * ``saml_idp_metadata``: Generate identity provider metadata. * ``trust_flush``: Purge expired trusts.
d436927779fadddc5cfc8b625aced054c4e00631
.travis.yml
.travis.yml
language: python sudo: true python: - "3.5" addons: apt: packages: - g++ - gfortran - libblas-dev - liblapack-dev - libopenblas-dev - python3-dev - enchant before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH - ls -l /home/travis/miniconda3/bin - conda update --yes conda # Install packages install: - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy=0.16.1 - python --version - python -c "import numpy;print(numpy.__version__)" - python -c "import scipy;print(scipy.__version__)" - touch /home/travis/miniconda3/lib/python3.5/site-packages/easy-install.pth - travis_wait pip install -r requirements.txt || date - travis_wait pip install -r test-requirements.txt || date - python -m nltk.downloader stopwords - pip install codecov script: - nosetests -v --with-coverage --cover-package=revscoring after_success: codecov
language: python sudo: true python: - "3.5" addons: apt: packages: - g++ - gfortran - libblas-dev - liblapack-dev - libopenblas-dev - python3-dev - enchant before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH - ls -l /home/travis/miniconda3/bin - conda update --yes conda # Install packages install: - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy=0.16.1 - python --version - python -c "import numpy;print(numpy.__version__)" - python -c "import scipy;print(scipy.__version__)" - touch /home/travis/miniconda3/lib/python3.5/site-packages/easy-install.pth - travis_wait pip install -r requirements.txt || date - travis_wait pip install -r test-requirements.txt || date - python -m nltk.downloader stopwords - pip install codecov script: - nosetests -v --with-coverage --cover-package=revscoring after_success: codecov group: stable dist: jessie os:linux
Update to a newer dist of debian T167303
Update to a newer dist of debian T167303
YAML
mit
he7d3r/ores,he7d3r/ores,he7d3r/ores,wiki-ai/ores,wiki-ai/ores,wiki-ai/ores
yaml
## Code Before: language: python sudo: true python: - "3.5" addons: apt: packages: - g++ - gfortran - libblas-dev - liblapack-dev - libopenblas-dev - python3-dev - enchant before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH - ls -l /home/travis/miniconda3/bin - conda update --yes conda # Install packages install: - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy=0.16.1 - python --version - python -c "import numpy;print(numpy.__version__)" - python -c "import scipy;print(scipy.__version__)" - touch /home/travis/miniconda3/lib/python3.5/site-packages/easy-install.pth - travis_wait pip install -r requirements.txt || date - travis_wait pip install -r test-requirements.txt || date - python -m nltk.downloader stopwords - pip install codecov script: - nosetests -v --with-coverage --cover-package=revscoring after_success: codecov ## Instruction: Update to a newer dist of debian T167303 ## Code After: language: python sudo: true python: - "3.5" addons: apt: packages: - g++ - gfortran - libblas-dev - liblapack-dev - libopenblas-dev - python3-dev - enchant before_install: - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; - chmod +x miniconda.sh - ./miniconda.sh -b - export PATH=/home/travis/miniconda3/bin:$PATH - ls -l /home/travis/miniconda3/bin - conda update --yes conda # Install packages install: - conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy=0.16.1 - python --version - python -c "import numpy;print(numpy.__version__)" - python -c "import scipy;print(scipy.__version__)" - touch /home/travis/miniconda3/lib/python3.5/site-packages/easy-install.pth - travis_wait pip install -r requirements.txt || date - travis_wait pip install -r test-requirements.txt || date - python -m nltk.downloader stopwords - pip install codecov script: - nosetests -v --with-coverage --cover-package=revscoring after_success: codecov group: stable dist: jessie os:linux
a038d8e7eb43dbc6b61b5b351b5e06c527554dd8
app/models/LogListEntry.scala
app/models/LogListEntry.scala
package models case class LogListEntry(name: String, logEntries: Long, size: Long) { def indexName = name.replace("_log", "") }
package models case class LogListEntry(name: String, logEntries: Long, size: Long) { def indexName = name.dropRight(4) }
Use dropRight instead of replace to cut string
Use dropRight instead of replace to cut string
Scala
apache-2.0
MeiSign/Fillable
scala
## Code Before: package models case class LogListEntry(name: String, logEntries: Long, size: Long) { def indexName = name.replace("_log", "") } ## Instruction: Use dropRight instead of replace to cut string ## Code After: package models case class LogListEntry(name: String, logEntries: Long, size: Long) { def indexName = name.dropRight(4) }
0eca8893e146efff38f8a67ed17b93eb2f72e0f0
lib/dimples/page.rb
lib/dimples/page.rb
module Dimples # A class that models a single site page. class Page include Frontable include Renderable attr_accessor :path attr_accessor :title attr_accessor :filename attr_accessor :extension attr_accessor :layout attr_accessor :contents def initialize(site, path = nil) @site = site @extension = 'html' @path = path if @path @filename = File.basename(@path, File.extname(@path)) read_with_front_matter else @filename = 'index' @contents = '' end end def output_path(parent_path) parts = [parent_path] unless @path.nil? parts << File.dirname(@path).gsub(@site.source_paths[:pages], '') end parts << "#{@filename}.#{@extension}" File.join(parts) end def write(path, context = {}) output = context ? render(context) : contents parent_path = File.dirname(path) FileUtils.mkdir_p(parent_path) unless Dir.exist?(parent_path) File.open(path, 'w+') do |file| file.write(output) end rescue SystemCallError => e error_message = "Failed to write #{path} (#{e.message})" raise Errors::PublishingError, error_message end end end
module Dimples # A class that models a single site page. class Page include Frontable include Renderable attr_accessor :path attr_accessor :title attr_accessor :filename attr_accessor :extension attr_accessor :layout attr_accessor :contents attr_accessor :output_directory def initialize(site, path = nil) @site = site @extension = 'html' @path = path if @path @filename = File.basename(@path, File.extname(@path)) @output_directory = File.dirname(@path).gsub( @site.source_paths[:pages], @site.output_paths[:site] ) read_with_front_matter else @filename = 'index' @contents = '' @output_directory = @site.output_paths[:site] end end def output_path File.join(@output_directory, "#{@filename}.#{@extension}") end def write(context = {}) FileUtils.mkdir_p(@output_directory) unless Dir.exist?(@output_directory) File.open(output_path, 'w+') do |file| file.write(context ? render(context) : contents) end rescue SystemCallError => e error_message = "Failed to write #{path} (#{e.message})" raise Errors::PublishingError, error_message end def inspect "#<Dimples::Page @output_path=#{output_path}>" end end end
Simplify the output_path and write methods, add an output_directory accessor and inspect method.
Simplify the output_path and write methods, add an output_directory accessor and inspect method.
Ruby
mit
waferbaby/dimples
ruby
## Code Before: module Dimples # A class that models a single site page. class Page include Frontable include Renderable attr_accessor :path attr_accessor :title attr_accessor :filename attr_accessor :extension attr_accessor :layout attr_accessor :contents def initialize(site, path = nil) @site = site @extension = 'html' @path = path if @path @filename = File.basename(@path, File.extname(@path)) read_with_front_matter else @filename = 'index' @contents = '' end end def output_path(parent_path) parts = [parent_path] unless @path.nil? parts << File.dirname(@path).gsub(@site.source_paths[:pages], '') end parts << "#{@filename}.#{@extension}" File.join(parts) end def write(path, context = {}) output = context ? render(context) : contents parent_path = File.dirname(path) FileUtils.mkdir_p(parent_path) unless Dir.exist?(parent_path) File.open(path, 'w+') do |file| file.write(output) end rescue SystemCallError => e error_message = "Failed to write #{path} (#{e.message})" raise Errors::PublishingError, error_message end end end ## Instruction: Simplify the output_path and write methods, add an output_directory accessor and inspect method. ## Code After: module Dimples # A class that models a single site page. class Page include Frontable include Renderable attr_accessor :path attr_accessor :title attr_accessor :filename attr_accessor :extension attr_accessor :layout attr_accessor :contents attr_accessor :output_directory def initialize(site, path = nil) @site = site @extension = 'html' @path = path if @path @filename = File.basename(@path, File.extname(@path)) @output_directory = File.dirname(@path).gsub( @site.source_paths[:pages], @site.output_paths[:site] ) read_with_front_matter else @filename = 'index' @contents = '' @output_directory = @site.output_paths[:site] end end def output_path File.join(@output_directory, "#{@filename}.#{@extension}") end def write(context = {}) FileUtils.mkdir_p(@output_directory) unless Dir.exist?(@output_directory) File.open(output_path, 'w+') do |file| file.write(context ? render(context) : contents) end rescue SystemCallError => e error_message = "Failed to write #{path} (#{e.message})" raise Errors::PublishingError, error_message end def inspect "#<Dimples::Page @output_path=#{output_path}>" end end end
2a5b4c04a0058112cbed8180fcdc9bdac1482124
provisioning/scripts/virtualbox.sh
provisioning/scripts/virtualbox.sh
SSH_USER="${SSH_USERNAME:-vagrant}" SSH_USER_HOME="${SSH_USER_HOME:-/home/${SSH_USER}}" case "$PACKER_BUILDER_TYPE" in virtualbox-iso|virtualbox-ovf) echo "==> Installing VirtualBox guest additions" VER=$(cat "$SSH_USER_HOME"/.vbox_version) ISO="VBoxGuestAdditions_$VER.iso"; mkdir -p /tmp/vbox; mount -o loop" $SSH_USER_HOME/$ISO" /tmp/vbox; sh /tmp/vbox/VBoxLinuxAdditions.run \ || echo "VBoxLinuxAdditions.run exited $? and is suppressed." \ "For more read https://www.virtualbox.org/ticket/12479"; umount /tmp/vbox; rm -rf /tmp/vbox; rm -f "$SSH_USER_HOME"/*.iso; ;; esac
SSH_USER="${SSH_USERNAME:-vagrant}" SSH_USER_HOME="${SSH_USER_HOME:-/home/${SSH_USER}}" case "$PACKER_BUILDER_TYPE" in virtualbox-iso|virtualbox-ovf) echo "==> Installing VirtualBox guest additions" VER=$(cat "$SSH_USER_HOME"/.vbox_version) ISO="VBoxGuestAdditions_$VER.iso"; MOUNT_PATH="/tmp/vbox" mkdir -p "$MOUNT_PATH"; mount -o loop" $SSH_USER_HOME/$ISO" "$MOUNT_PATH"; sh "$MOUNT_PATH"/VBoxLinuxAdditions.run \ || echo "VBoxLinuxAdditions.run exited $? and is suppressed." \ "For more read https://www.virtualbox.org/ticket/12479"; umount "$MOUNT_PATH"; rm -rf "$MOUNT_PATH"; rm -f "$SSH_USER_HOME"/*.iso; ;; esac
Move mount path to a variable
Move mount path to a variable
Shell
apache-2.0
ferrarimarco/open-development-environment-devbox,ferrarimarco/open-development-environment-devbox
shell
## Code Before: SSH_USER="${SSH_USERNAME:-vagrant}" SSH_USER_HOME="${SSH_USER_HOME:-/home/${SSH_USER}}" case "$PACKER_BUILDER_TYPE" in virtualbox-iso|virtualbox-ovf) echo "==> Installing VirtualBox guest additions" VER=$(cat "$SSH_USER_HOME"/.vbox_version) ISO="VBoxGuestAdditions_$VER.iso"; mkdir -p /tmp/vbox; mount -o loop" $SSH_USER_HOME/$ISO" /tmp/vbox; sh /tmp/vbox/VBoxLinuxAdditions.run \ || echo "VBoxLinuxAdditions.run exited $? and is suppressed." \ "For more read https://www.virtualbox.org/ticket/12479"; umount /tmp/vbox; rm -rf /tmp/vbox; rm -f "$SSH_USER_HOME"/*.iso; ;; esac ## Instruction: Move mount path to a variable ## Code After: SSH_USER="${SSH_USERNAME:-vagrant}" SSH_USER_HOME="${SSH_USER_HOME:-/home/${SSH_USER}}" case "$PACKER_BUILDER_TYPE" in virtualbox-iso|virtualbox-ovf) echo "==> Installing VirtualBox guest additions" VER=$(cat "$SSH_USER_HOME"/.vbox_version) ISO="VBoxGuestAdditions_$VER.iso"; MOUNT_PATH="/tmp/vbox" mkdir -p "$MOUNT_PATH"; mount -o loop" $SSH_USER_HOME/$ISO" "$MOUNT_PATH"; sh "$MOUNT_PATH"/VBoxLinuxAdditions.run \ || echo "VBoxLinuxAdditions.run exited $? and is suppressed." \ "For more read https://www.virtualbox.org/ticket/12479"; umount "$MOUNT_PATH"; rm -rf "$MOUNT_PATH"; rm -f "$SSH_USER_HOME"/*.iso; ;; esac
4460c1b757b4eb86b2eb49a7996027427e457411
gitconfig.erb
gitconfig.erb
[user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add c = commit cm = commit -m co = checkout d = diff di = diff --cached [color] ui = auto [color "status"] header = normal added = bold green changed = red untracked = cyan branch = bold green nobranch = bold red [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [mergetool "gvimdiff3"] cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [mergetool "vimdiff3"] cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [merge] tool = gvimdiff3 [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
[user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add c = commit cm = commit -m co = checkout d = diff di = diff --cached ignore = !git update-index --assume-unchanged unignore = !git update-index --no-assume-unchanged ignored = !git ls-files -v | grep "^[[:lower:]]" [color] ui = auto [color "status"] header = normal added = bold green changed = red untracked = cyan branch = bold green nobranch = bold red [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [mergetool "gvimdiff3"] cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [mergetool "vimdiff3"] cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [merge] tool = gvimdiff3 [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
Add git aliases for working with ignored files
Add git aliases for working with ignored files
HTML+ERB
mit
nacengineer/dotfiles,nacengineer/dotfiles
html+erb
## Code Before: [user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add c = commit cm = commit -m co = checkout d = diff di = diff --cached [color] ui = auto [color "status"] header = normal added = bold green changed = red untracked = cyan branch = bold green nobranch = bold red [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [mergetool "gvimdiff3"] cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [mergetool "vimdiff3"] cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [merge] tool = gvimdiff3 [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %> ## Instruction: Add git aliases for working with ignored files ## Code After: [user] name = Abe Voelker email = abe@abevoelker.com [alias] s = status a = add c = commit cm = commit -m co = checkout d = diff di = diff --cached ignore = !git update-index --assume-unchanged unignore = !git update-index --no-assume-unchanged ignored = !git ls-files -v | grep "^[[:lower:]]" [color] ui = auto [color "status"] header = normal added = bold green changed = red untracked = cyan branch = bold green nobranch = bold red [core] excludesfile = <%= ENV['HOME'] %>/.gitignore editor = gvim -f autocrlf = input [mergetool "gvimdiff3"] cmd = gvim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [mergetool "vimdiff3"] cmd = vim -f -d -c \"wincmd J\" \"$MERGED\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" [merge] tool = gvimdiff3 [apply] whitespace = nowarn [format] pretty = %C(yellow)%h%Creset %s %C(red)(%an, %cr)%Creset [github] user = abevoelker token = <%= print("GitHub API Token: "); STDOUT.flush; STDIN.gets.chomp %>
7bddee2c910460fc164840003b8a2c0c3b1dd284
kbase/basic_macros.h
kbase/basic_macros.h
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLASSNAME) \ CLASSNAME(CLASSNAME&&) = delete; \ CLASSNAME& operator=(CLASSNAME&&) = delete #endif // KBASE_BASIC_MACROS_H_
/* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLASSNAME) \ CLASSNAME(CLASSNAME&&) = delete; \ CLASSNAME& operator=(CLASSNAME&&) = delete #define UNREFED_VAR(x) \ ::kbase::internal::SilenceUnusedVariableWarning(x) // Put complicated implementation below. namespace kbase { namespace internal { template<typename T> void SilenceUnusedVariableWarning(T&&) {} } // namespace internal } // namespace kbase #endif // KBASE_BASIC_MACROS_H_
Add a macro UNREFED_VAR to silence unused variables warning.
Add a macro UNREFED_VAR to silence unused variables warning.
C
mit
kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase,kingsamchen/KBase_Demo
c
## Code Before: /* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLASSNAME) \ CLASSNAME(CLASSNAME&&) = delete; \ CLASSNAME& operator=(CLASSNAME&&) = delete #endif // KBASE_BASIC_MACROS_H_ ## Instruction: Add a macro UNREFED_VAR to silence unused variables warning. ## Code After: /* @ 0xCCCCCCCC */ #if defined(_MSC_VER) #pragma once #endif #ifndef KBASE_BASIC_MACROS_H_ #define KBASE_BASIC_MACROS_H_ #define DISALLOW_COPY(CLASSNAME) \ CLASSNAME(const CLASSNAME&) = delete; \ CLASSNAME& operator=(const CLASSNAME&) = delete #define DISALLOW_MOVE(CLASSNAME) \ CLASSNAME(CLASSNAME&&) = delete; \ CLASSNAME& operator=(CLASSNAME&&) = delete #define UNREFED_VAR(x) \ ::kbase::internal::SilenceUnusedVariableWarning(x) // Put complicated implementation below. namespace kbase { namespace internal { template<typename T> void SilenceUnusedVariableWarning(T&&) {} } // namespace internal } // namespace kbase #endif // KBASE_BASIC_MACROS_H_
3d0a7dee2cc0c63376ad338a0d921b4e5917dd05
lib/cms/hippo_importer/corporate_page.rb
lib/cms/hippo_importer/corporate_page.rb
module Cms module HippoImporter class CorporatePage < HippoImporter::Base def hippo_type 'contentauthoringwebsite:Static' end def layout @layout ||= site.layouts.find_by(identifier: 'corporate_article') end end end end
module Cms module HippoImporter class CorporatePage < HippoImporter::Base def hippo_type 'contentauthoringwebsite:StaticPage' end def layout @layout ||= site.layouts.find_by(identifier: 'corporate') end end end end
Fix typos for corporate pages on hippo migration
Fix typos for corporate pages on hippo migration
Ruby
mit
moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms,moneyadviceservice/cms
ruby
## Code Before: module Cms module HippoImporter class CorporatePage < HippoImporter::Base def hippo_type 'contentauthoringwebsite:Static' end def layout @layout ||= site.layouts.find_by(identifier: 'corporate_article') end end end end ## Instruction: Fix typos for corporate pages on hippo migration ## Code After: module Cms module HippoImporter class CorporatePage < HippoImporter::Base def hippo_type 'contentauthoringwebsite:StaticPage' end def layout @layout ||= site.layouts.find_by(identifier: 'corporate') end end end end
3bd4f91934381d4a11da86d44f34798ef623aa9c
src/test/groovy/org/kt3k/gradle/plugin/coveralls/domain/ServiceInfoTest.groovy
src/test/groovy/org/kt3k/gradle/plugin/coveralls/domain/ServiceInfoTest.groovy
package org.kt3k.gradle.plugin.coveralls.domain import org.junit.Test import static org.junit.Assert.* class ServiceInfoTest { @Test void testConstructor() { ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF') assertNotNull serviceInfo assertEquals 'x-ci', serviceInfo.serviceName assertEquals '1729', serviceInfo.serviceJobId assertEquals 'ABCDEF', serviceInfo.repoToken } }
package org.kt3k.gradle.plugin.coveralls.domain import org.junit.Test import static org.junit.Assert.* class ServiceInfoTest { @Test void testConstructor() { ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF') assertNotNull serviceInfo assertEquals 'x-ci', serviceInfo.serviceName assertEquals '1729', serviceInfo.serviceJobId assertEquals 'ABCDEF', serviceInfo.repoToken } @Test void testEquals() { assertEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("_", "b", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "_", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "_", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "_", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "_", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "_") } @Test void testHashCode() { ServiceInfo serviceInfo = new ServiceInfo("a", "b", "c", "d", "e", "f") assertNotNull serviceInfo.hashCode() assertTrue serviceInfo.hashCode().toString().isInteger() } }
Add the tests of equals and hashCode of ServiceInfo
Add the tests of equals and hashCode of ServiceInfo
Groovy
mit
kt3k/coveralls-gradle-plugin
groovy
## Code Before: package org.kt3k.gradle.plugin.coveralls.domain import org.junit.Test import static org.junit.Assert.* class ServiceInfoTest { @Test void testConstructor() { ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF') assertNotNull serviceInfo assertEquals 'x-ci', serviceInfo.serviceName assertEquals '1729', serviceInfo.serviceJobId assertEquals 'ABCDEF', serviceInfo.repoToken } } ## Instruction: Add the tests of equals and hashCode of ServiceInfo ## Code After: package org.kt3k.gradle.plugin.coveralls.domain import org.junit.Test import static org.junit.Assert.* class ServiceInfoTest { @Test void testConstructor() { ServiceInfo serviceInfo = new ServiceInfo('x-ci', '1729', 'ABCDEF') assertNotNull serviceInfo assertEquals 'x-ci', serviceInfo.serviceName assertEquals '1729', serviceInfo.serviceJobId assertEquals 'ABCDEF', serviceInfo.repoToken } @Test void testEquals() { assertEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("_", "b", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "_", "c", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "_", "d", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "_", "e", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "_", "f") assertNotEquals new ServiceInfo("a", "b", "c", "d", "e", "f"), new ServiceInfo("a", "b", "c", "d", "e", "_") } @Test void testHashCode() { ServiceInfo serviceInfo = new ServiceInfo("a", "b", "c", "d", "e", "f") assertNotNull serviceInfo.hashCode() assertTrue serviceInfo.hashCode().toString().isInteger() } }
c4ecb51974db70f5e42cea3847d2659a95ae4bb2
.travis.yml
.travis.yml
language: perl perl: - "5.14" install: - sudo apt-get install libdb-dev libgd2-noxpm-dev - cpanm --notest -L extlib/ GD::Image URI::Escape - cpanm --notest -l extlib/ git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server script: - nohup http-server -p 9000 2>&1 & - prove -Isrc/perl5 -lr tests - phantomjs tests/js_tests/run-jasmine.js http://localhost:9000/ after_failure: cat setup.log
language: perl perl: - "5.14" install: - sudo apt-get install libdb-dev libgd2-noxpm-dev - cpanm --notest -L extlib/ GD::Image URI::Escape - cpanm --notest -l extlib/ git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server script: - nohup http-server -p 9000 2>&1 & - prove -Isrc/perl5 -lr tests - phantomjs tests/js_tests/run-jasmine.js http://localhost:9000/tests/js_tests after_failure: cat setup.log
Make it run the js_tests directory
Make it run the js_tests directory
YAML
lgpl-2.1
Arabidopsis-Information-Portal/jbrowse,GMOD/jbrowse,GMOD/jbrowse,erasche/jbrowse,erasche/jbrowse,GMOD/jbrowse,Arabidopsis-Information-Portal/jbrowse,erasche/jbrowse,limeng12/jbrowse,nathandunn/jbrowse,nathandunn/jbrowse,Arabidopsis-Information-Portal/jbrowse,Arabidopsis-Information-Portal/jbrowse,nathandunn/jbrowse,erasche/jbrowse,GMOD/jbrowse,Arabidopsis-Information-Portal/jbrowse,erasche/jbrowse,limeng12/jbrowse,limeng12/jbrowse,Arabidopsis-Information-Portal/jbrowse,Arabidopsis-Information-Portal/jbrowse,nathandunn/jbrowse,nathandunn/jbrowse,limeng12/jbrowse,GMOD/jbrowse,limeng12/jbrowse,limeng12/jbrowse,erasche/jbrowse,erasche/jbrowse,limeng12/jbrowse,limeng12/jbrowse,erasche/jbrowse
yaml
## Code Before: language: perl perl: - "5.14" install: - sudo apt-get install libdb-dev libgd2-noxpm-dev - cpanm --notest -L extlib/ GD::Image URI::Escape - cpanm --notest -l extlib/ git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server script: - nohup http-server -p 9000 2>&1 & - prove -Isrc/perl5 -lr tests - phantomjs tests/js_tests/run-jasmine.js http://localhost:9000/ after_failure: cat setup.log ## Instruction: Make it run the js_tests directory ## Code After: language: perl perl: - "5.14" install: - sudo apt-get install libdb-dev libgd2-noxpm-dev - cpanm --notest -L extlib/ GD::Image URI::Escape - cpanm --notest -l extlib/ git://github.com/bioperl/bioperl-live.git@v1.6.x - bash setup.sh - npm install -g http-server script: - nohup http-server -p 9000 2>&1 & - prove -Isrc/perl5 -lr tests - phantomjs tests/js_tests/run-jasmine.js http://localhost:9000/tests/js_tests after_failure: cat setup.log
0a52c9a8915277a0dc18ce87d4b983209cfdf966
README.md
README.md
This project uses [K3PO Protocol Droid](http://github.com/k3po/k3po) to define a set of integration tests describing the WebSocket Protocol ([RFC-6455](https://tools.ietf.org/html/rfc6455)) Specification. WebSocket Protocol implementations can use these integration tests to help them meet the necessary requirements. The integration tests fall into the following categories: * Opening Handshake * Base Framing * Masking * Fragmentation * Control Frames (Ping, Pong) * Data Frames (Text, Binary) * Extensibility * Closing Handshake
[![TravisCI](https://travis-ci.org/k3po/specification.ws.svg?branch=develop)](https://travis-ci.org/k3po/specification.ws) This project uses [K3PO Protocol Droid](http://github.com/k3po/k3po) to define a set of integration tests describing the WebSocket Protocol ([RFC-6455](https://tools.ietf.org/html/rfc6455)) Specification. WebSocket Protocol implementations can use these integration tests to help them meet the necessary requirements. The integration tests fall into the following categories: * Opening Handshake * Base Framing * Masking * Fragmentation * Control Frames (Ping, Pong) * Data Frames (Text, Binary) * Extensibility * Closing Handshake
Add TravisCI build status icon
Add TravisCI build status icon
Markdown
apache-2.0
irina-mitrea-luxoft/k3po,justinma246/k3po,jfallows/k3po,jfallows/specification.ws,dpwspoon/k3po,sanjay-saxena/k3po,nemigaservices/k3po,mgherghe/k3po,cmebarrow/k3po,StCostea/k3po,dpwspoon/k3po,a-zuckut/k3po,k3po/k3po,cmebarrow/k3po,StCostea/k3po,mgherghe/k3po,k3po/k3po,nemigaservices/k3po,justinma246/k3po,a-zuckut/k3po,sanjay-saxena/k3po,irina-mitrea-luxoft/k3po,jfallows/k3po
markdown
## Code Before: This project uses [K3PO Protocol Droid](http://github.com/k3po/k3po) to define a set of integration tests describing the WebSocket Protocol ([RFC-6455](https://tools.ietf.org/html/rfc6455)) Specification. WebSocket Protocol implementations can use these integration tests to help them meet the necessary requirements. The integration tests fall into the following categories: * Opening Handshake * Base Framing * Masking * Fragmentation * Control Frames (Ping, Pong) * Data Frames (Text, Binary) * Extensibility * Closing Handshake ## Instruction: Add TravisCI build status icon ## Code After: [![TravisCI](https://travis-ci.org/k3po/specification.ws.svg?branch=develop)](https://travis-ci.org/k3po/specification.ws) This project uses [K3PO Protocol Droid](http://github.com/k3po/k3po) to define a set of integration tests describing the WebSocket Protocol ([RFC-6455](https://tools.ietf.org/html/rfc6455)) Specification. WebSocket Protocol implementations can use these integration tests to help them meet the necessary requirements. The integration tests fall into the following categories: * Opening Handshake * Base Framing * Masking * Fragmentation * Control Frames (Ping, Pong) * Data Frames (Text, Binary) * Extensibility * Closing Handshake
75ba24099c9018f6b1af26cb67ed79f9bd8a25cd
Casks/chocolat.rb
Casks/chocolat.rb
class Chocolat < Cask url 'http://chocolatapp.com/download?experiment=&token=' homepage 'http://chocolatapp.com/' version 'latest' no_checksum end
class Chocolat < Cask url 'http://chocolatapp.com/download' homepage 'http://chocolatapp.com/' version 'latest' no_checksum link 'Chocolat.app' end
Add link field to Chocolat Cask
Add link field to Chocolat Cask
Ruby
bsd-2-clause
pacav69/homebrew-cask,ksylvan/homebrew-cask,stevenmaguire/homebrew-cask,BahtiyarB/homebrew-cask,MicTech/homebrew-cask,KosherBacon/homebrew-cask,githubutilities/homebrew-cask,ddm/homebrew-cask,leipert/homebrew-cask,huanzhang/homebrew-cask,MisumiRize/homebrew-cask,neil-ca-moore/homebrew-cask,jiashuw/homebrew-cask,RJHsiao/homebrew-cask,greg5green/homebrew-cask,giannitm/homebrew-cask,alexg0/homebrew-cask,mahori/homebrew-cask,lumaxis/homebrew-cask,guerrero/homebrew-cask,norio-nomura/homebrew-cask,shorshe/homebrew-cask,tonyseek/homebrew-cask,scw/homebrew-cask,gurghet/homebrew-cask,maxnordlund/homebrew-cask,ohammersmith/homebrew-cask,atsuyim/homebrew-cask,wolflee/homebrew-cask,esebastian/homebrew-cask,sanyer/homebrew-cask,rajiv/homebrew-cask,delphinus35/homebrew-cask,ashishb/homebrew-cask,Ephemera/homebrew-cask,tjnycum/homebrew-cask,Ngrd/homebrew-cask,m3nu/homebrew-cask,nickpellant/homebrew-cask,JoelLarson/homebrew-cask,flaviocamilo/homebrew-cask,casidiablo/homebrew-cask,colindunn/homebrew-cask,johnjelinek/homebrew-cask,aki77/homebrew-cask,Gasol/homebrew-cask,ianyh/homebrew-cask,imgarylai/homebrew-cask,qbmiller/homebrew-cask,genewoo/homebrew-cask,jen20/homebrew-cask,scribblemaniac/homebrew-cask,timsutton/homebrew-cask,zeusdeux/homebrew-cask,stonehippo/homebrew-cask,kevyau/homebrew-cask,muan/homebrew-cask,royalwang/homebrew-cask,inz/homebrew-cask,dictcp/homebrew-cask,hovancik/homebrew-cask,mwean/homebrew-cask,bkono/homebrew-cask,julionc/homebrew-cask,kesara/homebrew-cask,dlackty/homebrew-cask,jedahan/homebrew-cask,iamso/homebrew-cask,neverfox/homebrew-cask,KosherBacon/homebrew-cask,fanquake/homebrew-cask,gilesdring/homebrew-cask,arranubels/homebrew-cask,Hywan/homebrew-cask,xyb/homebrew-cask,rhendric/homebrew-cask,shoichiaizawa/homebrew-cask,rickychilcott/homebrew-cask,usami-k/homebrew-cask,mhubig/homebrew-cask,claui/homebrew-cask,kiliankoe/homebrew-cask,frapposelli/homebrew-cask,howie/homebrew-cask,thii/homebrew-cask,nickpellant/homebrew-cask,taherio/homebrew-cask,SentinelWarren/homebrew-cask,Philosoft/homebrew-cask,danielgomezrico/homebrew-cask,Whoaa512/homebrew-cask,af/homebrew-cask,epmatsw/homebrew-cask,hellosky806/homebrew-cask,Cottser/homebrew-cask,Ephemera/homebrew-cask,ywfwj2008/homebrew-cask,pkq/homebrew-cask,miccal/homebrew-cask,robbiethegeek/homebrew-cask,rhendric/homebrew-cask,jangalinski/homebrew-cask,jpmat296/homebrew-cask,tjnycum/homebrew-cask,tarwich/homebrew-cask,sachin21/homebrew-cask,ebraminio/homebrew-cask,AnastasiaSulyagina/homebrew-cask,miccal/homebrew-cask,rcuza/homebrew-cask,helloIAmPau/homebrew-cask,goxberry/homebrew-cask,feniix/homebrew-cask,iamso/homebrew-cask,joshka/homebrew-cask,bchatard/homebrew-cask,moimikey/homebrew-cask,aguynamedryan/homebrew-cask,retrography/homebrew-cask,reitermarkus/homebrew-cask,tan9/homebrew-cask,lolgear/homebrew-cask,tjt263/homebrew-cask,jmeridth/homebrew-cask,maxnordlund/homebrew-cask,psibre/homebrew-cask,rednoah/homebrew-cask,guylabs/homebrew-cask,morganestes/homebrew-cask,jayshao/homebrew-cask,AnastasiaSulyagina/homebrew-cask,troyxmccall/homebrew-cask,jpodlech/homebrew-cask,valepert/homebrew-cask,chrisRidgers/homebrew-cask,tedski/homebrew-cask,blogabe/homebrew-cask,danielbayley/homebrew-cask,nysthee/homebrew-cask,hovancik/homebrew-cask,JosephViolago/homebrew-cask,deiga/homebrew-cask,exherb/homebrew-cask,bcomnes/homebrew-cask,wayou/homebrew-cask,hswong3i/homebrew-cask,githubutilities/homebrew-cask,esebastian/homebrew-cask,vigosan/homebrew-cask,malob/homebrew-cask,AndreTheHunter/homebrew-cask,xalep/homebrew-cask,andrewdisley/homebrew-cask,BahtiyarB/homebrew-cask,forevergenin/homebrew-cask,sysbot/homebrew-cask,tmoreira2020/homebrew,remko/homebrew-cask,malob/homebrew-cask,stevehedrick/homebrew-cask,andrewschleifer/homebrew-cask,mathbunnyru/homebrew-cask,xyb/homebrew-cask,jpmat296/homebrew-cask,iAmGhost/homebrew-cask,barravi/homebrew-cask,victorpopkov/homebrew-cask,katoquro/homebrew-cask,flada-auxv/homebrew-cask,chuanxd/homebrew-cask,kongslund/homebrew-cask,astorije/homebrew-cask,kolomiichenko/homebrew-cask,reelsense/homebrew-cask,otaran/homebrew-cask,timsutton/homebrew-cask,scw/homebrew-cask,sebcode/homebrew-cask,chrisfinazzo/homebrew-cask,sscotth/homebrew-cask,guylabs/homebrew-cask,sparrc/homebrew-cask,jconley/homebrew-cask,BenjaminHCCarr/homebrew-cask,reitermarkus/homebrew-cask,okket/homebrew-cask,enriclluelles/homebrew-cask,zmwangx/homebrew-cask,akiomik/homebrew-cask,tranc99/homebrew-cask,boecko/homebrew-cask,dezon/homebrew-cask,otaran/homebrew-cask,paour/homebrew-cask,nicholsn/homebrew-cask,cclauss/homebrew-cask,mazehall/homebrew-cask,casidiablo/homebrew-cask,ninjahoahong/homebrew-cask,jpodlech/homebrew-cask,johan/homebrew-cask,mlocher/homebrew-cask,slnovak/homebrew-cask,Ibuprofen/homebrew-cask,a-x-/homebrew-cask,chino/homebrew-cask,mikem/homebrew-cask,lukasbestle/homebrew-cask,seanzxx/homebrew-cask,dlovitch/homebrew-cask,thomanq/homebrew-cask,cclauss/homebrew-cask,xiongchiamiov/homebrew-cask,Labutin/homebrew-cask,zorosteven/homebrew-cask,pgr0ss/homebrew-cask,ywfwj2008/homebrew-cask,kronicd/homebrew-cask,ddm/homebrew-cask,jhowtan/homebrew-cask,mariusbutuc/homebrew-cask,enriclluelles/homebrew-cask,thehunmonkgroup/homebrew-cask,flada-auxv/homebrew-cask,lifepillar/homebrew-cask,jonathanwiesel/homebrew-cask,deiga/homebrew-cask,nivanchikov/homebrew-cask,wizonesolutions/homebrew-cask,hvisage/homebrew-cask,jayshao/homebrew-cask,retrography/homebrew-cask,perfide/homebrew-cask,Ephemera/homebrew-cask,miguelfrde/homebrew-cask,asins/homebrew-cask,mlocher/homebrew-cask,coneman/homebrew-cask,joschi/homebrew-cask,santoshsahoo/homebrew-cask,alebcay/homebrew-cask,rogeriopradoj/homebrew-cask,gord1anknot/homebrew-cask,sosedoff/homebrew-cask,ch3n2k/homebrew-cask,frapposelli/homebrew-cask,MerelyAPseudonym/homebrew-cask,wayou/homebrew-cask,jrwesolo/homebrew-cask,yutarody/homebrew-cask,caskroom/homebrew-cask,yumitsu/homebrew-cask,ky0615/homebrew-cask-1,joschi/homebrew-cask,faun/homebrew-cask,stevenmaguire/homebrew-cask,larseggert/homebrew-cask,FredLackeyOfficial/homebrew-cask,jeroenseegers/homebrew-cask,lieuwex/homebrew-cask,mfpierre/homebrew-cask,morganestes/homebrew-cask,jawshooah/homebrew-cask,cohei/homebrew-cask,meduz/homebrew-cask,hellosky806/homebrew-cask,gmkey/homebrew-cask,gguillotte/homebrew-cask,axodys/homebrew-cask,andersonba/homebrew-cask,axodys/homebrew-cask,ahundt/homebrew-cask,rogeriopradoj/homebrew-cask,Saklad5/homebrew-cask,renaudguerin/homebrew-cask,n0ts/homebrew-cask,leipert/homebrew-cask,ldong/homebrew-cask,skatsuta/homebrew-cask,kTitan/homebrew-cask,kingthorin/homebrew-cask,tan9/homebrew-cask,ftiff/homebrew-cask,cedwardsmedia/homebrew-cask,FranklinChen/homebrew-cask,fkrone/homebrew-cask,BenjaminHCCarr/homebrew-cask,englishm/homebrew-cask,athrunsun/homebrew-cask,JikkuJose/homebrew-cask,jbeagley52/homebrew-cask,robbiethegeek/homebrew-cask,flaviocamilo/homebrew-cask,afdnlw/homebrew-cask,zerrot/homebrew-cask,MicTech/homebrew-cask,kteru/homebrew-cask,mgryszko/homebrew-cask,josa42/homebrew-cask,afh/homebrew-cask,gustavoavellar/homebrew-cask,wesen/homebrew-cask,boydj/homebrew-cask,cblecker/homebrew-cask,theoriginalgri/homebrew-cask,jellyfishcoder/homebrew-cask,leonmachadowilcox/homebrew-cask,bcaceiro/homebrew-cask,dvdoliveira/homebrew-cask,winkelsdorf/homebrew-cask,bgandon/homebrew-cask,mjgardner/homebrew-cask,antogg/homebrew-cask,nrlquaker/homebrew-cask,vin047/homebrew-cask,Dremora/homebrew-cask,toonetown/homebrew-cask,gibsjose/homebrew-cask,Amorymeltzer/homebrew-cask,jacobbednarz/homebrew-cask,hanxue/caskroom,mishari/homebrew-cask,Bombenleger/homebrew-cask,haha1903/homebrew-cask,mfpierre/homebrew-cask,feniix/homebrew-cask,dictcp/homebrew-cask,sanyer/homebrew-cask,MircoT/homebrew-cask,garborg/homebrew-cask,santoshsahoo/homebrew-cask,bosr/homebrew-cask,kevinoconnor7/homebrew-cask,yutarody/homebrew-cask,lauantai/homebrew-cask,corbt/homebrew-cask,JacopKane/homebrew-cask,riyad/homebrew-cask,MerelyAPseudonym/homebrew-cask,sscotth/homebrew-cask,asbachb/homebrew-cask,patresi/homebrew-cask,arranubels/homebrew-cask,bendoerr/homebrew-cask,yurikoles/homebrew-cask,moogar0880/homebrew-cask,rcuza/homebrew-cask,MisumiRize/homebrew-cask,timsutton/homebrew-cask,alebcay/homebrew-cask,mjdescy/homebrew-cask,barravi/homebrew-cask,nathancahill/homebrew-cask,zmwangx/homebrew-cask,amatos/homebrew-cask,cobyism/homebrew-cask,coeligena/homebrew-customized,FinalDes/homebrew-cask,af/homebrew-cask,imgarylai/homebrew-cask,gerrypower/homebrew-cask,diogodamiani/homebrew-cask,a-x-/homebrew-cask,jtriley/homebrew-cask,ptb/homebrew-cask,okket/homebrew-cask,cedwardsmedia/homebrew-cask,codeurge/homebrew-cask,unasuke/homebrew-cask,andrewdisley/homebrew-cask,franklouwers/homebrew-cask,mrmachine/homebrew-cask,alexg0/homebrew-cask,carlmod/homebrew-cask,phpwutz/homebrew-cask,squid314/homebrew-cask,joaoponceleao/homebrew-cask,linc01n/homebrew-cask,Ibuprofen/homebrew-cask,cblecker/homebrew-cask,wizonesolutions/homebrew-cask,anbotero/homebrew-cask,a1russell/homebrew-cask,ianyh/homebrew-cask,vuquoctuan/homebrew-cask,MatzFan/homebrew-cask,robertgzr/homebrew-cask,boydj/homebrew-cask,gregkare/homebrew-cask,inta/homebrew-cask,deanmorin/homebrew-cask,dezon/homebrew-cask,inta/homebrew-cask,kteru/homebrew-cask,janlugt/homebrew-cask,nathansgreen/homebrew-cask,andyli/homebrew-cask,slnovak/homebrew-cask,ldong/homebrew-cask,danielbayley/homebrew-cask,mathbunnyru/homebrew-cask,tyage/homebrew-cask,sohtsuka/homebrew-cask,antogg/homebrew-cask,jasmas/homebrew-cask,wickedsp1d3r/homebrew-cask,decrement/homebrew-cask,xight/homebrew-cask,bosr/homebrew-cask,paulombcosta/homebrew-cask,chrisfinazzo/homebrew-cask,schneidmaster/homebrew-cask,mattfelsen/homebrew-cask,tedski/homebrew-cask,mattfelsen/homebrew-cask,tyage/homebrew-cask,samnung/homebrew-cask,chino/homebrew-cask,nelsonjchen/homebrew-cask,christer155/homebrew-cask,djmonta/homebrew-cask,haha1903/homebrew-cask,sanyer/homebrew-cask,epardee/homebrew-cask,AndreTheHunter/homebrew-cask,julienlavergne/homebrew-cask,gregkare/homebrew-cask,kievechua/homebrew-cask,morsdyce/homebrew-cask,stephenwade/homebrew-cask,supriyantomaftuh/homebrew-cask,blogabe/homebrew-cask,kkdd/homebrew-cask,mwilmer/homebrew-cask,13k/homebrew-cask,ahvigil/homebrew-cask,thomanq/homebrew-cask,aki77/homebrew-cask,FinalDes/homebrew-cask,dustinblackman/homebrew-cask,xight/homebrew-cask,andrewdisley/homebrew-cask,zorosteven/homebrew-cask,cliffcotino/homebrew-cask,malford/homebrew-cask,williamboman/homebrew-cask,zchee/homebrew-cask,mjdescy/homebrew-cask,shorshe/homebrew-cask,0xadada/homebrew-cask,faun/homebrew-cask,MatzFan/homebrew-cask,adrianchia/homebrew-cask,underyx/homebrew-cask,codeurge/homebrew-cask,mwek/homebrew-cask,jhowtan/homebrew-cask,wmorin/homebrew-cask,dunn/homebrew-cask,gwaldo/homebrew-cask,MoOx/homebrew-cask,jacobdam/homebrew-cask,Nitecon/homebrew-cask,sjackman/homebrew-cask,bendoerr/homebrew-cask,lantrix/homebrew-cask,joschi/homebrew-cask,Fedalto/homebrew-cask,kkdd/homebrew-cask,johntrandall/homebrew-cask,Ketouem/homebrew-cask,kryhear/homebrew-cask,crzrcn/homebrew-cask,jspahrsummers/homebrew-cask,adriweb/homebrew-cask,johndbritton/homebrew-cask,cobyism/homebrew-cask,coeligena/homebrew-customized,mwean/homebrew-cask,kingthorin/homebrew-cask,gord1anknot/homebrew-cask,lcasey001/homebrew-cask,miguelfrde/homebrew-cask,jmeridth/homebrew-cask,FredLackeyOfficial/homebrew-cask,Keloran/homebrew-cask,MichaelPei/homebrew-cask,gyndav/homebrew-cask,albertico/homebrew-cask,dustinblackman/homebrew-cask,sgnh/homebrew-cask,reitermarkus/homebrew-cask,larseggert/homebrew-cask,seanorama/homebrew-cask,jconley/homebrew-cask,colindean/homebrew-cask,drostron/homebrew-cask,alebcay/homebrew-cask,dwihn0r/homebrew-cask,kuno/homebrew-cask,ch3n2k/homebrew-cask,BenjaminHCCarr/homebrew-cask,mahori/homebrew-cask,shonjir/homebrew-cask,bsiddiqui/homebrew-cask,JoelLarson/homebrew-cask,renard/homebrew-cask,tmoreira2020/homebrew,ajbw/homebrew-cask,mathbunnyru/homebrew-cask,akiomik/homebrew-cask,fengb/homebrew-cask,My2ndAngelic/homebrew-cask,johan/homebrew-cask,jalaziz/homebrew-cask,petmoo/homebrew-cask,farmerchris/homebrew-cask,winkelsdorf/homebrew-cask,opsdev-ws/homebrew-cask,Ketouem/homebrew-cask,johnste/homebrew-cask,mrmachine/homebrew-cask,kTitan/homebrew-cask,fwiesel/homebrew-cask,cliffcotino/homebrew-cask,pacav69/homebrew-cask,klane/homebrew-cask,jamesmlees/homebrew-cask,elseym/homebrew-cask,bric3/homebrew-cask,rkJun/homebrew-cask,williamboman/homebrew-cask,nrlquaker/homebrew-cask,retbrown/homebrew-cask,ky0615/homebrew-cask-1,bkono/homebrew-cask,riyad/homebrew-cask,andyli/homebrew-cask,miccal/homebrew-cask,elyscape/homebrew-cask,crmne/homebrew-cask,kesara/homebrew-cask,sohtsuka/homebrew-cask,mattrobenolt/homebrew-cask,jppelteret/homebrew-cask,samshadwell/homebrew-cask,stigkj/homebrew-caskroom-cask,leoj3n/homebrew-cask,nightscape/homebrew-cask,mokagio/homebrew-cask,sosedoff/homebrew-cask,taherio/homebrew-cask,renaudguerin/homebrew-cask,chrisRidgers/homebrew-cask,Ngrd/homebrew-cask,sanchezm/homebrew-cask,stephenwade/homebrew-cask,xiongchiamiov/homebrew-cask,iAmGhost/homebrew-cask,stigkj/homebrew-caskroom-cask,nathansgreen/homebrew-cask,hristozov/homebrew-cask,nathanielvarona/homebrew-cask,christer155/homebrew-cask,tangestani/homebrew-cask,gurghet/homebrew-cask,ksylvan/homebrew-cask,robertgzr/homebrew-cask,ingorichter/homebrew-cask,ninjahoahong/homebrew-cask,puffdad/homebrew-cask,norio-nomura/homebrew-cask,hakamadare/homebrew-cask,donbobka/homebrew-cask,brianshumate/homebrew-cask,yurikoles/homebrew-cask,tranc99/homebrew-cask,epmatsw/homebrew-cask,tolbkni/homebrew-cask,xtian/homebrew-cask,delphinus35/homebrew-cask,Amorymeltzer/homebrew-cask,tangestani/homebrew-cask,ponychicken/homebrew-customcask,mazehall/homebrew-cask,bdhess/homebrew-cask,esebastian/homebrew-cask,dwihn0r/homebrew-cask,nicolas-brousse/homebrew-cask,Labutin/homebrew-cask,CameronGarrett/homebrew-cask,pablote/homebrew-cask,rednoah/homebrew-cask,gyndav/homebrew-cask,uetchy/homebrew-cask,qnm/homebrew-cask,mingzhi22/homebrew-cask,paulombcosta/homebrew-cask,onlynone/homebrew-cask,hanxue/caskroom,JacopKane/homebrew-cask,y00rb/homebrew-cask,slack4u/homebrew-cask,wKovacs64/homebrew-cask,lucasmezencio/homebrew-cask,crzrcn/homebrew-cask,janlugt/homebrew-cask,victorpopkov/homebrew-cask,lcasey001/homebrew-cask,kostasdizas/homebrew-cask,a1russell/homebrew-cask,shanonvl/homebrew-cask,franklouwers/homebrew-cask,ayohrling/homebrew-cask,brianshumate/homebrew-cask,6uclz1/homebrew-cask,ashishb/homebrew-cask,afdnlw/homebrew-cask,pinut/homebrew-cask,sebcode/homebrew-cask,andersonba/homebrew-cask,fanquake/homebrew-cask,klane/homebrew-cask,kei-yamazaki/homebrew-cask,chadcatlett/caskroom-homebrew-cask,n8henrie/homebrew-cask,usami-k/homebrew-cask,wastrachan/homebrew-cask,tjt263/homebrew-cask,samdoran/homebrew-cask,theoriginalgri/homebrew-cask,xakraz/homebrew-cask,jbeagley52/homebrew-cask,vmrob/homebrew-cask,greg5green/homebrew-cask,hswong3i/homebrew-cask,moogar0880/homebrew-cask,perfide/homebrew-cask,genewoo/homebrew-cask,yutarody/homebrew-cask,dspeckhard/homebrew-cask,feigaochn/homebrew-cask,ericbn/homebrew-cask,atsuyim/homebrew-cask,kevinoconnor7/homebrew-cask,xtian/homebrew-cask,chadcatlett/caskroom-homebrew-cask,ksato9700/homebrew-cask,gerrypower/homebrew-cask,wesen/homebrew-cask,otzy007/homebrew-cask,alexg0/homebrew-cask,supriyantomaftuh/homebrew-cask,wickles/homebrew-cask,nightscape/homebrew-cask,optikfluffel/homebrew-cask,squid314/homebrew-cask,drostron/homebrew-cask,gabrielizaias/homebrew-cask,tdsmith/homebrew-cask,stevehedrick/homebrew-cask,mjgardner/homebrew-cask,nathancahill/homebrew-cask,Whoaa512/homebrew-cask,shoichiaizawa/homebrew-cask,ksato9700/homebrew-cask,bsiddiqui/homebrew-cask,reelsense/homebrew-cask,tedbundyjr/homebrew-cask,cblecker/homebrew-cask,sparrc/homebrew-cask,josa42/homebrew-cask,mkozjak/homebrew-cask,spruceb/homebrew-cask,mahori/homebrew-cask,FranklinChen/homebrew-cask,yurrriq/homebrew-cask,onlynone/homebrew-cask,jonathanwiesel/homebrew-cask,jrwesolo/homebrew-cask,helloIAmPau/homebrew-cask,scribblemaniac/homebrew-cask,josa42/homebrew-cask,mattrobenolt/homebrew-cask,mauricerkelly/homebrew-cask,kesara/homebrew-cask,Nitecon/homebrew-cask,sachin21/homebrew-cask,yurrriq/homebrew-cask,asbachb/homebrew-cask,feigaochn/homebrew-cask,retbrown/homebrew-cask,yurikoles/homebrew-cask,vmrob/homebrew-cask,dwkns/homebrew-cask,wastrachan/homebrew-cask,lukeadams/homebrew-cask,dictcp/homebrew-cask,RogerThiede/homebrew-cask,hyuna917/homebrew-cask,linc01n/homebrew-cask,dspeckhard/homebrew-cask,jasmas/homebrew-cask,doits/homebrew-cask,carlmod/homebrew-cask,a1russell/homebrew-cask,michelegera/homebrew-cask,kirikiriyamama/homebrew-cask,jeroenseegers/homebrew-cask,nshemonsky/homebrew-cask,shishi/homebrew-cask,Keloran/homebrew-cask,mingzhi22/homebrew-cask,cprecioso/homebrew-cask,AdamCmiel/homebrew-cask,corbt/homebrew-cask,kamilboratynski/homebrew-cask,shonjir/homebrew-cask,hvisage/homebrew-cask,13k/homebrew-cask,mauricerkelly/homebrew-cask,Gasol/homebrew-cask,lalyos/homebrew-cask,rajiv/homebrew-cask,pkq/homebrew-cask,fly19890211/homebrew-cask,mAAdhaTTah/homebrew-cask,ericbn/homebrew-cask,crmne/homebrew-cask,0xadada/homebrew-cask,kirikiriyamama/homebrew-cask,rkJun/homebrew-cask,joaocc/homebrew-cask,qnm/homebrew-cask,afh/homebrew-cask,englishm/homebrew-cask,m3nu/homebrew-cask,jedahan/homebrew-cask,L2G/homebrew-cask,andyshinn/homebrew-cask,fwiesel/homebrew-cask,claui/homebrew-cask,syscrusher/homebrew-cask,LaurentFough/homebrew-cask,shoichiaizawa/homebrew-cask,daften/homebrew-cask,aktau/homebrew-cask,deizel/homebrew-cask,inz/homebrew-cask,xakraz/homebrew-cask,gibsjose/homebrew-cask,tedbundyjr/homebrew-cask,askl56/homebrew-cask,hackhandslabs/homebrew-cask,malob/homebrew-cask,jaredsampson/homebrew-cask,adelinofaria/homebrew-cask,jalaziz/homebrew-cask,thii/homebrew-cask,imgarylai/homebrew-cask,lifepillar/homebrew-cask,rubenerd/homebrew-cask,valepert/homebrew-cask,skyyuan/homebrew-cask,gabrielizaias/homebrew-cask,mjgardner/homebrew-cask,d/homebrew-cask,michelegera/homebrew-cask,andrewschleifer/homebrew-cask,shishi/homebrew-cask,julionc/homebrew-cask,joaocc/homebrew-cask,mchlrmrz/homebrew-cask,y00rb/homebrew-cask,nysthee/homebrew-cask,stonehippo/homebrew-cask,6uclz1/homebrew-cask,vitorgalvao/homebrew-cask,ahundt/homebrew-cask,My2ndAngelic/homebrew-cask,0rax/homebrew-cask,nicholsn/homebrew-cask,LaurentFough/homebrew-cask,scottsuch/homebrew-cask,patresi/homebrew-cask,julienlavergne/homebrew-cask,caskroom/homebrew-cask,anbotero/homebrew-cask,antogg/homebrew-cask,wickles/homebrew-cask,RJHsiao/homebrew-cask,pgr0ss/homebrew-cask,christophermanning/homebrew-cask,wickedsp1d3r/homebrew-cask,deizel/homebrew-cask,singingwolfboy/homebrew-cask,guerrero/homebrew-cask,paour/homebrew-cask,kei-yamazaki/homebrew-cask,MoOx/homebrew-cask,lalyos/homebrew-cask,samnung/homebrew-cask,jen20/homebrew-cask,gilesdring/homebrew-cask,j13k/homebrew-cask,kronicd/homebrew-cask,nrlquaker/homebrew-cask,fazo96/homebrew-cask,adriweb/homebrew-cask,lvicentesanchez/homebrew-cask,danielbayley/homebrew-cask,mgryszko/homebrew-cask,fly19890211/homebrew-cask,MircoT/homebrew-cask,rajiv/homebrew-cask,thehunmonkgroup/homebrew-cask,elnappo/homebrew-cask,blogabe/homebrew-cask,mikem/homebrew-cask,zhuzihhhh/homebrew-cask,ftiff/homebrew-cask,nathanielvarona/homebrew-cask,colindean/homebrew-cask,andyshinn/homebrew-cask,adelinofaria/homebrew-cask,prime8/homebrew-cask,tdsmith/homebrew-cask,nanoxd/homebrew-cask,samdoran/homebrew-cask,schneidmaster/homebrew-cask,chuanxd/homebrew-cask,freeslugs/homebrew-cask,napaxton/homebrew-cask,dwkns/homebrew-cask,amatos/homebrew-cask,tolbkni/homebrew-cask,tarwich/homebrew-cask,jeroenj/homebrew-cask,jacobdam/homebrew-cask,julionc/homebrew-cask,djakarta-trap/homebrew-myCask,paulbreslin/homebrew-cask,claui/homebrew-cask,xyb/homebrew-cask,kingthorin/homebrew-cask,johnste/homebrew-cask,Amorymeltzer/homebrew-cask,johnjelinek/homebrew-cask,kryhear/homebrew-cask,gerrymiller/homebrew-cask,lauantai/homebrew-cask,CameronGarrett/homebrew-cask,samshadwell/homebrew-cask,christophermanning/homebrew-cask,markhuber/homebrew-cask,puffdad/homebrew-cask,boecko/homebrew-cask,JikkuJose/homebrew-cask,Dremora/homebrew-cask,jiashuw/homebrew-cask,optikfluffel/homebrew-cask,scottsuch/homebrew-cask,mchlrmrz/homebrew-cask,mwilmer/homebrew-cask,leonmachadowilcox/homebrew-cask,toonetown/homebrew-cask,gyndav/homebrew-cask,lvicentesanchez/homebrew-cask,nivanchikov/homebrew-cask,moimikey/homebrew-cask,wKovacs64/homebrew-cask,3van/homebrew-cask,sysbot/homebrew-cask,albertico/homebrew-cask,Bombenleger/homebrew-cask,ohammersmith/homebrew-cask,elnappo/homebrew-cask,paour/homebrew-cask,jamesmlees/homebrew-cask,tonyseek/homebrew-cask,mindriot101/homebrew-cask,MichaelPei/homebrew-cask,jangalinski/homebrew-cask,lukeadams/homebrew-cask,syscrusher/homebrew-cask,vuquoctuan/homebrew-cask,jtriley/homebrew-cask,scottsuch/homebrew-cask,csmith-palantir/homebrew-cask,johntrandall/homebrew-cask,sscotth/homebrew-cask,hakamadare/homebrew-cask,j13k/homebrew-cask,nathanielvarona/homebrew-cask,chrisopedia/homebrew-cask,n8henrie/homebrew-cask,lukasbestle/homebrew-cask,asins/homebrew-cask,diogodamiani/homebrew-cask,buo/homebrew-cask,winkelsdorf/homebrew-cask,athrunsun/homebrew-cask,joaoponceleao/homebrew-cask,stephenwade/homebrew-cask,tsparber/homebrew-cask,dlackty/homebrew-cask,katoquro/homebrew-cask,ajbw/homebrew-cask,catap/homebrew-cask,garborg/homebrew-cask,remko/homebrew-cask,xalep/homebrew-cask,d/homebrew-cask,renard/homebrew-cask,segiddins/homebrew-cask,gustavoavellar/homebrew-cask,dcondrey/homebrew-cask,SamiHiltunen/homebrew-cask,jaredsampson/homebrew-cask,xight/homebrew-cask,segiddins/homebrew-cask,neverfox/homebrew-cask,kpearson/homebrew-cask,goxberry/homebrew-cask,fazo96/homebrew-cask,paulbreslin/homebrew-cask,ebraminio/homebrew-cask,wmorin/homebrew-cask,malford/homebrew-cask,niksy/homebrew-cask,kongslund/homebrew-cask,dunn/homebrew-cask,lieuwex/homebrew-cask,phpwutz/homebrew-cask,shanonvl/homebrew-cask,devmynd/homebrew-cask,skyyuan/homebrew-cask,deanmorin/homebrew-cask,illusionfield/homebrew-cask,chrisfinazzo/homebrew-cask,lolgear/homebrew-cask,devmynd/homebrew-cask,hristozov/homebrew-cask,underyx/homebrew-cask,mokagio/homebrew-cask,morsdyce/homebrew-cask,mindriot101/homebrew-cask,gyugyu/homebrew-cask,tsparber/homebrew-cask,tjnycum/homebrew-cask,dieterdemeyer/homebrew-cask,RickWong/homebrew-cask,wmorin/homebrew-cask,JacopKane/homebrew-cask,diguage/homebrew-cask,elyscape/homebrew-cask,seanorama/homebrew-cask,kassi/homebrew-cask,3van/homebrew-cask,arronmabrey/homebrew-cask,aktau/homebrew-cask,joshka/homebrew-cask,zerrot/homebrew-cask,coneman/homebrew-cask,kuno/homebrew-cask,psibre/homebrew-cask,jgarber623/homebrew-cask,kamilboratynski/homebrew-cask,wuman/homebrew-cask,mwek/homebrew-cask,adrianchia/homebrew-cask,muescha/homebrew-cask,alloy/homebrew-cask,aguynamedryan/homebrew-cask,kolomiichenko/homebrew-cask,ahbeng/homebrew-cask,stonehippo/homebrew-cask,bchatard/homebrew-cask,kiliankoe/homebrew-cask,jellyfishcoder/homebrew-cask,troyxmccall/homebrew-cask,astorije/homebrew-cask,bgandon/homebrew-cask,donbobka/homebrew-cask,epardee/homebrew-cask,chrisopedia/homebrew-cask,mAAdhaTTah/homebrew-cask,ayohrling/homebrew-cask,pkq/homebrew-cask,dcondrey/homebrew-cask,cfillion/homebrew-cask,ericbn/homebrew-cask,blainesch/homebrew-cask,forevergenin/homebrew-cask,deiga/homebrew-cask,kassi/homebrew-cask,djmonta/homebrew-cask,singingwolfboy/homebrew-cask,singingwolfboy/homebrew-cask,doits/homebrew-cask,n0ts/homebrew-cask,markthetech/homebrew-cask,fkrone/homebrew-cask,huanzhang/homebrew-cask,gyugyu/homebrew-cask,jeanregisser/homebrew-cask,askl56/homebrew-cask,wolflee/homebrew-cask,arronmabrey/homebrew-cask,colindunn/homebrew-cask,sirodoht/homebrew-cask,nshemonsky/homebrew-cask,uetchy/homebrew-cask,freeslugs/homebrew-cask,SentinelWarren/homebrew-cask,lantrix/homebrew-cask,fharbe/homebrew-cask,koenrh/homebrew-cask,vigosan/homebrew-cask,mkozjak/homebrew-cask,m3nu/homebrew-cask,dieterdemeyer/homebrew-cask,diguage/homebrew-cask,bric3/homebrew-cask,yuhki50/homebrew-cask,slack4u/homebrew-cask,royalwang/homebrew-cask,seanzxx/homebrew-cask,otzy007/homebrew-cask,rogeriopradoj/homebrew-cask,jeroenj/homebrew-cask,sgnh/homebrew-cask,jalaziz/homebrew-cask,cprecioso/homebrew-cask,petmoo/homebrew-cask,skatsuta/homebrew-cask,prime8/homebrew-cask,ptb/homebrew-cask,bdhess/homebrew-cask,ctrevino/homebrew-cask,moonboots/homebrew-cask,qbmiller/homebrew-cask,catap/homebrew-cask,mhubig/homebrew-cask,exherb/homebrew-cask,RickWong/homebrew-cask,mariusbutuc/homebrew-cask,howie/homebrew-cask,gerrymiller/homebrew-cask,cobyism/homebrew-cask,kevyau/homebrew-cask,0rax/homebrew-cask,coeligena/homebrew-customized,cfillion/homebrew-cask,sirodoht/homebrew-cask,pinut/homebrew-cask,danielgomezrico/homebrew-cask,napaxton/homebrew-cask,Hywan/homebrew-cask,markthetech/homebrew-cask,JosephViolago/homebrew-cask,xcezx/homebrew-cask,muan/homebrew-cask,SamiHiltunen/homebrew-cask,moonboots/homebrew-cask,zhuzihhhh/homebrew-cask,elseym/homebrew-cask,bcomnes/homebrew-cask,yuhki50/homebrew-cask,AdamCmiel/homebrew-cask,lumaxis/homebrew-cask,vitorgalvao/homebrew-cask,RogerThiede/homebrew-cask,ctrevino/homebrew-cask,L2G/homebrew-cask,ponychicken/homebrew-customcask,artdevjs/homebrew-cask,jppelteret/homebrew-cask,shonjir/homebrew-cask,hackhandslabs/homebrew-cask,nelsonjchen/homebrew-cask,neil-ca-moore/homebrew-cask,kostasdizas/homebrew-cask,buo/homebrew-cask,miku/homebrew-cask,xcezx/homebrew-cask,cohei/homebrew-cask,lucasmezencio/homebrew-cask,ingorichter/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,fharbe/homebrew-cask,jgarber623/homebrew-cask,Philosoft/homebrew-cask,jgarber623/homebrew-cask,joshka/homebrew-cask,blainesch/homebrew-cask,mchlrmrz/homebrew-cask,zchee/homebrew-cask,opsdev-ws/homebrew-cask,nanoxd/homebrew-cask,mattrobenolt/homebrew-cask,sjackman/homebrew-cask,kpearson/homebrew-cask,yumitsu/homebrew-cask,spruceb/homebrew-cask,sanchezm/homebrew-cask,djakarta-trap/homebrew-myCask,hyuna917/homebrew-cask,JosephViolago/homebrew-cask,hanxue/caskroom,rickychilcott/homebrew-cask,uetchy/homebrew-cask,daften/homebrew-cask,optikfluffel/homebrew-cask,jspahrsummers/homebrew-cask,sideci-sample/sideci-sample-homebrew-cask,jacobbednarz/homebrew-cask,koenrh/homebrew-cask,bric3/homebrew-cask,miku/homebrew-cask,gguillotte/homebrew-cask,dvdoliveira/homebrew-cask,giannitm/homebrew-cask,artdevjs/homebrew-cask,jawshooah/homebrew-cask,rubenerd/homebrew-cask,illusionfield/homebrew-cask,zeusdeux/homebrew-cask,bcaceiro/homebrew-cask,markhuber/homebrew-cask,ahvigil/homebrew-cask,neverfox/homebrew-cask,tangestani/homebrew-cask,scribblemaniac/homebrew-cask,farmerchris/homebrew-cask,nicolas-brousse/homebrew-cask,adrianchia/homebrew-cask,moimikey/homebrew-cask,wuman/homebrew-cask,Fedalto/homebrew-cask,gmkey/homebrew-cask,Cottser/homebrew-cask,pablote/homebrew-cask,gwaldo/homebrew-cask,csmith-palantir/homebrew-cask,jeanregisser/homebrew-cask,kievechua/homebrew-cask,dlovitch/homebrew-cask,johndbritton/homebrew-cask,alloy/homebrew-cask,unasuke/homebrew-cask,vin047/homebrew-cask,mishari/homebrew-cask,Saklad5/homebrew-cask,decrement/homebrew-cask,ahbeng/homebrew-cask
ruby
## Code Before: class Chocolat < Cask url 'http://chocolatapp.com/download?experiment=&token=' homepage 'http://chocolatapp.com/' version 'latest' no_checksum end ## Instruction: Add link field to Chocolat Cask ## Code After: class Chocolat < Cask url 'http://chocolatapp.com/download' homepage 'http://chocolatapp.com/' version 'latest' no_checksum link 'Chocolat.app' end
89ef40ba1064d443c8f04e345d8d704b542778a4
apps/webchat/source/config/WEB-INF/web.xml
apps/webchat/source/config/WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>WebChat</display-name> <description>Smack-powered WebChat Application</description> <!-- Servlets --> <servlet> <servlet-name>ChatServlet</servlet-name> <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class> <init-param> <param-name>host</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Servlet mappings --> <servlet-mapping> <servlet-name>ChatServlet</servlet-name> <url-pattern>/servlet/ChatServlet/*</url-pattern> </servlet-mapping> <!-- Welcome file list --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>WebChat</display-name> <description>Smack-powered WebChat Application</description> <context-param> <param-name>host</param-name> <param-value>jivesoftware.com</param-value> </context-param> <!-- Servlets --> <servlet> <servlet-name>ChatServlet</servlet-name> <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- Servlet mappings --> <servlet-mapping> <servlet-name>ChatServlet</servlet-name> <url-pattern>/servlet/ChatServlet/*</url-pattern> </servlet-mapping> <!-- Welcome file list --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>
Use context params instead of servlet params, as this may make WAR deployment easier.
Use context params instead of servlet params, as this may make WAR deployment easier. git-svn-id: 0d4d1bf2e47502aa0f0957c230a0ec7fa56198fd@1878 b35dd754-fafc-0310-a699-88a17e54d16e
XML
apache-2.0
xuIcream/Smack,igniterealtime/Smack,unisontech/Smack,qingsong-xu/Smack,opg7371/Smack,cjpx00008/Smack,Flowdalic/Smack,igniterealtime/Smack,Flowdalic/Smack,xuIcream/Smack,vanitasvitae/smack-omemo,igniterealtime/Smack,Flowdalic/Smack,igorexax3mal/Smack,hy9902/Smack,kkroid/OnechatSmack,magnetsystems/message-smack,TTalkIM/Smack,kkroid/OnechatSmack,andrey42/Smack,cjpx00008/Smack,unisontech/Smack,annovanvliet/Smack,TTalkIM/Smack,Tibo-lg/Smack,mar-v-in/Smack,Tibo-lg/Smack,igorexax3mal/Smack,deeringc/Smack,lovely3x/Smack,unisontech/Smack,annovanvliet/Smack,vanitasvitae/Smack,xuIcream/Smack,TTalkIM/Smack,lovely3x/Smack,opg7371/Smack,chuangWu/Smack,esl/Smack,ayne/Smack,ishan1604/Smack,Tibo-lg/Smack,mar-v-in/Smack,annovanvliet/Smack,mar-v-in/Smack,deeringc/Smack,qingsong-xu/Smack,hy9902/Smack,u20024804/Smack,ayne/Smack,dpr-odoo/Smack,kkroid/OnechatSmack,vanitasvitae/Smack,esl/Smack,chuangWu/Smack,u20024804/Smack,lovely3x/Smack,u20024804/Smack,chuangWu/Smack,dpr-odoo/Smack,andrey42/Smack,ayne/Smack,magnetsystems/message-smack,vanitasvitae/smack-omemo,vanitasvitae/smack-omemo,vanitasvitae/Smack,magnetsystems/message-smack,ishan1604/Smack,vito-c/Smack,esl/Smack,igorexax3mal/Smack,vito-c/Smack,dpr-odoo/Smack,ishan1604/Smack,andrey42/Smack,opg7371/Smack,hy9902/Smack,deeringc/Smack,cjpx00008/Smack,qingsong-xu/Smack
xml
## Code Before: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>WebChat</display-name> <description>Smack-powered WebChat Application</description> <!-- Servlets --> <servlet> <servlet-name>ChatServlet</servlet-name> <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class> <init-param> <param-name>host</param-name> <param-value></param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <!-- Servlet mappings --> <servlet-mapping> <servlet-name>ChatServlet</servlet-name> <url-pattern>/servlet/ChatServlet/*</url-pattern> </servlet-mapping> <!-- Welcome file list --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> ## Instruction: Use context params instead of servlet params, as this may make WAR deployment easier. git-svn-id: 0d4d1bf2e47502aa0f0957c230a0ec7fa56198fd@1878 b35dd754-fafc-0310-a699-88a17e54d16e ## Code After: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>WebChat</display-name> <description>Smack-powered WebChat Application</description> <context-param> <param-name>host</param-name> <param-value>jivesoftware.com</param-value> </context-param> <!-- Servlets --> <servlet> <servlet-name>ChatServlet</servlet-name> <servlet-class>org.jivesoftware.webchat.ChatServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!-- Servlet mappings --> <servlet-mapping> <servlet-name>ChatServlet</servlet-name> <url-pattern>/servlet/ChatServlet/*</url-pattern> </servlet-mapping> <!-- Welcome file list --> <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app>
6a1dad581edfcde4ccea840353a0a53d2069d6bf
scripts/figwheel.clj
scripts/figwheel.clj
(require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} :build-ids ["dev"] :all-builds [{:id "dev" :figwheel {:on-jsload "uxbox.ui/init"} :source-paths ["src"] :compiler {:main 'uxbox.core :asset-path "js" :parallel-build false :optimizations :none :pretty-print true :language-in :ecmascript5 :language-out :ecmascript5 :output-to "resources/public/js/main.js" :output-dir "resources/public/js" :verbose true}}]}) (ra/cljs-repl)
(require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} :build-ids ["dev"] :all-builds [{:id "dev" :figwheel {:on-jsload "uxbox.ui/init"} :source-paths ["src"] :compiler {:main 'uxbox.core :asset-path "js" :parallel-build false :optimizations :none :warnings {:ns-var-clash false} :pretty-print true :language-in :ecmascript5 :language-out :ecmascript5 :output-to "resources/public/js/main.js" :output-dir "resources/public/js" :verbose true}}]}) (ra/cljs-repl)
Disable var and ns clash warning.
Disable var and ns clash warning.
Clojure
mpl-2.0
uxbox/uxbox,uxbox/uxbox,studiospring/uxbox,uxbox/uxbox,studiospring/uxbox,studiospring/uxbox
clojure
## Code Before: (require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} :build-ids ["dev"] :all-builds [{:id "dev" :figwheel {:on-jsload "uxbox.ui/init"} :source-paths ["src"] :compiler {:main 'uxbox.core :asset-path "js" :parallel-build false :optimizations :none :pretty-print true :language-in :ecmascript5 :language-out :ecmascript5 :output-to "resources/public/js/main.js" :output-dir "resources/public/js" :verbose true}}]}) (ra/cljs-repl) ## Instruction: Disable var and ns clash warning. ## Code After: (require '[figwheel-sidecar.repl :as r] '[figwheel-sidecar.repl-api :as ra] '[cljs.tagged-literals]) (alter-var-root #'cljs.tagged-literals/*cljs-data-readers* assoc 'ux/tr (fn [v] `(uxbox.locales/tr ~v))) (ra/start-figwheel! {:figwheel-options {:css-dirs ["resources/public/css"]} :build-ids ["dev"] :all-builds [{:id "dev" :figwheel {:on-jsload "uxbox.ui/init"} :source-paths ["src"] :compiler {:main 'uxbox.core :asset-path "js" :parallel-build false :optimizations :none :warnings {:ns-var-clash false} :pretty-print true :language-in :ecmascript5 :language-out :ecmascript5 :output-to "resources/public/js/main.js" :output-dir "resources/public/js" :verbose true}}]}) (ra/cljs-repl)
7eb24bfc794ed206a83beed55f4e22cafc4fec45
src/Extensions/SiteTreeExtension.php
src/Extensions/SiteTreeExtension.php
<?php namespace DNADesign\Elemental\Extensions; use DNADesign\Elemental\Models\ElementalArea; use SilverStripe\ORM\DataExtension; /** * The SiteTreeExtension provides a consistent API surface for reading elements from pages regardless * of whether the specific implementation of SiteTree (subclass) has the elemental extension applied. */ class SiteTreeExtension extends DataExtension { /** * Returns the owner's `ElementalArea()` contents if it has the extension * * @return ElementalArea|null */ public function ElementalAreaIfExists() { if ($this->owner->hasExtension(ElementalPageExtension::class)) { return $this->owner->ElementalArea(); } } }
<?php namespace DNADesign\Elemental\Extensions; use DNADesign\Elemental\Models\ElementalArea; use SilverStripe\ORM\DataExtension; /** * The SiteTreeExtension provides a consistent API surface for reading elements from pages regardless * of whether the specific implementation of SiteTree (subclass) has the elemental extension applied. */ class SiteTreeExtension extends DataExtension { /** * Returns the owner's `ElementalArea()` contents if it has the extension, or an empty one * * @return ElementalArea */ public function ElementalAreaIfExists() { if ($this->owner->hasExtension(ElementalPageExtension::class)) { return $this->owner->ElementalArea(); } return ElementalArea::create(); } }
FIX Return empty ElementalArea if none exists for the page
FIX Return empty ElementalArea if none exists for the page
PHP
bsd-3-clause
dnadesign/silverstripe-elemental,dnadesign/silverstripe-elemental
php
## Code Before: <?php namespace DNADesign\Elemental\Extensions; use DNADesign\Elemental\Models\ElementalArea; use SilverStripe\ORM\DataExtension; /** * The SiteTreeExtension provides a consistent API surface for reading elements from pages regardless * of whether the specific implementation of SiteTree (subclass) has the elemental extension applied. */ class SiteTreeExtension extends DataExtension { /** * Returns the owner's `ElementalArea()` contents if it has the extension * * @return ElementalArea|null */ public function ElementalAreaIfExists() { if ($this->owner->hasExtension(ElementalPageExtension::class)) { return $this->owner->ElementalArea(); } } } ## Instruction: FIX Return empty ElementalArea if none exists for the page ## Code After: <?php namespace DNADesign\Elemental\Extensions; use DNADesign\Elemental\Models\ElementalArea; use SilverStripe\ORM\DataExtension; /** * The SiteTreeExtension provides a consistent API surface for reading elements from pages regardless * of whether the specific implementation of SiteTree (subclass) has the elemental extension applied. */ class SiteTreeExtension extends DataExtension { /** * Returns the owner's `ElementalArea()` contents if it has the extension, or an empty one * * @return ElementalArea */ public function ElementalAreaIfExists() { if ($this->owner->hasExtension(ElementalPageExtension::class)) { return $this->owner->ElementalArea(); } return ElementalArea::create(); } }
831ae9a7779283ecc5695c81b7dcf89006a5544a
test/client/spec/components/ecology.spec.jsx
test/client/spec/components/ecology.spec.jsx
/** * Client tests */ import React from "react/addons"; import Component from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { it("has expected content with shallow render", function () { // This is a "shallow" render that renders only the current component // without using the actual DOM. // // https://facebook.github.io/react/docs/test-utils.html#shallow-rendering const renderer = TestUtils.createRenderer(); renderer.render(<Component />); const output = renderer.getRenderOutput(); expect(output.type).to.equal("div"); }); });
/** * Client tests */ import React from "react/addons"; import Ecology from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { it("has expected content with shallow render", function () { // This is a "shallow" render that renders only the current component // without using the actual DOM. // // https://facebook.github.io/react/docs/test-utils.html#shallow-rendering const renderer = TestUtils.createRenderer(); renderer.render(<Ecology />); const output = renderer.getRenderOutput(); expect(output.type).to.equal("div"); }); });
Rename Ecology component under test
Rename Ecology component under test
JSX
mit
FormidableLabs/ecology,aurelienshz/ecology,FormidableLabs/ecology,aurelienshz/ecology
jsx
## Code Before: /** * Client tests */ import React from "react/addons"; import Component from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { it("has expected content with shallow render", function () { // This is a "shallow" render that renders only the current component // without using the actual DOM. // // https://facebook.github.io/react/docs/test-utils.html#shallow-rendering const renderer = TestUtils.createRenderer(); renderer.render(<Component />); const output = renderer.getRenderOutput(); expect(output.type).to.equal("div"); }); }); ## Instruction: Rename Ecology component under test ## Code After: /** * Client tests */ import React from "react/addons"; import Ecology from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { it("has expected content with shallow render", function () { // This is a "shallow" render that renders only the current component // without using the actual DOM. // // https://facebook.github.io/react/docs/test-utils.html#shallow-rendering const renderer = TestUtils.createRenderer(); renderer.render(<Ecology />); const output = renderer.getRenderOutput(); expect(output.type).to.equal("div"); }); });
c48e7ddb1e172871eed0c2728bde50043776d965
src/Beanstalk/wwwroot/html/game-screen.html
src/Beanstalk/wwwroot/html/game-screen.html
<div id="gameScreen" class="beanstalk-screen"> <div class="hud"> <div class="top-hud"> <div class="height">1345m</div> <button class="back"></button> <button class="help"></button> <!--<button class="music"></button>--> <button class="sound"></button> </div> <div class="bottom-hud"> <button class="pass-btn">PASS</button> <input placeholder="enter phrase" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" /> <button class="submit">SUBMIT</button> </div> </div> </div>
<div id="gameScreen" class="beanstalk-screen"> <div class="hud"> <div class="top-hud"> <div class="height">1345m</div> <button class="back"></button> <button class="help"></button> <!--<button class="music"></button>--> <button class="sound"></button> </div> <div class="bottom-hud"> <button class="pass-btn">PASS</button> <input placeholder="type word or phrase" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" /> <button class="submit">SUBMIT</button> </div> </div> </div>
Update default text box message to "type word or phrase"
Update default text box message to "type word or phrase"
HTML
mit
tiltfactor/beanstalk,tiltfactor/beanstalk,tiltfactor/beanstalk,tiltfactor/beanstalk
html
## Code Before: <div id="gameScreen" class="beanstalk-screen"> <div class="hud"> <div class="top-hud"> <div class="height">1345m</div> <button class="back"></button> <button class="help"></button> <!--<button class="music"></button>--> <button class="sound"></button> </div> <div class="bottom-hud"> <button class="pass-btn">PASS</button> <input placeholder="enter phrase" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" /> <button class="submit">SUBMIT</button> </div> </div> </div> ## Instruction: Update default text box message to "type word or phrase" ## Code After: <div id="gameScreen" class="beanstalk-screen"> <div class="hud"> <div class="top-hud"> <div class="height">1345m</div> <button class="back"></button> <button class="help"></button> <!--<button class="music"></button>--> <button class="sound"></button> </div> <div class="bottom-hud"> <button class="pass-btn">PASS</button> <input placeholder="type word or phrase" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" /> <button class="submit">SUBMIT</button> </div> </div> </div>
54809439f5c3f475d7705f0fa8e0e9f88adeeb65
README.md
README.md
This repository contains the source code for the docker images used to build mbeddr and other MPS based projects. It is basically a teamcity build agent with some additional packages for compiling. Using the image is fairly simple: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` If you run docker on a storage backend that supports size limits for the volumes it makes sense to limit the available disk space for the agent: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always --storage-opt size=50G -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` The agent gets its name from the environment variable `AGENT_NAME`. This name will showup in the teamcity web ui. If you don't set the name you will endup with a agent called `placeholder`. # JDK selection By default, the openjdk 8 will be used. Set env vars `PATH` and `JAVA_HOME` to select a jetbrains jdk: ``` # for jetbrains java 8 export JAVA_HOME="/usr/lib/jvm/${JB_JAVA8_VERSION}/" PATH="/usr/lib/jvm/${JB_JAVA8_VERSION}/bin:$PATH" # for jetbrains java 11 export JAVA_HOME="/usr/lib/jvm/${JB_JAVA11_VERSION}/" PATH="/usr/lib/jvm/${JB_JAVA11_VERSION}/bin:$PATH" ```
This repository contains the source code for the docker images used to build mbeddr and other MPS based projects. It is basically a teamcity build agent with some additional packages for compiling. Using the image is fairly simple: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` If you run docker on a storage backend that supports size limits for the volumes it makes sense to limit the available disk space for the agent: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always --storage-opt size=50G -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` The agent gets its name from the environment variable `AGENT_NAME`. This name will showup in the teamcity web ui. If you don't set the name you will endup with a agent called `placeholder`. # JDK selection By default, the openjdk 8 will be used. Set env vars `PATH` and `JAVA_HOME` to select a jetbrains jdk: ``` # for jetbrains java 8 export JAVA_HOME=$JB_JAVA8_HOME PATH="${JB_JAVA8_HOME}/bin:$PATH" # for jetbrains java 11 export JAVA_HOME=$JB_JAVA11_HOME PATH="${JB_JAVA11_HOME}/bin:$PATH" ```
Use $JB_JAVAX_HOME in favor of JB_JAVAX_VERSION
readme: Use $JB_JAVAX_HOME in favor of JB_JAVAX_VERSION
Markdown
mit
mbeddr/mbeddr.build.docker,coolya/mbeddr.build.docker
markdown
## Code Before: This repository contains the source code for the docker images used to build mbeddr and other MPS based projects. It is basically a teamcity build agent with some additional packages for compiling. Using the image is fairly simple: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` If you run docker on a storage backend that supports size limits for the volumes it makes sense to limit the available disk space for the agent: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always --storage-opt size=50G -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` The agent gets its name from the environment variable `AGENT_NAME`. This name will showup in the teamcity web ui. If you don't set the name you will endup with a agent called `placeholder`. # JDK selection By default, the openjdk 8 will be used. Set env vars `PATH` and `JAVA_HOME` to select a jetbrains jdk: ``` # for jetbrains java 8 export JAVA_HOME="/usr/lib/jvm/${JB_JAVA8_VERSION}/" PATH="/usr/lib/jvm/${JB_JAVA8_VERSION}/bin:$PATH" # for jetbrains java 11 export JAVA_HOME="/usr/lib/jvm/${JB_JAVA11_VERSION}/" PATH="/usr/lib/jvm/${JB_JAVA11_VERSION}/bin:$PATH" ``` ## Instruction: readme: Use $JB_JAVAX_HOME in favor of JB_JAVAX_VERSION ## Code After: This repository contains the source code for the docker images used to build mbeddr and other MPS based projects. It is basically a teamcity build agent with some additional packages for compiling. Using the image is fairly simple: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` If you run docker on a storage backend that supports size limits for the volumes it makes sense to limit the available disk space for the agent: ``` docker pull mbeddr/mbeddr.build.docker docker run --name buildAgent1 -d --restart=always --storage-opt size=50G -e AGENT_NAME=awesomeAgent mbeddr/mbeddr.build.docker ``` The agent gets its name from the environment variable `AGENT_NAME`. This name will showup in the teamcity web ui. If you don't set the name you will endup with a agent called `placeholder`. # JDK selection By default, the openjdk 8 will be used. Set env vars `PATH` and `JAVA_HOME` to select a jetbrains jdk: ``` # for jetbrains java 8 export JAVA_HOME=$JB_JAVA8_HOME PATH="${JB_JAVA8_HOME}/bin:$PATH" # for jetbrains java 11 export JAVA_HOME=$JB_JAVA11_HOME PATH="${JB_JAVA11_HOME}/bin:$PATH" ```
a26025fef534c359e6cc764f51802e971befefc7
src/Extension/Core/HorizontalRuleExtension.php
src/Extension/Core/HorizontalRuleExtension.php
<?php namespace FluxBB\Markdown\Extension\Core; use FluxBB\Markdown\Common\Text; use FluxBB\Markdown\Extension\ExtensionInterface; use FluxBB\Markdown\Renderer\RendererAwareInterface; use FluxBB\Markdown\Renderer\RendererAwareTrait; use FluxBB\Markdown\Markdown; /** * Converts horizontal rules * * Original source code from Markdown.pl * * > Copyright (c) 2004 John Gruber * > <http://daringfireball.net/projects/markdown/> * * @author Kazuyuki Hayashi <hayashi@valnur.net> */ class HorizontalRuleExtension implements ExtensionInterface, RendererAwareInterface { use RendererAwareTrait; /** * {@inheritdoc} */ public function register(Markdown $markdown) { $markdown->on('block', array($this, 'processHorizontalRule'), 20); } /** * @param Text $text */ public function processHorizontalRule(Text $text) { $marks = array('\*', '-', '_'); foreach ($marks as $mark) { $text->replace( '/^[ ]{0,2}([ ]?' . $mark . '[ ]?){3,}[ \t]*$/m', $this->getRenderer()->renderHorizontalRule() . "\n\n" ); } } /** * {@inheritdoc} */ public function getName() { return 'hr'; } }
<?php namespace FluxBB\Markdown\Extension\Core; use FluxBB\Markdown\Common\Text; use FluxBB\Markdown\Extension\ExtensionInterface; use FluxBB\Markdown\Renderer\RendererAwareInterface; use FluxBB\Markdown\Renderer\RendererAwareTrait; use FluxBB\Markdown\Markdown; /** * Converts horizontal rules * * Original source code from Markdown.pl * * > Copyright (c) 2004 John Gruber * > <http://daringfireball.net/projects/markdown/> * * @author Kazuyuki Hayashi <hayashi@valnur.net> */ class HorizontalRuleExtension implements ExtensionInterface, RendererAwareInterface { use RendererAwareTrait; /** * {@inheritdoc} */ public function register(Markdown $markdown) { $markdown->on('block', array($this, 'processHorizontalRule'), 20); } /** * @param Text $text */ public function processHorizontalRule(Text $text) { $marks = array('*', '-', '_'); foreach ($marks as $mark) { $text->replace( '/^[ ]{0,2}([ ]?' . preg_quote($mark, '/') . '[ ]?){3,}[ \t]*$/m', $this->getRenderer()->renderHorizontalRule() . "\n\n" ); } } /** * {@inheritdoc} */ public function getName() { return 'hr'; } }
Use preg_quote() for escaping horizontal rule markers.
Use preg_quote() for escaping horizontal rule markers.
PHP
mit
fluxbb/commonmark
php
## Code Before: <?php namespace FluxBB\Markdown\Extension\Core; use FluxBB\Markdown\Common\Text; use FluxBB\Markdown\Extension\ExtensionInterface; use FluxBB\Markdown\Renderer\RendererAwareInterface; use FluxBB\Markdown\Renderer\RendererAwareTrait; use FluxBB\Markdown\Markdown; /** * Converts horizontal rules * * Original source code from Markdown.pl * * > Copyright (c) 2004 John Gruber * > <http://daringfireball.net/projects/markdown/> * * @author Kazuyuki Hayashi <hayashi@valnur.net> */ class HorizontalRuleExtension implements ExtensionInterface, RendererAwareInterface { use RendererAwareTrait; /** * {@inheritdoc} */ public function register(Markdown $markdown) { $markdown->on('block', array($this, 'processHorizontalRule'), 20); } /** * @param Text $text */ public function processHorizontalRule(Text $text) { $marks = array('\*', '-', '_'); foreach ($marks as $mark) { $text->replace( '/^[ ]{0,2}([ ]?' . $mark . '[ ]?){3,}[ \t]*$/m', $this->getRenderer()->renderHorizontalRule() . "\n\n" ); } } /** * {@inheritdoc} */ public function getName() { return 'hr'; } } ## Instruction: Use preg_quote() for escaping horizontal rule markers. ## Code After: <?php namespace FluxBB\Markdown\Extension\Core; use FluxBB\Markdown\Common\Text; use FluxBB\Markdown\Extension\ExtensionInterface; use FluxBB\Markdown\Renderer\RendererAwareInterface; use FluxBB\Markdown\Renderer\RendererAwareTrait; use FluxBB\Markdown\Markdown; /** * Converts horizontal rules * * Original source code from Markdown.pl * * > Copyright (c) 2004 John Gruber * > <http://daringfireball.net/projects/markdown/> * * @author Kazuyuki Hayashi <hayashi@valnur.net> */ class HorizontalRuleExtension implements ExtensionInterface, RendererAwareInterface { use RendererAwareTrait; /** * {@inheritdoc} */ public function register(Markdown $markdown) { $markdown->on('block', array($this, 'processHorizontalRule'), 20); } /** * @param Text $text */ public function processHorizontalRule(Text $text) { $marks = array('*', '-', '_'); foreach ($marks as $mark) { $text->replace( '/^[ ]{0,2}([ ]?' . preg_quote($mark, '/') . '[ ]?){3,}[ \t]*$/m', $this->getRenderer()->renderHorizontalRule() . "\n\n" ); } } /** * {@inheritdoc} */ public function getName() { return 'hr'; } }
2ae687d9263f7646a40928866a09a2cf3ac55423
documentation/src/javadoc/junit-overview.html
documentation/src/javadoc/junit-overview.html
<body> <p>This document consists of three sections:</p> <dl> <dt>Platform</dt> <dd>The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and a JUnit 4 based Runner for running any TestEngine on the platform in a JUnit 4 based environment. </dd> <dt>Jupiter</dt> <dd>JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine for running Jupiter based tests on the platform. </dd> <dt>Vintage</dt> <dd>JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform. </dd> </dl> <p>Already consulted the <a href="https://junit.org/junit5/docs/current/user-guide">JUnit 5 User Guide</a>?</p> </body>
<body> <p>This document consists of three sections:</p> <dl> <dt>Platform</dt> <dd>The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and a JUnit 4 based Runner for running any TestEngine on the platform in a JUnit 4 based environment. </dd> <dt>Jupiter</dt> <dd>JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine for running Jupiter based tests on the platform. </dd> <dt>Vintage</dt> <dd>JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform. </dd> </dl> <p>Already consulted the <a href="../user-guide/index.html">JUnit 5 User Guide</a>?</p> </body>
Use relative link to user guide of matching version
Use relative link to user guide of matching version
HTML
epl-1.0
junit-team/junit-lambda,sbrannen/junit-lambda
html
## Code Before: <body> <p>This document consists of three sections:</p> <dl> <dt>Platform</dt> <dd>The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and a JUnit 4 based Runner for running any TestEngine on the platform in a JUnit 4 based environment. </dd> <dt>Jupiter</dt> <dd>JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine for running Jupiter based tests on the platform. </dd> <dt>Vintage</dt> <dd>JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform. </dd> </dl> <p>Already consulted the <a href="https://junit.org/junit5/docs/current/user-guide">JUnit 5 User Guide</a>?</p> </body> ## Instruction: Use relative link to user guide of matching version ## Code After: <body> <p>This document consists of three sections:</p> <dl> <dt>Platform</dt> <dd>The JUnit Platform serves as a foundation for launching testing frameworks on the JVM. It also defines the TestEngine API for developing a testing framework that runs on the platform. Furthermore, the platform provides a Console Launcher to launch the platform from the command line and a JUnit 4 based Runner for running any TestEngine on the platform in a JUnit 4 based environment. </dd> <dt>Jupiter</dt> <dd>JUnit Jupiter is the combination of the new programming model and extension model for writing tests and extensions in JUnit 5. The Jupiter sub-project provides a TestEngine for running Jupiter based tests on the platform. </dd> <dt>Vintage</dt> <dd>JUnit Vintage provides a TestEngine for running JUnit 3 and JUnit 4 based tests on the platform. </dd> </dl> <p>Already consulted the <a href="../user-guide/index.html">JUnit 5 User Guide</a>?</p> </body>