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 |
|---|---|---|---|---|---|
ab416247787cde7497ef1d6c2dda2226dc5dd50c | 1,407 | package io.herd.gossip;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
public class GossipMessageDecoder extends ByteToMessageDecoder {
private sta... | 27.057692 | 101 | 0.616205 |
dcd8442af75c5800092540e24085e30bdb73bd72 | 11,794 | /*
* Copyright (c) 2011-2017 Nexmo Inc
*
* 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 limitation the rights
* to use, copy, modify, merge, publ... | 44.172285 | 117 | 0.703832 |
83e6ee0726e716c1c65bb1b7acd8dde0fdde8c42 | 1,107 | import java.io.IOException;
import java.net.Socket;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ij")
@Implements("Varps")
public class Varps {
@ObfuscatedName("h")
@Export("Va... | 24.6 | 94 | 0.693767 |
ef46d178d9f28a0b518f1481b53baae2899f058a | 614 | package com.mayreh.intellij.plugin.pluscal.parser;
import com.mayreh.intellij.plugin.ParserTestCaseBase;
import com.mayreh.intellij.plugin.pluscal.PlusCalParserDefinition;
import com.mayreh.intellij.plugin.tlaplus.TLAplusParserDefinition;
public class PlusCalParserTest extends ParserTestCaseBase {
public PlusCalP... | 26.695652 | 66 | 0.690554 |
e6f0a423e4aae71a8290a38e43b2289e394f13f8 | 3,473 | /**
* Copyright 2010 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 36.557895 | 124 | 0.632018 |
cf6d832560db172d35f790b6bdb7d985652cb143 | 4,017 | package com.github.svnpack;
import org.apache.commons.configuration.HierarchicalConfiguration;
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.reflect.MethodUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.... | 27.895833 | 83 | 0.659447 |
d2ec56b1cb455a3f6948e9a5dedc51ca54b1dcdb | 4,803 | /*
* 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... | 35.058394 | 119 | 0.641474 |
79bec196bfe3eaaab4fe6b736ff7badb0479353d | 15,527 | package com.logginghub.utils.module;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static org.junit.Assert.fail;
import org.junit.Before;
import org.junit.Test;
imp... | 43.492997 | 208 | 0.67257 |
a0f824d2dd9f2c72dfc174576997c7b25ec9960d | 2,117 | //package com.htjy.baselibrary.widget.imageloader.glideprogress;
//
//import android.content.Context;
//
//import com.bumptech.glide.load.data.DataFetcher;
//import com.bumptech.glide.load.model.GenericLoaderFactory;
//import com.bumptech.glide.load.model.ModelCache;
//import com.bumptech.glide.load.model.ModelLoader;
... | 31.132353 | 106 | 0.647142 |
81a898367219b1d425e62b118d21a3f6aaf8e56c | 6,252 | /*
* Copyright (c) 2004-2021 QOS.ch
* All rights reserved.
*
* 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 limitation the rights ... | 31.417085 | 132 | 0.663628 |
4c8815fe6c048eff45a327e96cb81d4e7c7d718a | 2,824 | package uk.bobbytables.jeidsi.core.compat.advancedrocketry.mixins;
import io.netty.buffer.ByteBuf;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.chunk.Chunk;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.Side... | 30.695652 | 118 | 0.629249 |
d0dcbfcc21d500f8121bb6f7235f6b3e79466442 | 411 | package com.netease.iot.rule.proxy.model;
import com.netease.iot.rule.proxy.metadata.FlinkJob;
public class JobSuspendMessage extends BaseMessage {
private FlinkJob job;
public JobSuspendMessage(String project, String jobName) {
super(project, jobName);
}
public FlinkJob getJob() {
... | 18.681818 | 62 | 0.671533 |
215775a4f344bc795b4f7cdf1cc85bf4bc878e06 | 929 | package cn.coderoom.interview.huawei;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;
/**
* 数据表记录包含表索引和数值,请对表索引相同的记录进行合并,即将相同索引的数值进行求和运算,输出按照key值升序进行输出。
*
* @package:cn.coderoom.interview.huawei
* @author: Leesire
* @email:coderoom.cn@gmail.com
*/
public class App06 {
public stati... | 26.542857 | 72 | 0.567277 |
b831e02734b48c36623424b79ed5e833b354f6c8 | 1,638 | package info.smart_tools.smartactors.endpoint.interfaces.ienvironment_handler;
import info.smart_tools.smartactors.endpoint.interfaces.ienvironment_handler.exception.EnvironmentHandleException;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Tests for {@link EnvironmentHandleException}
*/... | 37.227273 | 114 | 0.727717 |
58438f63f42eab3fa2c7345b5b417f46e1d17dfb | 1,179 | /**
* Copyright (C) 2016-2019 Expedia, 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 ag... | 31.026316 | 110 | 0.770992 |
ee4c802dfcf39c36d4874e4a3b199c1558811e08 | 2,711 | /*
* Copyright 2016, Google Inc. 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 a... | 38.728571 | 99 | 0.753965 |
ffff2c86300bc80c99557f705e007e082e97da27 | 938 | package com.gjs.taskTimekeeper.webServer.webLibrary.pojo.timeManager.action;
import com.gjs.taskTimekeeper.baseCode.core.objects.TimeManager;
import com.gjs.taskTimekeeper.baseCode.stats.stats.AllStats;
import com.gjs.taskTimekeeper.webServer.webLibrary.pojo.timeManager.whole.WholeTimeManagerUpdateResponse;
import lom... | 27.588235 | 105 | 0.820896 |
4329732a382018abf044e1cf8ab9018ac910676a | 291 | package com.sigma.dao.response;
import com.sigma.dao.model.GovernanceAction;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.List;
@Data
@Accessors(chain = true)
public class GetGovernanceActionsResponse {
private List<GovernanceAction> governanceActions;
} | 22.384615 | 53 | 0.810997 |
ee5ced859c45c92ab6c5ebabffdc10466142bb04 | 4,258 | /*
* Copyright (c) 2008-2018, Hazelcast, 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
*
* Unless required ... | 46.791209 | 122 | 0.763974 |
e377c56df44c608e51a672089b64dafd665c0330 | 215 | package com.lyx.abstractfactory.shap;
/**
* Created by FollowWinter on 9/27/16.
*/
public class Square implements Shape {
@Override
public void draw() {
System.out.println("Square draw");
}
}
| 17.916667 | 42 | 0.651163 |
4fefb6a5065a437606feaa93e84c53787f73aeca | 1,007 | package com.isaac.ch8.service;
import com.google.common.collect.Lists;
import com.isaac.ch8.entities.SingerAudit;
import com.isaac.ch8.repos.SingerAuditRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annota... | 27.972222 | 67 | 0.76862 |
c941c99fc1466456a5510dc3ca44ad4f5108ca3f | 2,253 | package org.rest.sec.persistence.service.impl;
import java.util.List;
import org.apache.commons.lang3.tuple.ImmutableTriple;
import org.rest.common.ClientOperation;
import org.rest.persistence.service.AbstractService;
import org.rest.sec.model.Privilege;
import org.rest.sec.persistence.dao.IPrivilegeJpaDAO;
... | 30.445946 | 120 | 0.754106 |
e9296dc2605cdb99de802f90dee5ab4934e88356 | 805 | package com.revolsys.core.test.geometry.test.old.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class SerializationUtil {
public static Object deserialize(final byte[] data) thro... | 32.2 | 98 | 0.771429 |
e89498c1ac4ae7b80f98d0e1fb6118838ae6886f | 2,853 | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*
* or the follo... | 36.113924 | 100 | 0.725903 |
1310c4fbe2d3a3d153baef8e9ce31d4f58bb58b8 | 121 | package com.cloud.utils.usage;
public class UsageUtils {
public static final int USAGE_AGGREGATION_RANGE_MIN = 1;
}
| 20.166667 | 60 | 0.77686 |
175adb9e1ba41a561dbff2ac6b9b75c8cffc3e74 | 3,889 | package com.playground.android_architect_playground.pages.roomlivedata.adapter;
import android.support.v7.util.DiffUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Tex... | 30.382813 | 110 | 0.686809 |
b5b0f2d77412b2f75131edb947f7b3117b26bd92 | 1,935 | package net.loginbuddy.service.resources;
import net.loginbuddy.common.api.HttpHelper;
import net.loginbuddy.common.cache.LoginbuddyCache;
import net.loginbuddy.common.config.Constants;
import net.loginbuddy.common.util.MsgResponse;
import net.loginbuddy.common.util.ParameterValidator;
import net.loginbuddy.common.uti... | 35.833333 | 138 | 0.759173 |
3b1904f1d83de19a392e5eca8424941bcb6b9ac5 | 13,039 | /*
* 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... | 37.148148 | 100 | 0.620907 |
3b333b6cb8ff3827fc670d5b7b0bc4787559997c | 1,591 | package com.wikifoundry.todo;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.WindowManager;
import android.widget.ProgressBar;
import com.github.ybq.android.spinkit.style.FadingCircle;
pub... | 34.586957 | 90 | 0.66939 |
42e6384304c85772d2b3daebb3b473a329a19540 | 2,220 | package com.clouway.telcong.emailgateway.core;
import com.clouway.testing.util.ArgumentCaptor;
import org.jmock.Expectations;
import org.jmock.auto.Mock;
import org.jmock.integration.junit4.JUnitRuleMockery;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.util.Date;
import static c... | 22.886598 | 101 | 0.718468 |
b5803ba2a5baf4767f7c96a06151125f586d1f59 | 206 | package org.jeecg.modules.shop.model;
import lombok.Data;
@Data
public class SaleStatModel {
private String name;
private String price;
private String amount;
private String totalPrice;
}
| 17.166667 | 37 | 0.737864 |
a07261298300014f7433dbba4168de62f41d54f6 | 154 | package org.aksw.commons.collections.multimaps;
public interface IBiSetMultimap<K, V>
extends ISetMultimap<K, V>
{
IBiSetMultimap<V, K> getInverse();
} | 22 | 47 | 0.772727 |
e562b83c986ac02e644096d4eeb563ab194d9ec2 | 925 | package org.sirix.access;
import dagger.Binds;
import dagger.Module;
import dagger.Provides;
import org.sirix.access.trx.TransactionManagerImpl;
import org.sirix.api.Database;
import org.sirix.api.TransactionManager;
import org.sirix.dagger.DatabaseName;
import org.sirix.dagger.DatabaseScope;
/**
* A module with com... | 23.717949 | 85 | 0.765405 |
6c11045d474de1d71a00989549aeda5b37c98ccf | 3,413 | /*
Copyright 2013 Nationale-Nederlanden, 2020 WeAreFrank!
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 applic... | 40.152941 | 125 | 0.742748 |
2bb24854e4c216c61681ea2fb7a6b3608156183a | 1,735 | package com.mongodb.pipeline.transfer.parse.operator.type;
import com.mongodb.pipeline.transfer.constants.Constants;
import org.bson.BsonDecimal128;
import org.bson.BsonInt32;
import org.bson.BsonInt64;
import org.bson.BsonNumber;
import org.bson.types.Decimal128;
import java.math.BigDecimal;
/**
* 数值类型操作符解析
* <p... | 23.445946 | 71 | 0.594813 |
4e96a4a72b4468270703539053e25cd9486d5843 | 474 | package com.github.nikingale.applications.bank;
/**
* @author Nikhil Ingale 08-04-2020
*/
public class CreateAccount {
Account account;
AccountMenu accountMenu = new AccountMenu();
public CreateAccount(int accountNumber, String accountName, float accountBalance, int accountPassword) {
account ... | 23.7 | 108 | 0.71519 |
a2521d28c020e84ba0738d45d82106783b2784c9 | 1,017 | package io.prajesh.service.impl.mapservice;
import io.prajesh.domain.DomainObject;
import io.prajesh.domain.User;
import io.prajesh.service.UserService;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.List;
/**
* @aut... | 21.1875 | 79 | 0.741396 |
cad2f5440daa8987308788478293dee12fa4e45e | 86 | class Test{
void foo() {
Label:
for ( ; ; ) {
<caret>break;
}
}
}
| 9.555556 | 19 | 0.395349 |
14f9558682b7912277f57c1c057c59a0dd98a417 | 1,135 | package xyz.wagyourtail.jsmacros.jython.client;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import org.python.util.PythonInterpreter;
import xyz.wagyourtail.jsmacros.client.JsMacros;
import xyz.wagyourtail.jsmacros.jython.language.impl.JythonLanguageDescription;
import xy... | 33.382353 | 110 | 0.665198 |
db19c12406f0ecdca89a9f53196151702cae0629 | 670 | package com.lambdaschool;
import java.lang.reflect.Array;
import java.util.ArrayList;
public class PiggyBank {
// private ArrayList<Coin<? implements Money>> list = new ArrayList<>();
private ArrayList<Coin> list = new ArrayList<>();
public <E extends Coin> boolean add (E coin) {
list.add(coin);
... | 23.103448 | 75 | 0.570149 |
9d28e66f4693e9f48d3b05dde1024c7b77c6584c | 2,274 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jnr.posix;
import java.io.File;
import java.io.IOException;
import jnr.posix.JavaPOSIX;
import jnr.posix.POSIX;
import jnr.posix.Passwd;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Be... | 21.45283 | 76 | 0.616095 |
d701c39ba27baffc92974373a923a2699d97f91f | 3,684 | package io.github.hooj0.fabric.sdk.commons.core.execution.option;
import java.util.Collection;
import java.util.Map;
import org.hyperledger.fabric.sdk.ChaincodeID;
import org.hyperledger.fabric.sdk.Peer;
import org.hyperledger.fabric.sdk.TransactionRequest.Type;
import org.hyperledger.fabric.sdk.User;
import com.goo... | 23.464968 | 117 | 0.752172 |
4f75031234f86aab878d1230ca0461459671b7ef | 1,814 | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from map.djinni
package com.dropbox.djinni.test;
import java.util.HashMap;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
public class MapRecord implements android.os.Parcelable {
/*package*/ final HashMap<String, L... | 24.186667 | 72 | 0.602536 |
6019d4e15acedf54d4337b1df89e50a8aa8f62ad | 2,099 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 40.365385 | 253 | 0.676036 |
c7ed42712edb863270ed7b5cec40b552afa3bd5d | 14,765 | package com.rudolfhladik.rd.disciplines;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;
import java.sql.SQLDataException;
import java.sql.SQLEx... | 38.957784 | 186 | 0.601219 |
e4c1aae3245c6ecd6a5a10221e0393abb493bb96 | 5,376 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.runelite.mapping.Implements
* net.runelite.mapping.ObfuscatedSignature
*/
package com.jagex.mobilesdk.auth.comms;
import com.jagex.mobilesdk.auth.comms.GameTokenComms;
import com.jagex.mobilesdk.auth.comms.GameTokenComms$FetchGame... | 64 | 267 | 0.75651 |
1f3540f6ddfc4c011476aab31cb2456789cf6979 | 269 | /**
* @Author LengYun
* @Since 2022/01/13 14:28
* @Description
*/
package com.iuaenasong.oj.pojo.vo;
import lombok.Data;
@Data
public class CheckUsernameOrEmailOrMobileVo {
private Boolean email;
private Boolean mobile;
private Boolean username;
} | 14.157895 | 45 | 0.710037 |
b3f06d89eac68805fab74d15113ec9acf5d7373c | 6,702 | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 agre... | 37.441341 | 138 | 0.724261 |
5c5776c513bdcdfd7848360d79ac8899be42ef15 | 569 | package com.github.zxl0714.redismock.operations;
import com.github.zxl0714.redismock.server.Slice;
import com.github.zxl0714.redismock.storage.RedisBase;
import java.util.LinkedList;
import java.util.List;
class RO_rpush extends RO_add<LinkedList<Slice>> {
RO_rpush(RedisBase base, List<Slice> params) {
s... | 22.76 | 68 | 0.706503 |
b00d68119a6d3388afedc61949201ce4f4b93d12 | 122 | package com.hades.example.android.workmanager;
public class LongRunningWorkersExample {
public void test(){
}
}
| 15.25 | 46 | 0.737705 |
9486cf418f7495b13f2cc064fd9319304c03ecd6 | 1,394 | package tech.hongjian.springhb.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "user")
pub... | 18.837838 | 115 | 0.669297 |
fc24b8f266f8df2200fc467b0a14fa45b4ddcbba | 776 | package com.commafeed.backend.services;
import java.util.ResourceBundle;
public class ApplicationPropertiesService {
private ResourceBundle bundle;
private static ApplicationPropertiesService INSTANCE = new ApplicationPropertiesService();
public static ApplicationPropertiesService get() {
return IN... | 22.171429 | 92 | 0.734536 |
57cc77408e562379cc46c8608dff1b8a6924fafc | 5,664 | /*
* MIT License
*
* Copyright 2017-2018 Sabre GLBL Inc.
*
* 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 limitation the rights
* to use, copy,... | 31.642458 | 148 | 0.655367 |
b6577bfb12a0e97cca56977b6104ecb4a3ae4677 | 5,219 | /**
* Copyright (C) 2016-2019 Expedia, 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 ag... | 38.094891 | 118 | 0.759724 |
fe5aba3420bf54aa9f30e4bc434368b528acc654 | 1,093 | package ru.job4j.stream.exercises;
import org.junit.Test;
import ru.job4j.stream.exercises.CountingMethod.Company;
import ru.job4j.stream.exercises.CountingMethod.Worker;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
/**
* Тест подсчёта количества работников в каждой ком... | 26.02381 | 68 | 0.607502 |
acc28408924402bbedcfdc2a415bd95fd8be4793 | 7,042 | package org.minbox.framework.little.bee.core.command;
import org.minbox.framework.little.bee.core.LittleBeeConstant;
import org.minbox.framework.little.bee.core.jvm.*;
import org.minbox.framework.little.bee.core.jvm.option.*;
import java.util.*;
/**
* Service startup command line
*
* @author 恒宇少年
*/
public class... | 30.484848 | 107 | 0.639875 |
ef0958592272730466f611198f376d8ebdf0e057 | 2,191 | package chess.model.pieces;
import chess.model.BoardSpace;
import chess.model.ChessGame;
import chess.model.PieceColor;
import chess.model.Position;
import java.util.ArrayList;
import java.util.List;
public class Knight extends ChessPiece {
public Knight(PieceColor pieceColor) {
this.setPieceColor(pie... | 34.234375 | 107 | 0.690552 |
5d91d1a3eeae149fec9fe2b265c1dadb538941b1 | 3,487 | /*
* Copyright 2019 Suslennikov Anton
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law... | 43.5875 | 147 | 0.70433 |
b2bd5ea8be14a81971ade5580f7c86d95a719896 | 3,805 | //@@author LowGinWee
package seedu.address.model.schedule;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
... | 31.708333 | 119 | 0.62339 |
7f7024e3552c67f7a2c941dfe5993ebf7161b8c6 | 148 | package org.acme.jms;
import io.quarkus.test.junit.QuarkusIntegrationTest;
@QuarkusIntegrationTest
public class PriceTestIT extends PriceTest {
}
| 18.5 | 52 | 0.831081 |
e66499a8af02eb56325e5de69cc9773a90772df3 | 2,734 | package ObjectOriented.CollectionDemo;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
/*
按照斗地主的规则,完成洗牌发牌的动作。
具体规则:
使用54张牌打乱顺序,三个玩家参与游戏,三人交替摸牌,每人17张牌,最后三张留作底牌。
准备牌:
牌可以设计为一个ArrayList<String>,每个字符串为一张牌。
每张牌由花色数字两部分组成,我们可以使用花色集合与数字集合嵌套迭代完成每张牌的组装。
牌由Collections类的shuffle方法进行随机排序。
发... | 27.069307 | 60 | 0.508413 |
32d7040062abded798ecf3a38a9319ea39a5f62e | 281 | package leetcode;
public class Math_268 {
/*
class Solution {
public:
int missingNumber(vector<int>& nums) {
int sc=nums.size();
int sum=sc*(sc+1)/2;
for(int i=0;i<sc;i++){
sum-=nums[i];
}
return sum;
}
};
*/
}
| 15.611111 | 42 | 0.483986 |
f0ad89be5e69118bd1a48f092325f316cecb0480 | 4,473 | package com.survivingwithandroid.weathermap;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.google.android.gms.maps.model.Tile;
import com.google.android.gms.maps.model.TileProvider;
import java.io.ByteArrayOutputStream... | 32.413043 | 154 | 0.628884 |
4ebbf050643fd62d302789100544971b97e3840a | 584 | /*
* 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.mycompany.b2bhotelservice.model;
import java.util.Date;
/*
*
* @author cynthia thomas
*/
public class Res... | 27.809524 | 127 | 0.69863 |
d0a3c4152fa3a81483d03a8085bab2edb16c97cb | 498 | package com.springboot.practice.Mapper;
import com.springboot.practice.Bean.BlogComment;
import java.util.List;
import java.util.Map;
public interface BlogCommentMapper {
int getTotalBlogComments(Map map);
List<BlogComment> findBlogCommentList(Map map);
int insertSelective(BlogComment record);
int... | 20.75 | 56 | 0.767068 |
735525328fcc71b4c6de374969a2a496eb09128b | 878 | package Exp4.Employee;
public class Employee
{
//fields of the class Employee
String name;
int empid;
double salary;
Employee() //default constructor
{
name="";
empid=0;
salary=0.0;
}
Employee(String name,int empid,double salary) //p... | 21.95 | 97 | 0.555809 |
00c49a5238ad585797769dff2d21fabda0860679 | 2,639 | package org.egov.demand.helper;
import java.util.List;
import org.egov.demand.config.ApplicationProperties;
import org.egov.demand.model.Bill;
import org.egov.demand.model.BillAccountDetail;
import org.egov.demand.model.BillDetail;
import org.egov.demand.util.SequenceGenService;
import org.egov.demand.web.contract.Bi... | 34.723684 | 127 | 0.782114 |
e8c0400d3f923645649e5bfe60e3e0a17d089ef7 | 669 | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.cpd;
import java.util.Properties;
import org.junit.Test;
import net.sourceforge.pmd.cpd.test.CpdTextComparisonTest;
public class EsperTokenizerTest extends CpdTextComparisonTest {
public EsperTo... | 19.114286 | 79 | 0.674141 |
c793ef1701c97fe841e619b255c08ae3e4e19331 | 2,616 | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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... | 28.747253 | 104 | 0.65711 |
d7da40aec1ccf7e27c25ac81e8e3adea3ca4cb44 | 15,427 | /*
* PROJECT: NyARToolkit(Extension)
* --------------------------------------------------------------------------------
* The NyARToolkit is Java edition ARToolKit class library.
* Copyright (C)2008-2009 Ryo Iizuka
*
* This program is free software: you can redistribute it and/or modify
* it under the te... | 25.626246 | 115 | 0.637 |
66942fcad4b789cb913c21f402cb4bde7a883c7e | 1,325 | package pers.peixinyi.pqueue.client.config;
import java.net.InetAddress;
/**
* @author PeiXy_J
* @version 0.0.0.0
* @date 2021/7/12 - 10:11
**/
public class ClientAddress {
private String ip;
private int port;
private boolean register;
public ClientAddress(String ip, int port) {
this.ip =... | 19.485294 | 65 | 0.558491 |
692144454c7b514c310b5d05cbfa5495c0c2413a | 10,494 | /*
* 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 ... | 51.190244 | 147 | 0.695064 |
99398e5370ad9aae3f8341ea78aa8e7cff007bd4 | 617 | import api.param.Param;
import lombok.extern.slf4j.Slf4j;
import response.user.LoginResp;
import util.ApiServiceFactory;
import util.Tools;
/**
* @author ant
* Create by Ant on 2020/2/17 2:25 下午
* mac
*/
@Slf4j
public class Test {
/**
* 查询成绩demo
*/
public static void main(String[] args) {
... | 23.730769 | 118 | 0.625608 |
0f4b33b898602457ef6f46a197bf94d305492986 | 116 | package designpattern.strategypattern.BettleGame;
public interface WeaponBehavior {
public void useWeapon();
}
| 19.333333 | 49 | 0.801724 |
02aa07caf05df54e8854c591cbed10de2c236c1d | 1,358 | /* vim : set ts=4 sw=4 et fenc=utf-8 ff=unix cc=100 : */
package jp.oist.unit.ios.solarsystemlib.atomsphere;
import jp.oist.unit.ios.solarsystemlib.Location;
import jp.oist.unit.ios.solarsystemlib.TestUtils;
import jp.oist.unit.ios.solarsystemlib.atomsphere.airmass.Airmass;
import jp.oist.unit.ios.solarsystemlib... | 37.722222 | 88 | 0.709131 |
b6c70bb4d8ac28f697aa207bc00af24b141496e7 | 30,093 | /*
* 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 ... | 37.522444 | 142 | 0.542718 |
f3e63c679537091290064eceeea166a4bacf8daf | 1,774 | package io.smallrye.reactive.messaging;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.List;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.reactive.messaging.Channel;
import org.eclipse.microprof... | 23.972973 | 75 | 0.649944 |
8cbfc729a9dc223862e7504dba90fc973d7a15cd | 1,856 | /*
* Copyright 2020, GeoSolutions Sas.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package it.geosolutions.mapstore.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.Fil... | 34.37037 | 160 | 0.705819 |
2e92a54b9a322b484347c0b9827649eccb63fba8 | 1,930 | package io.github.dbstarll.dubai.model.service.validate;
import java.util.Collection;
import java.util.List;
import java.util.Map;
public interface Validate {
/**
* Get the Collection of Action-level error messages for this action. Error messages should not be
* added directly here, as implementations a... | 30.15625 | 102 | 0.664767 |
ba0c239fd40d87340f5dfcedeef4ae925f98894a | 1,635 | /**
* Copyright (C) 2014-2015 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unle... | 29.727273 | 75 | 0.734557 |
e6a4c17ae463f6264d61ead077ab6aaee34c11ad | 2,914 | /*
* 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 distributed under t... | 38.342105 | 182 | 0.720316 |
b7e871cc649afd7a33084629d548642f0e1b284c | 5,294 | package com.html5parser.insertionModes;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import com.html5parser.algorithms.CreateAnElementForAToken;
import com.html5parser.algorithms.InsertComment;
import com.html5parser.classes.InsertionMode;
import com.html5parser.classes.ParserContext;
import com.html5pars... | 36.013605 | 74 | 0.720816 |
5242dcf518e61a5541c8812bf562be32eb19426b | 83,015 | /*
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 62.183521 | 151 | 0.532386 |
799321880943eff9cae8240aa8e666600ff146bf | 662 | package com.aek.ebey.assets.mapper;
import com.aek.ebey.assets.model.AssAssetsTransferDetail;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.aek.common.core.base.BaseMapper;
/**
* <p>
* Mapper接口
* </p>
*
* @author cyl
* @since 2017-12-14
*/
public interface AssAssetsTransferDe... | 25.461538 | 122 | 0.787009 |
6ee1a2e92aabe66d08b1c64e524e052b3b64e6d7 | 3,346 | package com.linkedin.databus.util;
/*
*
* Copyright 2013 LinkedIn Corp. 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/LICENS... | 20.278788 | 88 | 0.595935 |
5462ba3996e9b7682f1e2bb09815a7012b8e9be7 | 1,200 | /*
* 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 javacore.colecoes.test;
import java.util.ArrayList;
import java.util.List;
import javacore.colecoes.classes.Celular;
/**
*
... | 30 | 79 | 0.6475 |
346f24c3b92a81734465c6f9369bbfaa22d421e1 | 1,105 | package com.secucard.connect.product.payment;
import com.secucard.connect.client.Callback;
import com.secucard.connect.client.ProductService;
import com.secucard.connect.product.payment.model.Contract;
/**
* Implements the payment/contracts operations.
*/
public class ContractsService extends ProductService<Contrac... | 33.484848 | 122 | 0.758371 |
67cf8fa9bd0f7683012516cef251b62bcfe16774 | 1,846 | package kr.ac.konkuk.ccslab.cm.util;
import kr.ac.konkuk.ccslab.cm.info.CMInfo;
public class CMEndianness {
// test byte order of the current system
public static int testByteOrder()
{
int ret;
short word = 0x0001;
if( (word & 0x00ff) == 1 )
ret = CMInfo.CM_BIG_ENDIAN;
else
ret = CMInfo.CM_LITTLE_END... | 20.285714 | 73 | 0.620802 |
b051ba0690ef9694d2a4e26d60e6d7a72a455b4d | 1,115 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.annotate;
import com.intellij.openapi.vcs.history.VcsRevisionNumber;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastuti... | 27.875 | 140 | 0.745291 |
ed6bf36417410a63c6733480aac9816733c95923 | 35,083 | /*
* 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 ... | 86.839109 | 120 | 0.695978 |
662ce8b18cfb4725f1bb002140ef99019467e4a6 | 5,986 | package treecutter.util;
import java.util.Set;
import javax.annotation.Nullable;
import org.apache.commons.lang3.StringUtils;
import com.google.common.base.Strings;
import com.google.common.collect.Sets;
import net.minecraft.block.Block;
import net.minecraft.block.BlockAir;
import net.minecraft.block.BlockLeaves;
... | 21.767273 | 104 | 0.714835 |
bdd48b9e4a8828688bf8b89d68d91d3fedc052c2 | 2,303 | package org.okky.reply.domain.service;
import lombok.experimental.FieldDefaults;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.okky.reply.TestMother;
import org.okky.reply... | 34.373134 | 133 | 0.751194 |
b76d6dc2318e9b4121df134bbc1307e512967dfd | 4,764 | package cc.bitky.clustermanage.server.bean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cc.bitky.clustermanage.global.ServerSetting;
import cc.bitky.clustermanage.db.presenter.KyDbPresenter;
import cc.bitky.clustermanage.server.message.CardTyp... | 32.855172 | 192 | 0.691226 |
b02d9f27406aaaf32e059972b5d7b68dfe157e78 | 662 | package com.yusufsezer.client.item;
import com.yusufsezer.client.contract.Item;
import com.yusufsezer.client.util.NoteUtil;
import com.yusufsezer.client.util.ServiceUtil;
import com.yusufsezer.server.soap.Note;
import java.util.List;
public class ListItem implements Item {
@Override
public String getName() {... | 20.6875 | 46 | 0.616314 |
ec666fa699bbf36eda21c460a2b323fc3e7f4736 | 1,424 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | 31.644444 | 81 | 0.753511 |
d555d6b499636b62c09f90c63bc89b38d5d20cf5 | 5,011 | /*
* Copyright 2006-2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 29.304094 | 128 | 0.617841 |
507e417af7324ca046835f2d3d74f4957c356e15 | 7,395 | /*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, 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... | 39.758065 | 185 | 0.756187 |
0fc7f181ae96f5ceb7b3cf4047758a650d9ba20a | 2,982 | /*
* Copyright (c) 2015-2020, Oracle and/or its affiliates. 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
*
... | 33.886364 | 164 | 0.635815 |
1bcb27ef68c1df106028a6100eb6244ce600024d | 672 | package com.training.netcol.dao;
import com.training.netcol.model.Host;
import java.util.Optional;
public interface HostDao {
public Host save(Host host);
public <S extends Host> Iterable<S> saveAll(Iterable<S> newHosts);
public Optional<Host> findById(Long id);
public Optional<Host> findByReques... | 20.363636 | 70 | 0.712798 |
2b22a6729e02e12a64e35bab0e2a889f7fa56b6b | 547 | package com.pingcap.tikv.types;
import org.junit.Test;
public class ConverterTest {
@Test
public void convertToLongTest() throws Exception {}
@Test
public void convertToDoubleTest() throws Exception {}
@Test
public void convertToStringTest() throws Exception {}
@Test
public void convertToBytesTest... | 19.535714 | 59 | 0.745887 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.