Showing 6,856 of 14,752 total issues
Method testConvertPopulationGroup
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Test
public void testConvertPopulationGroup() {
PopulationGroup populationGroup;
{
- Create a ticketCreate a ticket
Method testAssay
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public void testAssay() throws IOException, EncryptedDocumentException, InvalidFormatException {
final Workbook workbook = WorkbookFactory.create(new File("files/QMRA_Listeria.xlsx"));
final Sheet sheet0 = workbook.getSheetAt(0);
final String[][] values = readSpreadsheetToMatrix(sheet0);
- Create a ticketCreate a ticket
Method createPanel
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@SuppressWarnings("unchecked")
private Component createPanel() {
JPanel p = new JPanel(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
- Create a ticketCreate a ticket
Function tokenize
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenize(stream, state) {
var ch = stream.next();
// Have we found a variable?
if (ch === '$') {
- Create a ticketCreate a ticket
Function top
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
states.top = function(type, stream, state) {
if (type == "{") {
return pushContext(state, stream, "block");
} else if (type == "}" && state.context.prev) {
return popContext(state);
- Create a ticketCreate a ticket
Function tokenBase
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenBase(stream, state) {
// whitespaces
if (stream.eatSpace()) return null;
// Handle one line Comments
- Create a ticketCreate a ticket
Function tokenHereDoc
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function tokenHereDoc(phrase, embed) {
return function (stream, state) {
if (stream.sol()) {
stream.eatSpace()
if (stream.match(phrase)) {
- Create a ticketCreate a ticket
Function addWidget
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addWidget: function(pos, node, scroll, vert, horiz) {
var display = this.display;
pos = cursorCoords(this, clipPos(this.doc, pos));
var top = pos.bottom, left = pos.left;
node.style.position = "absolute";
- Create a ticketCreate a ticket
Function _create
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create(title, dialog, formData) {
// Add button
let addButton = document.createElement("button");
addButton.classList.add("btn", "btn-primary");
- Create a ticketCreate a ticket
Function edit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
edit(index, originalData, dialog) {
let O = this;
let keys = [];
$.each(O.panelTable.opts.cols,function(index,key){
keys.push(key.field);
- Create a ticketCreate a ticket
Function keys
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Object.keys = (function() {
var hasOwnProperty = Object.prototype.hasOwnProperty,
hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),
dontEnums = [
'toString',
- Create a ticketCreate a ticket
Function _handleClear
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AllowClear.prototype._handleClear = function (_, evt) {
// Ignore the event if it is disabled
if (this.isDisabled()) {
return;
}
- Create a ticketCreate a ticket
Function tokenizer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
var separators = options.get('tokenSeparators') || [];
var term = params.term;
var i = 0;
- Create a ticketCreate a ticket
Function event
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
zoom.event = function(g) {
g.each(function() {
var event_ = event.of(this, arguments), view1 = view;
if (d3_transitionInheritId) {
d3.select(this).transition().each("start.zoom", function() {
- Create a ticketCreate a ticket
Function tokenizer
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Tokenizer.prototype.tokenizer = function (_, params, options, callback) {
var separators = options.get('tokenSeparators') || [];
var term = params.term;
var i = 0;
- Create a ticketCreate a ticket
Function dragstart
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dragstart(id, position, move, end) {
return function() {
var target = this, parent = target.parentNode, event_ = event.of(target, arguments), eventTarget = d3.event.target, eventId = id(), drag = eventId == null ? "drag" : "drag-" + eventId, origin_ = position(parent, eventId), dragged = 0, offset, w = d3.select(d3_window).on(move + "." + drag, moved).on(end + "." + drag, ended), dragRestore = d3_event_dragSuppress();
if (origin) {
offset = origin.apply(target, arguments);
- Create a ticketCreate a ticket
Function updateNavArrows
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
updateNavArrows: function() {
if (!this._allow_update) return;
var d = new Date(this.viewDate),
year = d.getUTCFullYear(),
- Create a ticketCreate a ticket
Function _resolveWidth
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Select2.prototype._resolveWidth = function ($element, method) {
var WIDTH = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;
if (method == 'resolve') {
var styleWidth = this._resolveWidth($element, 'style');
- Create a ticketCreate a ticket
Function arc
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
d3.svg.arc = function() {
var innerRadius = d3_svg_arcInnerRadius, outerRadius = d3_svg_arcOuterRadius, startAngle = d3_svg_arcStartAngle, endAngle = d3_svg_arcEndAngle;
function arc() {
var r0 = innerRadius.apply(this, arguments), r1 = outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) + d3_svg_arcOffset, a1 = endAngle.apply(this, arguments) + d3_svg_arcOffset, da = (a1 < a0 && (da = a0,
a0 = a1, a1 = da), a1 - a0), df = da < π ? "0" : "1", c0 = Math.cos(a0), s0 = Math.sin(a0), c1 = Math.cos(a1), s1 = Math.sin(a1);
- Create a ticketCreate a ticket
Function left
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
left: function( position, data ) {
var within = data.within,
withinOffset = within.offset.left + within.scrollLeft,
outerWidth = within.width,
offsetLeft = within.isWindow ? within.scrollLeft : within.offset.left,
- Create a ticketCreate a ticket