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
676cb3f87040bf92604dd5c94ea194f0403b4fc7
stealth-si-process/src/main/java/org/lapanen/stealth/si/process/ProcessInboundChannelAdapter.java
stealth-si-process/src/main/java/org/lapanen/stealth/si/process/ProcessInboundChannelAdapter.java
package org.lapanen.stealth.si.process; import java.util.concurrent.ExecutorService; import org.springframework.integration.context.IntegrationObjectSupport; import org.springframework.integration.core.MessageSource; import org.springframework.integration.endpoint.MessageProducerSupport; import org.springframework.in...
package org.lapanen.stealth.si.process; import java.util.concurrent.ExecutorService; import org.springframework.integration.context.IntegrationObjectSupport; import org.springframework.integration.core.MessageSource; import org.springframework.integration.endpoint.MessageProducerSupport; import org.springframework.in...
Add result handling to the adapter -- now for real, actually.
Add result handling to the adapter -- now for real, actually.
Java
apache-2.0
lapanen/stealth
java
## Code Before: package org.lapanen.stealth.si.process; import java.util.concurrent.ExecutorService; import org.springframework.integration.context.IntegrationObjectSupport; import org.springframework.integration.core.MessageSource; import org.springframework.integration.endpoint.MessageProducerSupport; import org.sp...
2093a9e9b75707d41074ec3b55e98a68eaa906e7
.travis.yml
.travis.yml
language: rust cache: cargo sudo: true rust: - stable - beta - nightly env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 - graphviz - upx-ucl - wget matrix: allow_failures: - rust: nightly before_script: - export PATH=$P...
language: rust cache: cargo sudo: true rust: - stable - beta - nightly env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 - graphviz - upx-ucl - wget matrix: allow_failures: - rust: nightly before_script: - export PATH=$P...
Add - cargo install cargo-graph -- force
Add - cargo install cargo-graph -- force
YAML
mit
korczis/gauc,korczis/gauc,ApolloCrawler/gauc,ApolloCrawler/gauc
yaml
## Code Before: language: rust cache: cargo sudo: true rust: - stable - beta - nightly env: - CXX=g++-4.8 addons: apt: sources: - ubuntu-toolchain-r-test packages: - g++-4.8 - graphviz - upx-ucl - wget matrix: allow_failures: - rust: nightly before_script: ...
fb8db56ca83a18860ed1ae279d3f390456e224fe
cinder/brick/initiator/host_driver.py
cinder/brick/initiator/host_driver.py
import os class HostDriver(object): def get_all_block_devices(self): """Get the list of all block devices seen in /dev/disk/by-path/.""" dir = "/dev/disk/by-path/" files = os.listdir(dir) devices = [] for file in files: devices.append(dir + file) retur...
import os class HostDriver(object): def get_all_block_devices(self): """Get the list of all block devices seen in /dev/disk/by-path/.""" files = [] dir = "/dev/disk/by-path/" if os.path.isdir(dir): files = os.listdir(dir) devices = [] for file in files...
Check if dir exists before calling listdir
Check if dir exists before calling listdir Changes along the way to how we clean up and detach after copying an image to a volume exposed a problem in the cleanup of the brick/initiator routines. The clean up in the initiator detach was doing a blind listdir of /dev/disk/by-path, however due to detach and cleanup bei...
Python
apache-2.0
rickerc/cinder_audit,rickerc/cinder_audit
python
## Code Before: import os class HostDriver(object): def get_all_block_devices(self): """Get the list of all block devices seen in /dev/disk/by-path/.""" dir = "/dev/disk/by-path/" files = os.listdir(dir) devices = [] for file in files: devices.append(dir + fil...
4112a537dd16628e664a78a5d851eda6843910af
init-templates/buildspec.yml
init-templates/buildspec.yml
version: 0.2 # ------------------------------------------------------------------- # Environment Variables # ------------------------------------------------------------------- # env: # variables: # - FOO: bar # ------------------------------------------------------------------- # Build Phases # -----------...
version: 0.2 # ------------------------------------------------------------------- # Environment Variables # ------------------------------------------------------------------- # env: # variables: # - FOO: bar # ------------------------------------------------------------------- # Build Phases # -----------...
Fix commented out command to grab npmrc secret
Fix commented out command to grab npmrc secret
YAML
mit
limulus/lenticular
yaml
## Code Before: version: 0.2 # ------------------------------------------------------------------- # Environment Variables # ------------------------------------------------------------------- # env: # variables: # - FOO: bar # ------------------------------------------------------------------- # Build Phas...
b08d3d43bd485f64da107eb2bc129d44f6ac7540
client/tests/test-helper.js
client/tests/test-helper.js
import resolver from './helpers/resolver'; import { setResolver } from 'ember-qunit'; setResolver(resolver);
import resolver from './helpers/resolver'; import { setResolver } from 'ember-qunit'; // XXX: This is what I get for being on the bleeding edge. Bugs. // See emberjs/data#4071. import "ember-data"; setResolver(resolver);
Work around an Ember Data bug.
Work around an Ember Data bug.
JavaScript
bsd-2-clause
mblayman/lcp,mblayman/lcp,mblayman/lcp
javascript
## Code Before: import resolver from './helpers/resolver'; import { setResolver } from 'ember-qunit'; setResolver(resolver); ## Instruction: Work around an Ember Data bug. ## Code After: import resolver from './helpers/resolver'; import { setResolver } from 'ember-qunit'; // XXX: This is what I get for being on...
2ebab50f069a5e0f87b0ac27e1408cef2341310b
package.json
package.json
{ "name": "significant-other", "main": "./lib/significant-other", "version": "0.3.0", "description": "Quickly switch between a source file and its corresponding test file", "keywords": [ "spec", "tdd", "test", "testing" ], "activationCommands": { "atom-text-editor": [ "significan...
{ "name": "significant-other", "main": "./lib/significant-other", "version": "0.3.0", "description": "Quickly switch between a source file and its corresponding test file", "keywords": [ "spec", "tdd", "test", "testing" ], "activationCommands": { "atom-text-editor": [ "significan...
Add `test` script to run linter and tests.
Add `test` script to run linter and tests. Run linter and tests via `npm test`.
JSON
mit
jasonrudolph/significant-other
json
## Code Before: { "name": "significant-other", "main": "./lib/significant-other", "version": "0.3.0", "description": "Quickly switch between a source file and its corresponding test file", "keywords": [ "spec", "tdd", "test", "testing" ], "activationCommands": { "atom-text-editor": [ ...
ddd5a3d06a4651bbf610b818d7c516542eb09004
package.json
package.json
{ "name": "export-prototype", "version": "0.1.0", "description": "== README", "main": "", "directories": { "test": "test" }, "dependencies": { "mojular": "mojular/mojular", "mojular-govuk-elements": "mojular/govuk-elements", "mojular-moj-elements": "mojular/moj-elements", "mojular-temp...
{ "name": "export-prototype", "version": "0.1.0", "description": "== README", "main": "", "directories": { "test": "test" }, "dependencies": { "angular": "^1.4.8", "mojular": "mojular/mojular", "mojular-govuk-elements": "mojular/govuk-elements", "mojular-moj-elements": "mojular/moj-ele...
Save angular as npm dep
Fix: Save angular as npm dep
JSON
mit
UKTradeInvestment/export-concept,UKTradeInvestment/export-concept,UKTradeInvestment/export-concept
json
## Code Before: { "name": "export-prototype", "version": "0.1.0", "description": "== README", "main": "", "directories": { "test": "test" }, "dependencies": { "mojular": "mojular/mojular", "mojular-govuk-elements": "mojular/govuk-elements", "mojular-moj-elements": "mojular/moj-elements", ...
bfbc156d9efca37c35d18481c4366d3e6deed1ba
slave/skia_slave_scripts/chromeos_run_bench.py
slave/skia_slave_scripts/chromeos_run_bench.py
""" Run the Skia bench executable. """ from build_step import BuildStep, BuildStepWarning from chromeos_build_step import ChromeOSBuildStep from run_bench import RunBench import sys class ChromeOSRunBench(ChromeOSBuildStep, RunBench): def _Run(self): # TODO(borenet): Re-enable this step once the crash is fixe...
""" Run the Skia bench executable. """ from build_step import BuildStep from chromeos_build_step import ChromeOSBuildStep from run_bench import RunBench import sys class ChromeOSRunBench(ChromeOSBuildStep, RunBench): pass if '__main__' == __name__: sys.exit(BuildStep.RunBuildStep(ChromeOSRunBench))
Stop skipping Bench on ChromeOS
Stop skipping Bench on ChromeOS (RunBuilders:Skia_ChromeOS_Alex_Debug_32) Unreviewed. git-svn-id: 32fc27f4dcfb6c0385cd9719852b95fe6680452d@8094 2bbb7eff-a529-9590-31e7-b0007b416f81
Python
bsd-3-clause
Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbo...
python
## Code Before: """ Run the Skia bench executable. """ from build_step import BuildStep, BuildStepWarning from chromeos_build_step import ChromeOSBuildStep from run_bench import RunBench import sys class ChromeOSRunBench(ChromeOSBuildStep, RunBench): def _Run(self): # TODO(borenet): Re-enable this step once t...
e5ca084bbc690159ea0c4712a6699aa4120b2442
common/models/car.json
common/models/car.json
{ "name": "Car", "base": "PersistedModel", "options": { "mysql": { "table": "car" }, "mongodb": { "collection": "car" }, "oracle": { "schema": "DEMO", "table": "PRODUCT" } }, "properties": { "id": { "type": "string", "id": true }, "vin": ...
{ "name": "Car", "base": "PersistedModel", "options": { "mysql": { "table": "car" }, "mongodb": { "collection": "car" }, "oracle": { "schema": "DEMO", "table": "PRODUCT" } }, "properties": { "id": { "type": "string", "id": true }, "vin": ...
Remove unused reservation model relation
Remove unused reservation model relation
JSON
mit
svennam92/loopback-example-app,rvennam/loopback-example-app,strongloop-bluemix/loopback-example-app,Joddsson/loopback-example-app,jewelsjacobs/loopback-example-app,p5150j/loopback-example-app,strongloop-bluemix/loopback-example-app,rvennam/loopback-example-app,svennam92/loopback-example-app,rvennam/loopback-example-app...
json
## Code Before: { "name": "Car", "base": "PersistedModel", "options": { "mysql": { "table": "car" }, "mongodb": { "collection": "car" }, "oracle": { "schema": "DEMO", "table": "PRODUCT" } }, "properties": { "id": { "type": "string", "id": true ...
eb6696f7dcfdfb781e88dd966e85b65233c51b0e
spec/support/shared_examples/popup_shared.rb
spec/support/shared_examples/popup_shared.rb
shared_examples "a popup" do |initiator, selector| context "when the popup isn't clicked" do it "should not show the popup" do expect(page).to have_selector(selector, :visible => false) end end context "when the initiator is clicked" do before(:each) do find(initiator).trigger('click') ...
shared_examples "a popup" do |initiator, selector| context "when the popup isn't clicked" do it "should not show the popup" do expect(page).to have_selector(selector, :visible => false) end end context "when the initiator is clicked" do before(:each) do find(initiator).trigger('click') ...
Rewrite test cases to not use UTF-8 characters to avoid errors.
Rewrite test cases to not use UTF-8 characters to avoid errors.
Ruby
agpl-3.0
osulp/Room-Reservation,osulp/Room-Reservation,osulp/Room-Reservation
ruby
## Code Before: shared_examples "a popup" do |initiator, selector| context "when the popup isn't clicked" do it "should not show the popup" do expect(page).to have_selector(selector, :visible => false) end end context "when the initiator is clicked" do before(:each) do find(initiator).trig...
d9eedbff99c637662a4f7726a6df15c89a868627
playbook/roles/drush/tasks/main.yml
playbook/roles/drush/tasks/main.yml
--- # Install composer and drush. - name: Install composer shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer creates=/usr/bin/composer - name: Make sure /usr/lib/composer exists action: file path=/usr/lib/composer state=directory - name: Ensure composer cache is w...
--- # Install composer and drush. - name: Install composer shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer creates=/usr/bin/composer - name: Make sure /usr/lib/composer exists action: file path=/usr/lib/composer state=directory - name: Set up composer environmen...
Make composer cache writeable after installing everything as root.
Make composer cache writeable after installing everything as root.
YAML
mit
mgalang/WunderMachina,mgalang/WunderMachina,wunderkraut/WunderMachina,wunderkraut/WunderMachina,wunderkraut/WunderMachina,mgalang/WunderMachina,mgalang/WunderMachina,wunderkraut/WunderMachina
yaml
## Code Before: --- # Install composer and drush. - name: Install composer shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer creates=/usr/bin/composer - name: Make sure /usr/lib/composer exists action: file path=/usr/lib/composer state=directory - name: Ensure com...
221764b38f41aa0e6c0dce42053481d9f12c7e68
src/CSBill/InstallBundle/Resources/views/Install/success.html.twig
src/CSBill/InstallBundle/Resources/views/Install/success.html.twig
{# # # This file is part of the CSBill package. # # (c) Pierre du Plessis <info@customscripts.co.za> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. #} {% extends "CSCoreBundle:Layout:single_column.html.twig" %} {% block title %}{{ ...
{# # # This file is part of the CSBill package. # # (c) Pierre du Plessis <info@customscripts.co.za> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. #} {% extends "CSCoreBundle:Layout:single_column.html.twig" %} {% block title %}{{ ...
Add path to login page when installation is finished
[InstallBundle] Add path to login page when installation is finished
Twig
mit
pierredup/SolidInvoice,pierredup/CSBill,pierredup/CSBill,CSBill/CSBill,pierredup/SolidInvoice,pierredup/CSBill,CSBill/CSBill,SolidInvoice/SolidInvoice,CSBill/CSBill,SolidInvoice/SolidInvoice,CSBill/CSBill,pierredup/CSBill,SolidInvoice/SolidInvoice
twig
## Code Before: {# # # This file is part of the CSBill package. # # (c) Pierre du Plessis <info@customscripts.co.za> # # For the full copyright and license information, please view the LICENSE # file that was distributed with this source code. #} {% extends "CSCoreBundle:Layout:single_column.html.twig" %} {% b...
2f656474508eef42731df746d03c381980a649ab
build.sbt
build.sbt
name := "SpaceTurtle" version := "1.0" scalaVersion := "2.12.1" libraryDependencies ++= Seq( "io.netty" % "netty-all" % "4.0.4.Final", "org.apache.curator" % "curator-framework" % "3.3.0", "org.apache.curator" % "curator-test" % "3.3.0", "com.typesafe.scala-logging" %% "scala-logging" % "3.5.0", "org.scala...
name := "SpaceTurtle" version := "1.0" scalaVersion := "2.12.1" libraryDependencies ++= Seq( "io.netty" % "netty-all" % "4.0.4.Final", "org.apache.curator" % "curator-framework" % "3.3.0", "org.apache.curator" % "curator-test" % "3.3.0", "com.typesafe.scala-logging" %% "scala-logging" % "3.5.0", "org.scala...
Add sequential testing for sbt
Add sequential testing for sbt
Scala
apache-2.0
Max-Meldrum/SpaceTurtle
scala
## Code Before: name := "SpaceTurtle" version := "1.0" scalaVersion := "2.12.1" libraryDependencies ++= Seq( "io.netty" % "netty-all" % "4.0.4.Final", "org.apache.curator" % "curator-framework" % "3.3.0", "org.apache.curator" % "curator-test" % "3.3.0", "com.typesafe.scala-logging" %% "scala-logging" % "3.5....
4a22989c5d21b5aac68623364b5f0cd3a57fe617
lib/sprockets/es6module.rb
lib/sprockets/es6module.rb
require 'sprockets/es6module/version' require 'esperanto' require 'sprockets/es6' module Sprockets class ES6Module def self.instance @instance ||= new end def self.call(input) instance.call(input) end def initialize(options = {}) @options = options.dup.freeze @cache_ke...
require 'sprockets/es6module/version' require 'esperanto' require 'sprockets/es6' module Sprockets class ES6Module MODULE_METHODS = { amd: 'toAmd', common: 'toCjs', umd: 'toUmd' } def self.instance @instance ||= new end def self.call(input) instance.call(input) ...
Support transpilers other than AMD
Support transpilers other than AMD
Ruby
mit
tricknotes/sprockets-es6module
ruby
## Code Before: require 'sprockets/es6module/version' require 'esperanto' require 'sprockets/es6' module Sprockets class ES6Module def self.instance @instance ||= new end def self.call(input) instance.call(input) end def initialize(options = {}) @options = options.dup.freeze ...
e66c8ffceb71aa0ee05037963e3ae9592f24a245
docs/powershell/scheduled-task-helper/index.md
docs/powershell/scheduled-task-helper/index.md
--- title: scheduledTaskHelper.ps1 description: Details about the scheduledTaskHelper.ps1 helper script --- # scheduledTaskHelper.ps1 ## Overview The `scheduledTaskHelper.ps1` script has functionality to check, create, delete and update scheduled tasks ## Functions * ScheduledTask-CheckExists([string] $taskName, [...
--- title: scheduledTaskHelper.ps1 description: Details about the scheduledTaskHelper.ps1 helper script --- # scheduledTaskHelper.ps1 ## Overview The `scheduledTaskHelper.ps1` script has functionality to check, create, delete and update scheduled tasks ## Functions * ScheduledTask-CheckExists([string] $taskName, [...
Add scheduled task run to docs site
Add scheduled task run to docs site
Markdown
mit
15below/Ensconce,15below/Ensconce,BlythMeister/Ensconce,BlythMeister/Ensconce
markdown
## Code Before: --- title: scheduledTaskHelper.ps1 description: Details about the scheduledTaskHelper.ps1 helper script --- # scheduledTaskHelper.ps1 ## Overview The `scheduledTaskHelper.ps1` script has functionality to check, create, delete and update scheduled tasks ## Functions * ScheduledTask-CheckExists([stri...
f34e4b3b13a9080e50b713a8a01d3eceb636fee8
appveyor.yml
appveyor.yml
version: "{build}" branches: only: - master skip_tags: true clone_folder: c:\projects\atom clone_depth: 10 platform: - x86 environment: global: ATOM_DEV_RESOURCE_PATH: c:\projects\atom ATOM_ACCESS_TOKEN: secure: Q7vxmSq0bVCLTTRPzXw5ZhPTe7XYhWxX0tQV6neEkddTH6pZkOYNmSCG6VnMX2f+ matrix: - ...
version: "{build}" branches: only: - master skip_tags: true clone_folder: c:\projects\atom clone_depth: 10 platform: - x86 environment: global: ATOM_DEV_RESOURCE_PATH: c:\projects\atom ATOM_ACCESS_TOKEN: secure: Q7vxmSq0bVCLTTRPzXw5ZhPTe7XYhWxX0tQV6neEkddTH6pZkOYNmSCG6VnMX2f+ matrix: - ...
Add MSI output for AppVeyor artifact list
Add MSI output for AppVeyor artifact list
YAML
mit
gontadu/atom,decaffeinate-examples/atom,CraZySacX/atom,ardeshirj/atom,bj7/atom,CraZySacX/atom,ardeshirj/atom,sotayamashita/atom,t9md/atom,PKRoma/atom,kevinrenaers/atom,bj7/atom,AdrianVovk/substance-ide,FIT-CSE2410-A-Bombs/atom,t9md/atom,Mokolea/atom,atom/atom,bolinfest/atom,xream/atom,stinsonga/atom,liuderchi/atom,kevi...
yaml
## Code Before: version: "{build}" branches: only: - master skip_tags: true clone_folder: c:\projects\atom clone_depth: 10 platform: - x86 environment: global: ATOM_DEV_RESOURCE_PATH: c:\projects\atom ATOM_ACCESS_TOKEN: secure: Q7vxmSq0bVCLTTRPzXw5ZhPTe7XYhWxX0tQV6neEkddTH6pZkOYNmSCG6VnMX2f+...
30f1968ff3e8b236cd477de30ccac812e2c6bf9b
OSX/install-kext.sh
OSX/install-kext.sh
echo 'Installing Driver...' sudo cp -R heimdall.kext /System/Library/Extensions sudo chmod -R 755 /System/Library/Extensions/heimdall.kext sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext sudo kextload /System/Library/Extensions/heimdall.kext echo 'Installation complete. If Heimdall cannot recognise yo...
BASEDIR=$(dirname $0) echo 'Installing Driver...' sudo cp -R "$BASEDIR/heimdall.kext" /System/Library/Extensions sudo chmod -R 755 /System/Library/Extensions/heimdall.kext sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext sudo kextload /System/Library/Extensions/heimdall.kext echo 'Installation complete...
Make OS X kext installation work irrespective of current directory
Make OS X kext installation work irrespective of current directory
Shell
mit
RyGuy85/Heimdall,selbyk/Heimdall,selbyk/Heimdall,selbyk/Heimdall,TribeMedia/Heimdall,baerrach/Heimdall,RyGuy85/Heimdall,TribeMedia/Heimdall,RyGuy85/Heimdall,baerrach/Heimdall,TribeMedia/Heimdall,baerrach/Heimdall
shell
## Code Before: echo 'Installing Driver...' sudo cp -R heimdall.kext /System/Library/Extensions sudo chmod -R 755 /System/Library/Extensions/heimdall.kext sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext sudo kextload /System/Library/Extensions/heimdall.kext echo 'Installation complete. If Heimdall can...
6bd487c855d8149fdf1d8a171774a0dc88cff8f3
app/views/coronavirus_landing_page/show.html.erb
app/views/coronavirus_landing_page/show.html.erb
<%= render( partial: 'page_header', locals: { breadcrumbs: breadcrumbs } ) %> <div class="govuk-width-container"> <%= render 'components/header-notice', { nhs_branding: true, title_logo_url: image_url('nhs-logotype-blue.svg'), heading: t("coronavirus_landing_page.nhs_banner.heading"), list:...
<%= render( partial: 'page_header', locals: { breadcrumbs: breadcrumbs } ) %> <div class="govuk-width-container"> <div class="govuk-grid-row"> <div class="govuk-grid-column-one-third"> <%= render 'components/header-notice', { nhs_branding: true, title_logo_url: image_url('nhs-logo...
Add grid to coronavirus landing page
Add grid to coronavirus landing page
HTML+ERB
mit
alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections
html+erb
## Code Before: <%= render( partial: 'page_header', locals: { breadcrumbs: breadcrumbs } ) %> <div class="govuk-width-container"> <%= render 'components/header-notice', { nhs_branding: true, title_logo_url: image_url('nhs-logotype-blue.svg'), heading: t("coronavirus_landing_page.nhs_banner.head...
487b13a78729cfd4e505dd3b3a466ed3ced1fe15
app/views/resources/_display_resources.html.erb
app/views/resources/_display_resources.html.erb
<li><%= link_to resource.title, resource_path(resource) %> - <%= link_to resource.language_name, language_path(resource.language) %></li>
<li><%= link_to resource.title, resource_path(resource) %> <ul> <% resource.languages.each do |language| %> <li><%= link_to language.name, language_path(language) %></li> <% end %> </ul> </li>
Add languages list to resource display partial.
Add languages list to resource display partial.
HTML+ERB
mit
abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/sorter,abonner1/code_learning_resources_manager,abonner1/sorter,abonner1/code_learning_resources_manager
html+erb
## Code Before: <li><%= link_to resource.title, resource_path(resource) %> - <%= link_to resource.language_name, language_path(resource.language) %></li> ## Instruction: Add languages list to resource display partial. ## Code After: <li><%= link_to resource.title, resource_path(resource) %> <ul> <% resource.lan...
9be88221c810200125942dfd71cce6003ab1b4ee
.groc.json
.groc.json
{ "glob": [ "README.md", "lib/legendary.js", "lib/promises.js", "lib/series.js", "lib/CancellationError.js" ], "github": false, "repository-url": "https://github.com/novemberborn/legendary", "out": "doc/" }
{ "glob": [ "README.md", "lib/legendary.js", "lib/promises.js", "lib/series.js", "lib/CancellationError.js" ], "github": false, "repository-url": "https://github.com/novemberborn/legendary", "out": "doc/", "index": "README.md" }
Set index file for Grock
Set index file for Grock
JSON
isc
novemberborn/legendary
json
## Code Before: { "glob": [ "README.md", "lib/legendary.js", "lib/promises.js", "lib/series.js", "lib/CancellationError.js" ], "github": false, "repository-url": "https://github.com/novemberborn/legendary", "out": "doc/" } ## Instruction: Set index file for Grock ## Code After: { "glob...
59d3a4faa79e22aaf4157b00ef4e0764adef0b05
lib/jumubase_web/templates/page/_lw_phase_panels.html.eex
lib/jumubase_web/templates/page/_lw_phase_panels.html.eex
<div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Landeswettbewerb <%= year(@contest) %></h3> </div> <div class="panel-body"> Der Landeswettbewerb findet dieses Jahr an der <strong><%= @contest.host.name %></strong> statt. </div> ...
<div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Landeswettbewerb <%= year(@contest) %></h3> </div> <div class="panel-body"> Der Landeswettbewerb findet dieses Jahr an der <strong><%= @contest.host.name %></strong> statt. </div> ...
Add app links to LW phase panel on home page
Add app links to LW phase panel on home page
HTML+EEX
mit
richeterre/jumubase-phoenix,richeterre/jumubase-phoenix
html+eex
## Code Before: <div class="col-md-6"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Landeswettbewerb <%= year(@contest) %></h3> </div> <div class="panel-body"> Der Landeswettbewerb findet dieses Jahr an der <strong><%= @contest.host.name %></strong> sta...
f863f37a05855180dce40181a27e7925f0662647
djangoautoconf/management/commands/dump_settings.py
djangoautoconf/management/commands/dump_settings.py
import os from django.core.management import BaseCommand from django.conf import settings def dump_attrs(obj_instance): for attr in dir(obj_instance): if attr != attr.upper(): continue yield attr, getattr(obj_instance, attr) class Command(BaseCommand): args = '' help = 'Crea...
import os from django.core.management import BaseCommand from django.conf import settings def dump_attrs(obj_instance): for attr in dir(obj_instance): if attr != attr.upper(): continue yield attr, getattr(obj_instance, attr) class Command(BaseCommand): args = '' help = 'Crea...
Fix int float setting issue.
Fix int float setting issue.
Python
bsd-3-clause
weijia/djangoautoconf,weijia/djangoautoconf
python
## Code Before: import os from django.core.management import BaseCommand from django.conf import settings def dump_attrs(obj_instance): for attr in dir(obj_instance): if attr != attr.upper(): continue yield attr, getattr(obj_instance, attr) class Command(BaseCommand): args = '' ...
afe3f09065837e04aeb39eda55d00d4323af345a
README.md
README.md
ROMS ==== [![Build Status](https://secure.travis-ci.org/RBC1B/ROMS.png)](http://travis-ci.org/RBC1B/ROMS)
ROMS ==== [![Build Status](https://secure.travis-ci.org/RBC1B/ROMS.png)](http://travis-ci.org/RBC1B/ROMS) See the [Wiki](https://github.com/RBC1B/ROMS/wiki) for more information.
Add link to wiki, now that the gh-pages have been deleted
Add link to wiki, now that the gh-pages have been deleted
Markdown
mit
RBC1B/ROMS,RBC1B/ROMS,RBC1B/ROMS
markdown
## Code Before: ROMS ==== [![Build Status](https://secure.travis-ci.org/RBC1B/ROMS.png)](http://travis-ci.org/RBC1B/ROMS) ## Instruction: Add link to wiki, now that the gh-pages have been deleted ## Code After: ROMS ==== [![Build Status](https://secure.travis-ci.org/RBC1B/ROMS.png)](http://travis-ci.org/RBC1B/ROMS) S...
d03250e1af17a40be3b9aa70fef67e50ab556a87
numba2/compiler/layout.py
numba2/compiler/layout.py
from __future__ import print_function, division, absolute_import from numba2 import conversion from pykit import types as ptypes from pykit.utils import ctypes_support #===------------------------------------------------------------------=== # Types #===--------------------------------------------------------------...
from __future__ import print_function, division, absolute_import from numba2 import conversion from pykit import types as ptypes from pykit.utils import ctypes_support #===------------------------------------------------------------------=== # Types #===--------------------------------------------------------------...
Remove some object representation clobbering code
Remove some object representation clobbering code
Python
bsd-2-clause
flypy/flypy,flypy/flypy
python
## Code Before: from __future__ import print_function, division, absolute_import from numba2 import conversion from pykit import types as ptypes from pykit.utils import ctypes_support #===------------------------------------------------------------------=== # Types #===----------------------------------------------...
7efcc9987f827eec56677d95bc7ad873208b392f
saw/parser/sentences.py
saw/parser/sentences.py
import base from blocks import Blocks import re class Sentences(base.Base): _type = 'sentences' child_class = Blocks @staticmethod def parse(text): #re.split('\!|\?|\. | \.',text) result = [] prev = 0 # we allow .09 as not end of sentences #for m in re.finditer...
import base from blocks import Blocks import re class Sentences(base.Base): _type = 'sentences' child_class = Blocks @staticmethod def parse(text): _len = len(text) result = [] prev = 0 # we allow .09 as not end of sentences for m in re.finditer('[\!\?\.]+', te...
Optimize from 5-6s to 2.9-3.0
Optimize from 5-6s to 2.9-3.0
Python
mit
diNard/Saw
python
## Code Before: import base from blocks import Blocks import re class Sentences(base.Base): _type = 'sentences' child_class = Blocks @staticmethod def parse(text): #re.split('\!|\?|\. | \.',text) result = [] prev = 0 # we allow .09 as not end of sentences #for ...
82b5b75f9e376e7b95b3dc2ca76effa5ce0199e7
app/Http/ViewComposers/LayoutComposer.php
app/Http/ViewComposers/LayoutComposer.php
<?php namespace GPUG\Http\ViewComposers; use Copyrighter\CopyrighterFactory; use Illuminate\Contracts\View\View; class LayoutComposer { public function compose(View $view) { $copyRighter = CopyrighterFactory::create(['geo-locator' => 'FreeGeoIP']); $view->with('copyright', $copyRighter->getCop...
<?php namespace GPUG\Http\ViewComposers; use Copyrighter\CopyrighterFactory; use Illuminate\Contracts\View\View; class LayoutComposer { public function compose(View $view) { $copyRighter = CopyrighterFactory::create(); $view->with('copyright', $copyRighter->getCopyright()); } }
Fix broken site due to FreeGeoIP being down
Fix broken site due to FreeGeoIP being down
PHP
mit
GPUG/gpug.ca,GPUG/gpug.ca
php
## Code Before: <?php namespace GPUG\Http\ViewComposers; use Copyrighter\CopyrighterFactory; use Illuminate\Contracts\View\View; class LayoutComposer { public function compose(View $view) { $copyRighter = CopyrighterFactory::create(['geo-locator' => 'FreeGeoIP']); $view->with('copyright', $cop...
2d96cc94c614aa5b28929153de57845585c35946
README.md
README.md
- NGINX Version: 1.9.14 - PHP-Version: 7.0.5 # Including - NGINX 1.* - PHP 7.* - composer (/usr/local/bin/composer) ## PHP 7 Modules - php7-xml - php7-xsl - php7-pdo_mysql - php7-mcrypt - php7-curl - php7-json - php7-fpm - php7-phar - php7-openssl - php7-mysqli - php7-ctype - php7-opcache - php7-mbs...
[![](https://images.microbadger.com/badges/image/shito/alpine-nginx-php7.svg)] ## Including - NGINX 1.* (latest pkgs version) - PHP 7.* (latest pkgs version) - composer (/usr/local/bin/composer) ## PHP 7 Modules - php7-xml - php7-xsl - php7-pdo_mysql - php7-mcrypt - php7-curl - php7-json - php7-fpm - php7...
Add badge to display size and layers
Add badge to display size and layers
Markdown
mit
sebknoth/alpine-nginx-php7
markdown
## Code Before: - NGINX Version: 1.9.14 - PHP-Version: 7.0.5 # Including - NGINX 1.* - PHP 7.* - composer (/usr/local/bin/composer) ## PHP 7 Modules - php7-xml - php7-xsl - php7-pdo_mysql - php7-mcrypt - php7-curl - php7-json - php7-fpm - php7-phar - php7-openssl - php7-mysqli - php7-ctype - php7-opc...
e9533dd0a4e3eec80c439632116326237726b3dd
_includes/header.html
_includes/header.html
<header class="site__header meta uppercase pt1"> <div class="close-area hiding fix-top button" onclick="toggleHeaderDropdown()"></div> <section class="over-800 gutters data-info"> <ul class="no-bullets row uppercase"> <li>Last Updated →</li> </ul><!-- --><ul class="no-bullets row uppercase"> ...
<header class="site__header meta uppercase pt1"> <div class="close-area hiding fix-top button" onclick="toggleHeaderDropdown()"></div> <section class="over-800 gutters data-info"> <ul class="no-bullets row uppercase"> <li>Updated →</li> </ul><!-- --><ul class="no-bullets row uppercase"> <li...
Change Last Updated to just Updated
Change Last Updated to just Updated
HTML
isc
jckfa/silly.graphics,jckfa/silly.graphics,jckfa/silly.graphics
html
## Code Before: <header class="site__header meta uppercase pt1"> <div class="close-area hiding fix-top button" onclick="toggleHeaderDropdown()"></div> <section class="over-800 gutters data-info"> <ul class="no-bullets row uppercase"> <li>Last Updated →</li> </ul><!-- --><ul class="no-bullets row ...
0118b0dfb368b2d948c8a824a18d1d4a044625d1
requirements-test.txt
requirements-test.txt
bluesky codecov coverage glueviz matplotlib ophyd pathlib pyqt5 pytest >=3.9 suitcase-jsonl suitcase-mongo vcrpy ujson
bluesky codecov coverage glueviz intake[server] matplotlib ophyd pathlib pyqt5 pytest >=3.9 suitcase-jsonl suitcase-mongo vcrpy ujson
Add test dependency on intake[server].
BLD: Add test dependency on intake[server].
Text
bsd-3-clause
ericdill/databroker,ericdill/databroker
text
## Code Before: bluesky codecov coverage glueviz matplotlib ophyd pathlib pyqt5 pytest >=3.9 suitcase-jsonl suitcase-mongo vcrpy ujson ## Instruction: BLD: Add test dependency on intake[server]. ## Code After: bluesky codecov coverage glueviz intake[server] matplotlib ophyd pathlib pyqt5 pytest >=3.9 suitcase-jsonl s...
58ccecee8548286df867aad1f1debf9709aa3ab9
spec/collector/metric_spec.rb
spec/collector/metric_spec.rb
require 'rspec' require 'panoptimon' describe('flatten a metric') { it('flattens metrics') { Panoptimon::Metric.new('x', {'t' => {'q' => 9, 'r' => 7.3}}). should == {'x|t|q' => 9, 'x|t|r' => 7.3} } it('does not mangle _info entries') { Panoptimon::Metric.new('x', {'t' => {'q' => 9, 'r' => 7.3}, ...
require 'rspec' require 'panoptimon' describe('flatten a metric') { it('flattens metrics') { Panoptimon::Metric.new('x', {'t' => {'q' => 9, 'r' => 7.3}}). should == {'x|t|q' => 9, 'x|t|r' => 7.3} } it('does not mangle _info entries') { Panoptimon::Metric.new('x', {'t' => {'q' => 9, 'r' => 7.3}, ...
Test to show behaviour when there's empty metrics
Test to show behaviour when there's empty metrics
Ruby
bsd-3-clause
bdha/panoptimon,bdha/panoptimon,ewilhelm/panoptimon,synthesist/panoptimon,synthesist/panoptimon,bdha/panoptimon,bdha/panoptimon,ewilhelm/panoptimon,ewilhelm/panoptimon,ewilhelm/panoptimon,synthesist/panoptimon,synthesist/panoptimon
ruby
## Code Before: require 'rspec' require 'panoptimon' describe('flatten a metric') { it('flattens metrics') { Panoptimon::Metric.new('x', {'t' => {'q' => 9, 'r' => 7.3}}). should == {'x|t|q' => 9, 'x|t|r' => 7.3} } it('does not mangle _info entries') { Panoptimon::Metric.new('x', {'t' => {'q' => 9,...
f15b11d7e6bdcd5c8984697c3a7ec800da1a6fe9
adelaide.md
adelaide.md
--- layout: page title: Adelaide --- # Contact Twitter: [@sectalks_ADL](https://twitter.com/sectalks_ADL) Email: [adelaide@sectalks.org](mailto:adelaide@sectalks.org) Meetup: [SecTalks Adelaide](http://www.meetup.com/SecTalks-Adelaide/) # Organising team James McLean, [@vortexau](https://twitter.com/vortexau), [ad...
--- layout: page title: Adelaide --- # Contact Twitter: [@sectalks_ADL](https://twitter.com/sectalks_ADL) Email: [adelaide@sectalks.org](mailto:adelaide@sectalks.org) Meetup: [SecTalks Adelaide](http://www.meetup.com/SecTalks-Adelaide/) # Organising team James McLean, [@vortexau](https://twitter.com/vortexau), [ad...
Update day of the meeting
Update day of the meeting
Markdown
mit
sectalks/sectalks.github.io,sectalks/sectalks.github.io
markdown
## Code Before: --- layout: page title: Adelaide --- # Contact Twitter: [@sectalks_ADL](https://twitter.com/sectalks_ADL) Email: [adelaide@sectalks.org](mailto:adelaide@sectalks.org) Meetup: [SecTalks Adelaide](http://www.meetup.com/SecTalks-Adelaide/) # Organising team James McLean, [@vortexau](https://twitter.co...
efd7a2a81166320140d3df3e79e554e80b7598ce
test/helper.js
test/helper.js
/** * Helper module for tests */ const path = require('path'); exports.appPath = path.resolve(__dirname, '../'); exports.electronPath = path.resolve(__dirname, '../node_modules/.bin/electron'); process.env.NODE_ENV = 'test'; // suppress logging
/** * Helper module for tests */ const path = require('path'); exports.appPath = path.resolve(__dirname, '../'); var exe_suffix = ""; if(process.platform === 'win32') { exe_suffix = '.exe'; } exports.electronPath = path.resolve(__dirname, '../node_modules/.bin/electron' + exe_suffix); process.env.NODE_ENV = 'tes...
Make electron executable path platform dependent
Make electron executable path platform dependent
JavaScript
isc
mykter/TagTime-desktop,mykter/TagTime-desktop,mykter/TagTime-desktop
javascript
## Code Before: /** * Helper module for tests */ const path = require('path'); exports.appPath = path.resolve(__dirname, '../'); exports.electronPath = path.resolve(__dirname, '../node_modules/.bin/electron'); process.env.NODE_ENV = 'test'; // suppress logging ## Instruction: Make electron executable path platform...
f139d4b750a622b558a5d06d8b8b2ef24da1a600
src/registry.go
src/registry.go
package gowrapmx4j import "sync" var registry = make(map[string]*MX4JMetric) var reglock = &sync.RWMutex{} func RegistrySet(mm MX4JMetric, mb *MBean) { reglock.Lock() defer reglock.Unlock() mm.MBean = mb registry[mm.HumanName] = &mm } func RegistryGet(humanName string) *MX4JMetric { reglock.RLock() defer reg...
package gowrapmx4j import "sync" var registry = make(map[string]*MX4JMetric) var reglock = &sync.RWMutex{} func RegistrySet(mm MX4JMetric, mb *MBean) { reglock.Lock() defer reglock.Unlock() mm.MBean = mb registry[mm.HumanName] = &mm } func RegistryGet(humanName string) *MX4JMetric { reglock.RLock() defer reg...
Return a map of human MBeans keyed by their human readable names
Return a map of human MBeans keyed by their human readable names
Go
apache-2.0
lytics/gowrapmx4j
go
## Code Before: package gowrapmx4j import "sync" var registry = make(map[string]*MX4JMetric) var reglock = &sync.RWMutex{} func RegistrySet(mm MX4JMetric, mb *MBean) { reglock.Lock() defer reglock.Unlock() mm.MBean = mb registry[mm.HumanName] = &mm } func RegistryGet(humanName string) *MX4JMetric { reglock.RL...
6856ea6cca0d2a172c6337ff213d286ba72023a5
src/templates/_macros/index.html
src/templates/_macros/index.html
{% macro checkbox(config) %} {%- spaceless %} {% set value = (config.value is defined ? config.value : 1) %} {% set id = (config.id is defined and config.id ? config.id : 'checkbox' ~ random()) %} {% set label = (config.label is defined ? config.label) %} <div class="field checkboxfield"> ...
{% macro checkbox(config) %} {%- spaceless %} {% set value = (config.value is defined ? config.value : 1) %} {% set id = (config.id is defined and config.id ? config.id : 'checkbox' ~ random()) %} {% set label = (config.label is defined ? config.label) %} <div class="field checkboxfield"> ...
Fix not being able to select filename as an identifier for asset fields
Fix not being able to select filename as an identifier for asset fields
HTML
mit
engram-design/FeedMe,engram-design/FeedMe,engram-design/FeedMe
html
## Code Before: {% macro checkbox(config) %} {%- spaceless %} {% set value = (config.value is defined ? config.value : 1) %} {% set id = (config.id is defined and config.id ? config.id : 'checkbox' ~ random()) %} {% set label = (config.label is defined ? config.label) %} <div class="field checkbox...
e0e95d88dbc874a12f329288bddd9369cec297ad
roles/qb.git_repo/tasks/main.yml
roles/qb.git_repo/tasks/main.yml
--- # tasks file for qb.git_repo - name: initialize git command: git init args: chdir: "{{ git_repo_dest }}" creates: "{{ git_repo_dest }}/.git" - name: Tell Git to ignore OSX artifacts when: ansible_distribution == "MacOSX" include_role: name: qb.gitignore vars: gitignore_name: Global/macO...
--- # tasks file for qb.git_repo - name: >- Create {{ git_repo_dest }} directory file: dest: >- {{ git_repo_dest }} state: directory - name: >- Initialize git command: git init args: chdir: >- {{ git_repo_dest }} creates: >- {{ git_repo_dest }}/.git - name: >- Tell...
Fix git_repo to create dest dir if doesn't exists.
Fix git_repo to create dest dir if doesn't exists.
YAML
mit
nrser/qb,nrser/qb,nrser/qb,nrser/qb
yaml
## Code Before: --- # tasks file for qb.git_repo - name: initialize git command: git init args: chdir: "{{ git_repo_dest }}" creates: "{{ git_repo_dest }}/.git" - name: Tell Git to ignore OSX artifacts when: ansible_distribution == "MacOSX" include_role: name: qb.gitignore vars: gitignore_n...
2d52603e4919accb768eddd806e1eeae2be3f5ea
README.md
README.md
*Copyright 2017, Caleb Evans* *Released under the MIT License* Truth tables have always been tedious and strenuous to create by hand; it's easy for your mind to lose track and for your hand to fatigue. Truthy is a web app designed to reduce this manual labor by automatically generating the truth tables for any bool...
*Copyright 2017, Caleb Evans* *Released under the MIT License* Truth tables have always been tedious and strenuous to create by hand; it's easy for your mind to lose track and for your hand to fatigue. Truthy is a web app designed to reduce this manual labor by automatically generating the truth tables for any bool...
Add note about periodically regenerating parser
Add note about periodically regenerating parser
Markdown
mit
caleb531/truthy,caleb531/truthy
markdown
## Code Before: *Copyright 2017, Caleb Evans* *Released under the MIT License* Truth tables have always been tedious and strenuous to create by hand; it's easy for your mind to lose track and for your hand to fatigue. Truthy is a web app designed to reduce this manual labor by automatically generating the truth tab...
d12e0e9c2f9ae68ad1e5e210e7cce72198896b3c
templates/wtlib/projects_list.html
templates/wtlib/projects_list.html
{% extends 'base.html' %} {% load i18n %} {% block content %} <h1 class="page-header"> {% if not mixed_languages %}<span style="color: {{ language.color }}">{{ language.name }}</span>{% endif %} {% trans 'Projects' %} </h1> <ul> {% for p in projects %} <li><a href="{{ p.get_absolute_url }}">{{ p.na...
{% extends 'base.html' %} {% load i18n %} {% block title %} {% if not mixed_languages %}{{ language.name }}{% endif %} {% trans 'Projects' %} ∙ {{ block.super }} {% endblock %} {% block content %} <h1 class="page-header"> {% if not mixed_languages %}<span style="color: {{ language.color }}">{{ language....
Add <title> to projects page
Add <title> to projects page
HTML
mit
elegion/djangodash2013,elegion/djangodash2013
html
## Code Before: {% extends 'base.html' %} {% load i18n %} {% block content %} <h1 class="page-header"> {% if not mixed_languages %}<span style="color: {{ language.color }}">{{ language.name }}</span>{% endif %} {% trans 'Projects' %} </h1> <ul> {% for p in projects %} <li><a href="{{ p.get_absolute...
79ff0918a6892cd6ef3830080f5b88da188ac9e8
c-ares-sys/README.md
c-ares-sys/README.md
Bindings for [`c-ares`](https://c-ares.org/), mostly autogenerated by [`rust-bindgen`](https://github.com/rust-lang-nursery/rust-bindgen). [![crates.io](https://meritbadge.herokuapp.com/c-ares-sys)](https://crates.io/crates/c-ares-sys)
Bindings for [`c-ares`](https://c-ares.org/), mostly autogenerated by [`rust-bindgen`](https://github.com/rust-lang/rust-bindgen). [![crates.io](https://img.shields.io/crates/v/c-ares-sys.svg)](https://crates.io/crates/c-ares-sys)
Fix crates.io badge and update link
Fix crates.io badge and update link
Markdown
mit
dimbleby/rust-c-ares,dimbleby/rust-c-ares,dimbleby/rust-c-ares
markdown
## Code Before: Bindings for [`c-ares`](https://c-ares.org/), mostly autogenerated by [`rust-bindgen`](https://github.com/rust-lang-nursery/rust-bindgen). [![crates.io](https://meritbadge.herokuapp.com/c-ares-sys)](https://crates.io/crates/c-ares-sys) ## Instruction: Fix crates.io badge and update link ## Code After:...
333dc3efdd2ce3cc95eacd78d922fb784cbcca46
priv/repo/migrations/20170614234439_nilify_all_task_volunteer.exs
priv/repo/migrations/20170614234439_nilify_all_task_volunteer.exs
defmodule CoursePlanner.Repo.Migrations.NilifyAllTaskVolunteer do use Ecto.Migration def change do drop_if_exists index(:tasks, [:user_id]) alter table(:tasks) do remove :user_id add :user_id, references(:users, on_delete: :nilify_all) end end end
defmodule CoursePlanner.Repo.Migrations.NilifyAllTaskVolunteer do use Ecto.Migration def change do drop_if_exists index(:tasks, [:user_id]) alter table(:tasks) do modify :user_id, references(:users, on_delete: :nilify_all) end end end
Revert "Fix weird behavior on migration."
Revert "Fix weird behavior on migration." This reverts commit 9c03068fe35a20ef959a1f5475be04b62b21d7ed.
Elixir
mit
digitalnatives/course_planner,digitalnatives/course_planner,digitalnatives/course_planner
elixir
## Code Before: defmodule CoursePlanner.Repo.Migrations.NilifyAllTaskVolunteer do use Ecto.Migration def change do drop_if_exists index(:tasks, [:user_id]) alter table(:tasks) do remove :user_id add :user_id, references(:users, on_delete: :nilify_all) end end end ## Instruction: Revert "...
85a2ca3dca60579db2ed04fde91436556686f99b
MAINTAINERS.txt
MAINTAINERS.txt
CI infra: rvs flume: bmahe gradle / build system: cos, rvs gridgain-hadoop: cos, Sergey Vladykin <sergi.vladykin@gmail.com> hadoop: mark grover, cos, rvs hbase: andrew purtell, rvs hive: mark grover hue: oflebbe itest: cos, rvs mvn publishing/packaging: rvs oozie evans ye, rvs phoenix: andrew purtell pig: evans ye, dan...
CI infra: rvs flume: bmahe gradle / build system: cos, rvs gridgain-hadoop: cos, Sergey Vladykin <sergi.vladykin@gmail.com> hadoop: mark grover, cos, rvs hbase: andrew purtell, rvs hive: mark grover hue: oflebbe itest: cos, rvs mvn publishing/packaging: rvs oozie evans ye, rvs phoenix: andrew purtell pig: evans ye, dan...
Add Huamin Chen as Tachyon maintainer.
BIGTOP-1723: Add Huamin Chen as Tachyon maintainer. Signed-off-by: jayunit100 <8bfd13cad0bc4b2ac41d9e235951e72c9b62c2aa@apache.org>
Text
apache-2.0
juju-solutions/bigtop,odpi/bigtop,mombergm/bigtop,evans-ye/bigtop,arenadata/bigtop,mombergm/bigtop,b-long/bigtop,sekikn/bigtop,evans-ye/bigtop,panagiotisl/bigtop,apurtell/bigtop,tomz/bigtop,oflebbe/bigtop,minggLu/bigtop,b-long/bigtop,panagiotisl/bigtop,rnowling/bigtop,amitkabraiiit/bigtop,aelent/bigtop,apache/bigtop,od...
text
## Code Before: CI infra: rvs flume: bmahe gradle / build system: cos, rvs gridgain-hadoop: cos, Sergey Vladykin <sergi.vladykin@gmail.com> hadoop: mark grover, cos, rvs hbase: andrew purtell, rvs hive: mark grover hue: oflebbe itest: cos, rvs mvn publishing/packaging: rvs oozie evans ye, rvs phoenix: andrew purtell pi...
c3f6382416af655545ca4172883cf52d69690c08
app/models/idea.rb
app/models/idea.rb
class Idea < ActiveRecord::Base belongs_to :owner, :class_name => 'User' has_many :votes, :dependent => :destroy, :foreign_key => [:user_id, :idea_id] has_many :voters, :through => :votes, :source => :user, :class_name => 'User' has_many :comments, -> { order(created_at: :asc) }, :dependent => :destroy has_...
class Idea < ActiveRecord::Base belongs_to :owner, :class_name => 'User' has_many :votes, :dependent => :destroy, :foreign_key => [:user_id, :idea_id] has_many :voters, :through => :votes, :source => :user, :class_name => 'User' has_many :comments, -> { order(created_at: :asc) }, :dependent => :destroy has_...
Add Idea vote counting methods
Add Idea vote counting methods Add methods to adjust the Idea's current rating by the vote's value. Both methods will work for positive and negative votes.
Ruby
agpl-3.0
robinsonj/P4IdeaX,robinsonj/P4IdeaX
ruby
## Code Before: class Idea < ActiveRecord::Base belongs_to :owner, :class_name => 'User' has_many :votes, :dependent => :destroy, :foreign_key => [:user_id, :idea_id] has_many :voters, :through => :votes, :source => :user, :class_name => 'User' has_many :comments, -> { order(created_at: :asc) }, :dependent =>...
589702df86e0aa3baca7cbb177b57672dc79aafa
Package.swift
Package.swift
// swift-tools-version:4.0 // // Package.swift // BigInt // // Created by Károly Lőrentey on 2016-01-12. // Copyright © 2016-2017 Károly Lőrentey. // import PackageDescription let package = Package( name: "BigInt", products: [ .library(name: "BigInt", type: .dynamic, targets: ["BigInt"]), ...
// swift-tools-version:4.0 // // Package.swift // BigInt // // Created by Károly Lőrentey on 2016-01-12. // Copyright © 2016-2017 Károly Lőrentey. // import PackageDescription let package = Package( name: "BigInt", products: [ .library(name: "BigInt", targets: ["BigInt"]) ], dependencies: ...
Fix semantically broken package config
Fix semantically broken package config Don't define a static & dynamic library product with the same name. Just define a single library with no specified type.
Swift
mit
attaswift/BigInt,lorentey/BigInt,attaswift/BigInt,lorentey/BigInt
swift
## Code Before: // swift-tools-version:4.0 // // Package.swift // BigInt // // Created by Károly Lőrentey on 2016-01-12. // Copyright © 2016-2017 Károly Lőrentey. // import PackageDescription let package = Package( name: "BigInt", products: [ .library(name: "BigInt", type: .dynamic, targets: ["Big...
b426b9cc598cfb822dfba32fe9a100cd2b2fd84c
spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' SimpleCov.start if ENV['CI'] == 'true' require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov end require 'tachikoma_ai' require 'tachikoma_ai/strategies/bundler' require 'webmock/rspec'
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' SimpleCov.start if ENV['CI'] == 'true' require 'codecov' SimpleCov.formatters = [ SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::Codecov ] end require 'tachikoma_ai' require 'tachikoma_ai/strategies/bundler' requi...
Add formatter to display the coverage report on wercker
:green_heart: Add formatter to display the coverage report on wercker
Ruby
mit
sinsoku/tachikoma_ai,sinsoku/tachikoma_ai
ruby
## Code Before: $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' SimpleCov.start if ENV['CI'] == 'true' require 'codecov' SimpleCov.formatter = SimpleCov::Formatter::Codecov end require 'tachikoma_ai' require 'tachikoma_ai/strategies/bundler' require 'webmock/rspec' ## Instruction: ...
5004170395260ccb46e5945c222fff6bb08054ac
docs/pages/settings.rst
docs/pages/settings.rst
Settings Reference ================== django-modeltrans allows some configuration to define it's behaviour. By default, it tries to use sensible defaults derived from the default django settings. ``MODELTRANS_AVAILABLE_LANGUAGES`` ---------------------------------- A list of language codes to allow model fields to be...
Settings Reference ================== django-modeltrans allows some configuration to define it's behaviour. By default, it tries to use sensible defaults derived from the default django settings. ``MODELTRANS_AVAILABLE_LANGUAGES`` ---------------------------------- A list of language codes to allow model fields to be...
Add note about ignoring LANGUAGE_CODE in MODELTRANS_AVAILABLE_LANGUAGES
Add note about ignoring LANGUAGE_CODE in MODELTRANS_AVAILABLE_LANGUAGES
reStructuredText
bsd-3-clause
zostera/django-modeltrans,zostera/django-modeltrans
restructuredtext
## Code Before: Settings Reference ================== django-modeltrans allows some configuration to define it's behaviour. By default, it tries to use sensible defaults derived from the default django settings. ``MODELTRANS_AVAILABLE_LANGUAGES`` ---------------------------------- A list of language codes to allow mo...
f726dfba6269c68ce17a81a7f973e6b5e23964cb
app/views/admin/deploy_keys/index.html.haml
app/views/admin/deploy_keys/index.html.haml
- page_title "Deploy Keys" .panel.panel-default.prepend-top-default .panel-heading Public deploy keys (#{@deploy_keys.count}) .controls = link_to 'New Deploy Key', new_admin_deploy_key_path, class: "btn btn-new btn-sm" - if @deploy_keys.any? .table-holder %table.table %thead.panel-he...
- page_title "Deploy Keys" .panel.panel-default.prepend-top-default .panel-heading Public deploy keys (#{@deploy_keys.count}) .controls = link_to 'New Deploy Key', new_admin_deploy_key_path, class: "btn btn-new btn-sm btn-inverted" - if @deploy_keys.any? .table-holder %table.table %t...
Use btn-inverted for New Deploy Key
Use btn-inverted for New Deploy Key
Haml
mit
mmkassem/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,LUMC/gitlabhq,LUMC/gitlabhq,t-zuehlsdorff/gitlabhq,dplarson/gitlabhq,iiet/iiet-git,dreampet/gitlab,iiet/iiet-git,LUMC/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,htve/GitlabForChinese,axilleas/gitlabhq,darkrasid/gitlabhq,openwide-java/gitlabhq,m...
haml
## Code Before: - page_title "Deploy Keys" .panel.panel-default.prepend-top-default .panel-heading Public deploy keys (#{@deploy_keys.count}) .controls = link_to 'New Deploy Key', new_admin_deploy_key_path, class: "btn btn-new btn-sm" - if @deploy_keys.any? .table-holder %table.table ...
08b0e92fed2f6633faa1d927a616b14753be4c88
README.md
README.md
Compute the similarity of two strings based on the trigram (n-gram) method ## Installation Add this line to your application's Gemfile: gem 'trigram' And then execute: $ bundle Or install it yourself as: $ gem install trigram ## Usage ```ruby Trigram.compare 'he is genius', 'he is very genius' # ...
Compute the similarity of two strings based on the trigram (n-gram) method ## Installation Add this line to your application's Gemfile: gem 'trigram' And then execute: $ bundle Or install it yourself as: $ gem install trigram ## Usage ```ruby Trigram.compare 'he is genius', 'he is genius' # => 1 ...
Add more examples to readme
Add more examples to readme
Markdown
mit
milk1000cc/trigram
markdown
## Code Before: Compute the similarity of two strings based on the trigram (n-gram) method ## Installation Add this line to your application's Gemfile: gem 'trigram' And then execute: $ bundle Or install it yourself as: $ gem install trigram ## Usage ```ruby Trigram.compare 'he is genius', 'he is ...
fe189fbc1bace207a115821012765bbcc79d1e87
typeServices/volume/ambiguous.js
typeServices/volume/ambiguous.js
define(function() { 'use strict'; function NO_OP(){} function split(segment, entries) { var maybeHFS = segment.getBytes(512 * 2, 2).then(function(sigBytes) { var sig = String.fromCharCode(sigBytes[0], sigBytes[1]); if (sig === 'BD') { entries.add(segment.getSegment('volume/hfs'))...
define(function() { 'use strict'; function RFALSE(){ return false; } function split(segment, entries, noRecurse) { var maybeHFS = segment.getBytes(512 * 2, 2).then(function(sigBytes) { var sig = String.fromCharCode(sigBytes[0], sigBytes[1]); if (sig === 'BD') { entries.add(segmen...
Support DiskCopy 4.2 header shift
Support DiskCopy 4.2 header shift
JavaScript
mit
radishengine/drowsy,radishengine/drowsy
javascript
## Code Before: define(function() { 'use strict'; function NO_OP(){} function split(segment, entries) { var maybeHFS = segment.getBytes(512 * 2, 2).then(function(sigBytes) { var sig = String.fromCharCode(sigBytes[0], sigBytes[1]); if (sig === 'BD') { entries.add(segment.getSegmen...
373b9c6ddc13b0da9d5037072f118f5498ac8f5b
app/models/concerns/recurring_ride_coordinator_scheduler.rb
app/models/concerns/recurring_ride_coordinator_scheduler.rb
require 'active_support/concern' module RecurringRideCoordinatorScheduler extend ActiveSupport::Concern include ScheduleAttributes NON_RIDE_COORDINATOR_ATTRIBUTES = %w(id recurrence schedule_yaml created_at updated_at lock_version) included do end def instantiate! raise "Must be defined by includi...
require 'active_support/concern' module RecurringRideCoordinatorScheduler extend ActiveSupport::Concern include ScheduleAttributes NON_RIDE_COORDINATOR_ATTRIBUTES = %w(id recurrence schedule_yaml created_at updated_at lock_version start_date end_date) included do end def instantiate! raise "Must b...
Add start_date and end_date to NON_RIDE_COORDINATOR_ATTRIBUTES
Add start_date and end_date to NON_RIDE_COORDINATOR_ATTRIBUTES
Ruby
agpl-3.0
camsys/ridepilot,camsys/ridepilot,camsys/ridepilot
ruby
## Code Before: require 'active_support/concern' module RecurringRideCoordinatorScheduler extend ActiveSupport::Concern include ScheduleAttributes NON_RIDE_COORDINATOR_ATTRIBUTES = %w(id recurrence schedule_yaml created_at updated_at lock_version) included do end def instantiate! raise "Must be de...
c0a9c133a5b5b1fb377b607bba4ad720d1d8c696
src/ggrc/assets/stylesheets/modules/_related-list.scss
src/ggrc/assets/stylesheets/modules/_related-list.scss
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { margin-bottom:...
/* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { margin-bot...
Fix tab indentation on related list
Fix tab indentation on related list
SCSS
apache-2.0
VinnieJohns/ggrc-core,josthkko/ggrc-core,prasannav7/ggrc-core,jmakov/ggrc-core,prasannav7/ggrc-core,j0gurt/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,NejcZupec/ggrc-core,andrei-karalionak/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,NejcZupec/ggrc-core,edofic/ggrc-core,josthk...
scss
## Code Before: /* * Copyright (C) 2016 Google Inc., authors, and contributors <see AUTHORS file> * Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> * Created By: vladan@reciprocitylabs.com * Maintained By: vladan@reciprocitylabs.com */ .past-items-list { @extend %reset-list; > li { ...
e3abab60d2462011929c7c12b1b6e09fcb158966
.travis.yml
.travis.yml
language: python python: - "2.7" env: - TOXENV=py27 install: - pip install tox --use-mirrors script: - tox branches: only: - master
language: python python: - "2.7" - "3.6" env: - DJANGO=15 - DJANGO=16 - DJANGO=17 - DJANGO=18 - DJANGO=19 - DJANGO=110 - DJANGO=111 install: - pip install tox - export TOXENV=py${TRAVIS_PYTHON_VERSION//./}-django${DJANGO} script: - tox -e ${TOXENV}
Add various Django configurations + Python 3.6
Add various Django configurations + Python 3.6
YAML
bsd-3-clause
rochapps/django-secure-input,rochapps/django-secure-input,rochapps/django-secure-input
yaml
## Code Before: language: python python: - "2.7" env: - TOXENV=py27 install: - pip install tox --use-mirrors script: - tox branches: only: - master ## Instruction: Add various Django configurations + Python 3.6 ## Code After: language: python python: - "2.7" - "3.6" env: - DJANGO=15 - DJ...
c8cb29649076f1215cc0aea696219ff8c88839c6
kaylee.go
kaylee.go
package main import ( "github.com/codegangsta/cli" "github.com/monder/kaylee/command" "os" ) func main() { app := cli.NewApp() app.Version = "0.1.0" app.Usage = "Container orchestration system for fleet" app.Flags = []cli.Flag{ cli.StringFlag{ Name: "etcd-endpoints", Value: "http://127.0.0.1:4001,htt...
package main import ( "github.com/codegangsta/cli" "github.com/monder/kaylee/command" "os" ) func main() { app := cli.NewApp() app.Version = "0.1.0" app.Usage = "Container orchestration system for fleet" app.Flags = []cli.Flag{ cli.StringFlag{ Name: "etcd-endpoints", Value: "http://127.0.0.1:4001,h...
Use env variable for etcd endpoinst
Use env variable for etcd endpoinst
Go
mit
monder/kaylee
go
## Code Before: package main import ( "github.com/codegangsta/cli" "github.com/monder/kaylee/command" "os" ) func main() { app := cli.NewApp() app.Version = "0.1.0" app.Usage = "Container orchestration system for fleet" app.Flags = []cli.Flag{ cli.StringFlag{ Name: "etcd-endpoints", Value: "http://12...
4191411e1336d12c621d070b1d0f5401f5e0e1ae
bower.json
bower.json
{ "name": "LyonTechHub", "version": "0.1.0", "description": "Lyon Tech Hub Web Site", "authors": [ "Lyon Tech Hub community" ], "repository": { "type": "git", "url": "http://github.com/lyontechhub/lyontechhub.github.io" }, "license": "MIT", "ignore": [ "**/.*", "node_modules", ...
{ "name": "LyonTechHub", "version": "0.1.0", "description": "Lyon Tech Hub Web Site", "authors": [ "Lyon Tech Hub community" ], "repository": { "type": "git", "url": "http://github.com/lyontechhub/lyontechhub.github.io" }, "license": "MIT", "ignore": [ "**/.*", "node_modules", ...
Solve conflict with Angular in Bower (since 1.3 release)
Solve conflict with Angular in Bower (since 1.3 release)
JSON
mit
StephaneColson/lyontechhub.github.io,lilletechhub/lilletechhub.github.io,lyontechhub/lyontechhub.github.io,arthru/lyontechhub.github.io,lilletechhub/lilletechhub.github.io,fflorent/lyontechhub.github.io,arthru/lyontechhub.github.io,fflorent/lyontechhub.github.io,StephaneColson/lyontechhub.github.io,lyontechhub/lyontech...
json
## Code Before: { "name": "LyonTechHub", "version": "0.1.0", "description": "Lyon Tech Hub Web Site", "authors": [ "Lyon Tech Hub community" ], "repository": { "type": "git", "url": "http://github.com/lyontechhub/lyontechhub.github.io" }, "license": "MIT", "ignore": [ "**/.*", "nod...
e2e0ca3f0585ab245bae91c7a48178454fe96a44
lib/plugins/__tests__/resolveVersion.js
lib/plugins/__tests__/resolveVersion.js
var PluginDependency = require('../../models/pluginDependency'); var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { it('must skip resolving and return non-semver versions', function(done) { var plugin = PluginDependency.createFromString('plugin-ga@git+ssh://samy@gith...
var PluginDependency = require('../../models/pluginDependency'); var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { it('must skip resolving and return non-semver versions', function() { var plugin = PluginDependency.createFromString('ga@git+ssh://samy@github.com/Gitb...
Add test for plugin version resolution
Add test for plugin version resolution
JavaScript
apache-2.0
strawluffy/gitbook,GitbookIO/gitbook,gencer/gitbook,gencer/gitbook,tshoper/gitbook,tshoper/gitbook
javascript
## Code Before: var PluginDependency = require('../../models/pluginDependency'); var resolveVersion = require('../resolveVersion'); describe('resolveVersion', function() { it('must skip resolving and return non-semver versions', function(done) { var plugin = PluginDependency.createFromString('plugin-ga@git...
75b102e19065a5e740c7134edaf484919f2ebacb
library/src/main/java/me/proxer/library/api/HeaderInterceptor.java
library/src/main/java/me/proxer/library/api/HeaderInterceptor.java
package me.proxer.library.api; import me.proxer.library.util.ProxerUrls; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; /** * @author Ruben Gees */ final class HeaderInterc...
package me.proxer.library.api; import me.proxer.library.util.ProxerUrls; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; /** * @author Ruben Gees */ final class HeaderInterc...
Remove any previous set User-Agents when set
Remove any previous set User-Agents when set
Java
mit
proxer/ProxerLibJava
java
## Code Before: package me.proxer.library.api; import me.proxer.library.util.ProxerUrls; import okhttp3.Interceptor; import okhttp3.Request; import okhttp3.Response; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; /** * @author Ruben Gees */ final cl...
e320f1b9622a856f5b08877b0fda2a20c8f978d2
Core/src/main/scala/k2b6s9j/BoatCraft/core/registry/MaterialRegistry.scala
Core/src/main/scala/k2b6s9j/BoatCraft/core/registry/MaterialRegistry.scala
package k2b6s9j.BoatCraft.core.registry import k2b6s9j.BoatCraft.core.traits.Material object MaterialRegistry { var materials: Array[Material] = new Array[Material](0) def addMaterial(newMaterial: Material) { newMaterial +: materials } def addMaterials(newMaterials: Array[Material]) { newMaterials ...
package k2b6s9j.BoatCraft.core.registry import k2b6s9j.BoatCraft.core.traits.Material import k2b6s9j.BoatCraft.core.BoatCraft object MaterialRegistry { var materials: Array[Material] = new Array[Material](0) def addMaterial(newMaterial: Material) { newMaterial +: materials BoatCraft.log.info("Added %s t...
Print when mods are added to the Material array.
Print when mods are added to the Material array. This will be togglable when mod goes into production.
Scala
mit
Open-Code-Developers/BoatCraft
scala
## Code Before: package k2b6s9j.BoatCraft.core.registry import k2b6s9j.BoatCraft.core.traits.Material object MaterialRegistry { var materials: Array[Material] = new Array[Material](0) def addMaterial(newMaterial: Material) { newMaterial +: materials } def addMaterials(newMaterials: Array[Material]) { ...
ee29f023cbbd3680bff96a70161b83c3535f8358
app/controllers/carts_controller.rb
app/controllers/carts_controller.rb
class CartsController < ApplicationController def create item = Item.find(params[:item_id]) flash[:notice] = "You have added 1 #{item.title} to your cart." redirect_to items_path end end
class CartsController < ApplicationController include ActionView::Helpers::TextHelper def create id = params[:item_id].to_s item = Item.find(id) session[:cart] ||= {} session[:cart][id] = (session[:cart][id] || 0) + 1 flash[:notice] = "Your cart now contains #{pluralize(session[:cart][id], item...
Implement adding multiple items to a cart
Implement adding multiple items to a cart
Ruby
mit
nickedwards109/little-shop,nickedwards109/little-shop,nickedwards109/little-shop
ruby
## Code Before: class CartsController < ApplicationController def create item = Item.find(params[:item_id]) flash[:notice] = "You have added 1 #{item.title} to your cart." redirect_to items_path end end ## Instruction: Implement adding multiple items to a cart ## Code After: class CartsController < Ap...
40071ff8009eec647cb875c29daf1817714531d6
README.md
README.md
A Ruby interface to the [Freemle](https://www.freemle.com/) REST API. ## Usage ``` Freemle::Client.base_url = "https://www.freemle.com/api" Freemle::Client.app_name = "your_application_name" Freemle::Client.api_key = "your_api_key" ``` ## Documentation Check https://www.freemle.com/api-documentatie for more info.
[![Build Status](https://travis-ci.org/freemle/freemle-client.svg)](https://travis-ci.org/freemle/freemle-client) [![Code Climate](https://codeclimate.com/github/freemle/freemle-client.svg)](https://codeclimate.com/github/freemle/freemle-client) A Ruby interface to the [Freemle](https://www.freemle.com/) REST API. #...
Add travis and code climate badges
Add travis and code climate badges
Markdown
mit
freemle/freemle-ruby,jorttbv/jortt-ruby
markdown
## Code Before: A Ruby interface to the [Freemle](https://www.freemle.com/) REST API. ## Usage ``` Freemle::Client.base_url = "https://www.freemle.com/api" Freemle::Client.app_name = "your_application_name" Freemle::Client.api_key = "your_api_key" ``` ## Documentation Check https://www.freemle.com/api-documentatie...
6734846902011fb61017dc37ed2030e008682963
appveyor.yml
appveyor.yml
image: Visual Studio 2017 environment: NoPortable: True install: - choco install gitversion.portable -pre -y before_build: - dotnet --version - dotnet restore src/core/core.sln build_script: - gitversion /l console /output buildserver /updateassemblyinfo - dotnet build -c Release src/core/co...
image: Visual Studio 2017 environment: NoPortable: True install: - choco install gitversion.portable -pre -y before_build: - dotnet --version - dotnet restore src/core/core.sln build_script: - gitversion /l console /output buildserver /updateassemblyinfo - dotnet build -c Release src/core/co...
Add another test project and fix upload script
Add another test project and fix upload script
YAML
mit
BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB,BrightstarDB/BrightstarDB
yaml
## Code Before: image: Visual Studio 2017 environment: NoPortable: True install: - choco install gitversion.portable -pre -y before_build: - dotnet --version - dotnet restore src/core/core.sln build_script: - gitversion /l console /output buildserver /updateassemblyinfo - dotnet build -c Rel...
ef17f20050594711576bd7c5148415ddffeb96c3
packages/styles/_sass/pm-styles/_pm-custom-scrollbar.scss
packages/styles/_sass/pm-styles/_pm-custom-scrollbar.scss
$scrollbar-width: 6px !default; $scrollbar-color: $black !default; $scrollbar-thumb-color: #586065 !default; $scrollbar-thumb-height: 40px !default; .customScrollBar-container::-webkit-scrollbar { width: $scrollbar-width; } .customScrollBar-container::-webkit-scrollbar-button:start:decrement, .customScrollBar-contai...
$scrollbar-width: 6px !default; $scrollbar-color: $black !default; $scrollbar-thumb-color: #586065 !default; $scrollbar-thumb-height: 40px !default; .customScrollBar-container::-webkit-scrollbar { width: $scrollbar-width; } .customScrollBar-container::-webkit-scrollbar-button:start:decrement, .customScrollBar-contai...
Test without hiding scrollbar (safari)
Test without hiding scrollbar (safari)
SCSS
mit
ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient
scss
## Code Before: $scrollbar-width: 6px !default; $scrollbar-color: $black !default; $scrollbar-thumb-color: #586065 !default; $scrollbar-thumb-height: 40px !default; .customScrollBar-container::-webkit-scrollbar { width: $scrollbar-width; } .customScrollBar-container::-webkit-scrollbar-button:start:decrement, .custom...
8ce60c9cd8df4f09d6c74b0e5607ff389f1856cf
iron.json
iron.json
{"project_id":"563b895873d0cd0005000058","token":"uCJUkl8X8XuHKLTB5VwVVf_0-Ng","host":"mq-aws-us-east-1-1.iron.io"}
{"project_id":"55fac602ece3570006000009","token":"94a1GMz6f_g1EeFAsLcgaIVSZ6k","host":"mq-aws-us-east-1-2.iron.io"}
Update IronMQ credentials, although these should be Travis env vars...
Update IronMQ credentials, although these should be Travis env vars...
JSON
mit
assaf/ironium
json
## Code Before: {"project_id":"563b895873d0cd0005000058","token":"uCJUkl8X8XuHKLTB5VwVVf_0-Ng","host":"mq-aws-us-east-1-1.iron.io"} ## Instruction: Update IronMQ credentials, although these should be Travis env vars... ## Code After: {"project_id":"55fac602ece3570006000009","token":"94a1GMz6f_g1EeFAsLcgaIVSZ6k","host...
c27f0a18c273ff850b71642aa048a0b074ca0571
README.md
README.md
A fork of the datatables plugin found here: https://code.google.com/p/jquery-datatables-editable/ This fork is meant to update the project to be used with modern versions of jQuery and Datatables. Dependencies are in 'bower.json'. Steps To Build: (need [node/npm](https://nodejs.org/) installed) ``` git clone https://...
A fork of the [datatables plugin found here](https://code.google.com/p/jquery-datatables-editable/) This fork is meant to update the project to be used with modern versions of jQuery and Datatables. Dependencies are in 'bower.json'. Steps To Build: (need [node/npm](https://nodejs.org/) installed) ``` git clone https:...
Add instructions for running/developing locally
Add instructions for running/developing locally
Markdown
bsd-3-clause
ansballard/jquery-datatables-editable,ansballard/jquery-datatables-editable,ansballard/jquery-datatables-editable
markdown
## Code Before: A fork of the datatables plugin found here: https://code.google.com/p/jquery-datatables-editable/ This fork is meant to update the project to be used with modern versions of jQuery and Datatables. Dependencies are in 'bower.json'. Steps To Build: (need [node/npm](https://nodejs.org/) installed) ``` gi...
3ad6afbec460194c8410914e99a314ec017f8d50
docs/building/osx.md
docs/building/osx.md
Build PowerShell on OS X ======================== This guide supplements the [Linux instructions](./linux.md), as building on OS X is almost identical. Please keep in mind that we do not yet routinely test on OS X, but some developers use PowerShell on 10.10 and 10.11. Environment =========== You will want [Homebre...
Build PowerShell on OS X ======================== This guide supplements the [Linux instructions](./linux.md), as building on OS X is almost identical. Please keep in mind that we do not yet routinely test on OS X, but some developers use PowerShell on 10.10 and 10.11. Environment =========== You will want [Homebre...
Update OS X building documentation
Update OS X building documentation
Markdown
mit
TravisEz13/PowerShell,bmanikm/PowerShell,jsoref/PowerShell,KarolKaczmarek/PowerShell,bmanikm/PowerShell,kmosher/PowerShell,PaulHigin/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,JamesWTruher/PowerShell-1,bingbing8/PowerShell,daxian-dbw/PowerShell,bmanikm/PowerShell,bmanikm/PowerShell,kmosher/PowerShel...
markdown
## Code Before: Build PowerShell on OS X ======================== This guide supplements the [Linux instructions](./linux.md), as building on OS X is almost identical. Please keep in mind that we do not yet routinely test on OS X, but some developers use PowerShell on 10.10 and 10.11. Environment =========== You wi...
a861a354bb0dc1fc1070b7ffdb8752b6ad7f80c1
BUILD.md
BUILD.md
Oden is built using Stack. A regular build requires nothing special. ```bash stack setup stack build ``` ## Distribution To build the Oden distribution we use Make. ```bash make ``` ```bash $ make $ file build/oden-0.3.0-alpha13-osx.tar.gz dist/oden-0.3.0-alpha13-osx.tar.gz: gzip compressed data, ... ``` Because...
Oden is built using Stack. **Dependencies:** * PCRE - Ubuntu 16.04: `sudo apt install libpcre3-dev` - OSX (Homebrew): `brew install pcre` * Go 1.5+ - Ubuntu 16.04: `sudo apt install golang-1.6 golang-go` - OSX (Homebrew): `brew install go` When you have installed the dependencies, run: ```bash stack setup ...
Update build instructions for Linux and OSX
Update build instructions for Linux and OSX
Markdown
mit
oden-lang/oden,oden-lang/oden
markdown
## Code Before: Oden is built using Stack. A regular build requires nothing special. ```bash stack setup stack build ``` ## Distribution To build the Oden distribution we use Make. ```bash make ``` ```bash $ make $ file build/oden-0.3.0-alpha13-osx.tar.gz dist/oden-0.3.0-alpha13-osx.tar.gz: gzip compressed data, ...
741a09c3ee6ec500f34d372fd72026e1617151fa
src/ruby/lib/ifsc.rb
src/ruby/lib/ifsc.rb
require 'json' module Razorpay class IFSC def self.data @data ||= JSON.load(File.read(File.join(__dir__, '../../IFSC.json'))) end def self.validate(code) return false unless code.size == 11 return false unless code[4] == '0' bank_code = code[0..3].upcase branch_code = code...
require 'json' module Razorpay class IFSC class << self def data @data ||= JSON.load(File.read(File.join(__dir__, '../../IFSC.json'))) end def validate(code) return false unless code.size == 11 return false unless code[4] == '0' bank_code = code[0..3].upcase ...
Use ‘<< self’ & make some methods private.
[ruby] Use ‘<< self’ & make some methods private.
Ruby
mit
razorpay/ifsc,razorpay/ifsc,razorpay/ifsc,razorpay/ifsc,razorpay/ifsc
ruby
## Code Before: require 'json' module Razorpay class IFSC def self.data @data ||= JSON.load(File.read(File.join(__dir__, '../../IFSC.json'))) end def self.validate(code) return false unless code.size == 11 return false unless code[4] == '0' bank_code = code[0..3].upcase br...
adbb468bbfa0d0a0a9cec8c358972e4438c3d65f
contrib/Pandora/PND_Resources/defconf/profile.txt
contrib/Pandora/PND_Resources/defconf/profile.txt
targetapp=LOAD81 by antirez, Pandora build by torpor filepath=./examples/ # Command Settings # Extension Settings [lua] exepath=./load81 --full extarg=--width;0;%na%;800 extarg=--height;0;%na%;480 extarg=;0;%na%;%filename% # Custom Entries Settings
targetapp=LOAD81 by antirez, Pandora build by torpor filepath=./examples/ # Command Settings # Extension Settings [lua] exepath=./load81 --full extarg=--width;0;%na%;800 extarg=--height;0;%na%;480 extarg=--bpp;0;%na%;0 extarg=;0;%na%;%filename% # Custom Entries Settings
Fix for Open Pandora --bpp arg selection.
Fix for Open Pandora --bpp arg selection.
Text
bsd-2-clause
seclorum/load81,seclorum/load81,seclorum/load81,seclorum/load81,seclorum/load81
text
## Code Before: targetapp=LOAD81 by antirez, Pandora build by torpor filepath=./examples/ # Command Settings # Extension Settings [lua] exepath=./load81 --full extarg=--width;0;%na%;800 extarg=--height;0;%na%;480 extarg=;0;%na%;%filename% # Custom Entries Settings ## Instruction: Fix for Open Pandora --bpp arg sele...
000312abf1628d3a69103f7f81bb9a280c951cfc
test/models/product_test.rb
test/models/product_test.rb
require 'test_helper' class ProductTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
require 'test_helper' class ProductTest < ActiveSupport::TestCase test "product attributes must not be empty" do # Properties must not be empty. product = Product.new assert product.invalid? assert product.errors[:title].any? assert product.errors[:description].any? assert product.errors[:pr...
Add model test for Product properties
Add model test for Product properties
Ruby
mit
bdisney/eShop,bdisney/eShop,bdisney/eShop
ruby
## Code Before: require 'test_helper' class ProductTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end ## Instruction: Add model test for Product properties ## Code After: require 'test_helper' class ProductTest < ActiveSupport::TestCase test "product attributes must not be empty"...
89346924d2615e58d93b3de569fffea33e8e0bf7
workout.html
workout.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Workout App</title> <style> script { display: block; white-space: pre; background: #ffde00; max-width: 700...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Workout App</title> <style> script { display: block; white-space: pre; background: #ffde00; max-width: 700...
Add button so that non-coders and phones can use this
Add button so that non-coders and phones can use this
HTML
mit
dasilvacontin/dasilvacontin.github.io
html
## Code Before: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Workout App</title> <style> script { display: block; white-space: pre; background: #ffde00; ...
ca1cd981633b9259d9790fd5d74c8d3829d9b897
jqm-rss-feed-complex/css/app.css
jqm-rss-feed-complex/css/app.css
.avatar-box { // background-color: red; } .avatar-icon { width: 48px; height: 48px; } .title-box { // background-color: pink; width:100%; } .title-name { margin-left: 10px; font-weight: bold; font-size: large; color: rgb(42, 90, 138); } .title-user { margin-left: 12px; margin-top: 10px; font-size: s...
.avatar-box { // background-color: red; } .avatar-icon { width: 48px; height: 48px; } .title-box { // background-color: pink; width:100%; } .title-name { margin-left: 10px; font-weight: bold; font-size: large; color: rgb(42, 90, 138); } .title-user { margin-left: 12px; margin-top: 10px; font-size: s...
Fix image size in RSS feed
Fix image size in RSS feed
CSS
apache-2.0
leoz/web-app-examples,leoz/web-app-examples
css
## Code Before: .avatar-box { // background-color: red; } .avatar-icon { width: 48px; height: 48px; } .title-box { // background-color: pink; width:100%; } .title-name { margin-left: 10px; font-weight: bold; font-size: large; color: rgb(42, 90, 138); } .title-user { margin-left: 12px; margin-top: 10p...
bf456449668b837f95c744099475a037140c23a3
gulpfile.coffee
gulpfile.coffee
gulp = require 'gulp' del = require 'del' haml = require 'gulp-haml' sourcemaps = require 'gulp-sourcemaps' coffee = require 'gulp-coffee' serve = require './serve.coffee' bower = require 'main-bower-files' SRC = 'src' DEST = 'out' HAML_PATH = "#{SRC}/haml/**/*.haml" COFFEE_PATH = "#{S...
gulp = require 'gulp' del = require 'del' haml = require 'gulp-haml' sourcemaps = require 'gulp-sourcemaps' coffee = require 'gulp-coffee' serve = require './serve.coffee' bower = require 'main-bower-files' SRC = 'src' DEST = 'out' HAML_PATH = "#{SRC}/haml/**/*.haml" COFFEE_PATH = "#{S...
Watch & Serve by Default
Watch & Serve by Default The old default task is now "build".
CoffeeScript
unlicense
arashikou/exper3-2015
coffeescript
## Code Before: gulp = require 'gulp' del = require 'del' haml = require 'gulp-haml' sourcemaps = require 'gulp-sourcemaps' coffee = require 'gulp-coffee' serve = require './serve.coffee' bower = require 'main-bower-files' SRC = 'src' DEST = 'out' HAML_PATH = "#{SRC}/haml/**/*.haml" CO...
e3e0a2432c587ee06e469c37ffae133b7ac55c77
src/bench/rpc_blockchain.cpp
src/bench/rpc_blockchain.cpp
// Copyright (c) 2016-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <rpc/blockchain.h> #include <streams.h> #include <test/util/setup_...
// Copyright (c) 2016-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <rpc/blockchain.h> #include <streams.h> #include <test/util/setup_...
Add benchmark to write JSON into a string
Add benchmark to write JSON into a string The benchmark BlockToJsonVerbose only tests generating (and destroying) the JSON data structure, but serializing into a string is also a performance critical aspect of the RPC calls. Also, use ankerl::nanobench::doNotOptimizeAway to make sure the compiler can't optimize the r...
C++
mit
sipsorcery/bitcoin,namecoin/namecoin-core,namecoin/namecore,yenliangl/bitcoin,jlopp/statoshi,Xekyo/bitcoin,prusnak/bitcoin,MeshCollider/bitcoin,jlopp/statoshi,sipsorcery/bitcoin,pataquets/namecoin-core,lateminer/bitcoin,particl/particl-core,kallewoof/bitcoin,mm-s/bitcoin,ajtowns/bitcoin,instagibbs/bitcoin,fanquake/bitc...
c++
## Code Before: // Copyright (c) 2016-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <bench/data.h> #include <rpc/blockchain.h> #include <streams.h> #include <...
478fa21ff1199c24b11c21921218f61dae3394c4
README.md
README.md
PHP Workshop Application =========== [![Build Status](https://img.shields.io/travis/php-school/php-workshop/master.svg?style=flat-square&label=Linux)](https://travis-ci.org/php-school/php-workshop) [![Windows Build Status](https://img.shields.io/appveyor/ci/AydinHassan/php-workshop/master.svg?style=flat-square&label=Wi...
<h1 align="center">PHP Workshop</h1> <p align="center"> The core of PHP School, the workshop application. This is the library which runs and compares users solutions to pre-defined known working solutions bundled with each workshop. </p> <p align="center"> <a href="https://travis-ci.org/php-school/php-workshop"> ...
Add slack badge + update layout
Add slack badge + update layout
Markdown
mit
php-school/php-workshop
markdown
## Code Before: PHP Workshop Application =========== [![Build Status](https://img.shields.io/travis/php-school/php-workshop/master.svg?style=flat-square&label=Linux)](https://travis-ci.org/php-school/php-workshop) [![Windows Build Status](https://img.shields.io/appveyor/ci/AydinHassan/php-workshop/master.svg?style=flat...
910254d8d04a3b06c3860fda5f5a44fd62cb4b46
.github/workflows/daily.yml
.github/workflows/daily.yml
name: Daily checks on: schedule: - cron: '0 0 * * *' jobs: audit: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Security audit uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} check-tlds: runs-on: ubu...
name: Daily checks on: schedule: - cron: '0 0 * * *' jobs: audit: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Security audit uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} check-tlds: runs-on: ubu...
Create PRs for outdated TLDs
Create PRs for outdated TLDs
YAML
apache-2.0
portier/portier-broker,portier/portier-broker,portier/portier-broker,portier/portier-broker
yaml
## Code Before: name: Daily checks on: schedule: - cron: '0 0 * * *' jobs: audit: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Security audit uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} check-tlds: ...
7c949f10ea177ce857a7902629dd22f649d9faff
app/src/lib/git/index.ts
app/src/lib/git/index.ts
export * from './apply' export * from './branch' export * from './checkout' export * from './clone' export * from './commit' export * from './config' export * from './core' export * from './description' export * from './diff' export * from './fetch' export * from './for-each-ref' export * from './index' export * from '...
export * from './apply' export * from './branch' export * from './checkout' export * from './clone' export * from './commit' export * from './config' export * from './core' export * from './description' export * from './diff' export * from './fetch' export * from './for-each-ref' export * from './init' export * from '....
Remove cyclic dependency that makes everything :fire:
Remove cyclic dependency that makes everything :fire:
TypeScript
mit
desktop/desktop,shiftkey/desktop,shiftkey/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,say25/desktop,kactus-io/kactus,say25/desktop,desktop/desktop,say25/desktop,kactus-io/kactus,artivilla/desktop,artivilla/desktop,artivilla/desktop,shiftkey/desktop,j-f1/forked-desktop,artivilla/desktop,kactus-io/kactus...
typescript
## Code Before: export * from './apply' export * from './branch' export * from './checkout' export * from './clone' export * from './commit' export * from './config' export * from './core' export * from './description' export * from './diff' export * from './fetch' export * from './for-each-ref' export * from './index'...
94aa9f0eca6ac038b3b2ad80dcc9789b69f34194
README.md
README.md
Chrome extension which shows both of your faceit-leauges and ranks on your profile.
Chrome extension which shows both of your faceit-leauges and ranks on your profile. Installation: Download the source code, enable Developer Mode in chrome://extensions/ and add the source code folder by clicking "Load unpacked extension...". Installation alternative: Add the .crx-release to Chrome.
Update readme with installation instructions
Update readme with installation instructions
Markdown
mit
SRautila/faceit_stats
markdown
## Code Before: Chrome extension which shows both of your faceit-leauges and ranks on your profile. ## Instruction: Update readme with installation instructions ## Code After: Chrome extension which shows both of your faceit-leauges and ranks on your profile. Installation: Download the source code, enable Developer ...
6fc21df187bc657cf0ab7e59cf1645eb06e91ba5
lib/filestore.rb
lib/filestore.rb
require 'sqlite3' module SAAL class FileStore def initialize(opts = {:db => "sensor_reads.db"}) @opts = opts @db = SQLite3::Database.new(@opts[:db]) @db.type_translation = true @db.execute("create table if not exists sensor_reads (sensor string, date integer, value rea...
require 'sqlite3' module SAAL class FileStore def initialize(opts = {:db => "sensor_reads.db"}) @opts = opts @db = SQLite3::Database.new(@opts[:db]) @db.type_translation = true @db.execute("create table if not exists sensor_reads (sensor string, date integer, value rea...
Add indexes to the database to try and speedup chart creation.
Add indexes to the database to try and speedup chart creation.
Ruby
lgpl-2.1
pedrocr/saal,pedrocr/saal
ruby
## Code Before: require 'sqlite3' module SAAL class FileStore def initialize(opts = {:db => "sensor_reads.db"}) @opts = opts @db = SQLite3::Database.new(@opts[:db]) @db.type_translation = true @db.execute("create table if not exists sensor_reads (sensor string, date in...
1581a18a7d9d9aca2fce20213e818e0f9a62e7b7
src/su_safeframe/SKUI/js/utilities.js
src/su_safeframe/SKUI/js/utilities.js
/******************************************************************************* * * Utilities * ******************************************************************************/ Function.prototype.get_typename = function() { if (Function.prototype.name === undefined) { var funcNameRegex = /function\s([^(]{1,...
/******************************************************************************* * * Utilities * ******************************************************************************/ Function.prototype.get_typename = function() { if (Function.prototype.name === undefined) { var funcNameRegex = /function\s([^(]{1,...
Fix IE8 issue with missing trim() method.
Fix IE8 issue with missing trim() method.
JavaScript
mit
SketchUp/sketchup-safe-frames,SketchUp/sketchup-safe-frames,SketchUp/sketchup-safe-frames
javascript
## Code Before: /******************************************************************************* * * Utilities * ******************************************************************************/ Function.prototype.get_typename = function() { if (Function.prototype.name === undefined) { var funcNameRegex = /fu...
2eb42f93c0586d1b1a274ad3c90010397cbdba2b
lib/spree_redirects/redirect_middleware.rb
lib/spree_redirects/redirect_middleware.rb
module SpreeRedirects class RedirectMiddleware def initialize(app) @app = app end def call(env) status, headers, body = @app.call(env) path = [ env["PATH_INFO"], env["QUERY_STRING"] ].join("?").sub(/[\/\?\s]*$/, "").strip if status == 404 && url = find_redirect(path) ...
module SpreeRedirects class RedirectMiddleware def initialize(app) @app = app end def call(env) begin # when consider_all_requests_local is false, an exception is raised for 404 status, headers, body = @app.call(env) rescue ActionController::RoutingError => e ...
Fix for redirects on production (consider_all_requests_local = false)
Fix for redirects on production (consider_all_requests_local = false)
Ruby
bsd-3-clause
urbanladder/spree_redirects,ReserveBar1/spree_redirects,ramkumar-kr/spree_redirects,ramkumar-kr/spree_redirects,quentinuys/spree_redirects,quentinuys/spree_redirects,resolve/spree_redirects,urbanladder/spree_redirects,urbanladder/spree_redirects,ReserveBar1/spree_redirects,citrus/spree_redirects,citrus/spree_redirects,...
ruby
## Code Before: module SpreeRedirects class RedirectMiddleware def initialize(app) @app = app end def call(env) status, headers, body = @app.call(env) path = [ env["PATH_INFO"], env["QUERY_STRING"] ].join("?").sub(/[\/\?\s]*$/, "").strip if status == 404 && url = find_redi...
d5de8224a0d67b74444a0ad7c755e3c7bc1c39a5
features.py
features.py
from PIL import Image from PIL.ImageStat import Stat from skimage.feature import local_binary_pattern class BaseFeatureExtractor(object): """ Basis for all feature extractors """ def extract(self, data): """ Return list of feature values """ raise NotImplementedError('No way of e...
import numpy as np from PIL import Image from PIL.ImageStat import Stat from skimage.feature import local_binary_pattern class BaseFeatureExtractor(object): """ Basis for all feature extractors """ def extract(self, data): """ Return list of feature values """ raise NotImplement...
Use histogram of local binary patterns
Use histogram of local binary patterns
Python
mit
kpj/PyClass
python
## Code Before: from PIL import Image from PIL.ImageStat import Stat from skimage.feature import local_binary_pattern class BaseFeatureExtractor(object): """ Basis for all feature extractors """ def extract(self, data): """ Return list of feature values """ raise NotImplementedEr...
99a89ab8447490d4e147115e9906c067d65fb0bd
indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl
indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl
/** * @file fullbrightF.glsl * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * $/LicenseInfo$ */ #extension GL_ARB_texture_rectangle : enable vec3 fullbrightAtmosTransport(vec3 light); vec3 fullbrightScaleSoftClip(vec3 light); void main() { float shadow = 1.0; vec4 color = diffuseLookup(gl_TexCoord...
/** * @file fullbrightF.glsl * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * $/LicenseInfo$ */ #extension GL_ARB_texture_rectangle : enable vec3 fullbrightAtmosTransport(vec3 light); vec3 fullbrightScaleSoftClip(vec3 light); void main() { float shadow = 1.0; vec4 color = diffuseLookup(gl_TexCoord...
Fix for accidental checkin of hot pink fullbright.
Fix for accidental checkin of hot pink fullbright.
GLSL
lgpl-2.1
gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm,gabeharms/firestorm
glsl
## Code Before: /** * @file fullbrightF.glsl * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * $/LicenseInfo$ */ #extension GL_ARB_texture_rectangle : enable vec3 fullbrightAtmosTransport(vec3 light); vec3 fullbrightScaleSoftClip(vec3 light); void main() { float shadow = 1.0; vec4 color = diffuseLo...
e3ca51f6e10e00192768233685a5c9e3ffce2913
jest.config.js
jest.config.js
module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[tj]s$', collectCoverageFrom: [ '**/*.{js,ts}', '!**/*.test.{js,ts}', ], coveragePathIgnorePatterns: [ 'bin', 'coverage', '/node_modules/', ], timers: 'fake', };
module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[tj]s$', collectCoverageFrom: [ '**/*.{js,ts}', '!**/*.test.{js,ts}', ], coveragePathIgnorePatterns: [ 'bin', 'coverage', '/node_modules/', ], };
Revert "Use fake timer to execute Jest"
Revert "Use fake timer to execute Jest" This reverts commit bc4801161c9f1d688be7ebfa3198430c5d82cfad.
JavaScript
mit
tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot,tsg-ut/slackbot
javascript
## Code Before: module.exports = { transform: { '^.+\\.tsx?$': 'ts-jest', }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[tj]s$', collectCoverageFrom: [ '**/*.{js,ts}', '!**/*.test.{js,ts}', ], coveragePathIgnorePatterns: [ 'bin', 'coverage', '/node_modules/', ], timers: 'fake', }; ## Instructi...
a57ee5e0f7d87b65a6f1fd25c36f9be1743d3c11
msr/README.md
msr/README.md
This implementation of the `raplcap` interface reads directly from Model-Specific Registers on Linux platforms. ## Prerequisites The implementation first checks for the [msr-safe](https://github.com/LLNL/msr-safe) kernel module, otherwise it falls back on the `msr` kernel module. To load the `msr` kernel module: `...
This implementation of the `raplcap` interface reads directly from Model-Specific Registers on Linux platforms. It supports processors described beginning with the Sandy Bridge microarchitecture through the latest documented in the [Intel Software Developer's Manual](https://software.intel.com/en-us/articles/intel-sd...
Document and link to Intel SDM
Document and link to Intel SDM
Markdown
bsd-3-clause
powercap/raplcap,powercap/raplcap
markdown
## Code Before: This implementation of the `raplcap` interface reads directly from Model-Specific Registers on Linux platforms. ## Prerequisites The implementation first checks for the [msr-safe](https://github.com/LLNL/msr-safe) kernel module, otherwise it falls back on the `msr` kernel module. To load the `msr` k...
cc73ea01407e9586c63ebc91112832b2fea89951
README.md
README.md
A Deployable Service™ that runs scheduled assertions on fetched HTTP content.
A Deployable Service™ that runs scheduled assertions on fetched HTTP content. #Direct Usage - Fork bnorton/alive from GitHub to {{username}} ```bash git clone git@github.com:{{username}}/alive.git heroku create {{username}}-alive ``` - Add a MongoDB database => `heroku addons:create mongohq` - Add a username and p...
Add usage, setup and customization information
Add usage, setup and customization information
Markdown
mit
bnorton/alive,bnorton/alive,itslenny/alive,itslenny/alive,bnorton/alive,itslenny/alive
markdown
## Code Before: A Deployable Service™ that runs scheduled assertions on fetched HTTP content. ## Instruction: Add usage, setup and customization information ## Code After: A Deployable Service™ that runs scheduled assertions on fetched HTTP content. #Direct Usage - Fork bnorton/alive from GitHub to {{username}} ``...
c81e4e53c1aced860ec104412170e79af37d0725
example.html
example.html
<html> <head> <title>x-html-dropdown usage example</title> <script language="javascript" src="xhd.js"></script> </head> <body> <h1>x-html-dropdown Usage Example</h1> <SELECT id="myXHD" NAME="myDropdown" ONCHANGE="XHDrefresh('myXHD');" style="width:150px;display:none" onclick="XHDrefresh('myXHD');" MULTIPLE > ...
<html> <head> <title>x-html-dropdown usage example</title> <script language="javascript" src="xhd.js"></script> </head> <body> <h1>x-html-dropdown Usage Example</h1> <SELECT id="myXHD" NAME="myDropdown" ONCHANGE="XHDrefresh('myXHD');" style="width:150px;display:none" onclick="XHDrefresh('myXHD');" MULTIPLE > ...
Update URL of project homepage
Update URL of project homepage
HTML
lgpl-2.1
develCuy/x-html-dropdown,develCuy/x-html-dropdown
html
## Code Before: <html> <head> <title>x-html-dropdown usage example</title> <script language="javascript" src="xhd.js"></script> </head> <body> <h1>x-html-dropdown Usage Example</h1> <SELECT id="myXHD" NAME="myDropdown" ONCHANGE="XHDrefresh('myXHD');" style="width:150px;display:none" onclick="XHDrefresh('myXHD')...
dfc6b2d2d8cda75349dfab33d9639b5ea24cc520
contentcuration/contentcuration/ricecooker_versions.py
contentcuration/contentcuration/ricecooker_versions.py
import xmlrpclib from socket import gaierror VERSION_OK = "0.5.13" try: pypi = xmlrpclib.ServerProxy('https://pypi.python.org/pypi') VERSION_OK = pypi.package_releases('ricecooker')[0] except gaierror: pass VERSION_OK_MESSAGE = "Ricecooker v{} is up-to-date." VERSION_SOFT_WARNING = "0.5.6" VERSION_SOFT_W...
import xmlrpclib from socket import gaierror, error VERSION_OK = "0.6.0" try: pypi = xmlrpclib.ServerProxy('https://pypi.python.org/pypi') VERSION_OK = pypi.package_releases('ricecooker')[0] except (gaierror, error): pass VERSION_OK_MESSAGE = "Ricecooker v{} is up-to-date." VERSION_SOFT_WARNING = "0.5.6"...
Add error handling to reduce dependency on pypi
Add error handling to reduce dependency on pypi
Python
mit
DXCanas/content-curation,DXCanas/content-curation,jayoshih/content-curation,jayoshih/content-curation,jayoshih/content-curation,jayoshih/content-curation,fle-internal/content-curation,fle-internal/content-curation,fle-internal/content-curation,fle-internal/content-curation,DXCanas/content-curation,DXCanas/content-curat...
python
## Code Before: import xmlrpclib from socket import gaierror VERSION_OK = "0.5.13" try: pypi = xmlrpclib.ServerProxy('https://pypi.python.org/pypi') VERSION_OK = pypi.package_releases('ricecooker')[0] except gaierror: pass VERSION_OK_MESSAGE = "Ricecooker v{} is up-to-date." VERSION_SOFT_WARNING = "0.5.6...
4e9422f80de97e404ad405a8e53277499cd8f1ad
readme.md
readme.md
***Drag & Drop*** *Under initial development* Compile + Watch Tactile.js Drag+Drop Library tsc -w Compile & watch Workshop Planner Example cd examples/workshopPlanner tsc -w open workshopPlanner.html (this should be moved to it's own repo at some point)
***Drag & Drop*** *Under initial development* Compile + Watch Tactile.js Drag+Drop Library tsc -w Compile & watch Workshop Planner Example cd examples/workshopPlanner tsc -w & python -m SimpleHTTPServer open http://localhost:4567/workshopPlanner.html (this should be moved to it's own repo at some point)
Update read with SimpleHTTPServer instructions
Update read with SimpleHTTPServer instructions
Markdown
mit
EntropyAu/DragDrop,EntropyAu/DragDrop,EntropyAu/DragDrop
markdown
## Code Before: ***Drag & Drop*** *Under initial development* Compile + Watch Tactile.js Drag+Drop Library tsc -w Compile & watch Workshop Planner Example cd examples/workshopPlanner tsc -w open workshopPlanner.html (this should be moved to it's own repo at some point) ## Instruction: Update read with SimpleHTT...
239011d68e1131cb80b97d1fcca501d95194ff79
.travis.yml
.travis.yml
language: node_js node_js: - "6" - "5" script: - npm run lint - npm run test - npm run build - npm run lint:examples - npm run test:examples branches: except: - npm
language: node_js node_js: - "12" - "10" - "8" script: - npm run lint - npm run test - npm run build - npm run lint:examples - npm run test:examples branches: except: - npm
Drop support for node 6 and 5
Drop support for node 6 and 5
YAML
mit
gawkermedia/traverse-dom,gawkermedia/traverse-dom
yaml
## Code Before: language: node_js node_js: - "6" - "5" script: - npm run lint - npm run test - npm run build - npm run lint:examples - npm run test:examples branches: except: - npm ## Instruction: Drop support for node 6 and 5 ## Code After: language: node_js node_js: - "12" - "10" - "8" ...
9dca3a312852ed927068fc6f23d0571b3f881c9d
hieradata/vagrant/roles/admin.yaml
hieradata/vagrant/roles/admin.yaml
--- profile::application::foreman::manage_repo_dir: true
--- # Bind utils will be installed with foreman::dns profile::base::common::packages: 'bind-utils': { ensure: absent }
Fix to test dhcp in vagrant-foreman
Fix to test dhcp in vagrant-foreman
YAML
apache-2.0
norcams/himlar,norcams/himlar,norcams/himlar,eckhart/himlar,raykrist/himlar,raykrist/himlar,TorLdre/himlar,mikaeld66/himlar,eckhart/himlar,mikaeld66/himlar,eckhart/himlar,tanzr/himlar,norcams/himlar,raykrist/himlar,mikaeld66/himlar,tanzr/himlar,TorLdre/himlar,tanzr/himlar,mikaeld66/himlar,raykrist/himlar,tanzr/himlar,T...
yaml
## Code Before: --- profile::application::foreman::manage_repo_dir: true ## Instruction: Fix to test dhcp in vagrant-foreman ## Code After: --- # Bind utils will be installed with foreman::dns profile::base::common::packages: 'bind-utils': { ensure: absent }
090cf42f736ad66ecc9360cf2770d83f8ea30574
3RVX/Controllers/Volume/VolumeTransformation.h
3RVX/Controllers/Volume/VolumeTransformation.h
class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transformed ("virtual...
class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a transformed ("virtual...
Add methods to apply multiple transformations
Add methods to apply multiple transformations
C
bsd-2-clause
malensek/3RVX,malensek/3RVX,malensek/3RVX
c
## Code Before: class VolumeTransformation { public: /// <summary> /// Transforms a given volume level to a new ("virtual") level based on a /// formula or set of rules (e.g., a volume curve transformation). /// </summary> virtual float Apply(float vol) = 0; /// <summary> /// Given a trans...
91621e205caa1a5d3ccaca59928dba76edd42f65
appcomposer/templates/translator/lib.js
appcomposer/templates/translator/lib.js
// Application found and translatable! $web_link = $(".field-name-field-app-web-link"); $("<div class=\"field field-type-link-field field-label-inline clearfix\"><div class=\"field-label\">Available languages:&nbsp;</div><div class=\"field-items\"><div class=\"field-item even\">{{ translations }} &nbsp; (<a href=\"{{ ...
// Application found and translatable! $web_link = $(".field-name-field-app-web-link"); $("<div class=\"field field-type-link-field field-label-inline clearfix\"><div class=\"field-label\">Available languages:&nbsp;</div><div class=\"field-items\"><div class=\"field-item even\">{{ translations }} &nbsp;</div></div></d...
Remove the 'Translate this app' link
Remove the 'Translate this app' link
JavaScript
bsd-2-clause
morelab/appcomposer,go-lab/appcomposer,morelab/appcomposer,go-lab/appcomposer,go-lab/appcomposer,porduna/appcomposer,morelab/appcomposer,porduna/appcomposer,morelab/appcomposer,porduna/appcomposer,go-lab/appcomposer,porduna/appcomposer
javascript
## Code Before: // Application found and translatable! $web_link = $(".field-name-field-app-web-link"); $("<div class=\"field field-type-link-field field-label-inline clearfix\"><div class=\"field-label\">Available languages:&nbsp;</div><div class=\"field-items\"><div class=\"field-item even\">{{ translations }} &nbsp...
112bea494fbd15ea85581d624dac8509c0e5558b
manifests/operators/cf/add-prometheus-uaa-clients.yml
manifests/operators/cf/add-prometheus-uaa-clients.yml
- type: replace path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/cf_exporter? value: authorized-grant-types: refresh_token,client_credentials authorities: cloud_controller.admin secret: "((uaa_clients_cf_exporter_secret))" - type: replace path: /variables/- value: name: uaa_...
- type: replace path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/cf_exporter? value: override: true authorized-grant-types: client_credentials,refresh_token authorities: cloud_controller.admin scope: openid,cloud_controller.admin secret: "((uaa_clients_cf_exporter_secret))" ...
Add scope to cf uaa clients
Add scope to cf uaa clients
YAML
apache-2.0
cloudfoundry-community/prometheus-boshrelease,mkuratczyk/prometheus-boshrelease
yaml
## Code Before: - type: replace path: /instance_groups/name=uaa/jobs/name=uaa/properties/uaa/clients/cf_exporter? value: authorized-grant-types: refresh_token,client_credentials authorities: cloud_controller.admin secret: "((uaa_clients_cf_exporter_secret))" - type: replace path: /variables/- value...
7575b30c41efa75ca1c935e34a97a386ccee12e0
README.md
README.md
pluralize ========= A PHP port of the node pluralize package.
pluralize ========= A PHP port of the node pluralize package. [![Build Status](https://travis-ci.org/zomble/pluralize.png?branch=master)](https://travis-ci.org/zomble/pluralize)
Add travis-ci build status image.
Add travis-ci build status image.
Markdown
mit
zomble/pluralize
markdown
## Code Before: pluralize ========= A PHP port of the node pluralize package. ## Instruction: Add travis-ci build status image. ## Code After: pluralize ========= A PHP port of the node pluralize package. [![Build Status](https://travis-ci.org/zomble/pluralize.png?branch=master)](https://travis-ci.org/zomble/plural...
24a056ac99a1ec0b61646473fe3ccfd0f14d391d
app/views/admin/show.html.haml
app/views/admin/show.html.haml
%h2 Hidden projects %table %thead %tr %th Name %th url %th users %th visible %th trigger %tbody = render :collection => @projects, :partial => 'project'
%table %thead %tr %th Name %th url %th users %th visible %th trigger %tbody = render :collection => @projects, :partial => 'project'
Remove the header from admin, this isn't just invisible project.
Remove the header from admin, this isn't just invisible project.
Haml
epl-1.0
prathamesh-sonpatki/frontend,circleci/frontend,circleci/frontend,RayRutjes/frontend,prathamesh-sonpatki/frontend,RayRutjes/frontend,circleci/frontend
haml
## Code Before: %h2 Hidden projects %table %thead %tr %th Name %th url %th users %th visible %th trigger %tbody = render :collection => @projects, :partial => 'project' ## Instruction: Remove the header from admin, this isn't just invisible project. ## Code After: %table %t...
6b5f7595a3a39e4c465cf95561a2433edf72f64b
docker-compose.yml
docker-compose.yml
version: '2' services: influxdb: image: library/influxdb:1.1.1 container_name: influxdb ports: - 8083:8083 # Web - 8086:8086 # TCP environment: - INFLUXDB_ADMIN_ENABLED=true grafana: image: grafana/grafana:4.1.1 container_name: grafana ports: - 3000:3000 # Web ...
version: '2' services: influxdb: image: influxdb:1.1 ports: - 8083:8083 # Web - 8086:8086 # TCP environment: - INFLUXDB_ADMIN_ENABLED=true grafana: image: grafana/grafana:4.1.1 ports: - 3000:3000 # Web environment: - GF_SECURITY_ADMIN_USER=admin - GF_SECUR...
Use latest influxdb 1.1.x image
Use latest influxdb 1.1.x image
YAML
apache-2.0
miwurster/spring-data-influxdb
yaml
## Code Before: version: '2' services: influxdb: image: library/influxdb:1.1.1 container_name: influxdb ports: - 8083:8083 # Web - 8086:8086 # TCP environment: - INFLUXDB_ADMIN_ENABLED=true grafana: image: grafana/grafana:4.1.1 container_name: grafana ports: - 300...
98713d51382ed5a40a19bf58db13368ed0f272e5
.drone.yml
.drone.yml
pipeline: build: image: node:6.7 pull: true commands: - make build - make github-pages when: branch: master npm: image: plugins/npm username: $NPM_USERNAME password: $NPM_PASSWORD email: support@presslabs.com secrets: [ NPM_USERNAME, NPM_PASSWORD ] when: ...
clone: default: image: plugins/git recursive: true group: clone presslabs-org: image: alpine/git group: clone commands: # write the ssh key to disk - mkdir /root/.ssh - echo -n "$GIT_PUSH_SSH_KEY" > /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa # add github ...
Deploy demo page on presslabs.org
Deploy demo page on presslabs.org
YAML
mit
PressLabs/react-particles-icons,PressLabs/react-particles-icons
yaml
## Code Before: pipeline: build: image: node:6.7 pull: true commands: - make build - make github-pages when: branch: master npm: image: plugins/npm username: $NPM_USERNAME password: $NPM_PASSWORD email: support@presslabs.com secrets: [ NPM_USERNAME, NPM_PASSWOR...
819339c91d3030a7e7b043d7d5099c58be2c1b35
tests/Infrastructure/Persistence/IlluminateAirportInformationDatabaseTest.php
tests/Infrastructure/Persistence/IlluminateAirportInformationDatabaseTest.php
<?php namespace OpenCFP\Test\Infrastructure\Persistence; use OpenCFP\Infrastructure\Persistence\IlluminateAirportInformationDatabase; /** * Tests integration with illuminate/database and airports table to implement * an AirportInfromationDatabase * * @group wip */ class IlluminateAirportInformationDatabaseTest ...
<?php namespace OpenCFP\Test\Infrastructure\Persistence; use OpenCFP\Infrastructure\Persistence\IlluminateAirportInformationDatabase; /** * Tests integration with illuminate/database and airports table to implement * an AirportInfromationDatabase */ class IlluminateAirportInformationDatabaseTest extends \Database...
Remove spurious test group for work-in-progress
Remove spurious test group for work-in-progress
PHP
mit
PHPBenelux/opencfp,DevOpsDaysChicago/opencfp,pmeth/opencfp,monoku/opencfp,mdwheele/opencfp,DallasPHP/opencfp,monoku/opencfp,pmeth/opencfp,PHPBenelux/opencfp,localheinz/opencfp,PHPBenelux/opencfp,GrUSP/opencfp,GrUSP/opencfp,PHPBenelux/opencfp,OpenWestConference/opencfp,monoku/opencfp,MidwestPHP/opencfp_mwphp15,DevOpsDay...
php
## Code Before: <?php namespace OpenCFP\Test\Infrastructure\Persistence; use OpenCFP\Infrastructure\Persistence\IlluminateAirportInformationDatabase; /** * Tests integration with illuminate/database and airports table to implement * an AirportInfromationDatabase * * @group wip */ class IlluminateAirportInformat...
6a410b9079cffec380ac44cf390be381be929e5d
autoencoder/api.py
autoencoder/api.py
from .io import preprocess from .train import train from .network import autoencoder from .encode import encode def autoencode(count_matrix, kfold=None, dimreduce=True, reconstruct=True, mask=None, type='normal', activation='relu', learning_rate=1e-2, hidden_size=(256,64,256), l2_coef=0....
from .io import preprocess from .train import train from .network import autoencoder from .encode import encode def autoencode(count_matrix, kfold=None, dimreduce=True, reconstruct=True, mask=None, type='normal', activation='relu', testset=False, learning_rate=1e-2, hidden_size=(256,64,2...
Make preprocess testset argument accessible through API
Make preprocess testset argument accessible through API
Python
apache-2.0
theislab/dca,theislab/dca,theislab/dca
python
## Code Before: from .io import preprocess from .train import train from .network import autoencoder from .encode import encode def autoencode(count_matrix, kfold=None, dimreduce=True, reconstruct=True, mask=None, type='normal', activation='relu', learning_rate=1e-2, hidden_size=(256,64,...
db4f2ef3af0531bda30e7733343ead84a6c108b5
jgiven-tests/src/test/java/com/tngtech/jgiven/report/html5/Html5AppStage.java
jgiven-tests/src/test/java/com/tngtech/jgiven/report/html5/Html5AppStage.java
package com.tngtech.jgiven.report.html5; import static org.assertj.core.api.Assertions.assertThat; import com.tngtech.jgiven.CurrentStep; import com.tngtech.jgiven.Stage; import com.tngtech.jgiven.annotation.ExpectedScenarioState; import com.tngtech.jgiven.attachment.Attachment; import com.tngtech.jgiven.attachment.M...
package com.tngtech.jgiven.report.html5; import static org.assertj.core.api.Assertions.assertThat; import com.tngtech.jgiven.CurrentStep; import com.tngtech.jgiven.Stage; import com.tngtech.jgiven.annotation.ExpectedScenarioState; import com.tngtech.jgiven.attachment.Attachment; import com.tngtech.jgiven.attachment.M...
Add bigger timeout for xpath element locator
Add bigger timeout for xpath element locator Signed-off-by: Andru Stefanescu <7ddc31439e278e07060dec99cf8ddedbee60ab4a@cam.ac.uk>
Java
apache-2.0
TNG/JGiven,TNG/JGiven,TNG/JGiven,TNG/JGiven
java
## Code Before: package com.tngtech.jgiven.report.html5; import static org.assertj.core.api.Assertions.assertThat; import com.tngtech.jgiven.CurrentStep; import com.tngtech.jgiven.Stage; import com.tngtech.jgiven.annotation.ExpectedScenarioState; import com.tngtech.jgiven.attachment.Attachment; import com.tngtech.jgi...
7ff169fd803dadf64769f600412be66e238de5f5
spec/support/concerns/auditable.rb
spec/support/concerns/auditable.rb
RSpec.shared_examples_for "auditable" do let(:model) { described_class } let(:model_name) { model.name.underscore.to_sym } describe "before validation" do let(:current_user) { build_stubbed(:user, id: 1) } let(:existing_user) { build_stubbed(:user, id: 2) } it "adds the current user id to created_b...
RSpec.shared_examples_for "auditable" do let(:model) { described_class } let(:model_name) { model.name.underscore.to_sym } describe "before validation" do let(:current_user) { build_stubbed(:user, id: 1) } let(:existing_user) { build_stubbed(:user, id: 2) } it "adds the current user id to created_b...
Update spec to avoid name collisions
Update spec to avoid name collisions
Ruby
mit
SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime
ruby
## Code Before: RSpec.shared_examples_for "auditable" do let(:model) { described_class } let(:model_name) { model.name.underscore.to_sym } describe "before validation" do let(:current_user) { build_stubbed(:user, id: 1) } let(:existing_user) { build_stubbed(:user, id: 2) } it "adds the current user...
26f099e882d9216bfaf666f22f8c433fb72039b0
demo/client.tsx
demo/client.tsx
import * as React from "react"; import { render } from "react-dom"; import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; import "../node_modules/draft-js/dist/Draft.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scss"; render( ...
import * as React from "react"; import { render } from "react-dom"; import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scss"; render( <App />, document.getElementById("#app_contai...
Remove draft.css from the demo
Remove draft.css from the demo
TypeScript
mit
andrerpena/react-mde,andrerpena/react-mde,andrerpena/react-mde
typescript
## Code Before: import * as React from "react"; import { render } from "react-dom"; import { App } from "./App"; import "../node_modules/normalize.css/normalize.css"; import "../node_modules/draft-js/dist/Draft.css"; import "../src/styles/react-mde-all.scss"; import "./styles/demo.scss"; import "./styles/variables.scs...
511734fb8e978061ccbcdefb87a2da5b3ffd4c5d
content/posts/2020-07-13-document-database.md
content/posts/2020-07-13-document-database.md
--- title: "My Document Database is a Filesystem" date: 2020-07-13T00:00:00-07:00 slug: flat-file-database tags: - data - database - migration --- I wrote a post for migrating data at JoyLabs [Filesystem Database](https://architect-academy.joylabs.com/database/2020/07/10/fs-database.html).
--- title: "My Document Database is a Filesystem" date: 2020-07-13T00:00:00-07:00 slug: flat-file-database draft: true tags: - data - database - migration --- I wrote a post for migrating data at JoyLabs [Filesystem Database](https://architect-academy.joylabs.com/database/2020/07/10/fs-database.html).
Move document database to a draft.
Move document database to a draft.
Markdown
cc0-1.0
JeremyLWright/JeremyLWright.github.io,JeremyLWright/JeremyLWright.github.io
markdown
## Code Before: --- title: "My Document Database is a Filesystem" date: 2020-07-13T00:00:00-07:00 slug: flat-file-database tags: - data - database - migration --- I wrote a post for migrating data at JoyLabs [Filesystem Database](https://architect-academy.joylabs.com/database/2020/07/10/fs-database.html). ## Instr...