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
62b79de5c0de81c02955b53c5574b861dfeeb478
lib/necromancer/converter.rb
lib/necromancer/converter.rb
module Necromancer # Abstract converter used internally as a base for other converters # # @api private class Converter def initialize(source = nil, target = nil) @source = source if source @target = target if target end # Run converter # # @api private def call(*) fa...
module Necromancer # Abstract converter used internally as a base for other converters # # @api private class Converter def initialize(source = nil, target = nil) @source = source if source @target = target if target end # Run converter # # @api private def call(*) fa...
Add common type conversion error method.
Add common type conversion error method.
Ruby
mit
peter-murach/necromancer
ruby
## Code Before: module Necromancer # Abstract converter used internally as a base for other converters # # @api private class Converter def initialize(source = nil, target = nil) @source = source if source @target = target if target end # Run converter # # @api private def ...
3dfaa91ff7f36d74126fffd9913161f5f531ffe2
condarecipe/meta.yaml
condarecipe/meta.yaml
package: name: coffee version: 0.1.0 source: path: .. requirements: build: - python - networkx run: - python - numpy - networkx test: requires: - pytest - flake8 commands: - py.test {{ os.path.join(environ.get('SRC_DIR'), 'tests') }} -v - flake8 {{ environ.get('SRC_...
package: name: coffee version: {{ environ.get('GIT_DESCRIBE_TAG','') }} source: path: .. build: number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }} requirements: build: - python - networkx run: - python - numpy - networkx test: requires: - pytest - flake8 commands: -...
Use git describe for version and build number
Use git describe for version and build number
YAML
bsd-3-clause
gmarkall/COFFEE,gmarkall/COFFEE
yaml
## Code Before: package: name: coffee version: 0.1.0 source: path: .. requirements: build: - python - networkx run: - python - numpy - networkx test: requires: - pytest - flake8 commands: - py.test {{ os.path.join(environ.get('SRC_DIR'), 'tests') }} -v - flake8 {{ e...
81ba5b6f75ca7e54aee15432077d40d7095b247f
CMakeLists.txt
CMakeLists.txt
cmake_minimum_required(VERSION 2.6) project(mnf C CXX) #BLAS library if (USE_MKL_LIBRARIES) set(CMAKE_BLAS_LIBS_INIT mkl_intel_lp64 mkl_intel_thread mkl_core iomp5) else() find_package(BLAS REQUIRED) endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) #mnf library add_library(mnf SHARED src/mnf_c.cpp ...
cmake_minimum_required(VERSION 2.6) project(mnf C CXX) #BLAS library if (USE_MKL_LIBRARIES) set(BLAS_LIBRARIES mkl_intel_lp64 mkl_intel_thread mkl_core iomp5) else() find_package(BLAS REQUIRED) endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) #mnf library add_library(mnf SHARED src/mnf_c.cpp src/mn...
Use correct library variable from findBLAS.
Use correct library variable from findBLAS.
Text
mit
ntnu-bioopt/mnf
text
## Code Before: cmake_minimum_required(VERSION 2.6) project(mnf C CXX) #BLAS library if (USE_MKL_LIBRARIES) set(CMAKE_BLAS_LIBS_INIT mkl_intel_lp64 mkl_intel_thread mkl_core iomp5) else() find_package(BLAS REQUIRED) endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) #mnf library add_library(mnf SHARE...
316877b437008d8e7572ffec2ba74c5d370fe38a
.travis.yml
.travis.yml
language: python python: - "3.6" - "3.5" - "3.4" - "3.3" - "2.7" - "2.6" services: - redis-server env: - TEST_HIREDIS=0 - TEST_HIREDIS=1 install: - pip install -e . - "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi" - "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi" script: "...
language: python cache: pip python: - "3.6" - "3.5" - "3.4" - "3.3" - "2.7" - "2.6" services: - redis-server env: - TEST_HIREDIS=0 - TEST_HIREDIS=1 install: - pip install -e . - "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi" - "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi...
Enable pip cache in Travis CI
Enable pip cache in Travis CI Can speed up builds and reduce load on PyPI servers. For more information, see: https://docs.travis-ci.com/user/caching/#pip-cache
YAML
mit
andymccurdy/redis-py,andymccurdy/redis-py,redis/redis-py,mozillazg/redis-py-doc,alisaifee/redis-py,andymccurdy/redis-py,5977862/redis-py,5977862/redis-py,redis/redis-py,alisaifee/redis-py,mozillazg/redis-py-doc,5977862/redis-py
yaml
## Code Before: language: python python: - "3.6" - "3.5" - "3.4" - "3.3" - "2.7" - "2.6" services: - redis-server env: - TEST_HIREDIS=0 - TEST_HIREDIS=1 install: - pip install -e . - "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi" - "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredi...
ed781120958633b55223525533b287964393dc49
plugins/wired.js
plugins/wired.js
var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Wired', version:'0.1', prepareImgLinks:function (callback) { var res = []; hoverZoom.urlReplace(res, 'img', /-\d+x\d+\./, '.' ); hoverZoom.urlReplace(res, ...
var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Wired', version:'0.2', prepareImgLinks:function (callback) { var res = []; hoverZoom.urlReplace(res, 'img', /-\d+x\d+\./, '.' ); hoverZoom.urlReplace(res, ...
Update for plug-in : WiReD
Update for plug-in : WiReD
JavaScript
mit
extesy/hoverzoom,extesy/hoverzoom
javascript
## Code Before: var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Wired', version:'0.1', prepareImgLinks:function (callback) { var res = []; hoverZoom.urlReplace(res, 'img', /-\d+x\d+\./, '.' ); hoverZoom.urlRepl...
b8e5128a0c199a3709c269647f6d1647d2ce54b8
src/neural_networks/read_data.jl
src/neural_networks/read_data.jl
function read_data(x::String, mode::String) num_features = num_labels = 0 if x == "scene" num_features = 294 num_labels = 6 end if x == "yeast" num_features = 103 num_labels = 14 end if x == "emotions" num_features = 72 num_labels = 6 end...
function read_data(x::String, mode::String) num_features = num_labels = 0 if x == "scene" num_features = 294 num_labels = 6 elseif x == "yeast" num_features = 103 num_labels = 14 elseif x == "emotions" num_features = 72 num_labels = 6 else er...
Read data from a file
Read data from a file
Julia
agpl-3.0
jperla/MultiLabelNeuralNetwork.jl
julia
## Code Before: function read_data(x::String, mode::String) num_features = num_labels = 0 if x == "scene" num_features = 294 num_labels = 6 end if x == "yeast" num_features = 103 num_labels = 14 end if x == "emotions" num_features = 72 num_lab...
4987275ab868aa98359d6583c7817c4adf09000b
zipeggs.py
zipeggs.py
import logging, os, zc.buildout, sys, shutil class ZipEggs: def __init__(self, buildout, name, options): self.name, self.options = name, options if options['target'] is None: raise zc.buildout.UserError('Invalid Target') if options['source'] is None: raise zc.buildou...
import logging, os, zc.buildout, sys, shutil class ZipEggs: def __init__(self, buildout, name, options): self.name, self.options = name, options if options['target'] is None: raise zc.buildout.UserError('Invalid Target') if options['source'] is None: raise zc.buildou...
Improve variable names for clarity
Improve variable names for clarity
Python
apache-2.0
tamizhgeek/zipeggs
python
## Code Before: import logging, os, zc.buildout, sys, shutil class ZipEggs: def __init__(self, buildout, name, options): self.name, self.options = name, options if options['target'] is None: raise zc.buildout.UserError('Invalid Target') if options['source'] is None: ...
348348f94c879b44fb4c300466be370670f4445a
calculators/cha2ds2/cha2ds2.rb
calculators/cha2ds2/cha2ds2.rb
name :cha2ds2 require_helpers :get_field_as_integer, :get_field_as_sex, :get_field_as_bool execute do age = get_field_as_integer :age sex = get_field_as_sex :sex congestive_heart_failure_history = get_field_as_bool :congestive_heart_failure_history hypertension_history = get_field_as_bool :hypertension_hi...
name :cha2ds2 require_helpers :get_field_as_integer, :get_field_as_sex, :get_field_as_bool execute do age = get_field_as_integer :age sex = get_field_as_sex :sex congestive_heart_failure_history = get_field_as_bool :congestive_heart_failure_history hypertension_history = get_field_as_bool :hypertension_hi...
Change response to match others
Change response to match others
Ruby
agpl-3.0
open-health-hub/clinical_calculator_api,open-health-hub/clinical_calculator_api
ruby
## Code Before: name :cha2ds2 require_helpers :get_field_as_integer, :get_field_as_sex, :get_field_as_bool execute do age = get_field_as_integer :age sex = get_field_as_sex :sex congestive_heart_failure_history = get_field_as_bool :congestive_heart_failure_history hypertension_history = get_field_as_bool :hyperte...
8d1d8488977a79ff96ee4f587fd42d2ca443408e
script/run_all_tests.sh
script/run_all_tests.sh
BD=/home/lodo # Chatty set -x # Exit on error set -e export HOME=$BD cp config/database.yml.example config/database.yml bundle install rake test
BD=/home/lodo # Chatty set -x # Exit on error set -e export HOME=$BD cp config/database.yml.example config/database.yml bundle install rake db:create rake db:migrate rake test
Update Hudson script with db creation commands
Update Hudson script with db creation commands
Shell
mit
dodo-as/dodo,lodo/lodo,lodo/lodo,dodo-as/dodo,dodo-as/dodo,lodo/lodo
shell
## Code Before: BD=/home/lodo # Chatty set -x # Exit on error set -e export HOME=$BD cp config/database.yml.example config/database.yml bundle install rake test ## Instruction: Update Hudson script with db creation commands ## Code After: BD=/home/lodo # Chatty set -x # Exit on error set -e export HOME=$BD cp...
a15d2956cfd48e0d46d5d4cf567af05641b4c8e6
yunity/api/utils.py
yunity/api/utils.py
from django.http import JsonResponse class ApiBase(object): @classmethod def success(cls, data, status=200): """ :type data: dict :type status: int :rtype JsonResponse """ return JsonResponse(data, status=status) @classmethod def error(cls, error, stat...
from functools import wraps from json import loads as load_json from django.http import JsonResponse class ApiBase(object): @classmethod def validation_failure(cls, message, status=400): """ :type message: str :type status: int :rtype JsonResponse """ return J...
Implement JSON request validation decorator
Implement JSON request validation decorator with @NerdyProjects
Python
agpl-3.0
yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/yunity-core,yunity/foodsaving-backend,yunity/yunity-core
python
## Code Before: from django.http import JsonResponse class ApiBase(object): @classmethod def success(cls, data, status=200): """ :type data: dict :type status: int :rtype JsonResponse """ return JsonResponse(data, status=status) @classmethod def error(...
21cfd61642adadef6a611a9c7120c6469febef80
static/src/utils/requests.js
static/src/utils/requests.js
export const loadJSON = (url, postData = undefined) => new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.open(postData ? 'post' : 'get', url, true); xhr.responseType = 'json'; xhr.onload = () => { const { status } = xhr; if (status === 200) { resolve(xhr.response); } els...
export const loadJSON = (url, postData) => new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.open(postData ? 'post' : 'get', url, true); xhr.responseType = 'json'; xhr.onload = () => { const { status } = xhr; if (status === 200) { resolve(xhr.response); } else { re...
Remove undefined default parameter value
Remove undefined default parameter value
JavaScript
mit
ffont/freesound-explorer,ffont/freesound-explorer,ffont/freesound-explorer
javascript
## Code Before: export const loadJSON = (url, postData = undefined) => new Promise((resolve, reject) => { const xhr = new XMLHttpRequest(); xhr.open(postData ? 'post' : 'get', url, true); xhr.responseType = 'json'; xhr.onload = () => { const { status } = xhr; if (status === 200) { resolve(xhr.resp...
ef114c5eaec1d95a30e1c3d04302d03a2b887fe9
transition.js
transition.js
/* ======================================================================== * Bootstrap: transition.js v3.3.4 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twb...
/* ======================================================================== * Bootstrap: transition.js v3.3.4 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https://github.com/twb...
Add explicit comments on animation support
Add explicit comments on animation support
JavaScript
unlicense
peterblazejewicz/mashup,peterblazejewicz/mashup
javascript
## Code Before: /* ======================================================================== * Bootstrap: transition.js v3.3.4 * http://getbootstrap.com/javascript/#transitions * ======================================================================== * Copyright 2011-2015 Twitter, Inc. * Licensed under MIT (https:...
91219045c62314951bb1be25ad46c24c6479fc1b
kolibri/core/assets/src/api-resources/membership.js
kolibri/core/assets/src/api-resources/membership.js
const Resource = require('../api-resource').Resource; class MembershipResource extends Resource { static resourceName() { return 'membership'; } } module.exports = MembershipResource;
const Resource = require('../api-resource').Resource; /** * @example <caption>Get all memberships for a given user</caption> * MembershipResource.getCollection({ user_id: userId }) */ class MembershipResource extends Resource { static resourceName() { return 'membership'; } } module.exports = MembershipRes...
Add JSDoc comment for MembershipResource usage
Add JSDoc comment for MembershipResource usage
JavaScript
mit
DXCanas/kolibri,christianmemije/kolibri,lyw07/kolibri,rtibbles/kolibri,MingDai/kolibri,MingDai/kolibri,MingDai/kolibri,benjaoming/kolibri,mrpau/kolibri,rtibbles/kolibri,lyw07/kolibri,lyw07/kolibri,benjaoming/kolibri,rtibbles/kolibri,learningequality/kolibri,DXCanas/kolibri,christianmemije/kolibri,learningequality/kolib...
javascript
## Code Before: const Resource = require('../api-resource').Resource; class MembershipResource extends Resource { static resourceName() { return 'membership'; } } module.exports = MembershipResource; ## Instruction: Add JSDoc comment for MembershipResource usage ## Code After: const Resource = require('../a...
3ca1bdf725b35dd9cd32c0491f47ae10f2b9a2d2
proguard.sbt
proguard.sbt
import com.typesafe.sbt.SbtProguard.ProguardKeys._ proguardSettings javaOptions in (Proguard, proguard) := Seq("-Xmx4G") ProguardKeys.options in Proguard ++= Seq("-dontnote", "-dontwarn", "-ignorewarnings") ProguardKeys.options in Proguard += """ -dontoptimize -optimizations !code/simplification/arithmetic,!field/*...
import com.typesafe.sbt.SbtProguard.ProguardKeys._ proguardSettings javaOptions in (Proguard, proguard) := Seq("-Xmx4G") ProguardKeys.options in Proguard ++= Seq("-dontnote", "-dontwarn", "-ignorewarnings") ProguardKeys.options in Proguard += """ -dontoptimize -optimizations !code/simplification/arithmetic,!field/*...
Add -keepnames on enum and private ones
Add -keepnames on enum and private ones
Scala
mit
ikuo/ofx-tools
scala
## Code Before: import com.typesafe.sbt.SbtProguard.ProguardKeys._ proguardSettings javaOptions in (Proguard, proguard) := Seq("-Xmx4G") ProguardKeys.options in Proguard ++= Seq("-dontnote", "-dontwarn", "-ignorewarnings") ProguardKeys.options in Proguard += """ -dontoptimize -optimizations !code/simplification/ari...
c01b693e655ce146e8be281b2dda93a64a7d4bca
src/Propellor/Property/LightDM.hs
src/Propellor/Property/LightDM.hs
{-# LANGUAGE FlexibleInstances #-} -- | Maintainer: Sean Whitton <spwhitton@spwhitton.name> module Propellor.Property.LightDM where import Propellor.Base import qualified Propellor.Property.ConfFile as ConfFile -- | Configures LightDM to skip the login screen and autologin as a user. autoLogin :: User -> Property N...
{-# LANGUAGE FlexibleInstances #-} -- | Maintainer: Sean Whitton <spwhitton@spwhitton.name> module Propellor.Property.LightDM where import Propellor.Base import qualified Propellor.Property.Apt as Apt import qualified Propellor.Property.ConfFile as ConfFile installed :: Property NoInfo installed = Apt.installed ["l...
Add convenience .installed for lightdm.
Add convenience .installed for lightdm. Signed-off-by: Jelmer Vernooij <9648816b5a0c45426c88e14104568baf9283dd28@jelmer.uk>
Haskell
bsd-2-clause
ArchiveTeam/glowing-computing-machine
haskell
## Code Before: {-# LANGUAGE FlexibleInstances #-} -- | Maintainer: Sean Whitton <spwhitton@spwhitton.name> module Propellor.Property.LightDM where import Propellor.Base import qualified Propellor.Property.ConfFile as ConfFile -- | Configures LightDM to skip the login screen and autologin as a user. autoLogin :: Us...
1e4bb9457bb7947f75b16faf5aa3c91cb3242914
rails/spec/helpers/divisions_helper_spec.rb
rails/spec/helpers/divisions_helper_spec.rb
require 'spec_helper' describe DivisionsHelper do # TODO Enable this test # describe '#formatted_motion_text' do # subject { formatted_motion_text division } # let(:division) { mock_model(Division, motion: "A bill [No. 2] and votes") } # it { should eq("\n<p>A bill [No. 2] and votes</p>") } # end en...
require 'spec_helper' describe DivisionsHelper do describe '#formatted_motion_text' do subject { formatted_motion_text division } let(:division) { mock_model(Division, motion: "A bill [No. 2] and votes") } it { should eq("<p>A bill [No. 2] and votes</p>\n") } end end
Enable test now this is working since we switched to Marker
Enable test now this is working since we switched to Marker
Ruby
agpl-3.0
mysociety/publicwhip,mysociety/publicwhip,mysociety/publicwhip
ruby
## Code Before: require 'spec_helper' describe DivisionsHelper do # TODO Enable this test # describe '#formatted_motion_text' do # subject { formatted_motion_text division } # let(:division) { mock_model(Division, motion: "A bill [No. 2] and votes") } # it { should eq("\n<p>A bill [No. 2] and votes</p...
795426bd94d165fdf310b164c550d4996bc37beb
app/assets/stylesheets/_variables.scss
app/assets/stylesheets/_variables.scss
// these variables override bootstrap defaults $baseFontFamily: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; $textColor: #333;
// these variables override bootstrap defaults $baseFontFamily: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; $textColor: #333; @mixin font-family-sans-serif() { font-family: $baseFontFamily; }
Apply font changes throughout the text fields. This fixes a bug in the bootstrap gem.
Apply font changes throughout the text fields. This fixes a bug in the bootstrap gem.
SCSS
agpl-3.0
digitalnatives/jobsworth,rafaspinola/jobsworth,rafaspinola/jobsworth,digitalnatives/jobsworth,digitalnatives/jobsworth,webstream-io/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,xuewenfei/jobsworth,ari/jobsworth,rafaspinola/jobsworth,webstream-io/jobsworth,ari/jobsworth,ari/jobsworth,xuewenfei/jobsworth,rafaspinola...
scss
## Code Before: // these variables override bootstrap defaults $baseFontFamily: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; $textColor: #333; ## Instruction: Apply font changes throughout the text fields. This fixes a bug in the bootstrap gem. ## Code After: // these variables ...
f076226b3f7f3ebd11ab43993e9c19d1468355fd
app/views/project_activities/_index.html.erb
app/views/project_activities/_index.html.erb
<h5 class="text-center"><%= t("projects.index.activity_tab") %></h5> <hr> <ul class="no-style double-line content-activities"> <% if @activities.size == 0 then %> <li><em><%= t 'projects.index.no_activities' %></em></li> <% else %> <% @activities.each do |activity| %> <li><span class="text-muted"><%= ...
<h5 class="text-center"><%= t("projects.index.activity_tab") %></h5> <hr> <ul class="no-style double-line content-activities"> <% if @activities.size == 0 then %> <li><em><%= t 'projects.index.no_activities' %></em></li> <% else %> <% @activities.each do |activity| %> <li><span class="text-muted"><%= ...
Add task name to project activity
Add task name to project activity [SCI-275]
HTML+ERB
mpl-2.0
mlorb/scinote-web,mlorb/scinote-web,Ducz0r/scinote-web,Ducz0r/scinote-web,mlorb/scinote-web,Ducz0r/scinote-web
html+erb
## Code Before: <h5 class="text-center"><%= t("projects.index.activity_tab") %></h5> <hr> <ul class="no-style double-line content-activities"> <% if @activities.size == 0 then %> <li><em><%= t 'projects.index.no_activities' %></em></li> <% else %> <% @activities.each do |activity| %> <li><span class="...
d88c1221e2d07b300f29ef2605acea18c9e7fbf2
test/tiny.py
test/tiny.py
from mpipe import OrderedStage, Pipeline def increment(value): return value + 1 def double(value): return value * 2 stage1 = OrderedStage(increment, 3) stage2 = OrderedStage(double, 3) stage1.link(stage2) pipe = Pipeline(stage1) for number in range(10): pipe.put(number) pipe.put(None) for result in pip...
from mpipe import OrderedStage, Pipeline def increment(value): return value + 1 def double(value): return value * 2 stage1 = OrderedStage(increment, 3) stage2 = OrderedStage(double, 3) pipe = Pipeline(stage1.link(stage2)) for number in range(10): pipe.put(number) pipe.put(None) for result in pipe.resu...
Use multi-link pipeline construction syntax.
Use multi-link pipeline construction syntax.
Python
mit
vmlaker/mpipe
python
## Code Before: from mpipe import OrderedStage, Pipeline def increment(value): return value + 1 def double(value): return value * 2 stage1 = OrderedStage(increment, 3) stage2 = OrderedStage(double, 3) stage1.link(stage2) pipe = Pipeline(stage1) for number in range(10): pipe.put(number) pipe.put(None) f...
73bb9dc0a280dadde0929aa64c5ea87b5d42b9ff
src/Concise/Console/Command.php
src/Concise/Console/Command.php
<?php namespace Concise\Console; use Concise\Console\TestRunner\DefaultTestRunner; use Concise\Console\ResultPrinter\ResultPrinterProxy; use Concise\Console\ResultPrinter\DefaultResultPrinter; use Concise\Console\ResultPrinter\CIResultPrinter; class Command extends \PHPUnit_TextUI_Command { protected $ci = false...
<?php namespace Concise\Console; use Concise\Console\TestRunner\DefaultTestRunner; use Concise\Console\ResultPrinter\ResultPrinterProxy; use Concise\Console\ResultPrinter\DefaultResultPrinter; use Concise\Console\ResultPrinter\CIResultPrinter; class Command extends \PHPUnit_TextUI_Command { protected $ci = false...
Use CI mode automatically if colours are not supported
Use CI mode automatically if colours are not supported
PHP
mit
elliotchance/concise,elliotchance/concise
php
## Code Before: <?php namespace Concise\Console; use Concise\Console\TestRunner\DefaultTestRunner; use Concise\Console\ResultPrinter\ResultPrinterProxy; use Concise\Console\ResultPrinter\DefaultResultPrinter; use Concise\Console\ResultPrinter\CIResultPrinter; class Command extends \PHPUnit_TextUI_Command { prote...
48d7bb6353dec050b3020e54028984eea4d350d1
README.md
README.md
Package nanomsg adds language bindings for nanomsg in Go. nanomsg is a high-performance implementation of several "scalability protocols". See http://nanomsg.org/ for more information. This is a work in progress. nanomsg is still in a beta stage. Expect its API, or this binding, to change. ## Installing ### Using *...
Package nanomsg adds language bindings for nanomsg in Go. nanomsg is a high-performance implementation of several "scalability protocols". See http://nanomsg.org/ for more information. This is a work in progress. nanomsg is still in a beta stage. Expect its API, or this binding, to change. ## Installing This is a c...
Add short prerequisite information to install
Add short prerequisite information to install Closes #14.
Markdown
mit
op/go-nanomsg
markdown
## Code Before: Package nanomsg adds language bindings for nanomsg in Go. nanomsg is a high-performance implementation of several "scalability protocols". See http://nanomsg.org/ for more information. This is a work in progress. nanomsg is still in a beta stage. Expect its API, or this binding, to change. ## Install...
0b078257b39db2ceddfb1f1a44f66aab40eac386
containers/Pollard.js
containers/Pollard.js
import React, { Component } from 'react'; import SetPage from '../components/SetPage'; export default class Pollard extends Component { render() { return ( <div className="container"> { this.props.children } </div> ); } }
import React, { Component } from 'react'; import { Link } from 'react-router'; import SetPage from '../components/SetPage'; export default class Pollard extends Component { render() { return ( <div className="container"> <ul> <li><Link to="/setlist" activeClassName="active">Setlist</Link></li>...
Add routing link on /
Add routing link on /
JavaScript
mit
freeformpdx/pollard,spencerliechty/pollard,freeformpdx/pollard,spencerliechty/pollard,spncrlkt/pollard,spncrlkt/pollard,spncrlkt/pollard,spencerliechty/pollard,freeformpdx/pollard
javascript
## Code Before: import React, { Component } from 'react'; import SetPage from '../components/SetPage'; export default class Pollard extends Component { render() { return ( <div className="container"> { this.props.children } </div> ); } } ## Instruction: Add routing link on / ## Code Afte...
d25b15a7142016eddfb275555e53e0c4bd90f606
README.md
README.md
`ipa` is a CLI utility for managing your $PATH vars ### Installing IPA curl https://raw.github.com/mattswe/ipa/master/install.sh | sh ### Output look like: ```shell /home/matt/.rvm/gems/ruby-1.9.2-p290/bin /home/matt/.rvm/gems/ruby-1.9.2-p290@global/bin /home/matt/.rvm/rubies/ruby-1.9.2-p290/bin /home/matt/.r...
`ipa` is a CLI utility for managing your $PATH vars ### Installing IPA curl https://raw.github.com/mattswe/ipa/master/install.sh | sh ### Commands List your $PATH $ bash ipa [1] /Users/matt/.rvm/gems/ruby-1.9.2-p290@rails3tutorial/bin [2] /Users/matt/.rvm/gems/ruby-1.9.2-p290@global/bin ...
Create "commands" section in readme
Create "commands" section in readme
Markdown
mit
sweenzor/ipa
markdown
## Code Before: `ipa` is a CLI utility for managing your $PATH vars ### Installing IPA curl https://raw.github.com/mattswe/ipa/master/install.sh | sh ### Output look like: ```shell /home/matt/.rvm/gems/ruby-1.9.2-p290/bin /home/matt/.rvm/gems/ruby-1.9.2-p290@global/bin /home/matt/.rvm/rubies/ruby-1.9.2-p290/b...
240731f4cb90649f80a783162c776bfa3aca4981
_config.yml
_config.yml
title: Dev.Opera url: http://dev.opera.com/ permalink: /:categories/:title/ future: false markdown: kramdown kramdown: auto_ids: true transliterated_header_ids: true include: - '.htaccess' exclude: - 'node_modules' - 'Gruntfile.js' - 'package.json' - 'install.sh' - 'README.md' - 'LICENSE.md' - 'CONTRIBUTING.md' -...
title: Dev.Opera url: http://dev.opera.com/ permalink: /:categories/:title/ future: false markdown: kramdown kramdown: auto_ids: true transliterated_header_ids: true include: - '.htaccess' exclude: - 'node_modules' - 'Gruntfile.js' - 'package.json' - 'install.sh' - 'README.md' - 'LICENSE.md' - 'CONTRIBUTING.md' -...
Set of default values for entries based on location
Set of default values for entries based on location
YAML
apache-2.0
initaldk/devopera,michaelstewart/devopera,kenarai/devopera,payeldillip/devopera,Mtmotahar/devopera,payeldillip/devopera,kenarai/devopera,andreasbovens/devopera,shwetank/devopera,operasoftware/devopera,cvan/devopera,operasoftware/devopera,operasoftware/devopera,paulirish/devopera,initaldk/devopera,andreasbovens/devopera...
yaml
## Code Before: title: Dev.Opera url: http://dev.opera.com/ permalink: /:categories/:title/ future: false markdown: kramdown kramdown: auto_ids: true transliterated_header_ids: true include: - '.htaccess' exclude: - 'node_modules' - 'Gruntfile.js' - 'package.json' - 'install.sh' - 'README.md' - 'LICENSE.md' - 'CO...
c8cd27b615ad9f8b3e4a03d1c1b4a6d2951a9f37
mendel/angular/src/app/components/category-filter-bar/category-filter-bar.html
mendel/angular/src/app/components/category-filter-bar/category-filter-bar.html
<div id="am-category-filter-bar" class="show-for-medium"> <div class="row collapse"> <div id="inputWrapper" class="small-12 columns"> <!-- Category Filter Input --> <input ng-model="categoryFilterBar.input" ng-model-options="{ debounce: 100 }" type="text" focus-if="categoryFilterBar.focusInput" ng-dis...
<div id="am-category-filter-bar" class="show-for-medium"> <div class="row collapse"> <div id="inputWrapper" class="small-12 columns"> <!-- Category Filter Input (Class "mousetrap" tells hotkeys directive to allow hotkey input on this ) --> <input class="mousetrap" ng-model="categoryFilterBar.input" ng...
Enable hotkeys only on category filter bar input
Enable hotkeys only on category filter bar input
HTML
agpl-3.0
Architizer/mendel,Architizer/mendel,Architizer/mendel,Architizer/mendel
html
## Code Before: <div id="am-category-filter-bar" class="show-for-medium"> <div class="row collapse"> <div id="inputWrapper" class="small-12 columns"> <!-- Category Filter Input --> <input ng-model="categoryFilterBar.input" ng-model-options="{ debounce: 100 }" type="text" focus-if="categoryFilterBar.fo...
98c8075b9b665ecfc7848a4d6fd588349398dd6b
_posts/2015-10-18-moving.md
_posts/2015-10-18-moving.md
--- layout: post title: Moving Hosting date: 2015-10-18 summary: It's time categories: --- Heyo, quick announcement that this site will be moving hosting from the [Nearly Free Speech Network](https://www.nearlyfreespeech.net/) to a custom solution hosted at [Digital Ocean](https://www.digitalocean.c...
--- layout: post title: Moving Hosting date: 2015-10-18 summary: It's time categories: --- Heyo, quick announcement that this site will be moving hosting from the [Nearly Free Speech Network](https://www.nearlyfreespeech.net/) to a custom solution hosted at [Digital Ocean](https://www.digitalocean.c...
Update post migration to digital ocean complete
Update post migration to digital ocean complete
Markdown
mit
RandomSeeded/pixyll,RandomSeeded/pixyll
markdown
## Code Before: --- layout: post title: Moving Hosting date: 2015-10-18 summary: It's time categories: --- Heyo, quick announcement that this site will be moving hosting from the [Nearly Free Speech Network](https://www.nearlyfreespeech.net/) to a custom solution hosted at [Digital Ocean](https://ww...
597a941ad2ec9359988674338a489dcb68a296cc
exercises/templates/exercises/list_exercises.html
exercises/templates/exercises/list_exercises.html
{% extends "base.html" %} {% block content %} {% for page in page_list %} <p><a href="{% url exercises:show page.pk %}">{{ page }}</a></p> {% endfor %} {% endblock %}
{% extends "base.html" %} {% block content %} <a href="{% url exercises:add %}">Lisää harjoitus</a> {% for page in page_list %} <p><a href="{% url exercises:show page.pk %}">{{ page }}</a></p> {% endfor %} {% endblock %}
Add link for adding new exercises
Add link for adding new exercises
HTML
agpl-3.0
jluttine/django-modelanswers,jluttine/django-modelanswers
html
## Code Before: {% extends "base.html" %} {% block content %} {% for page in page_list %} <p><a href="{% url exercises:show page.pk %}">{{ page }}</a></p> {% endfor %} {% endblock %} ## Instruction: Add link for adding new exercises ## Code After: {% extends "base.html" %} {% block content %} <a href="{% url...
8876cd7f6f3c8735291d9583f70cd9dfd1c7443a
.travis.yml
.travis.yml
language: go go: - tip install: - make get-deps script: - make check
language: go before_install: - sudo apt-get update -q - sudo apt-get install libvips-dev go: - tip install: - make get-deps script: - make check
Install libvips, as required by the vips package
Install libvips, as required by the vips package
YAML
bsd-3-clause
espebra/filebin,espebra/filebin,espebra/filebin,espebra/filebin
yaml
## Code Before: language: go go: - tip install: - make get-deps script: - make check ## Instruction: Install libvips, as required by the vips package ## Code After: language: go before_install: - sudo apt-get update -q - sudo apt-get install libvips-dev go: - tip install: - make get-deps script: ...
88ba9b2b2af325d5a74959e997451230c0bbc9f1
DependencyInjection/Compiler/ValidationPass.php
DependencyInjection/Compiler/ValidationPass.php
<?php /* * This file is part of the TecnoCreaciones package. * * (c) www.tecnocreaciones.com.ve * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tecnocreaciones\Bundle\AjaxFOSUserBundle\DependencyInjection\Compiler; u...
<?php /* * This file is part of the TecnoCreaciones package. * * (c) www.tecnocreaciones.com.ve * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tecnocreaciones\Bundle\AjaxFOSUserBundle\DependencyInjection\Compiler; u...
Fix bug de compatibilidad con FOSUser 1.3
Fix bug de compatibilidad con FOSUser 1.3
PHP
mit
Tecnocreaciones/AjaxFOSUserBundle
php
## Code Before: <?php /* * This file is part of the TecnoCreaciones package. * * (c) www.tecnocreaciones.com.ve * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Tecnocreaciones\Bundle\AjaxFOSUserBundle\DependencyInject...
165ef87f9fd4f11f4d37505990b531d1b3dee428
source/kepo.ts
source/kepo.ts
// The currently-pressed key codes from oldest to newest const pressedKeyCodes: number[] = [] export const pressedKeyCodesFromOldestToNewest = pressedKeyCodes as ReadonlyArray<number> export function isKeyPressed(keyCode: number): boolean { return pressedKeyCodes.includes(keyCode) } export function areAllKey...
// The currently-pressed key codes from oldest to newest const pressedKeyCodes: number[] = [] export const pressedKeyCodesFromOldestToNewest = pressedKeyCodes as ReadonlyArray<number> export function isKeyPressed(keyCode: number): boolean { return pressedKeyCodes.includes(keyCode) } export function areAllKey...
Clear all pressed keys when tab loses focus
Clear all pressed keys when tab loses focus
TypeScript
mit
start/kepo,start/kepo,start/kepo
typescript
## Code Before: // The currently-pressed key codes from oldest to newest const pressedKeyCodes: number[] = [] export const pressedKeyCodesFromOldestToNewest = pressedKeyCodes as ReadonlyArray<number> export function isKeyPressed(keyCode: number): boolean { return pressedKeyCodes.includes(keyCode) } export fu...
4837ed0c149073bc970f46e9aa0c36f896559e3a
src/Growl.php
src/Growl.php
<?php namespace BryanCrowe\Growl; use BryanCrowe\Growl\Builder\BuilderAbstract; class Growl { /** * The Builder to use for building the command. * * @var BuilderAbstract */ protected $builder; /** * An array of options to use for building commands. * * @var array ...
<?php namespace BryanCrowe\Growl; use BryanCrowe\Growl\Builder\BuilderAbstract; class Growl { /** * The Builder to use for building the command. * * @var BuilderAbstract */ protected $builder; /** * An array of options to use for building commands. * * @var array ...
Use set() method instead of __call magic method
Use set() method instead of __call magic method
PHP
mit
bcrowe/growl
php
## Code Before: <?php namespace BryanCrowe\Growl; use BryanCrowe\Growl\Builder\BuilderAbstract; class Growl { /** * The Builder to use for building the command. * * @var BuilderAbstract */ protected $builder; /** * An array of options to use for building commands. * * ...
0ee382387ff83da0c740dbc05c1a567b4f60cde1
server/server.js
server/server.js
import express from 'express'; import logger from 'morgan'; import validator from 'express-validator'; import bodyParser from 'body-parser'; import verifyToken from './middlewares/auth'; import valueChecker from './middlewares/valueChecker'; import router from './routes/router'; const app = express(); const port = pro...
import express from 'express'; import logger from 'morgan'; import validator from 'express-validator'; import bodyParser from 'body-parser'; import verifyToken from './middlewares/verifyToken'; import valueChecker from './middlewares/valueChecker'; import router from './routes/router'; const app = express(); const por...
Modify the imported module filename
Modify the imported module filename
JavaScript
mit
vynessa/dman,vynessa/dman
javascript
## Code Before: import express from 'express'; import logger from 'morgan'; import validator from 'express-validator'; import bodyParser from 'body-parser'; import verifyToken from './middlewares/auth'; import valueChecker from './middlewares/valueChecker'; import router from './routes/router'; const app = express(); ...
99b668594582882bb1fbca3b3793ff452edac2c1
updatebot/__init__.py
updatebot/__init__.py
from updatebot.bot import Bot from updatebot.current import Bot as CurrentBot from updatebot.native import Bot as NativeBot from updatebot.config import UpdateBotConfig
from updatebot.bot import Bot from updatebot.current import Bot as CurrentBot from updatebot.config import UpdateBotConfig
Remove import of missing module
Remove import of missing module
Python
apache-2.0
sassoftware/mirrorball,sassoftware/mirrorball
python
## Code Before: from updatebot.bot import Bot from updatebot.current import Bot as CurrentBot from updatebot.native import Bot as NativeBot from updatebot.config import UpdateBotConfig ## Instruction: Remove import of missing module ## Code After: from updatebot.bot import Bot from updatebot.current import Bot as C...
d67099ce7d30e31b98251f7386b33caaa5199a01
censusreporter/config/prod/wsgi.py
censusreporter/config/prod/wsgi.py
import os from django.core.wsgi import get_wsgi_application import newrelic.agent newrelic.agent.initialize('/var/www-data/censusreporter/conf/newrelic.ini') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.prod.settings") application = get_wsgi_application()
import os from django.core.wsgi import get_wsgi_application import newrelic.agent newrelic.agent.initialize(os.path.join(os.path.abspath(os.path.dirname(__file__)), '../../../conf/newrelic.ini')) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.prod.settings") application = get_wsgi_application()
Correct location of newrelic config
Correct location of newrelic config
Python
mit
sseguku/simplecensusug,Code4SA/censusreporter,Code4SA/censusreporter,Code4SA/censusreporter,sseguku/simplecensusug,4bic/censusreporter,sseguku/simplecensusug,4bic/censusreporter,Code4SA/censusreporter,4bic/censusreporter
python
## Code Before: import os from django.core.wsgi import get_wsgi_application import newrelic.agent newrelic.agent.initialize('/var/www-data/censusreporter/conf/newrelic.ini') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.prod.settings") application = get_wsgi_application() ## Instruction: Correct location o...
1145e239195e74803f9727d31132a9bb94f32144
content/posts/draft-ansible.md
content/posts/draft-ansible.md
title: Liberating effect of Ansible ## Outline of a future article - No fear. Certainty. - Idempotent behavior - Version control. Infractructure as a code - Consumer approach to servers - Metaphor: moving into an apartment vs the hotel room (hotel rider list for a celebrity) - Cheap test deployment ...
title: Liberating effect of Ansible ## Outline of a future article - No fear. Certainty. - Idempotent behavior - Version control. Infractructure as a code - Consumer approach to servers - Metaphor: moving into an apartment vs the hotel room (hotel rider list for a celebrity) - Why copy shell and...
Add note on shell settings
Add note on shell settings
Markdown
apache-2.0
sio/potyarkin.ml,sio/potyarkin.ml
markdown
## Code Before: title: Liberating effect of Ansible ## Outline of a future article - No fear. Certainty. - Idempotent behavior - Version control. Infractructure as a code - Consumer approach to servers - Metaphor: moving into an apartment vs the hotel room (hotel rider list for a celebrity) - Cheap ...
d8b33c96b69f0e9cc7f315b341a29d6d2bdfa2a6
Keter/TempFolder.hs
Keter/TempFolder.hs
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} module Keter.TempFolder ( TempFolder , setup , getFolder ) where import Keter.Prelude import Data.Word (Word) import Keter.Postgres (Appname) import qualified Data.IORef ...
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} module Keter.TempFolder ( TempFolder , setup , getFolder ) where import Keter.Prelude import Data.Word (Word) import Keter.Postgres (Appname) import qualified Data.IORef ...
Remove another usage of encode
Remove another usage of encode
Haskell
mit
andrewthad/keter,ajnsit/keter,tolysz/keter,ajnsit/keter,snoyberg/keter,andrewthad/keter,creichert/keter,mwotton/keter,telser/keter,snoyberg/keter,tolysz/keter,bermanjosh/keter,mwotton/keter,creichert/keter,bermanjosh/keter,telser/keter
haskell
## Code Before: {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} module Keter.TempFolder ( TempFolder , setup , getFolder ) where import Keter.Prelude import Data.Word (Word) import Keter.Postgres (Appname) import quali...
b26337f0ce61d4b4cc5b4e413c6bac6500db44c8
app/models/experience.rb
app/models/experience.rb
class Experience < ActiveRecord::Base extend FriendlyId has_many :cocktails, dependent: :destroy accepts_nested_attributes_for :cocktails, reject_if: lambda { |cocktail| cocktail[:substance].blank? && cocktail[:dosage].blank? } friendly_id :title, use: :slugged is_impressionable validates :title, :pseudo...
class Experience < ActiveRecord::Base extend FriendlyId has_many :cocktails, dependent: :destroy accepts_nested_attributes_for :cocktails, reject_if: :cocktails_is_incomplete friendly_id :title, use: :slugged is_impressionable validates :title, :pseudonym, :body, presence: true default_scope { order('...
Move condition to method for improved readability.
Move condition to method for improved readability.
Ruby
mit
horacio/psychlopedia,horacio/psychlopedia,horacio/psychlopedia,horacio/psychlopedia
ruby
## Code Before: class Experience < ActiveRecord::Base extend FriendlyId has_many :cocktails, dependent: :destroy accepts_nested_attributes_for :cocktails, reject_if: lambda { |cocktail| cocktail[:substance].blank? && cocktail[:dosage].blank? } friendly_id :title, use: :slugged is_impressionable validates...
4b954f98d657c0eda2049dce6a3e648b2ce9f80b
src/box2dbaseitem.cpp
src/box2dbaseitem.cpp
float Box2DBaseItem::m_scaleRatio = 32.0f; Box2DBaseItem::Box2DBaseItem(GameScene *parent ) : GameItem(parent) , m_initialized(false) , m_synchronizing(false) , m_synchronize(true) { } bool Box2DBaseItem::initialized() const { return m_initialized; } /* * Shamelessly stolen from qml-box2d proje...
float Box2DBaseItem::m_scaleRatio = 32.0f; Box2DBaseItem::Box2DBaseItem(GameScene *parent ) : GameItem(parent) , m_initialized(false) , m_synchronizing(false) , m_synchronize(true) { } bool Box2DBaseItem::initialized() const { return m_initialized; } /* * Shamelessly stolen from qml-box2d proje...
Use helper function to get the new rotation
Use helper function to get the new rotation
C++
mit
paulovap/Bacon2D,kenvandine/Bacon2D,paulovap/Bacon2D,arcrowel/Bacon2D,kenvandine/Bacon2D,arcrowel/Bacon2D
c++
## Code Before: float Box2DBaseItem::m_scaleRatio = 32.0f; Box2DBaseItem::Box2DBaseItem(GameScene *parent ) : GameItem(parent) , m_initialized(false) , m_synchronizing(false) , m_synchronize(true) { } bool Box2DBaseItem::initialized() const { return m_initialized; } /* * Shamelessly stolen from...
89a800b0bfb582aafd0b6c2fd9a859e5111ebd24
README.md
README.md
fish ==== Fish functions and configs ### Installation ```shell git clone https://github.com/gustavowt/fish ~/.config/fish ``` ### Alias ```shell alias rake='bundle exec rake' alias spec='bundle exec spec' alias rspec='bundle exec rspec' alias brails='bundle exec rails' alias rtest='env SPEC=true ruby -Itest' ```
fish ==== Fish functions and configs ### Installation ```shell git clone https://github.com/gustavowt/fish ~/.config/fish ``` ### Alias #### Rails ```shell alias rake='bundle exec rake' alias spec='bundle exec spec' alias rspec='bundle exec rspec' alias brails='bundle exec rails' alias rtest='env SPEC=true ruby -I...
Add shell section and rails title
Add shell section and rails title
Markdown
mit
gustavowt/fish,gustavowt/fish
markdown
## Code Before: fish ==== Fish functions and configs ### Installation ```shell git clone https://github.com/gustavowt/fish ~/.config/fish ``` ### Alias ```shell alias rake='bundle exec rake' alias spec='bundle exec spec' alias rspec='bundle exec rspec' alias brails='bundle exec rails' alias rtest='env SPEC=true ru...
4089b913035698bf23bd8d876144b0f0fe826b60
src/modules/articles/components/extensions/MediaExtension.tsx
src/modules/articles/components/extensions/MediaExtension.tsx
import * as React from 'react'; import { IExtensionProps } from './extensions'; import { ArticleMedia } from '../ArticleMedia'; interface IParsedProps { mediumIds: string[] } export const MediaExtension: React.FunctionComponent<IExtensionProps> = ({ props, article }) => { const parsedProps = props as IParsed...
import * as React from 'react'; import { IExtensionProps } from './extensions'; import { ArticleMedia } from '../ArticleMedia'; interface IParsedProps { mediumIds: string[] } export const MediaExtension: React.FunctionComponent<IExtensionProps> = ({ props, article }) => { const parsedProps = props as IParsed...
Use set for filtering media.
Use set for filtering media.
TypeScript
mit
stuyspec/client-app
typescript
## Code Before: import * as React from 'react'; import { IExtensionProps } from './extensions'; import { ArticleMedia } from '../ArticleMedia'; interface IParsedProps { mediumIds: string[] } export const MediaExtension: React.FunctionComponent<IExtensionProps> = ({ props, article }) => { const parsedProps = ...
03d53d7265e2f1a708d7e560f6a2d0e1a5fa0b6b
app/controllers/static.go
app/controllers/static.go
package controllers import ( "github.com/julienschmidt/httprouter" "github.com/raggaer/castro/app/util" "net/http" ) func ExtensionStatic(w http.ResponseWriter, req *http.Request, ps httprouter.Params) { // Get extension identifier id := ps.ByName("id") // Check if static file exists dir, exists := util.Exten...
package controllers import ( "github.com/julienschmidt/httprouter" "github.com/raggaer/castro/app/util" "net/http" ) func ExtensionStatic(w http.ResponseWriter, req *http.Request, ps httprouter.Params) { // Get extension identifier id := ps.ByName("id") // Check if static file exists dir, exists := util.Exten...
Use proper filename for http.ServeContent
Use proper filename for http.ServeContent
Go
mit
Raggaer/castro,Raggaer/castro,Raggaer/castro
go
## Code Before: package controllers import ( "github.com/julienschmidt/httprouter" "github.com/raggaer/castro/app/util" "net/http" ) func ExtensionStatic(w http.ResponseWriter, req *http.Request, ps httprouter.Params) { // Get extension identifier id := ps.ByName("id") // Check if static file exists dir, exis...
38f243aac7f6f53d38deb54d919b229783ee9dfd
tech/it/ai/computer-vision.md
tech/it/ai/computer-vision.md
In 2D, using distances from 3 different known points to allocate an unknown point. - Let the distances be d1, d2, d3 - Draw 3 circles with the centers at the three known points, and the radii are d1, d2, d3 appropriately. - These three circle will meet at the unknown point. ## Triangulation In 2D, using 2 known an...
In 2D, using distances from 3 different known points to allocate an unknown point. - Let the distances be d1, d2, d3 - Draw 3 circles with the centers at the three known points, and the radii are d1, d2, d3 appropriately. - These three circle will meet at the unknown point. ## Triangulation In 2D, using 2 known an...
Add ee127 hw4 question 1 for triangulation
Add ee127 hw4 question 1 for triangulation
Markdown
mit
samtron1412/docs
markdown
## Code Before: In 2D, using distances from 3 different known points to allocate an unknown point. - Let the distances be d1, d2, d3 - Draw 3 circles with the centers at the three known points, and the radii are d1, d2, d3 appropriately. - These three circle will meet at the unknown point. ## Triangulation In 2D, ...
14b04b085f0688c37580b7622ef36b062e4d0bcf
app/routes/ember-cli.js
app/routes/ember-cli.js
import Route from '@ember/routing/route'; export default Route.extend({ titleToken() { return 'Ember CLI'; } });
import Route from '@ember/routing/route'; export default Route.extend({ title() { return 'Ember CLI - Ember API Documentation'; } });
Update to return the title Function
Update to return the title Function
JavaScript
mit
ember-learn/ember-api-docs,ember-learn/ember-api-docs
javascript
## Code Before: import Route from '@ember/routing/route'; export default Route.extend({ titleToken() { return 'Ember CLI'; } }); ## Instruction: Update to return the title Function ## Code After: import Route from '@ember/routing/route'; export default Route.extend({ title() { return 'Ember CLI - Ember...
735b05cf0afe8aff15925202b65834d9d81e6498
Settings/Controls/Control.h
Settings/Controls/Control.h
class Control { public: Control(); Control(int id, HWND parent); ~Control(); RECT Dimensions(); void Enable(); void Disable(); bool Enabled(); void Enabled(bool enabled); std::wstring Text(); int TextAsInt(); bool Text(std::wstring text); bool Text(int value); vo...
class Control { public: Control(); Control(int id, HWND parent); ~Control(); virtual RECT Dimensions(); virtual void Enable(); virtual void Disable(); virtual bool Enabled(); virtual void Enabled(bool enabled); virtual std::wstring Text(); virtual int TextAsInt(); virtual...
Allow some control methods to be overridden
Allow some control methods to be overridden
C
bsd-2-clause
malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX
c
## Code Before: class Control { public: Control(); Control(int id, HWND parent); ~Control(); RECT Dimensions(); void Enable(); void Disable(); bool Enabled(); void Enabled(bool enabled); std::wstring Text(); int TextAsInt(); bool Text(std::wstring text); bool Text(int...
849be203e3aa5edcfbff7520ee6b1a1529126963
wcfsetup/install/files/acp/templates/__pageAddContent.tpl
wcfsetup/install/files/acp/templates/__pageAddContent.tpl
<textarea name="content[{@$languageID}]" id="content{@$languageID}">{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea> {if $pageType == 'text'} {capture assign='wysiwygSelector'}content{@$languageID}{/capture} {include file='wysiwyg' wysiwygSelector=$wysiwygSelector} {elseif $pageType == 'html...
<textarea name="content[{@$languageID}]" id="content{@$languageID}">{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea> {if $pageType == 'text'} {include file='wysiwyg' wysiwygSelector='content'|concat:$languageID} {elseif $pageType == 'html'} {include file='codemirror' codemirrorMode='htmlmixed'...
Use of `concat` instead of `{capture}`
Use of `concat` instead of `{capture}`
Smarty
lgpl-2.1
0xLeon/WCF,WoltLab/WCF,0xLeon/WCF,joshuaruesweg/WCF,Morik/WCF,Morik/WCF,WoltLab/WCF,MenesesEvandro/WCF,0xLeon/WCF,WoltLab/WCF,Cyperghost/WCF,SoftCreatR/WCF,Cyperghost/WCF,MenesesEvandro/WCF,Cyperghost/WCF,SoftCreatR/WCF,Morik/WCF,Cyperghost/WCF,WoltLab/WCF,Morik/WCF,Cyperghost/WCF,joshuaruesweg/WCF,joshuaruesweg/WCF,So...
smarty
## Code Before: <textarea name="content[{@$languageID}]" id="content{@$languageID}">{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea> {if $pageType == 'text'} {capture assign='wysiwygSelector'}content{@$languageID}{/capture} {include file='wysiwyg' wysiwygSelector=$wysiwygSelector} {elseif $p...
a77c26556aa015cc2ec8038cbd82bb6f938d3236
app/models/resource.rb
app/models/resource.rb
class Resource < ApplicationRecord belongs_to :user has_many :resource_languages has_many :languages, through: :resource_languages has_many :resource_tags has_many :tags, through: :resource_tags has_many :comments validates :title, presence: true validates :url, presence: true validates :url, uniquen...
class Resource < ApplicationRecord belongs_to :user has_many :resource_languages has_many :languages, through: :resource_languages has_many :resource_tags has_many :tags, through: :resource_tags has_many :comments validates :title, presence: true validates :url, presence: true validates :url, uniquen...
Allow nested attributes for languages in Resource model.
Allow nested attributes for languages in Resource model.
Ruby
mit
abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/sorter,abonner1/code_learning_resources_manager
ruby
## Code Before: class Resource < ApplicationRecord belongs_to :user has_many :resource_languages has_many :languages, through: :resource_languages has_many :resource_tags has_many :tags, through: :resource_tags has_many :comments validates :title, presence: true validates :url, presence: true validat...
67a140cb6d4ad6452c72e1fb4c9996652f39e50f
lib/puppet/reports/scribe.rb
lib/puppet/reports/scribe.rb
require 'puppet' require 'puppet/reportallthethings/scribe_reporter' Puppet::Reports.register_report(:scribe) do def process scribe = Puppet::ReportAllTheThings::ScribeReporter.new scribe.log(generate) end def generate JSON.pretty_generate(self.report_all_the_things) end end
require 'puppet' require 'puppet/reportallthethings/scribe_reporter' Puppet::Reports.register_report(:scribe) do def process scribe = Puppet::ReportAllTheThings::ScribeReporter.new scribe.log(generate) end def generate JSON.pretty_generate(Puppet::ReportAllTheThings::Helper.report_all_the_things(sel...
Update to use new method
Update to use new method
Ruby
apache-2.0
danzilio/puppet-scribe_reporter
ruby
## Code Before: require 'puppet' require 'puppet/reportallthethings/scribe_reporter' Puppet::Reports.register_report(:scribe) do def process scribe = Puppet::ReportAllTheThings::ScribeReporter.new scribe.log(generate) end def generate JSON.pretty_generate(self.report_all_the_things) end end ## In...
de8dc5afa701557f33148ac3839cb15f6a881571
cmake/VorbisConfig.cmake.in
cmake/VorbisConfig.cmake.in
@PACKAGE_INIT@ include(CMakeFindDependencyMacro) find_dependency(Ogg REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/vorbis-targets.cmake) set(Vorbis_Vorbis_FOUND 1) set(Vorbis_Enc_FOUND 0) set(Vorbis_File_FOUND 0) if(TARGET Vorbis::vorbisenc) set(Vorbis_Enc_FOUND TRUE) endif() if(TARGET Vorbis::vorbisfile) set...
@PACKAGE_INIT@ include(CMakeFindDependencyMacro) find_dependency(Ogg REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/VorbisTargets.cmake) set(Vorbis_Vorbis_FOUND 1) set(Vorbis_Enc_FOUND 0) set(Vorbis_File_FOUND 0) if(TARGET Vorbis::vorbisenc) set(Vorbis_Enc_FOUND TRUE) endif() if(TARGET Vorbis::vorbisfile) set(...
Fix CMake config-file package generation
Fix CMake config-file package generation
unknown
bsd-3-clause
ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis,ShiftMediaProject/vorbis
unknown
## Code Before: @PACKAGE_INIT@ include(CMakeFindDependencyMacro) find_dependency(Ogg REQUIRED) include(${CMAKE_CURRENT_LIST_DIR}/vorbis-targets.cmake) set(Vorbis_Vorbis_FOUND 1) set(Vorbis_Enc_FOUND 0) set(Vorbis_File_FOUND 0) if(TARGET Vorbis::vorbisenc) set(Vorbis_Enc_FOUND TRUE) endif() if(TARGET Vorbis::vor...
268df4ffa1f25f603a8faf59627a4fc1a79e69dd
Jappy.activity/Makefile
Jappy.activity/Makefile
library: rapydscript compile -b lib/jappy.pyj > lib/baselib.js
library: rapydscript compile -b lib/jappy.pyj > lib/baselib.js tags: cat code_editor.tag.html | riot --stdin --config js/riot.config.js --stdout > js/codeeditor.js cat toolbar.tag.html | riot --stdin --config js/riot.config.js --stdout > js/toolbar.js
Add riot compile command to Makefile.
Add riot compile command to Makefile.
unknown
agpl-3.0
somosazucar/Jappy,somosazucar/Jappy,somosazucar/Jappy
unknown
## Code Before: library: rapydscript compile -b lib/jappy.pyj > lib/baselib.js ## Instruction: Add riot compile command to Makefile. ## Code After: library: rapydscript compile -b lib/jappy.pyj > lib/baselib.js tags: cat code_editor.tag.html | riot --stdin --config js/riot.config.js --stdout > js/codeeditor.js ca...
2d1bd23a872645053b8e19bdf8b656b8ca872c4b
index.js
index.js
require('babel/register'); require('dotenv').load(); var startServer = require('./app'); var port = process.env['PORT'] || 3000; startServer(port);
require('babel/register'); if (process.env.NODE_ENV !== 'production') { require('dotenv').load(); } var startServer = require('./app'); var port = process.env.PORT || 3000; startServer(port);
Handle case where dotenv is not included in production.
Handle case where dotenv is not included in production.
JavaScript
mit
keokilee/hitraffic-api,hitraffic/api-server
javascript
## Code Before: require('babel/register'); require('dotenv').load(); var startServer = require('./app'); var port = process.env['PORT'] || 3000; startServer(port); ## Instruction: Handle case where dotenv is not included in production. ## Code After: require('babel/register'); if (process.env.NODE_ENV !== 'product...
49f15bf17ce82a431edd15521a148b883e0144e7
Changelog.md
Changelog.md
- Adds Deals - Adds Forms - Adds Groups - Adds Users - Adds Tracks - Adds Campaigns # 0.1.10 - Added tagging of lists and contacts - Internally: Upgraded gems and RSpec syntax - Internally: Added rubocop
- Allow ActiveCampaign::Client.new to accept a Hash # 0.1.11 - Adds Deals - Adds Forms - Adds Groups - Adds Users - Adds Tracks - Adds Campaigns # 0.1.10 - Added tagging of lists and contacts - Internally: Upgraded gems and RSpec syntax - Internally: Added rubocop
Add changelog for previous release [no ci]
Add changelog for previous release [no ci]
Markdown
mit
jonesmac/active_campaign,mhenrixon/active_campaign,mhenrixon/active_campaign
markdown
## Code Before: - Adds Deals - Adds Forms - Adds Groups - Adds Users - Adds Tracks - Adds Campaigns # 0.1.10 - Added tagging of lists and contacts - Internally: Upgraded gems and RSpec syntax - Internally: Added rubocop ## Instruction: Add changelog for previous release [no ci] ## Code After: - Allow ActiveCampaign:...
cc76b7658a62528137f14733731b6b3f3a541384
booster_bdd/features/steps/stackAnalyses.py
booster_bdd/features/steps/stackAnalyses.py
from behave import when, then from features.src.support import helpers from features.src.stackAnalyses import StackAnalyses from pyshould import should_not @when(u'I send Maven package manifest pom-effective.xml to stack analysis') def when_send_manifest(context): global sa sa = StackAnalyses() spaceName...
from behave import when, then from features.src.support import helpers from features.src.stackAnalyses import StackAnalyses from pyshould import should_not @when(u'I send Maven package manifest pom-effective.xml to stack analysis') def when_send_manifest(context): sa = StackAnalyses() spaceName = helpers.get...
Store stack analysis in the context
Store stack analysis in the context
Python
apache-2.0
ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test
python
## Code Before: from behave import when, then from features.src.support import helpers from features.src.stackAnalyses import StackAnalyses from pyshould import should_not @when(u'I send Maven package manifest pom-effective.xml to stack analysis') def when_send_manifest(context): global sa sa = StackAnalyses(...
18f76ae20eaeeec485729888e2534e583a0ff9b5
templates/CRM/Defaultdashlets/Form/DefaultDashlets.tpl
templates/CRM/Defaultdashlets/Form/DefaultDashlets.tpl
{* HEADER *} <div class="crm-submit-buttons"> {include file="CRM/common/formButtons.tpl" location="top"} </div> {foreach from=$groups item=group} <h3>{$group.name}</h3> {foreach from=$avalabledashlets item=avalabledashlet} <input type="checkbox" value="1" name="defaultdashlets[{$group.id}][{$avalabledashlet.id}]"...
{* HEADER *} <div id="help"> Select the active dashlets for new users of each group. Groups must have <strong>Group Type</strong> set to <strong>Access Control</strong>. This activates dashlets for newly created users only. It will not alter existing users. </div> <div class="crm-submit-buttons"> {include file="...
Add help text to form
Add help text to form
Smarty
agpl-3.0
davidjosephhayes/CiviCRM-Default-Dashlets
smarty
## Code Before: {* HEADER *} <div class="crm-submit-buttons"> {include file="CRM/common/formButtons.tpl" location="top"} </div> {foreach from=$groups item=group} <h3>{$group.name}</h3> {foreach from=$avalabledashlets item=avalabledashlet} <input type="checkbox" value="1" name="defaultdashlets[{$group.id}][{$avala...
86840f62adc215fb481a28af61734ad16087719a
Resources/views/Test/index.html.twig
Resources/views/Test/index.html.twig
{% extends "::base.html.twig" %} {% block body %} {{ form(form) }} {% endblock %}
{% extends "::base.html.twig" %} {% block body %} <h1>Extra Form Render</h1> {{ form(form) }} {% endblock %}
Add a title for index view
Add a title for index view
Twig
mit
IDCI-Consulting/ExtraFormBundle,IDCI-Consulting/ExtraFormBundle
twig
## Code Before: {% extends "::base.html.twig" %} {% block body %} {{ form(form) }} {% endblock %} ## Instruction: Add a title for index view ## Code After: {% extends "::base.html.twig" %} {% block body %} <h1>Extra Form Render</h1> {{ form(form) }} {% endblock %}
df69791d2c9618076729fab010faf01802d816ec
src/api/images.js
src/api/images.js
import { Router } from 'express'; const router = new Router(); router.post("/", function (request, response) { response.sendStatus(200); });
import { Router } from 'express'; const router = new Router(); router.post("/", function (request, response) { response.sendStatus(200); }); export default router;
Add a missing export statement
Add a missing export statement
JavaScript
mit
magnusbae/arcadian-rutabaga,magnusbae/arcadian-rutabaga
javascript
## Code Before: import { Router } from 'express'; const router = new Router(); router.post("/", function (request, response) { response.sendStatus(200); }); ## Instruction: Add a missing export statement ## Code After: import { Router } from 'express'; const router = new Router(); router.post("/", function (req...
8a202e489d34ad04dddfdc37d77e3dadcf34c12c
config.xml
config.xml
<?xml version="1.0" encoding="utf-8"?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description> A sample Apache Cordova application that responds to the devicere...
<?xml version="1.0" encoding="utf-8"?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description> A sample Apache Cordova application that responds to the devicere...
Add some possibly not working stuff, meant to set Android version
Add some possibly not working stuff, meant to set Android version
XML
mit
BrunoCartier/agenda-larochelle-app,BrunoCartier/agenda-larochelle-app
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <widget id="io.cordova.hellocordova" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>HelloCordova</name> <description> A sample Apache Cordova application that responds...
c08f3c55acf7568628725e94c8deb2547f54f97b
app/controllers/api/docs/branches.rb
app/controllers/api/docs/branches.rb
module Api module Docs class Branches # :nocov: include Swagger::Blocks swagger_path '/branches' do operation :get do key :description, 'Return list of all Branches' key :operationId, 'indexBranches' key :tags, ['branches'] end end swag...
module Api module Docs class Branches # :nocov: include Swagger::Blocks swagger_schema :Branch do key :required, [:id, :name, :order_id, :path, :created_at, :updated_at, :count] property :id do key :type, :integer key :format, :int64 ...
Add swagger schema for Branch
Add swagger schema for Branch
Ruby
mit
biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0,biow0lf/prometheus2.0
ruby
## Code Before: module Api module Docs class Branches # :nocov: include Swagger::Blocks swagger_path '/branches' do operation :get do key :description, 'Return list of all Branches' key :operationId, 'indexBranches' key :tags, ['branches'] end ...
660c5129375a60ac47e4caea0f876e7930d2ecad
community/modules/scripts/spack-install/scripts/install_spack_deps.yml
community/modules/scripts/spack-install/scripts/install_spack_deps.yml
--- - name: Install dependencies for spack installation hosts: localhost tasks: - name: Install pip3 and git package: name: - python3-pip - git - name: Install google cloud storage pip: name: google-cloud-storage executable: pip3
--- - name: Install dependencies for spack installation become: yes hosts: localhost tasks: - name: Install pip3 and git ansible.builtin.package: name: - python3-pip - git - name: Gather the package facts ansible.builtin.package_facts: manager: auto - name: Install protobuf...
Install compatible protobuf for older Python
Install compatible protobuf for older Python The protobuf library is heavily used by other Google Cloud libraries. We can use the Ansible fact for the Python 3 package version to ensure that we are installing a compatible release of protobuf on systems with out-of-date Python (e.g. CentOS 7 and the "HPC VM Image"). R...
YAML
apache-2.0
GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit,GoogleCloudPlatform/hpc-toolkit
yaml
## Code Before: --- - name: Install dependencies for spack installation hosts: localhost tasks: - name: Install pip3 and git package: name: - python3-pip - git - name: Install google cloud storage pip: name: google-cloud-storage executable: pip3 ## Instruction: Install c...
638397d35dfe8d762ef5223b6de999b2cbcf868f
test/caesium/magicnonce/secretbox_test.clj
test/caesium/magicnonce/secretbox_test.clj
(ns caesium.magicnonce.secretbox-test (:require [caesium.magicnonce.secretbox :as ms] [caesium.crypto.secretbox :as s] [caesium.crypto.secretbox-test :as st] [clojure.test :refer [deftest is]] [caesium.util :as u])) (deftest xor-test (let [one (byte-array [1 0 1]) ...
(ns caesium.magicnonce.secretbox-test (:require [caesium.magicnonce.secretbox :as ms] [caesium.crypto.secretbox :as s] [caesium.crypto.secretbox-test :as st] [clojure.test :refer [deftest is]] [caesium.util :as u])) (deftest xor-test (let [one (byte-array [1 0 1]) ...
Test what the nonce is
Test what the nonce is
Clojure
epl-1.0
lvh/caesium
clojure
## Code Before: (ns caesium.magicnonce.secretbox-test (:require [caesium.magicnonce.secretbox :as ms] [caesium.crypto.secretbox :as s] [caesium.crypto.secretbox-test :as st] [clojure.test :refer [deftest is]] [caesium.util :as u])) (deftest xor-test (let [one (byte-a...
6269904bc9d5919d065c6d9077764ed01e01247e
.travis.yml
.travis.yml
language: php php: - 5.4 - 5.5 before_script: - COMPOSER_ROOT_VERSION=dev-master composer install --dev before_install: - sudo apt-get install -qq php5-gd - sudo apt-get install -qq php5-imagick - sudo apt-get install -qq libgraphicsmagick1-dev - printf "\n" | pecl install -f gmagick-1.1.7RC2 script: ...
language: php php: - 5.4 - 5.5 before_script: - COMPOSER_ROOT_VERSION=dev-master composer install --dev before_install: - sudo apt-get install -qq php5-gd - sudo apt-get install -qq imagemagick - sudo apt-get install -qq php5-imagick - sudo apt-get install -qq libgraphicsmagick1-dev - printf "\n" | p...
Build failing; guess need to install Imagick
Build failing; guess need to install Imagick
YAML
mit
bitheater/dummy-image
yaml
## Code Before: language: php php: - 5.4 - 5.5 before_script: - COMPOSER_ROOT_VERSION=dev-master composer install --dev before_install: - sudo apt-get install -qq php5-gd - sudo apt-get install -qq php5-imagick - sudo apt-get install -qq libgraphicsmagick1-dev - printf "\n" | pecl install -f gmagick-1....
6f2992539c6e0b1391c4b6e2e8a0957b6a07cd79
spec/workers/inbound_mail_processor_spec.rb
spec/workers/inbound_mail_processor_spec.rb
require "spec_helper" describe InboundMailProcessor do subject { InboundMailProcessor } it "should be on the inbound mail queue" do subject.queue.should == :inbound_mail end it "should respond to perform" do subject.should respond_to(:perform) end context "thread reply mail" do let(:thread) ...
require "spec_helper" describe InboundMailProcessor do subject { InboundMailProcessor } it "should be on the inbound mail queue" do subject.queue.should == :inbound_mail end it "should respond to perform" do subject.should respond_to(:perform) end context "thread reply mail" do let(:thread) ...
Patch test to workaround odd newline error in output, not worth debugging now.
Patch test to workaround odd newline error in output, not worth debugging now.
Ruby
mit
cyclestreets/cyclescape,auto-mat/toolkit,auto-mat/toolkit,cyclestreets/cyclescape,cyclestreets/cyclescape
ruby
## Code Before: require "spec_helper" describe InboundMailProcessor do subject { InboundMailProcessor } it "should be on the inbound mail queue" do subject.queue.should == :inbound_mail end it "should respond to perform" do subject.should respond_to(:perform) end context "thread reply mail" do ...
16f677095a4c73cfa056297cb3020e79fa16111b
README.md
README.md
This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08). ## Usage var jsonpointer = require("jsonpointer"); var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; var one = jsonpointer.get(obj, "/foo"); var two = jsonpointer.get(obj, "/bar/baz"); v...
This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08). ## Usage var jsonpointer = require("jsonpointer"); var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; var one = jsonpointer.get(obj, "/foo"); var two = jsonpointer.get(obj, "/bar/baz"); v...
Update copyright year, add Mark to authors
Update copyright year, add Mark to authors
Markdown
mit
batfink/node-jsonpointer,janl/node-jsonpointer
markdown
## Code Before: This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-08). ## Usage var jsonpointer = require("jsonpointer"); var obj = { foo: 1, bar: { baz: 2}, qux: [3, 4, 5]}; var one = jsonpointer.get(obj, "/foo"); var two = jsonpointer.get(obj, "/...
a3fb0390e5a60c94aab0bd43140bf6e1f3673489
.travis.yml
.travis.yml
language: python python: 2.7 sudo: false cache: pip install: - pip install ansible script: - ansible-galaxy install --force -r requirements.yml -p vendor/roles - ansible-playbook --syntax-check -i hosts/development dev.yml --ask-vault-pass < $ANSIBLE_VAULT_KEY - ansible-playbook --syntax-check -i hosts/developm...
language: python python: 2.7 sudo: false cache: pip install: - pip install ansible script: - ansible-galaxy install --force -r requirements.yml -p vendor/roles - ansible-playbook --syntax-check -i hosts/development dev.yml - ansible-playbook --syntax-check -i hosts/development server.yml
Revert "Trying to fix CI builds."
Revert "Trying to fix CI builds." This reverts commit f47582bb798eb9327f864f74cf0b8b299ac6de2a.
YAML
mit
proteusthemes/pt-ops,proteusthemes/pt-ops,proteusthemes/pt-ops
yaml
## Code Before: language: python python: 2.7 sudo: false cache: pip install: - pip install ansible script: - ansible-galaxy install --force -r requirements.yml -p vendor/roles - ansible-playbook --syntax-check -i hosts/development dev.yml --ask-vault-pass < $ANSIBLE_VAULT_KEY - ansible-playbook --syntax-check -...
f89e9454e932dd22764fb497b3966262a260f138
data/transition-sites/fera.yml
data/transition-sites/fera.yml
--- site: fera whitehall_slug: the-food-and-environment-research-agency homepage: https://www.gov.uk/government/organisations/the-food-and-environment-research-agency tna_timestamp: 20131103143441 host: www.fera.defra.gov.uk homepage_furl: www.gov.uk/fera aliases: - fera.defra.gov.uk options: --query-string id extra_or...
--- site: fera whitehall_slug: the-food-and-environment-research-agency homepage: https://www.gov.uk/government/organisations/animal-and-plant-health-agency tna_timestamp: 20131103143441 host: www.fera.defra.gov.uk homepage_furl: www.gov.uk/apha aliases: - fera.defra.gov.uk options: --query-string id extra_organisation...
Update FERA homepage to APHA
Update FERA homepage to APHA
YAML
mit
alphagov/transition-config,alphagov/transition-config
yaml
## Code Before: --- site: fera whitehall_slug: the-food-and-environment-research-agency homepage: https://www.gov.uk/government/organisations/the-food-and-environment-research-agency tna_timestamp: 20131103143441 host: www.fera.defra.gov.uk homepage_furl: www.gov.uk/fera aliases: - fera.defra.gov.uk options: --query-st...
e85e82ec6730a5a7b3729d3aa828e9e53f8a976c
docs/router.js
docs/router.js
/* eslint-disable */ import Vue from 'vue'; import Router from 'vue-router'; import Component from './Component'; import Docs from './Docs'; import DocsPage from './DocsPage'; import Layouts from './Layouts'; import Theming from './Layouts/Theming'; import QuickStart from '../README.md'; import Contributing from '../CO...
/* eslint-disable */ import Vue from 'vue'; import Router from 'vue-router'; import Component from './Component'; import Docs from './Docs'; import DocsPage from './DocsPage'; import Layouts from './Layouts'; import Theming from './Layouts/Theming'; import QuickStart from '../README.md'; import Contributing from '../CO...
Check if ga is a function
Check if ga is a function
JavaScript
mit
Semantic-UI-Vue/Semantic-UI-Vue
javascript
## Code Before: /* eslint-disable */ import Vue from 'vue'; import Router from 'vue-router'; import Component from './Component'; import Docs from './Docs'; import DocsPage from './DocsPage'; import Layouts from './Layouts'; import Theming from './Layouts/Theming'; import QuickStart from '../README.md'; import Contribu...
d4fcd56ae6438e3b4645708b7c3c687456ef5aa2
views/layouts/main.hbs
views/layouts/main.hbs
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CognacTime</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css"> </head> <body> <header> <nav class="grey darken-4 grey-text text-lighten-1"> <div class="container">Navbar</di...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CognacTime</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css"> <link rel="stylesheet" href="/static/css/cognactime.min.css"> </head> <body> <header> <nav class="grey darken-4 gr...
Correct static files path and add jQuery (materialize dep)
Correct static files path and add jQuery (materialize dep)
Handlebars
mit
myth/cognactime,myth/cognactime
handlebars
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>CognacTime</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css"> </head> <body> <header> <nav class="grey darken-4 grey-text text-lighten-1"> <div class="conta...
c48be721085b0550724c4e234c081e421fcdfb75
week-9/ruby/fibonacci.rb
week-9/ruby/fibonacci.rb
def is_fibonacci?(num) if num <= 9 true elsif end end # Refactored Solution # Reflection
def is_fibonacci?(num) plus_four = Math.sqrt( (num * 5) ** 2 + 4) ​ minus_four = Math.sqrt( (num * 5) ** 2 - 4) ​ if plus_four.is_a?(Float) || minus_four.is_a?(Float) return false else return true end end # Refactored Solution # Reflection
Add second trial to solution
Add second trial to solution
Ruby
mit
Michael-Jas/phase-0,Michael-Jas/phase-0,Michael-Jas/phase-0
ruby
## Code Before: def is_fibonacci?(num) if num <= 9 true elsif end end # Refactored Solution # Reflection ## Instruction: Add second trial to solution ## Code After: def is_fibonacci?(num) plus_four = Math.sqrt( (num * 5) ** 2 + 4) ​ minus_four = Math.sqrt( (num * 5) ** 2 - 4) ​ if plus_fo...
564d88a6d4fa4054e4eea865c6c34ed56dd6c361
app/models/per_transcript_coverage.rb
app/models/per_transcript_coverage.rb
class PerTranscriptCoverage < ActiveRecord::Base belongs_to :read_group, :inverse_of => :per_transcript_coverages belongs_to :bedgraph_file, :inverse_of => :per_transcript_coverages, :dependent => :destroy validates_presence_of :read_group validates_presence_of :bedgraph_file end
class PerTranscriptCoverage < ActiveRecord::Base belongs_to :read_group, :inverse_of => :per_transcript_coverages belongs_to :bedgraph_file, :inverse_of => :per_transcript_coverages validates_presence_of :read_group validates_presence_of :bedgraph_file end
Fix bug which prevented deleting read group
Fix bug which prevented deleting read group The bug was caused by extra ':dependent => :destroy' in PerTranscriptCoverage model: belongs_to :bedgraph_file, :inverse_of => :per_transcript_coverages, :dependent => :destroy Deleting read group caused deleting per_transcript_coverages, which caused deleting bedgraph_fil...
Ruby
agpl-3.0
nebiolabs/seq-results,nebiolabs/seq-results,nebiolabs/seq-results
ruby
## Code Before: class PerTranscriptCoverage < ActiveRecord::Base belongs_to :read_group, :inverse_of => :per_transcript_coverages belongs_to :bedgraph_file, :inverse_of => :per_transcript_coverages, :dependent => :destroy validates_presence_of :read_group validates_presence_of :bedgraph_file end ## Instruction...
52541fa00111a6e857c614201c24c9bcf87920e4
client/app/views/run.html
client/app/views/run.html
<div id="map"></div> <div id='run' class="container"> <div class="botNav"> <a class="botLink left" href="#/" ng-click="stopGeoUpdater()"> Cancel </a> <div class ="botLink" ng-click="startRun()" ng-show="!raceStarted"> Ready? </div> <div class="botLink" ng-show="raceStarted"> Start! </div> <div class=...
<div id="map"></div> <div id='run' class="container"> <div class="botNav"> <a class="botLink left" href="#/" ng-click="stopGeoUpdater()"> Cancel </a> <div class ="botLink start-race" ng-click="startRun()" ng-show="!raceStarted"> Ready? </div> <div class="botLink" ng-show="raceStarted">G: {{ goldTime.form...
Add time until medal html/angular
Add time until medal html/angular
HTML
mit
elliotaplant/Bolt,thomasRhoffmann/Bolt,boisterousSplash/Bolt,gm758/Bolt,thomasRhoffmann/Bolt,elliotaplant/Bolt,gm758/Bolt,boisterousSplash/Bolt
html
## Code Before: <div id="map"></div> <div id='run' class="container"> <div class="botNav"> <a class="botLink left" href="#/" ng-click="stopGeoUpdater()"> Cancel </a> <div class ="botLink" ng-click="startRun()" ng-show="!raceStarted"> Ready? </div> <div class="botLink" ng-show="raceStarted"> Start! </div>...
84c9b0a29e64ab99ce689c239da54aa538b24db4
modules/interfaces/src/functional-group.ts
modules/interfaces/src/functional-group.ts
import { CustomCommandDefinition } from "./custom-command-definition"; import { CustomQueryDefinition } from "./custom-query-definition"; import { EntityDefinition } from "./entity-definition"; import { UserDefinition } from "./user-definition"; export type EntityDefinitions = { [EntityName: string]: EntityDefinitio...
import { CustomCommandDefinition } from "./custom-command-definition"; import { CustomQueryDefinition } from "./custom-query-definition"; import { EntityDefinition } from "./entity-definition"; import { UserDefinition } from "./user-definition"; import { GeneralTypeMap, UserEntityNameOf, NonUserEntityNameOf, Cu...
Make FunctionalGroup contain TypeMap type parameter
feat(interfaces): Make FunctionalGroup contain TypeMap type parameter
TypeScript
apache-2.0
phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl,phenyl-js/phenyl
typescript
## Code Before: import { CustomCommandDefinition } from "./custom-command-definition"; import { CustomQueryDefinition } from "./custom-query-definition"; import { EntityDefinition } from "./entity-definition"; import { UserDefinition } from "./user-definition"; export type EntityDefinitions = { [EntityName: string]:...
77138f52d63be6c58d94f5ba9e0928a12b15125b
vumi/application/__init__.py
vumi/application/__init__.py
"""The vumi.application API.""" __all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager", "MessageStore"] from vumi.application.base import ApplicationWorker from vumi.application.session import SessionManager from vumi.application.tagpool import TagpoolManager from vumi.application.message_store...
"""The vumi.application API.""" __all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager", "MessageStore", "HTTPRelayApplication"] from vumi.application.base import ApplicationWorker from vumi.application.session import SessionManager from vumi.application.tagpool import TagpoolManager from vumi.a...
Add HTTPRelayApplication to vumi.application package API.
Add HTTPRelayApplication to vumi.application package API.
Python
bsd-3-clause
harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi
python
## Code Before: """The vumi.application API.""" __all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager", "MessageStore"] from vumi.application.base import ApplicationWorker from vumi.application.session import SessionManager from vumi.application.tagpool import TagpoolManager from vumi.applicati...
7c122559f5ff5a487e0b578fa7f7d526ddf790a8
.github/workflows/main.yml
.github/workflows/main.yml
name: Update cache key on: push: branches: - release pull_request: branches: - release jobs: build: runs-on: ubuntu-latest steps: - name: Checkout release uses: actions/checkout@master with: ref: release - name: Find and Replace id: replace uses:...
name: Update cache key on: push: branches: - master pull_request: branches: - master jobs: build: runs-on: ubuntu-latest steps: - name: Checkout master uses: actions/checkout@master with: ref: master - name: Find and Replace id: replace uses: jac...
Fix GitHub Action to point to master branch
Fix GitHub Action to point to master branch
YAML
mit
lalibi/aepp-presentation,lalibi/aepp-presentation,lalibi/aepp-presentation
yaml
## Code Before: name: Update cache key on: push: branches: - release pull_request: branches: - release jobs: build: runs-on: ubuntu-latest steps: - name: Checkout release uses: actions/checkout@master with: ref: release - name: Find and Replace id: rep...
82217bab5263984c3507a68c1b94f9d315bafc63
src/masterfile/__init__.py
src/masterfile/__init__.py
from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__
from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ __package_version__ = 'masterfile {}'.format(__version__)
Add __package_version__ for version description
Add __package_version__ for version description Example: "masterfile 0.1.0dev"
Python
mit
njvack/masterfile
python
## Code Before: from __future__ import absolute_import from ._metadata import version as __version__, author as __author__, email as __email__ ## Instruction: Add __package_version__ for version description Example: "masterfile 0.1.0dev" ## Code After: from __future__ import absolute_import from ._metadata import...
a288b6ae6ab8364c271e5eff8eb7a13a62c1decc
lib/aozorasearch/web/views/_search_form.haml
lib/aozorasearch/web/views/_search_form.haml
%form{action: url("/search", false, true), method: :get} %input{type: "textarea", name: "word", size: 20, value: params[:word]} - params.each do |key, value| - next if key == "word" %input{type: "hidden", name: key, value: value} %input{type: "submit", value: "検索"} %input{type: "checkbox", name: "reset_...
%form{action: url("/search", false, true), method: :get} %input{type: "textarea", name: "word", size: 20, value: params[:word]} - params.each do |key, value| - next if key == "word" %input{type: "hidden", name: key, value: value} %input{type: "submit", value: "検索"} - unless params_to_description.empty? ...
Hide reset checkbox if not drilldowned
Hide reset checkbox if not drilldowned
Haml
lgpl-2.1
myokoym/aozorasearch,myokoym/aozorasearch
haml
## Code Before: %form{action: url("/search", false, true), method: :get} %input{type: "textarea", name: "word", size: 20, value: params[:word]} - params.each do |key, value| - next if key == "word" %input{type: "hidden", name: key, value: value} %input{type: "submit", value: "検索"} %input{type: "checkbox...
20df58bb9e605ecc53848ade31a3acb98118f00b
scripts/extract_clips_from_hdf5_file.py
scripts/extract_clips_from_hdf5_file.py
from pathlib import Path import wave import h5py DIR_PATH = Path('/Users/harold/Desktop/Clips') INPUT_FILE_PATH = DIR_PATH / 'Clips.h5' CLIP_COUNT = 5 def main(): with h5py.File(INPUT_FILE_PATH, 'r') as file_: clip_group = file_['clips'] for i, clip_id in enumerate(clip_group): ...
from pathlib import Path import wave import h5py DIR_PATH = Path('/Users/harold/Desktop/Clips') INPUT_FILE_PATH = DIR_PATH / 'Clips.h5' CLIP_COUNT = 5 def main(): with h5py.File(INPUT_FILE_PATH, 'r') as file_: clip_group = file_['clips'] for i, clip_id in enumerate(clip_group): ...
Add attribute display to clip extraction script.
Add attribute display to clip extraction script.
Python
mit
HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper
python
## Code Before: from pathlib import Path import wave import h5py DIR_PATH = Path('/Users/harold/Desktop/Clips') INPUT_FILE_PATH = DIR_PATH / 'Clips.h5' CLIP_COUNT = 5 def main(): with h5py.File(INPUT_FILE_PATH, 'r') as file_: clip_group = file_['clips'] for i, clip_id in enumerate(clip_group...
b62415c19459d9e5819b82f464731b166157811d
gym/envs/tests/test_registration.py
gym/envs/tests/test_registration.py
from gym import error, envs from gym.envs import registration from gym.envs.classic_control import cartpole def test_make(): env = envs.make('CartPole-v0') assert env.spec.id == 'CartPole-v0' assert isinstance(env, cartpole.CartPoleEnv) def test_spec(): spec = envs.spec('CartPole-v0') assert spec....
from gym import error, envs from gym.envs import registration from gym.envs.classic_control import cartpole def test_make(): env = envs.make('CartPole-v0') assert env.spec.id == 'CartPole-v0' assert isinstance(env, cartpole.CartPoleEnv) def test_spec(): spec = envs.spec('CartPole-v0') assert spec....
Fix exception message formatting in Python3
Fix exception message formatting in Python3
Python
mit
d1hotpep/openai_gym,machinaut/gym,machinaut/gym,d1hotpep/openai_gym,dianchen96/gym,Farama-Foundation/Gymnasium,dianchen96/gym,Farama-Foundation/Gymnasium
python
## Code Before: from gym import error, envs from gym.envs import registration from gym.envs.classic_control import cartpole def test_make(): env = envs.make('CartPole-v0') assert env.spec.id == 'CartPole-v0' assert isinstance(env, cartpole.CartPoleEnv) def test_spec(): spec = envs.spec('CartPole-v0') ...
842b25d6c2440a5e128eb0ce6bc1b1e6746e0679
.travis.yml
.travis.yml
language: php php: - "7.2" - "7.1" - "7.0" - "5.6" install: - export SONARSCANNER_VERSION=3.2.0.1227 - wget https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - unzip sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - composer install scri...
language: php php: - "7.2" - "7.1" - "7.0" - "5.6" install: - export SONARSCANNER_VERSION=3.2.0.1227 - wget https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - unzip sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - composer install scri...
Add the branch to the SonarScanner
Add the branch to the SonarScanner
YAML
mit
byjg/SingletonPatternPHP
yaml
## Code Before: language: php php: - "7.2" - "7.1" - "7.0" - "5.6" install: - export SONARSCANNER_VERSION=3.2.0.1227 - wget https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - unzip sonar-scanner-cli-$SONARSCANNER_VERSION-linux.zip - compos...
6406ee8e3472adb0cf34b884abdef0b75dcdfda8
components/03-components/pusher/pusher.config.yml
components/03-components/pusher/pusher.config.yml
notes: | Push an element to the right if the space allows it, otherwise display it below. status: wip variants: - name: middle notes: Vertically align content in the middle. context: modifier: pusher--middle - name: bottom notes: Vertically align content to the bottom. context: modifie...
notes: | Push an element to the right if the space allows it, otherwise display it below. variants: - name: middle notes: Vertically align content in the middle. context: modifier: pusher--middle - name: bottom notes: Vertically align content to the bottom. context: modifier: pusher--b...
Move pusher component status to ready
Move pusher component status to ready
YAML
mit
liip/kanbasu,liip/kanbasu
yaml
## Code Before: notes: | Push an element to the right if the space allows it, otherwise display it below. status: wip variants: - name: middle notes: Vertically align content in the middle. context: modifier: pusher--middle - name: bottom notes: Vertically align content to the bottom. contex...
e58688d87ba1c4af718ea3e427d94f68c3df3b16
qipipe/interfaces/__init__.py
qipipe/interfaces/__init__.py
from .compress import Compress from .copy import Copy from .fix_dicom import FixDicom from .group_dicom import GroupDicom from .map_ctp import MapCTP from .move import Move from .glue import Glue from .uncompress import Uncompress from .xnat_upload import XNATUpload from .xnat_download import XNATDownload
from .compress import Compress from .copy import Copy from .fix_dicom import FixDicom from .group_dicom import GroupDicom from .map_ctp import MapCTP from .move import Move from .unpack import Unpack from .uncompress import Uncompress from .xnat_upload import XNATUpload from .xnat_download import XNATDownload from .fas...
Replace Glue interface by more restrictive Unpack.
Replace Glue interface by more restrictive Unpack.
Python
bsd-2-clause
ohsu-qin/qipipe
python
## Code Before: from .compress import Compress from .copy import Copy from .fix_dicom import FixDicom from .group_dicom import GroupDicom from .map_ctp import MapCTP from .move import Move from .glue import Glue from .uncompress import Uncompress from .xnat_upload import XNATUpload from .xnat_download import XNATDownlo...
ea548476e58136b4b300ae7916f0acb21f7f59fe
client/views/activities/new/newActivity.js
client/views/activities/new/newActivity.js
import 'select2'; import 'select2/dist/css/select2.css'; import 'select2-bootstrap-theme/dist/select2-bootstrap.css'; Template.newActivity.created = function () { this.subscribe('allCurrentResidents'); this.subscribe('allHomes'); this.subscribe('allActivityTypes'); this.subscribe('allRolesExceptAdmin'); }; Te...
import 'select2'; import 'select2/dist/css/select2.css'; Template.newActivity.created = function () { this.subscribe('allCurrentResidents'); this.subscribe('allHomes'); this.subscribe('allActivityTypes'); this.subscribe('allRolesExceptAdmin'); }; Template.newActivity.helpers({ select2Options () { // Get...
Remove style that was breaking deployment
Remove style that was breaking deployment
JavaScript
agpl-3.0
GeriLife/wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing,GeriLife/wellbeing,brylie/juhani-wellbeing,GeriLife/wellbeing
javascript
## Code Before: import 'select2'; import 'select2/dist/css/select2.css'; import 'select2-bootstrap-theme/dist/select2-bootstrap.css'; Template.newActivity.created = function () { this.subscribe('allCurrentResidents'); this.subscribe('allHomes'); this.subscribe('allActivityTypes'); this.subscribe('allRolesExcep...
87f0a20fe145b2ac65ab7e6cbfbc90b4cd0c49c3
src/main/java/vg/civcraft/mc/civmodcore/chatDialog/ChatListener.java
src/main/java/vg/civcraft/mc/civmodcore/chatDialog/ChatListener.java
package vg.civcraft.mc.civmodcore.chatDialog; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.server.TabCompleteEvent; public class ChatListener imple...
package vg.civcraft.mc.civmodcore.chatDialog; import java.util.Collections; import java.util.List; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.ser...
FIx exception in dialog tab completion
FIx exception in dialog tab completion
Java
bsd-3-clause
psygate/CivModCore,psygate/CivModCore
java
## Code Before: package vg.civcraft.mc.civmodcore.chatDialog; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; import org.bukkit.event.server.TabCompleteEvent; public class Ch...
f6f502a491b77b74f45a3e8aa00814bb02c419bf
benchmark.js
benchmark.js
var rimraf = require('rimraf') var fs = require('fs') var childProcess = require('child_process') var walkSync = require('./') rimraf.sync('benchmark.tmp') function createDirWithFiles(dir) { fs.mkdirSync(dir) for (var i = 0; i < 1000; i++) { fs.writeFileSync(dir + '/' + i, 'foo') } } createDirWithFiles('be...
var rimraf = require('rimraf') var fs = require('fs') var childProcess = require('child_process') var walkSync = require('./') rimraf.sync('benchmark.tmp') var directories = 100, files = 1000 function createDirWithFiles(dir) { fs.mkdirSync(dir) for (var i = 0; i < files; i++) { fs.writeFileSync(dir + '/' + i...
Print what we're doing, and make executable
Print what we're doing, and make executable
JavaScript
mit
joliss/node-walk-sync,joliss/node-walk-sync
javascript
## Code Before: var rimraf = require('rimraf') var fs = require('fs') var childProcess = require('child_process') var walkSync = require('./') rimraf.sync('benchmark.tmp') function createDirWithFiles(dir) { fs.mkdirSync(dir) for (var i = 0; i < 1000; i++) { fs.writeFileSync(dir + '/' + i, 'foo') } } create...
f34d4111332727c7b236125dc0bb5b56f41a6e77
.github/workflows/release.yml
.github/workflows/release.yml
name: Release on: push: tags: - '*' jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 - name: Login to DockerHub ...
name: Release on: push: tags: - '*' jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 - name: Login to DockerHub ...
Fix name of encrypted variable
Fix name of encrypted variable Variables can't start with GITHUB_
YAML
bsd-3-clause
vektra/mockery,vektra/mockery
yaml
## Code Before: name: Release on: push: tags: - '*' jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.16 - name: Login to Do...
6f04caa18e10470209b248c4a29c400a4a52bd5d
.travis.yml
.travis.yml
language: go go: - 1.2 - 1.3 - 1.4 - tip script: - go get -d -v ./... - go test -v ./...
language: go go: - 1.6 - 1.7 - 1.8 - tip script: - go test -v ./...
Test with new go versions
Test with new go versions
YAML
mit
frozzare/go-assert
yaml
## Code Before: language: go go: - 1.2 - 1.3 - 1.4 - tip script: - go get -d -v ./... - go test -v ./... ## Instruction: Test with new go versions ## Code After: language: go go: - 1.6 - 1.7 - 1.8 - tip script: - go test -v ./...
943adb86719cd2e6edf2a3503fe43d9ab0370fbc
lib/geokit/inflectors.rb
lib/geokit/inflectors.rb
module Geokit module Inflector require "cgi" extend self def titleize(word) humanize(underscore(word)).gsub(/\b([a-z])/u) { Regexp.last_match(1).capitalize } end def underscore(camel_cased_word) camel_cased_word.to_s.gsub(/::/, "/"). gsub(/([A-Z]+)([A-Z][a-z])/u, '\1_\2'). ...
require "cgi" module Geokit module Inflector module_function def titleize(word) humanize(underscore(word)).gsub(/\b([a-z])/u) { Regexp.last_match(1).capitalize } end def underscore(camel_cased_word) camel_cased_word.to_s.gsub(/::/, "/"). gsub(/([A-Z]+)([A-Z][a-z])/u, '\1_\2'). ...
Use module_function instead of extend self
Use module_function instead of extend self
Ruby
mit
lsaffie/geokit,sferik/geokit,nicnilov/geokit,suranyami/geokit,malmckay/geokit,internmatch/geokit,geokit/geokit
ruby
## Code Before: module Geokit module Inflector require "cgi" extend self def titleize(word) humanize(underscore(word)).gsub(/\b([a-z])/u) { Regexp.last_match(1).capitalize } end def underscore(camel_cased_word) camel_cased_word.to_s.gsub(/::/, "/"). gsub(/([A-Z]+)([A-Z][a-z]...
b42913c198823b1dcfb1f8eca9b63e62836c9e6d
app/Model/User.php
app/Model/User.php
<?php App::uses('AppModel', 'Model'); class User extends AppModel { public function getInfo() { return $this->find('all'); } }
<?php App::uses('AppModel', 'Model'); App::uses('AuthComponent', 'Controller/Component'); class User extends AppModel { //make password encription before save to database public function beforeSave($options = array()) { if (isset($this->data[$this->alias]['password'])) { $this->data[$...
Encrypt password what submitted index.ctp form. its make a filter to execute before data save to database
Encrypt password what submitted index.ctp form. its make a filter to execute before data save to database
PHP
mit
mahedi2014/cakephp-basic,mahedi2014/cakephp-basic,mahedi2014/cakephp-basic,mahedi2014/cakephp-basic
php
## Code Before: <?php App::uses('AppModel', 'Model'); class User extends AppModel { public function getInfo() { return $this->find('all'); } } ## Instruction: Encrypt password what submitted index.ctp form. its make a filter to execute before data save to database ## Code After: <?php App::uses...
06b5f648687a2bf5ace2563b20d5a6bf0477b4fe
meta/README.md
meta/README.md
This directory contains metadata for the RISC-V Instruction Set |File|Description| |:---|:----------| |`codecs` |Instruction encodings| |`compression` |Compressed instruction metadata| |`constraints` |Constraint definitions| |`csrs` |CPU Specific Registers| |`descriptions`|Instruction long descriptions| |...
This directory contains metadata for the RISC-V Instruction Set |File|Description| |:---|:----------| |`codecs` |Instruction encodings| |`compression` |Compressed instruction metadata| |`constraints` |Constraint definitions| |`csrs` |Control and status registers| |`descriptions`|Instruction long descripti...
Update description for control and status registers
Update description for control and status registers
Markdown
mit
rv8-io/rv8,rv8-io/rv8,rv8-io/rv8
markdown
## Code Before: This directory contains metadata for the RISC-V Instruction Set |File|Description| |:---|:----------| |`codecs` |Instruction encodings| |`compression` |Compressed instruction metadata| |`constraints` |Constraint definitions| |`csrs` |CPU Specific Registers| |`descriptions`|Instruction long...
046f626f9454750c15216cb4c818055305f03b1e
css/components/documents-list-table.css
css/components/documents-list-table.css
.documents-list-table { max-height: 242px; overflow: hidden; overflow-y: scroll; border: 1px solid var(--light-medium-background); } .documents-list-table .submitted-user-data-table { width:99.99%; /* Hack to help make the right border of responsive table visible */ }
.documents-list-table { max-height: 242px; overflow: hidden; overflow-y: scroll; border: 1px solid var(--light-medium-background); } .documents-list-table .submitted-user-data-table { width:99.99%; /* Hack to help make the right border of responsive table visible */ } @media only screen and (max-width: var(--mob...
Make document list not scrollable zone on mobile
Make document list not scrollable zone on mobile
CSS
mit
egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations
css
## Code Before: .documents-list-table { max-height: 242px; overflow: hidden; overflow-y: scroll; border: 1px solid var(--light-medium-background); } .documents-list-table .submitted-user-data-table { width:99.99%; /* Hack to help make the right border of responsive table visible */ } ## Instruction: Make documen...
dc0bbece26fba533ec5f4d6f790990143f80933a
Pod/Classes/RxMapViewReactiveDataSource.swift
Pod/Classes/RxMapViewReactiveDataSource.swift
// // RxMapViewReactiveDataSource.swift // RxMKMapView // // Created by Mikko Välimäki on 09/08/2017. // Copyright © 2017 RxSwiftCommunity. All rights reserved. // import Foundation import MapKit import RxSwift import RxCocoa public class RxMapViewReactiveDataSource<S: MKAnnotation> : RxMapViewDataSourceType ...
// // RxMapViewReactiveDataSource.swift // RxMKMapView // // Created by Mikko Välimäki on 09/08/2017. // Copyright © 2017 RxSwiftCommunity. All rights reserved. // import Foundation import MapKit import RxSwift import RxCocoa public class RxMapViewReactiveDataSource<S: MKAnnotation> : RxMapViewDataSourceType ...
Update use of deprecated binder
Update use of deprecated binder
Swift
mit
RxSwiftCommunity/RxMKMapView,RxSwiftCommunity/RxMKMapView,RxSwiftCommunity/RxMKMapView
swift
## Code Before: // // RxMapViewReactiveDataSource.swift // RxMKMapView // // Created by Mikko Välimäki on 09/08/2017. // Copyright © 2017 RxSwiftCommunity. All rights reserved. // import Foundation import MapKit import RxSwift import RxCocoa public class RxMapViewReactiveDataSource<S: MKAnnotation> : RxMapVie...
a02a8dbe3845885604db0a3498049e71ddf89cc1
windows-install.ps1
windows-install.ps1
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Set-ExecutionPolicy Unrestricted iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) choco install conemu choco install msys2
Add conemu and msys2 via chocolatey
Add conemu and msys2 via chocolatey
PowerShell
mit
ctfhacker/ctfhacker.github.io,thebarbershopper/thebarbershopper.github.io,ctfhacker/ctfhacker.github.io,thebarbershopper/thebarbershopper.github.io,ctfhacker/ctfhacker.github.io,thebarbershopper/thebarbershopper.github.io,ctfhacker/ctfhacker.github.io,thebarbershopper/thebarbershopper.github.io
powershell
## Code Before: iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) ## Instruction: Add conemu and msys2 via chocolatey ## Code After: Set-ExecutionPolicy Unrestricted iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) choco install co...
6cc801b99cbadb45cb774bc1cff7fbea09461e5c
src/SavedSearches/Command/SavedSearchCommand.php
src/SavedSearches/Command/SavedSearchCommand.php
<?php namespace CultuurNet\UDB3\SavedSearches\Command; use CultuurNet\UDB3\ValueObject\SapiVersion; use ValueObjects\StringLiteral\StringLiteral; abstract class SavedSearchCommand { /** * @var SapiVersion */ protected $sapiVersion; /** * @var StringLiteral */ protected $userId; ...
<?php namespace CultuurNet\UDB3\SavedSearches\Command; use CultuurNet\UDB3\ValueObject\SapiVersion; use ValueObjects\StringLiteral\StringLiteral; abstract class SavedSearchCommand { /** * @var string */ protected $sapiVersion; /** * @var StringLiteral */ protected $userId; /...
Fix exception about enums that can't be serialized, ensure native sapiVersion is serialized instead
III-2779: Fix exception about enums that can't be serialized, ensure native sapiVersion is serialized instead
PHP
apache-2.0
cultuurnet/udb3-php
php
## Code Before: <?php namespace CultuurNet\UDB3\SavedSearches\Command; use CultuurNet\UDB3\ValueObject\SapiVersion; use ValueObjects\StringLiteral\StringLiteral; abstract class SavedSearchCommand { /** * @var SapiVersion */ protected $sapiVersion; /** * @var StringLiteral */ prot...
a00f3a2b745d7e1c09e862048ff09215d8046929
appveyor.yml
appveyor.yml
image: Visual Studio 2017 version: '1.6.0.{build}' init: - git config --global core.autocrlf true build_script: - ps: .\build.ps1 -Target Test --BuildVersion=$($env:appveyor_build_version) test: off artifacts: - path: BuildArtifacts\*.nupkg name: NuGet package cache: - packages -> **\packages.config - tools -> ...
image: Visual Studio 2017 version: '1.6.0.{build}' init: - git config --global core.autocrlf true build_script: - ps: .\build.ps1 -Target Test --BuildVersion=$($env:appveyor_build_version) test: off artifacts: - path: BuildArtifacts\*.nupkg name: NuGet package cache: - packages -> **\packages.config - tools -> ...
Update the nuget api key
Update the nuget api key
YAML
apache-2.0
dotless/dotless,dotless/dotless
yaml
## Code Before: image: Visual Studio 2017 version: '1.6.0.{build}' init: - git config --global core.autocrlf true build_script: - ps: .\build.ps1 -Target Test --BuildVersion=$($env:appveyor_build_version) test: off artifacts: - path: BuildArtifacts\*.nupkg name: NuGet package cache: - packages -> **\packages.config ...
2d639bc28048c7cfe0005c3deedce3c5d43bbf7f
shackle.js
shackle.js
/** * Shackle allows you to bind a form control or * fieldset's enabled/disabled state to the checked/unchecked * state of a radio button or checkbox. * Simply Include Shackle and call: * Shackle.pair(id-of-enabling-element, id-of-affected-element); */ var Shackle = (function(document, window) { //Make any change to ...
/** * Shackle allows you to bind a form control or * fieldset's enabled/disabled state to the checked/unchecked * state of a radio button or checkbox. * Simply Include Shackle and call: * Shackle.pair(id-of-enabling-element, id-of-affected-element); */ var Shackle = (function(document, window) { //Make any change to ...
Update API to optionally hide disabled controls.
Update API to optionally hide disabled controls.
JavaScript
mit
whereswaldon/shackle
javascript
## Code Before: /** * Shackle allows you to bind a form control or * fieldset's enabled/disabled state to the checked/unchecked * state of a radio button or checkbox. * Simply Include Shackle and call: * Shackle.pair(id-of-enabling-element, id-of-affected-element); */ var Shackle = (function(document, window) { //Mak...
e90960c4197d50562881f707c338ccc96869112e
selenium-test.xml
selenium-test.xml
<project name="eagle-test" default="selenese" basedir="."> <property file="build.properties" /> <property file="test.properties" /> <target name="selenese"/> <taskdef resource="selenium-ant.properties"> <classpath> <pathelement location="${source.nondeploy.lib.dir}/selenium-server.jar"/> </class...
<project name="ispy-test" default="selenese" basedir="."> <property file="build.properties" /> <property file="test.properties" /> <target name="selenese"/> <taskdef resource="selenium-ant.properties"> <classpath> <pathelement location="${source.nondeploy.lib.dir}/selenium-server.jar"/> </classp...
Rename the build target to "ispy-test" instead of "eagle-test"
Rename the build target to "ispy-test" instead of "eagle-test" SVN-Revision: 4546
XML
bsd-3-clause
NCIP/i-spy,NCIP/i-spy
xml
## Code Before: <project name="eagle-test" default="selenese" basedir="."> <property file="build.properties" /> <property file="test.properties" /> <target name="selenese"/> <taskdef resource="selenium-ant.properties"> <classpath> <pathelement location="${source.nondeploy.lib.dir}/selenium-server.jar...
7d46a482f56d01c72aac4aff92c0383b87366118
scripts/clear_imported_torrents.sh
scripts/clear_imported_torrents.sh
cd /Users/lopopolo/Downloads rm *.torrent.imported
cd /Users/lopopolo/Downloads shopt -s nullglob found=0 for i in *.torrent.imported; do found=1 done shopt -u nullglob [ $found -eq 1 ] && rm *.torrent.imported
Check to see if there are any imported torrents before removing them
Check to see if there are any imported torrents before removing them
Shell
mit
lopopolo/dotfiles,lopopolo/dotfiles
shell
## Code Before: cd /Users/lopopolo/Downloads rm *.torrent.imported ## Instruction: Check to see if there are any imported torrents before removing them ## Code After: cd /Users/lopopolo/Downloads shopt -s nullglob found=0 for i in *.torrent.imported; do found=1 done shopt -u nullglob [ $found -eq 1 ] && rm *.t...
321eb6fa1bd4d0e68f2cbc170ab999b9364a9f6f
.github/workflows/main.yml
.github/workflows/main.yml
on: push: branches: - main pull_request: branches: - main name: main jobs: build: runs-on: ubuntu-latest steps: - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --no-restore --configuration Release - name: Test r...
on: push: branches: - main pull_request: branches: - main name: main jobs: build: runs-on: ubuntu-latest steps: - name: Install dependencies run: dotnet restore LineBot.sln - name: Build run: dotnet build LineBot.sln --no-restore --configuration Release ...
Include solution file in the commands.
Include solution file in the commands.
YAML
apache-2.0
dlemstra/line-bot-sdk-dotnet,dlemstra/line-bot-sdk-dotnet
yaml
## Code Before: on: push: branches: - main pull_request: branches: - main name: main jobs: build: runs-on: ubuntu-latest steps: - name: Install dependencies run: dotnet restore - name: Build run: dotnet build --no-restore --configuration Release - name...
1bef8134eeef563e14b3dbef53a0989c2eb9ecf1
test/blackbox-tests/test-cases/optional-executable/run.t
test/blackbox-tests/test-cases/optional-executable/run.t
Test optional executable $ dune build @install $ dune build @run-x File "dune", line 3, characters 12-26: 3 | (libraries does-not-exist) ^^^^^^^^^^^^^^ Error: Library "does-not-exist" not found. Hint: try: dune external-lib-deps --missing @run-x [1]
Test optional executable $ dune build @install $ dune build @all File "dune", line 3, characters 12-26: 3 | (libraries does-not-exist) ^^^^^^^^^^^^^^ Error: Library "does-not-exist" not found. Hint: try: dune external-lib-deps --missing @all [1] $ dune build @run-x File "dune", l...
Add a test with for optional executable
Add a test with for optional executable Signed-off-by: François Bobot <8530d62b7eab3cddb9a9239fb10975bf18a1335a@cea.fr>
Perl
apache-2.0
janestreet/jbuilder,dra27/jbuilder,janestreet/jbuilder,janestreet/jbuilder,dra27/jbuilder,dra27/jbuilder,dra27/jbuilder,janestreet/jbuilder,dra27/jbuilder,janestreet/jbuilder,dra27/jbuilder,janestreet/jbuilder
perl
## Code Before: Test optional executable $ dune build @install $ dune build @run-x File "dune", line 3, characters 12-26: 3 | (libraries does-not-exist) ^^^^^^^^^^^^^^ Error: Library "does-not-exist" not found. Hint: try: dune external-lib-deps --missing @run-x [1] ## Instruction: Ad...
620f0adbfd1c6577c39df07d0202f90404663353
metadata/de.arnefeil.bewegungsmelder.txt
metadata/de.arnefeil.bewegungsmelder.txt
Categories:Time License:GPLv3 Web Site:http://arnef.github.io/bewegungsmelder-android Source Code:https://github.com/arnef/bewegungsmelder-android Issue Tracker:https://github.com/arnef/bewegungsmelder-android/issues Auto Name:Bewegungsmelder Summary:Get event information for Hamburg, Germany Description: Companion ap...
Categories:Time License:GPLv3 Web Site:http://arnef.github.io/bewegungsmelder-android Source Code:https://github.com/arnef/bewegungsmelder-android Issue Tracker:https://github.com/arnef/bewegungsmelder-android/issues Auto Name:Bewegungsmelder Summary:Get event information for Hamburg, Germany Description: Companion ap...
Update Bewegungsmelder to 2.0.0 (140102)
Update Bewegungsmelder to 2.0.0 (140102)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Time License:GPLv3 Web Site:http://arnef.github.io/bewegungsmelder-android Source Code:https://github.com/arnef/bewegungsmelder-android Issue Tracker:https://github.com/arnef/bewegungsmelder-android/issues Auto Name:Bewegungsmelder Summary:Get event information for Hamburg, Germany Descripti...
f47ffd72949e331cd2d6ad836c4f539b5a591b69
3rdparty/profiler/Cargo.toml
3rdparty/profiler/Cargo.toml
[package] name = "exonum_profiler" version = "0.1.0" authors = ["Ty Overby <ty@pre-alpha.com>", "The Exonum Team <exonum@bitfury.com>"] repository = "https://github.com/exonum/exonum" [dependencies] lazy_static = "0.2.1" thread-id = "2.0.0" ctrlc = "3.0.1" [features] nomock = []
[package] name = "exonum_profiler" version = "0.1.0" authors = ["Ty Overby <ty@pre-alpha.com>", "The Exonum Team <exonum@bitfury.com>"] repository = "https://github.com/exonum/exonum" description = "A profiling / flamegraph library." license = "Apache-2.0" [dependencies] lazy_static = "0.2.1" thread-id = "2.0.0" ctrlc...
Add description and license for profiler metadata
Add description and license for profiler metadata
TOML
apache-2.0
alekseysidorov/exonum,exonum/exonum,alekseysidorov/exonum,alekseysidorov/exonum,exonum/exonum,exonum/exonum,exonum/exonum,alekseysidorov/exonum
toml
## Code Before: [package] name = "exonum_profiler" version = "0.1.0" authors = ["Ty Overby <ty@pre-alpha.com>", "The Exonum Team <exonum@bitfury.com>"] repository = "https://github.com/exonum/exonum" [dependencies] lazy_static = "0.2.1" thread-id = "2.0.0" ctrlc = "3.0.1" [features] nomock = [] ## Instruction: Add d...
ed258427cf88c895a0d7d0200fc106f8f3526dd2
openmole/plugins/org.openmole.plugin.tool.pattern/src/main/scala/org/openmole/plugin/tool/pattern/While.scala
openmole/plugins/org.openmole.plugin.tool.pattern/src/main/scala/org/openmole/plugin/tool/pattern/While.scala
package org.openmole.plugin.tool.pattern import org.openmole.core.workflow.dsl._ import org.openmole.core.workflow.mole._ import org.openmole.core.workflow.puzzle._ import org.openmole.core.workflow.task._ import org.openmole.core.workflow.transition._ import org.openmole.core.context._ import org.openmole.core.expans...
package org.openmole.plugin.tool.pattern import org.openmole.core.workflow.dsl._ import org.openmole.core.workflow.mole._ import org.openmole.core.workflow.puzzle._ import org.openmole.core.workflow.task._ import org.openmole.core.workflow.transition._ import org.openmole.core.context._ import org.openmole.core.expans...
Revert "[Plugin] fix: provide the counter value to the puzzle."
Revert "[Plugin] fix: provide the counter value to the puzzle." This reverts commit 295e8bfd80829bfbc3e3e667c2a2aab42b28fee9.
Scala
agpl-3.0
openmole/openmole,openmole/openmole,openmole/openmole,openmole/openmole,openmole/openmole
scala
## Code Before: package org.openmole.plugin.tool.pattern import org.openmole.core.workflow.dsl._ import org.openmole.core.workflow.mole._ import org.openmole.core.workflow.puzzle._ import org.openmole.core.workflow.task._ import org.openmole.core.workflow.transition._ import org.openmole.core.context._ import org.open...