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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b1283bc25ce57c077cc33b1342ffb949cd7615c8 | automagic_snippets_from_text.js | automagic_snippets_from_text.js | // Create a base snippet with the selected text
scimoz = ko.views.manager.currentView.scimoz;
var snip =
ko.projects.addSnippetFromText(scimoz.selText);
//create a date to be used as a unique name on the snippet
var d = new Date();
// Create a unique default name string
var defaultName = "New Snippet - " + d.toLoca... | /**
* Create a snippet from selected text, add a name and automatically open
* properties to add keybinding.
*
* A popup UI allows creation of the snippet name
*
* Type: keybound
* Usage: Add a keybinding of your liking in it's properties
*
* @source https://github.com/Komodo/macros
* @author C... | Add comment header for style points. | Add comment header for style points.
| JavaScript | mpl-2.0 | Komodo/macros,Komodo/macros | javascript | ## Code Before:
// Create a base snippet with the selected text
scimoz = ko.views.manager.currentView.scimoz;
var snip =
ko.projects.addSnippetFromText(scimoz.selText);
//create a date to be used as a unique name on the snippet
var d = new Date();
// Create a unique default name string
var defaultName = "New Snippe... |
6c1896b6b0f40562fc59e65a8dc67355045667f1 | src/css/components/nav-breadcrumb.scss | src/css/components/nav-breadcrumb.scss | .nav-breadcrumb-select-wrapper {
display: inline-block;
}
.nav-breadcrumb-divider {
font-size: 1.5rem;
font-weight: 100;
line-height: 1;
margin: 0 0.5rem;
vertical-align: middle;
}
.nav-breadcrumb-select {
position: relative;
width: 16rem;
select {
padding-left: 2rem;
}
&::before {
bac... | @import '../core.scss';
.nav-breadcrumb {
background-color: $color-white;
padding: 1rem 2rem;
}
.nav-breadcrumb-select-wrapper {
display: inline-block;
}
.nav-breadcrumb-divider {
font-size: 1.5rem;
font-weight: 100;
line-height: 1;
margin: 0 0.5rem;
vertical-align: middle;
}
.nav-breadcrumb-select ... | Add padding for breadcrumb nav | Add padding for breadcrumb nav
| SCSS | cc0-1.0 | 18F/cg-style,18F/cg-style,18F/cg-style | scss | ## Code Before:
.nav-breadcrumb-select-wrapper {
display: inline-block;
}
.nav-breadcrumb-divider {
font-size: 1.5rem;
font-weight: 100;
line-height: 1;
margin: 0 0.5rem;
vertical-align: middle;
}
.nav-breadcrumb-select {
position: relative;
width: 16rem;
select {
padding-left: 2rem;
}
&::... |
1ee96ad055420117fc72454791f82c10db2680d5 | backend/servers/mcapid/package.json | backend/servers/mcapid/package.json | {
"author": "YOU <YOU@example.com>",
"name": "mcapid",
"description": "API server for MaterialsCommons",
"version": "0.1.0",
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"actionhero": "19.1.1",
"fs-extra": "^7.0.1",
"ioredis": "latest",
"module-alias": "^2.2.0",
"winston": "... | {
"author": "YOU <YOU@example.com>",
"name": "mcapid",
"description": "API server for MaterialsCommons",
"version": "0.1.0",
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"actionhero": "19.1.1",
"fs-extra": "^7.0.1",
"ioredis": "latest",
"module-alias": "^2.2.0",
"winston": "... | Update jest to work with module aliases by adding them into the moduleNameMapper | Update jest to work with module aliases by adding them into the moduleNameMapper
| JSON | mit | materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org,materials-commons/materialscommons.org | json | ## Code Before:
{
"author": "YOU <YOU@example.com>",
"name": "mcapid",
"description": "API server for MaterialsCommons",
"version": "0.1.0",
"engines": {
"node": ">=8.0.0"
},
"dependencies": {
"actionhero": "19.1.1",
"fs-extra": "^7.0.1",
"ioredis": "latest",
"module-alias": "^2.2.0",
... |
b7c19a85a9c2f98b2361b4b69323c91fb8087a99 | bookmarks/templates/layout.html | bookmarks/templates/layout.html | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bookmarks</title>
</head>
<body>
{{ current_user.id }}
{{ current_user.is_authenticated }}
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
{% for message in messages %}
... | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bookmarks</title>
</head>
<body>
{{ current_user.id }}
{{ current_user.is_authenticated }}
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
{% for message in messages %}
... | Add link to register in menu | Add link to register in menu
| HTML | apache-2.0 | byanofsky/bookmarks,byanofsky/bookmarks,byanofsky/bookmarks | html | ## Code Before:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Bookmarks</title>
</head>
<body>
{{ current_user.id }}
{{ current_user.is_authenticated }}
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
{% for message in mes... |
861d5656b2cd8ca5589d8d8042b8785b2e52d254 | stylesheets/_grid_layout.scss | stylesheets/_grid_layout.scss | @import '_conditionals.scss';
@import '_measurements.scss';
@import '_shims.scss';
// Outer block sets a max width
@mixin outer-block {
margin: 0 auto;
width: auto;
max-width: 960 + $gutter*2;
@extend %contain-floats;
@include ie-lte(8) {
width: 1020px;
}
}
// Outer block usage:
//
// .outer-block {
/... | @import '_conditionals.scss';
@import '_measurements.scss';
@import '_shims.scss';
// Outer block sets a max width
@mixin outer-block {
margin: 0 auto;
width: auto;
max-width: 960 + $gutter*2;
@extend %contain-floats;
@include ie-lte(8) {
width: 1020px;
}
}
// Outer block usage:
//
// .outer-block {
/... | Set inner block to use padding or margin | Set inner block to use padding or margin
If .inner-block has a top or bottom border, margins must be used rather
than padding - or the border is too wide.
Here, left and right padding is the default and the same mixin can be
used to set left and right margins (see usage example).
| SCSS | mit | TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,alphagov/govuk_frontend_toolkit,TFOH/govuk_frontend_toolkit,quis/govuk_frontend_toolkit,quis/govuk_frontend_tool... | scss | ## Code Before:
@import '_conditionals.scss';
@import '_measurements.scss';
@import '_shims.scss';
// Outer block sets a max width
@mixin outer-block {
margin: 0 auto;
width: auto;
max-width: 960 + $gutter*2;
@extend %contain-floats;
@include ie-lte(8) {
width: 1020px;
}
}
// Outer block usage:
//
// ... |
4fea0e8829eda2b8721b5cc037e54528988052c6 | scripts/snapshot-release.sh | scripts/snapshot-release.sh | set -e
if [ "$TRAVIS" != "true" ]; then
echo "This script is supposed to be run inside the travis environment."
exit 1
fi
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
# only proceed if we were called by a merge (and not by a PR request)
exit 1
fi
if [ $TRAVIS_BRANCH != "master" ]; then
# only pro... | set -e
if [ "$TRAVIS" != "true" ]; then
echo "This script is supposed to be run inside the travis environment."
exit 1
fi
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
# only proceed if we were called by a merge (and not by a PR request)
exit 1
fi
if [ $TRAVIS_BRANCH != "master" ]; then
# only pro... | Use oracle7 for SNAPSHOT releases | Use oracle7 for SNAPSHOT releases
| Shell | apache-2.0 | annarieger/shogun2,marcjansen/shogun2,buehner/shogun2,marcjansen/shogun2,terrestris/shogun2,dnlkoch/shogun2,annarieger/shogun2,ahennr/shogun2,annarieger/shogun2,terrestris/shogun2,dnlkoch/shogun2,terrestris/shogun2,buehner/shogun2,ahennr/shogun2,dnlkoch/shogun2,buehner/shogun2,marcjansen/shogun2,ahennr/shogun2 | shell | ## Code Before:
set -e
if [ "$TRAVIS" != "true" ]; then
echo "This script is supposed to be run inside the travis environment."
exit 1
fi
if [ $TRAVIS_PULL_REQUEST != "false" ]; then
# only proceed if we were called by a merge (and not by a PR request)
exit 1
fi
if [ $TRAVIS_BRANCH != "master" ]; the... |
1494bc56008f50f24d9046f7713b27a250b54eeb | skimage/transform/setup.py | skimage/transform/setup.py |
import os
from skimage._build import cython
base_path = os.path.abspath(os.path.dirname(__file__))
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('transform', parent_package, top_path)
config.add_d... |
import os
from skimage._build import cython
base_path = os.path.abspath(os.path.dirname(__file__))
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('transform', parent_package, top_path)
config.add_d... | Remove unused fopenmp compile args | Remove unused fopenmp compile args
| Python | bsd-3-clause | bennlich/scikit-image,rjeli/scikit-image,SamHames/scikit-image,dpshelio/scikit-image,ClinicalGraphics/scikit-image,Hiyorimi/scikit-image,pratapvardhan/scikit-image,emon10005/scikit-image,chintak/scikit-image,michaelaye/scikit-image,newville/scikit-image,ofgulban/scikit-image,chintak/scikit-image,blink1073/scikit-image,... | python | ## Code Before:
import os
from skimage._build import cython
base_path = os.path.abspath(os.path.dirname(__file__))
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
config = Configuration('transform', parent_package, top_path)
... |
a9b2152ecedbdf987e8592c73acd9fb2605aea90 | master/src/worker_throttle.erl | master/src/worker_throttle.erl | -module(worker_throttle).
-export([init/0, handle/1]).
-define(MAX_EVENTS_PER_SECOND, 5).
-opaque state() :: queue().
-type throttle() :: {ok, non_neg_integer(), state()} | {error, term()}.
-export_type([state/0]).
-spec init() -> state().
init() ->
queue:new().
-spec handle(state()) -> throttle().
handle(Q) -... | -module(worker_throttle).
-export([init/0, handle/1]).
-define(MAX_EVENTS_PER_SECOND, 5).
-define(MICROSECONDS_IN_SECOND, 1000000).
-opaque state() :: queue().
-type throttle() :: {ok, non_neg_integer(), state()} | {error, term()}.
-export_type([state/0]).
-spec init() -> state().
init() ->
queue:new().
-spec ... | Use a macro instead of the magic numbers. | Use a macro instead of the magic numbers.
This commit has no functional effects.
| Erlang | bsd-3-clause | simudream/disco,mwilliams3/disco,mozilla/disco,pombredanne/disco,pombredanne/disco,mozilla/disco,seabirdzh/disco,ErikDubbelboer/disco,oldmantaiter/disco,mwilliams3/disco,ktkt2009/disco,oldmantaiter/disco,ktkt2009/disco,discoproject/disco,pombredanne/disco,oldmantaiter/disco,seabirdzh/disco,ErikDubbelboer/disco,beni55/d... | erlang | ## Code Before:
-module(worker_throttle).
-export([init/0, handle/1]).
-define(MAX_EVENTS_PER_SECOND, 5).
-opaque state() :: queue().
-type throttle() :: {ok, non_neg_integer(), state()} | {error, term()}.
-export_type([state/0]).
-spec init() -> state().
init() ->
queue:new().
-spec handle(state()) -> throttl... |
5a2050de5c9244ae3b79a4726babc4da89e01434 | appveyor.yml | appveyor.yml | version: "{build}"
os: Windows Server 2012 R2
test: off
deploy: off
init:
- cmd: rd /s /q %CHOCOLATEYINSTALL%
- ps: iex ((New-Object Net.WebClient).DownloadString("https://chocolatey.org/install.ps1"))
install:
- cinst 7zip.commandline -y
- cd %TEMP%
- echo "Downloading portable TeX Live installation..."
... | version: "{build}"
os: Windows Server 2012 R2
test: off
deploy: off
init:
- cmd: rd /s /q %CHOCOLATEYINSTALL%
- ps: iex ((New-Object Net.WebClient).DownloadString("https://chocolatey.org/install.ps1"))
install:
- cinst 7zip.commandline -y
- cd %TEMP%
- echo "Downloading portable TeX Live installation..."
... | Use %CHOCOLATEYINSTALL% instead of %LOCALAPPDATA% | :green_heart: Use %CHOCOLATEYINSTALL% instead of %LOCALAPPDATA%
| YAML | mit | WoodyWoodsta/atom-latex,thomasjo/atom-latex,WoodyWoodsta/atom-latex,thomasjo/atom-latex,thomasjo/atom-latex | yaml | ## Code Before:
version: "{build}"
os: Windows Server 2012 R2
test: off
deploy: off
init:
- cmd: rd /s /q %CHOCOLATEYINSTALL%
- ps: iex ((New-Object Net.WebClient).DownloadString("https://chocolatey.org/install.ps1"))
install:
- cinst 7zip.commandline -y
- cd %TEMP%
- echo "Downloading portable TeX Live in... |
de1988304714b44e641a4c4ac50fa650887621d6 | geoportail/geonames/views.py | geoportail/geonames/views.py | import unicodedata
from django.http import HttpResponse
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext as _
from .models import Town
def autocomplete(request):
if not 'q' in request.GET or len(request.GET['q']) < 3:
response = HttpResponse()
resp... | import json
import unicodedata
from django.http import HttpResponse
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext as _
from .models import Town
def autocomplete(request):
if not 'q' in request.GET or len(request.GET['q']) < 3:
response = HttpResponse()
... | Return JSON in the autocomplete view | Return JSON in the autocomplete view
| Python | bsd-3-clause | brutasse/geoportail,brutasse/geoportail,brutasse/geoportail | python | ## Code Before:
import unicodedata
from django.http import HttpResponse
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext as _
from .models import Town
def autocomplete(request):
if not 'q' in request.GET or len(request.GET['q']) < 3:
response = HttpRespons... |
f101e836a283b77b4618d8a1eb1893e7fa299721 | lib/workflows/visualizer/components/root/NewSimulation.js | lib/workflows/visualizer/components/root/NewSimulation.js | import React from 'react';
import style from 'HPCCloudStyle/ItemEditor.mcss';
export default React.createClass({
displayName: 'Simulation/New/Visualizer',
propTypes: {
owner: React.PropTypes.func,
},
getInitialState() {
return {
mesh: null,
};
},
componen... | import React from 'react';
import { FileUploadEntry } from '../../../../panels/ItemEditor';
export default React.createClass({
displayName: 'Simulation/New/Visualizer',
propTypes: {
owner: React.PropTypes.func,
},
render() {
return <FileUploadEntry name='dataset' labe... | Fix file upload component for Visualizer | fix(UI): Fix file upload component for Visualizer
| JavaScript | apache-2.0 | Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud,Kitware/HPCCloud | javascript | ## Code Before:
import React from 'react';
import style from 'HPCCloudStyle/ItemEditor.mcss';
export default React.createClass({
displayName: 'Simulation/New/Visualizer',
propTypes: {
owner: React.PropTypes.func,
},
getInitialState() {
return {
mesh: null,
};
... |
c283f9ccd44707745435b9754bd95532a41ea785 | lib/Nitrapi/OAuth/OAuth.php | lib/Nitrapi/OAuth/OAuth.php | <?php
namespace Nitrapi\OAuth;
use Nitrapi\Nitrapi;
class OAuth {
/**
* @var Nitrapi
*/
private $api;
public function __construct(Nitrapi $api) {
$this->api = $api;
}
/**
* Returns a specific OAuth 2.0 Client by id.
*
* @param $id
* @return Client
*/
... | <?php
namespace Nitrapi\OAuth;
use Nitrapi\Nitrapi;
class OAuth {
/**
* @var Nitrapi
*/
private $api;
public function __construct(Nitrapi $api) {
$this->api = $api;
}
/**
* Returns a specific OAuth 2.0 Client by id.
*
* @param $id
* @return Client
*/
... | Add Clients to client array | Add Clients to client array
| PHP | mit | nitrado/Nitrapi-PHP | php | ## Code Before:
<?php
namespace Nitrapi\OAuth;
use Nitrapi\Nitrapi;
class OAuth {
/**
* @var Nitrapi
*/
private $api;
public function __construct(Nitrapi $api) {
$this->api = $api;
}
/**
* Returns a specific OAuth 2.0 Client by id.
*
* @param $id
* @return... |
cb7f4f6158ae971cc871428926d82e70f824c4ce | app/pages/languages/getting-started-with-go.md | app/pages/languages/getting-started-with-go.md | ---
title: "Go"
slug: "getting-started-with-go"
category: "languages"
ordinal: 5
---
Follow the instructions for your system on the installation page at [golang.org](http://golang.org/doc/install).
## Running tests
Go exercises within your exercism project directory can be run by changing to the exercise directory, ... | ---
title: "Go"
slug: "getting-started-with-go"
category: "languages"
ordinal: 5
---
Follow the instructions for your system on the installation page at [golang.org](http://golang.org/doc/install).
Exercism supports Go 1.2 and higher.
## Running tests
Go exercises within your exercism project directory can be run b... | Add note about version support in Go | Add note about version support in Go
| Markdown | mit | NobbZ/docs,k4rtik/docs,rchavarria/docs,exercism/DEPRECATED.help.exercism.io,k4rtik/docs,exercism/DEPRECATED.help.exercism.io,canweriotnow/docs,NobbZ/docs,ZacharyRSmith/docs,alexclarkofficial/docs,alexclarkofficial/docs,ekse/exercism-docs,lfex/exercism-docs,ZacharyRSmith/docs,canweriotnow/docs,spazm/docs,arashbi/docs,rc... | markdown | ## Code Before:
---
title: "Go"
slug: "getting-started-with-go"
category: "languages"
ordinal: 5
---
Follow the instructions for your system on the installation page at [golang.org](http://golang.org/doc/install).
## Running tests
Go exercises within your exercism project directory can be run by changing to the exer... |
29ecb6f6bac85aeecba6b2602744f178735c0adc | pyautoupdate/_move_glob.py | pyautoupdate/_move_glob.py | import glob
import shutil
import os
if os.name == "nt":
from .ntcommonpath import commonpath
else:
from .posixcommonpath import commonpath
def move_glob(src,dst):
"""Moves files from src to dest.
src may be any glob to recognize files. dst must be a folder."""
for obj in glob.iglob(src):
... | import glob
import shutil
import os
if os.name == "nt":
from .ntcommonpath import commonpath
else:
from .posixcommonpath import commonpath
def move_glob(src,dst):
"""Moves files from src to dest.
src may be any glob to recognize files. dst must be a folder."""
for obj in glob.iglob(src):
... | Fix bug in copy_glob when destination directory already has files | Fix bug in copy_glob when destination directory already has files
| Python | lgpl-2.1 | rlee287/pyautoupdate,rlee287/pyautoupdate | python | ## Code Before:
import glob
import shutil
import os
if os.name == "nt":
from .ntcommonpath import commonpath
else:
from .posixcommonpath import commonpath
def move_glob(src,dst):
"""Moves files from src to dest.
src may be any glob to recognize files. dst must be a folder."""
for obj in glob.iglo... |
9a1272082f8750565f727f2c97a71768a9ceb7ca | books/search_indexes.py | books/search_indexes.py | from haystack import indexes
from books.models import Book, Series
class BookIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
library = indexes.IntegerField(model_attr="library_id")
def get_model(self):
return Book
def index_queryset(... | from haystack import indexes
from books.models import Book, Series
class BookIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
library = indexes.IntegerField(model_attr="library_id")
def get_model(self):
return Book
def index_queryset(... | Add fields to index so 'update_index' works | Add fields to index so 'update_index' works
| Python | mit | phildini/bockus,phildini/bockus,phildini/bockus | python | ## Code Before:
from haystack import indexes
from books.models import Book, Series
class BookIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
library = indexes.IntegerField(model_attr="library_id")
def get_model(self):
return Book
def... |
9cd825d3d5d40c69e1929597be62d2ee4c839737 | config/initializers/jellyfish_core.rb | config/initializers/jellyfish_core.rb | begin
init_settings = Setting.table_exists?
if init_settings
Dir[Rails.root.join 'app', 'models', 'setting', '*.rb'].each do |setting_model|
require_dependency setting_model
end
Setting.descendants.each(&:load_defaults)
end
rescue
false
end
begin
init_product_types = ProductType.table_exist... | begin
init_settings = Setting.table_exists?
if init_settings
Dir[Rails.root.join 'app', 'models', 'setting', '*.rb'].each do |setting_model|
require_dependency setting_model
end
Setting.descendants.each(&:load_defaults)
end
rescue
false
end
begin
init_product_types = ProductType.table_exist... | Add RegisteredProvider to extension support | Add RegisteredProvider to extension support
| Ruby | apache-2.0 | adderall/api,AllenBW/api,boozallen/projectjellyfish,stackus/api,boozallen/projectjellyfish,boozallen/projectjellyfish,sonejah21/api,AllenBW/api,sreekantch/JellyFish,sreekantch/JellyFish,AllenBW/api,sonejah21/api,boozallen/projectjellyfish,mafernando/api,projectjellyfish/api,mafernando/api,projectjellyfish/api,projectje... | ruby | ## Code Before:
begin
init_settings = Setting.table_exists?
if init_settings
Dir[Rails.root.join 'app', 'models', 'setting', '*.rb'].each do |setting_model|
require_dependency setting_model
end
Setting.descendants.each(&:load_defaults)
end
rescue
false
end
begin
init_product_types = Product... |
3a05135a5d76ea2fa8a592ad204b52ca5f51097f | content/03_meeting-documents/en.md | content/03_meeting-documents/en.md | ---
title: Meeting documents
description: Official meeting documents for GB23.
image: /images/worm.jpg
imageTitle: Name of image here.
imageLink: Link to owner
---
# Programme
Official meeting documents for GB23 will be available here by 23 September 2016. Registered attendees will receive email notification once th... | ---
title: Meeting documents
description: Official meeting documents for GB23.
image: /images/worm.jpg
imageTitle: Name of image here.
imageLink: Link to owner
---
# Meeting documents
The official meeting documents for GB23 will be available here by 23 September 2016. Registered attendees will receive email notifica... | Change of heading and small text edits | Change of heading and small text edits | Markdown | apache-2.0 | gbif/ssg-gb23,gbif/ssg-gb23 | markdown | ## Code Before:
---
title: Meeting documents
description: Official meeting documents for GB23.
image: /images/worm.jpg
imageTitle: Name of image here.
imageLink: Link to owner
---
# Programme
Official meeting documents for GB23 will be available here by 23 September 2016. Registered attendees will receive email noti... |
aa143e28b61118c0fc3e5d28f2330572213b501c | halaqat/urls.py | halaqat/urls.py | from django.conf.urls import include, url
from django.contrib import admin
from back_office import urls as back_office_url
urlpatterns = [
url(r'^back_office/', include(back_office_url)),
url(r'^admin/', include(admin.site.urls)),
]
| from django.conf.urls import include, url
from django.contrib import admin
from back_office import urls as back_office_url
from students import urls as students_url
urlpatterns = [
url(r'^back_office/', include(back_office_url)),
url(r'^students/', include(students_url)),
url(r'^admin/', include(admin.sit... | Add students app url configuration | Add students app url configuration
| Python | mit | EmadMokhtar/halaqat,EmadMokhtar/halaqat,EmadMokhtar/halaqat | python | ## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from back_office import urls as back_office_url
urlpatterns = [
url(r'^back_office/', include(back_office_url)),
url(r'^admin/', include(admin.site.urls)),
]
## Instruction:
Add students app url configuration
## Code A... |
0f32ad32fa3fe8676364d166eb2b6a63f9486296 | docs/styles/_base.scss | docs/styles/_base.scss | * {
box-sizing: border-box;
}
body {
min-width: 320px;
font-family: $font-family-base;
font-weight: $font-weight-base;
font-size: $font-size-base;
color: $font-color-base;
}
| *:focus {
outline: 0;
}
*,
*::after,
*::before {
box-sizing: border-box;
}
html,
body {
min-width: 320px;
font-family: $font-family-base;
font-weight: $font-weight-base;
font-size: $font-size-base;
color: $font-color-base;
}
p {
margin: 0;
padding: 0;
}
dl,
dt,
dd {
margin: 0... | Update base file in styles | Update base file in styles
| SCSS | mit | SnowdogApps/magento2-alpaca-ui-components,SnowdogApps/magento2-alpaca-ui-components | scss | ## Code Before:
* {
box-sizing: border-box;
}
body {
min-width: 320px;
font-family: $font-family-base;
font-weight: $font-weight-base;
font-size: $font-size-base;
color: $font-color-base;
}
## Instruction:
Update base file in styles
## Code After:
*:focus {
outline: 0;
}
*,
*::after,
*:... |
ef920cf60564622f99642092e67f82b5d24d0db2 | src/map/entities/footstep.js | src/map/entities/footstep.js | var Footstep = Entity.extend({
alpha: 0.5,
init: function (x, y, d) {
this.posX = x + chance.integer({
min: -2,
max: +2
});
this.posY = y + chance.integer({
min: -2,
max: +2
});
this.direction = d;
this.width = 7;
... | var Footstep = Entity.extend({
alpha: 0.5,
init: function (x, y, d) {
this.posX = x + chance.integer({
min: -2,
max: +2
});
this.posY = y + chance.integer({
min: -2,
max: +2
});
this.direction = d;
this.width = 7;
... | Fix graphical issue where they "flicker" when fading away | [Content] Footstep: Fix graphical issue where they "flicker" when fading away
| JavaScript | mit | burningtomatoes/CabinInTheSnow | javascript | ## Code Before:
var Footstep = Entity.extend({
alpha: 0.5,
init: function (x, y, d) {
this.posX = x + chance.integer({
min: -2,
max: +2
});
this.posY = y + chance.integer({
min: -2,
max: +2
});
this.direction = d;
t... |
12223ea5bc82d3e1d89cad2a375766b912034bd3 | app/parameters/lottery_entrant_parameters.rb | app/parameters/lottery_entrant_parameters.rb |
class LotteryEntrantParameters < BaseParameters
def self.csv_export_attributes
%w[
division_name
first_name
last_name
gender
birthdate
city
state
country
number_of_tickets
]
end
def self.mapping
lottery_entrant_mapping = {
tickets: :number_... |
class LotteryEntrantParameters < BaseParameters
def self.csv_export_attributes
%w[
division_name
first_name
last_name
gender
birthdate
city
state
country
number_of_tickets
pre_selected
external_id
]
end
def self.mapping
lottery_entran... | Add external id to lottery entrant parameters | Add external id to lottery entrant parameters
| Ruby | mit | SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,SplitTime/OpenSplitTime | ruby | ## Code Before:
class LotteryEntrantParameters < BaseParameters
def self.csv_export_attributes
%w[
division_name
first_name
last_name
gender
birthdate
city
state
country
number_of_tickets
]
end
def self.mapping
lottery_entrant_mapping = {
t... |
036c2cd154d187442b1d04ad15d11f20b9dbf3fd | README.md | README.md |
First, obtain the OpenCPU staging password (needed to access screensmart-r) by running this command:
`ssh -t 10.210.90.11 'sudo cat /var/www/screensmart.roqua-staging.nl/current/.env | grep OPENCPU_PASSWORD'`
Add a file .env.local, containing:
`OPENCPU_PASSWORD=<OPENCPU_PASSWORD of above command`
Then, as usual:
```b... | [](https://circleci.com/gh/roqua/screensmart)
# Development Machine installation
First, obtain the OpenCPU staging password (needed to access screensmart-r) by running this command:
`ssh -t 10.210.90.11 'sudo cat /var/www/screensmart.roqua-staging.n... | Add circle badge and deployment instructions | Add circle badge and deployment instructions
| Markdown | mit | roqua/screensmart,roqua/screensmart,roqua/screensmart | markdown | ## Code Before:
First, obtain the OpenCPU staging password (needed to access screensmart-r) by running this command:
`ssh -t 10.210.90.11 'sudo cat /var/www/screensmart.roqua-staging.nl/current/.env | grep OPENCPU_PASSWORD'`
Add a file .env.local, containing:
`OPENCPU_PASSWORD=<OPENCPU_PASSWORD of above command`
Then... |
eb5bd72b1f51778c277d67b8e873e94169d5bb92 | package.js | package.js | Package.describe({
name: 'brettle:accounts-multiple',
version: '0.0.1',
summary: 'Handles users that login with multiple services.',
git: 'git@github.com:brettle/meteor-accounts-multiple.git',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.1.0.2');
api.use('accounts-base... | Package.describe({
name: 'brettle:accounts-multiple',
version: '0.0.1',
summary: 'Handles users that login with multiple services.',
git: 'git@github.com:brettle/meteor-accounts-multiple.git',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.1.0.2');
api.use('accounts-base... | Remove weak dependency on oauth-encryption. | Remove weak dependency on oauth-encryption.
Only the accounts-add-service package uses it and it only uses it when
it exists, and if a services uses oauth, it would already require
oauth-encryption, so there is no reason to add the dependency there either.
| JavaScript | mit | brettle/meteor-accounts-multiple | javascript | ## Code Before:
Package.describe({
name: 'brettle:accounts-multiple',
version: '0.0.1',
summary: 'Handles users that login with multiple services.',
git: 'git@github.com:brettle/meteor-accounts-multiple.git',
documentation: 'README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.1.0.2');
api.us... |
4295e2805fcb9b98f07b59ba14310437f6528094 | src/IntegerValidatorFiller.php | src/IntegerValidatorFiller.php | <?php
namespace Phramework\ValidateFiller;
use Phramework\Validate\BaseValidator;
use Phramework\Validate\IntegerValidator;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @since 0.1.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
*/
class IntegerValidatorFiller implements IValidator... | <?php
namespace Phramework\ValidateFiller;
use Phramework\Validate\BaseValidator;
use Phramework\Validate\IntegerValidator;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @since 0.1.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
*/
class IntegerValidatorFiller implements IValidator... | Improve integer filler to avoid random failures when using exclusive limits | Improve integer filler to avoid random failures when using exclusive limits
| PHP | apache-2.0 | phramework/validate-filler | php | ## Code Before:
<?php
namespace Phramework\ValidateFiller;
use Phramework\Validate\BaseValidator;
use Phramework\Validate\IntegerValidator;
/**
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @since 0.1.0
* @author Xenofon Spafaridis <nohponex@gmail.com>
*/
class IntegerValidatorFiller imple... |
f994883a22219598847e2b95378a13107f86a016 | configs/ha/tc785.yaml | configs/ha/tc785.yaml | ---
# Test Case TC785: Reboot controller node
- method: lab.scenarios.tempest_test
test: tempest.thirdparty.cisco.cvd.UCSMTest.test_create_delete_networks
etime: 300
git: https://github.com/cisco-openstack/tempest.git
branch: proposed
tempest_config_dir: /home/stack
- method: lab.scenarios.tempest_test
te... | ---
# Test Case TC785: Reboot controller node
- method: lab.scenarios.tempest_test
test: tempest.thirdparty.cisco.cvd.UCSMTest.test_create_delete_networks
etime: 300
git: https://github.com/cisco-openstack/tempest.git
branch: proposed
tempest_config_dir: /home/stack
- method: lab.scenarios.tempest_test
te... | Update g8 conf according to defaults | Update g8 conf according to defaults
Change-Id: I9b5ae62d9346e7da14f962933491982b4e266f72
| YAML | apache-2.0 | CiscoSystems/os-sqe,CiscoSystems/os-sqe,CiscoSystems/os-sqe | yaml | ## Code Before:
---
# Test Case TC785: Reboot controller node
- method: lab.scenarios.tempest_test
test: tempest.thirdparty.cisco.cvd.UCSMTest.test_create_delete_networks
etime: 300
git: https://github.com/cisco-openstack/tempest.git
branch: proposed
tempest_config_dir: /home/stack
- method: lab.scenarios.t... |
7a842d9e2e8c51d8499fd8a0b19497ee9abdcb81 | app/workers/assign_recommendations_worker.rb | app/workers/assign_recommendations_worker.rb | class AssignRecommendationsWorker
include Sidekiq::Worker
def perform(teacher_id)
teacher = User.find(teacher_id)
analytics = AssignRecommendationsAnalytics.new
analytics.track_activity_assignment(teacher)
end
end
| class AssignRecommendationsWorker
include Sidekiq::Worker
def perform(teacher_id)
teacher = User.find(teacher_id)
analytics = AssignRecommendationsAnalytics.new
analytics.track(teacher)
end
end
| Fix no method error in segment worker. | Fix no method error in segment worker.
| Ruby | agpl-3.0 | empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core | ruby | ## Code Before:
class AssignRecommendationsWorker
include Sidekiq::Worker
def perform(teacher_id)
teacher = User.find(teacher_id)
analytics = AssignRecommendationsAnalytics.new
analytics.track_activity_assignment(teacher)
end
end
## Instruction:
Fix no method error in segment worker.
## Code After... |
3276827fa6351a93f33bf81668c6688d5fb5607b | app/styles/_sign_in_screen.scss | app/styles/_sign_in_screen.scss | .form-signin {
max-width: 300px;
margin: 0 auto;
position: absolute;
top: 50%;
transform: translateY(-165px);
left: 40%;
background: $blue_light3;
padding: 20px;
border-radius: 10px;
.form-signin-heading {
font-weight: 300;
text-transform: uppercase;
lett... | .form-signin {
max-width: 300px;
margin: 0 auto;
position: absolute;
transform: translate(-142px, -165px);
top: 50%;
left: 50%;
background: $blue_light3;
padding: 20px;
border-radius: 10px;
.form-signin-heading {
font-weight: 300;
text-transform: uppercase;
... | Adjust horizontal alignment of sign in modal | Adjust horizontal alignment of sign in modal
| SCSS | mit | HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend,HospitalRun/hospitalrun-frontend | scss | ## Code Before:
.form-signin {
max-width: 300px;
margin: 0 auto;
position: absolute;
top: 50%;
transform: translateY(-165px);
left: 40%;
background: $blue_light3;
padding: 20px;
border-radius: 10px;
.form-signin-heading {
font-weight: 300;
text-transform: upperca... |
dda02f1424aa470e7ad2884f9eec71bd526e391f | app/views/api_docs/index.html.haml | app/views/api_docs/index.html.haml | - page_title t("Conferences")
.row
.large-12.columns.show-for-medium-up.show-for-landscape
%ul.breadcrumbs
%li
= link_to t("home"), root_path
%li.current
API
.row
.large-12.columns
%h1.subheader
API
%hr
| - page_title t("Conferences")
.row
.large-12.columns.show-for-medium-up.show-for-landscape
%ul.breadcrumbs
%li
= link_to t("home"), root_path
%li.current
API
.row
.large-12.columns
%h1.subheader
API
%hr
.alert-box.alert.radius
%i.fa.fa-warning.fa-2x.fa-fw
... | Add initial API docs WARNING: outdated content | Add initial API docs
WARNING: outdated content
| Haml | mit | guluc3m/gul-gultalks,guluc3m/gul-gultalks,guluc3m/gul-gultalks | haml | ## Code Before:
- page_title t("Conferences")
.row
.large-12.columns.show-for-medium-up.show-for-landscape
%ul.breadcrumbs
%li
= link_to t("home"), root_path
%li.current
API
.row
.large-12.columns
%h1.subheader
API
%hr
## Instruction:
Add initial API docs
WARNING: out... |
ba60384a1f4232a2d9e1d04fbf95a5841b183d3f | lymph/services/scheduler.py | lymph/services/scheduler.py | import gevent
import msgpack
import redis
import time
from lymph.core.interfaces import Interface
from lymph.core.decorators import rpc
class Scheduler(Interface):
service_type = 'scheduler'
schedule_key = 'schedule'
def __init__(self, *args, **kwargs):
super(Scheduler, self).__init__(*args, **k... | import gevent
import msgpack
import redis
import time
from lymph.core.interfaces import Interface
from lymph.core.decorators import rpc
from lymph.utils import make_id
class Scheduler(Interface):
service_type = 'scheduler'
schedule_key = 'schedule'
def __init__(self, *args, **kwargs):
super(Sche... | Include ids for scheduled events to make schedule data unique | Include ids for scheduled events to make schedule data unique
| Python | apache-2.0 | deliveryhero/lymph,alazaro/lymph,itakouna/lymph,lyudmildrx/lymph,itakouna/lymph,mamachanko/lymph,mamachanko/lymph,lyudmildrx/lymph,kstrempel/lymph,mouadino/lymph,emulbreh/lymph,dushyant88/lymph,alazaro/lymph,vpikulik/lymph,emulbreh/lymph,Drahflow/lymph,itakouna/lymph,mamachanko/lymph,torte/lymph,alazaro/lymph,mouadino/... | python | ## Code Before:
import gevent
import msgpack
import redis
import time
from lymph.core.interfaces import Interface
from lymph.core.decorators import rpc
class Scheduler(Interface):
service_type = 'scheduler'
schedule_key = 'schedule'
def __init__(self, *args, **kwargs):
super(Scheduler, self).__i... |
4aeaeecf92339cba7cdcffdc3261beb0d76bab58 | .travis.yml | .travis.yml | branches:
only:
- master
language: java
sudo: false
jdk: oraclejdk8
install: true
script:
- git config --local user.name "Hiromu Hota"
- git config --local user.email "hiromu.hota@hal.hitachi.com"
- export TRAVIS_TAG=nightly
- git tag $TRAVIS_TAG --force
- git push -f https://${GITHUB_TOKEN}@github.com/... | branches:
only:
- master
language: java
jdk: openjdk8
install: true
script:
- git config --local user.name "Hiromu Hota"
- git config --local user.email "hiromu.hota@hal.hitachi.com"
- export TRAVIS_TAG=nightly
- git tag $TRAVIS_TAG --force
- git push -f https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_... | Use openjdk8 instead of oraclejdk8 and remove sudo: false | Use openjdk8 instead of oraclejdk8 and remove sudo: false
| YAML | apache-2.0 | HiromuHota/webspoon-docker | yaml | ## Code Before:
branches:
only:
- master
language: java
sudo: false
jdk: oraclejdk8
install: true
script:
- git config --local user.name "Hiromu Hota"
- git config --local user.email "hiromu.hota@hal.hitachi.com"
- export TRAVIS_TAG=nightly
- git tag $TRAVIS_TAG --force
- git push -f https://${GITHUB_TO... |
8557aff3b74bb0bf240fcc05ae73ff05caf1ce97 | CPPWebFramework/cwf/dbstorage.h | CPPWebFramework/cwf/dbstorage.h |
CWF_BEGIN_NAMESPACE
namespace DbStorage {
CPPWEBFRAMEWORKSHARED_EXPORT static CWF::SqlDatabaseStorage _storage;
CPPWEBFRAMEWORKSHARED_EXPORT static QString _secret;
}
CWF_END_NAMESPACE
|
CWF_BEGIN_NAMESPACE
namespace DbStorage {
static CWF::SqlDatabaseStorage _storage;
static QString _secret;
}
CWF_END_NAMESPACE
| Remove the dll export flag | Remove the dll export flag
| C | mit | HerikLyma/CPPWebFramework,HerikLyma/CPPWebFramework | c | ## Code Before:
CWF_BEGIN_NAMESPACE
namespace DbStorage {
CPPWEBFRAMEWORKSHARED_EXPORT static CWF::SqlDatabaseStorage _storage;
CPPWEBFRAMEWORKSHARED_EXPORT static QString _secret;
}
CWF_END_NAMESPACE
## Instruction:
Remove the dll export flag
## Code After:
CWF_BEGIN_NAMESPACE
namespace DbStorage {
... |
d999f4eccf486b8a677e0e5b276b0261901f208d | metadata.rb | metadata.rb | name 'aliases'
issues_url 'https://github.com/osuosl-cookbooks/aliases/issues'
source_url 'https://github.com/osuosl-cookbooks/aliases'
maintainer 'Oregon State University'
maintainer_email 'chef@osuosl.org'
license 'Apache 2.0'
description 'Installs/Configures aliases'
long_... | name 'aliases'
issues_url 'https://github.com/osuosl-cookbooks/aliases/issues'
source_url 'https://github.com/osuosl-cookbooks/aliases'
maintainer 'Oregon State University'
maintainer_email 'chef@osuosl.org'
license 'Apache 2.0'
description 'Installs/Configures aliases'
long_... | Add versions for centos and debian. | Add versions for centos and debian.
| Ruby | apache-2.0 | osuosl-cookbooks/aliases | ruby | ## Code Before:
name 'aliases'
issues_url 'https://github.com/osuosl-cookbooks/aliases/issues'
source_url 'https://github.com/osuosl-cookbooks/aliases'
maintainer 'Oregon State University'
maintainer_email 'chef@osuosl.org'
license 'Apache 2.0'
description 'Installs/Configure... |
42f992b66b56a71e58f2114142bb9dca8a3cea44 | src/navigation/index.js | src/navigation/index.js | /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { ROUTES } from './constants';
export { getCurrentRouteName, getCurrentParams } from './selectors';
export { MainStackNavigator } from './Navigator';
| /**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { ROUTES } from './constants';
export { getCurrentRouteName, getCurrentParams } from './selectors';
export { MainStackNavigator } from './Navigator';
export { RootNavigator, rootNavigatorRef } from './RootNavigator';
| Add exporting of root navigation ref and functions | Add exporting of root navigation ref and functions
| JavaScript | mit | sussol/mobile,sussol/mobile,sussol/mobile,sussol/mobile | javascript | ## Code Before:
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
export { ROUTES } from './constants';
export { getCurrentRouteName, getCurrentParams } from './selectors';
export { MainStackNavigator } from './Navigator';
## Instruction:
Add exporting of root navigation ref and functions
## Code Aft... |
b7e639dfad82b5fe163818df35b5a771c6ed4911 | config/space_api.yml | config/space_api.yml | space: init Lab
logo: initlab-logo.png
url: https://initlab.org
location:
address: floor 2, 6 Rila str., Sofia, Bulgaria
lat: 42.70789247
lon: 23.32527086
spacefed:
spacenet: false
spacesaml: false
spacephone: false
contact:
irc: irc://irc.ludost.net/#initlab
twitter: '@initLab'
ml: yo@initlab.org
i... | space: init Lab
logo: initlab-logo.png
url: https://initlab.org
location:
address: floor 3, 64A, Tsar Asen Str., Sofia, Bulgaria
lat: 42.6879500
lon: 23.3169100
spacefed:
spacenet: false
spacesaml: false
spacephone: false
contact:
irc: irc://irc.ludost.net/#initlab
twitter: '@initLab'
ml: yo@initlab.o... | Update address and location in SpaceAPI config | Update address and location in SpaceAPI config
| YAML | mit | initLab/fauna,initLab/fauna,initLab/fauna | yaml | ## Code Before:
space: init Lab
logo: initlab-logo.png
url: https://initlab.org
location:
address: floor 2, 6 Rila str., Sofia, Bulgaria
lat: 42.70789247
lon: 23.32527086
spacefed:
spacenet: false
spacesaml: false
spacephone: false
contact:
irc: irc://irc.ludost.net/#initlab
twitter: '@initLab'
ml: yo... |
3b879e32d7063b4b83867fac9a8c38f042a0fc2b | arch/x86_64/rsp/vmov.c | arch/x86_64/rsp/vmov.c | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {... | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, rsp_vect_t vt_shuffle) {... | Remove debug information from VMOV code | Remove debug information from VMOV code
| C | bsd-3-clause | tj90241/cen64,tj90241/cen64 | c | ## Code Before:
//
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, rsp_vect... |
5b9123350224035e3dd3aaab6af32d5226146a9b | ops/docker/mmock/config/put_user_1.json | ops/docker/mmock/config/put_user_1.json | {
"request": {
"method": "PUT",
"path": "/users/1",
"headers": {
"Content-Type":["application/json"]
},
"body": "{\"first_name\":\"Tom\",\"last_name\":\"Foobar\"}"
},
"response": {
"statusCode": 200,
"headers": {
"Content-Type":["application/json"]
},
"body": "{\"id... | {
"request": {
"method": "PUT",
"path": "/users/1",
"headers": {
"Content-Type":["application/json"]
},
"body": "{\"user_id\":\"1\",\"first_name\":\"Tom\",\"last_name\":\"Foobar\"}"
},
"response": {
"statusCode": 200,
"headers": {
"Content-Type":["application/json"]
},
... | Change mmock for array merge optional parameters | Change mmock for array merge optional parameters
| JSON | mit | CMProductions/http-client,CMProductions/http-client | json | ## Code Before:
{
"request": {
"method": "PUT",
"path": "/users/1",
"headers": {
"Content-Type":["application/json"]
},
"body": "{\"first_name\":\"Tom\",\"last_name\":\"Foobar\"}"
},
"response": {
"statusCode": 200,
"headers": {
"Content-Type":["application/json"]
},
... |
6d108393be2b60b03ec5e5abb1bba3f97d79b885 | lib/webrat/sinatra.rb | lib/webrat/sinatra.rb | require 'webrat/rack'
require 'sinatra'
require 'sinatra/test/methods'
module Webrat
class SinatraSession < RackSession #:nodoc:
include Sinatra::Test::Methods
%w(get head post put delete).each do |verb|
define_method(verb) do |*args| # (path, data, headers = nil)
path, data, headers = *args
... | require 'webrat/rack'
require 'sinatra'
require 'sinatra/test/methods'
module Webrat
class SinatraSession < RackSession #:nodoc:
include Sinatra::Test::Methods
attr_reader :request, :response
%w(get head post put delete).each do |verb|
define_method(verb) do |*args| # (path, data, headers = n... | Allow accessing the request and response from SinatraSession | Allow accessing the request and response from SinatraSession
| Ruby | mit | m3talsmith/webrat,johnbintz/webrat,brynary/webrat,brynary/webrat,jacksonfish/webrat,irfanah/webrat,irfanah/webrat,djanowski/webrat,m3talsmith/webrat,johnbintz/webrat,djanowski/webrat,irfanah/webrat,jacksonfish/webrat | ruby | ## Code Before:
require 'webrat/rack'
require 'sinatra'
require 'sinatra/test/methods'
module Webrat
class SinatraSession < RackSession #:nodoc:
include Sinatra::Test::Methods
%w(get head post put delete).each do |verb|
define_method(verb) do |*args| # (path, data, headers = nil)
path, data, h... |
542551ee04698d3c5e18570bae0acefacb951167 | recipes/wgs-assembler/build.sh | recipes/wgs-assembler/build.sh | export INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LD_LIBRARY_PATH="${PREFIX}/lib"
export LDFLAGS="-L${PREFIX}/lib"
export CPPFLAGS="-I${PREFIX}/include"
cd $SRC_DIR/kmer
find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g'
make install prefix=$PREFIX
c... | export INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LD_LIBRARY_PATH="${PREFIX}/lib"
export LDFLAGS="-L${PREFIX}/lib"
export CPPFLAGS="-I${PREFIX}/include"
find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g'
find . -type f -name "*.pm" | xargs sed -i.bak... | Move and add sed commands | Move and add sed commands
| Shell | mit | ivirshup/bioconda-recipes,rob-p/bioconda-recipes,dmaticzka/bioconda-recipes,hardingnj/bioconda-recipes,Luobiny/bioconda-recipes,zachcp/bioconda-recipes,keuv-grvl/bioconda-recipes,keuv-grvl/bioconda-recipes,ostrokach/bioconda-recipes,jfallmann/bioconda-recipes,bow/bioconda-recipes,BIMSBbioinfo/bioconda-recipes,institute... | shell | ## Code Before:
export INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LD_LIBRARY_PATH="${PREFIX}/lib"
export LDFLAGS="-L${PREFIX}/lib"
export CPPFLAGS="-I${PREFIX}/include"
cd $SRC_DIR/kmer
find . -type f -name "*.pl" | xargs sed -i.bak 's/usr\/bin\/perl/usr\/bin\/env perl/g'
make install ... |
44d6291285455c7dfa4d70792da7e438c61bdaf4 | README.md | README.md | Trips History
=============
Convert from a trip-oriented JSON format for easy inputting to [GeoJSON](http://geojson.org/) for easy mapping.
JSON trip format
----------------
```json
{
// List of travelers on any trip; for input verification
"known travelers": ["..."],
// List of cities visited for which ... | Trips History
=============
Convert from a trip-oriented JSON format for easy inputting to [GeoJSON](http://geojson.org/) for easy mapping.
JSON trip format
----------------
```json
{
"known travelers": ["List of travelers on any trip; for input verification"],
"misc. cities visited": [
["location ..... | Make the JSON example strict JSON | Make the JSON example strict JSON
| Markdown | mit | brettcannon/trips-history,brettcannon/trips-history | markdown | ## Code Before:
Trips History
=============
Convert from a trip-oriented JSON format for easy inputting to [GeoJSON](http://geojson.org/) for easy mapping.
JSON trip format
----------------
```json
{
// List of travelers on any trip; for input verification
"known travelers": ["..."],
// List of cities vi... |
4ade946f4d21e32ed8fc25394758c3bc22148cc1 | app/views/udl_modules/edit.html.erb | app/views/udl_modules/edit.html.erb | <div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1><%= @udl_module.title %></h1>
<%= render 'edit_module_form' %>
<%= link_to 'Show', @udl_module %> |
<%= link_to 'Back', udl_modules_path %>
</div>
</div>
</div>
| <div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1><%= @udl_module.title %></h1>
<%= render 'edit_module_form' %>
<%= link_to(
fa_icon( 'arrow-left', text: 'Back to module' ),
@udl_module
) %>
</div>
</div>
<... | Add navigation button to module edit view. | Add navigation button to module edit view.
Adds a "back to module" navigation button to the
app/views/udl_modules/edit.html.erb file.
| HTML+ERB | mit | CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org,CollegeSTAR/collegestar_org | html+erb | ## Code Before:
<div id="content-wrapper">
<div id="single-column-wrapper">
<div id="content">
<h1><%= @udl_module.title %></h1>
<%= render 'edit_module_form' %>
<%= link_to 'Show', @udl_module %> |
<%= link_to 'Back', udl_modules_path %>
</div>
</div>
</div>
## Instru... |
7387765412996283cfd88dc4dfc835ed30301411 | package.json | package.json | {
"name": "color-time",
"repository": "shaine/color-time",
"version": "0.0.1",
"description": "Convert datetime into a color",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"color",
"datetime"
],
"author": "Shaine Hatch <shaine@sq... | {
"name": "color-time",
"repository": "shaine/color-time",
"version": "0.0.2",
"description": "Convert datetime into a color",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha spec"
},
"keywords": [
"color",
"datetime"
],
"author": "Shaine Hatch <shaine@squidtree.com> ... | Add test script to npm | Add test script to npm
| JSON | mit | shaine/color-time | json | ## Code Before:
{
"name": "color-time",
"repository": "shaine/color-time",
"version": "0.0.1",
"description": "Convert datetime into a color",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"color",
"datetime"
],
"author": "Shaine ... |
d56254b3fc79b51f7a640ce893d40229766b76b9 | src/Oro/Bundle/LocaleBundle/Resources/config/validation.yml | src/Oro/Bundle/LocaleBundle/Resources/config/validation.yml | Oro\Bundle\LocaleBundle\Entity\Localization:
constraints:
- Oro\Bundle\LocaleBundle\Validator\Constraints\Localization: ~
properties:
name:
- Length:
max: 255
- NotBlank: ~
titles:
- Valid: ~
- NotBlank:
mess... | Oro\Bundle\LocaleBundle\Entity\Localization:
constraints:
- Oro\Bundle\LocaleBundle\Validator\Constraints\Localization: ~
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
properties:
name:
- Length:
max: 255
- NotBlank: ~
... | Test and merge to master - fixed migrations - added uniq constraint for field name | BAP-10622: Test and merge to master
- fixed migrations
- added uniq constraint for field name
| YAML | mit | Djamy/platform,trustify/oroplatform,trustify/oroplatform,orocrm/platform,geoffroycochard/platform,orocrm/platform,Djamy/platform,geoffroycochard/platform,Djamy/platform,geoffroycochard/platform,trustify/oroplatform,orocrm/platform | yaml | ## Code Before:
Oro\Bundle\LocaleBundle\Entity\Localization:
constraints:
- Oro\Bundle\LocaleBundle\Validator\Constraints\Localization: ~
properties:
name:
- Length:
max: 255
- NotBlank: ~
titles:
- Valid: ~
- NotBlank:
... |
12dae6da82a4abdf6bbd4014193c9c321144f69a | docs/focus/2018-04-16.md | docs/focus/2018-04-16.md |
- Atom core
- Separated keyboard enablement from "readOnly" TextEditor state in [atom/atom#17124](https://github.com/atom/atom/pull/17124).
- Atom IDE
- GitHub Package
- Completed, merged, and shipped "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/1376), which I used to open this pull... |
- Atom core
- Separated keyboard enablement from "readOnly" TextEditor state in [atom/atom#17124](https://github.com/atom/atom/pull/17124).
- Atom IDE
- GitHub Package
- Completed, merged, and shipped "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/1376), which I used to open this pull... | Add Teletype highlights from the past week | Add Teletype highlights from the past week
| Markdown | mit | andrewleverette/atom,Mokolea/atom,stinsonga/atom,PKRoma/atom,atom/atom,andrewleverette/atom,brettle/atom,stinsonga/atom,stinsonga/atom,t9md/atom,t9md/atom,brettle/atom,PKRoma/atom,liuderchi/atom,andrewleverette/atom,PKRoma/atom,brettle/atom,Mokolea/atom,liuderchi/atom,liuderchi/atom,atom/atom,liuderchi/atom,atom/atom,s... | markdown | ## Code Before:
- Atom core
- Separated keyboard enablement from "readOnly" TextEditor state in [atom/atom#17124](https://github.com/atom/atom/pull/17124).
- Atom IDE
- GitHub Package
- Completed, merged, and shipped "Create pull request" [atom/github#1376](https://github.com/atom/github/pull/1376), which I used t... |
1e79cd759114ef19cfb020948d3bcca4d843d487 | app/controllers/admin/application_controller.rb | app/controllers/admin/application_controller.rb | class Admin::ApplicationController < ActionController::Base
protect_from_forgery
http_basic_authenticate_with :name => CONFIG[:admin_username], :password => CONFIG[:admin_password]
layout 'admin/layouts/application'
end
| class Admin::ApplicationController < ActionController::Base
layout 'admin/layouts/application'
protect_from_forgery
http_basic_authenticate_with(:name => CONFIG[:admin_username], :password => CONFIG[:admin_password]) if ['staging', 'sales'].include?(Rails.env)
end
| Add basic HTTP auth only for selected environments | Add basic HTTP auth only for selected environments
| Ruby | mit | hedra-digital/livro-da-classe,hedra-digital/livro-da-classe,hedra-digital/livro-da-classe,hedra-digital/livro-da-classe,hedra-digital/livro-da-classe,hedra-digital/livro-da-classe | ruby | ## Code Before:
class Admin::ApplicationController < ActionController::Base
protect_from_forgery
http_basic_authenticate_with :name => CONFIG[:admin_username], :password => CONFIG[:admin_password]
layout 'admin/layouts/application'
end
## Instruction:
Add basic HTTP auth only for selected environments
## Cod... |
e6a8086a8b22d98afc9669670cd76e79c2c5db8c | packages/ki/kind-apply.yaml | packages/ki/kind-apply.yaml | homepage: ''
changelog-type: ''
hash: 5501ba015d47133ae52f0dffd9ebca2b581603565ae2f2c6bc56dbd27976b4b6
test-bench-deps: {}
maintainer: trupill@gmail.com
synopsis: Utilities to work with lists of types
changelog: ''
basic-deps:
base: ! '>=4.12 && <5'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
author: Alejandro Serrano
late... | homepage: ''
changelog-type: ''
hash: 9f502d42c78aebf2ffb5f8f9d710bfcb2f06d18173bf00485fa5792585eb03b3
test-bench-deps: {}
maintainer: trupill@gmail.com
synopsis: Utilities to work with lists of types
changelog: ''
basic-deps:
base: ! '>=4.12 && <5'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
- '0.3.0.0'
author: Alejandro ... | Update from Hackage at 2018-12-10T07:56:23Z | Update from Hackage at 2018-12-10T07:56:23Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: 5501ba015d47133ae52f0dffd9ebca2b581603565ae2f2c6bc56dbd27976b4b6
test-bench-deps: {}
maintainer: trupill@gmail.com
synopsis: Utilities to work with lists of types
changelog: ''
basic-deps:
base: ! '>=4.12 && <5'
all-versions:
- '0.1.0.0'
- '0.2.0.0'
author: Alejan... |
20f00d89ed1726c6ec9e39ed199c56b323701b23 | README.md | README.md | Light core C++17 library for [Yave](https://github.com/gan74/Yave).
## Building
You need:
* CMake
* A C++17 compiler (GCC 7.1)
### Licence:
MIT | ![Travis CI][https://travis-ci.org/gan74/y.svg?branch=master]
Light core C++17 library for [Yave](https://github.com/gan74/Yave).
## Building
You need:
* CMake
* A C++17 compiler (GCC 7.1)
### Licence:
MIT | Add Travis widget to Readme | Add Travis widget to Readme
| Markdown | mit | gan74/Yave,gan74/Yave,gan74/Yave | markdown | ## Code Before:
Light core C++17 library for [Yave](https://github.com/gan74/Yave).
## Building
You need:
* CMake
* A C++17 compiler (GCC 7.1)
### Licence:
MIT
## Instruction:
Add Travis widget to Readme
## Code After:
![Travis CI][https://travis-ci.org/gan74/y.svg?branch=master]
Light core C++17 library for [Ya... |
d3c73ac49a10cd745d2bb787a23e44795609569f | r/db_parameter_group.html.markdown | r/db_parameter_group.html.markdown | ---
layout: "aws"
page_title: "AWS: aws_db_parameter_group"
sidebar_current: "docs-aws-resource-db-parameter-group"
---
# aws\_db\_parameter\_group
Provides an RDS DB parameter group resource.
## Example Usage
```
resource "aws_db_parameter_group" "default" {
name = "rds_pg"
family = "mysql5.6"
descript... | ---
layout: "aws"
page_title: "AWS: aws_db_parameter_group"
sidebar_current: "docs-aws-resource-db-parameter-group"
---
# aws\_db\_parameter\_group
Provides an RDS DB parameter group resource.
## Example Usage
```
resource "aws_db_parameter_group" "default" {
name = "rds_pg"
family = "mysql5.6"
descript... | Implement apply_method for RDS parameters | Implement apply_method for RDS parameters
This is necessary to support creating parameter groups with parameters
that require a reboot, since the RDS API will return an error when
attempting to set those parameters with ApplyMethod "immediate".
| Markdown | mpl-2.0 | charles-at-geospock/terraform-provider-aws,ClementCunin/terraform-provider-aws,nbaztec/terraform-provider-aws,Ninir/terraform-provider-aws,charles-at-geospock/terraform-provider-aws,ClementCunin/terraform-provider-aws,ashinohara/terraform-provider-aws,terraform-providers/terraform-provider-aws,nbaztec/terraform-provide... | markdown | ## Code Before:
---
layout: "aws"
page_title: "AWS: aws_db_parameter_group"
sidebar_current: "docs-aws-resource-db-parameter-group"
---
# aws\_db\_parameter\_group
Provides an RDS DB parameter group resource.
## Example Usage
```
resource "aws_db_parameter_group" "default" {
name = "rds_pg"
family = "mysql5... |
8c6240fcd3c804673da9c606aafabdbd70c6a8f5 | spec/paths/rfqs@v1@quoteshifts@{quoteShiftId}.yaml | spec/paths/rfqs@v1@quoteshifts@{quoteShiftId}.yaml | get:
summary: Fetch single quote shift
description: |
Endpoint for fetching a single quote shift.
SPEC UPDATE - Add status, client-id, outgoing-rfq-id and booked-user to quoteShift. Rename rfq-id to incoming-rfq-id. Remove booked.
tags:
- Quote shifts UPDATE
parameters:
- name: quoteShiftId
... | get:
summary: Fetch single quote shift
description: |
Endpoint for fetching a single quote shift.
SPEC UPDATE - Add status, client-id, outgoing-rfq-id and booked-user to quoteShift. Rename rfq-id to incoming-rfq-id. Remove booked.
tags:
- Quote shifts UPDATE
parameters:
- name: quoteShiftId
... | Add endpoint for deleting quoteshift in DRAFT state | Add endpoint for deleting quoteshift in DRAFT state
| YAML | mit | TimeZynk/timezynk-api-spec | yaml | ## Code Before:
get:
summary: Fetch single quote shift
description: |
Endpoint for fetching a single quote shift.
SPEC UPDATE - Add status, client-id, outgoing-rfq-id and booked-user to quoteShift. Rename rfq-id to incoming-rfq-id. Remove booked.
tags:
- Quote shifts UPDATE
parameters:
- name: ... |
dd87542654e86b2acb42afbe540a6c00c43b065d | colorlist/assets/css/style.css | colorlist/assets/css/style.css | ul.color-list-field {
overflow: auto;
list-style-type: none;
padding: 15px 1.5em;
}
ul.color-list-field li {
float: left;
position: relative;
margin: 0 0.75em 0.75em 0;
}
ul.color-list-field li input {
display: none;
}
ul.color-list-field li input:checked + span {
-webkit-box-shadow: 0px 0... | ul.color-list-field {
overflow: auto;
list-style-type: none;
padding: 15px 1.5em;
}
ul.color-list-field li {
float: left;
position: relative;
margin: 0 0.75em 0.75em 0;
}
ul.color-list-field li input {
display: none;
}
ul.color-list-field li input:checked + span {
border: 5px solid rgba(0,... | Update box-shadow to transparent stroke | Update box-shadow to transparent stroke | CSS | mit | Thiousi/kirby-color-list | css | ## Code Before:
ul.color-list-field {
overflow: auto;
list-style-type: none;
padding: 15px 1.5em;
}
ul.color-list-field li {
float: left;
position: relative;
margin: 0 0.75em 0.75em 0;
}
ul.color-list-field li input {
display: none;
}
ul.color-list-field li input:checked + span {
-webkit-box-shadow: 0px... |
80b7b09ded700e4c138de4520afe419482c6132a | package.json | package.json | {
"name": "webworks",
"version": "0.0.1",
"preferGlobal": "true",
"description": "WebWorks command line interface tool",
"main": "webworks",
"engines":{
"node":">=0.9.9"
},
"engineStrict":true,
"bin": {
"webworks": "./bin/webworks"
},
"scripts": {
"test": "jasmine-node --color spec"
... | {
"name": "webworks",
"version": "0.0.1",
"preferGlobal": "true",
"description": "WebWorks command line interface tool",
"main": "webworks",
"engines":{
"node":">=0.9.9"
},
"engineStrict":true,
"bin": {
"webworks": "./bin/webworks"
},
"scripts": {
"test": "jasmine-node --color spec"
... | Change cordova-cli dependency to latest (overriden in product by repo contents) | Change cordova-cli dependency to latest (overriden in product by repo contents)
| JSON | apache-2.0 | blackberry/webworks-cli,blackberry/webworks-cli,blackberry/webworks-cli,blackberry-webworks/webworks-cli,blackberry/webworks-cli | json | ## Code Before:
{
"name": "webworks",
"version": "0.0.1",
"preferGlobal": "true",
"description": "WebWorks command line interface tool",
"main": "webworks",
"engines":{
"node":">=0.9.9"
},
"engineStrict":true,
"bin": {
"webworks": "./bin/webworks"
},
"scripts": {
"test": "jasmine-nod... |
0f7a86e27795a50783df97f909a3bab94630273b | .github/ISSUE_TEMPLATE.md | .github/ISSUE_TEMPLATE.md | Original:
```scala
ORIGINAL CODE SNIPPET
```
Scalafmt:
```scala
OUTPUT FROM SCALAFMT
```
I would like the input to look like this:
```scala
HOW YOU WANT THE OUTPUT TO LOOK LIKE.
```
Using
* 0.1.x
| Original:
```scala
ORIGINAL CODE SNIPPET
```
Scalafmt:
```scala
OUTPUT FROM SCALAFMT
```
I would like the input to look like this:
```scala
HOW YOU WANT THE OUTPUT TO LOOK LIKE.
```
Using:
* 0.2.x
* --style default
| Update issue template to include style | Update issue template to include style
| Markdown | apache-2.0 | olafurpg/scalafmt,olafurpg/scalafmt,scalameta/scalafmt,scalameta/scalafmt,Daxten/scalafmt,scalameta/scalafmt,olafurpg/scalafmt,olafurpg/scalafmt,Daxten/scalafmt,scalameta/scalafmt | markdown | ## Code Before:
Original:
```scala
ORIGINAL CODE SNIPPET
```
Scalafmt:
```scala
OUTPUT FROM SCALAFMT
```
I would like the input to look like this:
```scala
HOW YOU WANT THE OUTPUT TO LOOK LIKE.
```
Using
* 0.1.x
## Instruction:
Update issue template to include style
## Code After:
Original:
```scala
ORIGINAL CODE ... |
dae923853e0218fc77923f4512f72d0109e8f4bb | setup.py | setup.py | from setuptools import setup
PACKAGE_NAME = 'funsize'
PACKAGE_VERSION = '0.1'
setup(name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description='partial mar webservice prototype',
long_description='https://wiki.mozilla.org/User:Ffledgling/Senbonzakura',
classifiers=[],
author='Anhad Jai Sing... | from setuptools import setup
PACKAGE_NAME = 'funsize'
PACKAGE_VERSION = '0.1'
setup(name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description='partial mar webservice prototype',
long_description='https://wiki.mozilla.org/User:Ffledgling/Senbonzakura',
classifiers=[],
author='Anhad Jai Sing... | Add boto as requirement for funsize deployment. | Add boto as requirement for funsize deployment.
| Python | mpl-2.0 | petemoore/build-funsize,petemoore/build-funsize | python | ## Code Before:
from setuptools import setup
PACKAGE_NAME = 'funsize'
PACKAGE_VERSION = '0.1'
setup(name=PACKAGE_NAME,
version=PACKAGE_VERSION,
description='partial mar webservice prototype',
long_description='https://wiki.mozilla.org/User:Ffledgling/Senbonzakura',
classifiers=[],
author... |
ed5a7aff4fe2d5798a67599e9e9c6cf034032789 | docs/releases.rst | docs/releases.rst | Releases
========
Version 1.5, Released May 8, 2015
---------------------------------
* Update Bootstrap to 3.3.4.
* Remove rendering artifact that appeared in Chrome.
Version 1.4, Released April 16, 2015
------------------------------------
* Officially support Python 2.6, 2.7, 3.3, and 3.4.
* Integrate Mozilla Pe... | Releases
========
Version 1.6, Released February 7, 2016
--------------------------------------
* Integrate with Git to provide version history for wiki pages.
* Add the option to re-index the search engine from the command
line or the administrator interface.
Version 1.5, Released May 8, 2015
--------------------... | Set release notes for next version. | Set release notes for next version.
| reStructuredText | bsd-2-clause | mblayman/markwiki,mblayman/markwiki | restructuredtext | ## Code Before:
Releases
========
Version 1.5, Released May 8, 2015
---------------------------------
* Update Bootstrap to 3.3.4.
* Remove rendering artifact that appeared in Chrome.
Version 1.4, Released April 16, 2015
------------------------------------
* Officially support Python 2.6, 2.7, 3.3, and 3.4.
* Inte... |
9a31627cff224c92286abd46a16f7693aed3d925 | templates/settings/admin/signaling-server.php | templates/settings/admin/signaling-server.php | <?php
/** @var array $_ */
/** @var \OCP\IL10N $l */
script('spreed', ['admin/signaling-server']);
style('spreed', ['settings-admin']);
?>
<div class="videocalls section signaling-server">
<h3><?php p($l->t('Signaling server')) ?></h3>
<p class="settings-hint"><?php p($l->t('An external signaling server can optional... | <?php
/** @var array $_ */
/** @var \OCP\IL10N $l */
script('spreed', ['admin/signaling-server']);
style('spreed', ['settings-admin']);
?>
<div class="videocalls section signaling-server">
<h3><?php p($l->t('Signaling server')) ?></h3>
<p class="settings-hint"><?php p($l->t('An external signaling server can optional... | Make shared secret translatable again | Make shared secret translatable again
Signed-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>
| PHP | agpl-3.0 | nextcloud/spreed,nextcloud/spreed,nextcloud/spreed | php | ## Code Before:
<?php
/** @var array $_ */
/** @var \OCP\IL10N $l */
script('spreed', ['admin/signaling-server']);
style('spreed', ['settings-admin']);
?>
<div class="videocalls section signaling-server">
<h3><?php p($l->t('Signaling server')) ?></h3>
<p class="settings-hint"><?php p($l->t('An external signaling ser... |
130e83e62721a326ff73a695aa2ce26b1f63a319 | README.md | README.md | Product design gems: articles, talks, podcasts
| Product design gems: articles, talks, podcasts
## Available Online
The links are also available online at http://www.burntcaramel.com/reprise/
| Add link to online Reprise | Add link to online Reprise | Markdown | mit | BurntCaramel/Reprise | markdown | ## Code Before:
Product design gems: articles, talks, podcasts
## Instruction:
Add link to online Reprise
## Code After:
Product design gems: articles, talks, podcasts
## Available Online
The links are also available online at http://www.burntcaramel.com/reprise/
|
bfe7a2eb49a54029dc66e9710be863d3cbd87d19 | README.md | README.md | = Private Wiki plugin for Redmine
Allows individual wiki pages to be set as private. Private pages are visible only to roles with "View private wiki pages" permission.
http://www.redmine.org/plugins/private_wiki
== ChiliProject
If you are using ChiliProject you must take a look at plugin https://github.com/jnv/chili... |
Allows individual wiki pages to be set as private. Private pages are visible only to roles with "View private wiki pages" permission.
http://www.redmine.org/plugins/private_wiki

## ChiliProject
If you are using ChiliProject you... | Change readme format to markdown | Change readme format to markdown
| Markdown | mit | ochorocho/redmine_private_wiki,f0y/redmine_private_wiki,ochorocho/redmine_private_wiki,ochorocho/redmine_private_wiki | markdown | ## Code Before:
= Private Wiki plugin for Redmine
Allows individual wiki pages to be set as private. Private pages are visible only to roles with "View private wiki pages" permission.
http://www.redmine.org/plugins/private_wiki
== ChiliProject
If you are using ChiliProject you must take a look at plugin https://gith... |
8cf1c7122a5057e2d8cea2d42b0b18b30a8f7142 | src/webservice/fennecweb/ajax/details/Projects.php | src/webservice/fennecweb/ajax/details/Projects.php | <?php
namespace fennecweb\ajax\details;
use \PDO as PDO;
/**
* Web Service.
* Returns a project according to the project ID.
*/
class Projects extends \fennecweb\WebService
{
/**
* @param $querydata[]
* @returns Array $result
* <code>
* array('project_id': {biomfile});
* </code>
*/
... | <?php
namespace fennecweb\ajax\details;
use \PDO as PDO;
/**
* Web Service.
* Returns a project according to the project ID.
*/
class Projects extends \fennecweb\WebService
{
/**
* @param $querydata[]
* @returns Array $result
* <code>
* array('project_id': {biomfile});
* </code>
*/
... | Implement webservice which returns a project according to the projects id | Implement webservice which returns a project according to the projects id
| PHP | mit | molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec | php | ## Code Before:
<?php
namespace fennecweb\ajax\details;
use \PDO as PDO;
/**
* Web Service.
* Returns a project according to the project ID.
*/
class Projects extends \fennecweb\WebService
{
/**
* @param $querydata[]
* @returns Array $result
* <code>
* array('project_id': {biomfile});
* </... |
608eadac4d0c7ab53298f1b07d5b5c8bcd29f957 | src/ConnectionStatus.jsx | src/ConnectionStatus.jsx | import { observer } from 'mobx-react'
import React from 'react'
import { connect } from 'react-redux'
import FlatButton from 'material-ui/FlatButton'
import { app } from '@mindhive/di'
const ConnectionStatus = ({
domains: { connectionDomain } = app(),
vocab,
}) =>
connectionDomain.connectionDown &&
<div sty... | import { observer } from 'mobx-react'
import React from 'react'
import FlatButton from 'material-ui/FlatButton'
import { app } from '@mindhive/di'
const ConnectionStatus = ({
domains: { connectionDomain } = app(),
}) =>
connectionDomain.connectionDown &&
<div style={{ background: 'red', color: 'white' }}>
... | Remove use of vocab to keep generic | Remove use of vocab to keep generic
| JSX | mit | mindhivenz/mui-components | jsx | ## Code Before:
import { observer } from 'mobx-react'
import React from 'react'
import { connect } from 'react-redux'
import FlatButton from 'material-ui/FlatButton'
import { app } from '@mindhive/di'
const ConnectionStatus = ({
domains: { connectionDomain } = app(),
vocab,
}) =>
connectionDomain.connectionDown... |
17bcd21bf30b3baabbacb1e45b59c7103b3cdbd3 | webpack/webpack.common.config.js | webpack/webpack.common.config.js | // Common webpack configuration used by webpack.hot.config and webpack.rails.config.
var path = require("path");
module.exports = {
context: __dirname, // the project dir
entry: [ "./assets/javascripts/example" ],
// In case you wanted to load jQuery from the CDN, this is how you would do it:
// externals: {
... | // Common webpack configuration used by webpack.hot.config and webpack.rails.config.
var path = require("path");
module.exports = {
context: __dirname, // the project dir
entry: [ "./assets/javascripts/example" ],
// In case you wanted to load jQuery from the CDN, this is how you would do it:
// externals: {
... | Remove exposing React as that was fixed in the React update | Remove exposing React as that was fixed in the React update
| JavaScript | mit | mscienski/stpauls,szyablitsky/react-webpack-rails-tutorial,RomanovRoman/react-webpack-rails-tutorial,crmaxx/react-webpack-rails-tutorial,roxolan/react-webpack-rails-tutorial,Rvor/react-webpack-rails-tutorial,phosphene/react-on-rails-cherrypick,jeffthemaximum/Teachers-Dont-Pay-Jeff,shakacode/react-webpack-rails-tutorial... | javascript | ## Code Before:
// Common webpack configuration used by webpack.hot.config and webpack.rails.config.
var path = require("path");
module.exports = {
context: __dirname, // the project dir
entry: [ "./assets/javascripts/example" ],
// In case you wanted to load jQuery from the CDN, this is how you would do it:
... |
2cd2dda36c56c9b55bfc10d1677968b06586dbd6 | bash_completion.sh | bash_completion.sh |
_git-scripts()
{
local cmd="${1##*/}"
local cur=${COMP_WORDS[COMP_CWORD]}
local line=${COMP_LINE}
# Check to see what command is being executed.
case "$cmd" in
feature)
if [ "$line" = "$cmd $cur" ]; then
words="switch start finish stashes list merge pull status"
else
# ... |
_git-scripts()
{
local cmd="${1##*/}"
local cur=${COMP_WORDS[COMP_CWORD]}
local line=${COMP_LINE}
# Check to see what command is being executed.
case "$cmd" in
feature)
if [ "$line" = "$cmd $cur" ]; then
words="switch start finish stashes list merge pull status clean"
else
... | Add clean to <TAB>-completions list | Add clean to <TAB>-completions list
| Shell | mit | iFixit/git-scripts,iFixit/git-scripts | shell | ## Code Before:
_git-scripts()
{
local cmd="${1##*/}"
local cur=${COMP_WORDS[COMP_CWORD]}
local line=${COMP_LINE}
# Check to see what command is being executed.
case "$cmd" in
feature)
if [ "$line" = "$cmd $cur" ]; then
words="switch start finish stashes list merge pull status"
... |
a19408a7b4d0a44679465a5bbbdc38562e5f1e0d | src/components/animations/FadeIn/FadeIn.stories.js | src/components/animations/FadeIn/FadeIn.stories.js | import React from 'react';
import { storiesOf } from '@storybook/react';
import { FadeIn } from 'components';
storiesOf('Animations/FadeIn', module)
.add('default', () =>
<FadeIn in>
<h1>Example</h1>
</FadeIn>
)
.add('with 2000ms timeout', () =>
<FadeIn in timeout={2000... | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, number } from '@storybook/addon-knobs';
import { FadeIn } from 'components';
storiesOf('Animations/FadeIn', module)
.addDecorator(withKnobs)
.add('default', () => (
<FadeIn in={boolean('In', true)} ti... | Add knobs for `timeout` and `in` to the FadeIn compnent | Add knobs for `timeout` and `in` to the FadeIn compnent
| JavaScript | mit | MadeInHaus/react-redux-webpack-starter,MadeInHaus/react-redux-webpack-starter,MadeInHaus/react-redux-webpack-starter | javascript | ## Code Before:
import React from 'react';
import { storiesOf } from '@storybook/react';
import { FadeIn } from 'components';
storiesOf('Animations/FadeIn', module)
.add('default', () =>
<FadeIn in>
<h1>Example</h1>
</FadeIn>
)
.add('with 2000ms timeout', () =>
<FadeIn ... |
d8519b2963e5616c7762f985914d799044ca0ab0 | src/utils/backup.ts | src/utils/backup.ts | import * as localforage from 'localforage';
export const persistedStateToJsonString = async () => {
try {
const localForageKeys: string[] = await localforage.keys();
const stringArray = await Promise.all(
localForageKeys.map(
async key => `"${key}":` + (await localforage.getItem(key))
... | import * as localforage from 'localforage';
export const persistedStateToJsonString = async () => {
try {
const localForageKeys: string[] = await localforage.keys();
const stringArray = await Promise.all(
localForageKeys.map(
async key => `"${key}":` + (await localforage.getItem(key))
... | Add rejection condition to readUploadedFileAsText promise. | Add rejection condition to readUploadedFileAsText promise.
| TypeScript | mit | Anveio/mturk-engine,Anveio/mturk-engine,Anveio/mturk-engine | typescript | ## Code Before:
import * as localforage from 'localforage';
export const persistedStateToJsonString = async () => {
try {
const localForageKeys: string[] = await localforage.keys();
const stringArray = await Promise.all(
localForageKeys.map(
async key => `"${key}":` + (await localforage.getItem... |
67990f3f5a9679c62f85ff607729d743d69ab8a8 | src/components/tab.vue | src/components/tab.vue | <template>
<div class="flex flex-grow overflow-hidden">
<Panel
v-if="rootPanel"
:id="tab.root"
:panel="rootPanel"
:depth="0"
/>
</div>
</template>
<script>
import {mapState} from 'vuex'
import Panel from './panels'
export default {
components: {
Panel
},
props: {
tab: {
type: Object,
r... | <template>
<div class="flex flex-grow overflow-hidden max-h-full">
<Panel
v-if="rootPanel"
:id="tab.root"
:panel="rootPanel"
:depth="0"
/>
</div>
</template>
<script>
import {mapState} from 'vuex'
import Panel from './panels'
export default {
components: {
Panel
},
props: {
tab: {
type: O... | Fix scrolling issue when a lot of buttons in grid | Fix scrolling issue when a lot of buttons in grid
actually fixes #42
| Vue | mit | t2t2/obs-remote-tablet,t2t2/obs-remote-tablet,t2t2/obs-tablet-remote,t2t2/obs-tablet-remote | vue | ## Code Before:
<template>
<div class="flex flex-grow overflow-hidden">
<Panel
v-if="rootPanel"
:id="tab.root"
:panel="rootPanel"
:depth="0"
/>
</div>
</template>
<script>
import {mapState} from 'vuex'
import Panel from './panels'
export default {
components: {
Panel
},
props: {
tab: {
ty... |
9e30fa7a2ccfffa7af31a4595f9c45a037ab1085 | bin/appliskel/CMakeLists.txt | bin/appliskel/CMakeLists.txt | SET(SCRIPTS
envd
searchFreePort.sh
runRemote.sh
runAppli
runConsole
runSession
runSalomeScript
runTests
getAppliPath.py
update_catalogs.py
kill_remote_containers.py
)
SALOME_INSTALL_SCRIPTS("${SCRIPTS}" ${KERNEL_salomescript_SCRIPTS}/appliskel)
| SET(SCRIPTS
envd
searchFreePort.sh
runRemote.sh
runAppli
runConsole
runSession
runSalomeScript
runTests
.bashrc
getAppliPath.py
update_catalogs.py
kill_remote_containers.py
)
SALOME_INSTALL_SCRIPTS("${SCRIPTS}" ${KERNEL_salomescript_SCRIPTS}/appliskel)
| Add missing .bashrc script to be installed in appliskel with CMake procedure | Add missing .bashrc script to be installed in appliskel with CMake procedure
| Text | lgpl-2.1 | FedoraScientific/salome-kernel,FedoraScientific/salome-kernel,FedoraScientific/salome-kernel,FedoraScientific/salome-kernel | text | ## Code Before:
SET(SCRIPTS
envd
searchFreePort.sh
runRemote.sh
runAppli
runConsole
runSession
runSalomeScript
runTests
getAppliPath.py
update_catalogs.py
kill_remote_containers.py
)
SALOME_INSTALL_SCRIPTS("${SCRIPTS}" ${KERNEL_salomescript_SCRIPTS}/appliskel)
## Instruction:
Add missing .bashrc... |
ce4be92afa958f3e0ef207ad0ca51f7f48dc7028 | test/factories/campuses_factory.rb | test/factories/campuses_factory.rb | FactoryGirl.define do
factory :campus do
campus_name = ['Melbourne', 'Sydney', 'Perth', 'Hobart'].sample
campus_abbreviation = campus_name[0...3]
name campus_name
abbreviation campus_abbreviation
mode { ['timetable', 'automatic', 'manual'].sample }
end
end | FactoryGirl.define do
factory :campus do
campus_name = ['Melbourne', 'Sydney', 'Perth', 'Hobart'].sample
campus_abbreviation = campus_name[0...3]
name campus_name
abbreviation campus_abbreviation
mode { ['timetable', 'automatic', 'manual'].sample }
active tru... | Add active to campus factory | ENHANCE: Add active to campus factory
| Ruby | agpl-3.0 | doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,jakerenzella/doubtfire-api,doubtfire-lms/doubtfire-api,jakerenzella/doub... | ruby | ## Code Before:
FactoryGirl.define do
factory :campus do
campus_name = ['Melbourne', 'Sydney', 'Perth', 'Hobart'].sample
campus_abbreviation = campus_name[0...3]
name campus_name
abbreviation campus_abbreviation
mode { ['timetable', 'automatic', 'manual'].sample }
end... |
fd268a966aebfa3d8730ba690820eff2a4edf350 | .gitlab-ci.yml | .gitlab-ci.yml | cache:
paths:
- node_modules/
before_script:
- composer install --prefer-dist --no-interaction -o > /dev/null
- cp .env.example .env
- php artisan key:generate
- /home/gitlabci/gitlabci_vukcore.sh
- php artisan migrate -vvv
- php artisan module:migrate -vvv
- php artisan serve -q &
phpunit:php5.6:... | cache:
paths:
- node_modules/
before_script:
- composer install --prefer-dist --no-interaction -o > /dev/null
- cp .env.example .env
- php artisan key:generate
- /home/gitlabci/gitlabci_vukcore.sh
- php artisan migrate -vvv
- php artisan module:migrate -vvv
- php artisan serve -q &
phpunit:php5.6:... | Remove duplicate PHPCS script (PSR2 already includes PSR1) | Remove duplicate PHPCS script (PSR2 already includes PSR1)
PSR1 does not need to be run as a separate check, given
that in order for code to comply with PSR2, it must
also comply with PSR1
See: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
2. General
2.1. Basic Coding Stand... | YAML | mit | atoff/core,enlim/core,enlim/core,atoff/core,enlim/core | yaml | ## Code Before:
cache:
paths:
- node_modules/
before_script:
- composer install --prefer-dist --no-interaction -o > /dev/null
- cp .env.example .env
- php artisan key:generate
- /home/gitlabci/gitlabci_vukcore.sh
- php artisan migrate -vvv
- php artisan module:migrate -vvv
- php artisan serve -q &
... |
9daa20c4f49febf0046ed42e0b436ad9f6956a2c | qsjsonlistmodel.h | qsjsonlistmodel.h |
class QSJsonListModel : public QSListModel, public QQmlParserStatus
{
Q_OBJECT
Q_PROPERTY(QString keyField READ keyField WRITE setKeyField NOTIFY keyFieldChanged)
Q_PROPERTY(QVariantList source READ source WRITE setSource NOTIFY sourceChanged)
Q_PROPERTY(QStringList fields READ fields WRITE setFields N... |
/* QSJsonListModel is a data model that combine QSListModel and QSDiffRunner
* into a single class. It may take a Javascript array object as source input,
* it will compare with previous input then update the model according to
* the diff.
*/
class QSJsonListModel : public QSListModel, public QQmlParserStatus
{
... | Add description to QSJsonListModel in source file. | Add description to QSJsonListModel in source file.
| C | apache-2.0 | benlau/qsyncable,benlau/qsyncable | c | ## Code Before:
class QSJsonListModel : public QSListModel, public QQmlParserStatus
{
Q_OBJECT
Q_PROPERTY(QString keyField READ keyField WRITE setKeyField NOTIFY keyFieldChanged)
Q_PROPERTY(QVariantList source READ source WRITE setSource NOTIFY sourceChanged)
Q_PROPERTY(QStringList fields READ fields W... |
ee4857368959bcf2eaaaf55df35211ea3e71dce7 | utility/GameScreen.js | utility/GameScreen.js | /** @constructor */
PuzL.GameScreen = function( game )
{
this.gameShell = null;
this.parentScreen = null;
};
//window['GameScreen'] = PuzL.GameScreen;
PuzL.GameScreen.prototype.id = "";
PuzL.GameScreen.prototype.initialize = function()
{
};
PuzL.GameScreen.prototype.preload = function()
{
this.stage.disa... | /** @constructor */
PuzL.GameScreen = function( game )
{
this.gameShell = null;
this.parentScreen = null;
};
//window['GameScreen'] = PuzL.GameScreen;
PuzL.GameScreen.prototype.id = "";
PuzL.GameScreen.prototype.initialize = function()
{
};
PuzL.GameScreen.prototype.preload = function()
{
this.stage.disa... | Make sure the stage is always set to appropriate smoothed value. | Make sure the stage is always set to appropriate smoothed value.
| JavaScript | mit | puzzud/puzl | javascript | ## Code Before:
/** @constructor */
PuzL.GameScreen = function( game )
{
this.gameShell = null;
this.parentScreen = null;
};
//window['GameScreen'] = PuzL.GameScreen;
PuzL.GameScreen.prototype.id = "";
PuzL.GameScreen.prototype.initialize = function()
{
};
PuzL.GameScreen.prototype.preload = function()
{
... |
b9def2123ef26c556fd5641ca62e8cbcb0711d62 | blog/archive.html | blog/archive.html | ---
layout: card-page
title: "Blog archive"
---
<table>
{% for post in site.posts %}
{% capture currentYear %}{{post.date | date:'%Y'}}{% endcapture %}
{% if currentYear != prevYear %}<thead><tr><th colspan=2><h2>{{currentYear}}</h2><tbody>{% capture prevYear %}{{currentYear}}{% endcapture %}{% endif %}
<tr><th>{{post... | ---
layout: card-page
title: "Blog archive"
---
<table>{%
for post in site.posts %}{%
capture currentYear %}{{post.date | date:'%Y'}}{% endcapture %}{%
if currentYear != prevYear
%}<thead><tr><th colspan=2><h2>{{currentYear}}</h2><tbody>{%
capture prevYear %}{{currentYear}}{% endcapture %}{%
... | Remove unnecessary newlines in output | Remove unnecessary newlines in output
| HTML | mit | tommy-carlier/www.tcx.be,tommy-carlier/www.tcx.be,tommy-carlier/www.tcx.be | html | ## Code Before:
---
layout: card-page
title: "Blog archive"
---
<table>
{% for post in site.posts %}
{% capture currentYear %}{{post.date | date:'%Y'}}{% endcapture %}
{% if currentYear != prevYear %}<thead><tr><th colspan=2><h2>{{currentYear}}</h2><tbody>{% capture prevYear %}{{currentYear}}{% endcapture %}{% endif %... |
e674f8b1fdbde12d86dc59e50a26d7b2cd3fd15a | src/EasyCacheCollection.php | src/EasyCacheCollection.php | <?php
namespace Websanova\EasyCache;
class EasyCacheCollection extends \Illuminate\Database\Eloquent\Collection
{
public function recount($field)
{
foreach ($this->items as $item) {
$item->recount($field);
}
return $this;
}
public function reset()
{
fo... | <?php
namespace Websanova\EasyCache;
class EasyCacheCollection extends \Illuminate\Database\Eloquent\Collection
{
public function recount($field, $relation = null)
{
foreach ($this->items as $item) {
$item->recount($field, $relation);
}
return $this;
}
public func... | Fix recount relations when using collection. | Fix recount relations when using collection.
| PHP | mit | websanova/easycache | php | ## Code Before:
<?php
namespace Websanova\EasyCache;
class EasyCacheCollection extends \Illuminate\Database\Eloquent\Collection
{
public function recount($field)
{
foreach ($this->items as $item) {
$item->recount($field);
}
return $this;
}
public function reset()
... |
ec2675e2d033fd315462615784783bd9b7a3101c | package.json | package.json | {
"name": "praline",
"version": "1.0.0-alpha",
"description": "Praline",
"author": "Nevena Gaj <nevenagajevic@gmail.com>",
"license": "MIT"
}
| {
"name": "praline",
"version": "1.0.0-alpha",
"description": "Praline",
"author": "Nevena Gaj <nevenagajevic@gmail.com>",
"license": "MIT",
"scripts": {
"container": "export NAME=praline WORKDIR=/$NAME; if docker ps -a | grep -q $NAME; then npm run container:start; else npm run container:run; fi",
... | Add Docker container run scripts | Add Docker container run scripts
| JSON | mit | nevenagaj/praline | json | ## Code Before:
{
"name": "praline",
"version": "1.0.0-alpha",
"description": "Praline",
"author": "Nevena Gaj <nevenagajevic@gmail.com>",
"license": "MIT"
}
## Instruction:
Add Docker container run scripts
## Code After:
{
"name": "praline",
"version": "1.0.0-alpha",
"description": "Praline",
"auth... |
6a99767403046a74ae92628ae02fd6867553e800 | app.css | app.css | .strikethrough {
text-decoration:line-through
}
li{
padding: .2em;
}
| .strikethrough {
text-decoration:line-through
}
li{
padding: .2em;
}
.newtask li{
color: red;
font-style: italic;
} | Add styling for newtask live entry | Add styling for newtask live entry
| CSS | mit | haworku/angular-todo,haworku/angular-todo | css | ## Code Before:
.strikethrough {
text-decoration:line-through
}
li{
padding: .2em;
}
## Instruction:
Add styling for newtask live entry
## Code After:
.strikethrough {
text-decoration:line-through
}
li{
padding: .2em;
}
.newtask li{
color: red;
font-style: italic;
} |
1123057da3728015853bb8ac859e296575bc4ef7 | app/src/lib/is-git-on-path.ts | app/src/lib/is-git-on-path.ts | import { spawn } from 'child_process'
import * as Path from 'path'
export function isGitOnPath(): Promise<boolean> {
// Modern versions of macOS ship with a Git shim that guides you through
// the process of setting everything up. We trust this is available, so
// don't worry about looking for it here.
// I de... | import { spawn } from 'child_process'
import * as Path from 'path'
export function isGitOnPath(): Promise<boolean> {
// Modern versions of macOS ship with a Git shim that guides you through
// the process of setting everything up. We trust this is available, so
// don't worry about looking for it here.
if (__D... | Check if git is found under PATH on Linux | Check if git is found under PATH on Linux
| TypeScript | mit | shiftkey/desktop,kactus-io/kactus,desktop/desktop,desktop/desktop,j-f1/forked-desktop,kactus-io/kactus,artivilla/desktop,j-f1/forked-desktop,say25/desktop,say25/desktop,j-f1/forked-desktop,artivilla/desktop,artivilla/desktop,j-f1/forked-desktop,say25/desktop,desktop/desktop,shiftkey/desktop,kactus-io/kactus,shiftkey/de... | typescript | ## Code Before:
import { spawn } from 'child_process'
import * as Path from 'path'
export function isGitOnPath(): Promise<boolean> {
// Modern versions of macOS ship with a Git shim that guides you through
// the process of setting everything up. We trust this is available, so
// don't worry about looking for it... |
db94616549a1f756d35718ec9fd89e07eb0b188a | test/db/test_schema.rb | test/db/test_schema.rb | ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
ActiveRecord::Schema.define do
self.verbose = false
create_table :products do |t|
t.string :name
t.decimal :price
t.integer :quantity
t.date :released_at
t.datetime :updated_at
... | ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
ActiveRecord::Schema.define do
self.verbose = false
create_table :products do |t|
t.string :name
t.decimal :price
t.integer :quantity
t.date :released_at
t.datetime :updated_at
... | Remove not used column from test schema | Remove not used column from test schema
| Ruby | mit | raphaelcosta/i18n_alchemy,carlosantoniodasilva/i18n_alchemy | ruby | ## Code Before:
ActiveRecord::Base.establish_connection(
:adapter => "sqlite3",
:database => ":memory:"
)
ActiveRecord::Schema.define do
self.verbose = false
create_table :products do |t|
t.string :name
t.decimal :price
t.integer :quantity
t.date :released_at
t.datetime ... |
dc3a5012b9a96bb623485ec8d4c8adbdad99ebb3 | scripts/docker/alpine/3.8/Dockerfile | scripts/docker/alpine/3.8/Dockerfile | FROM alpine:3.8
RUN apk update \
&& apk add --no-cache \
build-base \
cmake \
git \
file \
curl \
yaml-cpp-dev \
bison
# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=4e4df226fc197c0dda6e37f5c8c3845ca1e73a49
RUN mkdir -p ${GTEST_ROOT} \
&& cd /tmp ... | FROM alpine:3.8
RUN apk update \
&& apk add --no-cache \
build-base \
cmake \
git \
file \
curl \
yaml-cpp-dev \
bison
# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=4e4df226fc197c0dda6e37f5c8c3845ca1e73a49
RUN mkdir -p ${GTEST_ROOT} \
&& cd /tmp ... | Test YAwn plugin on Alpine Linux | Docker: Test YAwn plugin on Alpine Linux
| unknown | bsd-3-clause | ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,BernhardDenner/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,mpranj/libelektra... | unknown | ## Code Before:
FROM alpine:3.8
RUN apk update \
&& apk add --no-cache \
build-base \
cmake \
git \
file \
curl \
yaml-cpp-dev \
bison
# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=4e4df226fc197c0dda6e37f5c8c3845ca1e73a49
RUN mkdir -p ${GTEST_ROOT} \... |
67c01fcf6ee0ff7d7457da3dffd6b2ddddcad69f | .github/workflows/phpstan.yml | .github/workflows/phpstan.yml | name: PHPStan
on:
push:
branches:
- master
pull_request:
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring
... | name: PHPStan
on:
push:
branches:
- master
pull_request:
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring
... | Revert "ensure PHPStan always starts fresh" | Revert "ensure PHPStan always starts fresh"
This reverts commit a8b6010c75b5299d55b01dc9aa8f91655a77e086.
| YAML | bsd-3-clause | mikey179/bovigo-callmap | yaml | ## Code Before:
name: PHPStan
on:
push:
branches:
- master
pull_request:
jobs:
analyse:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: m... |
0c52ce47db4b79e7f1a08ea58296b69fbc58501a | README.md | README.md | Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Future Releases
===============
... | Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Version 1.1 Features
===========... | Update Readme with v1.1 features | Update Readme with v1.1 features
| Markdown | mit | wiganlatics/arithmetic-tester | markdown | ## Code Before:
Learning tool for basic arithmetic
Version 1.0 Features
====================
1. Choice of operators (+,-, *, /)
2. Displays helper tables after second incorrect guess for a question
3. Displays the number of questions, guesses and correct answers
4. Displays a grade on test completion
Future Releases
... |
31d6e7fb61eccaabde867d7ec690e755e807af9e | lib/doex/cli/shell.ex | lib/doex/cli/shell.ex | defmodule Doex.Cli.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(msg) do
if has_mix?() do
Mix.shell.info(ms... | defmodule Doex.Cli.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(msg) do
if has_mix?() do
Mix.shell.info(ms... | Add an Shell.inspect that can omit the output if --quiet set | Add an Shell.inspect that can omit the output if --quiet set
| Elixir | mit | capbash/doex | elixir | ## Code Before:
defmodule Doex.Cli.Shell do
def cmd("doex") do
if has_mix?() do
"mix doex"
else
"doex"
end
end
def cmd(raw_cmd) do
if has_mix?() do
String.replace(raw_cmd, "doex ", "mix doex.")
else
raw_cmd
end
end
def info(msg) do
if has_mix?() do
M... |
d1d7f30b6b5ef6f7c603a87acec604bba7ab575a | lib/sprig/seed/factory.rb | lib/sprig/seed/factory.rb | module Sprig
module Seed
class Factory
def self.new_from_directive(directive)
raise ArgumentError, 'Must provide a Directive' unless directive.is_a? Directive
new(
directive.klass,
directive.datasource,
directive.options
)
end
def initializ... | module Sprig
module Seed
class Factory
def self.new_from_directive(directive)
raise ArgumentError, 'Must provide a Directive' unless directive.is_a? Directive
new(
directive.klass,
directive.datasource,
directive.options
)
end
def initializ... | Trim unused method from Sprig::Seed::Factory | Trim unused method from Sprig::Seed::Factory
| Ruby | mit | vigetlabs/sprig,ericbrooke/sprig | ruby | ## Code Before:
module Sprig
module Seed
class Factory
def self.new_from_directive(directive)
raise ArgumentError, 'Must provide a Directive' unless directive.is_a? Directive
new(
directive.klass,
directive.datasource,
directive.options
)
end
... |
8fba4b3987ddc05554391d007b98814ece29f74a | public_html/min/groupsConfig.php | public_html/min/groupsConfig.php | <?php
/**
* Groups configuration for default Minify implementation
* @package Minify
*/
/**
* You may wish to use the Minify URI Builder app to suggest
* changes. http://yourdomain/min/builder/
**/
return array(
// 'js' => array('//js/file1.js', '//js/file2.js'),
// 'css' => array('//css/file1.css', '/... | <?php
/**
* Groups configuration for default Minify implementation
* @package Minify
*/
/**
* You may wish to use the Minify URI Builder app to suggest
* changes. http://yourdomain/min/builder/
**/
return array(
// 'js' => array('//js/file1.js', '//js/file2.js'),
// 'css' => array('//css/file1.css', '/... | Print stylesheet must be separate, and is not currently available anyway | Print stylesheet must be separate, and is not currently available anyway
| PHP | bsd-3-clause | mariusc23/quoteden.net,mariusc23/quoteden.net | php | ## Code Before:
<?php
/**
* Groups configuration for default Minify implementation
* @package Minify
*/
/**
* You may wish to use the Minify URI Builder app to suggest
* changes. http://yourdomain/min/builder/
**/
return array(
// 'js' => array('//js/file1.js', '//js/file2.js'),
// 'css' => array('//cs... |
61fdb65b275c0324934bce1d0f4c65cb5e2a7e3b | requirements/base.txt | requirements/base.txt | pika>=0.9.5
python-daemon>=1.5.2
redis==2.4.11
ujson>=1.9
glob2==0.3
boto==2.8.0
mosquitto>=1.1
| boto==2.8.0
glob2==0.3
mosquitto>=1.1
msgpack-pure>=0.1.3
pika>=0.9.5
python-daemon>=1.5.2
redis==2.4.11
ujson>=1.9
| Add msgpack_pure as fallback for C-Based msgpack package | Add msgpack_pure as fallback for C-Based msgpack package
| Text | mit | imacube/python-beaver,davidmoravek/python-beaver,python-beaver/python-beaver,rajmarndi/python-beaver,thomasalrin/beaver,thomasalrin/beaver,timstoop/python-beaver,doghrim/python-beaver,rajmarndi/python-beaver,josegonzalez/python-beaver,PierreF/beaver,timstoop/python-beaver,python-beaver/python-beaver,doghrim/python-beav... | text | ## Code Before:
pika>=0.9.5
python-daemon>=1.5.2
redis==2.4.11
ujson>=1.9
glob2==0.3
boto==2.8.0
mosquitto>=1.1
## Instruction:
Add msgpack_pure as fallback for C-Based msgpack package
## Code After:
boto==2.8.0
glob2==0.3
mosquitto>=1.1
msgpack-pure>=0.1.3
pika>=0.9.5
python-daemon>=1.5.2
redis==2.4.11
ujson>=1.9
|
89815e91d0dd4a1b05499682fb77dae79debdd51 | package.json | package.json | {
"name": "Voicious",
"description": "",
"main": "./www/voicious.js",
"version": "0.2.1-b",
"repository": "git://github.com/Voicious/Voicious.git",
"dependencies": {
"express": "~3.1.0",
"jade": "~0.28.2",
"moment": "~2.0.0",
"MD5": "~1.0.3",
"ws": "~0.4.25",
"mongodb": "~1.3.8",
... | {
"name": "Voicious",
"description": "",
"main": "./www/voicious.js",
"version": "0.2.1-b",
"repository": "git://github.com/Voicious/Voicious.git",
"dependencies": {
"express": "~3.1.0",
"jade": "~0.28.2",
"moment": "~2.0.0",
"MD5": "~1.0.3",
"ws": "~0.4.25",
"mongodb": "~1.3.8",
... | Use master of grunt-docco for supporting latest docco version | Use master of grunt-docco for supporting latest docco version
| JSON | agpl-3.0 | ondrocks/Voicious | json | ## Code Before:
{
"name": "Voicious",
"description": "",
"main": "./www/voicious.js",
"version": "0.2.1-b",
"repository": "git://github.com/Voicious/Voicious.git",
"dependencies": {
"express": "~3.1.0",
"jade": "~0.28.2",
"moment": "~2.0.0",
"MD5": "~1.0.3",
"ws": "~0.4.25",
"mongodb... |
749e9e05569f50eb814156b949deaf5e255127e6 | app/styles/index.scss | app/styles/index.scss | body {
margin: 0;
background: #fff7ec;
}
ol li {
text-align: center;
list-style-type: none;
}
.hide {
display: none;
}
li span {
color: #ff7f66;
margin-right: 10px;
margin-left: 10px;
}
#footer {
background-color: #e5f3e9;
position: absolute;
bottom:0;
height: 65px;
width: 100%
}
#scroll ... | body {
margin: 0;
background: #fff7ec;
}
ol li {
text-align: center;
list-style-type: none;
}
.hide {
display: none;
}
li span {
color: #ff7f66;
margin-right: 10px;
margin-left: 10px;
}
#footer {
background-color: #e5f3e9;
position: absolute;
bottom:0;
height: 65px;
width: 100%;
box-shad... | Add paper style shadow to footer | Add paper style shadow to footer
| SCSS | mit | spanningtime/smokator,spanningtime/smokator | scss | ## Code Before:
body {
margin: 0;
background: #fff7ec;
}
ol li {
text-align: center;
list-style-type: none;
}
.hide {
display: none;
}
li span {
color: #ff7f66;
margin-right: 10px;
margin-left: 10px;
}
#footer {
background-color: #e5f3e9;
position: absolute;
bottom:0;
height: 65px;
width: ... |
608cd65d5caec14dfc9e40526ff0c196b1d3eb8b | html-templates/webapps/sencha.tpl | html-templates/webapps/sencha.tpl | <!DOCTYPE html>
<html>
<head>
{block "meta"}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{if $title}{$title}{else}{... | <!DOCTYPE html>
<html>
<head>
{block "meta"}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{if $title}{$title}{else}{... | Move app css loading to <head> to ensure precedence for runtime CSS | Move app css loading to <head> to ensure precedence for runtime CSS
| Smarty | mit | JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton,JarvusInnovations/Emergence-Skeleton | smarty | ## Code Before:
<!DOCTYPE html>
<html>
<head>
{block "meta"}
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{if $title... |
b4b54efb006a789d69af9f6179d9774e0eed9a7f | README.md | README.md |
Run `./setup`.
### Manually
Clone & create virtual env:
git clone git@github.com:SheepDogInc/django-base.git myproject
cd myproject/
mkvirtualenv myproject
Install Python & Node dependencies:
pip install -r requirements.txt
npm install
Add local Node modules to your `$PATH` in virtualenv's `p... |
Run `./setup`.
### Manually
Clone & create virtual env:
git clone git@github.com:SheepDogInc/django-base.git myproject
cd myproject/
mkvirtualenv myproject
Install Python & Node dependencies:
pip install -r requirements.txt -f https://s3.amazonaws.com/sheepdog-assets/feta/index.html --no-index
... | Update instructions to use feta. | Update instructions to use feta. | Markdown | bsd-3-clause | SheepDogInc/django-base,SheepDogInc/django-base | markdown | ## Code Before:
Run `./setup`.
### Manually
Clone & create virtual env:
git clone git@github.com:SheepDogInc/django-base.git myproject
cd myproject/
mkvirtualenv myproject
Install Python & Node dependencies:
pip install -r requirements.txt
npm install
Add local Node modules to your `$PATH` in... |
258ceb1b33761d74a936c8dde1ceb910aacddb42 | modules/qt_declarative.pri | modules/qt_declarative.pri | QT_DECLARATIVE_VERSION = $$QT_VERSION
QT_DECLARATIVE_MAJOR_VERSION = $$QT_MAJOR_VERSION
QT_DECLARATIVE_MINOR_VERSION = $$QT_MINOR_VERSION
QT_DECLARATIVE_PATCH_VERSION = $$QT_PATCH_VERSION
QT.declarative.name = QtDeclarative
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.de... | QT_DECLARATIVE_VERSION = $$QT_VERSION
QT_DECLARATIVE_MAJOR_VERSION = $$QT_MAJOR_VERSION
QT_DECLARATIVE_MINOR_VERSION = $$QT_MINOR_VERSION
QT_DECLARATIVE_PATCH_VERSION = $$QT_PATCH_VERSION
QT.declarative.name = QtDeclarative
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtDeclarative
QT.de... | Add the private_includes path to the modules .pri file | Add the private_includes path to the modules .pri file
| QMake | lgpl-2.1 | mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,qmlc/qtdeclarative,matthewvogt/q... | qmake | ## Code Before:
QT_DECLARATIVE_VERSION = $$QT_VERSION
QT_DECLARATIVE_MAJOR_VERSION = $$QT_MAJOR_VERSION
QT_DECLARATIVE_MINOR_VERSION = $$QT_MINOR_VERSION
QT_DECLARATIVE_PATCH_VERSION = $$QT_PATCH_VERSION
QT.declarative.name = QtDeclarative
QT.declarative.includes = $$QT_MODULE_INCLUDE_BASE $$QT_MODULE_INCLUDE_BASE/QtD... |
07a35f4d4b299dd25f4a7e59b8e7ea2405d54fca | workers/command_runner.rb | workers/command_runner.rb | require 'sidekiq'
require 'socket'
DEFAULT_SOCKET_PATH="/var/run/dokku-daemon/dokku-daemon.sock"
Sidekiq.configure_server do |config|
config.redis = { url: ENV["REDIS_URL"] }
end
class CommandRunner
include Sidekiq::Worker
def perform(command_id, command)
logger.info "Things are happening."
$redis = Re... | require 'sidekiq'
require 'socket'
DEFAULT_SOCKET_PATH="/var/run/dokku-daemon/dokku-daemon.sock"
Sidekiq.configure_server do |config|
config.redis = { url: ENV["REDIS_URL"] }
end
class CommandRunner
include Sidekiq::Worker
def perform(command_id, command)
logger.info "Things are happening."
logger.info ... | Fix Redis initialization bug on worker | Fix Redis initialization bug on worker
| Ruby | apache-2.0 | dokku/dokku-api | ruby | ## Code Before:
require 'sidekiq'
require 'socket'
DEFAULT_SOCKET_PATH="/var/run/dokku-daemon/dokku-daemon.sock"
Sidekiq.configure_server do |config|
config.redis = { url: ENV["REDIS_URL"] }
end
class CommandRunner
include Sidekiq::Worker
def perform(command_id, command)
logger.info "Things are happening."
... |
041e1545c99681c8cf9e43d364877d1ff43342d0 | augur/datasources/augur_db/test_augur_db.py | augur/datasources/augur_db/test_augur_db.py | import os
import pytest
@pytest.fixture(scope="module")
def augur_db():
import augur
augur_app = augur.Application()
return augur_app['augur_db']()
# def test_repoid(augur_db):
# assert ghtorrent.repoid('rails', 'rails') >= 1000
# def test_userid(augur_db):
# assert ghtorrent.userid('howderek') >... | import os
import pytest
@pytest.fixture(scope="module")
def augur_db():
import augur
augur_app = augur.Application()
return augur_app['augur_db']()
# def test_repoid(augur_db):
# assert ghtorrent.repoid('rails', 'rails') >= 1000
# def test_userid(augur_db):
# assert ghtorrent.userid('howderek') >... | Add Unit test for new contributors of issues | Add Unit test for new contributors of issues
Signed-off-by: Bingwen Ma <27def536c643ce1f88ca2c07ff6169767bd9a90f@gmail.com>
| Python | mit | OSSHealth/ghdata,OSSHealth/ghdata,OSSHealth/ghdata | python | ## Code Before:
import os
import pytest
@pytest.fixture(scope="module")
def augur_db():
import augur
augur_app = augur.Application()
return augur_app['augur_db']()
# def test_repoid(augur_db):
# assert ghtorrent.repoid('rails', 'rails') >= 1000
# def test_userid(augur_db):
# assert ghtorrent.user... |
6d435d7339087191472bba04fc1fe8d0a2124f82 | README.md | README.md | Design patterns commonly used to provide a reusable solutions for common problems.Design patterns will help you to avoid the errors that can happen while designing the software,e.g. eliminate the repetition by providing a set of reusable objects. In this project we will trying to focus on how to implement different de... | Design patterns commonly used to provide a reusable solutions for common problems.Design patterns will help you to avoid the errors that can happen while designing the software,e.g. eliminate the repetition by providing a set of reusable objects. In this project we will trying to focus on how to implement different de... | Add references link to readme.md | Add references link to readme.md | Markdown | mit | amdnaji/Design-Patterns | markdown | ## Code Before:
Design patterns commonly used to provide a reusable solutions for common problems.Design patterns will help you to avoid the errors that can happen while designing the software,e.g. eliminate the repetition by providing a set of reusable objects. In this project we will trying to focus on how to implem... |
d77f1e4f951477e267efbb06c7edc7f8cad76d7a | tools/fix-prod.js | tools/fix-prod.js | /**
* Trick to avoid a webpack issue
*
* https://github.com/webpack/webpack/issues/706
*/
const replace = require("replace-in-file");
// fix build/fatina.min.js
replace({
files: "build/fatina.min.js",
from: /.\.Fatina=.\(\)\}/g,
to: (match) => {
var src = match;
match = match.slice(0, -1);
match... | /**
* Trick to avoid a webpack issue
*
* https://github.com/webpack/webpack/issues/706
*/
const replace = require("replace-in-file");
// fix build/fatina.min.js
replace({
files: "build/fatina.min.js",
from: /.\.Fatina=.\(\)\}/g,
to: (match) => {
match = match.slice(0, -1);
match += ".default}";
... | Fix 'Strings must use doublequote' issue | Fix 'Strings must use doublequote' issue
| JavaScript | mit | kefniark/Fatina,kefniark/Fatina | javascript | ## Code Before:
/**
* Trick to avoid a webpack issue
*
* https://github.com/webpack/webpack/issues/706
*/
const replace = require("replace-in-file");
// fix build/fatina.min.js
replace({
files: "build/fatina.min.js",
from: /.\.Fatina=.\(\)\}/g,
to: (match) => {
var src = match;
match = match.slice... |
5cf46a5e130e7dd22d93030f84341059ae3ac469 | app/routes/interestgroups/components/InterestGroup.css | app/routes/interestgroups/components/InterestGroup.css | @import '~app/styles/variables.css';
.logo {
max-height: 500px;
max-width: 500px;
height: 50%;
width: auto;
}
.logoSmall {
max-height: 100px;
max-width: 100px;
border-radius: 100%;
}
.description {
font-size: 18px;
font-style: italic;
}
.listItem {
margin: 8px;
padding-left: 4px;
background:... | @import '~app/styles/variables.css';
.logo {
max-height: 500px;
max-width: 500px;
}
.logoSmall {
max-height: 100px;
max-width: 100px;
border-radius: 100%;
}
.description {
font-size: 18px;
font-style: italic;
}
.listItem {
margin: 8px;
padding-left: 4px;
background: var(--color-white);
}
.listI... | Remove height value for consistent ratio | Remove height value for consistent ratio | CSS | mit | webkom/lego-webapp,webkom/lego-webapp,webkom/lego-webapp | css | ## Code Before:
@import '~app/styles/variables.css';
.logo {
max-height: 500px;
max-width: 500px;
height: 50%;
width: auto;
}
.logoSmall {
max-height: 100px;
max-width: 100px;
border-radius: 100%;
}
.description {
font-size: 18px;
font-style: italic;
}
.listItem {
margin: 8px;
padding-left: 4p... |
2ba603b8316486f1a562e9ce77aa0efb5d1cd96d | src/org/rust/lang/structure/RustStructDeclFieldTreeElement.kt | src/org/rust/lang/structure/RustStructDeclFieldTreeElement.kt | package org.rust.lang.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import com.intellij.psi.NavigatablePsiElement
import org.rust.lang.core.psi.RustStructDeclField
class RustStructDeclFieldTreeElement(element: RustStructDe... | package org.rust.lang.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import com.intellij.psi.NavigatablePsiElement
import org.rust.lang.core.psi.RustStructDeclField
class RustStructDeclFieldTreeElement(element: RustStructDe... | Structure View: Include type info for struct fields | Structure View: Include type info for struct fields
| Kotlin | mit | anton-okolelov/intellij-rust,alygin/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,himikof/intellij-rust,Undin/intellij-rust,intellij-rust/intellij-rust,Undin/intellij-rust,Turbo87/intellij-rust,intellij-rust/intellij-rust,d9n/intellij-rust,anton-okolelov/intellij-rust,alygin/intellij-rust,ujpv/intellij-... | kotlin | ## Code Before:
package org.rust.lang.structure
import com.intellij.ide.structureView.StructureViewTreeElement
import com.intellij.ide.structureView.impl.common.PsiTreeElementBase
import com.intellij.psi.NavigatablePsiElement
import org.rust.lang.core.psi.RustStructDeclField
class RustStructDeclFieldTreeElement(eleme... |
40ad3851e5eebbd6c9ee4bc6f42ee07c98e4b739 | packages/lesswrong/styles/_header.scss | packages/lesswrong/styles/_header.scss |
// Used in vulcan-accounts
.accounts-ui{
padding: $vmargin;
width: 240px;
margin:auto;
.buttons{
.btn{
display: block;
width: 100%;
text-align: center;
margin-bottom: $vmargin;
&:last-child{
margin-bottom: 0;
}
}
}
}
// TODO: Figure out if this is used
.se... |
// Used in vulcan-accounts
.accounts-ui{
padding: $vmargin;
width: 240px;
margin:auto;
.buttons{
.btn{
display: block;
width: 100%;
text-align: center;
margin-bottom: $vmargin;
&:last-child{
margin-bottom: 0;
}
}
}
}
| Delete styling for unused class "search" | Delete styling for unused class "search"
| SCSS | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope | scss | ## Code Before:
// Used in vulcan-accounts
.accounts-ui{
padding: $vmargin;
width: 240px;
margin:auto;
.buttons{
.btn{
display: block;
width: 100%;
text-align: center;
margin-bottom: $vmargin;
&:last-child{
margin-bottom: 0;
}
}
}
}
// TODO: Figure out if ... |
150800cb5cdcee2ed4a53bf5589a46cbff26ab62 | README.md | README.md |
This repo contains Helen, Nicole, and William's STEP capstone project:
 |
This repo contains Helen, Nicole, and William's STEP capstone project:

Unite by STEP is a centralized platform for creating, sharing, and finding events relating to social good.
Our focus is on accessi... | Add images and brief description | Add images and brief description
| Markdown | apache-2.0 | googleinterns/step128-2020,googleinterns/step128-2020,googleinterns/step128-2020 | markdown | ## Code Before:
This repo contains Helen, Nicole, and William's STEP capstone project:

## Instruction:
Add images and brief description
## Code After:
This repo contains Helen, Nicole, and William's STEP... |
44206fc0b1356317413b6dc6256934945482ee88 | stanford/lagunita/worker1.yml | stanford/lagunita/worker1.yml | ---
- include: ../playbooks/worker.yml
vars:
CLUSTER_INSTANCE_TYPE: r4.xlarge
CLUSTER_NUMBER: 1
COMMON_DEPLOYMENT: lagunita
edx_platform_version: master
EDXAPP_COMPREHENSIVE_THEME_VERSION: master
| ---
- include: ../playbooks/worker.yml
vars:
CLUSTER_INSTANCE_TYPE: r4.xlarge
CLUSTER_NUMBER: 1
COMMON_DEPLOYMENT: lagunita
| Remove lagunita worker version overrides | Remove lagunita worker version overrides
| YAML | agpl-3.0 | Stanford-Online/configuration,Stanford-Online/configuration,Stanford-Online/configuration,Stanford-Online/configuration,Stanford-Online/configuration | yaml | ## Code Before:
---
- include: ../playbooks/worker.yml
vars:
CLUSTER_INSTANCE_TYPE: r4.xlarge
CLUSTER_NUMBER: 1
COMMON_DEPLOYMENT: lagunita
edx_platform_version: master
EDXAPP_COMPREHENSIVE_THEME_VERSION: master
## Instruction:
Remove lagunita worker version overrides
## Code After:
---
- includ... |
599811e2a80b6f123d3beeb8906c0b82e975da86 | maintenancemode/views/defaults.py | maintenancemode/views/defaults.py | from django.template import Context, loader
from maintenancemode import http
def temporary_unavailable(request, template_name='503.html'):
"""
Default 503 handler, which looks for the requested URL in the redirects
table, redirects if found, and displays 404 page if not redirected.
Templates: `50... | from django.template import RequestContext, loader
from maintenancemode import http
def temporary_unavailable(request, template_name='503.html'):
"""
Default 503 handler, which looks for the requested URL in the redirects
table, redirects if found, and displays 404 page if not redirected.
Templates: ... | Use RequestContext instead of just Context. | Use RequestContext instead of just Context.
| Python | bsd-3-clause | aarsan/django-maintenancemode,21strun/django-maintenancemode,shanx/django-maintenancemode,21strun/django-maintenancemode,shanx/django-maintenancemode,aarsan/django-maintenancemode | python | ## Code Before:
from django.template import Context, loader
from maintenancemode import http
def temporary_unavailable(request, template_name='503.html'):
"""
Default 503 handler, which looks for the requested URL in the redirects
table, redirects if found, and displays 404 page if not redirected.
... |
b9315cb1f0d875987156812f361b48ac1ebc77cf | lib/string/text.js | lib/string/text.js | var Node = require("./node");
var he = require("he");
function Text (value) {
this.nodeValue = value;
}
Node.extend(Text, {
/**
*/
nodeType: 3,
/**
*/
getInnerHTML: function () {
return this.nodeValue ? he.encode(String(this.nodeValue)) : this.nodeValue;
},
/**
*/
cloneNode: funct... | var Node = require("./node");
var he = require("he");
function Text (value) {
this.nodeValue = value;
this._encode = !!encode;
}
Node.extend(Text, {
/**
*/
nodeType: 3,
/**
*/
getInnerHTML: function () {
return ( this._nodeValue && this._encode ) ? he.encode( String( this._nodeValue ) ) : t... | Fix for paperclip's unsafe block | Fix for paperclip's unsafe block
Ok finally seems to be working...
{{content}} encodes and <unsafe html={{content}} /> doesn't now. | JavaScript | mit | crcn/nofactor.js,crcn-archive/nofactor.js | javascript | ## Code Before:
var Node = require("./node");
var he = require("he");
function Text (value) {
this.nodeValue = value;
}
Node.extend(Text, {
/**
*/
nodeType: 3,
/**
*/
getInnerHTML: function () {
return this.nodeValue ? he.encode(String(this.nodeValue)) : this.nodeValue;
},
/**
*/
... |
9854744e189714233496486ed3cc43c21bf3b8d8 | app/models/user.rb | app/models/user.rb | class User < ActiveRecord::Base
VICE_THRESHOLD = -2
VIRTUE_THRESHOLD = +2
has_one :champion
has_many :karma_events
validates :vice, :name, :phone_number, presence: :true
def phone_number=(phone_number)
write_attribute(:phone_number, PhoneNumber.new(phone_number).to_s)
end
def championed?
cham... | class User < ActiveRecord::Base
VICE_THRESHOLD = -2
VIRTUE_THRESHOLD = +2
has_one :champion
has_many :karma_events
validates :vice, :name, :phone_number, presence: :true
validates_uniqueness_of :phone_number
def phone_number=(phone_number)
write_attribute(:phone_number, PhoneNumber.new(phone_number)... | Make phone number signups unique | Make phone number signups unique
| Ruby | mit | zimkies/drunk,zimkies/drunk,zimkies/drunk | ruby | ## Code Before:
class User < ActiveRecord::Base
VICE_THRESHOLD = -2
VIRTUE_THRESHOLD = +2
has_one :champion
has_many :karma_events
validates :vice, :name, :phone_number, presence: :true
def phone_number=(phone_number)
write_attribute(:phone_number, PhoneNumber.new(phone_number).to_s)
end
def cham... |
e3d436ba7ba128aaebb480aeb07f1a013e8e75f1 | tests/headers/dupe-enum-variant-in-namespace.h | tests/headers/dupe-enum-variant-in-namespace.h | // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| // bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++ -std=c++11
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
| Fix a pre-existing failing test? | Fix a pre-existing failing test?
| C | bsd-3-clause | rust-lang/rust-bindgen,rust-lang/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,rust-lang/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen,emilio/rust-bindgen | c | ## Code Before:
// bindgen-flags: --rustified-enum ".*" --enable-cxx-namespaces -- -x c++
namespace foo {
enum class Bar : unsigned {
Foo = 0,
Foo1 = 0,
Foo2,
Foo3 = Foo2,
};
}
## Instruction:
Fix a pre-existing failing test?
## Code After:
// bindgen-flags: --rustified-enum ".*" --enable-cxx-nam... |
62e1e82cac70db9386c21817d07c394d29c85035 | src/OpenConext/EngineBlockBundle/Resources/config/event_listeners.yml | src/OpenConext/EngineBlockBundle/Resources/config/event_listeners.yml | services:
engineblock.listener.single_sign_on_exception:
class: OpenConext\EngineBlockBundle\EventListener\RedirectToFeedbackPageExceptionListener
arguments:
- "@engineblock.compat.application"
- "@router"
- "@engineblock.bridge.error_reporter"
- "@eng... | services:
engineblock.listener.redirect_to_feedback_page_exception:
class: OpenConext\EngineBlockBundle\EventListener\RedirectToFeedbackPageExceptionListener
arguments:
- "@engineblock.compat.application"
- "@router"
- "@engineblock.bridge.error_reporter"
... | Rename service definition for ExceptionListener | Rename service definition for ExceptionListener
| YAML | apache-2.0 | thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock,thijskh/OpenConext-engineblock | yaml | ## Code Before:
services:
engineblock.listener.single_sign_on_exception:
class: OpenConext\EngineBlockBundle\EventListener\RedirectToFeedbackPageExceptionListener
arguments:
- "@engineblock.compat.application"
- "@router"
- "@engineblock.bridge.error_reporter"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.