Showing 623 of 1,229 total issues
Function internalData
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function internalData( elem, name, data, pvt /* Internal Use Only */ ){
if ( !jQuery.acceptData( elem ) ) {
return;
}
Function exports
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (dataDir) {
if( typeof dataDir === 'undefined' ) {
throw new Error('Missing data directory');
}
Function remove
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
remove: function( elem, types, handler, selector, mappedTypes ) {
var j, handleObj, tmp,
origCount, t, events,
special, handlers, type,
namespaces, origType,
Function reduce
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reduce(tree) {
// _down = {};
// _up = {}
Function _handleStart
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _handleStart(e) {
if (_settings('touchEnabled')) {
var x0,
x1,
y0,
Function gexf
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.parsers.gexf = function(target, sig, callback) {
var i,
l,
arr,
obj;
Function getNodes
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function getNodes(e) {
if (e) {
mX = 'x' in e.data ? e.data.x : mX;
mY = 'y' in e.data ? e.data.y : mY;
}
Function d3_transitionNode
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_transitionNode(node, i, id, inherit) {
var lock = node.__transition__ || (node.__transition__ = {
active: 0,
count: 0
}), transition = lock[id];
Function chord
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.chord = function() {
var source = d3_source, target = d3_target, radius = d3_svg_chordRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
function chord(d, i) {
var s = subgroup(this, source, d, i), t = subgroup(this, target, d, i);
return "M" + s.p0 + arc(s.r, s.p1, s.a1 - s.a0) + (equals(s, t) ? curve(s.r, s.p1, s.r, s.p0) : curve(s.r, s.p1, t.r, t.p0) + arc(t.r, t.p1, t.a1 - t.a0) + curve(t.r, t.p1, s.r, s.p0)) + "Z";
Function d3_interpolateTransform
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_interpolateTransform(a, b) {
var s = [], q = [], n, A = d3.transform(a), B = d3.transform(b), ta = A.translate, tb = B.translate, ra = A.rotate, rb = B.rotate, wa = A.skew, wb = B.skew, ka = A.scale, kb = B.scale;
if (ta[0] != tb[0] || ta[1] != tb[1]) {
s.push("translate(", null, ",", null, ")");
q.push({
Function d3_scale_linear
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_scale_linear(domain, range, interpolate, clamp) {
var output, input;
function rescale() {
var linear = Math.min(domain.length, range.length) > 2 ? d3_scale_polylinear : d3_scale_bilinear, uninterpolate = clamp ? d3_uninterpolateClamp : d3_uninterpolateNumber;
output = linear(domain, range, uninterpolate, interpolate);
Function parseArgs
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parseArgs(args) {
function options() {
Consider simplifying this complex logical expression. Open
Open
if ( ( mappedTypes || origType === handleObj.origType ) &&
( !handler || handler.guid === handleObj.guid ) &&
( !tmp || tmp.test( handleObj.namespace ) ) &&
( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
handlers.splice( j, 1 );
Function extractUpOnly
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extractUpOnly(tree, id) {
var _n = {};
var __n = {};
var _d = {};
Function MRQuery
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function MRQuery(model, clientQuery) {
var query = model.find();
//query option object,where we index by method, not by invocation order, useful later when we reexecute the query
var opts = {populate:[]};
Function graph
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function graph(type, options) {
this._options = options;
this._output_pre = _bgraph + "\\begin{" + type + "}";
this._output_post = "\\end{" + type + "}\n"+ _egraph;
this._plots = [];
Function extractUpOnly
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function extractUpOnly(tree, id) {
var _n = {};
var __n = {};
var _d = {};
Function d3_time_scale
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_time_scale(linear, methods, format) {
function scale(x) {
return linear(x);
}
scale.invert = function(x) {
Function internalRemoveData
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function internalRemoveData( elem, name, pvt ) {
if ( !jQuery.acceptData( elem ) ) {
return;
}
Function _getTopMembers
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Overview.prototype._getTopMembers = function (collection, type, last) {
var _element, _foundCount, _foundSize, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _topcountkey, _topsizekey;
if (last) {
this._createOverview();
return;