commit stringlengths 40 40 | old_file stringlengths 4 184 | new_file stringlengths 4 184 | old_contents stringlengths 1 3.6k | new_contents stringlengths 5 3.38k | subject stringlengths 15 778 | message stringlengths 16 6.74k | lang stringclasses 201
values | license stringclasses 13
values | repos stringlengths 6 116k | config stringclasses 201
values | content stringlengths 137 7.24k | diff stringlengths 26 5.55k | diff_length int64 1 123 | relative_diff_length float64 0.01 89 | n_lines_added int64 0 108 | n_lines_deleted int64 0 106 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5fb1f2ebe1de0bce691a9fc9a215fb83f7619749 | concrete/src/Summary/Data/Field/DatetimeDataFieldData.php | concrete/src/Summary/Data/Field/DatetimeDataFieldData.php | <?php
namespace Concrete\Core\Summary\Data\Field;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use DateTime;
use DateTimeZone;
class DatetimeDataFieldData implements DataFieldDataInterface
{
/**
* @var DateTime
*/
protected $dateTime;
public function __construct(DateT... | <?php
namespace Concrete\Core\Summary\Data\Field;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use DateTime;
use DateTimeZone;
class DatetimeDataFieldData implements DataFieldDataInterface
{
/**
* @var DateTime | null
*/
protected $dateTime;
public function __construc... | Fix error where DateTime is sometimes null | Fix error where DateTime is sometimes null
| PHP | mit | mlocati/concrete5,mlocati/concrete5,mlocati/concrete5,mlocati/concrete5 | php | ## Code Before:
<?php
namespace Concrete\Core\Summary\Data\Field;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use DateTime;
use DateTimeZone;
class DatetimeDataFieldData implements DataFieldDataInterface
{
/**
* @var DateTime
*/
protected $dateTime;
public function _... | <?php
namespace Concrete\Core\Summary\Data\Field;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use DateTime;
use DateTimeZone;
class DatetimeDataFieldData implements DataFieldDataInterface
{
/**
- * @var DateTime
+ * @var DateTime | null
? ... | 19 | 0.316667 | 14 | 5 |
6c757a29a37d23f02a75752e76a6785e657c4ffd | src/training/CMakeLists.txt | src/training/CMakeLists.txt | cmake_minimum_required(VERSION 2.8)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/base)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/inference)
ADD_EXECUTABLE(train train.cpp)
TARGET_LINK_LIBRARIES(train base inference gflags glog jsoncpp)
ADD_EXECUTABLE(eval eval.cpp)
TARGET_LINK_LIBRARIES(eval base inference gflags glog json... | cmake_minimum_required(VERSION 2.8)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/base)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/inference)
ADD_EXECUTABLE(train train.cpp)
TARGET_LINK_LIBRARIES(train base inference gflags glog jsoncpp pthread)
ADD_EXECUTABLE(eval eval.cpp)
TARGET_LINK_LIBRARIES(eval base inference gflags g... | Fix the build with newer gcc versions. | Fix the build with newer gcc versions.
| Text | apache-2.0 | chubbymaggie/Nice2Predict,urialon/Nice2Predict,lazyparser/Nice2Predict,urialon/Nice2Predict,chubbymaggie/Nice2Predict,urialon/Nice2Predict,eth-srl/Nice2Predict,lazyparser/Nice2Predict,lazyparser/Nice2Predict,lazyparser/Nice2Predict,chubbymaggie/Nice2Predict,lazyparser/Nice2Predict,eth-srl/Nice2Predict,urialon/Nice2Pred... | text | ## Code Before:
cmake_minimum_required(VERSION 2.8)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/base)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/inference)
ADD_EXECUTABLE(train train.cpp)
TARGET_LINK_LIBRARIES(train base inference gflags glog jsoncpp)
ADD_EXECUTABLE(eval eval.cpp)
TARGET_LINK_LIBRARIES(eval base inference ... | cmake_minimum_required(VERSION 2.8)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/base)
INCLUDE_DIRECTORIES(${NICE2_SOURCE_DIR}/inference)
ADD_EXECUTABLE(train train.cpp)
- TARGET_LINK_LIBRARIES(train base inference gflags glog jsoncpp)
+ TARGET_LINK_LIBRARIES(train base inference gflags glog jsoncpp pthread)
?... | 4 | 0.4 | 2 | 2 |
526e6409567610718bd7b5e02e359da3da06dcf0 | lib/sequent/web/sinatra/sinatra.rb | lib/sequent/web/sinatra/sinatra.rb | require_relative 'form_helpers'
require_relative 'tag_helper'
require_relative 'fieldset'
require_relative 'form'
require_relative 'simple_command_service_helpers'
| require_relative 'form_helpers'
require_relative 'tag_helper'
require_relative 'fieldset'
require_relative 'form'
require_relative 'simple_command_service_helpers'
require_relative 'app'
| Add new app to requires | Add new app to requires | Ruby | mit | zilverline/sequent,zilverline/sequent | ruby | ## Code Before:
require_relative 'form_helpers'
require_relative 'tag_helper'
require_relative 'fieldset'
require_relative 'form'
require_relative 'simple_command_service_helpers'
## Instruction:
Add new app to requires
## Code After:
require_relative 'form_helpers'
require_relative 'tag_helper'
require_relative 'fiel... | require_relative 'form_helpers'
require_relative 'tag_helper'
require_relative 'fieldset'
require_relative 'form'
require_relative 'simple_command_service_helpers'
+ require_relative 'app' | 1 | 0.2 | 1 | 0 |
3669caf70f32aaffe629d22634b1961e03275b8c | lib/openc_bot/helpers/pseudo_machine_parser.rb | lib/openc_bot/helpers/pseudo_machine_parser.rb |
require "openc_bot/pseudo_machine_company_fetcher_bot"
module OpencBot
module Helpers
# Parsing activities
module PseudoMachineParser
include OpencBot::PseudoMachineCompanyFetcherBot
def input_stream
"fetcher"
end
def parse(fetched_datum)
# implement in bot
... |
require "openc_bot/pseudo_machine_company_fetcher_bot"
module OpencBot
module Helpers
# Parsing activities
module PseudoMachineParser
include OpencBot::PseudoMachineCompanyFetcherBot
def input_stream
"fetcher"
end
def parse(fetched_datum)
# implement in bot
... | Allow external bots persisting parsed data record-by-record by yielding a block | Allow external bots persisting parsed data record-by-record by yielding a block
| Ruby | mit | openc/openc_bot,openc/openc_bot | ruby | ## Code Before:
require "openc_bot/pseudo_machine_company_fetcher_bot"
module OpencBot
module Helpers
# Parsing activities
module PseudoMachineParser
include OpencBot::PseudoMachineCompanyFetcherBot
def input_stream
"fetcher"
end
def parse(fetched_datum)
# implement... |
require "openc_bot/pseudo_machine_company_fetcher_bot"
module OpencBot
module Helpers
# Parsing activities
module PseudoMachineParser
include OpencBot::PseudoMachineCompanyFetcherBot
def input_stream
"fetcher"
end
def parse(fetched_datum)
... | 23 | 0.621622 | 18 | 5 |
6b030b2c9eb9c7ad9933228b2643bd79a5ea2834 | metadata/be.knars.netflixtoimdb.yml | metadata/be.knars.netflixtoimdb.yml | AntiFeatures:
- NonFreeNet
- NonFreeDep
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://github.com/Px3XjG6P/NetflixtoIMDb
IssueTracker: https://github.com/Px3XjG6P/NetflixtoIMDb/issues
AutoName: Netflix to IMDb
Description: |-
When a Netflix user taps the share icon in the Netflix app
... | AntiFeatures:
- NonFreeNet
- NonFreeDep
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://github.com/Px3XjG6P/NetflixtoIMDb
IssueTracker: https://github.com/Px3XjG6P/NetflixtoIMDb/issues
AutoName: NI
Description: |-
When a Netflix user taps the share icon in the Netflix app
and then sele... | Update NI to 5.1 (6) | Update NI to 5.1 (6)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeNet
- NonFreeDep
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://github.com/Px3XjG6P/NetflixtoIMDb
IssueTracker: https://github.com/Px3XjG6P/NetflixtoIMDb/issues
AutoName: Netflix to IMDb
Description: |-
When a Netflix user taps the share icon in the ... | AntiFeatures:
- NonFreeNet
- NonFreeDep
Categories:
- Multimedia
License: GPL-3.0-only
SourceCode: https://github.com/Px3XjG6P/NetflixtoIMDb
IssueTracker: https://github.com/Px3XjG6P/NetflixtoIMDb/issues
- AutoName: Netflix to IMDb
+ AutoName: NI
Description: |-
When a Netflix user taps... | 13 | 0.342105 | 10 | 3 |
38706722754fb13c61056f9be9d830f72f9c4e10 | lib/shared/log/tasks.js | lib/shared/log/tasks.js | 'use strict';
var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');
function logTasks(tree, getDescription) {
var padding = 0;
archy(tree)
.split('\n')
.filter(function(v, i) {
// Log first line as is
if (i === 0) {
gutil.log(v);
return f... | 'use strict';
var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');
function logTasks(tree, getDescription) {
var padding = 0;
var rdependency = /[ β] [ββ]/;
archy(tree)
.split('\n')
.filter(function(v, i) {
// Log first line as is
if (i === 0) {
... | Fix dependency regex in logTasks | Fix dependency regex in logTasks
| JavaScript | mit | jchip/gulp-clap,jchip/gulp-clap | javascript | ## Code Before:
'use strict';
var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');
function logTasks(tree, getDescription) {
var padding = 0;
archy(tree)
.split('\n')
.filter(function(v, i) {
// Log first line as is
if (i === 0) {
gutil.log(v);
... | 'use strict';
var archy = require('archy');
var chalk = require('chalk');
var gutil = require('gulp-util');
function logTasks(tree, getDescription) {
var padding = 0;
+ var rdependency = /[ β] [ββ]/;
archy(tree)
.split('\n')
.filter(function(v, i) {
// Log first line as is
... | 20 | 0.5 | 11 | 9 |
edaa6b7e0d8281af1aa0e568c36d67f3d4d05240 | Cargo.toml | Cargo.toml | [package]
authors = ["messense <messense@icloud.com>"]
description = "BosonNLP SDK for Rust"
documentation = "https://messense.github.io/bosonnlp-rs"
homepage = "https://github.com/messense/bosonnlp-rs"
keywords = ["nlp", "bosonnlp", "tag", "ner", "sentiment"]
license = "MIT"
name = "bosonnlp"
readme = "README.md"
repo... | [package]
authors = ["messense <messense@icloud.com>"]
description = "BosonNLP SDK for Rust"
documentation = "https://messense.github.io/bosonnlp-rs"
homepage = "https://github.com/messense/bosonnlp-rs"
keywords = ["nlp", "bosonnlp", "tag", "ner", "sentiment"]
license = "MIT"
name = "bosonnlp"
readme = "README.md"
repo... | Use pure Rust flate2 backend | Use pure Rust flate2 backend
| TOML | mit | messense/bosonnlp-rs | toml | ## Code Before:
[package]
authors = ["messense <messense@icloud.com>"]
description = "BosonNLP SDK for Rust"
documentation = "https://messense.github.io/bosonnlp-rs"
homepage = "https://github.com/messense/bosonnlp-rs"
keywords = ["nlp", "bosonnlp", "tag", "ner", "sentiment"]
license = "MIT"
name = "bosonnlp"
readme = ... | [package]
authors = ["messense <messense@icloud.com>"]
description = "BosonNLP SDK for Rust"
documentation = "https://messense.github.io/bosonnlp-rs"
homepage = "https://github.com/messense/bosonnlp-rs"
keywords = ["nlp", "bosonnlp", "tag", "ner", "sentiment"]
license = "MIT"
name = "bosonnlp"
readme ... | 4 | 0.111111 | 2 | 2 |
64ab241c9566e391d6084310edf55108d59340fa | core/app/models/spree/product_property.rb | core/app/models/spree/product_property.rb | module Spree
class ProductProperty < ActiveRecord::Base
belongs_to :product
belongs_to :property
validates :property, :presence => true
validates_length_of :value, :maximum => 255
attr_accessible :property_name, :value
# virtual attributes for use with AJAX completion stuff
def property... | module Spree
class ProductProperty < ActiveRecord::Base
belongs_to :product
belongs_to :property
validates :property, :presence => true
validates :value, :length => { :maximum => 255 }
attr_accessible :property_name, :value
# virtual attributes for use with AJAX completion stuff
def pro... | Use sexy Rails 3 validation for ProductProperty | Use sexy Rails 3 validation for ProductProperty
| Ruby | bsd-3-clause | zaeznet/spree,siddharth28/spree,cutefrank/spree,kitwalker12/spree,devilcoders/solidus,jhawthorn/spree,dafontaine/spree,forkata/solidus,zamiang/spree,richardnuno/solidus,RatioClothing/spree,keatonrow/spree,zaeznet/spree,Boomkat/spree,yiqing95/spree,alvinjean/spree,orenf/spree,Migweld/spree,zaeznet/spree,thogg4/spree,Sad... | ruby | ## Code Before:
module Spree
class ProductProperty < ActiveRecord::Base
belongs_to :product
belongs_to :property
validates :property, :presence => true
validates_length_of :value, :maximum => 255
attr_accessible :property_name, :value
# virtual attributes for use with AJAX completion stuff
... | module Spree
class ProductProperty < ActiveRecord::Base
belongs_to :product
belongs_to :property
validates :property, :presence => true
- validates_length_of :value, :maximum => 255
+ validates :value, :length => { :maximum => 255 }
attr_accessible :property_name, :value
... | 2 | 0.08 | 1 | 1 |
486dcbbe70cf5d77da40b191658d11a53ce37620 | lisp/init-purescript.el | lisp/init-purescript.el | (when (maybe-require-package 'purescript-mode)
(when (maybe-require-package 'psc-ide)
(add-hook 'purescript-mode-hook
(lambda ()
(psc-ide-mode)
(company-mode)
(flycheck-mode)
(turn-on-purescript-indentation))))
(when (maybe-require-pa... | (when (maybe-require-package 'purescript-mode)
(when (maybe-require-package 'psc-ide)
(add-hook 'purescript-mode-hook
(lambda ()
(psc-ide-mode)
(company-mode)
(flycheck-mode)
(turn-on-purescript-indentation))))
(when (maybe-require-p... | Add psci support for purescript | Add psci support for purescript
| Emacs Lisp | bsd-2-clause | purcell/emacs.d,sgarciac/emacs.d,arthurl/emacs.d,blueseason/emacs.d,gsmlg/emacs.d,svenyurgensson/emacs.d,blueabysm/emacs.d,mmqmzk/emacs.d,wegatron/emacs.d,cjqw/emacs.d,lust4life/emacs.d,braveoyster/emacs.d,kongfy/emacs.d,emuio/emacs.d,qianwan/emacs.d,dcorking/emacs.d,baohaojun/emacs.d,krzysz00/emacs.d,me020523/emacs.d,... | emacs-lisp | ## Code Before:
(when (maybe-require-package 'purescript-mode)
(when (maybe-require-package 'psc-ide)
(add-hook 'purescript-mode-hook
(lambda ()
(psc-ide-mode)
(company-mode)
(flycheck-mode)
(turn-on-purescript-indentation))))
(when (... | (when (maybe-require-package 'purescript-mode)
(when (maybe-require-package 'psc-ide)
(add-hook 'purescript-mode-hook
(lambda ()
(psc-ide-mode)
(company-mode)
(flycheck-mode)
(turn-on-purescript-indentation))))
+
+ (w... | 11 | 0.846154 | 10 | 1 |
8168d73acc7a5e26f8a107f7ff1174362777499a | docs/MQTT-API.md | docs/MQTT-API.md |
The client connects with username field with the user's id and the password field containing a JWT token.
### Required actions on login
### Subscibe to these topics:
- `"users/<me>/newthread"`
- `"users/<me>/newfriend"`
- `"users/<me>/messages"`
- `"online/<friend>"` for all friends
### Notify others of your onlin... |
The client connects with username field with the user's id and the password field containing a JWT token.
### Required actions on login
### Subscibe to these topics:
- `"users/<me>/newthread"`
- `"users/<me>/newfriend"`
- `"users/<me>/messages"`
- `"online/<friend>"` for all friends
### Notify others of your onlin... | Add listening to thread for MQTT API. | Add listening to thread for MQTT API.
| Markdown | mit | considerate/3rd-base | markdown | ## Code Before:
The client connects with username field with the user's id and the password field containing a JWT token.
### Required actions on login
### Subscibe to these topics:
- `"users/<me>/newthread"`
- `"users/<me>/newfriend"`
- `"users/<me>/messages"`
- `"online/<friend>"` for all friends
### Notify othe... |
The client connects with username field with the user's id and the password field containing a JWT token.
### Required actions on login
### Subscibe to these topics:
- `"users/<me>/newthread"`
- `"users/<me>/newfriend"`
- `"users/<me>/messages"`
- `"online/<friend>"` for all friends
### N... | 6 | 0.1875 | 6 | 0 |
4c44ced323cd3efba9b6590ceaa99e3915cf9f69 | code-generator-utils.js | code-generator-utils.js | define(function (require, exports, module) {
'use strict';
function CodeWriter(indentString) {
this.lines = [];
this.indentString = (indentString ? indentString : ' ');
this.indentations = [];
}
CodeWriter.prototype.indent = function () {
this.indentations.push(this.indentString);
};
Cod... | define(function (require, exports, module) {
'use strict';
function CodeWriter(indentString) {
this.lines = [];
this.indentString = (indentString ? indentString : ' ');
this.indentations = [];
}
CodeWriter.prototype.indent = function () {
this.indentations.push(this.indentString);
};
Cod... | Add function to generate general Ruby file name | Add function to generate general Ruby file name
| JavaScript | mit | meisyal/staruml-ruby | javascript | ## Code Before:
define(function (require, exports, module) {
'use strict';
function CodeWriter(indentString) {
this.lines = [];
this.indentString = (indentString ? indentString : ' ');
this.indentations = [];
}
CodeWriter.prototype.indent = function () {
this.indentations.push(this.indentStri... | define(function (require, exports, module) {
'use strict';
function CodeWriter(indentString) {
this.lines = [];
this.indentString = (indentString ? indentString : ' ');
this.indentations = [];
}
CodeWriter.prototype.indent = function () {
this.indentations.push(this.inde... | 4 | 0.129032 | 4 | 0 |
41f2c382e679ef5c60e0e6b852870ff517c2aac9 | pkgs/development/python-modules/panel/default.nix | pkgs/development/python-modules/panel/default.nix | { lib
, buildPythonPackage
, fetchPypi
, bokeh
, param
, pyviz-comms
, markdown
, pyct
, testpath
, tqdm
}:
buildPythonPackage rec {
pname = "panel";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "b5eeec277524c3146b4f6fc5f0e9ba61755e9c088d50312ecf5e6058f9efb59e";
};
propagat... | { lib
, buildPythonPackage
, fetchPypi
, bokeh
, param
, pyviz-comms
, markdown
, pyct
, testpath
, tqdm
}:
buildPythonPackage rec {
pname = "panel";
version = "0.9.7";
# Version 10 attempts to download models from the web during build-time
# https://github.com/holoviz/panel/issues/1819
src = fetchPypi {
... | Revert "python3Packages.panel: 0.9.7 -> 0.10.2" | Revert "python3Packages.panel: 0.9.7 -> 0.10.2"
Panel attempts to fetch js models from the web. Yikes!
This reverts commit 8d2cae0c2c4452aa0034e877540776b946a8374a.
| Nix | mit | NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs,NixOS/nixpkgs | nix | ## Code Before:
{ lib
, buildPythonPackage
, fetchPypi
, bokeh
, param
, pyviz-comms
, markdown
, pyct
, testpath
, tqdm
}:
buildPythonPackage rec {
pname = "panel";
version = "0.10.2";
src = fetchPypi {
inherit pname version;
sha256 = "b5eeec277524c3146b4f6fc5f0e9ba61755e9c088d50312ecf5e6058f9efb59e";
... | { lib
, buildPythonPackage
, fetchPypi
, bokeh
, param
, pyviz-comms
, markdown
, pyct
, testpath
, tqdm
}:
buildPythonPackage rec {
pname = "panel";
- version = "0.10.2";
? ^^ ^
+ version = "0.9.7";
? ^ ^
+ # Version 10 attempts to download models fr... | 6 | 0.146341 | 4 | 2 |
32f6e53fc3c5f365f8179d45ab108780f8b33505 | site/.forestry/front_matter/templates/event.yml | site/.forestry/front_matter/templates/event.yml | ---
pages:
- event/meet-and-greet-2017.md
- event/another-adventure.md
hide_body: false
fields:
- name: title
label: Event name
type: text
hidden: false
default: ''
config:
required: true
- name: date
label: Start Date and Time
type: datetime
hidden: false
default: Invalid date
- name: end
label... | ---
pages:
- event/meet-and-greet-2017.md
- event/another-adventure.md
hide_body: false
fields:
- name: title
label: Event name
type: text
hidden: false
default: ''
config:
required: true
- name: date
label: Start Date and Time
type: datetime
hidden: false
default: Invalid date
- name: end
label... | Update from Forestry.io - Updated Forestry configuration | Update from Forestry.io - Updated Forestry configuration | YAML | mit | IslandViewPTA/islandview-pta-site,IslandViewPTA/islandview-pta-site,IslandViewPTA/islandview-pta-site | yaml | ## Code Before:
---
pages:
- event/meet-and-greet-2017.md
- event/another-adventure.md
hide_body: false
fields:
- name: title
label: Event name
type: text
hidden: false
default: ''
config:
required: true
- name: date
label: Start Date and Time
type: datetime
hidden: false
default: Invalid date
- n... | ---
pages:
- event/meet-and-greet-2017.md
- event/another-adventure.md
hide_body: false
fields:
- name: title
label: Event name
type: text
hidden: false
default: ''
config:
required: true
- name: date
label: Start Date and Time
type: datetime
hidden: false
defau... | 12 | 0.266667 | 6 | 6 |
c9ea2a4b525a4d6265a622c6296802d8f416a9de | README.md | README.md |
Draw nice nodes and links in SVG.
[](https://travis-ci.org/danieledler/network-rendering)
[](https://codeclimate.com/github/danie... |
Draw nice nodes and links in SVG.
[](https://travis-ci.org/danieledler/network-rendering)
[](https://codeclimate.com/github/danie... | Fix render svg example in readme by using rawgit | Fix render svg example in readme by using rawgit | Markdown | mpl-2.0 | mapequation/network-rendering,mapequation/network-rendering | markdown | ## Code Before:
Draw nice nodes and links in SVG.
[](https://travis-ci.org/danieledler/network-rendering)
[](https://codeclimate.... |
Draw nice nodes and links in SVG.
[](https://travis-ci.org/danieledler/network-rendering)
[](https://codeclimate.com/gi... | 2 | 0.181818 | 1 | 1 |
c846de608f443915cc87b14227b1c65dcfd42338 | configure.sh | configure.sh | check_pkg() {
opam search -i "$1" | awk '{print $1}' | grep '^'"$1"'$' > /dev/null
}
install_coq() {
if ! which coqc > /dev/null; then
echo "Installing Coq over OPAM..."
opam install coq
fi
}
install_aniceto() {
if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Error) && ! check_pkg coq-an... | check_pkg() {
opam search -i "$1" | awk '{print $1}' | grep '^'"$1"'$' > /dev/null
}
install_coq() {
if ! which coqc > /dev/null; then
echo "Installing Coq over OPAM..."
opam install coq
fi
}
install_aniceto() {
if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Error); then
echo "Instal... | Simplify checking if aniceto is installed. | Simplify checking if aniceto is installed.
| Shell | unknown | cogumbreiro/habanero-coq,cogumbreiro/habanero-coq,cogumbreiro/habanero-coq,cogumbreiro/hj-coq | shell | ## Code Before:
check_pkg() {
opam search -i "$1" | awk '{print $1}' | grep '^'"$1"'$' > /dev/null
}
install_coq() {
if ! which coqc > /dev/null; then
echo "Installing Coq over OPAM..."
opam install coq
fi
}
install_aniceto() {
if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Error) && ! ... | check_pkg() {
opam search -i "$1" | awk '{print $1}' | grep '^'"$1"'$' > /dev/null
}
install_coq() {
if ! which coqc > /dev/null; then
echo "Installing Coq over OPAM..."
opam install coq
fi
}
install_aniceto() {
- if (echo -e "Require Aniceto.List.\n" | coqtop 2>&1 | grep Er... | 2 | 0.090909 | 1 | 1 |
9b1c7c0f9554c0e61e69182b4581a6f344f62920 | spec/graphql/execution/typecast_spec.rb | spec/graphql/execution/typecast_spec.rb | require "spec_helper"
describe GraphQL::Execution::Typecast do
let(:schema) { DummySchema }
let(:context) { GraphQL::Query::Context.new(query: OpenStruct.new(schema: schema), values: nil) }
it "resolves correctly when both types are the same" do
assert GraphQL::Execution::Typecast.compatible?(MILKS[1], Mil... | require "spec_helper"
describe GraphQL::Execution::Typecast do
let(:schema) { DummySchema }
let(:context) { GraphQL::Query::Context.new(query: OpenStruct.new(schema: schema), values: nil) }
it "resolves correctly when both types are the same" do
assert GraphQL::Execution::Typecast.compatible?(MILKS[1], Mil... | Add an additional test for the missing case | Add an additional test for the missing case
| Ruby | mit | xuorig/graphql-ruby,xuorig/graphql-ruby,nevesenin/graphql-ruby,nevesenin/graphql-ruby,rmosolgo/graphql-ruby,rmosolgo/graphql-ruby,xuorig/graphql-ruby,rmosolgo/graphql-ruby,nevesenin/graphql-ruby,nevesenin/graphql-ruby,rmosolgo/graphql-ruby | ruby | ## Code Before:
require "spec_helper"
describe GraphQL::Execution::Typecast do
let(:schema) { DummySchema }
let(:context) { GraphQL::Query::Context.new(query: OpenStruct.new(schema: schema), values: nil) }
it "resolves correctly when both types are the same" do
assert GraphQL::Execution::Typecast.compatibl... | require "spec_helper"
describe GraphQL::Execution::Typecast do
let(:schema) { DummySchema }
let(:context) { GraphQL::Query::Context.new(query: OpenStruct.new(schema: schema), values: nil) }
it "resolves correctly when both types are the same" do
assert GraphQL::Execution::Typecast.compati... | 4 | 0.142857 | 4 | 0 |
5f71a7e1d558d52cd0355f202928641019f05011 | lib/rails-csv-fixtures/active_record_csv_fixtures.rb | lib/rails-csv-fixtures/active_record_csv_fixtures.rb | require 'csv'
require 'erb'
module RailsCsvFixtures
module CsvFixtures
extend ActiveSupport::Concern
included do
alias_method_chain :read_fixture_files, :csv_support
end
def read_fixture_files_with_csv_support
if ::File.file?(csv_file_path)
read_csv_fixture_files
else
... | require 'csv'
require 'erb'
module RailsCsvFixtures
module CsvFixtures
extend ActiveSupport::Concern
included do
alias_method_chain :read_fixture_files, :csv_support
end
def read_fixture_files_with_csv_support(*args)
if ::File.file?(csv_file_path(*args))
read_csv_fixture_files(*... | Fix compatibility with Rails 4.1.0 | Fix compatibility with Rails 4.1.0
The changes should be backwards compatible, but have not yet been tested
with older versions of Rails.
| Ruby | mit | bfolkens/rails-csv-fixtures,bfolkens/rails-csv-fixtures,bfolkens/rails-csv-fixtures | ruby | ## Code Before:
require 'csv'
require 'erb'
module RailsCsvFixtures
module CsvFixtures
extend ActiveSupport::Concern
included do
alias_method_chain :read_fixture_files, :csv_support
end
def read_fixture_files_with_csv_support
if ::File.file?(csv_file_path)
read_csv_fixture_files... | require 'csv'
require 'erb'
module RailsCsvFixtures
module CsvFixtures
extend ActiveSupport::Concern
included do
alias_method_chain :read_fixture_files, :csv_support
end
- def read_fixture_files_with_csv_support
+ def read_fixture_files_with_csv_support(*args)
? ... | 21 | 0.5 | 12 | 9 |
f9a134b6e4a6c8fc94e377a8f3af1761645a4569 | src/interfaces/ecpg/include/pgtypes_timestamp.h | src/interfaces/ecpg/include/pgtypes_timestamp.h | typedef int64 timestamp;
typedef int64 TimestampTz;
#else
typedef double timestamp;
typedef double TimestampTz;
#endif
#ifdef __cplusplus
extern "C"
{
#endif
extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
extern char *PGTYPEStimestamp_to_asc(timestamp);
extern int PGTYPEStimestamp_sub(timestamp *, tim... | typedef int64 timestamp;
typedef int64 TimestampTz;
#else
typedef double timestamp;
typedef double TimestampTz;
#endif
#ifdef __cplusplus
extern "C"
{
#endif
extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
extern char *PGTYPEStimestamp_to_asc(timestamp);
extern int PGTYPEStimestamp_sub(timestamp *, tim... | Add missing ecpg prototype for newly added functions. | Add missing ecpg prototype for newly added functions.
| C | apache-2.0 | kaknikhil/gpdb,Chibin/gpdb,Chibin/gpdb,kaknikhil/gpdb,rubikloud/gpdb,lisakowen/gpdb,kaknikhil/gpdb,adam8157/gpdb,arcivanov/postgres-xl,randomtask1155/gpdb,janebeckman/gpdb,foyzur/gpdb,rubikloud/gpdb,jmcatamney/gpdb,janebeckman/gpdb,yuanzhao/gpdb,xuegang/gpdb,ashwinstar/gpdb,Quikling/gpdb,pavanvd/postgres-xl,rvs/gpdb,li... | c | ## Code Before:
typedef int64 timestamp;
typedef int64 TimestampTz;
#else
typedef double timestamp;
typedef double TimestampTz;
#endif
#ifdef __cplusplus
extern "C"
{
#endif
extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
extern char *PGTYPEStimestamp_to_asc(timestamp);
extern int PGTYPEStimestamp_sub(... | typedef int64 timestamp;
typedef int64 TimestampTz;
#else
typedef double timestamp;
typedef double TimestampTz;
#endif
#ifdef __cplusplus
extern "C"
{
#endif
extern timestamp PGTYPEStimestamp_from_asc(char *, char **);
extern char *PGTYPEStimestamp_to_asc(timestamp);
extern int PGTYP... | 2 | 0.08 | 2 | 0 |
9f33d1145d502a1bf661e330efc524b31feb6576 | src/scss/_partials/_share-profile-banner.scss | src/scss/_partials/_share-profile-banner.scss | body #root .App .view {
.share-profile-container {
background-color: $deep-purple;
cursor: pointer;
left: 0;
margin-top: 20px;
padding: 10px 10px 5%;
right: 0;
text-align: center;
.share-profile-title {
font-size: 1.428571429em !important;
font-weight: bold;
height: ... | body #root .App .view {
.share-profile-container {
background-color: $deep-purple;
cursor: pointer;
left: 0;
margin-top: 20px;
padding: 10px 10px 5%;
right: 0;
text-align: center;
.share-profile-title {
font-size: 1.428571429em !important;
font-weight: bold;
margin-b... | Fix share profile banner text style | QS-1290: Fix share profile banner text style
| SCSS | agpl-3.0 | nekuno/client,nekuno/client | scss | ## Code Before:
body #root .App .view {
.share-profile-container {
background-color: $deep-purple;
cursor: pointer;
left: 0;
margin-top: 20px;
padding: 10px 10px 5%;
right: 0;
text-align: center;
.share-profile-title {
font-size: 1.428571429em !important;
font-weight: bold... | body #root .App .view {
.share-profile-container {
background-color: $deep-purple;
cursor: pointer;
left: 0;
margin-top: 20px;
padding: 10px 10px 5%;
right: 0;
text-align: center;
.share-profile-title {
font-size: 1.428571429em !important;
font-we... | 2 | 0.068966 | 1 | 1 |
363716de3e6996605d2457d1ac8d6b5fa09ad994 | lib/PropertyValue.js | lib/PropertyValue.js | const ParserCommon = require('./ParserCommon');
function PropertyValue(xml) {
this.Annotations = {};
this.validElements = {
};
this.validAttributes = {
'Bool': {bool: true},
'String': {},
'Path': {},
'Property': {alreadyHandeled: true}
};
var init = ParserCommon.initEntity.b... | const ParserCommon = require('./ParserCommon');
function PropertyValue(xml) {
this.Annotations = {};
this.validElements = {
};
this.validAttributes = {
'Bool': {bool: true},
'String': {},
'Path': {},
'Property': {alreadyHandeled: true},
'EnumMember': {}
};
var init = Pa... | Add EnumMember as a valid expression | Add EnumMember as a valid expression
| JavaScript | apache-2.0 | pboyd04/CSDLParser | javascript | ## Code Before:
const ParserCommon = require('./ParserCommon');
function PropertyValue(xml) {
this.Annotations = {};
this.validElements = {
};
this.validAttributes = {
'Bool': {bool: true},
'String': {},
'Path': {},
'Property': {alreadyHandeled: true}
};
var init = ParserCommon.initEntity... | const ParserCommon = require('./ParserCommon');
function PropertyValue(xml) {
this.Annotations = {};
this.validElements = {
};
this.validAttributes = {
'Bool': {bool: true},
'String': {},
'Path': {},
- 'Property': {alreadyHandeled: true}
+ 'Property': {alreadyHandeled... | 3 | 0.136364 | 2 | 1 |
d3693e7482cf8c88601f4103a80713b4ba53519b | test/SILGen/cf_curried_init.swift | test/SILGen/cf_curried_init.swift | // RUN: %target-swift-emit-silgen %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
import CoreGraphics
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guaranteed CFURL) -> @ow... | // RUN: %target-swift-emit-silgen %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
import CoreGraphics
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guaranteed CFURL) -> @ow... | Remove availability check from SILGen test | [Test] Remove availability check from SILGen test
This test is just checking that we don't crash, make it more stable by
allowing no availability.
| Swift | apache-2.0 | apple/swift,benlangmuir/swift,roambotics/swift,apple/swift,glessard/swift,glessard/swift,apple/swift,apple/swift,benlangmuir/swift,glessard/swift,benlangmuir/swift,roambotics/swift,apple/swift,glessard/swift,glessard/swift,roambotics/swift,benlangmuir/swift,roambotics/swift,benlangmuir/swift,roambotics/swift,benlangmui... | swift | ## Code Before:
// RUN: %target-swift-emit-silgen %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
import CoreGraphics
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guarante... | // RUN: %target-swift-emit-silgen %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
import CoreGraphics
let _: (CFURL) -> CGDataProvider? = CGDataProvider.init
// CHECK-LABEL: sil private [ossa] @$s15cf_curried_initSo17CGDataProviderRefaSgSo8CFURLRefacfu_ : $@convention(thin) (@guar... | 2 | 0.181818 | 1 | 1 |
e7d7f38c46b4839cfaa3a031d6c834a48fa5292b | src/GraphQL/ElementsResolver.php | src/GraphQL/ElementsResolver.php | <?php
namespace DNADesign\Elemental\GraphQL;
use GraphQL\Type\Definition\ResolveInfo;
use SilverStripe\GraphQL\OperationResolver;
use SilverStripe\ORM\DataList;
class ElementsResolver implements OperationResolver
{
public function resolve($object, array $args, $context, ResolveInfo $info)
{
if (!$obj... | <?php
namespace DNADesign\Elemental\GraphQL;
use GraphQL\Type\Definition\ResolveInfo;
use SilverStripe\GraphQL\OperationResolver;
use SilverStripe\ORM\DataList;
class ElementsResolver implements OperationResolver
{
public function resolve($object, array $args, $context, ResolveInfo $info)
{
if (!$obj... | FIX Remove singleton call and check view permissions on recorded object | FIX Remove singleton call and check view permissions on recorded object
| PHP | bsd-3-clause | dnadesign/silverstripe-elemental,dnadesign/silverstripe-elemental | php | ## Code Before:
<?php
namespace DNADesign\Elemental\GraphQL;
use GraphQL\Type\Definition\ResolveInfo;
use SilverStripe\GraphQL\OperationResolver;
use SilverStripe\ORM\DataList;
class ElementsResolver implements OperationResolver
{
public function resolve($object, array $args, $context, ResolveInfo $info)
{
... | <?php
namespace DNADesign\Elemental\GraphQL;
use GraphQL\Type\Definition\ResolveInfo;
use SilverStripe\GraphQL\OperationResolver;
use SilverStripe\ORM\DataList;
class ElementsResolver implements OperationResolver
{
public function resolve($object, array $args, $context, ResolveInfo $info)
... | 2 | 0.095238 | 1 | 1 |
dffc62c21c1ac666a7f11ed0d11e0a5456b45880 | src/app/views/sessions/session/visualization/expressionprofile/expressionprofile.html | src/app/views/sessions/session/visualization/expressionprofile/expressionprofile.html | <div class="row">
<div class="col-md-9">
<h3>{{errorMessage}}</h3>
<div id="expressionprofile"></div>
</div>
<div class="col-md-3" *ngIf="selectedGeneExpressions && selectedGeneExpressions.length > 0">
<button class="btn btn-secondary btn-sm" (click)="createNewDataset()">Create new dataset</button>
... | <div class="row">
<div class="col-md-9">
<div class="alert alert-warning" role="alert">
{{errorMessage}}
</div>
<div id="expressionprofile"></div>
</div>
<div class="col-md-3" *ngIf="selectedGeneExpressions && selectedGeneExpressions.length > 0">
<button class="btn btn-secondary btn-sm" (cl... | Use bootstrap warning instead of plain h3-element | Use bootstrap warning instead of plain h3-element
| HTML | mit | chipster/chipster-web,chipster/chipster-web,chipster/chipster-web | html | ## Code Before:
<div class="row">
<div class="col-md-9">
<h3>{{errorMessage}}</h3>
<div id="expressionprofile"></div>
</div>
<div class="col-md-3" *ngIf="selectedGeneExpressions && selectedGeneExpressions.length > 0">
<button class="btn btn-secondary btn-sm" (click)="createNewDataset()">Create new da... | <div class="row">
<div class="col-md-9">
+ <div class="alert alert-warning" role="alert">
- <h3>{{errorMessage}}</h3>
? ^^^^ -----
+ {{errorMessage}}
? ^^
+ </div>
<div id="expressionprofile"></div>
</div>
<div class="col-md-3" *ngIf="selectedGeneExpress... | 4 | 0.142857 | 3 | 1 |
0dd94d269a9a5240c1c47b0dc96f816740fa7d89 | Kwc/Mail/Abstract/Update/20150309Legacy00001.sql | Kwc/Mail/Abstract/Update/20150309Legacy00001.sql | CREATE TABLE `kwc_mail_views` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`mail_component_id` VARCHAR( 255 ) NOT NULL ,
`recipient_id` INT( 11 ) NOT NULL ,
`recipient_model_shortcut` VARCHAR( 255 ) NOT NULL ,
`ip` VARCHAR( 255 ) NOT NULL ,
`date` DATETIME NOT NULL ,
INDEX ( `mail_component_id` )
) ENGINE = ... | CREATE TABLE IF NOT EXISTS `kwc_mail_views` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`mail_component_id` VARCHAR( 255 ) NOT NULL ,
`recipient_id` INT( 11 ) NOT NULL ,
`recipient_model_shortcut` VARCHAR( 255 ) NOT NULL ,
`ip` VARCHAR( 255 ) NOT NULL ,
`date` DATETIME NOT NULL ,
INDEX ( `mail_component_id`... | Check if kwc_mail_views table exists before creating it in update script | Check if kwc_mail_views table exists before creating it in update script
| SQL | bsd-2-clause | kaufmo/koala-framework,kaufmo/koala-framework,kaufmo/koala-framework,koala-framework/koala-framework,koala-framework/koala-framework | sql | ## Code Before:
CREATE TABLE `kwc_mail_views` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`mail_component_id` VARCHAR( 255 ) NOT NULL ,
`recipient_id` INT( 11 ) NOT NULL ,
`recipient_model_shortcut` VARCHAR( 255 ) NOT NULL ,
`ip` VARCHAR( 255 ) NOT NULL ,
`date` DATETIME NOT NULL ,
INDEX ( `mail_component_i... | - CREATE TABLE `kwc_mail_views` (
+ CREATE TABLE IF NOT EXISTS `kwc_mail_views` (
? ++++++++++++++
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`mail_component_id` VARCHAR( 255 ) NOT NULL ,
`recipient_id` INT( 11 ) NOT NULL ,
`recipient_model_shortcut` VARCHAR( 255 ) NOT NULL ,
`ip` VARCH... | 2 | 0.222222 | 1 | 1 |
e16c3338baa9a9ad0a1324828330f97d0c774f09 | website/unsubscribe.php | website/unsubscribe.php | <?php
include 'reports/db_queries.php';
echo ("You have sucessfully unsubscribed from OsmAnd's mailing list.");
insertIntoUnsubscribed(base64_decode( urldecode( $_GET["id"] ) ), $_GET["group"]);
?>
| <?php
include 'reports/db_queries.php';
insertIntoUnsubscribed(base64_decode( urldecode( $_GET["id"] ) ), $_GET["group"]);
?>
<div style="width:75%; margin: auto; padding-top: 2%; background:#ffffff;">
<img style="display: block; margin-left: auto; margin-right: auto;" src="/images/logo-grey.png"/>
<p style="... | Add styling for Unsubscribe page | Add styling for Unsubscribe page
| PHP | apache-2.0 | osmandapp/osmandapp.github.io,osmandapp/osmandapp.github.io | php | ## Code Before:
<?php
include 'reports/db_queries.php';
echo ("You have sucessfully unsubscribed from OsmAnd's mailing list.");
insertIntoUnsubscribed(base64_decode( urldecode( $_GET["id"] ) ), $_GET["group"]);
?>
## Instruction:
Add styling for Unsubscribe page
## Code After:
<?php
include 'reports/db_queries.php';... | <?php
include 'reports/db_queries.php';
- echo ("You have sucessfully unsubscribed from OsmAnd's mailing list.");
insertIntoUnsubscribed(base64_decode( urldecode( $_GET["id"] ) ), $_GET["group"]);
?>
+
+ <div style="width:75%; margin: auto; padding-top: 2%; background:#ffffff;">
+ <img style="display: b... | 6 | 1 | 5 | 1 |
7a7acd61d7751556f6ee7daad21fe41e81e62b92 | .travis.yml | .travis.yml | language: smalltalk
os:
- linux
smalltalk:
- Pharo32-6.1
- Pharo64-6.1
- Pharo32-7.0
- Pharo64-7.0
- Pharo32-stable
- Pharo64-stable
- Pharo32-alpha
- Pharo64-alpha
matrix:
allow_failures:
- smalltalk: Pharo32-alpha
- smalltalk: Pharo64-alpha
fash_finish: true
| language: smalltalk
os:
- linux
smalltalk:
- Pharo32-6.1
- Pharo64-6.1
- Pharo32-7.0
- Pharo64-7.0
- Pharo64-stable
- Pharo64-alpha
matrix:
allow_failures:
- smalltalk: Pharo64-alpha
fash_finish: true
| Delete 32 versions of Pharo starting at version 8 | Delete 32 versions of Pharo starting at version 8 | YAML | mit | iot-uca/IoT,iot-uca/back-end,iot-uca/back-end,fortizpenaloza/IoT | yaml | ## Code Before:
language: smalltalk
os:
- linux
smalltalk:
- Pharo32-6.1
- Pharo64-6.1
- Pharo32-7.0
- Pharo64-7.0
- Pharo32-stable
- Pharo64-stable
- Pharo32-alpha
- Pharo64-alpha
matrix:
allow_failures:
- smalltalk: Pharo32-alpha
- smalltalk: Pharo64-alpha
fash_finish: true
## Instr... | language: smalltalk
os:
- linux
smalltalk:
- Pharo32-6.1
- Pharo64-6.1
- Pharo32-7.0
- Pharo64-7.0
- - Pharo32-stable
- Pharo64-stable
- - Pharo32-alpha
- Pharo64-alpha
matrix:
allow_failures:
- - smalltalk: Pharo32-alpha
- smalltalk: Pharo64-alpha
fas... | 3 | 0.15 | 0 | 3 |
0716b47a78f0c3960a119400bf68c18f40986cae | sledge/src/reg.mli | sledge/src/reg.mli | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Variables *)
include module type of Exp.Reg
| (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Variables *)
include module type of struct include Exp.Reg end
| Strengthen signature of Reg with type equations to Exp.Reg | [sledge] Refactor: Strengthen signature of Reg with type equations to Exp.Reg
Reviewed By: jvillard
Differential Revision: D21720974
fbshipit-source-id: e5470a0c9
| OCaml | mit | facebook/infer,jvillard/infer,facebook/infer,facebook/infer,facebook/infer,facebook/infer,jvillard/infer,facebook/infer,jvillard/infer,jvillard/infer,jvillard/infer,jvillard/infer,jvillard/infer,facebook/infer | ocaml | ## Code Before:
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Variables *)
include module type of Exp.Reg
## Instruction:
[sledge] Refactor: Strengthen signature of Reg wi... | (*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(** Variables *)
- include module type of Exp.Reg
+ include module type of struct include Exp.Reg end
? ... | 2 | 0.2 | 1 | 1 |
cd3d4643d2ddaace4c9d5d3e403f51e093b06a90 | lib/memory/persistence/atom_persistence.rb | lib/memory/persistence/atom_persistence.rb | module Memory
module Persistence
class AtomPersistence
def persist(collection)
collection.items.each_with_object([]) do |object, result|
next if event_already_in(object.id.content)
event = Memory::Models::Event.new.tap do |e|
e.id = object.id.content
e.au... | module Memory
module Persistence
class AtomPersistence
def persist(collection)
collection.items.each_with_object([]) do |object, result|
next if event_already_in(object.id.content)
event = Memory::Models::Event.new.tap do |e|
e.guid = object.id.content
e.... | Store content instead of fugly objects. | Store content instead of fugly objects.
Mayhaps I should think of some helper object/technique to avoid LoD violations.
| Ruby | mit | svankmajer/memory,horacio/memory | ruby | ## Code Before:
module Memory
module Persistence
class AtomPersistence
def persist(collection)
collection.items.each_with_object([]) do |object, result|
next if event_already_in(object.id.content)
event = Memory::Models::Event.new.tap do |e|
e.id = object.id.content
... | module Memory
module Persistence
class AtomPersistence
def persist(collection)
collection.items.each_with_object([]) do |object, result|
next if event_already_in(object.id.content)
event = Memory::Models::Event.new.tap do |e|
- e.id = object.id.conten... | 12 | 0.428571 | 6 | 6 |
4a505be39079d972c6506467891e6e4958789ed7 | src/lib/substituteTailwindAtRules.js | src/lib/substituteTailwindAtRules.js | import fs from 'fs'
import _ from 'lodash'
import postcss from 'postcss'
function updateSource(nodes, source) {
return _.tap(Array.isArray(nodes) ? postcss.root({ nodes }) : nodes, tree => {
tree.walk(node => (node.source = source))
})
}
export default function(config, { components: pluginComponents, utilitie... | import fs from 'fs'
import _ from 'lodash'
import postcss from 'postcss'
function updateSource(nodes, source) {
return _.tap(Array.isArray(nodes) ? postcss.root({ nodes }) : nodes, tree => {
tree.walk(node => (node.source = source))
})
}
export default function(
config,
{ base: pluginBase, components: plu... | Load plugin base styles at `@tailwind base` | Load plugin base styles at `@tailwind base`
| JavaScript | mit | tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindlabs/tailwindcss,tailwindcss/tailwindcss | javascript | ## Code Before:
import fs from 'fs'
import _ from 'lodash'
import postcss from 'postcss'
function updateSource(nodes, source) {
return _.tap(Array.isArray(nodes) ? postcss.root({ nodes }) : nodes, tree => {
tree.walk(node => (node.source = source))
})
}
export default function(config, { components: pluginComp... | import fs from 'fs'
import _ from 'lodash'
import postcss from 'postcss'
function updateSource(nodes, source) {
return _.tap(Array.isArray(nodes) ? postcss.root({ nodes }) : nodes, tree => {
tree.walk(node => (node.source = source))
})
}
- export default function(config, { components: plug... | 10 | 0.294118 | 9 | 1 |
9d0b1990b979de19939cc37cbefb86e1a0cd4e0f | test/perf/perf.py | test/perf/perf.py | import numpy as np
import pylab as pl
import sys
import timeit
from pykalman import KalmanFilter
N = int(sys.argv[1])
random_state = np.random.RandomState(0)
transition_matrix = [[1, 0.01], [-0.01, 1]]
transition_offset = [0.0,0.0]
observation_matrix = [1.0,0]
observation_offset = [0.0]
transition_covariance = 1e-10*n... | import numpy as np
import sys
import timeit
from pykalman import KalmanFilter
N = int(sys.argv[1])
random_state = np.random.RandomState(0)
transition_matrix = [[1, 0.01], [-0.01, 1]]
transition_offset = [0.0,0.0]
observation_matrix = [1.0,0]
observation_offset = [0.0]
transition_covariance = 1e-10*np.eye(2)
observatio... | Remove pylab from import statements | Remove pylab from import statements
| Python | mit | wkearn/Kalman.jl,wkearn/Kalman.jl | python | ## Code Before:
import numpy as np
import pylab as pl
import sys
import timeit
from pykalman import KalmanFilter
N = int(sys.argv[1])
random_state = np.random.RandomState(0)
transition_matrix = [[1, 0.01], [-0.01, 1]]
transition_offset = [0.0,0.0]
observation_matrix = [1.0,0]
observation_offset = [0.0]
transition_cova... | import numpy as np
- import pylab as pl
import sys
import timeit
from pykalman import KalmanFilter
N = int(sys.argv[1])
random_state = np.random.RandomState(0)
transition_matrix = [[1, 0.01], [-0.01, 1]]
transition_offset = [0.0,0.0]
observation_matrix = [1.0,0]
observation_offset = [0.0]
trans... | 1 | 0.033333 | 0 | 1 |
6c424b3fefe5a5456110acd4929561c18e192733 | test/Lily/Mock/MiddlewareApplicationWithMiddleware.php | test/Lily/Mock/MiddlewareApplicationWithMiddleware.php | <?php
namespace Lily\Mock;
use Lily\Application\MiddlewareApplication;
class MiddlewareApplicationWithMiddleware extends MiddlewareApplication
{
public $m;
protected function middleware()
{
return array(
function ($request) {
return $request['middleware-message'];
... | <?php
namespace Lily\Mock;
use Lily\Application\MiddlewareApplication;
class MiddlewareApplicationWithMiddleware extends MiddlewareApplication
{
public $m;
protected function middleware()
{
$m = $this->m;
return array(
function ($request) {
return $request['m... | Fix mock object to work with PHP 5.3 | Fix mock object to work with PHP 5.3 | PHP | mit | lukemorton/lily,DrPheltRight/lily,lukemorton/lily,DrPheltRight/lily | php | ## Code Before:
<?php
namespace Lily\Mock;
use Lily\Application\MiddlewareApplication;
class MiddlewareApplicationWithMiddleware extends MiddlewareApplication
{
public $m;
protected function middleware()
{
return array(
function ($request) {
return $request['middlewar... | <?php
namespace Lily\Mock;
use Lily\Application\MiddlewareApplication;
class MiddlewareApplicationWithMiddleware extends MiddlewareApplication
{
public $m;
protected function middleware()
{
+ $m = $this->m;
+
return array(
function ($request) {
... | 6 | 0.230769 | 4 | 2 |
3cea1460c06974320359529358d27412a09478f8 | scripts/bump-version.sh | scripts/bump-version.sh | echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
prelelease ) TYPE="prerelease... | echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
prelelease ) TYPE="prerelease... | Set tag when publishing next prerelease version | fix: Set tag when publishing next prerelease version
| Shell | mit | hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng,hslayers/hslayers-ng | shell | ## Code Before:
echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
prelelease ) ... | echo "What kind of a release?"
select yn in "patch" "minor" "major" "premajor" "prerelease"; do
case $yn in
patch ) TYPE="patch"; break;;
minor ) TYPE="minor"; break;;
major ) TYPE="major"; break;;
premajor ) TYPE="premajor --preid=next"; break;;
- prelelease ) ... | 2 | 0.08 | 1 | 1 |
b0c217acb04d377bdd0d37ce8fc61a88bd97ae77 | pyelevator/elevator.py | pyelevator/elevator.py | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tuple) for pair in r... | Update : RangeIter args name changed | Update : RangeIter args name changed
| Python | mit | oleiade/py-elevator | python | ## Code Before:
from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, tupl... | from .base import Client
class RangeIter(object):
def __init__(self, range_datas):
self._container = range_datas if self._valid_range(range_datas) else None
def _valid_range(self, range_datas):
if (not isinstance(range_datas, tuple) or
any(not isinstance(pair, ... | 4 | 0.090909 | 2 | 2 |
4dabbcc70d3966c071c9e24b07a77d6ef40664b7 | src/Bull/Render/Buffer/VertexArrayObject.cpp | src/Bull/Render/Buffer/VertexArrayObject.cpp |
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!gl::isVertexArray(m_vao))
{
throw RuntimeError("Failed to create VAO");
}
}
VertexArrayObject::~VertexArrayObject()
{
gl::deleteVert... |
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!m_vao)
{
throw RuntimeError("Failed to create VAO");
}
}
VertexArrayObject::~VertexArrayObject()
{
gl::deleteVertexArrays(1, &m_vao)... | Rename creation method to avoid ambiguity with resource loading | [Render/Texture] Rename creation method to avoid ambiguity with resource loading
| C++ | mit | siliace/Bull | c++ | ## Code Before:
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
if(!gl::isVertexArray(m_vao))
{
throw RuntimeError("Failed to create VAO");
}
}
VertexArrayObject::~VertexArrayObject()
{
... |
namespace Bull
{
VertexArrayObject::VertexArrayObject() :
m_vao(0)
{
gl::genVertexArrays(1, &m_vao);
- if(!gl::isVertexArray(m_vao))
+ if(!m_vao)
{
throw RuntimeError("Failed to create VAO");
}
}
VertexArrayObject... | 2 | 0.076923 | 1 | 1 |
69b596e29c65c2099c622221043e81b3a511d5f4 | src/app/private/html/divinebonus-info-list.sub-component.html | src/app/private/html/divinebonus-info-list.sub-component.html | <div class="modal-content">
<div class="modal-header">
<h5 id="divinebonusDesc" translate>Divine Bonus</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="alert alert-success" role="alert"
*... | <div class="modal-content">
<div class="modal-header">
<h5 id="divinebonusDesc" translate>Divine Bonus</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="alert alert-success" role="alert"
*... | Make the divine bonus list more user friendly | Make the divine bonus list more user friendly | HTML | agpl-3.0 | V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War,V-Paranoiaque/Ellas-War | html | ## Code Before:
<div class="modal-content">
<div class="modal-header">
<h5 id="divinebonusDesc" translate>Divine Bonus</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="alert alert-success" role="a... | <div class="modal-content">
<div class="modal-header">
<h5 id="divinebonusDesc" translate>Divine Bonus</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="alert alert-success" role="a... | 36 | 0.972973 | 19 | 17 |
16a14b8a83d1bd09dda708fedfa9691caa1f32d3 | app/templates/problems/show.hbs | app/templates/problems/show.hbs | <div class="mod-problems">
<div class="col-md-6 col-problem">
<h1>Problem</h1>
<div class="box">
<p id="problem">{{model.content}}</p>
</div>
</div>
<div class="col-md-6 col-solution">
<h1>Solution</h1>
{{code-box answer = model.answer submit="createSolution"}}
</div>
</div>
| <div class="mod-problems">
<div class="col-md-6 col-problem">
<h1>Problem</h1>
<div class="box">
<p class="problem-text">{{model.content}}</p>
</div>
</div>
<div class="col-md-6 col-solution">
<h1>Solution</h1>
{{code-box answer = model.answer submit="createSolution"}}
</div>
</div>
| Add padding to problem text | Add padding to problem text
| Handlebars | mit | whaambang/warm_it_up_ember | handlebars | ## Code Before:
<div class="mod-problems">
<div class="col-md-6 col-problem">
<h1>Problem</h1>
<div class="box">
<p id="problem">{{model.content}}</p>
</div>
</div>
<div class="col-md-6 col-solution">
<h1>Solution</h1>
{{code-box answer = model.answer submit="createSolution"}}
</div>
<... | <div class="mod-problems">
<div class="col-md-6 col-problem">
<h1>Problem</h1>
<div class="box">
- <p id="problem">{{model.content}}</p>
? ^^
+ <p class="problem-text">{{model.content}}</p>
? ^^^^^ +++++
</div>
</div>
<div class="col-md-6 col-solut... | 2 | 0.166667 | 1 | 1 |
fd190c1960f82c5e2be8aca29560befc46bbc66f | templates/_header.twig | templates/_header.twig | <header class="header">
<div class="container">
<div class="row">
<div class="col-md-3">
<img data-src="/assets/img/logo_round.svg" class="svg-inject event-logo" alt="Event Logo">
</div>
<div class="col-md-9">
<h... | <header class="header">
<div class="container">
<div class="row">
<div class="col-md-3">
<img data-src="/assets/img/logo_round.svg" class="svg-inject event-logo" alt="Event Logo">
</div>
<div class="col-md-9">
<h... | Adjust alignment of visit conference site button on homepage | Adjust alignment of visit conference site button on homepage
| Twig | mit | phphants/opencfp,PHPmvd/phpday-cfp,localheinz/opencfp,DevOpsDaysChicago/opencfp,noahd1/opencfp,Acidburn0zzz/opencfp,Acidburn0zzz/opencfp,monoku/opencfp,OpenWestConference/opencfp,GrUSP/opencfp,MidwestPHP/opencfp_mwphp15,GrUSP/opencfp,MidwestPHP/opencfp_mwphp15,DallasPHP/opencfp,noahd1/opencfp,PHPBenelux/opencfp,GrUSP/o... | twig | ## Code Before:
<header class="header">
<div class="container">
<div class="row">
<div class="col-md-3">
<img data-src="/assets/img/logo_round.svg" class="svg-inject event-logo" alt="Event Logo">
</div>
<div class="col-md-9">
... | <header class="header">
<div class="container">
<div class="row">
<div class="col-md-3">
<img data-src="/assets/img/logo_round.svg" class="svg-inject event-logo" alt="Event Logo">
</div>
<div class="col-md-9">
... | 2 | 0.076923 | 1 | 1 |
3cdfa5d161bfc97e3553aa8150107cc7cbd1f234 | templates/registration/password_reset_email.html | templates/registration/password_reset_email.html | <!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>ΠΠΎΠ΄ΡΠ²Π΅ΡΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ±ΡΠΎΡΠ° ΠΏΠ°ΡΠΎΠ»Ρ</title>
</head>
<body>
<p>ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, <a href="{{ protocol}}://{{ domain }}{% url 'user' user.username %}">{{ user.userprofile }}</a>.</p>
<p>ΠΡΠΎ-ΡΠΎ Π·Π°ΠΏΡΠΎΡΠΈΠ» ΡΠ±ΡΠΎΡ ΠΏΠ°ΡΠΎΠ»Ρ Π΄Π»Ρ Π²Π°ΡΠ΅ΠΉ ΡΡΡΡΠ½ΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ.</p>
... | ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, {{ user.userprofile }}.
ΠΡΠΎΡ email ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π»ΡΡ Π΄Π»Ρ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ Π½Π° ΡΠ°ΠΉΡΠ΅ {{ site_name }} ({{ protocol}}://{{ domain }}{% url 'index' %}).
ΠΡΠΎ-ΡΠΎ Π·Π°ΠΏΡΠΎΡΠΈΠ» ΡΠ±ΡΠΎΡ ΠΏΠ°ΡΠΎΠ»Ρ Π΄Π»Ρ Π²Π°ΡΠ΅ΠΉ ΡΡΡΡΠ½ΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ.
ΠΡΠ»ΠΈ ΡΡΠΎ ΡΠ΄Π΅Π»Π°Π»ΠΈ Π²Ρ, ΠΏΡΠΎΠΉΠ΄ΠΈΡΠ΅ ΠΏΠΎ ΡΡΡΠ»ΠΊΠ΅:
{{ protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid ... | Fix issue: email should be plain text | Fix issue: email should be plain text
| HTML | agpl-3.0 | Davidyuk/witcoin,Davidyuk/witcoin | html | ## Code Before:
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>ΠΠΎΠ΄ΡΠ²Π΅ΡΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ±ΡΠΎΡΠ° ΠΏΠ°ΡΠΎΠ»Ρ</title>
</head>
<body>
<p>ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, <a href="{{ protocol}}://{{ domain }}{% url 'user' user.username %}">{{ user.userprofile }}</a>.</p>
<p>ΠΡΠΎ-ΡΠΎ Π·Π°ΠΏΡΠΎΡΠΈΠ» ΡΠ±ΡΠΎΡ ΠΏΠ°ΡΠΎΠ»Ρ Π΄Π»Ρ Π²Π°ΡΠ΅ΠΉ ΡΡΡΡΠ½ΠΎΠΉ... | + ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡΠ΅, {{ user.userprofile }}.
+ ΠΡΠΎΡ email ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π»ΡΡ Π΄Π»Ρ ΡΠ΅Π³ΠΈΡΡΡΠ°ΡΠΈΠΈ Π½Π° ΡΠ°ΠΉΡΠ΅ {{ site_name }} ({{ protocol}}://{{ domain }}{% url 'index' %}).
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <title>ΠΠΎΠ΄ΡΠ²Π΅ΡΠΆΠ΄Π΅Π½ΠΈΠ΅ ΡΠ±ΡΠΎΡΠ° ΠΏΠ°ΡΠΎΠ»Ρ</title>
- </head>
- <body>
- <p>ΠΠ΄ΡΠ°Π²ΡΡΠ²ΡΠΉΡ... | 20 | 1.333333 | 5 | 15 |
dabc1f4a869f8da5106248dcf860c75d1fe9f538 | geotrek/common/management/commands/update_permissions.py | geotrek/common/management/commands/update_permissions.py | import logging
from django.conf import settings
from django.utils.importlib import import_module
from django.db.models import get_apps
from django.contrib.auth.management import create_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.c... | import logging
from django.conf import settings
from django.utils.importlib import import_module
from django.db.models import get_apps
from django.contrib.auth.management import create_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.c... | Fix update_permission command for legacy content types | Fix update_permission command for legacy content types
| Python | bsd-2-clause | johan--/Geotrek,GeotrekCE/Geotrek-admin,mabhub/Geotrek,Anaethelion/Geotrek,makinacorpus/Geotrek,Anaethelion/Geotrek,makinacorpus/Geotrek,Anaethelion/Geotrek,mabhub/Geotrek,GeotrekCE/Geotrek-admin,johan--/Geotrek,GeotrekCE/Geotrek-admin,johan--/Geotrek,johan--/Geotrek,makinacorpus/Geotrek,mabhub/Geotrek,Anaethelion/Geot... | python | ## Code Before:
import logging
from django.conf import settings
from django.utils.importlib import import_module
from django.db.models import get_apps
from django.contrib.auth.management import create_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentTy... | import logging
from django.conf import settings
from django.utils.importlib import import_module
from django.db.models import get_apps
from django.contrib.auth.management import create_permissions
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentTy... | 3 | 0.058824 | 2 | 1 |
c49b64442e1f69a92e54d790774e8870e9d49410 | assets/vendor/startbootstrap-clean-blog/scss/_post.scss | assets/vendor/startbootstrap-clean-blog/scss/_post.scss | // Styling for the post page
.post-preview {
> a {
color: $gray-900;
&:focus,
&:hover {
text-decoration: none;
color: $primary;
}
> .post-title {
font-size: 30px;
margin-top: 30px;
margin-bottom: 10px;
}
> .post-subtitle {
font-weight: 300;
margin:... | // Styling for the post page
.post-preview {
> a {
color: $gray-900;
&:focus,
&:hover {
text-decoration: none;
color: $primary;
}
> .post-title {
font-size: 30px;
margin-top: 30px;
margin-bottom: 10px;
}
> .post-subtitle {
font-weight: 300;
margin:... | Add `img` style: width 100 | Add `img` style: width 100
| SCSS | mit | ihoneymon/ihoneymon.github.io,ihoneymon/ihoneymon.github.io,ihoneymon/ihoneymon.github.io,ihoneymon/ihoneymon.github.io | scss | ## Code Before:
// Styling for the post page
.post-preview {
> a {
color: $gray-900;
&:focus,
&:hover {
text-decoration: none;
color: $primary;
}
> .post-title {
font-size: 30px;
margin-top: 30px;
margin-bottom: 10px;
}
> .post-subtitle {
font-weight: 30... | // Styling for the post page
.post-preview {
> a {
color: $gray-900;
&:focus,
&:hover {
text-decoration: none;
color: $primary;
}
> .post-title {
font-size: 30px;
margin-top: 30px;
margin-bottom: 10px;
}
> .post-subtitle {
... | 4 | 0.095238 | 4 | 0 |
dc160773cb01bb87a14000335e72d5d40250be03 | example.js | example.js | var Pokeio = require('./poke.io')
Pokeio.playerInfo.latitude = 62.0395926
Pokeio.playerInfo.longitude = 14.0266575
Pokeio.GetLocation(function(loc) {
console.log('[i] Current location: ' + loc)
});
Pokeio.GetAccessToken("Arm4x","OHSHITWADDUP", function(token) {
Pokeio.GetApiEndpoint(function(api_endpoint) {
... | var Pokeio = require('./poke.io')
Pokeio.playerInfo.latitude = 62.0395926
Pokeio.playerInfo.longitude = 14.0266575
Pokeio.GetLocation(function(err, loc) {
if (err) throw err;
console.log('[i] Current location: ' + loc)
});
Pokeio.GetAccessToken("Arm4x","OHSHITWADDUP", function(err, token) {
if (err) thr... | Add error check. Throw errors for now | Add error check. Throw errors for now
| JavaScript | mit | Tolia/Pokemon-GO-node-api,dddicillo/IBM-Dublin-PokeTracker,Armax/Pokemon-GO-node-api | javascript | ## Code Before:
var Pokeio = require('./poke.io')
Pokeio.playerInfo.latitude = 62.0395926
Pokeio.playerInfo.longitude = 14.0266575
Pokeio.GetLocation(function(loc) {
console.log('[i] Current location: ' + loc)
});
Pokeio.GetAccessToken("Arm4x","OHSHITWADDUP", function(token) {
Pokeio.GetApiEndpoint(function(... | var Pokeio = require('./poke.io')
Pokeio.playerInfo.latitude = 62.0395926
Pokeio.playerInfo.longitude = 14.0266575
- Pokeio.GetLocation(function(loc) {
+ Pokeio.GetLocation(function(err, loc) {
? +++++
+ if (err) throw err;
+
console.log('[i] Current location: ' + loc... | 16 | 0.615385 | 12 | 4 |
f3294ce200043897bc007fd93d0cdc9cd57422bc | source/main.s | source/main.s | // Instructions to the linker
.section .init
.globl _start
_start:
ldr r0,=0x20200000
// Make pin16 an output pin.
// mov r1,#1
// lsl r1,#18
// str r1,[r0,#4]
// Make pin16 an output pin (without the bit shifts)
mov r1,#4
str r1,[r0,#5] // NOTE: big endian, makes it #5, and not #6
// Turn off the GPIO ... | // Instructions to the linker
.section .init
.globl _start
_start:
ldr r0,=0x20200000
// Make pin16 an output pin.
mov r1,#1
lsl r1,#18
str r1,[r0,#4]
// Why does this not work?!@
// It definitely worked once! :(
// mov r1,#4
// str r1,[r0,#5]
// Turn off the GPIO pin to turn the LED on
mov r1,#1
lsl ... | Revert change that removes bit shifts. | Revert change that removes bit shifts.
| GAS | mit | punchagan/hs-pi-os | gas | ## Code Before:
// Instructions to the linker
.section .init
.globl _start
_start:
ldr r0,=0x20200000
// Make pin16 an output pin.
// mov r1,#1
// lsl r1,#18
// str r1,[r0,#4]
// Make pin16 an output pin (without the bit shifts)
mov r1,#4
str r1,[r0,#5] // NOTE: big endian, makes it #5, and not #6
// Tu... | // Instructions to the linker
.section .init
.globl _start
_start:
ldr r0,=0x20200000
// Make pin16 an output pin.
- // mov r1,#1
? ---
+ mov r1,#1
- // lsl r1,#18
? ---
+ lsl r1,#18
- // str r1,[r0,#4]
? ---
+ str r1,[r0,#4]
- // Make pin16 an output pin (without the bit shifts)
+... | 13 | 0.541667 | 7 | 6 |
4089cee34b104944920b9410faceb494893c9a1c | README.md | README.md | justjournal
===========
JustJournal.com's Source
Just Journal is a blogging web application that supports multiple users and has clients in
C#, Java, Apple's Dashboard (javascript), and unix command line (C)
JustJournal is developed on JDK 1.8 (java 8) on MacOS
using MySQL 5.6 and Spring Boot 1.4. It has been succ... | justjournal
===========
JustJournal.com's Source
Just Journal is a blogging web application that supports multiple users and has clients in
C#, Java, Apple's Dashboard (javascript), and unix command line (C)
JustJournal is developed on JDK 1.8 (java 8) on MacOS
using MySQL 5.6.5 and Spring Boot 2.0. It has been su... | Fix the badge and version | Fix the badge and version
| Markdown | bsd-2-clause | laffer1/justjournal,laffer1/justjournal,laffer1/justjournal,laffer1/justjournal | markdown | ## Code Before:
justjournal
===========
JustJournal.com's Source
Just Journal is a blogging web application that supports multiple users and has clients in
C#, Java, Apple's Dashboard (javascript), and unix command line (C)
JustJournal is developed on JDK 1.8 (java 8) on MacOS
using MySQL 5.6 and Spring Boot 1.4. ... | justjournal
===========
JustJournal.com's Source
Just Journal is a blogging web application that supports multiple users and has clients in
C#, Java, Apple's Dashboard (javascript), and unix command line (C)
JustJournal is developed on JDK 1.8 (java 8) on MacOS
- using MySQL 5.6 and Spring Boot 1.... | 6 | 0.375 | 3 | 3 |
2977c20bac8717b39a325436d7381ca9d5a37b00 | src/index.js | src/index.js | import {inspect} from "util";
import {getProperties, isImmutable, isNumeric} from "./helpers";
// LENS ============================================================================================
function createGetter(key) {
return function getter(data) {
if (key) {
if (isImmutable(data)) {
throw n... | import {inspect} from "util";
import {getProperties, isImmutable, isNumeric} from "./helpers";
// LENS ============================================================================================
function createGetter(key) {
return function getter(data) {
if (key) {
if (isImmutable(data)) {
throw n... | Support native objects in getter | Support native objects in getter
| JavaScript | mit | Paqmind/tcomb-lens,Paqmind/tcomb-lens | javascript | ## Code Before:
import {inspect} from "util";
import {getProperties, isImmutable, isNumeric} from "./helpers";
// LENS ============================================================================================
function createGetter(key) {
return function getter(data) {
if (key) {
if (isImmutable(data)) {... | import {inspect} from "util";
import {getProperties, isImmutable, isNumeric} from "./helpers";
// LENS ============================================================================================
function createGetter(key) {
return function getter(data) {
if (key) {
if (isImmutable(data)) {... | 7 | 0.152174 | 3 | 4 |
13839dd4ca77e83c24d5e0f71cfbe826d38dc501 | _posts/2011-12-07-path-menu-using-css.md | _posts/2011-12-07-path-menu-using-css.md | ---
layout: post
title: Path Menu Using CSS
category: note
link: /lab/path-menu/
---
<div class=txt>
<p>In case you missed it: I recently created a <a href="https://path.com/">Path</a> menu using CSS. <a href="/lab/path-menu/">Check it out</a>.</p>
</div> | ---
layout: post
title: Path Menu Using CSS
category: note
link: /lab/path-menu/
---
<div class=txt>
<p>In case you missed it: I recently created a <a href="https://path.com/">Path</a> menu using CSS. You can see the demo <a href="/lab/path-menu/">on my website or</a> check it out on <a href="http://drbl.in/cwcK">Drib... | Update post 'Path Menu Using CSS' | Update post 'Path Menu Using CSS'
| Markdown | mit | sszuflita/almace-scaffolding,sparanoid/almace-scaffolding,sszuflita/almace-scaffolding,hjiang/1byte.io,sparanoid/almace-scaffolding,sszuflita/almace-scaffolding,hjiang/1byte.io,jarylwang/www.jarylwang.com,sparanoid/sparanoid.com,leancloud/leancloud.rocks,jarylwang/www.jarylwang.com,sparanoid/almace-scaffolding,leanclou... | markdown | ## Code Before:
---
layout: post
title: Path Menu Using CSS
category: note
link: /lab/path-menu/
---
<div class=txt>
<p>In case you missed it: I recently created a <a href="https://path.com/">Path</a> menu using CSS. <a href="/lab/path-menu/">Check it out</a>.</p>
</div>
## Instruction:
Update post 'Path Menu Using CS... | ---
layout: post
title: Path Menu Using CSS
category: note
link: /lab/path-menu/
---
<div class=txt>
- <p>In case you missed it: I recently created a <a href="https://path.com/">Path</a> menu using CSS. <a href="/lab/path-menu/">Check it out</a>.</p>
+ <p>In case you missed it: I recently created a <a ... | 2 | 0.2 | 1 | 1 |
e8df8f6e89c8d8a831a6e16ef8eeae100077e17b | lib/allowing/wrapped_validation_builder.rb | lib/allowing/wrapped_validation_builder.rb | require 'allowing/wrapping_builder'
require 'allowing/validation_builder'
require 'allowing/dsl'
require 'allowing/validations_group'
module Allowing
class WrappedValidationBuilder
using Extensions::String
def initialize(attributes, rules, &block)
@attributes = attributes || []
@rules = rul... | require 'allowing/wrapping_builder'
require 'allowing/validation_builder'
require 'allowing/dsl'
require 'allowing/validations_group'
module Allowing
class WrappedValidationBuilder
using Extensions::String
def initialize(attributes, rules, &block)
@attributes = attributes || []
@rules = rul... | Add attributes wrapper at more logical place | Add attributes wrapper at more logical place
| Ruby | mit | rhynix/allowing | ruby | ## Code Before:
require 'allowing/wrapping_builder'
require 'allowing/validation_builder'
require 'allowing/dsl'
require 'allowing/validations_group'
module Allowing
class WrappedValidationBuilder
using Extensions::String
def initialize(attributes, rules, &block)
@attributes = attributes || []
@... | require 'allowing/wrapping_builder'
require 'allowing/validation_builder'
require 'allowing/dsl'
require 'allowing/validations_group'
module Allowing
class WrappedValidationBuilder
using Extensions::String
def initialize(attributes, rules, &block)
@attributes = attributes || []
... | 4 | 0.071429 | 2 | 2 |
22586c87fea2e350e968f387e513db7d02a6d910 | cluster/saltbase/salt/nsinit/install.sh | cluster/saltbase/salt/nsinit/install.sh |
export GOPATH=/var/nsinit
mkdir -p $GOPATH
apt-get install -y -qq build-essential
go get github.com/docker/libcontainer/nsinit/nsinit
if [ ! -e /usr/sbin/nsinit ]; then
ln -s /var/nsinit/bin/nsinit /usr/sbin/nsinit
fi
|
export GOPATH=/var/nsinit
mkdir -p $GOPATH
apt-get install -y -qq build-essential
go get github.com/docker/docker/vendor/src/github.com/docker/libcontainer/nsinit/nsinit
if [ ! -e /usr/sbin/nsinit ]; then
ln -s /var/nsinit/bin/nsinit /usr/sbin/nsinit
fi
| Install nsinit that is vendored into docker. | Install nsinit that is vendored into docker.
| Shell | apache-2.0 | apilloud/kubernetes,jasonparekh/kubernetes,tallclair/kubernetes,danwinship/kubernetes,sethpollack/kubernetes,zjmchn/kubernetes,huang195/kubernetes,errordeveloper/kubernetes,ciwang/kubernetes,wattsteve/kubernetes-1,wingedkiwi/kubernetes,bwahn/kubernetes,desdrury/kubernetes,bbgw/kubernetes,eparis/kubernetes,pipejakob/kub... | shell | ## Code Before:
export GOPATH=/var/nsinit
mkdir -p $GOPATH
apt-get install -y -qq build-essential
go get github.com/docker/libcontainer/nsinit/nsinit
if [ ! -e /usr/sbin/nsinit ]; then
ln -s /var/nsinit/bin/nsinit /usr/sbin/nsinit
fi
## Instruction:
Install nsinit that is vendored into docker.
## Code After:
expo... |
export GOPATH=/var/nsinit
mkdir -p $GOPATH
apt-get install -y -qq build-essential
- go get github.com/docker/libcontainer/nsinit/nsinit
+ go get github.com/docker/docker/vendor/src/github.com/docker/libcontainer/nsinit/nsinit
if [ ! -e /usr/sbin/nsinit ]; then
ln -s /var/nsinit/bin/nsinit /usr/sbin/nsini... | 2 | 0.25 | 1 | 1 |
0a514c41f525c153c574deca66270da1fd051aaa | app/views/search/no_search_term.html.erb | app/views/search/no_search_term.html.erb | <% content_for :body_classes do %>search<% end %>
<main id="content" role="main" class="group ancillary search no-results-term">
<%= render partial: 'form' %>
</main>
<% content_for :title, "Search - GOV.UK" %>
| <% content_for :body_classes, "search" %>
<% content_for :title, "Search - GOV.UK" %>
<main id="content" role="main" class="search no-results-term">
<%= render partial: 'form' %>
</main>
| Remove unused classes and tidy content_for | Remove unused classes and tidy content_for
The classes were to add some styling to previous design elements which
have been removed from this page.
Tidy the content_for tags up so they are clearer and together.
| HTML+ERB | mit | alphagov/frontend,alphagov/frontend,alphagov/frontend,alphagov/frontend | html+erb | ## Code Before:
<% content_for :body_classes do %>search<% end %>
<main id="content" role="main" class="group ancillary search no-results-term">
<%= render partial: 'form' %>
</main>
<% content_for :title, "Search - GOV.UK" %>
## Instruction:
Remove unused classes and tidy content_for
The classes were to add som... | - <% content_for :body_classes do %>search<% end %>
? ^^^^^ ^^^^^^
+ <% content_for :body_classes, "search" %>
? + ^ ^
+ <% content_for :title, "Search - GOV.UK" %>
-
- <main id="content" role="main" class="group ancillary search no-results-term">... | 8 | 1 | 3 | 5 |
6e57d80e9b01ebba54ae2e55cfa6ac9129f90e84 | lib/tasks/webpack.rake | lib/tasks/webpack.rake | require 'pp'
desc 'compile bundles using webpack'
task "assets:precompile" do
cmd = 'webpack --config webpack.release.js --progress --profile --colors --json'
output = `#{cmd}`
stats = JSON.parse output
File.open('./public/assets/webpack-asset-manifest.json', 'w') do |f|
f.write stats['assetsByChunkNa... | require 'pp'
desc 'compile bundles using webpack'
task "assets:precompile" do
cmd = 'cd client && webpack --config webpack.release.js --progress --profile --colors --json'
output = `#{cmd}`
stats = JSON.parse output
File.open('./public/assets/webpack-asset-manifest.json', 'w') do |f|
f.write stats['as... | Fix web pack precompile path | Fix web pack precompile path | Ruby | mit | BYU-Open-Analytics/BYUOpenAssessments,lumenlearning/OpenAssessments,atomicjolt/OpenAssessments,atomicjolt/OpenAssessments,lumenlearning/OpenAssessments,lumenlearning/OpenAssessments,atomicjolt/OpenAssessments,atomicjolt/OpenAssessments,lumenlearning/OpenAssessments,BYU-Open-Analytics/BYUOpenAssessments,BYU-Open-Analyti... | ruby | ## Code Before:
require 'pp'
desc 'compile bundles using webpack'
task "assets:precompile" do
cmd = 'webpack --config webpack.release.js --progress --profile --colors --json'
output = `#{cmd}`
stats = JSON.parse output
File.open('./public/assets/webpack-asset-manifest.json', 'w') do |f|
f.write stats[... | require 'pp'
desc 'compile bundles using webpack'
task "assets:precompile" do
- cmd = 'webpack --config webpack.release.js --progress --profile --colors --json'
+ cmd = 'cd client && webpack --config webpack.release.js --progress --profile --colors --json'
? +++++++++++++
output = `#... | 2 | 0.142857 | 1 | 1 |
0468c944464d55ba7ce0a821e1085ae530d49cf6 | corehq/apps/es/cases.py | corehq/apps/es/cases.py | from .es_query import HQESQuery
from . import filters
class CaseES(HQESQuery):
index = 'cases'
@property
def builtin_filters(self):
return [
opened_range,
closed_range,
is_closed,
case_type,
] + super(CaseES, self).builtin_filters
def open... | from .es_query import HQESQuery
from . import filters
class CaseES(HQESQuery):
index = 'cases'
@property
def builtin_filters(self):
return [
opened_range,
closed_range,
is_closed,
case_type,
owner,
] + super(CaseES, self).builtin... | Add `owner` filter to CaseES | Add `owner` filter to CaseES
| Python | bsd-3-clause | puttarajubr/commcare-hq,qedsoftware/commcare-hq,puttarajubr/commcare-hq,puttarajubr/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,puttarajubr/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq | python | ## Code Before:
from .es_query import HQESQuery
from . import filters
class CaseES(HQESQuery):
index = 'cases'
@property
def builtin_filters(self):
return [
opened_range,
closed_range,
is_closed,
case_type,
] + super(CaseES, self).builtin_fi... | from .es_query import HQESQuery
from . import filters
class CaseES(HQESQuery):
index = 'cases'
@property
def builtin_filters(self):
return [
opened_range,
closed_range,
is_closed,
case_type,
+ owner,
... | 5 | 0.16129 | 5 | 0 |
c50232e4b5830bd273b1ad1aa25b009ab94eb4ae | src/unit_PARALLEL/chrono_utils/CMakeLists.txt | src/unit_PARALLEL/chrono_utils/CMakeLists.txt |
SET(ChronoEngine_ParallelUtils_SOURCES
ChUtilsCreators.cpp
ChUtilsGenerators.cpp
ChUtilsInputOutput.cpp
)
SET(ChronoEngine_ParallelUtils_HEADERS
ChUtilsCommon.h
ChUtilsGeometry.h
ChUtilsCreators.h
ChUtilsGenerators.h
ChUtilsSamplers.h
ChUtilsInputOutput.h
)
# Link to Chron... |
SET(ChronoEngine_ParallelUtils_SOURCES
ChUtilsCreators.cpp
ChUtilsGenerators.cpp
ChUtilsInputOutput.cpp
)
SET(ChronoEngine_ParallelUtils_HEADERS
ChApiUtils.h
ChUtilsCommon.h
ChUtilsGeometry.h
ChUtilsCreators.h
ChUtilsGenerators.h
ChUtilsSamplers.h
ChUtilsInputOutput.h
)... | Add missing header to list of CMake files | Add missing header to list of CMake files
| Text | bsd-3-clause | rserban/chrono,armanpazouki/chrono,projectchrono/chrono,dariomangoni/chrono,amelmquist/chrono,Milad-Rakhsha/chrono,rserban/chrono,jcmadsen/chrono,dariomangoni/chrono,Milad-Rakhsha/chrono,andrewseidl/chrono,jcmadsen/chrono,jcmadsen/chrono,jcmadsen/chrono,projectchrono/chrono,jcmadsen/chrono,dariomangoni/chrono,projectch... | text | ## Code Before:
SET(ChronoEngine_ParallelUtils_SOURCES
ChUtilsCreators.cpp
ChUtilsGenerators.cpp
ChUtilsInputOutput.cpp
)
SET(ChronoEngine_ParallelUtils_HEADERS
ChUtilsCommon.h
ChUtilsGeometry.h
ChUtilsCreators.h
ChUtilsGenerators.h
ChUtilsSamplers.h
ChUtilsInputOutput.h
)
... |
SET(ChronoEngine_ParallelUtils_SOURCES
ChUtilsCreators.cpp
ChUtilsGenerators.cpp
ChUtilsInputOutput.cpp
)
SET(ChronoEngine_ParallelUtils_HEADERS
+ ChApiUtils.h
ChUtilsCommon.h
ChUtilsGeometry.h
ChUtilsCreators.h
ChUtilsGenerators.h
ChUtilsSamplers.h
... | 1 | 0.022727 | 1 | 0 |
c6b51b82fa0503a2696161374160c47297211c7c | qubs_data_api/urls.py | qubs_data_api/urls.py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^climate/', include('climate.urls')),
url(r'^herbarium/', include('herbarium.urls')),
url(r'^api-auth/', include('rest_framework.urls')),
url(r'^admin/', admin.site.urls),
]
| from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^', include('core.urls')),
url(r'^climate/', include('climate.urls')),
url(r'^herbarium/', include('herbarium.urls')),
url(r'^api-auth/', include('rest_framework.urls')),
url(r'^admin/', admin.site.urls... | Include Core URLS at the base URL path. | Include Core URLS at the base URL path.
| Python | apache-2.0 | qubs/data-centre,qubs/data-centre,qubs/climate-data-api,qubs/climate-data-api | python | ## Code Before:
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^climate/', include('climate.urls')),
url(r'^herbarium/', include('herbarium.urls')),
url(r'^api-auth/', include('rest_framework.urls')),
url(r'^admin/', admin.site.urls),
]
## Instruction:... | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
+ url(r'^', include('core.urls')),
url(r'^climate/', include('climate.urls')),
url(r'^herbarium/', include('herbarium.urls')),
url(r'^api-auth/', include('rest_framework.urls')),
url(r'^admin/... | 1 | 0.111111 | 1 | 0 |
e3220bb658e2f5debea080187279b8346c03b33e | src/NewTwitchApi/Resources/TeamsApi.php | src/NewTwitchApi/Resources/TeamsApi.php | <?php
declare(strict_types=1);
namespace NewTwitchApi\Resources;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
class TeamsApi extends AbstractResource
{
/**
* @throws GuzzleException
* @link https://dev.twitch.tv/docs/api/reference#get-channel-teams
*/
publ... | <?php
declare(strict_types=1);
namespace NewTwitchApi\Resources;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
class TeamsApi extends AbstractResource
{
/**
* @throws GuzzleException
* @link https://dev.twitch.tv/docs/api/reference#get-channel-teams
*/
publ... | Add getTeamByName / getTeamById helpers | Add getTeamByName / getTeamById helpers
| PHP | mit | nicklaw5/twitch-api-php,nicklaw5/twitch-api-php | php | ## Code Before:
<?php
declare(strict_types=1);
namespace NewTwitchApi\Resources;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
class TeamsApi extends AbstractResource
{
/**
* @throws GuzzleException
* @link https://dev.twitch.tv/docs/api/reference#get-channel-teams
... | <?php
declare(strict_types=1);
namespace NewTwitchApi\Resources;
use GuzzleHttp\Exception\GuzzleException;
use Psr\Http\Message\ResponseInterface;
class TeamsApi extends AbstractResource
{
/**
* @throws GuzzleException
* @link https://dev.twitch.tv/docs/api/reference#get-ch... | 16 | 0.372093 | 16 | 0 |
902e4500b57d54a80a586b0843ff3a68706a5c58 | setup.py | setup.py |
from distutils.core import setup
from Cython.Build import cythonize
#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True
setup(
name = "Pentacular",
ext_modules = cythonize(
[
'board_strip.pyx',
'length_lookup_table.pyx',
... |
from distutils.core import setup
from Cython.Build import cythonize
#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True
cy_modules = [
'board_strip.pyx',
'length_lookup_table.pyx',
]
if False:
cy_modules.extend([
'priority_filt... | Remove py modules causing GUI lag | Remove py modules causing GUI lag
| Python | mit | cropleyb/pentai,cropleyb/pentai,cropleyb/pentai | python | ## Code Before:
from distutils.core import setup
from Cython.Build import cythonize
#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True
setup(
name = "Pentacular",
ext_modules = cythonize(
[
'board_strip.pyx',
'length_look... |
from distutils.core import setup
from Cython.Build import cythonize
#from Cython.Compiler.Options import directive_defaults
#directive_defaults['profile'] = True
+ cy_modules = [
+ 'board_strip.pyx',
+ 'length_lookup_table.pyx',
+ ]
+ if False:
+ cy_modules.exten... | 27 | 0.964286 | 17 | 10 |
d73b8197fcf39a7443ae972f4995aa5cf8b52134 | web/app/themes/soluforce/template-home.php | web/app/themes/soluforce/template-home.php | <?php
/**
* Template Name: Homepage
*/
$data = Timber::get_context();
$data['post'] = new TimberPost();
$data['carousel'] = get_field('acf_carousel_slides');
$data['sections'] = get_field('acf_content_blocks');
Timber::render('home.twig', $data);
| <?php
/**
* Template Name: Homepage
*/
$data = Timber::get_context();
$data['post'] = new TimberPost();
$data['carousel'] = get_field('acf_carousel_slides');
$data['sections'] = get_field('acf_content_blocks');
if( have_rows('acf_content_blocks') ):
while ( have_rows('acf_content_blocks') ) : ... | Use WP query for relationship field to get Timber posts | Use WP query for relationship field to get Timber posts
| PHP | mit | Dedato/soluforce,Dedato/soluforce,Dedato/soluforce | php | ## Code Before:
<?php
/**
* Template Name: Homepage
*/
$data = Timber::get_context();
$data['post'] = new TimberPost();
$data['carousel'] = get_field('acf_carousel_slides');
$data['sections'] = get_field('acf_content_blocks');
Timber::render('home.twig', $data);
## Instruction:
Use WP query for ... | <?php
/**
* Template Name: Homepage
*/
$data = Timber::get_context();
$data['post'] = new TimberPost();
$data['carousel'] = get_field('acf_carousel_slides');
$data['sections'] = get_field('acf_content_blocks');
+
+ if( have_rows('acf_content_blocks') ):
+ while ( have_rows('a... | 25 | 2.5 | 25 | 0 |
eff4262d0077728c141fc0b6b295a878532f67eb | apps/watlobby/bg.js | apps/watlobby/bg.js | var period = 1;
chrome.runtime.onInstalled.addListener(function() {
chrome.alarms.create("update", {
periodInMinutes: period
});
});
chrome.runtime.onUpdateAvailable.addListener(function() {
// Restart is for Kiosk apps, no-op in non-kiosk
chrome.runtime.restart();
// Reload is for non-kiosk apps.
ch... | var period = 1;
chrome.runtime.onUpdateAvailable.addListener(function() {
// Restart is for Kiosk apps, no-op in non-kiosk
chrome.runtime.restart();
// Reload is for non-kiosk apps.
chrome.runtime.reload();
});
chrome.alarms.onAlarm.addListener(function(alarms) {
chrome.runtime.requestUpdateCheck(function... | Update launcher to always launch a window onstartup/install/launch | Update launcher to always launch a window onstartup/install/launch
| JavaScript | apache-2.0 | jlhughes/foam,jacksonic/foam,foam-framework/foam,mdittmer/foam,foam-framework/foam,mdittmer/foam,jlhughes/foam,foam-framework/foam,jacksonic/foam,jacksonic/foam,jlhughes/foam,mdittmer/foam,jlhughes/foam,mdittmer/foam,jacksonic/foam,foam-framework/foam,foam-framework/foam | javascript | ## Code Before:
var period = 1;
chrome.runtime.onInstalled.addListener(function() {
chrome.alarms.create("update", {
periodInMinutes: period
});
});
chrome.runtime.onUpdateAvailable.addListener(function() {
// Restart is for Kiosk apps, no-op in non-kiosk
chrome.runtime.restart();
// Reload is for non-... | var period = 1;
-
- chrome.runtime.onInstalled.addListener(function() {
- chrome.alarms.create("update", {
- periodInMinutes: period
- });
- });
chrome.runtime.onUpdateAvailable.addListener(function() {
// Restart is for Kiosk apps, no-op in non-kiosk
chrome.runtime.restart();
// Reload i... | 55 | 1.078431 | 34 | 21 |
4f4d81bfb244fe33564241d471b24235b89df8e5 | templates/includes/comment_count.html | templates/includes/comment_count.html | {% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}<p><small>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" {% if not DISQUS_NO_ID %}data-disqus-identifier="{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}"{% endif %}>comments</a>.</small></p>{% endif %} | {% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}<p><small><a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" {% if not DISQUS_NO_ID %}data-disqus-identifier="{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}"{% endif %}>View comments</a>.</small></p>{% endif %}
| Make comment count link less awkward | Make comment count link less awkward
| HTML | mit | timstaley/pelican-bootstrap3,timstaley/pelican-bootstrap3 | html | ## Code Before:
{% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}<p><small>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" {% if not DISQUS_NO_ID %}data-disqus-identifier="{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}"{% endif %}>comments</a>.</small>... | - {% if DISQUS_SITENAME and DISQUS_DISPLAY_COUNTS %}<p><small>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread" {% if not DISQUS_NO_ID %}data-disqus-identifier="{{ article.date|strftime('%Y-%m-') ~ article.slug if DISQUS_ID_PREFIX_SLUG else article.slug }}"{% endif %}>comments</a>.</small></p>{% endif %... | 2 | 2 | 1 | 1 |
582a49da7060b5f97d627388f1ce32afe1722ef9 | src/server/configLoader.js | src/server/configLoader.js | // Load optional local-config file
"use strict"
/* eslint-env node */
/* jslint node: true */
const log = require("./log")
const configDefault = require("./configDefault")
const argv = require("yargs").argv
console.log("argv", argv)
let localConfig = {}
try {
log("info", "Loading config file")
if (!argv.co... | // Load optional local-config file
"use strict"
/* eslint-env node */
/* jslint node: true */
const log = require("./log")
const configDefault = require("./configDefault")
const yargs = require("yargs")
let localConfig = {}
const argv = yargs.option({
config: {
describe: "use different config file then... | Improve comannd line help for config option | Improve comannd line help for config option
| JavaScript | mit | pdfernhout/Twirlip7,pdfernhout/Twirlip7,pdfernhout/Twirlip7 | javascript | ## Code Before:
// Load optional local-config file
"use strict"
/* eslint-env node */
/* jslint node: true */
const log = require("./log")
const configDefault = require("./configDefault")
const argv = require("yargs").argv
console.log("argv", argv)
let localConfig = {}
try {
log("info", "Loading config file")
... | // Load optional local-config file
"use strict"
/* eslint-env node */
/* jslint node: true */
const log = require("./log")
const configDefault = require("./configDefault")
- const argv = require("yargs").argv
? ^ -----
+ const yargs = require("yargs")
? + ^
- co... | 13 | 0.371429 | 10 | 3 |
7573f7f444eb3c25e08013733b9bdef90e8473b7 | src/syswm.lisp | src/syswm.lisp | (in-package :sdl2)
(defun get-window-wm-info (window)
(c-with ((info sdl2-ffi:sdl-syswm-info))
(setf (info :version :major) sdl2-ffi:+sdl-major-version+
(info :version :minor) sdl2-ffi:+sdl-minor-version+
(info :version :patch) sdl2-ffi:+sdl-patchlevel+)
(sdl-get-window-wm-info window (in... | (in-package :sdl2)
(defun get-window-wm-info (window)
(c-with ((info sdl2-ffi:sdl-syswm-info))
(setf (info :version :major) sdl2-ffi:+sdl-major-version+
(info :version :minor) sdl2-ffi:+sdl-minor-version+
(info :version :patch) sdl2-ffi:+sdl-patchlevel+)
(sdl-get-window-wm-info window (in... | Make sure not to build subsystem code for platforms that don't support it | Make sure not to build subsystem code for platforms that don't support it
| Common Lisp | mit | lispgames/cl-sdl2,lispgames/cl-sdl2 | common-lisp | ## Code Before:
(in-package :sdl2)
(defun get-window-wm-info (window)
(c-with ((info sdl2-ffi:sdl-syswm-info))
(setf (info :version :major) sdl2-ffi:+sdl-major-version+
(info :version :minor) sdl2-ffi:+sdl-minor-version+
(info :version :patch) sdl2-ffi:+sdl-patchlevel+)
(sdl-get-window-wm... | (in-package :sdl2)
(defun get-window-wm-info (window)
(c-with ((info sdl2-ffi:sdl-syswm-info))
(setf (info :version :major) sdl2-ffi:+sdl-major-version+
(info :version :minor) sdl2-ffi:+sdl-minor-version+
(info :version :patch) sdl2-ffi:+sdl-patchlevel+)
(sdl-get-window-wm... | 2 | 0.105263 | 2 | 0 |
2f13d1016f771297cf836e5011836252eba20658 | vscode/extensions.json | vscode/extensions.json | {
"extensions": [
"EditorConfig.EditorConfig",
"vscode-icons-team.vscode-icons"
]
}
| {
"extensions": [
"EditorConfig.EditorConfig",
"stkb.rewrap",
"vscode-icons-team.vscode-icons"
]
}
| Add stkb.rewrap extension to VS Code extension list | Add stkb.rewrap extension to VS Code extension list
| JSON | mit | jmlntw/dotfiles,jmlntw/dotfiles | json | ## Code Before:
{
"extensions": [
"EditorConfig.EditorConfig",
"vscode-icons-team.vscode-icons"
]
}
## Instruction:
Add stkb.rewrap extension to VS Code extension list
## Code After:
{
"extensions": [
"EditorConfig.EditorConfig",
"stkb.rewrap",
"vscode-icons-team.vscode-icons"
]
}
| {
"extensions": [
"EditorConfig.EditorConfig",
+ "stkb.rewrap",
"vscode-icons-team.vscode-icons"
]
} | 1 | 0.166667 | 1 | 0 |
5664d68da0feddbd5cf5a601f7a787e7eb59e964 | src/Arhelk/Lexer/Token.hs | src/Arhelk/Lexer/Token.hs | module Arhelk.Lexer.Token(
Token(..)
) where
import Data.Monoid
import Data.Text as T
import TextShow
data Token =
Word Text
| EndSentence
| QuestionMark
| ExclamationMark
| MotiveMark
| DependentMark
| Comma
| Semicolon
| Citation
| Quotation [Token]
-- | TODO: direct speech
derivin... | module Arhelk.Lexer.Token(
Token(..)
) where
import Data.Monoid
import Data.Text as T
import TextShow
-- | Kinds of tokens in generic lexer
-- Some tokens could be not used in particular languages.
data Token =
-- | Sequence on non space and non punctuational symbols
Word Text
-- | End of sentence. Ex... | Add direct speech token (not yet in lexer) and some docs | Add direct speech token (not yet in lexer) and some docs
| Haskell | bsd-3-clause | Teaspot-Studio/arhelk-lexer | haskell | ## Code Before:
module Arhelk.Lexer.Token(
Token(..)
) where
import Data.Monoid
import Data.Text as T
import TextShow
data Token =
Word Text
| EndSentence
| QuestionMark
| ExclamationMark
| MotiveMark
| DependentMark
| Comma
| Semicolon
| Citation
| Quotation [Token]
-- | TODO: direct ... | module Arhelk.Lexer.Token(
Token(..)
) where
import Data.Monoid
import Data.Text as T
import TextShow
+ -- | Kinds of tokens in generic lexer
+ -- Some tokens could be not used in particular languages.
data Token =
+ -- | Sequence on non space and non punctuational symbols
Word Text
... | 20 | 0.588235 | 18 | 2 |
b805fe783eb3409fe353ad0ec5729d86fde7db2d | src/app/components/media/CreateMediaDialog.js | src/app/components/media/CreateMediaDialog.js | import React from 'react';
import { injectIntl } from 'react-intl';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-u... | import React from 'react';
import { injectIntl } from 'react-intl';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-u... | Hide source input from create dialog | Hide source input from create dialog
| JavaScript | mit | meedan/check-web,meedan/check-web,meedan/check-web | javascript | ## Code Before:
import React from 'react';
import { injectIntl } from 'react-intl';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle f... | import React from 'react';
import { injectIntl } from 'react-intl';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle fro... | 1 | 0.023256 | 1 | 0 |
c7f49ffabb5644be7ecb474ffac90ea42652b475 | library/src/main/java/com/eowise/recyclerview/stickyheaders/StickyHeadersBuilder.java | library/src/main/java/com/eowise/recyclerview/stickyheaders/StickyHeadersBuilder.java | package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersAdapter;
private Head... | package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersAdapter;
private Head... | Add validation for adapter stable ids in builder | Add validation for adapter stable ids in builder
| Java | mit | pinball83/recyclerview-stickyheaders,akrezic1/recyclerview-stickyheaders,eowise/recyclerview-stickyheaders,msdgwzhy6/recyclerview-stickyheaders,chengkaizone/recyclerview-stickyheaders,bingshanguxue/recyclerview-stickyheaders | java | ## Code Before:
package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersAdapter;
... | package com.eowise.recyclerview.stickyheaders;
import android.support.v7.widget.RecyclerView;
/**
* Created by aurel on 16/10/14.
*/
public class StickyHeadersBuilder {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private StickyHeadersAdapter headersA... | 4 | 0.083333 | 3 | 1 |
80b1eb778022213f09785ccc6fe8136117f7efdf | src/om_forms/core.clj | src/om_forms/core.clj | (ns om-forms.core)
(defmacro with-options
[options & body]
`(binding [om-forms.core/*options* (cljs.core/merge om-forms.core/*options* ~options)]
~@body)) | (ns om-forms.core)
(defmacro with-options
[options & body]
`(binding [om-forms.core/*options*
(cljs.core/merge-with
(cljs.core/fn [old# new#]
(cljs.core/cond
(cljs.core/map? old#) (cljs.core/merge old# new#)
:else new#))
... | Add support for nested options to `with-options`. | Add support for nested options to `with-options`. | Clojure | epl-1.0 | bilus/reforms | clojure | ## Code Before:
(ns om-forms.core)
(defmacro with-options
[options & body]
`(binding [om-forms.core/*options* (cljs.core/merge om-forms.core/*options* ~options)]
~@body))
## Instruction:
Add support for nested options to `with-options`.
## Code After:
(ns om-forms.core)
(defmacro with-options
[options & bo... | (ns om-forms.core)
(defmacro with-options
[options & body]
- `(binding [om-forms.core/*options* (cljs.core/merge om-forms.core/*options* ~options)]
+ `(binding [om-forms.core/*options*
+ (cljs.core/merge-with
+ (cljs.core/fn [old# new#]
+ (cljs.core/cond
+ ... | 9 | 1.5 | 8 | 1 |
0281d1c531253c1bf8f5129a9d89b9194b27a61b | infrastructure/init.sh | infrastructure/init.sh |
rm -rf ./tmp && mkdir ./tmp && mkdir ./tmp/agent_spawn_deploy
cp ./agents/spawn/index.js ./tmp/agent_spawn_deploy
cd ./tmp/agent_spawn_deploy
zip ./agent_spawn.zip -r ./index.js
cd ../..
terraform get && terraform $1 \
-var "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" \
-var "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KE... |
rm -rf ./tmp && mkdir ./tmp && mkdir ./tmp/agent_spawn_deploy
cp ./agents/spawn/index.js ./tmp/agent_spawn_deploy
cd ./tmp/agent_spawn_deploy
zip ./agent_spawn.zip -r ./index.js
cd ../..
terraform remote config -backend=s3 \
-backend-config="bucket=webapptest-terraform" \
-backend-config="access_key=$AWS_ACCESS_K... | Add remote storage of Terraform state into S3 | Add remote storage of Terraform state into S3
| Shell | mit | httpmark/httpmark,httpmark/httpmark,httpmark/httpmark | shell | ## Code Before:
rm -rf ./tmp && mkdir ./tmp && mkdir ./tmp/agent_spawn_deploy
cp ./agents/spawn/index.js ./tmp/agent_spawn_deploy
cd ./tmp/agent_spawn_deploy
zip ./agent_spawn.zip -r ./index.js
cd ../..
terraform get && terraform $1 \
-var "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" \
-var "AWS_SECRET_ACCESS_KEY=$AWS_... |
rm -rf ./tmp && mkdir ./tmp && mkdir ./tmp/agent_spawn_deploy
cp ./agents/spawn/index.js ./tmp/agent_spawn_deploy
cd ./tmp/agent_spawn_deploy
zip ./agent_spawn.zip -r ./index.js
cd ../..
+ terraform remote config -backend=s3 \
+ -backend-config="bucket=webapptest-terraform" \
+ -backend-config="acce... | 9 | 0.9 | 9 | 0 |
5ba0ff1950cda97c019401e56cba37a5eeec0596 | resources/scripts/scrape/duckduckgo.ads | resources/scripts/scrape/duckduckgo.ads | -- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "DuckDuckGo"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
scrape(ctx, {['url']="https://html.duckduckgo.com/html/?... | -- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "DuckDuckGo"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=buildurl(domain)})
end
function bu... | Exclude www from DuckDuckGo search result | Exclude www from DuckDuckGo search result | Ada | apache-2.0 | caffix/amass,caffix/amass | ada | ## Code Before:
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "DuckDuckGo"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
scrape(ctx, {['url']="https://html.duckd... | -- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "DuckDuckGo"
type = "scrape"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
- scrape(ctx, {['url']="https://ht... | 6 | 0.461538 | 5 | 1 |
3736d7fb32e20a64591f949d6ff431430447d421 | stock.py | stock.py | class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
return self.price_history[-1] if self.price_history else None
def update(self, timestamp, price):
if price < 0:
raise ValueError("price should no... | import bisect
import collections
PriceEvent = collections.namedtuple("PriceEvent", ["timestamp", "price"])
class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
return self.price_history[-1].price if self.price_history el... | Add a named tuple PriceEvent sub class and update methods accordingly. | Add a named tuple PriceEvent sub class and update methods accordingly.
| Python | mit | bsmukasa/stock_alerter | python | ## Code Before:
class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
return self.price_history[-1] if self.price_history else None
def update(self, timestamp, price):
if price < 0:
raise ValueError(... | + import bisect
+ import collections
+
+ PriceEvent = collections.namedtuple("PriceEvent", ["timestamp", "price"])
+
+
class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
- return self.price_history[-1] if... | 12 | 0.75 | 9 | 3 |
b3352107afb05c6a2b3b1cfc9e4d45de0d7faac3 | oauth2/oauth2-python-client/conf/oauth_client.cfg | oauth2/oauth2-python-client/conf/oauth_client.cfg | [oauth_client]
host=localhost
port=8001
callback_url=http://localhost:8001/oauth2callback
#Access token consumer
callback_url_atc=http://localhost:8001/atc
truststore=pki/truststore
client_cert=../certs/oauth-python-client-demo.pem
client_key=../certs/oauth-python-client-demo.key
client_key_pwd=contrail
client_id=oauth... | [oauth_client]
host=0.0.0.0
port=8001
callback_url=http://172.16.93.123:8001/oauth2callback
#Access token consumer
callback_url_atc=http://172.16.93.123:8001/atc
truststore=pki/truststore
client_cert=../certs/oauth-python-client-demo.pem
client_key=../certs/oauth-python-client-demo.key
client_key_pwd=contrail
client_id... | Change config so it works with remote ouath-as | Change config so it works with remote ouath-as
| INI | bsd-3-clause | consec/ConSec,consec/ConSec,consec/ConSec,consec/ConSec,consec/ConSec,consec/ConSec,consec/ConSec,consec/ConSec | ini | ## Code Before:
[oauth_client]
host=localhost
port=8001
callback_url=http://localhost:8001/oauth2callback
#Access token consumer
callback_url_atc=http://localhost:8001/atc
truststore=pki/truststore
client_cert=../certs/oauth-python-client-demo.pem
client_key=../certs/oauth-python-client-demo.key
client_key_pwd=contrail... | [oauth_client]
- host=localhost
+ host=0.0.0.0
port=8001
- callback_url=http://localhost:8001/oauth2callback
? ^^^^^^^^^
+ callback_url=http://172.16.93.123:8001/oauth2callback
? ^^^^^^^^^^^^^
#Access token consumer
- callback_url_atc=http://localhost:8001/atc
? ... | 6 | 0.25 | 3 | 3 |
557f276f3886a35bf97eb44e8192dfe682243112 | app/scripts/widgets/visualizations.js | app/scripts/widgets/visualizations.js | 'use strict';
var _ = require('lodash');
var $ = require('jquery');
function render(container, options) {
container = $(container);
options = _.extend({
items: []
}, options);
_.each(options.items, function(url) {
var wrapper = $('<div>')
.css({
position: 'relative',
paddingTop:... | 'use strict';
var _ = require('lodash');
var $ = require('jquery');
function render(container, options) {
container = $(container);
options = _.extend({
items: []
}, options);
_.each(options.items, function(url) {
var wrapper = $('<div>')
.css({
position: 'relative',
minHeight: ... | Remove top padding from the iframe's wrapping div and set minimum height. Also, remove the .col-xs-12 class | Remove top padding from the iframe's wrapping div and set minimum height. Also, remove the .col-xs-12 class
| JavaScript | mit | openspending/subsidystories.eu,openspending/subsidystories.eu,openspending/subsidystories.eu | javascript | ## Code Before:
'use strict';
var _ = require('lodash');
var $ = require('jquery');
function render(container, options) {
container = $(container);
options = _.extend({
items: []
}, options);
_.each(options.items, function(url) {
var wrapper = $('<div>')
.css({
position: 'relative',
... | 'use strict';
var _ = require('lodash');
var $ = require('jquery');
function render(container, options) {
container = $(container);
options = _.extend({
items: []
}, options);
_.each(options.items, function(url) {
var wrapper = $('<div>')
.css({
position: '... | 4 | 0.088889 | 2 | 2 |
371e6ffdeb000ef4ee4bd824eda80457688a3951 | lib/signal_api/short_url.rb | lib/signal_api/short_url.rb | module SignalApi
class ShortUrl < SignalHttpApi
attr_reader :short_url, :target_url, :id, :domain
def initialize(id, target_url, short_url, domain)
@id = id
@target_url = target_url
@short_url = short_url
@domain = domain
end
def self.create(target, domain)
body = <<-EN... | module SignalApi
class ShortUrl < SignalHttpApi
attr_reader :short_url, :target_url, :id, :domain
def initialize(id, target_url, short_url, domain)
@id = id
@target_url = target_url
@short_url = short_url
@domain = domain
end
def self.create(target, domain)
body = <<-EN... | Use the :format option to specify the format | Use the :format option to specify the format | Ruby | mit | signal/signal-ruby | ruby | ## Code Before:
module SignalApi
class ShortUrl < SignalHttpApi
attr_reader :short_url, :target_url, :id, :domain
def initialize(id, target_url, short_url, domain)
@id = id
@target_url = target_url
@short_url = short_url
@domain = domain
end
def self.create(target, domain)
... | module SignalApi
class ShortUrl < SignalHttpApi
attr_reader :short_url, :target_url, :id, :domain
def initialize(id, target_url, short_url, domain)
@id = id
@target_url = target_url
@short_url = short_url
@domain = domain
end
def self.create(target, do... | 3 | 0.09375 | 2 | 1 |
79af182822c2022a0473a76c9674e9f3b326876c | package.json | package.json | {
"name": "fnndsc.babymri.org",
"repository": "https://github.com/FNNDSC/fnndsc.babymri.org",
"license": "Apache-2.0",
"devDependencies": {
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0",
"gh-pages": "latest"
},
"scripts": {
"lint": "eslint . --ext ... | {
"name": "fnndsc.babymri.org",
"repository": "https://github.com/FNNDSC/fnndsc.babymri.org",
"license": "Apache-2.0",
"devDependencies": {
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0",
"gh-pages": "latest"
},
"scripts": {
"lint": "eslint . --ext ... | Add timestamp in deploy commit message | Add timestamp in deploy commit message
| JSON | bsd-3-clause | FNNDSC/fnndsc.babymri.org,FNNDSC/fnndsc.babymri.org,FNNDSC/fnndsc.babymri.org | json | ## Code Before:
{
"name": "fnndsc.babymri.org",
"repository": "https://github.com/FNNDSC/fnndsc.babymri.org",
"license": "Apache-2.0",
"devDependencies": {
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0",
"gh-pages": "latest"
},
"scripts": {
"lint": ... | {
"name": "fnndsc.babymri.org",
"repository": "https://github.com/FNNDSC/fnndsc.babymri.org",
"license": "Apache-2.0",
"devDependencies": {
"eslint": "^3.12.0",
"eslint-config-google": "^0.7.1",
"eslint-plugin-html": "^1.7.0",
"gh-pages": "latest"
},
"scripts": {
... | 2 | 0.125 | 1 | 1 |
7b060da474b1c3355b793db4b720a2fa9004d586 | .appveyor.yml | .appveyor.yml | build: off
environment:
matrix:
- TARGET_ARCH: x64
CONDA_PY: 27
MINICONDA: C:\\Miniconda-x64
- TARGET_ARCH: x64
CONDA_PY: 36
MINICONDA: C:\\Miniconda36-x64
platform:
- x64
install:
- cmd: call %MINICONDA%\Scripts\activate.bat
- cmd: conda.exe update --yes --quiet conda
- ... | build: off
environment:
matrix:
- PYTHON_VERSION: 2.7
MINICONDA: C:\\Miniconda-x64
- PYTHON_VERSION: 3.6
MINICONDA: C:\\Miniconda36-x64
platform:
- x64
install:
- cmd: call %MINICONDA%\Scripts\activate.bat
- cmd: conda.exe update --yes --quiet conda
- "set PATH=%MINICONDA%;%MINICONDA... | Fix python version [travis skip] | Fix python version [travis skip]
| YAML | bsd-3-clause | jobovy/galpy,jobovy/galpy,jobovy/galpy,jobovy/galpy | yaml | ## Code Before:
build: off
environment:
matrix:
- TARGET_ARCH: x64
CONDA_PY: 27
MINICONDA: C:\\Miniconda-x64
- TARGET_ARCH: x64
CONDA_PY: 36
MINICONDA: C:\\Miniconda36-x64
platform:
- x64
install:
- cmd: call %MINICONDA%\Scripts\activate.bat
- cmd: conda.exe update --yes --... | build: off
environment:
matrix:
+ - PYTHON_VERSION: 2.7
- - TARGET_ARCH: x64
- CONDA_PY: 27
MINICONDA: C:\\Miniconda-x64
+ - PYTHON_VERSION: 3.6
- - TARGET_ARCH: x64
- CONDA_PY: 36
MINICONDA: C:\\Miniconda36-x64
platform:
- x64
install:
- cmd... | 8 | 0.266667 | 3 | 5 |
c2112646d424d362bae442b5534f82382fe3bdc1 | example/index.html | example/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css">
<style>
body {
padding: 10px;
}
input[type="text"] {
font-size: 18px;
}
</style>
</head>
<b... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css">
<style>
body {
padding: 10px;
}
input[type="text"] {
font-size: 18px;
}
</style>
</head>
<b... | Replace `center` with `form` in example page | Replace `center` with `form` in example page
| HTML | mit | digaev/jQuery-timeDurationPicker,digaev/jQuery-timeDurationPicker,digaev/jquery-time-duration-picker,digaev/jquery-time-duration-picker | html | ## Code Before:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css">
<style>
body {
padding: 10px;
}
input[type="text"] {
font-size: 18px;
}
</s... | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="../bower_components/jquery-ui/themes/black-tie/jquery-ui.min.css">
<style>
body {
padding: 10px;
}
input[type="text"] {
font-size: 18px;
... | 4 | 0.102564 | 2 | 2 |
887abdec5f5c13f447985bdb8d72337b86f54656 | README.md | README.md |
[](https://travis-ci.org/paulfri/luchadeer)
The bombingest Giant Bomb API client library for Ruby.
|
[](https://travis-ci.org/paulfri/luchadeer)
[](https://coveralls.io/r/paulfri/luchadeer?branch=master)
The bombingest Giant Bomb API client library for Rub... | Add test coverage badge | Add test coverage badge [ci skip]
| Markdown | mit | paulfri/luchadeer | markdown | ## Code Before:
[](https://travis-ci.org/paulfri/luchadeer)
The bombingest Giant Bomb API client library for Ruby.
## Instruction:
Add test coverage badge [ci skip]
## Code After:
[](https://travis-ci.org/paulfri/luchadeer)
+ [](https://coveralls.io/r/paulfri/luchadeer?branch=master)
+
The bombingest Giant Bomb API client lib... | 2 | 0.5 | 2 | 0 |
7284476bc819b73fd968614e9f4f484c6ece3a52 | app/controllers/auth/remote_header.rb | app/controllers/auth/remote_header.rb |
module Auth
# Fetches the user from the REMOTE_USER header set by the FreeIPA module of
# the web server.
class RemoteHeader < Base
def fetch_user
fetch_user_and_update_user(*remote_user_params)
end
private
def fetch_user_and_update_user(username, groups, first_name, last_name)
ret... |
module Auth
# Fetches the user from the REMOTE_USER header set by the FreeIPA module of
# the web server.
class RemoteHeader < Base
REMOTE_USER_HEADERS = %w[
REMOTE_USER
REMOTE_USER_GROUPS
REMOTE_USER_FIRST_NAME
REMOTE_USER_LAST_NAME
]
def fetch_user
fetch_user_and_upd... | Make remote header handling more flexible | Make remote header handling more flexible
| Ruby | agpl-3.0 | radiorabe/raar,radiorabe/raar | ruby | ## Code Before:
module Auth
# Fetches the user from the REMOTE_USER header set by the FreeIPA module of
# the web server.
class RemoteHeader < Base
def fetch_user
fetch_user_and_update_user(*remote_user_params)
end
private
def fetch_user_and_update_user(username, groups, first_name, last... |
module Auth
# Fetches the user from the REMOTE_USER header set by the FreeIPA module of
# the web server.
class RemoteHeader < Base
+
+ REMOTE_USER_HEADERS = %w[
+ REMOTE_USER
+ REMOTE_USER_GROUPS
+ REMOTE_USER_FIRST_NAME
+ REMOTE_USER_LAST_NAME
+ ]
def fetch_u... | 16 | 0.457143 | 11 | 5 |
aa27bbf3c34a0d2559db9554aa527f591fea0d7a | src/Middleware/Cors.php | src/Middleware/Cors.php | <?php
namespace App\Middleware;
use Slim\Http\Request;
use Slim\Http\Response;
class Cors implements MiddlewareInterface
{
/**
* @var array
*/
protected $options;
/**
* Constructor.
*
* @param array $options
*/
public function __construct(array $options)
{
$... | <?php
namespace App\Middleware;
use Slim\Http\Request;
use Slim\Http\Response;
class Cors implements MiddlewareInterface
{
/**
* @var array
*/
protected $options;
/**
* Constructor.
*
* @param array $options
*/
public function __construct(array $options)
{
$... | Allow removing CORS headers without editing the middleware class | Allow removing CORS headers without editing the middleware class
| PHP | mit | awurth/slim-rest-base | php | ## Code Before:
<?php
namespace App\Middleware;
use Slim\Http\Request;
use Slim\Http\Response;
class Cors implements MiddlewareInterface
{
/**
* @var array
*/
protected $options;
/**
* Constructor.
*
* @param array $options
*/
public function __construct(array $options)... | <?php
namespace App\Middleware;
use Slim\Http\Request;
use Slim\Http\Response;
class Cors implements MiddlewareInterface
{
/**
* @var array
*/
protected $options;
/**
* Constructor.
*
* @param array $options
*/
public function __c... | 19 | 0.487179 | 13 | 6 |
b09f05c433d3602940254b43fb147bd0175c4c25 | test/inheritance_test.rb | test/inheritance_test.rb | require File.join(File.dirname(__FILE__), 'test_helper')
require 'workflow'
class InheritanceTest < ActiveRecordTestCase
test '#69 inheritance' do
class Animal
include Workflow
workflow do
state :conceived do
event :birth, :transition_to => :born
end
state :born d... | require File.join(File.dirname(__FILE__), 'test_helper')
require 'workflow'
class InheritanceTest < ActiveRecordTestCase
test '#69 inheritance' do
class Animal
include Workflow
workflow do
state :conceived do
event :birth, :transition_to => :born
end
state :born d... | Fix test for Ruby 1.8.7 | Fix test for Ruby 1.8.7
| Ruby | mit | cosmindorobantu/workflow,TwilightCoders/workflow,elsurudo/workflow,anujgangwar/workflow,imlitech/workflow,lorefnon/workflow-orchestrator,geekq/workflow,meltheadorable/workflow | ruby | ## Code Before:
require File.join(File.dirname(__FILE__), 'test_helper')
require 'workflow'
class InheritanceTest < ActiveRecordTestCase
test '#69 inheritance' do
class Animal
include Workflow
workflow do
state :conceived do
event :birth, :transition_to => :born
end
... | require File.join(File.dirname(__FILE__), 'test_helper')
require 'workflow'
class InheritanceTest < ActiveRecordTestCase
test '#69 inheritance' do
class Animal
include Workflow
workflow do
state :conceived do
event :birth, :transition_to => :born
... | 12 | 0.222222 | 9 | 3 |
06ec1455a1cdab5c6468c9732b779a145b42fbf6 | README.md | README.md | Post-apocalyptic survival game with robots
| Post-apocalyptic survival game with robots
# Development
```bash
git clone git@github.com:markmckenna/robocalypse.git
cd robocalypse
./gradlew build
```
Should build a local binary. No executable constructed yet, unfortunately.
| Update readme with build instructions | Update readme with build instructions
| Markdown | mit | markmckenna/robocalypse | markdown | ## Code Before:
Post-apocalyptic survival game with robots
## Instruction:
Update readme with build instructions
## Code After:
Post-apocalyptic survival game with robots
# Development
```bash
git clone git@github.com:markmckenna/robocalypse.git
cd robocalypse
./gradlew build
```
Should build a local binary. No e... | Post-apocalyptic survival game with robots
+
+ # Development
+
+ ```bash
+ git clone git@github.com:markmckenna/robocalypse.git
+ cd robocalypse
+ ./gradlew build
+ ```
+
+ Should build a local binary. No executable constructed yet, unfortunately. | 10 | 10 | 10 | 0 |
62545a212822bf63cffa7d3c10d78dc1fb5a25b4 | README.md | README.md |
A jQuery plugin for accessible content toggles. Inspired by Heydon Pickering's
[progressive
collapsibles](http://heydonworks.com/practical_aria_examples/#progressive-collapsibles) and toggleSingle() from Magento's RWD theme.
## Example markup
```html
<button>Navigation</button>
<nav>
<!-- stuff -->
</nav>
<h2 cla... |
A jQuery plugin for accessible content toggles. Inspired by Heydon Pickering's
[progressive
collapsibles](http://heydonworks.com/practical_aria_examples/#progressive-collapsibles) and toggleSingle() from Magento's RWD theme.
## Example markup
```html
<button class="toggle-next">Navigation</button>
<nav>
<!-- stuff... | Add lost class to example markup | Add lost class to example markup | Markdown | mit | nadavspi/peekaboo.js | markdown | ## Code Before:
A jQuery plugin for accessible content toggles. Inspired by Heydon Pickering's
[progressive
collapsibles](http://heydonworks.com/practical_aria_examples/#progressive-collapsibles) and toggleSingle() from Magento's RWD theme.
## Example markup
```html
<button>Navigation</button>
<nav>
<!-- stuff -->... |
A jQuery plugin for accessible content toggles. Inspired by Heydon Pickering's
[progressive
collapsibles](http://heydonworks.com/practical_aria_examples/#progressive-collapsibles) and toggleSingle() from Magento's RWD theme.
## Example markup
```html
- <button>Navigation</button>
+ <button class="tog... | 2 | 0.064516 | 1 | 1 |
ab50bc3780c44764a31f4c8880235fdcc8f09a50 | README.md | README.md | NASM, the Netwide Assembler
===========================
Many many developers all over the net respect NASM for what it is:
a widespread (thus netwide), portable (thus netwide!), very flexible
and mature assembler tool with support for many output formats (thus netwide!!).
Now we have good news for you: NASM is licens... | NASM, the Netwide Assembler
===========================
[](https://travis-ci.org/netwide-assembler/nasm)
Many many developers all over the net respect NASM for what it is:
a widespread (thus netwide), portable (thus netwide!), very flexible
and ... | Add travis status into readme | Add travis status into readme
Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@gmail.com>
| Markdown | bsd-2-clause | techkey/nasm,techkey/nasm,techkey/nasm,techkey/nasm,techkey/nasm | markdown | ## Code Before:
NASM, the Netwide Assembler
===========================
Many many developers all over the net respect NASM for what it is:
a widespread (thus netwide), portable (thus netwide!), very flexible
and mature assembler tool with support for many output formats (thus netwide!!).
Now we have good news for you... | NASM, the Netwide Assembler
===========================
+
+ [](https://travis-ci.org/netwide-assembler/nasm)
Many many developers all over the net respect NASM for what it is:
a widespread (thus netwide), portable (thus netwide!), very... | 2 | 0.117647 | 2 | 0 |
2d1da289e01d1518aac466cd12b76e7683bbe79a | cmd/sieve/main.go | cmd/sieve/main.go | package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"time"
"github.com/benbjohnson/sieve"
)
var (
addr = flag.String("addr", ":6900", "HTTP address")
)
func usage() {
fmt.Fprintln(os.Stderr, "usage: sieve [opts]")
flag.PrintDefaults()
os.Exit(2)
}
func main() {
// Read configuration.
flag.Usage =... | package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"log"
"net/http"
"os"
"github.com/benbjohnson/sieve"
)
var (
addr = flag.String("addr", ":6900", "HTTP address")
)
func usage() {
fmt.Fprintln(os.Stderr, "usage: sieve [opts]")
flag.PrintDefaults()
os.Exit(2)
}
func main() {
// Read configuration... | Add JSON parsing on STDIN. | Add JSON parsing on STDIN.
| Go | mit | benbjohnson/sieve,benbjohnson/sieve | go | ## Code Before:
package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"time"
"github.com/benbjohnson/sieve"
)
var (
addr = flag.String("addr", ":6900", "HTTP address")
)
func usage() {
fmt.Fprintln(os.Stderr, "usage: sieve [opts]")
flag.PrintDefaults()
os.Exit(2)
}
func main() {
// Read configuratio... | package main
import (
+ "encoding/json"
"flag"
"fmt"
+ "io"
"log"
"net/http"
"os"
- "time"
"github.com/benbjohnson/sieve"
)
var (
addr = flag.String("addr", ":6900", "HTTP address")
)
func usage() {
fmt.Fprintln(os.Stderr, "usage: sieve [opts]")
flag.PrintDefaults()... | 24 | 0.648649 | 22 | 2 |
ece20a2e26ea6671d004a22f582ac37bbfe2f885 | setup.cfg | setup.cfg | [bumpversion]
current_version = 2.0.2
commit = True
tag = True
[bumpversion:file:gcloud_requests/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[flake8]
max-complexity = 12
max-line-length = 110
[tool:pytest]
python_paths = .
testpaths = tests
addopts = --cov gcloud_r... | [bdist_wheel]
universal = 1
[bumpversion]
current_version = 2.0.2
commit = True
tag = True
[bumpversion:file:gcloud_requests/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[flake8]
max-complexity = 12
max-line-length = 110
[tool:pytest]
python_paths = .
testpaths = t... | Build universal wheel by default | Build universal wheel by default
| INI | mit | LeadPages/gcloud_requests | ini | ## Code Before:
[bumpversion]
current_version = 2.0.2
commit = True
tag = True
[bumpversion:file:gcloud_requests/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[flake8]
max-complexity = 12
max-line-length = 110
[tool:pytest]
python_paths = .
testpaths = tests
addopts ... | + [bdist_wheel]
+ universal = 1
+
[bumpversion]
current_version = 2.0.2
commit = True
tag = True
[bumpversion:file:gcloud_requests/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
[flake8]
max-complexity = 12
max-line-length = 110
[tool:pyte... | 3 | 0.166667 | 3 | 0 |
57216d1c37fa90a1447b639a4c4362c3ed473dbf | OCMock.podspec | OCMock.podspec | Pod::Spec.new do |s|
s.name = "OCMock"
s.version = "3.1.1"
s.summary = "Mock objects for Objective-C"
s.description = <<-DESC
OCMock is an Objective-C implementation of mock objects. It provides
stubs that return pre-determined values for... | Pod::Spec.new do |s|
s.name = "OCMock"
s.version = "3.1.1"
s.summary = "Mock objects for Objective-C"
s.description = <<-DESC
OCMock is an Objective-C implementation of mock objects. It provides
stubs that return pre-determined values for... | Remove s.framework = "XCTest" from the podspec | Remove s.framework = "XCTest" from the podspec
I was having issues building, since I'm not using XCTest yet. I was able to build and use OCMock 3.x locally just fine without linking XCTest. This should also fix #149. | Ruby | apache-2.0 | erikdoe/ocmock,ichu501/ocmock-1,BohdanOrlov/ocmock,dieface/ocmock,Lightricks/ocmock,Lightricks/ocmock,erikdoe/ocmock,erikdoe/ocmock,SteveFortune/ocmock,NextThought/ocmock,firebase/ocmock,richardjrossiii/ocmock,modulexcite/ocmock,nerdishbynature/ocmock,erikdoe/ocmock,dhardiman/ocmock,Lightricks/ocmock,imhuntingwabbits/o... | ruby | ## Code Before:
Pod::Spec.new do |s|
s.name = "OCMock"
s.version = "3.1.1"
s.summary = "Mock objects for Objective-C"
s.description = <<-DESC
OCMock is an Objective-C implementation of mock objects. It provides
stubs that return pre-deter... | Pod::Spec.new do |s|
s.name = "OCMock"
s.version = "3.1.1"
s.summary = "Mock objects for Objective-C"
s.description = <<-DESC
OCMock is an Objective-C implementation of mock objects. It provides
stubs that return pre-deter... | 1 | 0.035714 | 0 | 1 |
ba22c8b8939b3e87bfac4dac44c645f08d7fa910 | src/middleware/command/normalization/handler.js | src/middleware/command/normalization/handler.js | 'use strict';
const { normalizeFilter } = require('./filter');
const { normalizeOrderBy } = require('./order_by');
/**
* Normalize input, i.e. when input can take several shapes,
* reduce it to a single shape
**/
const normalization = function () {
return async function normalization(input) {
const { args,... | 'use strict';
const { normalizeFilter } = require('./filter');
const { normalizeOrderBy } = require('./order_by');
/**
* Normalize input, i.e. when input can take several shapes,
* reduce it to a single shape
**/
const normalization = function () {
return async function normalization(input) {
const { args,... | Make sure we do not reuse the same reference | Make sure we do not reuse the same reference
| JavaScript | apache-2.0 | autoserver-org/autoserver,autoserver-org/autoserver | javascript | ## Code Before:
'use strict';
const { normalizeFilter } = require('./filter');
const { normalizeOrderBy } = require('./order_by');
/**
* Normalize input, i.e. when input can take several shapes,
* reduce it to a single shape
**/
const normalization = function () {
return async function normalization(input) {
... | 'use strict';
const { normalizeFilter } = require('./filter');
const { normalizeOrderBy } = require('./order_by');
/**
* Normalize input, i.e. when input can take several shapes,
* reduce it to a single shape
**/
const normalization = function () {
return async function normalization(... | 8 | 0.228571 | 6 | 2 |
6ac746e00ab20b242e526653a342b59ac6eb0586 | src/Frontend/Themes/Bootstrap4/src/Layout/Templates/Error.html.twig | src/Frontend/Themes/Bootstrap4/src/Layout/Templates/Error.html.twig | {% extends 'Core/Layout/Templates/Base.html.twig' %}
{% block main %}
<div class="container">
{% include 'Core/Layout/Templates/Breadcrumb.html.twig' %}
</div>
<div class="container">
<div class="row">
<div id="errorIcon">
<img src="{{ THEME_URL }}/apple-touch-icon.png" class="img-circle"... | {% extends 'Core/Layout/Templates/Base.html.twig' %}
{% block main %}
<div class="container">
{% include 'Core/Layout/Templates/Breadcrumb.html.twig' %}
</div>
<div class="container">
<img src="{{ THEME_URL }}/apple-touch-icon-180.png" class="mb-3">
{% for block in positions.main %}
{% if blo... | Fix image in error template | Fix image in error template | Twig | mit | sumocoders/forkcms,carakas/forkcms,sumocoders/forkcms,carakas/forkcms,carakas/forkcms,sumocoders/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,jonasdekeukelaere/forkcms,sumocoders/forkcms,carakas/forkcms,jonasdekeukelaere/forkcms,sumocoders/forkcms,carakas/forkcms,jonasdekeukelaere/forkcms | twig | ## Code Before:
{% extends 'Core/Layout/Templates/Base.html.twig' %}
{% block main %}
<div class="container">
{% include 'Core/Layout/Templates/Breadcrumb.html.twig' %}
</div>
<div class="container">
<div class="row">
<div id="errorIcon">
<img src="{{ THEME_URL }}/apple-touch-icon.png" cl... | {% extends 'Core/Layout/Templates/Base.html.twig' %}
{% block main %}
<div class="container">
{% include 'Core/Layout/Templates/Breadcrumb.html.twig' %}
</div>
<div class="container">
- <div class="row">
- <div id="errorIcon">
- <img src="{{ THEME_URL }}/apple-touch-icon... | 6 | 0.26087 | 1 | 5 |
2ce2976ec294298c10e919e4e45217b4fa0f551a | app/views/trips/show.html.erb | app/views/trips/show.html.erb | <div class="parcel_show">
<h4 > Trip: <%= @trip.id %> </h4>
<p> @trip Details <p>
<ul class ="@trip details">
<li>Leaving From: <%= @trip.origin_address.city %></li>
<li>Leaving At: <%= format_date(@trip.leaving_at) %></li>
<li>Going To: <%= @trip.destination_address.city %></li>
<li>Arriving At: <%= form... | <div class="trip_show">
<h4 > Trip: <%= @trip.id %> </h4>
<ul class ="trip details">
<li>Leaving From: <%= @trip.origin_address.city %></li>
<li>Leaving At: <%= format_date(@trip.leaving_at) %></li>
<li>Going To: <%= @trip.destination_address.city %></li>
<li>Arriving At: <%= format_date(@trip.arriving_at) ... | Fix typos in trips details page | Fix typos in trips details page
| HTML+ERB | mit | nyc-rock-doves-2015/caravan,grantziolkowski/caravan,grantziolkowski/caravan,nyc-rock-doves-2015/caravan,nyc-rock-doves-2015/caravan,bicyclethief/caravan,bicyclethief/caravan,bicyclethief/caravan,grantziolkowski/caravan | html+erb | ## Code Before:
<div class="parcel_show">
<h4 > Trip: <%= @trip.id %> </h4>
<p> @trip Details <p>
<ul class ="@trip details">
<li>Leaving From: <%= @trip.origin_address.city %></li>
<li>Leaving At: <%= format_date(@trip.leaving_at) %></li>
<li>Going To: <%= @trip.destination_address.city %></li>
<li>Arriv... | - <div class="parcel_show">
? -----
+ <div class="trip_show">
? +++
<h4 > Trip: <%= @trip.id %> </h4>
- <p> @trip Details <p>
- <ul class ="@trip details">
? -
+ <ul class ="trip details">
<li>Leaving From: <%= @trip.origin_address.city %></li>
<li>Leaving At:... | 10 | 0.625 | 6 | 4 |
b61584472dfb4d20acc4ae1ec99f76788aece1b2 | docs/moment/08-durations/10-months.md | docs/moment/08-durations/10-months.md | ---
title: Months
version: 1.6.0
signature: |
moment.duration().months();
moment.duration().asMonths();
---
As with the other getters for durations, `moment.duration().months()` gets the months (0 - 11).
`moment.duration().asMonths()` gets the length of the duration in months.
**Note:** The length of a duration... | ---
title: Months
version: 1.6.0
signature: |
moment.duration().months();
moment.duration().asMonths();
---
As with the other getters for durations, `moment.duration().months()` gets the months (0 - 11).
`moment.duration().asMonths()` gets the length of the duration in months.
| Remove statement that 1 month = 30 days | Remove statement that 1 month = 30 days | Markdown | mit | moment/momentjs.com,moment/momentjs.com | markdown | ## Code Before:
---
title: Months
version: 1.6.0
signature: |
moment.duration().months();
moment.duration().asMonths();
---
As with the other getters for durations, `moment.duration().months()` gets the months (0 - 11).
`moment.duration().asMonths()` gets the length of the duration in months.
**Note:** The leng... | ---
title: Months
version: 1.6.0
signature: |
moment.duration().months();
moment.duration().asMonths();
---
As with the other getters for durations, `moment.duration().months()` gets the months (0 - 11).
`moment.duration().asMonths()` gets the length of the duration in months.
-
- **Note... | 2 | 0.142857 | 0 | 2 |
f2e410492aaaad59fca83d313ec673c1fb411e44 | astral/api/tests/test_node.py | astral/api/tests/test_node.py | from nose.tools import eq_
from tornado.httpclient import HTTPRequest
import uuid
from astral.api.tests import BaseTest
from astral.models.node import Node
class NodeHandlerTest(BaseTest):
def test_delete_node(self):
node = Node(uuid=uuid.getnode())
self.http_client.fetch(HTTPRequest(
... | from nose.tools import eq_
from tornado.httpclient import HTTPRequest
from astral.api.tests import BaseTest
from astral.models import Node
from astral.models.tests.factories import NodeFactory
class NodeHandlerTest(BaseTest):
def test_delete_node(self):
node = NodeFactory()
self.http_client.fetch(... | Build proper Node in tests after refactoring constructor. | Build proper Node in tests after refactoring constructor.
| Python | mit | peplin/astral | python | ## Code Before:
from nose.tools import eq_
from tornado.httpclient import HTTPRequest
import uuid
from astral.api.tests import BaseTest
from astral.models.node import Node
class NodeHandlerTest(BaseTest):
def test_delete_node(self):
node = Node(uuid=uuid.getnode())
self.http_client.fetch(HTTPReque... | from nose.tools import eq_
from tornado.httpclient import HTTPRequest
- import uuid
from astral.api.tests import BaseTest
- from astral.models.node import Node
? -----
+ from astral.models import Node
+ from astral.models.tests.factories import NodeFactory
class NodeHandlerTest(BaseTest... | 6 | 0.4 | 3 | 3 |
38e1074c53e0ff3241c2ef541b2544440e1c8b66 | test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll | test/Transforms/LICM/2009-12-10-LICM-Indbr-Crash.ll | ; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
entry:
br i1 undef, label %preheader, label %return
preheader:
br i1 undef, label %loop, label %return
loop:
indirectbr i8* undef, [label %preheader, label %stuff]
stuff:
%0 = load i8* undef, align 1
br label %... | ; Test for rdar://7452967
; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
entry:
br i1 undef, label %preheader, label %return
preheader:
br i1 undef, label %loop, label %return
loop:
indirectbr i8* undef, [label %preheader, label %stuff]
stuff:
%0 = load i8* undef, align 1
... | Add radar fixed in comment. | Add radar fixed in comment.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@91312 91177308-0d34-0410-b5e6-96231b3b80d8
| LLVM | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/... | llvm | ## Code Before:
; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
entry:
br i1 undef, label %preheader, label %return
preheader:
br i1 undef, label %loop, label %return
loop:
indirectbr i8* undef, [label %preheader, label %stuff]
stuff:
%0 = load i8* undef, align ... | + ; Test for rdar://7452967
; RUN: opt < %s -licm -disable-output
define void @foo (i8* %v)
{
entry:
br i1 undef, label %preheader, label %return
-
+
preheader:
br i1 undef, label %loop, label %return
-
+
loop:
indirectbr i8* undef, [label %preheader, label %stuff]
- ... | 9 | 0.45 | 5 | 4 |
4d51f6a62f2d8af22577a589d43587900ed9bbdd | fellowms/templates/fellowms/fellow_detail.html | fellowms/templates/fellowms/fellow_detail.html | {% extends "fellowms/base.html" %}
{% load staticfiles %}
{% block content %}
<h1>Fellow Detail</h1>
{% include 'fellowms/photo.html' %}
<table class="table table-bordered">
<tbody>
<tr>
<th>Name</th>
<td>{{ fellow.forenames }} {{ fellow.surname }}</td>
</tr>
<tr>
... | {% extends "fellowms/base.html" %}
{% load staticfiles %}
{% block content %}
<h1>Fellow Detail
{% if user == fellow.user %}
<a class="btn btn-default" href="{% url 'fellow' %}" role="button">Edit</a>
{% endif %}
</h1>
{% include 'fellowms/photo.html' %}
<table class="table table-bordered">
<tbody>
<... | Add edit button for Fellows' profile | Add edit button for Fellows' profile
| HTML | bsd-3-clause | softwaresaved/fat,softwaresaved/fat,softwaresaved/fat,softwaresaved/fat | html | ## Code Before:
{% extends "fellowms/base.html" %}
{% load staticfiles %}
{% block content %}
<h1>Fellow Detail</h1>
{% include 'fellowms/photo.html' %}
<table class="table table-bordered">
<tbody>
<tr>
<th>Name</th>
<td>{{ fellow.forenames }} {{ fellow.surname }}</td>
</tr>... | {% extends "fellowms/base.html" %}
{% load staticfiles %}
{% block content %}
- <h1>Fellow Detail</h1>
? -----
+ <h1>Fellow Detail
+ {% if user == fellow.user %}
+ <a class="btn btn-default" href="{% url 'fellow' %}" role="button">Edit</a>
+ {% endif %}
+ </h1>
{% include 'fellowms/ph... | 6 | 0.206897 | 5 | 1 |
14d973181a0dc3cb4b9f035d208fd8d3bd6ef083 | Source/ViewModels/User.swift | Source/ViewModels/User.swift | import Foundation
public struct User {
public var name: String
public var avatarURL: NSURL?
public init(name: String, avatarURL: NSURL? = nil) {
self.name = name
self.avatarURL = avatarURL
}
}
| import Foundation
public struct User {
public var name: String
public var avatar: URLStringConvertible?
public init(name: String, avatar: URLStringConvertible? = nil) {
self.name = name
self.avatar = avatar
}
}
| Rename and change avatar type | Rename and change avatar type
| Swift | mit | hyperoslo/AsyncWall,hyperoslo/AsyncWall | swift | ## Code Before:
import Foundation
public struct User {
public var name: String
public var avatarURL: NSURL?
public init(name: String, avatarURL: NSURL? = nil) {
self.name = name
self.avatarURL = avatarURL
}
}
## Instruction:
Rename and change avatar type
## Code After:
import Foundation
public str... | import Foundation
public struct User {
public var name: String
- public var avatarURL: NSURL?
+ public var avatar: URLStringConvertible?
- public init(name: String, avatarURL: NSURL? = nil) {
? --- ^^^
+ public init(name: String, avatar: URLStringConvertibl... | 6 | 0.5 | 3 | 3 |
467942e1bebf5587bfe8a74317814b388b91d19c | build/build.bat | build/build.bat | Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%
If "%1" == "name" (
Set Output=%Output%_%DecorateName%
Set Style=%NameStyle%
)
If Not "%2" == "... | Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%
If "%1" == "name" (
Set Output=%Output%_%DecorateName%
Set Style=%NameStyle%
)
If Not "%2" == "... | Build header and footer properly | Build header and footer properly
| Batchfile | mit | fan-jiang/Dujing | batchfile | ## Code Before:
Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%
If "%1" == "name" (
Set Output=%Output%_%DecorateName%
Set Style=%NameStyle%
)
If Not "%2" ==... | Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%
If "%1" == "name" (
Set Output=%Output%_%DecorateName%
Set Style=%NameStyle%
)
... | 2 | 0.068966 | 1 | 1 |
c147f9e3f8a6e7b0b8276b36b9773160ee44215a | .travis.yml | .travis.yml | language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# install deps
install:
- pip install flake8 isort coverage coveralls
- pip install -r requirements.txt
before_script:
- flake8 --show-source .
- isort -rc .
# run tests
script: coverage run --source=pyfirmata tests.py
after_suc... | language: python
python:
- "2.7"
- "3.6"
- "3.7"
# install deps
install:
- pip install flake8 isort coverage coveralls
- pip install -r requirements.txt
before_script:
- flake8 --show-source .
- isort -rc .
# run tests
script: coverage run --source=pyfirmata tests.py
after_success:
- ... | Remove tests in older py3 versions, add 3.6, 3.7 | Remove tests in older py3 versions, add 3.6, 3.7
| YAML | mit | tino/pyFirmata | yaml | ## Code Before:
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# install deps
install:
- pip install flake8 isort coverage coveralls
- pip install -r requirements.txt
before_script:
- flake8 --show-source .
- isort -rc .
# run tests
script: coverage run --source=pyfirmata tes... | language: python
python:
- "2.7"
- - "3.3"
? ^
+ - "3.6"
? ^
- - "3.4"
? ^
+ - "3.7"
? ^
- - "3.5"
# install deps
install:
- pip install flake8 isort coverage coveralls
- pip install -r requirements.txt
before_script:
... | 5 | 0.227273 | 2 | 3 |
ef24ea057f101ce14c288a615f1f6616c9a1363c | lib/material_yes_no_buttons/_mixins.scss | lib/material_yes_no_buttons/_mixins.scss | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Change the color of the yes no buttons.
/// WARNING: be sure to pick a unique selector for the sele... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Change the color of the yes button.
//
// Apply directly to the <material-yes-no-buttons> element.
@... | Update material-yes-no-buttons mixins to use CSS shimming. | Update material-yes-no-buttons mixins to use CSS shimming.
Unfortunately, despite the warning at the top of the file, unique selectors
were not used (witness selectors such as '', '.buttons', or '.yes-no-buttons'),
causing mixins to override other mixins in other parts of the app or even in
other apps entirely. This i... | SCSS | bsd-3-clause | angulardart/angular_components,angulardart/angular_components,angulardart/angular_components | scss | ## Code Before:
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
/// Change the color of the yes no buttons.
/// WARNING: be sure to pick a unique selec... | // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
- /// Change the color of the yes no buttons.
- /// WARNING: be sure to pick a unique selector ... | 39 | 1.054054 | 21 | 18 |
c96f9e756f07509e870818f6fdcc4f6b123c05ce | test/test_constructor.rb | test/test_constructor.rb | require 'helper'
class TestConstructor < Test::Unit::TestCase
def test_build_fail
spore = Spore.new() rescue nil
assert_nil spore
end
def test_build_github_json
github_spec = File.join(File.dirname(__FILE__), 'github.json')
spore = Spore.new(github_spec)
assert_kind_of Spore, spore
as... | require 'helper'
class TestConstructor < Test::Unit::TestCase
def test_build_fail
assert_raise ArgumentError do
spore = Spore.new()
end
end
def test_build_github_json
github_spec = File.join(File.dirname(__FILE__), 'github.json')
spore = Spore.new(github_spec)
assert_kind_of Spore, s... | Use assert_raise to catch an exception in tests | Use assert_raise to catch an exception in tests
| Ruby | mit | glenux/contrib-Ruby-Spore,sukria/Ruby-Spore | ruby | ## Code Before:
require 'helper'
class TestConstructor < Test::Unit::TestCase
def test_build_fail
spore = Spore.new() rescue nil
assert_nil spore
end
def test_build_github_json
github_spec = File.join(File.dirname(__FILE__), 'github.json')
spore = Spore.new(github_spec)
assert_kind_of Spor... | require 'helper'
class TestConstructor < Test::Unit::TestCase
def test_build_fail
+ assert_raise ArgumentError do
- spore = Spore.new() rescue nil
? -----------
+ spore = Spore.new()
? ++
- assert_nil spore
+ end
end
def test_build_github_json
... | 5 | 0.227273 | 3 | 2 |
1e3337dcb4698f75260b5683091cd6ad00fb729f | README.md | README.md | e4Preferences
=============
Some code to manage preferencePage with an extension point (as in Eclipse 3)
You can get some explainations <a href="http://www.opcoach.com/en/managing-preference-pages-with-eclipse-4/">on my blog</a>
This code is available on this p2 repository :
| e4Preferences
=============
Some code to manage preferencePage with an extension point (as in Eclipse 3)
You can get some explainations <a href="http://www.opcoach.com/en/managing-preference-pages-with-eclipse-4/">on my blog</a>
This code is available on this p2 repository : https://dl.bintray.com/opcoach/e4Preferen... | Update the P2 repository URL on readme page | Update the P2 repository URL on readme page
| Markdown | epl-1.0 | opcoach/e4Preferences | markdown | ## Code Before:
e4Preferences
=============
Some code to manage preferencePage with an extension point (as in Eclipse 3)
You can get some explainations <a href="http://www.opcoach.com/en/managing-preference-pages-with-eclipse-4/">on my blog</a>
This code is available on this p2 repository :
## Instruction:
Update... | e4Preferences
=============
Some code to manage preferencePage with an extension point (as in Eclipse 3)
You can get some explainations <a href="http://www.opcoach.com/en/managing-preference-pages-with-eclipse-4/">on my blog</a>
- This code is available on this p2 repository :
+ This code is available... | 2 | 0.222222 | 1 | 1 |
9fa14350e0dbd60b4b088f4468124861b7e266ba | ringcentral-dark.user.css | ringcentral-dark.user.css | @-moz-document url-prefix("https://app.ringcentral.com/") {
body {
filter: invert(1) hue-rotate(180deg) !important;
}
[data-test-automation-id="imageCard"] {
filter: invert(1) hue-rotate(160deg) !important;
}
}
| /* ==UserStyle==
@name Ringcentral Dark Theme
@namespace mikemanger
@version 1.0.0
@homepageURL https://github.com/mikemanger/userscripts/
@updateURL https://raw.githubusercontent.com/mikemanger/userscripts/master/ringcentral-dark.user.css
@license CC-BY-4.0
==/UserStyle== */
@-moz-document url-pref... | Add meta to ringcentral theme | Add meta to ringcentral theme | CSS | mit | ohmanger/userscripts | css | ## Code Before:
@-moz-document url-prefix("https://app.ringcentral.com/") {
body {
filter: invert(1) hue-rotate(180deg) !important;
}
[data-test-automation-id="imageCard"] {
filter: invert(1) hue-rotate(160deg) !important;
}
}
## Instruction:
Add meta to ringcentral theme
## Code After:
/* ==UserStyle==
@name... | + /* ==UserStyle==
+ @name Ringcentral Dark Theme
+ @namespace mikemanger
+ @version 1.0.0
+ @homepageURL https://github.com/mikemanger/userscripts/
+ @updateURL https://raw.githubusercontent.com/mikemanger/userscripts/master/ringcentral-dark.user.css
+ @license CC-BY-4.0
+ ==/UserStyle== */
+
@-m... | 11 | 1.222222 | 10 | 1 |
1e787c01f689c26a59ea318c809537b7d317caf2 | test/desdemona/query_test.clj | test/desdemona/query_test.clj | (ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(l/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
(deftest logic-query-tests
(is (= []
... | (ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(l/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
(deftest dsl-query-tests
(is (= []
(... | Add a simple dsl query test | Add a simple dsl query test
| Clojure | epl-1.0 | RackSec/desdemona | clojure | ## Code Before:
(ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(l/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
(deftest logic-query-tests
(i... | (ns desdemona.query-test
(:require
[desdemona.query :as q]
[clojure.test :refer [deftest is]]))
(def dsl->logic
@#'desdemona.query/dsl->logic)
(deftest dsl->logic-tests
(is (= '(l/featurec x {:ip "10.0.0.1"})
(dsl->logic '(= (:ip x) "10.0.0.1")))))
+ (deftest dsl-query-te... | 5 | 0.263158 | 5 | 0 |
2fe38b319368b71a03f52652e7888378b762c72e | gear/software/u/ublock-origin.json | gear/software/u/ublock-origin.json | {
"name": "uBlock Origin",
"description": "A Chrome extension for blocking elements on the web.",
"url": "https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm"
}
| {
"name": "uBlock Origin",
"description": "A browser extension for blocking elements on the web.",
"url": "https://en.wikipedia.org/wiki/UBlock_Origin"
}
| Update the description and URL | Update the description and URL
| JSON | mit | ivuk/usesthis,waferbaby/usesthis,ivuk/usesthis,waferbaby/usesthis | json | ## Code Before:
{
"name": "uBlock Origin",
"description": "A Chrome extension for blocking elements on the web.",
"url": "https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm"
}
## Instruction:
Update the description and URL
## Code After:
{
"name": "uBlock Origin",
"desc... | {
"name": "uBlock Origin",
- "description": "A Chrome extension for blocking elements on the web.",
? ^^ ^
+ "description": "A browser extension for blocking elements on the web.",
? ^ ^^ +
- "url": "https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdl... | 4 | 0.8 | 2 | 2 |
07dc02c599ce25e7b5fcfcd83333b22fd92e10ec | t/t/scalar-sv-str.t | t/t/scalar-sv-str.t | use strict;
use warnings;
use utf8;
use Test::More;
use constant {
UTF_OK => -1,
ASCII => "Don't panic!",
KANJI => "ζ
γ¦γεΏ
θ¦γγγγΎγγ",
DIACR => "a\x{035C}\x{0361}",
NONUTF => "Don't\xffpanic!",
NONUTF_OFFSET => 5,
};
require_ok("XSTest");
is_deeply [ XSTest::test_unicode(ASCII) ], [ ASCII, 0+utf... | use strict;
use warnings;
use utf8;
use Test::More;
use constant {
UTF_OK => -1,
ASCII => "Don't panic!",
KANJI => "ζ
γ¦γεΏ
θ¦γγγγΎγγ",
DIACR => "a\x{035C}\x{0361}",
NONUTF => "Don't\xffpanic!",
NONUTF_OFFSET => 5,
};
require_ok("XSTest");
is_deeply [ XSTest::test_unicode(ASCII) ], [ ASCII, 0+utf... | Test SV::str() with a non-string argument. | Test SV::str() with a non-string argument.
| Perl | bsd-2-clause | vickenty/perl-xs,vickenty/perl-xs | perl | ## Code Before:
use strict;
use warnings;
use utf8;
use Test::More;
use constant {
UTF_OK => -1,
ASCII => "Don't panic!",
KANJI => "ζ
γ¦γεΏ
θ¦γγγγΎγγ",
DIACR => "a\x{035C}\x{0361}",
NONUTF => "Don't\xffpanic!",
NONUTF_OFFSET => 5,
};
require_ok("XSTest");
is_deeply [ XSTest::test_unicode(ASCII) ]... | use strict;
use warnings;
use utf8;
use Test::More;
use constant {
UTF_OK => -1,
ASCII => "Don't panic!",
KANJI => "ζ
γ¦γεΏ
θ¦γγγγΎγγ",
DIACR => "a\x{035C}\x{0361}",
NONUTF => "Don't\xffpanic!",
NONUTF_OFFSET => 5,
};
require_ok("XSTest");
is_deeply [ XSTest:... | 1 | 0.04 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.