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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
763fac476b773d0801e0128168c3b16edb9295d2 | shrc/00_paths.sh | shrc/00_paths.sh | if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="... | if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.cargo/bin"
PATH="... | Add GOPATH back into the mix | Add GOPATH back into the mix
| Shell | mit | faun/dotfiles,faun/dotfiles | shell | ## Code Before:
if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.car... | if [[ -z $TMUX ]]
then
PATH="$PATH:$HOME/bin"
PATH="$PATH:/usr/local/heroku/bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/opt/boxen/bin:/opt/boxen/homebrew/sbin:/opt/boxen/homebrew/bin"
PATH="$PATH:/usr/local/mysql/bin"
PATH="$PATH:/usr/local/git/bin"
PATH="$PATH:$HOME/.c... | 5 | 0.192308 | 3 | 2 |
7c09368b3322144c9cb2b0e18f0b4264acb88eb7 | blaze/__init__.py | blaze/__init__.py |
from constructors import array, open
from datashape import dshape
|
from constructors import array, open
from datashape import dshape
def test(verbosity=1, xunitfile=None, exit=False):
"""
Runs the full Blaze test suite, outputting
the results of the tests to sys.stdout.
This uses nose tests to discover which tests to
run, and runs tests in any 'tests' subdirecto... | Add a nose-based blaze.test() function as a placeholder | Add a nose-based blaze.test() function as a placeholder
Hopefully we find something better, but this at least gives
us behavior similar to NumPy as a start.
| Python | bsd-3-clause | AbhiAgarwal/blaze,dwillmer/blaze,mrocklin/blaze,jdmcbr/blaze,mwiebe/blaze,mwiebe/blaze,ChinaQuants/blaze,xlhtc007/blaze,markflorisson/blaze-core,ContinuumIO/blaze,dwillmer/blaze,cpcloud/blaze,FrancescAlted/blaze,cowlicks/blaze,maxalbert/blaze,caseyclements/blaze,aterrel/blaze,cowlicks/blaze,ChinaQuants/blaze,FrancescAl... | python | ## Code Before:
from constructors import array, open
from datashape import dshape
## Instruction:
Add a nose-based blaze.test() function as a placeholder
Hopefully we find something better, but this at least gives
us behavior similar to NumPy as a start.
## Code After:
from constructors import array, open
from dat... |
from constructors import array, open
from datashape import dshape
+
+ def test(verbosity=1, xunitfile=None, exit=False):
+ """
+ Runs the full Blaze test suite, outputting
+ the results of the tests to sys.stdout.
+
+ This uses nose tests to discover which tests to
+ run, and runs tests in ... | 38 | 12.666667 | 38 | 0 |
26ba9c57740932c113d57181d5b27b3514d1091f | entity/item/ArmorPadded.json | entity/item/ArmorPadded.json | {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
}
}
| {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
"HealthComponent": {
"MaxHealth": 2,
},
}
}
| Revert "remove health bonus from padded armor" | Revert "remove health bonus from padded armor"
This reverts commit 051eb8e07ef0b7115920e29ad4d6af5a48ee72ca.
| JSON | mit | scottcs/wyx | json | ## Code Before:
{
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
}
}
## Instruction:
Revert "remove health bonus from padded armor"
This reverts comm... | {
"family": "Armor",
"kind": "Padded",
"variation": 1,
"components": {
"GraphicsComponent": {
"TileSet": "item",
"TileCoords": {
"item": {2, 2},
},
},
"CombatComponent": {
"Defense": 1,
},
+ "HealthComponent": {
+ "MaxHealth": 2,
+ },
}
} | 3 | 0.1875 | 3 | 0 |
a580bff4a4cbee702ec965cbd527706e6bbdb93c | sass/placeiq-style-guide.scss | sass/placeiq-style-guide.scss | //PlaceIQ style guide colors
$piq-purple: #6769B0;
$piq-gray: #565656;
$piq-red: #EE3D55;
$piq-aqua-dark: #47A5BC;
$piq-aqua: #3FC4E0;
$piq-gold: #FDC364;
$piq-gold-light: #F0D399;
| //PlaceIQ style guide colors
$piq-white: #FFFFFF;
$piq-purple: #6756A5;
$piq-gray: #E4E5E6;
$piq-gray-dark: #545456;
$piq-red: #EF435E;
$piq-teal: #00BDCD;
$piq-gold: #FDB740;
| Update PlaceIQ colors from new style guide | Update PlaceIQ colors from new style guide
| SCSS | mit | chadwilcomb/color-sets | scss | ## Code Before:
//PlaceIQ style guide colors
$piq-purple: #6769B0;
$piq-gray: #565656;
$piq-red: #EE3D55;
$piq-aqua-dark: #47A5BC;
$piq-aqua: #3FC4E0;
$piq-gold: #FDC364;
$piq-gold-light: #F0D399;
## Instruction:
Update PlaceIQ colors from new style guide
## Code After:
//PlaceIQ style guide colors
$piq-white: #FFFFF... | //PlaceIQ style guide colors
+ $piq-white: #FFFFFF;
- $piq-purple: #6769B0;
? ^^^
+ $piq-purple: #6756A5;
? + ^^
+ $piq-gray: #E4E5E6;
- $piq-gray: #565656;
? ^ ^
+ $piq-gray-dark: #545456;
? +++++ ^ ^
- $piq-red: #EE3D55;
? ----
+ $piq-red: ... | 14 | 1.75 | 7 | 7 |
40e46880557d770952e6081978dac7413dd2cc37 | server/public/javascripts/frontpage.js | server/public/javascripts/frontpage.js | //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | Improve login page when wrong password is entered | Improve login page when wrong password is entered
| JavaScript | apache-2.0 | ilkkao/mas,ilkkao/mas,ilkkao/mas,ilkkao/mas | javascript | ## Code Before:
//
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless... | //
// Copyright 2014 Ilkka Oksanen <iao@iki.fi>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Un... | 6 | 0.142857 | 6 | 0 |
9d18f318ac79b2a66b33fa4ba4f0745842d337e8 | app/webpacker/css/admin/all.scss | app/webpacker/css/admin/all.scss | /*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style scope.
*
*= r... | @import 'vendor/assets/stylesheets/normalize';
@import 'vendor/assets/stylesheets/responsive-tables';
@import 'vendor/assets/stylesheets/jquery.powertip';
@import 'jquery.ui.dialog';
@import '../shared/textAngular';
@import '../shared/ng-tags-input.min';
@import 'select2';
@import '~flatpickr/dist/flatpickr';
@import '... | Remove Sprockets includes in admin scss | Remove Sprockets includes in admin scss
| SCSS | agpl-3.0 | mkllnk/openfoodnetwork,Matt-Yorkley/openfoodnetwork,mkllnk/openfoodnetwork,lin-d-hop/openfoodnetwork,openfoodfoundation/openfoodnetwork,lin-d-hop/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,openfoodfoundation/openfoodnetwork,Matt-Yorkley/openfoodnetwork,l... | scss | ## Code Before:
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
* the top of the compiled file, but it's generally better to create a new file per style ... | - /*
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
- * the top of the compiled file, but it's generally better to create a new file per style scope.
-... | 31 | 0.584906 | 10 | 21 |
4d410dec85fc944717a6537e9eef2585a53159b6 | python_logging_rabbitmq/formatters.py | python_logging_rabbitmq/formatters.py | import logging
from socket import gethostname
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop('include', None)... | import logging
from socket import gethostname
from django.core.serializers.json import DjangoJSONEncoder
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *arg... | Use DjangoJSONEncoder for JSON serialization | Use DjangoJSONEncoder for JSON serialization
| Python | mit | albertomr86/python-logging-rabbitmq | python | ## Code Before:
import logging
from socket import gethostname
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
def __init__(self, *args, **kwargs):
include = kwargs.pop(... | import logging
from socket import gethostname
+ from django.core.serializers.json import DjangoJSONEncoder
from .compat import json, text_type
class JSONFormatter(logging.Formatter):
"""
Formatter to convert LogRecord into JSON.
Thanks to: https://github.com/lobziik/rlog
"""
... | 6 | 0.142857 | 4 | 2 |
ba3009d1d19243c703743070df68ad1ea11d454e | addons/hr_contract/__terp__.py | addons/hr_contract/__terp__.py | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Martial status,
*... | Add hr_contract_security.xml file entry in update_xml section | Add hr_contract_security.xml file entry in update_xml section
bzr revid: mga@tinyerp.com-cceb329e8e30908ba1f6594b9502506150d105b2 | Python | agpl-3.0 | ygol/odoo,fossoult/odoo,leoliujie/odoo,hoatle/odoo,vrenaville/ngo-addons-backport,matrixise/odoo,cedk/odoo,chiragjogi/odoo,lsinfo/odoo,Nick-OpusVL/odoo,ihsanudin/odoo,dfang/odoo,gsmartway/odoo,ojengwa/odoo,windedge/odoo,tangyiyong/odoo,agrista/odoo-saas,mlaitinen/odoo,Daniel-CA/odoo,incaser/odoo-odoo,VitalPet/odoo,xujb... | python | ## Code Before:
{
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
* Ma... | {
"name" : "Human Resources Contracts",
"version" : "1.0",
"author" : "Tiny",
"category" : "Generic Modules/Human Resources",
"website" : "http://tinyerp.com/module_hr.html",
"depends" : ["hr"],
"module": "",
"description": """
Add all information on the employee form to manage contracts:
... | 5 | 0.227273 | 4 | 1 |
e6f5961bac1c19a80469d7753b14a0d76b66e7f2 | package.js | package.js | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".idea"]
};
packa... | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"icon": path.resolve("build", "windows.ico"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
... | Package windows version with icon | Package windows version with icon
| JavaScript | mit | NoahAndrews/qmk_firmware_flasher,NoahAndrews/qmk_firmware_flasher,NoahAndrews/qmk_firmware_flasher | javascript | ## Code Before:
const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
"unpackDir": "dfu"
},
"ignore": ["msi", "setup", ".i... | const packager = require('electron-packager');
const path = require('path');
const os = require('os');
packagerOptions = {
"dir": ".",
"out": path.resolve("dist", "windows"),
+ "icon": path.resolve("build", "windows.ico"),
"platform": "win32",
"arch": "ia32",
"overwrite": true,
"asar": {
... | 1 | 0.047619 | 1 | 0 |
f509a283b1e0c049f6f29f03541fbd83c888cf0a | Cargo.toml | Cargo.toml | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml = "0.4"
[... | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[profile.release]
lto = true
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json =... | Enable LTO for release builds | Enable LTO for release builds
| TOML | agpl-3.0 | Acizza/anitrack | toml | ## Code Before:
[package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
toml ... | [package]
name = "anitrack"
version = "0.1.0"
authors = ["Acizza <jonathanmce@gmail.com>"]
+
+ [profile.release]
+ lto = true
[dependencies]
base64 = "0.9"
chrono = "0.4"
clap = "2.29"
failure = "0.1"
lazy_static = "1.0"
regex = "0.2"
serde = "1.0"
s... | 3 | 0.136364 | 3 | 0 |
4e3642d3936e64aefa759879be258e99470bb795 | packages/redux-resource/src/utils/request-statuses.js | packages/redux-resource/src/utils/request-statuses.js | import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request... | import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access the NULL request... | Update warning message one last time | Update warning message one last time
| JavaScript | mit | jmeas/resourceful-redux,jmeas/resourceful-redux | javascript | ## Code Before:
import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempted to access ... | import warning from './warning';
const requestStatuses = {
IDLE: 'IDLE',
PENDING: 'PENDING',
FAILED: 'FAILED',
SUCCEEDED: 'SUCCEEDED',
};
if (process.env.NODE_ENV !== 'production') {
Object.defineProperty(requestStatuses, 'NULL', {
get() {
warning(
`You attempte... | 4 | 0.133333 | 2 | 2 |
1f1906cdaac9de93913139fa434f506f20e76f8e | README.md | README.md |
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [(NOT YET:) JavaDoc]()
|
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [JavaDoc](https://gatenlp.github.io/gateplugin-LearningFramework/apidocs/)
| Add the link to the javadoc | Add the link to the javadoc
| Markdown | lgpl-2.1 | GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework,GateNLP/gateplugin-LearningFramework | markdown | ## Code Before:
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
* [(NOT YET:) JavaDoc]()
## Instruction:
Add the link to the jav... |
Welcome to the page of the GATE Learning Framework plugin!
* [User Documentation](https://gatenlp.github.io/gateplugin-LearningFramework/)
* [Developer Documentation/Notes](https://github.com/GateNLP/gateplugin-LearningFramework/wiki)
- * [(NOT YET:) JavaDoc]()
+ * [JavaDoc](https://gatenlp.github.io/gatepl... | 2 | 0.25 | 1 | 1 |
f6bcbfb6b5c4734b0080eb539d1615391ef07bbf | yafsrc/YetAnotherForum.NET/default.aspx | yafsrc/YetAnotherForum.NET/default.aspx | <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
YAF.Classes.Utils.CreateMa... | <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( YafContext.Current.PageUserID, this, x );
YAF.Classes.U... | Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated) | Fix for a rare problem that could occur if there was an exception very early in the ASP.NET page life-cycle (before the "forum" control was instantiated)
| ASP | apache-2.0 | moorehojer/YAFNET,mexxanit/YAFNET,Pathfinder-Fr/YAFNET,YAFNET/YAFNET,moorehojer/YAFNET,YAFNET/YAFNET,Pathfinder-Fr/YAFNET,Pathfinder-Fr/YAFNET,YAFNET/YAFNET,moorehojer/YAFNET,mexxanit/YAFNET,mexxanit/YAFNET,YAFNET/YAFNET | asp | ## Code Before:
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
YAF.Classe... | <%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" %>
<script runat="server">
public void Page_Error( object sender, System.EventArgs e )
{
Exception x = Server.GetLastError();
- YAF.Classes.Data.DB.eventlog_create( forum.PageUserID, this, x );
? ... | 2 | 0.086957 | 1 | 1 |
04461ad197d897ab9a52960ec4c03b33eeccb05e | examples/TrieExample.java | examples/TrieExample.java | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
... | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundException e) {
... | Add usage example for longestPRefixOf() method | Add usage example for longestPRefixOf() method
| Java | mit | ruiafonsopereira/string-matching | java | ## Code Before:
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileNotFoundE... | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class TrieExample {
public static void main(String[] args) {
// Open the data file
Scanner scf = null;
try {
scf = new Scanner(new File("./data/peter_piper.txt"));
} catch (FileN... | 11 | 0.25 | 8 | 3 |
ea28eb6b88bc40393c1e6e6b147f5729370d869a | README.md | README.md |
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/)... |
[Hello World](http://noflojs.org/noflo-browser-app/main.html)
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.gith... | Add link to deployed Hello World | Add link to deployed Hello World
| Markdown | mit | jonnor/synchrony,YuepengGuo/noflo-browser-app,meticulo3366/noflo-browser-app,mariyater403/my_br,forresto/the-graph,noflo/noflo-mirobot,ariva-posi/test3,mariyater403/my_br,automata/noflo-mirobot,noflo/noflo-browser-app,alfa256/noflo-browser-app,klyap/StreamPy-UI-components,noflo/noflo-browser-app,amonks/noflo-browser-ap... | markdown | ## Code Before:
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github access token](https://help.github.com/articles/creating-an-access-token-for-co... | +
+ [Hello World](http://noflojs.org/noflo-browser-app/main.html)
Usage
-------
* Fork the project on githubs
* Import in Flowhub
* Make changes, syncronize in Flowhub
Setup autodeploy
--------------
To enable autodeploy
* Change repo name in Gruntfile.coffee
* create a [personal github... | 2 | 0.125 | 2 | 0 |
e5971c6024b2ec6a3bde99f213460593e5886eed | .rubocop.yml | .rubocop.yml | require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectat... | require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/MultipleExpectat... | Add note about frozen string literal | Add note about frozen string literal
| YAML | mit | paulfioravanti/resume | yaml | ## Code Before:
require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/ExampleLength:
Max: 9
RSpec/... | require: rubocop-rspec
AllCops:
Exclude:
- "resume.rb"
- "strings_en.rb"
- "strings_it.rb"
- "strings_ja.rb"
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 20
Metrics/MethodLength:
Max: 30
Metrics/ModuleLength:
Exclude:
- "spec/**/*"
RSpec/Examp... | 2 | 0.038462 | 1 | 1 |
758dc40a04e1d97a325ea172207086e0820cd739 | README.md | README.md | This is our CL4LRL software project!
============
| Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low-Resource Languages
Software Project, Winter Semester 2013/14
University of Saarland
------------
Developers trying to incorporate speec... | Add mini project description to readme | Add mini project description to readme
| Markdown | bsd-2-clause | lex4all/lex4all,lex4all/lex4all,lex4all/lex4all | markdown | ## Code Before:
This is our CL4LRL software project!
============
## Instruction:
Add mini project description to readme
## Code After:
Welcome to our CL4LRL software project!
Generating Pronunciation Lexicons
for Small-Vocabulary ASR in LRLs
============
Anjana Vakil & Max Paulus
Computational Linguistics for Low... | - This is our CL4LRL software project!
? ^^^^ ^^
+ Welcome to our CL4LRL software project!
? ^^^^^^^ ^^
+
+ Generating Pronunciation Lexicons
+ for Small-Vocabulary ASR in LRLs
============
+
+ Anjana Vakil & Max Paulus
+ Computational Linguistics for Low-Resource Languages
+ Software Project, Winter Semester 20... | 16 | 8 | 15 | 1 |
a10b5f6124c7e3ae4b1eb8beb981c36404be9ba5 | README.md | README.md | PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PP... | PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
---------------
Include PP... | Add link to the demo project | Add link to the demo project | Markdown | apache-2.0 | Coreoz/PPT-Templates | markdown | ## Code Before:
PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
----------... | PPT Templates
=============
PPT Template is a small templating library to generate PowerPoint presentations.
This project is mainly based on [POI XSLF](https://poi.apache.org/slideshow/xslf-cookbook.html).
Templates are directly created in PowerPoint using a variable system.
Getting started
--------... | 4 | 0.085106 | 4 | 0 |
aae3b081d9c91673e4afaef62de0740da016b766 | lib/views/game.erb | lib/views/game.erb | <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table>
<tr>
<td><%= @game.gametype.board_arr[0] %> </td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position' id='grid_posit... | <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table style="border: 10px solid black;">
<tr>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[0] %></td>
<td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[1] %></td>
<td style="bo... | Create html table for web view | Create html table for web view
| HTML+ERB | mit | portatlas/tictactoe,portatlas/tictactoe | html+erb | ## Code Before:
<html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
<table>
<tr>
<td><%= @game.gametype.board_arr[0] %> </td>
</tr>
</table>
<form method='post' action='/game/move'>
<label for='grid_position'>Position:</label>
<input type='text' name='grid_position... | <html>
<head>
<title>TicTacToe</title>
</head>
<body>
<h1>TicTacToe</h1>
- <table>
+ <table style="border: 10px solid black;">
<tr>
- <td><%= @game.gametype.board_arr[0] %> </td>
+ <td style="border: 10px solid black;"><%= @game.ttt_board.board_arr[0] %></td>
+ <td style="... | 16 | 0.761905 | 14 | 2 |
99083cff6557332cb33e16239857157d35775294 | Sources/PageboyTests/PageboyPropertyTests.swift | Sources/PageboyTests/PageboyPropertyTests.swift | //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view co... | //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns correct view co... | Add tests for page view controller options | Add tests for page view controller options
| Swift | mit | uias/Pageboy,uias/Pageboy | swift | ## Code Before:
//
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController property returns... | //
// PageboyPropertyTests.swift
// Pageboy
//
// Created by Merrick Sapsford on 22/03/2017.
// Copyright © 2017 Merrick Sapsford. All rights reserved.
//
import XCTest
@testable import Pageboy
class PageboyPropertyTests: PageboyTests {
/// Test that currentViewController prop... | 10 | 0.27027 | 10 | 0 |
fdb9cfd590eaa427420083c77c7633d60e923276 | cellid_local.php | cellid_local.php | <?php
require_once("config.php");
if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
{
echo "Result:4";
die();
}
mysql_select_db("$DBNAME");
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUE... | <?php
require_once("database.php");
$db = connect_save();
if ($db === null)
{
echo "Result:4";
die();
}
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
$mcc = $_REQUEST["mcc"];
$mnc = $_REQUEST["mnc"];... | Use PDO in the local cellid script | Use PDO in the local cellid script
With 13ae949 the `mysql` calls have been changed to calls using the `PDO`
classes. This updates `cellid_local.php` to use `PDO` as well. It also uses
the proper capitalisation of the columns because at least the SQLite driver
is case sensitive.
| PHP | mit | espinosaluis/TrackMeViewer,espinosaluis/TrackMeViewer | php | ## Code Before:
<?php
require_once("config.php");
if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
{
echo "Result:4";
die();
}
mysql_select_db("$DBNAME");
if ($_REQUEST["myl"] != "")
{
$temp = split(":", $_REQUEST["myl"]);
$mcc = $temp[0];
$mnc = $temp[1];
$lac = $temp[2];
$cid = $temp[3];
} else
{
... | <?php
- require_once("config.php");
? ^^^^^^
+ require_once("database.php");
? ^^^^^^^^
- if(!@mysql_connect("$DBIP","$DBUSER","$DBPASS"))
+ $db = connect_save();
+
+ if ($db === null)
{
echo "Result:4";
die();
}
-
- mysql_select_db("$DBNAME");
-
if ($_REQUEST["m... | 15 | 0.326087 | 7 | 8 |
d360856a1276edeb69992531f431977d9267d3ac | src/pages/worker-page.js | src/pages/worker-page.js | import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
... | import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetchTimeout = null;
... | Fix display issue with versions in worker stats | Fix display issue with versions in worker stats
| JavaScript | mit | frigg/frigg-hq-frontend,frigg/frigg-hq-frontend | javascript | ## Code Before:
import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
this.fetch... | import React from 'react';
import moment from 'moment';
import Actions from '../actions';
import WorkerStatsStore from '../stores/worker-stats-store';
export default class WorkerPage extends React.Component {
constructor() {
super();
this.state = WorkerStatsStore.getState();
... | 2 | 0.030769 | 1 | 1 |
5de22e6a17f84321dabd063eff67943a70c12490 | README.md | README.md |

There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > Themes__ section ... |

> The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).
There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by d... | Add note about the font | Add note about the font | Markdown | mit | vith/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,JeNeSuisPasDave/one-dark-syntax,grigio/atom-darkmate-syntax,vith/one-dark-syntax,grigio/atom-darkmate-syntax,vith/one-dark-syntax,colllin/one-dark-syntax,colllin/one-dark-syntax,yuriihabrusiev/one-dark-syntax,vith/one-dark-syntax,nviel/nico-syntax,colllin/one-dark-sy... | markdown | ## Code Before:

There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This theme is installed by default with Atom and can be activated by going to the __Settings > T... |

+
+ > The font used in the screenshot is [Fira Mono](https://github.com/mozilla/Fira).
There is also a matching [UI theme](https://atom.io/themes/one-dark-ui).
### Install
This the... | 2 | 0.25 | 2 | 0 |
c421485616110a99c2ba3cdc640e65f6e5f891ae | app-backend-tasks-b2.yaml | app-backend-tasks-b2.yaml | service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
... | service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
- name: MySQLdb
... | Enable console access from backend instance | Enable console access from backend instance
| YAML | mit | bdaroz/the-blue-alliance,phil-lopreiato/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeugene/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,phil-lopreiato/the-blue-alliance,bdaroz/the-blue-alliance,the-blue-alliance/the-blue-alliance,b... | yaml | ## Code Before:
service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: pytz
version: "2016.4"
-... | service: backend-tasks-b2
runtime: python27
api_version: 1
threadsafe: true
builtins:
- deferred: on
instance_class: B4_1G
basic_scaling:
max_instances: 1
libraries:
- name: django
version: "1.11"
- name: numpy
version: "1.6.1"
- name: jinja2
version: "2.6"
- name: ... | 3 | 0.085714 | 3 | 0 |
583cdd7911b1527caa4f9ff01eaff81f9731ea89 | now.json | now.json | {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "index.html", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
| {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "*", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
| Update to use static files | Update to use static files
| JSON | mit | devpunks/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi,snuggs/snuggsi,devpunks/snuggsi,devpunks/snuggsi,snuggs/snuggsi | json | ## Code Before:
{
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
{ "src": "index.html", "use": "@now/static" }
],
"files": ["index.html", "*.css"]
}
## Instruction:
Update to use static files
## Code After:
{
"version": 2,
"name": "snuggsi",
"alias": ... | {
"version": 2,
"name": "snuggsi",
"alias": ["snuggsi.com", "snuggsi"],
"builds": [
- { "src": "index.html", "use": "@now/static" }
? ^^^^^^^^^^
+ { "src": "*", "use": "@now/static" }
? ^
],
"files": ["index.html", "*.css"]
} | 2 | 0.181818 | 1 | 1 |
a480755acd4332ee1fb003fd7db415c63b0f5f62 | Gruntfile.js | Gruntfile.js | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build:... | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
},
build:... | Make sure all package files are committed correctly when bumping a version | Make sure all package files are committed correctly when bumping a version | JavaScript | mit | jblarsen/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,rick-frantz/leaflet-locatecontrol,Drooids/leaflet-locatecontrol,domoritz/leaflet-locatecontrol,jblarsen/leaflet-locatecontrol,withtwoemms/leaflet-locatecontrol,vivek8943/leaflet-locatecontrol,nikolauskrismer/leaflet-locatecontrol,nikolauskrismer/leaflet-loc... | javascript | ## Code Before:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
... | module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! Version: <%= pkg.version %>\nDate: <%= grunt.template.today("yyyy-mm-dd") %> */\n',
preserveComments: 'some'
... | 1 | 0.025641 | 1 | 0 |
fc5dfa3c1c647c6234f10e6f8d028ac01f5f1f09 | spec/internal/app/models/application_record.rb | spec/internal/app/models/application_record.rb |
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# computed attributes
def computed_binary
binary
end
def computed_boolean
boolean
end
def computed_date
date
end
def computed_datetime
datetime
end
def computed_decimal
decimal
end
def computed_... |
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
FIELD_TYPES = %w[
bignum
binary
boolean
date
datetime
decimal
float
integer
string
symbol
text
time
].freeze
def method_missing(method_name, *args, &block)
return super unless method_na... | Update the test model to hold a constant array of data types | Update the test model to hold a constant array of data types
| Ruby | mit | fractaledmind/activeset,fractaledmind/activeset | ruby | ## Code Before:
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
# computed attributes
def computed_binary
binary
end
def computed_boolean
boolean
end
def computed_date
date
end
def computed_datetime
datetime
end
def computed_decimal
decimal
end
... |
class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
- # computed attributes
+ FIELD_TYPES = %w[
+ bignum
+ binary
+ boolean
+ date
+ datetime
+ decimal
+ float
+ integer
+ string
+ symbol
+ text
+ time
+ ].freeze
- def computed_b... | 62 | 1.347826 | 29 | 33 |
403c368d78cea8f27ac36d2d24cb8fbca3bbb64f | src/Vinkla/Translator/TranslatorTrait.php | src/Vinkla/Translator/TranslatorTrait.php | <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translator... | <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
protected $translator... | Add documentation to the getLocale method. | Add documentation to the getLocale method.
| PHP | mit | tuvaergun/translator,schelmo/translator,vinkla/translator,alexanderweiss/translator | php | ## Code Before:
<?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @var mixed
*/
prote... | <?php namespace Vinkla\Translator;
use Vinkla\Translator\Exceptions\TranslatorException;
use Config, Session;
trait TranslatorTrait {
/**
* The default localization key.
*
* @var string
*/
private $defaultLocaleKey = 'locale_id';
/**
* Translator instance.
*
* @v... | 2 | 0.030769 | 2 | 0 |
ca1b5815617b6d5f24731b4feb096ae99bc7b7ba | metadata/com.parishod.watomatic.yml | metadata/com.parishod.watomatic.yml | AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker:... | AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomatic
IssueTracker:... | Update Watomatic to 1.11 (12) | Update Watomatic to 1.11 (12)
| YAML | agpl-3.0 | f-droid/fdroiddata,f-droid/fdroiddata | yaml | ## Code Before:
AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/watomat... | AntiFeatures:
- NonFreeDep
Categories:
- Internet
- Phone & SMS
License: GPL-3.0-only
AuthorName: Deekshith Allamaneni
AuthorEmail: watomatic@deekshith.in
AuthorWebSite: https://twitter.com/adeekshith
WebSite: https://adeekshith.github.io/watomatic
SourceCode: https://github.com/adeekshith/w... | 11 | 0.275 | 9 | 2 |
f3fcb807c2f396280d6c34edceac4f9e7a198432 | words/words.fr.txt | words/words.fr.txt | arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-dro... | arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants causes
ayant-dro... | Add the end of the list | Add the end of the list
[source](https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Fautes_de_fran%C3%A7ais#Aborig.C3.A8ne) | Text | mit | dawsonbotsford/spellingBee,dawsonbotsford/spellingBee | text | ## Code Before:
arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes->ayants ... | arborigène->aborigène
acceuil->accueil
aggressif->agressif
au jour d'aujourd'hui->aujourd'hui
autant pour moi->au temps pour moi
autrement plus->autrement
aux dépends de->aux dépens de
à l'envie->à l'envi
ayant-droit->ayant droit
ayant-cause->ayant cause
ayant droits->ayants droits
ayant causes-... | 36 | 2.25 | 36 | 0 |
bfa7e87bd41973a941c9e4d354062ee498ad6395 | packages/skin-database/api/server.ts | packages/skin-database/api/server.ts | // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(actio... | // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => handler.handle(actio... | Improve message to include link | Improve message to include link
| TypeScript | mit | captbaritone/winamp2-js,captbaritone/winamp2-js,captbaritone/winamp2-js | typescript | ## Code Before:
// import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) => hand... | // import Sentry from "@sentry/node";
import { createApp } from "./app";
import DiscordEventHandler from "./DiscordEventHandler";
const port = process.env.PORT ? Number(process.env.PORT) : 3001;
const handler = new DiscordEventHandler();
// GO!
const app = createApp({
eventHandler: (action) =... | 4 | 0.137931 | 3 | 1 |
9dda23e9c80bccf9e5fbb6e3f8774aa7e0ac6504 | src/Bundle/PageBundle/Resources/config/doctrine/Page.Grid.Row.mongodb.xml | src/Bundle/PageBundle/Resources/config/doctrine/Page.Grid.Row.mongodb.xml | <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<e... | <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
<e... | Remove strategy="set" from Grid\Column for INTEGRATED-1545 | Remove strategy="set" from Grid\Column for INTEGRATED-1545
| XML | mit | integratedfordevelopers/integrated,integratedfordevelopers/integrated,integratedfordevelopers/integrated | xml | ## Code Before:
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mappi... | <doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">
... | 2 | 0.181818 | 1 | 1 |
b2a1eff99af5fb12ce7514efccf6e3897f310993 | .travis.yml | .travis.yml | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -Source https://ww... | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org
- nuget push VcEngine.Automation.*.nupkg -ApiKey $NUGET_API_KEY -Source htt... | Set API key through command line | Set API key through command line
| YAML | mit | redsolo/vcengine-automation,redsolo/vcengine-automation | yaml | ## Code Before:
language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
- nuget push VcEngine.Automation.*.nupkg -S... | language: csharp
solution: src/VcEngineAutomation.sln
script:
- msbuild /p:Configuration=Release src/VcEngineAutomation.sln
- nuget pack ./nuspec/VcEngineAutomation.nuspec
- - nuget setApiKey $NUGET_API_KEY -Source https://www.nuget.org -Verbosity quiet
? ... | 4 | 0.235294 | 2 | 2 |
ca6a758f525c741f277e7e7be115b5b9d20fa5c1 | openxc/tools/dump.py | openxc/tools/dump.py | from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
# TODO update docs on trace file format
print(JsonFormat... | from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
print(JsonFormatter.serialize(message))
def parse_options(... | Remove a resolved TODO - trace file formats now standardized. | Remove a resolved TODO - trace file formats now standardized.
| Python | bsd-3-clause | openxc/openxc-python,openxc/openxc-python,openxc/openxc-python | python | ## Code Before:
from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
# TODO update docs on trace file format
... | from __future__ import absolute_import
import argparse
import time
from openxc.formats.json import JsonFormatter
from .common import device_options, configure_logging, select_device
def receive(message, **kwargs):
message['timestamp'] = time.time()
- # TODO update docs on trace file forma... | 1 | 0.026316 | 0 | 1 |
331ba1ae38cc5f12e55ccd878221a65f41ab3897 | README.rst | README.rst | jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This lib... | jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Python 3).
This lib... | Add a bit more info about proxy in readme | Add a bit more info about proxy in readme
| reStructuredText | mit | gazpachoking/jsonref | restructuredtext | ## Code Before:
jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including Pyth... | jsonref
=======
.. image:: https://travis-ci.org/gazpachoking/jsonref.png?branch=master
:target: https://travis-ci.org/gazpachoking/jsonref
``jsonref`` is an implementation of
`JSON Reference <http://tools.ietf.org/id/draft-pbryan-zyp-json-ref-03.html>`_
for Python (supporting 2.6+ including ... | 19 | 0.76 | 18 | 1 |
93acb34d999f89d23d2b613f12c1c767304c2ad6 | gor/middleware.py | gor/middleware.py |
import os, sys
from .base import Gor
from tornado import gen, ioloop, queues
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.coroutine
def... |
import sys
import errno
import logging
from .base import Gor
from tornado import gen, ioloop, queues
import contextlib
from tornado.stack_context import StackContext
@contextlib.contextmanager
def die_on_error():
try:
yield
except Exception:
logging.error("exception in asynchronous operati... | Exit as soon as KeyboardInterrupt catched | Exit as soon as KeyboardInterrupt catched
| Python | mit | amyangfei/GorMW | python | ## Code Before:
import os, sys
from .base import Gor
from tornado import gen, ioloop, queues
class TornadoGor(Gor):
def __init__(self, *args, **kwargs):
super(TornadoGor, self).__init__(*args, **kwargs)
self.q = queues.Queue()
self.concurrency = kwargs.get('concurrency', 2)
@gen.c... |
- import os, sys
? ----
+ import sys
+ import errno
+ import logging
from .base import Gor
from tornado import gen, ioloop, queues
+
+
+ import contextlib
+ from tornado.stack_context import StackContext
+
+ @contextlib.contextmanager
+ def die_on_error():
+ try:
+ yield
+ except... | 28 | 0.571429 | 21 | 7 |
97bfbf4e9f9ecd7e438d9a068deb90bb9b60e593 | Casks/mozart2.rb | Casks/mozart2.rb | cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bdeaf6c-x86_64-dar... | cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/sourceforge/mozart-oz/mozart2-2.0.0-alpha.0+build.4116.bdeaf6c-x86_64-darwin.dmg'
na... | Fix url and homepage in Mozart2 Cask | Fix url and homepage in Mozart2 Cask
* Specify url in a preferable URL format as stated at
https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#sourceforge-urls
* Provide a valid link to Mozart2 homepage
| Ruby | bsd-2-clause | pkq/homebrew-versions,wickedsp1d3r/homebrew-versions,mahori/homebrew-cask-versions,digital-wonderland/homebrew-versions,bey2lah/homebrew-versions,danielbayley/homebrew-versions,hugoboos/homebrew-versions,mauricerkelly/homebrew-versions,wickedsp1d3r/homebrew-versions,toonetown/homebrew-cask-versions,RJHsiao/homebrew-ver... | ruby | ## Code Before:
cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bd... | cask :v1 => 'mozart2' do
version '2.0.0'
sha256 '4f077b0658557e532bfa7519977ce9870c55350a1cb395ef77bcab623c70ee04'
# sourceforge.net is the official download host per the vendor homepage
- url 'http://downloads.sourceforge.net/project/mozart-oz/v2.0.0-alpha.0/mozart2-2.0.0-alpha.0%2Bbuild.4116.bdeaf6... | 4 | 0.333333 | 2 | 2 |
5a6f4c5690d3f7292e6c96ea7170c741306665e3 | app/controllers/user_preference_controller.rb | app/controllers/user_preference_controller.rb | class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :con... | class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text => doc.to_s, :con... | Use named constants for HTTP response codes. | Use named constants for HTTP response codes.
| Ruby | agpl-3.0 | tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam,tillmo/do-roam | ruby | ## Code Before:
class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
render :text =... | class UserPreferenceController < ApplicationController
before_filter :authorize
def read
doc = OSM::API.new.get_xml_doc
prefs = @user.preferences
el1 = XML::Node.new 'preferences'
prefs.each do |pref|
el1 << pref.to_xml_node
end
doc.root << el1
... | 6 | 0.088235 | 3 | 3 |
7697cd9e118f64580fc57b4742a99a4edc4ce297 | app/client/src/components/common/Input.tsx | app/client/src/components/common/Input.tsx | import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
p... | import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${colors.input};
p... | Change placeholder styling on focus | Change placeholder styling on focus
| TypeScript | mit | saadq/latexresu.me,saadq/latexresu.me | typescript | ## Code Before:
import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${co... | import { InputHTMLAttributes, memo, FC } from 'react'
import { FieldPath, UseFormReturn } from 'react-hook-form'
import styled from 'styled-components'
import { colors } from '../../theme'
import { FormValues } from '../../types/form'
const StyledInput = styled.input`
border: none;
background: ${... | 4 | 0.1 | 4 | 0 |
e003df1fd5f972751ef8585111b9b01b97cc6ffb | stemcell_builder/stages/base_centos/apply.sh | stemcell_builder/stages/base_centos/apply.sh |
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $... |
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /etc/resolv.conf $... | Use run_in_chroot function instead of hand-rolling | Use run_in_chroot function instead of hand-rolling
Signed-off-by: Tony Hansmann <2c126519f2a6ad76296f425c3012060fde99f90e@pivotallabs.com>
| Shell | apache-2.0 | barthy1/bosh,barthy1/bosh,barthy1/bosh,barthy1/bosh | shell | ## Code Before:
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
cp /e... |
set -e
base_dir=$(readlink -nf $(dirname $0)/../..)
source $base_dir/lib/prelude_apply.bash
mkdir -p $chroot/var/lib/rpm
rpm --root $chroot --rebuilddb
rpm --root $chroot --force --nodeps --install http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
... | 22 | 0.594595 | 5 | 17 |
5b5b8816e839ae1d99fe537810c0873f725af316 | frontend/styles/components/forms.scss | frontend/styles/components/forms.scss | .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}... | .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken($red, 20%);
}... | Add class to allow required fields without asterisk | Add class to allow required fields without asterisk
| SCSS | mit | fin/froide,fin/froide,fin/froide,fin/froide | scss | ## Code Before:
.important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.25rem;
color: darken... | .important-form {
background-color: #FFE9EE;
}
.errorlist {
margin: 0;
color: #b94a48;
list-style-type: none;
padding: 15px 0 0 0;
}
.help-block {
@extend .small;
@extend .text-muted;
}
.field-required {
&:after {
content: "*";
margin-left: 0.... | 8 | 0.347826 | 8 | 0 |
b75c0224d95005e55911bc7e81944728c78bcce1 | src/libs/library.cc | src/libs/library.cc |
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("console", Wrapped);
... |
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
DefineInternalObjectProperties(C.get());
C->SetNonWritable();
auto Wrapped = Value(... | Set Console object to non writable | Set Console object to non writable
| C++ | apache-2.0 | PrinceDhaliwal/grok,PrinceDhaliwal/grok,PrinceDhaliwal/grok | c++ | ## Code Before:
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
auto Wrapped = Value(std::make_shared<Object>(C));
V->StoreValue("conso... |
namespace grok {
namespace libs {
using namespace grok::vm;
using namespace grok::obj;
int LoadLibraries(VMContext *ctx)
{
// just console for now
auto V = GetVStore(ctx);
auto C = std::make_shared<Console>();
+ DefineInternalObjectProperties(C.get());
+ C->SetNonWritable(... | 2 | 0.1 | 2 | 0 |
b3a0abae79009088d2a2d633a04cc9a30095322c | bower.json | bower.json | {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies... | {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],
"dependencies... | Update dependencies to current versions. | Update dependencies to current versions.
| JSON | apache-2.0 | dainst/chronontology-frontend,dainst/chronontology-frontend | json | ## Code Before:
{
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
"tests"
],... | {
"name": "jeremy",
"version": "0.0.1",
"description": "Just another linked data repository (but with JSON-LD)",
"main": "index.html",
"moduleType": [
"globals"
],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"public/components",
"test",
... | 14 | 0.518519 | 7 | 7 |
2044a19198c1a178b0994ece8db9286099586ed4 | text_widget.c | text_widget.c | // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc, widget->buffer... | // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_... | Include configured padding in offset calculation. | Include configured padding in offset calculation.
| C | mit | jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus | c | ## Code Before:
// Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size();
xcb_image_text_8(xc... | // Copyright 2017, Jeffrey E. Bedard
#include "text_widget.h"
#include "XSTextWidget.h"
+ #include "config.h"
#include "font.h"
#include "xdata.h"
short xstatus_draw_text_widget(struct XSTextWidget * widget)
{
xcb_connection_t * xc = widget->connection;
struct JBDim font_size = xstatus_get_font_size... | 4 | 0.285714 | 3 | 1 |
15761f187bd2b6dbbd53a1add67074344a8c0fc7 | _posts/en/pages/2016-01-01-meetings.md | _posts/en/pages/2016-01-01-meetings.md | ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
{% include _meetings.html %}
| ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
The following summaries list may not be complete du... | Add link to meeting bot logs | Add link to meeting bot logs
| Markdown | mit | bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org,bitcoin-core/bitcoincore.org | markdown | ## Code Before:
---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
{% include _meetings.html %}
## In... | ---
type: pages
layout: page
lang: en
title: IRC Meetings
name: meetings
permalink: /en/meetings/
share: false
version: 2
---
The project usually holds IRC meetings every Thursday at 19:00 UTC in `#bitcoin-core-dev` on irc.freenode.net.
Everyone is welcome to attend.
+ The following summaries... | 2 | 0.142857 | 2 | 0 |
2f6838879b23f0e0e47416f3368180a1990f7e9e | display/app/views/transition/environments/_design_pull_in_progress.html.erb | display/app/views/transition/environments/_design_pull_in_progress.html.erb | <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly, @environment) %... | <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
// First poll in 5 sec, 10 sec thereafter.
window.design_pull_refresh_interval = window.design_pull_refresh_interval ? 10000 ... | Change design pull status polling to update sooner in the beginning. | Change design pull status polling to update sooner in the beginning.
| HTML+ERB | apache-2.0 | lkhusid/oneops,gauravlall/oneops,okornev/oneops,lkhusid/oneops,okornev/oneops,lkhusid/oneops,gauravlall/oneops,okornev/oneops,okornev/oneops,gauravlall/oneops,gauravlall/oneops,lkhusid/oneops,gauravlall/oneops,lkhusid/oneops,okornev/oneops,gauravlall/oneops,okornev/oneops,lkhusid/oneops | html+erb | ## Code Before:
<div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
setTimeout(function () {
$j.get("<%= pull_status_assembly_transition_environment_path(@assembly,... | <div class="alert alert-info">
<%= icon('spinner fa-spin') %> Design pull is in progress, started <strong><%= time_ago_in_words(@environment.updated_timestamp) %></strong>.
</div>
<script>
+ // First poll in 5 sec, 10 sec thereafter.
+ window.design_pull_refresh_interval = window.design_pull_refresh_inter... | 4 | 0.444444 | 3 | 1 |
8da95ec627f47ff58361398d99182e855e3d1bf3 | images/releng/k8s-ci-builder/variants.yaml | images/releng/k8s-ci-builder/variants.yaml | variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':
CONFIG: '1.... | variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.20':
CONFIG: '1.20'
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.1... | Add 1.20 variant for k8s-ci-builder image | releng: Add 1.20 variant for k8s-ci-builder image
| YAML | apache-2.0 | kubernetes/release,kubernetes/release | yaml | ## Code Before:
variants:
default:
CONFIG: default
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
'1.19':
CONFIG: '1.19'
GO_VERSION: '1.15.3'
BAZEL_VERSION: '2.2.0'
OLD_BAZEL_VERSION: '0.23.2'
SKOPEO_VERSION: 'v1.2.0'
'1.18':... | variants:
default:
CONFIG: default
+ GO_VERSION: '1.15.5'
+ BAZEL_VERSION: '3.4.1'
+ OLD_BAZEL_VERSION: '2.2.0'
+ SKOPEO_VERSION: 'v1.2.0'
+ '1.20':
+ CONFIG: '1.20'
GO_VERSION: '1.15.5'
BAZEL_VERSION: '3.4.1'
OLD_BAZEL_VERSION: '2.2.0'
SKOPEO_VERSION: 'v1.2.0'
... | 6 | 0.24 | 6 | 0 |
e52dee21400a0d3890620aa9610db2ed74e5bbae | README.md | README.md |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spa... |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon creation, new spa... | Add link to Multiple working folders with single GIT repository in readme. | Add link to Multiple working folders with single GIT repository in readme. | Markdown | mit | unicornrainbow/git-spaces | markdown | ## Code Before:
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if you choose.
Upon c... |
Multiple workspaces for git
## Installation
Clone / Tarball:
$ make install
## Usage
$ git spaces init
$ git spaces create some-feature
## Note
The init command will move everything to a master subdirectory. Master will serve as the new main working directory if... | 8 | 0.307692 | 7 | 1 |
59970d5b9518bfa8aa3b4c742b6f40430efe9467 | pillar/top.sls | pillar/top.sls | base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- fi... | base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match: grain
- fi... | Use a general pg.psf.io certificate | Use a general pg.psf.io certificate
| SaltStack | mit | zooba/psf-salt,zware/psf-salt,dstufft/psf-salt,dstufft/psf-salt,zware/psf-salt,python/psf-salt,python/psf-salt,dstufft/psf-salt,caktus/psf-salt,python/psf-salt,caktus/psf-salt,zware/psf-salt,caktus/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,zooba/psf-salt | saltstack | ## Code Before:
base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles:downloads':
- match... | base:
'*':
- networking
- users
- sudoers
- psf-ca
'roles:cdn-logs':
- match: grain
- fastly-logging
- firewall.fastly-logging
'roles:docs':
- match: grain
- firewall.fastly-backend
- groups.docs
- secrets.backup.docs
'roles... | 4 | 0.054054 | 1 | 3 |
321e157633e67e64102fe5e9f720cfddae74d335 | Foundation/HtmlClient/Foundation.ViewModel.HtmlClient/Implementations/defaultDateTimeService.ts | Foundation/HtmlClient/Foundation.ViewModel.HtmlClient/Implementations/defaultDateTimeService.ts | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormatte... | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
public getFormatte... | Return null for null object in date time service's parse method | Return null for null object in date time service's parse method
| TypeScript | mit | bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework,bit-foundation/bit-framework | typescript | ## Code Before:
module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
pu... | module Foundation.ViewModel.Implementations {
@Core.Injectable()
export class DefaultDateTimeService implements Contracts.IDateTimeService {
public constructor( @Core.Inject("ClientAppProfileManager") public clientAppProfileManager: Core.ClientAppProfileManager) {
}
pu... | 2 | 0.038462 | 2 | 0 |
72693b6124125169582c63633fb6956eba06bcaf | SDColor.podspec | SDColor.podspec | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https... | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { :git => 'https... | Add UIKit dependency to podspec | Add UIKit dependency to podspec
Signed-off-by: Sean Doughety <58cdf895b71f84481e06f521739b30fbd55e8539@gmail.com>
| Ruby | mit | steam/SDColor | ruby | ## Code Before:
Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = ... | Pod::Spec.new do |spec|
spec.name = 'SDColor'
spec.version = '0.1.0'
spec.summary = 'Dead simple connivence categories for UIColor.'
spec.homepage = 'https://github.com/steam/SDColor'
spec.author = { 'Sean Dougherty' => 'sean@process255.com' }
spec.source = { ... | 1 | 0.083333 | 1 | 0 |
9e288bf4b0c1856e197ebc83ae785d21cff55f82 | preferences/Preferences.json | preferences/Preferences.json | {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "Septembe... | {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"monthName": "Septembe... | Change preferred window from Hamming to Hann. | Change preferred window from Hamming to Hann. | JSON | mit | HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper,HaroldMills/Vesper | json | ## Code Before:
{
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"month... | {
"archiveDirPaths": {
"2012": "/Users/Harold/Desktop/NFC/Data/Old Bird/2012 Summer and Fall",
"2014": "/Users/Harold/Desktop/NFC/Data/Old Bird/2014"
},
"defaultArchive": "2012",
"stationName": "Alfred",
"detectorName": "Tseep",
"clipClassName": "Call",
"m... | 5 | 0.172414 | 3 | 2 |
085c371c9336069332b34f100ae3c242cf907d62 | spec/sisimai/lhost_spec.rb | spec/sisimai/lhost_spec.rb | require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent... | require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
describe '.smtpagent... | Add test code for fb7aa1b | Add test code for fb7aa1b
| Ruby | bsd-2-clause | azumakuniyuki/rb-Sisimai,azumakuniyuki/rb-Sisimai | ruby | ## Code Before:
require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
desc... | require 'spec_helper'
require 'sisimai/lhost'
describe Sisimai::Lhost do
describe '.DELIVERYSTATUS' do
it('returns Hash') { expect(Sisimai::Lhost.DELIVERYSTATUS).to be_a Hash }
end
describe '.INDICATORS' do
it('returns Hash') { expect(Sisimai::Lhost.INDICATORS).to be_a Hash }
end
... | 5 | 0.192308 | 4 | 1 |
f6152bc2ddc93f938a6035a27d0080b189aec816 | ox_herd/ui/flask_web_ui/ox_herd/templates/task_info.html | ox_herd/ui/flask_web_ui/ox_herd/templates/task_info.html |
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for(... |
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A HREF="{{url_for(... | Use get_display_fields to get fields to display | Use get_display_fields to get fields to display
| HTML | bsd-2-clause | aocks/ox_herd,aocks/ox_herd,aocks/ox_herd | html | ## Code Before:
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
<A ... |
{% set oh_task = item.kwargs['ox_herd_task'] %}
<details>
<summary>{{ oh_task.name }} : queue = {{ oh_task.queue_name }} {{ oh_task.manager }} </summary>
<TABLE cellpadding="10"><TR>
<TH>
<A HREF="{{url_for('ox_herd.launch_job')+'?jid=' + item.id}}">
Launch Job Copy</A>
</TH>
<TH>
... | 19 | 0.5 | 5 | 14 |
ac2d4128c9a327d0f06a33c5fb76090b051a879f | lib/octokit/client/licenses.rb | lib/octokit/client/licenses.rb | module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(... | module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
def licenses(... | Change one last reference to ensure_license_api_media_type | Change one last reference to ensure_license_api_media_type
| Ruby | mit | xantage/octokit.rb,benbalter/octokit.rb,iainbeeston/octokit.rb,christer155/octokit.rb,moodyredistribution/octokit.rb,tarebyte/octokit.rb,christer155/octokit.rb,daukantas/octokit.rb,Payro93/octokit.rb,kv109/octokit.rb,benbalter/octokit.rb,synmnstr/octokit.rb,pvdb/octokit.rb,Ladiijae/octokit.rb,JuanitoFatas/octokit.rb,co... | ruby | ## Code Before:
module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.licenses
... | module Octokit
class Client
# Methods for licenses API
#
module Licenses
# List all licenses
#
# @see https://developer.github.com/v3/licenses/#list-all-licenses
# @return [Array<Sawyer::Resource>] A list of licenses
# @example
# Octokit.li... | 2 | 0.0625 | 1 | 1 |
5d7939067da1c83f06b4acbde7c0226d9631c5c2 | docker-compose.yml | docker-compose.yml | version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4
ports:
- '127.0.0.1:9200:9200'
we... | version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4.3
mem_limit: 1g
environment:
- ... | Set elastic search java and docker runtime memory limits | Set elastic search java and docker runtime memory limits
| YAML | bsd-3-clause | UITools/saleor,maferelo/saleor,mociepka/saleor,UITools/saleor,mociepka/saleor,UITools/saleor,maferelo/saleor,maferelo/saleor,UITools/saleor,mociepka/saleor,UITools/saleor | yaml | ## Code Before:
version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
image: elasticsearch:5.4
ports:
- '127.0.0.1... | version: '2'
services:
db:
image: postgres
environment:
- POSTGRES_USER=saleor
- POSTGRES_PASSWORD=saleor
ports:
- '127.0.0.1:5432:5432'
redis:
image: redis
ports:
- '127.0.0.1:6379:6379'
search:
- image: elasticsearch:5.4
+ image: el... | 5 | 0.142857 | 4 | 1 |
4fd885cd8868263ef4b5b22f1cdd75c25134040e | tox.ini | tox.ini | [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATABASE=postgres
... | [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
py27: mock
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DATA... | Add backport mock for Python 2.7 | Add backport mock for Python 2.7 | INI | bsd-3-clause | etianen/django-reversion,etianen/django-reversion | ini | ## Code Before:
[tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
setenv =
postgres: DJANGO_DAT... | [tox]
envlist =
{py27,py34,py35}-django{18,19,110}
flake8
docs
[testenv]
usedevelop = True
deps =
+ py27: mock
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
django110: Django==1.10a1
psycopg2>=2.6.1
mysqlclient>=mysqlclient
coverage>=4.1
... | 1 | 0.025 | 1 | 0 |
c73f6c373cd1288651f2e7fec0c112852c790b25 | fi/cosky/sdk/ImportData.java | fi/cosky/sdk/ImportData.java | package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static fina... | package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
public static fina... | Add depots into Import and increase mime version to 2.2 | Add depots into Import and increase mime version to 2.2
| Java | mit | nfleet/java-sdk | java | ## Code Before:
package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
pu... | package fi.cosky.sdk;
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
import java.util.List;
public class ImportData extends BaseData {
public static final String MimeType = "application/vnd.jyu.nfleet.import";
-... | 6 | 0.122449 | 4 | 2 |
aed82bc0995cf4175c0ab8c521dfc8e89d776a7e | Mac/scripts/zappycfiles.py | Mac/scripts/zappycfiles.py | import os
import sys
doit = 1
def main():
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
if not sys.argv[1:]:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in sys.argv[1:]:
... | """Recursively zap all .pyc files"""
import os
import sys
# set doit true to actually delete files
# set doit false to just print what would be deleted
doit = 1
def main():
if not sys.argv[1:]:
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
s... | Patch by Russel Owen: if we have command line arguments zap pyc files in the directories given. | Patch by Russel Owen: if we have command line arguments zap pyc files
in the directories given.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | python | ## Code Before:
import os
import sys
doit = 1
def main():
if os.name == 'mac':
import macfs
fss, ok = macfs.GetDirectory('Directory to zap pyc files in')
if not ok:
sys.exit(0)
dir = fss.as_pathname()
zappyc(dir)
else:
if not sys.argv[1:]:
print 'Usage: zappyc dir ...'
sys.exit(1)
for dir in ... | + """Recursively zap all .pyc files"""
import os
import sys
+ # set doit true to actually delete files
+ # set doit false to just print what would be deleted
doit = 1
def main():
+ if not sys.argv[1:]:
- if os.name == 'mac':
+ if os.name == 'mac':
? +
- import macfs
+ import macfs
? +
- fss, ... | 25 | 0.735294 | 14 | 11 |
1c9adf2b452cab144dd8d89e024ddbb0c19c1b88 | .github/workflows/main.yml | .github/workflows/main.yml | name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
git clone --recursive https://github.com/e... | name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
#git clone -b branch --single-branch git://github... | Use v 4.0 for ci | Use v 4.0 for ci
| YAML | apache-2.0 | Ebiroll/qemu_esp32,Ebiroll/qemu_esp32,Ebiroll/qemu_esp32 | yaml | ## Code Before:
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
git clone --recursive http... | name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run a one-line script
run: echo Hello, world!
- name: Checkout the tools
run: |
pwd
mkdir ~/esp
cd ~/esp
+ #git clone ... | 5 | 0.172414 | 4 | 1 |
09af299a886e38ccb771177b2744d4f9524596e9 | node-problem-detector.yaml | node-problem-detector.yaml | apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/ker... | apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-monitor=/config/ker... | Change the wrong image path in pod yaml. | Change the wrong image path in pod yaml.
Change the wrong image path of pod yaml. | YAML | apache-2.0 | apatil/node-problem-detector,kubernetes/node-problem-detector,kubernetes/node-problem-detector,apatil/node-problem-detector | yaml | ## Code Before:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
- --kernel-mon... | apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: node-problem-detector
spec:
template:
metadata:
labels:
app: node-problem-detector
spec:
containers:
- name: node-problem-detector
command:
- /node-problem-detector
... | 2 | 0.046512 | 1 | 1 |
2fd8554c87412689076ba7f897444fe51572c4af | features/minimal_mockingjay.feature | features/minimal_mockingjay.feature | Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no optio... | Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance with no optio... | Add New Test for Missing Required Option | Add New Test for Missing Required Option
| Cucumber | apache-2.0 | blad/mockingjays | cucumber | ## Code Before:
Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instan... | Feature: Minimal Mockingjay Instance
As a user of Mockingjays
I want to be able to start a mockingjay instance with minial options
So that I can quickly start testing my application with the default options
Scenario: Serving without Require Options
Given I want to create a Mockingjay instance... | 7 | 0.291667 | 7 | 0 |
46ce6e626352d845a8b3b151f58837d8200a82e9 | src/com/algorithms/tree/BST.java | src/com/algorithms/tree/BST.java | package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
}
| package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
private Node root;
private class Node {
private Key key;
private Value val;
private Node left, right;
public Node(Key key, Value val) {
this.key = key;
this.val = val;
... | Create Node class and other skeleton code | Create Node class and other skeleton code
| Java | mit | SkullTech/algorithms-princeton | java | ## Code Before:
package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
}
## Instruction:
Create Node class and other skeleton code
## Code After:
package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
private Node root;
private class Node {
... | package com.algorithms.tree;
public class BST<Key extends Comparable<Key>, Value> {
+
+ private Node root;
+
+ private class Node {
+ private Key key;
+ private Value val;
+ private Node left, right;
+ public Node(Key key, Value val) {
+ this.key = key;
+ ... | 20 | 5 | 20 | 0 |
485870fa95d4a70f4ab0b389fab93a425e3cf452 | README.md | README.md | etcd-metrics-server
===================
[CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
etcd varz/healthz metrics and collector integration
| etcd-metrics-server
===================
[CI](https://wings.concourse.ci/teams/cf-infrastructure/pipelines/etcd)
etcd varz/healthz metrics and collector integration
| Update readme to point to new ci | Update readme to point to new ci
[#145886049]
Signed-off-by: Christian Ang <15ae83feccf4d84083a62aba1cdf46bd8ce2e33b@pivotal.io>
| Markdown | apache-2.0 | cloudfoundry-incubator/etcd-metrics-server,cloudfoundry-incubator/etcd-metrics-server | markdown | ## Code Before:
etcd-metrics-server
===================
[CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
etcd varz/healthz metrics and collector integration
## Instruction:
Update readme to point to new ci
[#145886049]
Signed-off-by: Christian Ang <15ae83feccf4d84083a62aba1cdf46bd8ce2e... | etcd-metrics-server
===================
- [CI](https://mega.ci.cf-app.com/pipelines/etcd/jobs/test-etcd-metrics-server)
+ [CI](https://wings.concourse.ci/teams/cf-infrastructure/pipelines/etcd)
etcd varz/healthz metrics and collector integration
| 2 | 0.333333 | 1 | 1 |
fcb8c69f89a3d979b2b80eb9a8ef7900162f8482 | app/assets/javascripts/spree/frontend/wishlist.js | app/assets/javascripts/spree/frontend/wishlist.js | (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant... | (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(selected_variant... | Fix Wishlist add button on Spree 4.1 | Fix Wishlist add button on Spree 4.1
| JavaScript | bsd-3-clause | spree-contrib/spree_wishlist,spree-contrib/spree_wishlist,spree-contrib/spree_wishlist | javascript | ## Code Before:
(function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(... | (function() {
Spree.ready(function($) {
$('#new_wished_product').on('submit', function() {
var cart_quantity, selected_variant_id;
selected_variant_id = $('#product-variants input[type=radio]:checked').val();
if (selected_variant_id) {
$('#wished_product_variant_id').val(se... | 2 | 0.086957 | 1 | 1 |
1a299a520d3ee4a442ef98e1cc73c247b9bed863 | scripts/services/ReuniaoFactory.js | scripts/services/ReuniaoFactory.js | angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarR... | angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
},
'buscarR... | Fix para modelo de posicioanmento autal | Fix para modelo de posicioanmento autal
| JavaScript | agpl-3.0 | rafaelcoutinho/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,pensandoodireito/sislegis-app-frontend,rafaelcoutinho/sislegis-app-frontend,rafaelcoutinho/sislegis-app-frontend | javascript | ## Code Before:
angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : false
... | angular.module('sislegisapp').factory('ReuniaoResource',
function($resource, BACKEND) {
return $resource(BACKEND + '/reuniaos/:ReuniaoId', {
ReuniaoId : '@id'
}, {
'queryAll' : {
method : 'GET',
isArray : true
},
'query' : {
method : 'GET',
isArray : f... | 4 | 0.125 | 2 | 2 |
4a7376fe142ba5de49d0423ed7996490d8ac1985 | test/tests/InfixDataDecl.hs | test/tests/InfixDataDecl.hs | -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.... | -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ^ constant.... | Add extra test case for infix datacon highlighting | Add extra test case for infix datacon highlighting
| Haskell | bsd-3-clause | JustusAdam/language-haskell,JustusAdam/language-haskell | haskell | ## Code Before:
-- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ... | -- SYNTAX TEST "source.haskell" "Infix data declarations"
data A a b = ( T b c ( d e ) f ) `C` '[ A b, C, D [ e, f ] g ]
-- ^^^^ keyword.other.data.haskell
-- ^ keyword.operator.eq.haskell
-- ^ ^ punctuation.paren.haskell
-- ... | 9 | 0.428571 | 9 | 0 |
87a33a927491a70431cffdc219fe45fdafdf8497 | composer.json | composer.json | {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"require": {
"symfony/routing": "2.1.*"
},
... | {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"suggest": {
"symfony/routing": "",
"symf... | Remove hard dependencies with the Routing component | Remove hard dependencies with the Routing component
| JSON | mit | NandoKstroNet/Hateoas,SmartestEdu/Hateoas,adrienbrault/Hateoas,fsevestre/Hateoas,romainneutron/Hateoas,wodka/Hateoas,Ninir/Hateoas | json | ## Code Before:
{
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
"require": {
"symfony/routing... | {
"name": "willdurand/hateoas",
"description": "A PHP 5.3 library to support implementing representations for HATEOAS REST web services",
"license": "MIT",
"authors": [
{
"name": "William DURAND",
"email": "william.durand1@gmail.com"
}
],
- "require": {
+ "suggest":... | 5 | 0.277778 | 3 | 2 |
c16ba54b54a75216bd7424a6e458504941aa9e32 | generators/app_extension/templates/dependency_extension.rb | generators/app_extension/templates/dependency_extension.rb | module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a bl... | module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
# Pass in a bl... | Fix up generated apps unload callbacks. | Fix up generated apps unload callbacks.
| Ruby | mit | rubidine/app_extension_generator | ruby | ## Code Before:
module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
#
... | module <%= class_name %>Dependencies
#
# Pass in a block in the plugin's init.rb that calls this.
# Whatever is in the block will be called during each rails stack setup.
#
def self.load &blk
return unless blk
ActionController::Dispatcher.to_prepare :<%= file_name %>, &blk
end
... | 3 | 0.107143 | 2 | 1 |
e1c764d5ff94d7dbd29b7890e2473b5eb3bbc9ed | notebooks/README.md | notebooks/README.md | Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [G... | Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitHub
* [G... | Update link to STFT notebook. | Update link to STFT notebook. | Markdown | mit | LCAV/pyroomacoustics,LCAV/pyroomacoustics | markdown | ## Code Before:
Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than... | Here we provide a couple tutorials that we hope will help the interested
reader understand the core functionalities of this package. If you are not opting
to download this repository, we recommend viewing the notebooks with
[nbviewer](http://nbviewer.jupyter.org/), as math will be better rendered than on GitH... | 2 | 0.285714 | 1 | 1 |
fdab70538e523709d1f3e9a58d61cd6721c7cb2b | src/main.rs | src/main.rs | //#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yu... |
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();
let yk = yubikey::get_yubikey()... | Allow unused functions & dead_code | Allow unused functions & dead_code
This should be removed again when things start to stabilize, but at the
moment it's spamming my rustc output which is very annoying.
| Rust | mit | jbothma/yubikey-fde,tazjin/yubikey-fde,tazjin/yubikey-fde,jbothma/yubikey-fde | rust | ## Code Before:
//#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
yubikey::yubikey_init();... | - //#![feature(libc)]
extern crate libc;
extern crate rand;
extern crate rustc_serialize;
use rand::*;
mod yubikey;
fn random_challenge() -> Vec<u8> {
let mut vec: Vec<u8> = Vec::new();
for _ in 0..64 {
vec.push(rand::random());
}
vec
}
fn main() {
... | 3 | 0.103448 | 1 | 2 |
84da93c8af076ceadf15819e799de6338cd8bdef | lib/alf/rest/helpers.rb | lib/alf/rest/helpers.rb | module Alf
module Rest
module Helpers
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= Agent.new(self, alf_config)
end
alias_method :agent, :alf_agent
end
end
end
| module Alf
module Rest
module Helpers
extend Forwardable
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= alf_config.agent_class.new(self, alf_config)
end
alias_method :agent, :alf_agent
def db_con... | Enhance Helpers with database-related methods. | Enhance Helpers with database-related methods.
| Ruby | mit | alf-tool/alf-rest | ruby | ## Code Before:
module Alf
module Rest
module Helpers
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
@alf_agent ||= Agent.new(self, alf_config)
end
alias_method :agent, :alf_agent
end
end
end
## Instruction:
Enhance... | module Alf
module Rest
module Helpers
+ extend Forwardable
include Payload::Server
def alf_config
env[Rest::RACK_CONFIG_KEY]
end
def alf_agent
- @alf_agent ||= Agent.new(self, alf_config)
? ^
+ @alf_agent ||= alf_c... | 18 | 1.058824 | 17 | 1 |
fba6dfe7a1478d634bab9bee42614a12a780dc63 | lib/map-instance-mixin.jsx | lib/map-instance-mixin.jsx | /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(th... | /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
}.bind(th... | Remove silly nested element that wasn't needed. | Remove silly nested element that wasn't needed.
| JSX | mit | zpratt/idle-maps,zpratt/idle-maps | jsx | ## Code Before:
/**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.idle(map);
... | /**
* @jsx React.DOM
*/
'use strict';
var MapLoader = require('async-google-maps').MapLoader,
React = require('react');
module.exports = {
componentDidMount: function () {
MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) {
this.... | 1 | 0.041667 | 0 | 1 |
a65fae011bce4e2ca9a920b51a0fc681ee21c178 | components/hoc/with-errors.js | components/hoc/with-errors.js | import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = ... | import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static defaultProps = ... | Set server statusCode on error | Set server statusCode on error
| JavaScript | mit | sgmap/inspire,sgmap/inspire | javascript | ## Code Before:
import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
static... | import React from 'react'
import PropTypes from 'prop-types'
import hoist from 'hoist-non-react-statics'
import ErrorPage from '../../pages/_error'
export default Page => {
const Extended = hoist(class extends React.Component {
static propTypes = {
error: PropTypes.object
}
... | 10 | 0.172414 | 8 | 2 |
2dec32aa3846453bf87cf926db356a1fde8099c6 | .travis.yml | .travis.yml | language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
... | language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/build/ci-test.sh
... | Change one of the Travis builds to `fr_FR` so we don't inadvertently introduce locale dependencies | Change one of the Travis builds to `fr_FR` so we don't inadvertently introduce locale dependencies
| YAML | apache-2.0 | jdbi/jdbi,hgschmie/jdbi,jdbi/jdbi,john9x/jdbi,john9x/jdbi,hgschmie/jdbi,jdbi/jdbi,hgschmie/jdbi | yaml | ## Code Before:
language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
script:
- src/bu... | language: java
sudo: false
# No much sense in keeping jdbi artifacts cached
before_cache:
rm -rf $HOME/.m2/repository/org/jdbi
cache:
directories:
- '$HOME/.m2/repository'
install:
- src/build/ci-pre-install.sh
matrix:
include:
- env:
- TESTS=Y
... | 2 | 0.047619 | 2 | 0 |
70daf4157cc8b039d726fd6482fa9bae1b3fee1e | modules/urlparser/__init__.py | modules/urlparser/__init__.py | from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible... | from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messages for possible... | Change encoding of URL parser | Change encoding of URL parser
| Python | mit | billyvg/piebot | python | ## Code Before:
from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""Checks incoming messa... | from modules import *
import re
import urllib2
import traceback
try:
import simplejson as json
except ImportError:
import json
from unidecode import unidecode
from twitter import Twitter
from bitly import Bitly
from youtube import Youtube
class Urlparser(Module):
"""C... | 2 | 0.035714 | 1 | 1 |
127bf8e26f1c11e1e8ab9b2704cb60c7bfbff722 | checkinatfmi_project/website/templates/books_to_return.html | checkinatfmi_project/website/templates/books_to_return.html | {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" st... | {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ book.cover }}" st... | Add some text in boks_to_retur.html | Add some text in boks_to_retur.html
| HTML | agpl-3.0 | TheCodingMonkeys/checkin-at-fmi,TheCodingMonkeys/checkin-at-fmi | html | ## Code Before:
{% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}{{ b... | {% extends "base.html" %}
{% block content %}
<div class="row">
{% for book in books %}
<div class="col-md-2">
<p style="text-align: center; font-size: 140%;">
<a href="{% url 'show_book' book.id %}">{{ book.title }}</a>
</p>
<img src="{{ MEDIA_URL }}... | 6 | 0.428571 | 6 | 0 |
3a9bd2be5b16bdc0033e014f0eb30ad327a1c480 | flippy.js | flippy.js | $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
... | $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; row<6; row++) {
... | Initialize colors, and fix message registration | Initialize colors, and fix message registration
| JavaScript | mpl-2.0 | ianb/flippy | javascript | ## Code Before:
$(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for (var row=1; ro... | $(function () {
$("#start-towtruck").click(TowTruck);
randomize();
});
function cell(row, col) {
return $("#cell-" + row + "-" + col);
}
function randomColor() {
return "#" + Math.floor(0x1000000 + Math.random() * 0xffffff).toString(16).substr(1);
}
function randomize() {
for ... | 21 | 0.617647 | 18 | 3 |
517af4d7985e10eaa0ff731859bff6bccfba6c95 | app/redux/store/index.js | app/redux/store/index.js | /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore } from 'redux';
import reducers from '../reducers';
// export default createStore(
// reducers,
// undefined,
// applyMiddleware(),
// );
export default createStore(
reducers,
wi... | /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore, compose } from 'redux';
import reducers from '../reducers';
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
export default createStore(
reducers,
compo... | Configure Redux store to work with redux-devtools-extensions & react-native-debugger | Configure Redux store to work with redux-devtools-extensions & react-native-debugger
| JavaScript | mit | ethan605/react-native-zero,ethan605/react-native-zero,ethan605/react-native-zero | javascript | ## Code Before:
/**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
import { applyMiddleware, createStore } from 'redux';
import reducers from '../reducers';
// export default createStore(
// reducers,
// undefined,
// applyMiddleware(),
// );
export default createStore(
... | /**
* @providesModule ZeroProj.Redux.Store
*/
/* eslint-disable no-underscore-dangle */
- import { applyMiddleware, createStore } from 'redux';
+ import { applyMiddleware, createStore, compose } from 'redux';
? +++++++++
import reducers from '../reducers';
+ co... | 12 | 0.571429 | 5 | 7 |
adb2ec5340e7b3d28c322675b652c6665bd01dd1 | lib/tasks/datagrid_tasks.rake | lib/tasks/datagrid_tasks.rake | namespace :datagrid do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
desc "Copy table partials in... | namespace :datagrid do
desc "Copy table partials into rails application"
task :copy_partials do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
... | Refactor rake task a little | Refactor rake task a little
| Ruby | mit | sadaf2605/datagrid,reenhanced/datagrid,11factory/datagrid,jeanlinux/datagrid,reenhanced/datagrid,sadaf2605/datagrid,artofhuman/datagrid,jeanlinux/datagrid,artofhuman/datagrid,bogdan/datagrid,bogdan/datagrid | ruby | ## Code Before:
namespace :datagrid do
def copy_template(path)
gem_app = File.expand_path("../../../app", __FILE__)
rails_app = (Rails.root + "app").to_s
puts "* copy (#{path})"
sh "mkdir -p #{rails_app}/#{File.dirname path}"
cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
end
desc "Copy t... | namespace :datagrid do
- def copy_template(path)
- gem_app = File.expand_path("../../../app", __FILE__)
- rails_app = (Rails.root + "app").to_s
- puts "* copy (#{path})"
- sh "mkdir -p #{rails_app}/#{File.dirname path}"
- cp "#{gem_app}/#{path}", "#{rails_app}/#{path}"
- end
desc "... | 14 | 0.777778 | 7 | 7 |
a11a4597a35eeefcd665af25f61ce6d4b894191a | .travis.yml | .travis.yml | language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.n... | language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
matrix:
- SUITE=Tests
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationi... | Use environment variables to name the Travis jobs | Use environment variables to name the Travis jobs
| YAML | apache-2.0 | pypa/warehouse,karan/warehouse,pypa/warehouse,dstufft/warehouse,dstufft/warehouse,dstufft/warehouse,alex/warehouse,wlonk/warehouse,wlonk/warehouse,alex/warehouse,alex/warehouse,wlonk/warehouse,karan/warehouse,alex/warehouse,pypa/warehouse,karan/warehouse,dstufft/warehouse,alex/warehouse,pypa/warehouse,karan/warehouse,k... | yaml | ## Code Before:
language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/... | language: python
python: 3.5.1
env:
global:
- TRAVIS_NODE_VERSION=5.5.0
+ matrix:
+ - SUITE=Tests
dist: trusty
sudo: false
addons:
postgresql: "9.4"
services:
- postgresql
cache:
directories:
- ~/.cache/pip
- node_modules/
install:
- 'rm -r... | 6 | 0.130435 | 6 | 0 |
0241e253c68ca6862a3da26d29a649f65c27ae36 | demos/chatroom/experiment.py | demos/chatroom/experiment.py | """Coordination chatroom game."""
import dallinger as dlgr
from dallinger.config import get_config
try:
unicode = unicode
except NameError: # Python 3
unicode = str
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom... | """Coordination chatroom game."""
import dallinger as dlgr
from dallinger.compat import unicode
from dallinger.config import get_config
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class CoordinationChatroom(dlgr.experiments.Experiment):
"""... | Use compat for unicode import | Use compat for unicode import
| Python | mit | Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger | python | ## Code Before:
"""Coordination chatroom game."""
import dallinger as dlgr
from dallinger.config import get_config
try:
unicode = unicode
except NameError: # Python 3
unicode = str
config = get_config()
def extra_settings():
config.register('network', unicode)
config.register('n', int)
class Coor... | """Coordination chatroom game."""
import dallinger as dlgr
+ from dallinger.compat import unicode
from dallinger.config import get_config
- try:
- unicode = unicode
- except NameError: # Python 3
- unicode = str
config = get_config()
def extra_settings():
config.register('network', ... | 5 | 0.104167 | 1 | 4 |
586c47dbe6d712573b749eaf189989118760662b | app/assets/javascripts/tags.js.coffee | app/assets/javascripts/tags.js.coffee | $ ->
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0];
$("div.tags-panel").rep... | $ ->
setupTags = ->
$("div.tag-form").hide()
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (e... | Fix updating tags multiple times | Fix updating tags multiple times
After replacing the HTML we need to re-add all the click handelers etc.
| CoffeeScript | mit | cyclestreets/cyclescape,cyclestreets/cyclescape,cyclestreets/cyclescape | coffeescript | ## Code Before:
$ ->
$("div.tag-form li.cancel a").click ->
$("div.tags").show()
$("div.tag-form").hide()
return
$("a[rel='edit-tags']").click ->
$("div.tags").hide()
$("div.tag-form").show()
return
$("form.edit-tags").on "ajax:success", (event) ->
data = event.detail[0];
$("div.... | $ ->
+ setupTags = ->
- $("div.tag-form li.cancel a").click ->
- $("div.tags").show()
$("div.tag-form").hide()
+ $("div.tag-form li.cancel a").click ->
+ $("div.tags").show()
+ $("div.tag-form").hide()
- return
+ return
? ++
- $("a[rel='edit-tags']").click ->
+ $("a[r... | 50 | 1.5625 | 24 | 26 |
f83911b3a3d3cccbb6a9bef2d1995ac0e8bff357 | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | spring-content-s3/src/main/java/org/springframework/content/s3/S3ContentId.java | package org.springframework.content.s3;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
this.bucket = bucket;
this.objectId = objectId;
}
pub... | package org.springframework.content.s3;
import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
Assert.hasText(bucket, "bucke... | Add assertions to ensure only valid s3content ids can be created | Add assertions to ensure only valid s3content ids can be created
| Java | apache-2.0 | paulcwarren/spring-content,paulcwarren/spring-content,paulcwarren/spring-content | java | ## Code Before:
package org.springframework.content.s3;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
this.bucket = bucket;
this.objectId = objectId... | package org.springframework.content.s3;
+
+ import org.springframework.util.Assert;
import java.io.Serializable;
public final class S3ContentId implements Serializable {
private String bucket;
private String objectId;
public S3ContentId(String bucket, String objectId) {
+ Asser... | 4 | 0.072727 | 4 | 0 |
3d5c19d30b37a9dcaf3c0b548075410ad290b313 | EmailManager/ShipmentEmailManager.php | EmailManager/ShipmentEmailManager.php | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBun... | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Sylius\Bundle\CoreBun... | Add documentation for customising emails per channel | Add documentation for customising emails per channel
| PHP | mit | Sylius/SyliusAdminBundle,Sylius/SyliusAdminBundle | php | ## Code Before:
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager;
use Syliu... | <?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\EmailManager... | 1 | 0.022727 | 1 | 0 |
133ce8b7b7604d805b3fdd6582399355c2e26c22 | android/app/src/main/java/it/axant/axemas/AXMSectionController.java | android/app/src/main/java/it/axant/axemas/AXMSectionController.java | package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
public... | package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> section;
protec... | Add unusable default constructor to section controllers, for convenience when subclassing | Add unusable default constructor to section controllers, for convenience when subclassing
| Java | mit | AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework,AXEMAS/framework | java | ## Code Before:
package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragment> sect... | package it.axant.axemas;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import java.lang.ref.WeakReference;
public class AXMSectionController {
private WeakReference<SectionFragme... | 4 | 0.085106 | 4 | 0 |
cf4270fb79b3b610aba4e6e6a4c6a7eca5798c22 | App/Darts301/Darts301/WelcomeViewController.swift | App/Darts301/Darts301/WelcomeViewController.swift | //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override ... | //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton!
override ... | Update welcome gradient to better match mocks | Update welcome gradient to better match mocks
| Swift | apache-2.0 | gresrun/Darts301,gresrun/Darts301 | swift | ## Code Before:
//
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButton: UIButton... | //
// WelcomeViewController.swift
// Darts301
//
// Created by Greg Haines on 3/4/17.
// Copyright © 2017 Aly & Friends. All rights reserved.
//
import UIKit
class WelcomeViewController : UIViewController {
@IBOutlet weak var rulesButton: UIButton!
@IBOutlet weak var startButt... | 3 | 0.078947 | 2 | 1 |
ddf17a4fddafa71b95fad26d38577e32eee7f957 | app/views/component/detail/_phone.html.haml | app/views/component/detail/_phone.html.haml | -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%s... | -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone.present?
%s... | Add phone_hours field to service entry | Add phone_hours field to service entry
| Haml | bsd-3-clause | cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search,cderenburger/win211-ohana-web-search | haml | ## Code Before:
-# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if pho... | -# The phone partial displays the phone icon, number and extension,
as well as the phone type and department.
e.g. [icon] (650) 403-4300 x 4385 voice
If the `show_phone_type_and_department` local variable is set to true
the partial will also include the phone type and phone department.
- if phone... | 5 | 0.25 | 5 | 0 |
3785f2913932ed37b4c19ea6a00c613ef3952eeb | packages/pi/pipes-interleave.yaml | packages/pi/pipes-interleave.yaml | homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 &... | homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: 8a526c6784dad7eb70d8873f13ba622724f986f074246d6e2db81a79bd9e59e6
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
base: ! '>=4.8 &... | Update from Hackage at 2018-08-05T16:14:51Z | Update from Hackage at 2018-08-05T16:14:51Z
| YAML | mit | commercialhaskell/all-cabal-metadata | yaml | ## Code Before:
homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge streams of elements
changelog: ''
basic-deps:
heaps: ! '>=0.3 && <0.4'
... | homepage: http://github.com/bgamari/pipes-interleave
changelog-type: ''
- hash: e7865811c94655ea6653d1c4556cace83425b3b7e7f8723d277db9d53b9ced91
+ hash: 8a526c6784dad7eb70d8873f13ba622724f986f074246d6e2db81a79bd9e59e6
test-bench-deps: {}
maintainer: bgamari.foss@gmail.com
synopsis: Interleave and merge stream... | 9 | 0.346154 | 5 | 4 |
cd691f75bd60da21c01e1b45830fb90f936fbf73 | randomwallpaper@iflow.productions/metadata.json | randomwallpaper@iflow.productions/metadata.json | {
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
} | {
"shell-version": [
"3.12.2",
"3.14.1",
"3.16.3",
"3.18.0",
"3.18.1",
"3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
| Add support for 3.18.0, 3.18.1, 3.18.2 | Add support for 3.18.0, 3.18.1, 3.18.2
| JSON | mit | ifl0w/RandomWallpaperGnome3,ifl0w/RandomWallpaperGnome3 | json | ## Code Before:
{
"shell-version": ["3.12.2", "3.14.1"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets it as desktop background"
}
## Instruction:
Add support for 3.18.0, 3.18.1, 3.18.2
## Code After:
{
"shell-version"... | {
- "shell-version": ["3.12.2", "3.14.1"],
+ "shell-version": [
+ "3.12.2",
+ "3.14.1",
+ "3.16.3",
+ "3.18.0",
+ "3.18.1",
+ "3.18.2"],
"uuid": "randomwallpaper@iflow.productions",
"name": "Random Wallpaper",
"description": "Fetches random wallpaper from desktopper.co and sets... | 8 | 1.333333 | 7 | 1 |
e3c0fd3203fb13d9a43dc6cc6e45627e5c33234a | .github/workflows/update-plugin-list.yml | .github/workflows/update-plugin-list.yml | name: Update Plugin List
on:
schedule:
# Run daily at midnight.
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
... | name: Update Plugin List
on:
schedule:
# At 00:00 on Sunday.
# https://crontab.guru
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-py... | Update plugin-list every Sunday instead of everyday | Update plugin-list every Sunday instead of everyday
Every day seems a bit excessive lately, let's make it less frequent.
| YAML | mit | markshao/pytest,nicoddemus/pytest,nicoddemus/pytest,Akasurde/pytest,RonnyPfannschmidt/pytest,pytest-dev/pytest | yaml | ## Code Before:
name: Update Plugin List
on:
schedule:
# Run daily at midnight.
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
... | name: Update Plugin List
on:
schedule:
- # Run daily at midnight.
+ # At 00:00 on Sunday.
+ # https://crontab.guru
- - cron: '0 0 * * *'
? ^
+ - cron: '0 0 * * 0'
? ^
workflow_dispatch:
jobs:
createPullRequest:
runs-on: ubuntu... | 5 | 0.147059 | 3 | 2 |
bf4527bd741ee84120b8da22bb7646d875325582 | .travis.yml | .travis.yml | language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
| language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
notifications:
irc:
channels:
- "ir... | Use IRC notification for Travis-ci build result | Use IRC notification for Travis-ci build result
| YAML | mit | maximos/maximus-web,maximos/maximus-web,maximos/maximus-web | yaml | ## Code Before:
language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
## Instruction:
Use IRC notification for T... | language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
env:
- MAXIMUS_CONFIG_LOCAL_SUFFIX=testing
before_install:
- cpanm -n Module::Install
- cpanm -n Catalyst::Devel
- sudo apt-get install libdb-dev
- yes | cpanm --verbose local::lib
+ notifications:
+ irc:
+ ... | 5 | 0.416667 | 5 | 0 |
06614c37dd83f59ed6c3a968821dc6fa429988ce | ooj/src/main/scala/ast/augmenters/AugmentedSimpleUseTree.scala | ooj/src/main/scala/ast/augmenters/AugmentedSimpleUseTree.scala | package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(e... | package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
def enclosing_=(e... | Add isQualified field for SimpleUseAugmenters | Add isQualified field for SimpleUseAugmenters
| Scala | bsd-3-clause | amanjpro/languages-a-la-carte,amanjpro/languages-a-la-carte | scala | ## Code Before:
package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[Symbol])
d... | package ch.usi.inf.l3.sana.ooj.ast.augmenters
import ch.usi.inf.l3.sana
import sana.tiny.ast.SimpleUseTree
import sana.tiny.symbols.Symbol
trait AugmentedSimpleUseTree {
def tree: SimpleUseTree
def enclosing: Option[Symbol] =
tree.attributes.get('enclosing).map(_.asInstanceOf[S... | 6 | 0.206897 | 6 | 0 |
5af556570079b44a6c0200a1f137b54005068d5e | project.clj | project.clj | (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapshots" :clojars]]
... | (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["clojars" {:sign-releases false
... | Change lein release and deploy | Change lein release and deploy
| Clojure | mit | Day8/re-frame-template,Day8/re-frame-template,Day8/re-frame-template | clojure | ## Code Before:
(defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
:deploy-repositories [["releases" :clojars]
["snapsho... | (defproject re-frame/lein-template "0.3.22-SNAPSHOT"
:description "Leiningen template for a Reagent web app that implements the re-frame pattern."
:url "https://github.com/Day8/re-frame-template"
:license {:name "MIT"}
- :deploy-repositories [["releases" :clojars]
+
+ :deploy-repositories [["clojar... | 18 | 2 | 16 | 2 |
d74b524cec824e77adbcf9cc23e28a6efba02985 | takePicture.py | takePicture.py | import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 15:
img = cam.capture('gregTest.jpg')
time.sleep(.25)
x +=1
exit()
| import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 50:
img = cam.capture('tempGregTest.jpg')
os.unlink('gregTest.jpg')
os.rename('tempGregTest.jpg','gregTest.jpg')
time.sleep(.25)
x +=1
exit()
| Add temp pic file sequence to takepicture file | Add temp pic file sequence to takepicture file
| Python | mit | jwarshaw/RaspberryDrive | python | ## Code Before:
import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
while x < 15:
img = cam.capture('gregTest.jpg')
time.sleep(.25)
x +=1
exit()
## Instruction:
Add temp pic file sequence to takepicture fil... | import picamera as p
import os
import time
os.chdir('/home/pi/Desktop')
cam = p.PiCamera()
cam.resolution = (320,240)
cam.hflip = True
cam.vflip = True
x = 0
- while x < 15:
? -
+ while x < 50:
? +
- img = cam.capture('gregTest.jpg')
? ^
+ img = c... | 6 | 0.333333 | 4 | 2 |
65135bb50887a2841a68e7dfbeffc0c686b547a9 | src/routes/index.js | src/routes/index.js | 'use strict';
const express = require('express');
const cors = require('cors');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static('./public'));
// Mocks route
ap... | 'use strict';
const express = require('express');
const cors = require('cors');
const path = require('path');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static(path.j... | Fix public route not working correctly in some cases | Fix public route not working correctly in some cases
| JavaScript | apache-2.0 | NijiDigital/mockiji,NijiDigital/mockiji,NijiDigital/mockiji | javascript | ## Code Before:
'use strict';
const express = require('express');
const cors = require('cors');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
app.use(express.static('./public'));
// ... | 'use strict';
const express = require('express');
const cors = require('cors');
+ const path = require('path');
const MockCtrl = require('../controllers/MockCtrl');
module.exports = function({Configuration, Logger, app}) {
// Cross-domain management
app.use(cors());
// Index route
- app... | 3 | 0.166667 | 2 | 1 |
f18766e3a0dec67141ab2e1564023af04789cd7d | Projects/Project1/src/order.h | Projects/Project1/src/order.h |
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
Order operator=(const Order& other) const { ... |
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
uint GetWeight() const { return _weight; } ///< Returns the order weight
uint GetVolume() const { return _volume; } ///< Returns the order volum... | Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird. | Fix a bug with copy cctors, iterators and vector erases. Weird bugs are weird.
| C | mit | DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal,DDuarte/feup-cal | c | ## Code Before:
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
Order operator=(const Order&... |
/**
* Represents an order with weight and volume
*/
class Order
{
public:
Order(uint weight, uint volume) : _weight(weight), _volume(volume) { } ///< Constructor
- Order(const Order& other) : _weight(other._weight), _volume(other._volume) { } ///< Copy constructor
- Order operator=(const Or... | 6 | 0.3 | 2 | 4 |
48f1cdda32b8b3d50c96759b072d432a88c9abc9 | enrolment/templates/enrolment-base.html | enrolment/templates/enrolment-base.html | {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_container_class ... | {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet"/>
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block... | Use spaces instead of tabs | Use spaces instead of tabs
| HTML | mit | uktrade/directory-ui-supplier,uktrade/directory-ui-supplier,uktrade/directory-ui-supplier | html | ## Code Before:
{% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
<link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
{% endblock %}
{% block content %}
<div class="container ed-enrolment">
<div class="clearfix"></div>
<div class="row-fluid">
<div class="{% block formarea_... | {% extends 'base.html' %}
{% load staticfiles %}
{% block css %}
- <link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet" />
? ^ -
+ <link href="{% static 'enrolment.css' %}" media="all" rel="stylesheet"/>
? ^^^^
{% e... | 20 | 1.25 | 10 | 10 |
5cfeb43a739a286ddb7b3c725e25b2e99d7ffe30 | lib/accounts.js | lib/accounts.js | AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
// Appearance
showAddRemoveServices: false,
sh... | AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
homeRoutePath: '/teams/public',
// Appearance
... | Add homeRoutePath to User Accounts config | Add homeRoutePath to User Accounts config
| JavaScript | mit | anjneymidha/SpaceTalk,dannypaton/SpaceTalk,tamzi/SpaceTalk,bright-sparks/SpaceTalk,MarkBandilla/SpaceTalk,redanium/SpaceTalk,anjneymidha/SpaceTalk,lhaig/SpaceTalk,syrenio/SpaceTalk,thesobek/SpaceTalk,redanium/SpaceTalk,bright-sparks/SpaceTalk,TribeMedia/SpaceTalk,MarkBandilla/SpaceTalk,yanisIk/SpaceTalk,tamzi/SpaceTalk... | javascript | ## Code Before:
AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
// Appearance
showAddRemoveServi... | AccountsTemplates.configure({
defaultLayout: 'defaultLayout',
defaultContentRegion: 'main',
// Behaviour
confirmPassword: true,
enablePasswordChange: true,
forbidClientAccountCreation: false,
overrideLoginErrors: true,
sendVerificationEmail: false,
+ homeRoutePath: '/teams/publ... | 1 | 0.018182 | 1 | 0 |
4c36269339935f0ccb44dc600d4c1dcd5d2725ec | config/webpack.dev.js | config/webpack.dev.js | const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested")... | const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("postcss-nested")... | Use more reliable JS source mapping technique | Use more reliable JS source mapping technique
| JavaScript | mit | trendyminds/pura,trendyminds/pura | javascript | ## Code Before:
const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
require("... | const path = require("path");
const merge = require("webpack-merge");
const webpack = require("webpack");
const common = require("./webpack.common.js");
const postCSSPlugins = [
require("postcss-easy-import")({ prefix: "_" }),
require("postcss-mixins"),
require("postcss-simple-vars"),
requi... | 2 | 0.035088 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.