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 |
|---|---|---|---|---|---|
44b8f4d19c594a96a170b5af7bcc1fc050aaccbf | 1,020 | package org.seckill.dao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.seckill.entity.SuccessKilled;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import javax.annotation.Resource;
import static org.junit.Ass... | 28.333333 | 81 | 0.770588 |
a10f73d403e1b3b1bc4f8ccec5974ee1a81b0f32 | 5,393 | /*
* Copyright 2010 Fae Hutter
*
* 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 i... | 30.128492 | 104 | 0.652327 |
5f75c53fccf5a5d6400ac720cdbb3ec75302cc7d | 1,977 | package com.goo.dal.domain;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.annotation.LastModifiedDate;
import javax.persistence.*;
import java.time.ZonedDa... | 22.988372 | 70 | 0.655033 |
b5da52c61e359dd03cb3d0938d82740de7b76183 | 3,541 | /*
* Copyright 2012 Jim Guistwite
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 27.664063 | 76 | 0.637391 |
d71694bdd484e87c0e4655ea122bcfc0dcc5210f | 5,407 | package com.chain.ds.deque;
import java.util.ConcurrentModificationException;
import java.util.NoSuchElementException;
import com.chain.ds.Iterator;
/**
* 链表双端队列
*
* @author Chain
*
* @param <E>
*/
public class LinkedDeque<E> extends AbstractDeque<E> {
// 没有额外的控制节点
private DequeNode headNode;
private Dequ... | 17.165079 | 70 | 0.642131 |
2b4611055fb8031bdfdd17b7fc3492b35cd1d71f | 2,655 | package org.antonakospanos.movierama.web.security.filters;
import org.antonakospanos.movierama.web.security.authentication.MovieRamaAuthenticationDetailsSource;
import org.antonakospanos.movierama.web.security.authentication.MovieRamaAuthenticationToken;
import org.antonakospanos.movierama.web.security.authentication.... | 47.410714 | 137 | 0.818079 |
389da31da7a50b0f63ff1a8b5cf1f587b242d32d | 1,662 | package no.nav.tps.forvalteren.service.command.exceptions;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import no.nav.tps.forvalteren.domain.service.tps.ResponseStatus;... | 36.130435 | 109 | 0.732852 |
2ede4d55f42353faa53dd09b4092de59b9a18100 | 410 | import java.util.Scanner;
class VolumeOfSphere
{
public static void main(String args[])
{
Scanner s= new Scanner(System.in);
System.out.println("Enter the radius of sphere:");
double r=s.nextDouble();
double volum... | 20.5 | 60 | 0.492683 |
70ee1e74fb4e080fca41a73ae4eed130613e5957 | 2,129 | /*
*
* Copyright (c) 2012-2016 "FlockData LLC"
*
* This file is part of FlockData.
*
* FlockData is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | 32.257576 | 104 | 0.710662 |
a384663aa348822205e13b4f297fc5069b0e64d6 | 22,275 | /**
* NOTE: This class is auto generated by the swagger code generator program (3.0.21).
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
package org.coredb.api;
import org.coredb.model.LabelEntry;
import org.springframework.core.io.Resource;
import org.coredb.model.StoreStatus... | 65.514706 | 606 | 0.691852 |
644b477f54d92cd7915e3f3bb8dc75a3168dad68 | 5,030 | package net.minecraft.item;
import net.minecraft.advancements.CriteriaTriggers;
import net.minecraft.block.BlockEndPortalFrame;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.IBlockState;
import net.minecraft.block.state.pattern.BlockPattern;
import net.minecraft.creativetab.Creative... | 52.947368 | 209 | 0.731014 |
f6bba4e91643fdf6fb0e2de58ade563b86570d50 | 3,494 | package com.aliyun.dts.subscribe.clients.common;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.function.Supplier;
/**
* Copy code from java.util.Optional, the only differ... | 30.382609 | 113 | 0.630796 |
22cc27ff5cf78cecf1a1b82e8ef72da136c53fa4 | 371 | package mx.com.mentoringit.interfaces;
import java.util.List;
public interface IGenericDAO<T> {
public Integer save(T emp) throws Exception;
public void edit(T emp) throws Exception;
public T find(Class<T> clase,int idEntity) throws Exception;
public Boolean delete(T emp) throws Exception;
public Lis... | 28.538462 | 62 | 0.746631 |
5e9cadb424c4870b86b00e6c93cb9f36d0f8f258 | 490 | package com.cjburkey.mod.wonderland.packet;
import com.cjburkey.mod.wonderland.ModInfo;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;
public final class ModPackets {
public s... | 30.625 | 87 | 0.820408 |
ffb02ad99e27b58b4cf6b5ff678b146be3ac4394 | 2,669 | package br.com.zupacademy.enricco.proposta.events.handlers;
import br.com.zupacademy.enricco.proposta.events.ClassifyProposalEvent;
import br.com.zupacademy.enricco.proposta.models.ClientProposal;
import br.com.zupacademy.enricco.proposta.repositories.ClientProposalRepository;
import br.com.zupacademy.enricco.proposta... | 39.835821 | 115 | 0.778194 |
4d65540ba6d191f263b300e615b90d790ec1a7cf | 6,271 | package kr.plurly.daily.collection.adapter;
import android.databinding.DataBindingUtil;
import android.graphics.drawable.BitmapDrawable;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com... | 24.212355 | 169 | 0.634349 |
092e9712d9448ddcad49af0ef3fa1bd305769cbc | 1,781 | /*
* File: ZHCollection.java
*/
package zhstructures;
import java.util.Iterator;
/**
* The root interface in the Ziegler/Holey collection hierarchy, which
* is a simplified version of the Java collection hierarchy.
* A collection represents a group of objects, known as its elements.
* Some collections allow d... | 31.245614 | 74 | 0.737226 |
52d68dd60e7a02c4af3735a2432e46b6db65412d | 881 | package com.vinsguru.saga.config;
import com.vinsguru.dto.OrchestratorRequestDTO;
import com.vinsguru.dto.OrchestratorResponseDTO;
import com.vinsguru.saga.service.OrchestratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springfr... | 32.62963 | 96 | 0.745743 |
242eac6022f6cf01b3e3d3fdc871c5d4aa2b9392 | 1,265 | package com.qa.ims.services;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.Spy;
import org.mockito.junit.MockitoJUnitRunner;
import com.qa.ims.persistence.dao.Dao;
import com.qa.ims.persistence.domain.Cus... | 25.816327 | 89 | 0.764427 |
c8af83f77da80a682f05b287f072a4a8a3c61530 | 1,655 | /*
* Copyright 2016 Faisal Thaheem <faisal.ajmal@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 required b... | 21.776316 | 75 | 0.656193 |
82049d7a86ced21ec7adabb522bc34227b2776ee | 2,412 | /*
* Copyright 2014 Davy Maddelein.
*
* 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 agree... | 28.376471 | 105 | 0.672471 |
3584d0b0dcc8c7d1ee708702e09f657cd42d5582 | 6,167 | // @@author A0163996J
package seedu.taskit.model.task;
import java.util.Objects;
import seedu.taskit.commons.exceptions.IllegalValueException;
import seedu.taskit.model.tag.UniqueTagList;
import seedu.taskit.model.task.Date;
import static seedu.taskit.commons.core.Messages.MESSAGE_INVALID_START_DATE;
import static s... | 27.408889 | 120 | 0.590887 |
012e3b5bb24877a2dfdda88c7c7ed83d92c46263 | 8,772 | package raytracer;
import static com.google.common.truth.Truth.assertThat;
import java.io.IOException;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
// Feature: OBJ File Parser
public class ObjFileTest {
@Test
// Scenario: ... | 40.990654 | 98 | 0.678751 |
098b9d12f5de22230d7b9d2ca4625f47735c8618 | 366 | package com.gong.url.exception;
import com.gong.url.response.GlobalResponseCodeEnum;
import java.util.Map;
/**
* 请求参数不合法异常
*
* @author gongjunbing
* @date 2020/03/12 23:46
**/
public class BadRequestException extends BaseException {
public BadRequestException(Map<String, String> data) {
super(Globa... | 19.263158 | 58 | 0.729508 |
02bddfd082df6c28f37ffbb05dd40c35bb2edc08 | 812 | package net.japan.kana.hakana.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import net.japan.kana.hakana.core.Const;
import net.japan.kana.hakana.db.tables.Kana;
/**
* Author Vitalii Lebedynskyi
* Date 10/24/14
*/
public class S... | 25.375 | 90 | 0.740148 |
63e803860e88ae208d55822da7ba2014535bc1ed | 1,470 | import initializer.SimpleChatClientInitializer;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import java.io.BufferedReader;
import java.io.InputStreamRead... | 30 | 85 | 0.62449 |
76637b11347f39fd8b86be8dd51de3adb025748d | 347 | package commands;
import exceptions.EndOfStackException;
import exceptions.InvalidSyntaxException;
import exceptions.SlogoException;
public abstract class GuiCommand extends Command {
/**
* @param numberOfParameters
* Creates GuiCommand
*/
public GuiCommand(int numberOfParameters) {
super(numberOfPa... | 17.35 | 50 | 0.760807 |
687e79404b94954ec19b1cc5773c3adb20365aed | 1,755 | /*
* Copyright (C) 2019 sea
*
* 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 writi... | 30.789474 | 110 | 0.62906 |
0d4a5baca170f978a5a0a47fbfe13e432a44614f | 6,655 | package de.moliso.shelxle;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Properties;
import android.a... | 27.962185 | 82 | 0.664914 |
091a9bba6f11523638d6ca36bb3b15ce50d54b31 | 3,853 | /*
* Copyright © 02.10.2015 by O.I.Mudannayake. All Rights Reserved.
*/
package database.sql.type;
import database.sql.SQL;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.table.DefaultTableModel;
import entity.item.type.SR... | 37.77451 | 233 | 0.57306 |
c010a494c6260ae5b287aafdd36389531a5b5299 | 1,177 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: AttributesRenderer.java
package com.ecap.log4j.or.sax;
import com.ecap.log4j.or.ObjectRenderer;
import org.xml.sax.Attributes;
public class Attr... | 26.155556 | 62 | 0.558199 |
fa6c7d2b644f999f61c6ba7dd7f43f05442d9028 | 435 | package com.iflytek.gulimall.product.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
/**
* 二级分类
*/
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Catalog2Vo {
private String catalog1Id;//1级分类id即父id
... | 18.913043 | 52 | 0.770115 |
3c2d0ef7b9adf891b3c8c159273b6fce7566ec56 | 4,194 | /**
Copyright 2015 Osiris Project 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 law or agreed to ... | 37.783784 | 124 | 0.779447 |
0dc2e7255e1ed3eea7f81ddd6f858ed7722da80a | 2,126 | package in.cleartax.dropwizard.sharding.utils.exception;
import com.google.common.base.Verify;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* Created on 2019-01-15
*/
public class Preconditions {
private Preconditions() {
}
/**
* Ensures the truth of an expression involving one ... | 36.655172 | 98 | 0.667451 |
6a852ebd3bd7287acc41e2df529b29f0d9361a16 | 2,568 | /**
* Copyright 2020 Webank.
*
* <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 or agreed to i... | 34.24 | 222 | 0.583333 |
371bfee5840e9b5d3411fa9efc2ad0143764cb26 | 18,579 | /*
* Copyright (c) 2019 Im2be <https://github.com/Im2be>
* 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, this
... | 26.465812 | 161 | 0.701706 |
0c059cc3ff8896c6833fde9fe212bbf7da31e770 | 496 | package cn.lab212.mall.auth.service;
import cn.lab212.mall.common.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author yinck
* @version 1.0
* @date 2021-09-29 15:... | 26.105263 | 62 | 0.778226 |
625d8609bfeb98c7914f8e3f4c3bf0676f5061fd | 1,910 | package com.qiniu.service.media;
import java.io.*;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
public class M3U8Manager {
public List<VideoTS> getVideoTSListByUrl(String m3u8Url) throws IOException {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new... | 31.833333 | 113 | 0.593717 |
85e3a2ff075310a8cb8d105ad8f83c0f045decd2 | 1,546 | package com.galaxysoft.photogallery.web.config;
import org.springframework.web.filter.CharacterEncodingFilter;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import javax.servlet.Filter;
import javax.servlet.ServletRegistration;
/**
* Created by Illia IZOTOV on ... | 33.608696 | 109 | 0.73674 |
aaa3e382833aac2afcf0b3f66b8f760922bf0781 | 1,492 | package com.alibaba.simpleimage.analyze.testbed;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.imageio.ImageIO;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.fr... | 25.288136 | 118 | 0.696381 |
4717bdd2ceeda2efb3e6f1e20b71d2c840c28dc0 | 1,896 | package cert.aiops.pega.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.HashMap;
@Component
public class ProvinceUtil {
private Logger logger= LoggerFactory.getLogger(ProvinceUtil.class);
private HashMap<String,String> provinc... | 28.727273 | 74 | 0.55116 |
3ceba955c714f7790003021475a6422529b5d5df | 1,599 | package net.infstudio.goki.common.stats.special.leaper;
import net.infstudio.goki.common.utils.DataHelper;
import net.infstudio.goki.common.stats.StatSpecial;
import net.infstudio.goki.common.stats.StatSpecialBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.client.resources.I18n;
public abs... | 37.186047 | 165 | 0.671044 |
f3bd755eb93349caef7b38fc64fb98e4bec1ed30 | 239 | package com.shekhargulati.controller;
public class ProcessingFailureException extends Exception {
public String getMessage() {
return "Error occur during the process of requests starting with the tag \"/control\".";
}
}
| 23.9 | 96 | 0.732218 |
e72ea0374494bcbfd8735636ada3f9e5ce6519c9 | 2,435 | /*
* Copyright 2018 Blockchain Innovation Foundation <https://blockchain-innovation.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-... | 27.359551 | 86 | 0.627926 |
61f8f5cba9bff6270f81e6f67e426646ec933e29 | 1,111 | package cn.hkxj.platform.pojo;
import com.google.common.base.MoreObjects;
import java.util.ArrayList;
import java.util.List;
/**
* @author junrong.chen
*/
public class AllGradeAndCourse {
private List<List<GradeAndCourse>> list = new ArrayList<>();
public void addGradeAndCourse(List<GradeAndCourse> gradeAndCour... | 17.919355 | 68 | 0.684968 |
dce4b7dcd3da8949840efb100ba2f076ac1cfcdd | 4,049 | package com.rongji.dfish.misc.docpreview.parser;
import com.rongji.dfish.misc.docpreview.DocumentParser;
import com.rongji.dfish.misc.docpreview.data.*;
import org.apache.poi.hwpf.HWPFDocument;
import org.apache.poi.hwpf.model.PicturesTable;
import org.apache.poi.hwpf.usermodel.Picture;
import org.apache.poi.hwpf.user... | 37.146789 | 119 | 0.555446 |
895fcc7dab7552b3732f998f2b5dca42cfd47daf | 1,518 | package Camunda.TravelGuide;
import java.util.LinkedList;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.json.JSONObject;
import Camunda.utils.JSONWorker;
public class GarbageCollector implements JavaDelegate {
@Override
publ... | 29.192308 | 120 | 0.664032 |
0f4839715063c03c7308ba3e04e244fd61f9dd08 | 335 | package com.or.heuristic.core.algo.hc;
import lombok.Builder;
import lombok.Getter;
/**
* This class contains all the configurations for the hill climbing algorithm.
*
* @author Kunlei Lian
*/
@Getter
@Builder
public class HcConfig {
private int maxIter;
private int maxIterNoImprove;
private final int maxRu... | 18.611111 | 78 | 0.758209 |
cb271d1523f0884c2af21613ac39c73ec9b21cbe | 405 | package stu.napls.clouderweb.config.property;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
/**
* @Author Tei Michael
* @Date 1/13/2020
*/
@Component
@Getter
public class StaticServer {
@Value("${staticserver.url}")
private... | 20.25 | 58 | 0.735802 |
f11b4328ce35e738d88790a2a64d2d567aff86d1 | 5,421 | package org.warmsheep.encoder.bean;
import org.warmsheep.encoder.enums.KeyLengthType;
public class MUCommandBean extends CommandBean{
//MU指令相关
private static final int MSG_BLOCK_LENGTH = 1; //报文块标志域长度
private static final int KEY_TYPE_LENGTH = 1; //密钥类型域长度
private static final int KEY_LENGTH_TYPE_LENGTH = ... | 29.785714 | 146 | 0.698026 |
2bea6ca97aa80173448b01f6fb84b1b9f5d847d0 | 5,970 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... | 32.622951 | 126 | 0.6134 |
8ed6249ec35240679bef497866fc2e46ea2d697e | 12,310 | //
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 36.746269 | 133 | 0.57303 |
4597bda3d44478597116bb5f3222ed17cfef9649 | 1,029 | package com.sandwich.util.io.directories;
import java.io.File;
abstract public class DirectorySet {
private static final String BIN_DIR = "bin";
private static final String APP_DIR = "app";
private static final String LIB_DIR = "lib";
private static final String DATA_DIR = "data";
private static final S... | 20.58 | 74 | 0.720117 |
71a4aa8c1d5d1bf75eba1f89b97b56bb2d2aec87 | 910 | package com.damon.appwheel.ui.rlPart.base;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by stephen on 2017/8/13.
*/
public class BaseMyHolder<DT> extends RecyclerView.ViewHolder {
public Context mContext;
public BaseAdap... | 23.947368 | 81 | 0.687912 |
acad1101bf0504757b03e2860f8d17f21d76be07 | 2,143 | package frc.robot.commands;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.LimeLightSubsystem;
import frc.robot.subsystems.SwerveDriveSubsystem;
public class AutoSearchRight extends CommandBase {
private SwerveDriveSubsystem swerv... | 31.985075 | 108 | 0.656556 |
6f36650021444fe31797080f9f2fe10c3ea8dd68 | 44,703 | package com.agsw.FabricView;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics... | 36.079903 | 204 | 0.587634 |
f5c849572b1ea5891a497c190e5ef557d18ee051 | 16,467 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... | 15.549575 | 814 | 0.809133 |
1567e53c16d4cffc59f0bbd3d039c306f7f8b22f | 85 | package edu.asu.plp.tool.backend.plpisa.sim.stages;
public class wb_stage_temp {
}
| 14.166667 | 51 | 0.776471 |
26f75e5c9ed800d356f7b7bd07a8c3a014a3bf15 | 711 | public class App {
public static void main(String[] args) throws Exception {
test(new Bagno(Sesso.MASCHIO));
test(new BagnoEquo(Sesso.MASCHIO));
}
private static void test(Bagno b) {
System.out.println("Test of " + b);
new Persona(Sesso.FEMMINA, b).start();
new Perso... | 29.625 | 61 | 0.510549 |
12550cf58a637658f1ff64e26403511b1f510595 | 8,063 | package com.dynamsoft.readadriverlicense;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.wid... | 41.561856 | 266 | 0.643185 |
9f80fab44c060b466d8b19d1e9d81525fb0f3672 | 13,154 | package net.minecraft.world.inventory;
import java.util.Iterator;
import java.util.Map;
import net.minecraft.network.chat.ChatComponentText;
import net.minecraft.tags.Tag;
import net.minecraft.tags.TagsBlock;
import net.minecraft.world.entity.player.EntityHuman;
import net.minecraft.world.entity.player.PlayerInventory... | 39.981763 | 144 | 0.515965 |
05aa9ec7a12f407cbc12565085afe14d64305c86 | 830 | package com.iwaodev.application.mapper;
import com.iwaodev.application.dto.review.ProductDTO;
import com.iwaodev.application.dto.review.ReviewDTO;
import com.iwaodev.application.dto.review.UserDTO;
import com.iwaodev.infrastructure.model.Product;
import com.iwaodev.infrastructure.model.Review;
import com.iwaodev.infra... | 29.642857 | 68 | 0.814458 |
56bb7649ed81411db8a174d9684145d708a37eb4 | 260 | package pl.dahdev.managementapp.exception;
public class ActivationException extends Exception {
public static final String ACTIVATION_NOT_FOUND = "Activation not found!";
public ActivationException(String message) {
super(message);
}
}
| 21.666667 | 78 | 0.746154 |
846a82f652e6443b161b90a9aa546b2c8c74a9f2 | 2,581 | package shadows.apotheosis.ench.objects;
import java.util.List;
import java.util.Map;
import java.util.Random;
import com.google.common.collect.Lists;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.... | 32.670886 | 114 | 0.76637 |
be8b44309e91c1bdd3b9a48c2237792950c0d541 | 151 | package com.github.monsterhxw.chapter02.section04;
/**
* @author XueweiHuang
* @created 2022-03-28
*/
public class HashSetAndTreeSetComparison {
}
| 16.777778 | 50 | 0.754967 |
8213598fd160f229431aa4708a95f27650fdebdf | 2,004 | package javacard.security;
/**
* The <code>Key</code> interface is the base interface for all keys.
* <p>
* <p>
* A <code>Key</code> object sets its initialized state to true only when all
* the associated <code>Key</code> object parameters have been set at least
* once since the time the initialized state was s... | 32.322581 | 84 | 0.657186 |
a27427e24a2a7e05af4ab246bdc521acfaaeafd6 | 4,066 | /*
* Copyright (c) 2020 Rin (https://www.levelrin.com)
*
* This file has been created under the terms of the MIT License.
* See the details at https://github.com/levelrin/jws-server/blob/main/LICENSE
*/
package com.levelrin.jwsserver;
import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import or... | 29.897059 | 92 | 0.567142 |
4c8825a5907a2bfb29f9f74655e58c4d187460e5 | 140 | package procul.studios.delta;
public class BuildManifest {
public Integer[] version;
public boolean dev;
public String exec;
}
| 17.5 | 29 | 0.721429 |
ccfd78ba83b8f29d7e238bc561dd9bae120895fe | 1,355 | package de.vorb.sokrates.generator;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.security.MessageDigest;
import java.security.NoSuch... | 30.795455 | 101 | 0.639852 |
d44015c1310965aacf30680788e255f4e1b26ddc | 3,571 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Milad Naseri.
*
* 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... | 40.579545 | 185 | 0.761411 |
0e625686a518d84ed9dad00365373b9163debc28 | 933 | package com.qouteall.immersive_portals.mixin_client.sync;
import com.qouteall.immersive_portals.ducks.IEPlayerMoveC2SPacket;
import net.minecraft.client.Minecraft;
import net.minecraft.network.play.client.CPlayerPacket;
import net.minecraft.world.dimension.DimensionType;
import org.spongepowered.asm.mixin.Mixin;
impor... | 38.875 | 78 | 0.773848 |
b4d2ece9bc684547a523580fd75ec3a96ca917b9 | 4,432 | /******************************************************************************
* Copyright (c) 2014, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyrigh... | 36.933333 | 153 | 0.702843 |
e38ffa3aeada96b503bc063131dc0a824763cde2 | 410 | package com.smcb.simulatedstock.page;
import com.smcb.simulatedstock.base.BaseFragment;
/**
* Created by Administrator on 2017/3/10.
*/
public class SellStockFragment extends BaseFragment {
public static BaseFragment getInstance() {
BuyStockFragment fragment = new BuyStockFragment();
fragment.I... | 24.117647 | 59 | 0.709756 |
c7f8cb65405bfb60febc17a6a933b0cd29c7079b | 13,799 | package se.kth.castor.pankti.extract.processors;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import se.kth.castor.pankti.extract.launchers.PanktiLauncher;
import se.kth.castor.pankti.extract.runners.PanktiMain;
import spoon.MavenLauncher;
import spoon.reflect.CtModel;
import spoon.reflec... | 46.618243 | 123 | 0.696572 |
f86c9486d336679d05ce9330546f18d0f3793f41 | 653 | package com.appsmith.server.repositories;
import com.appsmith.server.repositories.ce.CustomNewPageRepositoryCEImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.mongodb.core.ReactiveMongoOperations;
import org.springframework.data.mongodb.core.convert.MongoConverter;
import org.springframework.ste... | 34.368421 | 112 | 0.840735 |
16bc85a28135ab79257529bf529e8799e450f477 | 803 | package seedu.addressbook.commands;
import seedu.addressbook.data.exception.IllegalValueException;
import seedu.addressbook.data.person.*;
import seedu.addressbook.data.tag.Tag;
import java.util.HashSet;
import java.util.Set;
public class SortCommand extends Command {
public static final String COMMAND_WORD = "s... | 34.913043 | 123 | 0.729763 |
fdc341a6071ff0772460087aadfddc6edd8e5475 | 704 | package com.github.shaigem.linkgem.fx.popup.quickinfo;
import javafx.scene.Cursor;
import javafx.scene.text.Text;
/**
* Helper class for creating nodes with a quick information popup.
*
* @author Ronnie Tran
*/
public final class QuickInfoIcon {
/**
* Create a icon node that will display a quick info po... | 27.076923 | 81 | 0.683239 |
f548d047c639f56bc19b667829fa4026fd0f8865 | 3,002 | /* Copyright (c) 2001-2009, The HSQL Development Group
* 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... | 29.431373 | 80 | 0.663225 |
38a562ab045ee466f46f5956c4857242174e1dd0 | 810 | package com.coder.lock;
class Consumer {
private Depot depot;
public Consumer(Depot depot) {
this.depot = depot;
}
public void consume(int no) {
new Thread(() -> depot.consume(no), no + " consume thread").start();
}
}
class Producer {
private Depot depot;
public Producer... | 23.142857 | 76 | 0.609877 |
44aaf9a9baa36ec5a8e0a177cb2c81855d467052 | 11,983 | package org.eft.evol.model;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.... | 24.912682 | 100 | 0.688475 |
52c22eff05974f9101f67d23edd282ed47f3662d | 2,020 | package fr.tduf.libunlimited.low.files.banks.mapping.rw;
import com.esotericsoftware.minlog.Log;
import fr.tduf.libunlimited.common.helper.FilesHelper;
import fr.tduf.libunlimited.low.files.banks.mapping.domain.BankMap;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.IOExcep... | 33.666667 | 125 | 0.69901 |
8a5708ea73a09374a49dc80ca1ffb1a914eab2a0 | 1,417 | package org.sitemesh.config;
/**
* Responsible for instantiating objects - converting from strings in a config file to a real instance.
*
* <p>Typically you would use the {@link ObjectFactory.Default} implementation,
* but this can be replaced. e.g. To connect to a dependency injection framework, lookup from
* a ... | 38.297297 | 103 | 0.658433 |
f1876ac33c6926f8d51c12918997d9c03c4d5031 | 7,596 | package com.exx.dzj.controller.stock;
import com.exx.dzj.constant.CommonConstant;
import com.exx.dzj.entity.dictionary.DictionaryInfo;
import com.exx.dzj.entity.stock.StockBean;
import com.exx.dzj.entity.stock.StockNumPrice;
import com.exx.dzj.entity.stock.StockQuery;
import com.exx.dzj.facade.stock.StockFacade;
impor... | 35.166667 | 141 | 0.687994 |
f86cf7c72c80ca93d9177edea42b90474a14c510 | 1,446 | package com.cassava.core;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.exceptions.InvalidQueryException;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by yan.dai on 4/11/2015.
*/
public class CassandraClusterTest {
@Test
public void testCassandraCluster... | 30.765957 | 138 | 0.637621 |
06a91849c431e8654a2a6338f0579f92a4227816 | 1,252 | package es.uniovi.asw.parser;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
public class ParserXLS implements Parser {
public List<Map<S... | 21.964912 | 75 | 0.682907 |
85e4ad91c8face98f8dae6773e93ec120c2d42ea | 2,922 | package dk.silverbullet.telemed.questionnaire.node;
import com.google.gson.annotations.Expose;
import dk.silverbullet.telemed.bloodsugar.ContinuousBloodSugarMeasurement;
import dk.silverbullet.telemed.bloodsugar.ContinuousBloodSugarMeasurements;
import dk.silverbullet.telemed.questionnaire.Questionnaire;
import dk.sil... | 37.461538 | 105 | 0.721424 |
701ba9a8f78c918f2e515086dc2a8b9dfb999cfe | 3,506 | package com.foxinmy.weixin4j.server.xml;
import java.io.IOException;
import java.io.StringWriter;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStre... | 24.517483 | 77 | 0.677125 |
2f74cb7a1bb9fa0543d4ca69ea71d33e8c5f09ad | 194 | package com.baidu.mapp.developer.bean.templatemessage;
import cn.hutool.core.annotation.Alias;
import lombok.Data;
@Data
public class MsgKey {
@Alias("msg_key")
private long msgKey;
}
| 17.636364 | 54 | 0.752577 |
06a75c0ae809aaa2dee4693746b02647435eefa9 | 2,124 | package basemod.patches.com.megacrit.cardcrawl.cards.AbstractCard;
import com.evacipated.cardcrawl.modthespire.lib.*;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.localization.LocalizedStrings;
import javassist.CtBehavior;
import java.util.ArrayList;
// This fixes an issue that is ... | 57.405405 | 121 | 0.764124 |
2203aeda5b50df29870e59df4a79c28b111d4984 | 1,684 | package org.open918.lib.encodings;
import org.open918.lib.domain.GenericTicketDetails;
import org.open918.lib.domain.TicketField;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
/**
* Converter for the 'EOSU' standard - used in Hamburg by transport company HVV (and others?)
* Only... | 28.066667 | 93 | 0.609264 |
a5e30348b1818ce6b648163272b7608cc6ef3405 | 388 | package net.varanus.sdncontroller.qosrouting;
import net.varanus.sdncontroller.qosrouting.internal.QoSRoutingManager;
import net.varanus.sdncontroller.util.module.AbstractServiceableModule;
/**
*
*/
public final class QoSRoutingModule extends AbstractServiceableModule
{
public QoSRoutingModule()
{
... | 21.555556 | 71 | 0.778351 |
cc0a15aa8e214af5286eac3692e967c60a490d9e | 2,260 | package com.jlfex.hermes.service.pojo;
import java.io.Serializable;
public class UserInfo implements Serializable {
private static final long serialVersionUID = -6137546174092886755L;
/** 编号 */
private String id;
/** 昵称 */
private String account;
/** 手机号码 */
private String cellphone;
/** 姓名 */
private Stri... | 12.021277 | 68 | 0.554867 |
24f731401dbd710ce4f06f7f2ab15195abc280ab | 5,370 | package example;
import com.luciad.imageio.webp.WebPReadParam;
import javax.imageio.ImageIO;
import javax.imageio.ImageReader;
import javax.imageio.stream.FileImageInputStream;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.ArrayList;
public class ImageReverse {
public static ArrayLi... | 34.645161 | 168 | 0.498138 |
569121e8fcc2a2b0b7beeb3e58699d8e51aa758b | 2,136 | /*
* vriUVpDisp.java
*
* Used in the Virtual Radio Interferometer.
*
* 06/Jan/1998 Nuria McKay - Extracted from vriGreyDisp.java
*
*/
import java.applet.Applet;
class vriUVpDisp extends vriGreyDisp
{
public vriUVpDisp(int x, int y, int w, int h, Applet app)
{
super(x, y, w, h, app);
... | 25.129412 | 74 | 0.482678 |
a1e34f0fb0651d1648ee038c2521d27328c9b318 | 2,665 | package ykooze.ayaseruri.codesslib.io;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import android.content.Context;
import io.reactivex.ObservableEmitter;
import io.reactivex.ObservableOnSubscribe;
imp... | 30.284091 | 109 | 0.634522 |
b5decd79ad455d66bab028ffb438f40591253223 | 9,792 | /*
* 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 ... | 28.884956 | 103 | 0.543301 |
71ded59852782fcfaf1befeaffafebce480e07e9 | 3,497 | package org.immopoly.android.fragments;
import org.immopoly.android.R;
import org.immopoly.android.app.ImmopolyActivity;
import org.immopoly.android.app.UserDataListener;
import org.immopoly.android.app.UserDataManager;
import org.immopoly.android.constants.Const;
import org.immopoly.android.helper.TrackingManager;
im... | 36.051546 | 118 | 0.756649 |
ceac01561bb72ab9fe1fc42a323bbf453f0e8691 | 2,132 | package org.openxava.util;
import java.io.*;
import java.net.*;
import java.util.*;
/**
* Reads properties files. <p>
*
* @author: Javier Paniza
*/
public class PropertiesReader {
private Class theClass;
private String propertiesFileURL;
private Properties properties;
/**
* @param propertiesFileUR... | 26.65 | 118 | 0.674484 |
e84f644658b3563384ea7205ee014de035e89f5d | 572 | package com.newhopemail.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.newhopemail.common.to.SkuReductionTO;
import com.newhopemail.common.utils.PageUtils;
import com.newhopemail.coupon.entity.SkuFullReductionEntity;
import java.util.Map;
/**
* 商品满减信息
*
* @author zao
* @em... | 23.833333 | 83 | 0.786713 |
6efd832f7c916df937a9710a4cd3c6e2feb32bb0 | 917 | package de.fh.rosenheim.aline.model.dtos.seminar;
import com.fasterxml.jackson.annotation.JsonView;
import de.fh.rosenheim.aline.model.dtos.json.view.View;
import de.fh.rosenheim.aline.util.SwaggerTexts;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
@Data
public class Sem... | 27.787879 | 85 | 0.76663 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.