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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
999148a5a99f32fd02618ca228dbf85d54d2ce6c | openfisca_web_ui/static/js/models/LocatingChartM.js | openfisca_web_ui/static/js/models/LocatingChartM.js | define([
'jquery',
'underscore',
'backbone',
'backendServiceM',
'helpers',
'json!vingtilesD'
],
function ($, _, Backbone, backendServiceM, helpers, vingtiles) {
'use strict';
var LocatingChartM = Backbone.Model.extend({
code: null,
defaults: {
data: null,
vingtiles: null,
},
initialize: functio... | define([
'jquery',
'underscore',
'backbone',
'backendServiceM',
'helpers',
'json!vingtilesD'
],
function ($, _, Backbone, backendServiceM, helpers, vingtiles) {
'use strict';
var LocatingChartM = Backbone.Model.extend({
code: null,
defaults: {
data: null,
vingtiles: null,
},
initialize: functio... | Set model vingtiles on initialization. | Set model vingtiles on initialization.
| JavaScript | agpl-3.0 | openfisca/openfisca-web-ui,openfisca/openfisca-web-ui,openfisca/openfisca-web-ui | javascript | ## Code Before:
define([
'jquery',
'underscore',
'backbone',
'backendServiceM',
'helpers',
'json!vingtilesD'
],
function ($, _, Backbone, backendServiceM, helpers, vingtiles) {
'use strict';
var LocatingChartM = Backbone.Model.extend({
code: null,
defaults: {
data: null,
vingtiles: null,
},
ini... |
e3b044186f70ee588d525a0384c3eb3a0148a834 | config/deploy.rb | config/deploy.rb | $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require 'rvm/capistrano'
set :rvm_ruby_string, '1.9.2-p290'
# bundler bootstrap
require "bundler/capistrano"
# main details
set :application, "wishlist"
server "mhyee.com", :app, :web, :db, :primary => true
#server details
default_run_options[:pty] = true
ssh_op... | $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require 'rvm/capistrano'
set :rvm_ruby_string, '1.9.2-p290'
# bundler bootstrap
require "bundler/capistrano"
# main details
set :application, "wishlist"
server "mhyee.com", :app, :web, :db, :primary => true
#server details
default_run_options[:pty] = true
ssh_op... | Use app user for git, forward SSH keys | Use app user for git, forward SSH keys
| Ruby | mit | mhyee/wishlist,mhyee/wishlist | ruby | ## Code Before:
$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require 'rvm/capistrano'
set :rvm_ruby_string, '1.9.2-p290'
# bundler bootstrap
require "bundler/capistrano"
# main details
set :application, "wishlist"
server "mhyee.com", :app, :web, :db, :primary => true
#server details
default_run_options[:pt... |
78a4f37dc7dda8ca1abddad563cd25aaf2cd9a9b | series/templates/series/series_card.html | series/templates/series/series_card.html | <div class="panel panel-default">
<a href="{% url 'series:view' series.id %}" >
<div class="panel-body poster-area">
{% if series.poster %}
<img src="{{ series.poster.url }}" class="poster">
{% endif %}
</div>
</a>
<div class="panel-footer">
<h4><a title="{{ series.title }}" href="{%... | <div class="panel panel-default">
<a href="{% url 'series:view' series.id %}" >
<div class="panel-body poster-area">
{% if series.poster %}
<img src="{{ series.poster.url }}" class="poster">
{% endif %}
</div>
</a>
<div class="panel-footer">
<h4>
<a title="{{ series.title }}" h... | Add info url & clean up card | Add info url & clean up card
| HTML | mit | zyphrus/fetch-django,zyphrus/fetch-django,zyphrus/fetch-django,zyphrus/fetch-django | html | ## Code Before:
<div class="panel panel-default">
<a href="{% url 'series:view' series.id %}" >
<div class="panel-body poster-area">
{% if series.poster %}
<img src="{{ series.poster.url }}" class="poster">
{% endif %}
</div>
</a>
<div class="panel-footer">
<h4><a title="{{ series.ti... |
ab154c9d3bd2f3034382c82b8613613af80287b3 | src/modules/attitude_estimator_so3/module.mk | src/modules/attitude_estimator_so3/module.mk |
MODULE_COMMAND = attitude_estimator_so3
SRCS = attitude_estimator_so3_main.cpp \
attitude_estimator_so3_params.c
|
MODULE_COMMAND = attitude_estimator_so3
SRCS = attitude_estimator_so3_main.cpp \
attitude_estimator_so3_params.c
MODULE_STACKSIZE = 1200
| Reduce start tool stack size | attitude_estimator_so3: Reduce start tool stack size
| Makefile | bsd-3-clause | mje-nz/PX4-Firmware,PX4/Firmware,PX4/Firmware,dagar/Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,darknight-007/Firmware,mje-nz/PX4-Firmware,mje-nz/PX4-Firmware,PX4/Firmware,Aerotenna/Firmware,acfloria/Firmware,Aerotenna/Firmware,acfloria/Firmware,Aerotenna/Firmware,jlecoeur/Firmware,mcgill-robotics/Firmware,Ae... | makefile | ## Code Before:
MODULE_COMMAND = attitude_estimator_so3
SRCS = attitude_estimator_so3_main.cpp \
attitude_estimator_so3_params.c
## Instruction:
attitude_estimator_so3: Reduce start tool stack size
## Code After:
MODULE_COMMAND = attitude_estimator_so3
SRCS = attitude_estimator_so3_main.cpp \
atti... |
423a643c260df4a428df4507bd7270c00692893e | packages/st/strict-optics.yaml | packages/st/strict-optics.yaml | homepage: https://github.com/haskell-strict/strict
changelog-type: markdown
hash: d94dface219634057f522870cd913b94557726a92133639acba5685e2833e844
test-bench-deps: {}
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
synopsis: Optics for types in strict package
changelog: |
## 0.4.0.1
- Fix Each These instance
## ... | homepage: https://github.com/haskell-strict/strict
changelog-type: markdown
hash: 0edc7116d02bfcaf5e281ee93daa53a27bcfa85d7b22e4ebff87b33831d593e6
test-bench-deps: {}
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
synopsis: Optics for types in strict package
changelog: |
## 0.4.0.1
- Fix Each These instance
## ... | Update from Hackage at 2021-02-23T09:16:01Z | Update from Hackage at 2021-02-23T09:16:01Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/haskell-strict/strict
changelog-type: markdown
hash: d94dface219634057f522870cd913b94557726a92133639acba5685e2833e844
test-bench-deps: {}
maintainer: Oleg Grenrus <oleg.grenrus@iki.fi>
synopsis: Optics for types in strict package
changelog: |
## 0.4.0.1
- Fix Each These... |
19fa39dcb6509f2db8d448402ae94a0a05cbf7df | README.md | README.md | ryu-book
========
| ryu-book
========
Currently, only Japanese edition is available. You can get the various formats; pdf, mobi, epub, and html (automatically updated every time the source is updated) at:
# http://osrg.github.io/ryu/resources.html#books
| Add the URL for binaries | Add the URL for binaries
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>
| Markdown | apache-2.0 | iwaseyusuke/ryu-book,osrg/ryu-book,iwaseyusuke/ryu-book,osrg/ryu-book | markdown | ## Code Before:
ryu-book
========
## Instruction:
Add the URL for binaries
Signed-off-by: FUJITA Tomonori <93dac1fe9c4b2a3957982200319981492ad4976e@lab.ntt.co.jp>
## Code After:
ryu-book
========
Currently, only Japanese edition is available. You can get the various formats; pdf, mobi, epub, and html (automatically... |
330ee581fe0a428264a07ad6754bdf7e15eb1eb9 | src/app/views/guest/Container.vue | src/app/views/guest/Container.vue | <template>
<div class="container">
<div class="header">
<h1 class="display-4"><router-link :to="{ name: 'home' }">RPG Helper</router-link></h1>
</div>
<div class="card">
<div class="card-header">
<ul class="nav nav-pills card-header-pills">
... | <template>
<div class="container">
<h1 class="display-4"><router-link :to="{ name: 'home' }">RPG Helper</router-link></h1>
<div class="card">
<div class="card-header">
<ul class="nav nav-pills card-header-pills">
<li class="nav-item">
... | Fix guest app logo styles | Fix guest app logo styles
| Vue | mit | kacpak/rpg-helper,kacpak/rpg-helper | vue | ## Code Before:
<template>
<div class="container">
<div class="header">
<h1 class="display-4"><router-link :to="{ name: 'home' }">RPG Helper</router-link></h1>
</div>
<div class="card">
<div class="card-header">
<ul class="nav nav-pills card-header-pil... |
6d29a737131eeb662a9396a2811c4a9a6423396d | src/components/options-sheet/options-sheet.scss | src/components/options-sheet/options-sheet.scss | .options-container {
width: 100%;
height: 100%;
background-color: white;
padding-bottom: calc(env(safe-area-inset-bottom));
cursor: pointer;
.option {
border-bottom: 1px solid rgb(237, 237, 237);
display: flex;
padding: 22px;
.option-icon {
display: flex;
padding-right: 15px;
... | .options-container {
width: 100%;
height: 100%;
background-color: white;
padding-bottom: calc(env(safe-area-inset-bottom));
cursor: pointer;
.option {
border-bottom: 1px solid rgb(237, 237, 237);
display: flex;
padding: 22px;
.option-icon {
display: flex;
padding-right: 15px;
... | Fix cancel button for options sheet | Fix cancel button for options sheet
| SCSS | mit | msalcala11/copay,msalcala11/copay,cmgustavo/copay,gabrielbazan7/copay,gabrielbazan7/copay,matiu/copay,fr34k8/copay,matiu/copay,gabrielbazan7/copay,fr34k8/copay,gabrielbazan7/copay,fr34k8/copay,cmgustavo/copay,matiu/copay,cmgustavo/copay,cmgustavo/copay,msalcala11/copay,msalcala11/copay,matiu/copay,fr34k8/copay | scss | ## Code Before:
.options-container {
width: 100%;
height: 100%;
background-color: white;
padding-bottom: calc(env(safe-area-inset-bottom));
cursor: pointer;
.option {
border-bottom: 1px solid rgb(237, 237, 237);
display: flex;
padding: 22px;
.option-icon {
display: flex;
paddin... |
c55a20928c3f98fee19d20f7fb0dc3bb9be1acb4 | setup.py | setup.py | """Tuttle"""
import sys
from tuttle import __version__
try:
from setuptools import setup, find_packages
except ImportError:
print("Tuttle needs setuptools in order to build. Install it using"
" your package manager (usually python-setuptools) or via pip (pip"
" install setuptools).")
sy... | """Tuttle"""
import sys
from tuttle import __version__
try:
from setuptools import setup, find_packages
except ImportError:
print("Tuttle needs setuptools in order to build. Install it using"
" your package manager (usually python-setuptools) or via pip (pip"
" install setuptools).")
sy... | Embed required non python files in packaging : html and js files for report | Embed required non python files in packaging : html and js files for report
| Python | mit | lexman/tuttle,lexman/tuttle,lexman/tuttle | python | ## Code Before:
"""Tuttle"""
import sys
from tuttle import __version__
try:
from setuptools import setup, find_packages
except ImportError:
print("Tuttle needs setuptools in order to build. Install it using"
" your package manager (usually python-setuptools) or via pip (pip"
" install setup... |
142de9e809a9bc82bca6d12eaf492c1ce12a618d | geotrek/authent/migrations/0002_auto_20181107_1620.py | geotrek/authent/migrations/0002_auto_20181107_1620.py | from __future__ import unicode_literals
from django.db import migrations
import django.apps
from django.core.management import call_command
def add_permissions():
call_command('update_geotrek_permissions', verbosity=0)
UserModel = django.apps.apps.get_model('auth', 'User')
PermissionModel = django.apps.a... | from __future__ import unicode_literals
from django.db import migrations
from django.core.management import call_command
def add_permissions(apps, schema_editor):
call_command('update_geotrek_permissions', verbosity=0)
UserModel = apps.get_model('auth', 'User')
PermissionModel = apps.get_model('auth', 'P... | Change migrations lack of apps, schema_editor | Change migrations lack of apps, schema_editor
| Python | bsd-2-clause | GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek,makinacorpus/Geotrek,GeotrekCE/Geotrek-admin,GeotrekCE/Geotrek-admin,makinacorpus/Geotrek | python | ## Code Before:
from __future__ import unicode_literals
from django.db import migrations
import django.apps
from django.core.management import call_command
def add_permissions():
call_command('update_geotrek_permissions', verbosity=0)
UserModel = django.apps.apps.get_model('auth', 'User')
PermissionModel... |
b26979135e1d39a8294abd664b8bb23c8b135748 | Gulpfile.js | Gulpfile.js | var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var template = require('gulp-template');
var bower = require('./bower.json');
var dist_dir = './'
var dist_file = 'launchpad.js';
gulp.task('version', function(){
return gulp... | var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var template = require('gulp-template');
var KarmaServer = require('karma').Server;
var bower = require('./bower.json');
var dist_dir = './'
var dist_file = 'launchpad.js';
gulp.... | Create a gulp test target | Create a gulp test target
| JavaScript | mit | dvberkel/LaunchpadJS | javascript | ## Code Before:
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var template = require('gulp-template');
var bower = require('./bower.json');
var dist_dir = './'
var dist_file = 'launchpad.js';
gulp.task('version', function(){... |
e3ab13da0cbcd8ee966c75678e3916bbe5c47a3d | app/scripts/filters/beautifyuri.js | app/scripts/filters/beautifyuri.js | 'use strict';
/**
* @ngdoc filter
* @name grafterizerApp.filter:beautifyUri
* @function
* @description
* # beautifyUri
* Try to make something from an ugly Uri
*/
angular.module('grafterizerApp')
.filter('beautifyUri', function() {
var m = /\/([^\/]*)$/;
var r = /[ \+.\-_:]/g;
return function(inp... | 'use strict';
/**
* @ngdoc filter
* @name grafterizerApp.filter:beautifyUri
* @function
* @description
* # beautifyUri
* Try to make something from an ugly Uri
*/
angular.module('grafterizerApp')
.filter('beautifyUri', function() {
var m = /\/([^\/]*)$/;
var r = /[ \+.\-_:]/g;
return function(inp... | Check if the value is a string before crashing :monorail: | Check if the value is a string before crashing :monorail:
| JavaScript | epl-1.0 | dapaas/grafterizer,datagraft/grafterizer,dapaas/grafterizer,datagraft/grafterizer | javascript | ## Code Before:
'use strict';
/**
* @ngdoc filter
* @name grafterizerApp.filter:beautifyUri
* @function
* @description
* # beautifyUri
* Try to make something from an ugly Uri
*/
angular.module('grafterizerApp')
.filter('beautifyUri', function() {
var m = /\/([^\/]*)$/;
var r = /[ \+.\-_:]/g;
ret... |
b415e265f6b725c7e1a99d2ee1dae77f0cd555a7 | config.py | config.py | FIREBASE_KEY_PATH="firebase.local.json"
# Firebase config for prox-server
# These are public-facing and can be found in the console under Auth > Web Setup (in the top-right corner)
FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"authDomain": "prox-server-cf63e.firebaseapp.com",
"d... | FIREBASE_KEY_PATH="firebase.local.json"
# Firebase config for prox-server
# These are public-facing and can be found in the console under Auth > Web Setup (in the top-right corner)
FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"authDomain": "prox-server-cf63e.firebaseapp.com",
"d... | Add category filtering on the server side to save client fetching. | Add category filtering on the server side to save client fetching.
| Python | mpl-2.0 | liuche/prox-server | python | ## Code Before:
FIREBASE_KEY_PATH="firebase.local.json"
# Firebase config for prox-server
# These are public-facing and can be found in the console under Auth > Web Setup (in the top-right corner)
FIREBASE_CONFIG = {
"apiKey": "AIzaSyCksV_AC0oB9OnJmj0YgXNOrmnJawNbFeE",
"authDomain": "prox-server-cf63e.firebase... |
40e3ff3ba7d2cc48f00269f4d57d9e60d9b1c41b | build/prep_deployment.ps1 | build/prep_deployment.ps1 | $env:TGSVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:APPVEYOR_BUILD_FOLDER/artifacts/ServerHost/Tgstation.Server.Host.dll").FileVersion
Write-Host "TGS Version: $env:TGSVersion"
if (($env:CONFIGURATION -match "Release") -And ($env:APPVEYOR_REPO_BRANCH -match "master") -And ($env:APPVEYOR_REPO_... | $env:TGSVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:APPVEYOR_BUILD_FOLDER/artifacts/ServerHost/Tgstation.Server.Host.dll").FileVersion
Write-Host "TGS Version: $env:TGSVersion"
if (($env:CONFIGURATION -match "Release") -And ($env:APPVEYOR_REPO_BRANCH -match "master") -And ($env:APPVEYOR_REPO_... | Fix release notes path in build | Fix release notes path in build
| PowerShell | agpl-3.0 | tgstation/tgstation-server,tgstation/tgstation-server-tools,tgstation/tgstation-server,Cyberboss/tgstation-server,Cyberboss/tgstation-server | powershell | ## Code Before:
$env:TGSVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo("$env:APPVEYOR_BUILD_FOLDER/artifacts/ServerHost/Tgstation.Server.Host.dll").FileVersion
Write-Host "TGS Version: $env:TGSVersion"
if (($env:CONFIGURATION -match "Release") -And ($env:APPVEYOR_REPO_BRANCH -match "master") -And ($en... |
67ed75adee614a0e2b60e9212f4058bdb8b10287 | src/Exceptions/Handler.php | src/Exceptions/Handler.php | <?php
namespace Flugg\Responder\Exceptions;
use Exception;
use Flugg\Responder\Exceptions\Http\ApiException;
use Flugg\Responder\Traits\HandlesApiErrors;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
use HandlesApiErrors;
/**
* Render an exce... | <?php
namespace Flugg\Responder\Exceptions;
use Exception;
use Flugg\Responder\Exceptions\Http\ApiException;
use Flugg\Responder\Traits\HandlesApiErrors;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
use HandlesApiErrors;
/**
* Render an exce... | Revert "Exceptions extending ApiException should always return json." | Revert "Exceptions extending ApiException should always return json."
This reverts commit 1ddd0cfbf0632214ffe5f9c4f1d98ad453e53f3c.
| PHP | mit | flugger/laravel-responder | php | ## Code Before:
<?php
namespace Flugg\Responder\Exceptions;
use Exception;
use Flugg\Responder\Exceptions\Http\ApiException;
use Flugg\Responder\Traits\HandlesApiErrors;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
use HandlesApiErrors;
/**
... |
0fd7b771823b97cb5fb7789c981d4ab3befcd28e | bluebottle/homepage/models.py | bluebottle/homepage/models.py | from bluebottle.quotes.models import Quote
from bluebottle.slides.models import Slide
from bluebottle.statistics.models import Statistic
from bluebottle.projects.models import Project
class HomePage(object):
"""
Instead of serving all the objects separately we combine
Slide, Quote and Stats into a dummy o... | from bluebottle.quotes.models import Quote
from bluebottle.slides.models import Slide
from bluebottle.statistics.models import Statistic
from bluebottle.projects.models import Project
class HomePage(object):
"""
Instead of serving all the objects separately we combine
Slide, Quote and Stats into a dummy o... | Send an empty list instead of None if no projects | Send an empty list instead of None if no projects
selected for homepage.
| Python | bsd-3-clause | onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | python | ## Code Before:
from bluebottle.quotes.models import Quote
from bluebottle.slides.models import Slide
from bluebottle.statistics.models import Statistic
from bluebottle.projects.models import Project
class HomePage(object):
"""
Instead of serving all the objects separately we combine
Slide, Quote and Stat... |
fa672ac3bb7627ad9c40c5abe36baca2fcf2d6cd | rst/dev-guide/overview/index.rst | rst/dev-guide/overview/index.rst | =========================
About the Rackconnect API
=========================
The Rackspace RackConnect service allows customers connect dedicated Rackspace resources to the Rackspac Cloud servers by using Cisco ASA Firewall or an F5 load balancer.
You can use the RackConnect 3.0 API to accomplish the following tasks... | =========================
About the Rackconnect API
=========================
You can use the Rackspace RackConnect service to connect dedicated Rackspace resources to the Rackspac Cloud servers by using Cisco ASA Firewall or an F5 load balancer.
You can use the RackConnect 3.0 API to accomplish the following tasks:
... | Change intro sentence to active voice. | Change intro sentence to active voice. | reStructuredText | apache-2.0 | rackerlabs/docs-cloud-rackconnect,meker12/docs-cloud-rackconnect,meker12/docs-cloud-rackconnect | restructuredtext | ## Code Before:
=========================
About the Rackconnect API
=========================
The Rackspace RackConnect service allows customers connect dedicated Rackspace resources to the Rackspac Cloud servers by using Cisco ASA Firewall or an F5 load balancer.
You can use the RackConnect 3.0 API to accomplish the... |
ac525f35adce3f1d49b159bd52f5b60606b56c6a | pycvodes/include/cvodes_anyode_parallel.pxd | pycvodes/include/cvodes_anyode_parallel.pxd |
from libcpp cimport bool
from libcpp.vector cimport vector
from libcpp.utility cimport pair
from cvodes_cxx cimport LMM, IterType, LinSol, realtype, indextype
cdef extern from "cvodes_anyode_parallel.hpp" namespace "cvodes_anyode_parallel":
cdef vector[pair[int, vector[int]]] multi_adaptive[U](
realtype *... |
from libcpp cimport bool
from libcpp.vector cimport vector
from libcpp.utility cimport pair
from cvodes_cxx cimport LMM, IterType, LinSol, realtype
cdef extern from "cvodes_anyode_parallel.hpp" namespace "cvodes_anyode_parallel":
cdef vector[pair[int, vector[int]]] multi_adaptive[U](
realtype **,
... | Remove unused cimport of indextype | Remove unused cimport of indextype
| Cython | bsd-2-clause | bjodah/pycvodes,bjodah/pycvodes,bjodah/pycvodes,bjodah/pycvodes | cython | ## Code Before:
from libcpp cimport bool
from libcpp.vector cimport vector
from libcpp.utility cimport pair
from cvodes_cxx cimport LMM, IterType, LinSol, realtype, indextype
cdef extern from "cvodes_anyode_parallel.hpp" namespace "cvodes_anyode_parallel":
cdef vector[pair[int, vector[int]]] multi_adaptive[U](
... |
4d56a95edfcdcb63bd91a25219de91c3b30bdcb5 | src/map/sagas/nearest-details/nearest-details.js | src/map/sagas/nearest-details/nearest-details.js | import { call, put, takeLatest } from 'redux-saga/effects';
import fetchNearestDetail from '../../services/nearest-detail/nearest-detail';
import ACTIONS from '../../../shared/actions';
export function* fetchNearestDetails(action) {
const {
location,
layers,
zoom
} = action.payload;
try {
const... | import { call, put, takeLatest } from 'redux-saga/effects';
import fetchNearestDetail from '../../services/nearest-detail/nearest-detail';
import { MAP_HIGHLIGHT } from '../../ducks/map/map';
import ACTIONS from '../../../shared/actions';
export function* fetchNearestDetails(action) {
const {
location,
la... | Fix issue with toon alle resultaten by implementing new action | Fix issue with toon alle resultaten by implementing new action
| JavaScript | mpl-2.0 | DatapuntAmsterdam/atlas,DatapuntAmsterdam/atlas,DatapuntAmsterdam/atlas,DatapuntAmsterdam/atlas_prototype,Amsterdam/atlas,Amsterdam/atlas,Amsterdam/atlas,DatapuntAmsterdam/atlas_prototype,Amsterdam/atlas | javascript | ## Code Before:
import { call, put, takeLatest } from 'redux-saga/effects';
import fetchNearestDetail from '../../services/nearest-detail/nearest-detail';
import ACTIONS from '../../../shared/actions';
export function* fetchNearestDetails(action) {
const {
location,
layers,
zoom
} = action.payload;
... |
034ccad64b35b849e471e85a15ebf1dbd981e95a | pdfutil/src/main.rs | pdfutil/src/main.rs | extern crate lopdf;
use lopdf::{Document};
#[macro_use]
extern crate clap;
use clap::{App, Arg};
fn main() {
let arguments = App::new("PDF utility program using lopdf library")
.version(crate_version!())
.author(crate_authors!())
.arg(Arg::with_name("input")
.short("i")
.long("input")
.value_name("inp... | extern crate lopdf;
use lopdf::Document;
#[macro_use]
extern crate clap;
use clap::{App, Arg, SubCommand};
fn main() {
let app = App::new("PDF utility program using lopdf library")
.version(crate_version!())
.author(crate_authors!())
.arg(Arg::with_name("input")
.short("i")
.long("input")
.value_name(... | Add compress/decompress subcommands to pdfutil | Add compress/decompress subcommands to pdfutil
| Rust | mit | J-F-Liu/lopdf | rust | ## Code Before:
extern crate lopdf;
use lopdf::{Document};
#[macro_use]
extern crate clap;
use clap::{App, Arg};
fn main() {
let arguments = App::new("PDF utility program using lopdf library")
.version(crate_version!())
.author(crate_authors!())
.arg(Arg::with_name("input")
.short("i")
.long("input")
... |
2078f4ea52bd7190eeff6f15b559336b4ea6e542 | docs/tests.txt | docs/tests.txt | Running the django-filter tests
===============================
The easiest way to run the django-filter tests is to check out the source
code into a virtualenv, where you can install the test dependencies.
django-filter uses a custom test runner to locate all of the tests, so a
wrapper script is available to set up... | Running the django-filter tests
===============================
The easiest way to run the django-filter tests is to check out the source
code into a virtualenv, where you can install the test dependencies.
django-filter uses a custom test runner to locate all of the tests, so a
wrapper script is available to set up a... | Add note about using tox | Add note about using tox
Closes #258
| Text | bsd-3-clause | newfylox/django-filter,thenewguy/django-filter,jpadilla/django-filter,sbellem/django-filter,thenewguy/django-filter,abide/django-filter,z0by/django-filter,sbellem/django-filter,abide/django-filter,z0by/django-filter,fladi/django-filter,newfylox/django-filter,kennydude/django-filter,kennydude/django-filter,alex/django-f... | text | ## Code Before:
Running the django-filter tests
===============================
The easiest way to run the django-filter tests is to check out the source
code into a virtualenv, where you can install the test dependencies.
django-filter uses a custom test runner to locate all of the tests, so a
wrapper script is ava... |
5ebea21b3cd7ff49dadbadc2c52079392af1ad21 | doc/index.rst | doc/index.rst | ====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
| .. _index:
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
| Add dockernotes ref reST label for intersphinx linking | Add dockernotes ref reST label for intersphinx linking
| reStructuredText | bsd-3-clause | tony/dockerfiles,tony/dockerfiles | restructuredtext | ## Code Before:
====================================
docker notes and Dockerfile examples
====================================
.. sidebar:: Contents
.. toctree::
:maxdepth: 2
quickstart
example-postgresql
history
.. include:: ../README.rst
:start-line: 4
## Instruction:
Add ... |
be1e962dbba0055078ae0883ecf12a92ad7ffb26 | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
machine:
enabled: true
working_directory: ~/project
steps:
- checkout
- run:
name: "Build Docker Images"
command: ./build-images.sh
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docke... | version: 2
jobs:
build:
machine:
enabled: true
working_directory: ~/project
steps:
- checkout
- run:
name: "Build Docker Images"
command: ./build-images.sh
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docke... | Add new Docker Hub repo as push target. | Add new Docker Hub repo as push target.
| YAML | mit | felicianotech/docker-hugo | yaml | ## Code Before:
version: 2
jobs:
build:
machine:
enabled: true
working_directory: ~/project
steps:
- checkout
- run:
name: "Build Docker Images"
command: ./build-images.sh
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
... |
98f5496f099b815ec001509bf0a2fd15b6ec2bcb | lib/erlef_web/templates/shared/gallery.html.eex | lib/erlef_web/templates/shared/gallery.html.eex | <div class="row">
<%= for %{name: name, avatar_url: image} <- @members do %>
<div class="col-xs-6 pr-1 pl-1">
<% src_url = image || "volunteers/profile-placeholder.png" %>
<div class="avatar-large rounded">
<img class="img-fluid" src="/images/<%= src_url %>" alt="<%= name %>">
</div>
<%= name %>
... | <div class="row">
<%= for %{name: name, avatar_url: image} <- @members do %>
<div class="col-xs-6 pr-1 pl-1">
<% src_url = image || "volunteers/profile-placeholder.png" %>
<div class="avatar-large rounded">
<img class="img-fluid" src="<%= img_path(@conn, src_url) %>" alt="<%= name %>">
</div>
<%= ... | Use image_path/2 helper for working groups | Use image_path/2 helper for working groups
| HTML+EEX | apache-2.0 | simplabs/website,simplabs/website | html+eex | ## Code Before:
<div class="row">
<%= for %{name: name, avatar_url: image} <- @members do %>
<div class="col-xs-6 pr-1 pl-1">
<% src_url = image || "volunteers/profile-placeholder.png" %>
<div class="avatar-large rounded">
<img class="img-fluid" src="/images/<%= src_url %>" alt="<%= name %>">
</div>
... |
c10391366135b842d70b3d1a9dbc0eab9a1e346a | pkgs/development/tools/misc/ptags/default.nix | pkgs/development/tools/misc/ptags/default.nix | { fetchFromGitHub
, cargo
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "ptags";
version = "0.3.2";
src = fetchFromGitHub {
owner = "dalance";
repo = "ptags";
rev = "v${version}";
sha256 = "1xr1szh4dfrcmi6s6dj791k1ix2zbv75rqkqbyb1lmh5548kywkg";
};
cargoSha256 = "1pz5h... | { fetchFromGitHub
, cargo
, ctags
, lib
, makeWrapper
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "ptags";
version = "0.3.2";
src = fetchFromGitHub {
owner = "dalance";
repo = "ptags";
rev = "v${version}";
sha256 = "1xr1szh4dfrcmi6s6dj791k1ix2zbv75rqkqbyb1lmh5548kywkg";
};
... | Add `ctags` to the PATH | ptags: Add `ctags` to the PATH
Signed-off-by: Pamplemousse <e220f2b14804d9d261bf746623919194cf54cbd2@gmail.com>
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ fetchFromGitHub
, cargo
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "ptags";
version = "0.3.2";
src = fetchFromGitHub {
owner = "dalance";
repo = "ptags";
rev = "v${version}";
sha256 = "1xr1szh4dfrcmi6s6dj791k1ix2zbv75rqkqbyb1lmh5548kywkg";
};
carg... |
0b3822b4c2d409c6a764a01d218280fdc144d783 | tests/source/Mocka/MethodMockTest.php | tests/source/Mocka/MethodMockTest.php | <?php
namespace MockaTests;
use Mocka\MethodMock;
class MethodMockTest extends \PHPUnit_Framework_TestCase {
public function testIntegrated() {
$method = new MethodMock();
$method->set(function () {
return 'foo';
});
$method->at(1, function () {
return 'ba... | <?php
namespace MockaTests;
use Mocka\MethodMock;
class MethodMockTest extends \PHPUnit_Framework_TestCase {
public function testIntegrated() {
$method = new MethodMock();
$method->set(function () {
return 'foo';
});
$method->at(1, function () {
return 'ba... | Add test for asserting method arguments | Add test for asserting method arguments
| PHP | mit | tomaszdurka/mocka | php | ## Code Before:
<?php
namespace MockaTests;
use Mocka\MethodMock;
class MethodMockTest extends \PHPUnit_Framework_TestCase {
public function testIntegrated() {
$method = new MethodMock();
$method->set(function () {
return 'foo';
});
$method->at(1, function () {
... |
a3c49666a99a732f76c10e0ef859412daaa8d0c4 | README.rst | README.rst | ================
feincms-in-a-box
================
Quickly bootstrap projects using Django_, FeinCMS_, and Foundation_.
Instructions and other documentation is hosted on read the docs:
Documentation_
.. _Django: https://www.djangoproject.com/
.. _FeinCMS: https://feincms.org/
.. _Foundation: https://foundation.zurb.... | ================
feincms-in-a-box
================
.. image:: https://travis-ci.org/feinheit/feincms-in-a-box.svg?branch=master
:target: https://travis-ci.org/feinheit/feincms-in-a-box
Quickly bootstrap projects using Django_, FeinCMS_, and Foundation_.
Instructions and other documentation is hosted on read the ... | Add a Travis CI badge | Add a Travis CI badge
| reStructuredText | bsd-3-clause | lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box,lucacorsato/feincms-in-a-box | restructuredtext | ## Code Before:
================
feincms-in-a-box
================
Quickly bootstrap projects using Django_, FeinCMS_, and Foundation_.
Instructions and other documentation is hosted on read the docs:
Documentation_
.. _Django: https://www.djangoproject.com/
.. _FeinCMS: https://feincms.org/
.. _Foundation: https://... |
2e89920954e0de8243c8660334043ed05a0a522d | app/views/layouts/_admin_sidebar_index.html.haml | app/views/layouts/_admin_sidebar_index.html.haml | %ul.nav.nav-pills.nav-stacked.mySidebar
.btn-group
%button{type: 'button', class: 'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'}
%span.fa.fa-home
All Conferences
%span.caret
%ul.dropdown-menu{role: 'menu'}
%li
= link_to(admin_conferences_path) do
... | %ul.nav.nav-pills.nav-stacked.mySidebar
.btn-group
%button{type: 'button', class: 'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'}
%span.fa.fa-home
All Conferences
%span.caret
%ul.dropdown-menu{role: 'menu'}
%li
= link_to(admin_conferences_path) do
... | Add Button that links to /admin/organizations in _admin_sidebar_index partial file located in views/layouts | Add Button that links to /admin/organizations in _admin_sidebar_index partial file located in views/layouts
| Haml | mit | kormoc/osem,SeaGL/osem,rishabhptr/osem,kormoc/osem,openSUSE/osem,rishabhptr/osem,kormoc/osem,AndrewKvalheim/osem,differentreality/osem,namangupta01/osem,rishabhptr/osem,namangupta01/osem,differentreality/osem,kormoc/osem,rishabhptr/osem,hennevogel/osem,namangupta01/osem,openSUSE/osem,hennevogel/osem,AndrewKvalheim/osem... | haml | ## Code Before:
%ul.nav.nav-pills.nav-stacked.mySidebar
.btn-group
%button{type: 'button', class: 'btn btn-default btn-link dropdown-toggle', 'data-toggle'=>'dropdown'}
%span.fa.fa-home
All Conferences
%span.caret
%ul.dropdown-menu{role: 'menu'}
%li
= link_to(admin_conferences_... |
49aba331d90a6f003817753d21a6bbccba338d15 | app/models/carto/dbdirect_ip.rb | app/models/carto/dbdirect_ip.rb | require 'ip_checker'
module Carto
class DbdirectIp< ActiveRecord::Base
belongs_to :user, inverse_of: :dbdirect_ip, foreign_key: :user_id
serialize :ips, JSON
validate :validate_ips
private
MAX_IP_MASK_HOST_BITS = 8
def validate_ips
support_legacy_ips_format
# Check type
... | require 'ip_checker'
module Carto
class DbdirectIp< ActiveRecord::Base
belongs_to :user, inverse_of: :dbdirect_ip, foreign_key: :user_id
serialize :ips, JSON
validate :validate_ips
private
MAX_IP_MASK_HOST_BITS = 8
def validate_ips
# Check type
unless ips.nil? || ips.kind_of?(... | Remove support for non-array IPs | Remove support for non-array IPs
| Ruby | bsd-3-clause | CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb,CartoDB/cartodb | ruby | ## Code Before:
require 'ip_checker'
module Carto
class DbdirectIp< ActiveRecord::Base
belongs_to :user, inverse_of: :dbdirect_ip, foreign_key: :user_id
serialize :ips, JSON
validate :validate_ips
private
MAX_IP_MASK_HOST_BITS = 8
def validate_ips
support_legacy_ips_format
# C... |
af041d7cd47d0644becfdbd15f3ae9665eec93fb | .github/workflows/reviewdog.yml | .github/workflows/reviewdog.yml | ---
name: Linting
on: [pull_request]
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install flake8
run: pip3 install -r flake... | ---
name: Linting
on: [pull_request]
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install flake8
run: pip3 install flake8
... | Fix setup of linting GitHub Action. | Fix setup of linting GitHub Action.
| YAML | bsd-3-clause | matplotlib/cycler | yaml | ## Code Before:
---
name: Linting
on: [pull_request]
jobs:
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install flake8
run: pip3 ... |
69c81fd1f6bb0c24ec470a002a552e347c09299e | t/005_client.t | t/005_client.t | use t::test_base;
BEGIN{
use_ok("Eixo::Rest::Client");
}
SKIP: {
skip "'DOCKER_TEST_HOST' env var is not set", 2 unless exists($ENV{DOCKER_TEST_HOST});
# set log function
# Eixo::Docker::Base::stashSet("f_log", sub {print join("\n",@_)});
my @calls;
my $a = Eixo::Rest::Client->... | use t::test_base;
BEGIN{
use_ok("Eixo::Docker::Api");
}
SKIP: {
skip "'DOCKER_TEST_HOST' env var is not set", 2 unless exists($ENV{DOCKER_TEST_HOST});
# set log function
# Eixo::Docker::Base::stashSet("f_log", sub {print join("\n",@_)});
my @calls;
my $a = Eixo::Docker::Api->ne... | Change test to check Eixo::Docker::Api instead of Eixo::Rest::Client | Change test to check Eixo::Docker::Api instead of Eixo::Rest::Client
| Perl | apache-2.0 | alambike/eixo-docker,alambike/eixo-docker | perl | ## Code Before:
use t::test_base;
BEGIN{
use_ok("Eixo::Rest::Client");
}
SKIP: {
skip "'DOCKER_TEST_HOST' env var is not set", 2 unless exists($ENV{DOCKER_TEST_HOST});
# set log function
# Eixo::Docker::Base::stashSet("f_log", sub {print join("\n",@_)});
my @calls;
my $a = Eixo... |
7f38baf828fe064aedc84a9d1e6070a3fddb5746 | MyCloudCode/cloud/main.js | MyCloudCode/cloud/main.js |
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
Parse.Cloud.define("hello", function(request, response) {
response.success("Hello world!");
});
Parse.Cloud.define("reviewTeammate", function(request, response) {
Parse.Cloud.useMasterKey();
var userId = request.params.use... |
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
Parse.Cloud.define("hello", function(request, response) {
response.success("Hello world!");
});
Parse.Cloud.define("reviewTeammate", function(request, response) {
Parse.Cloud.useMasterKey();
var userId = request.params.use... | Add reviewKey to reviewKeys array on Parse for user that is reviewed on Parse | Add reviewKey to reviewKeys array on Parse for user that is reviewed on Parse
| JavaScript | mit | jjhampton/cross-pollinate,jjhampton/cross-pollinate | javascript | ## Code Before:
// Use Parse.Cloud.define to define as many cloud functions as you want.
// For example:
Parse.Cloud.define("hello", function(request, response) {
response.success("Hello world!");
});
Parse.Cloud.define("reviewTeammate", function(request, response) {
Parse.Cloud.useMasterKey();
var userId = re... |
e2c34a05435a10c724a01096ed6a794df3df40b9 | metadata/cloud.valetudo.companion.yml | metadata/cloud.valetudo.companion.yml | Categories:
- Connectivity
License: Apache-2.0
AuthorName: Hypfer
WebSite: https://valetudo.cloud/
SourceCode: https://github.com/Hypfer/valetudo-companion
IssueTracker: https://github.com/Hypfer/valetudo-companion/issues
Donate: https://github.com/sponsors/Hypfer
AutoName: Valetudo Companion
RepoType: git
Repo: ht... | Categories:
- Connectivity
License: Apache-2.0
AuthorName: Hypfer
WebSite: https://valetudo.cloud/
SourceCode: https://github.com/Hypfer/valetudo-companion
IssueTracker: https://github.com/Hypfer/valetudo-companion/issues
Donate: https://github.com/sponsors/Hypfer
AutoName: Valetudo Companion
RepoType: git
Repo: ht... | Update Valetudo Companion to 2021.09.3 (4) | Update Valetudo Companion to 2021.09.3 (4)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Connectivity
License: Apache-2.0
AuthorName: Hypfer
WebSite: https://valetudo.cloud/
SourceCode: https://github.com/Hypfer/valetudo-companion
IssueTracker: https://github.com/Hypfer/valetudo-companion/issues
Donate: https://github.com/sponsors/Hypfer
AutoName: Valetudo Companion
RepoTy... |
959d7b5adc5a0c99ea00c5785c7a29879b100685 | _site/js/load.js | _site/js/load.js | (function() {
"use strict";
head.js("js/vendor/json2.js")
.js("js/vendor/jsonlint.js")
.js("js/vendor/lucene/lucene-query-parser.js")
.js("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","js/vendor/angular.min.js", function() {
head.js("js/vendor/angular-san... | (function() {
"use strict";
head.js("js/vendor/json2.js")
.js("js/vendor/jsonlint.js")
.js("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","js/vendor/angular.min.js", function() {
head.js("js/vendor/angular-sanitize.min.js","js/vendor/ng-bootstrap/ui-bootstrap-cust... | Remove lucene query parser lib | Remove lucene query parser lib
Originally added for an experiment to parse lucene query_string
queries, this lib is not currently used. Removeing
from the autoloader sequence, but leaving the lib and grammar
file in case I want to revisit the experiment later.
| JavaScript | apache-2.0 | AlphaStaxLLC/elasticsearch-inquisitor,polyfractal/elasticsearch-inquisitor,polyfractal/elasticsearch-inquisitor,AlphaStaxLLC/elasticsearch-inquisitor | javascript | ## Code Before:
(function() {
"use strict";
head.js("js/vendor/json2.js")
.js("js/vendor/jsonlint.js")
.js("js/vendor/lucene/lucene-query-parser.js")
.js("http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js","js/vendor/angular.min.js", function() {
head.js("js/ve... |
5321a5e48585ff026a28c1de67f8841dec3dc93b | scripts/docker-postgres.sh | scripts/docker-postgres.sh | export POSTGRES_PASSWORD="uleash"
echo "starting postgres in docker "
HASH=`docker run -P --name unleash-postgres -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -d postgres:9.3`
export PGPORT=`docker ps| grep unleash-post| awk '{print $(NF-1)}'| awk -F "->" '{print $1}'| awk -F \: '{print $2}'`
echo "PGPORT: $PGPORT"
echo "... | export POSTGRES_PASSWORD="uleash"
echo "starting postgres in docker "
HASH=`docker run -P --name unleash-postgres -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -d postgres:9.3`
export PGPORT=`docker ps| grep unleash-post| awk '{print $(NF-1)}'| awk -F "->" '{print $1}'| awk -F \: '{print $2}'`
echo "PGPORT: $PGPORT"
echo "... | Use yarn in test script | Use yarn in test script
| Shell | apache-2.0 | Unleash/unleash,Unleash/unleash,finn-no/unleash,Unleash/unleash,finn-no/unleash,finn-no/unleash,Unleash/unleash | shell | ## Code Before:
export POSTGRES_PASSWORD="uleash"
echo "starting postgres in docker "
HASH=`docker run -P --name unleash-postgres -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -d postgres:9.3`
export PGPORT=`docker ps| grep unleash-post| awk '{print $(NF-1)}'| awk -F "->" '{print $1}'| awk -F \: '{print $2}'`
echo "PGPORT:... |
0a7f0ae56f162c9443202f28610071833fb17e21 | Support/resource/rb_gateway.js | Support/resource/rb_gateway.js | /* Git JS gateway */
/* Tim Harper (tim.harper at leadmediapartners.org) */
function e_sh(str) {
return '"' + (str.toString().gsub('"', '\\"')) + '"';
}
function exec(command, params) {
params = params.map(function(a) { return e_sh(a) }).join(" ")
return TextMate.system(command + " " + params, null)
}
funct... | /* Git JS gateway */
/* Tim Harper (tim.harper at leadmediapartners.org) */
function e_sh(str) {
return '"' + (str.toString().gsub('"', '\\"')) + '"';
}
function exec(command, params) {
params = params.map(function(a) { return e_sh(a) }).join(" ")
return TextMate.system(command + " " + params, null)
}
funct... | Use TM_BUNDLE_SUPPORT over the deprecated TM_BUNDLE_PATH variable. | Use TM_BUNDLE_SUPPORT over the deprecated TM_BUNDLE_PATH variable.
| JavaScript | mit | textmate/git.tmbundle,jacob-carlborg/git.tmbundle,textmate/git.tmbundle,prymatex/git.tmbundle,pkmiec/git.tmbundle,jcf/git-tmbundle,kevinsawicki/git.tmbundle,prymatex/git.tmbundle,prymatex/git.tmbundle,pkmiec/git.tmbundle,textmate/git.tmbundle,jacob-carlborg/git.tmbundle,pkmiec/git.tmbundle,timcharper/git-tmbundle,pryma... | javascript | ## Code Before:
/* Git JS gateway */
/* Tim Harper (tim.harper at leadmediapartners.org) */
function e_sh(str) {
return '"' + (str.toString().gsub('"', '\\"')) + '"';
}
function exec(command, params) {
params = params.map(function(a) { return e_sh(a) }).join(" ")
return TextMate.system(command + " " + params... |
570ca861cc7a6a239801ff80eeac1bf269333f2f | README.md | README.md |
This project is a sandbox for using the new `@std/esm` module to use ESM module
syntax on Node and still use mocha, nyc for testing and browserify for targeting
the browser.
## Quick Start
git clone https://github.com/dschnare/std-esm-sandbox.git
npm install
npm start
## Building
To build for the brows... |
This project is a sandbox for using the new `@std/esm` module to use ESM module
syntax on Node and still use mocha, nyc for testing and browserify for targeting
the browser.
## Quick Start
git clone https://github.com/dschnare/std-esm-sandbox.git
npm install
npm start
## Building
To build for the brows... | Add an known issues section to readme | docs(readme): Add an known issues section to readme
| Markdown | mit | dschnare/std-esm-sandbox,dschnare/std-esm-sandbox | markdown | ## Code Before:
This project is a sandbox for using the new `@std/esm` module to use ESM module
syntax on Node and still use mocha, nyc for testing and browserify for targeting
the browser.
## Quick Start
git clone https://github.com/dschnare/std-esm-sandbox.git
npm install
npm start
## Building
To bui... |
86a2693bae1f2bee9eb0c0c92924862a96212172 | app/views/admin/templates/_belongs_to.html.erb | app/views/admin/templates/_belongs_to.html.erb | <% chosen_class = "chzn-select-#{attribute_id}" %>
<li id="<%= attribute_id %>_li">
<%= form.label attribute, label_text %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options.merge(:class => chosen_class, :style => "width: 350px;") %>
<% else %>
<%= Typus::I18n.t("No entries f... | <% chosen_class = "chzn-select-#{attribute_id}" %>
<li id="<%= attribute_id %>_li">
<%= form.label attribute, label_text %>
<% if values.kind_of?(String) %>
<%= select_tag related_fk, values.html_safe, options.merge(html_options).merge(:class => chosen_class, :style => "width: 350px;", :id => "#{form.object.cl... | Fix view bug when using belongs_to a model that have a tree. | Fix view bug when using belongs_to a model that have a tree. | HTML+ERB | mit | typus/typus,burn-notice/typus,thirdthing/typus,baban/typus,burn-notice/typus,baban/typus,wollzelle/typus,thirdthing/typus,typus/typus,readyfor/typus,brainsome-de/typus,brainsome-de/typus,baban/typus,wollzelle/typus,baban/typus,wollzelle/typus,thirdthing/typus,burn-notice/typus,brainsome-de/typus,readyfor/typus,brainsom... | html+erb | ## Code Before:
<% chosen_class = "chzn-select-#{attribute_id}" %>
<li id="<%= attribute_id %>_li">
<%= form.label attribute, label_text %>
<% if values.any? %>
<%= form.select related_fk, values, options, html_options.merge(:class => chosen_class, :style => "width: 350px;") %>
<% else %>
<%= Typus::I18n... |
3b70d21d73a73a5df1d258f3a464d2aca7f709cb | app/views/petitions/create/_submit_ui.html.erb | app/views/petitions/create/_submit_ui.html.erb | <fieldset id="petition_submit_section">
<% increment(2) # Skip 2 tabindexes for next/back buttons -%>
<legend>Submit Petition</legend>
<div class="strap_block">
<p>Here's your chance to review your e-petition. Once you press 'submit', you can't go back.
This is how it will appear on the website. If you l... | <fieldset id="petition_submit_section">
<% increment(2) # Skip 2 tabindexes for next/back buttons -%>
<legend>Submit Petition</legend>
<div class="strap_block">
<p>Here's your chance to review your e-petition. Once you press 'submit', you can't go back.
This is how it will appear on the website. If you l... | Add petition details to submit_ui partial | Add petition details to submit_ui partial
Previously they were filled in by JS and ignored on the non-JS flow.
| HTML+ERB | mit | telekomatrix/e-petitions,StatesOfJersey/e-petitions,joelanman/e-petitions,oskarpearson/e-petitions,telekomatrix/e-petitions,oskarpearson/e-petitions,alphagov/e-petitions,alphagov/e-petitions,alphagov/e-petitions,unboxed/e-petitions,StatesOfJersey/e-petitions,alphagov/e-petitions,oskarpearson/e-petitions,StatesOfJersey/... | html+erb | ## Code Before:
<fieldset id="petition_submit_section">
<% increment(2) # Skip 2 tabindexes for next/back buttons -%>
<legend>Submit Petition</legend>
<div class="strap_block">
<p>Here's your chance to review your e-petition. Once you press 'submit', you can't go back.
This is how it will appear on the w... |
dcdcfec37d013f24146c15de7f30df86112cd4b6 | makerules.mk | makerules.mk |
include $(HEADER)
NAME := vincenty
VERSION := 1.0.0
RELEASE := 1
REQUIRES :=
$(call setup_requires)
_CXXFLAGS := -march=native
TARGETS := libvincenty.so
include $(FOOTER)
|
include $(HEADER)
NAME := vincenty
VERSION := 1.0.0
RELEASE := 1
REQUIRES := # Nothing
$(call setup)
_CXXFLAGS := -march=native
TARGETS := libvincenty.so
include $(FOOTER)
| Use new style setup macro | Use new style setup macro
Setup requires is hard to remember and "hard" to spell. It should have been a
simple setup call from the very start.
| Makefile | mit | andron/vincenty,andron/vincenty,andron/vincenty | makefile | ## Code Before:
include $(HEADER)
NAME := vincenty
VERSION := 1.0.0
RELEASE := 1
REQUIRES :=
$(call setup_requires)
_CXXFLAGS := -march=native
TARGETS := libvincenty.so
include $(FOOTER)
## Instruction:
Use new style setup macro
Setup requires is hard to remember and "hard" to spell. It should have been a
... |
2d00a8c4ba276ecd23cedac76754789bdccdd8d3 | values/smap_utils.go | values/smap_utils.go | package values
// Keys returns all the keys.
func (m SMap) Keys() []string {
r := make([]string, 0)
for k := range m {
r = append(r, k)
}
return r
}
// Values returns all the values.
func (m SMap) Values() []interface{} {
r := make([]interface{}, 0)
for _, v := range m {
r = append(r, v)
}
return r
}
| package values
// Keys returns all the keys.
func (m SMap) Keys() []string {
r := make([]string, 0)
for k := range m {
r = append(r, k)
}
return r
}
// Values returns all the values.
func (m SMap) Values() []interface{} {
r := make([]interface{}, 0)
for _, v := range m {
r = append(r, v)
}
return r
}
// ... | Add the method In for SMap. | Add the method In for SMap.
| Go | apache-2.0 | xgfone/go-tools | go | ## Code Before:
package values
// Keys returns all the keys.
func (m SMap) Keys() []string {
r := make([]string, 0)
for k := range m {
r = append(r, k)
}
return r
}
// Values returns all the values.
func (m SMap) Values() []interface{} {
r := make([]interface{}, 0)
for _, v := range m {
r = append(r, v)
}
... |
5421544f3a944d004ccd55e7437e39853a40cbe2 | README.md | README.md |
Strophe.js is a JavaScript library for speaking XMPP via BOSH
([XEP 124](http://xmpp.org/extensions/xep-0124.html)
and [XEP 206](http://xmpp.org/extensions/xep-0206.html)) and WebSockets
(draft-ietf-xmpp-websocket-00).
The homepage for Strophe is http://strophe.im/strophejs
The book Professional XMPP Programming wit... |
[](https://travis-ci.org/strophe/strophejs)
Strophe.js is a JavaScript library for speaking XMPP via BOSH
([XEP 124](http://xmpp.org/extensions/xep-0124.html)
and [XEP 206](http://xmpp.org/extensions/xep-0206.html)) and WebSockets
(draft-ietf-x... | Add more info (taken from website) and a travis build button | Add more info (taken from website) and a travis build button
| Markdown | mit | Rom4eg/strophejs,damencho/strophejs,ggozad/strophejs,sualko/strophejs,diegocr/strophejs,sualko/strophejs,joachimlindborg/strophejs,Rom4eg/strophejs,adozenlines/strophejs,sualko/strophejs,joachimlindborg/strophejs,adozenlines/strophejs,minddistrict/strophejs,diegocr/strophejs,Voiceworks/strophejs,processone/strophejs,m8... | markdown | ## Code Before:
Strophe.js is a JavaScript library for speaking XMPP via BOSH
([XEP 124](http://xmpp.org/extensions/xep-0124.html)
and [XEP 206](http://xmpp.org/extensions/xep-0206.html)) and WebSockets
(draft-ietf-xmpp-websocket-00).
The homepage for Strophe is http://strophe.im/strophejs
The book Professional XMPP... |
f9f41a85d07945cb0fae438a367d85a62f55d5d0 | marvinbot/templates/base.html | marvinbot/templates/base.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block pagetitle %}{{ g.bot_name }}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- needed for mobile devices, sets the viewport to the device's width -->
<meta n... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block pagetitle %}{{ g.bot_name }}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- needed for mobile devices, sets the viewport to the device's width -->
<meta n... | Fix broken JS shim CDN URL | Fix broken JS shim CDN URL
| HTML | mit | BotDevGroup/marvin,BotDevGroup/marvin,BotDevGroup/marvin | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block pagetitle %}{{ g.bot_name }}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- needed for mobile devices, sets the viewport to the device's width -->... |
66a4861ca655dc9e7e82d83018428b517d6df737 | src/Resources/views/html5-blocks.html.twig | src/Resources/views/html5-blocks.html.twig | {% set collection = (collection is defined) ? collection : 'blocks' %}
{% set element = (element is defined) ? element : 'main' %}
{% set blocks = (blocks is defined) ? blocks : content[collection] %}
<{{ element }} property='{{ collection }}' typeof='collection'>
{% for index,block in blocks %}
{% include '@Conne... | {% set collection = (collection is defined) ? collection : 'blocks' %}
{% set element = (element is defined) ? element : 'main' %}
{% set blocks = (blocks is defined) ? blocks : content[collection] %}
{% block block_collection %}
<{{ element }} property='{{ collection }}' typeof='collection'>
{% block block_collecti... | Add twig block for collections | Add twig block for collections
By adding this content is easier prepended and attached.
| Twig | mit | ConnectHolland/sulu-block-bundle | twig | ## Code Before:
{% set collection = (collection is defined) ? collection : 'blocks' %}
{% set element = (element is defined) ? element : 'main' %}
{% set blocks = (blocks is defined) ? blocks : content[collection] %}
<{{ element }} property='{{ collection }}' typeof='collection'>
{% for index,block in blocks %}
{%... |
c723875e377f92710bae4e55fbafb7ba8ea6220c | src/boundaryCondition.h | src/boundaryCondition.h | /***************************************************************************//**
* \file boundaryCondition.h
* \author Krishnan, A. (anush@bu.edu)
* \brief Definition of the class \c boundaryCondition
*/
#pragma once
#include <string>
#include <sstream>
#include "types.h"
#include "parameterDB.h"
/**
* \class bounda... | /***************************************************************************//**
* \file boundaryCondition.h
* \author Anush Krishnan (anush@bu.edu)
* \brief Definition of the class \c boundaryCondition.
*/
#pragma once
#include <string>
#include <sstream>
#include "types.h"
#include "parameterDB.h"
/**
* \cl... | Update Doxygen documentation with conventions | Update Doxygen documentation with conventions
| C | mit | barbagroup/cuIBM,barbagroup/cuIBM,barbagroup/cuIBM | c | ## Code Before:
/***************************************************************************//**
* \file boundaryCondition.h
* \author Krishnan, A. (anush@bu.edu)
* \brief Definition of the class \c boundaryCondition
*/
#pragma once
#include <string>
#include <sstream>
#include "types.h"
#include "parameterDB.h"
/**... |
2aa57f34961218200c8cb467d0139da65b99ba0a | pubspec.yaml | pubspec.yaml | name: ambient
description: A sample web application
dependencies:
browser: any
image: any
| name: AmbientImageBox
description: A Dart image widget whose border color matches the image color tone.
dependencies:
browser: any
image: any
| Update Dart project name and description | Update Dart project name and description
| YAML | mit | scai/ambient-imagebox | yaml | ## Code Before:
name: ambient
description: A sample web application
dependencies:
browser: any
image: any
## Instruction:
Update Dart project name and description
## Code After:
name: AmbientImageBox
description: A Dart image widget whose border color matches the image color tone.
dependencies:
browser: any
i... |
fe8dbf14e092407a46851151ef569e17caf45770 | config/mongoid.yml | config/mongoid.yml | staging:
sessions:
default:
database: cbecc_com_web_staging
hosts:
- localhost:27017
options:
vagrant:
sessions:
default:
database: cbecc_com_web_vagrant
hosts:
- localhost:27017
options:
production:
sessions:
default:
database: cbecc_com_web_p... | staging:
sessions:
default:
database: cbecc_com_web_staging
hosts:
- 127.0.0.1:27017
options:
vagrant:
sessions:
default:
database: cbecc_com_web_vagrant
hosts:
- 127.0.0.1:27017
options:
production:
sessions:
default:
database: cbecc_com_web_p... | Fix for moped connections on Windows | Fix for moped connections on Windows
| YAML | bsd-2-clause | NREL/t24compliance-web,NREL/t24compliance-web,NREL/t24compliance-web,NREL/t24compliance-web | yaml | ## Code Before:
staging:
sessions:
default:
database: cbecc_com_web_staging
hosts:
- localhost:27017
options:
vagrant:
sessions:
default:
database: cbecc_com_web_vagrant
hosts:
- localhost:27017
options:
production:
sessions:
default:
database:... |
be31e483a9929806df72336a57f2b91b379f4913 | metadata/cz.martykan.forecastie.txt | metadata/cz.martykan.forecastie.txt | Categories:Internet
License:GPLv3+
Web Site:https://github.com/martykan/forecastie/blob/HEAD/README.md
Source Code:https://github.com/martykan/forecastie
Issue Tracker:https://github.com/martykan/forecastie/issues
Auto Name:Forecastie
Summary:Show weather information from OpenWeatherMap
Description:
Show weather infor... | Categories:Internet
License:GPLv3+
Web Site:https://github.com/martykan/forecastie/blob/HEAD/README.md
Source Code:https://github.com/martykan/forecastie
Issue Tracker:https://github.com/martykan/forecastie/issues
Auto Name:Forecastie
Summary:Show weather information from OpenWeatherMap
Description:
Show weather infor... | Update Forecastie to 0.3 (3) | Update Forecastie to 0.3 (3)
| Text | agpl-3.0 | f-droid/fdroid-data,f-droid/fdroiddata,f-droid/fdroiddata | text | ## Code Before:
Categories:Internet
License:GPLv3+
Web Site:https://github.com/martykan/forecastie/blob/HEAD/README.md
Source Code:https://github.com/martykan/forecastie
Issue Tracker:https://github.com/martykan/forecastie/issues
Auto Name:Forecastie
Summary:Show weather information from OpenWeatherMap
Description:
Sh... |
ac956171fcfffee2f4019ca9b0ef3f4e83e904bc | src/test/resources/hibernate.cfg.xml | src/test/resources/hibernate.cfg.xml | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">jdb... | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.url">jdbc:po... | Use correct DTD for hibernate | Use correct DTD for hibernate | XML | apache-2.0 | ox-it/ords-database-api | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.con... |
9be121ed7b03526b5378813eecb1e8001cdaaaf5 | README.md | README.md |
[](https://travis-ci.com/desktop/desktop) [](https://ci.appveyor.com/project/github-windows/desktop/bran... |
[](https://travis-ci.com/desktop/desktop) [](https://ci.appveyor.com/project/github-windows/desktop/bran... | Include the blurb about logos | Include the blurb about logos
| Markdown | mit | j-f1/forked-desktop,j-f1/forked-desktop,shiftkey/desktop,say25/desktop,BugTesterTest/desktops,hjobrien/desktop,kactus-io/kactus,kactus-io/kactus,say25/desktop,gengjiawen/desktop,say25/desktop,hjobrien/desktop,desktop/desktop,j-f1/forked-desktop,gengjiawen/desktop,say25/desktop,artivilla/desktop,gengjiawen/desktop,deskt... | markdown | ## Code Before:
[](https://travis-ci.com/desktop/desktop) [](https://ci.appveyor.com/project/github-wind... |
d8a249c63c88bbdd0cbf8a8587cd8366c5c0a5e3 | README.md | README.md | duo-coffee
==========
CoffeeScript plugin for Duo
| duo-coffee
==========
[CoffeeScript](http://coffeescript.org/) plugin for [Duo](http://duojs.org/).
## Installation
```sh
> npm install --save-dev duo-coffee
```
## Usage
```sh
> duo --use duo-coffee input.coffee > output.js
```
| Add installation and usage instructions | Add installation and usage instructions
| Markdown | mit | tomshen/duo-coffee | markdown | ## Code Before:
duo-coffee
==========
CoffeeScript plugin for Duo
## Instruction:
Add installation and usage instructions
## Code After:
duo-coffee
==========
[CoffeeScript](http://coffeescript.org/) plugin for [Duo](http://duojs.org/).
## Installation
```sh
> npm install --save-dev duo-coffee
```
## Usage
```sh
... |
cbdef0e6bbfac19d917c0a1b73a37f6072dd5f00 | sprout-osx-apps/README.md | sprout-osx-apps/README.md | sprout-osx-apps
===============
Recipes to install commonly used applications on OS X Mountain Lion.
| sprout-osx-apps
===============
__WARNING__ To make maintaining Sprout a little easier, we are no longer adding recipes to this cookbook when a [Homebrew Cask](https://github.com/phinze/homebrew-cask). Please explore using Casks with [sprout-homebrew](https://github.com/pivotal-sprout/sprout-homebrew) where possible.
... | Add note about our preference for casks | Add note about our preference for casks | Markdown | mit | pivotal-sprout/sprout-osx-apps,wendorf/sprout-osx-apps,pivotal-sprout/sprout-osx-apps,wendorf/sprout-osx-apps,wendorf/sprout-osx-apps,pivotal-sprout/sprout-osx-apps | markdown | ## Code Before:
sprout-osx-apps
===============
Recipes to install commonly used applications on OS X Mountain Lion.
## Instruction:
Add note about our preference for casks
## Code After:
sprout-osx-apps
===============
__WARNING__ To make maintaining Sprout a little easier, we are no longer adding recipes to this co... |
14a07fa5f2fb2fd572e4401023950618add6e637 | core/jvm/src/test/scala/eu/timepit/refined/GenericValidateSpecJvm.scala | core/jvm/src/test/scala/eu/timepit/refined/GenericValidateSpecJvm.scala | package eu.timepit.refined
import eu.timepit.refined.TestUtils.wellTyped
import eu.timepit.refined.api.Validate
import eu.timepit.refined.generic.Eval
import org.scalacheck.Prop._
import org.scalacheck.Properties
import shapeless.test.illTyped
class GenericValidateSpecJvm extends Properties("GenericValidate") {
ty... | package eu.timepit.refined
import eu.timepit.refined.TestUtils.wellTyped
import eu.timepit.refined.api.Validate
import eu.timepit.refined.generic.Eval
import org.scalacheck.Prop._
import org.scalacheck.Properties
import shapeless.test.illTyped
import scala.tools.reflect.ToolBoxError
class GenericValidateSpecJvm exte... | Test that Eval can't access code from same scope | Test that Eval can't access code from same scope
| Scala | mit | sh0hei/refined,fthomas/refined | scala | ## Code Before:
package eu.timepit.refined
import eu.timepit.refined.TestUtils.wellTyped
import eu.timepit.refined.api.Validate
import eu.timepit.refined.generic.Eval
import org.scalacheck.Prop._
import org.scalacheck.Properties
import shapeless.test.illTyped
class GenericValidateSpecJvm extends Properties("GenericVa... |
3ff34fe815309d581eacc2f1171ae1f8e7642fbf | .travis.yml | .travis.yml | language: cpp
compiler:
- gcc
- clang
before_install:
- sudo apt-get update
- sudo apt-get install libgtest-dev
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
services:
- redis-server
before_script:
- mkdir build
- cd build
- cmake ..
script... | language: cpp
compiler:
- gcc
- clang
before_install:
- sudo apt-get update
- sudo apt-get install libgtest-dev libboost-thread-dev libboost-system-dev
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
services:
- redis-server
before_script:
- mkdir... | Add boost libraries to Travis | Add boost libraries to Travis
| YAML | lgpl-2.1 | blackjack/booredis | yaml | ## Code Before:
language: cpp
compiler:
- gcc
- clang
before_install:
- sudo apt-get update
- sudo apt-get install libgtest-dev
- "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
services:
- redis-server
before_script:
- mkdir build
- cd build
- ... |
97cecbd9edad3fc3b2dbdf70a52ff51360848079 | tests/book.rs | tests/book.rs | extern crate crowbook;
use crowbook::Book;
use std::io;
#[test]
fn test_book() {
let mut book = Book::new();
book.load_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"))
.unwrap();
book.render_format_to("html", &mut io::sink()).unwrap();
book.render_format_to("tex", &mut io:... | use crowbook::Book;
use std::io;
#[test]
fn test_book() {
let mut book = Book::new();
book.load_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"))
.unwrap();
book.render_format_to("html", &mut io::sink()).unwrap();
book.render_format_to("tex", &mut io::sink()).unwrap();
}
#... | Update tests for Rust 2018 | Update tests for Rust 2018
| Rust | lgpl-2.1 | lise-henry/crowbook,lise-henry/crowbook,lise-henry/crowbook,lise-henry/crowbook | rust | ## Code Before:
extern crate crowbook;
use crowbook::Book;
use std::io;
#[test]
fn test_book() {
let mut book = Book::new();
book.load_file(&format!("{}/{}", env!("CARGO_MANIFEST_DIR"), "tests/test.book"))
.unwrap();
book.render_format_to("html", &mut io::sink()).unwrap();
book.render_format_to... |
8dfba58dcff1cf7a28698a6dc1c4fd934cfd68a2 | django_authgroupex_dev/devsite/templates/base.html | django_authgroupex_dev/devsite/templates/base.html | {% load staticfiles %}
<html>
<head>
<title>django-authgroupex :: Demo</title>
</head>
<body>
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
... | {% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>django-authgroupex :: Demo</title>
</head>
<body>
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ messa... | Add HTML5 doctype to dev website | Add HTML5 doctype to dev website
| HTML | bsd-2-clause | Polytechnique-org/django-authgroupex | html | ## Code Before:
{% load staticfiles %}
<html>
<head>
<title>django-authgroupex :: Demo</title>
</head>
<body>
{% if messages %}
<div id="messages">
<ul class="messages">
{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ mess... |
4d796b3e86cebf3fe36e0f897a11e6768bbe81ce | lib/adwaita-pro-ui.coffee | lib/adwaita-pro-ui.coffee | module.exports =
config:
fontFamily:
description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'
type: 'string'
default: 'Cantarell'
enum: [
'Cantarell',
'Sans Serif',
'DejaVu Sans',
'gtk-3'
]
fontSize:
... | module.exports =
config:
fontFamily:
description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'
type: 'string'
default: 'Cantarell'
enum: [
'Cantarell',
'Sans Serif',
'DejaVu Sans',
'Oxygen-Sans',
'gtk-3'... | Add oxygen-sans to the font list (for kde5) | Add oxygen-sans to the font list (for kde5)
| CoffeeScript | mit | tsbarnes/ambiance-pro-ui,forivall/adwaita-pro-ui | coffeescript | ## Code Before:
module.exports =
config:
fontFamily:
description: 'Experimental: set to gtk-3 to load the font settings from ~/.config/gtk-3.0/settings.ini'
type: 'string'
default: 'Cantarell'
enum: [
'Cantarell',
'Sans Serif',
'DejaVu Sans',
'gtk-3'
... |
3ef6f02757772b5361d91732cc29f0e911b804c4 | lib/cli/messaging.js | lib/cli/messaging.js | var amqp = require('amqplib'),
Q = require('q'),
utils = require('../utils');
/*
Connect to message queue
*/
function connect(waitForConnection) {
var deferred = Q.defer();
waitForConnection.then(function (connection) {
var waitForChannel = connection.createConfirmChannel();
wait... | var amqp = require('amqplib'),
Q = require('q'),
utils = require('../utils');
/*
Connect to message queue
*/
function connect(waitForConnection) {
var deferred = Q.defer();
waitForConnection.then(function (connection) {
var waitForChannel = connection.createConfirmChannel();
waitF... | Remove topicId function, define at creation | Remove topicId function, define at creation
| JavaScript | apache-2.0 | radiodan/radiodan.js,radiodan/radiodan.js | javascript | ## Code Before:
var amqp = require('amqplib'),
Q = require('q'),
utils = require('../utils');
/*
Connect to message queue
*/
function connect(waitForConnection) {
var deferred = Q.defer();
waitForConnection.then(function (connection) {
var waitForChannel = connection.createConfirmChan... |
3379c2c40b2819029429085259fcf8eca9de4293 | lenskit-cli/src/main/resources/org/lenskit/cli/commands/render-graph.js | lenskit-cli/src/main/resources/org/lenskit/cli/commands/render-graph.js | load('classpath:META-INF/resources/webjars/viz.js/1.5.1/viz.js');
var svg = Viz(dotSrc, {
format: "svg",
engine: "dot"
});
var writer = new java.io.FileWriter(outFile);
writer.write(svg);
writer.close();
| load('classpath:META-INF/resources/webjars/viz.js/1.5.1/viz.js');
var svg = Viz(dotSrc, {
format: "svg",
engine: "dot"
});
var writer = new java.io.FileWriter(outFile);
writer.write(svg.toString());
writer.close();
| Use toString for SVG text | Use toString for SVG text
| JavaScript | lgpl-2.1 | vaibhav345/lenskit,kluver/lenskit,vaibhav345/lenskit,kluver/lenskit,vaibhav345/lenskit,kluver/lenskit,kluver/lenskit,vaibhav345/lenskit,kluver/lenskit | javascript | ## Code Before:
load('classpath:META-INF/resources/webjars/viz.js/1.5.1/viz.js');
var svg = Viz(dotSrc, {
format: "svg",
engine: "dot"
});
var writer = new java.io.FileWriter(outFile);
writer.write(svg);
writer.close();
## Instruction:
Use toString for SVG text
## Code After:
load('classpath:META-INF/resour... |
48cf18af79da6463074b8757b923f7ad1e6a5174 | .travis.yml | .travis.yml | sudo: true
language: cpp
compiler:
- gcc
- clang
env:
global:
- LD_LIBRARY_PATH="${TRAVIS_BUILD_DIR}/lib:${LD_LIBRARY_PATH}"
- CXXFLAGS="-g"
before_install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
install:
- |
if [ "${CXX}" == "g++" ]; then
BUILD_CXXFLAGS="${CXXFLAGS}... | sudo: true
language: cpp
compiler:
- gcc
- clang
env:
global:
- LD_LIBRARY_PATH="${TRAVIS_BUILD_DIR}/lib:${LD_LIBRARY_PATH}"
- CXXFLAGS="-g"
before_install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
install:
- |
if [ "${CXX}" == "g++" ]; then
BUILD_CXXFLAGS="${CXXFLAGS}... | Build tests in parallel, run them sequentially | [CI] Build tests in parallel, run them sequentially
| YAML | mit | libocca/occa,libocca/occa,libocca/occa,libocca/occa | yaml | ## Code Before:
sudo: true
language: cpp
compiler:
- gcc
- clang
env:
global:
- LD_LIBRARY_PATH="${TRAVIS_BUILD_DIR}/lib:${LD_LIBRARY_PATH}"
- CXXFLAGS="-g"
before_install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
install:
- |
if [ "${CXX}" == "g++" ]; then
BUILD_CXXFL... |
3818a0ee0b7936b52682e8f4cc04d39ef552e4fd | app/Lavoaster/LightBlog/User/Controllers/UserController.php | app/Lavoaster/LightBlog/User/Controllers/UserController.php | <?php namespace Lavoaster\LightBlog\User\Controllers;
use Lavoaster\LightBlog\User\Repositories\UserRepositoryInterface;
class UserController extends \BaseController
{
protected $user;
public function __construct(UserRepositoryInterface $user)
{
$this->user = $user;
}
public function lo... | <?php namespace Lavoaster\LightBlog\User\Controllers;
use Lavoaster\LightBlog\User\Repositories\UserRepositoryInterface;
class UserController extends \BaseController
{
protected $user;
public function __construct(UserRepositoryInterface $user)
{
$this->user = $user;
}
public function lo... | Convert user to array on successful login | Convert user to array on successful login
| PHP | mit | Lavoaster/LightBlog,Lavoaster/LightBlog,Lavoaster/LightBlog | php | ## Code Before:
<?php namespace Lavoaster\LightBlog\User\Controllers;
use Lavoaster\LightBlog\User\Repositories\UserRepositoryInterface;
class UserController extends \BaseController
{
protected $user;
public function __construct(UserRepositoryInterface $user)
{
$this->user = $user;
}
pu... |
bec9a6000e27ff528140cb14b9f60a0f8f18b294 | config/initializers/session_store.rb | config/initializers/session_store.rb |
Rails.application.config.session_store :cookie_store, key: '_whitehall_session',
secure: !(Rails.env.test? || Rails.env.development?)
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential i... |
Rails.application.config.session_store :cookie_store, key: '_whitehall_session',
secure: !(Rails.env.test? || Rails.env.development? || ENV['DISABLE_SECURE_COOKIES'])
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to... | Allow the disabling secure cookies in Rails production environment | Allow the disabling secure cookies in Rails production environment
The publishing end to end tests run Whitehall in Rails production
mode so we can mimic how the app will behave in production as closely
as possible.
We haven't set up HTTPS however which means that the secure cookie
marker is preventing the browser fr... | Ruby | mit | alphagov/whitehall,alphagov/whitehall,alphagov/whitehall,alphagov/whitehall | ruby | ## Code Before:
Rails.application.config.session_store :cookie_store, key: '_whitehall_session',
secure: !(Rails.env.test? || Rails.env.development?)
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highl... |
4a23399be0071a8386010fc6eb8a9dd2f78f9b04 | imageflow_server/Cargo.toml | imageflow_server/Cargo.toml | [package]
name = "imageflow_server"
version = "0.1.0"
authors = ["Nathanael Jones <nathanael.jones@gmail.com>"]
workspace = "../"
[dependencies]
libc = "0.2.0"
clap = "2"
router = "*"
iron = "*"
time = "*"
hyper = "*"
rustc-serialize = "*"
threadpool = "1.0"
serde = "*"
serde_json = "*"
imageflow_core = { path = "../... | [package]
name = "imageflow_server"
version = "0.1.0"
authors = ["Nathanael Jones <nathanael.jones@gmail.com>"]
workspace = "../"
[replace]
"openssl:0.8.2" = { path = "../../../github/rust-openssl/openssl" }
"openssl-sys:0.7.17"= { path = "../../../github/rust-openssl/openssl-sys" }
#"openssl:0.8.2" = { git = "https:/... | Use our fork of rust-openssl | Use our fork of rust-openssl
| TOML | agpl-3.0 | imazen/imageflow,imazen/imageflow,imazen/imageflow,imazen/imageflow,imazen/imageflow,imazen/imageflow,imazen/imageflow | toml | ## Code Before:
[package]
name = "imageflow_server"
version = "0.1.0"
authors = ["Nathanael Jones <nathanael.jones@gmail.com>"]
workspace = "../"
[dependencies]
libc = "0.2.0"
clap = "2"
router = "*"
iron = "*"
time = "*"
hyper = "*"
rustc-serialize = "*"
threadpool = "1.0"
serde = "*"
serde_json = "*"
imageflow_core... |
01181f148e5d38d48cd89f9b128a94ef6b4502ef | migrations/2_deploy_contracts.js | migrations/2_deploy_contracts.js | module.exports = function(deployer) {
deployer.deploy(Conference);
deployer.deploy(Bounty);
deployer.autolink();
};
| module.exports = function(deployer) {
deployer.deploy(Conference);
deployer.deploy(Bounty);
deployer.deploy(DemoBounty);
deployer.autolink();
};
| Add demo bounty to migration | Add demo bounty to migration | JavaScript | mit | makoto/blockparty,makoto/blockparty | javascript | ## Code Before:
module.exports = function(deployer) {
deployer.deploy(Conference);
deployer.deploy(Bounty);
deployer.autolink();
};
## Instruction:
Add demo bounty to migration
## Code After:
module.exports = function(deployer) {
deployer.deploy(Conference);
deployer.deploy(Bounty);
deployer.deploy(DemoBou... |
b7e061f73a534dddc6d6de974c52dd58dedbcea2 | .travis.yml | .travis.yml |
language: python
matrix:
include:
- python: 3.6
env: TOX_ENV=py36
- python: 3.5
env: TOX_ENV=py35
- python: 3.4
env: TOX_ENV=py34
- python: 2.7
env: TOX_ENV=py27
- python: pypy3
env: TOX_ENV=pypy3
- python: 3.6
env: TOX_ENV=flake8
# This should ensure tha... |
language: python
matrix:
include:
- python: 3.6
env: TOX_ENV=py36
- python: 3.5
env: TOX_ENV=py35
- python: 3.4
env: TOX_ENV=py34
- python: 2.7
env: TOX_ENV=py27
- python: pypy3
env: TOX_ENV=pypy3
- python: 3.6
env: TOX_ENV=flake8
# Use tox to run tests o... | Remove unecessary pip upgrade step | Remove unecessary pip upgrade step
| YAML | apache-2.0 | bndr/pipreqs | yaml | ## Code Before:
language: python
matrix:
include:
- python: 3.6
env: TOX_ENV=py36
- python: 3.5
env: TOX_ENV=py35
- python: 3.4
env: TOX_ENV=py34
- python: 2.7
env: TOX_ENV=py27
- python: pypy3
env: TOX_ENV=pypy3
- python: 3.6
env: TOX_ENV=flake8
# This s... |
3d038b1f40222dcf01087165863f379087b55045 | .travis.yml | .travis.yml | language: ruby
env:
- version=ruby:2.7
- version=ruby:2.6
- version=ruby:2.5
- version=ruby:2.4
- version=jruby:9.2
gemfile:
- gemfiles/Sinatra_1.gemfile
- gemfiles/Sinatra_2.gemfile
script: make test-docker
deploy:
provider: rubygems
api_key: $RUBYGEMS_API_KEY
gem: sendgrid-ruby
on:
tags: ... | language: ruby
env:
- version=ruby:2.7
- version=ruby:2.6
- version=ruby:2.5
- version=ruby:2.4
- version=jruby:9.2
gemfile:
- gemfiles/Sinatra_1.gemfile
- gemfiles/Sinatra_2.gemfile
script: make test-docker
deploy:
provider: rubygems
api_key: $RUBYGEMS_API_KEY
gem: sendgrid-ruby
on:
tags: ... | Revert "chore: move encrypted tokens to environment variables" | Revert "chore: move encrypted tokens to environment variables"
This reverts part of commit 8482ab81
| YAML | mit | sendgrid/sendgrid-ruby,sendgrid/sendgrid-ruby | yaml | ## Code Before:
language: ruby
env:
- version=ruby:2.7
- version=ruby:2.6
- version=ruby:2.5
- version=ruby:2.4
- version=jruby:9.2
gemfile:
- gemfiles/Sinatra_1.gemfile
- gemfiles/Sinatra_2.gemfile
script: make test-docker
deploy:
provider: rubygems
api_key: $RUBYGEMS_API_KEY
gem: sendgrid-ruby
... |
27632aeecf756ef22532b2847b3d3bea7fb5f910 | launchpod/src/main/webapp/angular-launchpod/src/app/create-form/create-form.component.html | launchpod/src/main/webapp/angular-launchpod/src/app/create-form/create-form.component.html | <div>
<h2>Enter the Name of Your Podcast</h2>
<mat-form-field appearance="outline">
<mat-label>Podcast Title</mat-label>
<input matInput placeholder="Ex. This American Life">
</mat-form-field>
<br />
<h2>Provide Your mp3 Link</h2>
<mat-form-field appearance="outline">
<m... | <div>
<h2>Enter the Name of Your Podcast</h2>
<mat-form-field appearance="outline">
<mat-label>Podcast Title</mat-label>
<input matInput name="title" placeholder="Ex. This American Life">
</mat-form-field>
<br />
<h2>Provide Your mp3 Link</h2>
<mat-form-field appearance="outline... | Add names to form fields. | Add names to form fields.
| HTML | apache-2.0 | googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020,googleinterns/step18-2020 | html | ## Code Before:
<div>
<h2>Enter the Name of Your Podcast</h2>
<mat-form-field appearance="outline">
<mat-label>Podcast Title</mat-label>
<input matInput placeholder="Ex. This American Life">
</mat-form-field>
<br />
<h2>Provide Your mp3 Link</h2>
<mat-form-field appearance="outl... |
807f331a11a7cde61d6c2f0df2abd2b2b60810f2 | src/test/scala/com/mindcandy/waterfall/actor/DropWorkerSpec.scala | src/test/scala/com/mindcandy/waterfall/actor/DropWorkerSpec.scala | package com.mindcandy.waterfall.actor
import org.specs2.specification.After
import akka.testkit.TestKit
import org.specs2.time.NoTimeConversions
import akka.actor.ActorSystem
import org.specs2.SpecificationLike
import akka.testkit.TestProbe
import akka.actor.ActorRef
import akka.actor.Props
import scala.util.Success
i... | package com.mindcandy.waterfall.actor
import org.specs2.specification.After
import akka.testkit.TestKit
import org.specs2.time.NoTimeConversions
import akka.actor.{Terminated, ActorSystem, ActorRef, Props}
import org.specs2.SpecificationLike
import akka.testkit.TestProbe
import scala.util.Success
import com.mindcandy.... | Add unit test to ensure the worker actor is stopped. | Add unit test to ensure the worker actor is stopped.
| Scala | mit | mindcandy/waterfall,mindcandy/waterfall | scala | ## Code Before:
package com.mindcandy.waterfall.actor
import org.specs2.specification.After
import akka.testkit.TestKit
import org.specs2.time.NoTimeConversions
import akka.actor.ActorSystem
import org.specs2.SpecificationLike
import akka.testkit.TestProbe
import akka.actor.ActorRef
import akka.actor.Props
import scal... |
b08630afae630af33c9ac9a68e75451b74dc8022 | upgrade/upgrade_2x/tasks/stopsfservices.yml | upgrade/upgrade_2x/tasks/stopsfservices.yml | ---
# Stop all service mariadb, gerrit, ...
- name: Stop services
service: name={{ item }} state=stopped
ignore_errors: yes
with_items:
- monit
- httpd
- jenkins
- zuul
- zuul-merger
- nodepool
- gerrit
- etherpad
- lodgeit
- mariadb
- gerritbot
- grafana-server
... | ---
# Stop all service mariadb, gerrit, ...
- name: Stop services
service: name={{ item }} state=stopped
ignore_errors: yes
with_items:
- monit
- httpd
- jenkins
- zuul
- zuul-merger
- nodepool
- gerrit
- etherpad
- lodgeit
- mariadb
- gerritbot
- grafana-server
... | Add repoxplorer srv that was missing from the srvs to be stopped | upgrade: Add repoxplorer srv that was missing from the srvs to be stopped
Change-Id: Ie11444e169af61e11cd9e8065c05458ab073b99c
| YAML | apache-2.0 | enovance/software-factory,enovance/software-factory,enovance/software-factory,enovance/software-factory,enovance/software-factory | yaml | ## Code Before:
---
# Stop all service mariadb, gerrit, ...
- name: Stop services
service: name={{ item }} state=stopped
ignore_errors: yes
with_items:
- monit
- httpd
- jenkins
- zuul
- zuul-merger
- nodepool
- gerrit
- etherpad
- lodgeit
- mariadb
- gerritbot
- gr... |
7f6cc760c7f0f3b7e3051eb4668895b015a55b41 | init.sh | init.sh |
VERSION=${1:-"1.9.3.2"}
PKG=ngx_openresty-$VERSION
apt-get update
apt-get install -y libpcre3-dev build-essential libssl-dev sudo libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
#Install openresty
wget http://openresty.org/download/${PKG}.tar.gz
tar xzf ${PKG}.tar.gz
cd $PKG
./configure --prefix=/u... |
VERSION=${1:-"1.9.7.2"}
PKG=ngx_openresty-$VERSION
apt-get update
apt-get install -y libpcre3-dev build-essential libssl-dev sudo libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make git > /dev/null 2>&1
#Install openresty
wget http://openresty.org/download/${PKG}.tar.gz
tar xzf ${PKG}.tar.gz
cd $PKG
./... | Update openresty + minor fixes | Update openresty + minor fixes | Shell | mit | ounos/lapis-vagrant | shell | ## Code Before:
VERSION=${1:-"1.9.3.2"}
PKG=ngx_openresty-$VERSION
apt-get update
apt-get install -y libpcre3-dev build-essential libssl-dev sudo libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
#Install openresty
wget http://openresty.org/download/${PKG}.tar.gz
tar xzf ${PKG}.tar.gz
cd $PKG
./confi... |
b2a1eff99af5fb12ce7514efccf6e3897f310993 | .travis.yml | .travis.yml | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://ww... | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org
- nuget push VcEngine.Automation.*.nupkg -ApiKey $NUGET_API_KEY -Source htt... | Set API key through command line | Set API key through command line
| YAML | mit | redsolo/vcengine-automation,redsolo/vcengine-automation | yaml | ## Code Before:
language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -S... |
2641fac14669b9a4144dd8c512def7a938aff761 | lib/twitter-text.rb | lib/twitter-text.rb | raise("twitter-text requires the $KCODE variable be set to 'UTF8' or 'u'") unless ['u','UTF8'].include?($KCODE) || ''.respond_to?(:codepoints)
require 'rubygems'
# Needed for auto-linking
require 'action_view'
require File.join(File.dirname(__FILE__), 'regex')
require File.join(File.dirname(__FILE__), 'autolink')
re... |
major, minor, patch = RUBY_VERSION.split('.')
if major == 1 && minor < 9
# Ruby 1.8 KCODE check. Not needed on 1.9 and later.
raise("twitter-text requires the $KCODE variable be set to 'UTF8' or 'u'") unless ['u','UTF8'].include?($KCODE)
end
require 'rubygems'
# Needed for auto-linking
require 'action_view'
re... | Make the version check more epxlicit | Make the version check more epxlicit
| Ruby | apache-2.0 | aaronsakowski/twitter-text,joebos/twitter-text-py,zhaoguohui/twitter-text,silentroach/twitter-text,megaserg/twitter-text,masonkmeyer/twitter-text,zhaoguohui/twitter-text,aaronsakowski/twitter-text,masonkmeyer/twitter-text,twitter/twitter-text,silentroach/twitter-text,megaserg/twitter-text,ay8s/twitter-text,iadvize/java... | ruby | ## Code Before:
raise("twitter-text requires the $KCODE variable be set to 'UTF8' or 'u'") unless ['u','UTF8'].include?($KCODE) || ''.respond_to?(:codepoints)
require 'rubygems'
# Needed for auto-linking
require 'action_view'
require File.join(File.dirname(__FILE__), 'regex')
require File.join(File.dirname(__FILE__)... |
1dd267dd5bd687d031df506cc275d401d4b28538 | package.json | package.json | {
"name": "vfl-compiler",
"description": "Visual Format Language compiler",
"version": "1.1.3-beta",
"repository": {
"type": "git",
"url": "git://github.com/the-gss/vfl-compiler.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/the-gss/vfl-compiler/blob/master/LICENSE... | {
"name": "vfl-compiler",
"description": "Visual Format Language compiler",
"version": "1.1.3-beta",
"repository": {
"type": "git",
"url": "git://github.com/the-gss/vfl-compiler.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/the-gss/vfl-compiler/blob/master/LICENSE... | Move error reporter from devDependencies to dependencies since it is used by the source code. | Move error reporter from devDependencies to dependencies since it is used by the source code. | JSON | mit | gss/vfl-compiler | json | ## Code Before:
{
"name": "vfl-compiler",
"description": "Visual Format Language compiler",
"version": "1.1.3-beta",
"repository": {
"type": "git",
"url": "git://github.com/the-gss/vfl-compiler.git"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/the-gss/vfl-compiler/blo... |
ed225a35320bd0403c69cf03bddcbc100be31402 | layouts/partials/detailpage-header.html | layouts/partials/detailpage-header.html | {{ "<!-- ENTERING layouts/partials/detailpage-header.html -->" | safeHTML }}
<header>
<div class="section amber lighten-4" id="index-banner">
<div class="container">
<div class="row">
<div class="col s12 m9">
<h1 class="header center-on-small-only">{{ .Title }}</h1>
<h4 class="li... | {{ "<!-- ENTERING layouts/partials/detailpage-header.html -->" | safeHTML }}
<header>
<div class="section amber" id="index-banner">
<div class="container">
<div class="row">
<div class="col s12 m9">
<h1 class="header center-on-small-only">{{ .Title }}</h1>
<h4 class="light light-... | Change to richer colors on detail page header | Change to richer colors on detail page header
| HTML | mit | Hideaki1/eSolia,eSolia/eSolia,eSolia/eSolia,eSolia/eSolia,Hideaki1/eSolia,Hideaki1/eSolia | html | ## Code Before:
{{ "<!-- ENTERING layouts/partials/detailpage-header.html -->" | safeHTML }}
<header>
<div class="section amber lighten-4" id="index-banner">
<div class="container">
<div class="row">
<div class="col s12 m9">
<h1 class="header center-on-small-only">{{ .Title }}</h1>
... |
b095b66d438f2a9c72c7b3d5e115f367482ab42a | repo-lists/src-jessie_meta-debian_tiny-minimal.txt | repo-lists/src-jessie_meta-debian_tiny-minimal.txt | debian-acl
debian-alsa-lib
debian-apt
debian-attr
debian-autoconf
debian-automake-1.14
debian-base-files
debian-base-passwd
debian-bc
debian-binutils
debian-bison
debian-busybox
debian-bzip2
debian-db
debian-device-tree-compiler
debian-dpkg
debian-e2fsprogs
debian-elfutils
debian-file
debian-flex
debian-gcc-4.9
debian-... | debian-acl
debian-alsa-lib
debian-apt
debian-attr
debian-autoconf
debian-automake-1.14
debian-base-files
debian-base-passwd
debian-bc
debian-binutils
debian-bison
debian-busybox
debian-bzip2
debian-db
debian-device-tree-compiler
debian-dpkg
debian-e2fsprogs
debian-elfutils
debian-file
debian-flex
debian-gcc-4.9
debian-... | Fix repository name for Linux kernel | Fix repository name for Linux kernel
Signed-off-by: KOBAYASHI Yoshitake <660dffec41e49d8e2b867f5ce8cca16fc6cd2587@gmail.com>
| Text | mit | meta-debian/meta-debian-scripts | text | ## Code Before:
debian-acl
debian-alsa-lib
debian-apt
debian-attr
debian-autoconf
debian-automake-1.14
debian-base-files
debian-base-passwd
debian-bc
debian-binutils
debian-bison
debian-busybox
debian-bzip2
debian-db
debian-device-tree-compiler
debian-dpkg
debian-e2fsprogs
debian-elfutils
debian-file
debian-flex
debian... |
eeb287f6029c7116b81ac81af76e055b2e3efa85 | commands/misc.js | commands/misc.js | /*
Miscellaneous commands
*/
Settings.addPermissions(['pick', 'randomanswer']);
exports.commands = {
choose: 'pick',
pick: function (arg, by, room, cmd) {
var choices = arg.split(",");
choices = choices.filter(function (i) {return (toId(i) !== '');});
if (choices.length < 2) return this.pmReply(this.trad('er... | /*
Miscellaneous commands
*/
Settings.addPermissions(['pick', 'randomanswer', 'usage', 'help']);
exports.commands = {
choose: 'pick',
pick: function (arg, by, room, cmd) {
var choices = arg.split(",");
choices = choices.filter(function (i) {return (toId(i) !== '');});
if (choices.length < 2) return this.pmRe... | Add usage and help commands | Add usage and help commands
| JavaScript | mit | ateck5/le_spatula,sama2/Pokemon-Showdown-Node-Bot,awolffromspace/PC-Battle-Server-Bot,TheFenderStory/Mambot,Ecuacion/Espaol-Bot,abulechu/Pokemon-Showdown-Node-Bot,Robophill/Pokemon-Showdown-Node-Bot,Flareninja/Pokemon-Showdown-Node-Bot,Ecuacion/Pokemon-Showdown-Node-Bot,TheFenderStory/Pokemon-Showdown-Node-Bot,Freigeis... | javascript | ## Code Before:
/*
Miscellaneous commands
*/
Settings.addPermissions(['pick', 'randomanswer']);
exports.commands = {
choose: 'pick',
pick: function (arg, by, room, cmd) {
var choices = arg.split(",");
choices = choices.filter(function (i) {return (toId(i) !== '');});
if (choices.length < 2) return this.pmRep... |
daa28fd29ca7273972df03784800dcb093bdcf11 | integration/advent2012-day23.t | integration/advent2012-day23.t | use v6;
use Test;
plan 2;
sub capture-said($code) {
my $output;
my $*OUT = class {
method print(*@args) {
$output ~= @args.join;
}
}
$code();
return $output
}
macro checkpoint {
my $i = ++(state $n);
quasi { say "CHECKPOINT $i"; }
}
my $checkpoint-output = capture-said( {
checkpoi... | use v6;
use Test;
plan 2;
sub capture-said($code) {
my $output;
my $*OUT = class {
method print(*@args) {
$output ~= @args.join;
}
}
$code();
return $output
}
macro checkpoint {
my $i = ++(state $n);
quasi { say "CHECKPOINT $i"; }
}
my $checkpoint-output = capture-said( {
checkpoi... | Make test robust to Windows line endings. | Make test robust to Windows line endings.
| Perl | artistic-2.0 | niner/roast,zostay/roast,zostay/roast,skids/roast,cygx/roast,b2gills/roast,b2gills/roast,laben/roast,zostay/roast,niner/roast,bitrauser/roast,niner/roast,cygx/roast,b2gills/roast,dankogai/roast,bitrauser/roast,laben/roast,cygx/roast,dogbert17/roast,skids/roast,dankogai/roast,laben/roast,dankogai/roast,perl6/roast,skids... | perl | ## Code Before:
use v6;
use Test;
plan 2;
sub capture-said($code) {
my $output;
my $*OUT = class {
method print(*@args) {
$output ~= @args.join;
}
}
$code();
return $output
}
macro checkpoint {
my $i = ++(state $n);
quasi { say "CHECKPOINT $i"; }
}
my $checkpoint-output = capture-said... |
1356fd2a7c0727d721a03320473d0853058ba3f1 | .travis.yml | .travis.yml | language: c
compiler:
- gcc
- clang
matrix:
include:
- compiler: gcc
env: ANDROID_TOOLCHAIN=/tmp/toolchains/arm
before_install:
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get update -qq; fi
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get install -qq libexpat1-dev libssl-de... | language: c
compiler:
- gcc
- clang
matrix:
include:
- compiler: gcc
env: ANDROID_TOOLCHAIN=/tmp/toolchains/arm
before_install:
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get update -qq; fi
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get install -qq libexpat1-dev libssl-de... | Return to the correct directory after building toolchain. | Travis: Return to the correct directory after building toolchain.
| YAML | mit | BellerophonMobile/xmp3,BellerophonMobile/xmp3,BellerophonMobile/xmp3 | yaml | ## Code Before:
language: c
compiler:
- gcc
- clang
matrix:
include:
- compiler: gcc
env: ANDROID_TOOLCHAIN=/tmp/toolchains/arm
before_install:
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get update -qq; fi
- if [ -z "$ANDROID_TOOLCHAIN" ]; then sudo apt-get install -qq libexpa... |
7c41c2a65432391d977f4ec66f9024491b0296bb | doc/installation.md | doc/installation.md |
To use Grafter you can add it as a dependency in your sbt build settings:
```scala
libraryDependencies += "org.zalando" %% "grafter" % "1.4.12"
```
Grafter also provides some annotations to help reducing the boilerplate in
your code. If you decide to use them, you need to add the following scala
compiler plugin to y... |
To use Grafter you can add it as a dependency in your sbt build settings:
```scala
libraryDependencies += "org.zalando" %% "grafter" % "1.4.12"
```
Grafter also provides some annotations to help reducing the boilerplate in
your code. If you decide to use them, you need to add the following scala
compiler plugin to y... | Add link to an application template | Add link to an application template
Said template will generate a fully setup grafter application
with http4s.
| Markdown | mit | jcranky/grafter | markdown | ## Code Before:
To use Grafter you can add it as a dependency in your sbt build settings:
```scala
libraryDependencies += "org.zalando" %% "grafter" % "1.4.12"
```
Grafter also provides some annotations to help reducing the boilerplate in
your code. If you decide to use them, you need to add the following scala
comp... |
7842024e28a064594e4702f6c47f88ad8e95ecab | README.md | README.md | Adafruit NeoPixel library
=========================
Arduino library for controlling single-wire-based LED pixels and strip such as the [Adafruit 60 LED/meter Digital LED strip][strip] and the [Adafruit FLORA RGB Smart Pixel][pixel].
After downloading, rename folder to 'Adafruit_NeoPixel' and install in Arduino Librar... | Adafruit NeoPixel library
=========================
Arduino library for controlling single-wire-based LED pixels and strip such as the [Adafruit 60 LED/meter Digital LED strip][strip], the [Adafruit FLORA RGB Smart Pixel][flora], the [Adafruit Breadboard-friendly RGB Smart Pixel][pixel], the [Adafruit NeoPixel Stick][... | Add additional compatible product links | Add additional compatible product links | Markdown | lgpl-2.1 | gregersn/Adafruit_NeoPixel,gregersn/Adafruit_NeoPixel | markdown | ## Code Before:
Adafruit NeoPixel library
=========================
Arduino library for controlling single-wire-based LED pixels and strip such as the [Adafruit 60 LED/meter Digital LED strip][strip] and the [Adafruit FLORA RGB Smart Pixel][pixel].
After downloading, rename folder to 'Adafruit_NeoPixel' and install i... |
bf0bacdbf86498f09e108a714a5dcee2f496fdf5 | pkgs/development/libraries/openal-soft/default.nix | pkgs/development/libraries/openal-soft/default.nix | { stdenv, fetchurl, cmake, alsaLib }:
stdenv.mkDerivation rec {
#The current release is still in a testing phase, though it should be stable
# (neither the ABI or API will break). Please try it out and let me know how it
# works. :-)
version = "1.15.1";
name = "openal-soft-${version}";
src = fetchurl {
ur... | { stdenv, fetchurl, cmake
, alsaSupport ? true, alsaLib ? null
, pulseSupport ? true, pulseaudio ? null
}:
assert alsaSupport -> alsaLib != null;
assert pulseSupport -> pulseaudio != null;
stdenv.mkDerivation rec {
version = "1.15.1";
name = "openal-soft-${version}";
src = fetchurl {
url = "http://kcat.str... | Add PulseAudio backend, make non-OSS backends work. | openal-soft: Add PulseAudio backend, make non-OSS backends work.
* Added PulseAudio backend support.
* Made ALSA and PulseAudio backends optional.
* Made ALSA and PulseAudio backends actually work by adding to
NIX_LDFLAGS (because package uses dlopen).
TEST: Tested all 3 backends (OSS, ALSA, PulseAudio) using opena... | Nix | mit | SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,SymbiF... | nix | ## Code Before:
{ stdenv, fetchurl, cmake, alsaLib }:
stdenv.mkDerivation rec {
#The current release is still in a testing phase, though it should be stable
# (neither the ABI or API will break). Please try it out and let me know how it
# works. :-)
version = "1.15.1";
name = "openal-soft-${version}";
src = f... |
8dce80baea7d9fafaf65b1fd9d545765a0aa5614 | lib/engine.rb | lib/engine.rb | require 'rubygems'
require 'bundler/setup'
require 'sinatra/base'
require 'yaml'
class OpenScienceRender < Sinatra::Base
def initialize
super
@renderers = load_renderers
end
configure do
set :root, File.join(File.dirname(__FILE__), "..")
end
get "/view/:type" do |type|
renderer = @rendere... | require 'rubygems'
require 'bundler/setup'
require 'sinatra/base'
require 'yaml'
class OpenScienceRender < Sinatra::Base
def initialize
super
@renderers = load_renderers
end
configure do
set :root, File.join(File.dirname(__FILE__), "..")
end
get "/view/:type" do |type|
renderer = @rendere... | Fix stupid case clause bug! | Fix stupid case clause bug!
| Ruby | apache-2.0 | OpenScienceRender/OpenScienceRender | ruby | ## Code Before:
require 'rubygems'
require 'bundler/setup'
require 'sinatra/base'
require 'yaml'
class OpenScienceRender < Sinatra::Base
def initialize
super
@renderers = load_renderers
end
configure do
set :root, File.join(File.dirname(__FILE__), "..")
end
get "/view/:type" do |type|
ren... |
4f0650ca3d82e29d7b1b26b08de107e2c5468709 | requirements.txt | requirements.txt | ./SyntheticDataset
./SUASSystem
./SDAPackage
./UpdatedSyntheticDataset
./ImgProcessingCLI
nose
dronekit
| ./SyntheticDataset
./SUASSystem
./SDAPackage
./UpdatedSyntheticDataset
./EigenFit
./ImgProcessingCLI
nose
dronekit
| Add EigenFit as a Travis dependency | Add EigenFit as a Travis dependency
| Text | mit | FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition,FlintHill/SUAS-Competition | text | ## Code Before:
./SyntheticDataset
./SUASSystem
./SDAPackage
./UpdatedSyntheticDataset
./ImgProcessingCLI
nose
dronekit
## Instruction:
Add EigenFit as a Travis dependency
## Code After:
./SyntheticDataset
./SUASSystem
./SDAPackage
./UpdatedSyntheticDataset
./EigenFit
./ImgProcessingCLI
nose
dronekit
|
d46bc84a07f98fd32d464e0302e2a6a6a5a4ac92 | .travis.yml | .travis.yml | dist: bionic
language: cpp
compiler: gcc
script:
- cd test
- make
# This really should finish in less than 2 minutes - otherwise something's wrong
- timeout 120 ./libmorton_test 128
| dist: bionic
language: cpp
compiler: gcc
before_install:
- sudo apt-get update
- sudo apt-get -y install gcc-8
script:
- cd test
- make CXX=g++8 bmi2
- make CXX=g++8 avx512
- make CXX=g++8 test
# This really should finish in less than 2 minutes - otherwise something's wrong
- timeout 120 ./libmorton_test... | Build AVX512 using gcc8 on bionic | Build AVX512 using gcc8 on bionic | YAML | mit | Forceflow/libmorton | yaml | ## Code Before:
dist: bionic
language: cpp
compiler: gcc
script:
- cd test
- make
# This really should finish in less than 2 minutes - otherwise something's wrong
- timeout 120 ./libmorton_test 128
## Instruction:
Build AVX512 using gcc8 on bionic
## Code After:
dist: bionic
language: cpp
compiler: gcc
before_i... |
876bb3af42b1628e162492bcd95939e32ce1a661 | tpl/_top.twig | tpl/_top.twig | <header class="w600p center mbm">
<h1><a href="./" title="{% trans "back to home" %}" ><img src="./tpl/img/logo.png" alt="logo poche" /></a></h1>
</header> | <header class="w600p center mbm">
<h1>
{% if view == 'home' %}{% block logo %}<img src="./tpl/img/logo.png" alt="logo poche" />{% endblock %}
{% else %}<a href="./" title="{% trans "back to home" %}" >{{ block('logo') }}</a>
{% endif %}
</h... | Remove on login and home views useless link "back to home" | Remove on login and home views useless link "back to home"
| Twig | mit | wallabag/wallabag,egilli/wallabag,kwangkim/wallabag,wangjun/wallabag,aarizkuren/wallabag,shtrom/wallabag,X-dark/wallabag,milanaleksic/wallabag,shtrom/wallabag,aarizkuren/wallabag,shtrom/wallabag,egilli/wallabag,pmichelazzo/wallabag,egilli/wallabag,harikt/wallabag,X-dark/wallabag,freddyb/wallabag,milanaleksic/wallabag,a... | twig | ## Code Before:
<header class="w600p center mbm">
<h1><a href="./" title="{% trans "back to home" %}" ><img src="./tpl/img/logo.png" alt="logo poche" /></a></h1>
</header>
## Instruction:
Remove on login and home views useless link "back to home"
## Code After:
<header class="w600p ... |
9538500467f520a0b18089e0382f80a15af1e0cc | build-tests.xml | build-tests.xml | <?xml version="1.0" encoding="UTF-8"?>
<project basedir=".">
<target name="-init-clover-initstring" unless="clover.init.string">
<property name="clover.init.string" location=".clover/clover.db"/>
</target>
<target name="-init-clover" depends="-init-clover-initstring">
<path id="clover.clas... | <?xml version="1.0" encoding="UTF-8"?>
<project basedir=".">
<target name="-init-clover-initstring" unless="clover.init.string">
<property name="clover.init.string" location=".clover/clover.db"/>
</target>
<target name="-init-clover" depends="-init-clover-initstring">
<path id="clover.clas... | Allow the clover licence to be set explicitly. | Allow the clover licence to be set explicitly.
Change-Id: I63ae0fdbf399f6e0df6378bf43a63becb06eda91
Reviewed-on: http://gerrit.dmdirc.com/2732
Reviewed-by: Greg Holmes <79e2475f81a6317276bf7cbb3958b20d289b78df@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
| XML | mit | csmith/DMDirc-Plugins,DMDirc/Plugins,csmith/DMDirc-Plugins,csmith/DMDirc-Plugins,DMDirc/Plugins,csmith/DMDirc-Plugins,DMDirc/Plugins,DMDirc/Plugins,DMDirc/Plugins,csmith/DMDirc-Plugins | xml | ## Code Before:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".">
<target name="-init-clover-initstring" unless="clover.init.string">
<property name="clover.init.string" location=".clover/clover.db"/>
</target>
<target name="-init-clover" depends="-init-clover-initstring">
<path... |
dcc21b9fb5c2f4103fad564f7eb40277aa7b6b77 | data/jjb/init.yaml | data/jjb/init.yaml | - job:
name: config
builders:
- gerrit-git-prep
- shell: |
mkdir build
jenkins-jobs test jobs/ -o build/
jenkins-jobs update --delete-old jobs/
triggers:
- gerrit:
trigger-on-change-merged-event: true
projects:
- project-compare... | - job:
name: config-update
builders:
- gerrit-git-prep
- shell: |
mkdir build
jenkins-jobs test jobs/ -o build/
jenkins-jobs update --delete-old jobs/
triggers:
- gerrit:
trigger-on-change-merged-event: true
projects:
- project-... | Add a 'gate' for config repository | Add a 'gate' for config repository
Change-Id: I115f575d9f896fa1b5f3caa29a4674fb88dccceb
| YAML | apache-2.0 | enovance/software-factory,enovance/software-factory,enovance/software-factory,enovance/software-factory,invenfantasy/software-factory,invenfantasy/software-factory,enovance/software-factory,invenfantasy/software-factory,invenfantasy/software-factory,invenfantasy/software-factory | yaml | ## Code Before:
- job:
name: config
builders:
- gerrit-git-prep
- shell: |
mkdir build
jenkins-jobs test jobs/ -o build/
jenkins-jobs update --delete-old jobs/
triggers:
- gerrit:
trigger-on-change-merged-event: true
projects:
-... |
3c9ee1f06059f47fcbe771bef0400d7a976435f5 | lib/pull-request-message.js | lib/pull-request-message.js | 'use strict';
var fs = require('fs');
var path = require('path');
var Promise = require('bluebird');
var temp = require('temp');
var editor = require('editor');
module.exports = prMessage;
function prMessage (template, tpTicket) {
temp.track();
return new Promise( function (resolve) {
fs.readFile... | 'use strict';
var fs = require('fs');
var path = require('path');
var Promise = require('bluebird');
var temp = require('temp');
var editor = require('editor');
module.exports = prMessage;
function prMessage (template, tpTicketId) {
temp.track();
return readMessageTemplate(template)
.then(interpola... | Rewrite pull request message module | Rewrite pull request message module
Previous step to handle missing template file
| JavaScript | mit | madtrick/spr | javascript | ## Code Before:
'use strict';
var fs = require('fs');
var path = require('path');
var Promise = require('bluebird');
var temp = require('temp');
var editor = require('editor');
module.exports = prMessage;
function prMessage (template, tpTicket) {
temp.track();
return new Promise( function (resolve) {... |
a88d8f6de5e7135b9fdc2ad75a386579bebde07f | lcad_to_ldraw.py | lcad_to_ldraw.py |
import os
import sys
import lcad_language.interpreter as interpreter
if (len(sys.argv)<2):
print "usage: <lcad file> <ldraw file (optional)>"
exit()
# Generate parts.
with open(sys.argv[1]) as fp:
# Change current working directory to the location of the lcad file.
cur_dir = os.getcwd()
os.... |
import os
import sys
import lcad_language.interpreter as interpreter
if (len(sys.argv)<2):
print "usage: <lcad file> <ldraw file (optional)>"
exit()
# Generate parts.
with open(sys.argv[1]) as fp:
# Change current working directory to the location of the lcad file.
cur_dir = os.getcwd()
if ... | Fix to work correctly if we are already in the directory of the lcad file. | Fix to work correctly if we are already in the directory of the lcad file.
| Python | mit | HazenBabcock/opensdraw | python | ## Code Before:
import os
import sys
import lcad_language.interpreter as interpreter
if (len(sys.argv)<2):
print "usage: <lcad file> <ldraw file (optional)>"
exit()
# Generate parts.
with open(sys.argv[1]) as fp:
# Change current working directory to the location of the lcad file.
cur_dir = os.getc... |
01f953fb315dcfee41d8150f929e2a260fdd9c9b | packages/shared/lib/errors.js | packages/shared/lib/errors.js | export const HTTP_ERROR_CODES = {
ABORTED: -1,
TIMEOUT: 0,
UNPROCESSABLE_ENTITY: 422,
UNAUTHORIZED: 401,
UNLOCK: 403,
TOO_MANY_REQUESTS: 429
};
export const API_CUSTOM_ERROR_CODES = {
HUMAN_VERIFICATION_REQUIRED: 9001,
AUTH_ACCOUNT_DISABLED: 10003,
TOKEN_INVALID: 12087
};
export co... | export const HTTP_ERROR_CODES = {
ABORTED: -1,
TIMEOUT: 0,
UNPROCESSABLE_ENTITY: 422,
UNAUTHORIZED: 401,
UNLOCK: 403,
TOO_MANY_REQUESTS: 429
};
export const API_CUSTOM_ERROR_CODES = {
APP_VERSION_BAD: 5003,
HUMAN_VERIFICATION_REQUIRED: 9001,
AUTH_ACCOUNT_DISABLED: 10003,
TOKEN_I... | Add app version bad constant | Add app version bad constant
| JavaScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | javascript | ## Code Before:
export const HTTP_ERROR_CODES = {
ABORTED: -1,
TIMEOUT: 0,
UNPROCESSABLE_ENTITY: 422,
UNAUTHORIZED: 401,
UNLOCK: 403,
TOO_MANY_REQUESTS: 429
};
export const API_CUSTOM_ERROR_CODES = {
HUMAN_VERIFICATION_REQUIRED: 9001,
AUTH_ACCOUNT_DISABLED: 10003,
TOKEN_INVALID: 120... |
b1a5fe7884135185f56ce901e30d8f1fbf8d1c77 | registry.k8s.io/infra/meta/asns/alibabagroup.yaml | registry.k8s.io/infra/meta/asns/alibabagroup.yaml | name: alibabagroup
asns:
- 45102
- 37963
| name: alibabagroup
asns:
- 45102
- 37963
- 134963
| Add new asn for alibaba | Add new asn for alibaba
| YAML | apache-2.0 | kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io,kubernetes/k8s.io | yaml | ## Code Before:
name: alibabagroup
asns:
- 45102
- 37963
## Instruction:
Add new asn for alibaba
## Code After:
name: alibabagroup
asns:
- 45102
- 37963
- 134963
|
8e151574600209bfafc405e68ac4bc8e91327101 | tests/IssueTest.php | tests/IssueTest.php | <?php
/**
* @author Todd Burry <todd@vanillaforums.com>
* @copyright 2009-2016 Vanilla Forums Inc.
* @license LGPLv2
*/
/**
* Contains tests for github issues.
*/
class IssueTest extends pQueryTestCase {
/**
* Test attributes with no quotes.
*
* @link https://github.com/tburry/pquery/issues/4... | <?php
/**
* @author Todd Burry <todd@vanillaforums.com>
* @copyright 2009-2016 Vanilla Forums Inc.
* @license LGPLv2
*/
/**
* Contains tests for github issues.
*/
class IssueTest extends pQueryTestCase {
/**
* Test attributes with no quotes.
*
* @link https://github.com/tburry/pquery/issues/4... | Add a Countable unit test for pQuery | Add a Countable unit test for pQuery
Just in case I don’t know PHP. | PHP | lgpl-2.1 | tburry/pquery,tburry/pquery | php | ## Code Before:
<?php
/**
* @author Todd Burry <todd@vanillaforums.com>
* @copyright 2009-2016 Vanilla Forums Inc.
* @license LGPLv2
*/
/**
* Contains tests for github issues.
*/
class IssueTest extends pQueryTestCase {
/**
* Test attributes with no quotes.
*
* @link https://github.com/tburry... |
4cfc244e74d208fdc9f92e903164031132084082 | app/assets/javascripts/replies.js | app/assets/javascripts/replies.js | // // Place all the behaviors and hooks related to the matching controller here.
// // All this logic will automatically be available in application.js.
var ready = function() {
$(".reply-button").hide();
$(".reply-content").focus(function() {
$(this).siblings(".reply-button").fadeIn("fast");
var container... | // // Place all the behaviors and hooks related to the matching controller here.
// // All this logic will automatically be available in application.js.
var ready = function() {
$(".reply-button").hide();
$(".reply-content").focus(function() {
$(this).siblings(".reply-button").fadeIn("fast");
var container... | Add refresh for each reply | Add refresh for each reply
| JavaScript | mit | calblueprint/ashby-village,calblueprint/ashby-village,calblueprint/ashby-village | javascript | ## Code Before:
// // Place all the behaviors and hooks related to the matching controller here.
// // All this logic will automatically be available in application.js.
var ready = function() {
$(".reply-button").hide();
$(".reply-content").focus(function() {
$(this).siblings(".reply-button").fadeIn("fast");
... |
880c6d34446192f4e56d60edd02fd2f16ac83786 | NavigationReactNativeWeb/sample/zoom/createStateNavigator.js | NavigationReactNativeWeb/sample/zoom/createStateNavigator.js | import React from 'react';
import {Platform} from 'react-native';
import {StateNavigator} from 'navigation';
import {NavigationStack} from 'navigation-react-native';
import Grid from './Grid';
import Detail from './Detail';
const colors = [
'maroon', 'red', 'crimson', 'orange', 'brown', 'sienna', 'olive',
'purple'... | import React from 'react';
import {Platform} from 'react-native';
import {StateNavigator} from 'navigation';
import {NavigationStack} from 'navigation-react-native';
import Grid from './Grid';
import Detail from './Detail';
const colors = [
'maroon', 'red', 'crimson', 'orange', 'brown', 'sienna', 'olive',
'purple'... | Create history manager in state navigator constructor | Create history manager in state navigator constructor
Easier to document than the configure call. More consistent with the mobile docs, too
| JavaScript | apache-2.0 | grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation,grahammendick/navigation | javascript | ## Code Before:
import React from 'react';
import {Platform} from 'react-native';
import {StateNavigator} from 'navigation';
import {NavigationStack} from 'navigation-react-native';
import Grid from './Grid';
import Detail from './Detail';
const colors = [
'maroon', 'red', 'crimson', 'orange', 'brown', 'sienna', 'ol... |
ba559c99ca74b1c3aab6e1aa9d11349093201827 | bower.json | bower.json | {
"name": "meatspace-chat",
"version": "1.0.0",
"dependencies": {
"jquery": "2.0.0",
"jquery-waypoints": "2.0.3",
"fingerprint": "0.5.0",
"js-md5": "1.0.1",
"animated-gif": "sole/Animated_GIF#38c7e30965578591de0f9dbbc87829f9259fd289",
"gumhelper": "sole/gumhelper",
"requirejs": "2.1.5"... | {
"name": "meatspace-chat",
"version": "1.0.0",
"dependencies": {
"jquery": "2.0.0",
"jquery-waypoints": "2.0.3",
"fingerprint": "0.5.0",
"js-md5": "1.0.1",
"animated-gif": "sole/Animated_GIF#38c7e30965578591de0f9dbbc87829f9259fd289",
"gumhelper": "sole/gumhelper",
"requirejs": "2.1.5"... | Update SHA for favico.js, fixes exception | Update SHA for favico.js, fixes exception
| JSON | bsd-3-clause | sole/meatspace-chat | json | ## Code Before:
{
"name": "meatspace-chat",
"version": "1.0.0",
"dependencies": {
"jquery": "2.0.0",
"jquery-waypoints": "2.0.3",
"fingerprint": "0.5.0",
"js-md5": "1.0.1",
"animated-gif": "sole/Animated_GIF#38c7e30965578591de0f9dbbc87829f9259fd289",
"gumhelper": "sole/gumhelper",
"req... |
7ae79b26cb0575efad5e71de34ee08e571d6ccb6 | README.md | README.md | Rename a specific type of files to sequential numbers.
| Rename a specific type of files to sequential numbers.
# download
`git clone https://github.com/AlShahawi/seqrename.git`
## install globally
This step is optional if you want this script to be globally available.
After clone the this repo run `cd seqrename` and then
`cp seqrename.sh /usr/bin/seqrename`
| Add download & install instructions | Add download & install instructions
| Markdown | mit | AlShahawi/seqrename | markdown | ## Code Before:
Rename a specific type of files to sequential numbers.
## Instruction:
Add download & install instructions
## Code After:
Rename a specific type of files to sequential numbers.
# download
`git clone https://github.com/AlShahawi/seqrename.git`
## install globally
This step is optional if you want thi... |
c8e63cca9f923f76041f667717d3cc2a803e105f | docs/installation.rst | docs/installation.rst | Installation
============
First, set up your virtual environment and pip install Socrates.
.. code-block:: console
virtualenv env --no-site-packages
source env/bin/activate
pip install -e git://github.com/honza/socrates.git#egg=socrates
The next step is to install your templates. At the moment, you can ... | Installation
============
First, set up your virtual environment and pip install Socrates.
.. code-block:: console
virtualenv env --no-site-packages
source env/bin/activate
pip install socrates
Or, get the latest code from Github:
.. code-block:: console
pip install -e git://github.com/honza/socra... | Update docs. Add notes about install from pypi. | Update docs. Add notes about install from pypi.
| reStructuredText | bsd-3-clause | thurloat/socrates,thurloat/socrates | restructuredtext | ## Code Before:
Installation
============
First, set up your virtual environment and pip install Socrates.
.. code-block:: console
virtualenv env --no-site-packages
source env/bin/activate
pip install -e git://github.com/honza/socrates.git#egg=socrates
The next step is to install your templates. At the ... |
2847f8f218549352888ca084dc68cb2c5f5f1b7a | app/serializers/progress_update_serializer.rb | app/serializers/progress_update_serializer.rb | class ProgressUpdateSerializer < ActiveModel::Serializer
attributes :id, :content, :words, :hours
belongs_to :user, serializer: ProgressUpdateUserSerializer
belongs_to :project, serializer: ProgressUpdateProjectSerializer
has_many :comments
end | class ProgressUpdateSerializer < ActiveModel::Serializer
include ActionView::Helpers::DateHelper
attributes :id, :content, :words, :hours, :prev_link, :next_link, :created_at_in_words
# belongs_to :user, serializer: ProgressUpdateUserSerializer
# belongs_to :project, serializer: ProgressUpdateProjectSerialize... | Remove unused associations from serializer and add custom methods | Remove unused associations from serializer and add custom methods
| Ruby | mit | Cecily2/writing-project-tracker,Cecily2/writing-project-tracker,Cecily2/writing-project-tracker | ruby | ## Code Before:
class ProgressUpdateSerializer < ActiveModel::Serializer
attributes :id, :content, :words, :hours
belongs_to :user, serializer: ProgressUpdateUserSerializer
belongs_to :project, serializer: ProgressUpdateProjectSerializer
has_many :comments
end
## Instruction:
Remove unused associations from ser... |
c5c547e1faeeb300fb7a7d4976f561bb01496cad | libgo/runtime/rtems-task-variable-add.c | libgo/runtime/rtems-task-variable-add.c | /* rtems-task-variable-add.c -- adding a task specific variable in RTEMS OS.
Copyright 2010 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <rtems/error.h>
#include <rtems/system.h>
#include <rtems/rtems/tasks... | /* rtems-task-variable-add.c -- adding a task specific variable in RTEMS OS.
Copyright 2010 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <assert.h>
#include <rtems/error.h>
#include <rtems/system.h>
#inclu... | Add assert on rtems_task_variable_add error. | Add assert on rtems_task_variable_add error.
assert is used so that if rtems_task_variable_add fails, the error
is fatal.
R=iant
CC=gofrontend-dev, joel.sherrill
https://golang.org/cl/1684053
| C | bsd-3-clause | qskycolor/gofrontend,golang/gofrontend,golang/gofrontend,anlhord/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,qskycolor/gofrontend,anlhord/gofrontend,qskycolor/gofrontend,golang/gofrontend,anlhord/gofrontend,golan... | c | ## Code Before:
/* rtems-task-variable-add.c -- adding a task specific variable in RTEMS OS.
Copyright 2010 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
#include <rtems/error.h>
#include <rtems/system.h>
#include <r... |
117a58271aace1a2f4a80dae631f3e6a73585d46 | src-cljs/dasha/core.cljs | src-cljs/dasha/core.cljs | (ns dasha.core)
(defn log
[data]
(.log js/console (str data)))
(log "test")
| (ns dasha.core
(:require-macros
[cljs.core.async.macros :as asyncm :refer (go go-loop)])
(:require
;; <other stuff>
[cljs.core.async :as async :refer (<! >! put! chan)]
[taoensso.sente :as sente :refer (cb-success?)]))
(defn log
[data]
(.log js/console (str data)))
(defn route-receive
[[event d... | Test web socket connection works | Test web socket connection works
| Clojure | epl-1.0 | clj-dasha/dasha | clojure | ## Code Before:
(ns dasha.core)
(defn log
[data]
(.log js/console (str data)))
(log "test")
## Instruction:
Test web socket connection works
## Code After:
(ns dasha.core
(:require-macros
[cljs.core.async.macros :as asyncm :refer (go go-loop)])
(:require
;; <other stuff>
[cljs.core.async :as async ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.