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
554652724e18814d4b0f297ca5ce8ed327524d78
schema/StudentInsertCoursework.sql
schema/StudentInsertCoursework.sql
insert into Coursework(title,date_submitted,file,student_user_id,class_id) values (?,now(),?,?,?);
insert into Coursework(title,date_submitted,file,file_extension,student_user_id,class_id) values (?,now(),?,?,?,?);
Modify to match new column data for Coursework table
Modify to match new column data for Coursework table
SQL
apache-2.0
Daytron/revworks
sql
## Code Before: insert into Coursework(title,date_submitted,file,student_user_id,class_id) values (?,now(),?,?,?); ## Instruction: Modify to match new column data for Coursework table ## Code After: insert into Coursework(title,date_submitted,file,file_extension,student_user_id,class_id) values (?,now(),?,?,?,?);
2e3fce7ecd8af7925edc8713c35ba2fc3f00e4ee
atlasdb-ete-tests/docker/conf/atlasdb-ete.cassandra.yml
atlasdb-ete-tests/docker/conf/atlasdb-ete.cassandra.yml
server: #rootPath: /api/* #applicationContextPath: / #adminContextPath: / applicationConnectors: - type: http port: 3828 adminConnectors: - type: http port: 3829 atlasdb: keyValueService: type: cassandra servers: - cassandra:9160 poolSize: 20 keyspace: atlasete ...
server: #rootPath: /api/* #applicationContextPath: / #adminContextPath: / applicationConnectors: - type: http port: 3828 adminConnectors: - type: http port: 3829 atlasdb: keyValueService: type: cassandra servers: - cassandra:9160 poolSize: 20 keyspace: atlasete ...
Remove wrong config value from ETE tests
Remove wrong config value from ETE tests
YAML
apache-2.0
palantir/atlasdb,EvilMcJerkface/atlasdb,EvilMcJerkface/atlasdb,EvilMcJerkface/atlasdb,palantir/atlasdb,palantir/atlasdb
yaml
## Code Before: server: #rootPath: /api/* #applicationContextPath: / #adminContextPath: / applicationConnectors: - type: http port: 3828 adminConnectors: - type: http port: 3829 atlasdb: keyValueService: type: cassandra servers: - cassandra:9160 poolSize: 20 keyspa...
9bee186245020a5a7e3e4c34b48c4965514887dc
app/views/search/opensearch.xml
app/views/search/opensearch.xml
<?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName>GOV.UK</ShortName> <Description>Search GOV.UK - The best place to find government services and information.</Description> <Url type="...
<?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName>GOV.UK</ShortName> <Description>Search GOV.UK - The best place to find government services and information.</Description> <Url type="...
Change Google Chrome config to search with new finder This tells Google Chrome that if users tab when typing 'gov.uk' to use the new finder and the correct parameter
Change Google Chrome config to search with new finder This tells Google Chrome that if users tab when typing 'gov.uk' to use the new finder and the correct parameter Trello: https://trello.com/c/Rr6BrjXi/453-configure-chrome-address-bar-search-to-know-where-our-site-search-is-s
XML
mit
alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend,alphagov/finder-frontend
xml
## Code Before: <?xml version="1.0" encoding="UTF-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> <ShortName>GOV.UK</ShortName> <Description>Search GOV.UK - The best place to find government services and information.</Description>...
8161e8c4bb9f5249f6915497db3c523182dd874d
app/css/_comment_icon.scss
app/css/_comment_icon.scss
%comment-icon { @extend %default-font; font-weight: bold; -webkit-font-smoothing: auto; position: relative; display: inline-block; min-width: 1.4em; height: 1.1em; border-radius: 0.25em; padding: 0 0.2em; line-height: 1; vertical-align: text-top; text-align: center; -moz-box-sizing: border-bo...
%comment-icon { @extend %default-font; font-weight: bold; -webkit-font-smoothing: auto; position: relative; display: inline-block; min-width: 1.4em; height: 1.1em; border-radius: 0.25em; padding: 0 0.2em; line-height: 1; vertical-align: baseline; top: -0.15em; text-align: center; -moz-box-s...
Use vertical-align baseline as this doesn't depend on the font and looks better in most cases
Use vertical-align baseline as this doesn't depend on the font and looks better in most cases
SCSS
mit
Factlink/js-library,Factlink/js-library,Factlink/js-library
scss
## Code Before: %comment-icon { @extend %default-font; font-weight: bold; -webkit-font-smoothing: auto; position: relative; display: inline-block; min-width: 1.4em; height: 1.1em; border-radius: 0.25em; padding: 0 0.2em; line-height: 1; vertical-align: text-top; text-align: center; -moz-box-s...
06bd3b2846354aeef1bc57eb644911f1c02c65b2
tests/CMakeLists.txt
tests/CMakeLists.txt
project(tests) enable_testing() add_definitions(-DTEST=1) find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Test REQUIRED) find_package(Qt5Widgets REQUIRED) set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Test Qt5::Widgets) file(GLOB_RECURSE SOURCES "src/*.cpp") include(ListFilterRegex) listFilte...
project(tests) enable_testing() add_definitions(-DTEST=1) if(DEFINED HEADLESS) add_definitions(-DHEADLESS=1) endif() find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Test REQUIRED) find_package(Qt5Widgets REQUIRED) set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Test Qt5::Widgets) file(GLOB_REC...
Allow to run tests without a X server
Allow to run tests without a X server
Text
apache-2.0
Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber
text
## Code Before: project(tests) enable_testing() add_definitions(-DTEST=1) find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Test REQUIRED) find_package(Qt5Widgets REQUIRED) set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::Test Qt5::Widgets) file(GLOB_RECURSE SOURCES "src/*.cpp") include(ListFilter...
7c7be4572e3713ab2d96a533c21ee2c4fc88ec8d
requirements/base.txt
requirements/base.txt
Django==1.9.12 django-analytical==2.2.1 django-bootstrap-form==3.2.1 django-jsonfield==0.9.13 django-markdown==0.8.4 django-markitup==3.0.0 django-multiselectfield==0.1.5 djangorestframework==3.3.3 Fabric==1.12.0 fabtools==0.19.0 gunicorn==19.6.0 Pillow==3.3.1 pinax-eventlog==1.1.2 pip==9.0.1 psycopg2==2.6.2 pytz==2016...
Django==1.9.12 django-analytical==2.2.1 django-bootstrap-form==3.2.1 django-jsonfield==0.9.13 django-markdown==0.8.4 django-markitup==3.0.0 django-multiselectfield==0.1.5 djangorestframework==3.3.3 Fabric==1.12.0 fabtools==0.19.0 gunicorn==19.6.0 Pillow==3.3.1 pinax-eventlog==1.1.2 pip==9.0.1 psycopg2==2.6.2 pytz==2016...
Remove setuptools and six from requirements.
Remove setuptools and six from requirements. See #142 and #143 - pinning these two packages are ineffective/incomplete solutions to the problem (the required packages on each conference site server is being run by the system's pip instead of the virtualenv's).
Text
mit
pydata/conf_site,pydata/conf_site,pydata/conf_site
text
## Code Before: Django==1.9.12 django-analytical==2.2.1 django-bootstrap-form==3.2.1 django-jsonfield==0.9.13 django-markdown==0.8.4 django-markitup==3.0.0 django-multiselectfield==0.1.5 djangorestframework==3.3.3 Fabric==1.12.0 fabtools==0.19.0 gunicorn==19.6.0 Pillow==3.3.1 pinax-eventlog==1.1.2 pip==9.0.1 psycopg2==...
18e65ebf891126591ec56d86ff0c275f77ad9671
index.html
index.html
<DOCTYPE html> <html lang="en"> <head> <title>Williams Soaring Price Calculator</title> <script src="calculator.js" type="text/javascript"></script> <link rel="stylesheet" href="style1.css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> ...
<DOCTYPE html> <html lang="en"> <head> <title>Williams Soaring Price Calculator</title> <script src="calculator.js" type="text/javascript"></script> <link rel="stylesheet" href="style1.css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> ...
Put the name of the select in between the tags, will see if that works.
Put the name of the select in between the tags, will see if that works.
HTML
agpl-3.0
sgoblin/wsc-pricecalc,sgoblin/wsc-pricecalc
html
## Code Before: <DOCTYPE html> <html lang="en"> <head> <title>Williams Soaring Price Calculator</title> <script src="calculator.js" type="text/javascript"></script> <link rel="stylesheet" href="style1.css"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> </head> <bo...
328433cbfb303f2972a816fd2ff1f7a171ad277a
README.md
README.md
The Exponent Development Library ## Building Watchman Configure with `./configure --disable-statedir` to use TMPDIR for the watchman state.
The Exponent Development Library. [Documentation](https://docs.getexponent.com/versions/devdocs/index.html) ## Building Watchman Configure with `./configure --disable-statedir` to use TMPDIR for the watchman state.
Add documentation link to readme
Add documentation link to readme fbshipit-source-id: 426f4d8
Markdown
mit
exponentjs/xdl,exponentjs/xdl,exponentjs/xdl
markdown
## Code Before: The Exponent Development Library ## Building Watchman Configure with `./configure --disable-statedir` to use TMPDIR for the watchman state. ## Instruction: Add documentation link to readme fbshipit-source-id: 426f4d8 ## Code After: The Exponent Development Library. [Documentation](https://docs.getex...
4641e2a05de38767f98714a7fea1e46a6a43f710
src/components/class-component.php
src/components/class-component.php
<?php namespace Xu\Components; use Xu\Foundation\Foundation; /** * Component class. */ abstract class Component { /** * xu instance. * * @var \Xu\Foundation\Xu */ protected $xu; /** * Create a new component instance. * * @param \Xu\Foundation\Foundation $xu */ ...
<?php namespace Xu\Components; use Xu\Contracts\Foundation\Foundation as FoundationContract; /** * Component class. */ abstract class Component { /** * xu instance. * * @var \Xu\Contracts\Foundation\Foundation */ protected $xu; /** * Create a new component instance. * ...
Update component class to take foundation contract
Update component class to take foundation contract
PHP
mit
wp-xu/xu,wp-xu/framework
php
## Code Before: <?php namespace Xu\Components; use Xu\Foundation\Foundation; /** * Component class. */ abstract class Component { /** * xu instance. * * @var \Xu\Foundation\Xu */ protected $xu; /** * Create a new component instance. * * @param \Xu\Foundation\Foundat...
22d68da72421c17ee15e0c7be71740b10a93ee9e
testing/platform_test.h
testing/platform_test.h
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TESTING_PLATFORM_TEST_H_ #define TESTING_PLATFORM_TEST_H_ #include <gtest/gtest.h> #if defined(GTEST_OS_MAC) #ifdef __OBJC__ @class NSA...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TESTING_PLATFORM_TEST_H_ #define TESTING_PLATFORM_TEST_H_ #include <gtest/gtest.h> #if defined(GTEST_OS_MAC) #ifdef __OBJC__ @class NSA...
Change visibility of the destructor to public.
Change visibility of the destructor to public. PlatformTest's destructor was set as protected, though the parent class testing::Test declares it public. BUG=none Review URL: https://chromiumcodereview.appspot.com/11038058 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@161352 0039d316-1c4b-4281-b951-d872f2087...
C
bsd-3-clause
pozdnyakov/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,jaruba/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,axinging/chr...
c
## Code Before: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TESTING_PLATFORM_TEST_H_ #define TESTING_PLATFORM_TEST_H_ #include <gtest/gtest.h> #if defined(GTEST_OS_MAC) #ifdef __O...
7262106a478eab0e86795ce04a32342b6f6d6d6b
elements/coupling-view/coupling-element.html
elements/coupling-view/coupling-element.html
<link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../bower_components/paper-card/paper-card.html"> <link rel="import" href="../bower_components/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="../colors.html"> <dom-module id="coupling-element"> <t...
<link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../bower_components/paper-card/paper-card.html"> <link rel="import" href="../bower_components/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="../colors.html"> <dom-module id="coupling-element"> <t...
Add basic styling to paper-card
Add basic styling to paper-card
HTML
apache-2.0
bartdejonge1996/goto-fail-webserver,bartdejonge1996/goto-fail-webserver
html
## Code Before: <link rel="import" href="../bower_components/polymer/polymer.html"> <link rel="import" href="../bower_components/paper-card/paper-card.html"> <link rel="import" href="../bower_components/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="../colors.html"> <dom-module id="coupling-...
bf891428f6312e500fbcf4387a5ddcd2f71c367e
addons/Dexie.Syncable/src/apply-changes.js
addons/Dexie.Syncable/src/apply-changes.js
import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; if (offset >= length) return Promise.resolve(null); const firstChange = changes[of...
import Dexie from 'dexie'; import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; if (offset >= length) return Dexie.Promise.resolve(null); ...
Use Dexie.Promise not the global Promise
Use Dexie.Promise not the global Promise
JavaScript
apache-2.0
chrahunt/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,dfahlander/Dexie.js,chrahunt/Dexie.js,jimmywarting/Dexie.js,jimmywarting/Dexie.js,dfahlander/Dexie.js,jimmywarting/Dexie.js,chrahunt/Dexie.js,chrahunt/Dexie.js
javascript
## Code Before: import { CREATE, DELETE, UPDATE } from './change_types'; import bulkUpdate from './bulk-update'; export default function initApplyChanges(db) { return function applyChanges(changes, offset) { const length = changes.length; if (offset >= length) return Promise.resolve(null); const firstCha...
1ac797476473d708b834c434723d50256a12f556
app/views/coronavirus_local_restrictions/results.html.erb
app/views/coronavirus_local_restrictions/results.html.erb
<% content_for :title, t("coronavirus_local_restrictions.lookup.title") %> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <% if !@location_lookup.data.first.england? %> <%= render partial: "coronavirus_local_restrictions/devolved_nation" %> <% elsif @restriction.present? && @re...
<% content_for :title, t("coronavirus_local_restrictions.lookup.title") %> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <% if !@location_lookup.data.first.england? %> <%= render partial: "coronavirus_local_restrictions/devolved_nation" %> <% elsif @restriction.present? && @re...
Update the results view to use the current alert level
Update the results view to use the current alert level
HTML+ERB
mit
alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections
html+erb
## Code Before: <% content_for :title, t("coronavirus_local_restrictions.lookup.title") %> <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <% if !@location_lookup.data.first.england? %> <%= render partial: "coronavirus_local_restrictions/devolved_nation" %> <% elsif @restriction...
84b907ad78f03d614e8af14578c21e1228ab723d
top.py
top.py
from api_connector import * from csv_io import * def main(): conn = ApiConnector() csvio = CsvIo() article_list = conn.get_top() stories = [] for i in article_list: try: story = conn.get_item(i) if story.get("deleted"): continue print csvio.story_to_csv(story) stories.append(st...
from api_connector import * from csv_io import * def main(): conn = ApiConnector() csvio = CsvIo() article_list = conn.get_top() stories = [] for i in article_list: try: story = conn.get_item(i) if story.get("deleted"): continue print csvio.story_to_csv(story) stories.append(st...
Use common object for csvio calls
Use common object for csvio calls
Python
apache-2.0
rylans/hackernews-top,davande/hackernews-top
python
## Code Before: from api_connector import * from csv_io import * def main(): conn = ApiConnector() csvio = CsvIo() article_list = conn.get_top() stories = [] for i in article_list: try: story = conn.get_item(i) if story.get("deleted"): continue print csvio.story_to_csv(story) s...
91a9bd2ebcf3f08e2c879e1b6804fd2a160f0547
test/IncrementingTest.php
test/IncrementingTest.php
<?php class IncrementingTest extends RememberTestCase { public function testIncrementingModelsPopsCache() { $group = Group::create(['id' => static::ID, 'name' => 'counter test', 'counter' => 0]); $cached = Group::find(static::ID); $group->increment('counter'); $new = Group::f...
<?php class IncrementingTest extends RememberTestCase { public function testIncrementingModelsPopsCache() { $group = Group::create(['id' => static::ID, 'name' => 'counter test', 'counter' => 0]); $cached = Group::find(static::ID); $group->increment('counter'); $new = Group::f...
Make incrementing tests check the cache was actually used, too
Make incrementing tests check the cache was actually used, too
PHP
mit
ameliaikeda/rememberable
php
## Code Before: <?php class IncrementingTest extends RememberTestCase { public function testIncrementingModelsPopsCache() { $group = Group::create(['id' => static::ID, 'name' => 'counter test', 'counter' => 0]); $cached = Group::find(static::ID); $group->increment('counter'); ...
9da3f2a835fa2aaba5d91ffe31b3fcaf8d83a4c9
snake/main.py
snake/main.py
import os import sys from snake.core import Snake SNAKEFILE_LOADED = False def abort(msg): print >> sys.stderr, "Error: %s" % msg sys.exit(1) def load_snakefile(path, fail_silently=False): global SNAKEFILE_LOADED if not SNAKEFILE_LOADED: sys.path.insert(0, path) try: r...
import imp import os import sys from snake.core import Snake def abort(msg): print >> sys.stderr, "Error: %s" % msg sys.exit(1) def get_ascending_paths(path): paths = [] while True: paths.append(path) path, tail = os.path.split(path) if not tail: break return ...
Improve the way snakefile loading works
Improve the way snakefile loading works
Python
bsd-2-clause
yumike/snake
python
## Code Before: import os import sys from snake.core import Snake SNAKEFILE_LOADED = False def abort(msg): print >> sys.stderr, "Error: %s" % msg sys.exit(1) def load_snakefile(path, fail_silently=False): global SNAKEFILE_LOADED if not SNAKEFILE_LOADED: sys.path.insert(0, path) tr...
6b6f739ed9df057a62401429167dd14691cdfee5
packages/ember-runtime/tests/core/inspect_test.js
packages/ember-runtime/tests/core/inspect_test.js
module("Ember.inspect"); var inspect = Ember.inspect; test("strings", function() { equal(inspect("foo"), "foo"); }); test("numbers", function() { equal(inspect(2.6), "2.6"); }); test("null", function() { equal(inspect(null), "null"); }); test("undefined", function() { equal(inspect(undefined), "undefined")...
module("Ember.inspect"); var inspect = Ember.inspect; test("strings", function() { equal(inspect("foo"), "foo"); }); test("numbers", function() { equal(inspect(2.6), "2.6"); }); test("null", function() { equal(inspect(null), "null"); }); test("undefined", function() { equal(inspect(undefined), "undefined")...
Remove unnecessary assertion for `Ember.inspect`
Remove unnecessary assertion for `Ember.inspect` The assertion for `Ember.inspect` with error object depends on `Error#toString`. It returns the value that provided by each environments.
JavaScript
mit
selvagsz/ember.js,8thcolor/ember.js,Turbo87/ember.js,cesarizu/ember.js,abulrim/ember.js,furkanayhan/ember.js,practicefusion/ember.js,yuhualingfeng/ember.js,sandstrom/ember.js,mixonic/ember.js,topaxi/ember.js,blimmer/ember.js,yuhualingfeng/ember.js,tsing80/ember.js,jayphelps/ember.js,gfvcastro/ember.js,kublaj/ember.js,s...
javascript
## Code Before: module("Ember.inspect"); var inspect = Ember.inspect; test("strings", function() { equal(inspect("foo"), "foo"); }); test("numbers", function() { equal(inspect(2.6), "2.6"); }); test("null", function() { equal(inspect(null), "null"); }); test("undefined", function() { equal(inspect(undefine...
07aced1a932413ee26c967a643fb37cb05b24823
resources/views/partials/menu-item.blade.php
resources/views/partials/menu-item.blade.php
@if (is_string($item)) <li class="header">{{ $item }}</li> @else <li {{ isset($item['submenu']) ? 'class="treeview"' : '' }}> <a href="{{ isset($item['url']) ? url($item['url']) : '#' }}"> <i class="fa fa-fw fa-{{ $item['icon'] or 'circle-o' }} {{ isset($item['icon_color']) ? 'text-' . $item...
@if (is_string($item)) <li class="header">{{ $item }}</li> @else <li {{ isset($item['submenu']) ? 'class="treeview"' : '' }}> <a href="{{ isset($item['url']) ? url($item['url']) : '#' }}"> <i class="fa fa-fw fa-{{ $item['icon'] or 'circle-o' }} {{ isset($item['icon_color']) ? 'text-' . $item...
Clean up if statement in menu item partial view
Clean up if statement in menu item partial view
PHP
mit
apisznasdin/Laravel-AdminLTE,MasterBratac/Laravel-AdminLTE,apisznasdin/Laravel-AdminLTE,MasterBratac/Laravel-AdminLTE,JeroenNoten/Laravel-AdminLTE,apisznasdin/Laravel-AdminLTE,JeroenNoten/Laravel-AdminLTE,MasterBratac/Laravel-AdminLTE
php
## Code Before: @if (is_string($item)) <li class="header">{{ $item }}</li> @else <li {{ isset($item['submenu']) ? 'class="treeview"' : '' }}> <a href="{{ isset($item['url']) ? url($item['url']) : '#' }}"> <i class="fa fa-fw fa-{{ $item['icon'] or 'circle-o' }} {{ isset($item['icon_color']) ?...
3ed336a37935d6081a6fb0423622e84110114def
.travis.yml
.travis.yml
language: bash addons: apt: sources: - debian-sid # Grab ShellCheck from the Debian repo packages: - shellcheck script: shellcheck -e SC2086 -s bash create-image create-iso sdc-vmmanifest setup_env.sh
language: bash before_install: - sudo apt-get -qq update - sudo apt-get install -y python-pykickstart addons: apt: sources: - debian-sid # Grab ShellCheck from the Debian repo packages: - shellcheck script: shellcheck -e SC2086 -s bash create-image create-iso sdc-vmmanifest setup_env.sh script:...
Add kickstart validator and validate ks.cfg file
Add kickstart validator and validate ks.cfg file
YAML
mpl-2.0
joyent/fedora-kvm-image-builder
yaml
## Code Before: language: bash addons: apt: sources: - debian-sid # Grab ShellCheck from the Debian repo packages: - shellcheck script: shellcheck -e SC2086 -s bash create-image create-iso sdc-vmmanifest setup_env.sh ## Instruction: Add kickstart validator and validate ks.cfg file ## Code After: ...
0135f7b02af9df7a1f6f0878d3d4de38e917f7a1
app/views/App/Index.html
app/views/App/Index.html
{{set . "title" "Home"}} {{template "header.html" .}} <header class="hero-unit" style="background-color:#A9F16C"> <div class="container"> <div class="row"> <div class="hero-text"> <h1>Welcome to FreeCycle.in.net</h1> <p></p> </div> </div> </div> </header> <div class="container"...
{{set . "title" "Home"}} {{template "header.html" .}} <header class="hero-unit" style="background-color:#A9F16C"> <div class="container"> <div class="row"> <div class="hero-text"> <h1>Welcome to FreeCycle.in.net</h1> <p>Description to the site and explain objective</p> </div> </di...
Add some text to index page
Add some text to index page
HTML
apache-2.0
antonyho/freecycle.in.net,antonyho/freecycle.in.net
html
## Code Before: {{set . "title" "Home"}} {{template "header.html" .}} <header class="hero-unit" style="background-color:#A9F16C"> <div class="container"> <div class="row"> <div class="hero-text"> <h1>Welcome to FreeCycle.in.net</h1> <p></p> </div> </div> </div> </header> <div c...
702d7d111ef64f4db3a681563adcc0ca46472802
examples/lastfm/src/server/index.js
examples/lastfm/src/server/index.js
import express from 'express'; import { ApolloServer } from 'apollo-server-express'; import dataSources from '../connectors'; import schema from '../schema'; import resolvers from '../resolvers'; import './env'; const PORT = 3000; const app = express(); const server = new ApolloServer({ typeDefs: schema, resol...
import express from 'express'; import { ApolloServer } from 'apollo-server-express'; import dataSources from '../connectors'; import schema from '../schema'; import resolvers from '../resolvers'; import './env'; const PORT = 3000; const app = express(); const server = new ApolloServer({ typeDefs: schema, resol...
Fix cursor problem in Playground
Fix cursor problem in Playground
JavaScript
mit
matt-riley/gql_boilerplate
javascript
## Code Before: import express from 'express'; import { ApolloServer } from 'apollo-server-express'; import dataSources from '../connectors'; import schema from '../schema'; import resolvers from '../resolvers'; import './env'; const PORT = 3000; const app = express(); const server = new ApolloServer({ typeDefs:...
216825466815c9efb8227bfda4758302f08d2b33
library/CM/FormField/Hidden.js
library/CM/FormField/Hidden.js
/** * @class CM_FormField_Hidden * @extends CM_FormField_Abstract */ var CM_FormField_Hidden = CM_FormField_Abstract.extend({ _class: 'CM_FormField_Hidden' });
/** * @class CM_FormField_Hidden * @extends CM_FormField_Abstract */ var CM_FormField_Hidden = CM_FormField_Abstract.extend({ _class: 'CM_FormField_Hidden', /** * @return String */ getValue: function() { return this.$('input').val(); }, /** * @param {String} value */ setValue: function(value) { t...
Add value getter/setter for hidden form field
Add value getter/setter for hidden form field
JavaScript
mit
alexispeter/CM,christopheschwyzer/CM,mariansollmann/CM,alexispeter/CM,christopheschwyzer/CM,alexispeter/CM,fauvel/CM,fvovan/CM,christopheschwyzer/CM,cargomedia/CM,fauvel/CM,tomaszdurka/CM,tomaszdurka/CM,cargomedia/CM,zazabe/cm,mariansollmann/CM,tomaszdurka/CM,christopheschwyzer/CM,tomaszdurka/CM,njam/CM,fauvel/CM,alexi...
javascript
## Code Before: /** * @class CM_FormField_Hidden * @extends CM_FormField_Abstract */ var CM_FormField_Hidden = CM_FormField_Abstract.extend({ _class: 'CM_FormField_Hidden' }); ## Instruction: Add value getter/setter for hidden form field ## Code After: /** * @class CM_FormField_Hidden * @extends CM_FormField_Abs...
6c6fe63cc527fed6da35a5faa48cdb23e6204848
app/assets/stylesheets/govuk-component/govspeak/_call-to-action.scss
app/assets/stylesheets/govuk-component/govspeak/_call-to-action.scss
// Govspeak call to action // http://govuk-component-guide.herokuapp.com/components/govspeak/fixtures/call_to_action // // Support: // // - alphagov/whitehall: ✔︎ // - alphagov/govspeak: ✔︎ .govuk-govspeak { .call-to-action { margin-top: $gutter; margin-bottom: $gutter; background-color: $panel-colour; ...
// Govspeak call to action // http://govuk-component-guide.herokuapp.com/components/govspeak/fixtures/call_to_action // // Support: // // - alphagov/whitehall: ✔︎ // - alphagov/govspeak: ✔︎ .govuk-govspeak { .call-to-action { margin-top: $gutter; margin-bottom: $gutter; background-color: $panel-colour; ...
Apply rationalised design to call to action
Apply rationalised design to call to action The template consolidation team have been working on Govspeak and have produced a rationalised design for the various Govspeak callouts. This modifies the ‘call to action’ callout to use 2em padding. It also removes a redundant declaration - ordered lists already have a lis...
SCSS
mit
alphagov/static,alphagov/static,alphagov/static
scss
## Code Before: // Govspeak call to action // http://govuk-component-guide.herokuapp.com/components/govspeak/fixtures/call_to_action // // Support: // // - alphagov/whitehall: ✔︎ // - alphagov/govspeak: ✔︎ .govuk-govspeak { .call-to-action { margin-top: $gutter; margin-bottom: $gutter; background-color: ...
c81fff4ff4cccc51faf47c7ca9a63cd9eb6a2699
projects/tests/factories.py
projects/tests/factories.py
import factory from django.contrib.auth.models import User from accounts.tests.factories import UserFactory from .. import models class OrganizationFactory(factory.DjangoModelFactory): """Organization factory""" FACTORY_FOR = models.Organization name = factory.Sequence(lambda n: 'organization {}'.format(...
import factory from django.contrib.auth.models import User from accounts.tests.factories import UserFactory from .. import models class OrganizationFactory(factory.DjangoModelFactory): """Organization factory""" FACTORY_FOR = models.Organization name = factory.Sequence(lambda n: 'organization {}'.format(...
Change project factory default values
Change project factory default values
Python
mit
nvbn/coviolations_web,nvbn/coviolations_web
python
## Code Before: import factory from django.contrib.auth.models import User from accounts.tests.factories import UserFactory from .. import models class OrganizationFactory(factory.DjangoModelFactory): """Organization factory""" FACTORY_FOR = models.Organization name = factory.Sequence(lambda n: 'organiza...
7bf70fe520bc203e1590c75a23ec2baeeceb719b
pkgs/development/libraries/libpcap/default.nix
pkgs/development/libraries/libpcap/default.nix
{ stdenv, fetchurl, flex, bison }: stdenv.mkDerivation rec { name = "libpcap-1.9.0"; src = fetchurl { url = "https://www.tcpdump.org/release/${name}.tar.gz"; sha256 = "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"; }; nativeBuildInputs = [ flex bison ]; # We need to force the autodetection...
{ stdenv, fetchurl, flex, bison }: stdenv.mkDerivation rec { name = "libpcap-1.9.0"; src = fetchurl { url = "https://www.tcpdump.org/release/${name}.tar.gz"; sha256 = "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"; }; nativeBuildInputs = [ flex bison ]; # We need to force the autodetection...
Add missing include, fix w/musl
pcap: Add missing include, fix w/musl
Nix
mit
SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,Symb...
nix
## Code Before: { stdenv, fetchurl, flex, bison }: stdenv.mkDerivation rec { name = "libpcap-1.9.0"; src = fetchurl { url = "https://www.tcpdump.org/release/${name}.tar.gz"; sha256 = "06bhydl4vr4z9c3vahl76f2j96z1fbrcl7wwismgs4sris08inrf"; }; nativeBuildInputs = [ flex bison ]; # We need to force t...
b81cce6c7333f638fd2fcfa35394040e25cf1769
karma.conf.js
karma.conf.js
const webpackConfig = require('./webpack.config'); webpackConfig.devtool = 'inline-source-map'; webpackConfig.externals = { 'react/lib/ExecutionEnvironment': true, 'react/lib/ReactContext': 'window' }; module.exports = (config) => { config.set({ browsers: ['PhantomJS'], singleRun: true, frameworks: [...
const webpackConfig = require('./webpack.config'); webpackConfig.devtool = 'inline-source-map'; webpackConfig.externals = { 'react/lib/ExecutionEnvironment': true, 'react/lib/ReactContext': 'window', 'react/addons': true }; module.exports = (config) => { config.set({ browsers: ['PhantomJS'], singleRun:...
Fix karma tests not building
Fix karma tests not building
JavaScript
mit
nickbabcock/udps,nickbabcock/udps,nickbabcock/udps
javascript
## Code Before: const webpackConfig = require('./webpack.config'); webpackConfig.devtool = 'inline-source-map'; webpackConfig.externals = { 'react/lib/ExecutionEnvironment': true, 'react/lib/ReactContext': 'window' }; module.exports = (config) => { config.set({ browsers: ['PhantomJS'], singleRun: true, ...
de1848878879b8e09fa1e49229f1b36480ced1cf
boot/bionitio-boot-test.sh
boot/bionitio-boot-test.sh
BOOTSTRAP_SCRIPT=$1 # Run the script and create a new python repository ${BOOTSTRAP_SCRIPT} -i python -n skynet -c BSD-3-Clause -a 'Miles Bennett Dyson' -e 'miles@cyberdyne.com' -l logfile # Install the new program into a virtual environment python3 -m venv skynet_dev source skynet_dev/bin/activate pip install -U sk...
BOOTSTRAP_SCRIPT=$1 # Run the script and create a new python repository ${BOOTSTRAP_SCRIPT} -i python -n biodemo -c BSD-3-Clause -a 'Example Author Name' -e 'example@email.address.com' -l logfile # Install the new program into a virtual environment python3 -m venv biodemo_dev source biodemo_dev/bin/activate pip inst...
Replace skynet with biodemo and use generic author name and email address
Replace skynet with biodemo and use generic author name and email address
Shell
mit
biotool-paper/biotool,biotool-paper/biotool,bionitio-team/bionitio,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool,biotool-paper/biotool
shell
## Code Before: BOOTSTRAP_SCRIPT=$1 # Run the script and create a new python repository ${BOOTSTRAP_SCRIPT} -i python -n skynet -c BSD-3-Clause -a 'Miles Bennett Dyson' -e 'miles@cyberdyne.com' -l logfile # Install the new program into a virtual environment python3 -m venv skynet_dev source skynet_dev/bin/activate p...
9522af4d4d244769ba997572306a9d4a43cc8d46
setup.sh
setup.sh
if ! command -v brew > /dev/null; then echo "Homebrew not installed!" echo "In order to use this script please install homebrew from https://brew.sh" exit fi echo "Setting brew" ln -s "$(pwd)"/.Brewfile ~/.Brewfile brew bundle --global echo "Setting vim" if [ ! -d ~/.vim ]; then git clone https://github....
if ! command -v brew > /dev/null; then echo "Homebrew not installed!" echo "In order to use this script please install homebrew from https://brew.sh" exit fi echo "Setting brew" ln -s "$(pwd)"/.Brewfile ~/.Brewfile brew bundle --global echo "Setting vim" if [ ! -d ~/.vim ]; then git clone https://github....
Create config folder to be able to link neovim
Create config folder to be able to link neovim
Shell
mit
csaura/dotfiles
shell
## Code Before: if ! command -v brew > /dev/null; then echo "Homebrew not installed!" echo "In order to use this script please install homebrew from https://brew.sh" exit fi echo "Setting brew" ln -s "$(pwd)"/.Brewfile ~/.Brewfile brew bundle --global echo "Setting vim" if [ ! -d ~/.vim ]; then git clone...
184b7f60c6ae8dd1daf42a25ce7926c0b89d662f
doc/faq.rst
doc/faq.rst
.. 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/. Faq === #. :ref:`what_is_haka` #. :ref:`why_a_new_framework` .. _what_is_haka: What is Haka? ^^^^^^^^^^^^^ Haka i...
.. 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/. Faq === #. :ref:`what_is_haka` #. :ref:`why_a_new_framework` #. :ref:`how_to_start_with_haka` #. :ref:`how_to_contri...
Add FAQ questions & answers
Add FAQ questions & answers
reStructuredText
mpl-2.0
nabilbendafi/haka,Wingless-Archangel/haka,lcheylus/haka,nabilbendafi/haka,Wingless-Archangel/haka,nabilbendafi/haka,lcheylus/haka,lcheylus/haka,haka-security/haka,haka-security/haka,LubyRuffy/haka,haka-security/haka,LubyRuffy/haka
restructuredtext
## 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/. Faq === #. :ref:`what_is_haka` #. :ref:`why_a_new_framework` .. _what_is_haka: What is Haka? ^^^^...
dd3744032ddbe66961533a3cf8836f4d5bd0a938
src/theatralia/core.clj
src/theatralia/core.clj
(ns theatralia.core) ;;; This is an incorrect implementation, such as might be written by ;;; someone who was used to a Lisp in which an empty list is equal to ;;; nil. (defn first-element [sequence default] (if (nil? sequence) default (first sequence)))
(ns theatralia.core) (defn first-element [sequence default] (if (seq sequence) (first sequence) default))
Make the template tests pass
Make the template tests pass Now the CI build should succeed.
Clojure
mit
rmoehn/theatralia,u-o/theatralia
clojure
## Code Before: (ns theatralia.core) ;;; This is an incorrect implementation, such as might be written by ;;; someone who was used to a Lisp in which an empty list is equal to ;;; nil. (defn first-element [sequence default] (if (nil? sequence) default (first sequence))) ## Instruction: Make the template te...
aeb30a7fab7c557ceb88de61d8c273b6537fa018
lib/jiraSOAP/url.rb
lib/jiraSOAP/url.rb
class URL attr_accessor :url # Initializes @url with the correct object type. # @param [String] url string to turn into some kind of URL object # @return [URI::HTTP,NSURL] URI::HTTP on CRuby, NSURL on MacRuby def initialize(url) @url = URI.parse url end # The to_s method technically exists and so me...
class URL # @return [NSURL, URI::HTTP] the type depends on your RUBY_ENGINE attr_accessor :url # Initializes @url with the correct object type. # @param [String] url string to turn into some kind of URL object # @return [URI::HTTP,NSURL] URI::HTTP on CRuby, NSURL on MacRuby def initialize(url) @url = U...
Document the type for the URL class' only attribute
Document the type for the URL class' only attribute
Ruby
mit
Marketcircle/jiraSOAP
ruby
## Code Before: class URL attr_accessor :url # Initializes @url with the correct object type. # @param [String] url string to turn into some kind of URL object # @return [URI::HTTP,NSURL] URI::HTTP on CRuby, NSURL on MacRuby def initialize(url) @url = URI.parse url end # The to_s method technically ...
479fea5b3c0d971e2eebac0857f361264139f37a
lib/get-by-time.js
lib/get-by-time.js
'use strict'; // To make id smaller we get microgseconds count from more recent date var start = Date.UTC(2011, 8, 21) * 1000 // Prefix with number, it reduces chances of collision with variable names // (helpful if used as property names on objects) , prefix = String(Math.floor(Math.random() * 10)) // Make it mor...
'use strict'; // To make id smaller we get microseconds count from more recent date var start = Date.UTC(2012, 12, 21, 12, 0, 0, 0) * 1000 // Prefix with number, it reduces chances of collision with variable names // (helpful if used as property names on objects) , prefix = String(Math.floor(Math.random() * 10)) /...
Make recent date even more recent
Make recent date even more recent
JavaScript
mit
medikoo/time-uuid
javascript
## Code Before: 'use strict'; // To make id smaller we get microgseconds count from more recent date var start = Date.UTC(2011, 8, 21) * 1000 // Prefix with number, it reduces chances of collision with variable names // (helpful if used as property names on objects) , prefix = String(Math.floor(Math.random() * 10))...
94318e952c45dea6b579d3d19648b084e35d1d5b
buildkite/docker/build.sh
buildkite/docker/build.sh
set -euxo pipefail docker build --target ubuntu1404-java8 -t gcr.io/bazel-public/ubuntu1404:java8 . docker push gcr.io/bazel-public/ubuntu1404:java8 docker build --target ubuntu1404-java8 -t gcr.io/bazel-untrusted/ubuntu1404:java8 . docker push gcr.io/bazel-untrusted/ubuntu1404:java8 docker build --target ubuntu160...
set -euxo pipefail for java in java8 nojava; do docker build --target ubuntu1404-java8 -t gcr.io/bazel-public/ubuntu1404:$java . docker push gcr.io/bazel-public/ubuntu1404:$java docker build --target ubuntu1404-java8 -t gcr.io/bazel-untrusted/ubuntu1404:$java . docker push gcr.io/bazel-untrusted/ubuntu1404:$...
Build and push all available Docker images
Build and push all available Docker images
Shell
apache-2.0
bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration
shell
## Code Before: set -euxo pipefail docker build --target ubuntu1404-java8 -t gcr.io/bazel-public/ubuntu1404:java8 . docker push gcr.io/bazel-public/ubuntu1404:java8 docker build --target ubuntu1404-java8 -t gcr.io/bazel-untrusted/ubuntu1404:java8 . docker push gcr.io/bazel-untrusted/ubuntu1404:java8 docker build --...
29f3691906e174ada9adba3935c5ea08715e18dd
ci/tasks/license-finder-report.yml
ci/tasks/license-finder-report.yml
--- platform: linux image_resource: type: docker-image source: {repository: dingotiles/dingo-postgresql-release-pipeline} inputs: - name: boshrelease - name: boshrelease-ci - name: version outputs: - name: license-finder-reports run: path: ./boshrelease-ci/ci/tasks/license-finder-report.sh
--- platform: linux image_resource: type: docker-image source: {repository: ruby, tag: '2.2-slim' } inputs: - name: boshrelease - name: boshrelease-ci - name: version outputs: - name: license-finder-reports run: path: ./boshrelease-ci/ci/tasks/license-finder-report.sh
Use ruby image for license-finder task
Use ruby image for license-finder task
YAML
apache-2.0
drnic/patroni-boshrelease,cloudfoundry-community/patroni-boshrelease,drnic/patroni-boshrelease,dingotiles/patroni-docker-boshrelease,dingotiles/patroni-docker-boshrelease,drnic/patroni-boshrelease,dingotiles/dingo-postgresql-release,dingotiles/dingo-postgresql-release,cloudfoundry-community/patroni-boshrelease,dingotil...
yaml
## Code Before: --- platform: linux image_resource: type: docker-image source: {repository: dingotiles/dingo-postgresql-release-pipeline} inputs: - name: boshrelease - name: boshrelease-ci - name: version outputs: - name: license-finder-reports run: path: ./boshrelease-ci/ci/tasks/license-finder-report.sh ## ...
061c9475c23f0302df6018c3406fcaf487be1551
android/src/main/AndroidManifest.xml
android/src/main/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.dylanvann.fastimage" > <application> <meta-data android:name="com.dylanvann.fastimage.OkHttpProgressGlideModule" android:value="GlideModule...
<manifest package="com.dylanvann.fastimage"> </manifest>
Remove redundant meta-data from manifest
Remove redundant meta-data from manifest
XML
mit
DylanVann/react-native-fast-image,DylanVann/react-native-fast-image,DylanVann/react-native-fast-image,DylanVann/react-native-fast-image
xml
## Code Before: <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.dylanvann.fastimage" > <application> <meta-data android:name="com.dylanvann.fastimage.OkHttpProgressGlideModule" android:va...
81023541f8a8b8be008dd127c678bc3630fab292
playbook-db.yml
playbook-db.yml
--- - hosts: all user: vagrant sudo: true sudo_user: root vars: mongodb_version: 3.0.0 cache_timeout: 259200 tasks: - name: MongoDB | Fetch 10Gen signing key shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 - name: MongoDB | Add 10Gen repository shell: echo 'deb http:/...
--- - hosts: all user: vagrant sudo: true sudo_user: root vars: mongodb_version: 3.0.0 cache_timeout: 259200 tasks: - name: MongoDB | Fetch 10Gen signing key shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 - name: MongoDB | Add 10Gen repository shell: echo "deb http:/...
Create a list file for MongoDB 3.0
Create a list file for MongoDB 3.0
YAML
agpl-3.0
SoftInstigate/restheart-ansible,SoftInstigate/restheart-vagrant
yaml
## Code Before: --- - hosts: all user: vagrant sudo: true sudo_user: root vars: mongodb_version: 3.0.0 cache_timeout: 259200 tasks: - name: MongoDB | Fetch 10Gen signing key shell: apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 - name: MongoDB | Add 10Gen repository shell: ...
6be9a1da44b18834f4e4ccdddaf5697b11309630
src/lib/JsonDBConfig.ts
src/lib/JsonDBConfig.ts
export interface JsonDBConfig { filename: string, saveOnPush: boolean, humanReadable: boolean, separator: string } export class Config implements JsonDBConfig { filename: string humanReadable: boolean saveOnPush: boolean separator: string constructor(filename: string, saveOnPush: boolean = true, hu...
import * as path from "path"; export interface JsonDBConfig { filename: string, saveOnPush: boolean, humanReadable: boolean, separator: string } export class Config implements JsonDBConfig { filename: string humanReadable: boolean saveOnPush: boolean separator: string constructor(filename: string,...
Support non json file extensions
feat(filename): Support non json file extensions
TypeScript
mit
Belphemur/node-json-db,Belphemur/node-json-db
typescript
## Code Before: export interface JsonDBConfig { filename: string, saveOnPush: boolean, humanReadable: boolean, separator: string } export class Config implements JsonDBConfig { filename: string humanReadable: boolean saveOnPush: boolean separator: string constructor(filename: string, saveOnPush: bo...
c1e2ca5cbadd696fc3a8ea8e72662f4c293e856c
src/Naderman/Composer/AWS/S3RemoteFilesystem.php
src/Naderman/Composer/AWS/S3RemoteFilesystem.php
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Naderman\Composer\AWS; use Composer\Composer;...
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Naderman\Composer\AWS; use Composer\Composer;...
Fix modifications of Composer\Util\RemoteFilesystem (constructor)
Fix modifications of Composer\Util\RemoteFilesystem (constructor)
PHP
mit
fdewinne/composer-aws,naderman/composer-aws
php
## Code Before: <?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Naderman\Composer\AWS; use Co...
5288c2b2baac6bed2d0e118a660a3de5d5f8b0b0
app/views/sub-sidebar.html
app/views/sub-sidebar.html
<div class="col-md-3 col-md-offset-1 user-side fixed-pos" style="width: 21%;"> <div class="card side-cards" id="fixed-side"> <div class="card-action pad-card" ng-click="setTab(2)">Overview</div> <div class="card-action pad-card" ng-if="sub.submissions.length > 0" ng-click="setTab(1)">Submissions <span class=...
<div class="col-md-3 col-md-offset-1 user-side fixed-pos" style="width: 21%;"> <div class="card side-cards" id="fixed-side"> <div class="card-action pad-card" ng-click="setTab(2)">Overview</div> <div class="card-action pad-card" ng-if="sub.submissions.length > 0" ng-click="setTab(1)">Submissions <span class=...
Change background color to gray for search tab in sub sidebar
Style: Change background color to gray for search tab in sub sidebar
HTML
mit
sharibarboza/SubSnoop,sharibarboza/SubSnoop
html
## Code Before: <div class="col-md-3 col-md-offset-1 user-side fixed-pos" style="width: 21%;"> <div class="card side-cards" id="fixed-side"> <div class="card-action pad-card" ng-click="setTab(2)">Overview</div> <div class="card-action pad-card" ng-if="sub.submissions.length > 0" ng-click="setTab(1)">Submissi...
708b3c14098537ee302c5a0bc1a1ece9abe4ce8f
src/components/RenderCanvas/GenericCanvasElement/index.css
src/components/RenderCanvas/GenericCanvasElement/index.css
.selected-canvas-element { /* TODO: Add a proper selected canvas element effect. */ }
.selected-canvas-element { box-shadow: 0 0 16px black; background: rgba(255, 255, 255, 0.5); }
Revert "Revert "Revert "Remove selected canvas element effect CSS."""
Revert "Revert "Revert "Remove selected canvas element effect CSS.""" This reverts commit c9d61e43ed70043b176875408b8dad9141e37602.
CSS
mit
crrio/maplestory.design,crrio/maplestory.design
css
## Code Before: .selected-canvas-element { /* TODO: Add a proper selected canvas element effect. */ } ## Instruction: Revert "Revert "Revert "Remove selected canvas element effect CSS.""" This reverts commit c9d61e43ed70043b176875408b8dad9141e37602. ## Code After: .selected-canvas-element { box-shadow: 0 0 16px ...
ea512cb0f3cb159707eb29fdbf2e31bbb1c1b902
.travis.yml
.travis.yml
language: rust sudo: false cache: cargo os: - linux - osx rust: - stable - nightly env: - CLIPPY="true" - CLIPPY="" install: - if [ -n "$CLIPPY" ]; then cargo install -f clippy; fi matrix: fast_finish: true exclude: - rust: stable env: CLIPPY="true" - rust: nightly env: CLIPP...
language: rust sudo: false cache: cargo os: - linux - osx rust: - stable - nightly env: - CLIPPY="true" - CLIPPY="" install: - if [ -n "$CLIPPY" ]; then rustup component add clippy-preview; fi matrix: fast_finish: true exclude: - rust: stable env: CLIPPY="true" - rust: nightly ...
Switch to rustup clippy component
Switch to rustup clippy component
YAML
apache-2.0
jwilm/alacritty,alacritty/alacritty,jwilm/alacritty,jwilm/alacritty,jwilm/alacritty,alacritty/alacritty
yaml
## Code Before: language: rust sudo: false cache: cargo os: - linux - osx rust: - stable - nightly env: - CLIPPY="true" - CLIPPY="" install: - if [ -n "$CLIPPY" ]; then cargo install -f clippy; fi matrix: fast_finish: true exclude: - rust: stable env: CLIPPY="true" - rust: nightly ...
5523946b35d076c47be92d703cdb071c18f6d0ec
tests/test_subgenerators.py
tests/test_subgenerators.py
import pytest from resumeback import send_self from . import CustomError, defer, wait_until_finished, State def test_subgenerator_next(): ts = State() def subgenerator(this): yield defer(this.next) ts.run = True @send_self def func(this): yield from subgenerator(this) ...
import pytest from resumeback import send_self from . import CustomError, defer, wait_until_finished, State def test_subgenerator_next(): ts = State() def subgenerator(this): yield defer(this.next) ts.run = True @send_self def func(this): yield from subgenerator(this) ...
Add test for decorated subgenerator
Add test for decorated subgenerator
Python
mit
FichteFoll/resumeback
python
## Code Before: import pytest from resumeback import send_self from . import CustomError, defer, wait_until_finished, State def test_subgenerator_next(): ts = State() def subgenerator(this): yield defer(this.next) ts.run = True @send_self def func(this): yield from subgener...
d2700b0d5067dbc003cd9b872a577456c011c936
src/App.js
src/App.js
import { Flux } from 'flumpt'; import React from 'react'; import Root from './components/Root'; import { EVENTS } from './consts'; import ModelContainer from './containers/ModelContainer'; export default class App extends Flux { constructor({ renderer }) { super({ renderer, initialState: App._crea...
import { Flux } from 'flumpt'; import React from 'react'; import Root from './components/Root'; import { EVENTS } from './consts'; import ModelContainer from './containers/ModelContainer'; export default class App extends Flux { constructor({ renderer }) { super({ renderer, initialState: App._crea...
Attach logging to events triggered by "dispatch" now
Attach logging to events triggered by "dispatch" now
JavaScript
apache-2.0
kjirou/battle-reversi,kjirou/reversi-tactics,kjirou/reversi-tactics,kjirou/battle-reversi
javascript
## Code Before: import { Flux } from 'flumpt'; import React from 'react'; import Root from './components/Root'; import { EVENTS } from './consts'; import ModelContainer from './containers/ModelContainer'; export default class App extends Flux { constructor({ renderer }) { super({ renderer, initial...
9b21238e9e44d00db3a527abaf1e5d194429a54b
.github/PULL_REQUEST_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
- [ ] Add test that verifies the modified behavior - [ ] Add documentation if it changes public API ## Changelog Please summarize the changes in a way that makes sense inside the changelog. Feel free to add migration tips or examples if necessary.
- [ ] Add test that verifies the modified behavior - [ ] Add documentation if it changes public API ## Expectations on changes 1. Please don't do code changes and move code around in the same PR, even if you are making code better. Make sure the reviewer can see just the changes which fix the problem. This can make ...
Add Expectations on changes section
Add Expectations on changes section
Markdown
mit
cssinjs/jss,cssinjs/jss,jsstyles/jss,jsstyles/jss
markdown
## Code Before: - [ ] Add test that verifies the modified behavior - [ ] Add documentation if it changes public API ## Changelog Please summarize the changes in a way that makes sense inside the changelog. Feel free to add migration tips or examples if necessary. ## Instruction: Add Expectations on changes section ...
edc219356f585b570a49d8c3acdf6aef0416e7d1
templates/disclaimer.html
templates/disclaimer.html
<footer> <p> Dette er en uavhengig nettside og er verken tilknyttet NTNU eller linjeforeningen for Fysikk og Matematikk (Nabla). Kildekoden til denne nettsiden og kontakt kan fås <a href='https://github.com/JakobGM/django-kokekunster'>her</a>. </p> </footer>
<footer> <p> Dette er en uavhengig nettside og er verken tilknyttet NTNU eller noen av dets linjeforeninger. Kildekoden til denne nettsiden er tilgjengelig <a href='https://github.com/JakobGM/WikiLinks'>her</a> og kontakt kan fås på e-post til kokekunster (krøllalfa) gmail (dått) no. </p> </footer>
Update footer text for new branding
Update footer text for new branding Fixes #82.
HTML
mit
afriestad/WikiLinks,afriestad/WikiLinks,afriestad/WikiLinks
html
## Code Before: <footer> <p> Dette er en uavhengig nettside og er verken tilknyttet NTNU eller linjeforeningen for Fysikk og Matematikk (Nabla). Kildekoden til denne nettsiden og kontakt kan fås <a href='https://github.com/JakobGM/django-kokekunster'>her</a>. </p> </footer> ## Instruction: Update footer text for new...
5ad19991a852b6ad8612dca30a7214b44054d990
README.md
README.md
A Titanium module for registering a device with Google Cloud Messaging and handling push notifications sent to the device. [![gitTio](http://gitt.io/badge.png)](http://gitt.io/component/nl.vanvianen.android.gcm) Read the [documentation](https://github.com/morinel/gcmpush/blob/master/documentation/index.md). To buil...
A Titanium module for registering a device with Google Cloud Messaging and handling push notifications sent to the device. [![gitTio](http://gitt.io/badge.png)](http://gitt.io/component/nl.vanvianen.android.gcm) Read the [documentation](https://github.com/morinel/gcmpush/blob/master/documentation/index.md). To buil...
Update build instructions for Ti SDK 7.0.0
Update build instructions for Ti SDK 7.0.0
Markdown
apache-2.0
morinel/gcmpush,morinel/gcmpush,cr0ybot/gcmpush,morinel/gcmpush,cr0ybot/gcmpush,cr0ybot/gcmpush
markdown
## Code Before: A Titanium module for registering a device with Google Cloud Messaging and handling push notifications sent to the device. [![gitTio](http://gitt.io/badge.png)](http://gitt.io/component/nl.vanvianen.android.gcm) Read the [documentation](https://github.com/morinel/gcmpush/blob/master/documentation/ind...
c75c0f0d6156429fae8bc864eb8270c017c432b4
playbooks/tasks/os/Ubuntu.yml
playbooks/tasks/os/Ubuntu.yml
--- # tasks on Ubuntu - set_fact: apt_repositories: - bionic main restricted - bionic-updates main restricted - bionic universe - bionic-updates universe - bionic multiverse - bionic-updates multiverse - bionic-backports main restricted universe multiverse - name: Remove ar...
--- # tasks on Ubuntu - set_fact: apt_repositories: - bionic main restricted - bionic-updates main restricted - bionic universe - bionic-updates universe - bionic multiverse - bionic-updates multiverse - bionic-backports main restricted universe multiverse - block: - nam...
Set timezone to Asia/Tokyo. This image is usually used in Japan.
Set timezone to Asia/Tokyo. This image is usually used in Japan.
YAML
mit
FGtatsuro/infra-bridgehead,FGtatsuro/infra-bridgehead
yaml
## Code Before: --- # tasks on Ubuntu - set_fact: apt_repositories: - bionic main restricted - bionic-updates main restricted - bionic universe - bionic-updates universe - bionic multiverse - bionic-updates multiverse - bionic-backports main restricted universe multiverse -...
ffda8678b763edacc5b5b1513b72760558af738d
src/ui/components/PlayingBar/PlayingBar.css
src/ui/components/PlayingBar/PlayingBar.css
.playing-bar { -webkit-app-region: no-drag; display: flex; align-items: center; justify-content: space-between; text-align: center; } .playing-bar__cover { width: 60px; flex: 0 0 auto; } .playing-bar__queue { -webkit-app-region: no-drag; width: 60px; flex: 0 0 auto; position: relative; } .queue...
.playing-bar { display: flex; align-items: center; justify-content: space-between; text-align: center; } .playing-bar__cover { width: 60px; flex: 0 0 auto; } .playing-bar__queue { -webkit-app-region: no-drag; width: 60px; flex: 0 0 auto; position: relative; } .queue-toggle { color: inherit; b...
Fix some regions of the header not being draggable
Fix some regions of the header not being draggable
CSS
mit
KeitIG/museeks,KeitIG/museeks,KeitIG/museeks
css
## Code Before: .playing-bar { -webkit-app-region: no-drag; display: flex; align-items: center; justify-content: space-between; text-align: center; } .playing-bar__cover { width: 60px; flex: 0 0 auto; } .playing-bar__queue { -webkit-app-region: no-drag; width: 60px; flex: 0 0 auto; position: rel...
2a34ffded878c9cb5cb257c0202448db54399147
centreon/features/CustomViews.feature
centreon/features/CustomViews.feature
Feature: Custom views As a Centreon user I want to share my custom views So that other users can benefit from it Background: Given I am logged in a Centreon server with some widgets Scenario: Create public share Given a user sharing publicly a custom view When another user ...
Feature: Custom views As a Centreon user I want to share my custom views So that other users can benefit from it Background: Given I am logged in a Centreon server with some widgets Scenario: Create public share Given a user sharing publicly a custom view When another user ...
Update custom views test feature file.
Update custom views test feature file.
Cucumber
apache-2.0
centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon,centreon/centreon
cucumber
## Code Before: Feature: Custom views As a Centreon user I want to share my custom views So that other users can benefit from it Background: Given I am logged in a Centreon server with some widgets Scenario: Create public share Given a user sharing publicly a custom view Wh...
89522b8983cc12f7e033eb7f3a4f7bbc10b9d92b
src/main/java/org/purescript/psi/declaration/PSFixityDeclaration.kt
src/main/java/org/purescript/psi/declaration/PSFixityDeclaration.kt
package org.purescript.psi.declaration import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import org.purescript.psi.PSPsiElement import org.purescript.psi.name.PSOperatorName class PSFixityDeclaration(node: ASTNode) : PSPsiElement(node), PsiNameIdentifie...
package org.purescript.psi.declaration import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import org.purescript.psi.PSPsiElement import org.purescript.psi.name.PSOperatorName class PSFixityDeclaration(node: ASTNode) : PSPsiElement(node), PsiNameIdentifie...
Fix navigation location for fixity declaration
Fix navigation location for fixity declaration
Kotlin
bsd-3-clause
intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript
kotlin
## Code Before: package org.purescript.psi.declaration import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.PsiNameIdentifierOwner import org.purescript.psi.PSPsiElement import org.purescript.psi.name.PSOperatorName class PSFixityDeclaration(node: ASTNode) : PSPsiElement(node), ...
18b143d7f27683b1b28f053ed93ff57248518eb0
src/test/resources/rqg_config.json
src/test/resources/rqg_config.json
{"node_info":[{"isMasterNode":"true","membasePassword":"password","n1qlPort":8093,"membaseUserId":"Administrator","port":8093,"machineUserId":"root","ip":"localhost","services":["kv","n1ql","index"],"machinePassword":"couchbase","indexPort":9102},{"isMasterNode":"false","membasePassword":"password","n1qlPort":9500,"mem...
{"node_info":[{"isMasterNode":"true","membasePassword":"password","n1qlPort":8093,"membaseUserId":"Administrator","port":8093,"machineUserId":"root","ip":"localhost","services":["kv","n1ql","index"],"machinePassword":"couchbase","indexPort":9102}], "bucket_info":[],"global":{"membasePassword":"password","n1qlPort":8093...
Fix environment configs for local environment
Test:: Fix environment configs for local environment
JSON
apache-2.0
jdbc-json/jdbc-cb
json
## Code Before: {"node_info":[{"isMasterNode":"true","membasePassword":"password","n1qlPort":8093,"membaseUserId":"Administrator","port":8093,"machineUserId":"root","ip":"localhost","services":["kv","n1ql","index"],"machinePassword":"couchbase","indexPort":9102},{"isMasterNode":"false","membasePassword":"password","n1q...
e15f63bbcc27c44dc6f0be1c89b058d43e7c4b67
lib/awsraw.rb
lib/awsraw.rb
require "awsraw/version" require "awsraw/s3/canonicalized_resource" require "awsraw/s3/client" require "awsraw/s3/faraday_middleware" require "awsraw/s3/query_string_signer" require "awsraw/s3/signature" require "awsraw/s3/string_to_sign"
require "awsraw/error" require "awsraw/version" require "awsraw/s3/canonicalized_resource" require "awsraw/s3/client" require "awsraw/s3/content_md5_header" require "awsraw/s3/faraday_middleware" require "awsraw/s3/query_string_signer" require "awsraw/s3/signature" require "awsraw/s3/string_to_sign"
Add missing requires to top level.
Add missing requires to top level.
Ruby
mit
envato/awsraw,envato/awsraw
ruby
## Code Before: require "awsraw/version" require "awsraw/s3/canonicalized_resource" require "awsraw/s3/client" require "awsraw/s3/faraday_middleware" require "awsraw/s3/query_string_signer" require "awsraw/s3/signature" require "awsraw/s3/string_to_sign" ## Instruction: Add missing requires to top level. ## Code Aft...
f07c1a9a68fdd0115b1aa19392e4d22c0ac1c198
.travis.yml
.travis.yml
language: python virtualenv: system_site_packages: true env: matrix: - PYTHON_VERSION="3.4" - PYTHON_VERSION="3.5" - PYTHON_VERSION="3.6" install: - source ci/travis_install.sh script: - pytest -v after_success: - coveralls cache: apt sudo: false
language: python virtualenv: system_site_packages: true env: matrix: - PYTHON_VERSION="3.4" - PYTHON_VERSION="3.5" install: - source ci/travis_install.sh script: - pytest -v after_success: - coveralls cache: apt sudo: false
Remove python 3.6 from Travis CI (not yet supported?)
Remove python 3.6 from Travis CI (not yet supported?)
YAML
mit
linguistica-uchicago/lxa5,linguistica-uchicago/lxa5,jacksonllee/lxa5,jacksonllee/lxa5
yaml
## Code Before: language: python virtualenv: system_site_packages: true env: matrix: - PYTHON_VERSION="3.4" - PYTHON_VERSION="3.5" - PYTHON_VERSION="3.6" install: - source ci/travis_install.sh script: - pytest -v after_success: - coveralls cache: apt sudo: false ## Instruction: Remove pyth...
57fbef9eca234665761331160a2e1afa41ec7809
src/Http/assets.php
src/Http/assets.php
<?php namespace {{ theme.namespace }}\Http; use function {{ theme.namespace }}\asset_path; /* |----------------------------------------------------------------- | Theme Assets |----------------------------------------------------------------- | | This file is for registering your theme stylesheets and scripts. | In ...
<?php namespace {{ theme.namespace }}\Http; use function {{ theme.namespace }}\asset_path; /* |----------------------------------------------------------------- | Theme Assets |----------------------------------------------------------------- | | This file is for registering your theme stylesheets and scripts. | In ...
Remove enqueue of bootstrap.css asset
Remove enqueue of bootstrap.css asset
PHP
mit
tonik/theme,tonik/tonik,tonik/tonik,tonik/theme
php
## Code Before: <?php namespace {{ theme.namespace }}\Http; use function {{ theme.namespace }}\asset_path; /* |----------------------------------------------------------------- | Theme Assets |----------------------------------------------------------------- | | This file is for registering your theme stylesheets an...
94db84f53c9623cdcbdccd0081f39c7f2684e9da
doc/address.md
doc/address.md
```ruby Faker::Address.city #=> "Imogeneborough" Faker::Address.street_name #=> "Larkin Fork" Faker::Address.street_address #=> "282 Kevin Brook" Faker::Address.secondary_address #=> "Apt. 672" Faker::Address.building_number #=> "7304" Faker::Address.zip_code #=> "58517" Faker::Address.zip #=> "58517" Faker::Ad...
```ruby Faker::Address.city #=> "Imogeneborough" Faker::Address.street_name #=> "Larkin Fork" Faker::Address.street_address #=> "282 Kevin Brook" Faker::Address.secondary_address #=> "Apt. 672" Faker::Address.building_number #=> "7304" Faker::Address.zip_code #=> "58517" or "23285-4905" Faker::Address.zip #=> "5...
Update output for zip functions
Update output for zip functions
Markdown
mit
vveliev/faker,kubapol/faker,stympy/faker,irfanah/faker,joelibaceta/faker,kubapol/faker,kubapol/faker,Dakurei/faker,irfanah/faker,irfanah/faker
markdown
## Code Before: ```ruby Faker::Address.city #=> "Imogeneborough" Faker::Address.street_name #=> "Larkin Fork" Faker::Address.street_address #=> "282 Kevin Brook" Faker::Address.secondary_address #=> "Apt. 672" Faker::Address.building_number #=> "7304" Faker::Address.zip_code #=> "58517" Faker::Address.zip #=> "5...
369466113b31e80ad7ee6832da323f698fbfee44
README.markdown
README.markdown
Overrides the click event on mobile devices to fire an click event immediately and get rid of the 300ms delay (webkit for iPhone and Android problem).
Overrides the click event on mobile devices to fire a click event immediately and get rid of the 300ms delay (webkit for iPhone and Android problem). touchToClick will fire an artificial `click` event when the `touchend` event is fired and the user hasn't moved since `touchstart`. The original `click` event of the mob...
Add some more docu and link to FastClick
Add some more docu and link to FastClick
Markdown
mit
cargomedia/jquery.touchToClick
markdown
## Code Before: Overrides the click event on mobile devices to fire an click event immediately and get rid of the 300ms delay (webkit for iPhone and Android problem). ## Instruction: Add some more docu and link to FastClick ## Code After: Overrides the click event on mobile devices to fire a click event immediatel...
cdae77dee9888d6d6094566747650bf80d631f03
station.py
station.py
"""Creates the station class""" #import ask_user from ask_user #import int_check from int_check #import reasonable_check from reasonable_check class Station: """ Each train station is an instance of the Station class. Methods: __init__: creates a new stations total_station_pop: calculates total...
"""Creates the station class""" #import request_integer_in_range from request_integer_in_range class Station: """ Each train station is an instance of the Station class. Methods: __init__: creates a new stations request_integer_in_range : requests an integer in a range """ def __...
Integrate integer test function into instantiation
Integrate integer test function into instantiation Ref #23
Python
mit
ForestPride/rail-problem
python
## Code Before: """Creates the station class""" #import ask_user from ask_user #import int_check from int_check #import reasonable_check from reasonable_check class Station: """ Each train station is an instance of the Station class. Methods: __init__: creates a new stations total_station_pop: ...
8118dcf15e59fdd32471a7e303af66ca90e09e5c
build-android-release.sh
build-android-release.sh
echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/build/outputs/apk/android-release-...
echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/app/build/outputs/apk/rele...
Fix for new paths in Cordova 8
Fix for new paths in Cordova 8
Shell
apache-2.0
evothings/evothings-viewer,evothings/evothings-viewer,evothings/evothings-viewer,evothings/evothings-viewer
shell
## Code Before: echo "Building Android release APK" cordova build android --release jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../keys/evothings.keystore platforms/android/build/outputs/apk/android-release-unsigned.apk evothings_alias jarsigner -verify -verbose platforms/android/build/outputs/apk/...
a2967f5df7dd86cf3cd434f5e1115f6e714420da
register.php
register.php
<?php $REGISTER_LTI2 = array( "name" => "Simple Attendance Tool", "short_name" => "Attendance Tool", "description" => "This is a simple attendance tool that allows the instructor to set a code and the students enter the code." );
<?php $REGISTER_LTI2 = array( "name" => "Simple Attendance Tool", "FontAwesome" => "fa-server", "short_name" => "Attendance Tool", "description" => "This is a simple attendance tool that allows the instructor to set a code and the students enter the code." );
Add FontAwesome icons to the tool registration.
Add FontAwesome icons to the tool registration.
PHP
apache-2.0
csev/tsugi-php-mod,csev/tsugi-php-mod,tsugitools/attend,csev/tsugi-php-mod,csev/tsugi-php-mod,csev/tsugi-php-mod
php
## Code Before: <?php $REGISTER_LTI2 = array( "name" => "Simple Attendance Tool", "short_name" => "Attendance Tool", "description" => "This is a simple attendance tool that allows the instructor to set a code and the students enter the code." ); ## Instruction: Add FontAwesome icons to the tool registration. ## Code...
b8f60b0cb80857dea39169acca9bce98e35c52eb
app/assets/javascripts/bounties.js.coffee
app/assets/javascripts/bounties.js.coffee
$('body.bounties.index').ready -> # Added a parser for the my-bounty input fields $.fn.dataTable.ext.order['dom-input-numeric'] = (_settings, col) -> return this.api().column(col, {order: 'index'}).nodes().map (td, _i) -> return $('input#bounty_value', td).val() * 1 $('#bounties-table...
$('body.bounties.index').ready -> # Added a parser for the my-bounty input fields $.fn.dataTable.ext.order['dom-input-numeric'] = (_settings, col) -> return this.api().column(col, {order: 'index'}).nodes().map (td, _i) -> return $('input#bounty_value', td).val() * 1 $('#bounties-table...
Remove clutter from bounties page
Remove clutter from bounties page
CoffeeScript
mit
ZeusWPI/gamification,ZeusWPI/gamification,ZeusWPI/gamification,ZeusWPI/gamification
coffeescript
## Code Before: $('body.bounties.index').ready -> # Added a parser for the my-bounty input fields $.fn.dataTable.ext.order['dom-input-numeric'] = (_settings, col) -> return this.api().column(col, {order: 'index'}).nodes().map (td, _i) -> return $('input#bounty_value', td).val() * 1 $(...
24363587e286d98fafd801eaf750dde726535641
Casks/trailer.rb
Casks/trailer.rb
cask 'trailer' do version '1.3.16' sha256 '4004b46c1fb50aab721410ab6bb109afa4eb8cfadc42abfd3183183964654b87' url "https://ptsochantaris.github.io/trailer/trailer#{version.no_dots}.zip" appcast 'https://ptsochantaris.github.io/trailer/appcast.xml', checkpoint: 'eeded65b93ba8a391c14e4b5e60187bc56c56cdb...
cask 'trailer' do version '1.3.17' sha256 '3c556eb1e68751818346e3468ca5d779c7f38f1ad3cd9b8d14a3baddc7deb2be' url "https://ptsochantaris.github.io/trailer/trailer#{version.no_dots}.zip" appcast 'https://ptsochantaris.github.io/trailer/appcast.xml', checkpoint: 'eeded65b93ba8a391c14e4b5e60187bc56c56cdb...
Update Trailer to version 1.3.17
Update Trailer to version 1.3.17 This commit updates the version and sha256 stanzas.
Ruby
bsd-2-clause
miccal/homebrew-cask,a1russell/homebrew-cask,FinalDes/homebrew-cask,riyad/homebrew-cask,MoOx/homebrew-cask,optikfluffel/homebrew-cask,asins/homebrew-cask,samdoran/homebrew-cask,jellyfishcoder/homebrew-cask,vigosan/homebrew-cask,kesara/homebrew-cask,greg5green/homebrew-cask,shonjir/homebrew-cask,RJHsiao/homebrew-cask,je...
ruby
## Code Before: cask 'trailer' do version '1.3.16' sha256 '4004b46c1fb50aab721410ab6bb109afa4eb8cfadc42abfd3183183964654b87' url "https://ptsochantaris.github.io/trailer/trailer#{version.no_dots}.zip" appcast 'https://ptsochantaris.github.io/trailer/appcast.xml', checkpoint: 'eeded65b93ba8a391c14e4b5...
ca655461571005000a46768bf808fee7beb57d82
appveyor.yml
appveyor.yml
init: - git config --global core.autocrlf input # what combinations to test environment: matrix: - nodejs_version: 0.10 install: - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) - npm install - npm install -g bower - bower install build: off test_script: - node --vers...
init: - git config --global core.autocrlf input # what combinations to test environment: matrix: - nodejs_version: 0.10 install: - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) - npm cache clean - npm install - npm install -g bower - bower install build: off test_scr...
Clean cache before npm install on windows
Clean cache before npm install on windows
YAML
mit
tracer99/steal,mcanthony/steal,stealjs/steal,mcanthony/steal,tracer99/steal,matthewbauer/steal,stealjs/steal,matthewbauer/steal
yaml
## Code Before: init: - git config --global core.autocrlf input # what combinations to test environment: matrix: - nodejs_version: 0.10 install: - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) - npm install - npm install -g bower - bower install build: off test_script:...
5e44054ad4223d32b53c2312ecd5798b0e114548
main.js
main.js
exports.AgGridAurelia = require('./lib/agGridAurelia').AgGridAurelia; exports.AgGridColumn = require('./lib/agGridColumn').AgGridColumn; exports.AgCellTemplate = require('./lib/agTemplate').AgCellTemplate; exports.AgEditorTemplate = require('./lib/agTemplate').AgEditorTemplate; exports.AgFilterTemplate = require('./li...
exports.AgGridAurelia = require('./lib/agGridAurelia').AgGridAurelia; exports.AgGridColumn = require('./lib/agGridColumn').AgGridColumn; exports.AgCellTemplate = require('./lib/agTemplate').AgCellTemplate; exports.AgEditorTemplate = require('./lib/agTemplate').AgEditorTemplate; exports.AgFullWidthRowTemplate = require...
Add FullWidth row template to exports
Add FullWidth row template to exports
JavaScript
mit
ceolter/ag-grid,ceolter/angular-grid,ceolter/angular-grid,ceolter/ag-grid
javascript
## Code Before: exports.AgGridAurelia = require('./lib/agGridAurelia').AgGridAurelia; exports.AgGridColumn = require('./lib/agGridColumn').AgGridColumn; exports.AgCellTemplate = require('./lib/agTemplate').AgCellTemplate; exports.AgEditorTemplate = require('./lib/agTemplate').AgEditorTemplate; exports.AgFilterTemplate...
15e9312625c10b488ad49f648b95796d7d6ef5f0
lib/run-effects.ts
lib/run-effects.ts
import { OpaqueToken, Provider } from '@angular/core'; import { flatten } from './util'; import { CONNECT_EFFECTS_PROVIDER } from './effects'; import { STATE_UPDATES_PROVIDER } from './state-updates'; export const BOOTSTRAP_EFFECTS = new OpaqueToken('@ngrx/effects Bootstrap Effects'); export function runEffects(...e...
import { OpaqueToken, Provider } from '@angular/core'; import { flatten } from './util'; import { CONNECT_EFFECTS_PROVIDER, BOOTSTRAP_EFFECTS } from './effects'; import { STATE_UPDATES_PROVIDER } from './state-updates'; export function runEffects(...effects: any[]) { const allEffects = flatten(effects).map(effect ...
Fix import for bootstrap effects token
Fix import for bootstrap effects token
TypeScript
mit
ngrx/effects,ngrx/effects
typescript
## Code Before: import { OpaqueToken, Provider } from '@angular/core'; import { flatten } from './util'; import { CONNECT_EFFECTS_PROVIDER } from './effects'; import { STATE_UPDATES_PROVIDER } from './state-updates'; export const BOOTSTRAP_EFFECTS = new OpaqueToken('@ngrx/effects Bootstrap Effects'); export function...
ad8ce01d51fc36492094d9f11dbed4ffc81ee7e1
lib/domgen/imit/templates/client/schema_dagger_module.java.erb
lib/domgen/imit/templates/client/schema_dagger_module.java.erb
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_schema_dagger_module_name) %>; <% entities = repository.data_modules.select { |data_module| data_module.imit? }.collect{|data_module| data_module.entities.select{|entity| entity.imit? && entity.concrete?} }.flatten -%> @javax.an...
/* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_schema_dagger_module_name) %>; <% entities = repository.data_modules.select { |data_module| data_module.imit? }.collect{|data_module| data_module.entities.select{|entity| entity.imit? && entity.concrete?} }.flatten -%> @javax.an...
Add constructor to utility class
Add constructor to utility class
HTML+ERB
apache-2.0
icaughley/domgen,realityforge/domgen,icaughley/domgen,realityforge/domgen
html+erb
## Code Before: /* DO NOT EDIT: File is auto-generated */ package <%= to_package(repository.imit.qualified_schema_dagger_module_name) %>; <% entities = repository.data_modules.select { |data_module| data_module.imit? }.collect{|data_module| data_module.entities.select{|entity| entity.imit? && entity.concrete?} }.flatte...
856b3a3dcb2a1df54236826bc4a95abf35fc23e6
src/Admin/Resources/views/Audit/cget.html.twig
src/Admin/Resources/views/Audit/cget.html.twig
{% extends 'VlRadRestBundle:Default:skeleton.html.twig' %} {% block radrest_content %} <div class="panel-heading"> <h3 class="panel-title">List</h3> </div> <div class="table-responsive"> {% if data|length > 0 %} <table class="table"> <thead> {% set keys = ...
{% extends 'VlRadRestBundle:Default:skeleton.html.twig' %} {% block radrest_content %} <div class="panel-heading"> <h3 class="panel-title">{{ icon('heartbeat') }} Audit log</h3> </div> <div class="table-responsive"> {% if data|length > 0 %} <table class="table"> <thead>...
Add link to target object in audit log list
Add link to target object in audit log list
Twig
agpl-3.0
vierbergenlars/authserver,vierbergenlars/authserver,vierbergenlars/authserver,vierbergenlars/authserver
twig
## Code Before: {% extends 'VlRadRestBundle:Default:skeleton.html.twig' %} {% block radrest_content %} <div class="panel-heading"> <h3 class="panel-title">List</h3> </div> <div class="table-responsive"> {% if data|length > 0 %} <table class="table"> <thead> ...
23b90f13750fff59bebb6f9d87346579b46b16df
src/main/scala/com/microsoft/partnercatalyst/fortis/spark/transforms/topic/KeywordExtractor.scala
src/main/scala/com/microsoft/partnercatalyst/fortis/spark/transforms/topic/KeywordExtractor.scala
package com.microsoft.partnercatalyst.fortis.spark.transforms.topic import com.microsoft.partnercatalyst.fortis.spark.transforms.Tag import org.apache.commons.collections4.trie.PatriciaTrie import scala.collection.mutable.ListBuffer @SerialVersionUID(100L) class KeywordExtractor(keyWords: Seq[String]) extends Serial...
package com.microsoft.partnercatalyst.fortis.spark.transforms.topic import com.microsoft.partnercatalyst.fortis.spark.transforms.Tag import org.apache.commons.collections4.trie.PatriciaTrie import scala.collection.mutable.ListBuffer @SerialVersionUID(100L) class KeywordExtractor(keywords: Seq[String]) extends Serial...
Use lazy and transient initialization in keyword extractor.
Use lazy and transient initialization in keyword extractor. Specifically, only the list of search keywords is non-transient. In this way, the initialization of computable data structures used in the implementation is deferred to the worker nodes.
Scala
mit
CatalystCode/project-fortis-spark
scala
## Code Before: package com.microsoft.partnercatalyst.fortis.spark.transforms.topic import com.microsoft.partnercatalyst.fortis.spark.transforms.Tag import org.apache.commons.collections4.trie.PatriciaTrie import scala.collection.mutable.ListBuffer @SerialVersionUID(100L) class KeywordExtractor(keyWords: Seq[String]...
d1696f9d3a1c71535cea7ea3caf253e93d8cda55
trello_api.mustache
trello_api.mustache
from urllib import quote_plus {{#sections}} from .{{module}} import {{class}} {{/sections}} class TrelloApi(object): def __init__(self, apikey, token=None): self._apikey = apikey self._token = token {{#sections}} self.{{module}} = {{class}}(apikey, token) {{/secti...
from urllib import quote_plus {{#sections}} from .{{module}} import {{class}} {{/sections}} class TrelloApi(object): def __init__(self, apikey, token=None): self._apikey = apikey self._token = token {{#sections}} self.{{module}} = {{class}}(apikey, token) {{/secti...
Add a set_token method to the main api for passing a new token along to all of the various apis.
Add a set_token method to the main api for passing a new token along to all of the various apis.
HTML+Django
bsd-2-clause
samukasmk/TrelloPy,samukasmk/TrelloPy,samukasmk/TrelloPy
html+django
## Code Before: from urllib import quote_plus {{#sections}} from .{{module}} import {{class}} {{/sections}} class TrelloApi(object): def __init__(self, apikey, token=None): self._apikey = apikey self._token = token {{#sections}} self.{{module}} = {{class}}(apikey, token) {{/...
a7e98012122c3ebfc0bce354c3ccc2e0a156a4cc
lib/viget/deployment/common.rb
lib/viget/deployment/common.rb
module Viget module Deployment def self.root_path Pathname.new(File.expand_path(File.dirname(__FILE__))).join('..', '..', '..') end def self.recipes_path root_path.join('lib', 'viget', 'deployment') end end end def run_rake_task(command, options = {}) options[:remote] ||= true if ...
module Viget module Deployment def self.root_path Pathname.new(File.expand_path(File.dirname(__FILE__))).join('..', '..', '..') end def self.recipes_path root_path.join('lib', 'viget', 'deployment') end end end def run_rake_task(command, options = {}) options[:remote] = true unless o...
Fix issue with conditional assignment in hash
Fix issue with conditional assignment in hash the `run_rake_task` method was intended to allow running rake either locally or remotely with the same interface, but the way the default assignment worked it would always set the value for the `:remote` option to `true`. This fixes that issue.
Ruby
mit
vigetlabs/viget-deployment,vigetlabs/viget-deployment
ruby
## Code Before: module Viget module Deployment def self.root_path Pathname.new(File.expand_path(File.dirname(__FILE__))).join('..', '..', '..') end def self.recipes_path root_path.join('lib', 'viget', 'deployment') end end end def run_rake_task(command, options = {}) options[:remote]...
78da7a40db1fa24b40d0937aeab8dc4f7fc19cac
Comfortable_layout_for_Kindle_content_manager.user.css
Comfortable_layout_for_Kindle_content_manager.user.css
/* Comfortable layout for Kindle content manager */ @namespace url("http://www.w3.org/1999/xhtml"); @-moz-document url-prefix("https://www.amazon.co.jp/hz/mycd/myx"), url-prefix("https://www.amazon.co.jp/mn/dcw/myx") { /* Add more height to "List of collection" box in "Add to collection" screen */ .bulkAddToCo...
/* Comfortable layout for Kindle content manager */ @namespace url("http://www.w3.org/1999/xhtml"); @-moz-document url-prefix("https://www.amazon.co.jp/hz/mycd/myx"), url-prefix("https://www.amazon.co.jp/mn/dcw/myx") { /* Add more height to "List of collection" box in "Add to collection" screen */ .bulkAddToCo...
Improve visibility of header line
Improve visibility of header line
CSS
unlicense
curipha/userstyles
css
## Code Before: /* Comfortable layout for Kindle content manager */ @namespace url("http://www.w3.org/1999/xhtml"); @-moz-document url-prefix("https://www.amazon.co.jp/hz/mycd/myx"), url-prefix("https://www.amazon.co.jp/mn/dcw/myx") { /* Add more height to "List of collection" box in "Add to collection" screen *...
a73b9f5e25e17d1b43e85776b9b5d09e4da237e6
src/components/dialog/index.vue
src/components/dialog/index.vue
<template> <div class="weui_dialog_alert" v-show="show" :transition="maskTransition" @touchmove="!this.scroll && $event.preventDefault()"> <div class="weui_mask" @click="hideOnBlur && (show = false)"></div> <div class="weui_dialog" v-show="show" :transition="dialogTransition"> <slot></slot> </div> ...
<template> <div class="weui_dialog_alert" @touchmove="!this.scroll && $event.preventDefault()"> <div class="weui_mask" @click="hideOnBlur && (show = false)" v-show="show" :transition="maskTransition"></div> <div class="weui_dialog" v-show="show" :transition="dialogTransition"> <slot></slot> </div> ...
Set transition to mask element to avoid blink problem
Dialog: Set transition to mask element to avoid blink problem
Vue
mit
huixt/hxvux,airyland/vux,greedying/vux,greedying/vux,huixt/hxvux,szgxwj/vux,greedying/vux,airyland/vux,huixt/hxvux,szgxwj/vux,airyland/vux,szgxwj/vux
vue
## Code Before: <template> <div class="weui_dialog_alert" v-show="show" :transition="maskTransition" @touchmove="!this.scroll && $event.preventDefault()"> <div class="weui_mask" @click="hideOnBlur && (show = false)"></div> <div class="weui_dialog" v-show="show" :transition="dialogTransition"> <slot></sl...
e90f024918679be549709ce47f2d54b9ba51829f
lib/shipit/webhooks.rb
lib/shipit/webhooks.rb
require 'shipit/webhooks/handlers' module Shipit module Webhooks def self.default_handlers { 'push' => [Handlers::PushHandler], 'status' => [Handlers::StatusHandler], 'membership' => [Handlers::MembershipHandler], 'check_suite' => [Handlers::CheckSuiteHandler], } e...
require 'shipit/webhooks/handlers' module Shipit module Webhooks class << self def default_handlers { 'push' => [Handlers::PushHandler], 'status' => [Handlers::StatusHandler], 'membership' => [Handlers::MembershipHandler], 'check_suite' => [Handlers::CheckSui...
Define webhook class methods by opening the singleton class
Define webhook class methods by opening the singleton class
Ruby
mit
Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine,Shopify/shipit-engine
ruby
## Code Before: require 'shipit/webhooks/handlers' module Shipit module Webhooks def self.default_handlers { 'push' => [Handlers::PushHandler], 'status' => [Handlers::StatusHandler], 'membership' => [Handlers::MembershipHandler], 'check_suite' => [Handlers::CheckSuiteHandler...
6c7e456784f0ed7372e0b667f5d04dcdd6fe1af3
lib/shell/plugins/base16/interactive.zsh
lib/shell/plugins/base16/interactive.zsh
BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/" [ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SHELL"/profile_helper.sh)" if [[ -z "$SSH_CONNECTION" ]]; then base16_solarized-dark fi
if [[ "$BASE16_THEME" == "base16-*" ]]; then export BASE16_THEME="$(echo "$BASE16_THEME" | grep --extended-regexp --only '^base16-(.*)$')" fi BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/" [ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SHELL"/profile_helper.sh)" if [[ ...
Fix BASE16_THEME in a nested shell
shell: Fix BASE16_THEME in a nested shell Base16 expects BASE16_THEME to not include a 'base16-' prefix, however, it then resets it to prepend that, so when running a nested subshell without explicitly setting the theme, we must remove the prefix. For simplicity, always remove the prefix when starting a shell.
Shell
mit
amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles,amarshall/dotfiles
shell
## Code Before: BASE16_SHELL="$HOME/.config/dotfiles/shell/vendor/base16-shell/" [ -n "$PS1" ] && [ -s "$BASE16_SHELL/profile_helper.sh" ] && eval "$("$BASE16_SHELL"/profile_helper.sh)" if [[ -z "$SSH_CONNECTION" ]]; then base16_solarized-dark fi ## Instruction: shell: Fix BASE16_THEME in a nested shell Base16 expe...
fb2dfa3e3d5c29189c65d598867f709a76817bf6
.eslintrc.json
.eslintrc.json
{ "extends": ["eslint:recommended"], "plugins": [ "jest" ], "parserOptions": { "ecmaVersion": 8 }, "env": { "node": true, "es6": true, "jest/globals": true }, "globals": {}, "rules": { "no-console": "off", "no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], "com...
{ "extends": ["eslint:recommended"], "plugins": [ "jest" ], "parser": "babel-eslint", "parserOptions": { "ecmaVersion": 8 }, "env": { "node": true, "es6": true, "jest/globals": true }, "globals": {}, "rules": { "no-console": "off", "no-unused-vars": ["error", { "argsIgnor...
Use babel-eslint as a parser
Use babel-eslint as a parser
JSON
mit
ohbarye/review-waiting-list-bot
json
## Code Before: { "extends": ["eslint:recommended"], "plugins": [ "jest" ], "parserOptions": { "ecmaVersion": 8 }, "env": { "node": true, "es6": true, "jest/globals": true }, "globals": {}, "rules": { "no-console": "off", "no-unused-vars": ["error", { "argsIgnorePattern": "...
1fe58ec8c530df5d791fc77179803def877dfa80
_config.yml
_config.yml
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Samy Duc tagline: 'French Nerd' description: 'Follow <a href="https://twitter.com/ricklesauceur" target="_blank">@ricklesauceur</a>.' url: baseur...
markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Samy Duc tagline: 'French, GameDev and hacker. Full time dreamer' description: 'Follow <a href="https://twitter.com/ricklesauceur" target="_blank">@ricklesauce...
Add sitemap and change headline
Add sitemap and change headline
YAML
mit
ricklesauceur/ricklesauceur.github.io,ricklesauceur/ricklesauceur.github.io
yaml
## Code Before: markdown: redcarpet highlighter: pygments # Permalinks permalink: pretty relative_permalinks: true # Setup title: Samy Duc tagline: 'French Nerd' description: 'Follow <a href="https://twitter.com/ricklesauceur" target="_blank">@ricklesauceur</a>.' url: ...
872b8636fe5a1aa5eb38505249edc9fd13dcb70c
test_buffer.go
test_buffer.go
package main import ( "testing" ) func TestPacketAdd(t *testing.T) { pq := PacketQueue{} if pq.Length() != 0 { t.Errorf("Length should be 0 but was %d", pq.Length()) } i, err := pq.Add([]byte{1,2,3,4,5}) if err != nil { t.Error(err) } if i != 0 { t.Errorf("S...
package main import ( "testing" ) func TestPacketAdd(t *testing.T) { pq := PacketQueue{} if pq.Length() != 0 { t.Errorf("Length should be 0 but was %d", pq.Length()) } i, err := pq.Add([]byte{1,2,3,4,5}) if err != nil { t.Error(err) } if i != 0 { t.Errorf("S...
Add some more queue tests
Add some more queue tests
Go
agpl-3.0
erjiang/tuntuntun,erjiang/tuntuntun,erjiang/tuntuntun,erjiang/tuntuntun
go
## Code Before: package main import ( "testing" ) func TestPacketAdd(t *testing.T) { pq := PacketQueue{} if pq.Length() != 0 { t.Errorf("Length should be 0 but was %d", pq.Length()) } i, err := pq.Add([]byte{1,2,3,4,5}) if err != nil { t.Error(err) } if i != 0 { ...
a47ca3490feb7154be20033a8e01c9933a72d87c
config.default.js
config.default.js
/** * 全局配置 * 部署到服务端时,请去掉文件名中的default * 并将以下参数配置完整,重要信息请妥善保管 */ var config = { // port port: process.env.PORT || '3000', // mongodb mongodb: 'mongodb://mongodb-master:27017,mongodb-slave1:27017,mongodb-slave2:27017/wehpu?replicaSet=wehpu', // 小程序ID 需妥善保管! appId: '', // 小程序密钥 需妥善保管! appSecret: ...
/** * 全局配置 * 部署到服务端时,请去掉文件名中的default * 并将以下参数配置完整,重要信息请妥善保管 */ var config = { // port port: process.env.PORT || '3000', // mongodb mongodb: 'mongodb://mongodb-master:27017,mongodb-slave1:27017,mongodb-slave2:27017/wehpu?replicaSet=wehpu', // 小程序ID 需妥善保管! appId: '', // 小程序密钥 需妥善保管! appSecret: ...
Add crypto module for pass
Add crypto module for pass
JavaScript
mit
hpufe/wehpu-engine,hpufe/wehpu-engine,hpufe/wehpu-engine
javascript
## Code Before: /** * 全局配置 * 部署到服务端时,请去掉文件名中的default * 并将以下参数配置完整,重要信息请妥善保管 */ var config = { // port port: process.env.PORT || '3000', // mongodb mongodb: 'mongodb://mongodb-master:27017,mongodb-slave1:27017,mongodb-slave2:27017/wehpu?replicaSet=wehpu', // 小程序ID 需妥善保管! appId: '', // 小程序密钥 需妥善保...
cfc91ed7fb5c9b6f9c724e4debdaf01f463baada
docs/accessing_etcd.md
docs/accessing_etcd.md
In order to access localkube resources from inside a pod, localkube's host ip address must be used. This can be obtained by running: ```shell $ minikube ssh -- "sudo /usr/local/bin/localkube --host-ip" localkube host ip: 10.0.2.15 ``` You can use the host-ip:`10.0.2.15` to access localkube's resources, for example i...
In order to access localkube resources from inside a pod, localkube's host ip address must be used. This can be obtained by running: ```shell $ minikube ssh -- "sudo /usr/local/bin/localkube --host-ip" localkube host ip: 10.0.2.15 ``` You can use the host-ip:`10.0.2.15` to access localkube's resources, for example i...
Add documentation on accessing host resources
Add documentation on accessing host resources
Markdown
apache-2.0
kubernetes/minikube,kubernetes/minikube,dims/minikube,warmchang/minikube,dalehamel/minikube,dims/minikube,dalehamel/minikube,dlorenc/minikube,dlorenc/minikube,kubernetes/minikube,r2d4/minikube,warmchang/minikube,kubernetes/minikube,dlorenc/minikube,dlorenc/minikube,warmchang/minikube,dims/minikube,warmchang/minikube,ku...
markdown
## Code Before: In order to access localkube resources from inside a pod, localkube's host ip address must be used. This can be obtained by running: ```shell $ minikube ssh -- "sudo /usr/local/bin/localkube --host-ip" localkube host ip: 10.0.2.15 ``` You can use the host-ip:`10.0.2.15` to access localkube's resource...
e94a79c0714c0a6254af7b872fb7f0b4d0588800
Components/Queues/Drivers/SyncQueueDriverInterface.php
Components/Queues/Drivers/SyncQueueDriverInterface.php
<?php namespace Smartbox\Integration\FrameworkBundle\Components\Queues\Drivers; use Smartbox\Integration\FrameworkBundle\Components\Queues\QueueMessageInterface; interface SyncQueueDriverInterface extends QueueDriverInterface { /** * Returns true if a subscription already exists, false otherwise. * ...
<?php declare(strict_types=1); namespace Smartbox\Integration\FrameworkBundle\Components\Queues\Drivers; use Smartbox\Integration\FrameworkBundle\Components\Queues\QueueMessageInterface; interface SyncQueueDriverInterface extends QueueDriverInterface { /** * Returns true if a subscription already exists, f...
Add declare strict type in interface where string typehint is used
Add declare strict type in interface where string typehint is used
PHP
mit
smartboxgroup/integration-framework-bundle,smartboxgroup/integration-framework-bundle
php
## Code Before: <?php namespace Smartbox\Integration\FrameworkBundle\Components\Queues\Drivers; use Smartbox\Integration\FrameworkBundle\Components\Queues\QueueMessageInterface; interface SyncQueueDriverInterface extends QueueDriverInterface { /** * Returns true if a subscription already exists, false ot...
00df1e5c6c31f663d36b8e4c86829d322bcfc508
example/saisoku.rb
example/saisoku.rb
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "syoboi_calendar" args = Slop.parse :help => true do on :u, :user=, "Username on SyoboiCalendar" on :p, :pass=, "Password on SyoboiCalendar" end client = SyoboiCalendar::Client.new( :user => args[:user], :pass => args[:pass] ) programs = clie...
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "syoboi_calendar" args = Slop.parse :help => true do on :u, :user=, "Username on SyoboiCalendar" on :p, :pass=, "Password on SyoboiCalendar" end client = SyoboiCalendar::Client.new( :user => args[:user], :pass => args[:pass] ) programs = clie...
Fix bug: lowercase channel name
Fix bug: lowercase channel name
Ruby
mit
r7kamura/syoboi_calendar
ruby
## Code Before: $LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "syoboi_calendar" args = Slop.parse :help => true do on :u, :user=, "Username on SyoboiCalendar" on :p, :pass=, "Password on SyoboiCalendar" end client = SyoboiCalendar::Client.new( :user => args[:user], :pass => args[:pass] )...
467c1a5f04c6fe62b1964893526ce4f0eb2966e5
.travis.yml
.travis.yml
sudo: required dist: trusty language: cpp compiler: - gcc - clang before_install: - sudo apt-get update -qq - sudo apt-get install -y qt5-default libqt5svg5-dev script: - mkdir build - cd build - qmake .. - make
sudo: required dist: trusty language: cpp compiler: - gcc - clang before_install: - sudo apt-get update -qq - sudo apt-get install -y qt5-default libqt5svg5-dev script: - export QMAKE_CC=$CC - export QMAKE_CXX=$CXX - mkdir build - cd build - qmake .. - make
Set QMAKE_CC and CXX flag for Travis builds
Set QMAKE_CC and CXX flag for Travis builds
YAML
bsd-2-clause
csete/softrig,csete/softrig,csete/softrig
yaml
## Code Before: sudo: required dist: trusty language: cpp compiler: - gcc - clang before_install: - sudo apt-get update -qq - sudo apt-get install -y qt5-default libqt5svg5-dev script: - mkdir build - cd build - qmake .. - make ## Instruction: Set QMAKE_CC and CXX flag for Travis builds ## Code ...
9eb6188dd87095543be05f751c71e4b2e967e59e
static/templates/hotspot_overlay.hbs
static/templates/hotspot_overlay.hbs
<div id="hotspot_{{name}}_overlay" class="hotspot overlay" data-overlay="hotspot_{{name}}_overlay"> <div class="hotspot-popover"> <div class="hotspot-popover-top"> <h1 class="hotspot-title">{{title}}</h1> </div> <div class="hotspot-popover-content"> <p class="hotspot-...
<div id="hotspot_{{name}}_overlay" class="hotspot overlay" data-overlay="hotspot_{{name}}_overlay"> <div class="hotspot-popover"> <div class="hotspot-popover-top"> <h1 class="hotspot-title">{{title}}</h1> </div> <div class="hotspot-popover-content"> <p class="hotspot-...
Remove useless and malformed alt text.
hotspots: Remove useless and malformed alt text. Since it was introduced in 5ce0db9f433a6dcf7beea42b295f00e27d060933, we've had alt text for the hotspots illustration with an invalid translation tag. Fix this by removing the alt text, since the image has no functional effect and so the right answer should it fail to ...
Handlebars
apache-2.0
rht/zulip,hackerkid/zulip,rht/zulip,rht/zulip,andersk/zulip,zulip/zulip,andersk/zulip,punchagan/zulip,eeshangarg/zulip,hackerkid/zulip,kou/zulip,punchagan/zulip,zulip/zulip,eeshangarg/zulip,eeshangarg/zulip,kou/zulip,andersk/zulip,punchagan/zulip,punchagan/zulip,rht/zulip,zulip/zulip,kou/zulip,kou/zulip,andersk/zulip,k...
handlebars
## Code Before: <div id="hotspot_{{name}}_overlay" class="hotspot overlay" data-overlay="hotspot_{{name}}_overlay"> <div class="hotspot-popover"> <div class="hotspot-popover-top"> <h1 class="hotspot-title">{{title}}</h1> </div> <div class="hotspot-popover-content"> <p...
788fb8dce723d608a38a4c0cd756d87f49d2911e
requirements.txt
requirements.txt
appdirs==1.4.3 bcrypt==3.1.3 cffi==1.10.0 Django==1.11 django-crispy-forms==1.6.1 et-xmlfile==1.0.1 gunicorn==19.7.1 jdcal==1.3 lxml==3.7.3 openpyxl==2.4.7 packaging==16.8 pycparser==2.17 PyMySQL==0.7.11 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 requests==2.13.0 six==1.10.0 cloudflare==1.5.1 django_slack==5....
appdirs==1.4.3 bcrypt==3.1.3 cffi==1.10.0 Django==1.11 django-crispy-forms==1.6.1 et-xmlfile==1.0.1 gunicorn==19.7.1 jdcal==1.3 lxml==3.7.3 openpyxl==2.4.7 packaging==16.8 pycparser==2.17 PyMySQL==0.7.11 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 requests==2.13.0 six==1.10.0 cloudflare==1.5.1 django_slack==5....
Add gevent to allow use of async gunicorn workers
Add gevent to allow use of async gunicorn workers
Text
mit
owid/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,aaldaber/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,OurWorldInData/owid-grapher,OurWorldInData/owid-grapher,OurWorldInData/our-world-in-data-grapher,owid/owid-grapher,OurWorldInData/owid-grapher,owid/owid...
text
## Code Before: appdirs==1.4.3 bcrypt==3.1.3 cffi==1.10.0 Django==1.11 django-crispy-forms==1.6.1 et-xmlfile==1.0.1 gunicorn==19.7.1 jdcal==1.3 lxml==3.7.3 openpyxl==2.4.7 packaging==16.8 pycparser==2.17 PyMySQL==0.7.11 pyparsing==2.2.0 python-dateutil==2.6.0 pytz==2017.2 requests==2.13.0 six==1.10.0 cloudflare==1.5.1 ...
182504c04c9e8d0e972fabe0426c4c5a510ea90a
library/src/main/java/com/novoda/downloadmanager/lib/PublicFacingStatusTranslator.java
library/src/main/java/com/novoda/downloadmanager/lib/PublicFacingStatusTranslator.java
package com.novoda.downloadmanager.lib; public class PublicFacingStatusTranslator { public int translate(int status) { switch (status) { case DownloadStatus.SUBMITTED: case DownloadStatus.PENDING: return DownloadManager.STATUS_PENDING; case DownloadStatu...
package com.novoda.downloadmanager.lib; public class PublicFacingStatusTranslator { public int translate(int status) { switch (status) { case DownloadStatus.SUBMITTED: case DownloadStatus.PENDING: case DownloadStatus.QUEUED_DUE_CLIENT_RESTRICTIONS: case Down...
Fix Queued states to be pending instead of paused
Fix Queued states to be pending instead of paused
Java
apache-2.0
novoda/download-manager
java
## Code Before: package com.novoda.downloadmanager.lib; public class PublicFacingStatusTranslator { public int translate(int status) { switch (status) { case DownloadStatus.SUBMITTED: case DownloadStatus.PENDING: return DownloadManager.STATUS_PENDING; ca...
da662c55fadacc4ec75167d9d56c9c8dcd756be0
src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json
src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json
{ "name": "aspnet-webpack", "version": "1.0.9", "description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building ...
{ "name": "aspnet-webpack", "version": "1.0.9", "description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Finished building ...
Make webpack dev dependency a peer dependency in aspnet-webpack.
Make webpack dev dependency a peer dependency in aspnet-webpack. Moving webpack from a dev dependency to a peer dependency makes the dependency soft and allows the webpack-dev-middleware to pickup the version of webpack being used by the consumer of the package.
JSON
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
json
## Code Before: { "name": "aspnet-webpack", "version": "1.0.9", "description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.", "main": "index.js", "scripts": { "prepublish": "rimraf *.d.ts && tsd update && tsc && echo 'Fi...
12ea58bad25fe9e2ffd0f15865449c579bacc415
spec/acceptance/freeradius_spec.rb
spec/acceptance/freeradius_spec.rb
require 'spec_helper_acceptance' describe 'freeradius' do context 'when running puppet code' do pp = "class { 'freeradius': }" it 'should apply with no errors' do apply_manifest(pp, :catch_failures => true) end it 'should converge on the first run' do apply_manifest(pp, :catch_changes =...
require 'spec_helper_acceptance' describe 'freeradius' do context 'when running puppet code' do pp = "class { 'freeradius': }" it 'should apply with no errors' do apply_manifest(pp, :catch_failures => true) end it 'should converge on the first run' do apply_manifest(pp, :catch_changes =...
Fix acceptance tests on port
Fix acceptance tests on port
Ruby
apache-2.0
raphink/puppet-freeradius
ruby
## Code Before: require 'spec_helper_acceptance' describe 'freeradius' do context 'when running puppet code' do pp = "class { 'freeradius': }" it 'should apply with no errors' do apply_manifest(pp, :catch_failures => true) end it 'should converge on the first run' do apply_manifest(pp, ...
6ca8b828824c9d01b5b5ab96fdd25ad503639077
helpstack/res/values/hs_colors.xml
helpstack/res/values/hs_colors.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="hs_background_color">#e1e1e1</color> <color name="hs_header_background_color">#81c57b</color> <color name="hs_childView_background_color">#ffffff</color> <color name="hs_listView_divider_color">#e2e2e2</color> <color name="hs_listView_s...
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="hs_background_color">#e1e1e1</color> <color name="hs_header_background_color">#228CD1</color> <color name="hs_childView_background_color">#000000</color> <color name="hs_listView_divider_color">#e2e2e2</color> <color name="hs_listView_s...
Update default theme with the blue tint
Update default theme with the blue tint The light theme’s colours were changes from green to blue. Since the default theme is supposed to be the same theme, making the same green-to-blue changes to the default theme.
XML
mit
kzganesan/helpstack-android,NYPL/helpstack-android,NYPL-Simplified/helpstack-android,thuytrinh/helpstack-android,happyfoxinc/helpstack-android
xml
## Code Before: <?xml version="1.0" encoding="utf-8"?> <resources> <color name="hs_background_color">#e1e1e1</color> <color name="hs_header_background_color">#81c57b</color> <color name="hs_childView_background_color">#ffffff</color> <color name="hs_listView_divider_color">#e2e2e2</color> <color nam...
4e4ee2742be0644d1ddcd718f189c7556994ccaf
InvenTree/templates/modal_form.html
InvenTree/templates/modal_form.html
{% block pre_form_content %} {% endblock %} {% if form.non_field_errors %} <div class='alert alert-danger' role='alert' style='display: block;'> <b>Error Submitting Form:</b> {{ form.non_field_errors }} </div> {% endif %} <form method="post" action='' class='js-modal-form' enctype="multipart/form-data"> {% csrf...
{% block non_field_error %} {% if form.non_field_errors %} <div class='alert alert-danger' role='alert' style='display: block;'> <b>Error Submitting Form:</b> {{ form.non_field_errors }} </div> {% endif %} {% endblock %} {% block pre_form_content %} {% endblock %} <form method="post" action='' class='js-modal-form...
Move modal form error messages to the top
Move modal form error messages to the top
HTML
mit
inventree/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree
html
## Code Before: {% block pre_form_content %} {% endblock %} {% if form.non_field_errors %} <div class='alert alert-danger' role='alert' style='display: block;'> <b>Error Submitting Form:</b> {{ form.non_field_errors }} </div> {% endif %} <form method="post" action='' class='js-modal-form' enctype="multipart/form-...
3b775a6debea424d5b6d62b8b870917e2fd7d107
package.json
package.json
{ "name": "jscsrc-guesser", "version": "0.1.1", "description": "Determine the JSCS ruleset some code currently follows", "main": "lib/jscsrc-guesser.js", "scripts": { "test": "jshint --show-non-errors . && jscs --esnext --verbose . && mocha --harmony --check-leaks --recursive tests/**/*.test.js" }, "k...
{ "name": "jscsrc-guesser", "version": "0.1.1", "description": "Determine the JSCS ruleset some code currently follows", "main": "lib/jscsrc-guesser.js", "scripts": { "test": "jshint --show-non-errors . && jscs --esnext --verbose . && mocha --harmony --check-leaks --recursive tests/**/*.test.js" }, "k...
Use my private mail address
Use my private mail address
JSON
agpl-3.0
adrianheine/jscsrc-guesser
json
## Code Before: { "name": "jscsrc-guesser", "version": "0.1.1", "description": "Determine the JSCS ruleset some code currently follows", "main": "lib/jscsrc-guesser.js", "scripts": { "test": "jshint --show-non-errors . && jscs --esnext --verbose . && mocha --harmony --check-leaks --recursive tests/**/*.te...
556f082071a8d3917656239d2c5eacfaac4bed5a
lib/compile/modules/resolve.js
lib/compile/modules/resolve.js
import * as Pluggable from "../../pluggable"; import resolve from "../../resolve"; const createModule = Pluggable.sync(function createModule (overrides) { return Object.assign({ path: null, ns: null, nsPath: null, nsRoot: null, rawSource: null, ast: null, requireNodes: null, dependenc...
import * as Pluggable from "../../pluggable"; import resolve from "../../resolve"; const createModule = Pluggable.sync(function createModule (overrides) { return Object.assign({ path: null, ns: null, nsPath: null, nsRoot: null, rawSource: null, ast: null, requireNodes: null, dependenc...
Convert string concat to template string
Convert string concat to template string
JavaScript
mit
interlockjs/interlock,interlockjs/interlock
javascript
## Code Before: import * as Pluggable from "../../pluggable"; import resolve from "../../resolve"; const createModule = Pluggable.sync(function createModule (overrides) { return Object.assign({ path: null, ns: null, nsPath: null, nsRoot: null, rawSource: null, ast: null, requireNodes: nul...
78c4f7d741ee428aaa108eacf10784acd3cf37b9
tests_appveyor.ps1
tests_appveyor.ps1
param ( [string]$configuration = "Release" ) . "$(resolve-path .\packages\nspec.*\tools\NSpecRunner.exe)" --formatter=XmlFormatter Winston.Test\bin\$configuration\Winston.Test.dll > nspec_results.xml [xml]$res = Get-Content .\nspec_results.xml foreach($c in $res.Contexts.Context) { $spec = $c.Context.Specs.Spec ...
param ( [string]$configuration = "Release" ) function NSpec { . "$(resolve-path .\packages\nspec.*\tools\NSpecRunner.exe)" --formatter=XmlFormatter Winston.Test\bin\$configuration\Winston.Test.dll > nspec_results.xml [xml]$res = Get-Content .\nspec_results.xml foreach($c in $res.Contexts.Context) { ...
Add missing appveyor test update
Add missing appveyor test update Reports mstest results to appveyor
PowerShell
mit
mattolenik/winston,mattolenik/winston,mattolenik/winston
powershell
## Code Before: param ( [string]$configuration = "Release" ) . "$(resolve-path .\packages\nspec.*\tools\NSpecRunner.exe)" --formatter=XmlFormatter Winston.Test\bin\$configuration\Winston.Test.dll > nspec_results.xml [xml]$res = Get-Content .\nspec_results.xml foreach($c in $res.Contexts.Context) { $spec = $c.Conte...
3da4537e522d6f9cc7f449393dc7a96568df699f
src/watir_robot_gui.rb
src/watir_robot_gui.rb
$LOAD_PATH << File.expand_path(File.dirname(__FILE__)) require 'java' require 'watir_robot_gui/main_frame' require 'watir_robot_gui/worker/edit_button' require 'watir_robot_gui/worker/remote_server' require 'watir_robot_gui/worker/run_button' require 'watir_robot_gui/worker/html_button' require 'watir_robot_gui/worker...
$LOAD_PATH << File.expand_path(File.dirname(__FILE__)) # Add local gem repository created from extracted # JAR archive of gems ENV['GEM_PATH'] = File.join(File.expand_path(File.dirname(__FILE__)), '../lib/ruby/wr-gems') require 'java' require 'watir_robot_gui/main_frame' require 'watir_robot_gui/worker/edit_button' re...
Set environment variable to use local gem repo from extracted jar file
Set environment variable to use local gem repo from extracted jar file
Ruby
bsd-3-clause
semperos/watir-robot-gui,semperos/watir-robot-gui
ruby
## Code Before: $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) require 'java' require 'watir_robot_gui/main_frame' require 'watir_robot_gui/worker/edit_button' require 'watir_robot_gui/worker/remote_server' require 'watir_robot_gui/worker/run_button' require 'watir_robot_gui/worker/html_button' require 'watir_...
0b632368b4991621696a7f7a396afecf61e6ccc3
tools/examples/geturl.py
tools/examples/geturl.py
import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) if __name__ == '__main__': svn.util.run_app(main, sys.argv[1:])
import os import sys import svn.wc import svn.util def main(pool, files): for f in files: dirpath = fullpath = os.path.abspath(f) if not os.path.isdir(dirpath): dirpath = os.path.dirname(dirpath) adm_baton = svn.wc.svn_wc_adm_open(None, dirpath, 1, 1, pool) try: entry = svn.wc.svn_wc_en...
Update the example to use the new access baton stuff.
Update the example to use the new access baton stuff.
Python
apache-2.0
jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion,jmckaskill/subversion
python
## Code Before: import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) if __name__ == '__main__': svn.util.run_app(main, sys.argv[1:]) ## Instruction: Update the example to use the new access b...
0a15dae3ae76d972d06bd9ec20ab291b2b91fe8e
README.md
README.md
```bash git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && ./bootstrap.sh ``` When setting up a new Mac, you may want to set some sensible OS X defaults: ```bash ./.osx ``` To update, `cd` into your local `dotfiles` repository and then: ```bash ./bootstrap.sh ``` Suggestions/improvements [w...
```bash git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && ./bootstrap.sh ``` When setting up a new Mac, you may want to set some sensible OS X defaults: ```bash ./.osx ``` To update, `cd` into your local `dotfiles` repository and then: ```bash ./bootstrap.sh ``` Suggestions/improvements [w...
Add a link to @janmoesen’s tilde repository.
Add a link to @janmoesen’s tilde repository.
Markdown
mit
troyxmccall/dotfiles,troyxmccall/dotfiles,troyxmccall/dotfiles
markdown
## Code Before: ```bash git clone https://github.com/mathiasbynens/dotfiles.git && cd dotfiles && ./bootstrap.sh ``` When setting up a new Mac, you may want to set some sensible OS X defaults: ```bash ./.osx ``` To update, `cd` into your local `dotfiles` repository and then: ```bash ./bootstrap.sh ``` Suggestions...
0c39deaa7160b078e9a9ac339f0464cd67c25a98
app/workers/gem_installer.rb
app/workers/gem_installer.rb
class GemInstaller include SuckerPunch::Job workers 16 WORKING = [] def perform(gem_name, version = nil) SuckerPunch.logger.info "install #{gem_name} #{version}" pl = Plugin.new(gem_name: gem_name, version: version) WORKING.push(pl) pl.uninstall! if pl.installed? pl.install! WORKING.de...
class GemInstaller include SuckerPunch::Job workers 16 WORKING = [] def perform(gem_name, version = nil) SuckerPunch.logger.info "install #{gem_name} #{version}" pl = Plugin.new(gem_name: gem_name, version: version) unless WORKING.find{|p| p.gem_name == pl.gem_name} WORKING.push(pl) pl...
Fix to not install plugin if it is installing
Fix to not install plugin if it is installing
Ruby
apache-2.0
mt0803/fluentd-ui,fluent/fluentd-ui,mt0803/fluentd-ui,fluent/fluentd-ui,mt0803/fluentd-ui,fluent/fluentd-ui
ruby
## Code Before: class GemInstaller include SuckerPunch::Job workers 16 WORKING = [] def perform(gem_name, version = nil) SuckerPunch.logger.info "install #{gem_name} #{version}" pl = Plugin.new(gem_name: gem_name, version: version) WORKING.push(pl) pl.uninstall! if pl.installed? pl.install...
028c8a22b05412ff8a98e0dd5d13b48c296ab3a0
runTests.js
runTests.js
'use strict'; /** * Run package tests. * (C) 2013 Alex Fernández. */ // requires var testing = require('testing'); /** * Test that a new object is clean: has no functions. * Same for string and array. */ function testCleanObjects(callback) { var object = {}; for (var key in object) { testing.fail('New ob...
'use strict'; /** * Run package tests. * (C) 2013 Alex Fernández. */ // requires var testing = require('testing'); var _prettyPrint = require('util').inspect; /** * Test that new objects, strings, arrays, numbers * and regular expressions have no enumerable properties. */ function testCleanObjects(callback) {...
Complete tests for checking that no new enumerable properties are being added to new objects.
Complete tests for checking that no new enumerable properties are being added to new objects. Added tests for array, number and regexp. Extracted assertion to its own method.
JavaScript
mit
alexfernandez/prototypes
javascript
## Code Before: 'use strict'; /** * Run package tests. * (C) 2013 Alex Fernández. */ // requires var testing = require('testing'); /** * Test that a new object is clean: has no functions. * Same for string and array. */ function testCleanObjects(callback) { var object = {}; for (var key in object) { test...
0e6fed14e0be4c49a199bdc2d585335f302d5a10
ci-scripts/tripleo-upstream/dlrnapi_venv.sh
ci-scripts/tripleo-upstream/dlrnapi_venv.sh
function activate_dlrnapi_venv { if [ ! -d $WORKSPACE/dlrnapi_venv ]; then virtualenv --system-site-packages $WORKSPACE/dlrnapi_venv fi source $WORKSPACE/dlrnapi_venv/bin/activate pip install -U dlrnapi_client shyaml } function deactivate_dlrnapi_venv { # deactivate can fail with unbound va...
function activate_dlrnapi_venv { if [ ! -d $WORKSPACE/dlrnapi_venv ]; then if [ $(command -v virtualenv) ]; then virtualenv --system-site-packages $WORKSPACE/dlrnapi_venv else python3 -m venv --system-site-packages $WORKSPACE/dlrnapi_venv fi fi source $WORKSP...
Use venv module if virtualenv not installed
Use venv module if virtualenv not installed In Centos9, virtualenv is not installed on default image. With python3, We don't need virtualenv and we can use "python3 -m venv". Before moving entirely to "python3 -m venv" we should enforce use of python3 for promoter, Some efforts were made in past to do that[1]. Once ...
Shell
apache-2.0
redhat-openstack/rdo-infra,rdo-infra/ci-config,rdo-infra/ci-config,redhat-openstack/rdo-infra,redhat-openstack/rdo-infra,rdo-infra/ci-config,redhat-openstack/rdo-infra,rdo-infra/ci-config
shell
## Code Before: function activate_dlrnapi_venv { if [ ! -d $WORKSPACE/dlrnapi_venv ]; then virtualenv --system-site-packages $WORKSPACE/dlrnapi_venv fi source $WORKSPACE/dlrnapi_venv/bin/activate pip install -U dlrnapi_client shyaml } function deactivate_dlrnapi_venv { # deactivate can fail...
57f24f02f8b215c347908c1a0d3b3f0d72617f10
examples/trivial/package.json
examples/trivial/package.json
{ "name": "@folio/trivial", "version": "0.0.2-test", "description": "A trivial Stripes module.", "repository": "folio-org/stripes-experiments", "publishConfig" : { "registry" : "https://repository.folio.org/repository/npm-folio/" }, "license": "Apache-2.0", "engines": { "node": ">=6.0.0" }, ...
{ "name": "@folio/trivial", "version": "1.0.0", "description": "A trivial Stripes module.", "repository": "folio-org/stripes-experiments", "publishConfig" : { "registry" : "https://repository.folio.org/repository/npm-folio/" }, "license": "Apache-2.0", "engines": { "node": ">=6.0.0" }, "main...
Add dependencies; bump Trivial module version to 1.0.0
Add dependencies; bump Trivial module version to 1.0.0
JSON
apache-2.0
folio-org/stripes-core,folio-org/stripes-core,folio-org/stripes-core
json
## Code Before: { "name": "@folio/trivial", "version": "0.0.2-test", "description": "A trivial Stripes module.", "repository": "folio-org/stripes-experiments", "publishConfig" : { "registry" : "https://repository.folio.org/repository/npm-folio/" }, "license": "Apache-2.0", "engines": { "node": "...
bad82c20ababbe60f7250c3ab8bfda06e9c60e64
index.html
index.html
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Samuel Huang</title> </head> <body> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-TR82HB" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="description" content="Samuel Huang's personal website"> <meta name="keywords" content="Samuel Huang, Samuel, samuel22gj"> <meta name="author" content="Samuel Huang"> <title>Samuel Huang</title> </head> <body> <!-- Google Tag Manager -...
Add meta data: desc, keyword and arthor
Add meta data: desc, keyword and arthor
HTML
apache-2.0
samuel22gj/samuel22gj.github.io,samuel22gj/samuel22gj.github.io
html
## Code Before: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Samuel Huang</title> </head> <body> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-TR82HB" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function...
7bb03d4a30d9da15c0f21424bd503b4330a9da98
src/Backend/Modules/MediaLibrary/Ajax/MediaItemGetAllById.php
src/Backend/Modules/MediaLibrary/Ajax/MediaItemGetAllById.php
<?php namespace Backend\Modules\MediaLibrary\Ajax; use Backend\Core\Engine\Base\AjaxAction as BackendBaseAJAXAction; use Symfony\Component\HttpFoundation\Response; /** * This AJAX-action will get all media items for a group, * which was trying to be saved, but another parent error appeared. */ class MediaItemGetA...
<?php namespace Backend\Modules\MediaLibrary\Ajax; use Backend\Core\Engine\Base\AjaxAction as BackendBaseAJAXAction; use Symfony\Component\HttpFoundation\Response; /** * This AJAX-action will get all media items for a group, * which was trying to be saved, but another parent error appeared. */ class MediaItemGetA...
Use the correct test to see if explode returned no results
Use the correct test to see if explode returned no results
PHP
mit
carakas/forkcms,jacob-v-dam/forkcms,jonasdekeukelaere/forkcms,jessedobbelaere/forkcms,justcarakas/forkcms,justcarakas/forkcms,carakas/forkcms,Katrienvh/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,bartdc/forkcms,sumocoders/forkcms,jessedobbelaere/forkcms,Katrienvh/forkcms,jonasdekeukelaere/forkcms,carakas/forkc...
php
## Code Before: <?php namespace Backend\Modules\MediaLibrary\Ajax; use Backend\Core\Engine\Base\AjaxAction as BackendBaseAJAXAction; use Symfony\Component\HttpFoundation\Response; /** * This AJAX-action will get all media items for a group, * which was trying to be saved, but another parent error appeared. */ cla...