Showing 623 of 1,229 total issues
Function _wheelHandler
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _wheelHandler(e) {
var pos,
count,
ratio,
newRatio;
Function fetch
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetch(gexf_url, callback) {
var xhr = (function() {
if (window.XMLHttpRequest)
return new XMLHttpRequest();
Function start
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
force.start = function() {
var i, n = nodes.length, m = links.length, w = size[0], h = size[1], neighbors, o;
for (i = 0; i < n; ++i) {
(o = nodes[i]).index = i;
o.weight = 0;
Function print
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function print(ctx, skipRoot) {
var i,
flx,
_flx,
Function matcherFromTokens
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function matcherFromTokens( tokens ) {
var checkContext, matcher, j,
len = tokens.length,
leadingRelative = Expr.relative[ tokens[0].type ],
implicitRelative = leadingRelative || Expr.relative[" "],
Function Integrator
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Integrator(config) {
var port = process.env.PORT || 3000,
hookUrl = 'https://hooks.slack.com/services/' + config.hookPath;
this.app = express();
Function show
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
, show: function () {
var $tip
, pos
, actualWidth
, actualHeight
Function linRepulsion
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
linRepulsion: function(c) {
this.coefficient = c;
this.apply_nn = function(n1, n2) {
if (n1.fa2 && n2.fa2)
{
Function neighborhoods
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.plugins.neighborhoods = function() {
var ready = false,
readyCallbacks = [],
graph = new sigma.classes.graph();
Function resize
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.renderers.webgl.prototype.resize = function(w, h) {
var k,
oldWidth = this.width,
oldHeight = this.height;
Consider simplifying this complex logical expression. Open
Open
if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) &&
( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
!wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
Function addCombinator
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addCombinator( matcher, combinator, base ) {
var dir = combinator.dir,
checkNonElements = base && dir === "parentNode",
doneName = done++;
Function val
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
val: function( value ) {
var ret, hooks, isFunction,
elem = this[0];
if ( !arguments.length ) {
Function renderCamera
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
sigma.prototype.renderCamera = function(camera, force) {
var i,
l,
a,
self = this;
Function parse
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse(graph) {
// Adapt the graph:
arr = graph.nodes;
for (i = 0, l = arr.length; i < l; i++) {
obj = arr[i];
Function _doubleClickHandler
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _doubleClickHandler(e) {
var pos,
count,
ratio,
newRatio;
Function cluster
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.layout.cluster = function() {
var hierarchy = d3.layout.hierarchy().sort(null).value(null), separation = d3_layout_treeSeparation, size = [ 1, 1 ], nodeSize = false;
function cluster(d, i) {
var nodes = hierarchy.call(this, d, i), root = nodes[0], previousNode, x = 0;
d3_layout_hierarchyVisitAfter(root, function(node) {
Function d3_time_format
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function d3_time_format(template) {
var n = template.length;
function format(date) {
var string = [], i = -1, j = 0, c, p, f;
while (++i < n) {
Function stop
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stop: function( type, clearQueue, gotoEnd ) {
var stopQueue = function( hooks ) {
var stop = hooks.stop;
delete hooks.stop;
stop( gotoEnd );
Function on
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
var type, origFn;
// Types can be a map of types/handlers
if ( typeof types === "object" ) {