hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
06952735b7c551bacc8105ba86354181af0c273a | 1,049 | package ru.apetrov;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Created by Andrey on 21.02.2017.
*/
public class PoolTest {
@Test
public void whenInputArrayThenGetMaximumSizeIsland() {
int[][] sea = new int[][]{{0, 0, 0, 0, 0, 0, 0... | 33.83871 | 66 | 0.354623 |
72ef1791b625970427dddd4a2c98e1099027ca53 | 2,347 | package com.ceiba.usuario.modelo.entidad;
import lombok.Getter;
import java.time.LocalDateTime;
import static com.ceiba.dominio.ValidadorArgumento.*;
@Getter
public class Usuario {
private static final String SE_DEBE_INGRESAR_LA_FECHA_CREACION = "Se debe ingresar la fecha de creación";
private static fina... | 44.283019 | 141 | 0.779293 |
76503df210fefac8210861edff535ce939708d38 | 1,537 | package com.booking.app.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import or... | 32.702128 | 111 | 0.771633 |
80c5b4efeff4ff158dad171e6470c94b66be6eda | 14,823 | package org.sagebionetworks.bridge.exporter.handler;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Matchers.notNull;
import static org.mockito.Matchers.same;
import static org.mockito.Mockito.doAnswer;
import stati... | 48.759868 | 119 | 0.730689 |
fe7b2e879db8ac8ef00be619852eaeabc2640e25 | 3,166 | /*
* Copyright 2021 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 48.707692 | 310 | 0.724258 |
4a83335780e64a1c0a5e8477a7a95bebff388087 | 2,133 | package io.github.bananapuncher714.brickboard.gui;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.ChatColor;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import io.github.bananapuncher714.brickboard.BPerms;
import io.github.bananapuncher714.br... | 36.775862 | 197 | 0.740272 |
3c0c2d3dcc56a30c9466dd6a1af48554e9136329 | 5,583 | package me.paulf.fairylights.client.renderer.block.entity;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import me.paulf.fairylights.client.ClientProxy;
import me.paulf.fairylights.client.model.light.BowModel;
import me.paulf.fairylights.server.fastener.Fastener;
import... | 62.730337 | 258 | 0.745477 |
b68cdb72ae9a39460701836590dc0bac1c78adc4 | 4,104 | package io.rocketbase.commons.config;
import io.rocketbase.commons.controller.exceptionhandler.ObfuscatedDecodeExceptionHandler;
import io.rocketbase.commons.exception.ObfuscatedDecodeException;
import io.rocketbase.commons.obfuscated.IdObfuscator;
import io.rocketbase.commons.obfuscated.ObfuscatedId;
import io.rocket... | 36.642857 | 218 | 0.711988 |
6ee8ff4466f1ffe77814ba06e7591099806b30d5 | 490 | package cajas.ficheros.io;
import java.io.*;
/** A DumpGetter that reads from a file. */
public class StreamDumpGetter implements DumpGetter {
private BufferedInputStream is;
public StreamDumpGetter(InputStream ois) throws IOException {
if (ois instanceof BufferedInputStream)
is = (BufferedInputStream)ois;
e... | 21.304348 | 62 | 0.734694 |
4939b77e66f87115a3e862d9169a2367fb3d7c9e | 1,982 | /*
* Copyright 2014 Parity authors
*
* 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 applicable law or agreed ... | 28.724638 | 75 | 0.650858 |
277111c20679516409c072b927b4ec6962bd284b | 2,401 | package com.mnssoftware.validator.swagger.service.parameter;
import com.mnssoftware.validator.swagger.service.ValidatorTestUtil;
import com.networknt.schema.ValidationMessage;
import io.swagger.models.parameters.BodyParameter;
import org.junit.Test;
import java.util.Set;
import static org.hamcrest.CoreMatchers.equal... | 36.378788 | 113 | 0.733028 |
5db5ad4de1ec835c4142319ca373fe19a0dff7e8 | 4,536 | /*
* Copyright 2021 Marcus Portmann
*
* 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 applicable law or agreed t... | 25.92 | 98 | 0.652998 |
5f227e183935456b08805fe4d3ecca723a0feabf | 1,880 | package ds.tutorials.communication.client;
import ds.tutorial.communication.grpc.generated.CheckBalanceRequest;
import ds.tutorial.communication.grpc.generated.CheckBalanceResponse;
import ds.tutorial.communication.grpc.generated.CheckBalanceServiceGrpc;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuil... | 37.6 | 109 | 0.660638 |
0da8dbb69deb1a0a078dc0a06cff92f420b07396 | 418 | import javafx.scene.control.Button;
import javafx.scene.layout.FlowPane;
import javafx.stage.Stage;
public interface GameInterface {
void resume(Stage primaryStage, int[] gameData);
void startGame(Stage primaryStage, int turnNumber, CompositeGame compGame);
void changeTurn(Stage stage);
void ... | 27.866667 | 80 | 0.73445 |
8db522a64140daca48b81d68125c0d7cfa46c17d | 1,164 | package com.example.piclabs.photoshoptroll.entity;
import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
@Entity
public class UrlEntity {
... | 22.384615 | 73 | 0.668385 |
1349cdc96b1e3e9e7287b0549c9258b287702e56 | 3,336 | package com.xmgps.yfzx.util;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* 数据类型转换器
*
* @author YYH
*/
public class Converter {
// 月份格式
private sta... | 26.47619 | 97 | 0.598921 |
a3ebb69e037cad501d73c3922ed42a5784d9464b | 767 | package caramel.system.command;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.annotation.Nonnull;
import caramel.metamethod.MethodRegistry;
import caramel.system.SystemStack;
import caramel.system.command.exception.CommandException;
public class CommandPush implements ISystemCommand<... | 23.242424 | 83 | 0.757497 |
b01d016fb2b5d524621f05df743ec8e90e996367 | 2,221 | package uhh_lt.keyterms;
import org.tartarus.snowball.SnowballStemmer;
import org.tartarus.snowball.ext.danishStemmer;
import org.tartarus.snowball.ext.dutchStemmer;
import org.tartarus.snowball.ext.englishStemmer;
import org.tartarus.snowball.ext.finnishStemmer;
import org.tartarus.snowball.ext.frenchStemmer;
import ... | 22.663265 | 71 | 0.721747 |
f59ee34f63baaf13916c2df8ef41418d34b37dd9 | 13,511 | package com.vk.vktestapp;
import android.app.AlertDialog;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.suppo... | 43.44373 | 194 | 0.554363 |
856a40fc17eebfb12bba33095bdb50cd1ce4a89d | 53 | /**
* Created by Weng on 3/9/2015.
*/
package test; | 13.25 | 31 | 0.603774 |
5aa71151c55693a6bda6160d75e077592a5302f3 | 1,688 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 26.793651 | 78 | 0.681872 |
973c4904076aab98eb1e408c6d034170ff1148ea | 12,238 | /*
* Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet
*
* 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 ... | 38.363636 | 112 | 0.583837 |
6196bd99b69241bdff7288b3ec4497d7e5ee067d | 654 | package com.github.zachsand.nasa.mars.rover;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
/**
* {@link NasaMarsRoverApplication} Spring Boot Application for utili... | 31.142857 | 124 | 0.811927 |
3f00f9d66ffc9b7ae1f6457363ab173a1fef2b05 | 6,597 | package com.jsf;
import com.jsf.lock.RedisLocker;
import com.jsf.model.Admin;
import com.jsf.model.Product;
import com.jsf.service.BatchService;
import com.jsf.service.ProductService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.spri... | 31.265403 | 94 | 0.622101 |
2fd6187c0d689a199dd85ac83ba80fece495564b | 26,670 | /* 1: */ package com.clone.RadarBro;
/* 2: */
/* 3: */ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import java.awt.Color;
/* 4: */ import java.awt.Graphics;
/* 5: */ import java.awt.image.BufferedImage;
/* 6: */ import java.io.IOException;
/* 7: */ import java.ne... | 51.786408 | 162 | 0.550844 |
94255c23a058da7a9d6815a9fcfb398631a236c8 | 832 | package lombok.core.xml;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Node;
import org.w3c.dom.Text;
/**
* Represents an XML text node
* @author Jason Blackwell
*
*/
public class XText extends XObject {
private String text;
/**
* Initializes a new instance with the specified te... | 18.488889 | 75 | 0.69351 |
149a9b4cc5374e408e1529b63f3607049109eb7e | 945 | package org.codefilarete.stalactite.query.model;
/**
* General contract for SQL operator such as in, =, <, >, like, between, etc.
*
* @param <V> dealing-with value type (not always value type)
* @author Guillaume Mary
*/
@SuppressWarnings("squid:S2326") // V is voluntary let, even if not used in this class, for... | 20.543478 | 101 | 0.656085 |
33b3c0ea1112cbe28b1e7f9bee99264670e97c3e | 13,965 | /*
Copyright Hiroki Ueda
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 applicable law or agreed to in writing, software
distribu... | 31.810934 | 109 | 0.689796 |
2c9d5b5b4e18a5e454fede2635b16439a4a3a91f | 845 | package com.algoexpert;
import java.util.ArrayDeque;
import java.util.Deque;
public class InvertBinaryTree
{
public static void invertBinaryTree(BinaryTree tree) {
// Write your code here.
final Deque<BinaryTree> q = new ArrayDeque<BinaryTree>();
q.add(tree);
while(!q.isEmpty()){
final Binary... | 22.837838 | 61 | 0.654438 |
0f1ece16f450cdb2d38482ea19657d6d8259e54c | 4,215 | package planning;
import java.math.BigInteger;
import java.util.*;
import representation.*;
/**
* Cette classe represente un planificateur utilisant l'algorithme BFS.
* Cette algorithme effectue dans un graphe une recherche en largeur.
* L'algorithme trouve le plan le plus court en premier mais peut explorer
* i... | 33.991935 | 128 | 0.572005 |
2cdf0d01aedb731802bfefd3d2c7ebe26e8e5fbe | 2,039 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.integrationtest.scenario1;
import static com.mercedesbenz.sechub.integrationtest.api.TestAPI.*;
import org.junit.Rule;
import org.junit.Test;
import org.springframework.http.HttpStatus;
import com.mercedesbenz.sechub.integrationtest.api.IntegrationTestS... | 35.77193 | 127 | 0.677783 |
70a3f1fd5c8a40a08f31627ef11481c30737e28c | 1,944 | /*
* Copyright 2021 Comcast Cable Communications Management, LLC
*
* 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... | 27.380282 | 143 | 0.686214 |
d1bdfc4a94f111b7547751275fabcb73d7fa4f64 | 240 | package com.github.teamcalendar.dao;
import java.util.List;
import com.github.teamcalendar.domain.QuestionEntity;
public interface QuestionDAO extends AbstractDao<Integer, QuestionEntity>
{
List<QuestionEntity> getAllQestions();
}
| 18.461538 | 73 | 0.804167 |
571cfd549c45677bbd7a191b3bfd51d5c6d1abbc | 16,675 | package com.horizen.transaction;
import com.horizen.box.Box;
import com.horizen.box.ZenBox;
import com.horizen.box.data.BoxData;
import com.horizen.box.data.ZenBoxData;
import com.horizen.box.data.WithdrawalRequestBoxData;
import com.horizen.fixtures.BoxFixtureClass;
import com.horizen.fixtures.SecretFixtureClass;
imp... | 38.96028 | 141 | 0.648336 |
29b55e613c2d921382db671fda9176383a851f50 | 885 | package ru.kpfu.itis;
import ru.kpfu.itis.server.GameServer;
import ru.kpfu.itis.server.exceptions.GameServerException;
import ru.kpfu.itis.server.listeners.EnterWithNameListener;
public class JavaTanksServer extends GameServer {
private static int PORT = 11903;
private static JavaTanksServer gameServer;
... | 27.65625 | 69 | 0.662147 |
512990c52a0e26802960050db3ee6bf2ca360f67 | 1,736 | package com.aloneness.spring.cloud.alibaba.sso.service.impl;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.aloneness.spring.cloud.alibaba.sso.domain.SysUser;
import com.aloneness.spring.cloud.alibaba.sso.service.ISysUserService;
import com.alonene... | 31 | 98 | 0.687788 |
69d47bfba8af74c15525335268ca3fa5d6af69ae | 1,770 | package edu.hm.hafner.analysis.parser;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import edu.hm.hafner.analysis.Issue;
import edu.hm.hafner.analysis.IssueBuilder;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.analysis.RegexpLineParser;
/**
* A parser fo... | 31.607143 | 115 | 0.59774 |
4eaeda57618dde5a9c3bf2d3ac5ed08cd3ccd16d | 668 | package it.valeriovaudi.matchmanager.service.activiti;
import it.valeriovaudi.matchmanager.model.Giocatore;
import org.activiti.engine.runtime.ProcessInstance;
import org.springframework.ui.Model;
import java.util.Map;
public interface ActivitiEngineService {
ProcessInstance startProcess(String processKey,Map<Str... | 39.294118 | 104 | 0.847305 |
0be4579c543dd649f4cc163bf3b4ccbff7806a9a | 710 | package com.qcloud.cos.model.ciModel.workflow;
public class MediaWorkflowStart {
private String type;
private MediaWorkflowInput input;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public MediaWorkflowInput getInput() {
... | 20.285714 | 52 | 0.546479 |
8fafdb2d6babe0a51ddfb17b24c79a2ca606875d | 5,914 | package algorithms;
import algorithms.imageProcessing.util.PairIntWithIndex;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @author nichole
*/
public class MergeSort {
/**
* sort by increasing value a.x then a.y
*
* @param a array of points to be sorted
... | 26.760181 | 85 | 0.465167 |
76d50e9de256f02029778f6fe0dea6a0a58076cf | 2,159 | package com.rajendarreddyj.basics.swing.demo;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextFie... | 32.223881 | 87 | 0.660491 |
022f6c04d376733d1fd84ec28847f83e9d67a966 | 4,370 | /*
*/
package com.artezio.example.billling.adaptor.web.pages;
import com.artezio.example.billling.adaptor.data.entities.BillingClient;
import com.artezio.example.billling.adaptor.data.entities.PaymentRequest;
import com.artezio.example.billling.adaptor.data.types.PaymentOperationType;
import com.artezio.exampl... | 29.133333 | 88 | 0.57254 |
bd918fa9b459f201987f23aa87a2d26d97bce42f | 5,506 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. All Rights Reserved.
*
* 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... | 27.257426 | 152 | 0.606793 |
1df32c9e3dfd388504f531c958d7281f6452ec1e | 902 | package de.bit.pl2.group5.fasta_tools;
import java.io.File;
import java.io.IOException;
import org.junit.Test;
import junit.framework.TestCase;
/**
* Unit test for simple App.
*/
public class SequencesTest
extends TestCase
{
public void testSequences() throws IOException {
File file = new File("src/test/r... | 22.55 | 63 | 0.701774 |
89b56c6949b09d6a2a26026917fa1bc289ba15fc | 1,845 | package com.kandidat.rityta;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.SeekBar;
import android.widget.SeekBar.OnSeekBarChangeListener;
import android.widget.TextView;
import com.kandidat.R;
/**
... | 26.357143 | 83 | 0.722493 |
4162748efef3c76cf9941295ca23599f59f9be17 | 11,099 | /*
* Created by DSL Platform
* v1.5.6040.24209
*/
package com.dslplatform.json.generated;
public class GE0A0Lc implements java.lang.Cloneable, java.io.Serializable, com.dslplatform.json.JsonObject {
public GE0A0Lc() {
this.GA0A0LcID = java.util.UUID.randomUUID();
this.URI = this.GA0A0LcID.t... | 36.035714 | 168 | 0.533111 |
f6a021c9bf3bd5fb767c270e281d608418597e7e | 1,572 | package org.rx.net.support;
import io.netty.channel.Channel;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.rx.bean.Tuple;
import org.rx.core.Cache;
import java.net.SocketAddress;
@Slf4j
public final class EndpointTracer {
@RequiredArgsConstructor
static class LinkedData ... | 39.3 | 143 | 0.673028 |
3b293ddd95371e4e729667313ebed9d1a31052fc | 29,688 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.009434 | 143 | 0.695567 |
e9c5cc92bccdffaab26b340f410b39624eb5f34e | 1,123 | package net.shengjian.system.service;
import net.shengjian.rpc.annotation.RpcServiceAnnotation;
import net.shengjian.system.entity.Attachment;
import java.util.List;
/**
* 附件service
*
* @author springrain<Auto generate>
* @version 2021-06-09 11:55:02
*/
@RpcServiceAnnotation
public interface IAttachmentService ... | 21.596154 | 106 | 0.669635 |
d23fb5a9a7cbba6252c4257957fdfbf6968e34b9 | 2,224 | package br.senac.devweb.api.ecommerce.endereco;
import br.senac.devweb.api.ecommerce.cliente.Cliente;
import lombok.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
@... | 30.054054 | 100 | 0.666367 |
cd598a82b5b67a9ef013ce1edac87dbc8597157c | 3,219 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2017 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.client.editor.simple;
import com.google.appinvento... | 31.558824 | 101 | 0.758621 |
e89a0c6ea06d57eaab3501f0e4fb2d5c5bfd9824 | 23,882 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... | 15.328626 | 814 | 0.809103 |
33ea3f516d2befc6b92ded30af70e67783cde9fe | 298 | package com.example.db.entity;
import java.time.ZonedDateTime;
import java.util.UUID;
import lombok.AllArgsConstructor;
import lombok.Getter;
@AllArgsConstructor
@Getter
public class DataSyncOperation {
public UUID operationId;
public String customerId;
public ZonedDateTime created;
}
| 15.684211 | 33 | 0.802013 |
ce07b88de739b28de616d0b380986418a0f4ab41 | 1,432 | package net.minecraft.world.spawner;
import com.google.common.collect.Lists;
import java.util.List;
import net.minecraft.util.math.BlockPos;
public class MobDensityTracker {
private final List<MobDensityTracker.DensityEntry> field_234997_a_ = Lists.newArrayList();
public void func_234998_a_(BlockPos p_234998_1... | 31.822222 | 100 | 0.694832 |
69dd2c8d34fb75eec45fffb0982ffd095481f8c8 | 785 | package com.github.mizool.technology.jackson;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import javax.ws.rs.ext.ParamConverter;
import com.google.common.base.Strings;
class LocalTimeParamConverter implements ParamConverter<LocalTime>
{
@Override
public LocalTime fromString(String... | 23.088235 | 83 | 0.656051 |
8d8c20c769e0b64290b84a0e1805907bbc6f8c9a | 10,620 | package org.netlib.lapack;
import org.netlib.util.floatW;
import org.netlib.util.intW;
public final class Slazq4
{
public static void slazq4(int paramInt1, int paramInt2, float[] paramArrayOfFloat, int paramInt3, int paramInt4, int paramInt5, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat... | 37.659574 | 301 | 0.428719 |
c8323557a7f9ad2f131def6f0d62446d89b78a9f | 3,179 | package org.apache.commons.collections4.functors;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.collections4.Closure;
import org.apache.commons.collections4.Predicate;
import org.apache.commons.collections4.functors.FunctorUtils;
imp... | 36.54023 | 170 | 0.680403 |
cb3de55e7c59ae8b7852e3a7e76b2f8085aa6c33 | 1,644 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* You may obtain a copy of the License at
*
* http://www.apache.... | 31.615385 | 75 | 0.687956 |
e3f7f5d406a49cc9a8707b4a728b19c02513a2f7 | 2,781 | package com.lq.plat.link.trade;
import com.lq.plat.link.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
/**
* 付款订单
* @au... | 17.713376 | 74 | 0.621 |
fc01d0d039b51398bfedf5c668d4451a49c99b7e | 4,949 | /*
* Copyright 2006-2014 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 16.333333 | 75 | 0.649222 |
1046a801413072cb8d6b7b6a65f4779da87db16c | 1,403 |
/*
* ajc fails to detect call join points using the
* declaring interface as the type when the method
* was declared in the aspect.
*/
public class DeclareWarningAndInterfaceMethodCW {
public static void main(String[] args) {
new C().doSomething();
}
}
interface ICanGetSomething {
Object getS... | 25.053571 | 83 | 0.617962 |
f40d7fcf84d5814f683afb114f64603bf8c3c1f0 | 7,352 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Zeebe Community License 1.1. You may not use this file
* ... | 36.216749 | 99 | 0.717084 |
fb096db639ad597b98009fea3d761e6b6bcef9d3 | 747 | package com.usual.book;
import java.awt.*;
import javax.swing.*;
/**
* This program demonstrates the printing of a multi-page book. It prints a "banner", by blowing up
* a text string to fill the entire page vertically. The program also contains a generic print
* preview dialog.
* @version 1.12 2007-08-16
* @aut... | 26.678571 | 99 | 0.61178 |
f09c50b74ad081e1044bfe440c31926028cabfdd | 439 | package com.atguigu.mall.member.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.mall.member.entity.MemberEntity;
import java.util.Map;
/**
* ??Ա
*
* @author zhoutao
* @email sunlightcs@gmail.com
* @date 2020-05-11 20:36:23
*/
pu... | 20.904762 | 63 | 0.756264 |
3539867ceebd4ef27122170c4b12f2dc61f751b3 | 4,492 | /*
* Copyright 2016 PantherCode
*
* 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 applicable law or agreed ... | 26.898204 | 110 | 0.630232 |
ef9a3065beaa004b5b4b553114f09d13e3bf35e1 | 109 | package exo01;
public class MemoryIndicator {
// Show memory indicator
// Change memory allocation
} | 18.166667 | 31 | 0.724771 |
284a6813798aec9e5e01dfa03ad2f947d4ebfbfd | 1,345 | package lintcode.twopointers;
import java.util.ArrayList;
import java.util.List;
public class _390_Find_Peak_Element_II {
public static List<Integer> findPeakII(int[][] A) {
List<Integer> result = new ArrayList<>();
for (int i = 0; i < A.length; i++) {
int j = findRowPeak(A[i]);
... | 22.79661 | 66 | 0.408178 |
35cdd6ac9bb7d6bdb224013e48f26d8a14647ed2 | 3,792 | package com.spartronics4915.lib.math.threedim.math3;
import org.apache.commons.math3.geometry.euclidean.threed.Rotation;
import org.apache.commons.math3.geometry.euclidean.threed.RotationConvention;
/**
* Robust+compact representation of 3D rotation
*
* Quaternions w+ix+jy+kz are represented as [w, x, y, z].
* ... | 27.280576 | 91 | 0.575949 |
fc1b9d1a58c24eb3c9458696788b802509999bd1 | 362 | import io.nanovc.NanoVersionControl;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* Tests the {@link NanoVersionControl} API.
*/
public class NanoVersionControlTests
{
@Test
public void testNanoVersionControlURL()
{
assertEquals("https://nan... | 21.294118 | 66 | 0.729282 |
651f793c5e21f63fb28178713ec5a3b75d5f9609 | 2,841 | package com.oneot.weather.scheduler.util;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.Attributes... | 29.59375 | 89 | 0.713129 |
c557bde91daf7f046e81dc83a30c22a7fd0aafba | 4,381 | package org.infinispan.persistence.jdbc.common.configuration;
import org.infinispan.commons.configuration.io.ConfigurationReader;
import org.infinispan.configuration.parsing.ConfigurationParser;
import org.infinispan.configuration.parsing.ParseUtils;
import org.infinispan.persistence.jdbc.common.DatabaseType;
public ... | 34.496063 | 117 | 0.598722 |
357c3fa5a149de52bf07fe85ee3d8d01056a59fc | 1,270 | package com.br.movies.battle.core.usecase.impl;
import com.br.movies.battle.core.domain.Movie;
import com.br.movies.battle.core.domain.Round;
import com.br.movies.battle.core.port.RoundPortOut;
import com.br.movies.battle.core.usecase.IMovieUseCase;
import com.br.movies.battle.core.usecase.IRoundUseCase;
import... | 34.324324 | 120 | 0.524409 |
7f69c27a3357688c8a362d616290d2357af4174d | 9,309 | /*
* Copyright 2020 The Android Open Source Project
*
* 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 applica... | 38.151639 | 98 | 0.631432 |
bfead50e5ebd46693d29cfa7997b4f8013d7dd56 | 1,112 | package org.easyweb4j.web.mybatis.mapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectKey;
import org.easyweb4j.web.mybatis.entity.House;
@Mapper
public interface HouseMapper {
@Ins... | 48.347826 | 184 | 0.752698 |
2d4cd4045c9bf23053d9e4db06759e996fa410e7 | 13,254 | package com.ztostring.drawerlayout;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGrou... | 43.032468 | 164 | 0.599668 |
755e2f0e93e121a18c2d3c6d5102c473531bb8cb | 511 | public class MnemonicF2n extends Mnemonic {
public MnemonicF2n(String mnemonic, int opcode, String hint, String description) {
super(mnemonic, opcode, hint, description);
}
public Node parse(Parser parser) throws SyntaxError {
parser.lexer.advanceIf('#');
return new InstructionF2(th... | 34.066667 | 86 | 0.690802 |
d21d1e825bfcd780b6a490c2d8db6af8cb6ba235 | 916 | package top.chenqwwq.leetcode.weekly._263._2;
/**
* @author chen
* @date 2021-10-18
**/
public class Bank {
long[] accounts;
public Bank(long[] balance) {
accounts = balance;
}
boolean check(int account) {
return account > 0 && account <= accounts.length;
}
public boolean transfer(int account1, int ac... | 18.693878 | 66 | 0.638646 |
f49a99495252b9a711c6b74c727e93bb849ab2ac | 1,581 | package co.edu.uptc.sistemasdistribuidos.entity;
import javax.persistence.*;
@Entity
public class Game {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private Double time;
private int point;
private int questionsCorrect;
private int questionsIncorrect;
@ManyToOne... | 20.802632 | 100 | 0.629981 |
dc00af7c9f72a130299a3356f590bc1834f32ee6 | 6,150 | /***** BEGIN LICENSE BLOCK *****
* Version: EPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Eclipse Public
* License Version 1.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.eclipse.org/legal/epl-... | 35.344828 | 127 | 0.590244 |
2b399ab4dc2150d4067ed9d1f93428c51fa3f8cf | 780 | package slogo.model.Commands.TurtleCommands;
import slogo.model.TreeNode;
import slogo.model.Turtle;
/**
* @author Sanna
*
* ClearScreen command
*/
public class ClearScreen extends TurtleCommand {
public ClearScreen(String name) {
super(name);
}
/**
* Moves all turtles back to center and clears the... | 22.941176 | 85 | 0.685897 |
fb0051a928dacfdcb281e73abe1f1ca104ab5fd4 | 1,445 | /*
* Copyright 2021 Wolf Sluyterman van Langeweyde
*
* 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 applicab... | 32.840909 | 106 | 0.720415 |
1e6e292fe84c9fb32650f16fe1248112a6d26647 | 2,317 | package com.loginfxmysql.loginfxmysql;
import org.mindrot.jbcrypt.BCrypt;
import java.sql.*;
public class DatabaseHandler {
/**
* Variable de Conexion
*/
private static final String DATABASE_URL = "jdbc:mysql://localhost:3306/demo-laravel?useSSL=false";
private static final String DATABASE_U... | 34.58209 | 117 | 0.579197 |
1edd216730c49164874d157a663260da4002b899 | 14,713 | /**
* Copyright 2005-2015 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless requ... | 32.62306 | 135 | 0.658058 |
2c37d9c8df273497f5a4ccfa452d2ca30ec97935 | 1,011 | package cn.spear.protocol.tcp.sender;
import cn.spear.core.message.MessageCodec;
import cn.spear.core.message.MessageSender;
import cn.spear.core.message.model.impl.BaseMessage;
import cn.spear.core.service.ServiceAddress;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
/**
* @author s... | 29.735294 | 110 | 0.714144 |
91a078311c546d36789866d88107c4c438404f42 | 39,501 | package AST;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.io.File;
import java.util.*;
import beaver.*;
import java.util.ArrayList;
import java.util.zip.*;
import java.io.*;
import java.util.Stack;
import java.util.regex.Pattern;
import java.io.FileOutputStream;
import java.io.IOException;
im... | 31.932902 | 175 | 0.682211 |
ebb41c5bf5583bb48ff294a32a528b9ac73de17b | 5,092 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 70.722222 | 599 | 0.718775 |
fb8525afd497865c11ecdf523ace0c1b986eac97 | 5,842 | /*
* Copyright (c) 2005-2011 Grameen Foundation USA
* All rights reserved.
*
* 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
*
* Unl... | 33.768786 | 118 | 0.599623 |
e432260a495a806bd937bd578c89ec084ece388b | 1,465 | /*
* COPYRIGHT Beijing NetQin-Tech Co.,Ltd. *
****************************************************************************
* 源文件名: CP_OperateLog.java
* 功能: cpframework框架
* 版本: @version 1.0
* 编制日期... | 24.830508 | 88 | 0.473038 |
9f92451c25abf90ec6f9367b7e0ceb020c08c500 | 842 | /**
* An implementation of the Josephus problem Time complexity: O(n)
*
* @author Micah Stairs
*/
package com.williamfiset.algorithms.dp;
public class JosephusProblem {
// Suppose there are n people in a circle and person
// 0 kill the k'th person, then the k'th person kills
// the 2k'th person and so on un... | 24.057143 | 66 | 0.605701 |
3dcc261fb6f191a4d004ceab3f70e62616ff50eb | 252 | package com.karl.framework.sharding.exception;
/**
* @author karl.zhong
*/
public class ExecuteShardingSqlException extends RuntimeException {
public ExecuteShardingSqlException(String message, Exception e) {
super(message, e);
}
}
| 21 | 69 | 0.734127 |
89b032f2638903417a83fe9644a5928b98994bcb | 2,179 | /*
* Copyright (C) 2016 Google Inc.
*
* 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 applicable law or agreed to ... | 35.721311 | 92 | 0.744837 |
3ff8af93e14e128a33ffc0726378c3229ccd6851 | 5,259 | package com.ov3rk1ll.kinocast.utils;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.SystemClock;
import android.util.Log;
import android.view.View;
import android.webkit.CookieManager;
import android.webkit.CookieSyncManager;
import android.webkit.WebView;
import android.webk... | 44.567797 | 131 | 0.534702 |
b939c721dbd26ce8419275390cb25facbb218e94 | 2,039 | package commonskill;
public class Trie {
public static class TrieNode {
// 下一个前缀树的节点
public TrieNode[] children = new TrieNode[26];
// 是否到达了一个单词的结尾
public boolean isWordEnd = false;
// 如果已经到达了一个单词的结尾,则更新这个单词
public String str;
}
// -----------------------... | 24.865854 | 83 | 0.507602 |
43f47b338ddf7223e9a0b55ad1eaa59af21f2af7 | 1,281 | /*
* Copyright 2015-2016 DevCon5 GmbH, info@devcon5.ch
*
* 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 appli... | 31.243902 | 95 | 0.75566 |
05d1394a5957bae6b363996f0c95bf05f1b09d52 | 479 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.solent.com504.factoryandfacade.model.dao;
/**
*
* @author cgallen
*/
public interface DAOFactory {
public AnimalTy... | 19.958333 | 79 | 0.691023 |
ec2872470c951a50aabc285adf5799a89ffe6ea7 | 5,110 | package cg.morfismo;
import java.awt.*;
import java.awt.image.*;
import java.awt.geom.*;
import java.util.Date;
/* A simple demonstration for the use of double buffering on the basis of the
earlier geometric transforms example. In addition to the rotating and
changing rectangle, we have a static blue ellipse i... | 33.84106 | 107 | 0.651468 |
de1217e34a6afb56839efa8dc13ace781e03800f | 655 | package com.reloadly.transaction.model;
/**
* The transaction status.
*
* @author Arun Patra
*/
public enum TransactionStatus {
/**
* The transaction has been accepted for processing.
*/
ACCEPTED,
/**
* The transaction has been rejected. Can not be retried.
*/
REJECTED,
/**... | 18.714286 | 61 | 0.6 |
c643b6cc9df9031b575d17faf84b5c80e087a530 | 16,182 | /**
* Copyright (C) 2017 Microbeans Software Jürgen Röder.
*
* 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 a... | 26.226904 | 106 | 0.740452 |
483b36eaf85690bf9c1bb212863b2538c88159f8 | 1,101 | package mekanism.common.network.to_server;
import mekanism.common.Mekanism;
import mekanism.common.network.IMekanismPacket;
import net.minecraft.world.entity.player.Player;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraftforge.network.NetworkEvent;
public class PacketKey implements IMekanismPacket {... | 27.525 | 72 | 0.653043 |
eacf194f8d34844b5a945bce3a73284a0c6a0849 | 3,560 | /**
* current-pims-web org.pimslims.bioinf.local SequenceGetterTester.java
*
* @author Petr
* @date 28 Sep 2007
*
* Protein Information Management System
* @version: 1.3
*
* Copyright (c) 2007 Petr
*
*
*/
package org.pimslims.bioinf.local;
import java.util.Collection;
... | 27.384615 | 101 | 0.630618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.