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
d79f294856943a6729244fd4ff7652f70d4a09ae
lib/linux_admin/registration_system.rb
lib/linux_admin/registration_system.rb
class LinuxAdmin class RegistrationSystem < LinuxAdmin def self.registration_type(reload = false) return @registration_type if @registration_type && !reload @registration_type = registration_type_uncached end def self.method_missing(meth, *args, &block) if white_list_methods.include?(me...
class LinuxAdmin class RegistrationSystem < LinuxAdmin def self.registration_type(reload = false) return @registration_type if @registration_type && !reload @registration_type = registration_type_uncached end def self.method_missing(meth, *args, &block) if white_list_methods.include?(me...
Check if registered to RHN first to avoid false positives on SM
Check if registered to RHN first to avoid false positives on SM
Ruby
mit
ManageIQ/linux_admin,jrafanie/linux_admin,carbonin/linux_admin,kbrock/linux_admin
ruby
## Code Before: class LinuxAdmin class RegistrationSystem < LinuxAdmin def self.registration_type(reload = false) return @registration_type if @registration_type && !reload @registration_type = registration_type_uncached end def self.method_missing(meth, *args, &block) if white_list_met...
34a0581826d88f87f72deff45346168dc8cf9961
docs/quick-start-guide/src/common/midonet/section_midonet_host_registration_en.adoc
docs/quick-start-guide/src/common/midonet/section_midonet_host_registration_en.adoc
= MidoNet Host Registration . *Launch MidoNet CLI* + ==== [source] ---- $ midonet-cli midonet> ---- ==== . *Create tunnel zone* + MidoNet supports the Virtual Extensible LAN (VXLAN) and Generic Routing Encapsulation (GRE) protocols to communicate to other hosts within a tunnel zone. + To use the VXLAN protocol, creat...
= MidoNet Host Registration . *Launch MidoNet CLI* + ==== [source] ---- $ midonet-cli midonet> ---- ==== . *Create tunnel zone* + MidoNet supports the Virtual Extensible LAN (VXLAN) and Generic Routing Encapsulation (GRE) protocols to communicate to other hosts within a tunnel zone. + To use the VXLAN protocol, creat...
Add a note to allow traffic for GRE/VXLAN
Add a note to allow traffic for GRE/VXLAN Change-Id: Iecefb2704caf88acfffef6e34e9d38940f6aa47d Signed-off-by: Fernando Moreno <ec3e661d7bc7bfbf5334e7dfad309f947dace5f7@midokura.com> Signed-off-by: Jan Hilberath <14e793d896ddc8ca6911747228e86464cf420065@midokura.com>
AsciiDoc
apache-2.0
yantarou/midonet-docs,yantarou/midonet-docs,midonet/midonet-docs,yantarou/midonet-docs,midonet/midonet-docs,midonet/midonet-docs,midonet/midonet-docs
asciidoc
## Code Before: = MidoNet Host Registration . *Launch MidoNet CLI* + ==== [source] ---- $ midonet-cli midonet> ---- ==== . *Create tunnel zone* + MidoNet supports the Virtual Extensible LAN (VXLAN) and Generic Routing Encapsulation (GRE) protocols to communicate to other hosts within a tunnel zone. + To use the VXLAN...
5879a115b873eabf022b018025af5adce728a44a
build.sbt
build.sbt
name := "scala-starter-kit" version := "0.1" scalaVersion := "2.12.6" val akkaVersion = "2.5.16" val akkaHttpVersion = "10.1.5" val sangriaVersion = "1.0.1" libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-http" % akkaHttpVersion, "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion, "com....
name := "scala-starter-kit" version := "0.1" scalaVersion := "2.12.6" val akkaVersion = "2.5.16" val akkaHttpVersion = "10.1.5" val sangriaVersion = "1.0.1" libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-http" % akkaHttpVersion, "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion, "com....
Add 'akka-http-testkit' and 'scalatest' dependency
Add 'akka-http-testkit' and 'scalatest' dependency
Scala
mit
sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-universal-starter-kit,sysgears/apollo-fullstack-starter-kit,sysgears/apollo-universal-starter-kit
scala
## Code Before: name := "scala-starter-kit" version := "0.1" scalaVersion := "2.12.6" val akkaVersion = "2.5.16" val akkaHttpVersion = "10.1.5" val sangriaVersion = "1.0.1" libraryDependencies ++= Seq( "com.typesafe.akka" %% "akka-http" % akkaHttpVersion, "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttp...
0840c2afc3ede520e8fd0900f4dc7570a4b4c8bc
.drone.yml
.drone.yml
kind: pipeline type: docker name: test volumes: - name: pypirc host: path: /home/albertyw/.ssh/other/pypirc steps: - name: Test Python image: python:3.10 commands: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > "${HOME}/bin/cc-test-reporter" ...
kind: pipeline type: docker name: test volumes: - name: pypirc host: path: /home/albertyw/.ssh/other/pypirc steps: - name: Test Python image: python:3.10 commands: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > "${HOME}/bin/cc-test-reporter" ...
Switch from setup.py test to unittest module
Switch from setup.py test to unittest module
YAML
mit
albertyw/csv-to-ical
yaml
## Code Before: kind: pipeline type: docker name: test volumes: - name: pypirc host: path: /home/albertyw/.ssh/other/pypirc steps: - name: Test Python image: python:3.10 commands: - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > "${HOME}/bin/cc-t...
45b71ea93db90ccb4b2b42947a73ea7a50bb91dd
grouprise/features/files/views.py
grouprise/features/files/views.py
import grouprise.features from . import forms class Create(grouprise.features.content.views.Create): template_name = 'files/create.html' form_class = forms.Create
import grouprise.features.content.views from . import forms class Create(grouprise.features.content.views.Create): template_name = 'files/create.html' form_class = forms.Create
Use full import in files view
Use full import in files view Previously it seemed to work only by accident (the importer imported the package before).
Python
agpl-3.0
stadtgestalten/stadtgestalten,stadtgestalten/stadtgestalten,stadtgestalten/stadtgestalten
python
## Code Before: import grouprise.features from . import forms class Create(grouprise.features.content.views.Create): template_name = 'files/create.html' form_class = forms.Create ## Instruction: Use full import in files view Previously it seemed to work only by accident (the importer imported the package b...
99bdc393d44a8fe9f73efcae141f1a0627a24f17
setup.py
setup.py
import os from setuptools import setup, find_packages packages = find_packages() packages.remove('sample_project') classifiers = """ Topic :: Internet :: WWW/HTTP :: Dynamic Content Intended Audience :: Developers License :: OSI Approved :: BSD License Programming Language :: Python Topic :: Software Development :: L...
import os from setuptools import setup, find_packages packages = find_packages(exclude=['sample_project']) classifiers = """ Topic :: Internet :: WWW/HTTP :: Dynamic Content Intended Audience :: Developers License :: OSI Approved :: BSD License Programming Language :: Python Topic :: Software Development :: Libraries...
Fix exclude of sample_project for installation.
Fix exclude of sample_project for installation.
Python
bsd-3-clause
caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets,caktus/django-pagelets
python
## Code Before: import os from setuptools import setup, find_packages packages = find_packages() packages.remove('sample_project') classifiers = """ Topic :: Internet :: WWW/HTTP :: Dynamic Content Intended Audience :: Developers License :: OSI Approved :: BSD License Programming Language :: Python Topic :: Software ...
475dcdef2d1f110a2f47e05ce074cf547440cadf
.travis.yml
.travis.yml
language: c compiler: - gcc-7 install: true script: - make && make test
language: c compiler: - gcc-5 install: - sudo apt-get install gcc-5-base script: - make && make test
Change gcc version to 5
Change gcc version to 5
YAML
mit
Roadagain/Calculator,Roadagain/Calculator
yaml
## Code Before: language: c compiler: - gcc-7 install: true script: - make && make test ## Instruction: Change gcc version to 5 ## Code After: language: c compiler: - gcc-5 install: - sudo apt-get install gcc-5-base script: - make && make test
a1f6c0cbe973307a5b296beed2908d6210021076
chef/lib/chef/knife/role_from_file.rb
chef/lib/chef/knife/role_from_file.rb
require 'chef/knife' class Chef class Knife class RoleFromFile < Knife deps do require 'chef/role' require 'chef/knife/core/object_loader' require 'chef/json_compat' end banner "knife role from file FILE [FILE..] (options)" def loader @loader ||= Knife:...
require 'chef/knife' class Chef class Knife class RoleFromFile < Knife deps do require 'chef/role' require 'chef/knife/core/object_loader' require 'chef/json_compat' end banner "knife role from file FILE [FILE..] (options)" def loader @loader ||= Knife:...
Revert "[CHEF-1911] Also show the -a option"
Revert "[CHEF-1911] Also show the -a option" This reverts commit 3f7317e438ce0fc9736e6ebb22d0378a26f20c51. The '-a' option isn't wired up. We might need some changes to Knife::Core::ObjectLoader to list objects in order to implement '-a' so we'll just revert this one for now.
Ruby
apache-2.0
ranjib/chef,Kast0rTr0y/chef,polamjag/chef,sometimesfood/chef,ShadySQL/chef-merged,nguyen-tien-mulodo/chef,mal/chef,strangelittlemonkey/chef,Igorshp/chef,ChaosCloud/chef,robmul/chef,brettcave/chef,patcon/chef,patcon/chef,docwhat/chef,zshuo/chef,nicklv/chef,MsysTechnologiesllc/chef,ranjib/chef,permyakovsv/chef,aaron-lane...
ruby
## Code Before: require 'chef/knife' class Chef class Knife class RoleFromFile < Knife deps do require 'chef/role' require 'chef/knife/core/object_loader' require 'chef/json_compat' end banner "knife role from file FILE [FILE..] (options)" def loader @l...
aa8cf15667b349460549c6554361be1d61bb7a2c
README.md
README.md
XE Nodejs - Session 17-02-2017
XE Nodejs - Session 17-02-2017 This repo contains my [slides](slides.md) and samples of the XE.NET session about: comparing Node.js and ASP.NET Core You can find the ASP.NET Core [materials here](https://github.com/andreadottor/XE_AspNetCore) by [Andrea Dottor](https://twitter.com/dottor) ##PRE-REQUISITES - Install *...
Update readme with pre-requisite and link to asp.net core repo
Update readme with pre-requisite and link to asp.net core repo
Markdown
mit
dmorosinotto/XE_Nodejs,dmorosinotto/XE_Nodejs
markdown
## Code Before: XE Nodejs - Session 17-02-2017 ## Instruction: Update readme with pre-requisite and link to asp.net core repo ## Code After: XE Nodejs - Session 17-02-2017 This repo contains my [slides](slides.md) and samples of the XE.NET session about: comparing Node.js and ASP.NET Core You can find the ASP.NET Co...
c45b18027a0628473709c96c81ccd033f0499545
updateSubmodules.sh
updateSubmodules.sh
SCRIPTLOC=$(readlink -f "$0") FOLDERLOC=$(dirname "$SCRIPTLOC") cd "$FOLDERLOC" git pull # remove package.json from vscode extensions, as it blocks pulling updates files=$(find "Settings/vscode/extensions/"*/package.json 2>/dev/null) if [ ${#files[@]} -ne 0 ]; then for i in $files; do echo "Removing $i"...
SCRIPTLOC=$(readlink -f "$0") FOLDERLOC=$(dirname "$SCRIPTLOC") SettingsLoc="$FOLDERLOC/Settings" cd "$FOLDERLOC" git pull # reset all submodules submodules=$(echo "$SettingsLoc/vscode/extensions/"*) submodules+=" $SettingsLoc/vim/vim-runtime" submodules+=" $FOLDERLOC/zsh/config-files/zplug" if [ ${#submodules[@]}...
Reset submodules to master instead of removing package file
Reset submodules to master instead of removing package file
Shell
mit
link07/Linux-Settings-and-Setup
shell
## Code Before: SCRIPTLOC=$(readlink -f "$0") FOLDERLOC=$(dirname "$SCRIPTLOC") cd "$FOLDERLOC" git pull # remove package.json from vscode extensions, as it blocks pulling updates files=$(find "Settings/vscode/extensions/"*/package.json 2>/dev/null) if [ ${#files[@]} -ne 0 ]; then for i in $files; do ec...
9c3a9216e81f8e24e2e88e7f679fe7a92c766022
README.md
README.md
[![Build Status](https://travis-ci.org/alexcrichton/toml-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/toml-rs) [![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master) [![Latest Version](htt...
[![Build Status](https://travis-ci.org/alexcrichton/toml-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/toml-rs) [![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master) [![Latest Version](htt...
Add a beautiful badge for docs.rs
Add a beautiful badge for docs.rs
Markdown
apache-2.0
GuillaumeGomez/toml-rs,alexcrichton/toml-rs
markdown
## Code Before: [![Build Status](https://travis-ci.org/alexcrichton/toml-rs.svg?branch=master)](https://travis-ci.org/alexcrichton/toml-rs) [![Coverage Status](https://coveralls.io/repos/alexcrichton/toml-rs/badge.svg?branch=master&service=github)](https://coveralls.io/github/alexcrichton/toml-rs?branch=master) [![Lat...
450853cb6a84f53a0312419465532787c5659f1d
less/timelinemenu.less
less/timelinemenu.less
position: relative; .menu { position: absolute; top: 0px; right: 0; overflow-x: hidden; overflow-y: visible; z-index: 1; ul { position: relative; top: 0px; right: -4.9rem; padding: 0px 0px 0.6rem 1rem; list-style: none; transition: right...
position: relative; .menu { position: absolute; top: 0px; right: 0; overflow-x: hidden; overflow-y: visible; z-index: 1; ul { position: relative; top: 0px; right: -4.9rem; padding: 0px 0px 0.6rem 1rem; list-style: none; transition: right...
Clarify autoscroll disabled hover state
Clarify autoscroll disabled hover state
Less
mit
Doodle3D/socket.io-debug-client,Doodle3D/socket.io-debug-client
less
## Code Before: position: relative; .menu { position: absolute; top: 0px; right: 0; overflow-x: hidden; overflow-y: visible; z-index: 1; ul { position: relative; top: 0px; right: -4.9rem; padding: 0px 0px 0.6rem 1rem; list-style: none; t...
561d98e59ea46b56d50341e06578b5c9fe95c73a
perfbucket/watcher.py
perfbucket/watcher.py
import os import sys import pyinotify import analyzer wm = pyinotify.WatchManager() class ProcessProfilerEvent(pyinotify.ProcessEvent): def process_IN_CLOSE_WRITE(self, event): if event.name.endswith(".json"): base = os.path.splitext(os.path.join(event.path, event.name))[0] analyze...
import os import sys import pyinotify import analyzer class ProcessProfilerEvent(pyinotify.ProcessEvent): def process_IN_CLOSE_WRITE(self, event): if event.name.endswith(".json"): base = os.path.splitext(os.path.join(event.path, event.name))[0] analyzer.analyze_profiling_result(base...
Change scope of watch manager.
Change scope of watch manager.
Python
agpl-3.0
davidstrauss/perfbucket,davidstrauss/perfbucket,davidstrauss/perfbucket
python
## Code Before: import os import sys import pyinotify import analyzer wm = pyinotify.WatchManager() class ProcessProfilerEvent(pyinotify.ProcessEvent): def process_IN_CLOSE_WRITE(self, event): if event.name.endswith(".json"): base = os.path.splitext(os.path.join(event.path, event.name))[0] ...
e52dee21400a0d3890620aa9610db2ed74e5bbae
README.md
README.md
Multiple workspaces for git ## Installation Clone / Tarball: $ make install ## Usage $ git spaces init $ git spaces create some-feature ## Note The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose. Upon creation, new spa...
Multiple workspaces for git ## Installation Clone / Tarball: $ make install ## Usage $ git spaces init $ git spaces create some-feature ## Note The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose. Upon creation, new spa...
Add link to Multiple working folders with single GIT repository in readme.
Add link to Multiple working folders with single GIT repository in readme.
Markdown
mit
unicornrainbow/git-spaces
markdown
## Code Before: Multiple workspaces for git ## Installation Clone / Tarball: $ make install ## Usage $ git spaces init $ git spaces create some-feature ## Note The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose. Upon c...
82fed52c1caa1d635a0b02716e68fa8387525bd3
src/SerialQueue.js
src/SerialQueue.js
;(function (name, definition) { var theModule = definition(), hasDefine = typeof define === 'function' && define.amd, hasExports = typeof module !== 'undefined' && module.exports; if(hasDefine) // AMD Module define(theModule); else if(hasExports) // Node.js Module module.exports = t...
;(function (name, definition) { var theModule = definition(), hasDefine = typeof define === 'function' && define.amd, hasExports = typeof module !== 'undefined' && module.exports; if(hasDefine) // AMD Module define(theModule); else if(hasExports) // Node.js Module module.exports = t...
Add support for task-specific workers
Add support for task-specific workers
JavaScript
unlicense
nischu7/SerialQueue.js
javascript
## Code Before: ;(function (name, definition) { var theModule = definition(), hasDefine = typeof define === 'function' && define.amd, hasExports = typeof module !== 'undefined' && module.exports; if(hasDefine) // AMD Module define(theModule); else if(hasExports) // Node.js Module mo...
7f4727cfa3b307f7500ef08da2ce5907d4c57215
config/mongoid.yml
config/mongoid.yml
development: host: localhost database: cartoque_development test: host: localhost database: cartoque_test # set these environment variables on your prod server production: host: <%= ENV['MONGOID_HOST'] || 'localhost' %> port: <%= ENV['MONGOID_PORT'] || '27017' %> username: <%= ENV['MONGOID_USERNAME'] %>...
development: host: localhost database: cartoque test: host: localhost database: cartoque_test # set these environment variables on your prod server production: host: <%= ENV['MONGOID_HOST'] || 'localhost' %> port: <%= ENV['MONGOID_PORT'] || '27017' %> username: <%= ENV['MONGOID_USERNAME'] %> password:...
Use the same mongodb database name in development and production modes for simplicity
Use the same mongodb database name in development and production modes for simplicity
YAML
mit
cartoque/cartoque,jbbarth/cartoque,skylost/cartoque,jbbarth/cartoque,skylost/cartoque,cartoque/cartoque,jbbarth/cartoque,cartoque/cartoque
yaml
## Code Before: development: host: localhost database: cartoque_development test: host: localhost database: cartoque_test # set these environment variables on your prod server production: host: <%= ENV['MONGOID_HOST'] || 'localhost' %> port: <%= ENV['MONGOID_PORT'] || '27017' %> username: <%= ENV['MONGO...
ca5be645ccfbe4a258c11112abe9ad80f454b566
lib/components/map/index.js
lib/components/map/index.js
const html = require('choo/html'); const map = require('./map'); const { loader } = require('../icons'); const { __ } = require('../../locale'); module.exports = function (state, emit) { let center; const { cooperatives, user, geoip } = state; if (user.isAuthenticated) { const home = cooperatives.find(item ...
const html = require('choo/html'); const map = require('./map'); const { loader } = require('../icons'); const { __ } = require('../../locale'); module.exports = function (state, emit) { let center; const { cooperatives, user, geoip } = state; if (user.isAuthenticated) { const home = cooperatives.find(item ...
Remove geolocation in wait for https
Remove geolocation in wait for https
JavaScript
apache-2.0
CIVIS-project/BRFApp
javascript
## Code Before: const html = require('choo/html'); const map = require('./map'); const { loader } = require('../icons'); const { __ } = require('../../locale'); module.exports = function (state, emit) { let center; const { cooperatives, user, geoip } = state; if (user.isAuthenticated) { const home = coopera...
9aaccd525c2e967d1ad5292e7519a6ddc818abea
server.js
server.js
var union = require('union'), ecstatic = require('ecstatic'); var is2014 = /2014\./; // // ### redirect(res) // World's simplest redirect function // function redirect(res) { var url = 'http://2014.empirenode.org', body = '<p>301. Redirecting to <a href="' + url + '">' + url + '</a></p>'; res.write...
var union = require('union'), ecstatic = require('ecstatic'); var is2014 = /2014\./; // // ### redirect(res) // World's simplest redirect function // function redirect(res) { var url = 'http://2014.empirenode.org', body = '<p>301. Redirecting to <a href="' + url + '">' + url + '</a></p>'; res.write...
Use the defaultExt setting in `ecstatic`.
[minor] Use the defaultExt setting in `ecstatic`.
JavaScript
mit
EmpireJS/2014.empirenode.org,EmpireJS/2014.empirenode.org
javascript
## Code Before: var union = require('union'), ecstatic = require('ecstatic'); var is2014 = /2014\./; // // ### redirect(res) // World's simplest redirect function // function redirect(res) { var url = 'http://2014.empirenode.org', body = '<p>301. Redirecting to <a href="' + url + '">' + url + '</a></p...
85ed1e760869c0a3dc05580216cd242811249cb1
lib/instana/collectors.rb
lib/instana/collectors.rb
require 'timers' require 'instana/collectors/gc' require 'instana/collectors/heap' require 'instana/collectors/memory' require 'instana/collectors/thread' module Instana module Collector class << self attr_accessor :interval end end end Instana.pry! if ENV.key?('INSTANA_GEM_DEV') ::Instana::Collec...
require 'timers' require 'instana/collectors/gc' require 'instana/collectors/heap' require 'instana/collectors/memory' require 'instana/collectors/thread' module Instana module Collector class << self attr_accessor :interval end end end if ENV.key?('INSTANA_GEM_DEV') ::Instana::Collector.interval ...
Use fully qualified namespace calls.
Use fully qualified namespace calls.
Ruby
mit
nguyenquangminh0711/ruby-sensor,nguyenquangminh0711/ruby-sensor,nguyenquangminh0711/ruby-sensor
ruby
## Code Before: require 'timers' require 'instana/collectors/gc' require 'instana/collectors/heap' require 'instana/collectors/memory' require 'instana/collectors/thread' module Instana module Collector class << self attr_accessor :interval end end end Instana.pry! if ENV.key?('INSTANA_GEM_DEV') :...
1a6fec8024439f49bd3001cef29d9e0e178d5f15
doc/pluginlist.rst
doc/pluginlist.rst
Plugin List =========== Native Plugins ############## * EEDI3 -- in the source tree * `FFMS2 <http://code.google.com/p/ffmpegsource/>`_ * `vsrawsource <http://forum.doom9.org/showthread.php?t=166075>`_ -- raw video reader * `vsjpgreader <http://forum.doom9.org/showthread.php?t=166088>`_ -- jpeg image reader Avisynth ...
Plugin List =========== Native Plugins ############## * EEDI3 -- in the source tree * VIVTC -- in the source tree * `Histogram <https://github.com/dubhater/vapoursynth-histogram>`_ -- bundled with the installer * `TemporalSoften <https://github.com/dubhater/vapoursynth-temporalsoften>`_ -- bundled with the installer *...
Add some plugins to the list
Add some plugins to the list git-svn-id: ac1113e4705722bd5ee69cef058b32c421e857b8@301 f9120d27-2007-6f97-8312-0f4ebfa7710f
reStructuredText
lgpl-2.1
vapoursynth/vapoursynth,Kamekameha/vapoursynth,Kamekameha/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth,vapoursynth/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth
restructuredtext
## Code Before: Plugin List =========== Native Plugins ############## * EEDI3 -- in the source tree * `FFMS2 <http://code.google.com/p/ffmpegsource/>`_ * `vsrawsource <http://forum.doom9.org/showthread.php?t=166075>`_ -- raw video reader * `vsjpgreader <http://forum.doom9.org/showthread.php?t=166088>`_ -- jpeg image r...
8b98a4a47c44aa205d3e29602094d6174fa9bb6d
public/config.js
public/config.js
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'Codeaux'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', ...
'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'Codeaux'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch', 'ngMessages',...
Include new module dependencies: ngMessages.
Include new module dependencies: ngMessages.
JavaScript
mit
Codeaux/Codeaux,Codeaux/Codeaux,Codeaux/Codeaux
javascript
## Code Before: 'use strict'; // Init the application configuration module for AngularJS application var ApplicationConfiguration = (function() { // Init module configuration options var applicationModuleName = 'Codeaux'; var applicationModuleVendorDependencies = ['ngResource', 'ngCookies', 'ngAnimate', 'ngTouch...
908a534d127e5537f0bb31780623568ac6ad1c9c
resources/views/includes/weatherunderground.blade.php
resources/views/includes/weatherunderground.blade.php
<div class="row"> <div class="small-10 columns"> <p><a href="http://www.wunderground.com/">Weather Underground</a> is a registered trademark of <a href="http://www.weather.com/">The Weather Channel, LLC</a> both in the United States and internationally. The Weather Underground Logo is a trademark of Weather Undergro...
<div class="row"> <div class="small-10 columns"> <p><a href="http://www.wunderground.com/?apiref=21538d51c3cb9e6b">Weather Underground</a> is a registered trademark of <a href="http://www.weather.com/">The Weather Channel, LLC</a> both in the United States and internationally. The Weather Underground Logo is a trade...
Add Weather Underground referral URL.
Add Weather Underground referral URL.
PHP
mit
roderickvd/semmy,roderickvd/semmy,roderickvd/semmy
php
## Code Before: <div class="row"> <div class="small-10 columns"> <p><a href="http://www.wunderground.com/">Weather Underground</a> is a registered trademark of <a href="http://www.weather.com/">The Weather Channel, LLC</a> both in the United States and internationally. The Weather Underground Logo is a trademark of ...
b180c7e3907df74252ee3270468a768036dc4467
tests/test_timeseries.py
tests/test_timeseries.py
import unittest from datetime import datetime, timedelta import sys sys.path.append(r"..") from daymetpy import download_Daymet class TimeseriesTest(unittest.TestCase): def setUp(self): pass def test_ornl_df(self): ornl_lat, ornl_long = 35.9313167, -84.3104124 df = down...
import unittest from datetime import datetime, timedelta import sys sys.path.append(r"../..") from daymetpy import daymet_timeseries class TimeseriesTest(unittest.TestCase): def setUp(self): pass def test_ornl_df(self): ornl_lat, ornl_long = 35.9313167, -84.3104124 df =...
Update test to new package structure
Update test to new package structure
Python
agpl-3.0
khufkens/daymetpy
python
## Code Before: import unittest from datetime import datetime, timedelta import sys sys.path.append(r"..") from daymetpy import download_Daymet class TimeseriesTest(unittest.TestCase): def setUp(self): pass def test_ornl_df(self): ornl_lat, ornl_long = 35.9313167, -84.3104124 df = do...
b8d8c89c0df2d68f2a8e34bbeacab4ebb75c2cf7
README.md
README.md
The goal of go-rest is to provide a framework that makes it easy to build a flexible and (mostly) unopinionated REST API with little ceremony. It offers tooling for creating stable, resource-oriented endpoints with fine-grained control over input and output fields. The go-rest framework is platform-agnostic, meaning i...
The goal of go-rest is to provide a framework that makes it easy to build a flexible and (mostly) unopinionated REST API with little ceremony. It offers tooling for creating stable, resource-oriented endpoints with fine-grained control over input and output fields. The go-rest framework is platform-agnostic, meaning i...
Add installation section and link to godoc
Add installation section and link to godoc
Markdown
apache-2.0
Workiva/go-rest,kevinsookocheff-wf/go-rest,tylerrinnan-wf/go-rest,aaronkavlie-wf/go-rest
markdown
## Code Before: The goal of go-rest is to provide a framework that makes it easy to build a flexible and (mostly) unopinionated REST API with little ceremony. It offers tooling for creating stable, resource-oriented endpoints with fine-grained control over input and output fields. The go-rest framework is platform-agn...
6834d216400f61c3682ee3974977e73f2d0da0b7
src/withStyles.js
src/withStyles.js
/** * Isomorphic CSS style loader for Webpack * * Copyright © 2015 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component, PropTypes } from 'react'; function withStyles(Co...
/** * Isomorphic CSS style loader for Webpack * * Copyright © 2015 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component, PropTypes } from 'react'; function withStyles(Co...
Fix warning in console, to display ComposedComponent name, rather `Styles` name.
Fix warning in console, to display ComposedComponent name, rather `Styles` name.
JavaScript
mit
5punk/isomorphic-style-loader,kriasoft/isomorphic-style-loader
javascript
## Code Before: /** * Isomorphic CSS style loader for Webpack * * Copyright © 2015 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component, PropTypes } from 'react'; functi...
ed656bc86612b3cf9dc2c727482c462d8c74a41f
client/css/tablesort.css
client/css/tablesort.css
th.sort-header::-moz-selection { background: transparent; } th.sort-header::selection { background: transparent; } th.sort-header { cursor: pointer; } th.sort-header::-moz-selection, th.sort-header::selection { background: transparent; } table th.sort-header::after { content: ''; float: right; margin-top:...
th[role=columnheader]:not(.no-sort) { cursor: pointer; } th[role=columnheader]:not(.no-sort):after { content: ''; float: right; margin-top: 7px; border-width: 0 4px 4px; border-style: solid; border-color: #404040 transparent; visibility: hidden; opacity: 0; -webkit-user-select: none; -moz-user-select: none;...
Use CSS from tables from 5.0.0
Use CSS from tables from 5.0.0
CSS
mit
rloomans/measure-mate,mvillis/measure-mate,rloomans/measure-mate,rloomans/measure-mate,rloomans/measure-mate,mvillis/measure-mate,mvillis/measure-mate,mvillis/measure-mate
css
## Code Before: th.sort-header::-moz-selection { background: transparent; } th.sort-header::selection { background: transparent; } th.sort-header { cursor: pointer; } th.sort-header::-moz-selection, th.sort-header::selection { background: transparent; } table th.sort-header::after { content: ''; float: righ...
9f06e398d6d787ad794d32423f66b2d1946c8699
resources/views/partials/discussions-list.blade.php
resources/views/partials/discussions-list.blade.php
<div class="data-list"> @foreach ($discussions as $discussion) <div class="block"> <div class="item"> <div class="item-avatar"> {!! avatar($discussion->author)->link() !!} </div> <div class="item-content"> {!! $discussion->present()->titleAsLink !!} <div class="meta"> <div class="meta-ite...
<div class="data-list"> @foreach ($discussions as $discussion) <div class="block"> <div class="item"> <div class="item-avatar"> {!! avatar($discussion->author)->link() !!} </div> <div class="item-content"> {!! $discussion->present()->titleAsLink !!} <div class="meta"> <div class="meta-ite...
Use the answer count, not relationship
Use the answer count, not relationship
PHP
mit
anodyne/aurora,anodyne/aurora,anodyne/aurora
php
## Code Before: <div class="data-list"> @foreach ($discussions as $discussion) <div class="block"> <div class="item"> <div class="item-avatar"> {!! avatar($discussion->author)->link() !!} </div> <div class="item-content"> {!! $discussion->present()->titleAsLink !!} <div class="meta"> <div...
d6323e12d53e913be6e9cbd61067272d4f0e21d7
config-templates/module_logpeek.php
config-templates/module_logpeek.php
<?php /* * Configuration for the module logpeek. * * $Id $ */ $config = array ( 'logfile' => '/var/log/simplesamlphp.log', 'lines' => 1500, // Read block size. 8192 is max, limited by fread. 'blocksz' => 8192, ); ?>
<?php /* * Configuration for the module logpeek. */ $config = array ( 'logfile' => '/var/log/simplesamlphp.log', 'lines' => 1500, // Read block size. 8192 is max, limited by fread. 'blocksz' => 8192, ); ?>
Drop obsolete SVN $Id$ keywords.
Drop obsolete SVN $Id$ keywords.
PHP
lgpl-2.1
simplesamlphp/simplesamlphp-module-logpeek
php
## Code Before: <?php /* * Configuration for the module logpeek. * * $Id $ */ $config = array ( 'logfile' => '/var/log/simplesamlphp.log', 'lines' => 1500, // Read block size. 8192 is max, limited by fread. 'blocksz' => 8192, ); ?> ## Instruction: Drop obsolete SVN $Id$ keywords. ## Code After: <?php /* ...
6c1662dcc405dcd48cb04a0b6d20acba8d8e396a
src/lib/indexing.js
src/lib/indexing.js
export const buildNameIndex = (entries) => { const index = {} entries.forEach((entry) => { let currentString = '' for (let character of entry.name) { currentString += character.toLowerCase() if (index[currentString] === undefined) index[currentString] = [] index[currentString].push(entry) ...
export const buildNameIndex = (entries) => { const index = {} entries.forEach((entry) => { let currentString = '' for (let character of entry.name) { currentString += character.toLowerCase() if (index[currentString] === undefined) index[currentString] = [] index[currentString].push(entry) ...
Improve asset and shot indexation
Improve asset and shot indexation * Index assets on all words found in name and on asset type * Index shots on episode sequence and shot name
JavaScript
agpl-3.0
cgwire/kitsu,cgwire/kitsu
javascript
## Code Before: export const buildNameIndex = (entries) => { const index = {} entries.forEach((entry) => { let currentString = '' for (let character of entry.name) { currentString += character.toLowerCase() if (index[currentString] === undefined) index[currentString] = [] index[currentStri...
57a80683dbdd44a9a7c124e2dfb9e31f859d8ccd
lib/turntables/turntable.rb
lib/turntables/turntable.rb
require 'turntables/db_registry' require 'turntables/repository' require 'turntables/turntable_exception' module Turntables # @author Simon Symeonidis # The facade controller to the rest of this library. class Turntable # Default constructor, that initializes some standard parameters def initialize @revisions ...
require 'turntables/db_registry' require 'turntables/repository' require 'turntables/turntable_exception' module Turntables # @author Simon Symeonidis # The facade controller to the rest of this library. class Turntable # Default constructor, that initializes some standard parameters def initialize @revisions ...
Make it actually make the tables (forgot the make call)
Make it actually make the tables (forgot the make call)
Ruby
mit
psyomn/turntables
ruby
## Code Before: require 'turntables/db_registry' require 'turntables/repository' require 'turntables/turntable_exception' module Turntables # @author Simon Symeonidis # The facade controller to the rest of this library. class Turntable # Default constructor, that initializes some standard parameters def initialize...
bc6fb46b62e4ac668aa4d77876ab62a779923708
src/app/integrations/edit-page/connection-select/connection-select.component.html
src/app/integrations/edit-page/connection-select/connection-select.component.html
<div class="connection-select"> <!-- Toolbar --> <div class="toolbar"> <!-- Toolbar: Breadcrumbs --> <div class="row toolbar-pf"> <div class="col-sm-12"> <div class="toolbar-pf-actions"> <div class="inline-block"> <ol class="breadcrumb"> <li> ...
<div class="connection-select"> <!-- Toolbar --> <div class="toolbar"> <!-- Toolbar: Breadcrumbs --> <div class="row toolbar-pf"> <div class="col-sm-12"> <div class="toolbar-pf-actions"> <div class="inline-block"> <ol class="breadcrumb"> <li> ...
Add toolbar to connection select page, fixes IPASS-303
Add toolbar to connection select page, fixes IPASS-303
HTML
apache-2.0
kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client,kahboom/ipaas-client
html
## Code Before: <div class="connection-select"> <!-- Toolbar --> <div class="toolbar"> <!-- Toolbar: Breadcrumbs --> <div class="row toolbar-pf"> <div class="col-sm-12"> <div class="toolbar-pf-actions"> <div class="inline-block"> <ol class="breadcrumb"> <l...
420a42ccc117db845a29d08025ca148500ae9fac
public/robots.txt
public/robots.txt
User-Agent: * Disallow: /auth Disallow: /api Disallow: /*?max_id=
User-Agent: * Disallow: /auth Disallow: /api Disallow: /*?max_id= Sitemap: https://pawoo.net/sitemap/user_indexes.xml
Add sitemap url for user page index.
Add sitemap url for user page index.
Text
agpl-3.0
pixiv/mastodon,pixiv/mastodon,pixiv/mastodon,pixiv/mastodon
text
## Code Before: User-Agent: * Disallow: /auth Disallow: /api Disallow: /*?max_id= ## Instruction: Add sitemap url for user page index. ## Code After: User-Agent: * Disallow: /auth Disallow: /api Disallow: /*?max_id= Sitemap: https://pawoo.net/sitemap/user_indexes.xml
fb9ca96431a4f72135245705359eb1f6d340a536
moksha/api/hub/__init__.py
moksha/api/hub/__init__.py
from consumer import * from hub import *
from consumer import * from hub import * from moksha.hub.reactor import reactor from moksha.hub.hub import MokshaHub
Make the MokshaHub and reactor available in the moksha.api.hub module
Make the MokshaHub and reactor available in the moksha.api.hub module
Python
apache-2.0
lmacken/moksha,pombredanne/moksha,mokshaproject/moksha,mokshaproject/moksha,ralphbean/moksha,lmacken/moksha,lmacken/moksha,mokshaproject/moksha,pombredanne/moksha,pombredanne/moksha,ralphbean/moksha,ralphbean/moksha,pombredanne/moksha,mokshaproject/moksha
python
## Code Before: from consumer import * from hub import * ## Instruction: Make the MokshaHub and reactor available in the moksha.api.hub module ## Code After: from consumer import * from hub import * from moksha.hub.reactor import reactor from moksha.hub.hub import MokshaHub
d95827a4a031ac54b31b9ff0997a8248456e9d50
setup.py
setup.py
from setuptools import setup, find_packages def included_package(p): return p.startswith('spacq.') or p == 'spacq' setup( name='SpanishAcquisition', version='2.0.0a1', author='Dmitri Iouchtchenko', author_email='diouchtc@uwaterloo.ca', maintainer='Grant Watson', maintainer_email='ghwatson@uwaterloo.ca', de...
from setuptools import setup, find_packages def included_package(p): return p.startswith('spacq.') or p == 'spacq' setup( name='SpanishAcquisition', version='2.0.0a1', author='Dmitri Iouchtchenko', author_email='diouchtc@uwaterloo.ca', maintainer='Grant Watson', maintainer_email='ghwatson@uwaterloo.ca', de...
Change URL to new forked repo
Change URL to new forked repo
Python
bsd-2-clause
ghwatson/SpanishAcquisitionIQC,ghwatson/SpanishAcquisitionIQC
python
## Code Before: from setuptools import setup, find_packages def included_package(p): return p.startswith('spacq.') or p == 'spacq' setup( name='SpanishAcquisition', version='2.0.0a1', author='Dmitri Iouchtchenko', author_email='diouchtc@uwaterloo.ca', maintainer='Grant Watson', maintainer_email='ghwatson@uw...
59aa7a9f37dc0cf60f0b7e18d21aa09d9b93520f
templates/_infoBox.html.twig
templates/_infoBox.html.twig
{% set is_stable = 'DEV' not in sylius_meta.version %} {% set admin_url = is_stable ? 'https://demo.sylius.com/admin' : 'https://master.demo.sylius.com/admin' %} {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %} <div class="ui message"> <p> <strong>How to access Sylius adm...
{% set is_stable = 'DEV' not in sylius_meta.version %} {% set admin_url = is_stable ? 'https://demo.sylius.com/admin' : 'https://master.demo.sylius.com/admin' %} {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %} <div class="ui message"> <p> <strong>How to access Sylius adm...
Add link to Swagger UI to info box on homepage
Add link to Swagger UI to info box on homepage
Twig
mit
Sylius/SyliusDemo,Sylius/SyliusDemo,Sylius/SyliusDemo
twig
## Code Before: {% set is_stable = 'DEV' not in sylius_meta.version %} {% set admin_url = is_stable ? 'https://demo.sylius.com/admin' : 'https://master.demo.sylius.com/admin' %} {% if app.request.attributes.get('_route') == 'sylius_shop_homepage' %} <div class="ui message"> <p> <strong>How to a...
5a254bf4956b10e30026d9df0aed6897315aa26a
static/templates/settings/deactivate_realm_modal.hbs
static/templates/settings/deactivate_realm_modal.hbs
<div id="deactivate-realm-modal" class="modal modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivate_realm_modal_label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">&times;</s...
<div id="deactivate-realm-modal" class="modal modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivate_realm_modal_label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="true">&times;</s...
Add Help link widget for UI modal.
deactivate_realm: Add Help link widget for UI modal. Added Help link widget for deactivate_realm UI modal which redirects to /help/deactivate-your-organization within the user documentation.
Handlebars
apache-2.0
kou/zulip,rht/zulip,hackerkid/zulip,kou/zulip,andersk/zulip,eeshangarg/zulip,eeshangarg/zulip,andersk/zulip,kou/zulip,punchagan/zulip,hackerkid/zulip,zulip/zulip,punchagan/zulip,rht/zulip,andersk/zulip,punchagan/zulip,kou/zulip,zulip/zulip,kou/zulip,zulip/zulip,zulip/zulip,punchagan/zulip,eeshangarg/zulip,eeshangarg/zu...
handlebars
## Code Before: <div id="deactivate-realm-modal" class="modal modal-bg hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivate_realm_modal_label" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}"><span aria-hidden="...
54df3087b07ee7c4164a9b341c20bdf75e8e165c
Haxe/Externs/Common/unreal/UInputSettings_Extra.hx
Haxe/Externs/Common/unreal/UInputSettings_Extra.hx
package unreal; extern class UInputSettings_Extra { function SaveKeyMappings() : Void; function AddActionMapping(KeyMapping:Const<PRef<FInputActionKeyMapping>>) : Void; function AddAxisMapping(KeyMapping:Const<PRef<FInputAxisKeyMapping>>) : Void; }
package unreal; extern class UInputSettings_Extra { }
Update to latest perforce change
[CL-17821] Update to latest perforce change
Haxe
mit
proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx
haxe
## Code Before: package unreal; extern class UInputSettings_Extra { function SaveKeyMappings() : Void; function AddActionMapping(KeyMapping:Const<PRef<FInputActionKeyMapping>>) : Void; function AddAxisMapping(KeyMapping:Const<PRef<FInputAxisKeyMapping>>) : Void; } ## Instruction: [CL-17821] Update to latest per...
c4843a080358440d1b75306b8345fac1d4400532
compat/helper.rb
compat/helper.rb
require 'rubygems' require 'mocha' # disable warnings in compat specs. $VERBOSE = nil $:.unshift File.dirname(File.dirname(__FILE__)) + "/lib" ENV['RACK_ENV'] ||= 'test' require 'sinatra' require 'sinatra/test' require 'sinatra/test/unit' require 'sinatra/test/spec' module Sinatra::Test # we need to remove the n...
require 'rubygems' require 'mocha' # disable warnings in compat specs. $VERBOSE = nil $:.unshift File.dirname(File.dirname(__FILE__)) + "/lib" ENV['RACK_ENV'] ||= 'test' require 'sinatra' require 'sinatra/test' require 'sinatra/test/unit' require 'sinatra/test/spec' module Sinatra::Test # we need to remove the n...
Fix mocha puking all over itself under 1.9
Fix mocha puking all over itself under 1.9
Ruby
mit
ganmacs/sinatra,frechei/sinatra,nju520/sinatra,trexnix/sinatra,laplaceliu/sinatra,JonMidhir/sinatra,RosenDimov/sinatra,dariubs/sinatra,guidohcosta/sinatra,eileencodes/sinatra,sethuster/sinatra,nottombrown/old-sinatra,mwpastore/sinatra,marocchino/sinatra,d-bot/sinatra,Wirachmat/sinatra,jenalgit/sinatra,JonMidhir/sinatra...
ruby
## Code Before: require 'rubygems' require 'mocha' # disable warnings in compat specs. $VERBOSE = nil $:.unshift File.dirname(File.dirname(__FILE__)) + "/lib" ENV['RACK_ENV'] ||= 'test' require 'sinatra' require 'sinatra/test' require 'sinatra/test/unit' require 'sinatra/test/spec' module Sinatra::Test # we need...
aeab37ac5b4f4ee27bbdc8389000a034b5b0e1c2
INTHEWILD.md
INTHEWILD.md
Please use [pull requests](https://github.com/brigade/react-waypoint/pull/new/master) to add your organization and/or project to this document! # Organizations - [Airbnb](https://github.com/airbnb) - [Brigade](https://github.com/brigade) - [DoorDash](https://github.com/doordash) - [Netflix](https://github.com/Netflix...
Please use [pull requests](https://github.com/brigade/react-waypoint/pull/new/master) to add your organization and/or project to this document! # Organizations - [Airbnb](https://github.com/airbnb) - [Brigade](https://github.com/brigade) - [Domain Group](https://github.com/DomainGroupOSS) - [DoorDash](https://github....
Add Domain Group as user in the wild
Add Domain Group as user in the wild
Markdown
mit
brigade/react-waypoint,brigade/react-waypoint
markdown
## Code Before: Please use [pull requests](https://github.com/brigade/react-waypoint/pull/new/master) to add your organization and/or project to this document! # Organizations - [Airbnb](https://github.com/airbnb) - [Brigade](https://github.com/brigade) - [DoorDash](https://github.com/doordash) - [Netflix](https://gi...
677239f3d9996d7f5ee701aa5d903a01ec0e2f6b
js/README.md
js/README.md
The squares on the grid are numbered from 0 to 8, left to right, top to bottom: 012 345 678 This allows the squares to be accessed easily in an array. The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respectively. Each ob...
The squares on the grid are numbered from 0 to 8, left to right, top to bottom: 012 345 678 This allows the squares to be accessed easily in an array. The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respectively. Each ob...
Add comment about corrected version
Add comment about corrected version
Markdown
mpl-2.0
tpenguinltg/tic-tac-toe,tpenguinltg/tic-tac-toe
markdown
## Code Before: The squares on the grid are numbered from 0 to 8, left to right, top to bottom: 012 345 678 This allows the squares to be accessed easily in an array. The two files `x.json` and `o.json` contain the unminified DFA for the game's "impossible" mode for the machine playing as X and O, respe...
64d5df7a1c2e9cfae6ca70add3cfa55d086f67e1
db/migrations/20171212220821_appearance_last_cleared_null.php
db/migrations/20171212220821_appearance_last_cleared_null.php
<?php use Phinx\Migration\AbstractMigration; class AppearanceLastClearedNull extends AbstractMigration { public function up() { $this->table('appearances') ->changeColumn('last_cleared', 'timestamp', [ 'timezone' => true, 'null' => true, 'default' => null ]); } public function down() { $this->table('appeara...
<?php use Phinx\Migration\AbstractMigration; class AppearanceLastClearedNull extends AbstractMigration { public function up() { $this->table('appearances') ->changeColumn('last_cleared', 'timestamp', [ 'timezone' => true, 'null' => true, 'default' => null ]) ->update(); } public function down() { $this->...
Add missing update calls to AppearanceLastClearedNull
Add missing update calls to AppearanceLastClearedNull
PHP
mit
ponydevs/MLPVC-RR,ponydevs/MLPVC-RR,ponydevs/MLPVC-RR,ponydevs/MLPVC-RR
php
## Code Before: <?php use Phinx\Migration\AbstractMigration; class AppearanceLastClearedNull extends AbstractMigration { public function up() { $this->table('appearances') ->changeColumn('last_cleared', 'timestamp', [ 'timezone' => true, 'null' => true, 'default' => null ]); } public function down() { $this...
88c3b5b0db3062f1def4394fb82c2be3e4ca662b
roles/php/tasks/main.yml
roles/php/tasks/main.yml
--- - name: Add PHP 7.2 PPA apt_repository: repo: "ppa:ondrej/php" update_cache: yes - name: Install PHP 7.2 apt: name: "{{ item.key }}" state: "{{ item.value }}" cache_valid_time: "{{ apt_cache_valid_time }}" with_dict: "{{ php_extensions }}" - name: Start php7.2-fpm service service: ...
--- - name: Add PHP 7.2 PPA apt_repository: repo: "ppa:ondrej/php" update_cache: yes - name: Install PHP 7.2 apt: name: "{{ item.key }}" state: "{{ item.value }}" cache_valid_time: "{{ apt_cache_valid_time }}" with_dict: "{{ php_extensions }}" - name: Start php7.2-fpm service service: ...
Check and stop php7.1-fpm service
Check and stop php7.1-fpm service
YAML
mit
kalenjohnson/trellis,newtonne/trellis,Twansparant/trellis-db-sync,jeffstieler/bedrock-ansible,newtonne/trellis,NicBeltramelli/trellis,pressbooks/trellis,cimocimocimo/cimo-wordpress-server,jeffstieler/bedrock-ansible,cimocimocimo/cimo-wordpress-server,buluma/trellis,proteusthemes/pt-ops,buluma/trellis,buluma/trellis,Twa...
yaml
## Code Before: --- - name: Add PHP 7.2 PPA apt_repository: repo: "ppa:ondrej/php" update_cache: yes - name: Install PHP 7.2 apt: name: "{{ item.key }}" state: "{{ item.value }}" cache_valid_time: "{{ apt_cache_valid_time }}" with_dict: "{{ php_extensions }}" - name: Start php7.2-fpm service...
29ffe1df88927aa568d3e86b07e372e5ba589310
indra/sources/eidos/server.py
indra/sources/eidos/server.py
import json import requests from flask import Flask, request from indra.sources.eidos.reader import EidosReader from indra.preassembler.make_wm_ontologies import wm_ont_url wm_yml = requests.get(wm_ont_url).text app = Flask(__name__) @app.route('/process_text', methods=['POST']) def process_text(): text = req...
import json import requests from flask import Flask, request from indra.sources.eidos.reader import EidosReader from indra.preassembler.make_wm_ontologies import wm_ont_url wm_yml = requests.get(wm_ont_url).text app = Flask(__name__) @app.route('/process_text', methods=['POST']) def process_text(): text = req...
Allow one or multiple texts to reground
Allow one or multiple texts to reground
Python
bsd-2-clause
sorgerlab/belpy,johnbachman/indra,bgyori/indra,johnbachman/belpy,bgyori/indra,johnbachman/indra,sorgerlab/indra,johnbachman/indra,sorgerlab/indra,sorgerlab/belpy,johnbachman/belpy,johnbachman/belpy,bgyori/indra,sorgerlab/belpy,sorgerlab/indra
python
## Code Before: import json import requests from flask import Flask, request from indra.sources.eidos.reader import EidosReader from indra.preassembler.make_wm_ontologies import wm_ont_url wm_yml = requests.get(wm_ont_url).text app = Flask(__name__) @app.route('/process_text', methods=['POST']) def process_text()...
7938589c950b9b36d215aa85224c931a080c104e
statsd/gauge.py
statsd/gauge.py
import statsd import decimal class Gauge(statsd.Client): '''Class to implement a statsd gauge ''' def send(self, subname, value): '''Send the data to statsd via self.connection :keyword subname: The subname to report the data to (appended to the client name) :keyword...
import statsd from . import compat class Gauge(statsd.Client): '''Class to implement a statsd gauge ''' def send(self, subname, value): '''Send the data to statsd via self.connection :keyword subname: The subname to report the data to (appended to the client name) :...
Use compat.NUM_TYPES due to removal of long in py3k
Use compat.NUM_TYPES due to removal of long in py3k
Python
bsd-3-clause
wolph/python-statsd
python
## Code Before: import statsd import decimal class Gauge(statsd.Client): '''Class to implement a statsd gauge ''' def send(self, subname, value): '''Send the data to statsd via self.connection :keyword subname: The subname to report the data to (appended to the client name) ...
22888f6731cf7e6ab0a6cb14088075cf7061d310
sympy/interactive/ipythonprinting.py
sympy/interactive/ipythonprinting.py
#----------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #----------------------------------------------------...
#----------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #----------------------------------------------------...
Remove checks that module is loaded
Remove checks that module is loaded
Python
bsd-3-clause
wanglongqi/sympy,meghana1995/sympy,skirpichev/omg,ga7g08/sympy,jamesblunt/sympy,Shaswat27/sympy,amitjamadagni/sympy,saurabhjn76/sympy,shikil/sympy,ga7g08/sympy,kevalds51/sympy,maniteja123/sympy,sampadsaha5/sympy,postvakje/sympy,debugger22/sympy,emon10005/sympy,farhaanbukhsh/sympy,diofant/diofant,sunny94/temp,souravsing...
python
## Code Before: #----------------------------------------------------------------------------- # Copyright (C) 2008 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #------------------------------------...
5908fb0342554817e49cdb31e151a2c543feb4d5
PendingMeetUps.md
PendingMeetUps.md
* cat-herder: Evan * Oluwademilade Dammy Adisa (can contact via Meetup) expressed interest in presenting a hangman game he developed. ## April 2020 * cat-herder: Matt * Matt Duffy topic TBD ## May 2020 * cat-herder: Matt * Potentially Mat Larade ## June 2020 * cat-herder: Matt ... ### Misc * Fenil on image re...
* cat-herder: Evan * Oluwademilade Dammy Adisa (can contact via Meetup) expressed interest in presenting a hangman game he developed. ## April 2020 * cat-herder: Matt * Matt Duffy: What's your type? ## May 2020 * cat-herder: Matt * Potentially Mat Larade ## June 2020 * cat-herder: Matt * Chris Macrae: Nuke.Build ...
Add details for April Talk, schedule Chris Macrea in fror June
Add details for April Talk, schedule Chris Macrea in fror June
Markdown
apache-2.0
peidevs/Event_Resources,peidevs/Event_Resources,peidevs/Event_Resources
markdown
## Code Before: * cat-herder: Evan * Oluwademilade Dammy Adisa (can contact via Meetup) expressed interest in presenting a hangman game he developed. ## April 2020 * cat-herder: Matt * Matt Duffy topic TBD ## May 2020 * cat-herder: Matt * Potentially Mat Larade ## June 2020 * cat-herder: Matt ... ### Misc * F...
92316d98dea3c2f54b980be45104c85b7c734c02
js/views/RoomView.js
js/views/RoomView.js
import View from './View' export default class RoomView extends View { constructor() { super(); this.title = 'Room'; this.templateUrl = 'templates/room'; } afterInit() { const roomId = 'test'; [1, 2].forEach(playerId => { const joinArea = this.find(`.join-area:nth-child(${playerId})`); ...
import View from './View' export default class RoomView extends View { constructor() { super(); this.title = 'Room'; this.templateUrl = 'templates/room'; } afterInit() { const roomId = 'test'; const joinUrl = location.href.split('#')[0] + '#/join/'; [1, 2].forEach(playerId => { const joi...
Add a correct url to the qr-code to allow scanning with other apps
Add a correct url to the qr-code to allow scanning with other apps
JavaScript
mit
richterdennis/CastleCrush,richterdennis/CastleCrush
javascript
## Code Before: import View from './View' export default class RoomView extends View { constructor() { super(); this.title = 'Room'; this.templateUrl = 'templates/room'; } afterInit() { const roomId = 'test'; [1, 2].forEach(playerId => { const joinArea = this.find(`.join-area:nth-child(${pla...
6107d7c265ecf063447733a1f3783f4f4005e343
magento-gateway-ebanx/app/code/community/Ebanx/Gateway/Block/Checkout/Success/CashPayment.php
magento-gateway-ebanx/app/code/community/Ebanx/Gateway/Block/Checkout/Success/CashPayment.php
<?php class Ebanx_Gateway_Block_Checkout_Success_CashPayment extends Ebanx_Gateway_Block_Checkout_Success_Payment { protected $_order; protected function _construct() { parent::_construct(); } public function getEbanxPaymentHash() { return $this->getOrder()->getPayment()->getEbanxPayme...
<?php class Ebanx_Gateway_Block_Checkout_Success_CashPayment extends Ebanx_Gateway_Block_Checkout_Success_Payment { protected $_order; protected function _construct() { parent::_construct(); } public function getEbanxPaymentHash() { return $this->getOrder()->getPayment()->getEbanxPayme...
Update URLs on success page
Update URLs on success page
PHP
apache-2.0
ebanx/magento-gateway-ebanx,ebanx/magento-gateway-ebanx,ebanx/magento-gateway-ebanx,ebanx/magento-gateway-ebanx
php
## Code Before: <?php class Ebanx_Gateway_Block_Checkout_Success_CashPayment extends Ebanx_Gateway_Block_Checkout_Success_Payment { protected $_order; protected function _construct() { parent::_construct(); } public function getEbanxPaymentHash() { return $this->getOrder()->getPayment(...
dae57ca23ad73c4740f16ef5346d29d636a6313f
Cargo.toml
Cargo.toml
[package] name = "pnet" version = "0.1.0" authors = [ "Robert Clipsham <robert@octarineparrot.com>" ] license = "MIT/Apache-2.0" homepage = "https://github.com/libpnet/libpnet" repository = "https://github.com/libpnet/libpnet" documentation = "http://octarineparrot.com/assets/libpnet/doc/pnet/" description = "Cross-pl...
[package] name = "pnet" version = "0.1.0" authors = [ "Robert Clipsham <robert@octarineparrot.com>" ] license = "MIT/Apache-2.0" homepage = "https://github.com/libpnet/libpnet" repository = "https://github.com/libpnet/libpnet" documentation = "http://octarineparrot.com/assets/libpnet/doc/pnet/" description = "Cross-pl...
Remove Git dependency on netmap_sys
Remove Git dependency on netmap_sys This hopefully will allow publishing the new version on crates.io.
TOML
apache-2.0
returntoreality/libpnet,little-dude/libpnet,mrmonday/libpnet,tempbottle/libpnet,fsck/libpnet,tempbottle/libpnet,little-dude/libpnet,symphorien/libpnet,symphorien/libpnet,fsck/libpnet,mrmonday/libpnet,little-dude/libpnet,tempbottle/libpnet,returntoreality/libpnet,libpnet/libpnet,returntoreality/libpnet,little-dude/libpn...
toml
## Code Before: [package] name = "pnet" version = "0.1.0" authors = [ "Robert Clipsham <robert@octarineparrot.com>" ] license = "MIT/Apache-2.0" homepage = "https://github.com/libpnet/libpnet" repository = "https://github.com/libpnet/libpnet" documentation = "http://octarineparrot.com/assets/libpnet/doc/pnet/" descrip...
ce61b5088e26cfd77f8a413f825941a0ad4bb48d
app/assets/javascripts/admin/utils/directives/variant_autocomplete.js.coffee
app/assets/javascripts/admin/utils/directives/variant_autocomplete.js.coffee
angular.module("admin.utils").directive "variantAutocomplete", ($timeout) -> restrict: 'C' link: (scope, element, attrs) -> $timeout -> if $("#variant_autocomplete_template").length > 0 variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) if Spree.routes ...
angular.module("admin.utils").directive "variantAutocomplete", ($timeout) -> restrict: 'C' link: (scope, element, attrs) -> $timeout -> if $("#variant_autocomplete_template").length > 0 variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) if Spree.routes ...
Fix debounce on variant search dropdown
Fix debounce on variant search dropdown This wasn't applied correctly so there was zero debounce, leading to a big excess of pointless requests whilst typing in the variant search dropdown
CoffeeScript
agpl-3.0
openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,lin-d-hop/openfoodnetwork,mkllnk/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,mkllnk/openfoodnetwork,mkllnk/openfoodnetwork,Matt-Yorkley/...
coffeescript
## Code Before: angular.module("admin.utils").directive "variantAutocomplete", ($timeout) -> restrict: 'C' link: (scope, element, attrs) -> $timeout -> if $("#variant_autocomplete_template").length > 0 variantTemplate = Handlebars.compile($("#variant_autocomplete_template").text()) if Spree...
bcf7c5765c94b4afe36e8546036cbde1fa4d71b8
RELEASE_PROCEDURE.md
RELEASE_PROCEDURE.md
Blaze Release Procedure ======================= This document describes the steps to follow to release a new version of Blaze. 1. Update version numbers in /setup.py, in the setup(...) call. 1. Confirm the dependencies and their version numbers in /README.md. In particular, `blz`, `dynd-python`, etc will t...
Blaze Release Procedure ======================= This document describes the steps to follow to release a new version of Blaze. 1. Update version numbers in the following locations: * /setup.py, in the setup(...) call. * /README.md where it mentions the current release. 1. Confirm the dependencies and their versi...
Add place to update version number in release procedure
Add place to update version number in release procedure
Markdown
bsd-3-clause
AbhiAgarwal/blaze,alexmojaki/blaze,FrancescAlted/blaze,mwiebe/blaze,FrancescAlted/blaze,aterrel/blaze,AbhiAgarwal/blaze,markflorisson/blaze-core,AbhiAgarwal/blaze,jdmcbr/blaze,xlhtc007/blaze,cowlicks/blaze,ChinaQuants/blaze,nkhuyu/blaze,caseyclements/blaze,ContinuumIO/blaze,scls19fr/blaze,xlhtc007/blaze,AbhiAgarwal/bla...
markdown
## Code Before: Blaze Release Procedure ======================= This document describes the steps to follow to release a new version of Blaze. 1. Update version numbers in /setup.py, in the setup(...) call. 1. Confirm the dependencies and their version numbers in /README.md. In particular, `blz`, `dynd-python...
975f85d8a5f73bd9b66859e167df0bf2c1d54084
TEMPLATE.md
TEMPLATE.md
awesome-ios-ui ============== A curated list of awesome iOS UI/UX libraries. Inspired by [wasabeef]'s excellent [Android Version]. ### Contributing Found a UI/UX library that you think is _awesome_?? Want to share it with the world? Add your repo's information to my [awesome-creator], where I keep the library metada...
awesome-ios-ui [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) ============== A curated list of awesome iOS UI/UX libraries. Inspired by [wasabeef]'s excellent [Android Version]. ### Contributing Found a UI/UX...
Add awesome badge to template
Add awesome badge to template
Markdown
mit
cjwirth/awesome-creator
markdown
## Code Before: awesome-ios-ui ============== A curated list of awesome iOS UI/UX libraries. Inspired by [wasabeef]'s excellent [Android Version]. ### Contributing Found a UI/UX library that you think is _awesome_?? Want to share it with the world? Add your repo's information to my [awesome-creator], where I keep th...
4bada06293d477f838057b8951fe2a31ebf6d5a1
ckanext/ckanext-apicatalog_ui/ckanext/apicatalog_ui/templates/snippets/search_form.html
ckanext/ckanext-apicatalog_ui/ckanext/apicatalog_ui/templates/snippets/search_form.html
{% ckan_extends %} {% block search_input %} <label for="field-giant-search">{{ _('Filter by text') }}</label> {{ super() }} {% endblock %} {% block search_sortby %} {% if sorting %} <div class="form-select"> <label for="field-order-by">{{ _('Order by') }}</label> <div class="select-wrapper...
{% ckan_extends %} {% block search_input %} <label for="field-giant-search">{{ _('Filter by text') }}</label> {{ super() }} {% endblock %} {% block search_sortby %} {% if sorting %} <div class="form-select"> <label for="field-order-by">{{ _('Order by') }}</label> <div class="select-wrapper...
Add aria-label to search button (filter by org name)
LIKA-97: Add aria-label to search button (filter by org name)
HTML
mit
vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog,vrk-kpa/api-catalog
html
## Code Before: {% ckan_extends %} {% block search_input %} <label for="field-giant-search">{{ _('Filter by text') }}</label> {{ super() }} {% endblock %} {% block search_sortby %} {% if sorting %} <div class="form-select"> <label for="field-order-by">{{ _('Order by') }}</label> <div class...
52ecb8fedbc44b6aadffce1f6240f0b9ed94c783
bin/tag_names.zsh
bin/tag_names.zsh
lang=$1 ; shift names=$1 ; shift for source in $@; do awk '{ print length, $0 }' < $names | sort -n | cut -d' ' -f2- | while read name; do clear git co -- $source msg="Tag instances of name '$name' as language '$lang'" perl -i -pne "s/(?<!\})$name(?!\})/\\\\lang$lang{$name}/g if ! /^(\[\^\d+\]|#+ )/" -...
lang=$1 ; shift names=$1 ; shift for source in $@; do perl -e 'print sort { length($b) <=> length($a) } <>' < $names | while read name; do clear git co -- $source msg="Tag instances of name '$name' as language '$lang'" perl -i -pne "s/(?<!\})$name(?!\})/\\\\lang$lang{$name}/g if ! /^(\[\^\d+\]|#+ )/" -...
Simplify using Perl oneliner and _actually_ reverse the order
Simplify using Perl oneliner and _actually_ reverse the order
Shell
agpl-3.0
alerque/casile,alerque/casile,alerque/casile,alerque/casile,alerque/casile
shell
## Code Before: lang=$1 ; shift names=$1 ; shift for source in $@; do awk '{ print length, $0 }' < $names | sort -n | cut -d' ' -f2- | while read name; do clear git co -- $source msg="Tag instances of name '$name' as language '$lang'" perl -i -pne "s/(?<!\})$name(?!\})/\\\\lang$lang{$name}/g if ! /^(\[...
ca688365a23880f4fd181257322d5ff5c31003c3
example_box/README.md
example_box/README.md
Vagrant providers each require a custom provider-specific box format. This folder shows the example contents of a box for the `kvm` provider. There are two box formats for the `kvm` provider: 1. VirtualBox box - you need to change the provider to `kvm` in the `metadata.json` file, the box will be converted on the ...
Vagrant providers each require a custom provider-specific box format. This folder shows the example contents of a box for the `kvm` provider. You need a box.xml file (libvirt domain format), you can use the example supplied as a base or use one from a VM you created with other tools. Don't forget to change the volume...
Clean up and update of the sample box doc
Clean up and update of the sample box doc
Markdown
mit
adrahon/vagrant-kvm,rainforestapp/vagrant-kvm,adrahon/vagrant-kvm
markdown
## Code Before: Vagrant providers each require a custom provider-specific box format. This folder shows the example contents of a box for the `kvm` provider. There are two box formats for the `kvm` provider: 1. VirtualBox box - you need to change the provider to `kvm` in the `metadata.json` file, the box will be c...
d8760f06e8e2c6cd09491db7dde57d399c9eef2c
src/index.ts
src/index.ts
import { Document } from './document' import { SortData } from './types/types' import { binaryInsert, binarySearch, quickSort } from './utils' class Index { public name:string private _index:Document[] private _sortData:SortData[] constructor (name:string, sortData?:SortData[]) { this.name = name t...
import { Document } from './document' import { SortData } from './types/types' import { binaryInsert, binarySearch } from './utils' class Index { public name:string private _index:Document[] private _sortData:SortData[] constructor (name:string, sortData?:SortData[]) { this.name = name this._index ...
Remove unused and deprecated 'quickSort' import
Remove unused and deprecated 'quickSort' import
TypeScript
mit
varbrad/mindb,varbrad/mindb
typescript
## Code Before: import { Document } from './document' import { SortData } from './types/types' import { binaryInsert, binarySearch, quickSort } from './utils' class Index { public name:string private _index:Document[] private _sortData:SortData[] constructor (name:string, sortData?:SortData[]) { this.n...
f562d274f6620eaff0a72c55ba4ec8be22fef674
src/NuProj.ProjectSystem.15/project.json
src/NuProj.ProjectSystem.15/project.json
{ "dependencies": { "Microsoft.VisualStudio.ProjectSystem": "15.0.183-pre", "Microsoft.VisualStudio.ProjectSystem.SDK": "15.0.183-pre", "Microsoft.VisualStudio.SDK.VsixSuppression": "14.1.25", "Microsoft.VisualStudio.Shell.15.0": "15.0.25123-Dev15Preview", "Microsoft.VisualStudio.Shell.Interop.11...
{ "dependencies": { "Microsoft.VisualStudio.ProjectSystem": "15.0.183-pre", "Microsoft.VisualStudio.ProjectSystem.SDK": "15.0.183-pre", "Microsoft.VisualStudio.SDK.VsixSuppression": "14.1.25", "Microsoft.VisualStudio.Shell.15.0": "15.0.25123-Dev15Preview", "Microsoft.VisualStudio.Shell.Interop.11...
Embed interop types as necessary for runtime
Embed interop types as necessary for runtime
JSON
mit
nuproj/nuproj,zbrad/nuproj,kovalikp/nuproj
json
## Code Before: { "dependencies": { "Microsoft.VisualStudio.ProjectSystem": "15.0.183-pre", "Microsoft.VisualStudio.ProjectSystem.SDK": "15.0.183-pre", "Microsoft.VisualStudio.SDK.VsixSuppression": "14.1.25", "Microsoft.VisualStudio.Shell.15.0": "15.0.25123-Dev15Preview", "Microsoft.VisualStudio....
f8372d6528913770b2b6851f6e093fc16358b8c8
src/main/java/com/nickww/finitefield/ChecksumVector.java
src/main/java/com/nickww/finitefield/ChecksumVector.java
package com.nickww.finitefield; public abstract class ChecksumVector { /** * Calculates checksums for the given data, and returns a vector which is the given data bytes followed by the * checksum bytes. * * @param data The data to checksum. * @return An array with the data and the checksums. */...
package com.nickww.finitefield; import java.util.ArrayList; import java.util.List; public abstract class ChecksumVector { /** * Calculates checksums for the given data, and returns a vector which is the given data bytes followed by the * checksum bytes. * * @param data The data to checksum. * ...
Create convenience method to determine the indices of null in an array
Create convenience method to determine the indices of null in an array
Java
mit
TheBrownMotie/finite-byte-field,TheBrownMotie/finite-byte-field
java
## Code Before: package com.nickww.finitefield; public abstract class ChecksumVector { /** * Calculates checksums for the given data, and returns a vector which is the given data bytes followed by the * checksum bytes. * * @param data The data to checksum. * @return An array with the data and the checksums...
71c1ca1c42426eb322537dcf6109343ddec8ff56
test/browser/tests/basic/frontpage_test.js
test/browser/tests/basic/frontpage_test.js
var request = require('superagent'); module.exports = { "Load front page": function(browser) { browser .url("http://localhost:44199") .waitForElementVisible('body', 1000) .assert.containsText('.login', 'Sign in') .end(); }, tearDown: function(done) {...
var request = require('superagent'); module.exports = { "Load front page": function(browser) { browser .url("http://localhost:44199") .waitForElementVisible('body', 1000) .assert.containsText('.login', 'Sign in') .end(); }, tearDown: function(done) {...
Add test reporting debug logging
Add test reporting debug logging
JavaScript
apache-2.0
ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas
javascript
## Code Before: var request = require('superagent'); module.exports = { "Load front page": function(browser) { browser .url("http://localhost:44199") .waitForElementVisible('body', 1000) .assert.containsText('.login', 'Sign in') .end(); }, tearDown: ...
7f075f6b963cc6048579cc464ed0154598f0dd0e
java/solr_plugins/ConditionalInsertField/src/de/uni_tuebingen/ub/ixTheo/ConditionalInsertFieldProcessorFactory.java
java/solr_plugins/ConditionalInsertField/src/de/uni_tuebingen/ub/ixTheo/ConditionalInsertFieldProcessorFactory.java
package de.uni_tuebingen.ub.ixTheo.conditionalInsertField; import java.io.IOException; import org.apache.solr.common.SolrInputDocument; import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse; import org.apache.solr.update.AddUpdateCommand; import org.apache.solr.update.proc...
package de.uni_tuebingen.ub.ixTheo.conditionalInsertField; import java.io.IOException; import org.apache.solr.common.SolrInputDocument; import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse; import org.apache.solr.update.AddUpdateCommand; import org.apache.solr.update.proc...
Extend has fulltext to new scopes
Extend has fulltext to new scopes
Java
agpl-3.0
ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools,ubtue/ub_tools
java
## Code Before: package de.uni_tuebingen.ub.ixTheo.conditionalInsertField; import java.io.IOException; import org.apache.solr.common.SolrInputDocument; import org.apache.solr.request.SolrQueryRequest; import org.apache.solr.response.SolrQueryResponse; import org.apache.solr.update.AddUpdateCommand; import org.apache....
cb63fac8ee3a1ba90a1b351862ac6ead5d3c1325
headless-services/spring-boot-language-server/src/main/resources/application.yml
headless-services/spring-boot-language-server/src/main/resources/application.yml
languageserver: extension-id: vscode-spring-boot completion-trigger-characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.
languageserver: extension-id: vscode-spring-boot # Disabled trigger-characters for now. See https://github.com/spring-projects/sts4/issues/193 # completion-trigger-characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.
Disable trigger characters for boot language server
Disable trigger characters for boot language server See: https://github.com/spring-projects/sts4/issues/193
YAML
epl-1.0
spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4,spring-projects/sts4
yaml
## Code Before: languageserver: extension-id: vscode-spring-boot completion-trigger-characters: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. ## Instruction: Disable trigger characters for boot language server See: https://github.com/spring-projects/sts4/issues/193 ## Code After: languageserver: extensi...
d7854d1eb435dcbcadf3c76a01588b660a3b5184
.travis.yml
.travis.yml
language: node_js arch: - amd64 - ppc64le node_js: - "0.10" - "0.12" - "stable" jobs: exclude: - nodejs: 0.10 arch: ppc64le - nodejs: 0.12 arch: ppc64le
arch: - amd64 - ppc64le language: node_js node_js: - "10" - "12" - "14" - "15" - "stable"
Update to modern node versions
Update to modern node versions
YAML
mit
robrich/sequencify
yaml
## Code Before: language: node_js arch: - amd64 - ppc64le node_js: - "0.10" - "0.12" - "stable" jobs: exclude: - nodejs: 0.10 arch: ppc64le - nodejs: 0.12 arch: ppc64le ## Instruction: Update to modern node versions ## Code After: arch: - amd64 - ppc64le language: node_js n...
e51c337f831599b438230499a00f689589addcf3
README.md
README.md
j1mr10rd4n/homebrew-tap ======================= These formulae are either under development or not available in the [core taps](https://github.com/Homebrew/homebrew/wiki/Interesting-Taps-&-Branches). How do I install these formulae? -------------------------------- Just `brew tap j1mr10rd4n/homebrew-tap` and then `br...
j1mr10rd4n/homebrew-tap ======================= These formulae are either under development or not available in the [core taps](https://github.com/Homebrew/homebrew/wiki/Interesting-Taps-&-Branches). How do I install these formulae? -------------------------------- Just `brew tap j1mr10rd4n/homebrew-tap` and then `br...
Add note about updating meteor
Add note about updating meteor
Markdown
mit
j1mr10rd4n/homebrew-tap
markdown
## Code Before: j1mr10rd4n/homebrew-tap ======================= These formulae are either under development or not available in the [core taps](https://github.com/Homebrew/homebrew/wiki/Interesting-Taps-&-Branches). How do I install these formulae? -------------------------------- Just `brew tap j1mr10rd4n/homebrew-t...
459734ecbb22f92fd4babaab64f902d608050f6b
README.md
README.md
Sketching an asynchronous JavaScript cookies API for documents and workers At present the best starting point for understanding this API is [the explainer](explainer.md). This API is inspired by and loosely based on the discussion at https://github.com/slightlyoff/ServiceWorker/issues/707 and [elsewhere](https://githu...
Sketching an asynchronous JavaScript cookies API for documents and workers At present the best starting point for understanding this API is [the explainer](explainer.md). This API is inspired by and loosely based on the discussion at https://github.com/slightlyoff/ServiceWorker/issues/707 and [elsewhere](https://githu...
Add accidentally dropped word "discussion"
Add accidentally dropped word "discussion"
Markdown
apache-2.0
bsittler/async-cookies-api,bsittler/async-cookies-api
markdown
## Code Before: Sketching an asynchronous JavaScript cookies API for documents and workers At present the best starting point for understanding this API is [the explainer](explainer.md). This API is inspired by and loosely based on the discussion at https://github.com/slightlyoff/ServiceWorker/issues/707 and [elsewher...
497d5ef77499184da22b33a5e2863f330fb43c1c
src/kinect_tomato_searcher/src/kinect_tomato_broadcaster_node.cpp
src/kinect_tomato_searcher/src/kinect_tomato_broadcaster_node.cpp
class TomatoBroadcaster { tf2_ros::TransformBroadcaster broadcaster_; geometry_msgs::TransformStamped transform_; ros::Subscriber sub_; public: TomatoBroadcaster(ros::NodeHandle node_handle) : transform_ {}, sub_ {node_handle.subscribe<geometry_msgs::PointStamped>("tomato_point", 1, &TomatoBroadcast...
class TomatoBroadcaster { tf2_ros::TransformBroadcaster broadcaster_; geometry_msgs::TransformStamped transform_; ros::Subscriber sub_; public: TomatoBroadcaster(ros::NodeHandle& node_handle) : broadcaster_ {}, transform_ {}, sub_ {node_handle.subscribe<geometry_msgs::PoseStamped>("tomato_poin...
Update message type for PoseStamped
Update message type for PoseStamped
C++
mit
agrirobo/arcsys2,agrirobo/arcsys2
c++
## Code Before: class TomatoBroadcaster { tf2_ros::TransformBroadcaster broadcaster_; geometry_msgs::TransformStamped transform_; ros::Subscriber sub_; public: TomatoBroadcaster(ros::NodeHandle node_handle) : transform_ {}, sub_ {node_handle.subscribe<geometry_msgs::PointStamped>("tomato_point", 1, ...
14c247f1de8af7f9cce97fd629e9fa5f56924dd1
appveyor.yml
appveyor.yml
environment: matrix: - PYTHON: "C:\\Python35" install: - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - "%PYTHON%\\python.exe -m pip install pywin32" build: off test_script: - "%PYTHON%\\python.exe setup.py test"
environment: matrix: - PYTHON: "C:\\Python35" install: - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - "choco install pywin32" build: off test_script: - "%PYTHON%\\python.exe setup.py test"
Use chocolately to install pywin32
Use chocolately to install pywin32
YAML
mit
Empiria/matador
yaml
## Code Before: environment: matrix: - PYTHON: "C:\\Python35" install: - "%PYTHON%\\python.exe -m pip install -r requirements.txt" - "%PYTHON%\\python.exe -m pip install pywin32" build: off test_script: - "%PYTHON%\\python.exe setup.py test" ## Instruction: Use chocolately to install pywin32 ## Code After...
4cdbbc6a3994e687cc44977102b7c2d05ef2ea5c
app/views/newfromtemplate.html
app/views/newfromtemplate.html
<div class="container"> <div class="row"> <div class="col-md-12"> <div ng-controller="NewFromTemplateController" class="create-from-template"> <div class="row"> <div class="col-md-2 template-name"> <span class="fa fa-cubes hidden-xs hidden-sm"></span> </div> ...
<div class="container"> <div class="row"> <div class="col-md-12"> <div ng-controller="NewFromTemplateController" class="create-from-template"> <div class="row"> <div class="col-md-2 template-name"> <span class="fa fa-cubes hidden-xs hidden-sm"></span> </div> ...
Hide images section when no images detected in template
Hide images section when no images detected in template
HTML
apache-2.0
openshift/origin-web-console,openshift/origin-web-console,openshift/origin-web-console,openshift/origin-web-console
html
## Code Before: <div class="container"> <div class="row"> <div class="col-md-12"> <div ng-controller="NewFromTemplateController" class="create-from-template"> <div class="row"> <div class="col-md-2 template-name"> <span class="fa fa-cubes hidden-xs hidden-sm"></span> ...
415aabb91b241142770994e239363fe393850d85
t/04-all.t
t/04-all.t
use 5.006; use strict; use warnings; use Test::Tester; use Test::Version qw( version_all_ok ); use Test::More; my ( $premature, @results ) = run_tests( sub { version_all_ok('corpus'); } ); is( scalar(@results), 3, 'correct number of results' ); my @oks; foreach my $result ( @results ) { push @oks, $result->{ok...
use 5.006; use strict; use warnings; use Test::Tester; use Test::Version qw( version_all_ok ); use Test::More; my ( $premature, @results ) = run_tests( sub { version_all_ok('corpus'); } ); is( scalar(@results), 3, 'correct number of results' ); my @oks; foreach my $result ( @results ) { push @oks, $result->{ok...
Build results of 6df3e28 (on master)
Build results of 6df3e28 (on master)
Perl
artistic-2.0
doherty/Test-Version,schwern/Test-Version
perl
## Code Before: use 5.006; use strict; use warnings; use Test::Tester; use Test::Version qw( version_all_ok ); use Test::More; my ( $premature, @results ) = run_tests( sub { version_all_ok('corpus'); } ); is( scalar(@results), 3, 'correct number of results' ); my @oks; foreach my $result ( @results ) { push @o...
a24bf76cd3d50b1370e5e63077e1f4ae1023b086
lib/euehelpers.py
lib/euehelpers.py
def check_mail(self, email): """ Verify that the provided email is valid """ regex = r"^[_.0-9A-Za-z-]+@([0-9A-Za-z][0-9A-Za-z-]+.)+[A-Za-z]{2,4}$" if not re.match(regex, email): return False else: return True
import re """ helpers functions for various aspect of eue-ng project """ def check_mail(email): """ Verify that the provided email is valid """ regex = r"^[_.0-9A-Za-z-]+@([0-9A-Za-z][0-9A-Za-z-]+.)+[A-Za-z]{2,4}$" if not re.match(regex, email): return False else: return Tru...
Fix check_mail helpers extracted from a class
Fix check_mail helpers extracted from a class
Python
agpl-3.0
david-guenault/eue-ng,david-guenault/eue-ng,david-guenault/eue-ng,david-guenault/eue-ng,david-guenault/eue-ng,david-guenault/eue-ng
python
## Code Before: def check_mail(self, email): """ Verify that the provided email is valid """ regex = r"^[_.0-9A-Za-z-]+@([0-9A-Za-z][0-9A-Za-z-]+.)+[A-Za-z]{2,4}$" if not re.match(regex, email): return False else: return True ## Instruction: Fix check_mail helpers extracted f...
b30b08fc36ae833c5d4716875b6ed34d222aad9e
lib/junos-ez/facts/ifd_style.rb
lib/junos-ez/facts/ifd_style.rb
Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts| persona = uses :personality facts[:ifd_style] = case persona when :SWITCH :SWITCH else :CLASSIC end end
Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts| persona,sw_style = uses :personality,:switch_style facts[:ifd_style] = case persona when :SWITCH if sw_style == :VLAN_L2NG :CLASSIC else :SWITCH end else :CLASSIC end end
Fix to identify ifd style based on L2NG system
Fix to identify ifd style based on L2NG system
Ruby
bsd-2-clause
rterrero/ruby-junos-ez-stdlib,ganeshnalawade/ruby-junos-ez-stdlib
ruby
## Code Before: Junos::Ez::Facts::Keeper.define( :ifd_style ) do |ndev, facts| persona = uses :personality facts[:ifd_style] = case persona when :SWITCH :SWITCH else :CLASSIC end end ## Instruction: Fix to identify ifd style based on L2NG system ## Code After: Junos::Ez::Facts::Keeper...
7dfc5264b04e088f1da56f92a09301f4f23ddb6d
README.md
README.md
Execute blocks in a manipulatable environment. ## Installation Add this line to your application's Gemfile: gem 'exec_env' And then execute: $ bundle Or install it yourself as: $ gem install exec_env ## Usage ```ruby ``` ## Contributing 1. Fork it ( http://github.com/<my-github-username>/exec_e...
Execute blocks in a manipulatable environment and capture messages that did not get a response and would normally produce a `NameError` or `NoMethodError`. For example use cases of this have a look at [anaphoric](https://github.com/CQQL/anaphoric) or [hash_builder](https://github.com/CQQL/hash_builder). If you have a...
Add usage section to readme
Add usage section to readme
Markdown
mit
cqql/exec_env
markdown
## Code Before: Execute blocks in a manipulatable environment. ## Installation Add this line to your application's Gemfile: gem 'exec_env' And then execute: $ bundle Or install it yourself as: $ gem install exec_env ## Usage ```ruby ``` ## Contributing 1. Fork it ( http://github.com/<my-github-...
42dba8ab976abc8a909cacb29d3c373877697633
nvim/.config/nvim/plugin/environment.vim
nvim/.config/nvim/plugin/environment.vim
" disable the bell set vb t_vb= " enable line numbering set number " disable startup message set shortmess+=I " statusline set laststatus=2 " auto reload changed files set autoread set checktime " mouse compatibility set mouse=a " x clipboard access set clipboard+=unnamedplus " case-insensitive searching - case-...
" disable the bell set vb t_vb= " enable line numbering set number " disable startup message set shortmess+=I " statusline set laststatus=2 " auto reload changed files set autoread " mouse compatibility set mouse=a " x clipboard access set clipboard+=unnamedplus " case-insensitive searching - case-sensitive if u...
Revert "Add checktime option to (hopefully) auto reload"
Revert "Add checktime option to (hopefully) auto reload" This reverts commit 2d08ae87b6a86361379ebc2181e38e4c9aacc8c4.
VimL
bsd-3-clause
mpcsh/dotfiles
viml
## Code Before: " disable the bell set vb t_vb= " enable line numbering set number " disable startup message set shortmess+=I " statusline set laststatus=2 " auto reload changed files set autoread set checktime " mouse compatibility set mouse=a " x clipboard access set clipboard+=unnamedplus " case-insensitive s...
c0237299ffd8ffc3e2b9f7291bf5a490c8bbdf13
plugins/flipkart.js
plugins/flipkart.js
var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Flipkart', prepareImgLinks:function (callback) { var res = []; hoverZoom.urlReplace(res, 'img[src*="rukminim1.flixcart.com"]', /image\/\d+\/\d+/, 'image/500/500' ); ca...
var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Flipkart', version:'2.0', prepareImgLinks:function (callback) { var res = []; /*hoverZoom.urlReplace(res, 'img[src*="rukminim1.flixcart.com"]', /image\/\d+\/\d+/, 'image/500/500'...
Fix for plug-in : Flipkart
Fix for plug-in : Flipkart
JavaScript
mit
extesy/hoverzoom,extesy/hoverzoom
javascript
## Code Before: var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name:'Flipkart', prepareImgLinks:function (callback) { var res = []; hoverZoom.urlReplace(res, 'img[src*="rukminim1.flixcart.com"]', /image\/\d+\/\d+/, 'image/500/500' ...
396676d30bf0362bd19738b52b711b515bd8b231
app/scripts/filters/sortnum.js
app/scripts/filters/sortnum.js
'use strict'; /** * @ngdoc filter * @name SubSnoopApp.filter:sortnum * @function * @description * # sortnum * Filter in the SubSnoopApp. */ angular.module('SubSnoopApp') .filter('sortNum', ['$filter', function ($filter) { return function (num1, num2, a, b, reverse, secondary) { var val1, val2; ...
'use strict'; /** * @ngdoc filter * @name SubSnoopApp.filter:sortnum * @function * @description * # sortnum * Filter in the SubSnoopApp. */ angular.module('SubSnoopApp') .filter('sortNum', ['$filter', function ($filter) { var sort = function(num1, num2, a, b, reverse, secondary) { var val1, val2; ...
Fix recursive call for sortNum filter
Fix recursive call for sortNum filter
JavaScript
mit
sharibarboza/SubSnoop,sharibarboza/SubSnoop
javascript
## Code Before: 'use strict'; /** * @ngdoc filter * @name SubSnoopApp.filter:sortnum * @function * @description * # sortnum * Filter in the SubSnoopApp. */ angular.module('SubSnoopApp') .filter('sortNum', ['$filter', function ($filter) { return function (num1, num2, a, b, reverse, secondary) { var ...
1f3468a73e6aec048e4c2a7a5cc9d2eb118739b2
.github/workflows/ci.yaml
.github/workflows/ci.yaml
name: CI # This workflow run tests and build for each push on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Update local toolchain run: | rustup update rustup component add clippy rust...
name: CI # This workflow run tests and build for each push on: push: branches: - master jobs: build: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - name: Update local toolchain run: | rustup update rustup component add clippy rustu...
Update gha runner to ubuntu-22.04 in attempt to access more recent version of libglib2.0
Update gha runner to ubuntu-22.04 in attempt to access more recent version of libglib2.0
YAML
apache-2.0
msierks/rustcube
yaml
## Code Before: name: CI # This workflow run tests and build for each push on: push: branches: - master jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Update local toolchain run: | rustup update rustup component add clipp...
d17857d7e57e907e8c7a595ae034dc04c05572ac
source/index.html.haml
source/index.html.haml
--- title: "Home" --- %section.intro %h1 Jeff Cole %h3 I build things with computers for people. %p Here are some other places you can find me. %p %i.fa.fa-github %i.fa.fa-linkedin-square %i.fa.fa-envelope %hr %h2 Posts %ul - index_items.each do |article| %li= title_and_date_link arti...
--- title: "Home" --- %section.intro %h1 Jeff Cole %h3 I build things with computers for people. %p Here are some other places you can find me. %p %i.fa.fa-github %i.fa.fa-linkedin-square %i.fa.fa-envelope %hr %h2 Posts %ul - index_items.each do |article| %li= title_and_date_link arti...
Add talks to index page
Add talks to index page
Haml
mit
jeffcole/jeffcole.github.io,jeffcole/jeffcole.github.io,jeffcole/jeffcole.github.io,jeffcole/jeffcole.github.io
haml
## Code Before: --- title: "Home" --- %section.intro %h1 Jeff Cole %h3 I build things with computers for people. %p Here are some other places you can find me. %p %i.fa.fa-github %i.fa.fa-linkedin-square %i.fa.fa-envelope %hr %h2 Posts %ul - index_items.each do |article| %li= title_an...
d3c79960c54c74173d8b5986a89bc345aacc1478
.pm2-processes.json
.pm2-processes.json
{"script":"coffee/server.coffee","name":"pg-oid","fileError":"err.log","fileOutput":"out.log"}
{ "script": "coffee/server.coffee" ,"name": "pg-oid" ,"fileError": "err.log" ,"fileOutput": "out.log" ,"max_restarts": "400" }
Add new PM2 startup file
Add new PM2 startup file
JSON
mit
Turistforeningen/node-postgres-objectid
json
## Code Before: {"script":"coffee/server.coffee","name":"pg-oid","fileError":"err.log","fileOutput":"out.log"} ## Instruction: Add new PM2 startup file ## Code After: { "script": "coffee/server.coffee" ,"name": "pg-oid" ,"fileError": "err.log" ,"fileOutput": "out.log" ,"max_restarts": "400" }
07d2a875b7768c77fc9cf8fbe304614be1891ac8
public/js/script.js
public/js/script.js
function scan() { $('.status').each(function() { $(this).click(function() { $.getJSON(this.href + '?format=json', function(data){ $('.status_links_' + data.id).replaceWith(data.status); scan(); }) return false; }) }) } $(document).ready(function() { scan(); ...
function scan() { $('.status').each(function() { $(this).click(function() { $.getJSON(this.href + '?format=json', function(data){ $('.status_links_' + data.id).each(function() { $(this).replaceWith(data.status); }) scan(); }) return false; }) }) } ...
FIX support for multiple instance of movie status on the same page
FIX support for multiple instance of movie status on the same page
JavaScript
mit
PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue,PowerKiKi/mqueue
javascript
## Code Before: function scan() { $('.status').each(function() { $(this).click(function() { $.getJSON(this.href + '?format=json', function(data){ $('.status_links_' + data.id).replaceWith(data.status); scan(); }) return false; }) }) } $(document).ready(function() { scan(); }) #...
da9ca726f0fb8a5b3c6a36ff1cfb86c8e6732ed7
slipway/components/images/_images-lazyload.jade
slipway/components/images/_images-lazyload.jade
- var short = alt.substring(0, alt.indexOf('_')); .lazyload-wrapper(data-src-lg=base + short + '/' + alt + '.jpg?sw=400&sh=400') img.lazyload-small(src=base + short + '/' + alt + '.jpg?sw=10&sh=10') .lazyload-pad(style='padding-bottom: 100%')
.lazyload-wrapper(data-src-lg=base + short + '/' + alt + '.jpg?sw=400&sh=400') img.lazyload-small(src=base + short + '/' + alt + '.jpg?sw=10&sh=10') .lazyload-pad(style='padding-bottom: 100%')
Remove unnecessary var in template.
Remove unnecessary var in template.
Jade
mit
chanceaclark/rocketbelt,Pier1/rocketbelt,Pier1/rocketbelt,jkeddy/rocketbelt,chanceaclark/rocketbelt,jkeddy/rocketbelt,chanceaclark/rocketbelt,jkeddy/rocketbelt
jade
## Code Before: - var short = alt.substring(0, alt.indexOf('_')); .lazyload-wrapper(data-src-lg=base + short + '/' + alt + '.jpg?sw=400&sh=400') img.lazyload-small(src=base + short + '/' + alt + '.jpg?sw=10&sh=10') .lazyload-pad(style='padding-bottom: 100%') ## Instruction: Remove unnecessary var in template. ##...
6f2dea9c780f6d43f50bf264f4028cc7bfd4a262
REQUIREMENTS.md
REQUIREMENTS.md
- 100% unit test coverage - JWT-based Authentication & Authorization - Two roles: user and admin - Users are identified by a specific email address - User can only set their own availability - Users and admin can be assigned to one or more teams - Login/logout - specify core hours - in-office-now - out-of-office-now -...
- 100% unit test coverage - JWT-based Authentication & Authorization - Two roles: user and admin - Users are identified by a specific email address - User can only set their own availability - Users and admin can be assigned to one or more teams - Login/logout - specify core hours - in-office-now - out-of-office-now -...
Add V1 requirement to have realtime updates
Add V1 requirement to have realtime updates
Markdown
mit
pandemos/presence,pandemos/presence
markdown
## Code Before: - 100% unit test coverage - JWT-based Authentication & Authorization - Two roles: user and admin - Users are identified by a specific email address - User can only set their own availability - Users and admin can be assigned to one or more teams - Login/logout - specify core hours - in-office-now - out...
59ba5f37481179ba73a879df13a2e183ba2cb6dd
app/views/_nav_bar.erb
app/views/_nav_bar.erb
<div class="nav-bar"> <div class="definition"><a href="/">The Definition</a></div> <% if current_user %> <a href="/logout">Logout</a> | <a href="/users/<%= session[:user_id] %>">View My Profile</a> | <a href="/goals/new">Set New Goal</a> | <a href="/friends">My Friends</a> <% else %> <a href="/login">Logi...
<div class="nav-bar"> <div class="definition"><a href="/">Togetherness: The Definition</a></div> <% if current_user %> <a href="/logout">Logout</a> | <a href="/users/<%= session[:user_id] %>">View My Profile</a> | <a href="/goals/new">Set New Goal</a> | <a href="/friends">My Friends</a> <% else %> <a href...
Add 'Togetherness' to The Definition link
Add 'Togetherness' to The Definition link
HTML+ERB
mit
caonayemi/getting-it-together,caonayemi/getting-it-together,caonayemi/getting-it-together
html+erb
## Code Before: <div class="nav-bar"> <div class="definition"><a href="/">The Definition</a></div> <% if current_user %> <a href="/logout">Logout</a> | <a href="/users/<%= session[:user_id] %>">View My Profile</a> | <a href="/goals/new">Set New Goal</a> | <a href="/friends">My Friends</a> <% else %> <a hr...
20cdff225e72a7f49367d21af4b44e17a2a77040
Highball/AnimatedImageCache.swift
Highball/AnimatedImageCache.swift
// // PostPhotoCache.swift // Highball // // Created by Ian Ynda-Hummel on 1/18/15. // Copyright (c) 2015 ianynda. All rights reserved. // import Foundation struct AnimatedImageCache { private static var animatedImageCache = Dictionary<String, FLAnimatedImage>() static func setAnimatedImage(animatedImage...
// // PostPhotoCache.swift // Highball // // Created by Ian Ynda-Hummel on 1/18/15. // Copyright (c) 2015 ianynda. All rights reserved. // import Foundation struct AnimatedImageCache { private static var animatedImageCache = NSCache() static func setAnimatedImage(animatedImage: FLAnimatedImage, forKey ke...
Use NSCache for gif cache
Use NSCache for gif cache
Swift
mit
ianyh/Highball,ianyh/Highball,ianyh/Highball,ianyh/Highball
swift
## Code Before: // // PostPhotoCache.swift // Highball // // Created by Ian Ynda-Hummel on 1/18/15. // Copyright (c) 2015 ianynda. All rights reserved. // import Foundation struct AnimatedImageCache { private static var animatedImageCache = Dictionary<String, FLAnimatedImage>() static func setAnimatedIma...
3c219200ac98dc367dcfbbf027efab4f3a3b1475
quic/platform/api/quic_test.h
quic/platform/api/quic_test.h
// Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #include "quic/platform/api/quic_logging.h" #include "net...
// Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #include "quic/platform/api/quic_logging.h" #include "net...
Move EXPECT_EQ macro magic from quic/platform to quiche/platform.
Move EXPECT_EQ macro magic from quic/platform to quiche/platform. The purpose of this machinary is to override EXPECT_EQ and similar comparison macros so that -Wsigned-compare actually catches signed-unsigned comparison in internal builds (where gTest implementation is slightly different so otherwise the warning would...
C
bsd-3-clause
google/quiche,google/quiche,google/quiche,google/quiche
c
## Code Before: // Copyright (c) 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_ #include "quic/platform/api/quic_logging....
8e98a133567aa844aa9dd67235da9f1bb2f16161
test/mailers/unit_mail_test.rb
test/mailers/unit_mail_test.rb
require 'test_helper' require 'grade_helper' class UnitMailTest < ActionMailer::TestCase def test_send_summary_email unit = FactoryBot.create :unit summary_stats = {} summary_stats[:week_end] = Date.today summary_stats[:week_start] = summary_stats[:week_end] - 7.days summary_stats[:weeks_comme...
require 'test_helper' require 'grade_helper' class UnitMailTest < ActionMailer::TestCase def test_send_summary_email unit = FactoryBot.create :unit summary_stats = {} summary_stats[:week_end] = Date.today summary_stats[:week_start] = summary_stats[:week_end] - 7.days summary_stats[:weeks_comme...
Check that portfolio ready comes from main convenor
TEST: Check that portfolio ready comes from main convenor
Ruby
agpl-3.0
jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubt...
ruby
## Code Before: require 'test_helper' require 'grade_helper' class UnitMailTest < ActionMailer::TestCase def test_send_summary_email unit = FactoryBot.create :unit summary_stats = {} summary_stats[:week_end] = Date.today summary_stats[:week_start] = summary_stats[:week_end] - 7.days summary_st...
d3081c565c7ede0f6853714df3b3e9fe2eaefa1a
app/services/map-state.js
app/services/map-state.js
import Ember from 'ember'; // eslint-disable-line const DEFAULT_BOUNDS = [[40.690913, -74.077644], [40.856654, -73.832692]]; export default Ember.Service.extend({ init() {}, bounds: DEFAULT_BOUNDS, currentlySelected: null, mapInstance: null, });
import Ember from 'ember'; // eslint-disable-line const DEFAULT_BOUNDS = [-74.077644, 40.690913, -73.832692, 40.856654]; export default Ember.Service.extend({ bounds: DEFAULT_BOUNDS, currentlySelected: null, mapInstance: null, });
Convert mapstate bounds to mapboxgl-friendly format
Convert mapstate bounds to mapboxgl-friendly format
JavaScript
mit
NYCPlanning/labs-community-portal,NYCPlanning/labs-community-portal
javascript
## Code Before: import Ember from 'ember'; // eslint-disable-line const DEFAULT_BOUNDS = [[40.690913, -74.077644], [40.856654, -73.832692]]; export default Ember.Service.extend({ init() {}, bounds: DEFAULT_BOUNDS, currentlySelected: null, mapInstance: null, }); ## Instruction: Convert mapstate bounds to mapb...
923b927f4e74db4c437b25cf851482e5aa562418
test/controllers/disposal_of_vehicle/DisposeFailureUnitSpec.scala
test/controllers/disposal_of_vehicle/DisposeFailureUnitSpec.scala
package controllers.disposal_of_vehicle import helpers.common.CookieHelper import play.api.test.FakeRequest import play.api.test.Helpers._ import helpers.disposal_of_vehicle.CookieFactoryForUnitSpecs import helpers.UnitSpec import helpers.WithApplication import pages.disposal_of_vehicle.DisposeFailurePage import Cooki...
package controllers.disposal_of_vehicle import common.ClientSideSessionFactory import helpers.common.CookieHelper import org.mockito.Mockito._ import play.api.test.FakeRequest import play.api.test.Helpers._ import helpers.disposal_of_vehicle.CookieFactoryForUnitSpecs import helpers.UnitSpec import helpers.WithApplicat...
Test for display prototype and progress bar
Test for display prototype and progress bar Former-commit-id: 319ca0637904b569fc01056622ae16282641812d
Scala
mit
dvla/vrm-retention-online,dvla/vehicles-online,dvla/vehicles-presentation-common,dvla/vehicles-online,dvla/vrm-retention-online,dvla/vehicles-online,dvla/vrm-retention-online,dvla/vehicles-presentation-common,dvla/vehicles-presentation-common,dvla/vrm-retention-online,dvla/vehicles-online
scala
## Code Before: package controllers.disposal_of_vehicle import helpers.common.CookieHelper import play.api.test.FakeRequest import play.api.test.Helpers._ import helpers.disposal_of_vehicle.CookieFactoryForUnitSpecs import helpers.UnitSpec import helpers.WithApplication import pages.disposal_of_vehicle.DisposeFailureP...
744edb8b3335cb1ddd879a0d8ce34ccc2ed304e6
.travis.yml
.travis.yml
language: python python: - "3.5" - "3.6" before_script: # Travis versions of these are really outdated - pip install -U mock nose pytest # Enable sending Coverage data - pip install codecov script: - python setup.py validate after_success: - codecov
language: python matrix: include: - python: "3.5" - python: "3.6" - python: "3.7" dist: xenial before_script: # Travis versions of these are really outdated - pip install -U mock nose pytest # Enable sending Coverage data - pip install codecov script: - python setup.py validate a...
Add 3.7 to Travis CI, which requires Xenial
Add 3.7 to Travis CI, which requires Xenial
YAML
mit
mcrute/pydora
yaml
## Code Before: language: python python: - "3.5" - "3.6" before_script: # Travis versions of these are really outdated - pip install -U mock nose pytest # Enable sending Coverage data - pip install codecov script: - python setup.py validate after_success: - codecov ## Instruction: Add 3.7 t...
0af345f7bf2a8fef71336e197daaef6a1fe8a3ff
bosh_vsphere_cpi/spec/unit/cloud/vsphere/cloud_spec.rb
bosh_vsphere_cpi/spec/unit/cloud/vsphere/cloud_spec.rb
require 'spec_helper' describe VSphereCloud::Cloud do let(:client_stub) { double(cookie: nil) } let(:client) { instance_double('VSphereCloud::Client', login: nil, logout: nil, stub: client_stub) } let(:config) { { fake: 'config' } } subject(:vsphere_cloud) { VSphereCloud::Cloud.new(config) } before do ...
require 'spec_helper' describe VSphereCloud::Cloud do let(:config) { { fake: 'config' } } subject(:vsphere_cloud) { VSphereCloud::Cloud.new(config) } before do VSphereCloud::Config.should_receive(:configure).with(config) VSphereCloud::Cloud.any_instance.stub(:at_exit) end describe 'has_vm?' do ...
Remove dead code in tests
Remove dead code in tests Signed-off-by: Rob Day-Reynolds <904086f049d807ae99640dbdfde98536a5822f56@pivotallabs.com>
Ruby
apache-2.0
barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh
ruby
## Code Before: require 'spec_helper' describe VSphereCloud::Cloud do let(:client_stub) { double(cookie: nil) } let(:client) { instance_double('VSphereCloud::Client', login: nil, logout: nil, stub: client_stub) } let(:config) { { fake: 'config' } } subject(:vsphere_cloud) { VSphereCloud::Cloud.new(config) } ...
528721b8720506df7554a6a1a4c8f5ea840cd799
run-tests.sh
run-tests.sh
meteor test-packages \ "$(pwd)/packages/rest" \ "$(pwd)/packages/json-routes" \ "$(pwd)/packages/rest-bearer-token-parser" \ "$(pwd)/packages/authenticate-user-by-token" \ "$(pwd)/packages/rest-accounts-password"
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) jshint $DIR result=$? if [[ $result != 0 ]] # Exit if the linter didn't pass then exit $result fi meteor test-packages \ "$DIR/packages/rest" \ "$DIR/packages/json-routes" \ "$DIR/packages/rest-bearer-token-parser" \ "$DIR/packages/authenticate-user-...
Add linter to test script
Add linter to test script
Shell
mit
numtel/meteor-rest,numtel/meteor-rest,stubailo/meteor-rest,nooitaf/meteor-rest,stubailo/meteor-rest,nooitaf/meteor-rest
shell
## Code Before: meteor test-packages \ "$(pwd)/packages/rest" \ "$(pwd)/packages/json-routes" \ "$(pwd)/packages/rest-bearer-token-parser" \ "$(pwd)/packages/authenticate-user-by-token" \ "$(pwd)/packages/rest-accounts-password" ## Instruction: Add linter to test script ## Code After: DIR=$( cd "$( dirname...
78dcbe8ac81b1f15add131fdbddf22acfeb75d8a
domain/project.js
domain/project.js
/** * A project is a collection of handlers **/ var Project = exports.Project = function(name, author) { this.name = name; this.author = author; this.handlers = {}; this.handlers.length = 0; }; Project.prototype.addHandler(handler) { this.handlers[handler.id] = handler; this.handlers.length++;...
/** * A project is a collection of handlers **/ var Project = exports.Project = function(name, author) { this.name = name; this.author = author; this.handlers = {}; this.handlers.length = 0; }; Project.prototype.addHandler = function(handler) { this.handlers[handler.id] = handler; this.handler...
Fix typos in Project definition.
Fix typos in Project definition.
JavaScript
mit
past/nodify
javascript
## Code Before: /** * A project is a collection of handlers **/ var Project = exports.Project = function(name, author) { this.name = name; this.author = author; this.handlers = {}; this.handlers.length = 0; }; Project.prototype.addHandler(handler) { this.handlers[handler.id] = handler; this.ha...
0a0068a14a49ab9a40722d95a6cbb90413163581
marty.gemspec
marty.gemspec
$:.push File.expand_path("../lib", __FILE__) require "marty/version" Gem::Specification.new do |s| s.name = "marty" s.version = Marty::VERSION s.authors = [ "Arman Bostani", "Eric Litwin", "Iliana Toneva", "Brian VanLoo",...
$:.push File.expand_path("../lib", __FILE__) require "marty/version" Gem::Specification.new do |s| s.name = "marty" s.version = Marty::VERSION s.authors = [ "Arman Bostani", "Eric Litwin", "Iliana Toneva", "Brian VanLoo",...
Update gemspec to reflect necessary netzke versions
Update gemspec to reflect necessary netzke versions
Ruby
mit
arman000/marty,arman000/marty,arman000/marty,arman000/marty
ruby
## Code Before: $:.push File.expand_path("../lib", __FILE__) require "marty/version" Gem::Specification.new do |s| s.name = "marty" s.version = Marty::VERSION s.authors = [ "Arman Bostani", "Eric Litwin", "Iliana Toneva", ...
4c95c238cd198779b7019a72b412ce20ddf865bd
alg_gcd.py
alg_gcd.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function def gcd(m, n): """Greatest Common Divisor (GCD) by Euclid's Algorithm. Time complexity: O(m%n). Space complexity: O(1). """ while n != 0: m, n = n, m % n return m def main():...
from __future__ import absolute_import from __future__ import division from __future__ import print_function def gcd_recur(m, n): """Greatest Common Divisor (GCD) by Euclid's Algorithm. Time complexity: O(m%n). Space complexity: O(m%n). """ if n == 0: return m return gcd_recur(n, m % ...
Complete gcd recur sol w/ time/space complexity
Complete gcd recur sol w/ time/space complexity
Python
bsd-2-clause
bowen0701/algorithms_data_structures
python
## Code Before: from __future__ import absolute_import from __future__ import division from __future__ import print_function def gcd(m, n): """Greatest Common Divisor (GCD) by Euclid's Algorithm. Time complexity: O(m%n). Space complexity: O(1). """ while n != 0: m, n = n, m % n return...
25dfe01a80df711c648636ae0684e7f356a9169c
_config.yml
_config.yml
title: Tohuw.Net email: ron@tohuw.net description: > Ron Scott-Adams is a Systems Architect and Administrator, with a passion for creating, maintaining and explaining well-designed data centers, virtualization solutions, and information technology systems. baseurl: "" url: "https://tohuw.net" timezone: America/Ne...
title: Tohuw.Net email: ron@tohuw.net description: > Ron Scott-Adams is a Systems Architect and Administrator, with a passion for creating, maintaining and explaining well-designed data centers, virtualization solutions, and information technology systems. baseurl: "" url: "https://tohuw.net" timezone: America/Ne...
Exclude Vendor Directory for Travis Compatability
Exclude Vendor Directory for Travis Compatability https://github.com/jekyll/jekyll/issues/3525
YAML
mit
tohuw/tohuw.net,tohuw/tohuw.net,tohuw/tohuw.net
yaml
## Code Before: title: Tohuw.Net email: ron@tohuw.net description: > Ron Scott-Adams is a Systems Architect and Administrator, with a passion for creating, maintaining and explaining well-designed data centers, virtualization solutions, and information technology systems. baseurl: "" url: "https://tohuw.net" time...
e45dc9bff897104480e73d2d26fcc87807088326
.travis.yml
.travis.yml
language: java script: - mvn checkstyle:check cobertura:cobertura test after_success: - mvn coveralls:report
language: java script: - mvn -Dsurefire.rerunFailingTestsCount=3 cobertura:cobertura test - mvn checkstyle:check after_success: - mvn coveralls:report jdk: - oraclejdk8 - oraclejdk7 cache: directories: - "$HOME/.m2"
Add more java, caching and retry
Add more java, caching and retry
YAML
mit
testmycode/tmc-cli,tmc-cli/tmc-cli,tmc-cli/tmc-cli,testmycode/tmc-cli
yaml
## Code Before: language: java script: - mvn checkstyle:check cobertura:cobertura test after_success: - mvn coveralls:report ## Instruction: Add more java, caching and retry ## Code After: language: java script: - mvn -Dsurefire.rerunFailingTestsCount=3 cobertura:cobertura test - mvn checkstyle:check after_suc...
9e92ed60d5a03ce6a9c95c0862648e4e794f6780
funds/balance/erc20.go
funds/balance/erc20.go
package balance import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" orCommon "github.com/notegio/openrelay/common" tokenModule "github.com/notegio/openrelay/token" "github.com/notegio/openrelay/types" "math/big" ) type rpcBalanceChecker struct { conn bind.ContractBackend } func (funds *rpcBalanceCheck...
package balance import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" orCommon "github.com/notegio/openrelay/common" tokenModule "github.com/notegio/openrelay/token" "github.com/notegio/openrelay/types" "math/big" ) type rpcERC20BalanceChecker struct { conn bind.ContractBackend } func (funds *rpcERC20Ba...
Update balance checker struct name
Update balance checker struct name
Go
agpl-3.0
NoteGio/openrelay,NoteGio/openrelay,NoteGio/openrelay,NoteGio/openrelay
go
## Code Before: package balance import ( "github.com/ethereum/go-ethereum/accounts/abi/bind" orCommon "github.com/notegio/openrelay/common" tokenModule "github.com/notegio/openrelay/token" "github.com/notegio/openrelay/types" "math/big" ) type rpcBalanceChecker struct { conn bind.ContractBackend } func (funds ...
b05aed1ba4ec2a9d4177850c2fe06d4992614a59
Changes.md
Changes.md
v 0.3.1 ------- - add CSRF tags to forms so it will work with sidekiq >= 3.4.2 - remove tilt dependency v 0.3.0 ------- - suport for Active Job - sidekiq cron web ui needs to be loaded by: require 'sidekiq/cron/web' - add load_from_hash! and load_from_array! which cleanup jobs before adding new ones v 0.1.1 -------...
v 0.4.0 ------- - enable to work with sidekiq >= 4.0.0 - fix readme v 0.3.1 ------- - add CSRF tags to forms so it will work with sidekiq >= 3.4.2 - remove tilt dependency v 0.3.0 ------- - suport for Active Job - sidekiq cron web ui needs to be loaded by: require 'sidekiq/cron/web' - add load_from_hash! and load_...
Update change log with information for version 0.4.0
Update change log with information for version 0.4.0
Markdown
mit
ondrejbartas/sidekiq-cron,ondrejbartas/sidekiq-cron,farainc/sidekiq-cron,farainc/sidekiq-cron
markdown
## Code Before: v 0.3.1 ------- - add CSRF tags to forms so it will work with sidekiq >= 3.4.2 - remove tilt dependency v 0.3.0 ------- - suport for Active Job - sidekiq cron web ui needs to be loaded by: require 'sidekiq/cron/web' - add load_from_hash! and load_from_array! which cleanup jobs before adding new ones ...
34fe4bb5cd5c4c35a659698e8d258c78da01887a
pynexus/api_client.py
pynexus/api_client.py
import requests class ApiClient: def __init__(self, host, username, password): self.uri = host + '/nexus/service/local/' self.username = username self.password = password def get_all_repositories(self): r = requests.get(self.uri + 'all_repositories', headers={'Accept': 'applica...
import requests class ApiClient: def __init__(self, host, username, password): self.uri = host + '/nexus/service/local/' self.username = username self.password = password def get_all_repositories(self): r = requests.get(self.uri + 'all_repositories', headers={'Accept': 'applica...
Add get_users method to get a list of users
Add get_users method to get a list of users
Python
apache-2.0
rcarrillocruz/pynexus
python
## Code Before: import requests class ApiClient: def __init__(self, host, username, password): self.uri = host + '/nexus/service/local/' self.username = username self.password = password def get_all_repositories(self): r = requests.get(self.uri + 'all_repositories', headers={'A...
ed3a7cc9a0a06a4430f8301c7988c24ca84f4b3e
README.md
README.md
* Spring Boot as the MVC tool * Bootstrap + Thymeleaf to create Views ## Run Lombelo * Just download the .jar package and click on it. ## Build Lombelo from source * If you don't haven maven, you have to install it. * In the main folder, execute maven: ``bash $ mvn spring-boot:run ``
[![Build Status](https://travis-ci.org/NWuensche/Lombelo.svg?branch=master)](https://travis-ci.org/NWuensche/Lombelo) ## Tools * Spring Boot as the MVC tool * Bootstrap + Thymeleaf to create Views ## Run Lombelo * Just download the .jar package and click on it. ## Build Lombelo from source * If you don't haven mave...
Add travis image to Readme
Add travis image to Readme
Markdown
mit
NWuensche/Lombelo,NWuensche/Lombelo
markdown
## Code Before: * Spring Boot as the MVC tool * Bootstrap + Thymeleaf to create Views ## Run Lombelo * Just download the .jar package and click on it. ## Build Lombelo from source * If you don't haven maven, you have to install it. * In the main folder, execute maven: ``bash $ mvn spring-boot:run `` ## Instruction:...
32b51cb7d63d9d122c0d678a46d56a735a9bea3e
dodo_commands/framework/decorator_scope.py
dodo_commands/framework/decorator_scope.py
from dodo_commands.framework.singleton import Dodo # Resp: add the current command_name # to the list of commands decorated by decorator_name. class DecoratorScope: def __init__(self, decorator_name): self.decorators = Dodo.get_config('/ROOT').setdefault( 'decorators', {}).setdefault(decorator...
from dodo_commands.framework.singleton import Dodo # Resp: add the current command_name # to the list of commands decorated by decorator_name. class DecoratorScope: def __init__(self, decorator_name, remove=False): self.decorators = Dodo.get_config('/ROOT').setdefault( 'decorators', {}).setdef...
Add ``remove`` flag to DecoratorScope
Add ``remove`` flag to DecoratorScope
Python
mit
mnieber/dodo_commands
python
## Code Before: from dodo_commands.framework.singleton import Dodo # Resp: add the current command_name # to the list of commands decorated by decorator_name. class DecoratorScope: def __init__(self, decorator_name): self.decorators = Dodo.get_config('/ROOT').setdefault( 'decorators', {}).setd...
8b84d8c28a47e6b29d8a2605b4e602f8a4212a11
nucleotide-count.yml
nucleotide-count.yml
--- blurb: "Write a class `DNA` that takes a DNA string and tells us how many times each nucleotide occurs in the string." source: "The Calculating DNA Nucleotides_problem at Rosalind" source_url: "http://rosalind.info/problems/dna/"
--- blurb: "Given a DNA string, compute how many times each nucleotide occurs in the string." source: "The Calculating DNA Nucleotides_problem at Rosalind" source_url: "http://rosalind.info/problems/dna/"
Remove implementation details from problem description.
Remove implementation details from problem description.
YAML
mit
exercism/x-common,Vankog/problem-specifications,jmluy/x-common,jmluy/x-common,petertseng/x-common,petertseng/x-common,exercism/x-common,rpottsoh/x-common,ErikSchierboom/x-common,Vankog/problem-specifications,wobh/x-common,jmluy/x-common,kgengler/x-common,rpottsoh/x-common,bennn/x-common,ekse/exercism-common,ErikSchierb...
yaml
## Code Before: --- blurb: "Write a class `DNA` that takes a DNA string and tells us how many times each nucleotide occurs in the string." source: "The Calculating DNA Nucleotides_problem at Rosalind" source_url: "http://rosalind.info/problems/dna/" ## Instruction: Remove implementation details from problem descriptio...