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
129d1b98512f60d38b3e3939d97d60b357fe7eeb
pkgs/tools/networking/modemmanager/default.nix
pkgs/tools/networking/modemmanager/default.nix
{ stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }: stdenv.mkDerivation rec { name = "ModemManager-0.7.991"; src = fetchurl { url = "mirror://gnome/sources/ModemManager/0.7/${name}.tar.xz"; sha256 = "0p8shqsbgnsazim7s52ylxjk064cbx2n1vm1jgywr7i58hsd6n4y"; }; nativ...
{ stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }: stdenv.mkDerivation rec { name = "ModemManager-${version}"; version = "1.2.0"; src = fetchurl { url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz"; sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5b...
Update from 0.7.991 to 1.2.0
modemmanager: Update from 0.7.991 to 1.2.0
Nix
mit
NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlo...
nix
## Code Before: { stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }: stdenv.mkDerivation rec { name = "ModemManager-0.7.991"; src = fetchurl { url = "mirror://gnome/sources/ModemManager/0.7/${name}.tar.xz"; sha256 = "0p8shqsbgnsazim7s52ylxjk064cbx2n1vm1jgywr7i58hsd6n4y...
4819632628caa9972ab6f621a26398778cdd355a
test/test_helper.rb
test/test_helper.rb
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'simplecov' SimpleCov.start do add_filter "/test/" add_group 'SidekiqCron', ...
require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'simplecov' SimpleCov.start do add_filter "/test/" add_group 'SidekiqCron', ...
Test start - sidekiq needs require of celluloid
[FIX] Test start - sidekiq needs require of celluloid
Ruby
mit
Eunix/sidekiq-cron,farainc/sidekiq-cron,farainc/sidekiq-cron,ondrejbartas/sidekiq-cron,nhoffmann/sidekiq-cron,davidtrogers/sidekiq-cron,nhoffmann/sidekiq-cron,Eunix/sidekiq-cron,ondrejbartas/sidekiq-cron,davidtrogers/sidekiq-cron,nikolai-b/sidekiq-cron,nikolai-b/sidekiq-cron
ruby
## Code Before: require 'rubygems' require 'bundler' begin Bundler.setup(:default, :development) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'simplecov' SimpleCov.start do add_filter "/test/" add_group...
189e5288928ad40192bd1594351746ea5ae7db7f
src/main/java/name/matco/simcity/api/ObjectMapperResolver.java
src/main/java/name/matco/simcity/api/ObjectMapperResolver.java
package name.matco.simcity.api; import javax.ws.rs.ext.ContextResolver; import javax.ws.rs.ext.Provider; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @Provider public class ObjectMapperResolver implements ContextResolver<ObjectMapper> { private fin...
package name.matco.simcity.api; import java.io.IOException; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.ext.ContextResolver; import javax.ws.rs.ext.Provider; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.util.DefaultIndenter; import com.fasterxml.jackson.core.util....
Improve indentation of JSON content from REST API
Improve indentation of JSON content from REST API
Java
unlicense
matco/simcity,matco/simcity,matco/simcity
java
## Code Before: package name.matco.simcity.api; import javax.ws.rs.ext.ContextResolver; import javax.ws.rs.ext.Provider; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; @Provider public class ObjectMapperResolver implements ContextResolver<ObjectMapper>...
3207e863f2e683f84b993bf914ad1414b272f1e1
src/tests/core/CMakeLists.txt
src/tests/core/CMakeLists.txt
SET(TESTS test_CH_function_recorder test_AVX ) MESSAGE(STATUS "Additional test programs for Chrono core...") FOREACH(PROGRAM ${TESTS}) MESSAGE(STATUS "...add ${PROGRAM}") ADD_EXECUTABLE(${PROGRAM} "${PROGRAM}.cpp") SOURCE_GROUP("" FILES "${PROGRAM}.cpp") SET_TARGET_PROPERTIES(${PROGRAM} PROPE...
SET(TESTS test_CH_function_recorder ) if(AVX_FOUND) set(TESTS ${TESTS} test_AVX ) endif() MESSAGE(STATUS "Additional test programs for Chrono core...") FOREACH(PROGRAM ${TESTS}) MESSAGE(STATUS "...add ${PROGRAM}") ADD_EXECUTABLE(${PROGRAM} "${PROGRAM}.cpp") SOURCE_GROUP("" FILES "${PROGR...
Build test_AVX only if AVX support is available
Build test_AVX only if AVX support is available
Text
bsd-3-clause
Milad-Rakhsha/chrono,dariomangoni/chrono,andrewseidl/chrono,tjolsen/chrono,amelmquist/chrono,amelmquist/chrono,Milad-Rakhsha/chrono,rserban/chrono,jcmadsen/chrono,projectchrono/chrono,tjolsen/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,jcmadsen/chrono,armanpazouki/chrono,jcmadsen/chrono,rserban/chrono,amelmquist/ch...
text
## Code Before: SET(TESTS test_CH_function_recorder test_AVX ) MESSAGE(STATUS "Additional test programs for Chrono core...") FOREACH(PROGRAM ${TESTS}) MESSAGE(STATUS "...add ${PROGRAM}") ADD_EXECUTABLE(${PROGRAM} "${PROGRAM}.cpp") SOURCE_GROUP("" FILES "${PROGRAM}.cpp") SET_TARGET_PROPERTIES(...
9f2a71a4f815bb206d3a3e3cea243ed49bf7d200
knexfile.js
knexfile.js
const databaseName = 'transcriptus' const pathToDatabase = `${__dirname}/database` module.exports = { development: { client: 'pg', connection: "postgres://kudakwashe:admin@localhost:5432/transcriptus", migrations: { directory: `${pathToDatabase}/migrations` }, seeds: { directory: `${pathToDatabase}/...
const databaseName = 'transcriptus' const pathToDatabase = `${__dirname}/database` module.exports = { development: { client: 'pg', connection: "postgres://kudakwashe:admin@localhost:5432/transcriptus", migrations: { directory: `${pathToDatabase}/migrations` }, seeds: { directory: `${pathToDatabase}/...
Use the TEST_DATABASE_URL for the test database connections
Use the TEST_DATABASE_URL for the test database connections
JavaScript
mit
byteBridge/transcriptus-api
javascript
## Code Before: const databaseName = 'transcriptus' const pathToDatabase = `${__dirname}/database` module.exports = { development: { client: 'pg', connection: "postgres://kudakwashe:admin@localhost:5432/transcriptus", migrations: { directory: `${pathToDatabase}/migrations` }, seeds: { directory: `${...
27872988ea81e0b4b0d23e0c464d50ff75854685
db/data_migration/20161206120331_remove_stats_dataset_relationship.rb
db/data_migration/20161206120331_remove_stats_dataset_relationship.rb
pub = Publication.find(392444) pub.statistical_data_sets.select! { |ds| ds.id != 14779 } pub.save!
pub = Publication.find(392444) data_set = StatisticalDataSet.find(14779) pub.statistical_data_sets.delete(data_set)
Remove relationship to stats data set
Remove relationship to stats data set This DfT publication has an association to a statistical data set from DCLG on a completely irrelevant subject. We're assuming this is not intended. The data set is also superseded so remove the relationship.
Ruby
mit
alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall
ruby
## Code Before: pub = Publication.find(392444) pub.statistical_data_sets.select! { |ds| ds.id != 14779 } pub.save! ## Instruction: Remove relationship to stats data set This DfT publication has an association to a statistical data set from DCLG on a completely irrelevant subject. We're assuming this is not intended. ...
0592ad0f68d6f2adce434ff7350373934677864a
cookbooks/PF_CIS_CentOS7_v1.1.0_level_2/recipes/default.rb
cookbooks/PF_CIS_CentOS7_v1.1.0_level_2/recipes/default.rb
case ENV['PF_LEVEL'] when '0' when '1' include_recipe "PF_CIS_CentOS7_v1.1.0::2_os_services" include_recipe "PF_CIS_CentOS7_v1.1.0::3_special_purpose_services.rb" include_recipe "PF_CIS_CentOS7_v1.1.0::4_network_config_and_firewall.rb" when '1c' include_recipe "PF_CIS_CentOS7_v1.1.0::2_os_services" include_re...
include_recipe "PF_CIS_CentOS7_v1.1.0::2_os_services" include_recipe "PF_CIS_CentOS7_v1.1.0::3_special_purpose_services.rb" include_recipe "PF_CIS_CentOS7_v1.1.0::4_network_config_and_firewall.rb" return end
Tidy up the cookbook to use the new one level format.
Tidy up the cookbook to use the new one level format.
Ruby
mit
ConorLee/policy-factory
ruby
## Code Before: case ENV['PF_LEVEL'] when '0' when '1' include_recipe "PF_CIS_CentOS7_v1.1.0::2_os_services" include_recipe "PF_CIS_CentOS7_v1.1.0::3_special_purpose_services.rb" include_recipe "PF_CIS_CentOS7_v1.1.0::4_network_config_and_firewall.rb" when '1c' include_recipe "PF_CIS_CentOS7_v1.1.0::2_os_servic...
049dd10b45d01f1e9b794342dad4335e84019745
app/services/facebook.js
app/services/facebook.js
'use strict'; const request = require('request-promise'); const config = require('../../config'); const scraper = require('./scraper'); module.exports = { getFirstMessagingEntry: (body) => { const val = body.object == 'page' && body.entry && Array.isArray(body.entry) && body.entry.length > 0 ...
'use strict'; const request = require('request-promise'); const config = require('../../config'); const scraper = require('./scraper'); module.exports = { getFirstMessagingEntry: (body) => { const val = body.object == 'page' && body.entry && Array.isArray(body.entry) && body.entry.length > 0 ...
Add button to the template
Add button to the template
JavaScript
mit
Keeprcom/keepr-bot
javascript
## Code Before: 'use strict'; const request = require('request-promise'); const config = require('../../config'); const scraper = require('./scraper'); module.exports = { getFirstMessagingEntry: (body) => { const val = body.object == 'page' && body.entry && Array.isArray(body.entry) && body.e...
ae5e1b42c06cf04a2fcf6ec78c4b028aa69791eb
ReactiveCocoaFramework/ReactiveCocoa/UIActionSheet+RACSignalSupport.h
ReactiveCocoaFramework/ReactiveCocoa/UIActionSheet+RACSignalSupport.h
// // UIActionSheet+RACSignalSupport.h // ReactiveCocoa // // Created by Dave Lee on 2013-06-22. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <UIKit/UIKit.h> @class RACDelegateProxy; @class RACSignal; @interface UIActionSheet (RACSignalSupport) // A delegate proxy which will be set as the ...
// // UIActionSheet+RACSignalSupport.h // ReactiveCocoa // // Created by Dave Lee on 2013-06-22. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <UIKit/UIKit.h> @class RACDelegateProxy; @class RACSignal; @interface UIActionSheet (RACSignalSupport) // A delegate proxy which will be set as the ...
Copy documentation wording from UITextView+RACSignalSupport.h
Copy documentation wording from UITextView+RACSignalSupport.h
C
mit
buildo/ReactiveCocoa,ioshger0125/ReactiveCocoa,yaoxiaoyong/ReactiveCocoa,fanghao085/ReactiveCocoa,cstars135/ReactiveCocoa,itschaitanya/ReactiveCocoa,longv2go/ReactiveCocoa,ReactiveCocoa/ReactiveSwift,paulyoung/ReactiveCocoa,itschaitanya/ReactiveCocoa,Ray0218/ReactiveCocoa,Carthage/ReactiveCocoa,qq644531343/ReactiveCoco...
c
## Code Before: // // UIActionSheet+RACSignalSupport.h // ReactiveCocoa // // Created by Dave Lee on 2013-06-22. // Copyright (c) 2013 GitHub, Inc. All rights reserved. // #import <UIKit/UIKit.h> @class RACDelegateProxy; @class RACSignal; @interface UIActionSheet (RACSignalSupport) // A delegate proxy which wil...
ad837566d07bcc67356b3d16f586ae938cc54870
data/galaxy_tools_playbook/taxonomic_assignation_tool_list.yaml
data/galaxy_tools_playbook/taxonomic_assignation_tool_list.yaml
api_key: <Admin user API key from galaxy_instance> galaxy_instance: <Galaxy instance IP> tools: #- name: 'metaphlan' # owner: 'dannon' # tool_panel_section_id: 'non_rRNA_taxonomic_assignation' # tool_shed_url: 'https://toolshed.g2.bx.psu.edu' # install_tool_dependencies: True # install_repository_dependencies: Tru...
api_key: <Admin user API key from galaxy_instance> galaxy_instance: <Galaxy instance IP> tools: - name: 'metaphlan2' owner: 'bebatut' tool_panel_section_id: 'non_rRNA_taxonomic_assignation' tool_shed_url: 'https://testtoolshed.g2.bx.psu.edu' install_tool_dependencies: True install_repository_dependencies: Tru...
Add qiime in taxonomic tools
Add qiime in taxonomic tools
YAML
apache-2.0
ASaiM/framework,ASaiM/framework
yaml
## Code Before: api_key: <Admin user API key from galaxy_instance> galaxy_instance: <Galaxy instance IP> tools: #- name: 'metaphlan' # owner: 'dannon' # tool_panel_section_id: 'non_rRNA_taxonomic_assignation' # tool_shed_url: 'https://toolshed.g2.bx.psu.edu' # install_tool_dependencies: True # install_repository_d...
0b069bab7d94c187915398f02cde1479413d8929
lib/awspec/type/base.rb
lib/awspec/type/base.rb
require 'aws-sdk' require 'awspec/helper/finder' module Awspec::Type class Base include Awspec::Helper::Finder attr_reader :id, :resource def initialize(id = nil) super @id = nil end def exists? @id end def method_missing(name) describe = name.to_sym if @r...
require 'aws-sdk' require 'awspec/helper/finder' module Awspec::Type class Base include Awspec::Helper::Finder attr_reader :id, :resource def initialize(id = nil) @display_name = id super @id = nil end def to_s type = self.class.name.demodulize.underscore "#{type} ...
Add method to_s for spec results
Add method to_s for spec results
Ruby
mit
k1LoW/awspec,AgarFu/awspec,AgarFu/awspec,k1LoW/awspec,hoshinotsuyoshi/awspec
ruby
## Code Before: require 'aws-sdk' require 'awspec/helper/finder' module Awspec::Type class Base include Awspec::Helper::Finder attr_reader :id, :resource def initialize(id = nil) super @id = nil end def exists? @id end def method_missing(name) describe = name.to...
7ed17afc39c5f0de163ef0b5b0424dd0ec75bf28
.drone/build.sh
.drone/build.sh
set -e ls -R /var/cache/drone/src cd /var/cache/drone/src/github.com/icecreammatt/lookup go build go test status=$? if [ $status -ne 0 ] then exit $status fi ./wrapdocker & sleep 5 docker build -t icecreammatt/lookup . docker login -e $DOCKERHUB_EMAIL -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD docker push i...
set -e ls -R /var/cache/drone/src cd /var/cache/drone/src/github.com/icecreammatt/lookup go build go test echo $DOCKERHUB_USERNAME status=$? if [ $status -ne 0 ] then exit $status fi ./wrapdocker & sleep 5 docker build -t icecreammatt/lookup . docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD docker ...
Print dockerhub email for testing
Print dockerhub email for testing
Shell
mit
icecreammatt/lookup,icecreammatt/lookup
shell
## Code Before: set -e ls -R /var/cache/drone/src cd /var/cache/drone/src/github.com/icecreammatt/lookup go build go test status=$? if [ $status -ne 0 ] then exit $status fi ./wrapdocker & sleep 5 docker build -t icecreammatt/lookup . docker login -e $DOCKERHUB_EMAIL -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWO...
6771b83ec65f015fa58191694ad068063f61672b
amazon.py
amazon.py
from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml.etree.ElementTre...
from osv import osv, fields class amazon_instance(osv.osv): _inherit = 'amazon.instance' def create_orders(self, cr, uid, instance_obj, shop_id, results): return super(amazon_instance, self).create_orders(cr, uid, instance_obj, shop_id, results, defaults={ "payment_channel": "amazon", ...
Simplify defaulting the sale and payment channels for Amazon sales.
Simplify defaulting the sale and payment channels for Amazon sales.
Python
agpl-3.0
ryepdx/sale_channels
python
## Code Before: from osv import osv, fields import time import datetime import inspect import xmlrpclib import netsvc import os import logging import urllib2 import base64 from tools.translate import _ import httplib, ConfigParser, urlparse from xml.dom.minidom import parse, parseString from lxml import etree from xml....
397ba5f183077a609a92c5cd6e29fc591f17f1d1
core/db/migrate/20151026093607_change_return_item_pre_tax_amount_to_amount.rb
core/db/migrate/20151026093607_change_return_item_pre_tax_amount_to_amount.rb
class ChangeReturnItemPreTaxAmountToAmount < ActiveRecord::Migration def up execute(<<-SQL) UPDATE spree_return_items SET included_tax_total = 0 WHERE included_tax_total IS NULL; UPDATE spree_return_items SET pre_tax_amount = pre_tax_amount + included_tax_total; SQL rename_...
class ChangeReturnItemPreTaxAmountToAmount < ActiveRecord::Migration def up execute(<<-SQL) UPDATE spree_return_items SET included_tax_total = 0 WHERE included_tax_total IS NULL SQL execute(<<-SQL) UPDATE spree_return_items SET pre_tax_amount = pre_tax_amount + included_tax_t...
Split up SQL statements in migration
Split up SQL statements in migration This previously didn't work under mysql. In rails 4.2.6.rc1 this raises an exception, in previous versions the second statement was ignored.
Ruby
bsd-3-clause
jordan-brough/solidus,Arpsara/solidus,Arpsara/solidus,Arpsara/solidus,pervino/solidus,jordan-brough/solidus,pervino/solidus,jordan-brough/solidus,jordan-brough/solidus,pervino/solidus,pervino/solidus,Arpsara/solidus
ruby
## Code Before: class ChangeReturnItemPreTaxAmountToAmount < ActiveRecord::Migration def up execute(<<-SQL) UPDATE spree_return_items SET included_tax_total = 0 WHERE included_tax_total IS NULL; UPDATE spree_return_items SET pre_tax_amount = pre_tax_amount + included_tax_total; ...
51801dee5c61943a4a4983180a942fb5f8fcbcbf
composer.json
composer.json
{ "name": "friendsofcake/cakepdf", "type": "cakephp-plugin", "description": "CakePHP plugin for creating and/or rendering Pdf, several Pdf engines supported.", "homepage": "https://github.com/FriendsOfCake/CakePdf", "license": "MIT", "require": { "php": ">=5.3.0", "composer/installers": "*" }, "replace":...
{ "name": "friendsofcake/cakepdf", "type": "cakephp-plugin", "description": "CakePHP plugin for creating and/or rendering Pdf, several Pdf engines supported.", "homepage": "https://github.com/FriendsOfCake/CakePdf", "license": "MIT", "require": { "php": ">=5.3.0", "composer/installers": "*" }, "replace":...
Set explicit installer location for BC
Set explicit installer location for BC CakePdf was always installed to CakePdf, the explicit installer-name setting was lost in the switch to FriendsOfCake. This restores it.
JSON
mit
birdy247/CakePdf,p-try/CakePdf,darkglamb/CakePdf,FriendsOfCake/CakePdf,Laykou/CakePdf,burzum/CakePdf,xyng/CakePdf
json
## Code Before: { "name": "friendsofcake/cakepdf", "type": "cakephp-plugin", "description": "CakePHP plugin for creating and/or rendering Pdf, several Pdf engines supported.", "homepage": "https://github.com/FriendsOfCake/CakePdf", "license": "MIT", "require": { "php": ">=5.3.0", "composer/installers": "*"...
900deb5e9b212e3982a6d3e77d92ed20b5d98c77
_sass/_docs.sass
_sass/_docs.sass
// Styling for the /docs/ pages $inner-width: 87% .docs @include grid-wrap margin-bottom: $baseline * 2 .docs-nav @include grid-x-col(5) .docs-nav-inner width: $inner-width padding: 20px background: darken($color-nnt-purple, 20%) ul margin-bottom: 0 li padding-botto...
// Styling for the /docs/ pages $inner-width: 87% .docs @include grid-wrap margin-bottom: $baseline * 2 .docs-nav @include grid-x-col(5) .docs-nav-inner width: $inner-width padding: 20px background: darken($color-nnt-purple, 20%) ul margin-bottom: 0 li padding-botto...
Tweak to nav tab inactive colour
Tweak to nav tab inactive colour
Sass
mit
newtheatre/history-project,newtheatre/history-project,newtheatre/history-project,newtheatre/history-project,johnathan99j/history-project,newtheatre/history-project,johnathan99j/history-project,johnathan99j/history-project,johnathan99j/history-project,johnathan99j/history-project
sass
## Code Before: // Styling for the /docs/ pages $inner-width: 87% .docs @include grid-wrap margin-bottom: $baseline * 2 .docs-nav @include grid-x-col(5) .docs-nav-inner width: $inner-width padding: 20px background: darken($color-nnt-purple, 20%) ul margin-bottom: 0 li ...
45b135eaa3afd3fb9a65911b57b94a845e40490f
client/src/main/java/replicant/messages/EtagsData.java
client/src/main/java/replicant/messages/EtagsData.java
package replicant.messages; import elemental2.core.JsObject; import javax.annotation.Nonnull; import jsinterop.annotations.JsOverlay; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsType; import jsinterop.base.Any; import jsinterop.base.Js; /** * A simple abstraction for key-value etag pairs. ...
package replicant.messages; import elemental2.core.JsArray; import elemental2.core.JsObject; import javax.annotation.Nonnull; import jsinterop.annotations.JsOverlay; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsType; import jsinterop.base.Any; import jsinterop.base.Js; /** * A simple abstra...
Upgrade to the latest Elemental2 API
Upgrade to the latest Elemental2 API
Java
apache-2.0
realityforge/replicant,realityforge/replicant
java
## Code Before: package replicant.messages; import elemental2.core.JsObject; import javax.annotation.Nonnull; import jsinterop.annotations.JsOverlay; import jsinterop.annotations.JsPackage; import jsinterop.annotations.JsType; import jsinterop.base.Any; import jsinterop.base.Js; /** * A simple abstraction for key-va...
c32186d53c5814bc1bc037898330b946558c576b
metadata/com.github.pires.obd.reader.txt
metadata/com.github.pires.obd.reader.txt
Categories:Science & Education License:Apache2 Web Site:https://github.com/pires/android-obd-reader/blob/HEAD/README.md Source Code:https://github.com/pires/android-obd-reader Issue Tracker:https://github.com/pires/android-obd-reader/issues Auto Name:Android OBD-II Reader Summary:Car diagnostics Description: OBD II re...
Categories:Science & Education License:Apache2 Web Site:https://github.com/pires/android-obd-reader/blob/HEAD/README.md Source Code:https://github.com/pires/android-obd-reader Issue Tracker:https://github.com/pires/android-obd-reader/issues Auto Name:Android OBD-II Reader Summary:Car diagnostics Description: OBD II re...
Update Android OBD-II Reader to 2.0-RC2 (13)
Update Android OBD-II Reader to 2.0-RC2 (13)
Text
agpl-3.0
f-droid/fdroiddata,f-droid/fdroid-data,f-droid/fdroiddata
text
## Code Before: Categories:Science & Education License:Apache2 Web Site:https://github.com/pires/android-obd-reader/blob/HEAD/README.md Source Code:https://github.com/pires/android-obd-reader Issue Tracker:https://github.com/pires/android-obd-reader/issues Auto Name:Android OBD-II Reader Summary:Car diagnostics Descri...
f9f558e61020740f95a0fd0ec43b0597904866bc
printmodal.html
printmodal.html
<!-- print modal ('popup') screen template. Data binding context: PrintJob --> <div class="modal fade" id="printModal" tabindex="-1" role="dialog" aria-labelledby="printModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="but...
<!-- print modal ('popup') screen template. Data binding context: PrintJob --> <div class="modal fade" id="printModal" tabindex="-1" role="dialog" aria-labelledby="printModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="but...
Make print widget data binding context explicit
Make print widget data binding context explicit
HTML
mit
TehMillhouse/odie-client,TehMillhouse/odie-client,fsmi/odie-client,fsmi/odie-client,TehMillhouse/odie-client,fsmi/odie-client
html
## Code Before: <!-- print modal ('popup') screen template. Data binding context: PrintJob --> <div class="modal fade" id="printModal" tabindex="-1" role="dialog" aria-labelledby="printModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <...
8ca76d1ce7c0aab8faafd486c642effcd9502518
src/chess/MoveData.java
src/chess/MoveData.java
package chess; public class MoveData { private int toRow; private int toCol; private boolean isACapture; public MoveData(int row, int col, boolean capture) { toRow = row; toCol = col; isACapture = capture; } public int getRow() { return toRow; } public int getCol() { return to...
package chess; import chess.pieces.Piece; public class MoveData { private Piece startPiece; private int toRow; private int toCol; private int fromRow; private int fromCol; private boolean isACapture; public MoveData(Piece startPiece, int fromRow, int fromCol, int toRow, int toCol, boolean capture...
Add from squares and calling piece data.
Add from squares and calling piece data.
Java
unlicense
b-lu8961/ChessPlus
java
## Code Before: package chess; public class MoveData { private int toRow; private int toCol; private boolean isACapture; public MoveData(int row, int col, boolean capture) { toRow = row; toCol = col; isACapture = capture; } public int getRow() { return toRow; } public int getCol() { return toCo...
8c572f55b17b86cbfa56f18f0491e05092f755b1
application/libraries/Customautoloader.php
application/libraries/Customautoloader.php
<?php /* * Copyright 2014 Florian "Bluewind" Pritz <bluewind@server-speed.net> * * Licensed under AGPLv3 * (see COPYING for full license text) * */ // Original source: http://stackoverflow.com/a/9526005/953022 class CustomAutoloader{ public function __construct() { spl_autoload_register(array($this, 'loader'...
<?php /* * Copyright 2014 Florian "Bluewind" Pritz <bluewind@server-speed.net> * * Licensed under AGPLv3 * (see COPYING for full license text) * */ // Original source: http://stackoverflow.com/a/9526005/953022 class CustomAutoloader{ public function __construct() { spl_autoload_register(array($this, 'loader'...
Support PSR-4 style namespace/directory mapping
Autoloader: Support PSR-4 style namespace/directory mapping Signed-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>
PHP
mit
Bluewind/filebin,Bluewind/filebin,Bluewind/filebin,Bluewind/filebin,Bluewind/filebin
php
## Code Before: <?php /* * Copyright 2014 Florian "Bluewind" Pritz <bluewind@server-speed.net> * * Licensed under AGPLv3 * (see COPYING for full license text) * */ // Original source: http://stackoverflow.com/a/9526005/953022 class CustomAutoloader{ public function __construct() { spl_autoload_register(array...
fe7cf1e131683640088c72d9e42ee848377b022c
lib/future-resource.rb
lib/future-resource.rb
require "thread" require "monitor" class FutureResource def initialize @resource_lock = Monitor.new @resource_value_blocker = @resource_lock.new_cond end def set_yet? !!@resource_lock.synchronize { defined? @resource } end def resource @resource_lock.synchronize do @resource_...
require "thread" require "monitor" class FutureResource def initialize @resource_lock = Monitor.new @resource_value_blocker = @resource_lock.new_cond end def set_yet? !!@resource_lock.synchronize { defined? @resource } end def resource(timeout = nil) @resource_lock.synchronize do ...
Allow setting a timeout on waiting for a resource
Allow setting a timeout on waiting for a resource
Ruby
mit
adhearsion/future-resource
ruby
## Code Before: require "thread" require "monitor" class FutureResource def initialize @resource_lock = Monitor.new @resource_value_blocker = @resource_lock.new_cond end def set_yet? !!@resource_lock.synchronize { defined? @resource } end def resource @resource_lock.synchronize do ...
3ec7f2cfe57989d7e69bbf4db4adcd984b160f02
test/test_projects/hello_world/test/basic_test.dart
test/test_projects/hello_world/test/basic_test.dart
import "package:test/test.dart"; void main() { group("String", () { test(".split() splits the string on the delimiter", () { var string = "foo,bar,baz"; expect(string.split(","), equals(["foo", "bar", "baz"])); }); test(".split() splits the string on the delimiter 2", () { expect("foo,...
import "package:test/test.dart"; void main() { group("String", () { test(".split() splits the string on the delimiter", () { var string = "foo,bar,baz"; // BREAKPOINT1 expect(string.split(","), equals(["foo", "bar", "baz"])); }); test(".split() splits the string on the delimiter 2", () { ...
Add breakpoint marker for Dart tests
Add breakpoint marker for Dart tests
Dart
mit
Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code,Dart-Code/Dart-Code
dart
## Code Before: import "package:test/test.dart"; void main() { group("String", () { test(".split() splits the string on the delimiter", () { var string = "foo,bar,baz"; expect(string.split(","), equals(["foo", "bar", "baz"])); }); test(".split() splits the string on the delimiter 2", () { ...
7fd1d437ca8c4f15c6d578fb9d58e6abd3dba736
README.rst
README.rst
====== Metron ====== Current analytics services supported: * Google Analytics * Mixpanel * gaug.es * Google AdWords Conversion Tracking
====== Metron ====== Current analytics services supported: * Google Analytics * Mixpanel * gaug.es * Google AdWords Conversion Tracking Documentation ------------- Documentation can be found online at http://metron.readthedocs.org/
Update readme with documentation link
Update readme with documentation link
reStructuredText
mit
pinax/metron,pinax/pinax-webanalytics,pinax/pinax-webanalytics,pinax/metron
restructuredtext
## Code Before: ====== Metron ====== Current analytics services supported: * Google Analytics * Mixpanel * gaug.es * Google AdWords Conversion Tracking ## Instruction: Update readme with documentation link ## Code After: ====== Metron ====== Current analytics services supported: * Google Analytics * Mixpanel * ga...
5ac2a47a5cbb9b22028917aedd9f6e3b80871f24
etherpad-saver.sh
etherpad-saver.sh
URL=https://pad.riseup.net/p PAD=B7VT41OAfOe3 FORMAT=txt WGET_OPTS="-N --no-check-certificate -nd" LOCALDIR=(~/etherpad-saver/) wget $WGET_OPTS -P $LOCALDIR $URL/$PAD/export/$FORMAT ( cd $LOCALDIR git update-index -q --refresh if ! git diff-index --quiet HEAD --; then git add . git commit -a -m"Change detecte...
URL=https://pad.riseup.net/p PAD=B7VT41OAfOe3 FORMAT=txt WGET_OPTS="-N --no-check-certificate -nd" LOCALDIR=(~/etherpad-saver/) if [ ! -d $LOCALDIR ] ; then mkdir -p $LOCALDIR fi wget $WGET_OPTS -P $LOCALDIR $URL/$PAD/export/$FORMAT ( cd $LOCALDIR git update-index -q --refresh if ! git diff-index --quiet HEAD -...
Create if it doesn't exist already
Create if it doesn't exist already
Shell
unlicense
graphiclunarkid/etherpad-saver
shell
## Code Before: URL=https://pad.riseup.net/p PAD=B7VT41OAfOe3 FORMAT=txt WGET_OPTS="-N --no-check-certificate -nd" LOCALDIR=(~/etherpad-saver/) wget $WGET_OPTS -P $LOCALDIR $URL/$PAD/export/$FORMAT ( cd $LOCALDIR git update-index -q --refresh if ! git diff-index --quiet HEAD --; then git add . git commit -a -...
d3b09c092fb98a424e6a87269bcdb18d1bcbf405
app/views/addresses/_form.html.erb
app/views/addresses/_form.html.erb
<div> <%= form.label :full_name %>:<br> <%= form.text_field :full_name %> </div> <div> <%= form.label :email_address %>:<br> <%= form.email_field :email_address %> <small>We hate spam too!</small> </div> <div> <%= form.label :address_line_1 %>:<br> <%= form.text_field :address_line_1 %> </div> <div> <%= f...
<div> <%= form.label :full_name %>:<br> <%= form.text_field :full_name, required: true %> </div> <div> <%= form.label :email_address %>:<br> <%= form.email_field :email_address, required: true %> <small>We hate spam too!</small> </div> <div> <%= form.label :address_line_1 %>:<br> <%= form.text_field :addres...
Use HTML5 required attribute in address form
Use HTML5 required attribute in address form
HTML+ERB
mit
ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey,ianfleeton/zmey
html+erb
## Code Before: <div> <%= form.label :full_name %>:<br> <%= form.text_field :full_name %> </div> <div> <%= form.label :email_address %>:<br> <%= form.email_field :email_address %> <small>We hate spam too!</small> </div> <div> <%= form.label :address_line_1 %>:<br> <%= form.text_field :address_line_1 %> </di...
e39b75ceb9f40e43e82956aea0161bf8373a8253
src/index.ts
src/index.ts
import { SandboxParameter } from './interfaces'; import nativeAddon from './nativeAddon'; import { SandboxProcess } from './sandboxProcess'; import { existsSync } from 'fs'; if (!existsSync('/sys/fs/cgroup/memory/memory.memsw.usage_in_bytes')) { throw new Error("Your linux kernel doesn't support memory-swap accoun...
import { SandboxParameter } from './interfaces'; import nativeAddon from './nativeAddon'; import { SandboxProcess } from './sandboxProcess'; import { existsSync } from 'fs'; if (!existsSync('/sys/fs/cgroup/memory/memory.memsw.usage_in_bytes')) { throw new Error("Your linux kernel doesn't support memory-swap accoun...
Add return type for startSandbox.
Add return type for startSandbox.
TypeScript
mit
t123yh/simple-sandbox,t123yh/simple-sandbox
typescript
## Code Before: import { SandboxParameter } from './interfaces'; import nativeAddon from './nativeAddon'; import { SandboxProcess } from './sandboxProcess'; import { existsSync } from 'fs'; if (!existsSync('/sys/fs/cgroup/memory/memory.memsw.usage_in_bytes')) { throw new Error("Your linux kernel doesn't support me...
27e807c83a0fd2acdaaf5384e313ed9b80cfc718
.travis.yml
.travis.yml
language: "ruby" script: "bundle exec rake ci" rvm: - 2.5.0 - 2.6.0 - 2.7.0 - jruby-9.2.12.0
language: "ruby" script: "bundle exec rake ci" rvm: - 2.5.8 - 2.6.6 - 2.7.1
Use latest patch versions of Ruby
CI: Use latest patch versions of Ruby
YAML
mit
savonrb/httpi
yaml
## Code Before: language: "ruby" script: "bundle exec rake ci" rvm: - 2.5.0 - 2.6.0 - 2.7.0 - jruby-9.2.12.0 ## Instruction: CI: Use latest patch versions of Ruby ## Code After: language: "ruby" script: "bundle exec rake ci" rvm: - 2.5.8 - 2.6.6 - 2.7.1
df2301e1c0d4403743918ad0e4fe7afab95efb4e
ghost/admin/app/controllers/application.js
ghost/admin/app/controllers/application.js
/* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; import {inject as service} from '@ember/service'; export default class ApplicationController extends Controller { @service billing; @service customViews; @service config; @service dropdown; @servi...
/* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; import {computed} from '@ember/object'; import {inject as service} from '@ember/service'; export default Controller.extend({ billing: service(), customViews: service(), config: service(), dropdown: se...
Revert "Refactored ApplicationController to use native class"
Revert "Refactored ApplicationController to use native class" This reverts commit 9b6d4822e72425ceec192723f4d469060afe1ea5. - there is an issue with properties not being tracked correctly and the menu not being shown when returning from the editor - reverting to working version with computed properties for now
JavaScript
mit
TryGhost/Ghost,TryGhost/Ghost,TryGhost/Ghost
javascript
## Code Before: /* eslint-disable ghost/ember/alias-model-in-controller */ import Controller from '@ember/controller'; import {inject as service} from '@ember/service'; export default class ApplicationController extends Controller { @service billing; @service customViews; @service config; @service drop...
94701f09422ed9536463afc7dc2e48463af2301e
app/config/config.js
app/config/config.js
const dotenv = require('dotenv'); dotenv.config({silent: true}); const config = { "development": { "username": process.env.DB_DEV_USER, "password": process.env.DB_DEV_PASS, "database": process.env.DB_DEV_NAME, "host": process.env.DB_DEV_HOST, "secrete": process.env.AUTH_SECRETE, "dialect": "po...
const dotenv = require('dotenv'); dotenv.config({silent: true}); const config = { "development": { "username": process.env.DB_DEV_USER, "password": process.env.DB_DEV_PASS, "database": process.env.DB_DEV_NAME, "host": process.env.DB_DEV_HOST, "secrete": process.env.AUTH_SECRETE, "dialect": "po...
Enable logging for test environment
Enable logging for test environment
JavaScript
mit
cyrielo/document-manager
javascript
## Code Before: const dotenv = require('dotenv'); dotenv.config({silent: true}); const config = { "development": { "username": process.env.DB_DEV_USER, "password": process.env.DB_DEV_PASS, "database": process.env.DB_DEV_NAME, "host": process.env.DB_DEV_HOST, "secrete": process.env.AUTH_SECRETE, ...
a9b225d033d0462f47e4adecef2ef90fc0bf2318
docs/conf.py
docs/conf.py
import os import sys sys.path.insert(0, os.path.dirname(__file__)) from gravity import __version__ # noqa: E402 project = 'Gravity' copyright = '2022, The Galaxy Project' author = 'The Galaxy Project' release = '__version__' # -- General configuration --------------------------------------------------- # https://w...
import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) from gravity import __version__ # noqa: E402 project = 'Gravity' copyright = '2022, The Galaxy Project' author = 'The Galaxy Project' release = '__version__' # -- General configuration ----------------------------------------------...
Correct path to parent dir
Correct path to parent dir
Python
mit
galaxyproject/gravity
python
## Code Before: import os import sys sys.path.insert(0, os.path.dirname(__file__)) from gravity import __version__ # noqa: E402 project = 'Gravity' copyright = '2022, The Galaxy Project' author = 'The Galaxy Project' release = '__version__' # -- General configuration -----------------------------------------------...
2f20b84c4b037a78a56ddb590afa080dc1351e6c
_posts/2016-10-27-celery-笔记-.markdown
_posts/2016-10-27-celery-笔记-.markdown
--- layout: post title: "celery 笔记\_" tagline: 架构 category: null tags: [] published: true --- ## 架构 笔记## ###Nginx ### ![nginx](http://www.rowkey.me/images/blog_images/nginx/ngx_arch.jpg)
--- layout: post title: "celery 笔记\_" tagline: 架构 category: null tags: [] published: true --- ## 架构 笔记## ###Nginx ### ![nginx](http://www.rowkey.me/images/blog_images/nginx/ngx_arch.jpg) * 一个 master 进程负责分配工作 worker进程则是处理基本的网络事件。多个worker进程之间是对等的,他们同等竞争来自客户端的请求,各进程互相之间是独立的。一个请求,只可能在一个worker进程中处理,一个worker进程,不可能处理其它进程的...
Update by gitblog.io at 11/22/2016, 11:04:15 AM
Update by gitblog.io at 11/22/2016, 11:04:15 AM
Markdown
apache-2.0
rtx3/rtx3.github.io,rtx3/rtx3.github.io
markdown
## Code Before: --- layout: post title: "celery 笔记\_" tagline: 架构 category: null tags: [] published: true --- ## 架构 笔记## ###Nginx ### ![nginx](http://www.rowkey.me/images/blog_images/nginx/ngx_arch.jpg) ## Instruction: Update by gitblog.io at 11/22/2016, 11:04:15 AM ## Code After: --- layout: post title: "celery 笔记\_...
00b0502150bcbf6b50a6fd0695f0f8df03ebd790
filterChecksumAlgos.go
filterChecksumAlgos.go
package main import "crypto" import "strings" // Checksum algos import ( _ "crypto/md5" _ "crypto/sha1" _ "crypto/sha256" _ "crypto/sha512" ) // Man, why don't people allow their table to be exported... var checksumLookupTable = map[string]crypto.Hash{ "md5": crypto.MD5, "sha1": cr...
package main import "crypto" import "strings" // Checksum algos import ( _ "crypto/md5" _ "crypto/sha1" _ "crypto/sha256" _ "crypto/sha512" ) // Man, why don't people allow their table to be exported... var checksumLookupTable = map[string]crypto.Hash{ "md5": crypto.MD5, "sha1": cr...
Format mismatch, can not use historic node name
Format mismatch, can not use historic node name
Go
mit
kormoc/bitrot-scanner
go
## Code Before: package main import "crypto" import "strings" // Checksum algos import ( _ "crypto/md5" _ "crypto/sha1" _ "crypto/sha256" _ "crypto/sha512" ) // Man, why don't people allow their table to be exported... var checksumLookupTable = map[string]crypto.Hash{ "md5": crypto.MD5, ...
cc18a6d0fdb83a05a7e47c52fc0405ba63082616
src/main/web/florence/js/functions/_handleApiError.js
src/main/web/florence/js/functions/_handleApiError.js
function handleApiError(response) { if(!response || response.status === 200) return; if(response.status === 403 || response.status === 401) { logout(); } else { console.log('An error has occurred, please contact an administrator. ' + response.responseText); alert(response.responseText); } }
function handleApiError(response) { if(!response || response.status === 200) return; if(response.status === 403 || response.status === 401) { logout(); } else { console.log('An error has occurred, please contact an administrator. ' + response.responseText); alert('An error has occurred, please...
Add friendly error in alert box when an error occurs.
Add friendly error in alert box when an error occurs.
JavaScript
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
javascript
## Code Before: function handleApiError(response) { if(!response || response.status === 200) return; if(response.status === 403 || response.status === 401) { logout(); } else { console.log('An error has occurred, please contact an administrator. ' + response.responseText); alert(response.respo...
468354d562944ca8552782b2eb33602509c38bc9
config/sphinx.yml
config/sphinx.yml
development: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9312 test: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9313 production: enable_star: true min_prefix_len: 3 max_matches: 100000
development: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9312 test: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9313 cucumber: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9313 production: enable_star: true min_prefix_len: 3 max_matches:...
Add stuff for cucumber environment.
Add stuff for cucumber environment.
YAML
apache-2.0
lincompch/stizun,sabcio/stizun,lincompch/stizun,sabcio/stizun,lincompch/stizun,lincompch/stizun,sabcio/stizun,lincompch/stizun,sabcio/stizun
yaml
## Code Before: development: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9312 test: enable_star: true min_prefix_len: 3 max_matches: 100000 port: 9313 production: enable_star: true min_prefix_len: 3 max_matches: 100000 ## Instruction: Add stuff for cucumber environment. ## Code...
71704f6e3171b0871814cdd946cde775f6bd7a1d
README.md
README.md
Fluid ViewHelper Schema Generator ================================= [![Build Status](https://img.shields.io/travis/NamelessCoder/TYPO3.Fluid.SchemaGenerator.svg?branch=master&style=flat-square)](https://travis-ci.org/NamelessCoder/TYPO3.Fluid.SchemaGenerator) [![Coverage](https://img.shields.io/coveralls/NamelessCoder...
Fluid ViewHelper Schema Generator ================================= [![Build Status](https://travis-ci.org/TYPO3/Fluid.SchemaGenerator.svg?branch=master)](https://travis-ci.org/TYPO3/Fluid.SchemaGenerator) [![Coverage](https://img.shields.io/coveralls/NamelessCoder/TYPO3.Fluid.SchemaGenerator.svg?branch=master&style=f...
Update travis-ci build status image
Update travis-ci build status image
Markdown
mit
NamelessCoder/TYPO3.Fluid.SchemaGenerator
markdown
## Code Before: Fluid ViewHelper Schema Generator ================================= [![Build Status](https://img.shields.io/travis/NamelessCoder/TYPO3.Fluid.SchemaGenerator.svg?branch=master&style=flat-square)](https://travis-ci.org/NamelessCoder/TYPO3.Fluid.SchemaGenerator) [![Coverage](https://img.shields.io/coveral...
18f910868404d1f1cf7b41767341cab7d1d311cd
.travis.yml
.travis.yml
language: "perl" perl: - "5.18" - "5.16" - "5.14" before_install: - cpanm Test::Pod # optional dependency install: - cpanm -v --installdeps --notest --mirror http://cpan.mirrors.travis-ci.org . script: - perl Makefile.PL - make test # branches: # only: # - master notifications: recipie...
language: "perl" perl: - "5.18" - "5.16" - "5.14" before_install: - cpanm Test::Pod # optional dependency install: # - cpanm -v --installdeps --notest --mirror http://cpan.mirrors.travis-ci.org . - cpanm -v --installdeps --notest script: - perl Makefile.PL - make test # branches: # only: #...
Disable Travis CI CPAN mirror, which seems to be borked
Disable Travis CI CPAN mirror, which seems to be borked
YAML
artistic-2.0
letolabs/app-parrot-create
yaml
## Code Before: language: "perl" perl: - "5.18" - "5.16" - "5.14" before_install: - cpanm Test::Pod # optional dependency install: - cpanm -v --installdeps --notest --mirror http://cpan.mirrors.travis-ci.org . script: - perl Makefile.PL - make test # branches: # only: # - master notifica...
76fb3d9777caf67f6fc5a1a94f6b9ab4f8cd3a8f
src/PhpGenerator/Constant/ConstantType.php
src/PhpGenerator/Constant/ConstantType.php
<?php namespace ModuleGenerator\PhpGenerator\Constant; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Validator\Constraints\NotBlank; final ...
<?php namespace ModuleGenerator\PhpGenerator\Constant; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Validator\Constraints\NotBlank; final ...
Configure mission form type option
Configure mission form type option
PHP
mit
carakas/fork-cms-module-generator,carakas/fork-cms-module-generator,carakas/fork-cms-module-generator
php
## Code Before: <?php namespace ModuleGenerator\PhpGenerator\Constant; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\Validator\Constraints\N...
1cf3d33d29742d1299893acbf7c30eeea566c429
extensions/smallrye-graphql-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml
extensions/smallrye-graphql-client/runtime/src/main/resources/META-INF/quarkus-extension.yaml
--- name: "SmallRye GraphQL Client" metadata: short-name: "graphql-client" keywords: - "smallrye-graphql" - "graphql" - "graphql-client" - "microprofile-graphql" guide: "https://quarkus.io/guides/smallrye-graphql-client" status: "preview"
--- name: "SmallRye GraphQL Client" metadata: short-name: "graphql-client" keywords: - "smallrye-graphql" - "graphql" - "graphql-client" - "microprofile-graphql" categories: - "web" guide: "https://quarkus.io/guides/smallrye-graphql-client" status: "preview"
Add a category to SmallRye GraphQL Client
Add a category to SmallRye GraphQL Client Without that, it doesn't appear on code.quarkus.io.
YAML
apache-2.0
quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus,quarkusio/quarkus
yaml
## Code Before: --- name: "SmallRye GraphQL Client" metadata: short-name: "graphql-client" keywords: - "smallrye-graphql" - "graphql" - "graphql-client" - "microprofile-graphql" guide: "https://quarkus.io/guides/smallrye-graphql-client" status: "preview" ## Instruction: Add a category to SmallRye Graph...
b97fb7dca361812dd056f1b949b8dd04e1d43e41
db/seeds.rb
db/seeds.rb
AdminSet.find_or_create_default_admin_set_id if Rails.env.development? users = ['archivist@example.com', 'admin@example.com', 'approved@example.com'] users.each do |email| User.where(email: email).first_or_create do |user| user.password = 'testing123' user.approved = true end end end
AdminSet.find_or_create_default_admin_set_id if Rails.env.development? users = ['archivist@example.com', 'admin@example.com', 'approved@example.com'] users.each do |email| User.where(email: email).first_or_create do |user| user.password = 'testing123' user.approved = true end end class Wo...
Introduce a seed for a test `Vdc::Resource`
Introduce a seed for a test `Vdc::Resource` Creates a test `Vdc::Resource` when `rake db:seeds` is run.
Ruby
apache-2.0
dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql,dibbs-vdc/ccql
ruby
## Code Before: AdminSet.find_or_create_default_admin_set_id if Rails.env.development? users = ['archivist@example.com', 'admin@example.com', 'approved@example.com'] users.each do |email| User.where(email: email).first_or_create do |user| user.password = 'testing123' user.approved = true end ...
1c33ad3e59f1d39bd2d4749e70dca9626c0d6ea9
hackerrank/ClimbingTheLaderboard.hs
hackerrank/ClimbingTheLaderboard.hs
-- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (read :: String -> Int)...
-- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (read :: String -> Int)...
Improve solution to O(n) complexity.
Improve solution to O(n) complexity.
Haskell
mit
julianespinel/training,julianespinel/trainning,julianespinel/trainning,julianespinel/training,julianespinel/training,julianespinel/training
haskell
## Code Before: -- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (read :...
931dde64ed0cfe281ac175796b3830a24fcc0156
app-backend/database/src/main/scala/com/azavea/rf/database/Database.scala
app-backend/database/src/main/scala/com/azavea/rf/database/Database.scala
package com.azavea.rf.database import com.zaxxer.hikari.{HikariConfig, HikariDataSource} /** * PostGIS Database for Raster Foundry data * * @param jdbcUrl connection url for JDBC * @param dbUser user to authenticate in the database as * @param dbPassword password to use to authenticate user */ class Data...
package com.azavea.rf.database import com.zaxxer.hikari.{HikariConfig, HikariDataSource} /** * PostGIS Database for Raster Foundry data * * @param jdbcUrl connection url for JDBC * @param dbUser user to authenticate in the database as * @param dbPassword password to use to authenticate user */ class Data...
Fix tiler deadlocks when interacting with the database
Fix tiler deadlocks when interacting with the database The connection timeout for our database connection pool was initially set too low, which in conjunction with the number of threads allocated for Slick, caused many of the Slick threads to spin in a parked state while eating up all of the available CPU. These chan...
Scala
apache-2.0
azavea/raster-foundry,aaronxsu/raster-foundry,azavea/raster-foundry,azavea/raster-foundry,aaronxsu/raster-foundry,azavea/raster-foundry,raster-foundry/raster-foundry,raster-foundry/raster-foundry,raster-foundry/raster-foundry,aaronxsu/raster-foundry,aaronxsu/raster-foundry,azavea/raster-foundry
scala
## Code Before: package com.azavea.rf.database import com.zaxxer.hikari.{HikariConfig, HikariDataSource} /** * PostGIS Database for Raster Foundry data * * @param jdbcUrl connection url for JDBC * @param dbUser user to authenticate in the database as * @param dbPassword password to use to authenticate user...
c6ab73a718d7f8c948ba79071993cd7a8f484ab5
rm/userprofiles/views.py
rm/userprofiles/views.py
from django.core.urlresolvers import reverse_lazy from django.views.generic.edit import UpdateView from rm.userprofiles.forms import ProfileForm from rm.userprofiles.models import RMUser class RMUserUpdate(UpdateView): model = RMUser form_class = ProfileForm success_url = reverse_lazy('account-edit'...
from django.core.urlresolvers import reverse_lazy from django.views.generic.edit import UpdateView from rm.http import LoginRequiredMixin from rm.userprofiles.forms import ProfileForm from rm.userprofiles.models import RMUser class RMUserUpdate(LoginRequiredMixin, UpdateView): model = RMUser form_class ...
Make our account pages require a logged in user.
Make our account pages require a logged in user. closes #221
Python
agpl-3.0
openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me,openhealthcare/randomise.me
python
## Code Before: from django.core.urlresolvers import reverse_lazy from django.views.generic.edit import UpdateView from rm.userprofiles.forms import ProfileForm from rm.userprofiles.models import RMUser class RMUserUpdate(UpdateView): model = RMUser form_class = ProfileForm success_url = reverse_laz...
9eb6a6d6576d0e22e8077c6a21e9476dc9db1346
test/generator_test.rb
test/generator_test.rb
require_relative 'test_helper' class GeneratorTest < Minitest::Test def test_default_metadata_path subject = Generator.new('aname', 'some cases') # This is relative to the xruby root assert_equal '../x-common/exercises/aname', subject.metadata_dir end def test_initalize_with_fixture_path fixture...
require_relative 'test_helper' class GeneratorTest < Minitest::Test def test_default_metadata_path subject = Generator.new('aname', nil) # This is relative to the xruby root assert_equal '../x-common/exercises/aname', subject.metadata_dir end def test_initalize_with_fixture_path fixture_path = '...
Use nil to indicate we don't care about the cases for now.
Use nil to indicate we don't care about the cases for now.
Ruby
mit
Insti/exercism-ruby,tommyschaefer/xruby,exercism/xruby,exercism/xruby,Insti/xruby,Insti/exercism-ruby,NeimadTL/ruby,Insti/xruby,NeimadTL/ruby,tommyschaefer/xruby,Insti/exercism-ruby,NeimadTL/ruby
ruby
## Code Before: require_relative 'test_helper' class GeneratorTest < Minitest::Test def test_default_metadata_path subject = Generator.new('aname', 'some cases') # This is relative to the xruby root assert_equal '../x-common/exercises/aname', subject.metadata_dir end def test_initalize_with_fixture_...
67eab995d329fe9ffadb37031b75fa746aeab1b5
ruby-rails/README.md
ruby-rails/README.md
* Ruby * Rails
Similar to the [Grails example](https://github.com/daniloradenovic/helloworld-rest/tree/master/groovy-grails), almost all of the code is generated by the Rails framework itself, by using: ```bash rails new myapp cd myapp bin/rails generate controller HelloWorld helloworld ``` This will generate ALL the necessary ...
Update readme.md for Ruby, Rails example
Update readme.md for Ruby, Rails example
Markdown
mit
daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest,daniloradenovic/helloworld-rest
markdown
## Code Before: * Ruby * Rails ## Instruction: Update readme.md for Ruby, Rails example ## Code After: Similar to the [Grails example](https://github.com/daniloradenovic/helloworld-rest/tree/master/groovy-grails), almost all of the code is generated by the Rails framework itself, by using: ```bash rails new myap...
5b29dd7ebb53226552d83551cc1e5acb37331d9b
lib/vagrant/ansible_auto/cap/guest/posix/gateway_addresses.rb
lib/vagrant/ansible_auto/cap/guest/posix/gateway_addresses.rb
require 'set' module VagrantPlugins module AnsibleAuto module Cap module Guest module POSIX class GatewayAddresses class << self def gateway_addresses(machine) with_default_gateway_addresses(machine).to_a.compact end pri...
require 'set' module VagrantPlugins module AnsibleAuto module Cap module Guest module POSIX class GatewayAddresses class << self def gateway_addresses(machine) with_default_gateway_addresses(machine).to_a.compact end pri...
Simplify iteration over candidate gateway IP addresses
Simplify iteration over candidate gateway IP addresses
Ruby
mit
BaxterStockman/vagrant-ansible_auto
ruby
## Code Before: require 'set' module VagrantPlugins module AnsibleAuto module Cap module Guest module POSIX class GatewayAddresses class << self def gateway_addresses(machine) with_default_gateway_addresses(machine).to_a.compact end ...
d1b912e80d16de879578c2ff50378e9dddbedfc8
.travis.yml
.travis.yml
language: node_js node_js: - '4.2' sudo: false cache: directories: - node_modules - vendor/bundle git: submodules: false before_install: - ruby --version - gem --version - gem install bundler --quiet --no-ri --no-rdoc - bundle --version - bundle install --without documentation --path vendor...
language: node_js node_js: - '4.2' sudo: false cache: directories: - node_modules - vendor/bundle git: submodules: false before_install: - rvm install 2.2.3 - rvm use 2.0.0 --fuzzy - export GEMDIR=$(rvm gemdir) - ruby --version - gem --version - gem install bundler --quiet --no-ri --no-rd...
Update Travis CI configure (Ruby version setting)
Update Travis CI configure (Ruby version setting)
YAML
mit
windyakin/Eli,windyakin/Eli
yaml
## Code Before: language: node_js node_js: - '4.2' sudo: false cache: directories: - node_modules - vendor/bundle git: submodules: false before_install: - ruby --version - gem --version - gem install bundler --quiet --no-ri --no-rdoc - bundle --version - bundle install --without documentati...
aa830111aff0681da1e82cd9399faca2b6ccb9f8
adl-parser/README.md
adl-parser/README.md
A java implementation of an ADL 1.5 parser and flattener. It can parse .adls files and flatten the resulting differential archetypes into flat archetypes. It also provides some validation of archetypes after parsing. ## Status Based on Archetype Definition Language (ADL) 1.5 and Archetype Object Model and other relat...
A java implementation of an ADL 1.5 parser and flattener. It can parse .adls files and flatten the resulting differential archetypes into flat archetypes. It also provides some validation of archetypes after parsing. ## Status Based on Archetype Definition Language (ADL) 1.5 and Archetype Object Model and other relat...
Fix example for parsing adl
Fix example for parsing adl
Markdown
agpl-3.0
lonangel/adl2-core,openEHR/adl2-core,bjornna/adl2-core
markdown
## Code Before: A java implementation of an ADL 1.5 parser and flattener. It can parse .adls files and flatten the resulting differential archetypes into flat archetypes. It also provides some validation of archetypes after parsing. ## Status Based on Archetype Definition Language (ADL) 1.5 and Archetype Object Model...
95ee51ea2400d8a30b61adce05b0288652235ec7
localization/jquery-ui-timepicker-pl.js
localization/jquery-ui-timepicker-pl.js
/* German translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { timeOnlyTitle: 'Wybierz godzinę', timeText: 'Czas', hourText: 'Godzina', minuteText: 'Minuta', secondText: 'Sekunda', millisecText: 'Milisekunda', timezoneText: 'Strefa cza...
/* Polish translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { timeOnlyTitle: 'Wybierz godzinę', timeText: 'Czas', hourText: 'Godzina', minuteText: 'Minuta', secondText: 'Sekunda', millisecText: 'Milisekunda', timezoneText: 'Strefa cza...
Add `amNames`/`pmNames` for Polish translation.
Add `amNames`/`pmNames` for Polish translation.
JavaScript
mit
Jaspersoft/jQuery-Timepicker-Addon,Youraiseme/jQuery-Timepicker-Addon,Jaspersoft/jQuery-Timepicker-Addon,pyonnuka/jQuery-Timepicker-Addon,gaissa/jQuery-Timepicker-Addon,brenosilver/jQuery-Timepicker-Addon,pyonnuka/jQuery-Timepicker-Addon,ssyang0102/jQuery-Timepicker-Addon,brenosilver/jQuery-Timepicker-Addon,trentrichar...
javascript
## Code Before: /* German translation for the jQuery Timepicker Addon */ /* Written by Michał Pena */ (function($) { $.timepicker.regional['pl'] = { timeOnlyTitle: 'Wybierz godzinę', timeText: 'Czas', hourText: 'Godzina', minuteText: 'Minuta', secondText: 'Sekunda', millisecText: 'Milisekunda', timezoneT...
2ba109b51901e266d3ae84795d30ee1c85fbe545
src/Traits/StringableIdEntity.php
src/Traits/StringableIdEntity.php
<?php declare(strict_types=1); namespace App\Traits; /** * Class StringableIdEntity */ trait StringableIdEntity { public function __toString(): string { return (string) $this->id; } }
<?php declare(strict_types=1); namespace App\Traits; trait StringableIdEntity { public function __toString(): string { return isset($this->id) ? (string) $this->id : ''; } }
Handle objects without an ID yet
Handle objects without an ID yet This is used when we build log data and in some cases the thing being logged hasn't been created yet when we run this method so we need to account for the id not yet being set.
PHP
mit
thecoolestguy/ilios,stopfstedt/ilios,dartajax/ilios,thecoolestguy/ilios,stopfstedt/ilios,ilios/ilios,ilios/ilios,dartajax/ilios
php
## Code Before: <?php declare(strict_types=1); namespace App\Traits; /** * Class StringableIdEntity */ trait StringableIdEntity { public function __toString(): string { return (string) $this->id; } } ## Instruction: Handle objects without an ID yet This is used when we build log data and in s...
0eee97b9887795316dccaaf1892e0668c13fdcc2
test/370_persist_ipam_2_test.sh
test/370_persist_ipam_2_test.sh
. ./config.sh start_suite "Checking persistence of IPAM" launch_router_with_db() { host=$1 shift WEAVE_DOCKER_ARGS="-v /tmp:/db" weave_on $host launch-router --db-prefix=/db/test162- "$@" } # Remove any persisted data from previous runs run_on $HOST1 "sudo rm -f /tmp/test162-*" run_on $HOST2 "sudo rm -f...
. ./config.sh start_suite "Checking persistence of IPAM" launch_router_with_db() { host=$1 shift weave_on $host launch-router "$@" } launch_router_with_db $HOST1 $HOST2 launch_router_with_db $HOST2 $HOST1 start_container $HOST1 --name=c1 C1=$(container_ip $HOST1 c1) start_container $HOST2 --name=c2 ass...
Use regular persistence settings in test, since they now survive a restart
Use regular persistence settings in test, since they now survive a restart
Shell
apache-2.0
weaveworks/weave,paulbellamy/weave,weaveworks/weave,n054/weave,n054/weave,weaveworks/weave,weaveworks/weave,paulbellamy/weave,paulbellamy/weave,n054/weave,n054/weave,paulbellamy/weave,n054/weave
shell
## Code Before: . ./config.sh start_suite "Checking persistence of IPAM" launch_router_with_db() { host=$1 shift WEAVE_DOCKER_ARGS="-v /tmp:/db" weave_on $host launch-router --db-prefix=/db/test162- "$@" } # Remove any persisted data from previous runs run_on $HOST1 "sudo rm -f /tmp/test162-*" run_on $H...
1d6c17e5adc3df4de86636ef77fc0a406bf065e9
scrapi/harvesters/dryad.py
scrapi/harvesters/dryad.py
''' Harvester for Dryad for the SHARE project Example API call: http://www.datadryad.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc ''' from __future__ import unicode_literals from scrapi.base import OAIHarvester class DryadHarvester(OAIHarvester): short_name = 'dryad' long_name = 'Dryad Data Reposi...
''' Harvester for Dryad for the SHARE project Example API call: http://www.datadryad.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc ''' from __future__ import unicode_literals from lxml import etree import logging from scrapi.base import OAIHarvester logger = logging.getLogger(__name__) class DryadHarvest...
Add custom normaluze function that will not get non existant items
Add custom normaluze function that will not get non existant items
Python
apache-2.0
icereval/scrapi,CenterForOpenScience/scrapi,fabianvf/scrapi,mehanig/scrapi,alexgarciac/scrapi,erinspace/scrapi,felliott/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,erinspace/scrapi,ostwald/scrapi,fabianvf/scrapi,jeffreyliu3230/scrapi,mehanig/scrapi
python
## Code Before: ''' Harvester for Dryad for the SHARE project Example API call: http://www.datadryad.org/oai/request?verb=ListRecords&metadataPrefix=oai_dc ''' from __future__ import unicode_literals from scrapi.base import OAIHarvester class DryadHarvester(OAIHarvester): short_name = 'dryad' long_name = 'D...
c89f85ff8f0092befe39ed44bc82dfbd20ec8a6b
test/sampleTest.js
test/sampleTest.js
'use strict'; const TwitterService = require('./twitterService'); const assert = require('chai').assert; const _ = require('lodash'); suite('Candidate API tests', function () { let service; before((done) => { service = new TwitterService(); service.start(done); }); beforeEach(() => { service.clea...
'use strict'; const TwitterService = require('./twitterService'); const assert = require('chai').assert; const _ = require('lodash'); suite('Sample tests', function () { let service; before((done) => { service = new TwitterService(); service.start(done); }); beforeEach(() => { service.clearDB(); ...
Fix typo in sample test
Fix typo in sample test
JavaScript
mit
FritzFlorian/true-parrot,FritzFlorian/true-parrot
javascript
## Code Before: 'use strict'; const TwitterService = require('./twitterService'); const assert = require('chai').assert; const _ = require('lodash'); suite('Candidate API tests', function () { let service; before((done) => { service = new TwitterService(); service.start(done); }); beforeEach(() => { ...
504655574163cf10e6a95f8178f64a0006a0f3c3
build.sbt
build.sbt
sbtPlugin := true organization := "com.theomn.sbt" name := "sbt-babeljs" version := "1.0.0-SNAPSHOT" scalaVersion := "2.10.5" libraryDependencies ++= Seq( "com.typesafe" % "jstranspiler" % "1.0.0", "org.webjars" % "mkdirp" % "0.3.5", "org.webjars" % "when-node" % "3.2.2", "org.webjars" % "babel" % "4.7.16-...
sbtPlugin := true organization := "com.theomn.sbt" name := "sbt-babeljs" version := "1.0.0-SNAPSHOT" scalaVersion := "2.10.5" libraryDependencies ++= Seq( "com.typesafe" % "jstranspiler" % "1.0.0", "org.webjars" % "mkdirp" % "0.3.5", "org.webjars" % "when-node" % "3.2.2", "org.webjars" % "babel" % "4.7....
Upgrade to sbt js engine 1.1.2
Upgrade to sbt js engine 1.1.2
Scala
mit
onelson/sbt-babeljs
scala
## Code Before: sbtPlugin := true organization := "com.theomn.sbt" name := "sbt-babeljs" version := "1.0.0-SNAPSHOT" scalaVersion := "2.10.5" libraryDependencies ++= Seq( "com.typesafe" % "jstranspiler" % "1.0.0", "org.webjars" % "mkdirp" % "0.3.5", "org.webjars" % "when-node" % "3.2.2", "org.webjars" % "b...
3a2173fbd4be7f51eb7d2f205ff2d7935c6ae971
AccountTests/SyncAuthStateTests.swift
AccountTests/SyncAuthStateTests.swift
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import FxA import Shared import UIKit import XCTest class SyncAuthStateTests: LiveAccountTest { ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import FxA import Shared import UIKit import XCTest class SyncAuthStateTests: LiveAccountTest { ...
Undo incorrectly 'fixed' test - should not produce an error!
Undo incorrectly 'fixed' test - should not produce an error!
Swift
mpl-2.0
zybug/firefox-ios,strangeliu/firefox-ios,StYaphet/firefox-ios,xiaoyanit/firefox-ios,knorrium/firefox-ios,vbudhram/firefox-ios,Ehrippura/firefox-ios,cliqz-oss/browser-ios,radazzouz/firefox-ios,st3fan/firefox-ios,zybug/firefox-ios,varkor/firefox-ios,StYaphet/firefox-ios,doronkatz/firefox-ios,Ehrippura/firefox-ios,marcuse...
swift
## Code Before: /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import FxA import Shared import UIKit import XCTest class SyncAuthStateTests: Liv...
6011286b6f88d42781b8e38184cffeef38e85aa6
dist.min.config.babel.js
dist.min.config.babel.js
/** * ReactFashionWatch - a carefully crafted Fashion Watch component for React. * https://github.com/virtyaluk/react-fashion-watch * * Copyright (c) 2016 Bohdan Shtepan * http://modern-dev.com/ * * Licensed under the MIT license. */ import cfg from './dist.config.babel'; import ExtractTextPlugin from 'extract...
/** * ReactFashionWatch - a carefully crafted Fashion Watch component for React. * https://github.com/virtyaluk/react-fashion-watch * * Copyright (c) 2016 Bohdan Shtepan * http://modern-dev.com/ * * Licensed under the MIT license. */ import cfg from './dist.config.babel'; import ExtractTextPlugin from 'extract...
Fix output css file name
Fix output css file name
JavaScript
mit
virtyaluk/react-fashion-watch,virtyaluk/react-fashion-watch
javascript
## Code Before: /** * ReactFashionWatch - a carefully crafted Fashion Watch component for React. * https://github.com/virtyaluk/react-fashion-watch * * Copyright (c) 2016 Bohdan Shtepan * http://modern-dev.com/ * * Licensed under the MIT license. */ import cfg from './dist.config.babel'; import ExtractTextPlug...
c23af53bfde5d55860d5e988f75b3cc43f8ad060
build_and_deploy.sh
build_and_deploy.sh
rm -r dist/* rm -r build/* rmdir dist rmdir build python setup.py sdist python setup.py bdist_wheel #twine upload dist/* twine upload --repository-url https://test.pypi.org/legacy/ dist/*
rm -r dist/* rm -r build/* rmdir dist rmdir build python setup.py sdist python setup.py bdist_wheel twine upload dist/*
Update build script for real pypi
Update build script for real pypi
Shell
apache-2.0
great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations,great-expectations/great_expectations
shell
## Code Before: rm -r dist/* rm -r build/* rmdir dist rmdir build python setup.py sdist python setup.py bdist_wheel #twine upload dist/* twine upload --repository-url https://test.pypi.org/legacy/ dist/* ## Instruction: Update build script for real pypi ## Code After: rm -r dist/* rm -r build/* rmdir dist rmdir buil...
b1b25ffaa756b1b1e01a35616933c204b8b48843
lib/warden_oauth_provider/token_strategy.rb
lib/warden_oauth_provider/token_strategy.rb
module WardenOauthProvider class TokenStrategy < Warden::Strategies::Base def valid? true end def authenticate! request_token = WardenOauthProvider::Token::Request.find_by_token(request.params["oauth_token"]) if !request_token or request_token.invalidated? fail! ...
module WardenOauthProvider class TokenStrategy < Warden::Strategies::Base def valid? true end def authenticate! request_token = WardenOauthProvider::Token::Request.find_by_token(request.params["oauth_token"]) if !request_token or request_token.invalidated? fail! ...
Fix for 404 redirect error
Fix for 404 redirect error
Ruby
mit
moneybird/warden_oauth_provider
ruby
## Code Before: module WardenOauthProvider class TokenStrategy < Warden::Strategies::Base def valid? true end def authenticate! request_token = WardenOauthProvider::Token::Request.find_by_token(request.params["oauth_token"]) if !request_token or request_token.invalidated...
79a8dbcddb7b0065541eaabaf7c8ee718be26e80
lib/node_modules/@stdlib/utils/find/lib/index.js
lib/node_modules/@stdlib/utils/find/lib/index.js
'use strict'; /** * Find elements in an array-like object that satisfy a test condition. * * @module @stdlib/utils/find * * @example * var find = require( '@stdlib/utils/find' ); * * var data = [ 30, 20, 50, 60, 10 ]; * * function condition( val ) { * return val > 20; * } * * var vals = find( data, condition ); * ...
'use strict'; /** * Find elements in an array-like object that satisfy a test condition. * * @module @stdlib/utils/find * * @example * var find = require( '@stdlib/utils/find' ); * * var data = [ 30, 20, 50, 60, 10 ]; * * function condition( val ) { * return val > 20; * } * * var vals = find( data, condition ); * ...
Disable no-redeclare for non-standard `find` identifier
Disable no-redeclare for non-standard `find` identifier
JavaScript
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
javascript
## Code Before: 'use strict'; /** * Find elements in an array-like object that satisfy a test condition. * * @module @stdlib/utils/find * * @example * var find = require( '@stdlib/utils/find' ); * * var data = [ 30, 20, 50, 60, 10 ]; * * function condition( val ) { * return val > 20; * } * * var vals = find( data,...
9a0adb5fc4d07aa4ec4d725e1ddc9b651e622fce
setup.py
setup.py
"""Model-like encapsulation of big dict structure (like JSON data).""" from setuptools import setup, find_packages setup( name='barrel', version='0.1.3', description='python interface to reaktor API', long_description=__doc__, license='BSD', author='txtr web team', author_email='web-dev@tx...
"""Model-like encapsulation of big dict structure (like JSON data).""" from setuptools import setup, find_packages setup( name='barrel', version='0.2.0', description='Python stores for JSON data encapsulation', long_description=__doc__, license='BSD', author='txtr web team', author_email='...
Bump version to 0.2.0 and update description.
Bump version to 0.2.0 and update description.
Python
bsd-2-clause
storecast/barrel
python
## Code Before: """Model-like encapsulation of big dict structure (like JSON data).""" from setuptools import setup, find_packages setup( name='barrel', version='0.1.3', description='python interface to reaktor API', long_description=__doc__, license='BSD', author='txtr web team', author_e...
02d6ab9e5eb4e7143a006b2c24f9d5d1856e9754
src/peergos/server/net/JarHandler.java
src/peergos/server/net/JarHandler.java
package peergos.server.net; import java.io.*; import java.nio.file.Path; public class JarHandler extends StaticHandler { private final Path root; public JarHandler(boolean isGzip, Path root) { super(isGzip); this.root = root; } @Override public Asset getAsset(String resourcePath)...
package peergos.server.net; import java.io.*; import java.nio.file.Path; public class JarHandler extends StaticHandler { private final Path root; public JarHandler(boolean isGzip, Path root) { super(isGzip); this.root = root; } @Override public Asset getAsset(String resourcePath)...
Fix jar static file handler on Windows
Fix jar static file handler on Windows
Java
agpl-3.0
ianopolous/Peergos,ianopolous/Peergos,Peergos/Peergos,ianopolous/Peergos,Peergos/Peergos,Peergos/Peergos
java
## Code Before: package peergos.server.net; import java.io.*; import java.nio.file.Path; public class JarHandler extends StaticHandler { private final Path root; public JarHandler(boolean isGzip, Path root) { super(isGzip); this.root = root; } @Override public Asset getAsset(Stri...
c10cfa0cecac786eeffc15ca36dd9afa839ff081
db/seeds.rb
db/seeds.rb
i = 1 until i == 20 page = Page.create(text: Faker::Lorem.paragraph, next_page_id: i+1) if page.id % 3 == 0 page.has_challenge = true Challenge.create(page_id: page.id, success_page_id: rand(20), fail_page_id: rand(20)) page.next_page = nil page.save end i+=1 end pro_users = [] 5.times do pro...
i = 1 until i == 20 page = Page.create(text: Faker::Lorem.paragraph, next_page_id: i+1) if page.id % 3 == 0 Challenge.create(page_id: page.id, success_page_id: rand(20), fail_page_id: rand(20)) page.next_page = nil page.save end i+=1 end pro_users = [] 5.times do pro_users << User.create(username...
Update seed file to reflect removal of has_challenge boolean form User migration.
Update seed file to reflect removal of has_challenge boolean form User migration.
Ruby
mit
lukert33/project_raleigh,lukert33/project_raleigh
ruby
## Code Before: i = 1 until i == 20 page = Page.create(text: Faker::Lorem.paragraph, next_page_id: i+1) if page.id % 3 == 0 page.has_challenge = true Challenge.create(page_id: page.id, success_page_id: rand(20), fail_page_id: rand(20)) page.next_page = nil page.save end i+=1 end pro_users = [] ...
e29c8976bb1ba648b4ba0bc43194bf10949b29f8
spec/rackstash/encoders/json_spec.rb
spec/rackstash/encoders/json_spec.rb
require 'spec_helper' require 'rackstash/encoders/json' describe Rackstash::Encoders::JSON do let(:encoder) { Rackstash::Encoders::JSON.new } describe '#encode' do it 'formats the passed event hash as a JSON string' do event = { 'hello' => 'world', 'message' => 'hello' } expect(encoder.encode(ev...
require 'spec_helper' require 'rackstash/encoders/json' describe Rackstash::Encoders::JSON do let(:encoder) { Rackstash::Encoders::JSON.new } describe '#encode' do it 'formats the passed event hash as a JSON string' do event = { 'hello' => 'world', 'message' => 'hello' } expect(encoder.encode(ev...
Clarify that the JSON encoder strips all whitespace
Clarify that the JSON encoder strips all whitespace
Ruby
mit
meineerde/rackstash,meineerde/rackstash
ruby
## Code Before: require 'spec_helper' require 'rackstash/encoders/json' describe Rackstash::Encoders::JSON do let(:encoder) { Rackstash::Encoders::JSON.new } describe '#encode' do it 'formats the passed event hash as a JSON string' do event = { 'hello' => 'world', 'message' => 'hello' } expect(e...
a89adf35a155b2feac610cb5b7d558640c82ed05
plugins/spaminator/test/unit/spaminator_plugin/report_test.rb
plugins/spaminator/test/unit/spaminator_plugin/report_test.rb
require 'test_helper' class SpaminatorPlugin::ReportTest < ActiveSupport::TestCase should 'must belong to an environment' do report = SpaminatorPlugin::Report.new report.valid? assert report.errors.include?(:environment) report.environment = Environment.default report.valid? refute report.e...
require 'test_helper' class SpaminatorPlugin::ReportTest < ActiveSupport::TestCase should 'must belong to an environment' do report = SpaminatorPlugin::Report.new report.valid? assert report.errors.include?(:environment) report.environment = Environment.default report.valid? refute report.e...
Remove unnecessary type assert (fix test)
spaminator: Remove unnecessary type assert (fix test)
Ruby
agpl-3.0
AlessandroCaetano/noosfero,coletivoEITA/noosfero-ecosol,alexandreab/noosfero,CIRANDAS/noosfero-ecosol,AlessandroCaetano/noosfero,blogoosfero/noosfero,vfcosta/noosfero,tallysmartins/noosfero,macartur/noosfero,evandrojr/noosfero,evandrojr/noosfero,vfcosta/noosfero,evandrojr/noosfero,vfcosta/noosfero,marcosronaldo/noosfer...
ruby
## Code Before: require 'test_helper' class SpaminatorPlugin::ReportTest < ActiveSupport::TestCase should 'must belong to an environment' do report = SpaminatorPlugin::Report.new report.valid? assert report.errors.include?(:environment) report.environment = Environment.default report.valid? ...
5f998678d32ff40faa7dbd31af50f1354a5895b0
src/clj/my_money/routes/upload.clj
src/clj/my_money/routes/upload.clj
(ns my-money.routes.upload (:require [my-money.op-csv :refer :all] [compojure.core :refer [defroutes POST]] [ring.util.http-response :as response])) (defroutes upload-routes (POST "/upload" [file] (let [data (read-csv (slurp (:tempfile file)))] (-> (response/ok (-> data ...
(ns my-money.routes.upload (:require [my-money.op-csv :refer :all] [compojure.core :refer [defroutes POST]] [ring.util.http-response :as response])) (defroutes upload-routes (POST "/upload" [file] (let [data (read-csv (slurp (:tempfile file) :encoding "ISO-8859-1"))] (-> (response...
Fix character encodings for the data read from the csv. Remove columns from the response.
Fix character encodings for the data read from the csv. Remove columns from the response.
Clojure
mit
Juholei/my-money,Juholei/my-money
clojure
## Code Before: (ns my-money.routes.upload (:require [my-money.op-csv :refer :all] [compojure.core :refer [defroutes POST]] [ring.util.http-response :as response])) (defroutes upload-routes (POST "/upload" [file] (let [data (read-csv (slurp (:tempfile file)))] (-> (response/ok (->...
233e74abcc4a70f573e199074f5184b30bdfe1d2
seam/__init__.py
seam/__init__.py
__author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>' __copyright__ = 'Copyright 2014 Vanderbilt University. All Rights Reserved' __version__ = '0.0' import freesurfer
__author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>' __copyright__ = 'Copyright 2014 Vanderbilt University. All Rights Reserved' __version__ = '0.0' from . import freesurfer __all__ = ['freesurfer', ]
Fix py3k relative import error
Fix py3k relative import error
Python
mit
VUIIS/seam,VUIIS/seam
python
## Code Before: __author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>' __copyright__ = 'Copyright 2014 Vanderbilt University. All Rights Reserved' __version__ = '0.0' import freesurfer ## Instruction: Fix py3k relative import error ## Code After: __author__ = 'Scott Burns <scott.s.burns@vanderbilt.edu>' __copyrigh...
5d63a2f4eed4b7c3ae50784905aa73fc9008d9a0
META6.json
META6.json
{ "perl" : "6.c", "name" : "Inline::Brainfuck", "license" : "Artistic-2.0", "version" : "1.001001", "description" : "Use Brainfuck language in your Perl 6 programs", "depends" : [ "Term::termios" ], "test-depends" : [ "Test", "Test::Output" ], "provides" ...
{ "perl" : "6.c", "name" : "Inline::Brainfuck", "license" : "Artistic-2.0", "version" : "1.001001", "description" : "Use Brainfuck language in your Raku programs", "depends" : [ "Term::termios" ], "test-depends" : [ "Test", "Test::Output" ], "provides" ...
Update source URL and s/Perl6/Raku
Update source URL and s/Perl6/Raku
JSON
artistic-2.0
zoffixznet/perl6-Inline-Brainfuck
json
## Code Before: { "perl" : "6.c", "name" : "Inline::Brainfuck", "license" : "Artistic-2.0", "version" : "1.001001", "description" : "Use Brainfuck language in your Perl 6 programs", "depends" : [ "Term::termios" ], "test-depends" : [ "Test", "Test::Output" ], ...
fa776fc0d3c568bda7d84ccd9b345e34c3fcf312
ideascube/mediacenter/tests/factories.py
ideascube/mediacenter/tests/factories.py
from django.conf import settings import factory from ..models import Document class DocumentFactory(factory.django.DjangoModelFactory): title = factory.Sequence(lambda n: "Test document {0}".format(n)) summary = "This is a test summary" lang = settings.LANGUAGE_CODE original = factory.django.FileFie...
from django.conf import settings import factory from ..models import Document class EmptyFileField(factory.django.FileField): DEFAULT_FILENAME = None class DocumentFactory(factory.django.DjangoModelFactory): title = factory.Sequence(lambda n: "Test document {0}".format(n)) summary = "This is a test summ...
Allow DocumentFactory to handle preview field.
Allow DocumentFactory to handle preview field. The factory.django.FileField.DEFAULT_FILENAME == 'example.dat'. It means that by default a FileField created by factoryboy is considered as a True value. Before this commit, we were not defining a Document.preview field in the factory so factoryboy created a empty FileFie...
Python
agpl-3.0
ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube
python
## Code Before: from django.conf import settings import factory from ..models import Document class DocumentFactory(factory.django.DjangoModelFactory): title = factory.Sequence(lambda n: "Test document {0}".format(n)) summary = "This is a test summary" lang = settings.LANGUAGE_CODE original = factor...
fb370cf64b78a8438128ba6a6e40ee155049570c
themes/mytheme/assetManager/mytheme.js
themes/mytheme/assetManager/mytheme.js
module.exports = { __module: { provides: { use_scripts: {}, use_stylesheets: {}, register_assets_dir: {after: ['assetManager/bootstrap', 'assetManager/hadron', 'assetManager/hadron-theme-nodus']}, register_views_dir: {after: ['assetManager/bootstrap', 'assetManager/hadron', 'assetManager...
module.exports = { __module: { provides: { "assetManager/use_scripts": {}, "assetManager/use_stylesheets": {}, "assetManager/register_assets_dir": { after: ['assetManager/bootstrap', 'assetManager/hadron', 'assetManager/hadron-theme-nodus'] }, "assetManager/register_views_d...
Update services to use full namespace (Scatter 0.7)
Update services to use full namespace (Scatter 0.7)
JavaScript
mit
hadronjs/hadron-seed,VenturaStudios/Blog
javascript
## Code Before: module.exports = { __module: { provides: { use_scripts: {}, use_stylesheets: {}, register_assets_dir: {after: ['assetManager/bootstrap', 'assetManager/hadron', 'assetManager/hadron-theme-nodus']}, register_views_dir: {after: ['assetManager/bootstrap', 'assetManager/hadron...
232f2dd9edda4408bdb1ad8c00425110cd2d9976
deploySamples.sh
deploySamples.sh
ROOT=$PWD BRANCH=$(git symbolic-ref -q HEAD) BRANCH=${BRANCH##refs/heads/} BRANCH=${BRANCH:-HEAD} SAMPLES=( builder errai gin templates ) if ! git diff --no-ext-diff --quiet --exit-code; then echo "Cannot deploy to gh-pages. You have uncommitted changes in the current branch." exit -1 fi # Building elemento ...
ROOT=$PWD BRANCH=$(git symbolic-ref -q HEAD) BRANCH=${BRANCH##refs/heads/} BRANCH=${BRANCH:-HEAD} SAMPLES=( builder errai gin templates ) if ! git diff --no-ext-diff --quiet --exit-code; then echo "Cannot deploy to gh-pages. You have uncommitted changes in the current branch." exit -1 fi # Building elemento ...
Update script to build and publish samples
Update script to build and publish samples
Shell
apache-2.0
hal/elemento,hal/elemento
shell
## Code Before: ROOT=$PWD BRANCH=$(git symbolic-ref -q HEAD) BRANCH=${BRANCH##refs/heads/} BRANCH=${BRANCH:-HEAD} SAMPLES=( builder errai gin templates ) if ! git diff --no-ext-diff --quiet --exit-code; then echo "Cannot deploy to gh-pages. You have uncommitted changes in the current branch." exit -1 fi # Bu...
f541872a64d76bf5f5af83b52c6e97e60e424a69
packages/ai/airtable-api.yaml
packages/ai/airtable-api.yaml
homepage: https://github.com/ooblahman/airtable-api changelog-type: '' hash: ceb93fea0a23ab87bd8503a7fec421311e2cf387049f48a29c6b052dc3e2f485 test-bench-deps: base: -any airtable-api: -any maintainer: Anand Srinivasan synopsis: Requesting and introspecting Tables within an Airtable project. changelog: '' basic-deps...
homepage: https://github.com/ooblahman/airtable-api changelog-type: '' hash: 5a02a8ebc6766ac7334ca61342bbc8b4581178db6a5491702bc79f33c49749b4 test-bench-deps: base: -any airtable-api: -any maintainer: Anand Srinivasan synopsis: Requesting and introspecting Tables within an Airtable project. changelog: '' basic-deps...
Update from Hackage at 2017-02-07T22:24:45Z
Update from Hackage at 2017-02-07T22:24:45Z
YAML
mit
commercialhaskell/all-cabal-metadata
yaml
## Code Before: homepage: https://github.com/ooblahman/airtable-api changelog-type: '' hash: ceb93fea0a23ab87bd8503a7fec421311e2cf387049f48a29c6b052dc3e2f485 test-bench-deps: base: -any airtable-api: -any maintainer: Anand Srinivasan synopsis: Requesting and introspecting Tables within an Airtable project. changelo...
8315bffbfb49d9691c94512b3d7a72969dd9fdfd
metadata/agrigolo.chubbyclick.yml
metadata/agrigolo.chubbyclick.yml
Categories: - Multimedia License: GPL-3.0-or-later WebSite: https://codeberg.org/agrigolo/chubby-click SourceCode: https://codeberg.org/agrigolo/chubby-click IssueTracker: https://codeberg.org/agrigolo/chubby-click/issues AutoName: Chubby Click RepoType: git Repo: https://codeberg.org/agrigolo/chubby-click.git Bui...
Categories: - Multimedia License: GPL-3.0-or-later WebSite: https://codeberg.org/agrigolo/chubby-click SourceCode: https://codeberg.org/agrigolo/chubby-click IssueTracker: https://codeberg.org/agrigolo/chubby-click/issues AutoName: Chubby Click RepoType: git Repo: https://codeberg.org/agrigolo/chubby-click.git Bui...
Update Chubby Click to v1.7 (11)
Update Chubby Click to v1.7 (11)
YAML
agpl-3.0
f-droid/fdroiddata,f-droid/fdroiddata
yaml
## Code Before: Categories: - Multimedia License: GPL-3.0-or-later WebSite: https://codeberg.org/agrigolo/chubby-click SourceCode: https://codeberg.org/agrigolo/chubby-click IssueTracker: https://codeberg.org/agrigolo/chubby-click/issues AutoName: Chubby Click RepoType: git Repo: https://codeberg.org/agrigolo/chubb...
be2f32046e16f794dfc5076b5d4bfb5fd3f203bf
README.md
README.md
Welcome to the Lone Star PHP 2015 website, based on [Sculpin](http://sculpin.io/)! Definitely check up on the Sculpin documentation to learn more about working with Sculpin ## Getting Started To get started developing on the website: 1. Run `composer install` 2. Run `vendor/bin/sculpin generate --watch --server` 3....
Welcome to the Lone Star PHP 2015 website, based on [Sculpin](http://sculpin.io/)! Definitely check up on the Sculpin documentation to learn more about working with Sculpin ## Getting Started To edit/parse the CSS 1. Run `gem install sass` 2. Run `npm install` 3. Run `gulp` 4. Now when you save any SCSS file, it wil...
Add instructions for installing and using sass/gulp
Add instructions for installing and using sass/gulp
Markdown
mit
DallasPHP/lonestarphp2015,DallasPHP/lonestarphp2015,DallasPHP/lonestarphp2015,DallasPHP/lonestarphp2015
markdown
## Code Before: Welcome to the Lone Star PHP 2015 website, based on [Sculpin](http://sculpin.io/)! Definitely check up on the Sculpin documentation to learn more about working with Sculpin ## Getting Started To get started developing on the website: 1. Run `composer install` 2. Run `vendor/bin/sculpin generate --wa...
e25e8a3c3e5742fc9c311136f39aeae2f7e79815
packages/react-submit/README.md
packages/react-submit/README.md
Redux Form compatible submit button which sets a form value to `true`. This means that a form can have multiple submit buttons with different `name` attributes. ## Usage ```jsx import SubmitButton from 'react-submit' import { Field } from 'redux-form' import { handleFoo, handleBar } from './api' export default For...
React Final Form compatible submit button which sets a form value to `true`. This means that a form can have multiple submit buttons with different `name` attributes. ## Usage ```jsx import SubmitButton from 'react-submit' import { Field, Form } from 'react-final-form' import { handleFoo, handleBar } from './api' ...
Change to React Final Form
Change to React Final Form
Markdown
mit
thirdhand/components,thirdhand/components
markdown
## Code Before: Redux Form compatible submit button which sets a form value to `true`. This means that a form can have multiple submit buttons with different `name` attributes. ## Usage ```jsx import SubmitButton from 'react-submit' import { Field } from 'redux-form' import { handleFoo, handleBar } from './api' ex...
17b2723d589572b9717577a2306a629f750f357b
bin/import_all_country_data.sh
bin/import_all_country_data.sh
echo 'Started. See import_all_country.log for progres...' truncate -s 0 data/logs/all.log time find data/cache/country_data -type f -name '*_12.xlsm' ! -name '~$*' -print -exec date --iso-8601=seconds \; -exec php htdocs/index.php import jmp {} \; &> import_all_country.log
echo 'Started. See data/logs/import_all_country.log for progress...' truncate -s 0 data/logs/all.log time find data/cache/country_data -type f -name '*_12.xlsm' ! -name '~$*' -print -exec date --iso-8601=seconds \; -exec php htdocs/index.php import jmp {} \; &> data/logs/import_all_country.log
Save log in appropriate folder
Save log in appropriate folder
Shell
mit
Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims,Ecodev/gims
shell
## Code Before: echo 'Started. See import_all_country.log for progres...' truncate -s 0 data/logs/all.log time find data/cache/country_data -type f -name '*_12.xlsm' ! -name '~$*' -print -exec date --iso-8601=seconds \; -exec php htdocs/index.php import jmp {} \; &> import_all_country.log ## Instruction: Save log in ...
6700c4197f934ec9236a0addd1d277e67c1bc4d0
README.md
README.md
Get weather information using OpenWeatherMap for Hubot. ## Installation In the Hubot project repo, run: `npm install hubot-open-weather-map --save` Then add **hubot-open-weather-map** to your `external-scripts.json`: ``json ["hubot-open-weather-map"] ``` ## Sample Interaction `` user1>> hubot weather Savannah, ...
Get weather information using OpenWeatherMap for Hubot. ## Installation In the Hubot project repo, run: `npm install hubot-open-weather-map --save` Then add **hubot-open-weather-map** to your `external-scripts.json`: ``json ["hubot-open-weather-map"] ``` ## Configuration * HUBOT_OPEN_WEATHER_MAP_URL - An altern...
Add configuration info and interaction examples.
Add configuration info and interaction examples.
Markdown
mit
TrevorS/hubot-open-weather-map
markdown
## Code Before: Get weather information using OpenWeatherMap for Hubot. ## Installation In the Hubot project repo, run: `npm install hubot-open-weather-map --save` Then add **hubot-open-weather-map** to your `external-scripts.json`: ``json ["hubot-open-weather-map"] ``` ## Sample Interaction `` user1>> hubot we...
d6025e50e3c0e7419847a2f4c45ea97a58da642a
lib/sprinkle/deployment.rb
lib/sprinkle/deployment.rb
module Sprinkle module Deployment def deployment(&block) @deployment = Deployment.new(&block) end class Deployment attr_accessor :style, :defaults def initialize(&block) @defaults = {} self.instance_eval(&block) raise 'No delivery mechanism defined' unless @styl...
module Sprinkle module Deployment def deployment(&block) @deployment = Deployment.new(&block) end class Deployment attr_accessor :style, :defaults def initialize(&block) @defaults = {} self.instance_eval(&block) raise 'No delivery mechanism defined' unless @styl...
Support any installer type defaults via method missing
Support any installer type defaults via method missing
Ruby
mit
saimonmoore/sprinkle,enterprisecloud/sprinkle,sprinkle-tool/sprinkle,sprinkle-tool/sprinkle,auser/sprinkle,crafterm/sprinkle,joerichsen/sprinkle,jsierles/sprinkle,cpatil/sprinkle-cp
ruby
## Code Before: module Sprinkle module Deployment def deployment(&block) @deployment = Deployment.new(&block) end class Deployment attr_accessor :style, :defaults def initialize(&block) @defaults = {} self.instance_eval(&block) raise 'No delivery mechanism defin...
a3b71d0fb5e4b6fca0c45bc10d4771ba57d8adc8
spec/multiConf.js
spec/multiConf.js
var env = require('./environment.js'); // A small suite to make sure the cucumber framework works. exports.config = { seleniumAddress: env.seleniumAddress, framework: 'custom', frameworkPath: '../index.js', // Spec patterns are relative to this directory. specs: [ 'cucumber/*.feature' ], multiCapa...
var env = require('./environment.js'); // A small suite to make sure the cucumber framework works. exports.config = { seleniumAddress: env.seleniumAddress, framework: 'custom', frameworkPath: '../index.js', // Spec patterns are relative to this directory. specs: [ 'cucumber/*.feature' ], multiCapa...
Fix browser conflicts for test suite
Fix browser conflicts for test suite
JavaScript
mit
protractor-cucumber-framework/protractor-cucumber-framework,protractor-cucumber-framework/protractor-cucumber-framework,mattfritz/protractor-cucumber-framework,mattfritz/protractor-cucumber-framework
javascript
## Code Before: var env = require('./environment.js'); // A small suite to make sure the cucumber framework works. exports.config = { seleniumAddress: env.seleniumAddress, framework: 'custom', frameworkPath: '../index.js', // Spec patterns are relative to this directory. specs: [ 'cucumber/*.feature' ...
31dc71e433cb1d40839cbc6049930867e4a687ff
app/resources/api/v1/place_resource.rb
app/resources/api/v1/place_resource.rb
module API module V1 class PlaceResource < JSONAPI::Resource attributes :name, :place_type, :geometry def place_type @model.type end def geometry @model.to_geojson end end end end
module API module V1 class PlaceResource < JSONAPI::Resource attributes :name, :place_type, :geometry, :neighborhood_ids def place_type @model.type end def geometry @model.to_geojson end def neighborhood_ids return [] if @model.type == 'Neighborhood'...
Add neighborhood id collection so frontend can query municipality and all its neighborhoods as a filter
Add neighborhood id collection so frontend can query municipality and all its neighborhoods as a filter
Ruby
bsd-3-clause
MAPC/developmentdatabase,MAPC/developmentdatabase,MAPC/developmentdatabase,MAPC/developmentdatabase
ruby
## Code Before: module API module V1 class PlaceResource < JSONAPI::Resource attributes :name, :place_type, :geometry def place_type @model.type end def geometry @model.to_geojson end end end end ## Instruction: Add neighborhood id collection so frontend ca...
85bb2f831c3d6afc9b86f154c1c695b1d3854dae
packages/linux/linux_2.6.20.bb
packages/linux/linux_2.6.20.bb
DESCRIPTION = "Linux Kernel" SECTION = "kernel" LICENSE = "GPL" PR = "r3" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ file://defconfig" SRC_URI_append_progear = " \ file://progear_bl-r6.patch;patch=1 \ " SRC_URI_append_simpad = "\ file://linux-2.6.20...
DESCRIPTION = "Linux Kernel" SECTION = "kernel" LICENSE = "GPL" PR = "r3" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ file://defconfig" SRC_URI_append_progear = " \ file://progear_bl-r6.patch;patch=1 \ " SRC_URI_append_simpad = "\ file://linux-2.6.20...
Make sure to copy the finished kernel to deploy
linux: Make sure to copy the finished kernel to deploy
BitBake
mit
sentient-energy/emsw-oe-mirror,YtvwlD/od-oe,hulifox008/openembedded,John-NY/overo-oe,JrCs/opendreambox,JamesAng/oe,nvl1109/openembeded,popazerty/openembedded-cuberevo,openpli-arm/openembedded,KDAB/OpenEmbedded-Archos,bticino/openembedded,scottellis/overo-oe,nlebedenco/mini2440,SIFTeam/openembedded,demsey/openembedded,t...
bitbake
## Code Before: DESCRIPTION = "Linux Kernel" SECTION = "kernel" LICENSE = "GPL" PR = "r3" SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ file://defconfig" SRC_URI_append_progear = " \ file://progear_bl-r6.patch;patch=1 \ " SRC_URI_append_simpad = "\ fil...
48dd3873170848619a24ed52000b9b1db90561f5
.travis.yml
.travis.yml
language: go go: - 1.9 - 1.8 install: - go get github.com/golang/dep/cmd/dep - go get golang.org/x/tools/cmd/cover - go get github.com/mattn/goveralls - go get github.com/modocache/gover - dep ensure script: - go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPa...
language: go go: - 1.9 - 1.8 install: - go get github.com/golang/dep/cmd/dep - go get golang.org/x/tools/cmd/cover - go get github.com/mattn/goveralls - go get github.com/modocache/gover - dep ensure script: - go list -f '"go test -coverprofile={{.Dir}}/.coverprofile {{.ImportPath}}"{{end}}' ./... | g...
Include subpackages in coverage stats.
Include subpackages in coverage stats.
YAML
mit
jjeffery/hclconfig
yaml
## Code Before: language: go go: - 1.9 - 1.8 install: - go get github.com/golang/dep/cmd/dep - go get golang.org/x/tools/cmd/cover - go get github.com/mattn/goveralls - go get github.com/modocache/gover - dep ensure script: - go list -f '{{if len .TestGoFiles}}"go test -coverprofile={{.Dir}}/.coverpro...
6904f13efdb684c14898bdeecef92925692283aa
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-rc-1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-rc-1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists org.gradle.jvmargs=-Xmx1g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Update gradle wrapper memory to fix Travis build.
Update gradle wrapper memory to fix Travis build.
INI
apache-2.0
andrei-heidelbacher/metanalysis,andrei-heidelbacher/metanalysis
ini
## Code Before: distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-rc-1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ## Instruction: Update gradle wrapper memory to fix Travis build. ## Code After: distributionBase...
4cca8f46f5a48a436cab437ebd1e03a52809f482
Sources/Strix/Error/RunError.swift
Sources/Strix/Error/RunError.swift
import Foundation public struct RunError: LocalizedError, CustomStringConvertible { public var input: String public var position: String.Index public var underlyingErrors: [ParseError] public init(input: String, position: String.Index, underlyingErrors: [ParseError]) { self.input = input ...
import Foundation public struct RunError: LocalizedError, CustomStringConvertible { public var input: String public var position: String.Index public var underlyingErrors: [ParseError] public init(input: String, position: String.Index, underlyingErrors: [ParseError]) { self.input = input ...
Fix minor typo in error description
Fix minor typo in error description
Swift
mit
nearfri/Strix
swift
## Code Before: import Foundation public struct RunError: LocalizedError, CustomStringConvertible { public var input: String public var position: String.Index public var underlyingErrors: [ParseError] public init(input: String, position: String.Index, underlyingErrors: [ParseError]) { self...
7fee39d633af5b5719ac5d507ab84beae2a3c6bf
.github/workflows/ci.yml
.github/workflows/ci.yml
name: Continuous Integration on: [push] jobs: tests: runs-on: ubuntu-latest environment: sauce permissions: read-all env: SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} SAUCE_TUNNEL_ID: github-action-tunnel steps: - name: Se...
name: Continuous Integration on: [push] jobs: tests: runs-on: ubuntu-latest environment: sauce permissions: read-all env: SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} SAUCE_TUNNEL_ID: github-action-tunnel steps: - name: Se...
Fix coveralls integration with GitHub actions
Fix coveralls integration with GitHub actions
YAML
mit
stacktracejs/error-stack-parser
yaml
## Code Before: name: Continuous Integration on: [push] jobs: tests: runs-on: ubuntu-latest environment: sauce permissions: read-all env: SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} SAUCE_TUNNEL_ID: github-action-tunnel steps: ...
bf4b2d3f0f9829c8333cb3344b72ffc2f115147d
docs/src/index.html
docs/src/index.html
<!DOCTYPE html> <html prefix="og: http://ogp.me/ns#"> <head> <title>React CSS Transition · Take Control of your CSS Transitions</title> <meta property="og:title" content="React CSS Transition" /> <meta property="og:description" content="Take Control of your CSS Transitions" /> <meta property="og:url" content="...
<!DOCTYPE html> <html prefix="og: http://ogp.me/ns#"> <head> <title>React CSS Transition · Take Control of your CSS Transitions</title> <meta property="og:title" content="React CSS Transition" /> <meta property="og:description" content="Take Control of your CSS Transitions" /> <meta property="og:url" content="...
Add meta tags for twitter cards
Add meta tags for twitter cards
HTML
mit
wikiwi/react-css-transition,wikiwi/react-css-transition
html
## Code Before: <!DOCTYPE html> <html prefix="og: http://ogp.me/ns#"> <head> <title>React CSS Transition · Take Control of your CSS Transitions</title> <meta property="og:title" content="React CSS Transition" /> <meta property="og:description" content="Take Control of your CSS Transitions" /> <meta property="o...
1750cd21f19a1a37e7d5b9336aa55f4bbcb83895
scripts/deploy.sh
scripts/deploy.sh
rsync -avz scripts/ circle@hydrogen.levlaz.org:/var/www/braindump/scripts/ rsync -avz etc/ circle@hydrogen.levlaz.org:/var/www/braindump/etc/ scp docker-compose.yml circle@hydrogen.levlaz.org:/var/www/braindump # Log into Production Server, Pull and Restart Docker ssh circle@hydrogen.levlaz.org 'cd /var/www/braindump ...
rsync -avz scripts/ $PROD_SERVER:/var/www/braindump/scripts/ rsync -avz etc/ $PROD_SERVER:/var/www/braindump/etc/ scp docker-compose.yml $PROD_SERVER:/var/www/braindump # Log into Production Server, Pull and Restart Docker ssh $PROD_SERVER 'cd /var/www/braindump && docker-compose pull' ssh $PROD_SERVER 'cd /var/www/br...
Switch to ENVAR for production server
Switch to ENVAR for production server
Shell
mit
levlaz/braindump,levlaz/braindump,levlaz/braindump,levlaz/braindump
shell
## Code Before: rsync -avz scripts/ circle@hydrogen.levlaz.org:/var/www/braindump/scripts/ rsync -avz etc/ circle@hydrogen.levlaz.org:/var/www/braindump/etc/ scp docker-compose.yml circle@hydrogen.levlaz.org:/var/www/braindump # Log into Production Server, Pull and Restart Docker ssh circle@hydrogen.levlaz.org 'cd /va...
a3d011a33d7b7661cf09137e717b89ef8a0e327e
incubation-js/THM/README.md
incubation-js/THM/README.md
たいへんたいジェネレーター ================ 「た」「い」「へ」「ん」をランダムに連続表示して、「たいへん」か「へんたい」が出たら終了するプログラムです。 ---------------------------- 期待値的には、平均で 136 文字で終了します。 Working Copy: https://02f41be48d339da0cde243ece33c283e3f0c321e.googledrive.com/host/0B9f3hv6KkjXcS19ZMmxxdGE5bUE/THM/tht-gen.html 数式計算とか: [日本語記事][1] / [English Page][2] [1]...
たいへんたいジェネレーター ================ 「た」「い」「へ」「ん」をランダムに連続表示して、「たいへん」か「へんたい」が出たら終了するプログラムです。 ---------------------------- 期待値的には、平均で 136 文字で終了します。 Working Copy: https://yk0242.github.io/incubation/incubation-js/THM/tht-gen.html 数式計算とか: [日本語記事][1] / [English Page][2] [1]: http://yybtcbk.blog13.fc2.com/blog-entry-95.htm...
Update link to working copy in readme.md
Update link to working copy in readme.md
Markdown
mit
yk0242/incubation,yk0242/incubation,yk0242/incubation,yk0242/incubation,yk0242/incubation
markdown
## Code Before: たいへんたいジェネレーター ================ 「た」「い」「へ」「ん」をランダムに連続表示して、「たいへん」か「へんたい」が出たら終了するプログラムです。 ---------------------------- 期待値的には、平均で 136 文字で終了します。 Working Copy: https://02f41be48d339da0cde243ece33c283e3f0c321e.googledrive.com/host/0B9f3hv6KkjXcS19ZMmxxdGE5bUE/THM/tht-gen.html 数式計算とか: [日本語記事][1] / [English...
1a166c9946cfa9a95db10277639c2a20aefb334d
package.json
package.json
{ "name": "shell", "version": "0.3.1", "description": "Full features and pretty console applications", "homepage": "http://localhost:4000/projects/node-shell", "author": "David Worms <david@adaltas.com>", "contributors": [{ "name": "David Worms", "email": "david@adaltas.com" },{ "name": "Tony"...
{ "name": "shell", "version": "0.3.1", "description": "Full features and pretty console applications", "homepage": "http://www.adaltas.com/projects/node-shell", "author": "David Worms <david@adaltas.com>", "contributors": [{ "name": "David Worms", "email": "david@adaltas.com" },{ "name": "Tony...
Update homepage and add args and argument keywords
Update homepage and add args and argument keywords
JSON
bsd-3-clause
wdavidw/node-shell
json
## Code Before: { "name": "shell", "version": "0.3.1", "description": "Full features and pretty console applications", "homepage": "http://localhost:4000/projects/node-shell", "author": "David Worms <david@adaltas.com>", "contributors": [{ "name": "David Worms", "email": "david@adaltas.com" },{ ...
d71a7457cf0b9b89e28168b67ffababddef29989
app/data/style.css
app/data/style.css
/* placeholder */ .repohead-details-container .public:after { display: block; visibility: hidden; content: "."; font-size: 12px; line-height: 12px; } /* remove placeholder */ .repohead-details-container .has-lovely-forks.public:after { display: none; } /* smoother integration */ .lovely-forks...
/* placeholder */ .repohead-details-container .public:after { display: block; visibility: hidden; content: "."; font-size: 12px; line-height: 12px; } /* remove placeholder */ .repohead-details-container .has-lovely-forks.public:after { display: none; } /* smoother integration, show hierarchy ...
Indent the line containing the fork.
Indent the line containing the fork. Closes #30.
CSS
mpl-2.0
musically-ut/lovely-forks,musically-ut/lovely-forks,musically-ut/github-forks-addon
css
## Code Before: /* placeholder */ .repohead-details-container .public:after { display: block; visibility: hidden; content: "."; font-size: 12px; line-height: 12px; } /* remove placeholder */ .repohead-details-container .has-lovely-forks.public:after { display: none; } /* smoother integration ...
67e51261831288d1790690bec471842011beca66
app/views/assets/_asset.html.erb
app/views/assets/_asset.html.erb
<% cache [asset] do %> <a class="deprecated-card" href="<%= asset.url %>"> <div class="deprecated-card-hero hover-toggle-wrapper" style="background-image:url(<%= firesize(asset.url, '426x284', 'g_center')%>)"> <% if signed_in? && (asset.product.core_team?(current_user) || current_user.staff?) %> <a...
<% cache [asset] do %> <span class="deprecated-card"> <div class="deprecated-card-hero hover-toggle-wrapper" style="background-image:url(<%= firesize(asset.url, '426x284', 'g_center')%>)"> <% if signed_in? && (asset.product.core_team?(current_user) || current_user.staff?) %> <a href="<%= product_as...
Fix nested anchor tag issue on assets page
Fix nested anchor tag issue on assets page Browsers were interpreting the delete button differently and occasionally making it difficult to delete an asset (in Safari, for example)
HTML+ERB
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta
html+erb
## Code Before: <% cache [asset] do %> <a class="deprecated-card" href="<%= asset.url %>"> <div class="deprecated-card-hero hover-toggle-wrapper" style="background-image:url(<%= firesize(asset.url, '426x284', 'g_center')%>)"> <% if signed_in? && (asset.product.core_team?(current_user) || current_user.staff...
fcfee82989f7134ed767105006b4b86fb80ae91c
requirements.txt
requirements.txt
lxml==4.3.5 # pyup: ignore fonttools[ufo,lxml]==3.44.0
lxml==4.4.1 fonttools[ufo,lxml]==3.44.0
Update lxml to v4.4.1 (and let pyup keep it up-to-date)
Update lxml to v4.4.1 (and let pyup keep it up-to-date)
Text
apache-2.0
khaledhosny/psautohint,khaledhosny/psautohint
text
## Code Before: lxml==4.3.5 # pyup: ignore fonttools[ufo,lxml]==3.44.0 ## Instruction: Update lxml to v4.4.1 (and let pyup keep it up-to-date) ## Code After: lxml==4.4.1 fonttools[ufo,lxml]==3.44.0
cc1c644edfcac2e88cbcd10c07fb9f49aa73be68
Magic/src/main/resources/defaults/mobs/base_npc.yml
Magic/src/main/resources/defaults/mobs/base_npc.yml
base_npc: type: villager ai: false invulnerable: true gravity: false persist: false interact_spell_target: none interact_spell_caster: false dialog_interval: 2000 dialog_range: 4
base_npc: type: villager ai: false invulnerable: true gravity: false persist: false interact_spell_target: none interact_spell_source: player interact_command_source: console dialog_interval: 2000 dialog_range: 4
Update NPC defaults for clarity
Update NPC defaults for clarity
YAML
mit
elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin
yaml
## Code Before: base_npc: type: villager ai: false invulnerable: true gravity: false persist: false interact_spell_target: none interact_spell_caster: false dialog_interval: 2000 dialog_range: 4 ## Instruction: Update NPC defaults for clarity ## Code After: base_npc: type: villager ai: false i...
0bb6d9499b42be340d03106dd1360cb505625059
projects/OG-Language/ServiceTest/stdafx.cpp
projects/OG-Language/ServiceTest/stdafx.cpp
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ #include "stdafx.h" #ifndef __cplusplus_cli int main (int argc, char **argv) { CAbstractTest::Main (argc, argv); return 0; } #endif /* ifndef __cplusplus_cli */
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ #include "stdafx.h" #include "Service/Service.h" #ifndef __cplusplus_cli int main (int argc, char **argv) { if ((argc == 3) && !strcmp (argv[1], "jvm")) { return ServiceTestJVM ...
Verify JVM libraries found in the filesystem as being 1.7 or higher during tests.
[PLAT-3017] Verify JVM libraries found in the filesystem as being 1.7 or higher during tests.
C++
apache-2.0
ChinaQuants/OG-Platform,jeorme/OG-Platform,codeaudit/OG-Platform,DevStreet/FinanceAnalytics,DevStreet/FinanceAnalytics,nssales/OG-Platform,nssales/OG-Platform,jeorme/OG-Platform,ChinaQuants/OG-Platform,nssales/OG-Platform,jeorme/OG-Platform,jerome79/OG-Platform,jerome79/OG-Platform,codeaudit/OG-Platform,jeorme/OG-Platf...
c++
## Code Before: /** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ #include "stdafx.h" #ifndef __cplusplus_cli int main (int argc, char **argv) { CAbstractTest::Main (argc, argv); return 0; } #endif /* ifndef __cplusplus_cli */ ...
fea9b53e75be60500bc5a4de2e01eb4a090fe8cc
github-pages.gemspec
github-pages.gemspec
require File.expand_path('../lib/github-pages', __FILE__) Gem::Specification.new do |s| s.required_ruby_version = ">= 2.0.0" s.name = "github-pages" s.version = GitHubPages::VERSION s.summary = "Track GitHub Pages dependencies." s.description = "Bootstr...
require File.expand_path('../lib/github-pages', __FILE__) Gem::Specification.new do |s| s.required_ruby_version = ">= 2.0.0" s.name = "github-pages" s.version = GitHubPages::VERSION s.summary = "Track GitHub Pages dependencies." s.description = "Bootstr...
Add post-install message which informs users about Jekyll 3 upgrade
Add post-install message which informs users about Jekyll 3 upgrade
Ruby
mit
Stargator/pages-gem,Stargator/pages-gem,github/pages-gem,github/pages-gem,n060dyz/pages-gem,n060dyz/pages-gem
ruby
## Code Before: require File.expand_path('../lib/github-pages', __FILE__) Gem::Specification.new do |s| s.required_ruby_version = ">= 2.0.0" s.name = "github-pages" s.version = GitHubPages::VERSION s.summary = "Track GitHub Pages dependencies." s.description ...
999d243fbc9908255ae292186bf8b17eb67e42e8
planner/forms.py
planner/forms.py
from django import forms class LoginForm(forms.Form): email = forms.EmailField(widget=forms.EmailInput(attrs={'placeholder': 'Email', 'class': 'form-control', })) password = forms.CharField(...
from django.contrib.auth.forms import AuthenticationForm from django import forms class LoginForm(AuthenticationForm): username = forms.CharField(widget=forms.EmailInput(attrs={'placeholder': 'Email', 'class': 'form-control', ...
Fix LoginForm to be conformant to builtin AuthenticationForm
Fix LoginForm to be conformant to builtin AuthenticationForm
Python
mit
livingsilver94/getaride,livingsilver94/getaride,livingsilver94/getaride
python
## Code Before: from django import forms class LoginForm(forms.Form): email = forms.EmailField(widget=forms.EmailInput(attrs={'placeholder': 'Email', 'class': 'form-control', })) password = ...
329cf6e2972b09aec0f99498ce095ca6f310e59d
README.md
README.md
Attempt at above. Complete with own silly build system
Attempt at above. Complete with own silly build system Inspired by https://flowingdata.com/2015/06/16/reviving-the-statistical-atlas-of-the-united-states-with-new-data/
Add link to the original
Add link to the original
Markdown
mit
Mause/statistical_atlas_of_au
markdown
## Code Before: Attempt at above. Complete with own silly build system ## Instruction: Add link to the original ## Code After: Attempt at above. Complete with own silly build system Inspired by https://flowingdata.com/2015/06/16/reviving-the-statistical-atlas-of-the-united-states-with-new-data/
8f24d774227dca13500c0db0c10771d6b4ee7141
corehq/apps/domain/management/commands/find_secure_submission_image_domains.py
corehq/apps/domain/management/commands/find_secure_submission_image_domains.py
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain import csv class Command(BaseCommand): help = 'Find domains with secure submissions and image questions' def handle(self, *args, **options): with open('domain_results.csv', 'wb+') as csvfile: ...
from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain import csv class Command(BaseCommand): help = 'Find domains with secure submissions and image questions' def check_domain(self, domain, csv_writer): if domain.secure_submissions: for app in do...
Add audio/video support and bail on findings
Add audio/video support and bail on findings
Python
bsd-3-clause
qedsoftware/commcare-hq,qedsoftware/commcare-hq,SEL-Columbia/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,SEL-Columbia/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,SEL-Columbia/commcare-hq,dimagi/commcare-hq,puttar...
python
## Code Before: from django.core.management.base import BaseCommand from corehq.apps.domain.models import Domain import csv class Command(BaseCommand): help = 'Find domains with secure submissions and image questions' def handle(self, *args, **options): with open('domain_results.csv', 'wb+') as csvfi...
d2f7499fc65d63769027f2498dccb5d9b4924fd6
pages/index.js
pages/index.js
import React from 'react' import Head from 'next/head' import {MDXProvider} from '@mdx-js/react' import IndexMDX from './index.mdx' import CodeBlock from '../doc-components/CodeBlock' const components = { pre: props => <div {...props} />, code: CodeBlock } export default () => ( <MDXProvider components={compon...
import React from 'react' import Head from 'next/head' import {MDXProvider} from '@mdx-js/react' import IndexMDX from './index.mdx' import CodeBlock from '../doc-components/CodeBlock' const components = { pre: props => <div {...props} />, code: CodeBlock } export default () => ( <MDXProvider components={compon...
Add canonical url for docs
Add canonical url for docs
JavaScript
mit
miduga/react-slidy
javascript
## Code Before: import React from 'react' import Head from 'next/head' import {MDXProvider} from '@mdx-js/react' import IndexMDX from './index.mdx' import CodeBlock from '../doc-components/CodeBlock' const components = { pre: props => <div {...props} />, code: CodeBlock } export default () => ( <MDXProvider co...
585d4c685596764e9f25a5dc988453f8d5197aaf
js/heartbeat.js
js/heartbeat.js
(function($, document, window) { "use strict" window.animationHeartBeat = function (steps) { var max = steps; var delay = 70; var current = 0; var interval; var beat; $(document).bind('animation.stop', function() { console.log('animation....
(function($, document, window) { "use strict" window.animationHeartBeat = function (steps) { var max = steps; var delay = 70; var current = 0; var interval; var beat; $(document).bind('animation.stop', function() { console.log('animation....
Allow current frame modifictation by event
[HeartBeat] Allow current frame modifictation by event
JavaScript
mit
marekkalnik/jquery-mdm-animatics
javascript
## Code Before: (function($, document, window) { "use strict" window.animationHeartBeat = function (steps) { var max = steps; var delay = 70; var current = 0; var interval; var beat; $(document).bind('animation.stop', function() { console...
85a6eada9f3fb79e99a3bf856394c1fec0947c96
README.rst
README.rst
djorm-ext-pgarray ================= PostgreSQL array field for Django. .. image:: https://img.shields.io/travis/niwibe/djorm-ext-pgarray.svg?style=flat :target: https://travis-ci.org/niwibe/djorm-ext-pgarray .. image:: https://img.shields.io/pypi/v/djorm-ext-pgarray.svg?style=flat :target: https://pypi.pytho...
djorm-ext-pgarray ================= PostgreSQL array field for Django. .. image:: https://img.shields.io/travis/niwibe/djorm-pgarray.svg?style=flat :target: https://travis-ci.org/niwibe/djorm-pgarray .. image:: https://img.shields.io/pypi/v/djorm-pgarray.svg?style=flat :target: https://pypi.python.org/pypi/d...
Replace old name with new on readme.
Replace old name with new on readme.
reStructuredText
bsd-3-clause
niwinz/djorm-pgarray,natgeo/djorm-ext-pgarray,natgeo/djorm-ext-pgarray,niwinz/djorm-pgarray,Natgeoed/djorm-ext-pgarray,Natgeoed/djorm-ext-pgarray
restructuredtext
## Code Before: djorm-ext-pgarray ================= PostgreSQL array field for Django. .. image:: https://img.shields.io/travis/niwibe/djorm-ext-pgarray.svg?style=flat :target: https://travis-ci.org/niwibe/djorm-ext-pgarray .. image:: https://img.shields.io/pypi/v/djorm-ext-pgarray.svg?style=flat :target: ht...