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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5c2fd18cfadc8fc42ebec6853df2161f8ec623a2 | lib/blazer/adapters/mongodb_adapter.rb | lib/blazer/adapters/mongodb_adapter.rb | module Blazer
module Adapters
class MongodbAdapter < BaseAdapter
def run_statement(statement, comment)
columns = []
rows = []
error = nil
begin
documents = db.command({:$eval => "#{statement.strip}.toArray()"}).documents.first["retval"]
columns = document... | module Blazer
module Adapters
class MongodbAdapter < BaseAdapter
def run_statement(statement, comment)
columns = []
rows = []
error = nil
begin
documents = db.command({:$eval => "#{statement.strip}.toArray()", nolock: true}).documents.first["retval"]
colu... | Use nolock: true for Mongo | Use nolock: true for Mongo [skip ci]
| Ruby | mit | ankane/blazer,ankane/blazer,ankane/blazer | ruby | ## Code Before:
module Blazer
module Adapters
class MongodbAdapter < BaseAdapter
def run_statement(statement, comment)
columns = []
rows = []
error = nil
begin
documents = db.command({:$eval => "#{statement.strip}.toArray()"}).documents.first["retval"]
co... |
78661466bf46f26d088e49e7e873f2a250b3fb41 | lib/rspec/parameterized/table_syntax.rb | lib/rspec/parameterized/table_syntax.rb | require 'binding_of_caller'
require 'rspec/parameterized/table'
module RSpec
module Parameterized
module TableSyntaxImplement
def |(other)
where_binding = binding.of_caller(1) # get where block binding
caller_instance = eval("self", where_binding) # get caller instance (ExampleGrou... | require 'binding_of_caller'
require 'rspec/parameterized/table'
module RSpec
module Parameterized
module TableSyntaxImplement
def |(other)
where_binding = binding.of_caller(1) # get where block binding
caller_instance = eval("self", where_binding) # get caller instance (ExampleGrou... | Fix deprecation warning on ruby 2.4.0 | Fix deprecation warning on ruby 2.4.0
lib/rspec/parameterized/table_syntax.rb:30: warning: constant ::Fixnum is deprecated
lib/rspec/parameterized/table_syntax.rb:34: warning: constant ::Bignum is deprecated
| Ruby | mit | sue445/rspec-parameterized,tomykaira/rspec-parameterized | ruby | ## Code Before:
require 'binding_of_caller'
require 'rspec/parameterized/table'
module RSpec
module Parameterized
module TableSyntaxImplement
def |(other)
where_binding = binding.of_caller(1) # get where block binding
caller_instance = eval("self", where_binding) # get caller insta... |
89cb346ab57c33805368a2fb5249f1e4694a60df | core/src/main/scala/stainless/ast/Graphs.scala | core/src/main/scala/stainless/ast/Graphs.scala | /* Copyright 2009-2018 EPFL, Lausanne */
package stainless
package ast
import inox.utils.Graphs._
trait CallGraph extends inox.ast.CallGraph {
protected val trees: Trees
import trees._
protected class FunctionCollector extends super.FunctionCollector with TreeTraverser {
override def traverse(pat: Pattern... | /* Copyright 2009-2018 EPFL, Lausanne */
package stainless
package ast
import inox.utils.Graphs._
trait CallGraph extends inox.ast.CallGraph {
protected val trees: Trees
import trees._
protected class FunctionCollector extends super.FunctionCollector with TreeTraverser {
override def traverse(pat: Pattern... | Fix error in dependency graph computation | Fix error in dependency graph computation
| Scala | apache-2.0 | epfl-lara/stainless,epfl-lara/stainless,epfl-lara/stainless,epfl-lara/stainless | scala | ## Code Before:
/* Copyright 2009-2018 EPFL, Lausanne */
package stainless
package ast
import inox.utils.Graphs._
trait CallGraph extends inox.ast.CallGraph {
protected val trees: Trees
import trees._
protected class FunctionCollector extends super.FunctionCollector with TreeTraverser {
override def trave... |
3fafc9998cf4f9259d19bb425362cca6350b12bd | webpack/babel-loader-rule.js | webpack/babel-loader-rule.js | const path = require('path');
// These modules are already transpiled and should be excluded
const folioScopeBlacklist = [
'react-githubish-mentions',
].map(segment => path.join('@folio', segment));
// We want to transpile files inside node_modules/@folio or outside
// any node_modules directory. And definitely not... | const path = require('path');
// These modules are already transpiled and should be excluded
const folioScopeBlacklist = [
'react-githubish-mentions',
'react-big-calendar',
].map(segment => path.join('@folio', segment));
// We want to transpile files inside node_modules/@folio or outside
// any node_modules direc... | Exclude folio/react-big-calendar from being transpiled during a platform build | Exclude folio/react-big-calendar from being transpiled during a platform build
| JavaScript | apache-2.0 | folio-org/stripes-core,folio-org/stripes-core,folio-org/stripes-core | javascript | ## Code Before:
const path = require('path');
// These modules are already transpiled and should be excluded
const folioScopeBlacklist = [
'react-githubish-mentions',
].map(segment => path.join('@folio', segment));
// We want to transpile files inside node_modules/@folio or outside
// any node_modules directory. An... |
cdc77f145659b9dae096f004f68438a45c4fe093 | src/edu/usc/glidein/service/state/SiteEventCode.java | src/edu/usc/glidein/service/state/SiteEventCode.java | package edu.usc.glidein.service.state;
public enum SiteEventCode implements EventCode
{
SUBMIT, /* User requested submit */
INSTALL_SUCCESS, /* Condor installed successfully */
INSTALL_FAILED, /* Condor installation failed */
REMOVE, /* User requested remove */
UNINSTALL_SUCCESS, /* Condor uninstalled succ... | package edu.usc.glidein.service.state;
public enum SiteEventCode implements EventCode
{
SUBMIT, /* User requested submit */
INSTALL_SUCCESS, /* Condor installed successfully */
INSTALL_FAILED, /* Condor installation failed */
REMOVE, /* User requested remove */
UNINSTALL_SUCCESS, /* Condor uninstalled succ... | Change GLIDEIN_FINISHED to GLIDEIN_DELETED to make it clear when this event occurs | Change GLIDEIN_FINISHED to GLIDEIN_DELETED to make it clear when this event occurs
git-svn-id: bdb5f82b9b83a1400e05d69d262344b821646179@1387 e217846f-e12e-0410-a4e5-89ccaea66ff7
| Java | apache-2.0 | juve/corral,juve/corral,juve/corral | java | ## Code Before:
package edu.usc.glidein.service.state;
public enum SiteEventCode implements EventCode
{
SUBMIT, /* User requested submit */
INSTALL_SUCCESS, /* Condor installed successfully */
INSTALL_FAILED, /* Condor installation failed */
REMOVE, /* User requested remove */
UNINSTALL_SUCCESS, /* Condor ... |
af7385b27ea04747f7e781de09a5ccd66bef3f05 | to.etc.domui/src/main/java/to/etc/domui/server/FilterConfigParameters.java | to.etc.domui/src/main/java/to/etc/domui/server/FilterConfigParameters.java | package to.etc.domui.server;
import org.eclipse.jdt.annotation.NonNull;
import javax.servlet.FilterConfig;
import java.io.File;
import java.net.URL;
public class FilterConfigParameters implements ConfigParameters {
@NonNull
private FilterConfig m_fc;
@NonNull
private File m_webFileRoot;
public FilterConfigPar... | package to.etc.domui.server;
import org.eclipse.jdt.annotation.NonNull;
import javax.servlet.FilterConfig;
import java.io.File;
import java.net.URL;
public class FilterConfigParameters implements ConfigParameters {
@NonNull
private FilterConfig m_fc;
@NonNull
private File m_webFileRoot;
public FilterConfigPar... | Make sure the relative path passed to getResource() starts with a /, sigh. Very bad design. | Make sure the relative path passed to getResource() starts with a /, sigh. Very bad design.
| Java | lgpl-2.1 | fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui,fjalvingh/domui | java | ## Code Before:
package to.etc.domui.server;
import org.eclipse.jdt.annotation.NonNull;
import javax.servlet.FilterConfig;
import java.io.File;
import java.net.URL;
public class FilterConfigParameters implements ConfigParameters {
@NonNull
private FilterConfig m_fc;
@NonNull
private File m_webFileRoot;
public... |
5d49629cd1c6e83f3e7559faa5820d01d13e458b | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | SingularityService/src/main/java/com/hubspot/singularity/data/UserManager.java | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettings;
import com.h... | package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettings;
import com.h... | Reorder UserSettings ZK methods more sensibly | Reorder UserSettings ZK methods more sensibly
| Java | apache-2.0 | andrhamm/Singularity,HubSpot/Singularity,andrhamm/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,HubSpot/Singularity,andrhamm/Singularity,andrhamm/Singularity,andrhamm/Singularity,HubSpot/Singularity,hs-jenkins-bot/Singularity,hs-jenkins-bot/Singularity,hs-jenk... | java | ## Code Before:
package com.hubspot.singularity.data;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.utils.ZKPaths;
import com.codahale.metrics.MetricRegistry;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.hubspot.singularity.SingularityUserSettin... |
6ca03dc3d818bd53756551d7079379d15f393f88 | src/integration-test/groovy/geb/CustomUrlGebReportingSpec.groovy | src/integration-test/groovy/geb/CustomUrlGebReportingSpec.groovy | package geb
import de.iteratec.osm.util.OsmTestLogin
import geb.pages.de.iteratec.osm.LoginPage
import geb.spock.GebReportingSpec
import grails.plugin.springsecurity.SpringSecurityService
import grails.util.Holders
/**
* Sets the baseUrl for the test browser configured in the OpenSpeedMonitor-config.yml
*/
class Cu... | package geb
import de.iteratec.osm.util.OsmTestLogin
import geb.pages.de.iteratec.osm.LoginPage
import geb.spock.GebReportingSpec
import grails.buildtestdata.TestDataBuilder
import grails.plugin.springsecurity.SpringSecurityService
import grails.util.Holders
/**
* Sets the baseUrl for the test browser configured in ... | Add TestDataBuilder trait to geb tests | [IT-1681] Add TestDataBuilder trait to geb tests
http://longwa.github.io/build-test-data/index#integration-tests
| Groovy | apache-2.0 | iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor,iteratec/OpenSpeedMonitor,IteraSpeed/OpenSpeedMonitor | groovy | ## Code Before:
package geb
import de.iteratec.osm.util.OsmTestLogin
import geb.pages.de.iteratec.osm.LoginPage
import geb.spock.GebReportingSpec
import grails.plugin.springsecurity.SpringSecurityService
import grails.util.Holders
/**
* Sets the baseUrl for the test browser configured in the OpenSpeedMonitor-config.... |
168c9b47763e30982a47c4c1fed683f31788d098 | src/ipfs-access-controller.js | src/ipfs-access-controller.js | 'use strict'
const AccessController = require('./access-controller')
const { DAGNode } = require('ipld-dag-pb')
class IPFSAccessController extends AccessController {
constructor (ipfs) {
super()
this._ipfs = ipfs
}
async load (address) {
// Transform '/ipfs/QmPFtHi3cmfZerxtH9ySLdzpg1yFhocYDZgEZywd... | 'use strict'
const AccessController = require('./access-controller')
const { DAGNode } = require('ipld-dag-pb')
class IPFSAccessController extends AccessController {
constructor (ipfs) {
super()
this._ipfs = ipfs
}
async load (address) {
// Transform '/ipfs/QmPFtHi3cmfZerxtH9ySLdzpg1yFhocYDZgEZywd... | Throw error returned from DAGNode.create in access controller | Throw error returned from DAGNode.create in access controller
| JavaScript | mit | haadcode/orbit-db,orbitdb/orbit-db,orbitdb/orbit-db,haadcode/orbit-db | javascript | ## Code Before:
'use strict'
const AccessController = require('./access-controller')
const { DAGNode } = require('ipld-dag-pb')
class IPFSAccessController extends AccessController {
constructor (ipfs) {
super()
this._ipfs = ipfs
}
async load (address) {
// Transform '/ipfs/QmPFtHi3cmfZerxtH9ySLdzp... |
1f5aba85ef9cc049d0de0f6ff9ed8df296cc02a2 | app/login/login.config.js | app/login/login.config.js | /**
* Created by Caleb on 9/25/2014.
*/
(function () {
angular.module('fc.login').config([
'$stateProvider',
'$urlRouterProvider',
routeConfig
]);
function routeConfig($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider.state('l... | /**
* Created by kelvin on 3/12/2014.
*/
(function () {
angular.module('fc.login').config([
'$stateProvider',
'$urlRouterProvider',
routeConfig
]).config([
"authSvcProvider",
svcConfig
]);
function routeConfig($stateProvider, $urlRouterProvider) {
$urlR... | Add a login svc and url | Add a login svc and url
| JavaScript | mit | kelvinlogic/home,kelvinlogic/home | javascript | ## Code Before:
/**
* Created by Caleb on 9/25/2014.
*/
(function () {
angular.module('fc.login').config([
'$stateProvider',
'$urlRouterProvider',
routeConfig
]);
function routeConfig($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateP... |
175c8b8a535696cdcd4da523c7da60be40eb9584 | .travis.yml | .travis.yml | language: go
sudo: false
matrix:
include:
- go: "1.9.x"
- go: "1.10.x"
- go: "1.11.x"
env: {GO111MODULE: "off"}
- go: "1.11.x"
env: {GO111MODULE: "on"}
- go: "1.12.x"
env: {GO111MODULE: "off"}
- go: "1.12.x"
env: {GO111MODULE: "on"}
- go: "1.13.x"
env: {GO111... | language: go
sudo: false
matrix:
include:
- go: "1.11.x"
env: {GO111MODULE: "off"}
- go: "1.11.x"
env: {GO111MODULE: "on"}
- go: "1.12.x"
env: {GO111MODULE: "off"}
- go: "1.12.x"
env: {GO111MODULE: "on"}
- go: "1.13.x"
env: {GO111MODULE: "off"}
- go: "1.13.x"
... | Drop support for Go 1.10 and Go 1.9 | Drop support for Go 1.10 and Go 1.9
The golang.org/x/tools package seems to have dropped support for
these old Gos, so we will be supporting only Go 1.11 and higher.
Signed-off-by: Eric Chlebek <96f164ad4d9b2b0dacf8ebee2bb1eeb3aa69adf1@sensu.io>
| YAML | mit | kisielk/errcheck | yaml | ## Code Before:
language: go
sudo: false
matrix:
include:
- go: "1.9.x"
- go: "1.10.x"
- go: "1.11.x"
env: {GO111MODULE: "off"}
- go: "1.11.x"
env: {GO111MODULE: "on"}
- go: "1.12.x"
env: {GO111MODULE: "off"}
- go: "1.12.x"
env: {GO111MODULE: "on"}
- go: "1.13.x"
... |
fd6694614614976e1be32ce7eb9fd7453490b747 | src/Port.php | src/Port.php | <?php
/**
* This file is part of the League.url library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/url/
* @version 4.0.0
* @package League.url
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
na... | <?php
/**
* This file is part of the League.url library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/url/
* @version 4.0.0
* @package League.url
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
na... | Use ctype_digit to validate port | Use ctype_digit to validate port
| PHP | mit | KorvinSzanto/uri,localheinz/url,thephpleague/uri-parser,thephpleague/uri-manipulations,concrete5/url,mleko/url,localheinz/uri,thephpleague/uri-schemes,mkly/url | php | ## Code Before:
<?php
/**
* This file is part of the League.url library
*
* @license http://opensource.org/licenses/MIT
* @link https://github.com/thephpleague/url/
* @version 4.0.0
* @package League.url
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this so... |
b577ee7425dac7327c6b2fa6d15b3469bc44bf44 | .travis.yml | .travis.yml | language: c
sudo: false
os:
- linux
- osx
notifications:
email: false
env:
global:
- SETUP_XVFB=True
- CONDA_CHANNELS="glueviz"
- CONDA_DEPENDENCIES="glue-core pytest mock requests pydicom gdcm nomkl"
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
- PYTHON_VERSION=2.7 CONDA_CHAN... | language: c
sudo: false
os:
- linux
- osx
notifications:
email: false
env:
global:
- SETUP_XVFB=True
- CONDA_CHANNELS="glueviz"
- CONDA_DEPENDENCIES="glue-core pytest mock requests pydicom gdcm nomkl"
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
- PYTHON_VERSION=2.7 CONDA_CHAN... | Uninstall gdcm on MacOS X with Python 3.x | Uninstall gdcm on MacOS X with Python 3.x | YAML | bsd-3-clause | glue-viz/glue-medical | yaml | ## Code Before:
language: c
sudo: false
os:
- linux
- osx
notifications:
email: false
env:
global:
- SETUP_XVFB=True
- CONDA_CHANNELS="glueviz"
- CONDA_DEPENDENCIES="glue-core pytest mock requests pydicom gdcm nomkl"
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
- PYTHON_VERSIO... |
91e5b46ad966ca77fc8077e62fe6460c9c908188 | decoder_example_test.go | decoder_example_test.go | // The original error message returned by stdlib changed with go1.8.
// We only test the latest release.
//
//+build go1.8 forcego1.8
package jsonptrerror_test
import (
"fmt"
"strings"
"github.com/dolmen-go/jsonptrerror"
)
func ExampleDecoder() {
decoder := jsonptrerror.NewDecoder(strings.NewReader(
`{"key": ... | // The original error message returned by stdlib changed with go1.8.
// We only test the latest release.
//
//+build go1.8 forcego1.8
package jsonptrerror_test
import (
"fmt"
"strings"
"github.com/dolmen-go/jsonptrerror"
)
func ExampleDecoder() {
decoder := jsonptrerror.NewDecoder(strings.NewReader(
`{"key": ... | Fix Example to not show the original error (which is go version dependent) | Fix Example to not show the original error (which is go version dependent)
| Go | apache-2.0 | dolmen-go/jsonptrerror | go | ## Code Before:
// The original error message returned by stdlib changed with go1.8.
// We only test the latest release.
//
//+build go1.8 forcego1.8
package jsonptrerror_test
import (
"fmt"
"strings"
"github.com/dolmen-go/jsonptrerror"
)
func ExampleDecoder() {
decoder := jsonptrerror.NewDecoder(strings.NewRea... |
bb0bb221c6c296a80bc4b2a0c7de77ccefcfbf4c | windows/new-dev-system.cmd | windows/new-dev-system.cmd | @echo off
:: install chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco feature enable -n allowGlobalConfirmation
:: general apps
choco ... | @echo off
:: install chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco feature enable -n allowGlobalConfirmation
:: general apps
choco ... | Add gimp, paint.net and inconsolata | Add gimp, paint.net and inconsolata | Batchfile | unlicense | garethflowers/configs | batchfile | ## Code Before:
@echo off
:: install chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco feature enable -n allowGlobalConfirmation
:: gen... |
6dff5c9d3db1aa355600eb8dfa1854357aed5005 | cmake/DownloadGoogleBenchmark.cmake | cmake/DownloadGoogleBenchmark.cmake | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(googlebenchmark-download NONE)
INCLUDE(ExternalProject)
ExternalProject_Add(googlebenchmark
URL https://github.com/google/benchmark/archive/v1.2.0.zip
URL_HASH SHA256=cc463b28cb3701a35c0855fbcefb75b29068443f1952b64dd5f4f669272e95ea
SOURCE_DIR "${CONFU_DEPENDENCIES_SOUR... | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(googlebenchmark-download NONE)
INCLUDE(ExternalProject)
ExternalProject_Add(googlebenchmark
URL https://github.com/google/benchmark/archive/v1.5.0.zip
URL_HASH SHA256=2d22dd3758afee43842bb504af1a8385cccb3ee1f164824e4837c1c1b04d92a0
SOURCE_DIR "${CONFU_DEPENDENCIES_SOUR... | Update Google Benchmark in CMake builds to 1.5.0 | Update Google Benchmark in CMake builds to 1.5.0
| CMake | mit | Maratyszcza/FXdiv,Maratyszcza/FXdiv | cmake | ## Code Before:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(googlebenchmark-download NONE)
INCLUDE(ExternalProject)
ExternalProject_Add(googlebenchmark
URL https://github.com/google/benchmark/archive/v1.2.0.zip
URL_HASH SHA256=cc463b28cb3701a35c0855fbcefb75b29068443f1952b64dd5f4f669272e95ea
SOURCE_DIR "${CONFU_D... |
db7d57b14d5e32c0b51150c806d57c3129fbb2e1 | app/views/legislation/processes/index.html.erb | app/views/legislation/processes/index.html.erb | <% provide :title do %>
<%= t("layouts.header.collaborative_legislation") %> - <%= t("legislation.processes.index.filters.#{@current_filter}") %>
<% end %>
<div class="legislation-hero no-margin-top brand-heading">
<div class="row">
<div class="small-12 medium-12 column padding">
<h4>
<%= t('.hig... | <% provide :title do %>
<%= t("layouts.header.collaborative_legislation") %> - <%= t("legislation.processes.index.filters.#{@current_filter}") %>
<% end %>
<div class="row">
<div class="legislation-categories small-12 medium-3 column">
<%= render 'shared/filter_subnav', i18n_namespace: "legislation.processes.i... | Remove processes hero in the index | Remove processes hero in the index
| HTML+ERB | agpl-3.0 | deivid-rodriguez/participacion,votedevin/consul,AyuntamientoMadrid/consul,AyuntamientoMadrid/consul,AjuntamentdeCastello/consul,artofhuman/consul,AyuntamientoMadrid/participacion,lalibertad/consul,artofhuman/consul,AyuntamientoPuertoReal/decidePuertoReal,deivid-rodriguez/participacion,artofhuman/consul,consul/consul,la... | html+erb | ## Code Before:
<% provide :title do %>
<%= t("layouts.header.collaborative_legislation") %> - <%= t("legislation.processes.index.filters.#{@current_filter}") %>
<% end %>
<div class="legislation-hero no-margin-top brand-heading">
<div class="row">
<div class="small-12 medium-12 column padding">
<h4>
... |
9dcec45168ee35a11af66ee76a3752cceb764da3 | docs/concepts/viewports.md | docs/concepts/viewports.md |
> Each [Enabled Element](enabled-elements.md) has a **Viewport** which describes how the [Image](image.md) should be rendered.
The viewport parameters for an enabled element can be obtained via the [getViewport()](../api.md#getviewport) function and set using the [setViewport()](../api.md#setviewport) function. The a... |
> Each [Enabled Element](enabled-elements.md) has a **Viewport** which describes how the [Image](image.md) should be rendered.
The viewport parameters for an enabled element can be obtained via the [getViewport()](../api.md#getviewport) function and set using the [setViewport()](../api.md#setviewport) function. The a... | Add embedded Viewport demo CodePen to docs | Add embedded Viewport demo CodePen to docs
| Markdown | mit | cornerstonejs/cornerstone,chafey/cornerstone,cornerstonejs/cornerstone,chafey/cornerstone,cornerstonejs/cornerstone,cornerstonejs/cornerstone | markdown | ## Code Before:
> Each [Enabled Element](enabled-elements.md) has a **Viewport** which describes how the [Image](image.md) should be rendered.
The viewport parameters for an enabled element can be obtained via the [getViewport()](../api.md#getviewport) function and set using the [setViewport()](../api.md#setviewport)... |
8da0ca3fc2fb8fc6b45102741e3beefb92f8c7cd | index.php | index.php | <?php
include_once 'models/dependencies.php';
include_once 'header.php';
if ( isset( $_GET[ 'resource' ] ) ) {
$resource = $_GET[ 'resource' ];
}
else {
$resource = '';
}
$resource = basename( $resource );
$filename = 'controllers/' . $resource . '.php';
if ( !file_e... | <?php
include_once 'models/dependencies.php';
include_once 'header.php';
if ( isset( $_GET[ 'resource' ] ) ) {
$resource = $_GET[ 'resource' ];
}
else {
$resource = '';
}
$resource = basename( $resource );
$filename = 'controllers/' . $resource . '.php';
if ( !file_e... | Fix HTTP redirects to be absolute | Fix HTTP redirects to be absolute
| PHP | mit | VitSalis/endofcodes,VitSalis/endofcodes,dionyziz/endofcodes,dionyziz/endofcodes,VitSalis/endofcodes,VitSalis/endofcodes,dionyziz/endofcodes | php | ## Code Before:
<?php
include_once 'models/dependencies.php';
include_once 'header.php';
if ( isset( $_GET[ 'resource' ] ) ) {
$resource = $_GET[ 'resource' ];
}
else {
$resource = '';
}
$resource = basename( $resource );
$filename = 'controllers/' . $resource . '.php';
... |
61ff5f2ec20c9a6994bbe9fa7f7cf6d1ee35f76d | README.md | README.md |
Run `bin/setup`
This will:
- Install the gem dependencies
- Install the pod dependencies
- Create `Secrets.h`. **You must include the necessary contents.**
## Testing ##
Run `bin/test`
This will run the tests from the command line, and pipe the result through
[XCPretty][].
[XCPretty]: https://github.com/supermar... |
Run `bin/setup`
This will:
- Install the gem dependencies
- Install the pod dependencies
- Create `Secrets.h`. `TRForecastAPIKey` is the only one required for the
application to run. You can get a key from https://developer.forecast.io. You
should include all keys for production builds.
## Testing ##
Run `bin/... | Document Forecast API key setup | Document Forecast API key setup
| Markdown | mit | lufeifan531/Tropos,faimin/Tropos,ashfurrow/Tropos,lufeifan531/Tropos,faimin/Tropos,kevinnguy/Tropos,lufeifan531/Tropos,kevinnguy/Tropos,Ezimetzhan/Tropos,iOSTestApps/Tropos,hanpanpan200/Tropos,red3/Tropos,Ezimetzhan/Tropos,coty/Tropos,coty/Tropos,andreamazz/Tropos,andreamazz/Tropos,tkafka/Tropos,iOSTestApps/Tropos,Ezim... | markdown | ## Code Before:
Run `bin/setup`
This will:
- Install the gem dependencies
- Install the pod dependencies
- Create `Secrets.h`. **You must include the necessary contents.**
## Testing ##
Run `bin/test`
This will run the tests from the command line, and pipe the result through
[XCPretty][].
[XCPretty]: https://git... |
c9ff724f69c314036a9854e4bb84a3cde25d7e02 | src/CMakeLists.txt | src/CMakeLists.txt | set(MAIN_SOURCES
main
board
game
pawn
)
set(SOURCES)
foreach (source ${MAIN_SOURCES})
LIST(APPEND SOURCES ${source}.cpp)
add_library(${source}_cxx_obj OBJECT ${source}.cpp)
endforeach()
set(ADDITIONAL_LIBRARIES)
include_directories(${${PROJECT}_SOURCE_DIR}/src)
include_directories(${${PROJECT... | set(MAIN_SOURCES
main
)
set(CORE_SOURCES
board
game
pawn
)
set(UI_SOURCES
console
)
set(SOURCES)
foreach (source ${MAIN_SOURCES})
LIST(APPEND SOURCES ${source}.cpp)
add_library(${source}_cxx_obj OBJECT ${source}.cpp)
endforeach()
foreach (source ${CORE_SOURCES})
LIST(APPEND SOURCES ${so... | Fix cmake config for source files. | Fix cmake config for source files.
| Text | mit | sfod/quoridor | text | ## Code Before:
set(MAIN_SOURCES
main
board
game
pawn
)
set(SOURCES)
foreach (source ${MAIN_SOURCES})
LIST(APPEND SOURCES ${source}.cpp)
add_library(${source}_cxx_obj OBJECT ${source}.cpp)
endforeach()
set(ADDITIONAL_LIBRARIES)
include_directories(${${PROJECT}_SOURCE_DIR}/src)
include_directo... |
edc3a902a64c364168df6c10ebb825bd9e65a974 | basin/urls.py | basin/urls.py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from basin.routers import api_router
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'basin.views.index'),
url(r'^display/', 'basin.views.display'),
url(r'^api/', include(api_router.urls)),
url(r'^admin/',... | from django.conf.urls import patterns, include, url
from django.contrib import admin
from basin.routers import api_router
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'basin.views.display'),
url(r'^backbone/', 'basin.views.index'),
url(r'^api/', include(api_router.urls)),
url(r'^admin/'... | Move static mockup to root | Move static mockup to root
| Python | mit | Pringley/basinweb,Pringley/basinweb | python | ## Code Before:
from django.conf.urls import patterns, include, url
from django.contrib import admin
from basin.routers import api_router
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'basin.views.index'),
url(r'^display/', 'basin.views.display'),
url(r'^api/', include(api_router.urls)),
... |
2e64e971858a89db46eaf1550ccee0b67b9ea4dc | app.json | app.json | {
"expo": {
"name": "Desert Walk",
"description": "Solitaire card game.",
"slug": "desert-walk",
"privacy": "public",
"sdkVersion": "36.0.0",
"version": "1.0.6",
"orientation": "landscape",
"primaryColor": "#464",
"icon": "./assets/app-icon.png",
"splash": {
"image": "./a... | {
"expo": {
"name": "Desert Walk",
"description": "Solitaire card game.",
"slug": "desert-walk",
"privacy": "public",
"sdkVersion": "36.0.0",
"version": "1.0.6",
"orientation": "landscape",
"primaryColor": "#464",
"icon": "./assets/app-icon.png",
"splash": {
"image": "./a... | Add buildNumber and increment versionCode | Add buildNumber and increment versionCode
| JSON | mit | janaagaard75/desert-walk,janaagaard75/desert-walk | json | ## Code Before:
{
"expo": {
"name": "Desert Walk",
"description": "Solitaire card game.",
"slug": "desert-walk",
"privacy": "public",
"sdkVersion": "36.0.0",
"version": "1.0.6",
"orientation": "landscape",
"primaryColor": "#464",
"icon": "./assets/app-icon.png",
"splash": {
... |
67e6320011c1256497662d91d04109a730d9954f | Casks/font-league-gothic.rb | Casks/font-league-gothic.rb | class FontLeagueGothic < Cask
url 'http://files.theleagueofmoveabletype.com/downloads/theleagueof-league-gothic-64c3ede.zip'
homepage 'https://www.theleagueofmoveabletype.com/league-gothic'
version '1.001'
sha1 '06b3c3d133ee74fe1a0a4ce5760aa50e78783d58'
font 'theleagueof-league-gothic-64c3ede/LeagueGothic-Con... | class FontLeagueGothic < Cask
url 'http://files.theleagueofmoveabletype.com/downloads/theleagueof-league-gothic-64c3ede.zip'
homepage 'https://www.theleagueofmoveabletype.com/league-gothic'
version '1.001'
sha256 '2ba5f583d44e4880597812be5d0a81b616c01b4af3d2a1e39ae50c0df9d27c59'
font 'theleagueof-league-gothi... | Update League Gothic to sha256 checksums | Update League Gothic to sha256 checksums
| Ruby | bsd-2-clause | scw/homebrew-fonts,kkung/homebrew-fonts,bkudria/homebrew-fonts,victorpopkov/homebrew-fonts,rstacruz/homebrew-fonts,kostasdizas/homebrew-fonts,herblover/homebrew-fonts,guerrero/homebrew-fonts,alerque/homebrew-fonts,psibre/homebrew-fonts,zorosteven/homebrew-fonts,alerque/homebrew-fonts,elmariofredo/homebrew-fonts,andrews... | ruby | ## Code Before:
class FontLeagueGothic < Cask
url 'http://files.theleagueofmoveabletype.com/downloads/theleagueof-league-gothic-64c3ede.zip'
homepage 'https://www.theleagueofmoveabletype.com/league-gothic'
version '1.001'
sha1 '06b3c3d133ee74fe1a0a4ce5760aa50e78783d58'
font 'theleagueof-league-gothic-64c3ede/... |
c78aebb5b07c7e1c6f50b2c460658b8202306fbf | remoting/jingle_glue/ssl_adapter.cc | remoting/jingle_glue/ssl_adapter.cc | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/jingle_glue/ssl_adapter.h"
#if defined(OS_WIN)
#include "third_party/libjingle/source/talk/base/ssladapter.h"
#else
#include "remo... | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/jingle_glue/ssl_adapter.h"
#if defined(OS_WIN)
#include "third_party/libjingle/source/talk/base/ssladapter.h"
#else
#include "remo... | Use NSS for SSL encryption of XMPP connection on Windows. | Use NSS for SSL encryption of XMPP connection on Windows.
Review URL: http://codereview.chromium.org/10169012
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@133247 0039d316-1c4b-4281-b951-d872f2087c98
| C++ | bsd-3-clause | pozdnyakov/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,M4sse/chromium.src,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,dednal/chromium.src,hgl888/chromium-crosswalk-efl,cro... | c++ | ## Code Before:
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/jingle_glue/ssl_adapter.h"
#if defined(OS_WIN)
#include "third_party/libjingle/source/talk/base/ssladapter.h"
#els... |
c8a22c6fd1c0e971a8e7ba05b699ad6e37bc6a79 | .appveyor.yml | .appveyor.yml | environment:
matrix:
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python34"
platform:
- x64
- x86
matrix:
fast_finish: true
exclude:
- P... | environment:
matrix:
- PYTHON: "C:\\Python37-x64"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python34"
platform:
... | Add Python 3.7 to CI | Add Python 3.7 to CI | YAML | bsd-2-clause | JGoutin/compilertools | yaml | ## Code Before:
environment:
matrix:
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python34"
platform:
- x64
- x86
matrix:
fast_finish: true
excl... |
8052577164ba144263c7f45e4c823ba396f19d65 | badgekit_webhooks/views.py | badgekit_webhooks/views.py | from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.http import require_POST
import json
def hello(request):
return HttpResponse("Hello, world. Badges!!!")
@require_POST
def badge_issued_hook(request):
try:
data = json.loads(request.body)
except ValueError:
... | from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
import json
def hello(request):
return HttpResponse("Hello, world. Badges!!!")
@require_POST
@csrf_exempt
def badge_issued_hook(request):
try... | Make webhook exempt from CSRF protection | Make webhook exempt from CSRF protection
Soon, we will add JWT verification, to replace it.
| Python | mit | tgs/django-badgekit-webhooks | python | ## Code Before:
from django.http import HttpResponse, HttpResponseBadRequest
from django.views.decorators.http import require_POST
import json
def hello(request):
return HttpResponse("Hello, world. Badges!!!")
@require_POST
def badge_issued_hook(request):
try:
data = json.loads(request.body)
exce... |
4143f3d960b820bc2bfee675ede1ab4284f286f6 | lib/vagrant-mirror.rb | lib/vagrant-mirror.rb | require 'vagrant'
require 'vagrant-mirror/errors'
require 'vagrant-mirror/version'
require 'vagrant-mirror/config'
# Require the sync tasks
require 'vagrant-mirror/sync/base'
require 'vagrant-mirror/sync/changes'
require 'vagrant-mirror/sync/all'
# Require all the listeners for now, for specs
require 'vagrant-mirror... | require 'vagrant'
require 'vagrant-mirror/errors'
require 'vagrant-mirror/version'
require 'vagrant-mirror/config'
# Require the sync tasks
require 'vagrant-mirror/sync/base'
require 'vagrant-mirror/sync/changes'
require 'vagrant-mirror/sync/all'
# Require all the listeners for now, for specs
require 'vagrant-mirror... | Fix syntax errors, abort on any thread exception | Fix syntax errors, abort on any thread exception
| Ruby | mit | ingenerator/vagrant-mirror | ruby | ## Code Before:
require 'vagrant'
require 'vagrant-mirror/errors'
require 'vagrant-mirror/version'
require 'vagrant-mirror/config'
# Require the sync tasks
require 'vagrant-mirror/sync/base'
require 'vagrant-mirror/sync/changes'
require 'vagrant-mirror/sync/all'
# Require all the listeners for now, for specs
require... |
0813ec68a2d4dc53ab2a9f3f53b447edf78efa7a | lib/ahn/start.sh | lib/ahn/start.sh | printf "Exporting env vars...\n"
source /usr/src/app/lib/ahn/.env
export $(cut -d= -f1 /usr/src/app/lib/ahn/.env)
printf "Done.\n"
printf "Installing gems...\n"
cd /usr/src/app && bundle install
printf "Done.\n"
printf "Starting ahn...\n"
ahn start /usr/src/app
printf "Done.\n"
| printf "Exporting env vars...\n"
source /usr/src/app/lib/ahn/.env
export $(cut -d= -f1 /usr/src/app/lib/ahn/.env)
printf "Done.\n"
printf "Starting ahn...\n"
ahn start /usr/src/app
printf "Done.\n"
| Remove redundant `bundle install` (now in Dockerfile's ONBUILD for Adhearsion) | Remove redundant `bundle install` (now in Dockerfile's ONBUILD for Adhearsion)
| Shell | apache-2.0 | Coaxial/moshimoshi,Coaxial/moshimoshi,Coaxial/moshimoshi | shell | ## Code Before:
printf "Exporting env vars...\n"
source /usr/src/app/lib/ahn/.env
export $(cut -d= -f1 /usr/src/app/lib/ahn/.env)
printf "Done.\n"
printf "Installing gems...\n"
cd /usr/src/app && bundle install
printf "Done.\n"
printf "Starting ahn...\n"
ahn start /usr/src/app
printf "Done.\n"
## Instruction:
Remove r... |
0a295d3c8247bbe8d9aa62e120e633009173692d | Resources/doc/PairStorage/pairstorage.rst | Resources/doc/PairStorage/pairstorage.rst | ===========
PairStorage
===========
| PairStorage
===========
PairStorage is internal service used to store run-time key-value parameters in ElasticSearch document for internal usage.
Initial configuration
---------------------
Before using PairStorage, it's Document, along with all other ConnectionsBundle documents, must be registered in ElasticSearch... | Add PairStorage short description, initial configuration | Add PairStorage short description, initial configuration | reStructuredText | mit | asev/ConnectionsBundle,ongr-io/ConnectionsBundle,GrandLTU/ConnectionsBundle | restructuredtext | ## Code Before:
===========
PairStorage
===========
## Instruction:
Add PairStorage short description, initial configuration
## Code After:
PairStorage
===========
PairStorage is internal service used to store run-time key-value parameters in ElasticSearch document for internal usage.
Initial configuration
--------... |
3fcb9a52176ce415cfca3269852594c200c13a35 | packages/i3/i3blocks-hs-contrib.yaml | packages/i3/i3blocks-hs-contrib.yaml | homepage: https://github.com/panavtec/i3blocks-hs-contrib#readme
changelog-type: markdown
hash: 120cbc0e578275da9aa1543bdeaf17afe3a798e8bf6a731b83ec65fc34ecd86c
test-bench-deps: {}
maintainer: |-
Christian Panadero <panavtec@gmail.com>,
Carlos Morera <carlosdelachica@gmail.com>
synopsis: Base i3blocks written in ha... | homepage: https://github.com/panavtec/i3blocks-hs-contrib#readme
changelog-type: markdown
hash: a23b2a9d36d8406b467ea5cb59ff5fe169acfee0142c730671a03cb1f04f0c8c
test-bench-deps: {}
maintainer: |-
Christian Panadero <panavtec@gmail.com>,
Carlos Morera <carlosdelachica@gmail.com>
synopsis: Base i3blocks written in ha... | Update from Hackage at 2020-04-10T16:16:07Z | Update from Hackage at 2020-04-10T16:16:07Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: https://github.com/panavtec/i3blocks-hs-contrib#readme
changelog-type: markdown
hash: 120cbc0e578275da9aa1543bdeaf17afe3a798e8bf6a731b83ec65fc34ecd86c
test-bench-deps: {}
maintainer: |-
Christian Panadero <panavtec@gmail.com>,
Carlos Morera <carlosdelachica@gmail.com>
synopsis: Base i3bloc... |
9560054591eb8927edb42304b881701196f260cd | spec/spec_helper.rb | spec/spec_helper.rb | ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/its'
require 'coveralls'
Coveralls.wear!
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
RSp... | require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start 'rails' do
add_group "Presenters", "app/presenters"
add_group "Policies", "app/policies"
end
ENV["RAILS_ENV"] ||= 'test'
req... | Configure tests to format coverage results locally | Configure tests to format coverage results locally
This should keep coveralls working, but also emit the output in
coverage/index.html so that you can see the effect of your change when
writing it.
Also use the rails profile so results are neatly grouped.
| Ruby | mit | despo/planner,matyikriszta/planner,matyikriszta/planner,margOnline/planner,laszpio/planner,laszpio/planner,despo/planner,laszpio/planner,boddhisattva/planner,codebar/planner,margOnline/planner,despo/planner,laszpio/planner,matyikriszta/planner,boddhisattva/planner,dondonz/planner,spike01/planner,spike01/planner,codebar... | ruby | ## Code Before:
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/its'
require 'coveralls'
Coveralls.wear!
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord:... |
dfa67685ba284fc652661591d78c5cda846680df | test-src/test_readline_flash.as | test-src/test_readline_flash.as | package {
import stdio.flash.Sprite
import stdio.process
import stdio.Interactive
[SWF(width=0, height=0)]
public class test_readline_flash extends Sprite implements Interactive {
public function main(): void {
process.prompt = "What’s your name? "
process.gets(function (name: String): void {... | package {
import stdio.colorize
import stdio.flash.Sprite
import stdio.process
import stdio.Interactive
[SWF(width=0, height=0)]
public class test_readline_flash extends Sprite implements Interactive {
public function main(): void {
process.prompt = "What’s your name? "
process.gets(functio... | Use `colorize` in readline test. | Use `colorize` in readline test.
| ActionScript | mit | dbrock/stdio.as,dbrock/stdio.as,dbrock/stdio.as | actionscript | ## Code Before:
package {
import stdio.flash.Sprite
import stdio.process
import stdio.Interactive
[SWF(width=0, height=0)]
public class test_readline_flash extends Sprite implements Interactive {
public function main(): void {
process.prompt = "What’s your name? "
process.gets(function (name:... |
f96617f9178bb828cc8841b8ec4c18fdbf2cceb3 | .travis.yml | .travis.yml | sudo: false
filter_secrets: false
dist: xenial
addons:
apt:
packages:
- inkscape
language: python
python:
- 2.7
before_install:
- pip install --upgrade setuptools
- pip install nose coverage
- pip install -r requirements.txt
- pip install -e .[tests,sphinx,images,svgsupport,aafiguresupport,mathsupport... | sudo: false
filter_secrets: false
dist: xenial
addons:
apt:
packages:
- inkscape
- texlive-latex-base
- dvipng
language: python
python:
- 2.7
before_install:
- pip install --upgrade setuptools
- pip install nose coverage
- pip install -r requirements.txt
- pip install -e .[tests,sphinx,images,... | Add Latex and dvipng to Travis | Add Latex and dvipng to Travis
These are needed for Sphinx imgmath extension.
| YAML | mit | rst2pdf/rst2pdf,rst2pdf/rst2pdf | yaml | ## Code Before:
sudo: false
filter_secrets: false
dist: xenial
addons:
apt:
packages:
- inkscape
language: python
python:
- 2.7
before_install:
- pip install --upgrade setuptools
- pip install nose coverage
- pip install -r requirements.txt
- pip install -e .[tests,sphinx,images,svgsupport,aafiguresup... |
2ccca7dca1b4c6bbdcc5bf3faf408c6f14d388bf | gulpfile.js | gulpfile.js | var gulp = require('gulp')
, gutil = require('gulp-util')
, help = require('gulp-help')
, path = require('path')
, packageJson = require(path.resolve(__dirname, 'package.json'))
, noop = function(){}
help(gulp, { aliases: ['h'] })
gulp.task('version', 'Prints the version nu... | var gulp = require('gulp')
, path = require('path')
, fs = require('fs')
, helpers = require(path.resolve(__dirname, 'lib', 'helpers'))
require('gulp-help')(gulp, { aliases: ['h'] })
fs
.readdirSync(path.resolve(__dirname, 'lib', 'tasks'))
.filter(function(file) { return file.inde... | Load the tasks from lib/tasks | Load the tasks from lib/tasks | JavaScript | mit | my-archives/cli,martinLE/cli,cogpie/cli,itslenny/cli,sequelize/cli,ataube/cli,martinLE/cli,Americas/cli,timrourke/cli,brad-decker/cli,sequelize/cli,Americas/cli,skv-headless/cli,jteplitz602/cli,xpepermint/cli,brad-decker/cli,brad-decker/cli,martinLE/cli,Americas/cli,sequelize/cli,fundon/cli,cusspvz/sequelize-cli | javascript | ## Code Before:
var gulp = require('gulp')
, gutil = require('gulp-util')
, help = require('gulp-help')
, path = require('path')
, packageJson = require(path.resolve(__dirname, 'package.json'))
, noop = function(){}
help(gulp, { aliases: ['h'] })
gulp.task('version', 'Print... |
2cee2a3c89528c8c98f7ad33122910bee7a9b735 | src/dashboard/src/templates/installer/storagesetup.html | src/dashboard/src/templates/installer/storagesetup.html | {% extends "layout.html" %}
{% block title %}Welcome{% endblock %}
{% block h1 %}Welcome{% endblock %}
{% block page_id %}welcome{% endblock %}
{% block extra_css %}
<style type="text/css">
.submit {
margin-bottom: 1em;
}
</style>
{% endblock %}
{% block content %}
<div class="row">
<div class="s... | {% extends "layout.html" %}
{% block title %}Welcome{% endblock %}
{% block h1 %}Welcome{% endblock %}
{% block page_id %}welcome{% endblock %}
{% block extra_css %}
<style type="text/css">
.submit {
margin-bottom: 1em;
}
</style>
{% endblock %}
{% block content %}
<div class="row">
<div class="s... | Update storage service setup text | Installer: Update storage service setup text
| HTML | agpl-3.0 | artefactual/archivematica,artefactual/archivematica,artefactual/archivematica,sevein/archivematica,sevein/archivematica,artefactual/archivematica,sevein/archivematica,sevein/archivematica | html | ## Code Before:
{% extends "layout.html" %}
{% block title %}Welcome{% endblock %}
{% block h1 %}Welcome{% endblock %}
{% block page_id %}welcome{% endblock %}
{% block extra_css %}
<style type="text/css">
.submit {
margin-bottom: 1em;
}
</style>
{% endblock %}
{% block content %}
<div class="row">... |
6834c0ae00128e76eac8650f037f914ceba90836 | roles/desktop/tasks/grub.yml | roles/desktop/tasks/grub.yml | ---
- name: grub - show menu
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT_STYLE\s*='
line: 'GRUB_TIMEOUT_STYLE=menu'
become: true
- name: grub - set timeout
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT\s*='
line: 'GRUB_TIMEOUT=3'
become: true
- name: gru... | ---
- name: grub - show menu
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT_STYLE\s*='
line: 'GRUB_TIMEOUT_STYLE=menu'
become: true
- name: grub - set timeout
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT\s*='
line: 'GRUB_TIMEOUT=3'
become: true
# Suport 2-... | Fix scrolling behaviour on touchpads | Fix scrolling behaviour on touchpads
| YAML | mit | andornaut/ansible-workstation | yaml | ## Code Before:
---
- name: grub - show menu
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT_STYLE\s*='
line: 'GRUB_TIMEOUT_STYLE=menu'
become: true
- name: grub - set timeout
lineinfile:
path: /etc/default/grub
regexp: '^#?GRUB_TIMEOUT\s*='
line: 'GRUB_TIMEOUT=3'
become: t... |
dba4a31d4e7441b3224667183394bdcc53a93dab | Casks/fontprep.rb | Casks/fontprep.rb | class Fontprep < Cask
version :latest
sha256 :no_check
url 'http://fontprep.com/download'
homepage 'http://fontprep.com'
license :unknown
app 'FontPrep.app'
end
| class Fontprep < Cask
version '3.1.1'
sha256 '769d64b78d1a8db42dcb02beff6f929670448f77259388c9d01692374be2ec46'
url "https://github.com/briangonzalez/fontprep/releases/download/v3.1.1/FontPrep_#{version}.zip"
homepage 'http://fontprep.com'
license :gpl
app 'FontPrep.app'
end
| Update Fontprep URL, version, license | Update Fontprep URL, version, license
URL has changed to Github, requiring to specify version.
| Ruby | bsd-2-clause | fwiesel/homebrew-cask,johndbritton/homebrew-cask,nysthee/homebrew-cask,mariusbutuc/homebrew-cask,mishari/homebrew-cask,nathansgreen/homebrew-cask,supriyantomaftuh/homebrew-cask,sebcode/homebrew-cask,CameronGarrett/homebrew-cask,feniix/homebrew-cask,mrmachine/homebrew-cask,vitorgalvao/homebrew-cask,thomanq/homebrew-cask... | ruby | ## Code Before:
class Fontprep < Cask
version :latest
sha256 :no_check
url 'http://fontprep.com/download'
homepage 'http://fontprep.com'
license :unknown
app 'FontPrep.app'
end
## Instruction:
Update Fontprep URL, version, license
URL has changed to Github, requiring to specify version.
## Code After:
... |
c2f6e37ee7051e824bbb6639d18dfca31a037c53 | javascript/javascript-dom-web-snippets.md | javascript/javascript-dom-web-snippets.md |
Using jQuery:
```js
jQuery(document).ready(function ($) {
// DOM from initial markup is ready.
});
```
Using native DOM API:
```js
document.addEventListener('DOMContentLoaded', function () {
// DOM from initial markup is ready.
});
```
## Element Selection
var elmts = document.querySelectorAll("<selector>");
|
Using jQuery:
```js
jQuery(document).ready(function ($) {
// DOM from initial markup is ready.
});
```
Using native DOM API:
```js
document.addEventListener('DOMContentLoaded', function () {
// DOM from initial markup is ready.
});
```
## Element Selection
var elmts = document.querySelectorAll("<selector>");
... | Add a Media Query Section | Add a Media Query Section | Markdown | mit | dhurlburtusa/shortcuts,dhurlburtusa/shortcuts | markdown | ## Code Before:
Using jQuery:
```js
jQuery(document).ready(function ($) {
// DOM from initial markup is ready.
});
```
Using native DOM API:
```js
document.addEventListener('DOMContentLoaded', function () {
// DOM from initial markup is ready.
});
```
## Element Selection
var elmts = document.querySelectorAll... |
ad1dc9ddeff73b6182b9419f6deaaba8e2e12fda | modules/Base/ActionBar/theme/default.tpl | modules/Base/ActionBar/theme/default.tpl | <div id="Base_ActionBar" align="center">
<table class="ActionBar">
<tbody>
<tr>
<td valign="top">
<div id="panel">
{foreach item=i from=$icons}
{$i.open}
<div class="btn btn-default" helpID="{$i.helpID}">
<i clas... | <div class="pull-left">
{foreach item=i from=$icons}
{$i.open}
<div class="btn btn-default" helpID="{$i.helpID}">
<i class="fa fa-{$i.icon} fa-3x"></i>
<div>{$i.label}</div>
</div>
{$i.close}
{/foreach}
</div>
<div class="pull-right">
{foreach item=i from... | Fix action bar button distance | Fix action bar button distance
| Smarty | mit | georgehristov/EPESI,georgehristov/EPESI | smarty | ## Code Before:
<div id="Base_ActionBar" align="center">
<table class="ActionBar">
<tbody>
<tr>
<td valign="top">
<div id="panel">
{foreach item=i from=$icons}
{$i.open}
<div class="btn btn-default" helpID="{$i.helpID}">
... |
479bdcae788dcfa92ec3cf699b2878190ba390fe | .travis.yml | .travis.yml | if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
# Main test jobs: The lowest and highest current Python versions.
python:
- 3.6
- 3.9
# List additional test configurations individually, instead of using
# matrix expansion, to ... | if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
# Main test jobs: The lowest and highest current Python versions.
python:
- 3.6
- 3.9
# List additional test configurations individually, instead of using
# matrix expansion, to ... | Switch to code formatter Black: Travis integration | Switch to code formatter Black: Travis integration
This adds a new job for running `black` to our Travis CI continuous
integration configuration. See the previous commits for more details on
Black.
If `black` finds a problem with the formatting, its job will be marked
as "Failed". A diff of the required changes can b... | YAML | mit | pydot/pydot,erocarrera/pydot | yaml | ## Code Before:
if: tag IS present OR type = pull_request OR (branch = master AND type = push) # we only CI the master, tags and PRs
language: python
# Main test jobs: The lowest and highest current Python versions.
python:
- 3.6
- 3.9
# List additional test configurations individually, instead of using
# matri... |
ac3651c7baa94fd938cda2f95ae8378296fa72f2 | README.markdown | README.markdown | [See Readme in master branch](http://github.com/sokolovstas/SublimeWebInspector) | [See Readme in master branch](http://github.com/sokolovstas/SublimeWebInspector/tree/master)
| Update readme to point to master | Update readme to point to master
| Markdown | mit | sokolovstas/SublimeWebInspector,sokolovstas/SublimeWebInspector,sokolovstas/SublimeWebInspector | markdown | ## Code Before:
[See Readme in master branch](http://github.com/sokolovstas/SublimeWebInspector)
## Instruction:
Update readme to point to master
## Code After:
[See Readme in master branch](http://github.com/sokolovstas/SublimeWebInspector/tree/master)
|
c83d6727a467229e173edd2bb2efee6ccb391086 | examples/6lbr/test/run.sh | examples/6lbr/test/run.sh |
CONTIKIDIR="/home/test/git/contiki"
CALLDIR=$(dirname $(readlink -f $0))
while getopts ":c" opt; do
case $opt in
c)
pushd ${CONTIKIDIR}/tools/cooja
ant clean
ant jar
cd apps/serial2pty
ant clean
ant jar
cd ../radiologger-headless
ant clean
ant jar
popd
;;
esac
done
sudo rm -rf ${C... |
CONTIKIDIR="/home/test/git/contiki"
CALLDIR=$(dirname $(readlink -f $0))
while getopts ":c" opt; do
case $opt in
c)
pushd ${CONTIKIDIR}/tools/cooja
ant clean
ant jar
cd apps/serial2pty
ant clean
ant jar
cd ../radiologger-headless
ant clean
ant jar
popd
;;
esac
done
sudo rm -rf ${C... | Duplicate stdout and stderr with tee outside of python | Duplicate stdout and stderr with tee outside of python
| Shell | bsd-3-clause | bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr,bluerover/6lbr | shell | ## Code Before:
CONTIKIDIR="/home/test/git/contiki"
CALLDIR=$(dirname $(readlink -f $0))
while getopts ":c" opt; do
case $opt in
c)
pushd ${CONTIKIDIR}/tools/cooja
ant clean
ant jar
cd apps/serial2pty
ant clean
ant jar
cd ../radiologger-headless
ant clean
ant jar
popd
;;
esac
done
... |
f51dfee5ea051d80effb9387bdbdcb4c7593eeb2 | articles/_posts/2013-07-03-css-viewport-units.md | articles/_posts/2013-07-03-css-viewport-units.md | ---
title: 'CSS Viewport Units: vw, vh, vmin and vmax'
authors:
- chris-mills
layout: article
--- | ---
title: 'CSS Viewport Units: `vw`, `vh`, `vmin` and `vmax`'
authors:
- chris-mills
intro: 'CSS viewport units allow us to size lengths on web pages relative to the viewport size, which has some interesting applications for responsive design. In this article we’ll explore the fundamentals of this topic.'
layout: arti... | Add intro for article “CSS Viewport Units: `vw`, `vh`, `vmin` and `vmax`” | Add intro for article “CSS Viewport Units: `vw`, `vh`, `vmin` and `vmax`”
Ref. #19.
| Markdown | apache-2.0 | andreasbovens/devopera,initaldk/devopera,simevidas/devopera,kenarai/devopera,andreasbovens/devopera,initaldk/devopera,Mtmotahar/devopera,shwetank/devopera,cvan/devopera,erikmaarten/devopera,SelenIT/devopera,michaelstewart/devopera,Jasenpan1987/devopera,shwetank/devopera,michaelstewart/devopera,paulirish/devopera,simevi... | markdown | ## Code Before:
---
title: 'CSS Viewport Units: vw, vh, vmin and vmax'
authors:
- chris-mills
layout: article
---
## Instruction:
Add intro for article “CSS Viewport Units: `vw`, `vh`, `vmin` and `vmax`”
Ref. #19.
## Code After:
---
title: 'CSS Viewport Units: `vw`, `vh`, `vmin` and `vmax`'
authors:
- chris-mills
int... |
b40b03dcc00003de806cdc03e8c365e33095fb6f | links/bash/vim.bash | links/bash/vim.bash |
v_funcs() {
$PAGER ~/.bash/vim.bash
}
v() {
vim "$@"
}
vv() {
vim +'edit $MYVIMRC' "$@"
}
vq() {
if (($# > 0)); then
vim -q <("$@" 2>&1)
else
printf '%s\n' 'Usage: vq cmd' '' 'Use {cmd} output as quickfix list'
fi
}
vf() {
if (($# > 0)); then
vim $("$@")
else
printf '%s\n' 'Usage: v... |
v_funcs() {
$PAGER ~/.bash/vim.bash
}
v() {
vim "$@"
}
vv() {
vim +'edit $MYVIMRC' "$@"
}
vq() {
if (($# > 0)); then
vim -q <("$@" 2>&1)
else
printf '%s\n' 'Usage: vq cmd' '' 'Use {cmd} output as quickfix list'
fi
}
vf() {
if (($# > 0)); then
vim $("$@")
else
printf '%s\n' 'Usage: v... | Fix vs to allow session as first parameter | Fix vs to allow session as first parameter
| Shell | mit | benknoble/Dotfiles,benknoble/Dotfiles,benknoble/Dotfiles,benknoble/Dotfiles,benknoble/Dotfiles | shell | ## Code Before:
v_funcs() {
$PAGER ~/.bash/vim.bash
}
v() {
vim "$@"
}
vv() {
vim +'edit $MYVIMRC' "$@"
}
vq() {
if (($# > 0)); then
vim -q <("$@" 2>&1)
else
printf '%s\n' 'Usage: vq cmd' '' 'Use {cmd} output as quickfix list'
fi
}
vf() {
if (($# > 0)); then
vim $("$@")
else
printf ... |
7c3b1bece37e80dcefa767ad6f3933d725570e6a | pom.xml | pom.xml | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.ripe.maven-utils</groupId>
<artifact... | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.ripe.maven-utils</groupId>
<artifact... | Update name and scm url. | Update name and scm url.
| XML | mit | jgonian/commons-ip-math,kkuegler/commons-ip-math | xml | ## Code Before:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>net.ripe.maven-utils</groupId>
... |
5d4bcaaef6b2d571ff6929beaffcbe2f320d74ad | migrate.py | migrate.py | from api import db, migration
import os
migration.create_schema_version()
migrations = migration.get_filenames("migrations")
versions = [f.split('__')[0] for f in migrations]
applied = migration.get_schema_version()
print migrations
print applied
if migration.verify_applied_migrations(versions, applie... | from api import db, migration
from os import getcwd
from os.path import join
migration.create_schema_version()
migrations = migration.get_filenames(join(getcwd(), 'migrations'))
versions = [f.split('__')[0] for f in migrations]
applied = migration.get_schema_version()
print migrations
print applied
... | Refactor relative path to absolute for more reliability | Refactor relative path to absolute for more reliability
| Python | mit | diogolundberg/db-migration | python | ## Code Before:
from api import db, migration
import os
migration.create_schema_version()
migrations = migration.get_filenames("migrations")
versions = [f.split('__')[0] for f in migrations]
applied = migration.get_schema_version()
print migrations
print applied
if migration.verify_applied_migrations(versions, app... |
d079f75dd2472de1e248239349ae0e277788b319 | .travis.yml | .travis.yml | language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
include:
- { php: 5.4, env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' }
before_script:
# Install librabbitmq-c
- sh tests/bin/install_rabbitmq-c.sh v0.6.0
# Install the AMQP dependency (using the alpha release for PHP 7 support)
- echo "... | language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
include:
- { php: 5.4, env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' }
before_script:
# Install librabbitmq-c
- sh tests/bin/install_rabbitmq-c.sh v0.6.0
# Install the AMQP dependency (using the alpha release for PHP 7 support)
- echo "... | Use update rather than install | Use update rather than install
| YAML | mit | tompedals/radish,tompedals/radish | yaml | ## Code Before:
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
matrix:
include:
- { php: 5.4, env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable' }
before_script:
# Install librabbitmq-c
- sh tests/bin/install_rabbitmq-c.sh v0.6.0
# Install the AMQP dependency (using the alpha release for PHP 7 sup... |
7e7f14c70d6ec66df6763845478fbcccd63c3f95 | provisioning/inventory/group_vars/local.yml | provisioning/inventory/group_vars/local.yml | environment_name: local
front_hostname: cocorico.cc
front_web_public_host: "{{ front_hostname }}.test"
hostname: "{{ front_hostname }}-{{ environment_name }}"
is_development_environment: yes
http_protocol_prefix: http
mongodb_database_name: "{{ project_name }}"
franceconnect_cliend_id: 10e0a74c752107f712b890e6183b03b... | environment_name: local
front_hostname: cocorico.cc
front_web_public_host: "{{ front_hostname }}.test"
hostname: "{{ front_hostname }}-{{ environment_name }}"
is_development_environment: yes
http_protocol_prefix: http
mongodb_database_name: "{{ project_name }}"
franceconnect_cliend_id: 10e0a74c752107f712b890e6183b03b... | Add the 'astuce-etape-debat' to the saved pages. | Add the 'astuce-etape-debat' to the saved pages.
| YAML | mit | promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico | yaml | ## Code Before:
environment_name: local
front_hostname: cocorico.cc
front_web_public_host: "{{ front_hostname }}.test"
hostname: "{{ front_hostname }}-{{ environment_name }}"
is_development_environment: yes
http_protocol_prefix: http
mongodb_database_name: "{{ project_name }}"
franceconnect_cliend_id: 10e0a74c752107f... |
1b7e1e9b7da9f76e1116d18adf1d2f5116208b10 | app/presenters/announcements_presenter.rb | app/presenters/announcements_presenter.rb | class AnnouncementsPresenter
attr_reader :slug
def initialize(slug)
@slug = slug
end
def items
announcements.map do |announcenment|
{
link: {
text: announcenment["title"],
path: announcenment["link"],
},
metadata: {
public_timestamp: Date.par... | class AnnouncementsPresenter
attr_reader :slug
def initialize(slug)
@slug = slug
end
def items
announcements.map do |announcenment|
{
link: {
text: announcenment["title"],
path: announcenment["link"],
},
metadata: {
public_timestamp: Date.par... | Support showing announcements for all locales | Support showing announcements for all locales
Search API only supports documents written in English so we should
remove the locale from the slug when querying for documents.
| Ruby | mit | alphagov/collections,alphagov/collections,alphagov/collections,alphagov/collections | ruby | ## Code Before:
class AnnouncementsPresenter
attr_reader :slug
def initialize(slug)
@slug = slug
end
def items
announcements.map do |announcenment|
{
link: {
text: announcenment["title"],
path: announcenment["link"],
},
metadata: {
public_tim... |
6cc81443207e67581b6a31a1e637dffecdaa9c3a | app/admin/node_type.rb | app/admin/node_type.rb | ActiveAdmin.register NodeType do
filter :category, :as => :select, :collection => proc { Category.all.inject([]){|memo,r| memo << [r.name, r.id]; memo} }
filter :identifier
filter :osm_key
filter :osm_value
filter :alt_osm_key
filter :alt_osm_value
filter :created_at
filter :updated_at
controller d... | ActiveAdmin.register NodeType do
filter :category, :as => :select, :collection => proc { Category.all.inject([]){|memo,r| memo << [r.name, r.id]; memo} }
filter :identifier
filter :osm_key
filter :osm_value
filter :alt_osm_key
filter :alt_osm_value
filter :created_at
filter :updated_at
controller d... | Make node types not sortable for category names. | Make node types not sortable for category names.
| Ruby | agpl-3.0 | sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap,sozialhelden/wheelmap | ruby | ## Code Before:
ActiveAdmin.register NodeType do
filter :category, :as => :select, :collection => proc { Category.all.inject([]){|memo,r| memo << [r.name, r.id]; memo} }
filter :identifier
filter :osm_key
filter :osm_value
filter :alt_osm_key
filter :alt_osm_value
filter :created_at
filter :updated_at
... |
0886801afca31ed7b4602c8231658e21781e2d6d | README.md | README.md | SelectScript Compiler and REPL implemented in Clojure and the SandhillSkipperVM
|
SelectScript Compiler and REPL implemented in Clojure and the SandhillSkipperVM
## Editor Integration
There is syntax highlighting support for several editors available:
| Atom | [github.com/ESS-OVGU/language-selectscript](https://github.com/ESS-OVGU/language-selectscript) |
|-------|------------------------------... | Add supported editors to readme. | Add supported editors to readme.
| Markdown | epl-1.0 | ESS-OVGU/SelectScriptC | markdown | ## Code Before:
SelectScript Compiler and REPL implemented in Clojure and the SandhillSkipperVM
## Instruction:
Add supported editors to readme.
## Code After:
SelectScript Compiler and REPL implemented in Clojure and the SandhillSkipperVM
## Editor Integration
There is syntax highlighting support for several edit... |
9496821bdda5defa93aa3ae2ea476b662fb729b5 | src/commands.h | src/commands.h |
struct LacoState;
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
struct LacoCommand {
const char** matches;
LacoHandler handler;
};
void laco_dispatch(const struct LacoCommand* commands,
struct LacoState* laco, const char* command_keyword,
cons... |
struct LacoState;
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
struct LacoCommand {
const char** matches;
LacoHandler handler;
};
/**
* Goes through each instance from the list of commands and see if there is
* a match with for command_keyword. When there is a match, the define... | Add documentation for the laco_dispatch function | Add documentation for the laco_dispatch function
| C | bsd-2-clause | sourrust/laco | c | ## Code Before:
struct LacoState;
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
struct LacoCommand {
const char** matches;
LacoHandler handler;
};
void laco_dispatch(const struct LacoCommand* commands,
struct LacoState* laco, const char* command_keyword,
... |
9cfa074c7e8c59f8e7d85632f8ba9e535ec403e9 | application/views/recipes/single.php | application/views/recipes/single.php | <h1><?php echo $recipe->name; ?></h1>
<div class="row recipe-quick-facts">
<div class="col-md-4">
<h4>Servings</h4>
<?php echo $recipe->servings; ?>
</div>
<div class="col-md-4">
<h4>Prep Time</h4>
<?php echo display_time($recipe->time_prep); ?>
</div>
<div class="co... | <h1><?php echo $recipe->name; ?></h1>
<div class="row recipe-quick-facts">
<div class="col-md-4">
<h4>Servings</h4>
<?php echo $recipe->servings; ?>
</div>
<div class="col-md-4">
<h4>Prep Time</h4>
<?php echo display_time($recipe->time_prep); ?>
</div>
<div class="co... | Add button appears but not aligned | Add button appears but not aligned
| PHP | mit | jimmythongtran/recipe_tracker,jimmythongtran/recipe_tracker,jimmythongtran/recipe_tracker | php | ## Code Before:
<h1><?php echo $recipe->name; ?></h1>
<div class="row recipe-quick-facts">
<div class="col-md-4">
<h4>Servings</h4>
<?php echo $recipe->servings; ?>
</div>
<div class="col-md-4">
<h4>Prep Time</h4>
<?php echo display_time($recipe->time_prep); ?>
</div>
... |
dc45b5a9be6dbfa805ed1777390e36baab00fbdf | app/views/paragraph_widget/show.html.erb | app/views/paragraph_widget/show.html.erb | <div class="row">
<div class="col-12">
<div class="cover-bg-blue">
<div class="col-3">
<%= scrivito_image_tag widget,:image , class:'image-responsive center-block'%>
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'center-block cover-text-white' %>
<div style="m... | <div class="row">
<div class="col-12">
<div class="cover-bg-blue">
<div class="col-3">
<%= scrivito_image_tag widget,:image , class:'image-responsive center-block'%>
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'center-block cover-text-white' %>
<div style="p... | Add correction to the padding | Add correction to the padding
| HTML+ERB | mit | yasslab/coderdojo.jp,coderdojo-japan/coderdojo.jp,yasslab/coderdojo.jp,yasslab/coderdojo.jp,coderdojo-japan/coderdojo.jp,coderdojo-japan/coderdojo.jp,coderdojo-japan/coderdojo.jp | html+erb | ## Code Before:
<div class="row">
<div class="col-12">
<div class="cover-bg-blue">
<div class="col-3">
<%= scrivito_image_tag widget,:image , class:'image-responsive center-block'%>
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'center-block cover-text-white' %>
... |
dbbd29a1cdfcd3f11a968c0aeb38bd54ef7014e3 | gfusion/tests/test_main.py | gfusion/tests/test_main.py | """Tests for main.py"""
from ..main import _solve_weight_vector
import numpy as np
from nose.tools import assert_raises, assert_equal, assert_true
def test_solve_weight_vector():
# smoke test
n_nodes = 4
n_communities = 2
n_similarities = 3
delta = 0.3
similarities = np.random.random((n_simila... | """Tests for main.py"""
from ..main import _solve_weight_vector
import numpy as np
from numpy.testing import assert_array_almost_equal
from nose.tools import assert_raises, assert_equal, assert_true
def test_solve_weight_vector():
# smoke test
n_nodes = 4
n_communities = 2
n_similarities = 3
delta... | Add a more semantic test | Add a more semantic test
| Python | mit | mvdoc/gfusion | python | ## Code Before:
"""Tests for main.py"""
from ..main import _solve_weight_vector
import numpy as np
from nose.tools import assert_raises, assert_equal, assert_true
def test_solve_weight_vector():
# smoke test
n_nodes = 4
n_communities = 2
n_similarities = 3
delta = 0.3
similarities = np.random.... |
866d2022f7981593db7bf811192da7d2c0a36ff0 | client/js/middleware/api.js | client/js/middleware/api.js | import api from "../libs/api";
import { DONE } from "../constants/wrapper";
const API = store => next => action => {
function request(method, url, params, body, headers){
const state = store.getState();
const promise = api.execRequest(method, url, state.settings.apiUrl, state.jwt, state.settings.... | import api from "../libs/api";
import { DONE } from "../constants/wrapper";
const API = store => next => action => {
function request(method, url, params, body, headers){
const state = store.getState();
const updatedParams = {
oauth_consumer_key: state.settings.oauthConsumerKey, // Add cons... | Add lti key to all requests | Add lti key to all requests
| JavaScript | mit | atomicjolt/adhesion,atomicjolt/lti_starter_app,atomicjolt/lti_starter_app,atomicjolt/lti_starter_app,atomicjolt/adhesion,atomicjolt/adhesion,atomicjolt/lti_starter_app,atomicjolt/adhesion | javascript | ## Code Before:
import api from "../libs/api";
import { DONE } from "../constants/wrapper";
const API = store => next => action => {
function request(method, url, params, body, headers){
const state = store.getState();
const promise = api.execRequest(method, url, state.settings.apiUrl, state.jwt,... |
0f41a31a5c73d121535c983efdcbf788bf8ee680 | hubblestack_nova/netstat-ssh.yaml | hubblestack_nova/netstat-ssh.yaml | netstat:
ssh4:
address: 0.0.0.0:22
ssh6:
address: :::22
| netstat:
ssh:
address:
- '*:22'
| Use globbing in example netstat file | Use globbing in example netstat file
| YAML | apache-2.0 | HubbleStack/Nova,SaltyCharles/Nova,avb76/Nova | yaml | ## Code Before:
netstat:
ssh4:
address: 0.0.0.0:22
ssh6:
address: :::22
## Instruction:
Use globbing in example netstat file
## Code After:
netstat:
ssh:
address:
- '*:22'
|
682cd14b7895bb836c24d511eee4821a67857aed | src/app/hospitals/hospital-detail.html | src/app/hospitals/hospital-detail.html | <div page-wrapper>
<h1 class="page-header">{{hospital.name}}</h1>
<div group-recruitment-graph group="hospital"></div>
<h2>Patients by Cohort</h2>
<div patients-by-group-table group="hospital" group-type="COHORT"></div>
</div>
| <div page-wrapper>
<h1 class="page-header">{{hospital.name}} <small>{{hospital.code}}</small></h1>
<div group-recruitment-graph group="hospital"></div>
<h2>Patients by Cohort</h2>
<div patients-by-group-table group="hospital" group-type="COHORT"></div>
</div>
| Add hospital code to heading | Add hospital code to heading
| HTML | agpl-3.0 | renalreg/radar-client,renalreg/radar-client,renalreg/radar-client | html | ## Code Before:
<div page-wrapper>
<h1 class="page-header">{{hospital.name}}</h1>
<div group-recruitment-graph group="hospital"></div>
<h2>Patients by Cohort</h2>
<div patients-by-group-table group="hospital" group-type="COHORT"></div>
</div>
## Instruction:
Add hospital code to heading
## Code After:
<div... |
3e0feb41e9b34f95bd3d3fbd468ee77e5c778075 | spec/models/vote_spec.rb | spec/models/vote_spec.rb | require 'rails_helper'
RSpec.describe Vote, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
| require 'rails_helper'
RSpec.describe Vote, type: :model do
describe 'Vote#place_vote' do
it 'creates a new Vote if user has not voted' do
Vote.create(vote: true, ip: '127.0.0.1')
expect{Vote.place_vote(true, '127.0.0.2')}.to change{Vote.count}.by(1)
end
it 'does not create a new Vote if user has voted'... | Add tests for Vote model | Add tests for Vote model
| Ruby | mit | its-swats/PictureIt,its-swats/PictureIt,its-swats/PictureIt | ruby | ## Code Before:
require 'rails_helper'
RSpec.describe Vote, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
## Instruction:
Add tests for Vote model
## Code After:
require 'rails_helper'
RSpec.describe Vote, type: :model do
describe 'Vote#place_vote' do
it 'creates a new Vote if user... |
d2e118b5d9f8a167d6fc368d3b7a6fe6dd84f7c3 | Resources/doc/cookbook/custom-properties.md | Resources/doc/cookbook/custom-properties.md |
Since FOSElasticaBundle 3.1.0, we now dispatch an event for each transformation of an
object into an Elastica document which allows you to set custom properties on the Elastica
document for indexing.
Set up an event listener or subscriber for
`FOS\ElasticaBundle\Event\TransformEvent::POST_TRANSFORM` to be able to i... |
Since FOSElasticaBundle 3.1.0, we now dispatch an event for each transformation of an
object into an Elastica document which allows you to set custom properties on the Elastica
document for indexing.
Set up an event listener or subscriber for
`FOS\ElasticaBundle\Event\TransformEvent::POST_TRANSFORM` to be able to i... | Improve UX: added yaml service definition | Improve UX: added yaml service definition | Markdown | mit | fazland/FazlandElasticaBundle,alekitto/FazlandElasticaBundle,alekitto/FazlandElasticaBundle,ramuss/FazlandElasticaBundle,fazland/FazlandElasticaBundle,ramuss/FazlandElasticaBundle | markdown | ## Code Before:
Since FOSElasticaBundle 3.1.0, we now dispatch an event for each transformation of an
object into an Elastica document which allows you to set custom properties on the Elastica
document for indexing.
Set up an event listener or subscriber for
`FOS\ElasticaBundle\Event\TransformEvent::POST_TRANSFORM`... |
881f118cf8cc03dfe662f525856f221670248306 | lib/client/client.js | lib/client/client.js | /* global BoundDocument:false - from dispatch:bound-document */
Configuration.subscription = Meteor.subscribe('__entity_configuration');
/**
* Get the configuration object for an entity, extended with all inherited values.
*
* @param {String} type The type of entity, e.g., 'user'
* @param {String} id The entity I... | /* global BoundDocument:false - from dispatch:bound-document */
Configuration.subscription = Meteor.subscribe('__entity_configuration');
/**
* Get the configuration object for an entity, extended with all inherited values.
*
* @param {String} type The type of entity, e.g., 'user'
* @param {String} id The entity I... | Support no callback in getForEntity | Support no callback in getForEntity
| JavaScript | mit | DispatchMe/meteor-configuration,DispatchMe/meteor-configuration | javascript | ## Code Before:
/* global BoundDocument:false - from dispatch:bound-document */
Configuration.subscription = Meteor.subscribe('__entity_configuration');
/**
* Get the configuration object for an entity, extended with all inherited values.
*
* @param {String} type The type of entity, e.g., 'user'
* @param {String}... |
b65059812a2b366550c6622608410a5f22aebded | protobuf/src/misc.rs | protobuf/src/misc.rs | use std::mem;
use std::slice;
/// Slice from `vec[vec.len()..vec.capacity()]`
pub unsafe fn remaining_capacity_as_slice_mut<A>(vec: &mut Vec<A>) -> &mut [A] {
slice::from_raw_parts_mut(
vec.as_mut_slice().as_mut_ptr().offset(vec.len() as isize),
vec.capacity() - vec.len(),
)
}
pub unsafe fn re... | use std::mem;
/// Slice from `vec[vec.len()..vec.capacity()]`
pub unsafe fn remaining_capacity_as_slice_mut<A>(vec: &mut Vec<A>) -> &mut [A] {
let range = vec.len()..vec.capacity();
vec.get_unchecked_mut(range)
}
pub unsafe fn remove_lifetime_mut<A: ?Sized>(a: &mut A) -> &'static mut A {
mem::transmute(a)... | Simplify internal function a bit | Simplify internal function a bit
| Rust | mit | stepancheg/rust-protobuf,stepancheg/rust-protobuf,stepancheg/rust-protobuf | rust | ## Code Before:
use std::mem;
use std::slice;
/// Slice from `vec[vec.len()..vec.capacity()]`
pub unsafe fn remaining_capacity_as_slice_mut<A>(vec: &mut Vec<A>) -> &mut [A] {
slice::from_raw_parts_mut(
vec.as_mut_slice().as_mut_ptr().offset(vec.len() as isize),
vec.capacity() - vec.len(),
)
}
... |
24f4ca7df4508fe0dd42ba58d96018a76a61c427 | src/Data/Void.purs | src/Data/Void.purs | module Data.Void (Void, absurd) where
import Data.Show (class Show)
-- | An uninhabited data type. In other words, one can never create
-- | a runtime value of type `Void` becaue no such value exists.
-- |
-- | `Void` is useful to eliminate the possibility of a value being created.
-- | For example, a value of type `... | module Data.Void (Void, absurd) where
import Data.Show (class Show)
-- | An uninhabited data type. In other words, one can never create
-- | a runtime value of type `Void` becaue no such value exists.
-- |
-- | `Void` is useful to eliminate the possibility of a value being created.
-- | For example, a value of type `... | Use 'void of C-family languages' rendering | Use 'void of C-family languages' rendering
| PureScript | bsd-3-clause | purescript/purescript-prelude | purescript | ## Code Before:
module Data.Void (Void, absurd) where
import Data.Show (class Show)
-- | An uninhabited data type. In other words, one can never create
-- | a runtime value of type `Void` becaue no such value exists.
-- |
-- | `Void` is useful to eliminate the possibility of a value being created.
-- | For example, a... |
e83cd83d66153b1df13d98f278602ef7bfcc8212 | Handler/Snippet.hs | Handler/Snippet.hs | module Handler.Snippet where
import Import
import Widget
import Model.Snippet.Api (getSnippet, updateSnippet)
import Network.Wai (lazyRequestBody)
getSnippetR :: Text -> Handler Html
getSnippetR snippetId = do
snippet <- liftIO $ getSnippet snippetId Nothing
mUserId <- maybeAuthId
mApiUser <- maybeApiUser... | module Handler.Snippet where
import Import
import Widget
import Model.Snippet.Api (getSnippet, updateSnippet)
import Network.Wai (lazyRequestBody)
getSnippetR :: Text -> Handler Html
getSnippetR snippetId = do
mUserId <- maybeAuthId
mApiUser <- maybeApiUser mUserId
snippet <- liftIO $ getSnippet snippetId... | Send token with get requests | Send token with get requests
| Haskell | mit | prasmussen/glot-www,vinnymac/glot-www,prasmussen/glot-www | haskell | ## Code Before:
module Handler.Snippet where
import Import
import Widget
import Model.Snippet.Api (getSnippet, updateSnippet)
import Network.Wai (lazyRequestBody)
getSnippetR :: Text -> Handler Html
getSnippetR snippetId = do
snippet <- liftIO $ getSnippet snippetId Nothing
mUserId <- maybeAuthId
mApiUser... |
bc48dd6e6b28406874cb3c3fda6c91cc90c77bb7 | examples/users.py | examples/users.py | from pyolite import Pyolite
# initial olite object
admin_repository = 'gitolite-admin/'
olite = Pyolite(admin_repository=admin_repository)
bob = olite.users.create(name='bob', key='my-awesome-key')
alice = olite.users.create(name='alice', key_path='~/.ssh/id_rsa.pub')
| from pyolite import Pyolite
# initial olite object
admin_repository = 'gitolite-admin/'
olite = Pyolite(admin_repository=admin_repository)
# create user object
vlad = olite.users.create(name='vlad', key_path='/home/wok/.ssh/id_rsa.pub')
# get user by name
vlad = olite.users.get(name='vlad')
# get_or_create django s... | Introduce a complete user operations example | Introduce a complete user operations example
| Python | bsd-2-clause | shawkinsl/pyolite,PressLabs/pyolite | python | ## Code Before:
from pyolite import Pyolite
# initial olite object
admin_repository = 'gitolite-admin/'
olite = Pyolite(admin_repository=admin_repository)
bob = olite.users.create(name='bob', key='my-awesome-key')
alice = olite.users.create(name='alice', key_path='~/.ssh/id_rsa.pub')
## Instruction:
Introduce a comp... |
d0867dd8094d253e270ab1a57f3285246a20dd46 | src/test/pegtl/file_cstream.cpp | src/test/pegtl/file_cstream.cpp | // Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <clocale>
#include <cstdio>
#include "test.hpp"
namespace tao
{
namespace TAOCPP_PEGTL_NAMESPACE
{
struct file_content : seq< TAOCPP_PEGTL_STRING( "dummy conten... | // Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <clocale>
#include <cstdio>
#include "test.hpp"
namespace tao
{
namespace TAOCPP_PEGTL_NAMESPACE
{
struct file_content : seq< TAOCPP_PEGTL_STRING( "dummy conten... | Mark lines as NOLINT for clang-tidy | Mark lines as NOLINT for clang-tidy
| C++ | mit | ColinH/PEGTL,ColinH/PEGTL | c++ | ## Code Before:
// Copyright (c) 2016-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include <clocale>
#include <cstdio>
#include "test.hpp"
namespace tao
{
namespace TAOCPP_PEGTL_NAMESPACE
{
struct file_content : seq< TAOCPP_PEGTL_STRIN... |
bd5ac74d2aaed956a1db4db2482076470d8c150f | google-oauth-userid/app.py | google-oauth-userid/app.py | from gevent.wsgi import WSGIServer
from flask import Flask, redirect, url_for
from flask_dance.contrib.google import make_google_blueprint, google
from werkzeug.contrib.fixers import ProxyFix
import os
app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app)
app.secret_key = os.urandom(64)
blueprint = make_google_... | from gevent.wsgi import WSGIServer
from flask import Flask, redirect, url_for
from flask_dance.contrib.google import make_google_blueprint, google
from werkzeug.contrib.fixers import ProxyFix
import os
app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app)
app.secret_key = os.urandom(64)
blueprint = make_google_... | Update scope to use changed profile | Update scope to use changed profile
| Python | mit | openshift-cs/OpenShift-Troubleshooting-Templates,openshift-cs/OpenShift-Troubleshooting-Templates | python | ## Code Before:
from gevent.wsgi import WSGIServer
from flask import Flask, redirect, url_for
from flask_dance.contrib.google import make_google_blueprint, google
from werkzeug.contrib.fixers import ProxyFix
import os
app = Flask(__name__)
app.wsgi_app = ProxyFix(app.wsgi_app)
app.secret_key = os.urandom(64)
blueprin... |
0b1c7e608e16385a17aafd5cc2a03da1f12a585e | server_config/update_dev.sh | server_config/update_dev.sh |
log="/tmp/update_dev.log"
date >> $log
# Update NMIS repo
cd /home/ubuntu/srv/nmis
git pull >> $log
# Update NMIS data and run csv2json if needed
cd /home/ubuntu/srv/nmis_ui_data_2ef92c15
git_result=`git pull | grep "^Already up-to-date." | wc -l`
echo $git_result >> $log
if [ $git_result -eq 0 ]; then
python... |
log="/tmp/update_dev.log"
date >> $log
# Update NMIS repo
cd /home/ubuntu/srv/nmis
git pull >> $log
# Update NMIS data and run csv2json if needed
csv2json=`ps aux | grep "python csv2json.py" | wc -l`
if [ $csv2json -eq 1 ]; then
cd /home/ubuntu/srv/nmis_ui_data_2ef92c15
git_result=`git pull | grep "^Alread... | Check if csv2json is running before updating | Check if csv2json is running before updating
| Shell | mit | SEL-Columbia/nmis,SEL-Columbia/nmis,SEL-Columbia/nmis,SEL-Columbia/nmis,SEL-Columbia/nmis,SEL-Columbia/nmis | shell | ## Code Before:
log="/tmp/update_dev.log"
date >> $log
# Update NMIS repo
cd /home/ubuntu/srv/nmis
git pull >> $log
# Update NMIS data and run csv2json if needed
cd /home/ubuntu/srv/nmis_ui_data_2ef92c15
git_result=`git pull | grep "^Already up-to-date." | wc -l`
echo $git_result >> $log
if [ $git_result -eq 0 ];... |
e087422b47a9e1836366df4b6701d3154943d9b0 | src/support/path-utils.ts | src/support/path-utils.ts | /**
* @license
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... | /**
* @license
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of contributors ma... | Use the getBasePath function instead of duplicate regexp. | Use the getBasePath function instead of duplicate regexp.
| TypeScript | bsd-3-clause | Polymer/koa-node-resolve | typescript | ## Code Before:
/**
* @license
* Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at
* http://polymer.github.io/AUTHORS.txt
* The complete set of... |
4d092d38d37a19caf68e7bd4d9ffcc963b6ded38 | core/lib/macros-auto-insert.el | core/lib/macros-auto-insert.el | ;;; macros-auto-insert.el
;; for ../core-auto-insert.el
;;;###autoload
(defmacro add-template! (regexp-or-major-mode uuid yas-mode &optional project-only)
`(define-auto-insert ,regexp-or-major-mode
(lambda ()
(unless (or (and ,project-only (not (narf/project-p)))
(not (or (eq major-mod... | ;;; macros-auto-insert.el
;; for ../core-auto-insert.el
;;;###autoload
(defmacro add-template! (regexp-or-major-mode uuid yas-mode &optional project-only)
`(define-auto-insert ,regexp-or-major-mode
(lambda ()
(unless (or (and ,project-only (not (narf/project-p)))
(not (or (eq major-mod... | Fix error checking minor-mode for file templates | Fix error checking minor-mode for file templates
| Emacs Lisp | mit | hlissner/.emacs.d,UndeadKernel/emacs_doom,aminb/.emacs.d,hlissner/.emacs.d,UndeadKernel/emacs_doom,UndeadKernel/emacs_doom,hlissner/doom-emacs,keoko/.emacs.d,keoko/.emacs.d,hlissner/doom-emacs,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/.emacs.d,hlissner/doom-emacs,hlissner/doom-emacs,aminb/.emacs.d,hlissner/.emacs.d,... | emacs-lisp | ## Code Before:
;;; macros-auto-insert.el
;; for ../core-auto-insert.el
;;;###autoload
(defmacro add-template! (regexp-or-major-mode uuid yas-mode &optional project-only)
`(define-auto-insert ,regexp-or-major-mode
(lambda ()
(unless (or (and ,project-only (not (narf/project-p)))
(not (... |
a7991b2d4c8ca35ed421af62f47e558fce0f8fff | themes/_global/js/autoClose.js | themes/_global/js/autoClose.js | $(document).ready(function() {
current_url = window.location.href
if (current_url.match("&closewin=true")) {
window.close();
}
});
| $(document).ready(function() {
if (location.search.match("&closewin=true")) {
if (window.opener) {
var msgDiv = $("div.messages");
var msg = msgDiv.children("p").text();
var status = msgDiv.hasClass("success") ?
'success' : 'unknown';
var url = $(".tool.link")[0].href;
window.opener.postMessage({... | Send postMessage to opener before autoclose | Send postMessage to opener before autoclose
| JavaScript | mit | mubassirhayat/wallabag,kwangkim/wallabag,ekospinach/wallabag,kwangkim/wallabag,wangjun/wallabag,kwangkim/wallabag,antoniosejas/wallabag,antoniosejas/wallabag,modos189/wallabag,ekospinach/wallabag,mubassirhayat/wallabag,wangjun/wallabag,harikt/wallabag,modos189/wallabag,wangjun/wallabag,harikt/wallabag,ekospinach/wallab... | javascript | ## Code Before:
$(document).ready(function() {
current_url = window.location.href
if (current_url.match("&closewin=true")) {
window.close();
}
});
## Instruction:
Send postMessage to opener before autoclose
## Code After:
$(document).ready(function() {
if (location.search.match("&closewin=true")) {
if (windo... |
4f41ffe1d16bec010e33d80af5585d4a4a9ccdce | kolibri/core/assets/src/views/buttons-and-links/KExternalLink.vue | kolibri/core/assets/src/views/buttons-and-links/KExternalLink.vue | <template>
<!-- no extra whitespace inside link -->
<a
:class="buttonClasses"
:href="href"
:download="download"
dir="auto"
>
{{ text }}
</a>
</template>
<script>
import { validator } from './appearances.js';
import buttonClassesMixin from './buttonClassesMixin.js';
/**
* KExte... | <template>
<!-- no extra whitespace inside link -->
<a
:class="buttonClasses"
:href="href"
:download="download"
:target="download ? '_self' : '_blank'"
dir="auto"
>
{{ text }}
</a>
</template>
<script>
import { validator } from './appearances.js';
import buttonClassesMixin from ... | Update external link component to open external links in new tabs by default. | Update external link component to open external links in new tabs by default.
| Vue | mit | indirectlylit/kolibri,indirectlylit/kolibri,learningequality/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,lyw07/kolibri,mrpau/kolibri,learningequality/kolibri,learningequality/kolibri,lyw07/kolibri,learningequality/kolibri,mrpau/kolibri,mrpau/kolibri,lyw07/kolibri,mrpau/kolibri,lyw07/kolibri | vue | ## Code Before:
<template>
<!-- no extra whitespace inside link -->
<a
:class="buttonClasses"
:href="href"
:download="download"
dir="auto"
>
{{ text }}
</a>
</template>
<script>
import { validator } from './appearances.js';
import buttonClassesMixin from './buttonClassesMixin.js';
... |
486dd260952f5cfafe050eb094084e27f2034a23 | Casks/elasticwolf.rb | Casks/elasticwolf.rb | cask 'elasticwolf' do
version '5.1.6'
sha256 '32eccff8e2cff1187fbf4b8c614e61056ae9c371ebdba3174e021b413b973542'
url "https://s3-us-gov-west-1.amazonaws.com/elasticwolf/ElasticWolf-osx-#{version}.zip"
name 'AWS ElasticWolf Client Console'
homepage 'https://aws.amazon.com/developertools/9313598265692691'
lic... | cask 'elasticwolf' do
version '5.1.6'
sha256 '32eccff8e2cff1187fbf4b8c614e61056ae9c371ebdba3174e021b413b973542'
# amazonaws.com/elasticwolf was verified as official when first introduced to the cask
url "https://s3-us-gov-west-1.amazonaws.com/elasticwolf/ElasticWolf-osx-#{version}.zip"
name 'AWS ElasticWolf ... | Fix `url` stanza comment for AWS ElasticWolf Client Console. | Fix `url` stanza comment for AWS ElasticWolf Client Console.
| Ruby | bsd-2-clause | antogg/homebrew-cask,shorshe/homebrew-cask,lifepillar/homebrew-cask,mchlrmrz/homebrew-cask,jiashuw/homebrew-cask,deanmorin/homebrew-cask,squid314/homebrew-cask,caskroom/homebrew-cask,dcondrey/homebrew-cask,yutarody/homebrew-cask,jellyfishcoder/homebrew-cask,singingwolfboy/homebrew-cask,sebcode/homebrew-cask,troyxmccall... | ruby | ## Code Before:
cask 'elasticwolf' do
version '5.1.6'
sha256 '32eccff8e2cff1187fbf4b8c614e61056ae9c371ebdba3174e021b413b973542'
url "https://s3-us-gov-west-1.amazonaws.com/elasticwolf/ElasticWolf-osx-#{version}.zip"
name 'AWS ElasticWolf Client Console'
homepage 'https://aws.amazon.com/developertools/9313598... |
32e70ee06be67cb9058b2da7dc1a714272c6a07a | pyQuantuccia/setup.py | pyQuantuccia/setup.py | import setuptools
qu_ext = setuptools.Extension(
'quantuccia',
include_dirs=['src/Quantuccia'],
sources=['src/pyQuantuccia.cpp']
)
setuptools.setup(
name='pyQuantuccia',
author='Jack Grahl',
author_email='jack.grahl@gmail.com',
version='0.1.0',
packages=['pyQuantuccia'],
ext_module... | import setuptools
qu_ext = setuptools.Extension(
'quantuccia',
include_dirs=['src/Quantuccia'],
sources=['src/pyQuantuccia.cpp']
)
setuptools.setup(
name='pyQuantuccia',
author='Jack Grahl',
author_email='jack.grahl@gmail.com',
version='0.1.0',
packages=['pyQuantuccia'],
test_suite... | Add the location of tests. | Add the location of tests.
| Python | bsd-3-clause | jwg4/pyQuantuccia,jwg4/pyQuantuccia | python | ## Code Before:
import setuptools
qu_ext = setuptools.Extension(
'quantuccia',
include_dirs=['src/Quantuccia'],
sources=['src/pyQuantuccia.cpp']
)
setuptools.setup(
name='pyQuantuccia',
author='Jack Grahl',
author_email='jack.grahl@gmail.com',
version='0.1.0',
packages=['pyQuantuccia']... |
b58438703854f88432ec01b51bb79ce7ba6515dc | setup.py | setup.py | from setuptools import setup, Extension
setup(
name='javelin',
version='0.1.0',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('javelin.fourier_... | from setuptools import setup, Extension, distutils
if distutils.ccompiler.get_default_compiler() == 'msvc':
extra_compile_args = ['/openmp']
extra_link_args = None
else:
extra_compile_args = ['-fopenmp']
extra_link_args = ['-fopenmp']
setup(
name='javelin',
version='0.1.0',
description='',... | Fix openmp flags for windows | Fix openmp flags for windows
| Python | mit | rosswhitfield/javelin | python | ## Code Before:
from setuptools import setup, Extension
setup(
name='javelin',
version='0.1.0',
description='',
url='https://github.com/rosswhitfield/javelin',
author='Ross Whitfield',
author_email='whitfieldre@ornl.gov',
license='MIT',
packages=['javelin'],
ext_modules=[Extension('... |
bc92cf0b64ddfc54a87d4edf2ec6cfaad67c198d | examples/html-kitchen-sink/jest.config.js | examples/html-kitchen-sink/jest.config.js | const config = require('../../jest.config');
module.exports = {
...config,
roots: [__dirname],
transform: {
...config.transform,
'.*\\.(html)$': '<rootDir>/node_modules/jest-raw-loader',
},
moduleFileExtensions: [...config.moduleFileExtensions, 'html'],
};
| const config = require('../../jest.config');
module.exports = {
...config,
roots: [__dirname],
transform: {
...config.transform,
'.*\\.(html)$': '<rootDir>/node_modules/jest-raw-loader',
'^.+\\.mdx?$': '@storybook/addon-docs/jest-transform-mdx',
},
moduleFileExtensions: [...config.moduleFileExten... | Add MDX snapshotting to HTML example (failed) | Add MDX snapshotting to HTML example (failed)
| JavaScript | mit | kadirahq/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,storybooks/storybook,storybooks/storybook | javascript | ## Code Before:
const config = require('../../jest.config');
module.exports = {
...config,
roots: [__dirname],
transform: {
...config.transform,
'.*\\.(html)$': '<rootDir>/node_modules/jest-raw-loader',
},
moduleFileExtensions: [...config.moduleFileExtensions, 'html'],
};
## Instruction:
Add MDX sna... |
f22e0e50430301cd3ae91732bbe8ad26e1b6cfd8 | src/index.html | src/index.html | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ng2-dinos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Kim Maida @ Auth0">
<meta name="keywords" content="Angular 2, dinosaurs, single page application, javascript">
<meta name="descripti... | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ng2-dinos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Kim Maida @ Auth0">
<meta name="description" content="Learn about some popular as well as obscure dinosaurs!">
<base href="/">
<!... | Remove keywords meta tag (not widely used anymore) | Remove keywords meta tag (not widely used anymore)
| HTML | mit | kmaida/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos,auth0-blog/ng2-dinos,kmaida/ng2-dinos,kmaida/ng2-dinos | html | ## Code Before:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ng2-dinos</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Kim Maida @ Auth0">
<meta name="keywords" content="Angular 2, dinosaurs, single page application, javascript">
<meta... |
0b7587f452126612460dd6262d331234814c6d72 | src/helper/paramHandler/paramHandler.coffee | src/helper/paramHandler/paramHandler.coffee | class ParamHandler
all: (callback) ->
process = 'src/server --port 8000 --env development'
match = process.match /--[a-zA-Z]* ([a-zA-Z0-9]*)/g
payload = {}
match.map (found) ->
parse = found.match(/--([a-zA-Z]*)\s/)
payload[parse[1]] = found.replace parse[0], ''
callback payload
... | class ParamHandler
constructor: (@payload = {}) ->
getArguments: (process, callback) ->
match = process.argv.join(' ').match /--[a-zA-Z]* ([a-zA-Z0-9]*)/g
match.map (found) =>
parse = found.match(/--([a-zA-Z]*)\s/)
@payload[parse[1]] = found.replace parse[0], ''
callback @payload
module... | Handle with Process-Arguments and tidy | Handle with Process-Arguments and tidy
| CoffeeScript | mit | sm0k1nggnu/entertain.io | coffeescript | ## Code Before:
class ParamHandler
all: (callback) ->
process = 'src/server --port 8000 --env development'
match = process.match /--[a-zA-Z]* ([a-zA-Z0-9]*)/g
payload = {}
match.map (found) ->
parse = found.match(/--([a-zA-Z]*)\s/)
payload[parse[1]] = found.replace parse[0], ''
cal... |
f1d41a6ef2306305a91f28cd950bdf6ae10329f9 | app/src/main/res/values/styles.xml | app/src/main/res/values/styles.xml | <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
| <resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
<style name="MFP_BaseTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#222222</item>
<item ... | Change theme of file picker to be more in line with the app | Change theme of file picker to be more in line with the app
| XML | mit | artemnikitin/tts-test-app | xml | ## Code Before:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
</resources>
## Instruction:
Change theme of file picker to be more in line with the app
## Code After:
<resources>
... |
104439141f7ba80965aa7bd389f3d4ed6310b0d8 | .travis.yml | .travis.yml | language: python
# Python version to run tests with.
python:
- "2.7"
env:
- CRAM_SHELL=sh
- CRAM_SHELL=bash
- CRAM_SHELL=zsh
install:
- "pip install -r requirements.txt --use-mirrors"
script: "cram -v --shell=$CRAM_SHELL tests"
| language: python
# Python version to run tests with.
python:
- "2.7"
env:
- CRAM_SHELL=sh
- CRAM_SHELL=bash
- CRAM_SHELL=zsh
install:
- "pip install -r requirements.txt --use-mirrors"
before_script:
- "sudo apt-get install zsh"
script: "cram -v --shell=$CRAM_SHELL tests"
| Fix to install zsh on Travis | Fix to install zsh on Travis
| YAML | mit | uu59/rbl,uu59/rbl | yaml | ## Code Before:
language: python
# Python version to run tests with.
python:
- "2.7"
env:
- CRAM_SHELL=sh
- CRAM_SHELL=bash
- CRAM_SHELL=zsh
install:
- "pip install -r requirements.txt --use-mirrors"
script: "cram -v --shell=$CRAM_SHELL tests"
## Instruction:
Fix to install zsh on Travis
## Code After:
... |
342df8f8edbd9081770be4aa18da05f86f925855 | TEST3/test3.rb | TEST3/test3.rb | def process(document)
result = []
file = document
columns = []
File.readlines(file).each do |line|
records = line.split(' ')
year = records[6]
p year
end
end
process("T08 (1).1") | require 'date'
def process(document)
result = []
file = document
columns = []
File.readlines(file).each do |line|
records = line.split(' ')
year = records[6]
columns << year
end
p columns
end
process("T08 (1).1")
class Record
# Looking at the people.csv file,
# what attributes should a Person objec... | Create Record class with file columns as attributes | Create Record class with file columns as attributes
| Ruby | mit | Tooconfident/TicketFrontier-Test | ruby | ## Code Before:
def process(document)
result = []
file = document
columns = []
File.readlines(file).each do |line|
records = line.split(' ')
year = records[6]
p year
end
end
process("T08 (1).1")
## Instruction:
Create Record class with file columns as attributes
## Code After:
require 'date'
def proce... |
dbe17debb4611d9346a024793a732fc0d30de6ff | .deploy/docker/entrypoint.sh | .deploy/docker/entrypoint.sh | chown -R www-data:www-data -R $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
chmod -R 775 $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
# remove any lingerin... | chown -R www-data:www-data -R $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
chmod -R 775 $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
# remove any lingerin... | Remove the 'php artisan optimize' line from .deploy/docker/entroypoint.sh because the command was removed in artisan 5.6 | Remove the 'php artisan optimize' line from .deploy/docker/entroypoint.sh because the command was removed in artisan 5.6
| Shell | agpl-3.0 | JC5/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii,JC5/firefly-iii,firefly-iii/firefly-iii,firefly-iii/firefly-iii | shell | ## Code Before:
chown -R www-data:www-data -R $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
chmod -R 775 $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs $FIREFLY_PATH/storage/cache
# rem... |
7dc819661c67dc5ff9611dc6b516c3d9cc445a6a | .github/PULL_REQUEST_TEMPLATE.md | .github/PULL_REQUEST_TEMPLATE.md | Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are multiple relevant issues that would not make sense in isolation. For the latter case, please try to make atomic commits so we can easily review code for each issue.
- [ ] When you address our comments, please add additional commit(... | Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are multiple relevant issues that would not make sense in isolation. For the latter case, please make atomic commits so we can easily review each issue.
- Please add new commit(s) when addressing comments, so we can see easily the ne... | Make PR template a bit more concise. | Make PR template a bit more concise. | Markdown | bsd-3-clause | uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite,uwdata/vega-lite,uwdata/vega-lite,vega/vega-lite,vega/vega-lite | markdown | ## Code Before:
Please:
- [ ] Make your pull request atomic, fixing one issue at a time unless there are multiple relevant issues that would not make sense in isolation. For the latter case, please try to make atomic commits so we can easily review code for each issue.
- [ ] When you address our comments, please add ad... |
44d51438a3fbfb50fbf02248d64745b07e00ed31 | lib/sandthorn_driver_sequel/aggregate_access.rb | lib/sandthorn_driver_sequel/aggregate_access.rb | module SandthornDriverSequel
class AggregateAccess < Access
def find_or_register(aggregate_id, aggregate_type)
if aggregate = find_by_aggregate_id(aggregate_id)
aggregate
else
register_aggregate(aggregate_id, aggregate_type)
end
end
def register_aggregate(aggregate_id, ... | module SandthornDriverSequel
class AggregateAccess < Access
def find_or_register(aggregate_id, aggregate_type)
if aggregate = find_by_aggregate_id(aggregate_id)
aggregate
else
register_aggregate(aggregate_id, aggregate_type)
end
end
def register_aggregate(aggregate_id, ... | Add an aggregate finder with bang that raises exception | Add an aggregate finder with bang that raises exception
| Ruby | mit | Sandthorn/sandthorn_driver_sequel_2,Sandthorn/sandthorn_driver_sequel | ruby | ## Code Before:
module SandthornDriverSequel
class AggregateAccess < Access
def find_or_register(aggregate_id, aggregate_type)
if aggregate = find_by_aggregate_id(aggregate_id)
aggregate
else
register_aggregate(aggregate_id, aggregate_type)
end
end
def register_aggregat... |
e7c5e62da700f51e69662689758ffebf70fa1494 | cms/djangoapps/contentstore/context_processors.py | cms/djangoapps/contentstore/context_processors.py | import ConfigParser
from django.conf import settings
def doc_url(request):
config_file = open(settings.REPO_ROOT / "docs" / "config.ini")
config = ConfigParser.ConfigParser()
config.readfp(config_file)
# in the future, we will detect the locale; for now, we will
# hardcode en_us, since we only ha... | import ConfigParser
from django.conf import settings
config_file = open(settings.REPO_ROOT / "docs" / "config.ini")
config = ConfigParser.ConfigParser()
config.readfp(config_file)
def doc_url(request):
# in the future, we will detect the locale; for now, we will
# hardcode en_us, since we only have English d... | Read from doc url mapping file at load time, rather than once per request | Read from doc url mapping file at load time, rather than once per request
| Python | agpl-3.0 | ampax/edx-platform,Softmotions/edx-platform,dcosentino/edx-platform,chudaol/edx-platform,prarthitm/edxplatform,cyanna/edx-platform,jazztpt/edx-platform,motion2015/a3,nikolas/edx-platform,msegado/edx-platform,hkawasaki/kawasaki-aio8-0,LearnEra/LearnEraPlaftform,pabloborrego93/edx-platform,wwj718/ANALYSE,procangroup/edx-... | python | ## Code Before:
import ConfigParser
from django.conf import settings
def doc_url(request):
config_file = open(settings.REPO_ROOT / "docs" / "config.ini")
config = ConfigParser.ConfigParser()
config.readfp(config_file)
# in the future, we will detect the locale; for now, we will
# hardcode en_us, ... |
01acebb804d9f9e19fa6052f8cceac2a8c627933 | .travis.yml | .travis.yml | language: android
# Specify jdk to run lambda expression
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-23
- ANDROID_ABI=armeabi-v7a
android:
components:
- build-tools-23.0.2
- android-23
# Google repositories
- extra-android-m2repository
- extra-google-m2repository
- extra-... | language: android
# Specify jdk to run lambda expression
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-23
- ANDROID_ABI=armeabi-v7a
android:
components:
- build-tools-23.0.2
- android-23
# Google repositories
- extra-android-m2repository
- extra-google-m2repository
- extra-... | Add android and google licenses | Add android and google licenses | YAML | apache-2.0 | Bouquet2/AssoGenda | yaml | ## Code Before:
language: android
# Specify jdk to run lambda expression
jdk: oraclejdk8
env:
global:
- ANDROID_TARGET=android-23
- ANDROID_ABI=armeabi-v7a
android:
components:
- build-tools-23.0.2
- android-23
# Google repositories
- extra-android-m2repository
- extra-google-m2reposit... |
123c0bd6ca8ff8d510b7468a4e5915bbb8629789 | _posts/2015-04-06-expired_SSL_certificate.md | _posts/2015-04-06-expired_SSL_certificate.md | ---
layout: post
title: Expired SSL certificate
---
Oops! We forgot to update our SSL certificate before it expired. This means you will get a warning in your web browser when you try to access our wiki or forum.
We are working on getting a new SSL certificate - please bear with us.
Until then, if you use Firefox yo... | ---
layout: post
title: Expired SSL certificate
---
Oops! We didn't update our SSL certificate before it expired. This means you will get a warning in your web browser when you try to access our wiki or forum.
We are working on getting a new SSL certificate - please bear with us. We are waiting on the issuer (GlobalS... | Remove 'forgot' as we did remember; GlobalSign were tardy. | Remove 'forgot' as we did remember; GlobalSign were tardy.
| Markdown | mit | bgiesing/manjaro.github.io,chinacivilsocietywatch/chinacivilsocietywatch.github.io,fingli/manjaro.github.io,manjaro/manjaro.github.io,Acidburn0zzz/manjaro.github.io | markdown | ## Code Before:
---
layout: post
title: Expired SSL certificate
---
Oops! We forgot to update our SSL certificate before it expired. This means you will get a warning in your web browser when you try to access our wiki or forum.
We are working on getting a new SSL certificate - please bear with us.
Until then, if yo... |
5bde1316213584d9c82f409ceb643a9bd53f44ca | lightControler/startControlers.sh | lightControler/startControlers.sh |
echo "Starting controlers script"
serverAddr=""
serverPort=""
[[ $# -eq 0 ]] && echo "Missing parameter, usage: $0 numberOfCtrl [serverAddr] [serverPort]" && exit 1;
[[ $# -gt 1 ]] && serverAddr=$2
[[ $# -gt 2 ]] && serverPort=$3
declare -a processes
for ((i = 1; i <= $1; i++)); do
./controler "ctrl$i" $server... |
echo "Starting controlers script"
serverAddr=""
serverPort=""
[[ $# -eq 0 ]] && echo "Missing parameter, usage: $0 numberOfCtrl [serverAddr] [serverPort]" && exit 1;
[[ $# -gt 1 ]] && serverAddr=$2
[[ $# -gt 2 ]] && serverPort=$3
declare -a processes
kill_processes(){
echo "Killing all processes..."
kill ${... | Fix script to handle SIGINT | Fix script to handle SIGINT | Shell | mit | Justewi/CentralTrafficLightManagement,Justewi/CentralTrafficLightManagement,Justewi/CentralTrafficLightManagement,Justewi/CentralTrafficLightManagement | shell | ## Code Before:
echo "Starting controlers script"
serverAddr=""
serverPort=""
[[ $# -eq 0 ]] && echo "Missing parameter, usage: $0 numberOfCtrl [serverAddr] [serverPort]" && exit 1;
[[ $# -gt 1 ]] && serverAddr=$2
[[ $# -gt 2 ]] && serverPort=$3
declare -a processes
for ((i = 1; i <= $1; i++)); do
./controler ... |
28f41b62c65c867fe26e4ff6b77c7b3da2311cf6 | commons/src/main/scala/kantan/csv/engine/commons/package.scala | commons/src/main/scala/kantan/csv/engine/commons/package.scala | /*
* Copyright 2017 Nicolas Rinaudo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | /*
* Copyright 2017 Nicolas Rinaudo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | Make commons-csv much more configurable by exposing CSVFormat. | Make commons-csv much more configurable by exposing CSVFormat.
| Scala | mit | nrinaudo/scala-csv,nrinaudo/tabulate | scala | ## Code Before:
/*
* Copyright 2017 Nicolas Rinaudo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
13c39cb5100567bf8a504100cc6e16b6b3289d26 | integration/helpers/fake_data.go | integration/helpers/fake_data.go | package helpers
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
)
func AddFiftyOneOrgs(server *ghttp.Server) {
AddHandler(server,
http.MethodGet,
"/v3/organizations",
http.StatusOK,
[]byte(fmt.Sprintf(string(fixtureData("fifty-orgs-... | package helpers
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
)
func AddFiftyOneOrgs(server *ghttp.Server) {
AddHandler(server,
http.MethodGet,
"/v3/organizations?order_by=name",
http.StatusOK,
[]byte(fmt.Sprintf(string(fixtureDat... | Fix test server to expect order_by parameter | Fix test server to expect order_by parameter
[#163096814](https://www.pivotaltracker.com/story/show/163096814)
Co-authored-by: Alexander Berezovsky <a12e46294a7d630b60bbba114755367d6bafe2fb@pivotal.io>
| Go | apache-2.0 | cloudfoundry/cli,cloudfoundry/cli,cloudfoundry/cli | go | ## Code Before:
package helpers
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"path/filepath"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
)
func AddFiftyOneOrgs(server *ghttp.Server) {
AddHandler(server,
http.MethodGet,
"/v3/organizations",
http.StatusOK,
[]byte(fmt.Sprintf(string(fixtureD... |
205ec47f672f0a7e15028ca9cccb8a4fb11c604a | app/models/self_review_response_map.rb | app/models/self_review_response_map.rb | class SelfReviewResponseMap < ResponseMap
belongs_to :reviewee, class_name: 'Team', foreign_key: 'reviewee_id'
belongs_to :assignment, class_name: 'Assignment', foreign_key: 'reviewed_object_id'
# This method is used to get questionnaire for self-review to be performed by user
def questionnaire(round)
if s... | class SelfReviewResponseMap < ResponseMap
belongs_to :reviewee, class_name: 'Team', foreign_key: 'reviewee_id'
belongs_to :assignment, class_name: 'Assignment', foreign_key: 'reviewed_object_id'
# This method is used to get questionnaire for self-review to be performed by user
def questionnaire(round)
if s... | Fix E1639: do not send any reminder on receiving self review. | Fix E1639: do not send any reminder on receiving self review.
| Ruby | mit | michaelamoran/expertiza,michaelamoran/expertiza,joshio1/expertiza,joshio1/expertiza,arpitashekhar/expertiza,expertiza/expertiza,redsock88/expertiza,sid5788/expertiza,expertiza/expertiza,rmmaily/expertiza,arpitashekhar/expertiza,ApertureScienceInnovators/expertiza,arpitashekhar/expertiza,joshio1/expertiza,ApertureScienc... | ruby | ## Code Before:
class SelfReviewResponseMap < ResponseMap
belongs_to :reviewee, class_name: 'Team', foreign_key: 'reviewee_id'
belongs_to :assignment, class_name: 'Assignment', foreign_key: 'reviewed_object_id'
# This method is used to get questionnaire for self-review to be performed by user
def questionnaire... |
62f155918b9f32f5a6daaa8db1e3ed2a77c9d067 | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- jruby-18mode
- rbx-18mode
deploy:
provider: rubygems
api_key:
secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=
gem: dpl
on... | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- jruby-18mode
- rbx-18mode
deploy:
provider: rubygems
api_key:
secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=
gem: dpl
on... | Revert "release from ruby 2.0" | Revert "release from ruby 2.0"
This reverts commit 6ee59f2c22285ba43bc0fd19bd692e37999e5f61.
| YAML | mit | WeConnect/dpl,LoicMahieu/dpl,bensojona/dpl,travis-ci/dpl,zabawaba99/dpl,Misfit-SW-China/dpl,georgantasp/dpl,testfairy/dpl,testfairy/dpl,travis-ci/dpl,jonathan-s/dpl,felixrieseberg/dpl,meatballhat/dpl,wtcross/dpl,johanneswuerbach/dpl,mathiasrw/dpl,Hearst-Hatchery/dpl,giltsl/travis-test,computology/dpl,gmegidish/dpl,nmoh... | yaml | ## Code Before:
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- jruby-18mode
- rbx-18mode
deploy:
provider: rubygems
api_key:
secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=... |
9a23296a23dfd4c9fd067295dd82115d0e49d5b0 | concrete/elements/attribute/key/header.php | concrete/elements/attribute/key/header.php | <?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<div style="display: none">
<div id="ccm-dialog-delete-attribute" class="ccm-ui">
<form method="post" action="<?= $deleteAction ?>">
<?=Core::make("token")->output('delete_attribute')?>
<input type="hidden" name="id" value="<?=$key->getAttrib... | <?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<div style="display: none">
<div id="ccm-dialog-delete-attribute" class="ccm-ui">
<form method="post" action="<?= $deleteAction ?>">
<?=Core::make("token")->output('delete_attribute')?>
<input type="hidden" name="id" value="<?=$key->getAttrib... | Format translation of "Delete Attribute" for javascript | Format translation of "Delete Attribute" for javascript
| PHP | mit | a3020/concrete5,haeflimi/concrete5,biplobice/concrete5,haeflimi/concrete5,triplei/concrete5-8,haeflimi/concrete5,hissy/concrete5,jaromirdalecky/concrete5,jaromirdalecky/concrete5,triplei/concrete5-8,MrKarlDilkington/concrete5,mainio/concrete5,jaromirdalecky/concrete5,concrete5/concrete5,olsgreen/concrete5,hissy/concret... | php | ## Code Before:
<?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<div style="display: none">
<div id="ccm-dialog-delete-attribute" class="ccm-ui">
<form method="post" action="<?= $deleteAction ?>">
<?=Core::make("token")->output('delete_attribute')?>
<input type="hidden" name="id" value="<?... |
d722c73469050404929e5e0eb0a2ab70dee5aa4f | setup.cfg | setup.cfg | [nosetests]
verbosity=2
detailed-errors=1
with-coverage=0
cover-inclusive=0
cover-package=0
with-xunit=1
| [nosetests]
verbosity=2
detailed-errors=1
with-coverage=0
cover-inclusive=0
cover-package=0
with-xunit=1
[aliases]
test=pytest
| Make code more pytest compatible | Make code more pytest compatible
Signed-off-by: Owen Synge <d1d4fd964cef7d0e7c6a7c6237ad92c9cf2de236@jaysnest.de>
| INI | apache-2.0 | hepix-virtualisation/vmcatcher | ini | ## Code Before:
[nosetests]
verbosity=2
detailed-errors=1
with-coverage=0
cover-inclusive=0
cover-package=0
with-xunit=1
## Instruction:
Make code more pytest compatible
Signed-off-by: Owen Synge <d1d4fd964cef7d0e7c6a7c6237ad92c9cf2de236@jaysnest.de>
## Code After:
[nosetests]
verbosity=2
detailed-errors=1
with-cove... |
0bfff0e5b17c544e3176520b1505b87942f69f58 | _includes/asides/about-auth0.markdown | _includes/asides/about-auth0.markdown | **About Auth0**
Auth0, a global leader in Identity-as-a-Service (IDaaS), provides thousands of customers in every market sector with the only identity solution they need for their web, mobile, IoT, and internal applications. Its extensible platform seamlessly authenticates and secures more than 50M logins per day, mak... |
Auth0, a global leader in Identity-as-a-Service (IDaaS), provides thousands of customers in every market sector with the only identity solution they need for their web, mobile, IoT, and internal applications. Its extensible platform seamlessly authenticates and secures more than 50M logins per day, making it loved by ... | Fix formatting of generic "About Auth0" aside. | Fix formatting of generic "About Auth0" aside.
| Markdown | mit | auth0/blog,auth0/blog,kmaida/blog,kmaida/blog,kmaida/blog,kmaida/blog,auth0/blog,mike-casas/blog,mike-casas/blog,mike-casas/blog,auth0/blog | markdown | ## Code Before:
**About Auth0**
Auth0, a global leader in Identity-as-a-Service (IDaaS), provides thousands of customers in every market sector with the only identity solution they need for their web, mobile, IoT, and internal applications. Its extensible platform seamlessly authenticates and secures more than 50M log... |
966804b7b2fb69fda578a680fb857510fb3c4d16 | test/integration/tests/4220-freeze-command/Main.hs | test/integration/tests/4220-freeze-command/Main.hs | import Control.Monad (unless)
import StackTest
main :: IO ()
main = do
stackCheckStdout ["freeze"] $ \stdOut -> do
let expected = unlines
[ "packages:"
, "- ."
, "extra-deps:"
, "- hackage: a50-0.5@sha256:b8dfcc13dcbb12e444128bb0e17527a2a7a9bd74ca9450d6f6862c4b394ac054,149... | import Control.Monad (unless)
import StackTest
main :: IO ()
main = do
stackCheckStdout ["freeze"] $ \stdOut -> do
let expected = unlines
[ "resolver:"
, " size: 527165"
, " url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/11/19.yaml"
... | Fix test suite broken by changes in freeze output | Fix test suite broken by changes in freeze output
| Haskell | bsd-3-clause | juhp/stack,juhp/stack | haskell | ## Code Before:
import Control.Monad (unless)
import StackTest
main :: IO ()
main = do
stackCheckStdout ["freeze"] $ \stdOut -> do
let expected = unlines
[ "packages:"
, "- ."
, "extra-deps:"
, "- hackage: a50-0.5@sha256:b8dfcc13dcbb12e444128bb0e17527a2a7a9bd74ca9450d6f686... |
211563458d1b5a6354dae2c0caa2d4ef822dd832 | dariah_contributions/templates/dariah_contributions/contribution_detail.html | dariah_contributions/templates/dariah_contributions/contribution_detail.html | {% extends "content_left_sidebar.html" %}
{% load i18n %}
{% block content %}
<p>
<a href="{% url 'dariah_contributions:detail_rdf' contribution.dc_identifier %}">{% trans "Show as RDF" %}</a>
{% if contribution.author == request.user %}
| <a href="{% url 'dariah_contributions:update' contrib... | {% extends "content_left_sidebar.html" %}
{% load i18n %}
{% block content %}
<h3>{{ contribution.dc_title }}</h3>
<table class="table">
{% for field, value in contribution.attrs %}
<tr>
<td>{{ field }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
{% for fiel... | Move actions in detail view to sidebar. | Move actions in detail view to sidebar.
| HTML | apache-2.0 | DANS-KNAW/dariah-contribute,DANS-KNAW/dariah-contribute | html | ## Code Before:
{% extends "content_left_sidebar.html" %}
{% load i18n %}
{% block content %}
<p>
<a href="{% url 'dariah_contributions:detail_rdf' contribution.dc_identifier %}">{% trans "Show as RDF" %}</a>
{% if contribution.author == request.user %}
| <a href="{% url 'dariah_contributions... |
800503e891a9ee87641f0a4d1e45074bf8dd98b6 | metadata/io.rebble.charon.yml | metadata/io.rebble.charon.yml | Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com/project/charon
... | Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com/project/charon
... | Update CurrentVersion of Sideloader to 1.3 (4) | Update CurrentVersion of Sideloader to 1.3 (4)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
Categories:
- Connectivity
- System
License: MIT
AuthorName: The Rebble Alliance
AuthorEmail: support@rebble.io
WebSite: https://rebble.io
SourceCode: https://github.com/pebble-dev/rebble-sideloader
IssueTracker: https://github.com/pebble-dev/rebble-sideloader/issues
Translation: https://crowdin.com... |
ee39f4c2b72bef6515eaa379bfac8d320f2699cb | Sources/Nimble/Utils/SourceLocation.swift | Sources/Nimble/Utils/SourceLocation.swift | import Foundation
#if _runtime(_ObjC)
public typealias FileString = String
#else
public typealias FileString = StaticString
#endif
public final class SourceLocation : NSObject {
public let file: FileString
public let line: UInt
override init() {
file = "Unknown File"
line = 0
}
i... | import Foundation
// Ideally we would always use `StaticString` as the type for tracking the file name
// that expectations originate from, for consistency with `assert` etc. from the
// stdlib, and because recent versions of the XCTest overlay require `StaticString`
// when calling `XCTFail`. Under the Objective-C ru... | Add documentation about the motivation of the FileString typealias. | Add documentation about the motivation of the FileString typealias.
| Swift | apache-2.0 | Quick/Nimble,AnthonyMDev/Nimble,dgdosen/Nimble,mishimay/Nimble,jeffh/Nimble,Quick/Nimble,twobitlabs/Nimble,Quick/Nimble,feinstruktur/Nimble,phatblat/Nimble,phatblat/Nimble,DanielAsher/Nimble,DanielAsher/Nimble,ashfurrow/Nimble,AnthonyMDev/Nimble,mishimay/Nimble,feinstruktur/Nimble,AnthonyMDev/Nimble,ashfurrow/Nimble,as... | swift | ## Code Before:
import Foundation
#if _runtime(_ObjC)
public typealias FileString = String
#else
public typealias FileString = StaticString
#endif
public final class SourceLocation : NSObject {
public let file: FileString
public let line: UInt
override init() {
file = "Unknown File"
line ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.