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 |
|---|---|---|---|---|---|
2decf42c95d0131c2073c2ddf3d70e0cea7413f7 | 2,566 | package org.peerfact.impl.application.capacitymanager;
import org.peerfact.impl.common.AbstractPeriodicOperation;
import org.peerfact.impl.service.skipgraph.SkipgraphServiceConstants;
import org.peerfact.impl.simengine.Simulator;
/**
* Searches for capacities in a periodic interval.
*
* @author Andreas Funke
* @... | 24.673077 | 83 | 0.561964 |
f2637dd051f745554d6746f6eb778ac0cd5d4b10 | 9,203 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INSTIT... | 43.004673 | 132 | 0.769966 |
e194a645320cc494bdcd7ff961f419a870f5b0da | 1,169 | package moon_lander.attributes;
import java.util.Vector;
/**
* Created by Liam Dodds on 14/01/2015.
*/
public class Vector2D {
private int x;
private int y;
public Vector2D() {
x = 0;
y = 0;
}
public Vector2D(int x, int y) {
this.x = x;
this.y = y;
}
p... | 16.013699 | 41 | 0.491018 |
08288b0a952ad5f405a4e9d98587751b83e613be | 2,335 | package com.github.superzhc.hadoop.flink.streaming.connector.kafka;
import org.apache.flink.api.common.serialization.SimpleStringSchema;
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.connector... | 40.258621 | 137 | 0.716488 |
9a48c96c32c614845b9c9e3080a7434c37199979 | 1,356 | package ethereum.eventloader.component;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.BatchRequest;
import org.web3j.protocol.core.Request;
import org.web3j.protocol.core.methods.... | 31.534884 | 82 | 0.680678 |
f5c2e89d87270fdcce5c98565a11ca2932147c43 | 538 | package tech.jhipster.lite;
import java.lang.reflect.Method;
import org.junit.jupiter.api.DisplayNameGenerator;
public class ReplaceCamelCase extends DisplayNameGenerator.Standard {
@Override
public String generateDisplayNameForMethod(Class<?> testClass, Method testMethod) {
return this.replaceCapitals(testM... | 26.9 | 85 | 0.715613 |
54615414d68b454f7f7a1efd11d0b002e767b8e4 | 4,522 | package com.shangame.fiction.widget;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.text.Spannable;
import android.text.SpannableStringBuilder;
import android.text.style.ForegroundColorSpan;
import android.util.AttributeSet;
import andr... | 27.573171 | 228 | 0.634675 |
fb33dd21dbfe1ae67a06956289cdd93658ceb43b | 2,089 | package edu.uci.ics.huymt2.service.movies.resources;
import edu.uci.ics.huymt2.service.movies.core.HelpMe;
import edu.uci.ics.huymt2.service.movies.core.ResultCode;
import edu.uci.ics.huymt2.service.movies.logger.ServiceLogger;
import edu.uci.ics.huymt2.service.movies.logicalhandler.Movies;
import edu.uci.ics.huymt2.se... | 47.477273 | 117 | 0.748205 |
bd1bbd55773eba422da3641543e52c8911c85f3d | 1,139 |
package org.springframework.samples.petclinic.web;
import java.text.ParseException;
import java.util.Collection;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.Formatter;
import org.springframework.samples.petclinic.model.Specialty;
import o... | 26.488372 | 87 | 0.791923 |
a105355cbd1d2bf616f8f0f32984e1e227de7be1 | 460 | package com.scen.portal.service.hystrix;
import com.scen.pojo.Content;
import com.scen.portal.service.PortalContentService;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 首页内容熔断器
*
* @author Scen
* @date 2018/5/29 17:15
*/
@Component
public class PortalContentServiceHystrix implem... | 20 | 74 | 0.752174 |
a51c87d70824737d045ff9e23d9026590227c57d | 680 | package org.formula.validation;
import java.util.Map;
public class NumberFieldValidator extends DefaultFieldValidator {
@Override
public ValidationResult validate(Map<String, Object> model) {
ValidationResult validationResult = super.validate(model);
Object value = model.get(getFormFieldBinding().getP... | 27.2 | 140 | 0.723529 |
cc416872d282598a6e6fa75e65ede220e030b41d | 516 | public class Unbreakable_Brick extends Brick {
/**
* Class to create an unbreakable brick by calling
* the super() method which invokes the parent class Brick
*
* @param brick_type
* @param height
* @param width
* @param num_hits
* @param has_powerup
*/
public Unbr... | 28.666667 | 124 | 0.668605 |
d024eaad90eb95c5f35c426318f5950a47e1f709 | 5,076 | package br.com.caelum.stella.nfe.ws.integration;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.List;
import javax.xml.ws.BindingProvider;
import javax.xml.ws.handler.Handler;
import org.apache.commons.lang.StringUtils;
import br.com.caelum.stella.nfe.Estados;
import br.com.caelum.st... | 32.33121 | 126 | 0.710993 |
8bd4444362c4b3921cd819e8732d5b56110aeddd | 1,320 | package ru.job4j.book;
/**
* class Order - describes order.
* @author Dinis Saetgareev (dinis0086@mail.ru)
* @since 02.04.2017
* @version 1.0
*/
public class Order {
/**
* id of order.
*/
private static int id = 0;
/**
* price of order.
*/
private double price;
/**
* v... | 18.333333 | 62 | 0.527273 |
a90e03405c7f08586a6f523352b3e77a2ac83af6 | 1,896 | package com.example.android.vibes.activities;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
import com.example.a... | 38.693878 | 137 | 0.718882 |
06ece8ca24bc2d0ba942b4809617ded3c10ad473 | 6,643 | /*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 45.190476 | 140 | 0.703598 |
ecf5426c6063cdb86d6cadfaaf803078a75825e2 | 7,164 | /**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | 39.147541 | 113 | 0.646985 |
bbcdd64f90f41fa31b0e3025ea42d43243deb9e3 | 1,277 | package pas.com.mm.shoopingcart;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
/**
* Created by ... | 31.146341 | 74 | 0.67267 |
44a86cb1508350340a09a8eefbf96ca5fae89c85 | 891 | package org.brjia.qs.round;
import java.util.Calendar;
import java.util.Date;
public class UploadRoundCalander extends RoundCalander {
public UploadRoundCalander(Date d){
super(d);
}
@Override
protected int calculateRound(Calendar calendar) {
int round;
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int ... | 19.8 | 66 | 0.654321 |
27238a5a4d1b8068ab4dd71d9b9ff5d732b6d9a5 | 2,450 | package com.manzhizhen.spring.cloud.gateway.mini.config;
import com.manzhizhen.spring.cloud.gateway.mini.predicate.Predicate;
import com.manzhizhen.spring.cloud.gateway.mini.route.Route;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.spring... | 25.257732 | 93 | 0.565714 |
095b60e400904ecb9c24dabac965ffffa1a4780f | 1,304 | /*
* Project Scelight
*
* Copyright (c) 2013 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the author's permission
* is prohibited and protected by Law.
*/
package hu.scelightapibase.util.gui;
import h... | 34.315789 | 156 | 0.71089 |
75b36d99ff7e81a3967bae177ce7a9a76dcbd5cb | 1,619 | package io.ideploy.deployment.log.controller;
import io.ideploy.deployment.common.enums.LogType;
import io.ideploy.deployment.log.service.LogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;... | 29.436364 | 131 | 0.665225 |
60bfaea92bd20d48907ffb8eecc390ac86bc91b3 | 423 | package i2.act.lala.semantics.types;
public final class StringType implements Type {
public static final StringType INSTANCE = new StringType();
private StringType() {
/* intentionally left blank */
}
@Override
public final boolean equals(final Object other) {
// there is only one instance
r... | 18.391304 | 61 | 0.678487 |
7caad5e7effd7f2c21317c74b5ba0d7da3fc17a3 | 1,634 | package com.app.qunadai.third.moxie;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.app.qunadai.R;
/**
* 通用标题
*
* @author Taoweisong
*/
public class T... | 25.138462 | 75 | 0.689106 |
5b598f625eedddecf6ad6090b09b9789d99904e1 | 3,215 | /**
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2012 BigBlueButton Inc. and by respective authors (see below).
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the... | 27.016807 | 83 | 0.663453 |
5e272ae0e6894b41a2fe8786cb34d7c5e510536d | 1,105 | package cc.catalysts.structurizr;
import com.structurizr.view.ViewSet;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import javax.annotation.Nonnull;
/**
* <p>This is the main class of the architecture application. It starts as a {@link SpringBootApplication}, thus
* also automatically confi... | 36.833333 | 119 | 0.762896 |
25b67e477498b76dc85e48d51aa46854d4f837ae | 3,239 | package com.xiaodao.springbootjpa.config;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.orm.jpa.EntityManagerFactoryBuilder;
... | 38.559524 | 102 | 0.822476 |
6a5e5b711df36e550e275df35ae96d0d08d5095e | 1,882 | package com.onevgo.j2se.nio.blocking;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOptio... | 31.366667 | 115 | 0.509033 |
6b3f3abcdce4fae36ff8bee8dfaf578e08e95861 | 1,429 | package org.iupac.fairspec.core;
import java.util.ArrayList;
import java.util.List;
import org.iupac.fairspec.common.IFSException;
import org.iupac.fairspec.common.IFSRepresentation;
@SuppressWarnings("serial")
public abstract class IFSCollection<T extends IFSObject<?>> extends IFSObject<T> {
protected IFSCollecti... | 23.42623 | 93 | 0.703289 |
54f61eac749684d8b3093804d1e362decd382f1d | 1,318 | package operations;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServ... | 32.95 | 154 | 0.745068 |
7b3f8987cd79d2d81cda721dcabb6312ee8b01f1 | 1,008 | package com.intuso.housemate.client.api.internal.type.serialiser;
import com.intuso.housemate.client.api.internal.HousemateException;
import com.intuso.housemate.client.api.internal.object.Type;
/**
* Created by tomc on 12/01/17.
*/
public class EnumSerialiser<E extends Enum<E>> implements TypeSerialiser<E> {
... | 29.647059 | 123 | 0.651786 |
954019b8ffc5fea3f691cff42b9cd63d585d7a8c | 4,401 | package ru.seits.projects.lineardb;
import org.junit.jupiter.api.*;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicLong;
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
public class DBTest {
private static DB<Tes... | 30.143836 | 100 | 0.60668 |
e42461c5070c1f2375b4ffe5bf7b66b32593617b | 1,430 | package effort_2021;
import leetcode.TreeNode;
import java.util.*;
public class LowestCommonAncestor {
public TreeNode lowestCommonAncestor(TreeNode root, TreeNode p, TreeNode q) {
// Stack for tree traversal
Deque<TreeNode> stack = new ArrayDeque<>();
// HashMap for parent pointers
... | 27.5 | 81 | 0.54965 |
173f189605213f4c0bde0b0694bba303e4fda702 | 206 | package cool.sodo.auth.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import cool.sodo.common.starter.domain.OauthUser;
public interface OauthUserMapper extends BaseMapper<OauthUser> {
}
| 25.75 | 64 | 0.830097 |
2b5dfb30ac12017ee3aa7d64d3567aaf313ea932 | 1,183 | package com.gempukku.swccgo.logic.timing.results;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.SwccgGame;
import com.gempukku.swccgo.logic.GameUtils;
import com.gempukku.swccgo.logic.timing.EffectResult;
/**
* The effect result that is emitted when a card is made into an undercover s... | 31.131579 | 91 | 0.716822 |
10ce2a96848e021dc9bb0cb6894daaac94fecfde | 1,058 | package io.github.dmitrikudrenko.core.local.database.contract;
import android.provider.BaseColumns;
public interface WitcherVideoContract extends BaseColumns {
String TABLE_NAME = "geralt_video";
String COLUMN_URL = "url";
String COLUMN_NAME = "name";
String COLUMN_DURATION = "duration";
String C... | 33.0625 | 62 | 0.555766 |
262b033609aab1ebc20d67ecc2ffaa918e23fac6 | 221 | package org.example.hierarchy;
public class JUnit3HierarchyBaseTestCase extends AbstractJUnit3HierarchyTestCase {
public void test_base() {
}
@Override
void doTest() {
System.out.println("base test case");
}
}
| 15.785714 | 82 | 0.755656 |
701490af7e80ab891d23d421a66997449f29eaba | 1,085 | package com.prolificinteractive.materialcalendarview;
import android.annotation.SuppressLint;
import androidx.annotation.NonNull;
import java.util.Collection;
import java.time.DayOfWeek;
import java.time.LocalDate;
/**
* Display a week of {@linkplain DayView}s and
* seven {@linkplain WeekDayView}s.
*/
@SuppressLin... | 26.463415 | 75 | 0.720737 |
59ec7975966898f5404ab2b9cf3164b5d4870734 | 1,636 | package aoc.days;
import aoc.Day;
import aoc.handheld.Command;
import aoc.handheld.HandheldCode;
import aoc.handheld.Instruction;
public class Day08 extends Day<Long> {
public static void main(String[] args) {
Day08 d = new Day08();
d.init("/day08.txt");
d.printResult();
}
Handh... | 24.41791 | 72 | 0.548289 |
8bea4b593131541b4bdba185890bfd850d60b796 | 1,355 | package hr.yeti.rudimentary.demo.endpoint;
import hr.yeti.rudimentary.demo.model.OkModel;
import hr.yeti.rudimentary.http.spi.HttpEndpoint;
import hr.yeti.rudimentary.http.HttpMethod;
import hr.yeti.rudimentary.http.Request;
import hr.yeti.rudimentary.config.ConfigProperty;
import hr.yeti.rudimentary.http.content.Text... | 27.653061 | 146 | 0.670111 |
a01fa6242e39c9712a4afe46a9b0d8e2be630deb | 865 | package org.dynamic.anomaly.detection.storm;
import org.apache.storm.kafka.KafkaSpout2;
import org.apache.storm.topology.BasicOutputCollector;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseBasicBolt;
import org.apache.storm.tuple.Fields;
import org.apache.storm.tuple.... | 28.833333 | 80 | 0.764162 |
b23c6f1c0df0d8690c22a63949745aa9b78ca232 | 3,710 | package charles.entity;
import java.awt.Graphics;
import java.awt.Image;
import charles.game.GameConstants;
import charles.resources.Art;
import charles.game.Engine;
public class Slime extends Enemy {
int slimeCol;
int size;
public Slime(Engine engine, int x, int y, int slimeCol, int size... | 42.643678 | 206 | 0.638544 |
5c9a2ff3c4d65100612727219aec71a59f466e22 | 3,147 | package epicsquid.roots.spell;
import epicsquid.roots.init.ModBlocks;
import epicsquid.roots.init.ModItems;
import epicsquid.roots.init.ModPotions;
import epicsquid.roots.spell.modules.SpellModule;
import epicsquid.roots.util.types.Property;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityL... | 39.3375 | 130 | 0.710518 |
e6196d2f6ff9919a3990548857c0dd5e931db86b | 14,000 | import java.awt.Container;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import jav... | 24.137931 | 118 | 0.609071 |
05f6d313e5872e0af8219541e1eb36637cc43744 | 1,388 | /*
* Copyright 2020 AppsFlyer
*
* 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... | 38.555556 | 81 | 0.751441 |
4f9532285dc935bb5e1d44a8cdeb5f18994950f4 | 2,522 | /*
* 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 com.medlog.webservice.vo;
import java.io.*;
import java.util.logging.*;
/**
*
* @author (c)2016 Guiding Technologies
*/
pu... | 28.988506 | 132 | 0.751388 |
9bbb40102e8d977c06bb534072a8a2c502c8f0c7 | 4,012 | /**
* Copyright (c) 2016, www.cubbery.com. All rights reserved.
*/
package com.cubbery.event.utils.security;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.*;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
import java.security.spec.AlgorithmP... | 35.821429 | 99 | 0.589232 |
7059d02bd0cc5dce2f25e54e71ca8d5be98643f0 | 187 | package org.cloud.ssm.mapper;
import org.cloud.ssm.common.base.BaseMapper;
import org.cloud.ssm.entity.Department;
public interface DepartmentMapper extends BaseMapper<Department> {
}
| 20.777778 | 66 | 0.812834 |
b9597c656f006885dc5835290dcfce8f2983194d | 670 | package com.google.android.gms.common.internal;
import android.accounts.Account;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.internal.zzee;
import com.google.android.gms.internal.zzef;
public abstract class zzam extends zzee implements zzal {
public boolean onTransac... | 29.130435 | 100 | 0.661194 |
fcdd85b3db547b8cad1598b6e4a76e635fc401f7 | 2,210 | package org.testng.internal;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.Method;
import java.util.Objects;
/** Encapsulation of either a method or a constructor. */
public class ConstructorOrMethod {
private Method m_method;
private Constructor<?> m_constru... | 22.783505 | 90 | 0.670136 |
0d18623149ebf4c8387073c3a2e5dbf81b593827 | 3,693 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.webapk.lib.runtime_library;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;... | 32.973214 | 100 | 0.680747 |
10253e662deb490a5e02a456ebc529ecb286b603 | 380 | package com.gianlucamc.ezbroadcast.config;
public class SettingsManager {
private boolean random;
private int messageInterval;
public SettingsManager(boolean random, int messageInterval) {
this.random = random;
this.messageInterval = messageInterval;
}
public boolean isRandom() {
return random;
}
publ... | 19 | 62 | 0.765789 |
13bc31f5ba0767a2a68c818f6b49bef57edacd45 | 175 | package org.firealm;
/**
* Created by Vinoth on 27-5-16.
*/
public interface WriteListener extends org.firealm.firebase.WriteListener, org.firealm.realm.WriteListener {
}
| 19.444444 | 108 | 0.76 |
e3667464ccaef649b188aedc8d8e02b6dc10c84b | 7,712 | package manning.chapterSeven.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public clas... | 26.777778 | 124 | 0.66001 |
84f6b6eaf72b3f6253e85f33376249c9b33be9f4 | 5,404 | /* LICENSE
Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
... | 26.62069 | 105 | 0.72946 |
76c4b8c0b902c53e40dc2976f7c3fe9449d6c8c0 | 3,133 | package com.inicu.device.ge;
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 com.inicu.cassandra.service.DeviceDataService;
import com.inicu.device.parser.DeviceParser;
import com.inicu.devic... | 33.329787 | 102 | 0.723588 |
ab2294bf539525e4f861b21081e624e6e3df633b | 900 | package com.twu.biblioteca;
import com.twu.biblioteca.Movie.Movie;
import com.twu.biblioteca.Movie.MovieRepository;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Created by lixueying on 16/2/22.
*... | 23.684211 | 55 | 0.694444 |
8a4c5f6b0fb3f73e6f1a0c35f264406312d6fbe3 | 1,922 | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | 50.578947 | 89 | 0.395421 |
1e72729f280ebb136b5ef61521262221bbf8497f | 413 | package me.nithanim.cultures.format.cif;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.nio.ByteOrder;
import lombok.SneakyThrows;
public class CifFileUtil {
@SneakyThrows
public static CifFile unpack(byte[] data) {
ByteBuf buf = Unpooled.wrappedBuffer(data).order(ByteOrder.LITTL... | 24.294118 | 78 | 0.760291 |
fc369fdc45c0a1e5d66c8a9039ead3b6cb692b5f | 5,970 | package algoblocks.engine;
import algoblocks.engine.block.*;
import algoblocks.engine.grid.Coordinates;
import algoblocks.engine.grid.Size;
import algoblocks.engine.drawing.*;
import algoblocks.engine.player.Player;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class Ga... | 30.304569 | 90 | 0.664657 |
0f414a81c775f3d16a357025d8ca0cd642336e18 | 1,062 | package com.deve.pig.service.manager;
import com.deve.pig.model.Admin;
import com.deve.pig.model.AdminExample;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import my.utils.Pagination;
public interface IAdminService
{
/**
* @Description:
* @param entity
*/
int add(Admin entity... | 16.090909 | 73 | 0.672316 |
30edf4ffe0d8f093a90a74f6853dc8e0f7e33c09 | 8,579 | package com.profitera.services.business.batch;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.... | 36.198312 | 143 | 0.707425 |
11feb485e4579d2ead7dfae34fc48b49f07c35d5 | 6,329 | /*******************************************************************************
*
* Copyright (C) 2015-2021 the BBoxDB 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 Licens... | 29.165899 | 147 | 0.680518 |
28e93dec745c2783175eeac35dae42614a7be876 | 1,396 | class Solution {
// O(mn * log(mn))
public int minCost(int[][] grid) {
int m = grid.length;
int n = grid[0].length;
int[][] dist = new int[m][n];
boolean[][] visited = new boolean[m][n];
for (int i = 0; i < m; i++) {
for (int j = 0; j < n; j++) {
... | 36.736842 | 153 | 0.404728 |
a2297f9029ab7147cc8f3dcaf72c7482d6cd7121 | 6,207 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you 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 ... | 36.298246 | 114 | 0.607379 |
a85160aacd1b8c4d72da61a67a614cd355f13b5c | 1,870 | /*
* Copyright 2020 Maxim Syomochkin <maksim77ster@gmail.com>
*
* 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 r... | 38.958333 | 108 | 0.716043 |
a344e34aa48ebbe5bc00c65c13aaab953a6ed7e8 | 788 | package com.ahdms.user.center.service.impl;
import com.ahdms.framework.mybatis.service.impl.BaseServiceImpl;
import com.ahdms.user.center.dao.IVerifiyCodeDao;
import com.ahdms.user.center.service.IVerifiyCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import com.ahdms.user.center.bean.entit... | 28.142857 | 122 | 0.803299 |
6b69bad58b40d598d1cf5e00676c7a3add956300 | 184 | package org.nd4j.parameterserver.model;
/**
* Server state for the parameter server
* stopped or started
* @author Adam Gibson
*/
public enum ServerState {
STARTED, STOPPED
}
| 16.727273 | 40 | 0.722826 |
1d50222a4ce2d23e1f01529dc168c980940b86ff | 2,203 | package com.ipb.platform.mappers.impl;
import org.springframework.stereotype.Service;
import com.ipb.platform.dto.requests.UserRequestDTO;
import com.ipb.platform.dto.responses.UserResponseDTO;
import com.ipb.platform.mappers.UserMapper;
import com.ipb.platform.persistence.entities.UserEntity;
import lombok.NoArgsCo... | 30.597222 | 70 | 0.763504 |
5eed158e0e66cfd524651a98d61357f785c11060 | 576 | /*
* 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 patrones;
/**
*
* @author gabrielaramos
*/
public abstract class VehiculoBuilder {
protected Vehiculo v;
... | 20.571429 | 79 | 0.677083 |
8c1bf272cb40ce29d34cb21164d00b52b76733d2 | 848 | package com.yibo.common.bolt;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
import java.util.function.Supplier;
/**
* .
*/
final class ValueBolt<O> extends Bolt<O> {
private final Supplier<O> supplier;
protected ValueBolt(O value) {
s... | 20.682927 | 65 | 0.630896 |
c17ad6491dd66883d838c3d10bac06c3ea90d4a1 | 3,344 | package io.quarkiverse.doma.deployment;
import static org.hamcrest.core.Is.is;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.asset.StringAsset;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.j... | 44.586667 | 133 | 0.543062 |
f031a553fa0bc10cf1b9f59529cf8a165c305009 | 949 | package de.vkoop.monit.properties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.List;
@Data
@ConfigurationProperties(prefix = "monit")
public class AppProperties {
public int checkrate = 5000;
public int reportRa... | 23.725 | 75 | 0.704953 |
acc8ea34a054696e0b37be05a81c95edb4109934 | 392 | package com.fullcontact.apilib.models.Response;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.util.List;
@Getter
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@NoArgsConstructor
public class CompanySearchResponseList extends FCRe... | 24.5 | 60 | 0.846939 |
2a12964e33e0a7fe2db8ce179e3cc954fe62b90c | 21,906 | class INUzWj3 {
}
class Exjht {
}
class bG {
public static void lMFYLJMyQj8q0 (String[] rQTSfS) {
while ( new BUR6().d0()) --this[ !true.jyERuDju];
boolean[][][][][] Xj7t7f = null.Wjos;
vW Bfer0rxALPc = !-null.MFky34SGIrvbut() = -( false.TjachTo6n8wwG)[ true[ null.kn5skUchP_()]];
... | 36.088962 | 406 | 0.472975 |
885aaf9f4ae7d65b532ee94f71cae1bf9c02f5c1 | 1,991 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available und... | 34.327586 | 155 | 0.620794 |
7ded8e63ee46c8ea5ea1803d7a197bf3261ebbab | 1,904 | package systems.reformcloud.reformcloud2.executor.api.common.base;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.text.MessageFormat;
import java.util.Objects;
public final class Conditions {
/**
* Assumes that the given argument is true
*
* @param test The argument... | 30.222222 | 96 | 0.65021 |
663fa2f4b8a478c38bf05300ec1b261b329e6ad2 | 165 | package phase;
public class NamespaceException extends Exception {
public NamespaceException(String name) {
super(name + " is already in use");
}
}
| 20.625 | 51 | 0.690909 |
6060a0cb1c882092c38641c31b596110e10f0e5a | 5,370 | package edu.berkeley.ground.postgres.dao;
import com.google.common.collect.ImmutableMap;
import edu.berkeley.ground.common.exception.GroundException;
import edu.berkeley.ground.common.util.IdGenerator;
import edu.berkeley.ground.postgres.dao.core.PostgresEdgeDao;
import edu.berkeley.ground.postgres.dao.core.PostgresEd... | 42.96 | 100 | 0.770019 |
af8d269f49853fe2dd7c067df19795635e59961d | 1,093 | /*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.org
*
* 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 re... | 31.228571 | 75 | 0.726441 |
c00553bde2ba90afb1accf82f2e607ebb0b0e27e | 1,567 | package dev.paprikar.defaultdiscordbot.core.concurrency;
import javax.annotation.Nonnull;
/**
* A composite key for working with concurrency objects.
*/
public class ConcurrencyKey {
private final ConcurrencyScope scope;
private final Object key;
private ConcurrencyKey(ConcurrencyScope scope, Object ... | 22.070423 | 93 | 0.574984 |
388f39b8fa95400c9d9e4c31c6583e66c7346f76 | 1,185 | package me.chanjar.weixin.mp.config.impl;
import lombok.Data;
import me.chanjar.weixin.common.bean.WxAccessToken;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author Brayden Wong
* @date 2021/1/16
* 提供accesstoken保存在concurrenthashmap中的实现,支持高并发。仅限于单机部署。
*/
@Data
public class WxMpMapConfigImpl extends WxMp... | 25.76087 | 106 | 0.772152 |
8b96af8a820201ac75ab79f22b7886616a80562a | 9,744 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 37.476923 | 120 | 0.735427 |
73288affbc0f43b9c2817262ea2de4418cef9219 | 225 | package ga.nullcraft.global.resource;
/**
* Loads necessary resources with initialization.
* Can be processed in parallel.
* Usually used with {@link Storage}.
* @author TNuev
*/
public interface IResourceLoader<T> {
}
| 20.454545 | 49 | 0.733333 |
a510e4df4d34a6e9f64b49ed3105ee996176087b | 1,457 | package com.boot.study.model;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;
public class SysPermission {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
/**
* 权限名称
*/
privat... | 16.747126 | 55 | 0.588881 |
8830e2e1612ed8d1c5abeff22db11e52d339a4c4 | 445 | package com.decathlon.ara.coreapi;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class CoreApiApplicationTests {
@Value("${info.app.name}")
pri... | 22.25 | 60 | 0.746067 |
bcb1847294659862930cf06ccbddacacdae32676 | 4,249 | package org.ovirt.engine.ui.userportal.section.main.view.tab.basic;
import org.ovirt.engine.core.common.businessentities.DiskImage;
import org.ovirt.engine.core.common.businessentities.VmOsType;
import org.ovirt.engine.ui.common.view.AbstractView;
import org.ovirt.engine.ui.uicommonweb.models.userportal.UserPortalBasi... | 28.904762 | 113 | 0.728171 |
2dfb2f4f6d9e00fd5a05f715278b89ef47764b42 | 91 | package de.cotto.lndmanagej.model;
public enum Network {
MAINNET, TESTNET, REGTEST,
}
| 15.166667 | 34 | 0.736264 |
05ad5b0213ec51953de4c1149afa2d78a93887f6 | 1,959 | package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import frc.robot.Constants;
import frc.robot.subsystems.RangeFinder;
public class DiagonalStartingPositionMunchkin extends SequentialCommandGroup {
/**
* rangeFinder1 rangeFinder2 the range finders on the robot, left an... | 38.411765 | 165 | 0.676365 |
ca831fcb63960b63e675180059b794918e714e58 | 384 | package com.knoldus;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import javax.annotation.concurrent.Immutable;
@Value
@Builder
@Immutable
@JsonDeserialize
@AllArgsConstructor
public final class Book {
String isbn;... | 18.285714 | 65 | 0.794271 |
b48f1c99ed71f63d15e3a47f9344632cd071dd8b | 149 | package app;
/**
* @author VM-Espigah
* Created: Mon Nov 17 13:08:28 PST 2014
* Lorem - ipsum
*/
public class Main {
public Main() {
}
} | 13.545455 | 40 | 0.590604 |
fa5b02dbf110a94d87d3a6797485cb4a7f5841ac | 4,125 | /*
* Copyright Pawel Krawczyk (c) 2014.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and t... | 42.96875 | 758 | 0.677333 |
ed9b716077b3f8c7affd3afd8258743c0fd9c66c | 6,016 | package me.uniodex.uniomarket.managers;
import me.uniodex.unioessentials.enums.SQLAction;
import me.uniodex.unioessentials.objects.DatabaseInfo;
import me.uniodex.unioessentials.objects.SQLProcess;
import me.uniodex.uniomarket.UnioMarket;
import me.uniodex.uniomarket.objects.ActivatableItem;
import me.uniodex.uniomark... | 40.92517 | 232 | 0.682513 |
8803bd6f1a01ec9935855779a31379b31d66ae37 | 5,259 | package org.ly.licensemanager.app.server.listeners.api.routing;
import org.json.JSONObject;
import org.ly.licensemanager.app.server.controllers.TokenController;
import org.ly.licensemanager.app.templates.Templates;
import org.lyj.commons.Delegates;
import org.lyj.commons.util.MapBuilder;
import org.lyj.commons.util.St... | 37.035211 | 130 | 0.575014 |
46822261d13610e29bab1ab2c0a8db3e87db39a6 | 2,610 | /*
* Copyright 2018 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 applicab... | 36.760563 | 99 | 0.8 |
190aa7fbf19bf0ae370ae9ad69342edf1aaa02ce | 1,086 | package com.lianglianglee.pm25.crawler;
import com.lianglianglee.pm25.utils.BrowserPool;
import com.lianglianglee.pm25.utils.BrowserUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.List;
import java.util.Set;
import static com.liangli... | 22.625 | 71 | 0.723757 |
2c050bb678ab1fd4fb305b11ba378ca0be653f8a | 9,138 | package lmu.de.unificiencyandroid.components.groups;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.res.ResourcesCompat;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widge... | 31.081633 | 110 | 0.679689 |
9103690177e9c6934e4d497615368fab69ea26d4 | 4,941 | package com.pamirs.attach.plugin.jedis.interceptor;
import com.pamirs.attach.plugin.dynamic.Attachment;
import com.pamirs.attach.plugin.dynamic.template.RedisTemplate;
import com.pamirs.attach.plugin.jedis.RedisConstants;
import com.pamirs.attach.plugin.jedis.destroy.JedisDestroyed;
import com.pamirs.attach.plugin.jed... | 34.795775 | 96 | 0.641166 |
f8150f47d36fe1e2ba6a97ed4052e2f9f1d82017 | 1,029 | package com.andedit.arcubit.entity;
import static com.badlogic.gdx.math.MathUtils.random;
import static com.andedit.arcubit.TheGame.game;
import static com.andedit.arcubit.world.World.world;
import com.andedit.arcubit.blocks.Blocks;
import com.andedit.arcubit.blocks.utils.BlockUtils;
import com.andedit.arcubit.worl... | 23.930233 | 67 | 0.691934 |
8175d212b21e584f3ca198f1389e61f567f941df | 20,703 | package org.cloudbus.cloudsim.container.core;
import org.cloudbus.cloudsim.container.containerVmProvisioners.ContainerVmBwProvisioner;
import org.cloudbus.cloudsim.container.containerVmProvisioners.ContainerVmRamProvisioner;
import org.cloudbus.cloudsim.container.schedulers.ContainerVmScheduler;
import org.cloudbus.cl... | 31.415781 | 141 | 0.611312 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.