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 |
|---|---|---|---|---|---|
61f02b6a64e37fef09e9a3834924e87308a64768 | 6,007 | package com.zust.itee.exam.dto;
import java.util.Date;
/**
* 全部驾驶员首页
* @author liy
*
*/
public class DriverIndex {
private Integer id;
private String org_name;
private String name;
private String birthPlace;
private Date birth;
private String gen;
private String sfzNo;
private String photo;
private Stri... | 21.607914 | 79 | 0.709672 |
78c941a1075f9966703719d76999eb82c3eb263f | 3,035 | package de.hub.mse.ttc2020.solution.M2;
import java.beans.PropertyChangeSupport;
import java.beans.PropertyChangeListener;
import java.util.Objects;
public class Person
{
protected PropertyChangeSupport listeners;
public static final String PROPERTY_id = "id";
private String id;
public static final String... | 23.710938 | 100 | 0.650082 |
755cc5ca3ad9ab0464fe9d59fbbe91684446bd5e | 1,133 | package com.reptile.util;
import java.util.HashSet;
import java.util.Set;
public class LinkQueue {
//已访问的URL集合
private static Set visitedUrl = new HashSet();
//待访问的URL集合
private static Queue unVisitedUrl = new Queue();
//获得URL队列
public static Queue getUnVisitedUrl () {
return unVisi... | 21.377358 | 112 | 0.631951 |
066de34b83877586e4ee8f6d7e37204f2c1b1798 | 90,736 | package mtr.model;
import mtr.render.MoreRenderLayers;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.util.math.MatrixStack;
public class ModelSP1900 extends ModelTrainBase {
priva... | 52.297406 | 217 | 0.741481 |
d0ea86d546bb7aad299b966fbffe9bce5b2066ef | 5,657 | package seedu.address.logic.commands;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailureWi... | 46.368852 | 120 | 0.754463 |
5f8c2b981e6c8382e416ce7fda31cc41306a3c8b | 3,588 | package com.xkcoding.scaffold.config.security.service;
import cn.hutool.core.util.ObjectUtil;
import com.google.common.collect.Sets;
import com.xkcoding.scaffold.common.status.DeleteStatus;
import com.xkcoding.scaffold.common.status.LogStatus;
import com.xkcoding.scaffold.common.status.Status;
import com.xkcoding.scaf... | 35.88 | 105 | 0.745262 |
d063d43c279248e412f3a02b2792d555f0cea9ee | 6,090 | package net.wartori.imm_ptl_surv_adapt.Items;
import net.wartori.imm_ptl_surv_adapt.CHelper;
import net.wartori.imm_ptl_surv_adapt.Register;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.... | 47.209302 | 115 | 0.637438 |
9f1185fda1b91bfb09714317992eaecdfc04dc1b | 3,401 | /*
*
*
* Copyright (c) 2022. - TinyZ.
*
* 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... | 25.192593 | 102 | 0.653337 |
803e1a5db3d2cd16525caef3e3a7ecb2f27ea36a | 1,614 | package com.qinweizhao.product.service.impl;
import com.qinweizhao.common.core.utils.DateUtils;
import com.qinweizhao.product.model.entity.PmsCategoryBrand;
import com.qinweizhao.product.mapper.PmsCategoryBrandMapper;
import com.qinweizhao.product.service.IPmsCategoryBrandService;
import org.springframework.stereotype... | 22.416667 | 78 | 0.685254 |
9f5074787e0fcafc888e05af467816545ea77b85 | 293 | package no.ntnu.dto;
/**
* Data transfer object (DTO) for submitting changes to user profile data
*/
public class UserProfileDto {
private final String bio;
public UserProfileDto(String bio) {
this.bio = bio;
}
public String getBio() {
return bio;
}
}
| 17.235294 | 73 | 0.634812 |
f832f79d13783eeebbc9274ac8884c11c4127830 | 5,156 | package yuku.filechooser;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.ActionBar;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import and... | 24.436019 | 145 | 0.683282 |
500fb5fb24ff6d8595488717145324ea4e395a7a | 1,329 | package org.archifacts.integration.axon.domain;
import static org.axonframework.modelling.command.AggregateLifecycle.apply;
import java.util.Map;
import java.util.Set;
import org.axonframework.commandhandling.CommandHandler;
import org.axonframework.commandhandling.CommandMessage;
import org.axonframework.eventsourc... | 25.075472 | 75 | 0.829195 |
b67e43f3413db40e9718fa2901b48fc3672203dd | 1,610 | package controller.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.we... | 38.333333 | 120 | 0.798137 |
9c0023988be85e5c7a24e65520d4d17d18ce1f12 | 1,085 | /*
* Copyright © 2017-2020 factcast.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 27.125 | 75 | 0.690323 |
f482acfc01f8f6e9c0ba244e02d7f08f750005d3 | 6,893 | package de.gsi.dataset.utils;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.time.temporal.ChronoUnit;
import ja... | 35.715026 | 118 | 0.606122 |
8c4b91c57923c7c8339985026957beebc93c0f7b | 1,502 | package uk.gov.pay.products.client.publicapi.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind... | 23.107692 | 61 | 0.601864 |
02bd90cdeec65929dbf942cf74a8f899a1e09c86 | 1,206 | package org.eclipse.microprofile.logging;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;
/**
* (Mock) Logger used for testing that exposes internals for Tests to interrogate.
*
* @param <T> The Type of LogEvents the Logger generates.
*/
public class MockLogger<T extends Lo... | 24.612245 | 107 | 0.681592 |
2e726d3c62edc94bdd15fede839b9ebd8db05090 | 10,202 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 35.547038 | 142 | 0.735346 |
e069be7b02e2dfa2a95b1bd6e334dff1f0d12996 | 3,262 | package com.o6.controller;
import java.security.Principal;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.mail.javamail.JavaMa... | 33.979167 | 123 | 0.76916 |
6c60e61f7ec26a19054f31edc3c22f44ee785e3f | 8,953 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// 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,
// th... | 42.43128 | 145 | 0.714621 |
8ae7787879a811f110c6cca88ecfc608dd1a3ab4 | 2,455 | package com.dianping.shield.framework;
import com.dianping.agentsdk.framework.AgentInfo;
import com.dianping.agentsdk.framework.AgentInterface;
import com.dianping.agentsdk.framework.AgentListConfig;
import com.dianping.agentsdk.utils.AgentInfoHelper;
import java.util.ArrayList;
import java.util.HashMap;
import java.... | 38.359375 | 110 | 0.594705 |
2239a5bf3dd4a0375724aad5d362332bc2207768 | 4,246 | package de.tbressler.quadratum.utils;
import static de.tbressler.quadratum.utils.GameBoardUtils.*;
import static java.lang.Math.max;
import static java.lang.Math.min;
import static java.util.Arrays.sort;
/**
* Utility class that helps calculating squares.
*
* @author Tobias Bressler
* @version 1.0
*/
public clas... | 36.290598 | 109 | 0.60975 |
74176076356281616e11eb9eadf10e8faf54540f | 400 | package com.example.domain;
// Alt+Shift+S
// Animal is an abstract class -> ✘ new -> ✘ instantiate object
public abstract class Animal {
private int legs; // attribute
public Animal(int legs) { // constructor
this.legs = legs;
}
public int getLegs() { // concrete method
return legs;
}
public abstract voi... | 20 | 63 | 0.69 |
4594e3c58f69453f702f3a8d7a1f32be05459999 | 1,880 | /*-*****************************************************************************
* Copyright 2018 MrTroble
*
* 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.ap... | 27.647059 | 101 | 0.610638 |
d7eb5382e6ab4569f686166d4a74df17fc917b73 | 1,477 | package org.wickedsource.coderadar.job.core;
import static org.wickedsource.coderadar.factories.entities.EntityFactory.job;
import static org.wickedsource.coderadar.factories.entities.EntityFactory.project;
import java.util.Date;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory... | 33.568182 | 100 | 0.796209 |
8d4d9756c53280e38edaaa6530df50a8c3af9a0d | 3,188 | /********************************************************************************
* The contents of this file are subject to the GNU General Public License *
* (GPL) Version 2 or later (the "License"); you may not use this file except *
* in compliance with the License. You may obtain a copy of the License at... | 39.358025 | 82 | 0.540464 |
4ea356cefce4b0d4cccde0e1b1463c5f05cb17ba | 634 | package com.hpy.RentHouse.order.service;
/**
* @author: beichenhpy
* @Date: 2020/5/3 10:30
*/
public interface ConfirmContractService {
/**
* 租客签合同确认
* @param oid 编号
*/
void renterConfirm(String oid);
/**
* 房东签合同确认
* @param oid 编号
*/
void ownerConfir... | 18.114286 | 59 | 0.550473 |
481110d2b8991e3b6435b0262bf68a51ff58311b | 626 | package com.kientpham.sample;
import java.util.List;
import org.springframework.stereotype.Component;
import com.kientpham.baseworkflow.BaseBuilderPrePost;
import com.kientpham.baseworkflow.BaseOmnibusDTO;
import com.kientpham.baseworkflow.WorkflowException;
@Component
public class PreBuilder implements BaseBuilder... | 25.04 | 116 | 0.821086 |
4debbde779c52e0a45401aad02ea05f6855029a2 | 1,043 | package io.onedev.server.web.page.project.blob.render.renderers.symbollink;
import org.apache.wicket.Component;
import io.onedev.server.web.PrioritizedComponentRenderer;
import io.onedev.server.web.page.project.blob.render.BlobRenderContext;
import io.onedev.server.web.page.project.blob.render.BlobRendererContributio... | 27.447368 | 80 | 0.763183 |
558f71ae0157aa9899ad668b4cf7b1bbb52d7fef | 754 | package hu.frontrider.gearcraft.events;
import hu.frontrider.gearcraft.items.StaffOfTheGhost;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraftforge.event.entity.player.PlayerInteractEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.commo... | 34.272727 | 83 | 0.767905 |
a269d070c8ad10d0300458161df79bf98350a4fa | 787 | package es.amplia.oda.comms.mqtt;
import es.amplia.oda.comms.mqtt.api.MqttClientFactory;
import es.amplia.oda.comms.mqtt.paho.MqttPahoClientFactory;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceRegistration;
public class Activator implements Bun... | 31.48 | 106 | 0.78526 |
73d57083a726c4bec5a632f7ae599c108559f3c2 | 274 | package eu.nyerel.panda.agent;
import java.lang.instrument.Instrumentation;
/**
* @author Rastislav Papp (rastislav.papp@gmail.com)
*/
public class Agent {
public static void premain(String args, Instrumentation inst) {
new Bootstrap(inst).init();
}
}
| 18.266667 | 67 | 0.70073 |
6b6f431f488c8f659baafd26637b657665250096 | 2,506 | package com.gofish.sentiment.newslinker;
import io.vertx.core.Future;
import io.vertx.core.eventbus.MessageConsumer;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.logging.LoggerFactory;
import io.vertx.rx.java.ObservableFuture;
import io.vertx.rx.java.RxHelper;
import ... | 41.766667 | 164 | 0.730646 |
1022e98a19af6d18082735edef354ad2bf0471ec | 10,146 | /*
* 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 ... | 37.164835 | 88 | 0.580919 |
46b09fca6291655f8e62cedc4229d6c1ae46b7aa | 6,266 | /*
*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*
*/
package com.microsoft.azure.sdk.iot.provisioning.security;
import com.microsoft.azure.sdk.iot.provisioning.security.exceptions.SecurityProviderException... | 48.2 | 331 | 0.728375 |
ddf9a76e3bc901fd7978e3ac51e327c200c21b47 | 1,173 | package com.telran.qa25.objects;
public class User {
private String firstName;
private String secondName;
private String email;
private String password;
public String getFirstName() {
return firstName;
}
public User setFirstName(String firstName) {
this.firstName = firstNa... | 21.327273 | 54 | 0.542199 |
712a73ea81d0e2ec94a82d7bd9cea5e0615dd0e4 | 13,087 | /*
* 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 n... | 46.243816 | 120 | 0.695652 |
0027925fd6352815aac142f57faab707308bedec | 7,497 | package com.xinonix.retrofhir.interactor;
import java.util.Date;
import com.xinonix.hl7.fhir.stu3.CodeableConcept;
import com.xinonix.hl7.fhir.stu3.Identifier;
import com.xinonix.retrofhir.Parameters;
import com.xinonix.retrofhir.Prefix;
import com.xinonix.retrofhir.Modifier;
import com.xinonix.retrofhir.service.Proc... | 32.595652 | 136 | 0.776844 |
89bd824e5cd3b4b53c2589f8c2c8e69c92006ec0 | 4,826 | /*
* Copyright (c) 2011-2025 PiChen
*/
package com.interface21.orm.hibernate;
import com.interface21.dao.CleanupFailureDataAccessException;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.... | 44.275229 | 142 | 0.70949 |
5935b647bed8e1a245e34e27be489d39f0284f2d | 495 |
package Exercicios;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Modelo1 {
public static void main(String[] args) {
int num;
num=Integer.parseInt(JOptionPane.showInputDialog ("Digite um numero:"));
System.out.println(num);
if (num%2=... | 20.625 | 80 | 0.59596 |
b531ffb17e9e0897cc088defb1dba05133ead469 | 1,647 | package io.odpf.firehose.config;
import io.odpf.firehose.config.converter.MongoSinkMessageTypeConverter;
import io.odpf.firehose.config.enums.MongoSinkMessageType;
public interface MongoSinkConfig extends AppConfig {
@Key("SINK_MONGO_CONNECT_TIMEOUT_MS")
@DefaultValue("30000")
int getSinkMongoConnectTim... | 27.915254 | 71 | 0.761384 |
6c1b2ec6fd01c0e22f3b3e554522392efbd37978 | 14,138 | import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Optional;
import java.util.Scanner;
import java.util.Set;
import java.util.stream.Collectors;
class Solution {
private static class Map {
private final int rowCount;
private final int... | 27.613281 | 211 | 0.701019 |
210349615053f0b1620226f1e2471a0b274b25d5 | 192 | package com.zcy.hello.springboot.mybatis.mapper;
import com.zcy.hello.springboot.mybatis.entity.TbItem;
import tk.mybatis.MyMapper;
public interface TbItemMapper extends MyMapper<TbItem> {
} | 27.428571 | 56 | 0.822917 |
9521a2a9c00e8e7f5a6934274b84bb885a7a6eb6 | 1,983 | /**
* Copyright (C) 2016 - 2030 youtongluan.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 27.164384 | 85 | 0.666667 |
1c8f0297030b95f032bb5f8bb917e92967e4c3f6 | 1,452 | package bio.terra.stairway;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class TestStepCreateFile implements Step {
private String filename;
private String text;
public TestStepCreateFile(String filename, String... | 33 | 89 | 0.659091 |
5813f6266410f7cd66f5a2f0b7128a41e86e56eb | 922 | package com.example.nctai_trading.coinbasePro;
import com.google.gson.annotations.SerializedName;
public class coinBaseBody {
@SerializedName("price")
private Double price;
@SerializedName("size")
private Double size;
@SerializedName("side")
private String side;
@SerializedName("produc... | 18.078431 | 50 | 0.624729 |
3730e7c0ff132cfb933be53effaf99e888d1a6f3 | 457 | package com.grpc.java.service;
import com.grpc.java.kernel.entity.IMDiscovery;
import java.util.List;
/**
* Created by wx on 2017/10/27.
*/
public interface IDiscoveryService {
IMDiscovery getDiscoveryById(Integer id);
IMDiscovery getDiscoveryByName(String name);
List<IMDiscovery> getAllDiscovery();
... | 19.869565 | 48 | 0.750547 |
3e5a2772c19ef73e3be97e9df8ce352058fe4ff6 | 1,416 | /*
* Copyright 2016 dc-square 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
*
* Unless required by applicable law or agree... | 31.466667 | 89 | 0.757768 |
ae87673da5177ce2832c2b6157fce9b5fdf394c9 | 6,023 | package com.kja.questions;
import static spark.Spark.exception;
import static spark.Spark.get;
import static spark.Spark.post;
import static spark.SparkBase.port;
import static spark.SparkBase.staticFileLocation;
import java.awt.Desktop;
import java.io.File;
import java.io.IOException;
import java.io.StringWriter;
im... | 30.573604 | 99 | 0.688195 |
ca51bc450d67f69d00e4dbaca1888f7cac54756a | 6,032 | /*******************************************************************************
* Copyright (c) 2011, 2014 Kyungpook National University and Contributors
*
* Contributor(s): - Hyun-Je Song
*******************************************************************************/
package kr.ac.knu.ml.exec.extractor;
... | 34.272727 | 82 | 0.696452 |
ebd479595f44e4f9dfb8811b3f78f3270015715c | 1,308 | package com.hustlebar.hustic.index;
import com.hustlebar.hustic.util.HusticClientWrapper;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.EntityBuilder;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPut;
import org.apache.http.entity.ContentType... | 30.418605 | 84 | 0.691131 |
fa9e29d395ad226ed485383a53a56909a1b588e2 | 552 | package org.timecrafters.FreightFrenzy.HardwareTesting.Engines;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.cyberarm.engine.V2.CyberarmEngine;
import org.timecrafters.FreightFrenzy.Competition.Common.Robot;
import org.timecrafters.FreightFrenzy.HardwareTesting.States.VuforiaTestState;
@TeleOp(n... | 30.666667 | 78 | 0.777174 |
1c2da85d0bf2332dbf77d2fbce9984b4ea8ba974 | 2,645 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.opentracingshim;
import io.opentelemetry.api.baggage.Baggage;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.context.Context;
import io.opentelemetry.context.propagation.TextMapPropagator;
im... | 31.117647 | 99 | 0.715312 |
62e4e61125ca77475f9db2e1b373e1fc9e26d626 | 339 | package no.nav.data.catalog.policies.app;
public class LocalAppStarter {
public static void main(String[] args) {
System.setProperty("spring.profiles.active", "local");
System.setProperty("ENVIRONMENT_CLASS", "preprod");
System.setProperty("NAIS_NAMESPACE", "default");
AppStarter.m... | 28.25 | 62 | 0.675516 |
e7e6907aefbe99182f667dbbb5b6344d81c54df9 | 2,482 | package at.o2xfs.xfs.v3.cdm;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonP... | 22.563636 | 107 | 0.734891 |
e293d18556de12e7a6f403b0d499801274963c33 | 1,335 | package org.jax.gweaver.variant.orthology.io;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import org.junit.Aft... | 22.25 | 80 | 0.733333 |
f82ea4b31aeaf764640e63cda6f677b695f6950c | 2,274 | package com.github.bjuvensjo.rsimulator.aop;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import java.io.File;... | 33.940299 | 101 | 0.692612 |
4c063a0dbe59848eebc9a3f28ab2e7ebb5dc25bd | 11,241 | package objects;
import gui.Color;
import vector.Vector2f;
import vector.Vector3f;
public class SimpleBoxVoxelObject extends ShapedObject3 {
int[][][] data;
public SimpleBoxVoxelObject(int sizex, int sizey, int sizez) {
data = new int[sizex][sizey][sizez];
}
public SimpleBoxVoxelObject(int[][][] data) {
thi... | 40.876364 | 99 | 0.513655 |
375584fed3117d319107442415d8cd589bd678be | 934 | package org.clever.hinny.spring.config;
import lombok.Data;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import java.util.Collections... | 24.578947 | 79 | 0.718415 |
acacf232476e598eadb813f15ffc9cafb73b08c3 | 331 | import java.util.Scanner;
class hello {
public static void main(String[] args) {
Scanner s =new Scanner(System.in);
//System.out.println("wrong input");
System.out.println("please enter a number5");
int z = s.nextInt();
System.out.println(z);
... | 25.461538 | 57 | 0.534743 |
838ff22cb1eefcefee5566c93ba5e1a560b7a367 | 24,167 | /*
* 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... | 26.586359 | 78 | 0.583564 |
787e1a793473a7917779017b1a95bcf8fae8d954 | 1,280 | package org.sheinbergon.needle.jna.linux.structure;
import com.sun.jna.Structure;
import java.util.List;
public class CpuSet extends Structure {
/**
* sched.h derived CPU set-size constant.
*/
private static final int CPU_SETSIZE = 1024;
/**
* sched.h derived CPU bitmask size.
*/
... | 21.694915 | 94 | 0.596094 |
40cc288645034e04ef6443dcea213255b3fcfb8e | 5,044 |
package pokemoncard;
import java.util.ArrayList;
import java.util.Random;
public class Deck {
ArrayList<Carta> deck;
public Deck(){
deck = carregar();
}
public void addCarta(Carta carta) {
deck.add(carta);
}
public int getSize(){
return de... | 38.503817 | 93 | 0.587431 |
ea2c0f250124f56971880b133016657ed8ecfd1b | 2,786 | package com.eltechs.axs.container.impl;
import com.eltechs.axs.container.annotations.PostAdd;
import com.eltechs.axs.container.annotations.PreRemove;
import com.eltechs.axs.helpers.Assert;
import com.eltechs.axs.helpers.ReflectionHelpers;
import com.eltechs.axs.helpers.ReflectionHelpers.Filters;
import com.eltechs.axs... | 50.654545 | 191 | 0.670854 |
4a3d9eb0f56c88e2e49f28dfaff638af17735ada | 750 | package Concurrent;
/**
* Project: LearnJava
* Package: Concurrent
* Author: Novemser
* 2017/4/5
*/
public class Profiler {
private static final ThreadLocal<Long> TIME_THREADLOCAK = new ThreadLocal<Long>() {
@Override
protected Long initialValue() {
return System.curre... | 24.193548 | 88 | 0.592 |
c2c104a82e6dce9d7994613f501168f05f3db123 | 2,778 | package com.jeff.tianti.common.service;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specif... | 17.042945 | 68 | 0.613751 |
45d19112464c1e3aaf0139dfbf5c63e2a5dd1c5d | 2,864 |
package com.ysy.session;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
/**
* 提供缓存api
*
* @author yaosiyuan
*
*/
public class CacheManager {
private Map<String, Cache> cacheMap =... | 20.753623 | 85 | 0.654679 |
3c74b77c8f49b250eb198e48c667db22995e7e89 | 24,664 | /*
* Copyright (c) 2014, Regents of the University of California
* 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... | 27.900452 | 122 | 0.578617 |
b0415e7358815b7731bf5756c27751d616db8da0 | 833 | package com.github.brane08.pagila.seedworks.beans;
import com.github.brane08.pagila.seedworks.entities.PagedList;
import java.io.Serializable;
import java.util.List;
public class ApiResult<T> implements Serializable {
protected final boolean success;
protected final T data;
public ApiResult(boolean success, T d... | 22.513514 | 75 | 0.721489 |
c5435c5057e5029a33eddfb98ccb98bef80bc178 | 712 | package redstoneparadox.packup.test;
import net.fabricmc.fabric.api.block.FabricBlockSettings;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.util.registry.Registry;
public class PackUpTests {
private ... | 35.6 | 99 | 0.77809 |
8d7f573295be3ee0b01d3842a9e1d3ca5de9dd4d | 1,162 | package net.runelite.client.plugins.soulwars;
import javax.inject.Inject;
import net.runelite.api.Client;
import net.runelite.client.ui.overlay.*;
import net.runelite.client.ui.overlay.components.LineComponent;
import java.awt.*;
public class AvatarOverlay extends OverlayPanel {
private final SoulWarsPlugin plu... | 32.277778 | 171 | 0.666093 |
614aa26f48526d6bfa398d30905ba400b8ae4120 | 98 | package com.gof.example.creational.factory;
public interface Developer {
void writeCode();
}
| 16.333333 | 43 | 0.755102 |
1dbac114ba7291e521fcdcd632d68eedaabac7c7 | 406 | package org.opensrp.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
import java.util.Set;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class ExportImagesSummary {
private List<ExportFlagProblemEventImageMeta... | 20.3 | 92 | 0.839901 |
36160a7cb3b002d4fedc688d2987becafac006e9 | 919 | // package com.taotao.cloud.sys.biz.service.impl;
//
// import com.taotao.cloud.data.mybatis.plus.service.impl.SuperServiceImpl;
// import com.taotao.cloud.sys.biz.entity.SysUserRole;
// import com.taotao.cloud.sys.biz.mapper.SysUserRoleMapper;
// import com.taotao.cloud.sys.biz.service.ISysUserRoleService;
// import o... | 28.71875 | 128 | 0.697497 |
91c167d3f2276932b850293f28df70370efef1b6 | 357 | package com.yongj.exceptions;
/**
* Exception indicating the file extension with same name exists already
*
* @author yongjie.zhuang
*/
public class DuplicateExtException extends IllegalArgumentException {
public DuplicateExtException(String e) {
super(e);
}
public DuplicateExtException(Throw... | 18.789474 | 72 | 0.70028 |
73bdafb09a3493462278146bf3bbbccecfe534d3 | 2,252 | package com.shupro.oa.mydemo.collection.example;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.TreeSet;
/*
* 模拟斗地主洗牌和发牌并对牌进行排序
* 思路:
* A:创建一个HashMap集合
* B:创建一个ArrayList集合
* C:创建花色数组和点数数组
* D:从0开始往HashMap里面存储编号,并存储对应的牌
* 同时往ArrayList里面存储编号即可。... | 24.747253 | 73 | 0.620337 |
58b835e898630d7d6bfa3d845b615a42745c8eb8 | 3,511 | /*
* Licensed by the author of Time4J-project.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. The copyright owner
* licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance
* w... | 30.267241 | 110 | 0.647964 |
44c1eb84b91585fc7f1609d433f5c340b4b2ecf5 | 3,523 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 41.940476 | 129 | 0.740562 |
c149afc29c3e982ad211debf3ab30619cc7424b0 | 384 | package mirror.android.view;
import mirror.MethodReflectParams;
import mirror.RefClass;
import mirror.RefMethod;
public class CompatibilityInfoHolder {
public static Class<?> Class = RefClass.load(CompatibilityInfoHolder.class, "android.view.CompatibilityInfoHolder");
@MethodReflectParams({"android.content.r... | 32 | 120 | 0.799479 |
2d4313bd5622430a071df0a55016288babb02a8a | 3,326 | package com.avaje.ebeaninternal.server.lib.sql;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.avaje.ebean.config.GlobalProperties;
import com.avaje.ebeaninternal.server.lib.util.MailEvent;
import com.avaje.ebeaninternal.server.lib.util.MailListener;
import com.avaje.ebeaninternal... | 30.513761 | 87 | 0.598617 |
4c6b210ba75d8ddf2298310190e3e14178b0d55d | 1,623 | package com.alpha.module_common.service;
import android.content.Context;
import com.alpha.module_common.Constants;
import com.alpha.module_common.okhttp.OkHttpUtils;
import java.util.HashMap;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.fastjson.Fas... | 27.982759 | 77 | 0.671596 |
d0063e9f4e0a44537b5fd01743bee4fef7464e1d | 1,861 | package nxt.connection;
import nxt.object.DataFieldType;
/**
* Stellt ein Datenfeld, welches vom PC geupdatet werden soll dar
* @author Simon
*/
public class NxtDataField{
private String name;
private DataFieldType type;
private Object value;
/**
* Nicht manuell instanzieren!
*/
@Depr... | 21.639535 | 86 | 0.640516 |
437f9c67da96966f9dfdd1754beddcc2fbb81747 | 2,969 | package javassist.convert;
import javassist.bytecode.Descriptor;
import javassist.bytecode.StackMap;
import javassist.bytecode.StackMapTable;
import javassist.CannotCompileException;
import javassist.bytecode.CodeIterator;
import javassist.CtClass;
import javassist.bytecode.CodeAttribute;
import javassist.bytecode.Con... | 39.586667 | 135 | 0.554059 |
7c81cf64a35549ff13cd489f14e09efb878e9beb | 11,527 | /**
* This class was created by <WireSegal>. It's distributed as
* part of the Quark Mod. Get the Source Code in github:
* https://github.com/Vazkii/Quark
* <p>
* Quark is Open Source and distributed under the
* CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB
* <p>
* File C... | 33.123563 | 163 | 0.764032 |
a11f9c90ea0ff9b714d88457f3ea4d5a07168533 | 4,198 | /*
* Copyright 2021 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 38.513761 | 128 | 0.753216 |
51f50bec01626793a692ec19ef2bb2e4153cccff | 5,340 | package engine.evaluator.bet;
import engine.bet.Bet;
import engine.dealer.Card;
import engine.hand.ClassifiedHand;
import engine.hand.HandOutcome;
import engine.hand.PlayerHand;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
cl... | 36.575342 | 68 | 0.633333 |
2cf1e38dda13cedd79e5ccbd701ea92dbc0b56ec | 3,959 | package org.egov.bookings.contract;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.egov.common.contract.response.ResponseInfo;
import org.egov.bookings.model.ActionHistory;
import org.egov.bookings.mo... | 24.438272 | 116 | 0.71028 |
d53042f0ea922bd2590115466c0755640a23bee4 | 5,629 | /*******************************************************************************
* Copyright (c) 2017 Pegasystems Inc. All rights reserved.
*
* Contributors:
* Manu Varghese
*******************************************************************************/
package com.pega.gcs.tracerviewer.view;
import java.aw... | 34.115152 | 110 | 0.669924 |
779f6dc109ec85bd2528cfa0917194568d8fdb44 | 1,368 | package org.foraci.mxf.mxfTool.gui;
import org.foraci.mxf.mxfReader.PartitionPack;
import org.foraci.mxf.mxfReader.RandomIndexPack;
import org.foraci.mxf.mxfReader.entities.GroupNode;
import org.foraci.mxf.mxfTool.dataMgrs.AnalyzeEssenceContainerController;
import org.foraci.mxf.mxfTool.dataMgrs.EssenceTrack;
... | 35.076923 | 74 | 0.761696 |
030231a7da5e70ac7b315287c1166614652dfc52 | 3,053 | 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 ... | 22.954887 | 810 | 0.762529 |
347670ee912e96823fdf26c0d0596d4ee2e16629 | 3,127 | package com.figaf.integration.cpi.client;
import com.figaf.integration.common.client.RestTemplateWrapperHolder;
import com.figaf.integration.common.entity.ConnectionProperties;
import com.figaf.integration.common.factory.HttpClientsFactory;
import com.figaf.integration.common.factory.RestTemplateWrapperFactory;
import... | 41.144737 | 147 | 0.710585 |
e575fe7f55063cdfc8ecb4caa07bf6d353355c89 | 1,562 | package no.ion.jake.graph;
import java.util.EnumSet;
import java.util.Map;
import java.util.Objects;
public class BuildNode<ID extends NodeId> {
private static final Map<State, EnumSet<State>> LEGAL_STATE_TRANSITIONS = Map.of(
State.PENDING, EnumSet.of(State.ACTIVE));
private final BuildMeta<ID> ... | 32.541667 | 120 | 0.654289 |
d80c43b7fcd0597c646309e0872e18cdaa02191e | 2,046 | package com.hubspot.singularity.data;
import static com.google.common.base.Preconditions.checkState;
import javax.inject.Singleton;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.recipes.atomic.AtomicValue;
import org.apache.curator.framework.recipes.atomic.DistributedAtomi... | 26.571429 | 105 | 0.7087 |
c409b125551eb883357d44df4501b12d8c394926 | 815 | package com.lovecyy.oauth2.service.config.validate;
import lombok.Data;
import java.awt.image.BufferedImage;
import java.time.LocalDateTime;
/**
* @author ys
* @topic 验证码信息类
* @date 2019/9/18 14:59
*/
@Data
public class ValidateCode {
/**
* 随机数
*/
private String code;
/**
* 过期时间
... | 18.953488 | 68 | 0.629448 |
909e61d49577768d0be38b55647dd3c4e28ed6ff | 1,554 | package com.giffing.bucket4j.spring.boot.starter.config.metrics.actuator;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;
import com.giffing.bucket4j.spring.boot.sta... | 28.254545 | 93 | 0.736165 |
52472f4637509134b7ccf7895e89f9ff4e58d088 | 2,020 | // Copyright 2007 The Apache Software Foundation
//
// 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 l... | 22.444444 | 75 | 0.643564 |
c72628bb9758f17bb36cdcfa29a7381740116213 | 6,590 | /**
* This software is released as part of the Pumpernickel project.
* All com.pump resources in the Pumpernickel project are distributed under the
* MIT License:
* https://raw.githubusercontent.com/mickleness/pumpernickel/master/License.txt
* More information about the Pumpernickel project is available here:
* h... | 30.368664 | 124 | 0.583612 |
cde324f894923bd0ff2fe823b0bb01cbce7cf7dc | 3,566 | package com.grainoil.system.controller.application_supporting_platform;
import com.grainoil.common.core.controller.BaseController;
import com.grainoil.common.core.domain.R;
import com.grainoil.system.domain.TbOrganize;
import com.grainoil.system.service.ITbOrganizeService;
import io.swagger.annotations.Api;
import io.... | 29.716667 | 213 | 0.669097 |
613ef4de4ab4993781f813d424ae8001e5b19280 | 719 | package agency.tango.viking.example.dialog.mvp;
import agency.tango.viking.annotations.AutoModule;
import agency.tango.viking.example.R;
import agency.tango.viking.mvp.DialogFragmentScreen;
import androidx.fragment.app.DialogFragment;
@AutoModule
public class VikingDialogFragment extends DialogFragmentScreen<VikingDi... | 32.681818 | 112 | 0.815021 |
4947e467ff63d32950ab02fc92aaadec96a37bef | 1,139 | /*
* acme4j - Java ACME client
*
* Copyright (C) 2016 Richard "Shred" Körber
* http://acme4j.shredzone.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* This program is distributed in the hope that it will be useful,... | 29.973684 | 86 | 0.738367 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.