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 |
|---|---|---|---|---|---|
7cdb279ea8b260171d679c5966e7796492bdba53 | 836 | package com.shura.im.client.service.impl.command;
import com.shura.im.client.component.ClientInfo;
import com.shura.im.client.service.EchoService;
import com.shura.im.client.service.InnerCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @Auth... | 27.866667 | 77 | 0.643541 |
3a23a7a88052aa1ae0564123bb3cfb0cb9781edf | 1,685 | package uk.offtopica.addressutil.bitcoin;
import org.bouncycastle.jcajce.provider.digest.SHA256;
import java.util.Arrays;
public class BitcoinBase58CheckCodec extends BitcoinBase58Codec {
private static final int CHECKSUM_BYTES = 4;
@Override
public byte[] decode(String input) throws BitcoinBase58Except... | 33.7 | 103 | 0.658754 |
b5ed8b4512c6d5e4de7e2eb48eb96cb9c36bb78a | 6,832 | /*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2015 IDRsolutions and Contribut... | 38.59887 | 189 | 0.506879 |
ea7e2ea6d2d6d60f77f3797831c5da6c021b0b1f | 544 | package com.example.service.business;
import com.example.service.RandomNumberGenerator;
import org.springframework.stereotype.Service;
import java.security.SecureRandom;
@Service
@ServiceQuality(ServiceQualityLevel.SECURE)
public class SecureRandomNumberGenerator implements RandomNumberGenerator {
private Secure... | 28.631579 | 75 | 0.770221 |
a306170b6433ac4323aa91555d4878b446252553 | 2,071 | package com.my.project.redis;
import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisURI;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisCommands;
import org.junit.*;
import redis.embedded.RedisServer;
import java.io.IOException;
import java.net.ServerSocket;
import... | 27.613333 | 63 | 0.636408 |
9014cdb130af2eaca51fdc2f6dff1608a83104a4 | 21,160 | package net.falappa.wwind.layers;
import gov.nasa.worldwind.WorldWindow;
import gov.nasa.worldwind.avlist.AVKey;
import gov.nasa.worldwind.event.SelectEvent;
import gov.nasa.worldwind.geom.LatLon;
import gov.nasa.worldwind.geom.Position;
import gov.nasa.worldwind.geom.Sector;
import gov.nasa.worldwind.layers.Renderabl... | 35.864407 | 140 | 0.646645 |
ac4652aeff284bad94bbb081d19452ea40f298b6 | 224 | package com.example.mymediaplayer.interfaces;
/**
* Created by hjz on 2016/10/2.
*/
public interface Constants {
long secondMillis=1000;
long minuteMillis=60*secondMillis;
long hourMillis=60*minuteMillis;
}
| 17.230769 | 45 | 0.727679 |
498dd28ac2d7a07f4d7c38a6cc82a1d3462f023c | 14,584 | /**
* Copyright 2013 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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
*
... | 37.782383 | 158 | 0.669707 |
e16127a0e0aa2ac2e442063652cb8365b16bcb79 | 3,462 | package moe.pixelgirl.wirelesscommunication.common.util;
import cofh.api.tileentity.ISecurable;
import cofh.core.block.TileCoFHBase;
import cofh.core.util.CoreUtils;
import net.minecraft.block.Block;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.... | 42.740741 | 169 | 0.614674 |
b50658ff2929b2642baaadbb4684765e5d4eafa2 | 739 | package com.inepex.example.ContactManager.entity.kvo;
public class EmailAddressConsts {
public static final String descriptorName = "emailAddressDescriptor";
public static final String searchDescriptor = "emailAddressSearchDescriptor";
// field contsts
public static final String k_id = "id";
publ... | 23.83871 | 81 | 0.667118 |
7228e64a5f845a90446757360112f892ae941c75 | 5,978 | package com.codingmore.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.codingmore.dto.PostTagParam;
import com.codingmore.model.PostTag;
import com.codingmo... | 38.320513 | 102 | 0.700067 |
5f2d92b018edcf1156089862c305b1f54255b05b | 146 | /**
* @author Ryoka Kujo chunxiang.huang@mail.hypers.com
* @since 2020-01-14
*/
module com.hypers.internal.impl {
requires com.hypers.api;
}
| 18.25 | 53 | 0.69863 |
10f6890fbec2611bf57b71c84484b3753fc24df9 | 2,058 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.indexinglanguage.expressions;
import com.yahoo.document.DataType;
import com.yahoo.document.datatypes.StringFieldValue;
/**
* @author Simon Thoresen Hult
*/
public final class SubstringEx... | 24.795181 | 104 | 0.577745 |
0a83d7a5453b3bc351e1f96fc1102efa527f4510 | 22,429 | package com.bunq.sdk.security;
import com.bunq.sdk.context.ApiContext;
import com.bunq.sdk.exception.BunqException;
import com.bunq.sdk.exception.UncaughtExceptionError;
import com.bunq.sdk.http.BunqBasicHeader;
import com.bunq.sdk.http.BunqHeader;
import com.bunq.sdk.http.BunqRequestBuilder;
import com.bunq.sdk.http.... | 39.838366 | 134 | 0.677427 |
65afed3b09c473eafdc54dae10eb1293dc888741 | 1,153 | package com.hm.demo;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
public class AutomateInDifferentBrowser {
public static WebDriver driver;
public static void openFi... | 22.173077 | 74 | 0.701648 |
c9a76c90464488bc39582f431a34bd8e6c6368d5 | 2,561 | package wholemusic.web.controller;
import com.sun.media.jfxmediaimpl.MediaUtils;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
impor... | 44.929825 | 114 | 0.686451 |
cb78b1a3112008fa479cba7614745bc83409470f | 2,775 | package com.rlws.plant.commons.utils;
import java.io.*;
/**
* @author rlws
* @date 2020/2/24 10:59
*/
public class SerializeUtils {
/**
* 序列化某个类并返回序列化后的字符串
*
* @param obj 需要序列化的类
* @return 序列化后的字符串
*/
public static String serialize(Object obj) throws IOException {
ByteArra... | 32.267442 | 95 | 0.608288 |
fdf57c03865a9bfa9c35de6c4a5a06b665375482 | 5,135 | package slimeknights.mantle.recipe.crafting;
import com.google.common.collect.ImmutableList;
import com.google.gson.JsonObject;
import net.minecraft.world.inventory.CraftingContainer;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.crafting.CraftingRecipe;
import net.minecraft.world.item.cra... | 42.438017 | 181 | 0.688413 |
a8d83d327968fba0e882ce7bcc36fc3d2cde812f | 1,956 | /*
* 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 may ... | 40.75 | 93 | 0.76227 |
83dd36261d298df4bf8c03f602a1d2a93143cdd2 | 4,027 | package com.muiz6.musicplayer.ui.main.home.library;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotatio... | 33.280992 | 99 | 0.796126 |
531ac1b1d3fa4eae186217b49971ccf9c84a87fe | 1,120 | package com.ttnn.framework.ept.bean.config;
import java.io.Serializable;
import com.ttnn.framework.ept.SEPTConstants;
/**
* 提示信息配置
*
* @author Fcy
* @see <ept-config.xml>
* @since 1.1
* @version 1.3 模版升级
*/
public class MessageBean implements SEPTConstants,Serializable{
/**
*
*/
private stat... | 16.470588 | 71 | 0.63125 |
adf78c4a9aedac0c07a5dea0f5aaa4ddfc3f8841 | 187 | package com.kotlin.inaction.chapter_9.java_generics.advance.advance_02;
/**
* @author wangzhichao
* @date 2019/11/01
*/
public interface Comparable<T> {
boolean compareTo(T t);
}
| 18.7 | 71 | 0.727273 |
5857dd0a8dcc3dcc0f1447ba6c5ea4772db6e9d3 | 1,049 | package com.slack.api.app_backend.outgoing_webhooks;
import lombok.extern.slf4j.Slf4j;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
@Slf4j
public class WebhookPayloadDetector {
public boolean isWebhook(String requestBody) {
if (requestBody == null) {
return false;... | 30.852941 | 102 | 0.525262 |
7cae2abe745740a48475d79889b205fa145abf69 | 2,033 | package com.xavierlepretre.hackernewsbrowser;
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;
import butterknife.InjectView;
import com.ycombinator.news.dto.StoryDTO;
import java.text.NumberFormat;
p... | 29.042857 | 87 | 0.657157 |
db1e55afa23b703700c9af56821124888f9842ef | 1,525 | package info.u_team.halloween_luckyblock.entity.render;
import com.mojang.blaze3d.matrix.MatrixStack;
import info.u_team.halloween_luckyblock.HalloweenLuckyBlockMod;
import info.u_team.halloween_luckyblock.entity.EntityVampire;
import info.u_team.halloween_luckyblock.entity.model.ModelVampire;
import net.minec... | 39.102564 | 145 | 0.783607 |
9b8bb238933510125c92b7e241a5f7acbaed471c | 2,997 | package eu.lucaventuri.fibry.spring;
import eu.lucaventuri.common.Exceptions;
import eu.lucaventuri.fibry.ActorSystem;
import eu.lucaventuri.fibry.distributed.HttpChannel;
import eu.lucaventuri.fibry.distributed.JacksonSerDeser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autocon... | 58.764706 | 147 | 0.687354 |
d67b5b80ae875b309fb0a7dc1398f053f7cf86b6 | 1,209 | package cn.bitflash.service;
import cn.bitflash.bean.AdminRelationBean;
import cn.bitflash.bean.UserInfoBean;
import cn.bitflash.bean.UserRelationJoinNpcAndHlbean;
import cn.bitflash.entity.UserInvitationCodeEntity;
import cn.bitflash.entity.UserRelationEntity;
import com.baomidou.mybatisplus.service.IService;
import... | 30.225 | 80 | 0.80976 |
3b60bc321e2f645efb9ca3dff3799b56825bfe71 | 744 | package com.regitiny.catiny.advance.service.mapper;
import com.regitiny.catiny.advance.controller.model.FriendModel;
import com.regitiny.catiny.domain.Friend;
import com.regitiny.catiny.service.dto.FriendDTO;
import com.regitiny.catiny.service.mapper.EntityMapper;
import org.mapstruct.Mapper;
import java.util.List;
... | 26.571429 | 121 | 0.806452 |
be9425dd6a24505568a24b060ed2719dc987c694 | 813 | package competitive.leetcode.hard.sort;
import java.util.Arrays;
public class WiggleSortII {
public void wiggleSort(int[] nums) {
int[] m = nums.clone();
Arrays.sort(m);
int j = 0;
int lastLow = nums.length%2 == 0 ? nums.length-2 : nums.length-1;
int las... | 26.225806 | 75 | 0.504305 |
5365e2240614ac8a9be552e671b787c13db562aa | 1,061 | /*
Copyright (C) 2012 Anton Lobov <zhuravlik> <ahmad200512[at]yandex.ru>
This library 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 Free Software Foundation; either
version 3 of the License, or (at your option) any... | 39.296296 | 88 | 0.764373 |
1ad4923f0d362213587d6bb0f5d6c223ac8c95ec | 1,548 | package com.amsen.par.cewlrency.base.util;
import java.text.NumberFormat;
import java.util.Currency;
import java.util.Locale;
/**
* @author Pär Amsen 2016
*/
public class CurrencyUtil {
private static boolean isCurrencySymbolBeforeValueInLocale = format(Currency.getInstance("SEK"), 0).indexOf("SEK") == 0;
... | 33.652174 | 162 | 0.686047 |
0138d9fce5c8bb87a45f62a968a45b8792f45b06 | 686 | package io.sphere.sdk.carts.commands.updateactions;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.commands.UpdateActionImpl;
/**
Sets the customer email.
{@doc.gen intro}
{@include.example io.sphere.sdk.carts.commands.CartUpdateCommandIntegrationTest#setCustomerEmail()}
*/
public final class SetCustome... | 23.655172 | 100 | 0.715743 |
70c0e35abe587614b310f86a9601c8e7ca943d6c | 551 | class Solution {
public void XXX(int[][] matrix) {
if(matrix.length>1) {
int i=0,j=matrix.length-1;
while(i<j) {
int k=j-i;//循环次数
int l=0;
//在当前矩阵圈中 由四角互换开始 进而通过循环顺时针将四边逐步互换
while(l<k) {
int temp=matrix[i][i+l];//
matrix[i][i+... | 23.956522 | 46 | 0.413793 |
b51a5ea03434b494372337db2e5e8f4620429f51 | 3,575 | // Copyright 2017 Archos SA
//
// 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 w... | 37.631579 | 126 | 0.671049 |
e9989c745479f9111324394e6a10a2b20aefee6f | 2,226 | /*
* Comb sort
*
* http://www.mmatsubara.com/developer/sort/
*
* Copyright (c) 2015 matsubara masakazu
* Released under the MIT license
* https://github.com/m-matsubara/sort/blob/master/LICENSE.txt
*/
package mmsort;
import java.util.Comparator;
public class CombSort implements ISortAlgorithm {
/**
* Comb ... | 23.431579 | 125 | 0.592543 |
1a711adac9bde49cd70147a824941661f06ec9a8 | 2,333 | /**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.jeesite.common.lang;
import java.math.BigDecimal;
/**
* BigDecimal工具类
* @author ThinkGem
* @version 2016年6月11日
*/
public class NumberUtils extends org.apache.commons.lang3.math.NumberUtils {
/**
* 提供精确的减法运算。
... | 24.302083 | 87 | 0.651093 |
900e2b731ab492ee9ceb7897709e95724da37e93 | 5,446 | package com.yhonatan.games.koidu.hands.extractors;
import com.yhonatan.games.koidu.cards.Card;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.stream.Stream;
import st... | 61.886364 | 185 | 0.774513 |
55b2204e250591424f65ea446c83ee289b5b18c3 | 1,921 | /*
* Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License,
* Version 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package org.lealone.sql.ddl;
import org.lealone.common.exceptions.DbException;
import org.lealon... | 26.315068 | 83 | 0.664758 |
1812bdf0ab0e522edec422115ea9afc6e6c63966 | 176 | package de.ngloader.timer.api.database.config;
import de.ngloader.timer.api.config.Config;
@Config(path = "database", name = "mongodb")
public class DatabaseConfigMongoDB {
} | 25.142857 | 46 | 0.772727 |
d29aee7a11aab5dc5fa5178b09b827a86b7ead7b | 530 | /**
* MIT License
*
* SPDX:MIT
*
* https://spdx.org/licenses/MIT
*
* See LICENSE.txt file in the top level directory.
*/
package com.zed5.localchat;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a... | 19.62963 | 81 | 0.666038 |
cc55ac48c971137be0c10b2c497121bd26555223 | 3,030 | /**
This question is from https://leetcode.com/problems/binary-search-tree-iterator/
Difficulty: medium
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
Calling next() will return the next smallest number in the BST.
Example:
BSTIterator itera... | 24.047619 | 142 | 0.583498 |
7648a2564571093493741f409ab55d244de85338 | 1,131 | package com.github.sherter.jcon.examples.flowvisor;
import com.github.sherter.jcon.OFMessageSerializingConsumer;
import com.github.sherter.jcon.networking.Handler;
import java.util.function.Consumer;
import org.projectfloodlight.openflow.protocol.OFMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
cla... | 34.272727 | 96 | 0.766578 |
30a7ec20095a5dd3fccf92b0502af08fbcff9a9f | 5,506 | package me.spypat.UltraHarcore.events;
import java.util.ArrayList;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listen... | 42.353846 | 158 | 0.640937 |
19ae45a18b3ffdd071e2c0ed590ae724a5123089 | 497 | package ua.gram.model.prototype.weapon;
import com.badlogic.gdx.graphics.Color;
/**
* @author Gram <gram7gram@gmail.com>
*/
public final class LaserWeaponPrototype extends WeaponPrototype {
public Color colorBack;
public Color colorOver;
public String startBack;
public String startOver;
public S... | 21.608696 | 65 | 0.708249 |
3ea9612ed880d0af29c3c026b003df81464b5553 | 4,480 | /*
* 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
* distribut... | 42.264151 | 94 | 0.766964 |
2fc335e8224abd8ee39026cdd133e621b33d0aba | 3,699 | 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 licenses ... | 14.975709 | 810 | 0.786429 |
40a5e4cb57c9b011df6c6386c7e3bfbd7ecfdf0a | 4,076 | package com.ovit.manager.modules.nswy.web.dictionaryManagement;
import com.ovit.manager.common.persistence.Page;
import com.ovit.manager.common.web.BaseController;
import com.ovit.manager.modules.nswy.entity.dictionaryManagement.DictionaryTown;
import com.ovit.manager.modules.nswy.service.dictionaryManagement.Dictiona... | 38.819048 | 129 | 0.713445 |
89ad88491517c6f4c4730861ff1df8c59d4bdb37 | 1,351 | package com.github.jayreturns.jbbedwars;
import com.github.jayreturns.jbbedwars.listener.BedDestroyListener;
import com.github.jayreturns.jbbedwars.listener.ClickShopkeeperListener;
import com.github.jayreturns.jbbedwars.listener.PlayerConnectionListener;
import com.github.jayreturns.jbbedwars.listener.ShopMenuListene... | 25.490566 | 114 | 0.793486 |
36437d167c2f731b9d23ea4377e2772c2f6231e3 | 12,494 | package clients.symphony.api;
import clients.ISymClient;
import clients.symphony.api.constants.PodConstants;
import exceptions.SymClientException;
import exceptions.UnauthorizedException;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.ws.rs.client.Entity;
import ... | 39.663492 | 130 | 0.628302 |
9263cbac9495add23195dd2646bddb64870d205e | 923 | package com.xiaomi.common.logger.thrift.mfs;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public enum a$a
{
private static final Map<String, a> c;
private final short d;
private final String e;
static
{
a[] arrayOfa = new a[2];
arrayOfa[0] = a... | 20.977273 | 83 | 0.63922 |
241812f18431a920f8f3c3f620f22acfff5cf962 | 1,672 | package com.divae.firstspirit;
import org.junit.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import static com.divae.firstspirit.Proxy.with;
import static java.lang.reflect.Modifier.PRIVATE;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.asse... | 36.347826 | 156 | 0.727871 |
ceeb3a7bfd39ad6415c63a6b27c6fda71b655cdb | 2,949 | /*
* #%L
* Native ARchive plugin for Maven
* %%
* Copyright (C) 2002 - 2014 NAR Maven Plugin developers.
* %%
* 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.apac... | 25.868421 | 104 | 0.679891 |
ba93c2994fcb32304279e9d4ab1f949abb5e3835 | 3,289 | /**
* Copyright 2011-2019 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... | 34.260417 | 109 | 0.695652 |
fedc1c6966deedd8256ccd5aaba7bd5ece618e68 | 4,676 | package com.vimukti.accounter.web.client.core;
public class ClientTAXRateCalculation implements IAccounterCore {
/**
*
*/
private static final long serialVersionUID = 1L;
public long id;
/**
* The rate by which the total amount of the transaction is laid on.
*/
double vatAmount;
double lineTotal;
St... | 19.483333 | 79 | 0.71728 |
8a3486d3535581afb9b1902ead4b8cdd69bb745e | 1,839 | package net.xisberto.magicmuzei.model;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import com.google.android.apps.muzei.api.Artwork;
import com.orm.SugarRecord;
/**
* Represents information about a Wallpaper
*/
public class WallpaperInf... | 25.541667 | 87 | 0.617183 |
76b1d747f769e40f7ae7907abb27dd37ee78b426 | 1,600 | package com.huotu.fanmore.pinkcatraiders.widget;
import android.os.CountDownTimer;
import android.widget.TextView;
import com.huotu.fanmore.pinkcatraiders.R;
public class CountDownTimerButton extends CountDownTimer
{
public interface CountDownFinishListener{
void finish();
}
TextView view;
... | 27.118644 | 133 | 0.64875 |
ebcf543edaa58d3bbbf4abee52039f7c9dc1da60 | 1,996 | package foobank;
import java.io.IOException;
import java.net.URI;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.glassfish.grizzly.http.server.HttpServer;
import org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpServerFactory;
import org.glassfis... | 33.266667 | 110 | 0.693387 |
08d7632bd9962a3ba8fb2d1e95a63c01bff24c5c | 2,513 | /* *****************************************************************************
* Name: Ada Lovelace
* Coursera User ID: 123456
* Last modified: October 16, 1842
**************************************************************************** */
public class Matrix {
// 向量点乘
public static... | 31.810127 | 80 | 0.339435 |
933770d4f89f1987bbf820ea08518fcc4a7eeeb7 | 1,316 | package io.ashimjk.spring.integration.sample;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.annotation.IntegrationComponentScan;
import org.springframework.integration.config.EnableIntegration;
import org.springfr... | 34.631579 | 89 | 0.777356 |
7a3a7c366aa3f0cb1dbcfbc43e78000b90f36ed1 | 3,049 | package com.hjcenry.kcp;
import com.hjcenry.codec.encode.IMessageEncoder;
import com.hjcenry.log.KtucpLog;
import com.hjcenry.threadpool.ITask;
import com.hjcenry.time.IKtucpTimeService;
import com.hjcenry.util.ReferenceCountUtil;
import com.hjcenry.fec.fec.Snmp;
import io.netty.buffer.ByteBuf;
import org.slf4j.Logger... | 30.79798 | 90 | 0.518859 |
0c97547a8d2950f27478b606c4c35ffa41dd4dd4 | 286 | package com.augus.restTest.persistence.dao;
import com.augus.restTest.domain.Cliente;
import java.util.List;
public interface ClienteDao {
void save(Cliente cliente);
void update(Cliente cliente);
void delete(Long id);
Cliente findById(Long id);
List<Cliente> findAll();
}
| 15.052632 | 43 | 0.755245 |
acffbc34b037f7a48d6e18f6035c8f9405832382 | 5,201 | package com.knight.wanandroid.module_home.module_activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.listener.OnItemClickListe... | 37.15 | 138 | 0.735243 |
bee21ae3a0fff47dd11b88a5f3d74292b23601d1 | 826 | /*
* Copyright (c) 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.emc.sa.service.vipr.file.tasks;
import java.net.URI;
import java.util.List;
import com.emc.sa.service.vipr.tasks.ViPRExecutionTask;
import com.emc.storageos.model.file.FileSystemExportParam;
public class GetNfsExportsForFileSyste... | 27.533333 | 96 | 0.746973 |
cd7d8952988cc2d7f21659d960005890aa3a655b | 4,055 | package ai.databand;
import ai.databand.log.HistogramRequest;
import ai.databand.schema.DatasetOperationStatus;
import ai.databand.schema.DatasetOperationType;
import ai.databand.schema.TaskRun;
import org.apache.log4j.spi.LoggingEvent;
import org.apache.spark.scheduler.SparkListenerStageCompleted;
import org.apache.s... | 23.171429 | 87 | 0.575832 |
45356116477af7edf27ce50972ba91885d003435 | 939 | package com.google.opengse.testlet.HttpSession;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.ServletException;
import java.io.IOException;
/**
* A servlet which stores a ... | 31.3 | 74 | 0.748669 |
939b8de500c162921007bbaa6de8907f4a6ad86c | 11,291 | /*
* Copyright (C) 2017 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 app... | 29.713158 | 100 | 0.700469 |
9d70f39d2c2ebda27a90de0eadd5af8e5fc8c3c6 | 670 | package com.klkblake.mm.common;
import java.util.Arrays;
import static com.klkblake.mm.common.Util.max;
/**
* Created by kyle on 6/10/15.
*/
public class BooleanArray {
public boolean[] data = new boolean[16];
public int count = 0;
private void grow() {
data = Arrays.copyOf(data, data.length *... | 20.30303 | 56 | 0.549254 |
845a5fb5947ba1db7ff4e697f9afdefe1516bf49 | 2,768 | package com.redisgeek.function.acre.export;
import com.azure.core.credential.TokenCredential;
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.profile.AzureProfile;
import com.azure.identity.AzureAuthorityHosts;
import com.azure.identity.EnvironmentCredentialBuilder;
import com.azure... | 45.377049 | 138 | 0.725795 |
c88512989e1d57d4adfc93a6a062ec3b654ced88 | 2,473 | // Copyright (c) 2020 Mobanisto UG (haftungsbeschränkt)
//
// This file is part of covid-plz.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limi... | 34.347222 | 81 | 0.72503 |
c5ead66248ee3964a0e048f5f572fdb26dc634d5 | 1,240 | package io.bootique.rabbitmq.client;
import com.google.inject.Binder;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import io.bootique.ConfigModule;
import io.bootique.config.ConfigurationFactory;
import io.bootique.log.BootLogger;
import io.bootique.rabbitmq.client.channel.ChannelFactory;
imp... | 33.513514 | 87 | 0.73871 |
58b359e09a6c52b33fb588c3c1f4bbfd723e6f5a | 148 | package com.buggyapp.exceptions;
import com.buggyapp.util.FileUtil;
public class ExceptionThread extends Thread {
public void run() {
}
}
| 12.333333 | 45 | 0.736486 |
3470de9d8ab2c869730195098644ece68b358910 | 2,842 | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2017-2019 AT&T Intellectual Property. All rights reserved.
* =======================================================... | 31.230769 | 85 | 0.642153 |
492ff2dfab05914c79833976a14166d8b06505ca | 842 | package listDemo;
import java.util.ArrayList;
public class Demo1 {
public static void main(String[] args) {
//1.jkd1.5版本时候的集合
ArrayList list=new ArrayList();
list.add(1);
list.add(2);
list.add(3);
list.add("1");
// System.out.println(list.toString());
... | 26.3125 | 52 | 0.549881 |
4829fe5226007c814df613c0cbeddf6994f6f421 | 697 | package org.openapitools.api;
import org.openapitools.api.*;
import org.openapitools.model.*;
import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import java.util.List;
import org.openapitools.api.NotFoundException;
import java.io.InputStream;
import javax.ws.rs.core.Response;
import javax.ws.... | 33.190476 | 137 | 0.817791 |
977a6958f674cceb56c49d29080f7b8a8a4b5c5a | 899 | package com.kidand.algorithms.and.data.structures.datastructures.segmenttree.test;
import com.kidand.algorithms.and.data.structures.datastructures.segmenttree.SegmentTree;
/**
* ██╗ ██╗██╗██████╗ █████╗ ███╗ ██╗██████╗
* ██║ ██╔╝██║██╔══██╗██╔══██╗████╗ ██║██╔══██╗
* █████╔╝ ██║██║ ██║███████║██╔██╗ ██║██║ ... | 32.107143 | 88 | 0.444939 |
7f2ce56dc0c289c6e410c812dcad6ae54134e34f | 3,198 | /*
* 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
* distribut... | 32.30303 | 104 | 0.671982 |
738301900875c2628409be3a29b9ac798c39fcac | 639 | package fr.insee.onyxia.api.services.control.xgenerated;
import fr.insee.onyxia.model.catalog.Config.Property;
public interface XGeneratedProvider {
public String getGroupId();
public String getAppId(String scopeName, XGeneratedContext.Scope scope, Property.XGenerated xGenerated);
public String getExtern... | 49.153846 | 114 | 0.821596 |
18eb66b1292a4a9221f8e730cc931933eb9ef59b | 1,909 | package org.jetbrains.plugins.github.ui;
import com.intellij.ui.DocumentAdapter;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
/**
* @author oleg
* @date 10/22/10
*/
public class GithubSharePanel {
private JPanel myPanel;
private JTextField myRepositoryTextField;
private JCheckBox myPrivateC... | 26.150685 | 92 | 0.750655 |
98162af7e0364b3595a13f6f756e13f67eac9631 | 465 | package org.geelato.core.meta.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Created by hongxq on 201... | 24.473684 | 59 | 0.769892 |
0045dddeb8161bf0caf9e4ec643daedc4e13dba6 | 2,810 | /**
* 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... | 39.027778 | 119 | 0.658719 |
35cc14f530e6262a15982eef394d9f794f8e4c13 | 1,606 | package controllers.company;
import play.data.validation.ValidationError;
import java.util.ArrayList;
import java.util.List;
/**
* Backing class for the Company data form.
* Requirements:
* <ul>
* <li> All fields are public,
* <li> All fields are of type String or List[String].
* <li> A public no-arg construct... | 20.075 | 75 | 0.690535 |
32004ebe99e0724d126911ae618f5323b6f59ee4 | 533 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i = 0; i < n; i++) {
for(int j = i; j < n ... | 22.208333 | 44 | 0.452158 |
1cdcc21cd99515f34a16d11ac1eeb46d5714c336 | 679 | package gos.assumption;
import java.io.Serializable;
public class Group implements Serializable {
private static final long serialVersionUID = -7961726924232057999L;
private Type type;
private String id;
public Group() {
this.type = null;
this.id = null;
}
public Group(Type t... | 16.166667 | 70 | 0.605302 |
a8e350ec9f602da5252568aee2e507349258b6c6 | 237 | package com.xeno.goo.entities;
import net.minecraftforge.common.capabilities.ICapabilityProvider;
import net.minecraftforge.fluids.FluidStack;
public interface IGooContainingEntity extends ICapabilityProvider {
FluidStack goo();
}
| 26.333333 | 67 | 0.835443 |
396dc35aa479812bfae50fb5e6cbb0a205824db1 | 1,699 | package seedu.taskmaster.model.session;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.taskmaster.testutil.Assert.assertThrows;
import org.junit.jupiter.api.Test;
public class SessionNameTest {
@Test
public void cons... | 40.452381 | 110 | 0.709829 |
30144624839caf2a751687e13e0ed589f2487d9b | 7,834 | package com.jhbim.bimvr.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jhbim.bimvr.dao.entity.pojo.User;
import com.jhbim.bimvr.dao.entity.vo.Result;
import com.jhbim.bimvr.dao.mapper.UserMapper;
import com.jhbim.bimvr.service.IUserService;
import com.jhbim.bimvr.syst... | 33.33617 | 94 | 0.625862 |
ad29f66a09d690480eab1ba6481e139b9a06902f | 2,999 | /*
* Copyright 2018 Preferred.AI
*
* 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... | 30.602041 | 87 | 0.707236 |
cfec603c294343bfcb58cf8cad66a359dbc8e681 | 483 | package com.nowellpoint.client.sforce.model.sobject;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class NamedLayoutInfo implements Serializable {
private static final long serialVersionUID = -7984076664176001329L;
p... | 19.32 | 68 | 0.772257 |
12562956339486407dbf27bdaaa95bd53eb946ec | 1,089 | /*
* 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 net.billylieurance.euclidparallel;
/**
*
* @author wlieurance
*/
public class Distance implements Comparable<Distance> {
... | 20.54717 | 79 | 0.575758 |
ed89f70927f6b5265ce0f83cd8d69557800b4f48 | 10,993 | package com.ebstrada.formreturn.manager.logic.export.image;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.persistence.EntityManager;
... | 32.814925 | 100 | 0.602656 |
ad0e61874ce8c10300f0238e432835665bf0cbe8 | 1,337 | import java.util.ArrayList;
import java.util.LinkedList;
public class Tree234 {
static class Node234 {
private ArrayList<Integer> values = new ArrayList<Integer>(3);
private ArrayList<Integer> indexes = new ArrayList<Integer>(3);
private ArrayList<Node234> children = new ArrayList<Node234>(4);
private Node23... | 20.257576 | 66 | 0.62528 |
3d08eb5ce13b92e204f2a021ad5afb61b0943de8 | 293 | package individual.cy.learn.pattern.behavioral.iterator;
/**
* @author mystic
*/
public interface Iterator {
/**
* has next()
*
* @return true or false
*/
boolean hasNext();
/**
* next obj
*
* @return next Object
*/
Object next();
}
| 13.952381 | 56 | 0.52901 |
fc0373b7b26d84ab048f050cc044670dd0795c16 | 92 | package me.eluch.libgdx.DoJuMu.game.doodle;
public enum DoodleGenderType {
MALE, FEMALE
}
| 15.333333 | 43 | 0.782609 |
cd1f261ee0bccd497367229059790e83bac60b19 | 1,073 | package com.trubru.brewbro.recipedetails;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import static com.trubru.brewbro.addeditrecipe.AddEditRecipeActivity.ADD_EDIT_RESULT_OK;
/**
* Created by Kolin on 2/4/2018.
*/
public class RecipeDetailsActivity extends AppCompatActivity imp... | 27.512821 | 96 | 0.699907 |
4c6d28d5537cbbcc4ba20968ba4c86e0446aa768 | 6,196 | //! \file ViewFactory.java
//! \brief 基于普通View类的绘图测试视图类
// Copyright (c) 2012-2013, https://github.com/rhcad/touchvg
package vgdemo.testview;
import java.util.ArrayList;
import java.util.List;
//! 测试视图的构造列表类
public class ViewFactory {
public static class DummyItem {
public String id;
... | 59.576923 | 113 | 0.684958 |
fbd17ddc475680993c3e08dc05de9c5cdc1be963 | 10,736 | package org.csu.mypetstore.persistence.impl;
import org.csu.mypetstore.persistence.OrderDAO;
import org.csu.mypetstore.domain.Order;
import org.csu.mypetstore.persistence.DBUtil;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
public class OrderDAOImpl implements OrderDAO {
private static ... | 46.47619 | 102 | 0.591189 |
260b8df9f05586d77f0ab01f8692ca81c30a5aff | 352 | package fr.insee.arc.core.exception;
public class MissingChildMarkupException extends Exception {
/**
*
*/
private static final long serialVersionUID = 6301161908387897576L;
public MissingChildMarkupException(String markup) {
super(String.format("the child markup %s does no exist in the f... | 23.466667 | 86 | 0.713068 |
ac011e799e65fb3f0d0eb16309abb1b36db5d21c | 1,394 | package candra.bukupengeluaran.Modules.Wireframe;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import candra.bukupengeluaran.Views.Activities.CurrencyActivity;
import candra.bukupengeluaran.Views.Activities.HomeActivity;
import candra.bukupengeluaran.Views.Activities.Pri... | 29.659574 | 88 | 0.733142 |
78effb15ff40f4701b66235f5bd03e6980fad83d | 11,654 | /*
* FindBugs - Find bugs in Java programs
* Copyright (C) 2003-2005 University of Maryland
*
* This library 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 Free Software Foundation; either
* version 2.1 of the License, o... | 39.239057 | 124 | 0.674876 |
1ba3aec5235255f47509481b3da2cf1f0e6e9e80 | 1,584 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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... | 32.326531 | 115 | 0.750631 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.