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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5f5606bdd960b69a5c9126c510da30f3282e03ba | lib/last_hit/configure.rb | lib/last_hit/configure.rb | module LastHit
class Configure
@test_command = "bundle exec rspec"
@default_base_branch = "development"
class << self
attr_accessor :test_command, :default_base_branch
def config
yield(self)
end
end
end
end
| class LastHit
def self.config
yield(Configure) if block_given?
end
class Configure
@test_command = "bundle exec rspec"
@default_base_branch = "development"
class << self
attr_accessor :test_command, :default_base_branch
end
end
end
| Change the way of config | Change the way of config | Ruby | mit | lmduc/last_hit | ruby | ## Code Before:
module LastHit
class Configure
@test_command = "bundle exec rspec"
@default_base_branch = "development"
class << self
attr_accessor :test_command, :default_base_branch
def config
yield(self)
end
end
end
end
## Instruction:
Change the way of config
## Code... |
86f2d7d7317bcf3991a67e1dbb0d2aefba05b79f | README.md | README.md | 
Angel Sensor SDK
================
[Angel Sensor](http://angelsensor.com/) is an open wearable for developers who're building new mobile health products. Angel Sensor tracks heart rate, blood oxygen, skin temper... | 
Angel Sensor SDK
================
[Angel Sensor](http://angelsensor.com/) is an open wearable for developers who're building new mobile health products. Angel Sensor tracks heart rate, skin temperature, steps, sl... | Update links to the new GitHub URL | Update links to the new GitHub URL
| Markdown | bsd-3-clause | AngelSensor/angel-sdk,AngelSensor/angel-sdk,SeraphimSense/angel-sdk,SeraphimSense/angel-sdk,AngelSensor/angel-sdk,AngelSensor/angel-sdk,AngelSensor/angel-sdk | markdown | ## Code Before:

Angel Sensor SDK
================
[Angel Sensor](http://angelsensor.com/) is an open wearable for developers who're building new mobile health products. Angel Sensor tracks heart rate, blood oxy... |
2d321a96cefac11c8ca393ae55276d4861ce848d | circle.yml | circle.yml | machine:
environment:
PROJECT_GOPATH: "${HOME}/.go_project"
PROJECT_PARENT_PATH: "${PROJECT_GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}"
PROJECT_PATH: "${PROJECT_PARENT_PATH}/${CIRCLE_PROJECT_REPONAME}"
GOPATH: "${PROJECT_GOPATH}" | machine:
environment:
PROJECT_GOPATH: "${HOME}/.go_project"
PROJECT_PARENT_PATH: "${PROJECT_GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}"
PROJECT_PATH: "${PROJECT_PARENT_PATH}/${CIRCLE_PROJECT_REPONAME}"
GOPATH: "${PROJECT_GOPATH}"
dependencies:
override:
- go build -v -o $CIRCLE_ARTIFACTS/r... | Move built app to artifact directory | Move built app to artifact directory
| YAML | mit | mthmulders/rnchat | yaml | ## Code Before:
machine:
environment:
PROJECT_GOPATH: "${HOME}/.go_project"
PROJECT_PARENT_PATH: "${PROJECT_GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}"
PROJECT_PATH: "${PROJECT_PARENT_PATH}/${CIRCLE_PROJECT_REPONAME}"
GOPATH: "${PROJECT_GOPATH}"
## Instruction:
Move built app to artifact direct... |
f83be2c59fa80a9af8721cd8dd8699290a05d0e7 | doc_assets/css/style.css | doc_assets/css/style.css | .exampleOutput {
display: flex;
border: 1px solid rgb(224, 224, 224);
padding: 3rem;
}
.example-grid-content {
background: rgb(224, 224, 224);
display: flex;
}
.exampleOutput .btn + .btn {
margin-left: 1rem;
}
| .exampleOutput {
display: flex;
border: 1px solid rgb(224, 224, 224);
padding: 3rem;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.codeBlock pre {
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.example-grid-content {
background: rgb(224, 224, 224);
display: flex;... | Add slight border-radius to code examples | Add slight border-radius to code examples
| CSS | mit | adfinis-sygroup/adcssy,adfinis-sygroup/adcssy,topaxi/adcssy,topaxi/adcssy | css | ## Code Before:
.exampleOutput {
display: flex;
border: 1px solid rgb(224, 224, 224);
padding: 3rem;
}
.example-grid-content {
background: rgb(224, 224, 224);
display: flex;
}
.exampleOutput .btn + .btn {
margin-left: 1rem;
}
## Instruction:
Add slight border-radius to code examples
## Code After:
.exam... |
3d5dcdf1155453c1552cc572972b79e0039ccc0a | src/tests/languageTests/expression/objectTypeTests.ts | src/tests/languageTests/expression/objectTypeTests.ts | import {getInfoFromString} from "./../../../main";
import {runFileDefinitionTests} from "./../../testHelpers";
describe("object type tests", () => {
const code = `
let obj: { myString: string; myOtherType?: Note; myNext: string; myNext2: string; myReallyReallyReallyReallyReallyLongName: string; };
class Note {
... | import {getInfoFromString} from "./../../../main";
import {runFileDefinitionTests} from "./../../testHelpers";
describe("object type tests", () => {
const code = `
let obj: { readonly myString: string; myOtherType?: Note; myNext: string; myNext2: string; myReallyReallyReallyReallyReallyLongName: string; };
class ... | Test for readonly in object type. | Test for readonly in object type.
| TypeScript | mit | dsherret/ts-type-info,dsherret/type-info-ts,dsherret/ts-type-info,dsherret/type-info-ts | typescript | ## Code Before:
import {getInfoFromString} from "./../../../main";
import {runFileDefinitionTests} from "./../../testHelpers";
describe("object type tests", () => {
const code = `
let obj: { myString: string; myOtherType?: Note; myNext: string; myNext2: string; myReallyReallyReallyReallyReallyLongName: string; };
... |
7efaaacd7d0839ddc0ea036efc0181e2f02cfd4c | lib/domgen/gwt/templates/aggregate_module.java.erb | lib/domgen/gwt/templates/aggregate_module.java.erb | /* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt.qualified_aggregate_module_name) %>;
@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.gwt.aggregate_module_name %>
extends com.google.gwt.inject.client.... | /* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt.qualified_aggregate_module_name) %>;
@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.gwt.aggregate_module_name %>
extends com.google.gwt.inject.client.... | Add the ability to optionally exclude the addition of replicant support module. This makes it easy to integrate multiple modules that expose replicant services. | Add the ability to optionally exclude the addition of replicant support module. This makes it easy to integrate multiple modules that expose replicant services.
| HTML+ERB | apache-2.0 | realityforge/domgen,icaughley/domgen,realityforge/domgen,icaughley/domgen | html+erb | ## Code Before:
/* DO NOT EDIT: File is auto-generated */
package <%= to_package(repository.gwt.qualified_aggregate_module_name) %>;
@javax.annotation.Generated( "Domgen" )
@java.lang.SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
public class <%= repository.gwt.aggregate_module_name %>
extends com.google.gw... |
117d2b78b9878278840808b049ca8b428c81d2ac | Examples/Test/Makefile.hs | Examples/Test/Makefile.hs |
module Examples.Test.Makefile(main) where
import Development.Shake(action, liftIO)
import Development.Shake.FilePath
import qualified Development.Make.Main as Makefile
import System.Environment
import System.Directory
import Examples.Util
import Control.Monad
import Data.List
import Data.Maybe
main = shaken test $ ... |
module Examples.Test.Makefile(main) where
import Development.Shake(action, liftIO)
import Development.Shake.FilePath
import qualified Development.Make.Main as Makefile
import System.Environment
import System.Directory
import Examples.Util
import Control.Monad
import Data.List
import Data.Maybe
main = shaken test $ ... | Test the makefile actually rebuilds the second time round | Test the makefile actually rebuilds the second time round
| Haskell | bsd-3-clause | nh2/shake,ndmitchell/shake,ndmitchell/shake,nh2/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,nh2/shake,nh2/shake,nh2/shake | haskell | ## Code Before:
module Examples.Test.Makefile(main) where
import Development.Shake(action, liftIO)
import Development.Shake.FilePath
import qualified Development.Make.Main as Makefile
import System.Environment
import System.Directory
import Examples.Util
import Control.Monad
import Data.List
import Data.Maybe
main ... |
ff3a7ad122af4cc1cdfa0b882b2d1d7366d640f2 | tests/unit/test_secret.py | tests/unit/test_secret.py | import libnacl.secret
# Import python libs
import unittest
class TestSecret(unittest.TestCase):
'''
'''
def test_secret(self):
msg = b'But then of course African swallows are not migratory.'
box = libnacl.secret.SecretBox()
ctxt = box.encrypt(msg)
self.assertNotEqual(msg, ct... | import libnacl.secret
# Import python libs
import unittest
class TestSecret(unittest.TestCase):
'''
'''
def test_secret(self):
msg = b'But then of course African swallows are not migratory.'
box = libnacl.secret.SecretBox()
ctxt = box.encrypt(msg)
self.assertNotEqual(msg, ct... | Add failing test for unicode string encryption | Add failing test for unicode string encryption
| Python | apache-2.0 | coinkite/libnacl | python | ## Code Before:
import libnacl.secret
# Import python libs
import unittest
class TestSecret(unittest.TestCase):
'''
'''
def test_secret(self):
msg = b'But then of course African swallows are not migratory.'
box = libnacl.secret.SecretBox()
ctxt = box.encrypt(msg)
self.assert... |
b7ea2db86ad67410330d412a8733cb4dab2c4109 | partner_academic_title/models/partner_academic_title.py | partner_academic_title/models/partner_academic_title.py |
from openerp import models, fields
class PartnerAcademicTitle(models.Model):
_name = 'partner.academic.title'
name = fields.Char(required=True)
sequence = fields.Integer(required=True,
help="""defines the order to display titles""")
active = fields.Boolean(default=True)... |
from openerp import models, fields
class PartnerAcademicTitle(models.Model):
_name = 'partner.academic.title'
name = fields.Char(required=True, translate=True)
sequence = fields.Integer(required=True,
help="""defines the order to display titles""")
active = fields.Boole... | Add translate=True on academic title name | Add translate=True on academic title name
| Python | agpl-3.0 | sergiocorato/partner-contact | python | ## Code Before:
from openerp import models, fields
class PartnerAcademicTitle(models.Model):
_name = 'partner.academic.title'
name = fields.Char(required=True)
sequence = fields.Integer(required=True,
help="""defines the order to display titles""")
active = fields.Boole... |
fe6b7b9abb8e9730a3d028850337c047fe6607ea | tests/unit/services/user/test_models_full_name.py | tests/unit/services/user/test_models_full_name.py |
import pytest
from testfixtures.user import create_user_with_detail
@pytest.mark.parametrize(
'first_names, last_name, expected',
[
(None, None , None ),
('Giesbert Z.', None , 'Giesbert Z.' ),
(None, 'Blümli', 'Blümli' ),
... |
from datetime import datetime
import pytest
from byceps.services.user.models.user import User as DbUser
from byceps.services.user.models.detail import UserDetail as DbUserDetail
@pytest.mark.parametrize(
'first_names, last_name, expected',
[
(None, None , None ),
... | Create fullname user object locally in test | Create fullname user object locally in test
| Python | bsd-3-clause | homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps | python | ## Code Before:
import pytest
from testfixtures.user import create_user_with_detail
@pytest.mark.parametrize(
'first_names, last_name, expected',
[
(None, None , None ),
('Giesbert Z.', None , 'Giesbert Z.' ),
(None, 'Blümli', 'Blümli' ... |
705ccf213641f5a9daac20fb58f753140f2c81df | kustomize/overlays/uat/service.yaml | kustomize/overlays/uat/service.yaml | apiVersion: v1
kind: Service
metadata:
name: ibms
spec:
type: ClusterIP
clusterIP: None
ports:
- name: default
port: 42
protocol: TCP
targetPort: 42
selector:
app: ibms
---
apiVersion: v1
kind: Service
metadata:
name: ingress-ibms
spec:
type: ClusterIP
ports:
- name: wsgi
port: 8... | apiVersion: v1
kind: Service
metadata:
name: ibms
spec:
type: ClusterIP
clusterIP: None
ports:
- name: default
port: 42
protocol: TCP
targetPort: 42
selector:
app: ibms
---
apiVersion: v1
kind: Service
metadata:
name: ingress-ibms
spec:
type: ClusterIP
ports:
- name: wsgi
port: 8... | Add Service for ibms-db workload. | Add Service for ibms-db workload.
| YAML | apache-2.0 | parksandwildlife/ibms,parksandwildlife/ibms,parksandwildlife/ibms | yaml | ## Code Before:
apiVersion: v1
kind: Service
metadata:
name: ibms
spec:
type: ClusterIP
clusterIP: None
ports:
- name: default
port: 42
protocol: TCP
targetPort: 42
selector:
app: ibms
---
apiVersion: v1
kind: Service
metadata:
name: ingress-ibms
spec:
type: ClusterIP
ports:
- name: ... |
1e79060197f4aa803c1a0328c027ef755d6db500 | index.js | index.js | var path = require('path')
// Export function to create new config (builder is passed in from outside)
module.exports = function (builder) {
var bootstrapLess = require.resolve('bootstrap/less/bootstrap.less')
return builder.merge({
handlebars: {
templates: path.resolve(__dirname, 'handlebars', 'templat... | var path = require('path')
// Export function to create new config (builder is passed in from outside)
module.exports = function (builder) {
var bootstrapLess = require.resolve('bootstrap/less/bootstrap.less')
return builder.merge({
handlebars: {
templates: path.resolve(__dirname, 'handlebars', 'templat... | Include `highlight.js`-styles into less file. | Include `highlight.js`-styles into less file.
Fixes bootprint/bootprint#16
This commit ensures that the styling of examples in bootprint-openapi is
visible.
| JavaScript | mit | nknapp/bootprint-base,bootprint/bootprint-base,bootprint/bootprint-base,nknapp/bootprint-base | javascript | ## Code Before:
var path = require('path')
// Export function to create new config (builder is passed in from outside)
module.exports = function (builder) {
var bootstrapLess = require.resolve('bootstrap/less/bootstrap.less')
return builder.merge({
handlebars: {
templates: path.resolve(__dirname, 'handl... |
3fc293d621a62a43d26cdaffc84c46c3a1e3bafa | website/source/docs/vagrantfile/vagrant_settings.html.md | website/source/docs/vagrantfile/vagrant_settings.html.md | ---
layout: "docs"
page_title: "config.vagrant - Vagrantfile"
sidebar_current: "vagrantfile-vagrant"
description: |-
The settings within "config.vagrant" modify the behavior of Vagrant
itself.
---
# Vagrant Settings
**Config namespace: `config.vagrant`**
The settings within `config.vagrant` modify the behavior o... | ---
layout: "docs"
page_title: "config.vagrant - Vagrantfile"
sidebar_current: "vagrantfile-vagrant"
description: |-
The settings within "config.vagrant" modify the behavior of Vagrant
itself.
---
# Vagrant Settings
**Config namespace: `config.vagrant`**
The settings within `config.vagrant` modify the behavior o... | Add example for sensitive option | Add example for sensitive option
| Markdown | mit | taliesins/vagrant,chrisroberts/vagrant,crashlytics/vagrant,marxarelli/vagrant,mitchellh/vagrant,bryson/vagrant,taliesins/vagrant,gitebra/vagrant,sni/vagrant,sni/vagrant,gitebra/vagrant,gitebra/vagrant,PatrickLang/vagrant,mitchellh/vagrant,marxarelli/vagrant,bryson/vagrant,sni/vagrant,PatrickLang/vagrant,chrisroberts/va... | markdown | ## Code Before:
---
layout: "docs"
page_title: "config.vagrant - Vagrantfile"
sidebar_current: "vagrantfile-vagrant"
description: |-
The settings within "config.vagrant" modify the behavior of Vagrant
itself.
---
# Vagrant Settings
**Config namespace: `config.vagrant`**
The settings within `config.vagrant` modif... |
a1ec514adc224359043f267df88bf3dc07acb6b3 | lcm-lua/init.c | lcm-lua/init.c | extern "C" {
#endif
#include "lua.h"
#ifdef __cplusplus
}
#endif
#include "lualcm_lcm.h"
#include "lualcm_hash.h"
#include "lualcm_pack.h"
int luaopen_lcm_lcm(lua_State* L) {
ll_lcm_makemetatable(L);
ll_lcm_register_new(L);
return 1;
}
int luaopen_lcm__hash(lua_State* L) {
ll_hash_makemetatable(L);
ll_has... | extern "C" {
#endif
#include "lua.h"
#ifdef __cplusplus
}
#endif
#include "lualcm_lcm.h"
#include "lualcm_hash.h"
#include "lualcm_pack.h"
int luaopen_lcm_lcm(lua_State* L) {
ll_lcm_makemetatable(L);
ll_lcm_register_new(L);
return 1;
}
int luaopen_lcm__hash(lua_State* L) {
ll_hash_makemetatable(L);
ll_has... | Fix export decoration of Lua module | Fix export decoration of Lua module
Add missing export decoration for Lua module entry point. This fixes the
Lua module that stopped working when ELF hidden visibility was enabled.
(I'm not sure about Windows, as I don't have Lua on Windows, but I
suspect it never worked on Windows.)
| C | lgpl-2.1 | lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,adeschamps/lcm,adeschamps/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,lcm-proj/lcm,adeschamps/lcm,lcm-proj/lcm,lcm-proj/lcm,bluesquall/lcm,adeschamps/lcm,bluesquall/lcm,lcm-proj/lcm,bluesquall/lcm,bluesq... | c | ## Code Before:
extern "C" {
#endif
#include "lua.h"
#ifdef __cplusplus
}
#endif
#include "lualcm_lcm.h"
#include "lualcm_hash.h"
#include "lualcm_pack.h"
int luaopen_lcm_lcm(lua_State* L) {
ll_lcm_makemetatable(L);
ll_lcm_register_new(L);
return 1;
}
int luaopen_lcm__hash(lua_State* L) {
ll_hash_makemetata... |
44a173919e05493000fadad994961a58027457d7 | src/com/grayben/riskExtractor/htmlScorer/ScoredText.java | src/com/grayben/riskExtractor/htmlScorer/ScoredText.java | package com.grayben.riskExtractor.htmlScorer;
import java.util.ListIterator;
public interface ScoredText {
ListIterator<ScoredTextElement> getListIterator();
ListIterator<ScoredTextElement> getListIterator(int index);
}
| package com.grayben.riskExtractor.htmlScorer;
import java.util.List;
public interface ScoredText {
List<ScoredTextElement> getList();
}
| Remove Iterator retrival from interface | Remove Iterator retrival from interface
| Java | mit | grayben/10K-item-extractor,grayben/10K-item-extractor | java | ## Code Before:
package com.grayben.riskExtractor.htmlScorer;
import java.util.ListIterator;
public interface ScoredText {
ListIterator<ScoredTextElement> getListIterator();
ListIterator<ScoredTextElement> getListIterator(int index);
}
## Instruction:
Remove Iterator retrival from interface
## Code After:
packa... |
3906fe7c82313db9222f236f5ce9ea3cdc7d381e | web/app/views/layout.scala.html | web/app/views/layout.scala.html | @(webJarAssets: WebJarAssets)(content: Html)
<!DOCTYPE html>
<html>
<head>
<meta content="text/html" charset="utf-8">
<title>Geoportaal Overijssel</title>
<link href='@routes.WebJarAssets.at(webJarAssets.locate("css/bootstrap.min.css"))' rel="stylesheet">
<link href='@routes.Assets.at("stylesheets/for... | @(webJarAssets: WebJarAssets)(content: Html)
<!DOCTYPE html>
<html>
<head>
<meta content="text/html" charset="utf-8">
<title>Geoportaal Overijssel</title>
<link href='@routes.WebJarAssets.at(webJarAssets.locate("css/bootstrap.min.css"))' rel="stylesheet">
<link href='@routes.Assets.at("stylesheets/for... | Remove reference to Overijssel in version line | Remove reference to Overijssel in version line | HTML | lgpl-2.1 | IDgis/download-tool,IDgis/download-tool,IDgis/download-tool | html | ## Code Before:
@(webJarAssets: WebJarAssets)(content: Html)
<!DOCTYPE html>
<html>
<head>
<meta content="text/html" charset="utf-8">
<title>Geoportaal Overijssel</title>
<link href='@routes.WebJarAssets.at(webJarAssets.locate("css/bootstrap.min.css"))' rel="stylesheet">
<link href='@routes.Assets.at("stylesh... |
9d3377a062026c8547330da20d3a1153b47e8f67 | nixpkgs/home/packages.nix | nixpkgs/home/packages.nix | { pkgs, config, ... }:
{
# "The set of packages to appear in the user environment."
home.packages = with pkgs; [
acpi
ardour
audacity
blueman
byzanz
calc
calibre
cargo
coreutils
ctags
curl
dict
diction
exfat
file
firefox
gnome3.adwaita-icon-theme
... | { pkgs, config, ... }:
{
# "The set of packages to appear in the user environment."
home.packages = with pkgs; [
acpi
ardour
audacity
blueman
byzanz
calc
calibre
cargo
coreutils
ctags
curl
dict
diction
exfat
file
firefox
gnome3.adwaita-icon-theme
... | Fix libreoffice font bug (introducing high cpu usage...) | Fix libreoffice font bug (introducing high cpu usage...)
| Nix | mit | gmarmstrong/dotfiles | nix | ## Code Before:
{ pkgs, config, ... }:
{
# "The set of packages to appear in the user environment."
home.packages = with pkgs; [
acpi
ardour
audacity
blueman
byzanz
calc
calibre
cargo
coreutils
ctags
curl
dict
diction
exfat
file
firefox
gnome3.adw... |
e917a65d71b135f8dcdc97e1cea5d4f455aeaa92 | README.rst | README.rst |
mangler: bytecode mangler for frozen python apps
=================================================
Mangler is a tool to obfuscate the bytecode of your frozen python applications.
It makes it (slightly) harder for someone to take code from your app and use
it for their own evil ends.
Mangler works with the output o... |
mangler: bytecode mangler for frozen python apps
=================================================
WARNING: no implementation here. This project is no more than some crazy
ideas and git repo. Sadly, I may not ever get the time to revisit it.
Move along, weary traveller.
| Update readme to indicate true status of project | Update readme to indicate true status of project
| reStructuredText | mit | rfk/mangler | restructuredtext | ## Code Before:
mangler: bytecode mangler for frozen python apps
=================================================
Mangler is a tool to obfuscate the bytecode of your frozen python applications.
It makes it (slightly) harder for someone to take code from your app and use
it for their own evil ends.
Mangler works w... |
a19b4dcbc367edc0b581b63f58ecd0be0a1326b3 | spec/helper.rb | spec/helper.rb | require './lib/dtext.rb'
require 'nokogiri'
include DText
TestDir = "./tests"
def p(str)
DText.parse(str).gsub! /[\n\s]+/, ""
end
def find_test()
begin
test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ }
rescue
print "Read #{TestDir} error\n"
return []
end
test.map! { |f| "#{... | require './lib/dtext.rb'
require 'nokogiri'
include DText
TestDir = "./tests"
def p(str)
DText.parse(str)
end
def find_test()
begin
test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ }
rescue
print "Read #{TestDir} error\n"
return []
end
test.map! { |f| "#{TestDir}/#{f}" }
t... | Revert html formatting, still stuck at pretty format. | Revert html formatting, still stuck at pretty format.
| Ruby | isc | moebooru/moebooru,euank/moebooru-thin,moebooru/moebooru,moebooru/moebooru,euank/moebooru-thin,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,moebooru/moebooru,nanaya/moebooru,euank/moebooru-thin,euank/moebooru-thin,nanaya/moebooru,euank/moebooru-thin,nanaya/moebooru | ruby | ## Code Before:
require './lib/dtext.rb'
require 'nokogiri'
include DText
TestDir = "./tests"
def p(str)
DText.parse(str).gsub! /[\n\s]+/, ""
end
def find_test()
begin
test = Dir.entries(TestDir).select { |f| f =~ /^[^\.](?=.*\.txt$)/ }
rescue
print "Read #{TestDir} error\n"
return []
end
test... |
2709e66f0cf736f6de2a1117332856dcd498519d | .circleci/config.yml | .circleci/config.yml | version: 2
jobs:
build:
docker:
- image: sicz/dockerspec:3.6
working_directory: ~/docker-dockerspec
environment:
- MAKEFLAGS=--no-print-directory
steps:
- run:
name: Set up Environment
command: |
curl -sSL https://github.com/SICZ/Mk/archive/master.tar.... | version: 2
jobs:
build:
docker:
- image: sicz/dockerspec:3.6
working_directory: ~/docker-dockerspec
environment:
- MAKEFLAGS=--no-print-directory
steps:
- run:
name: Set up Environment
command: |
curl -sSL https://github.com/SICZ/Mk/archive/master.tar.... | Revert "Use Docker layer caching" | Revert "Use Docker layer caching"
This reverts commit e0c7a37eedd2afe96c8bbb4cf7aa898f916789f5.
| YAML | apache-2.0 | sicz/docker-dockerspec | yaml | ## Code Before:
version: 2
jobs:
build:
docker:
- image: sicz/dockerspec:3.6
working_directory: ~/docker-dockerspec
environment:
- MAKEFLAGS=--no-print-directory
steps:
- run:
name: Set up Environment
command: |
curl -sSL https://github.com/SICZ/Mk/arc... |
a451e50a75d7ee01d72d34c680c9d948c4fde14f | controller/users-admin/server.js | controller/users-admin/server.js | 'use strict';
var assign = require('es5-ext/object/assign')
, promisify = require('deferred').promisify
, bcrypt = require('bcrypt')
, dbjsCreate = require('mano/lib/utils/dbjs-form-create')
, router = require('mano/server/post-router')
, changePassword = require('mano-auth/c... | 'use strict';
var assign = require('es5-ext/object/assign')
, promisify = require('deferred').promisify
, bcrypt = require('bcrypt')
, dbjsCreate = require('mano/lib/utils/dbjs-form-create')
, submit = require('mano/utils/save')
, changePassword = require('mano-auth/controlle... | Fix resolution of submit function | Fix resolution of submit function
| JavaScript | mit | egovernment/eregistrations,egovernment/eregistrations,egovernment/eregistrations | javascript | ## Code Before:
'use strict';
var assign = require('es5-ext/object/assign')
, promisify = require('deferred').promisify
, bcrypt = require('bcrypt')
, dbjsCreate = require('mano/lib/utils/dbjs-form-create')
, router = require('mano/server/post-router')
, changePassword = requ... |
5b7d293216b34689d4cfbaaa9795bfb87776a744 | packages/li/libgraph.yaml | packages/li/libgraph.yaml | homepage: http://maartenfaddegon.nl
changelog-type: ''
hash: 896b85a573cf44afe57c215379bdf819269b35d47601fae34f0394a978aff914
test-bench-deps: {}
maintainer: libgraph@maartenfaddegon.nl
synopsis: Store and manipulate data in a graph.
changelog: ''
basic-deps:
base: ! '>=4 && <5'
monads-tf: -any
process: -any
un... | homepage: http://maartenfaddegon.nl
changelog-type: ''
hash: cc4c981a4fa24c80cb390fb12b734a10b7cfa3809bd41d6786812336ba063ce5
test-bench-deps: {}
maintainer: libgraph@maartenfaddegon.nl
synopsis: Store and manipulate data in a graph.
changelog: ''
basic-deps:
base: ! '>=4 && <5'
monads-tf: -any
process: -any
un... | Update from Hackage at 2017-05-20T12:00:41Z | Update from Hackage at 2017-05-20T12:00:41Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://maartenfaddegon.nl
changelog-type: ''
hash: 896b85a573cf44afe57c215379bdf819269b35d47601fae34f0394a978aff914
test-bench-deps: {}
maintainer: libgraph@maartenfaddegon.nl
synopsis: Store and manipulate data in a graph.
changelog: ''
basic-deps:
base: ! '>=4 && <5'
monads-tf: -any
pr... |
2bdffa778d236dd39e3bd4bfa9a01e7eb703c58a | README.md | README.md | linker
======
Create a hard link for files in a specified predefined location (invoked by just passing the file path as argument).
In _directory mode_ (can be invoked with --dir DIRECTORY as arguments) it will deduplicate files in .NET packages folder by creating hardlinks for duplicate (based on filename, size and m... | linker
======
Create a hard link for files in a specified predefined location (invoked by just passing the file path as argument).
In _directory mode_ (can be invoked with --dir DIRECTORY as arguments) it will deduplicate files in .NET packages folder by creating hardlinks for duplicate (based on filename, size and m... | Add license scan report and status | Add license scan report and status | Markdown | mit | stevehansen/linker | markdown | ## Code Before:
linker
======
Create a hard link for files in a specified predefined location (invoked by just passing the file path as argument).
In _directory mode_ (can be invoked with --dir DIRECTORY as arguments) it will deduplicate files in .NET packages folder by creating hardlinks for duplicate (based on file... |
1b179405245bc7d7d6157528bd64e2b399491090 | quantecon/optimize/__init__.py | quantecon/optimize/__init__.py |
from .scalar_maximization import brent_max
from .root_finding import *
|
from .scalar_maximization import brent_max
from .root_finding import newton, newton_halley, newton_secant, bisect, brentq
| Fix import to list items | Fix import to list items
| Python | bsd-3-clause | oyamad/QuantEcon.py,QuantEcon/QuantEcon.py,oyamad/QuantEcon.py,QuantEcon/QuantEcon.py | python | ## Code Before:
from .scalar_maximization import brent_max
from .root_finding import *
## Instruction:
Fix import to list items
## Code After:
from .scalar_maximization import brent_max
from .root_finding import newton, newton_halley, newton_secant, bisect, brentq
|
b799710f51363e89291ba81e925c1c217036e1c1 | tests/src/legacy_sizing.rs | tests/src/legacy_sizing.rs | use cairo;
use librsvg::{rsvg_convert_only::LegacySize, CairoRenderer};
use crate::utils::load_svg;
#[test]
fn just_viewbox_uses_viewbox_size() {
let svg = load_svg(
br#"<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"/>
"#,
)
.unwrap();
... | use cairo;
use librsvg::{rsvg_convert_only::LegacySize, CairoRenderer};
use crate::utils::load_svg;
#[test]
fn just_viewbox_uses_viewbox_size() {
let svg = load_svg(
br#"<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"/>
"#,
)
.unwrap();
... | Test for no intrinsic size at all | Test for no intrinsic size at all
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/595>
| Rust | lgpl-2.1 | GNOME/librsvg,GNOME/librsvg,GNOME/librsvg,GNOME/librsvg | rust | ## Code Before:
use cairo;
use librsvg::{rsvg_convert_only::LegacySize, CairoRenderer};
use crate::utils::load_svg;
#[test]
fn just_viewbox_uses_viewbox_size() {
let svg = load_svg(
br#"<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 200"/>
"#,
)
... |
06dd6fb991a9f68eea99d5943498688daa0b09c2 | tests/test_interaction.py | tests/test_interaction.py | import numpy.testing as npt
import pandas as pd
import pandas.util.testing as pdt
import pytest
from .. import interaction as inter
@pytest.fixture
def choosers():
return pd.DataFrame(
{'var1': range(5, 10),
'thing_id': ['a', 'c', 'e', 'g', 'i']})
@pytest.fixture
def alternatives():
return... | import numpy.testing as npt
import pandas as pd
import pandas.util.testing as pdt
import pytest
from .. import interaction as inter
@pytest.fixture
def choosers():
return pd.DataFrame(
{'var1': range(5, 10),
'thing_id': ['a', 'c', 'e', 'g', 'i']})
@pytest.fixture
def alternatives():
return... | Return DCM probabilities as MultiIndexed Series | Return DCM probabilities as MultiIndexed Series
Instead of separately returning probabilities and alternatives
information this groups them all together.
The probabilities have a MultiIndex with chooser IDs on the
outside and alternative IDs on the inside.
| Python | bsd-3-clause | UDST/choicemodels,UDST/choicemodels | python | ## Code Before:
import numpy.testing as npt
import pandas as pd
import pandas.util.testing as pdt
import pytest
from .. import interaction as inter
@pytest.fixture
def choosers():
return pd.DataFrame(
{'var1': range(5, 10),
'thing_id': ['a', 'c', 'e', 'g', 'i']})
@pytest.fixture
def alternativ... |
5efd63506749840901cdcb145f05892499e39d6b | _includes/google_analytics.html | _includes/google_analytics.html | <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analy... | <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analy... | Update to not use jQuery | Update to not use jQuery
| HTML | mit | donaldrauscher/blog | html | ## Code Before:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-ana... |
5c9157b3294d7c6cda6c32152b254650daa116cf | pkgs/tools/misc/riemann-c-client/default.nix | pkgs/tools/misc/riemann-c-client/default.nix | { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, protobufc }:
stdenv.mkDerivation rec {
name = "riemann-c-client-${version}";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/algernon/riemann-c-client/archive/${name}.tar.gz";
sha256 = "1w3rx0hva605d5vzlhhm4pb43ady0m3s4mz8i... | { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, protobufc }:
stdenv.mkDerivation rec {
name = "riemann-c-client-${version}";
version = "1.2.1";
src = fetchurl {
url = "https://github.com/algernon/riemann-c-client/archive/${name}.tar.gz";
sha256 = "132yd1m523inmv17sd48xf7xdqb7jj36v7is1... | Update from 1.2.0 to 1.2.1 | riemann-c-client: Update from 1.2.0 to 1.2.1
| Nix | mit | NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,SymbiFlow/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,SymbiFlow/nixpkgs,NixOS/nixpkgs,triton/triton,triton/triton,triton/triton,NixOS/nixpkgs,SymbiFlow/nixpkgs,triton/triton,NixOS/nixpkgs,NixOS/nixpkgs,triton/triton,Ni... | nix | ## Code Before:
{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, file, protobufc }:
stdenv.mkDerivation rec {
name = "riemann-c-client-${version}";
version = "1.2.0";
src = fetchurl {
url = "https://github.com/algernon/riemann-c-client/archive/${name}.tar.gz";
sha256 = "1w3rx0hva605d5vzlhhm4... |
239fc296a53bafce25ce0050dac4055fa27d3e73 | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src/app/components/Apis/Details/ApiConsole/SwaggerUI.jsx | features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src/app/components/Apis/Details/ApiConsole/SwaggerUI.jsx | import React from 'react';
import PropTypes from 'prop-types';
import 'swagger-ui/dist/swagger-ui.css';
import SwaggerUILib from './PatchedSwaggerUIReact';
const disableAuthorizeAndInfoPlugin = function () {
return {
wrapComponents: {
info: () => () => null,
},
};
};
/**
*
* @clas... | import React from 'react';
import PropTypes from 'prop-types';
import 'swagger-ui/dist/swagger-ui.css';
import SwaggerUILib from './PatchedSwaggerUIReact';
const disableAuthorizeAndInfoPlugin = function () {
return {
wrapComponents: {
info: () => () => null,
},
};
};
/**
*
* @clas... | Change query params in swagger console | Change query params in swagger console
| JSX | apache-2.0 | uvindra/carbon-apimgt,bhathiya/carbon-apimgt,harsha89/carbon-apimgt,chamindias/carbon-apimgt,praminda/carbon-apimgt,nuwand/carbon-apimgt,fazlan-nazeem/carbon-apimgt,nuwand/carbon-apimgt,praminda/carbon-apimgt,harsha89/carbon-apimgt,chamilaadhi/carbon-apimgt,isharac/carbon-apimgt,jaadds/carbon-apimgt,praminda/carbon-api... | jsx | ## Code Before:
import React from 'react';
import PropTypes from 'prop-types';
import 'swagger-ui/dist/swagger-ui.css';
import SwaggerUILib from './PatchedSwaggerUIReact';
const disableAuthorizeAndInfoPlugin = function () {
return {
wrapComponents: {
info: () => () => null,
},
};
};... |
45b576ef508d2614e45039eb7bbad155ecfab844 | lib/xandra/authenticator.ex | lib/xandra/authenticator.ex | defmodule Xandra.Authenticator do
@moduledoc """
A behaviour module for implementing a Cassandra authenticator.
## Examples
defmodule MyAuthenticator do
@behaviour Xandra.Authenticator
def response_body(options) do
["user:", Keyword.fetch!(options, :user), "_password:", Keyword.... | defmodule Xandra.Authenticator do
@moduledoc """
A behaviour module for implementing a Cassandra authenticator.
## Examples
defmodule MyAuthenticator do
@behaviour Xandra.Authenticator
def response_body(options) do
["user:", Keyword.fetch!(options, :user), "_password:", Keyword.... | Improve argument name in Xandra.Authenticator.response_body/1 | Improve argument name in Xandra.Authenticator.response_body/1
| Elixir | isc | lexhide/xandra | elixir | ## Code Before:
defmodule Xandra.Authenticator do
@moduledoc """
A behaviour module for implementing a Cassandra authenticator.
## Examples
defmodule MyAuthenticator do
@behaviour Xandra.Authenticator
def response_body(options) do
["user:", Keyword.fetch!(options, :user), "_pass... |
16440e738ba884942e99d0de6e07513dd7883233 | spec/celluloid/pool_spec.rb | spec/celluloid/pool_spec.rb | require 'spec_helper'
describe "Celluloid.pool" do
before do
class ExampleError < StandardError; end
class MyWorker
include Celluloid
def process(queue = nil)
if queue
queue << :done
else
:done
end
end
def crash
raise ExampleError... | require 'spec_helper'
describe "Celluloid.pool" do
before do
class ExampleError < StandardError; end
class MyWorker
include Celluloid
def process(queue = nil)
if queue
queue << :done
else
:done
end
end
def crash
raise ExampleError... | Use Actor.all in pool spec | Use Actor.all in pool spec
| Ruby | mit | TiagoCardoso1983/celluloid,mehta/celluloid,davydovanton/celluloid,sideci-sample/sideci-sample-celluloid,jstoja/celluloid,tarcieri/celluloid,jasonm23/celluloid,celluloid/celluloid,kenichi/celluloid,seuros/celluloid,olleolleolle/celluloid,marshall-lee/celluloid,dilumn/celluloid | ruby | ## Code Before:
require 'spec_helper'
describe "Celluloid.pool" do
before do
class ExampleError < StandardError; end
class MyWorker
include Celluloid
def process(queue = nil)
if queue
queue << :done
else
:done
end
end
def crash
ra... |
aa2fe48e04b506d8153b3a2f5f839e0584f89f28 | metadata/com.phg.constellations.txt | metadata/com.phg.constellations.txt | Categories:Office
License:MIT
Web Site:
Source Code:https://github.com/gituser1357/constellations
Issue Tracker:https://github.com/gituser1357/constellations/issues
Auto Name:Constellations
Summary:Show star charts and data
Description:
Star charts and data of the 88 modern constellations, based on data by
Wikipedia.
... | Categories:Office
License:MIT
Web Site:
Source Code:https://github.com/gituser1357/constellations
Issue Tracker:https://github.com/gituser1357/constellations/issues
Auto Name:Constellations
Summary:Show star charts and data
Description:
Star charts and data of the 88 modern constellations, based on data by
Wikipedia.
... | Update Constellations to 2.0.3 (10005) | Update Constellations to 2.0.3 (10005)
| Text | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata,f-droid/fdroid-data | text | ## Code Before:
Categories:Office
License:MIT
Web Site:
Source Code:https://github.com/gituser1357/constellations
Issue Tracker:https://github.com/gituser1357/constellations/issues
Auto Name:Constellations
Summary:Show star charts and data
Description:
Star charts and data of the 88 modern constellations, based on dat... |
8739f26fbeec2e7320cbdc2afb86eaf67ec860c5 | localore/localore/static/css/localore.css | localore/localore/static/css/localore.css | .rich-text img {
max-width: 100%;
height: auto;
}
.responsive-object {
padding-bottom: 0px !important;
}
| .rich-text img {
max-width: 100%;
height: auto;
}
.responsive-object {
padding-bottom: 0px !important;
}
.j-filters {
display: none !important;
}
.juicer-feed.image-grid .j-poster {
visibility: visible !important;
opacity: 1 !important;
}
| Hide feed filters, show post author/date. | Juicer: Hide feed filters, show post author/date.
| CSS | mpl-2.0 | ghostwords/localore,ghostwords/localore,ghostwords/localore | css | ## Code Before:
.rich-text img {
max-width: 100%;
height: auto;
}
.responsive-object {
padding-bottom: 0px !important;
}
## Instruction:
Juicer: Hide feed filters, show post author/date.
## Code After:
.rich-text img {
max-width: 100%;
height: auto;
}
.responsive-object {
padding-bottom: 0px !important;
}
.j... |
9080295b8bd2acf1968dd140dd32172cea05efdb | assets/sass/govuk/elements/_global-cookie-message.scss | assets/sass/govuk/elements/_global-cookie-message.scss | background: $light-blue-25;
padding: 10px;
font-size: em(16);
.js-enabled & {
display: none;
}
}
| background: $light-blue-25;
padding: 10px;
font-size: em(16);
p {
margin: 0;
}
.js-enabled & {
display: none;
}
}
| Set paragraph margin to 0 in cookies message | Set paragraph margin to 0 in cookies message
| SCSS | mit | mojular/govuk-elements | scss | ## Code Before:
background: $light-blue-25;
padding: 10px;
font-size: em(16);
.js-enabled & {
display: none;
}
}
## Instruction:
Set paragraph margin to 0 in cookies message
## Code After:
background: $light-blue-25;
padding: 10px;
font-size: em(16);
p {
margin: 0;
}
.js-enabled & {
... |
d3cb7dd14cb91d379836c1e93226d1ac56942f0c | src/index.ts | src/index.ts | import LocalTimeElement from './local-time-element'
import RelativeTimeElement from './relative-time-element'
import TimeAgoElement from './time-ago-element'
import TimeUntilElement from './time-until-element'
export {LocalTimeElement, RelativeTimeElement, TimeAgoElement, TimeUntilElement}
| import LocalTimeElement from './local-time-element.js'
import RelativeTimeElement from './relative-time-element.js'
import TimeAgoElement from './time-ago-element.js'
import TimeUntilElement from './time-until-element.js'
export {LocalTimeElement, RelativeTimeElement, TimeAgoElement, TimeUntilElement}
| Add file extensions to imports for ES Module support | Add file extensions to imports for ES Module support
| TypeScript | mit | github/time-elements,github/time-elements | typescript | ## Code Before:
import LocalTimeElement from './local-time-element'
import RelativeTimeElement from './relative-time-element'
import TimeAgoElement from './time-ago-element'
import TimeUntilElement from './time-until-element'
export {LocalTimeElement, RelativeTimeElement, TimeAgoElement, TimeUntilElement}
## Instruct... |
b95730a6aefdf38f89ae4717148af45a1161a8ae | app/subapps/browser/templates/browser_qa.handlebars | app/subapps/browser/templates/browser_qa.handlebars | <h3>Quality Rating: {{totalScore}}/{{totalAvailable}}</h3>
<p>This charm has scored {{totalScore}} out of a maximum of {{totalAvailable}} points on the criteria below.</p>
<div class="qa_data">
{{#each questions}}
<h3>{{this.description}} <span class="heading_notes">{{this.score}}/{{this.questions.length}... | <h3>Quality Rating: {{totalScore}}/{{totalAvailable}}</h3>
<p>This charm has scored {{totalScore}} out of a maximum of {{totalAvailable}} points on the criteria below.</p>
<div class="qa_data">
{{#each questions}}
<h3>{{description}} <span class="heading_notes">{{score}}/{{questions.length}} points</span>... | Remove the this explicit reference in the templates | Remove the this explicit reference in the templates | Handlebars | agpl-3.0 | mitechie/juju-gui,jrwren/juju-gui,CanonicalJS/juju-gui,CanonicalJS/juju-gui,mitechie/juju-gui,CanonicalJS/juju-gui,bac/juju-gui,jrwren/juju-gui,jrwren/juju-gui,bac/juju-gui,bac/juju-gui,mitechie/juju-gui,mitechie/juju-gui,bac/juju-gui,jrwren/juju-gui | handlebars | ## Code Before:
<h3>Quality Rating: {{totalScore}}/{{totalAvailable}}</h3>
<p>This charm has scored {{totalScore}} out of a maximum of {{totalAvailable}} points on the criteria below.</p>
<div class="qa_data">
{{#each questions}}
<h3>{{this.description}} <span class="heading_notes">{{this.score}}/{{this.q... |
507d665f6d754ffdef5f494ee9e58aa833177b94 | capstone/src/main/webapp/dashboard-loader.js | capstone/src/main/webapp/dashboard-loader.js | document.body.prepend(dynamicButton);
window.addEventListener('authorized', getClassrooms);
function createClassroom(subject) {
var auth2 = gapi.auth2.getAuthInstance();
var name = "";
var email = "";
if (auth2.isSignedIn.get()) {
name = auth2.currentUser.get().getBasicProfile().getName();
... | document.body.prepend(dynamicButton);
window.addEventListener('authorized', getClassrooms);
function createClassroom(subject) {
var classroomData = JSON.stringify({"subject": subject});
fetch("/dashboard", {method: "POST", headers: new Headers({ID_TOKEN}), body: classroomData}).then((resp) => {
if (res... | Remove unneeded user info in request | Remove unneeded user info in request
| JavaScript | apache-2.0 | googleinterns/step152-2020,googleinterns/step152-2020,googleinterns/step152-2020,googleinterns/step152-2020 | javascript | ## Code Before:
document.body.prepend(dynamicButton);
window.addEventListener('authorized', getClassrooms);
function createClassroom(subject) {
var auth2 = gapi.auth2.getAuthInstance();
var name = "";
var email = "";
if (auth2.isSignedIn.get()) {
name = auth2.currentUser.get().getBasicProfile(... |
0530f52ff8d27f8dae875a6395aa8c02c412a0b6 | package.json | package.json | {
"name": "verifier",
"description": "Firebase Profile Application",
"main": "worker.js",
"author": "Chris Boesch <scboesch@gmail.com>",
"homepage": "http://chrisboesch.com",
"dependencies": {
"firebase": "2.4.2",
"firebase-queue": "latest",
"request": "latest",
"x-ray": "^2.3.0"
},
"dev... | {
"name": "verifier",
"description": "Firebase Profile Application",
"main": "worker.js",
"author": "Chris Boesch <scboesch@gmail.com>",
"homepage": "http://chrisboesch.com",
"dependencies": {
"firebase": "2.4.2",
"firebase-queue": "latest",
"request": "latest",
"x-ray": "^2.3.0"
},
"dev... | Replace summary report with the text report | Replace summary report with the text report
Keep the default lcov. To see the html report, `nom run coverage && open coverage/lcov-report/index.html` | JSON | mit | ClassMentors/profile-updater | json | ## Code Before:
{
"name": "verifier",
"description": "Firebase Profile Application",
"main": "worker.js",
"author": "Chris Boesch <scboesch@gmail.com>",
"homepage": "http://chrisboesch.com",
"dependencies": {
"firebase": "2.4.2",
"firebase-queue": "latest",
"request": "latest",
"x-ray": "^2.... |
c2ed13bf86ac74716e8b1b50e99be5312b431ac2 | style.css | style.css | h1 {
text-align: center;
}
h2 {
text-align: center;
}
.row {
display: flex;
}
.section {
width: 200px;
}
#container {
width: 100%;
padding: 10% 0;
}
#links-div {
width: 600px;
margin: 0 auto;
margin-top: 50px;
}
| a {
text-decoration: none;
color: #000000;
}
a:hover {
color: #FFFFFF;
}
body {
background-color: #2c3e50;
}
h1 {
text-align: center;
}
h2 {
text-align: center;
margin-bottom: 20px;
}
li {
list-style-type: none;
padding: 0 0;
}
li a {
display: block;
width: 100%;
padding: 20px 0;
}
ul {
padding: 0;
... | Add color and modify link handling | Add color and modify link handling
Add colors for the index page and also add some structure and highlighting to the links.
| CSS | mit | ExcaliburZero/startpage | css | ## Code Before:
h1 {
text-align: center;
}
h2 {
text-align: center;
}
.row {
display: flex;
}
.section {
width: 200px;
}
#container {
width: 100%;
padding: 10% 0;
}
#links-div {
width: 600px;
margin: 0 auto;
margin-top: 50px;
}
## Instruction:
Add color and modify link handling
Add colors for the index ... |
164bb99d0ded674d6202849f5e20449371dc2213 | Casks/micro-snitch.rb | Casks/micro-snitch.rb | cask 'micro-snitch' do
version '1.2'
sha256 '7749a1bbc88a7a4bcb246d9f6d8b4d46b4faabfb95f7a8706be28570dcc09115'
url "https://www.obdev.at/downloads/MicroSnitch/MicroSnitch-#{version}.zip"
name 'Micro Snitch'
homepage 'https://www.obdev.at/products/microsnitch/index.html'
app 'Micro Snitch.app'
end
| cask 'micro-snitch' do
version '1.2'
sha256 '7749a1bbc88a7a4bcb246d9f6d8b4d46b4faabfb95f7a8706be28570dcc09115'
url "https://www.obdev.at/downloads/MicroSnitch/MicroSnitch-#{version}.zip"
name 'Micro Snitch'
homepage 'https://www.obdev.at/products/microsnitch/index.html'
auto_updates true
depends_on maco... | Add auto_updates, depends_on, uninstall and zap | Add auto_updates, depends_on, uninstall and zap | Ruby | bsd-2-clause | jgarber623/homebrew-cask,sjackman/homebrew-cask,joshka/homebrew-cask,jconley/homebrew-cask,sebcode/homebrew-cask,singingwolfboy/homebrew-cask,morganestes/homebrew-cask,imgarylai/homebrew-cask,uetchy/homebrew-cask,yuhki50/homebrew-cask,paour/homebrew-cask,yutarody/homebrew-cask,gyndav/homebrew-cask,colindean/homebrew-ca... | ruby | ## Code Before:
cask 'micro-snitch' do
version '1.2'
sha256 '7749a1bbc88a7a4bcb246d9f6d8b4d46b4faabfb95f7a8706be28570dcc09115'
url "https://www.obdev.at/downloads/MicroSnitch/MicroSnitch-#{version}.zip"
name 'Micro Snitch'
homepage 'https://www.obdev.at/products/microsnitch/index.html'
app 'Micro Snitch.a... |
30611aa6c022b4ddf4c70fa4bf48e0b1f417fdba | src/cli/argv.coffee | src/cli/argv.coffee | parser = require 'nomnom'
braveMouse = require '../brave-mouse'
braveMousePackageJson = require '../../package.json'
module.exports = (argv) ->
opts = parser
.script 'brave-mouse'
.options
help:
abbr: 'h'
flag: true
help: 'Print this help message'
version:
abbr: 'v'
flag: true
help: 'Print br... | async = require 'async'
parser = require 'nomnom'
braveMouse = require '../brave-mouse'
braveMousePackageJson = require '../../package.json'
module.exports = (argv) ->
opts = parser
.script 'brave-mouse'
.options
path:
position: 0
help: 'Files to validate against your .editorconfig.'
list: true
help:
... | Implement validating files from the CLI | Implement validating files from the CLI
| CoffeeScript | bsd-2-clause | SonicHedgehog/brave-mouse | coffeescript | ## Code Before:
parser = require 'nomnom'
braveMouse = require '../brave-mouse'
braveMousePackageJson = require '../../package.json'
module.exports = (argv) ->
opts = parser
.script 'brave-mouse'
.options
help:
abbr: 'h'
flag: true
help: 'Print this help message'
version:
abbr: 'v'
flag: true
... |
fe4ea97dc3a49ba78b556746a25782b52d3d6727 | api/item.php | api/item.php | <?php
header('Content-type:application/json');
require_once('./json.php');
require_once('./objects/item.php');
/*
routes
*/
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET':
get();
break;
default:
http_response_code(405);
header('Allow: GET');
}
function get () {
switch ( count($_GET) ) {
... | <?php
header('Content-type:application/json');
// Object
require_once('./object/item.php');
// Service
// Database
require_once('./json/item.php');
// Initialize response.
$status = 500;
$body = [];
$header = '';
// Method router.
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET':
get();
break;
default:... | Update Item API handler to use api changes | Update Item API handler to use api changes
| PHP | mit | nklnkl/csc226-lab2,nklnkl/csc226-lab2 | php | ## Code Before:
<?php
header('Content-type:application/json');
require_once('./json.php');
require_once('./objects/item.php');
/*
routes
*/
switch ($_SERVER['REQUEST_METHOD']) {
case 'GET':
get();
break;
default:
http_response_code(405);
header('Allow: GET');
}
function get () {
switch ( coun... |
94b1f44e138dde3a6c493f36b5b94205f62d6fdf | README.md | README.md | Split CSS selectors by commas or blocks
[](https://travis-ci.org/perry-mitchell/css-selector-splitter)
## Compatibility
Node v6 is supported (full ES6).
## Usage
Simply require the main function:
```
const splitSelector = r... | Split CSS selectors by commas or blocks
[](https://travis-ci.org/perry-mitchell/css-selector-splitter)
## Compatibility
Node v6 is supported (full ES6).
## Usage
Simply require the main function:
```
const splitSelector = r... | Add new methods to readme | Add new methods to readme | Markdown | mit | perry-mitchell/css-selector-splitter | markdown | ## Code Before:
Split CSS selectors by commas or blocks
[](https://travis-ci.org/perry-mitchell/css-selector-splitter)
## Compatibility
Node v6 is supported (full ES6).
## Usage
Simply require the main function:
```
const s... |
691ac8854ba0f167c8db0bc4da15e1ef524bb5c9 | bin/build-linux.sh | bin/build-linux.sh |
if ! [ -f "lib/gl3w/src/gl3w.c" ]; then
pushd lib/gl3w
./gl3w_gen.py
popd
fi
if ! [ -d "build/linux" ]; then
mkdir -p "build/linux"
fi
cd build/linux
export CXX="gcc"
msg=" --------------------- BUILD SUCCEEDED ---------------------"
# Use default cmake
CMAKE="cmake"
$CMAKE \
-DBUILD_LINUX=TRUE \
... |
if ! [ -f "lib/gl3w/src/gl3w.c" ]; then
cd lib/gl3w
./gl3w_gen.py
cd ../..
fi
if ! [ -d "build/linux" ]; then
mkdir -p "build/linux"
fi
cd build/linux
export CXX="gcc"
msg=" --------------------- BUILD SUCCEEDED ---------------------"
# Use default cmake
CMAKE="cmake"
$CMAKE \
-DBUILD_LINUX=TRUE \
... | Remove pushd and use cd | Remove pushd and use cd
| Shell | mit | lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot,lzubiaur/woot | shell | ## Code Before:
if ! [ -f "lib/gl3w/src/gl3w.c" ]; then
pushd lib/gl3w
./gl3w_gen.py
popd
fi
if ! [ -d "build/linux" ]; then
mkdir -p "build/linux"
fi
cd build/linux
export CXX="gcc"
msg=" --------------------- BUILD SUCCEEDED ---------------------"
# Use default cmake
CMAKE="cmake"
$CMAKE \
-DBUIL... |
04f4f22da215ea5514627281b087a6a699235f4e | angular_tutorial/examples/25/readme.html | angular_tutorial/examples/25/readme.html | <div>
Was ist neu?
<ul>
<li><li>
</ul>
</div>
<div>
<p>
</p>
<p>
</p>
</div>
| <div>
Was ist neu?
<ul>
<li><code>templateUrl</code> statt <code>template</code></li>
</ul>
</div>
<div>
<p>
Wird im <em>Directive Definition Object</em> <code>templateUrl</code> statt
<code>template</code> verwendet, kann das Template auch von einer externen URL geladen werden.
... | Update reamde for example 25 | Update reamde for example 25
| HTML | mit | bjoernricks/angular-tutorial | html | ## Code Before:
<div>
Was ist neu?
<ul>
<li><li>
</ul>
</div>
<div>
<p>
</p>
<p>
</p>
</div>
## Instruction:
Update reamde for example 25
## Code After:
<div>
Was ist neu?
<ul>
<li><code>templateUrl</code> statt <code>template</code></li>
</ul>
</div>
<div>
... |
2ebbe2f9f23621d10a70d0817d83da33b002299e | rest_surveys/urls.py | rest_surveys/urls.py | from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_bulk.routes import BulkRouter
from rest_surveys.views import (
SurveyViewSet,
SurveyResponseViewSet,
)
# API
# With trailing slash appended:
router = BulkRouter()
router.regis... | from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_bulk.routes import BulkRouter
from rest_surveys.views import (
SurveyViewSet,
SurveyResponseViewSet,
)
# API
# With trailing slash appended:
router = BulkRouter()
router.regis... | Set a default api path | Set a default api path
| Python | mit | danxshap/django-rest-surveys | python | ## Code Before:
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from rest_framework_bulk.routes import BulkRouter
from rest_surveys.views import (
SurveyViewSet,
SurveyResponseViewSet,
)
# API
# With trailing slash appended:
router = BulkRoute... |
09591644e6635869092d2899183b7bca6a7e1e03 | db/migrate/20160524170457_create_sub_splits.rb | db/migrate/20160524170457_create_sub_splits.rb | class CreateSubSplits < ActiveRecord::Migration
def self.up
create_table :sub_splits, id: false do |t|
t.integer :bitkey, null: false
t.string :kind, null: false
end
add_index :sub_splits, :bitkey, unique: true
add_index :sub_splits, :kind, unique: true
SubSplit.create(bitkey: 1, ki... | class CreateSubSplits < ActiveRecord::Migration
def self.up
create_table :sub_splits, id: false do |t|
t.integer :bitkey, null: false
t.string :kind, null: false
end
add_index :sub_splits, :bitkey, unique: true
add_index :sub_splits, :kind, unique: true
end
def self.down
drop_t... | Remove SubSplit object creation from create_sub_splits migration (allows heroku to migrate up despite code having been updated to remove SubSplit as an ActiveRecord model). | Remove SubSplit object creation from create_sub_splits migration (allows heroku to migrate up despite code having been updated to remove SubSplit as an ActiveRecord model).
| Ruby | mit | SplitTime/OpenSplitTime,SplitTime/OpenSplitTime,voltagead/OpenSplitTime,voltagead/OpenSplitTime,SplitTime/OpenSplitTime,voltagead/OpenSplitTime | ruby | ## Code Before:
class CreateSubSplits < ActiveRecord::Migration
def self.up
create_table :sub_splits, id: false do |t|
t.integer :bitkey, null: false
t.string :kind, null: false
end
add_index :sub_splits, :bitkey, unique: true
add_index :sub_splits, :kind, unique: true
SubSplit.crea... |
81d59e992c971d5918cf59a4a24513fbfda42f6c | lib/flipper/feature_check_context.rb | lib/flipper/feature_check_context.rb | module Flipper
class FeatureCheckContext
attr_reader :feature_name
attr_reader :values
def initialize(feature_name:, values:)
@feature_name = feature_name
@values = values
end
end
end
| module Flipper
class FeatureCheckContext
# Public: The name of the feature.
attr_reader :feature_name
# Public: The GateValues instance that keeps track of the values for the
# gates for the feature.
attr_reader :values
def initialize(feature_name:, values:)
@feature_name = feature_nam... | Add docs for feature check context methods | Add docs for feature check context methods
| Ruby | mit | jnunemaker/flipper,jnunemaker/flipper,jnunemaker/flipper,jnunemaker/flipper | ruby | ## Code Before:
module Flipper
class FeatureCheckContext
attr_reader :feature_name
attr_reader :values
def initialize(feature_name:, values:)
@feature_name = feature_name
@values = values
end
end
end
## Instruction:
Add docs for feature check context methods
## Code After:
module Flip... |
6e78f4eb168c69b2e095ecd6dbf5d5004885d197 | MainPage.html | MainPage.html | <!DOCTYPE html>
<head>
<title> Jason and Trey's Projects</title>
</head>
<body>
<h1>Games</h1>
<a href="FallDownGame\site\index.html">Simple Fall down game</a>
<br>
<a href="Roll_for_your_life\index.html">Roll For Your Life. 3d game jam game</a>
<br>
<h1>S... | <!DOCTYPE html>
<head>
<title> Jason and Trey's Projects</title>
</head>
<body>
<h1>Games</h1>
<a href="FallDownGame\site\index.html">Simple Fall down game</a>
<a href="https://github.com/jpvarbed/FallDownGame">Source</a>
<br>
<a href="Roll_for_your_life\ind... | Update source links on main page | Update source links on main page
| HTML | mit | jpvarbed/jasonandtreywebsite,jpvarbed/jasonandtreywebsite | html | ## Code Before:
<!DOCTYPE html>
<head>
<title> Jason and Trey's Projects</title>
</head>
<body>
<h1>Games</h1>
<a href="FallDownGame\site\index.html">Simple Fall down game</a>
<br>
<a href="Roll_for_your_life\index.html">Roll For Your Life. 3d game jam game</a>
<b... |
236e209482a4bf6440962cb86062cc4d9d475c44 | README.md | README.md |
**Jeff** mixes in client behaviour for [Amazon Web Services (AWS)][aws].
![jeff][jeff]
## Usage
Build a hypothetical client.
```ruby
class Client
include Jeff
end
```
Set AWS endpoint and credentials.
```ruby
client = Client.new
client.endpoint = 'http://example.com/path'
client.key = 'key'
client.secret ... |
**Jeff** mixes in [authentication][sign] for [Amazon Web Services (AWS)][aws].
![jeff][jeff]
## Usage
Build a hypothetical client.
```ruby
class Client
include Jeff
end
```
Set AWS endpoint and credentials.
```ruby
client = Client.new
client.endpoint = 'http://example.com/path'
client.key = 'key'
client.s... | Bring back link to signature docs | Bring back link to signature docs
| Markdown | mit | hakanensari/jeff,mamatafu/jeff | markdown | ## Code Before:
**Jeff** mixes in client behaviour for [Amazon Web Services (AWS)][aws].
![jeff][jeff]
## Usage
Build a hypothetical client.
```ruby
class Client
include Jeff
end
```
Set AWS endpoint and credentials.
```ruby
client = Client.new
client.endpoint = 'http://example.com/path'
client.key = 'key... |
807cdc7cf06a260b79e610d1f83a0862fc60a590 | .travis.yml | .travis.yml | sudo: false
jobs:
include:
- stage: build
env:
- ELM_VERSION=0.18.0 ELM_CSS_VERSION=0.6.1
bundler_args:
--without production
before_install:
- echo "Install elm-lang and elm-css"
- echo "elm version = $ELM_VERSION"
- echo "elm css version = $ELM_CSS_VERSI... | sudo: false
jobs:
include:
- stage: build
env:
- ELM_VERSION=0.18.0 ELM_CSS_VERSION=0.6.1
bundler_args:
--without production
before_install:
- echo "Install elm-lang and elm-css"
- echo "elm version = $ELM_VERSION"
- echo "elm css version = $ELM_CSS_VERSI... | Use Google Maps API token for rspec tests | Use Google Maps API token for rspec tests
| YAML | mit | ofer987/transit.tips,ofer987/transit.tips,ofer987/transit.tips,ofer987/transit.tips | yaml | ## Code Before:
sudo: false
jobs:
include:
- stage: build
env:
- ELM_VERSION=0.18.0 ELM_CSS_VERSION=0.6.1
bundler_args:
--without production
before_install:
- echo "Install elm-lang and elm-css"
- echo "elm version = $ELM_VERSION"
- echo "elm css version ... |
7d49aeaaa200a271b90b2ff6c216a77924b32977 | .travis.yml | .travis.yml | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.2
cache: bundler
before_script:
- git config --global user.email "bot@heroku.com"
- git config --global user.name "Heroku Bot (Travis CI)"
script: bundle exec rspec spec --color --format documentation
deploy:
provider: rubygems
on:
tags:... | language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.2
sudo: false
cache: bundler
before_script:
- git config --global user.email "bot@heroku.com"
- git config --global user.name "Heroku Bot (Travis CI)"
script: bundle exec rspec spec --color --format documentation
deploy:
provider: rubygems
... | Use the new build env on Travis | Use the new build env on Travis
as an added bonus, caching works on the new platform | YAML | mit | heroku/heroku,heroku/heroku,heroku/heroku | yaml | ## Code Before:
language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.2
cache: bundler
before_script:
- git config --global user.email "bot@heroku.com"
- git config --global user.name "Heroku Bot (Travis CI)"
script: bundle exec rspec spec --color --format documentation
deploy:
provider: rubygems... |
71fa6b0b6e418a4d50d0177e03fccef27db639c9 | .travis.yml | .travis.yml | language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install pytest pytest-cov pytest-capturelog coveralls
script:
- python -mwand.version --verbose
- py.test --cov wand --durations=20
after_success:
- coveralls
notifications:
irc:
channels:
- "ircs://ssl.ozinger.org:16667#hongminhee"
- "irc.freenod... | language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install pytest pytest-cov pytest-capturelog coveralls
- pip install -e .
script:
- python -mwand.version --verbose
- py.test --cov wand --durations=20
after_success:
- coveralls
notifications:
irc:
channels:
- "ircs://ssl.ozinger.org:16667#hongminhee"... | Install wand using -e option in Travis CI | Install wand using -e option in Travis CI
| YAML | mit | bpc/wand,samuelmaudo/wand,WangHong-yang/wand,pellaeon/wand,dahlia/wand | yaml | ## Code Before:
language: python
python:
- 2.6
- 2.7
- pypy
install:
- pip install pytest pytest-cov pytest-capturelog coveralls
script:
- python -mwand.version --verbose
- py.test --cov wand --durations=20
after_success:
- coveralls
notifications:
irc:
channels:
- "ircs://ssl.ozinger.org:16667#hongminhee"
... |
425be9ead4b5e7fc47511c48d8e46895ca7c5b3c | test/stubbatti.js | test/stubbatti.js | // test/stubbatti.js
/* global describe, it, afterEach, beforeEach */
'use strict';
var exec = require('child_process').exec;
var expect = require('chai').expect;
var Stubbatti = require('../src/stubbatti.js');
describe('Stubbatti', function () {
var stubbatti;
beforeEach(function () {
stubbatti... | // test/stubbatti.js
/* global describe, it, afterEach, beforeEach */
'use strict';
var exec = require('child_process').exec;
var expect = require('chai').expect;
var Stubbatti = require('../src/stubbatti.js');
var DEFAULT_HOST = '0.0.0.0:28987';
// test utility for get request the server
var get = function (pat... | Add test of delay option | Add test of delay option
| JavaScript | mit | kt3k/stubbatti | javascript | ## Code Before:
// test/stubbatti.js
/* global describe, it, afterEach, beforeEach */
'use strict';
var exec = require('child_process').exec;
var expect = require('chai').expect;
var Stubbatti = require('../src/stubbatti.js');
describe('Stubbatti', function () {
var stubbatti;
beforeEach(function () {
... |
034e5a13631ab77073de64e827804a82cf867e0e | packages/shared/lib/helpers/array.js | packages/shared/lib/helpers/array.js | export const range = (start, end) => {
const result = [];
for (let index = start; index < end; index++) {
result.push(index);
}
return result;
};
| export const range = (start = 0, end = 0, step = 1) => {
const result = [];
for (let index = start; index < end; index += step) {
result.push(index);
}
return result;
};
| Add step parameter to range helper | Add step parameter to range helper
| JavaScript | mit | ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient | javascript | ## Code Before:
export const range = (start, end) => {
const result = [];
for (let index = start; index < end; index++) {
result.push(index);
}
return result;
};
## Instruction:
Add step parameter to range helper
## Code After:
export const range = (start = 0, end = 0, step = 1) => {
const... |
b3fab13856ed0821e308e02ca60aa0f72cb93330 | test/Layout/itanium-union-bitfield.cpp | test/Layout/itanium-union-bitfield.cpp | // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \
// RUN: | FileCheck %s
union A {
int f1: 3;
A();
};
A::A() {}
union B {
int f1: 69;
B();
};
B::B() {}
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK-NEXT: 0 | i... | // RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \
// RUN: | FileCheck %s
union A {
int f1: 3;
A();
};
A::A() {}
union B {
char f1: 35;
B();
};
B::B() {}
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK-NEXT: 0 | ... | Test case B is updated to work for 32-bit and 64-bit platforms | Test case B is updated to work for 32-bit and 64-bit platforms
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@220271 91177308-0d34-0410-b5e6-96231b3b80d8
| C++ | apache-2.0 | apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... | c++ | ## Code Before:
// RUN: %clang_cc1 -emit-llvm-only -triple %itanium_abi_triple -fdump-record-layouts %s 2>/dev/null \
// RUN: | FileCheck %s
union A {
int f1: 3;
A();
};
A::A() {}
union B {
int f1: 69;
B();
};
B::B() {}
// CHECK:*** Dumping AST Record Layout
// CHECK-NEXT: 0 | union A
// CHECK... |
a719ab4c77418b25881e5214dad2eed9af9a7a7d | DependencyInjection/Compiler/AddParamConverterPass.php | DependencyInjection/Compiler/AddParamConverterPass.php | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler;
use Sy... | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\Compiler;
use Sy... | Fix bug introduced with CompilerPass refactoring | Fix bug introduced with CompilerPass refactoring
| PHP | mit | sensiolabs/SensioFrameworkExtraBundle,xabbuh/SensioFrameworkExtraBundle,chalasr/SensioFrameworkExtraBundle,chalasr/SensioFrameworkExtraBundle,henrikbjorn/ParamConverter | php | ## Code Before:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sensio\Bundle\FrameworkExtraBundle\DependencyInjection\C... |
091523aaf3ee4ed39bb9f186686dba583bbb0cc4 | packages/va/variation.yaml | packages/va/variation.yaml | homepage: ''
changelog-type: ''
hash: 5c2926e6b87d19784c5dfba366a3918e105b4ca3de7ceb9d05e57f7e1b7a04ab
test-bench-deps: {}
maintainer: cspollard@gmail.com
synopsis: nominal value with possible variations
changelog: ''
basic-deps:
semigroupoids: ! '>=5.0 && <6.0'
cereal: ! '>=0.5 && <0.6'
base: ! '>=4.8 && <5.0'
... | homepage: ''
changelog-type: ''
hash: 1dcfd0bb9d06bf81d63e8ca4ee735fcd4c5251ef6b73a868e4d3517a9c88d766
test-bench-deps: {}
maintainer: cspollard@gmail.com
synopsis: nominal value with possible variations
changelog: ''
basic-deps:
semigroupoids: ! '>=5.0 && <6.0'
cereal: ! '>=0.5 && <0.6'
base: ! '>=4.8 && <5.0'
... | Update from Hackage at 2017-06-10T11:57:53Z | Update from Hackage at 2017-06-10T11:57:53Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: ''
changelog-type: ''
hash: 5c2926e6b87d19784c5dfba366a3918e105b4ca3de7ceb9d05e57f7e1b7a04ab
test-bench-deps: {}
maintainer: cspollard@gmail.com
synopsis: nominal value with possible variations
changelog: ''
basic-deps:
semigroupoids: ! '>=5.0 && <6.0'
cereal: ! '>=0.5 && <0.6'
base: ! '... |
c0162789180f1f3cfb3f13f0961ef62bee6fa5ba | src/gitgraph.css | src/gitgraph.css | .gitgraph-tooltip {
position: absolute;
width: 400px;
height: 20px;
line-height: 20px;
padding: 10px;
font-size: 14px;
text-align: center;
color: #333;
background: #EEE;
border-radius: 5px;
margin-left: 25px;
margin-top: -15px;
}
.gitgraph-tooltip:after {
content:"";
position: absolute;
wi... | .gitgraph-tooltip {
position: absolute;
margin-top: -15px;
margin-left: 25px;
padding: 10px;
border-radius: 5px;
background: #EEE;
color: #333;
text-align: center;
font-size: 14px;
line-height: 20px;
}
.gitgraph-tooltip:after {
position: absolute;
top: 10px;
left: -20px;
width: 0;
height:... | Refactor and reorganize the CSS a bit | Refactor and reorganize the CSS a bit
| CSS | mit | nicoespeon/gitgraph.js,smoll/gitgraph.js,terhechte/gitgraph.js,fabienfeat/gitgraph.js,nicoespeon/gitgraph.js,terhechte/gitgraph.js,prrmichel/gitgraph.js,sourtin/gitgraph.js,smoll/gitgraph.js,DMIT-DanG/gitgraph.js,ringlej/gitgraph.js,ringlej/gitgraph.js,nicoespeon/gitgraph.js,calvinatintel/gitgraph.js,nicoespeon/gitgrap... | css | ## Code Before:
.gitgraph-tooltip {
position: absolute;
width: 400px;
height: 20px;
line-height: 20px;
padding: 10px;
font-size: 14px;
text-align: center;
color: #333;
background: #EEE;
border-radius: 5px;
margin-left: 25px;
margin-top: -15px;
}
.gitgraph-tooltip:after {
content:"";
position... |
8c26cb08dd08b7e34352e51b06ecb9129ac201a1 | stagecraft/libs/schemas/schemas.py | stagecraft/libs/schemas/schemas.py | from django.conf import settings
from json import loads as json_loads
from os import path
def get_schema():
schema_root = path.join(
settings.BASE_DIR,
'stagecraft/apps/datasets/schemas/timestamp.json'
)
with open(schema_root) as f:
json_f = json_loads(f.read())
return json_f
| from django.conf import settings
from json import loads as json_loads
from os import path
def get_schema():
schema_root = path.join(
settings.BASE_DIR,
'stagecraft/apps/datasets/schemas/timestamp.json'
)
with open(schema_root) as f:
schema = json_loads(f.read())
return schema
| Make the schema return object a bit more obvious and descriptive | Make the schema return object a bit more obvious and descriptive
| Python | mit | alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft,alphagov/stagecraft | python | ## Code Before:
from django.conf import settings
from json import loads as json_loads
from os import path
def get_schema():
schema_root = path.join(
settings.BASE_DIR,
'stagecraft/apps/datasets/schemas/timestamp.json'
)
with open(schema_root) as f:
json_f = json_loads(f.read())
... |
d147d8e271ef221844f76c040d5cfeda4e6beacb | app/templates/components/session-details.hbs | app/templates/components/session-details.hbs | <section>
<div class='row'>
<div class='col-md-4'>
<p>Invitational: {{boolean-helper model.isInvitational}}</p>
<ul class="list-group">
<li class="list-group-item">
<h5>Counts</h5>
</li>
<li class="list-group-item">
<span class="badge">{{model.newEntriesCoun... | <section>
<div class='row'>
<div class='col-md-4'>
<p>Invitational: {{boolean-helper model.isInvitational}}</p>
<p>Number of Rounds: {{model.numRounds}}</p>
<ul class="list-group">
<li class="list-group-item">
<h5>Counts</h5>
</li>
<li class="list-group-item">
... | Add number of rounds to session details | Add number of rounds to session details
| Handlebars | bsd-2-clause | barberscore/barberscore-web,barberscore/barberscore-web,barberscore/barberscore-web | handlebars | ## Code Before:
<section>
<div class='row'>
<div class='col-md-4'>
<p>Invitational: {{boolean-helper model.isInvitational}}</p>
<ul class="list-group">
<li class="list-group-item">
<h5>Counts</h5>
</li>
<li class="list-group-item">
<span class="badge">{{mode... |
e43c98022c90451f4b004994fc883f88d9ae35f6 | tests/module-loading/shared-test.sh | tests/module-loading/shared-test.sh |
halrun setup.hal > hal-output 2>&1
RESULT=$?
NUM_PINS=$(cat hal-output | egrep $(cat PIN_NAME_REGEX) | wc -l)
if [ $RESULT -ne $(cat RESULT) ]; then
exit 1
fi
if [ "$NUM_PINS" -ne $(cat NUM_PINS) ]; then
exit 1
fi
exit 0
|
halrun setup.hal > hal-output 2>&1
RESULT=$?
NUM_PINS=$(cat hal-output | egrep $(cat PIN_NAME_REGEX) | wc -l)
if [ $RESULT -ne $(cat RESULT) ]; then
echo "Test exited with status $RESULT; output:"
cat hal-output
exit 1
fi
if [ "$NUM_PINS" -ne $(cat NUM_PINS) ]; then
echo "Error: number of pins foun... | Print debug output on failure | tests/module-loading: Print debug output on failure
Recent intermittent test failures in tests/module-loading/*, but no
debug output.
Print contents of output files to give us a clue.
Fixes #89
| Shell | lgpl-2.1 | ArcEye/MK-Qt5,kinsamanka/machinekit,Cid427/machinekit,EqAfrica/machinekit,RunningLight/machinekit,ArcEye/machinekit-testing,mhaberler/machinekit,mhaberler/machinekit,EqAfrica/machinekit,araisrobo/machinekit,unseenlaser/machinekit,ArcEye/MK-Qt5,RunningLight/machinekit,araisrobo/machinekit,ArcEye/machinekit-testing,ArcEy... | shell | ## Code Before:
halrun setup.hal > hal-output 2>&1
RESULT=$?
NUM_PINS=$(cat hal-output | egrep $(cat PIN_NAME_REGEX) | wc -l)
if [ $RESULT -ne $(cat RESULT) ]; then
exit 1
fi
if [ "$NUM_PINS" -ne $(cat NUM_PINS) ]; then
exit 1
fi
exit 0
## Instruction:
tests/module-loading: Print debug output on failure... |
1e93d5b047533fcd1a5f1e3089f835cba2e7a8b3 | src/Resources/config/building.php | src/Resources/config/building.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Building settings.
|--------------------------------------------------------------------------
|
| This is a list of settings for laravel-building.
|
*/
'cache' => [
'ttl' => 5,
... | <?php
return [
/*
|--------------------------------------------------------------------------
| Building settings.
|--------------------------------------------------------------------------
|
| This is a list of settings for laravel-building.
|
*/
'cache' => [
'ttl' => 5,
... | Add component path to config | Add component path to config
| PHP | mit | Metrique/laravel-building,Metrique/laravel-building | php | ## Code Before:
<?php
return [
/*
|--------------------------------------------------------------------------
| Building settings.
|--------------------------------------------------------------------------
|
| This is a list of settings for laravel-building.
|
*/
'cache' => [
... |
9c256a150e9f30974a8668331d9469aec5b8c3e8 | continuum-webapp/src/main/webapp/user.jsp | continuum-webapp/src/main/webapp/user.jsp | <%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
<%@ taglib uri="continuum" prefix="c1" %>
<html>
<ww:i18n name="localization.Continuum">
<head>
<title>User</title>
</head>
<body>
<div ... | <%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
<%@ taglib uri="continuum" prefix="c1" %>
<html>
<ww:i18n name="localization.Continuum">
<head>
<title>User</title>
</head>
<body>
<div ... | Fix password fields Submitted by: Marvin King | [CONTINUUM-890] Fix password fields
Submitted by: Marvin King
git-svn-id: 1d22bf2b43db35b985fe5d7437c243537c14eeaa@447783 13f79535-47bb-0310-9956-ffa450edef68
| Java Server Pages | apache-2.0 | apache/continuum,apache/continuum,apache/continuum | java-server-pages | ## Code Before:
<%@ taglib uri="/webwork" prefix="ww" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c' %>
<%@ taglib uri="continuum" prefix="c1" %>
<html>
<ww:i18n name="localization.Continuum">
<head>
<title>User</title>
</head>
... |
d0a65bfeac62294ce218c3d4c2d57c7bfca6ad20 | RandomNumbers.h | RandomNumbers.h | /*===- RandomNumbers.h - libSimulation -========================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RANDOMNU... | /*===- RandomNumbers.h - libSimulation -========================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
#ifndef RANDOMNU... | Change rand cache to a struct since everything is public. Add comment. | Change rand cache to a struct since everything is public. Add comment. | C | bsd-3-clause | leios/demonsimulationcode,leios/demonsimulationcode | c | ## Code Before:
/*===- RandomNumbers.h - libSimulation -========================================
*
* DEMON
*
* This file is distributed under the BSD Open Source License. See LICENSE.TXT
* for details.
*
*===-----------------------------------------------------------------------===*/
... |
be03e3d6c1323e8c750afc1d4e80997f3d9d52f3 | cyder/cydhcp/interface/dynamic_intr/forms.py | cyder/cydhcp/interface/dynamic_intr/forms.py | from django import forms
from cyder.cydhcp.interface.dynamic_intr.models import (DynamicInterface,
DynamicIntrKeyValue)
from cyder.base.mixins import UsabilityFormMixin
from cyder.cydhcp.forms import RangeWizard
class DynamicInterfaceForm(RangeWizard, UsabilityF... | from django import forms
from cyder.cydhcp.interface.dynamic_intr.models import (DynamicInterface,
DynamicIntrKeyValue)
from cyder.base.mixins import UsabilityFormMixin
from cyder.cydhcp.forms import RangeWizard
class DynamicInterfaceForm(RangeWizard, UsabilityF... | Reset range to be required in dynamic intr form | Reset range to be required in dynamic intr form
| Python | bsd-3-clause | akeym/cyder,akeym/cyder,OSU-Net/cyder,akeym/cyder,zeeman/cyder,zeeman/cyder,murrown/cyder,OSU-Net/cyder,drkitty/cyder,drkitty/cyder,zeeman/cyder,murrown/cyder,drkitty/cyder,OSU-Net/cyder,murrown/cyder,akeym/cyder,drkitty/cyder,OSU-Net/cyder,murrown/cyder,zeeman/cyder | python | ## Code Before:
from django import forms
from cyder.cydhcp.interface.dynamic_intr.models import (DynamicInterface,
DynamicIntrKeyValue)
from cyder.base.mixins import UsabilityFormMixin
from cyder.cydhcp.forms import RangeWizard
class DynamicInterfaceForm(RangeWi... |
c113ae991ac240db0ff2db20fe339d7c12aff55e | README.md | README.md |
ESP8266 to Minecraft IoT code and documentation.
|
ESP8266 to Minecraft and the cloud IoT code and documentation.
## Contents
* [SETUP.md](SETUP.md) - Instructions on getting up and running with the Sparkfun ESP8266 Thing board
* [BasicTempSender](BasicTempSender) - An Arduino-on-ESP8266 sketch to take temperature readings and upload them to a CockleRake server
*... | Add table of contents to explain what the different files are for. | Add table of contents to explain what the different files are for.
| Markdown | apache-2.0 | mcqn/cocklecraft-of-things,mcqn/cocklecraft-of-things | markdown | ## Code Before:
ESP8266 to Minecraft IoT code and documentation.
## Instruction:
Add table of contents to explain what the different files are for.
## Code After:
ESP8266 to Minecraft and the cloud IoT code and documentation.
## Contents
* [SETUP.md](SETUP.md) - Instructions on getting up and running with the ... |
53bbcc3e08c023d37b879d49d86bf4be8e479bb8 | test/version_sorter_test.rb | test/version_sorter_test.rb | require 'test/unit'
require 'version_sorter'
class VersionSorterTest < Test::Unit::TestCase
def test_sorts_versions_correctly
versions = %w(1.0.9 1.0.10 2.0 3.1.4.2 1.0.9a)
sorted_versions = %w( 1.0.9a 1.0.9 1.0.10 2.0 3.1.4.2 )
assert_equal sorted_versions, VersionSorter.sort(versions)
end
def tes... | require 'test/unit'
require 'version_sorter'
require 'rubygems/version'
class VersionSorterTest < Test::Unit::TestCase
def test_sorts_versions_correctly
versions = %w(1.0.9 1.0.10 2.0 3.1.4.2 1.0.9a)
sorted_versions = %w( 1.0.9a 1.0.9 1.0.10 2.0 3.1.4.2 )
assert_equal sorted_versions, VersionSorter.sort... | Verify that we sort version numbers the same way RubyGems does | Verify that we sort version numbers the same way RubyGems does
| Ruby | mit | pope/version_sorter,github/version_sorter,pope/version_sorter,github/version_sorter,pope/version_sorter,github/version_sorter | ruby | ## Code Before:
require 'test/unit'
require 'version_sorter'
class VersionSorterTest < Test::Unit::TestCase
def test_sorts_versions_correctly
versions = %w(1.0.9 1.0.10 2.0 3.1.4.2 1.0.9a)
sorted_versions = %w( 1.0.9a 1.0.9 1.0.10 2.0 3.1.4.2 )
assert_equal sorted_versions, VersionSorter.sort(versions)
... |
d77bfe5fd9a9b56a2101a7f4e0a15f9a8f162cee | app/views/dashboard/projects/starred.html.haml | app/views/dashboard/projects/starred.html.haml | - @hide_top_links = true
- @no_container = true
- breadcrumb_title "Projects"
- page_title "Starred Projects"
- header_title "Projects", dashboard_projects_path
%div{ class: container_class }
= render "projects/last_push"
= render 'dashboard/projects_head'
- if params[:filter_projects] || any_projects?(@project... | - @hide_top_links = true
- @no_container = true
- breadcrumb_title "Projects"
- page_title "Starred Projects"
- header_title "Projects", dashboard_projects_path
%div{ class: container_class }
= render "projects/last_push"
= render 'dashboard/projects_head'
- if params[:filter_projects] || any_projects?(@project... | Fix empty starred projects header | Fix empty starred projects header
| Haml | mit | stoplightio/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,axilleas/gitlabhq,iiet/iiet-git,dreampet/gitlab,axilleas/gitlabhq,iiet/iiet-git,dreampet/gitlab,dreampet/gitlab,jirutka/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,jirutka/gitlabhq,jirutka/... | haml | ## Code Before:
- @hide_top_links = true
- @no_container = true
- breadcrumb_title "Projects"
- page_title "Starred Projects"
- header_title "Projects", dashboard_projects_path
%div{ class: container_class }
= render "projects/last_push"
= render 'dashboard/projects_head'
- if params[:filter_projects] || any_pr... |
8c84c60a2ea847c5f9e84c15b39e18d09130305f | piperd.yml | piperd.yml | agent:
name: sto4-buildagent-a1
fqdn: sto4-buildagent-a1.piper.ninjaloot.se
active: true
properties:
classes:
- piper.prop.FacterProp
db:
class: piper.db.RethinkDB
db: piper
host: localhost
port: 28015
api:
address: 127.0.0.1
port: 27001 | agent:
id: esm1-buildagent-a1
fqdn: esm1-buildagent-a1.piper.ninjaloot.se
active: true
properties:
classes:
- piper.prop.FacterProp
db:
class: piper.db.RethinkDB
db: piper
host: localhost
port: 28015
api:
address: 127.0.0.1
port: 27001 | Make agent name unique :D | Make agent name unique :D
| YAML | mit | thiderman/piper | yaml | ## Code Before:
agent:
name: sto4-buildagent-a1
fqdn: sto4-buildagent-a1.piper.ninjaloot.se
active: true
properties:
classes:
- piper.prop.FacterProp
db:
class: piper.db.RethinkDB
db: piper
host: localhost
port: 28015
api:
address: 127.0.0.1
port: 27001
## Instruction:
Make agent name unique ... |
fa880efddf862602b6806c2fa0965b89a7b3ebd7 | circle.yml | circle.yml | machine:
timezone:
Europe/Berlin
# Version of php to use
php:
version:
5.6.30
override:
- composer install --no-interaction
cache_directories:
- "vendor" # relative to the build directory
## Customize test commands
test:
override:
- vendor/bin/phpunit
| machine:
timezone:
Europe/Berlin
# Version of php to use
php:
version:
5.6.30
override:
- composer install --no-interaction
cache_directories:
- "vendor" # relative to the build directory
## Customize test commands
test:
override:
- vendor/bin/phpunit
pwd:
circ... | Add circuit-breaker directory to the test command | Add circuit-breaker directory to the test command
| YAML | apache-2.0 | aguimaraes/circuit-breaker | yaml | ## Code Before:
machine:
timezone:
Europe/Berlin
# Version of php to use
php:
version:
5.6.30
override:
- composer install --no-interaction
cache_directories:
- "vendor" # relative to the build directory
## Customize test commands
test:
override:
- vendor/bin/phpunit
## Ins... |
c047fb860bba74acf49e67c228d1f83a18b691ad | app/validators/variable_duplicates_validator.rb | app/validators/variable_duplicates_validator.rb | class VariableDuplicatesValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if options[:scope]
scoped = value.group_by { |variable| Array(options[:scope]).map { |attr| variable.send(attr) } }
scoped.each_value { |scope| validate_duplicates(record, attribute, scope) }
... | class VariableDuplicatesValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if options[:scope]
scoped = value.group_by { |variable| Array(options[:scope]).map { |attr| variable.send(attr) } } # rubocop:disable GitlabSecurity/PublicSend
scoped.each_value { |scope| validat... | Disable public send cop in variables duplicates validator | Disable public send cop in variables duplicates validator
| Ruby | mit | iiet/iiet-git,iiet/iiet-git,mmkassem/gitlabhq,stoplightio/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,dreampet/gitlab,stoplightio/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,jirutka/gitlabhq,mmkassem/... | ruby | ## Code Before:
class VariableDuplicatesValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if options[:scope]
scoped = value.group_by { |variable| Array(options[:scope]).map { |attr| variable.send(attr) } }
scoped.each_value { |scope| validate_duplicates(record, attribu... |
a4c3be5e5bc0ea8742c208d5ea6fd6a0244a2bb7 | dev/main.ts | dev/main.ts | /// <reference path='../src/sfc.d.ts' />
import Vue from 'vue';
import VueHighlightJS, { Options } from '../src';
import javascript from 'highlight.js/lib/languages/javascript';
import vue from '../lib/languages/vue';
import App from './App.vue';
import 'highlight.js/styles/agate.css';
Vue.use<Options>(VueHighligh... | /// <reference path='../src/sfc.d.ts' />
import Vue from 'vue';
import VueHighlightJS, { Options } from '../src';
import css from 'highlight.js/lib/languages/css';
import javascript from 'highlight.js/lib/languages/javascript';
import vue from '../lib/languages/vue';
import App from './App.vue';
import 'highlight.j... | Fix `<style>` content isn't highlighted | :bug: Fix `<style>` content isn't highlighted
| TypeScript | mit | gluons/vue-highlight.js | typescript | ## Code Before:
/// <reference path='../src/sfc.d.ts' />
import Vue from 'vue';
import VueHighlightJS, { Options } from '../src';
import javascript from 'highlight.js/lib/languages/javascript';
import vue from '../lib/languages/vue';
import App from './App.vue';
import 'highlight.js/styles/agate.css';
Vue.use<Opti... |
9287032ee553e4ee86e06d942dfc89d63619bd14 | InstallSymlink.cmake | InstallSymlink.cmake | function(INSTALL_SYMLINK FROM TO COMPONENT)
if (MSVC)
install(CODE
"get_filename_component(FROM_ABSOLUTE ${CMAKE_INSTALL_PREFIX}/${FROM}
ABSOLUTE)
file(TO_NATIVE_PATH \${FROM_ABSOLUTE} FROM_ABSOLUTE)
file(TO_NATIVE_PATH \${CMAKE_INSTALL_PREFIX}/${TO} TO)
message(\"mklink /j \${... | function(INSTALL_SYMLINK)
cmake_parse_arguments(THIS "" "" "FROM;TO;WORKING_DIRECTORY;COMPONENT" ${ARGN})
if(MSVC)
install(CODE
"message(\"mklink /j \${THIS_TO} \${THIS_FROM}\")
execute_process(COMMAND mklink /j \${THIS_TO} \${THIS_FROM}
WORKING_DIRECTORY ${CMAKE_INSTALL_PREF... | Install symlinks relative, not absolute | Install symlinks relative, not absolute
This is necessary to fix artifact copy in Jenkins. Besides, the
symlinking on Unix for the different SO versions of libraries
is also based on relative symlinks.
| CMake | bsd-3-clause | jafyvilla/CMake,shuaibarshad/KAUST-CMake,shurikasa/CMake,biddisco/CMake,shuaibarshad/KAUST-CMake,jafyvilla/CMake,ptoharia/CMake,ptoharia/CMake,ptoharia/CMake,biddisco/CMake,shurikasa/CMake,biddisco/CMake,shuaibarshad/KAUST-CMake,jafyvilla/CMake,biddisco/CMake,shuaibarshad/KAUST-CMake,shurikasa/CMake,jafyvilla/CMake,pto... | cmake | ## Code Before:
function(INSTALL_SYMLINK FROM TO COMPONENT)
if (MSVC)
install(CODE
"get_filename_component(FROM_ABSOLUTE ${CMAKE_INSTALL_PREFIX}/${FROM}
ABSOLUTE)
file(TO_NATIVE_PATH \${FROM_ABSOLUTE} FROM_ABSOLUTE)
file(TO_NATIVE_PATH \${CMAKE_INSTALL_PREFIX}/${TO} TO)
message... |
0c8898a52046f38e75c6754cb10455f0ae63043d | app/assets/javascripts/quick_add_url.js.coffee | app/assets/javascripts/quick_add_url.js.coffee | $(document).ready ->
quick_add_url_button = $('#quick-add-url-button')
input = $('#quick-add-url')
status = quick_add_url_button
quick_add_url_button.click ->
status.text('Submitting URL')
url = input.val()
$.ajax '/src_images/',
type: 'post'
contentType: 'application/json'
dataT... | $(document).ready ->
quick_add_url_button = $('#quick-add-url-button')
input = $('#quick-add-url')
status = quick_add_url_button
quick_add_url_button.click ->
status.text('Submitting URL')
url = input.val()
$.ajax '/src_images/',
type: 'post'
contentType: 'application/json'
dataT... | Fix bug in quick load url retry logic. | Fix bug in quick load url retry logic.
| CoffeeScript | mit | mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web,mmb/meme_captain_web | coffeescript | ## Code Before:
$(document).ready ->
quick_add_url_button = $('#quick-add-url-button')
input = $('#quick-add-url')
status = quick_add_url_button
quick_add_url_button.click ->
status.text('Submitting URL')
url = input.val()
$.ajax '/src_images/',
type: 'post'
contentType: 'application/j... |
dc4661936a3a59a57c141443a42bed9802ef37e3 | app/lib/service_provider.rb | app/lib/service_provider.rb | module ServiceProvider
def start_date
service_provider_service_start
end
def end_date
service_provider_service_end
end
def payee
service_provider_name || agency_name
end
def requested_amount
service_provider_service_amount
end
end
| module ServiceProvider
def display_start_date
service_provider_service_start
end
def display_end_date
service_provider_service_end
end
def payee
service_provider_name || agency_name
end
def requested_amount
service_provider_service_amount
end
end
| Fix method names in Supplier module. | Fix method names in Supplier module.
| Ruby | mit | weenhanceit/autism-funding,weenhanceit/autism-funding,weenhanceit/autism-funding,weenhanceit/autism-funding | ruby | ## Code Before:
module ServiceProvider
def start_date
service_provider_service_start
end
def end_date
service_provider_service_end
end
def payee
service_provider_name || agency_name
end
def requested_amount
service_provider_service_amount
end
end
## Instruction:
Fix method names in S... |
c581851a1839a63c4873ed632a62982d1c8bb6d0 | src/helpers/number_helper.h | src/helpers/number_helper.h | /*
* *****************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License
* is... | /*
* *****************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License
* is... | Fix windows build by requiring stdint.h | Fix windows build by requiring stdint.h
| C | apache-2.0 | Klopsch/ds3_browser,Klopsch/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,SpectraLogic/ds3_browser,Klopsch/ds3_browser | c | ## Code Before:
/*
* *****************************************************************************
* Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the... |
2696c7767144bf0a023c06dbab7b080714ab393e | README.rst | README.rst | Netvisor: Python API wrapper
============================
.. image:: https://secure.travis-ci.org/fastmonkeys/netvisor.py.png?branch=master
:target: http://travis-ci.org/fastmonkeys/netvisor.py
This is an Python wrapper for the Netvisor API.
Installation
------------
You can install netvisor with pip::
$ pi... | Netvisor: Python API wrapper
============================
.. image:: https://secure.travis-ci.org/fastmonkeys/netvisor.py.png?branch=master
:target: http://travis-ci.org/fastmonkeys/netvisor.py
This is an Python wrapper for the Netvisor API.
Installation
------------
You can install netvisor with pip::
$ pi... | Add Netvisor client creation instructions | Add Netvisor client creation instructions
| reStructuredText | mit | fastmonkeys/netvisor.py | restructuredtext | ## Code Before:
Netvisor: Python API wrapper
============================
.. image:: https://secure.travis-ci.org/fastmonkeys/netvisor.py.png?branch=master
:target: http://travis-ci.org/fastmonkeys/netvisor.py
This is an Python wrapper for the Netvisor API.
Installation
------------
You can install netvisor with... |
bf7bbf384f20f0e4ecbd949d20c4ba165edc5d0c | .vscode/settings.json | .vscode/settings.json | {
"cSpell.words": [
"Bieber",
"Kaashoek",
"Saltzer",
"asynchrony",
"datagram",
"outofmoneycom",
"unmarshall"
]
} | {
"cSpell.words": [
"asynchrony",
"bangbang",
"Bieber",
"datagram",
"Kaashoek",
"outofmoneycom",
"Saltzer",
"unmarshall"
]
} | Tidy up some spelling issues | Tidy up some spelling issues
| JSON | mit | UMM-CSci-Systems/Segmented-file-system-client,UMM-CSci-Systems/Segmented-file-system-client | json | ## Code Before:
{
"cSpell.words": [
"Bieber",
"Kaashoek",
"Saltzer",
"asynchrony",
"datagram",
"outofmoneycom",
"unmarshall"
]
}
## Instruction:
Tidy up some spelling issues
## Code After:
{
"cSpell.words": [
"asynchrony",
"bangbang",... |
b94855c9501e331c244c6d08f4f198f5671b0ce7 | rfishell.sh | rfishell.sh |
function rfi_template {
echo "<?php print shell_exec(\"${1}\");?>" > ${2}
}
function usage {
echo "usage: $0 [-f cmd.txt] -u URL"
echo "eg : $0 -f /var/www/hack.txt -u \"http://vulnsite.com/test.php?page=http://evil.com/cmd.txt\""
}
if [[ -z $1 ]]; then
usage
exit 0;
fi
prefix=""
suffix=""
url=""
cmdfile="... |
function rfi_template {
echo "<?php print shell_exec(\"${1}\");?>" > ${2}
}
function usage {
echo "usage: $0 -f cmd.txt -u URL [-c \"curl-options\"]"
echo "eg : $0 -f /var/www/hack.txt -u \"https://vulnsite.com/test.php?page=http://evil.com/cmd.txt\" -c \"--insecure\""
}
if [[ -z $1 ]]; then
usage
exit 0;
f... | Allow options to curl being passed | Allow options to curl being passed
| Shell | mit | superkojiman/rfishell | shell | ## Code Before:
function rfi_template {
echo "<?php print shell_exec(\"${1}\");?>" > ${2}
}
function usage {
echo "usage: $0 [-f cmd.txt] -u URL"
echo "eg : $0 -f /var/www/hack.txt -u \"http://vulnsite.com/test.php?page=http://evil.com/cmd.txt\""
}
if [[ -z $1 ]]; then
usage
exit 0;
fi
prefix=""
suffix=""
... |
76d2ccde88169d03c5d5e623e2a2393cdcd58d2c | shared/rakefiles/xk.rake | shared/rakefiles/xk.rake | require "rake/clean"
import "/rakefiles/xk_config.rake"
import "/rakefiles/xk_infra.rake"
import "/rakefiles/xk_util.rake"
require_relative "./secrets.rb"
require_relative "./sh_filter.rb"
@exekube_cmd = "/usr/local/bin/xk"
# This task is being called from entrypoint.rake and runs inside exekube container.
# It app... | require "rake/clean"
import "/rakefiles/xk_config.rake"
import "/rakefiles/xk_infra.rake"
import "/rakefiles/xk_util.rake"
require_relative "./secrets.rb"
require_relative "./sh_filter.rb"
@exekube_cmd = "/usr/local/bin/xk"
# This task is being called from entrypoint.rake and runs inside exekube container.
# It app... | Clean up cluster migration code after GPII-3568 | GPII-3671: Clean up cluster migration code after GPII-3568
| Ruby | bsd-3-clause | mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-terraform,mrtyler/gpii-terraform,mrtyler/gpii-infra,mrtyler/gpii-infra,mrtyler/gpii-infra | ruby | ## Code Before:
require "rake/clean"
import "/rakefiles/xk_config.rake"
import "/rakefiles/xk_infra.rake"
import "/rakefiles/xk_util.rake"
require_relative "./secrets.rb"
require_relative "./sh_filter.rb"
@exekube_cmd = "/usr/local/bin/xk"
# This task is being called from entrypoint.rake and runs inside exekube con... |
6f147e0efc95a0aea6c83699844dafc597a29afa | app/views/exercises/_form.html.erb | app/views/exercises/_form.html.erb | <div class="row">
<div class="col-md-offset-1 col-md-10">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Lista de exercício</h3>
</div>
<div class="box-body">
<%= form_for @exercise do |f| %>
<%= render 'shared/error_messages'... | <div class="row">
<div class="col-md-offset-1 col-md-10">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Lista de exercício</h3>
</div>
<div class="box-body">
<%= form_for @exercise do |f| %>
<%= render 'shared/error_messages'... | Add simplemde markdown editor to form | Add simplemde markdown editor to form
| HTML+ERB | mit | rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn,rwehresmann/farma_alg_reborn | html+erb | ## Code Before:
<div class="row">
<div class="col-md-offset-1 col-md-10">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Lista de exercício</h3>
</div>
<div class="box-body">
<%= form_for @exercise do |f| %>
<%= render 'shared... |
97f82ad403f21215f93027d4135e8230f9bfc010 | .travis.yml | .travis.yml | language: objective-c
osx_image: xcode7.2
xcode_project: Pantry.xcodeproj
xcode_scheme: Pantry
xcode_sdk: iphonesimulator9.2
| language: swift
osx_image: xcode8
xcode_project: Pantry.xcodeproj
xcode_scheme: Pantry
xcode_sdk: iphonesimulator9.3
| Update TravisCI config for Xcode 8 | Update TravisCI config for Xcode 8
| YAML | mit | nickoneill/Pantry,nickoneill/Pantry | yaml | ## Code Before:
language: objective-c
osx_image: xcode7.2
xcode_project: Pantry.xcodeproj
xcode_scheme: Pantry
xcode_sdk: iphonesimulator9.2
## Instruction:
Update TravisCI config for Xcode 8
## Code After:
language: swift
osx_image: xcode8
xcode_project: Pantry.xcodeproj
xcode_scheme: Pantry
xcode_sdk: iphonesimulat... |
72a0f9cc266a2a9ab8881541883fb5b8301c3ba1 | tasks/install-clt.yml | tasks/install-clt.yml | ---
- name: Enable apps to control the computer
shell: sudo sqlite3 "/library/application support/com.apple.tcc/tcc.db" 'INSERT INTO "access" VALUES("kTCCServiceAccessibility","/usr/libexec/sshd-keygen-wrapper",1,1,1,NULL,NULL);'
ignore_errors: yes
- name: Copy install_xcode.sh script
copy: src=install_xcode.sh... | ---
- name: Enable apps to control the computer
shell: sqlite3 "/library/application support/com.apple.tcc/tcc.db" 'INSERT INTO "access" VALUES("kTCCServiceAccessibility","/usr/libexec/sshd-keygen-wrapper",1,1,1,NULL,NULL);'
become: yes
ignore_errors: yes
- name: Copy install_xcode.sh script
copy: src=install... | Use become instead of sudo. | Use become instead of sudo.
| YAML | apache-2.0 | ivancasco/ansible-role-xcode | yaml | ## Code Before:
---
- name: Enable apps to control the computer
shell: sudo sqlite3 "/library/application support/com.apple.tcc/tcc.db" 'INSERT INTO "access" VALUES("kTCCServiceAccessibility","/usr/libexec/sshd-keygen-wrapper",1,1,1,NULL,NULL);'
ignore_errors: yes
- name: Copy install_xcode.sh script
copy: src=... |
39bd5362fd96ad187341738accd1a113f7e6353b | lib/tasks/reporting.rake | lib/tasks/reporting.rake |
namespace :reporting do
desc "Send a daily system report email to confguired recpients"
task send_daily_summary_email: :environment do
recipents = Array(ENV.fetch("DAILY_REPORT_EMAIL_RECIPIENTS", "dev@airslie.com").split(","))
Renalware::Reporting::ReportMailer.daily_summary(to: recipents)
end
end
|
namespace :reporting do
desc "Send a daily system report email to confguired recpients"
task send_daily_summary_email: :environment do
recipents = Array(ENV.fetch("DAILY_REPORT_EMAIL_RECIPIENTS", "dev@airslie.com").split(","))
Renalware::Reporting::ReportMailer.daily_summary(to: recipents).deliver_now
en... | Fix non-delivery of daily summary emails | Fix non-delivery of daily summary emails
| Ruby | mit | airslie/renalware-core,airslie/renalware-core,airslie/renalware-core,airslie/renalware-core | ruby | ## Code Before:
namespace :reporting do
desc "Send a daily system report email to confguired recpients"
task send_daily_summary_email: :environment do
recipents = Array(ENV.fetch("DAILY_REPORT_EMAIL_RECIPIENTS", "dev@airslie.com").split(","))
Renalware::Reporting::ReportMailer.daily_summary(to: recipents)
... |
ebb41c4ea260ab9905c7697648e2d1bb4b3914c8 | client.c | client.c |
int main(int argc, char *argv[])
{
char *host = "127.0.0.1";
int port = 2000;
int timeout = 2;
int sockfd, n;
char buffer[256];
struct sockaddr_in serv_addr;
struct hostent *server;
struct timeval tv;
tv.tv_sec = timeout;
server = gethostbyname(host);
bcopy((char *)serv... |
int main(int argc, char *argv[])
{
char *host = "127.0.0.1";
int port = 2000;
int timeout = 2;
int sockfd, n;
char buffer[256];
struct sockaddr_in serv_addr;
struct hostent *server;
struct timeval tv;
tv.tv_sec = timeout;
tv.tv_usec = 0;
server = gethostbyname(host);
... | Fix for Ubuntu 14.04, CentOS should work too | Fix for Ubuntu 14.04, CentOS should work too
Assign zero to tv.tv_usec, or it maybe any value.
The c version tiemout works on Ubuntu 14.04 after my fix. | C | mit | moret/socket-read-timeout,moret/socket-read-timeout | c | ## Code Before:
int main(int argc, char *argv[])
{
char *host = "127.0.0.1";
int port = 2000;
int timeout = 2;
int sockfd, n;
char buffer[256];
struct sockaddr_in serv_addr;
struct hostent *server;
struct timeval tv;
tv.tv_sec = timeout;
server = gethostbyname(host);
bc... |
57b115db17198c4e9e08c7fdeba3a77aab83415c | application/layout/index.js | application/layout/index.js | var builder = require('focus').component.builder;
var React = require('react');
var AppHeader = require('./app-header');
var stylableBehaviour = require('../../mixin/stylable');
var contentActionsMixin = {
mixins: [stylableBehaviour],
/** @inheriteddoc */
render: function renderActions() {
return (
<div... | var builder = require('focus').component.builder;
var React = require('react');
var AppHeader = require('./app-header');
var stylableBehaviour = require('../../mixin/stylable');
var contentActionsMixin = {
mixins: [stylableBehaviour],
getDefaultProps: function getDefaultLayoutProps(){
return {
AppHeader: ... | Update left menu from props. | [layout] Update left menu from props.
| JavaScript | mit | anisgh/focus-components,KleeGroup/focus-components,Bernardstanislas/focus-components,JRLK/focus-components,sebez/focus-components,get-focus/focus-components,JRLK/focus-components,JRLK/focus-components,KleeGroup/focus-components,asimsir/focus-components,Jerom138/focus-components,Ephrame/focus-components,Bernardstanislas... | javascript | ## Code Before:
var builder = require('focus').component.builder;
var React = require('react');
var AppHeader = require('./app-header');
var stylableBehaviour = require('../../mixin/stylable');
var contentActionsMixin = {
mixins: [stylableBehaviour],
/** @inheriteddoc */
render: function renderActions() {
ret... |
17c48f733744dab520f209500747d712f6b73742 | test/Assembler/2002-05-02-ParseError.ll | test/Assembler/2002-05-02-ParseError.ll | ; This should parse correctly without an 'implementation', but there seems to
; be a problem...
%List = type { int, %List* }
%List* "test"()
begin
ret %List* null
end
| ; This should parse correctly without an 'implementation', but there seems to
; be a problem...
%T = type int *
%T "test"()
begin
ret %T null
end
| Simplify the testcase a bit | Simplify the testcase a bit
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2439 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,GPUO... | llvm | ## Code Before:
; This should parse correctly without an 'implementation', but there seems to
; be a problem...
%List = type { int, %List* }
%List* "test"()
begin
ret %List* null
end
## Instruction:
Simplify the testcase a bit
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@2439 91177308-0d34-0410-b5e6-96... |
3765e23b8878498baf098d8eb7dda53f35a2ef11 | lib/math_captcha/has_captcha.rb | lib/math_captcha/has_captcha.rb | module MathCaptcha
module HasCaptcha
def check_captcha
self.errors.add_to_base("Captcha not answered correctly.") unless self.captcha.check(self.captcha_solution)
end
module ClassMethods
def has_captcha
attr_accessor :captcha, :captcha_solution
validates_presence_of :captc... | module MathCaptcha
module HasCaptcha
def validate_on_create
self.errors.add(:captcha_solution, "wrong answer.") unless self.captcha.check(self.captcha_solution)
end
module ClassMethods
def has_captcha
attr_accessor :captcha, :captcha_solution
validates_presence_of :captcha... | Make the captcha check work | Make the captcha check work
| Ruby | mit | niklas/rails-math-captcha | ruby | ## Code Before:
module MathCaptcha
module HasCaptcha
def check_captcha
self.errors.add_to_base("Captcha not answered correctly.") unless self.captcha.check(self.captcha_solution)
end
module ClassMethods
def has_captcha
attr_accessor :captcha, :captcha_solution
validates_pr... |
149881dc69428ea819ef7be6d7343a9dcb01243f | .travis.yml | .travis.yml | language: cpp
compiler:
- clang
- gcc
before_install:
- sudo apt-add-repository -y ppa:jkeiren/ppa
- if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- sudo apt-get update -qq
- if test $CC = gcc; then sudo apt-get install --yes --force-yes gcc-4.7 g++-4.7; fi
- if test $... | language: cpp
compiler:
- clang
- gcc
before_install:
- sudo apt-add-repository -y ppa:jkeiren/ppa
- if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- sudo apt-get update -qq
- if test $CC = gcc; then sudo apt-get install --yes --force-yes gcc-4.7 g++-4.7; fi
- if test $... | Install newer version of cmake. | Install newer version of cmake.
| YAML | mit | Bablawn3d5/entityx,Bablawn3d5/entityx,Bablawn3d5/entityx | yaml | ## Code Before:
language: cpp
compiler:
- clang
- gcc
before_install:
- sudo apt-add-repository -y ppa:jkeiren/ppa
- if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- sudo apt-get update -qq
- if test $CC = gcc; then sudo apt-get install --yes --force-yes gcc-4.7 g++-4.7; ... |
e098cade4b3738afab6b480b996a47cf676da661 | library/build.sbt | library/build.sbt | seq(scalariformSettings: _*)
name := "cilib"
version := "0.8-SNAPSHOT"
publishArtifact in packageDoc := false
parallelExecution in Test := false
scalaVersion := "2.9.2"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "6.0.4",
"com.google.guava" % "guava" % "11.0.1",
"org.parboiled" % "par... | seq(scalariformSettings: _*)
name := "cilib"
version := "0.8-SNAPSHOT"
publishArtifact in packageDoc := false
parallelExecution in Test := false
scalaVersion := "2.9.2"
libraryDependencies ++= Seq(
"com.google.guava" % "guava" % "11.0.1",
"org.parboiled" % "parboiled-core" % "0.11.0",
"org.parboiled" ... | Remove unneeded dependencies (for now at least) | Remove unneeded dependencies (for now at least)
Signed-off-by: Gary Pamparà <46654e9f53f0e5c1be5f3914582d375e0aa2156c@gmail.com>
| Scala | apache-2.0 | cirg-up/cilib | scala | ## Code Before:
seq(scalariformSettings: _*)
name := "cilib"
version := "0.8-SNAPSHOT"
publishArtifact in packageDoc := false
parallelExecution in Test := false
scalaVersion := "2.9.2"
libraryDependencies ++= Seq(
"org.scalaz" %% "scalaz-core" % "6.0.4",
"com.google.guava" % "guava" % "11.0.1",
"org.p... |
8ce32d2ee2eda5a278593d9f61192ede2998a893 | js/pihole/gravity.js | js/pihole/gravity.js | function eventsourcetest() {
var alInfo = $("#alInfo");
var alSuccess = $("#alSuccess");
var ta = document.getElementById("output");
var source = new EventSource("php/gravity.sh.php");
alInfo.hide();
alSuccess.hide();
source.addEventListener("message", function(e) {
if(e.data === "... | function eventsourcetest() {
var alInfo = $("#alInfo");
var alSuccess = $("#alSuccess");
var ta = document.getElementById("output");
var source = new EventSource("php/gravity.sh.php");
alInfo.hide();
alSuccess.hide();
source.addEventListener("message", function(e) {
if(e.data === "... | Reduce complexity of code as requested by codacy... | Reduce complexity of code as requested by codacy...
| JavaScript | mit | jacobsalmela/AdminLTE,jacobsalmela/AdminLTE,jacobsalmela/AdminLTE,jacobsalmela/AdminLTE | javascript | ## Code Before:
function eventsourcetest() {
var alInfo = $("#alInfo");
var alSuccess = $("#alSuccess");
var ta = document.getElementById("output");
var source = new EventSource("php/gravity.sh.php");
alInfo.hide();
alSuccess.hide();
source.addEventListener("message", function(e) {
... |
e7cc7466c9cff59a4ea8a5c11b9ef4871371dde5 | lib/ankirb/anki/deck.rb | lib/ankirb/anki/deck.rb | module Anki
class Deck
attr_accessor :name, :desc
attr_reader :id, :cards
def initialize name
@name = name
@id = Time.now.to_i
@cards = {}
end
def add_card card
card.deck = self
@cards[card.id] = card
end
def cards
@cards.values
end
de... | module Anki
class Deck
attr_accessor :name, :desc
attr_reader :id, :cards
def initialize name
@name = name
@id = Time.now.to_i
@cards = {}
end
def add_card card
card.deck = self
@cards[card.id] = card
end
def cards
@cards.values
end
de... | Add front / back aliases. | Add front / back aliases.
| Ruby | mit | rkachowski/anki-rb | ruby | ## Code Before:
module Anki
class Deck
attr_accessor :name, :desc
attr_reader :id, :cards
def initialize name
@name = name
@id = Time.now.to_i
@cards = {}
end
def add_card card
card.deck = self
@cards[card.id] = card
end
def cards
@cards.values... |
773983c4d228d2d875c817d5e28ad0dc225c7cd1 | index.md | index.md | ---
layout: default
---
{:height="270px" width="400px"}
# Andy Chase
* [<i class="fa fa-github-alt" aria-hidden="true"></i> github](https://github.com/andychase)
* [<i class="fa fa-flickr" aria-hidden="true"></i>
flickr](http://www.flickr.com/photos/asperous/sets/)
* [<i clas... | ---
layout: default
---
{:height="270px" width="400px"}
# Andy Chase
* [<i class="fa fa-github-alt" aria-hidden="true"></i> github](https://github.com/andychase)
* [<i class="fa fa-flickr" aria-hidden="true"></i>
flickr](http://www.flickr.com/photos/asperous/sets/)
{: #social... | Remove linkedin for now since its deactivated currently | Remove linkedin for now since its deactivated currently | Markdown | cc0-1.0 | andychase/andychase.github.io | markdown | ## Code Before:
---
layout: default
---
{:height="270px" width="400px"}
# Andy Chase
* [<i class="fa fa-github-alt" aria-hidden="true"></i> github](https://github.com/andychase)
* [<i class="fa fa-flickr" aria-hidden="true"></i>
flickr](http://www.flickr.com/photos/asperous/s... |
559cbc6628dc8c59423fbebb3d2cc1319d9e7863 | .travis.yml | .travis.yml | language: ruby
before_install:
- sudo apt-get update -qq
- sudo apt-get install pkg-config cmake openssl
- wget http://mosquitto.org/files/source/mosquitto-1.2.3.tar.gz
install:
- tar xzf mosquitto-1.2.3.tar.gz
- cd mosquitto-1.2.3
- cmake .
- sudo make install
- bundle install
before_script:
- erb te... | language: ruby
before_install:
- sudo apt-get update -qq
- sudo apt-get install pkg-config cmake openssl
- wget http://mosquitto.org/files/source/mosquitto-1.2.3.tar.gz
install:
- tar xzf mosquitto-1.2.3.tar.gz
- cd mosquitto-1.2.3
- cmake .
- sudo make install
- bundle install
before_script:
- erb $T... | Use absolute paths to mosquitto conf | Use absolute paths to mosquitto conf
| YAML | bsd-3-clause | bergie/mosquitto,bergie/mosquitto,bergie/mosquitto,bergie/mosquitto,bergie/mosquitto | yaml | ## Code Before:
language: ruby
before_install:
- sudo apt-get update -qq
- sudo apt-get install pkg-config cmake openssl
- wget http://mosquitto.org/files/source/mosquitto-1.2.3.tar.gz
install:
- tar xzf mosquitto-1.2.3.tar.gz
- cd mosquitto-1.2.3
- cmake .
- sudo make install
- bundle install
before_sc... |
14a1d1514e1ae168f27177fc641bc2e13b9e6210 | Android/Sample/web.about/src/main/java/net/wequick/example/small/web/about/MainActivity.java | Android/Sample/web.about/src/main/java/net/wequick/example/small/web/about/MainActivity.java | package net.wequick.example.small.web.about;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import net.wequick.small.Small;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSta... | package net.wequick.example.small.web.about;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import net.wequick.small.Small;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceSta... | Fix the crash while running web.about module alone | Fix the crash while running web.about module alone
| Java | apache-2.0 | wequick/Small,wequick/Small,zhaoya188/Small,wequick/Small,zhaoya188/Small,zhaoya188/Small,zhaoya188/Small,wequick/Small,wequick/Small | java | ## Code Before:
package net.wequick.example.small.web.about;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import net.wequick.small.Small;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... |
82c58871829f210c1711845b388c5653a5af28ad | addons/docs/src/frameworks/html/config.tsx | addons/docs/src/frameworks/html/config.tsx | import React from 'react';
import { StoryFn } from '@storybook/addons';
export const parameters = {
docs: {
inlineStories: true,
prepareForInline: (storyFn: StoryFn<string>) => (
// eslint-disable-next-line react/no-danger
<div dangerouslySetInnerHTML={{ __html: storyFn() }} />
),
},
};
| import React from 'react';
import { StoryFn } from '@storybook/addons';
export const parameters = {
docs: {
inlineStories: true,
prepareForInline: (storyFn: StoryFn<string>) => {
const html = storyFn();
if (typeof html === 'string') {
// eslint-disable-next-line react/no-danger
re... | Fix inline rendering for DOM nodes in HTML | Addon-docs: Fix inline rendering for DOM nodes in HTML
| TypeScript | mit | storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,kadirahq/react-storybook,kadirahq/react-storybook,storybooks/react-storybook,storybooks/storybook,storybooks/storybook,storybooks/storybook,storybooks/react-storybook | typescript | ## Code Before:
import React from 'react';
import { StoryFn } from '@storybook/addons';
export const parameters = {
docs: {
inlineStories: true,
prepareForInline: (storyFn: StoryFn<string>) => (
// eslint-disable-next-line react/no-danger
<div dangerouslySetInnerHTML={{ __html: storyFn() }} />
... |
06ac02914eddad90e4aeeecce77727a02ea0c6c3 | README.md | README.md | IaxsCore
========
Provides the core instance access interfaces and controller plugins for working with instances of whatever you so choose.
| :warning: This repository is archived and exists only for historical purposes :warning:
IaxsCore
========
Provides the core instance access interfaces and controller plugins for working with instances of whatever you so choose.
| Prepare the repo to be archived | Prepare the repo to be archived | Markdown | bsd-3-clause | lightdatasys/iaxs-core | markdown | ## Code Before:
IaxsCore
========
Provides the core instance access interfaces and controller plugins for working with instances of whatever you so choose.
## Instruction:
Prepare the repo to be archived
## Code After:
:warning: This repository is archived and exists only for historical purposes :warning:
IaxsCore
==... |
cc87b8513b2e334e8bfd3a725ea6bf48170ce5e8 | android/app/src/main/java/com/reactnativenavigation/controllers/SplashActivity.java | android/app/src/main/java/com/reactnativenavigation/controllers/SplashActivity.java | package com.reactnativenavigation.controllers;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.reactnativenavigation.NavigationApplication;
public abstract class SplashActivity e... | package com.reactnativenavigation.controllers;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.reactnativenavigation.NavigationApplica... | Add option to set custom splash layout | Add option to set custom splash layout
| Java | mit | iotize/react-native-navigation,snapme/react-native-navigation,holmesal/react-native-navigation,uni-react/react-native-navigation,Ehesp/react-native-navigation,uni-react/react-native-navigation,Jpoliachik/react-native-navigation,Ehesp/react-native-navigation,MattDavies/react-native-navigation,Jpoliachik/react-native-nav... | java | ## Code Before:
package com.reactnativenavigation.controllers;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.reactnativenavigation.NavigationApplication;
public abstract class ... |
c8b824c30aec6e7d361f757213353f220cc9fbd9 | README.md | README.md | [Apache Tika](http://tika.apache.org/) Jaccard Based Image Similarity
===
This project demonstrates using the [Tika-Python](http://github.com/chrismattmann/tika-python)
package (Python port of Apache Tika) to compute Image similarity based on Metadata features.
The script currently iterates over all jpg images in the ... | [Apache Tika](http://tika.apache.org/) Jaccard Based Image Similarity
===
This project demonstrates using the [Tika-Python](http://github.com/chrismattmann/tika-python)
package (Python port of Apache Tika) to compute Image similarity based on Metadata features.
The script currently iterates over all jpg images in the ... | Add in instructions for clustering. | Add in instructions for clustering.
| Markdown | apache-2.0 | YongchaoShang/tika-img-similarity,dongnizh/tika-img-similarity,harsham05/tika-similarity,RashmiNalwad/tika-similarity,RashmiNalwad/tika-similarity,dongnizh/tika-img-similarity,chrismattmann/tika-similarity,chrismattmann/tika-img-similarity,chrismattmann/tika-img-similarity,Lerex/tika-img-similarity,harsham05/tika-simil... | markdown | ## Code Before:
[Apache Tika](http://tika.apache.org/) Jaccard Based Image Similarity
===
This project demonstrates using the [Tika-Python](http://github.com/chrismattmann/tika-python)
package (Python port of Apache Tika) to compute Image similarity based on Metadata features.
The script currently iterates over all jp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.