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
89af63c7f2d6f5bbd3e20f873b141ef406b9a67e
DependencyInjection/FlexModelExtension.php
DependencyInjection/FlexModelExtension.php
<?php namespace FlexModel\FlexModelBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * FlexModelExtension loads and ma...
<?php namespace FlexModel\FlexModelBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * FlexModelExtensio...
Add the upload services based on file_upload_path configuration option
Add the upload services based on file_upload_path configuration option
PHP
mit
FlexModel/FlexModelBundle,FlexModel/FlexModelBundle
php
## Code Before: <?php namespace FlexModel\FlexModelBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; /** * FlexModelExtens...
327913be97e9a92a4f0c34578b1a5471a21851ec
staticcheck/testdata/CheckLeakyTimeTick.go
staticcheck/testdata/CheckLeakyTimeTick.go
package pkg import "time" func fn1() { for range time.Tick(0) { println("") } } func fn2() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") if true { break } } } func fn3() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") if true { ret...
package pkg import "time" func fn1() { for range time.Tick(0) { println("") } } func fn2() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") if true { break } } } func fn3() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") if true { ret...
Add test for non-leaky time.Tick in closure
Add test for non-leaky time.Tick in closure Updates gh-62
Go
mit
dominikh/go-tools,dominikh/go-tools,dominikh/go-tools,dominikh/go-tools
go
## Code Before: package pkg import "time" func fn1() { for range time.Tick(0) { println("") } } func fn2() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") if true { break } } } func fn3() { for range time.Tick(0) { // MATCH /leaks the underlying ticker/ println("") ...
bb5c90c579b8ac79345c02c9d3316f20e350aaad
app/javascript/shared/autocomplete.js
app/javascript/shared/autocomplete.js
import autocomplete from 'autocomplete.js'; import { getJSON, fire } from '@utils'; const sources = [ { type: 'address', url: '/address/suggestions' }, { type: 'path', url: '/admin/procedures/path_list' } ]; const options = { autoselect: true, minLength: 1 }; function selector(type) { r...
import autocomplete from 'autocomplete.js'; import { getJSON, fire } from '@utils'; const sources = [ { type: 'address', url: '/address/suggestions' }, { type: 'path', url: '/admin/procedures/path_list' } ]; const options = { autoselect: true, minLength: 1 }; function selector(type) { r...
Fix champ address on repetitions
Fix champ address on repetitions
JavaScript
agpl-3.0
sgmap/tps,sgmap/tps,sgmap/tps
javascript
## Code Before: import autocomplete from 'autocomplete.js'; import { getJSON, fire } from '@utils'; const sources = [ { type: 'address', url: '/address/suggestions' }, { type: 'path', url: '/admin/procedures/path_list' } ]; const options = { autoselect: true, minLength: 1 }; function sele...
a4f669aaafa1ffe540d71cea706886d4b7117d13
gnu/usr.bin/cc/c++filt/Makefile
gnu/usr.bin/cc/c++filt/Makefile
.include "../Makefile.inc" .PATH: ${GCCDIR} PROG = c++filt SRCS = cplus-dem.c getopt.c getopt1.c underscore.c NOMAN= 1 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\" CLEANFILES= tmp-dum.c tmp-dum.s underscore.c underscore.c: echo "int xxy_us_dummy;" >tmp-dum.c ${CC} -S tmp-dum.c echo '/*WARNING: This file is...
.include "../Makefile.inc" .PATH: ${GCCDIR} PROG = c++filt SRCS = cplus-dem.c getopt.c getopt1.c underscore.c BINDIR= /usr/libexec/${OBJFORMAT} NOMAN= 1 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\" CLEANFILES= tmp-dum.c tmp-dum.s underscore.c underscore.c: echo "int xxy_us_dummy;" >tmp-dum.c ${CC} -S tmp-du...
Install c++filt in /usr/libexec/${OBJFORMAT}. The version that was installed in /usr/bin normally got clobbered when objformat was installed. Indirection through objformat is correct although underscore handling is the only thing that differs for aout and elf -- going through objformat is the easiest way to set c++filt...
Install c++filt in /usr/libexec/${OBJFORMAT}. The version that was installed in /usr/bin normally got clobbered when objformat was installed. Indirection through objformat is correct although underscore handling is the only thing that differs for aout and elf -- going through objformat is the easiest way to set c++fi...
unknown
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
unknown
## Code Before: .include "../Makefile.inc" .PATH: ${GCCDIR} PROG = c++filt SRCS = cplus-dem.c getopt.c getopt1.c underscore.c NOMAN= 1 CFLAGS+= -DMAIN -DIN_GCC -DVERSION=\"$(version)\" CLEANFILES= tmp-dum.c tmp-dum.s underscore.c underscore.c: echo "int xxy_us_dummy;" >tmp-dum.c ${CC} -S tmp-dum.c echo '/*WARNI...
9de760794eac63dd053b9a2ac78072a3648b7752
tests/run.py
tests/run.py
from __future__ import print_function import datetime import os import sys from io import BytesIO from pprint import pprint import requests import voxjar if __name__ == "__main__": metadata = { "identifier": "test_call_identifier", "timestamp": datetime.datetime.now(), "type": { ...
from __future__ import print_function import datetime import os import sys from io import BytesIO from pprint import pprint from uuid import uuid4 import requests import voxjar if __name__ == "__main__": metadata = { "identifier": "test_{}".format(uuid4()), "timestamp": datetime.datetime.now(), ...
Add uuid to identifier in test script
Add uuid to identifier in test script
Python
apache-2.0
platoai/platoai-python,platoai/platoai
python
## Code Before: from __future__ import print_function import datetime import os import sys from io import BytesIO from pprint import pprint import requests import voxjar if __name__ == "__main__": metadata = { "identifier": "test_call_identifier", "timestamp": datetime.datetime.now(), "t...
9343747991766fba856e0fc91973d59abe0404fa
src/app/primary-styles/_grid-settings.scss
src/app/primary-styles/_grid-settings.scss
@import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails // Neat Overrides // $column: 90px; // $gutter: 30px; // $grid-columns: 12; // $max-width: 1200px; // Neat Breakpoints $medium-screen: 600px; $large-screen: 900px; $medium-screen-up: new-breakpoint(min-width $medium-screen 4); $large-screen-up: n...
@import "bower_components/neat/app/assets/stylesheets/neat-helpers"; // or "../neat/neat-helpers" when not in Rails // Neat Overrides // $column: 90px; // $gutter: 30px; // $grid-columns: 12; // $max-width: 1200px; // Neat Breakpoints $medium-screen: 600px; $large-screen: 900px; $medium-screen-up: new-breakpoint(min...
Update neat-helpers path to neat bower pkg
Update neat-helpers path to neat bower pkg
SCSS
mit
RobEasthope/lazarus,RobEasthope/lazarus
scss
## Code Before: @import "neat-helpers"; // or "../neat/neat-helpers" when not in Rails // Neat Overrides // $column: 90px; // $gutter: 30px; // $grid-columns: 12; // $max-width: 1200px; // Neat Breakpoints $medium-screen: 600px; $large-screen: 900px; $medium-screen-up: new-breakpoint(min-width $medium-screen 4); $la...
ec41e22e27d10534373ef174a3fd88d8751b4589
scripts/background.js
scripts/background.js
chrome.runtime.onInstalled.addListener(function() { chrome.declarativeContent.onPageChanged.removeRules(undefined, function() { chrome.declarativeContent.onPageChanged.addRules([ { conditions: [ new chrome.declarativeContent.PageStateMatcher({ pageUrl: { hostEqual...
chrome.runtime.onInstalled.addListener(function() { chrome.declarativeContent.onPageChanged.removeRules(undefined, function() { chrome.declarativeContent.onPageChanged.addRules([ { conditions: [ new chrome.declarativeContent.PageStateMatcher({ pageUrl: { hostEqual...
Modify match rules for activating extension or not
Modify match rules for activating extension or not
JavaScript
mit
obiyuta/chrome-copy-link-to-issue,obiyuta/chrome-copy-link-to-issue
javascript
## Code Before: chrome.runtime.onInstalled.addListener(function() { chrome.declarativeContent.onPageChanged.removeRules(undefined, function() { chrome.declarativeContent.onPageChanged.addRules([ { conditions: [ new chrome.declarativeContent.PageStateMatcher({ pageUrl: { ...
79a3444d39b69a341f4ac9ecc41147bee51b89df
src/common/fermenter/fermenterEnv.js
src/common/fermenter/fermenterEnv.js
import { Record } from 'immutable'; export default Record({ createdAt: null, temperature: null, humidity: null, isValid: false, errors: 0, });
import { Record } from 'immutable'; export default Record({ createdAt: null, temperature: null, humidity: null, isValid: false, errors: 0, iterations: 0 });
Add support for fermenter-iteration attribute.
Add support for fermenter-iteration attribute.
JavaScript
mit
cjk/smart-home-app
javascript
## Code Before: import { Record } from 'immutable'; export default Record({ createdAt: null, temperature: null, humidity: null, isValid: false, errors: 0, }); ## Instruction: Add support for fermenter-iteration attribute. ## Code After: import { Record } from 'immutable'; export default Record({ created...
b1d7a701311978632a92486a3d14b93b25c78672
.travis.yml
.travis.yml
sudo: false language: java git: depth: 150 jdk: - oraclejdk7 - oraclejdk8 env: PATH=$PATH:$HOME/local/bin cache: directories: - $HOME/.m2 - $HOME/local notifications: email: false install: ./dev/travis-install-dependencies.sh script: mvn clean install -q -ff -Dsurefire.useFile=false -DLOG_LEVEL...
sudo: false language: java git: depth: 150 jdk: - oraclejdk7 - oraclejdk8 - openjdk7 env: PATH=$PATH:$HOME/local/bin cache: directories: - $HOME/.m2 - $HOME/local notifications: email: false install: ./dev/travis-install-dependencies.sh script: mvn clean install -q -ff -Dsurefire.useFile=fals...
Add OpenJDK 7 test environment to Travis CI
[REEF-1227] Add OpenJDK 7 test environment to Travis CI JIRA: [REEF-1227](https://issues.apache.org/jira/browse/REEF-1227) Pull request: This closes #865
YAML
apache-2.0
shravanmn/reef,dougmsft/reef,dkm2110/veyor,apache/incubator-reef,dkm2110/veyor,jwang98052/incubator-reef,dongjoon-hyun/reef,jsjason/incubator-reef,dougmsft/reef,shravanmn/reef,dongjoon-hyun/reef,zerg-junior/incubator-reef,markusweimer/reef,afchung/incubator-reef,markusweimer/incubator-reef,dongjoon-hyun/incubator-reef,...
yaml
## Code Before: sudo: false language: java git: depth: 150 jdk: - oraclejdk7 - oraclejdk8 env: PATH=$PATH:$HOME/local/bin cache: directories: - $HOME/.m2 - $HOME/local notifications: email: false install: ./dev/travis-install-dependencies.sh script: mvn clean install -q -ff -Dsurefire.useFile=f...
e7b2582d56af5f35caceb1a80129b6629770c38f
library/CM/Response/Resource/Layout.php
library/CM/Response/Resource/Layout.php
<?php class CM_Response_Resource_Layout extends CM_Response_Resource_Abstract { protected function _process() { $file = null; if ($path = $this->getRender()->getLayoutPath('resource/' . $this->getRequest()->getPath(), null, true, false)) { $file = new CM_File($path); } ...
<?php class CM_Response_Resource_Layout extends CM_Response_Resource_Abstract { protected function _process() { $content = null; $mimeType = null; if ($pathRaw = $this->getRender()->getLayoutPath('resource/' . $this->getRequest()->getPath(), null, true, false)) { $file = new C...
Allow to render layout resources as smarty templates
Allow to render layout resources as smarty templates
PHP
mit
fauvel/CM,alexispeter/CM,cargomedia/CM,vogdb/cm,fauvel/CM,alexispeter/CM,mariansollmann/CM,cargomedia/CM,mariansollmann/CM,fvovan/CM,vogdb/cm,cargomedia/CM,tomaszdurka/CM,mariansollmann/CM,tomaszdurka/CM,njam/CM,cargomedia/CM,alexispeter/CM,zazabe/cm,fauvel/CM,vogdb/cm,njam/CM,zazabe/cm,tomaszdurka/CM,mariansollmann/CM...
php
## Code Before: <?php class CM_Response_Resource_Layout extends CM_Response_Resource_Abstract { protected function _process() { $file = null; if ($path = $this->getRender()->getLayoutPath('resource/' . $this->getRequest()->getPath(), null, true, false)) { $file = new CM_File($path); ...
2df5590c97942c30ac432d1f09e66a618679cfef
src/utils/string-utils.js
src/utils/string-utils.js
import React from 'react'; export const tidyString = string => ( <span>{string.split(/\n/).map(s => <p>{s}</p>)}</span> );
import React from 'react'; export const tidyString = string => ( string && <span>{string.split(/\n/).map(s => <p>{s}</p>)}</span> );
Fix issue with undefined strings
Fix issue with undefined strings
JavaScript
mit
FranckCo/Operation-Explorer,FranckCo/Operation-Explorer
javascript
## Code Before: import React from 'react'; export const tidyString = string => ( <span>{string.split(/\n/).map(s => <p>{s}</p>)}</span> ); ## Instruction: Fix issue with undefined strings ## Code After: import React from 'react'; export const tidyString = string => ( string && <span>{string.split(/\n/).map(s => <...
87240bb84d80a53d152ad712dfc29080f308d506
app/views/student_member/index.html.erb
app/views/student_member/index.html.erb
<h1>Home page for StudentMember ID <%= @thisID %> </h1> <h3>Total Alumni Allotted: <%= @allalums.length %></h3> <br> <table id="alumniTable" class="table table-striped"> <thead> <td>id</td> <td>name</td> <td>department</td> <td>hall</td> <td>search</td> <td>response</td> <td></td> </thead> <tbody> ...
<h1>Home page for StudentMember ID <%= @thisID %> </h1> <h3>Total Alumni Allotted: <%= @allalums.length %></h3> <br> <table id="alumniTable" class="table table-striped"> <thead> <td>id</td> <td>name</td> <td>department</td> <td>hall</td> <td>call next at</td> <td>search</td> <td>response</td> <td></...
Add call_next_at to the student member homepage.
Add call_next_at to the student member homepage. Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com>
HTML+ERB
mit
aniarya82/networking-rails,icyflame/erp-rails,icyflame/erp-rails,icyflame/erp-rails,aniarya82/networking-rails,aniarya82/networking-rails
html+erb
## Code Before: <h1>Home page for StudentMember ID <%= @thisID %> </h1> <h3>Total Alumni Allotted: <%= @allalums.length %></h3> <br> <table id="alumniTable" class="table table-striped"> <thead> <td>id</td> <td>name</td> <td>department</td> <td>hall</td> <td>search</td> <td>response</td> <td></td> </t...
a5a2687b7b6a032b31e2b63c4c58aab3987421b3
Makefile.bat
Makefile.bat
@ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build grunt :pre_build mkdir build :build cp -R src/* build call :build_server call :build_viewer cd build npm install cd .. :build_server npm install GochoMugo/docvy-server#develop mv node_modules/docvy...
REM This batch script is an effort at porting the Unix Makefile for REM Windows. Therefore, it may not be updated as frequent as the Unix REM Makefile. (Please consider helping us keeping it up to date) @ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build...
Add note about updates to the Windows build script
Add note about updates to the Windows build script
Batchfile
mit
docvy/app,docvy/app,docvy/app
batchfile
## Code Before: @ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build grunt :pre_build mkdir build :build cp -R src/* build call :build_server call :build_viewer cd build npm install cd .. :build_server npm install GochoMugo/docvy-server#develop mv no...
b2f5e71e15eec47efd1b8faed97ec614b78deaf6
test/test_stream.py
test/test_stream.py
import pynmea2 from tempfile import TemporaryFile def test_stream(): data = "$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D\n" sr = pynmea2.NMEAStreamReader() assert len(sr.next('')) == 0 assert len(sr.next(data)) == 1 assert len(sr.next(data)) == 1 sr =...
from __future__ import print_function import pynmea2 from tempfile import TemporaryFile def test_stream(): data = "$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D\n" sr = pynmea2.NMEAStreamReader() assert len(sr.next('')) == 0 assert len(sr.next(data)) == 1 ass...
Add compatibility with Python 3.3.
Add compatibility with Python 3.3.
Python
mit
Knio/pynmea2,adamfazzari/pynmea2,ampledata/pynmea2,silentquasar/pynmea2,lobocv/pynmea2
python
## Code Before: import pynmea2 from tempfile import TemporaryFile def test_stream(): data = "$GPGGA,184353.07,1929.045,S,02410.506,E,1,04,2.6,100.00,M,-33.9,M,,0000*6D\n" sr = pynmea2.NMEAStreamReader() assert len(sr.next('')) == 0 assert len(sr.next(data)) == 1 assert len(sr.next(data)) == 1 ...
9462efe4ebe95e8b81995f57c12022af86e0c1a5
lib/ranked-model.rb
lib/ranked-model.rb
require File.dirname(__FILE__)+'/ranked-model/ranker' require File.dirname(__FILE__)+'/ranked-model/railtie' if defined?(Rails::Railtie) module RankedModel # Signed MEDIUMINT in MySQL # MAX_RANK_VALUE = 8388607 MIN_RANK_VALUE = -8388607 def self.included base base.class_eval do class_attribute :...
require File.dirname(__FILE__)+'/ranked-model/ranker' require File.dirname(__FILE__)+'/ranked-model/railtie' if defined?(Rails::Railtie) module RankedModel # Signed MEDIUMINT in MySQL # MAX_RANK_VALUE = 8388607 MIN_RANK_VALUE = -8388607 def self.included base base.class_eval do class_attribute :...
Add position method to ranked objects.
Add position method to ranked objects. An instance of a ranked class can now call #position to get their position in the list. It uses count so wouldn't be great for querying every object (if you're doing that you're probably in a loop and can use with_index) but will be fine for infrequent calls.
Ruby
mit
savef/ranked-model
ruby
## Code Before: require File.dirname(__FILE__)+'/ranked-model/ranker' require File.dirname(__FILE__)+'/ranked-model/railtie' if defined?(Rails::Railtie) module RankedModel # Signed MEDIUMINT in MySQL # MAX_RANK_VALUE = 8388607 MIN_RANK_VALUE = -8388607 def self.included base base.class_eval do c...
9e3d159f0b65cd81d0991fc860c8c46e715ffa66
Cargo.toml
Cargo.toml
[package] name = "mime" version = "0.0.2" authors = ["Sean McArthur <sean.monstar@gmail.com>"] license = "MIT" description = "Strongly Typed Mimes" documentation = "http://hyperium.github.io/mime.rs" repository = "https://github.com/hyperium/mime.rs"
[package] name = "mime" version = "0.0.2" authors = ["Sean McArthur <sean.monstar@gmail.com>"] license = "MIT" description = "Strongly Typed Mimes" documentation = "http://hyperium.github.io/mime.rs" repository = "https://github.com/hyperium/mime.rs" [dependencies] log = "*"
Add crates.io 'log' to dependencies
Add crates.io 'log' to dependencies The log crate should be coming from crates.io in the future. See the PR [here](https://github.com/rust-lang/rust/pull/19820).
TOML
apache-2.0
SimonSapin/mime.rs,hyperium/mime.rs,notriddle/mime.rs,florianjacob/mime.rs,Undeterminant/mime.rs,mikedilger/mime.rs
toml
## Code Before: [package] name = "mime" version = "0.0.2" authors = ["Sean McArthur <sean.monstar@gmail.com>"] license = "MIT" description = "Strongly Typed Mimes" documentation = "http://hyperium.github.io/mime.rs" repository = "https://github.com/hyperium/mime.rs" ## Instruction: Add crates.io 'log' to dependencies...
078e63c3021113462c73976f32f08ced909d9bdd
03-purescript-cli/src/Main.purs
03-purescript-cli/src/Main.purs
module Main where import Prelude import Control.Monad.Eff (Eff) import Control.Monad.Eff.Console (CONSOLE, log) import Data.Array foreign import process :: forall props. { | props } main :: Array String -> forall e. Eff (console :: CONSOLE | e) Unit main input = do log "Hello " <> (show (head input)) <> "!"
module Main where import Prelude import Data.Array greeting :: Array String -> String greeting arr = "Hello " <> (show (head arr)) <> "!" main :: Array String -> String main arr = greeting arr
Make main as in 01
Make main as in 01 Signed-off-by: Joern Bernhardt <7b85a41a628204b76aba4326273a3ccc74bd009a@campudus.com>
PureScript
mit
Narigo/purescript-fun
purescript
## Code Before: module Main where import Prelude import Control.Monad.Eff (Eff) import Control.Monad.Eff.Console (CONSOLE, log) import Data.Array foreign import process :: forall props. { | props } main :: Array String -> forall e. Eff (console :: CONSOLE | e) Unit main input = do log "Hello " <> (show (head input...
b796fd637a86484881ed1b55b3f87a32d4ef6189
tools/travis_setup.sh
tools/travis_setup.sh
set -ex WHEELHOUSE="--no-index --find-links=http://wheels.scikit-image.org/" pip install wheel nose pip install -r requirements.txt $WHEELHOUSE pip install ipython runipy
set -ex WHEELHOUSE="--no-index --find-links=http://wheels.scikit-image.org/" pip install wheel nose pip install -r requirements.txt $WHEELHOUSE apt-get install libzmq-dev pip install ipython runipy
Speed up build slightly by providing system libzmq
Speed up build slightly by providing system libzmq
Shell
bsd-3-clause
nipy/brainx,whitergh/brainx
shell
## Code Before: set -ex WHEELHOUSE="--no-index --find-links=http://wheels.scikit-image.org/" pip install wheel nose pip install -r requirements.txt $WHEELHOUSE pip install ipython runipy ## Instruction: Speed up build slightly by providing system libzmq ## Code After: set -ex WHEELHOUSE="--no-index --find-links=h...
8835269d69ba1a55eecb66ac5a0d64e48e3faf67
phpunit.xml
phpunit.xml
<phpunit bootstrap="index.php"> <testsuites> <testsuite name="acd"> <directory>core/tests</directory> </testsuite> </testsuites> </phpunit>
<testsuites> <testsuite name="acd"> <directory>core/tests</directory> </testsuite> </testsuites>
Test without php unit tag
Test without php unit tag
XML
mit
acidvertigo/php-conf
xml
## Code Before: <phpunit bootstrap="index.php"> <testsuites> <testsuite name="acd"> <directory>core/tests</directory> </testsuite> </testsuites> </phpunit> ## Instruction: Test without php unit tag ## Code After: <testsuites> <testsuite name="acd"> <directory>core/tests</directory> </te...
331e0604d9b634ec7f75a0fdaa6386eaf1436800
metadata/org.piwigo.android.yml
metadata/org.piwigo.android.yml
Categories: - Graphics - Multimedia License: GPL-3.0-or-later AuthorName: Piwigo Mobile Apps Team AuthorEmail: android@piwigo.org WebSite: https://piwigo.org/ SourceCode: https://github.com/Piwigo/Piwigo-Android IssueTracker: https://github.com/Piwigo/Piwigo-Android/issues Translation: https://crowdin.com/project/p...
Categories: - Graphics - Multimedia License: GPL-3.0-or-later AuthorName: Piwigo Mobile Apps Team AuthorEmail: android@piwigo.org WebSite: https://piwigo.org/ SourceCode: https://github.com/Piwigo/Piwigo-Android IssueTracker: https://github.com/Piwigo/Piwigo-Android/issues Translation: https://crowdin.com/project/p...
Update Piwigo to 1.0.0 (100)
Update Piwigo to 1.0.0 (100)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Graphics - Multimedia License: GPL-3.0-or-later AuthorName: Piwigo Mobile Apps Team AuthorEmail: android@piwigo.org WebSite: https://piwigo.org/ SourceCode: https://github.com/Piwigo/Piwigo-Android IssueTracker: https://github.com/Piwigo/Piwigo-Android/issues Translation: https://crowd...
97418e6815faacbaa46a3a29bef0c4c0454bede1
urls.py
urls.py
from django.conf import settings from django.conf.urls import url, include urlpatterns = [ url(r'^auth/', include('helios_auth.urls')), url(r'^helios/', include('helios.urls')), # SHOULD BE REPLACED BY APACHE STATIC PATH url(r'booth/(?P<path>.*)$', 'django.views.static.serve', {'document_root' : setti...
from django.conf import settings from django.conf.urls import url, include from django.views.static import serve urlpatterns = [ url(r'^auth/', include('helios_auth.urls')), url(r'^helios/', include('helios.urls')), # SHOULD BE REPLACED BY APACHE STATIC PATH url(r'booth/(?P<path>.*)$', serve, {'docume...
Support for string view arguments to url() will be removed
[DJ1.10] Support for string view arguments to url() will be removed
Python
apache-2.0
benadida/helios-server,shirlei/helios-server,shirlei/helios-server,benadida/helios-server,benadida/helios-server,shirlei/helios-server,benadida/helios-server,shirlei/helios-server,shirlei/helios-server,benadida/helios-server
python
## Code Before: from django.conf import settings from django.conf.urls import url, include urlpatterns = [ url(r'^auth/', include('helios_auth.urls')), url(r'^helios/', include('helios.urls')), # SHOULD BE REPLACED BY APACHE STATIC PATH url(r'booth/(?P<path>.*)$', 'django.views.static.serve', {'docume...
50145748cd1a1c7df0d8bf534248a068687465b5
public/websocket.js
public/websocket.js
var Websocket = function(url) { this.url = url; client = io.connect(url); client.on('connect', function(socket) { console.log('Trying to connect...'); client.on('connect-ack', function(msg) { console.log('Success: ' + msg.message); }); client.emit('join-new-game', null); client.on('joi...
var Websocket = function(url) { this.url = url; client = io.connect(url); client.on('connect', function(socket) { console.log('Trying to connect...'); client.on('connect-ack', function(msg) { console.log('Success: ' + msg.message); }); var token = UrlManager.getToken(); if (token === u...
Add support for rejoining game at client-side
Add support for rejoining game at client-side
JavaScript
mit
misko321/draughts,misko321/draughts
javascript
## Code Before: var Websocket = function(url) { this.url = url; client = io.connect(url); client.on('connect', function(socket) { console.log('Trying to connect...'); client.on('connect-ack', function(msg) { console.log('Success: ' + msg.message); }); client.emit('join-new-game', null); ...
b316b8c3c411de4d9878000848d6624401f5f46e
public/signup/index.html
public/signup/index.html
<html> <head> <title> Stop Trump's Nominees </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div id="header-container"> <div id="header"> <span class="header-item">A project of Advocacy Commons</span> </div> </div> <d...
<html> <head> <title> Stop Trump's Nominees </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="/call/style/style.css" /> <script data-main="/signup/main.js" src="/call/app/require.js"></script> </head> <body> <div ...
Move stylesheet & script back to <head>
Move stylesheet & script back to <head> Let's see if this fixes the page-not-loading on iOS
HTML
agpl-3.0
agustinrhcp/advocacycommons,advocacycommons/advocacycommons,matinieves/advocacycommons,matinieves/advocacycommons,matinieves/advocacycommons,agustinrhcp/advocacycommons,agustinrhcp/advocacycommons,advocacycommons/advocacycommons,advocacycommons/advocacycommons
html
## Code Before: <html> <head> <title> Stop Trump's Nominees </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div id="header-container"> <div id="header"> <span class="header-item">A project of Advocacy Commons</span> </div> ...
d4f9fcf40f244ec735fa9a9ca08296eb8c611f9d
HOWTO.md
HOWTO.md
How-to ====== This guide is designed to familiarise you with the configuration and running of the IRC AS and provide a more thorough look at some of the features of this AS. Installing ---------- Configuring ----------- Registering ----------- Features -------- Contributing ------------
HOW-TO ====== This guide is designed to familiarise you with the configuration and running of this IRC Application Service (AS) and provide a more thorough look at some of the features of this AS. Installing ---------- If you haven't already, check out the ``README`` for [Quick Start](README.md#quick-start) instructi...
Add intro blurb and section headings
Add intro blurb and section headings
Markdown
apache-2.0
matrix-org/matrix-appservice-irc,martindale/matrix-appservice-irc,matrix-org/matrix-appservice-irc,matrix-org/matrix-appservice-irc
markdown
## Code Before: How-to ====== This guide is designed to familiarise you with the configuration and running of the IRC AS and provide a more thorough look at some of the features of this AS. Installing ---------- Configuring ----------- Registering ----------- Features -------- Contributing ------------ ## Instruc...
70ac1618d72aabeb0d46498d70a25979ee174fa2
inits/10_buffer.el
inits/10_buffer.el
;; See www.emacswiki.org/emacs/RevertBuffer for more details. ;; revert-buffer without any confirmation (defun reload-buffer () "Revert buffer without confirmation." (interactive) (revert-buffer t t) ) ;; Revert buffers when files are changed (global-auto-revert-mode) (setq inhibit-startup-message t) (column...
;; See www.emacswiki.org/emacs/RevertBuffer for more details. ;; revert-buffer without any confirmation (defun reload-buffer () "Revert buffer without confirmation." (interactive) (revert-buffer t t) ) ;; Revert buffers when files are changed (global-auto-revert-mode) (setq inhibit-startup-message t) (column...
Use spaces instead of tabs for default modes.
Use spaces instead of tabs for default modes.
Emacs Lisp
mit
at-ishikawa/dotfiles,at-ishikawa/dotfiles
emacs-lisp
## Code Before: ;; See www.emacswiki.org/emacs/RevertBuffer for more details. ;; revert-buffer without any confirmation (defun reload-buffer () "Revert buffer without confirmation." (interactive) (revert-buffer t t) ) ;; Revert buffers when files are changed (global-auto-revert-mode) (setq inhibit-startup-mes...
8e564338041894d962902c5a6477aa18b7644ab5
.github/workflows/create_search_index.yml
.github/workflows/create_search_index.yml
name: Create search index on: push: branches: - master jobs: jekyll: runs-on: ubuntu-latest environment: jekyll steps: - uses: actions/checkout@v2 with: fetch-depth: 2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 working-directo...
name: Create search index on: push: branches: - master jobs: jekyll: runs-on: ubuntu-latest environment: jekyll steps: - uses: actions/checkout@v2 with: fetch-depth: 2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 working-directo...
Add deployment to GitHub Pages
Add deployment to GitHub Pages
YAML
apache-2.0
JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp,JohnSnowLabs/spark-nlp
yaml
## Code Before: name: Create search index on: push: branches: - master jobs: jekyll: runs-on: ubuntu-latest environment: jekyll steps: - uses: actions/checkout@v2 with: fetch-depth: 2 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.7 ...
649b407bb8d0068010762cc4858fb236e6ef3b2d
lib/path.js
lib/path.js
var path = require('path') var p = {} Object.keys(path).forEach(function (key) { p[key] = path[key] }) path = p path.replaceExt = require('replace-ext') path.normalizeTrim = function (str) { var escapeRegexp = require('escape-string-regexp') return path.normalize(str).replace(new RegExp(escapeRegexp(path.sep...
var path = require('path') var p = {} Object.keys(path).forEach(function (key) { p[key] = path[key] }) path = p path.replaceExt = require('replace-ext') path.normalizeTrim = function (str) { var escapeRegexp = require('escape-string-regexp') return path.normalize(str).replace(new RegExp(escapeRegexp(path.sep...
Add second argument checking to prevent unexpected behavior.
Add second argument checking to prevent unexpected behavior.
JavaScript
mit
jprichardson/node-path-extra
javascript
## Code Before: var path = require('path') var p = {} Object.keys(path).forEach(function (key) { p[key] = path[key] }) path = p path.replaceExt = require('replace-ext') path.normalizeTrim = function (str) { var escapeRegexp = require('escape-string-regexp') return path.normalize(str).replace(new RegExp(escap...
88466eb10781ab0c09e330e71f99143c0cd33cf9
GLExtendedWebView/ViewController.swift
GLExtendedWebView/ViewController.swift
// // ViewController.swift // GLExtendedWebView // // Created by Giulio Lombardo on 08/08/17. // Copyright © 2017 Giulio Lombardo. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view,...
// // ViewController.swift // GLExtendedWebView // // Created by Giulio Lombardo on 08/08/17. // Copyright © 2017 Giulio Lombardo. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var webView: GLExtendedWebView! override func viewDidLoad() { super.viewDidLoad() ...
Add an GLExtendedWebView IBOutlet and load the Apple website on it
Add an GLExtendedWebView IBOutlet and load the Apple website on it
Swift
mit
giulio92/GLExtendedWebView
swift
## Code Before: // // ViewController.swift // GLExtendedWebView // // Created by Giulio Lombardo on 08/08/17. // Copyright © 2017 Giulio Lombardo. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after l...
fa9006768698ad2794fa24890d5c89ce78fadfd6
lib/rgot.rb
lib/rgot.rb
module Rgot autoload :VERSION, 'rgot/version' autoload :Common, 'rgot/common' autoload :M, 'rgot/m' autoload :T, 'rgot/t' autoload :B, 'rgot/b' class OptionError < StandardError end class InternalTest < Struct.new(:module, :name) end class InternalBenchmark < Struct.new(:module, :name) end c...
module Rgot require 'rgot/version' require 'rgot/common' require 'rgot/m' require 'rgot/t' require 'rgot/b' class OptionError < StandardError end class InternalTest < Struct.new(:module, :name) end class InternalBenchmark < Struct.new(:module, :name) end class << self if "2.0.0" < RUBY_V...
Use require instead of autoload
Use require instead of autoload
Ruby
mit
ksss/rgot
ruby
## Code Before: module Rgot autoload :VERSION, 'rgot/version' autoload :Common, 'rgot/common' autoload :M, 'rgot/m' autoload :T, 'rgot/t' autoload :B, 'rgot/b' class OptionError < StandardError end class InternalTest < Struct.new(:module, :name) end class InternalBenchmark < Struct.new(:module, :...
a2b6ee375d9c6061695a10c2fc4f0e0028d741cc
composer.json
composer.json
{ "require": { "silex/silex": "dev-master", "vrana/notorm": "dev-master", "querypath/querypath": ">=3.0.0", "monolog/monolog": ">=1.3.0" } }
{ "require": { "silex/silex": "dev-master", "vrana/notorm": "dev-master", "querypath/querypath": ">=3.0.0", "monolog/monolog": ">=1.3.0" } , "autoload": { "psr-0": { "CTV": "app/" } } }
Package our stuff in its own nsamespace.
Package our stuff in its own nsamespace.
JSON
epl-1.0
bluehaoran/lightsaber_cms
json
## Code Before: { "require": { "silex/silex": "dev-master", "vrana/notorm": "dev-master", "querypath/querypath": ">=3.0.0", "monolog/monolog": ">=1.3.0" } } ## Instruction: Package our stuff in its own nsamespace. ## Code After: { "require": { "silex/silex": "dev-master", "vrana/notorm": "dev-master",...
580b2a973de7fdf9bfcbbce2feeccd1388996268
.scripts/push-to-npm.yaml
.scripts/push-to-npm.yaml
trigger: - master pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '12.x' displayName: 'Install Node.js' - script: | # ensure latest npm is installed npm install -g npm npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token) # grab the file sp...
trigger: - master pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '12.x' displayName: 'Install Node.js' - script: | # ensure latest npm is installed npm install -g npm npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token) # grab the file sp...
Use 'tag' parameter for NPM publishing pipeline
Use 'tag' parameter for NPM publishing pipeline
YAML
mit
Azure/autorest,jhendrixMSFT/autorest,Azure/autorest,Azure/autorest,Azure/autorest,jhendrixMSFT/autorest,jhendrixMSFT/autorest,jhendrixMSFT/autorest
yaml
## Code Before: trigger: - master pool: vmImage: 'ubuntu-latest' steps: - task: NodeTool@0 inputs: versionSpec: '12.x' displayName: 'Install Node.js' - script: | # ensure latest npm is installed npm install -g npm npm config set //registry.npmjs.org/:_authToken=$(azure-sdk-npm-token) # ...
4ca9dc6c82b3cd50cb343a5dd7088e78679d4e9f
lib/css-parser.js
lib/css-parser.js
var embeddedRegexp = /data:(.*?);base64,/; var commentRegexp = /\/\*([\s\S]*?)\*\//g; var urlsRegexp = /((?:@import\s+)?url\s*\(['"]?)(\S*?)(['"]?\s*\))|(@import\s+['"]?)([^;'"]+)/ig; function isEmbedded (src) { return embeddedRegexp.test(src); } function getUrls (text) { var urls = []; var urlMatch, url, isEmbedd...
var embeddedRegexp = /data:(.*?);base64,/; var commentRegexp = /\/\*([\s\S]*?)\*\//g; var urlsRegexp = /((?:@import\s+)?url\s*\(['"]?)(\S*?)(['"]?\s*\))|(@import\s+['"]?)([^;'"]+)/ig; function isEmbedded (src) { return embeddedRegexp.test(src); } function getUrls (text) { var urls = []; var urlMatch, url; text =...
Check isEmbedded and isDuplicate only when needed
Check isEmbedded and isDuplicate only when needed
JavaScript
mit
s0ph1e/node-css-url-parser
javascript
## Code Before: var embeddedRegexp = /data:(.*?);base64,/; var commentRegexp = /\/\*([\s\S]*?)\*\//g; var urlsRegexp = /((?:@import\s+)?url\s*\(['"]?)(\S*?)(['"]?\s*\))|(@import\s+['"]?)([^;'"]+)/ig; function isEmbedded (src) { return embeddedRegexp.test(src); } function getUrls (text) { var urls = []; var urlMatc...
981df50bd81eb5065325ff99af19258fe3efd926
docs/customization.md
docs/customization.md
The template used for the SwaggerUIRenderer can be customized by overriding `rest_framework_swagger/index.html`. Here are a few basic areas which can be customized: - `{% block extra_styles %}` Add additional stylsheets - `{% block extra_scripts %}` Add additional scripts. - `{% block user_context_message %}` Customi...
The template used for the SwaggerUIRenderer can be customized by overriding `rest_framework_swagger/index.html`. Here are a few basic areas which can be customized: - `{% block extra_styles %}` Add additional stylsheets - `{% block extra_scripts %}` Add additional scripts. - `{% block user_context_message %}` Customi...
Add title to version example
Add title to version example
Markdown
bsd-2-clause
pombredanne/django-rest-swagger,marcgibbons/django-rest-swagger,marcgibbons/django-rest-swagger,marcgibbons/django-rest-swagger,pombredanne/django-rest-swagger,pombredanne/django-rest-swagger,pombredanne/django-rest-swagger,marcgibbons/django-rest-swagger
markdown
## Code Before: The template used for the SwaggerUIRenderer can be customized by overriding `rest_framework_swagger/index.html`. Here are a few basic areas which can be customized: - `{% block extra_styles %}` Add additional stylsheets - `{% block extra_scripts %}` Add additional scripts. - `{% block user_context_mes...
4bdb317e1075aee5735f2939f47f09eb32dab379
org.eclipse.xtext/src/org/eclipse/xtext/mwe/EquinoxClasspathEntriesProvider.java
org.eclipse.xtext/src/org/eclipse/xtext/mwe/EquinoxClasspathEntriesProvider.java
/******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distr...
/******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distr...
Return empty list instead of null
Return empty list instead of null Signed-off-by: Karsten Thoms <dec0ef9b050f1aa68d12b8ac7c21dd1e6ea132c8@itemis.de>
Java
epl-1.0
miklossy/xtext-core,miklossy/xtext-core
java
## Code Before: /******************************************************************************* * Copyright (c) 2010 itemis AG (http://www.itemis.eu) and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accomp...
f18b34e83ab6a9355685f796ae36e5ac2ab10cb7
test_scripts/API/Expand_PutFile/commonPutFile.lua
test_scripts/API/Expand_PutFile/commonPutFile.lua
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/actions") --[[ Gene...
--------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/actions") local util...
Replace external crc32 utility by internal one
Replace external crc32 utility by internal one
Lua
bsd-3-clause
smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts,smartdevicelink/sdl_atf_test_scripts
lua
## Code Before: --------------------------------------------------------------------------------------------------- -- Common module --------------------------------------------------------------------------------------------------- --[[ Required Shared libraries ]] local actions = require("user_modules/sequences/acti...
e343ef7a3cc8fbb12db6f9ff9298ca7eecbe7f46
.codeclimate.yml
.codeclimate.yml
version: "2" plugins: rubocop: enabled: true checks: method-lines: enabled: true config: threshold: 40 exclude_patterns: - "test/"
version: "2" plugins: rubocop: enabled: true checks: method-lines: enabled: true config: threshold: 40 method-complexity: config: threshold: 40 exclude_patterns: - "test/"
Raise method complexity check threshold
Raise method complexity check threshold
YAML
mit
corenzan/scopable,haggen/scopable
yaml
## Code Before: version: "2" plugins: rubocop: enabled: true checks: method-lines: enabled: true config: threshold: 40 exclude_patterns: - "test/" ## Instruction: Raise method complexity check threshold ## Code After: version: "2" plugins: rubocop: enabled: true checks: method-lines: ...
2888b30bc6129c9681120740010ea25a25b3e5fd
lib/entity-pool.js
lib/entity-pool.js
"use strict"; function EntityPool() { this.nextId = 0; this.entities = {}; } EntityPool.prototype.add = function() { var id = this.nextId; this.nextId++; var entity = { id: id }; this.entities[id] = entity; return entity; }; EntityPool.prototype.save = function() { var entities = objectValues(this.entities); ...
"use strict"; function EntityPool() { this.nextId = 0; this.entities = {}; } EntityPool.prototype.add = function() { var id = this.nextId; this.nextId++; var entity = { id: id }; this.entities[id] = entity; return entity; }; EntityPool.prototype.save = function() { return objectValues(this.entities); }; Entity...
Change EntityPool to not jsonify save/load data.
Change EntityPool to not jsonify save/load data.
JavaScript
mit
SplatJS/splat-ecs
javascript
## Code Before: "use strict"; function EntityPool() { this.nextId = 0; this.entities = {}; } EntityPool.prototype.add = function() { var id = this.nextId; this.nextId++; var entity = { id: id }; this.entities[id] = entity; return entity; }; EntityPool.prototype.save = function() { var entities = objectValues(t...
0e854b660501e3bcdf01071392b9ab0ec8b9a5f0
src/components/Iframe/index.js
src/components/Iframe/index.js
import React, {PropTypes} from 'react' import injectSheet from '../../utils/jss' function Iframe({src, sheet: {classes}}) { return <iframe src={src} className={classes.iframe} /> } Iframe.propTypes = { src: PropTypes.string.isRequired, sheet: PropTypes.object.isRequired } const styles = { iframe: { width...
import React, {PropTypes} from 'react' import injectSheet from '../../utils/jss' function Iframe({src, sheet: {classes}}) { return <iframe src={src} className={classes.iframe} /> } Iframe.propTypes = { src: PropTypes.string.isRequired, sheet: PropTypes.object.isRequired } const styles = { iframe: { width...
Fix iframe height after migration to vh
Fix iframe height after migration to vh
JavaScript
mit
cssinjs/cssinjs
javascript
## Code Before: import React, {PropTypes} from 'react' import injectSheet from '../../utils/jss' function Iframe({src, sheet: {classes}}) { return <iframe src={src} className={classes.iframe} /> } Iframe.propTypes = { src: PropTypes.string.isRequired, sheet: PropTypes.object.isRequired } const styles = { ifr...
1d663f89d06da46ecdbd5677a3a87c2a9f2e51ca
centreon/features/Ldap.feature
centreon/features/Ldap.feature
Feature: Proxy usage As a Centreon IMP client I want to use a proxy on my platform To access internet Background: Given I am logged in a Centreon server with a configured ldap Scenario: IMP Proxy usage And a ldap user has been imported When I am on the ldap contact page wi...
Feature: LDAP As a company administrator I want my users to access Centreon using LDAP credentials So that I can easily manage the credentials Background: Given I am logged in a Centreon server with a configured ldap Scenario: User cannot change DN Given a ldap user has been impor...
Update LDAP acceptance tests wording.
Update LDAP acceptance tests wording.
Cucumber
apache-2.0
centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon
cucumber
## Code Before: Feature: Proxy usage As a Centreon IMP client I want to use a proxy on my platform To access internet Background: Given I am logged in a Centreon server with a configured ldap Scenario: IMP Proxy usage And a ldap user has been imported When I am on the ldap...
a628cc92e87d2e2a197fe069f29a4ce351efca16
installer/map-dotfiles.sh
installer/map-dotfiles.sh
__error='' __error_code=0 ## Create symlinks to all dotfiles defined here under home directory echo "Creating symlinks to git installed dotfiles..." find ${PWD}/dotfiles \ -maxdepth 1 -mindepth 1 \ ! \( \ -name .git -o \ -name README.md -o \ -name setup.sh -o \ -name .DS_Store \) \ -exec l...
__error='' __error_code=0 # Current implementation only assumes one possible argument of -f exec_command='ln -s' if [ ! -z $1 ] && [ $1 == '-f' ]; then exec_command='ln -sf' fi ## Create symlinks to all dotfiles defined here under home directory echo "Creating symlinks to git installed dotfiles..." find ${PWD}/dotfi...
Add force option to update symlinks
Add force option to update symlinks
Shell
mit
rytswd/Homerecipe,rytswd/Homerecipe
shell
## Code Before: __error='' __error_code=0 ## Create symlinks to all dotfiles defined here under home directory echo "Creating symlinks to git installed dotfiles..." find ${PWD}/dotfiles \ -maxdepth 1 -mindepth 1 \ ! \( \ -name .git -o \ -name README.md -o \ -name setup.sh -o \ -name .DS_Store ...
259e196bb08d61c1e78b0666eca79aaa5f8f60e5
src/test/java/com/github/ansell/csvsum/CSVSummariserTest.java
src/test/java/com/github/ansell/csvsum/CSVSummariserTest.java
/** * */ package com.github.ansell.csvsum; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import joptsimple.OptionException; /** * Tests for {@link CSVSummariser}. * * @author Peter Ans...
/** * */ package com.github.ansell.csvsum; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import joptsimple.OptionException; /** * Tests for {@link CSVSummariser}. * * @author Peter Ans...
Add test for CSVSummariser help
Add test for CSVSummariser help
Java
bsd-2-clause
ansell/csvsum,ansell/csvsum
java
## Code Before: /** * */ package com.github.ansell.csvsum; import static org.junit.Assert.*; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import joptsimple.OptionException; /** * Tests for {@link CSVSummariser}. * * @...
b7cdee8d0f461eb4013fb7cfe7a98f7cc66a63fe
benches/generate.rs
benches/generate.rs
extern crate identicon; extern crate md_5 as md5; extern crate test; use md5::{Digest, Md5}; use test::Bencher; use identicon::Identicon; #[bench] fn generate(x: &mut Bencher) { let input = "42".as_bytes(); let bytes = Md5::digest(input); let identicon = Identicon::new(bytes.as_slice()); x.iter(|| i...
extern crate identicon; extern crate md_5 as md5; extern crate test; use md5::{Digest, Md5}; use test::Bencher; use identicon::Identicon; #[bench] fn generate(x: &mut Bencher) { let input = "42".as_bytes(); let bytes = Md5::digest(input); let identicon = Identicon::new(&bytes); x.iter(|| identicon.i...
Use deref coercion to borrow byte slice
Use deref coercion to borrow byte slice
Rust
mit
dgraham/identicon
rust
## Code Before: extern crate identicon; extern crate md_5 as md5; extern crate test; use md5::{Digest, Md5}; use test::Bencher; use identicon::Identicon; #[bench] fn generate(x: &mut Bencher) { let input = "42".as_bytes(); let bytes = Md5::digest(input); let identicon = Identicon::new(bytes.as_slice());...
741ed63414d369e3bf5cae95affbc5f061600aea
src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js
src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js
export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 1.0 ? log2( vFragDepth ) * logDepthBufFC * 0.5 : gl_FragCoord.z; #endif `;
export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) // Doing a strict comparison with == 1.0 can cause noise artifacts // on some platforms. See issue #17623. gl_FragDepthEXT = vIsPerspective > 0.5 ? log2( vFragDepth ) * logDepthBufFC * 0.5 : gl_FragCoord.z; #endif `;
Use loose comparison for detecting perspective matrix in fragment shader
Use loose comparison for detecting perspective matrix in fragment shader
JavaScript
mit
looeee/three.js,fraguada/three.js,QingchaoHu/three.js,greggman/three.js,SpinVR/three.js,makc/three.js.fork,Samsy/three.js,greggman/three.js,zhoushijie163/three.js,stanford-gfx/three.js,gero3/three.js,jpweeks/three.js,Samsy/three.js,Liuer/three.js,looeee/three.js,TristanVALCKE/three.js,donmccurdy/three.js,QingchaoHu/thr...
javascript
## Code Before: export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT ) gl_FragDepthEXT = vIsPerspective == 1.0 ? log2( vFragDepth ) * logDepthBufFC * 0.5 : gl_FragCoord.z; #endif `; ## Instruction: Use loose comparison for detecting perspective matrix in fragment shader ## Code...
4613f4e1b505208f2989dbbab05be20ba296f353
src/UDB2/EntryAPIFactory.php
src/UDB2/EntryAPIFactory.php
<?php /** * @file */ namespace CultuurNet\UDB3\UDB2; use CultuurNet\Auth\TokenCredentials; final class EntryAPIFactory { /** * @var Consumer */ private $consumer; /** * @param Consumer $consumer */ public function __construct( Consumer $consumer ) { $thi...
<?php /** * @file */ namespace CultuurNet\UDB3\UDB2; use CultuurNet\Auth\TokenCredentials; final class EntryAPIFactory { /** * @var Consumer */ private $consumer; /** * @param Consumer $consumer */ public function __construct( Consumer $consumer ) { $thi...
Remove path again, should be injected
Remove path again, should be injected
PHP
apache-2.0
cultuurnet/udb3-php
php
## Code Before: <?php /** * @file */ namespace CultuurNet\UDB3\UDB2; use CultuurNet\Auth\TokenCredentials; final class EntryAPIFactory { /** * @var Consumer */ private $consumer; /** * @param Consumer $consumer */ public function __construct( Consumer $consumer ) ...
b8bf63588ebffe74aa8ad6a0fc96fed57eb79787
.travis.yml
.travis.yml
script: bundle exec ruby test/aes_key_wrap.rb language: ruby # test on old rubies rvm: - 2.5.8 - 2.6.6 # run latest ruby differently (run codeclimate) matrix: include: - rvm: 2.7.1 # code climate config env: CC_TEST_REPORTER_ID=112d90dacd3bbf36bbf39282309a52581175ae544be2cf8ef3b8c0c0221515f5 befor...
script: bundle exec bench test/automated/ language: ruby # test on old rubies rvm: - 2.5.8 - 2.6.6 # run latest ruby differently (run codeclimate) matrix: include: - rvm: 2.7.1 # code climate config env: CC_TEST_REPORTER_ID=112d90dacd3bbf36bbf39282309a52581175ae544be2cf8ef3b8c0c0221515f5 before_sc...
Update CI to run tests again
Update CI to run tests again This is after restructuring the test file to be in a more conventional location.
YAML
mit
tomdalling/aes_key_wrap,tomdalling/aes_key_wrap
yaml
## Code Before: script: bundle exec ruby test/aes_key_wrap.rb language: ruby # test on old rubies rvm: - 2.5.8 - 2.6.6 # run latest ruby differently (run codeclimate) matrix: include: - rvm: 2.7.1 # code climate config env: CC_TEST_REPORTER_ID=112d90dacd3bbf36bbf39282309a52581175ae544be2cf8ef3b8c0c022...
674826aeab8fa0016eed829110740f9a93247b58
fedora/manager/manager.py
fedora/manager/manager.py
from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(ve...
from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator = URLValidator(...
Change concatination of parsed data
Change concatination of parsed data
Python
mit
sitdh/fedora-parser
python
## Code Before: from django.core.validators import URLValidator from django.core.exceptions import ValidationError import inspect import requests, json class FedoraConnectionManager: __oerUri = '' __parserTemplates = set() def __init__(self, uri, templates=[], auto_retrieved=True): validator =...
d16373609b2f30c6ffa576c1269c529f12c9622c
backend/uclapi/timetable/urls.py
backend/uclapi/timetable/urls.py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^personal_fast$', views.get_personal_timetable_fast), url(r'^personal$', views.get_personal_timetable), url(r'^bymodule$', views.get_modules_timetable), ]
from django.conf.urls import url from . import views urlpatterns = [ url(r'^personal$', views.get_personal_timetable_fast), url(r'^bymodule$', views.get_modules_timetable), ]
Switch to fast method for personal timetable
Switch to fast method for personal timetable
Python
mit
uclapi/uclapi,uclapi/uclapi,uclapi/uclapi,uclapi/uclapi
python
## Code Before: from django.conf.urls import url from . import views urlpatterns = [ url(r'^personal_fast$', views.get_personal_timetable_fast), url(r'^personal$', views.get_personal_timetable), url(r'^bymodule$', views.get_modules_timetable), ] ## Instruction: Switch to fast method for personal timetabl...
b748ab029c9c788c31b6e0013236ef5cb813d05a
src/js/components/SectionComponent.jsx
src/js/components/SectionComponent.jsx
import React from "react/addons"; import Util from "../helpers/Util"; var SectionComponent = React.createClass({ "displayName": "SectionComponent", propTypes: { active: React.PropTypes.bool, children: React.PropTypes.node, id: React.PropTypes.string.isRequired, onActive: React.PropTypes.func }, ...
import React from "react/addons"; import Util from "../helpers/Util"; var SectionComponent = React.createClass({ "displayName": "SectionComponent", propTypes: { active: React.PropTypes.bool, children: React.PropTypes.node, id: React.PropTypes.string.isRequired, onActive: React.PropTypes.func }, ...
Fix section component callback handling
Fix section component callback handling Adjust the handling to only trigger section `onActive` callbacks on active state changes.
JSX
apache-2.0
mesosphere/marathon-ui,mesosphere/marathon-ui,cribalik/marathon-ui,cribalik/marathon-ui
jsx
## Code Before: import React from "react/addons"; import Util from "../helpers/Util"; var SectionComponent = React.createClass({ "displayName": "SectionComponent", propTypes: { active: React.PropTypes.bool, children: React.PropTypes.node, id: React.PropTypes.string.isRequired, onActive: React.Prop...
3441df011233cecd0ba5d2fd8b24a5d75925df0f
utils/llvm-locstats/CMakeLists.txt
utils/llvm-locstats/CMakeLists.txt
if (LLVM_BUILD_UTILS AND LLVM_BUILD_TOOLS) add_custom_target(llvm-locstats ALL COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR}" ) set_target_properties(llvm-loc...
if (LLVM_BUILD_UTILS AND LLVM_BUILD_TOOLS) add_custom_command( OUTPUT ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats DEPENDS ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats ...
Copy the script only when needed; NFC
[llvm-locstats] Copy the script only when needed; NFC git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@373596 91177308-0d34-0410-b5e6-96231b3b80d8
Text
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm
text
## Code Before: if (LLVM_BUILD_UTILS AND LLVM_BUILD_TOOLS) add_custom_target(llvm-locstats ALL COMMAND ${CMAKE_COMMAND} -E copy ${LLVM_MAIN_SRC_DIR}/utils/llvm-locstats/llvm-locstats.py ${LLVM_TOOLS_BINARY_DIR}/llvm-locstats COMMENT "Copying llvm-locstats into ${LLVM_TOOLS_BINARY_DIR}" ) set_target_pro...
c8d123e3eb0ca7ae82f952b52dbcf4bf835e309a
server/getreel.js
server/getreel.js
Jobs = new Mongo.Collection('jobs'); //both on client and server Applications = new Mongo.Collection('applications'); // added repoz channel Meteor.startup(function() { // console.log('Jobs.remove({})'); // Jobs.remove({}); if(Jobs.find({}).count()==0) { console.log("job count == ", Jobs.find({})....
Jobs = new Mongo.Collection('jobs'); //both on client and server Applications = new Mongo.Collection('applications'); // added repoz channel Meteor.startup(function() { // console.log('Jobs.remove({})'); // Jobs.remove({}); if (Jobs.find({}).count() == 0) { console.log('job count == ', Jobs.find({}).count()...
Apply jscs to server code
Apply jscs to server code Atom's jscs-fixer automatically fixed some problems: now all lines have a tab indentation and statements are well spaced. Google's preset also converts all double quotes into single quotes unless it's pure JSON.
JavaScript
apache-2.0
IngloriousCoderz/GetReel,IngloriousCoderz/GetReel
javascript
## Code Before: Jobs = new Mongo.Collection('jobs'); //both on client and server Applications = new Mongo.Collection('applications'); // added repoz channel Meteor.startup(function() { // console.log('Jobs.remove({})'); // Jobs.remove({}); if(Jobs.find({}).count()==0) { console.log("job count == "...
7cd4ddc3383b04d68d0e00bc9115ba266733f81e
packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp
packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_set_restart/main.cpp
//===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Fix breakpoint_set_restart test for Windows
Fix breakpoint_set_restart test for Windows When run with the multiprocess test runner, the getchar() trick doesn't work, so ninja check-lldb would fail on this test, but running the test directly worked fine. Differential Revision: http://reviews.llvm.org/D19035 git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@...
C++
apache-2.0
apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb
c++
## Code Before: //===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------...
38c33a772532f33751dbbebe3ee0ecd0ad993616
alembic/versions/1fbbb727e1dc_change_last_ip_to_inet.py
alembic/versions/1fbbb727e1dc_change_last_ip_to_inet.py
# revision identifiers, used by Alembic. revision = '1fbbb727e1dc' down_revision = '2dd8b091742b' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.execute(u'alter table users alter column last_...
# revision identifiers, used by Alembic. revision = '1fbbb727e1dc' down_revision = '2dd8b091742b' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): # Default needs to be dropped because the old default of an empty string cannot be casted to an IP. op.execut...
Fix migrations from text to inet.
Fix migrations from text to inet.
Python
agpl-3.0
MSPARP/newparp,MSPARP/newparp,MSPARP/newparp
python
## Code Before: # revision identifiers, used by Alembic. revision = '1fbbb727e1dc' down_revision = '2dd8b091742b' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.execute(u'alter table users al...
284061d1c2fd30911601022beae181075c60e585
app/controllers/publications_controller.rb
app/controllers/publications_controller.rb
class PublicationsController < InheritedResources::Base def show edition = Edition.find_or_create_from_panopticon_data(params[:id], current_user) if edition.persisted? UpdateWorker.perform_async(edition.id.to_s) redirect_with_return_to(edition) return else render_new_form(edition)...
class PublicationsController < InheritedResources::Base def show edition = Edition.find_or_create_from_panopticon_data(params[:id], current_user) if edition.persisted? UpdateWorker.perform_async(edition.id.to_s) redirect_with_return_to(edition) else render_new_form(edition) end en...
Remove some redundant return statements
Remove some redundant return statements
Ruby
mit
alphagov/publisher,alphagov/publisher,alphagov/publisher
ruby
## Code Before: class PublicationsController < InheritedResources::Base def show edition = Edition.find_or_create_from_panopticon_data(params[:id], current_user) if edition.persisted? UpdateWorker.perform_async(edition.id.to_s) redirect_with_return_to(edition) return else render_n...
43b46f1e3ded3972dede7226cf0255b904d028bd
django/notejam/pads/tests.py
django/notejam/pads/tests.py
from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 always equals 2. """ self.assertEqual(1 + 1, 2)
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase class PadTest(TestCase): def setUp(self): user_data = { 'email': 'user@example.com', 'password': 'secure_password' } user = User.objects.create(...
Test improvementes. Empty Pad test class added.
Django: Test improvementes. Empty Pad test class added.
Python
mit
hstaugaard/notejam,nadavge/notejam,lefloh/notejam,lefloh/notejam,williamn/notejam,hstaugaard/notejam,nadavge/notejam,williamn/notejam,hstaugaard/notejam,hstaugaard/notejam,lefloh/notejam,lefloh/notejam,williamn/notejam,nadavge/notejam,lefloh/notejam,hstaugaard/notejam,williamn/notejam,shikhardb/notejam,williamn/notejam...
python
## Code Before: from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 always equals 2. """ self.assertEqual(1 + 1, 2) ## Instruction: Django: Test improvementes. Empty Pad test class added. ## Code After: from django.con...
2113cc7530ac5a2b4e5d6caa7f8c3b5a2516ecde
.travis.yml
.travis.yml
sudo: false dist: trusty language: java # https://github.com/travis-ci/travis-ci/issues/8408 before_install: - unset _JAVA_OPTIONS matrix: include: - env: CURLED='install-jdk.sh' install: curl -s https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh | . bash /dev/stdin -F 11 -L GPL -...
sudo: false dist: trusty language: java # https://github.com/travis-ci/travis-ci/issues/8408 before_install: - unset _JAVA_OPTIONS matrix: include: - env: CURLED='install-jdk.sh' install: wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh && . ./install-jdk.sh -F 9 - env: JDK...
Use wget first, dot-source install script with parameters second
Use wget first, dot-source install script with parameters second
YAML
mit
sormuras/bach,sormuras/bach
yaml
## Code Before: sudo: false dist: trusty language: java # https://github.com/travis-ci/travis-ci/issues/8408 before_install: - unset _JAVA_OPTIONS matrix: include: - env: CURLED='install-jdk.sh' install: curl -s https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh | . bash /dev/stdin -F...
5fc0473a4469cb919b4d706f159fa227b7462eac
packages/un/uniq-deep.yaml
packages/un/uniq-deep.yaml
homepage: https://github.com/ncaq/uniq-deep#readme changelog-type: '' hash: f19092e226d6950761bed7cd3efac5704e17e0df92202a2acd4189dc5b630b1e test-bench-deps: {} maintainer: ncaq@ncaq.net synopsis: uniq-deep changelog: '' basic-deps: bytestring: -any base: ! '>=4.7 && <5' unordered-containers: -any all-versions: -...
homepage: https://github.com/ncaq/uniq-deep#readme changelog-type: '' hash: b0fb089d95127817ac13e526b269ad446bbe9b99f39549cd5abe287c4f7ae481 test-bench-deps: {} maintainer: ncaq@ncaq.net synopsis: uniq-deep changelog: '' basic-deps: bytestring: -any base: '>=4.7 && <5' unordered-containers: -any all-versions: - 1...
Update from Hackage at 2021-07-05T02:35:54Z
Update from Hackage at 2021-07-05T02:35:54Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/ncaq/uniq-deep#readme changelog-type: '' hash: f19092e226d6950761bed7cd3efac5704e17e0df92202a2acd4189dc5b630b1e test-bench-deps: {} maintainer: ncaq@ncaq.net synopsis: uniq-deep changelog: '' basic-deps: bytestring: -any base: ! '>=4.7 && <5' unordered-containers: -any...
3a70e339637285355e594f9bec15481eae631a63
ibmcnx/config/j2ee/RoleBackup.py
ibmcnx/config/j2ee/RoleBackup.py
import sys import os import ibmcnx.functions # Only load commands if not initialized directly (call from menu) if __name__ == "__main__": execfile("ibmcnx/loadCnxApps.py") path = raw_input( "Please provide a path for your backup files: " ) ibmcnx.functions.checkBackupPath( path ) apps = AdminApp.list() appsList...
import sys import os import ibmcnx.functions path = raw_input( "Please provide a path for your backup files: " ) ibmcnx.functions.checkBackupPath( path ) apps = AdminApp.list() appsList = apps.splitlines() for app in appsList: filename = path + "/" + app + ".txt" print "Backup of %(1)s security roles saved t...
Test all scripts on Windows
10: Test all scripts on Windows Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/10
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
python
## Code Before: import sys import os import ibmcnx.functions # Only load commands if not initialized directly (call from menu) if __name__ == "__main__": execfile("ibmcnx/loadCnxApps.py") path = raw_input( "Please provide a path for your backup files: " ) ibmcnx.functions.checkBackupPath( path ) apps = AdminApp...
317b8fa05535cbdb05781efd242d81763b624938
modules/core/client/views/home.client.view.html
modules/core/client/views/home.client.view.html
<section data-ng-controller="HomeController" data-ng-init="homeInit()"> <div class="row"> <div class="col-md-4"> <h2> <strong>N</strong>ext Actions </h2> <ul data-ng-repeat="item in nextActions"> <li data-ng-bind="item.title"></li> </ul> </div> <div class="col-m...
<section data-ng-controller="HomeController" data-ng-init="homeInit()"> <div class="row"> <div class="col-md-4"> <h2> <strong>N</strong>ext Actions </h2> <ul > <li data-ng-repeat="item in nextActions" data-ng-bind="item.title"></li> </ul> </div> <div class="col-...
Set ng-repeat on correct element to get ul displaying nicely
Set ng-repeat on correct element to get ul displaying nicely
HTML
mit
PDKK/KemoSahbee,PDKK/KemoSahbee,PDKK/KemoSahbee
html
## Code Before: <section data-ng-controller="HomeController" data-ng-init="homeInit()"> <div class="row"> <div class="col-md-4"> <h2> <strong>N</strong>ext Actions </h2> <ul data-ng-repeat="item in nextActions"> <li data-ng-bind="item.title"></li> </ul> </div> <...
5e4adf0e4b17ad039bf03cf1892c22186eb1e886
pkgs/development/libraries/ortp/default.nix
pkgs/development/libraries/ortp/default.nix
{stdenv, fetchurl}: stdenv.mkDerivation rec { name = "ortp-0.13.1"; src = fetchurl { url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz"; sha256 = "0k2963v4b15xnf4cpkpgjhsb8ckxpf6vdr8dnw7z3mzilji7391b"; }; meta = { description = "A Real-Time Transport Protocol (RFC3550) stack"; hom...
{stdenv, fetchurl}: stdenv.mkDerivation rec { name = "ortp-0.16.3"; src = fetchurl { url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz"; sha256 = "13805ec34ee818408aa1b4571915ef8f9e544c838a0fca9dff8d2308de6574eb"; }; meta = { description = "A Real-Time Transport Protocol (RFC3550) sta...
Update oRTP (0.13.1 -> 0.16.3)
Update oRTP (0.13.1 -> 0.16.3) svn path=/nixpkgs/trunk/; revision=23595
Nix
mit
NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/ni...
nix
## Code Before: {stdenv, fetchurl}: stdenv.mkDerivation rec { name = "ortp-0.13.1"; src = fetchurl { url = "mirror://savannah/linphone/ortp/sources/${name}.tar.gz"; sha256 = "0k2963v4b15xnf4cpkpgjhsb8ckxpf6vdr8dnw7z3mzilji7391b"; }; meta = { description = "A Real-Time Transport Protocol (RFC3550)...
4b52e2bb3d1236c8c6adb87ab1be772d19fe7852
conf/targets.yml
conf/targets.yml
- machine: quirin image: ams-image-minimal publish: true - machine: quirin image: ams-image-gui-dev publish: true - machine: quirin image: brick-image-dev publish: true - machine: quirin image: esp-image-dev publish: true - machine: quirin image: ams-image-ptest publish: true # raspi 3 with gui - m...
- machine: quirin image: ams-image-minimal publish: wic - machine: quirin image: ams-image-gui-dev publish: wic - machine: quirin image: brick-image-dev publish: wic - machine: quirin image: esp-image-dev publish: wic - machine: quirin image: ams-image-ptest publish: wic # raspi 3 with gui - machin...
Modify publish target by image type
Modify publish target by image type
YAML
mit
pixmeter/plos
yaml
## Code Before: - machine: quirin image: ams-image-minimal publish: true - machine: quirin image: ams-image-gui-dev publish: true - machine: quirin image: brick-image-dev publish: true - machine: quirin image: esp-image-dev publish: true - machine: quirin image: ams-image-ptest publish: true # rasp...
6b3a96978f4c223ae5c147f2322cd991fa69ba3d
app/deprecated.php
app/deprecated.php
<?php /** * Autoloaded file to handle deprecation such as class aliases. */ // Class aliases for BC class_alias('\Bolt\Asset\Target', '\Bolt\Extensions\Snippets\Location'); class_alias('\Bolt\Storage\Field\Base', '\Bolt\Field\Base'); class_alias('\Bolt\Storage\Field\FieldInterface', '\Bolt\Field\FieldInterface'); c...
<?php /** * Autoloaded file to handle deprecation such as class aliases. * * NOTE: * If for any reason arrays are required in this file, only ever use array() * syntax to prevent breakage on PHP < 5.4 and allow the legacy warnings. */ // Class aliases for BC class_alias('\Bolt\Asset\Target', '\Bolt\Extensions\S...
Add note about array syntax
Add note about array syntax
PHP
mit
HonzaMikula/masivnipostele,bolt/bolt,xeddmc/bolt,electrolinux/bolt,HonzaMikula/masivnipostele,Calinou/bolt,cdowdy/bolt,Calinou/bolt,codesman/bolt,joshuan/bolt,Eiskis/bolt-base,winiceo/bolt,Raistlfiren/bolt,richardhinkamp/bolt,kendoctor/bolt,electrolinux/bolt,one988/cm,codesman/bolt,nikgo/bolt,nantunes/bolt,GawainLynch/...
php
## Code Before: <?php /** * Autoloaded file to handle deprecation such as class aliases. */ // Class aliases for BC class_alias('\Bolt\Asset\Target', '\Bolt\Extensions\Snippets\Location'); class_alias('\Bolt\Storage\Field\Base', '\Bolt\Field\Base'); class_alias('\Bolt\Storage\Field\FieldInterface', '\Bolt\Field\Fie...
53f3c4c22ae68f26be0c2c1c9c0be381179ccc70
haskell.yml
haskell.yml
- nam: p6 src: > 1 == 1 exp: > Prelude> True - nam: p6 src: > 2 /= 3 exp: > Prelude> True
- nam: p6 src: | 1 == 1 exp: | Prelude> True - nam: p6 src: | 2 /= 3 exp: | Prelude> True - nam: wojte src: | hello "w" exp: | Prelude> <interactive>:2:1: Not in scope: ‘hello’
Change > to |. Add 1 more sample.
Change > to |. Add 1 more sample.
YAML
bsd-2-clause
wkoszek/haskell_edu
yaml
## Code Before: - nam: p6 src: > 1 == 1 exp: > Prelude> True - nam: p6 src: > 2 /= 3 exp: > Prelude> True ## Instruction: Change > to |. Add 1 more sample. ## Code After: - nam: p6 src: | 1 == 1 exp: | Prelude> True - nam: p6 src: | 2 /= 3...
79bd50fd41d90aafa73e49337432f3ebac828ebe
3rdPartyLibraries/CMakeLists.txt
3rdPartyLibraries/CMakeLists.txt
execute_process( COMMAND git submodule init ) execute_process( COMMAND git submodule update ) if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers ) elseif ( UNIX ) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers -Wno-unused-but-set-variable...
execute_process( COMMAND git submodule init ) execute_process( COMMAND git submodule update ) if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers ) elseif ( UNIX ) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers -Wno-unused-but-set-variable...
Fix assimp compilation on windows
Fix assimp compilation on windows
Text
bsd-3-clause
AGGA-IRIT/Radium-Engine,Zouch/Radium-Engine,Zouch/Radium-Engine,AGGA-IRIT/Radium-Engine
text
## Code Before: execute_process( COMMAND git submodule init ) execute_process( COMMAND git submodule update ) if ((${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers ) elseif ( UNIX ) add_definitions( -fexceptions -frtti -Wno-ignored-qualifiers -Wno-unused-...
2813723f57bc7ae802829e16876d446912a797cc
app/views/world_locations/_world_location.html.erb
app/views/world_locations/_world_location.html.erb
<% options ||= {} %> <%= content_tag_for(:li, world_location, options) do %> <% if world_location.active? %> <%= link_to world_location.name, world_location_path(world_location), class: 'location-link' %> <% else %> <span class="location-link"><%= world_location.name %></span> <% end %> <% end %>
<% options ||= {} %> <%= content_tag_for(:li, world_location, options) do %> <% if world_location.active? %> <%= link_to world_location.name, world_location_path(world_location), class: 'location-link govuk-link' %> <% else %> <span class="location-link"><%= world_location.name %></span> <% end %> <% end ...
Add govuk-link class to World Locations page
Add govuk-link class to World Locations page
HTML+ERB
mit
alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall
html+erb
## Code Before: <% options ||= {} %> <%= content_tag_for(:li, world_location, options) do %> <% if world_location.active? %> <%= link_to world_location.name, world_location_path(world_location), class: 'location-link' %> <% else %> <span class="location-link"><%= world_location.name %></span> <% end %> <%...
aada7734f85d842ee8a745e9fd200007d1745701
src/Graphics/Urho3D/Math/Internal/Rect.hs
src/Graphics/Urho3D/Math/Internal/Rect.hs
module Graphics.Urho3D.Math.Internal.Rect( Rect(..) , IntRect(..) , rectCntx , HasMinPoint(..) , HasMaxPoint(..) , HasLeft(..) , HasTop(..) , HasRight(..) , HasBottom(..) ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Context as C import qualified Language.C.Ty...
module Graphics.Urho3D.Math.Internal.Rect( Rect(..) , IntRect(..) , rectCntx , HasMinPoint(..) , HasMaxPoint(..) , HasLeft(..) , HasTop(..) , HasRight(..) , HasBottom(..) ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Context as C import qualified Language.C.Ty...
Add ord instance to rects
Add ord instance to rects
Haskell
mit
Teaspot-Studio/Urho3D-Haskell,Teaspot-Studio/Urho3D-Haskell,Teaspot-Studio/Urho3D-Haskell
haskell
## Code Before: module Graphics.Urho3D.Math.Internal.Rect( Rect(..) , IntRect(..) , rectCntx , HasMinPoint(..) , HasMaxPoint(..) , HasLeft(..) , HasTop(..) , HasRight(..) , HasBottom(..) ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Context as C import qualifi...
b6a9a6d00d8f4254a110467388274281423d00d6
lib/eman/name_generator.rb
lib/eman/name_generator.rb
module Eman class NameGenerator attr_accessor :resource, :verb attr_reader :type def initialize(type) @type = type @resource = '' @verb = '' end def run ask_resource ask_verb if type == 'Service' print_name end private def ask_resource ...
module Eman class NameGenerator attr_accessor :resource, :verb, :name attr_reader :type def initialize(type) @type = type @resource = '' @verb = '' @name = '' end def run ask_resource ask_verb if type == 'Service' generate_name print_name end ...
Break down a method into smaller ones
Break down a method into smaller ones
Ruby
mit
sungwoncho/eman
ruby
## Code Before: module Eman class NameGenerator attr_accessor :resource, :verb attr_reader :type def initialize(type) @type = type @resource = '' @verb = '' end def run ask_resource ask_verb if type == 'Service' print_name end private def ask_...
1454951f4fcb1161f7d8b649de13943f6dbd1d02
tests/test-files/good/AllSyntax.elm
tests/test-files/good/AllSyntax.elm
module AllSyntax where import String import Signal exposing (foldp, map) import Json.Decode as Json import List exposing (..) fn = "XYZZY" annotatedFn : String annotatedFn = "XYZZY" inlinePipeline = 1 |> (+) 2 tuple = (1, 2) commentedLiterals = ({- int -} 1, {- float -} 0.1, {- char -} 'c...
module AllSyntax where import String import Signal exposing (foldp, map) import Json.Decode as Json import List exposing (..) fn = "XYZZY" annotatedFn : String annotatedFn = "XYZZY" inlinePipeline = 1 |> (+) 2 tuple = (1, 2) commentedLiterals = ({- int -} 1, {- float -} 0.1, {- char -} 'c...
Add test for infix operators
Add test for infix operators
Elm
bsd-3-clause
nukisman/elm-format-short,fredcy/elm-format,avh4/elm-format,avh4/elm-format,fredcy/elm-format,nukisman/elm-format-short,nukisman/elm-format-short,fredcy/elm-format,avh4/elm-format,nukisman/elm-format-short,avh4/elm-format,nukisman/elm-format-short
elm
## Code Before: module AllSyntax where import String import Signal exposing (foldp, map) import Json.Decode as Json import List exposing (..) fn = "XYZZY" annotatedFn : String annotatedFn = "XYZZY" inlinePipeline = 1 |> (+) 2 tuple = (1, 2) commentedLiterals = ({- int -} 1, {- float -} 0....
777be2aa125bdf72fbc4e712d7e3700d3fe8b70c
src/site_source/_assets/stylesheets/components/body.less
src/site_source/_assets/stylesheets/components/body.less
body { margin-top: 42px; } .body-container { margin-top: 30px; } .bodycontent { border-left: 1px solid #cdcdcd; } h1 { font-size: 1.8em; font-weight: 700; margin-top: 0px; } h2 { font-size: 1.4em; margin-top: 1em; margin-bottom: .3em; font-weight: 700; } h3 { font-size: 1.1em; margin-bottom...
body { margin-top: 42px; } .body-container { margin-top: 30px; } .bodycontent { border-left: 1px solid #cdcdcd; @media (max-width: @screen-sm-max) { border-left: none; } } h1 { font-size: 1.8em; font-weight: 700; margin-top: 0px; } h2 { font-size: 1.4em; margin-top: 1em; margin-bottom: .3...
Hide gutter borders on mobile
Hide gutter borders on mobile - Fixes #213
Less
apache-2.0
sigmavirus24/developer.rackspace.com,smashwilson/developer.rackspace.com,annegentle/developer.rackspace.com,rgbkrk/developer.rackspace.com,smashwilson/developer.rackspace.com,rgbkrk/developer.rackspace.com,rgbkrk/developer.rackspace.com,sigmavirus24/developer.rackspace.com,sigmavirus24/developer.rackspace.com,smashwils...
less
## Code Before: body { margin-top: 42px; } .body-container { margin-top: 30px; } .bodycontent { border-left: 1px solid #cdcdcd; } h1 { font-size: 1.8em; font-weight: 700; margin-top: 0px; } h2 { font-size: 1.4em; margin-top: 1em; margin-bottom: .3em; font-weight: 700; } h3 { font-size: 1.1em;...
02c8e564af57294099dc75c17743718ceca3c37c
db/migrate/20110810213521_set_default_quantity_for_line_items.rb
db/migrate/20110810213521_set_default_quantity_for_line_items.rb
class SetDefaultQuantityForLineItems < ActiveRecord::Migration def up LineItem.update_all("quantity = 'x'", "quantity IS NULL") end def down end end
class SetDefaultQuantityForLineItems < ActiveRecord::Migration def up LineItem.unscoped do LineItem.update_all("quantity = 'x'", "quantity IS NULL") end end def down end end
Fix (old) migration to work with current model.
Fix (old) migration to work with current model.
Ruby
agpl-3.0
huerlisi/bookyt,gaapt/bookyt,gaapt/bookyt,hauledev/bookyt,xuewenfei/bookyt,silvermind/bookyt,silvermind/bookyt,hauledev/bookyt,gaapt/bookyt,silvermind/bookyt,silvermind/bookyt,wtag/bookyt,wtag/bookyt,gaapt/bookyt,huerlisi/bookyt,hauledev/bookyt,wtag/bookyt,huerlisi/bookyt,hauledev/bookyt,xuewenfei/bookyt,xuewenfei/book...
ruby
## Code Before: class SetDefaultQuantityForLineItems < ActiveRecord::Migration def up LineItem.update_all("quantity = 'x'", "quantity IS NULL") end def down end end ## Instruction: Fix (old) migration to work with current model. ## Code After: class SetDefaultQuantityForLineItems < ActiveRecord::Migratio...
d82ae63cff5a4e7d590f6576536366d79cce25da
entries/templates/entries/archer_search.html
entries/templates/entries/archer_search.html
{% extends 'entries/competition_detail.html' %} {% block competition_content %} <p>Enter an archer name:</p> <form method="GET" action=""> {{ search_form.query }} <input type="submit" class="btn" value="Search"> </form> {% if archers %} <div class="row"> {% for archer in archers %} <div class="col2"> ...
{% extends 'entries/competition_detail.html' %} {% block competition_content %} <p>Enter an archer name:</p> <form method="GET" action=""> {{ search_form.query }} <input type="submit" class="btn" value="Search"> </form> {% if archers %} <div class="row"> {% for archer in archers %} <div class="col2"> ...
Fix missing closing div in template.
Fix missing closing div in template.
HTML
bsd-3-clause
mjtamlyn/archery-scoring,mjtamlyn/archery-scoring,mjtamlyn/archery-scoring,mjtamlyn/archery-scoring,mjtamlyn/archery-scoring
html
## Code Before: {% extends 'entries/competition_detail.html' %} {% block competition_content %} <p>Enter an archer name:</p> <form method="GET" action=""> {{ search_form.query }} <input type="submit" class="btn" value="Search"> </form> {% if archers %} <div class="row"> {% for archer in archers %} <di...
a4f3109747f2f523fc673a7239857bddbb95f590
app/templates/views/features/email.html
app/templates/views/features/email.html
<h3 class="heading heading-small">Send files by email</h3> <p>You can use the GOV.UK Notify API to upload a file, then send the recipient an email with a secure link to download it.</p> <p>Notify uses encrypted links instead of email attachments because:</p> <ul class="list bullet-list"> <li>they're more secure</li>...
{% extends "withoutnav_template.html" %} {% from "components/table.html" import mapping_table, row, text_field, edit_field, field with context %} {% from "components/sub-navigation.html" import sub_navigation %} {% block per_page_title %} Features {% endblock %} {% block maincolumn_content %} <div class="grid-row"...
Add page formatting and H1
Add page formatting and H1 Add page formatting and H1
HTML
mit
alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin
html
## Code Before: <h3 class="heading heading-small">Send files by email</h3> <p>You can use the GOV.UK Notify API to upload a file, then send the recipient an email with a secure link to download it.</p> <p>Notify uses encrypted links instead of email attachments because:</p> <ul class="list bullet-list"> <li>they're ...
49dac737d01d6aad89005b05164058f2efa2fea7
lib/pronto/rails_best_practices.rb
lib/pronto/rails_best_practices.rb
require 'pronto' require 'rails_best_practices' module Pronto class RailsBestPractices < Runner def run(patches, _) return [] unless patches patches_with_additions = patches.select { |patch| patch.additions > 0 } files = patches_with_additions.map do |patch| Regexp.new(patch.new_file_...
require 'pronto' require 'rails_best_practices' module Pronto class RailsBestPractices < Runner def run return [] unless @patches patches_with_additions = @patches.select { |patch| patch.additions > 0 } files = patches_with_additions.map do |patch| Regexp.new(patch.new_file_full_path....
Update runner to expect parameters via initialize
Update runner to expect parameters via initialize
Ruby
mit
mmozuras/pronto-rails_best_practices
ruby
## Code Before: require 'pronto' require 'rails_best_practices' module Pronto class RailsBestPractices < Runner def run(patches, _) return [] unless patches patches_with_additions = patches.select { |patch| patch.additions > 0 } files = patches_with_additions.map do |patch| Regexp.new...
188aec84d6ea4f545509a1dd7d9c607e5828a5a2
src/se/vidstige/jadb/RemoteFile.java
src/se/vidstige/jadb/RemoteFile.java
package se.vidstige.jadb; /** * Created by vidstige on 2014-03-20 */ public class RemoteFile { private final String path; public RemoteFile(String path) { this.path = path; } public String getName() { throw new UnsupportedOperationException(); } public int getSize() { throw new UnsupportedOperation...
package se.vidstige.jadb; /** * Created by vidstige on 2014-03-20 */ public class RemoteFile { private final String path; public RemoteFile(String path) { this.path = path; } public String getName() { throw new UnsupportedOperationException(); } public int getSize() { throw new UnsupportedOperation...
Return of boolean expressions should not be wrapped into an "if-then-else" statement (squid:S1126)
Fix: Return of boolean expressions should not be wrapped into an "if-then-else" statement (squid:S1126)
Java
apache-2.0
vidstige/jadb,vidstige/jadb
java
## Code Before: package se.vidstige.jadb; /** * Created by vidstige on 2014-03-20 */ public class RemoteFile { private final String path; public RemoteFile(String path) { this.path = path; } public String getName() { throw new UnsupportedOperationException(); } public int getSize() { throw new Unsu...
fb8cfa8eb7d088ebe11075bff42bea54c97e9c18
hermes/views.py
hermes/views.py
from django.views.generic import ListView, DetailView from .models import Post class PostListView(ListView): context_object_name = 'posts' model = Post template_name = 'hermes/post_list.html' def get_queryset(self): return self.model.objects.order_by('created_on') class CategoryPostLis...
from django.views.generic import ListView, DetailView from .models import Post class PostListView(ListView): context_object_name = 'posts' model = Post template_name = 'hermes/post_list.html' def get_queryset(self): return self.model.objects.order_by('created_on') class CategoryPostLis...
Add slug variable to pass in the URL
Add slug variable to pass in the URL
Python
mit
emilian/django-hermes
python
## Code Before: from django.views.generic import ListView, DetailView from .models import Post class PostListView(ListView): context_object_name = 'posts' model = Post template_name = 'hermes/post_list.html' def get_queryset(self): return self.model.objects.order_by('created_on') class...
6b7ad4242f9e58bd65c61f6a41530beaa15d79a0
package.json
package.json
{ "author": "Ben Noordhuis <info@bnoordhuis.nl>" , "contributors": [ "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" ] , "name": "weak" , "description": "Make weak references to JavaScript Objects." , "keywords": ["weak", "reference", "js", "javascript", "object", "function", "callback"] , "ver...
{ "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" , "contributors": [ "Ben Noordhuis <info@bnoordhuis.nl>" ] , "name": "weak" , "description": "Make weak references to JavaScript Objects." , "keywords": ["weak", "reference", "js", "javascript", "object", "function", "callback"] , "ver...
Add Ben to contributor list.
Add Ben to contributor list.
JSON
isc
KenanSulayman/node-weak,TooTallNate/node-weak,EvolveLabs/electron-weak,unbornchikken/node-weak,fastest963/node-weak,unbornchikken/node-weak,robcolburn/node-weak,unbornchikken/node-weak,fastest963/node-weak,KenanSulayman/node-weak,robcolburn/node-weak,fastest963/node-weak,KenanSulayman/node-weak,kkoopa/node-weak,TooTall...
json
## Code Before: { "author": "Ben Noordhuis <info@bnoordhuis.nl>" , "contributors": [ "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" ] , "name": "weak" , "description": "Make weak references to JavaScript Objects." , "keywords": ["weak", "reference", "js", "javascript", "object", "function", "c...
cf46118c9d99278c3e6e05b743deb12bf60a8a7c
docs/security/handle-cors.md
docs/security/handle-cors.md
Handle CORS =========== The bundle comes out of the box with a generic and simple CORS (Cross-Origin Resource Sharing) handler but we recommends using [NelmioCorsBundle](https://github.com/nelmio/NelmioCorsBundle) for more flexibility... The handler is disabled by default. To enabled it: ```yaml overblog_graphql: ...
Handle CORS =========== The bundle comes out of the box with a generic and simple CORS (Cross-Origin Resource Sharing) handler but we recommend using [NelmioCorsBundle](https://github.com/nelmio/NelmioCorsBundle) for more flexibility... The handler is disabled by default. To enable it: ```yaml overblog_graphql: ...
Fix typos, improve phrasing in "Handle CORS" doc page
Fix typos, improve phrasing in "Handle CORS" doc page
Markdown
mit
overblog/GraphQLBundle
markdown
## Code Before: Handle CORS =========== The bundle comes out of the box with a generic and simple CORS (Cross-Origin Resource Sharing) handler but we recommends using [NelmioCorsBundle](https://github.com/nelmio/NelmioCorsBundle) for more flexibility... The handler is disabled by default. To enabled it: ```yaml ov...
6e6295093f2e561e5b6bf2f3c2b53bdeeeaf86b3
app/views/projects/_project_hidden.html.erb
app/views/projects/_project_hidden.html.erb
<header> <div class="title"> <%= link_to project.title, chapter_project_path(project.chapter, project), :class => "title" %> </div> <section class="meta-data"> <%= project.created_at %> (<%= project.chapter.name %>) <% if project.winner? %> · <%= link_to I18n.t(".view-public-page", scope: "pro...
<header> <div class="title"> <%= link_to project.title, chapter_project_path(project.chapter, project), :class => "title" %> </div> <section class="meta-data"> <%= project.created_at %> (<%= project.chapter.name %>) <% if project.winner? %> · <%= link_to I18n.t(".view-public-page", scope: "pro...
Remove 'delete' link from hidden projects in index view
Remove 'delete' link from hidden projects in index view
HTML+ERB
agpl-3.0
awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits,awesomefoundation/awesomebits
html+erb
## Code Before: <header> <div class="title"> <%= link_to project.title, chapter_project_path(project.chapter, project), :class => "title" %> </div> <section class="meta-data"> <%= project.created_at %> (<%= project.chapter.name %>) <% if project.winner? %> · <%= link_to I18n.t(".view-public-pa...
d6ad0fe30d099ce0d4ec8c579d32692f8d2c97c9
openstack_dashboard/themes/material/static/bootstrap/_styles.scss
openstack_dashboard/themes/material/static/bootstrap/_styles.scss
// Based on Paper // Bootswatch // ----------------------------------------------------- @import "/horizon/lib/bootstrap_scss/scss/bootstrap/mixins/vendor-prefixes"; @import "/horizon/lib/bootswatch/paper/bootswatch"; @import "/horizon/lib/roboto_fontface/css/roboto/sass/roboto-fontface.scss"; // Patch to Paper // I...
// Based on Paper // Bootswatch // ----------------------------------------------------- @import "/horizon/lib/bootstrap_scss/scss/bootstrap/mixins/vendor-prefixes"; @import "/horizon/lib/bootswatch/paper/bootswatch"; @import "/horizon/lib/roboto_fontface/css/roboto/sass/roboto-fontface.scss"; // Patch to Paper // I...
Fix the alert close size problem in material theme
Fix the alert close size problem in material theme The problem was casued by .close class in _bootswatch.scss. The size is 34px while correct size should 19.5px. Patch the fix to have a smaller size. When alert message has one line the close button is centered now. When alert message has multiple lines, the close but...
SCSS
apache-2.0
noironetworks/horizon,BiznetGIO/horizon,ChameleonCloud/horizon,noironetworks/horizon,NeCTAR-RC/horizon,BiznetGIO/horizon,noironetworks/horizon,ChameleonCloud/horizon,openstack/horizon,NeCTAR-RC/horizon,yeming233/horizon,openstack/horizon,yeming233/horizon,noironetworks/horizon,NeCTAR-RC/horizon,BiznetGIO/horizon,openst...
scss
## Code Before: // Based on Paper // Bootswatch // ----------------------------------------------------- @import "/horizon/lib/bootstrap_scss/scss/bootstrap/mixins/vendor-prefixes"; @import "/horizon/lib/bootswatch/paper/bootswatch"; @import "/horizon/lib/roboto_fontface/css/roboto/sass/roboto-fontface.scss"; // Pat...
32a271f0c725008da08eb6b5db37ff6574ddb51e
signage/static/optionalchoice.js
signage/static/optionalchoice.js
(function ($) { $(document).ready(function () { $.each($('select[name*=url]'), function (i, e) { console.log(e); e.onchange = function () { var prefix = this.name.split('-'), suffix = prefix[2].split('_'), target = 'input[name='...
(function ($) { $(document).ready(function () { $.each($('select[name*=url]'), function (i, e) { e.onchange = function () { var prefix = this.name.split('-'), suffix = prefix[2].split('_'), target = 'input[name=' + prefix[0] + '-' + prefix[...
Disable inputs correctly upon form load
Disable inputs correctly upon form load
JavaScript
mit
rcarmo/android-signage-server,rcarmo/android-signage-server
javascript
## Code Before: (function ($) { $(document).ready(function () { $.each($('select[name*=url]'), function (i, e) { console.log(e); e.onchange = function () { var prefix = this.name.split('-'), suffix = prefix[2].split('_'), target...
75b9188afbb0f4c330f38c50b4c9f0ba64a2098f
DEPRECATED.md
DEPRECATED.md
Ensembl Variation Deprecated Methods =================== ### Ensembl Variation Release 83 ### #### Deprecated methods related to the validation_status data:#### - Bio::EnsEMBL::Variation::**Variation**::*get_all_validation_states()* - Bio::EnsEMBL::Variation::**Variation**::*add_validation_state()* - Bio::EnsEMBL::Va...
Ensembl Variation Deprecated Methods =================== This file contains the list of methods deprecated in the Ensembl Variation API. A method is deprecated when it is not functional anymore (schema/data change) or has been replaced by a better one. Backwards compatibility is provided whenever possible. When a meth...
Update with more deprecated methods
Update with more deprecated methods
Markdown
apache-2.0
Ensembl/ensembl-variation,Ensembl/ensembl-variation,Ensembl/ensembl-variation,willmclaren/ensembl-variation,Ensembl/ensembl-variation,Ensembl/ensembl-variation,willmclaren/ensembl-variation,willmclaren/ensembl-variation,willmclaren/ensembl-variation,willmclaren/ensembl-variation
markdown
## Code Before: Ensembl Variation Deprecated Methods =================== ### Ensembl Variation Release 83 ### #### Deprecated methods related to the validation_status data:#### - Bio::EnsEMBL::Variation::**Variation**::*get_all_validation_states()* - Bio::EnsEMBL::Variation::**Variation**::*add_validation_state()* - ...
54dd339826068d22a45bbdf3b824499ea918b91e
customize.dist/src/less2/include/icons.less
customize.dist/src/less2/include/icons.less
.icons_main() { li { display: inline-block; margin: 10px 10px; width: 140px; height: 140px; text-align: center; vertical-align: top; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; padding-bottom: 5px; .cp-icons-na...
.icons_main() { li { display: inline-block; margin: 10px 10px; width: 140px; height: 140px; text-align: center; vertical-align: top; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; padding-bottom: 5px; .cp-icons-na...
Fix invisible selection in the pad creation modal
Fix invisible selection in the pad creation modal
Less
agpl-3.0
xwiki-labs/cryptpad,xwiki-labs/cryptpad,xwiki-labs/cryptpad
less
## Code Before: .icons_main() { li { display: inline-block; margin: 10px 10px; width: 140px; height: 140px; text-align: center; vertical-align: top; overflow: hidden; text-overflow: ellipsis; padding-top: 5px; padding-bottom: 5px; ...
1c53ac7e02ed8d0cd2560dfadb43ef62a3c0ec06
core/app/models/evidence_deletable.rb
core/app/models/evidence_deletable.rb
class EvidenceDeletable attr_reader :evidence, :believable, :creator_id def initialize evidence, type, believable, creator_id @evidence = evidence @type = type @believable = believable @creator_id = creator_id end def deletable? (has_no_believers or creator_is_only_believer) and has_no_sub...
class EvidenceDeletable attr_reader :evidence, :believable, :creator_id def initialize evidence, type, believable, creator_id @evidence = evidence @type = type @believable = believable @creator_id = creator_id end def deletable? (has_no_believers or creator_is_only_believer) and has_no_sub...
Use opiniated(:believes) instead of people_believes
Use opiniated(:believes) instead of people_believes
Ruby
mit
daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core,daukantas/factlink-core,daukantas/factlink-core,daukantas/factlink-core,Factlink/factlink-core,Factlink/factlink-core
ruby
## Code Before: class EvidenceDeletable attr_reader :evidence, :believable, :creator_id def initialize evidence, type, believable, creator_id @evidence = evidence @type = type @believable = believable @creator_id = creator_id end def deletable? (has_no_believers or creator_is_only_believer...
3bb3be1b375c143ff047f81ea063da5fb6c99d64
packages/ionic/src/layouts/group/group-layout.ts
packages/ionic/src/layouts/group/group-layout.ts
import { GroupLayout, JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; @Component({ selector: 'jsonforms-group-layout', temp...
import { GroupLayout, JsonFormsProps, JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; @Component({ selector: 'jsonf...
Fix group initializer for displaying label
[ionic] Fix group initializer for displaying label
TypeScript
mit
qb-project/jsonforms,qb-project/jsonforms,qb-project/jsonforms
typescript
## Code Before: import { GroupLayout, JsonFormsState, RankedTester, rankWith, uiTypeIs } from '@jsonforms/core'; import { Component } from '@angular/core'; import { NgRedux } from '@angular-redux/store'; import { JsonFormsIonicLayout } from '../JsonFormsIonicLayout'; @Component({ selector: 'jsonforms-group...
127a6d65b46e94f7698ae9739c1770903068351a
bempy/django/views.py
bempy/django/views.py
import os.path from django.http import HttpResponse from django.conf import settings from functools import wraps from bempy import ImmediateResponse def returns_blocks(func): @wraps(func) def wrapper(request): page = func(request) try: if isinstance(page, HttpResponse): ...
import os.path from django.http import HttpResponse from django.conf import settings from functools import wraps from bempy import ImmediateResponse def returns_blocks(func): @wraps(func) def wrapper(request, *args, **kwargs): page = func(request, *args, **kwargs) try: if isinsta...
Make wrapper returned by `returns_blocks` decorator, understand additional `args` and `kwargs` arguments.
Make wrapper returned by `returns_blocks` decorator, understand additional `args` and `kwargs` arguments.
Python
bsd-3-clause
svetlyak40wt/bempy,svetlyak40wt/bempy,svetlyak40wt/bempy
python
## Code Before: import os.path from django.http import HttpResponse from django.conf import settings from functools import wraps from bempy import ImmediateResponse def returns_blocks(func): @wraps(func) def wrapper(request): page = func(request) try: if isinstance(page, ...
cc6ca48a2c14a36109716ebf1f3185a58f596c97
spec/core/users_spec.rb
spec/core/users_spec.rb
require 'spec_helper' %w(cumulus rocket turtle).each do |username| describe user(username) do it { should exist } it { should belong_to_group 'sudo' } end end
require 'spec_helper' describe user('cumulus') do it { should exist } it { should belong_to_group 'sudo' } end
Remove tests for 'rocket' & 'turtle' users
Remove tests for 'rocket' & 'turtle' users
Ruby
mit
CumulusNetworks/cldemo-tests,benthomasson/cldemo-tests,benthomasson/cldemo-tests,CumulusNetworks/cldemo-tests
ruby
## Code Before: require 'spec_helper' %w(cumulus rocket turtle).each do |username| describe user(username) do it { should exist } it { should belong_to_group 'sudo' } end end ## Instruction: Remove tests for 'rocket' & 'turtle' users ## Code After: require 'spec_helper' describe user('cumulus') do it ...
4e2e9a47a3b0af6550c61042e6ef9802ae6b2795
lib/doccy/documents.rb
lib/doccy/documents.rb
module Doccy class Documents def self.create(auth_token, template_id, document_params) options = { query: { auth_token: auth_token, document: document_params} } response = HTTParty.post("#{Doccy::Config.url}/templates/#{template_id}/documents.json", options) end def self.ge...
module Doccy class Documents def self.create(auth_token, template_id, document_params) # options = { query: { auth_token: auth_token, document: document_params} } options = { body: { auth_token: auth_token, document: document_params} } response = HTTParty.post("#{Doccy::Config.url...
Fix issue with 414 error when posting to create a document
Fix issue with 414 error when posting to create a document
Ruby
mit
Sentia/doccy-api
ruby
## Code Before: module Doccy class Documents def self.create(auth_token, template_id, document_params) options = { query: { auth_token: auth_token, document: document_params} } response = HTTParty.post("#{Doccy::Config.url}/templates/#{template_id}/documents.json", options) end ...
78acaf8435c3a21aca634d9b085d2eb5df278d46
.travis.yml
.travis.yml
sudo: false language: node_js node_js: - "0.12" - "0.10" script: - npm test - npm run nsp after_script: - npm run coveralls notifications: email: - denis@w3.org - antonio@w3.org irc: channels: - "irc.w3.org#pubrules" skip_join: true deploy: provider: npm email: web-human@w3.org ...
sudo: false language: node_js node_js: - "0.12" - "0.10" script: - npm test - npm run nsp after_script: - npm run coveralls notifications: email: - denis@w3.org irc: channels: - "irc.w3.org#pubrules" skip_join: true deploy: provider: npm email: web-human@w3.org api_key: secure:...
Stop sending e-mail notifications to Antonio
Stop sending e-mail notifications to Antonio
YAML
mit
w3c/specberus,w3c/specberus,w3c/specberus
yaml
## Code Before: sudo: false language: node_js node_js: - "0.12" - "0.10" script: - npm test - npm run nsp after_script: - npm run coveralls notifications: email: - denis@w3.org - antonio@w3.org irc: channels: - "irc.w3.org#pubrules" skip_join: true deploy: provider: npm email: we...
a242af718ae3c323c9d12ca8ce550044c62d5b67
webpack/cmdize.coffee
webpack/cmdize.coffee
fs = require "fs" iconv = require "iconv-lite" ini = require '../package' module.exports = me = (options)-> me::apply = (compiler)-> compiler.plugin "done", (compilation)-> for k, z of compilation.compilation.assets dst = z.existsAt continue unless /[.]js$/.test dst fs.unlink dst dst = d...
fs = require "fs" iconv = require "iconv-lite" ini = require '../package' module.exports = me = (options)-> me::apply = (compiler)-> compiler.plugin "done", (compilation)-> for k, z of compilation.compilation.assets dst = z.existsAt continue unless /[.]js$/.test dst fs.unlink dst dst = d...
Move URL to first line
Move URL to first line
CoffeeScript
isc
ukoloff/directum
coffeescript
## Code Before: fs = require "fs" iconv = require "iconv-lite" ini = require '../package' module.exports = me = (options)-> me::apply = (compiler)-> compiler.plugin "done", (compilation)-> for k, z of compilation.compilation.assets dst = z.existsAt continue unless /[.]js$/.test dst fs.unlink d...
d2731c3645ba373cc8e4d9a6759473044b3c3eaa
INSTALL.md
INSTALL.md
At first, you must install Ubuntu Mini. You can use the following link to find the Ubuntu Mini ISO: [https://help.ubuntu.com/community/Installation/MinimalCD](https://help.ubuntu.com/community/Installation/MinimalCD "Ubuntu Mini") At the end, you will be ask to install subsequent software: do **not** select anything...
At first, you must install Ubuntu Mini. You can use the following link to find the Ubuntu Mini ISO: [https://help.ubuntu.com/community/Installation/MinimalCD](https://help.ubuntu.com/community/Installation/MinimalCD "Ubuntu Mini") At the end, you will be ask to install subsequent software: do **not** select anything...
Add info about apt logs
Add info about apt logs
Markdown
apache-2.0
arnaudmorin/GangBangLinux,arnaudmorin/GangBangLinux
markdown
## Code Before: At first, you must install Ubuntu Mini. You can use the following link to find the Ubuntu Mini ISO: [https://help.ubuntu.com/community/Installation/MinimalCD](https://help.ubuntu.com/community/Installation/MinimalCD "Ubuntu Mini") At the end, you will be ask to install subsequent software: do **not**...
3b945ae65a30a7ad0cb193b8b34489fdda0a2fe6
cmd/version_test.go
cmd/version_test.go
// khan // https://github.com/topfreegames/khan // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license // Copyright © 2016 Top Free Games <backend@tfgco.com> package cmd import ( "fmt" "os/exec" "testing" . "github.com/franela/goblin" "github.com/topfreegames/khan/api" ) func r...
// khan // https://github.com/topfreegames/khan // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license // Copyright © 2016 Top Free Games <backend@tfgco.com> package cmd // import ( // "fmt" // "os/exec" // "testing" // // . "github.com/franela/goblin" // "github.com/topfreegames...
Remove cmd test temporarily so we have a build.
Remove cmd test temporarily so we have a build.
Go
mit
topfreegames/khan,topfreegames/khan,topfreegames/khan
go
## Code Before: // khan // https://github.com/topfreegames/khan // // Licensed under the MIT license: // http://www.opensource.org/licenses/mit-license // Copyright © 2016 Top Free Games <backend@tfgco.com> package cmd import ( "fmt" "os/exec" "testing" . "github.com/franela/goblin" "github.com/topfreegames/kha...
cc7ad19bd24942cfa7ece8456d12ff936bc6ca97
lib/weary/middleware/hmac_auth.rb
lib/weary/middleware/hmac_auth.rb
require 'api_auth' module Weary module Middleware class HMACAuth def initialize(app, config = {}) @app = app @access_id = config[:access_id] @secret_key = config[:secret_key] end def call(env) request = Rack::Request.new(env) @app.call signed_env_for_we...
require 'api_auth' module Weary module Middleware class HMACAuth def initialize(app, config = {}) @app = app @access_id = config[:access_id] @secret_key = config[:secret_key] end def call(env) set_content_type! env sign! env @app.call env ...
Fix signing of PUT requests without params
Fix signing of PUT requests without params
Ruby
mit
biola/trogdir-api-client
ruby
## Code Before: require 'api_auth' module Weary module Middleware class HMACAuth def initialize(app, config = {}) @app = app @access_id = config[:access_id] @secret_key = config[:secret_key] end def call(env) request = Rack::Request.new(env) @app.call s...
8bbb5b39ca6aa02956346c3eb967d0116d5da801
GitToolBox/src/main/kotlin/zielu/intellij/util/ZBundleHolder.kt
GitToolBox/src/main/kotlin/zielu/intellij/util/ZBundleHolder.kt
package zielu.intellij.util import java.util.ResourceBundle class ZBundleHolder(private val bundleName: String) { private var bundle: ResourceBundle? = null fun getBundle(): ResourceBundle { if (bundle == null) { bundle = ResourceBundle.getBundle(bundleName) } return checkNotNull(bundle) { "Fai...
package zielu.intellij.util import java.util.ResourceBundle class ZBundleHolder(private val bundleName: String) { val bundle: ResourceBundle by lazy { ResourceBundle.getBundle(bundleName) } }
Use lazy instead of custom loading
Use lazy instead of custom loading
Kotlin
apache-2.0
zielu/GitToolBox,zielu/GitToolBox,zielu/GitToolBox
kotlin
## Code Before: package zielu.intellij.util import java.util.ResourceBundle class ZBundleHolder(private val bundleName: String) { private var bundle: ResourceBundle? = null fun getBundle(): ResourceBundle { if (bundle == null) { bundle = ResourceBundle.getBundle(bundleName) } return checkNotNul...
afb58da6ecc11a1c92d230bc2dcbb06464cc4f32
percept/workflows/commands/run_flow.py
percept/workflows/commands/run_flow.py
from percept.management.commands import BaseCommand from percept.utils.registry import registry, find_in_registry from percept.workflows.base import NaiveWorkflow from percept.utils.workflow import WorkflowWrapper, WorkflowLoader import logging log = logging.getLogger(__name__) class Command(BaseCommand): args =...
from percept.management.commands import BaseCommand from percept.utils.registry import registry, find_in_registry from percept.workflows.base import NaiveWorkflow from percept.utils.workflow import WorkflowWrapper, WorkflowLoader from optparse import make_option import IPython import logging log = logging.getLogger(_...
Add in a way to start a shell using the results of a workflow
Add in a way to start a shell using the results of a workflow
Python
apache-2.0
VikParuchuri/percept,VikParuchuri/percept
python
## Code Before: from percept.management.commands import BaseCommand from percept.utils.registry import registry, find_in_registry from percept.workflows.base import NaiveWorkflow from percept.utils.workflow import WorkflowWrapper, WorkflowLoader import logging log = logging.getLogger(__name__) class Command(BaseComm...
9fbd7c5e3dcd0df1af4de2b56166e94bc57ae071
README.md
README.md
> Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017. [![License](https://img.shields.io/badge/license-cc--by--4.0-brightgreen.svg)](https://creativecommons.org/licenses/by/4.0/)
> Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017. [https://kks32-slides.github.io/2017-nmg/](https://kks32-slides.github.io/2017-nmg/) [![License](https://img.shields.io/badge/license-cc--by--4.0-brightgreen.svg)](https://creativecommons.org/licenses/by/4.0/)
Add link to web version
:pencil2: Add link to web version
Markdown
mit
kks32-slides/2017-nmg,kks32-slides/2017-nmg
markdown
## Code Before: > Krishna Kumar (2017), NMG2017 Conference Hamburg, Germany. 27 September 2017. [![License](https://img.shields.io/badge/license-cc--by--4.0-brightgreen.svg)](https://creativecommons.org/licenses/by/4.0/) ## Instruction: :pencil2: Add link to web version ## Code After: > Krishna Kumar (2017), NMG2017...
ff2ba5bc1cbafd4fba434bf2dc8882bdb59ba323
README.md
README.md
sitegear3-adapter-filesystem ============================ Filesystem adapter for sitegear3, intended for development use only (not at all scalable!)
[![Build Status](https://travis-ci.org/sitegear/sitegear3-adapter-filesystem.png?branch=master)](https://travis-ci.org/sitegear/sitegear3-adapter-filesystem) Filesystem adapter for sitegear3, intended for development use only (not at all scalable!)
Add CI badge to readme.
Add CI badge to readme.
Markdown
mit
sitegear/sitegear3-adapter-filesystem
markdown
## Code Before: sitegear3-adapter-filesystem ============================ Filesystem adapter for sitegear3, intended for development use only (not at all scalable!) ## Instruction: Add CI badge to readme. ## Code After: [![Build Status](https://travis-ci.org/sitegear/sitegear3-adapter-filesystem.png?branch=master)]...
d49f035718daad3d4651070d0e26f68c009527d0
leader_followers/check_and_add_newhost.sh
leader_followers/check_and_add_newhost.sh
array_check () { for i in ${currentlist[@]};do if [ "$1" = "$i" ];then return 1 fi done return 0 } # HOSTGROUPFILE=/tmp/hostgroup sudo qconf -shgrp @default > ${HOSTGROUPFILE} currentlist=($(tail -n +2 ${HOSTGROUPFILE} | sed -e 's/^hostlist//' | awk '{print $1;}' | awk -F. '{print $1;}')) # ADDNEWHOST=0 ...
array_check () { for i in ${currentlist[@]};do if [ "$1" = "$i" ];then return 1 fi done return 0 } # HOSTGROUPFILE=/tmp/hostgroup sudo qconf -shgrp @default > ${HOSTGROUPFILE} currentlist=($(tail -n +2 ${HOSTGROUPFILE} | sed -e 's/^hostlist//' | awk '{print $1;}' | awk -F. '{print $1;}')) # ADDNEWHOST=0 ...
Update check and add new host
Update check and add new host
Shell
mit
manabuishii/azure-files,manabuishii/azure-files
shell
## Code Before: array_check () { for i in ${currentlist[@]};do if [ "$1" = "$i" ];then return 1 fi done return 0 } # HOSTGROUPFILE=/tmp/hostgroup sudo qconf -shgrp @default > ${HOSTGROUPFILE} currentlist=($(tail -n +2 ${HOSTGROUPFILE} | sed -e 's/^hostlist//' | awk '{print $1;}' | awk -F. '{print $1;}')) ...
76b03597a157580ecd6114daff2ee5a71a847c26
metadata/com.aragaer.jtt.txt
metadata/com.aragaer.jtt.txt
Categories:System License:MIT Web Site:https://aragaer.github.com/jtt_android Source Code:https://github.com/aragaer/jtt_android Issue Tracker:https://github.com/aragaer/jtt_android/issues Auto Name:Japanese Traditional Time Summary:Clock widget Description: A clock widget based on the traditional Japanese time [https...
Categories:System License:MIT Web Site:https://aragaer.github.com/jtt_android Source Code:https://github.com/aragaer/jtt_android Issue Tracker:https://github.com/aragaer/jtt_android/issues Auto Name:Japanese Traditional Time Summary:Clock widget Description: A clock widget based on the traditional Japanese time [https...
Update Japanese Traditional Time to 1.6 (34)
Update Japanese Traditional Time to 1.6 (34)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data
text
## Code Before: Categories:System License:MIT Web Site:https://aragaer.github.com/jtt_android Source Code:https://github.com/aragaer/jtt_android Issue Tracker:https://github.com/aragaer/jtt_android/issues Auto Name:Japanese Traditional Time Summary:Clock widget Description: A clock widget based on the traditional Japa...
b4561e7e7128445985829aaac7b579db8bb612c1
README.md
README.md
[![Build Status](https://travis-ci.org/voyagegroup/tslint-config-fluct.svg?branch=master)](https://travis-ci.org/voyagegroup/tslint-config-fluct)
[![Build Status](https://travis-ci.org/voyagegroup/tslint-config-fluct.svg?branch=master)](https://travis-ci.org/voyagegroup/tslint-config-fluct) ## License - [The MIT License](./LICENSE.txt) - Original: https://opensource.org/licenses/MIT
Add license section to readme
Add license section to readme
Markdown
mit
voyagegroup/tslint-config-fluct
markdown
## Code Before: [![Build Status](https://travis-ci.org/voyagegroup/tslint-config-fluct.svg?branch=master)](https://travis-ci.org/voyagegroup/tslint-config-fluct) ## Instruction: Add license section to readme ## Code After: [![Build Status](https://travis-ci.org/voyagegroup/tslint-config-fluct.svg?branch=master)](ht...
bfb3033a27b0e506115e7363a4e0c2119029d938
onyx-database/resources/templates/class.mustache
onyx-database/resources/templates/class.mustache
package {{packageName}}; import com.onyx.persistence.annotations.*; import com.onyx.persistence.*; @Entity public class {{className}} extends ManagedEntity implements IManagedEntity { public {{className}}() { } @Attribute @Identifier(generator = {{generatorType}}) public {{idType}} {{idName}...
package {{packageName}}; import com.onyx.persistence.annotations.*; import com.onyx.persistence.*; @Entity public class {{className}} extends ManagedEntity implements IManagedEntity { public {{className}}() { } @Attribute @Identifier(generator = {{{generatorType}}}) public {{{idType}}} {{idN...
Fix mistake in mustache syntax
Fix mistake in mustache syntax
HTML+Django
agpl-3.0
OnyxDevTools/onyx-database-parent,OnyxDevTools/onyx-database-parent
html+django
## Code Before: package {{packageName}}; import com.onyx.persistence.annotations.*; import com.onyx.persistence.*; @Entity public class {{className}} extends ManagedEntity implements IManagedEntity { public {{className}}() { } @Attribute @Identifier(generator = {{generatorType}}) public {{id...
8954e4ed1ede56b2d80580dbfd50c86a9c725d9a
scripts/people/PickledChicken.yaml
scripts/people/PickledChicken.yaml
- blog: http://changbaili.blogspot.com/ feed: http://changbaili.blogspot.com/feeds/posts/default forges: - http://github.com/lcb931023 irc: PickledChicken name: Changbai Li rit_dce: cxl6359 litreview1: http://changbaili.blogspot.com/2014/02/lit-review-ch3-what-is-open-source-and.html quiz1: http://cha...
- blog: http://changbaili.blogspot.com/search/label/HFOSS feed: http://changbaili.blogspot.com/feeds/posts/default/-/HFOSS forges: - http://github.com/lcb931023 irc: PickledChicken name: Changbai Li rit_dce: cxl6359 litreview1: http://changbaili.blogspot.com/2014/02/lit-review-ch3-what-is-open-source-an...
Change blog and feed to the right subcategory
Change blog and feed to the right subcategory Former-commit-id: d2baa03262c8ea2691372e4e18b50541d8cf0511 [formerly 41dbdb696693024c947743e67e44434a6a783e1a] [formerly 91548982fccc703acf6d23e79da385ff2c93a0b2] Former-commit-id: 34e2f60307d91796a0897721d925cf7a55345bb0 [formerly e2663f029b1796bca1f782d72d6b1a6d7fb4d493...
YAML
apache-2.0
sctjkc01/ofCourse,sctjkc01/ofCourse,ryansb/ofCourse,ritjoe/ofCourse,ritjoe/ofCourse,ryansb/ofCourse
yaml
## Code Before: - blog: http://changbaili.blogspot.com/ feed: http://changbaili.blogspot.com/feeds/posts/default forges: - http://github.com/lcb931023 irc: PickledChicken name: Changbai Li rit_dce: cxl6359 litreview1: http://changbaili.blogspot.com/2014/02/lit-review-ch3-what-is-open-source-and.html q...