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 |
|---|---|---|---|---|---|
a2d9d1886414f44d1f4353d9fec8f4491bce69b4 | 3,004 | package movie;
import javax.persistence.*;
import org.hibernate.annotations.SourceType;
import org.springframework.beans.BeanUtils;
import java.util.List;
@Entity
@Table(name="Book_table")
public class Book {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
private Integer qty;
... | 25.033333 | 91 | 0.597204 |
5abf51565982e59dcbf8d215e9809f37a09e9c6d | 1,855 | package self.learning.interview.coding.questionbank.algorithm;
import java.util.Scanner;
public class Solution4 {
/* The function moves non-empty elements in Y[] in the beginning and then merge it with X[] */
private static int[] specialMerge(final int[] X, final int[] Y) {
/* moves non-empty elements... | 37.857143 | 103 | 0.586523 |
306219c40f087316c73d16967dcaccee8f25b142 | 235 | package com.nuhkoca.udacitymoviesapp.view.review;
/**
* Created by nuhkoca on 3/1/18.
*/
public interface FullReviewActivityView {
void onReviewLoaded();
void onBottomSheetCreated();
void onReviewOpenedOnBrowser();
}
| 16.785714 | 49 | 0.72766 |
443b49c73c71fb14009a2efb4590b4062b7385d4 | 6,975 | /**
* Copyright (c) 2009 Perforce Software. All rights reserved.
*/
package com.perforce.team.ui.shelve;
import java.text.MessageFormat;
import com.perforce.team.core.p4java.IP4PendingChangelist;
import com.perforce.team.core.p4java.IP4Resource;
import com.perforce.team.core.p4java.P4Runnable;
import com.perforce.... | 32.900943 | 111 | 0.631971 |
8e33b7d47282e9016caf891515fca232e50af6f7 | 922 | package com.exam.service.impl;
import com.exam.entity.Admin;
import com.exam.entity.Student;
import com.exam.entity.Teacher;
import com.exam.mapper.LoginMapper;
import com.exam.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @a... | 25.611111 | 68 | 0.751627 |
fdf49b504774923190e8c92ef875e62478f26d1f | 2,529 | package com.shri.springsecurity.web.controller;
import javax.validation.Valid;
import com.shri.springsecurity.persistence.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.spr... | 34.175676 | 101 | 0.719257 |
ae2c3337857106d1ddc4a96ac5ccbb10db544d06 | 813 | package com.xiaosa.spring;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;
/**
* @author yongcezhang
* @date 20... | 30.111111 | 104 | 0.810578 |
99540fdd74a839c6a55664c17d7b1c36ac9079e3 | 767 | package com.xiaoleilu.hutool.json;
import com.xiaoleilu.hutool.getter.OptNullBasicTypeFromObjectGetter;
/**
* 用于JSON的Getter类,提供各种类型的Getter方法
* @author Looly
*
* @param <K> Key类型
*/
public abstract class JSONGetter<K> extends OptNullBasicTypeFromObjectGetter<K>{
/**
* 获得JSONArray对象
*
* @param key KEY
... | 21.914286 | 80 | 0.720991 |
e8a6716124bc691f9b5d9950d58c9b867ffca147 | 6,640 | package predict;
import data.Checkin;
import data.PredictionDataset;
import data.Sequence;
import data.SequenceDataset;
import demo.Demo;
import model.ShareHMM;
import myutils.ScoreCell;
import myutils.TopKSearcher;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList... | 35.132275 | 88 | 0.533584 |
afc21c44fedf585f2012c7b55ab476cfbbe79ea4 | 479 | public class test_code_point
{
public static void main(/*String[] argv*/)
{
String s = "!𐤇𐤄𐤋𐤋𐤅";
assert(s.codePointAt(1) == 67847);
assert(s.codePointBefore(3) == 67847);
assert(s.codePointCount(1,5) >= 2);
assert(s.offsetByCodePoints(1,2) >= 3);
StringBuilder sb = new Str... | 31.933333 | 107 | 0.634656 |
5ad029ca07d65c933db947264603d38d51595a32 | 3,580 | /*
* XML Type: descriptionType
* Namespace: http://openejb.apache.org/xml/ns/corba-tss-config-2.1
* Java type: org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType
*
* Automatically generated - do not modify.
*/
package org.apache.geronimo.corba.xbeans.csiv2.tss.impl;
/**
* An XML descriptionType(@http... | 28.870968 | 167 | 0.582961 |
cfb08b88d81f871fb0ba85dbc12aee818868a103 | 133 | package com.astronomvm.core.model.meta.operation.trigger;
public class ScheduledMetaFlowTriggerMeta extends MetaFlowTriggerMeta {
}
| 26.6 | 71 | 0.857143 |
b0750f8f9fd259867ecfc32560d2ecea8773da47 | 7,940 | package de.dlyt.yanndroid.oneui.preference;
import android.app.Dialog;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androi... | 31.259843 | 145 | 0.637783 |
5fdd53acdd95573c23decacd569da418c9bc71c3 | 14,107 | /*
* Copyright 2013 Christian Felde (cfelde [at] cfelde [dot] 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
*
* Un... | 37.419098 | 165 | 0.626781 |
c2d5df864f21e096eb82e0b1c2014b63407c4612 | 409 | package com.algaworks.algafood.domain.exception;
public class CidadeNaoEncontradaException extends EntidadeNaoEncontradaException {
private static final long serialVersionUID = 1L;
public CidadeNaoEncontradaException(String mensagem) {
super(mensagem);
}
public CidadeNaoEncontradaException(Long cidadeId) {
... | 25.5625 | 82 | 0.797066 |
7a7c260b849bd084de780c98d84ab20de345f510 | 690 | package com.luoluo.delaymq.mysql;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName ConsumerMsgData
* @Description: 消费数据记录
* @Author luoluo
* @Date 2020/7/9
* @Version V1.0
**/
@Getter
@Setter
@ToString
@NoArgsConstructor
@... | 16.829268 | 73 | 0.746377 |
a37637fc27ffdab444a9b721006e5c36ffb71063 | 998 | package injection;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.ParameterContext;
import org.junit.jupiter.api.extension.ParameterResolutionException;
import org.junit.jupiter.api.extension.ParameterResolver;
import org.junit.platform.commons.util.AnnotationUtils;
pub... | 39.92 | 135 | 0.768537 |
6d631c30f725b49efe6bf1b0692b5854170eace3 | 903 | package com.custom.rest;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.lcs.wc.product.LCSProduct;
import com.lcs.wc.util.FormatHelper;
import wt.util.WTException;
@JsonAutoD... | 30.1 | 120 | 0.776301 |
c28ae2465cf47ecb4127e2dc81221238a4545599 | 887 | package com.example.demo.controller;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
//@Component // normal component
@WebFilter // java ee servlet filter
public class MyServletFilter implements Filter {
@Override
... | 31.678571 | 152 | 0.746336 |
dfff1835e28559feab58472987b24ac3a68ae7bd | 2,301 | /*
* Copyright 2001-2004 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 b... | 25.853933 | 79 | 0.608866 |
3a427c07e4646de4caf0e03effdcacf976e0356c | 969 | /* Periodic thread in Java */
import javax.realtime.*;
public class Sporadic_task {
public static void main(String[] args)
{
/* period: 30ms */
RelativeTime period = new RelativeTime(3000 /* ms */, 0 /* ns */);
/* release parameters for periodic thread: */
SporadicParameters sporadicParameters ... | 23.634146 | 86 | 0.616099 |
c94ffa1068a504bea9d1d8da06eb53642e78318c | 147 | package com.wentong.mytest;
import lombok.Data;
@Data
public class Address {
private String streetName;
private String streetNumber;
}
| 12.25 | 32 | 0.741497 |
22d3bb055be21268f848c97c6cfb149cdda4c3df | 3,783 | /*
* Copyright 2016 Open Networking Laboratory
*
* 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 la... | 28.877863 | 95 | 0.633888 |
5840441ed21a446a249fd6593bd3daf350409b00 | 6,984 |
package de.fraunhofer.iem.swan.io.doc.ssldoclet;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>Java-Klasse für Constructor... | 22.973684 | 101 | 0.545819 |
2e0cffe097b75441bcf5820f123b8ec0443fc772 | 469 | package com.hrm.pojo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Transaction {
private Integer trade_tr_id;
private Integer user_id;
private Integer product_id;
private Integer specificat... | 23.45 | 38 | 0.754797 |
fcf856f2387a1abec061e1b0faa288a75ba524c1 | 135 | package com.hy.cat;
/**
* @author CXQ
* @date 2021/11/12
*/
public enum Sex {
/**
* 设置性别
*/
male,female,公,母;
}
| 9 | 20 | 0.481481 |
fcebbee78698711680ce22f8760eb41e56ee1547 | 6,373 | package openperipheral.addons.glasses;
import com.google.common.collect.Maps;
import java.util.Map;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import openmods.network.event.NetworkEvent;
import openperipheral.addons.Config;
import openperipheral.addons.glasses.GlassesE... | 30.061321 | 172 | 0.75914 |
cfeaf6118092a9c601e089e9548ac40b5b636aa5 | 765 | package org.hugh.structural.proxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* 被代理对象必须有接口
*
* @author Hao Du
* @version 1.0
* @date 2021/6/12
*/
public class JdkProxy<T> implements InvocationHandler{
private final T target;
public J... | 21.857143 | 87 | 0.63268 |
3b33238b6d9205994e579b01fc3a12096f08a531 | 1,242 | package jp.wasabeef.fresco.processors;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.facebook.imagepipeline.request.BasePostprocessor;
import java.util.ArrayList;
import java.util.List;
public class CombinePostProcessors extends BasePostprocessor {
p... | 24.84 | 71 | 0.664251 |
e5e97b512a28f8a39e097adf77a315b0cdbc613b | 20,616 | package cn.k12soft.servo.module.charge.service;
import cn.k12soft.servo.domain.*;
import cn.k12soft.servo.domain.enumeration.StudentAccountOpType;
import cn.k12soft.servo.module.account.domain.StudentAccount;
import cn.k12soft.servo.module.account.service.StudentAccountChangeRecordService;
import cn.k12soft.servo.modu... | 54.829787 | 206 | 0.664872 |
53ee74a4689bd7c2c81b344269b536c6b0f2ff7e | 4,289 | package DnD.gui;
import java.awt.*;
import java.awt.event.*;
import java.util.LinkedList;
import DnD.model.ClassInfo;
import DnD.model.MUBase;
import DnD.model.MagicUser;
/** This is the GUI panel for basic magic user information (spellbooks)
* It creates, displays and coordinates 2 other panels:
* ... | 26.80625 | 101 | 0.703194 |
b684c704688c2e309ba7ae54bb9c3670bb9fcfe2 | 1,968 | package thor12022.hardcorewither.entity;
import thor12022.hardcorewither.ModInformation;
import net.minecraft.entity.EnumCreatureAttribute;
import net.minecraft.entity.IEntityLivingData;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.en... | 31.238095 | 100 | 0.754065 |
23e6011985e7f92654ff063844f7127b7794e493 | 997 | package com.ilargia.games.systems;
import com.badlogic.gdx.utils.Array;
import com.ilargia.games.components.View;
import com.ilargia.games.core.CoreMatcher;
import com.ilargia.games.core.Entity;
import com.ilargia.games.core.Pool;
import com.ilargia.games.core.Pools;
import com.ilargia.games.entitas.Group;
import com.... | 24.317073 | 98 | 0.728185 |
4bf01c91885d3a8aea814b4f4fa7531aebd202db | 6,885 | package mekanism.common.tile;
import ic2.api.tile.IWrenchable;
import io.netty.buffer.ByteBuf;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import mekanism.api.Coord4D;
import mekanism.api.MekanismConfig.general;
import mekanism.api.Range4D;
import mekanism.common.Mekanism;
import mek... | 22.067308 | 151 | 0.729412 |
46cfd9d3c4bfeecad70b9de9195a27183dddbe00 | 4,392 | package com.djontleman.album;
import org.junit.jupiter.params.provider.EnumSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import j... | 30.929577 | 100 | 0.535747 |
1cb31a050d6d0b0e62f6f29b1867e61157b39bf6 | 8,727 | /*
* Copyright 2002-2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 44.075758 | 153 | 0.744586 |
d1b251518578caac04c56c84348c98309bde2d37 | 1,315 | /*
* 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 ... | 32.073171 | 75 | 0.719392 |
f638cbf1313d887f37b8724fb08d096e6a93e442 | 3,107 | /**
* Copyright © 2010-2017 Atilika Inc. and contributors (see CONTRIBUTORS.md)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. A copy of the
* License is distributed with this work in the LICENSE.md file. You may
* also obta... | 31.704082 | 108 | 0.650467 |
5e58020f7f3bd94b9fbe8b02f8972475e1a45ced | 5,215 | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.util.refinement;
import com.go... | 34.309211 | 98 | 0.707191 |
446b81923e170593db0fe3fece90ecd268fbcc5e | 218 | package com.sbur.service;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SburRedisServiceApplicationTests {
@Test
void contextLoads() {
}
}
| 15.571429 | 60 | 0.793578 |
a7e1e8a268c2714c13ce7ef8d0d6af7a81c25931 | 1,653 | package com.wuhaowen.rxsocketio;
import android.support.annotation.NonNull;
import io.reactivex.BackpressureStrategy;
import io.reactivex.Flowable;
import io.reactivex.FlowableOnSubscribe;
import io.socket.client.Socket;
public class RxSocketIO {
public static Flowable<Msg> on(@NonNull final Socket socket, @NonN... | 33.06 | 99 | 0.564428 |
6cca425ab49d0c08380be863cfcd66716fa1a14f | 1,606 | package step;
import io.qameta.allure.Step;
import model.CleanRs;
import model.Order;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.testng.Assert;
import org.testng.asserts.SoftAssert;
import utils.ResponseUtil;
public class OrderStep extends BaseStep {
private final static Logge... | 44.611111 | 136 | 0.737235 |
e42553506729638d25c605acc29ec4a209ce3168 | 546 | package com.lynxcat.entities;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class NightingaleNote {
private String id;
private String ident;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Strin... | 15.6 | 61 | 0.712454 |
f5ccb9e7822d01739a22b224e6be71ee873cb835 | 7,772 | /*******************************************************************************
* Copyright 2021 Danny Kunz
*
* 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.... | 42.010811 | 210 | 0.429619 |
9ca21e09af6757b893cd141a7582203b55a02a64 | 1,518 | package org.zongjieli.leetcode.question.daily.year2021.month12.week4;
import java.util.Arrays;
/**
* 冬季已经来临,设计一个有固定加热半径的供暖器向所有房屋供暖
* 在加热器的加热半径范围内的每个房屋都可以获得供暖
* 现在,给出位于一条水平线上的房屋 houses 和供暖器 heaters 的位置
* 请找出并返回可以覆盖所有房屋的最小加热半径
*
* 说明:所有供暖器都遵循半径标准,加热的半径也一样
*
* 1 <= houses.length, heaters.length <= 3 * 10^4
* 1 ... | 29.764706 | 120 | 0.576416 |
9e8815df4dec59da866fe9ac3c4e0364283f5759 | 3,046 | package users;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.nio.charset.StandardCharsets;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.util.*;
import ... | 26.034188 | 116 | 0.714051 |
786e5042314f412512908d49a7e181f746e4d52e | 233 | package com.suk.blog.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suk.blog.entity.Tags;
/**
* 书签 数据层
*
* @author suk
* @date 2019-09-27
*/
public interface TagsMapper extends BaseMapper<Tags> {
} | 16.642857 | 55 | 0.725322 |
93f688bdec1af12c1e132cb6d86db84f6c37c757 | 755 | package com.simibubi.create.lib.mixin.accessor;
import java.util.Map;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.renderer.entity.EntityRenderDispatcher;
import net.minecra... | 31.458333 | 68 | 0.817219 |
aad438a53437965d6fd1e3bd7d19f0259c0ff83b | 1,581 | package org.jamocha.sample.im;
import java.util.Calendar;
import java.util.List;
public class Message {
public static final int QUEUED = 100;
public static final int SENT = 200;
public static final int DELAYED = 300;
public static final int RECEIVED = 400;
public static final int RETURNED = 500;
private Strin... | 21.364865 | 50 | 0.73055 |
75c2353e6ac3bdf310072572e196eb77dbe17f4e | 2,323 | package tutoraid.ui;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import tutoraid.model.student.Student;
/**
* A UI component that displays information of a {@code Student}. The full student card displays every progress entry.
*/
public class FullStudentCard extends C... | 37.467742 | 118 | 0.719759 |
5b99894c86b985c1db4fe3088c0934db271cdf8f | 351 | package com.multi.thread.chapter7.section7.example1;
/**
* @Description
* @Author dongzonglei
* @Date 2018/12/24 下午6:18
*/
public class StateUncatchExceptionHandler implements Thread.UncaughtExceptionHandler {
public void uncaughtException(Thread t, Throwable e) {
System.out.println("静态的异常处理");
... | 23.4 | 86 | 0.717949 |
d8593b64751b54267be65144818c46a6124d9a8d | 332 | package org.sakaiproject.tool.assessment.entity.api;
import org.sakaiproject.entitybroker.entityprovider.EntityProvider;
/**
* Entity Provider for samigo Item
*
* @author Unicon
*
*/
public interface PublishedItemEntityProvider extends EntityProvider {
public final static String ENTITY_PREFIX = "sam_publish... | 20.75 | 69 | 0.786145 |
5927fb63513d156b0c1c67f1ec0f8c8a46950dc5 | 2,542 | package de.lyca.xslt.conf;
import static de.lyca.xslt.ResourceUtils.getSource;
import static de.lyca.xslt.ResourceUtils.readResource;
import static java.nio.charset.StandardCharsets.ISO_8859_1;
import static java.nio.charset.StandardCharsets.UTF_16;
import static java.nio.charset.StandardCharsets.UTF_8;
import java.n... | 33.012987 | 108 | 0.666011 |
857894b49e16471de25b174e21de2113704838d6 | 1,425 | package com.tirthal.learning.oop.design.principles.clazz.solid.ocp.parsing.good;
// NOTE - For simplicity I kept all classes in same file, but you can have separate file for each class
/**
* Abstract class to define parse() specification, which follows OCP. Why?
*
* Well if you need to extend support for more typ... | 22.265625 | 141 | 0.72 |
83d5d416b37d0faec2bc736381e266c377efa039 | 2,338 | package org.innovateuk.ifs.assessment.feedback.viewmodel;
import org.innovateuk.ifs.assessment.resource.AssessmentResource;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.form.resource.FormInputResource;
import org.innovateuk.ifs.form.resource.QuestionResource;
import org... | 46.76 | 174 | 0.759624 |
1659b9bc8e64b8ca57e0a4f1c2f7c09a81caf89d | 606 | package com.example.application.service;
import com.example.application.entity.Book;
import com.example.application.entity.User;
import com.example.application.repository.BookRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List... | 24.24 | 62 | 0.767327 |
b6ac42891ee023d831f8e2c8d560147f4240a516 | 2,990 | public void execute() {
try {
if (getValue("srcfile") == null) throw new InstantiationException("You need to choose a sourcefile");
File src = (File) getValue("srcfile");
if (getValue("destfile1") == null) throw new InstantiationException("You need to choose a destination... | 52.45614 | 152 | 0.551505 |
0c94f2d5f43fbcc02f7d124142f062b5a5536d78 | 609 | package com.jumpcutfindo.happyholidays.client.entity;
import com.jumpcutfindo.happyholidays.client.entity.model.SantaModel;
import com.jumpcutfindo.happyholidays.common.entity.christmas.santa.BaseSantaEntity;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import software.bernie.geckolib3.re... | 40.6 | 85 | 0.799672 |
bdbb51aee1c51c64b1e6d5ae8080eabc612873a8 | 1,348 | /*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
package org.wcardinal.controller.data.internal;
import com.fasterxml.jackson.databind.JsonNode;
import org.wcardinal.controller.data.SLockable;
import org.wcardinal.util.thread.AutoCloseableReentrantLock;
public interface SBase<... | 27.510204 | 108 | 0.773739 |
10a282391ec58082252ffd9850430bf600192cfd | 2,429 | package de.redsix.pdfcompare;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.CoreMatchers.equalTo;
import de.redsix.pdfcompare.cli.CliArguments;
import de.redsix.pdfcompare.cli.CliArgumentsImpl;
import org.junit.jupiter.api.Test;
public cla... | 35.720588 | 101 | 0.711816 |
52c742ee6f1c8de46cf844a1868e661025c845f2 | 2,486 | package com.rainbow.bridge.biz.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
... | 23.018519 | 65 | 0.581657 |
0eecf4d89d9d3dc42ab16c48df1d67773ae37922 | 566 | package pers.mine.nookblog.entity;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* @author yebukong
* @description 后台用户
* @since 2018-10-23 10:02
*/
@Data
@ToString(callSuper = true)
@Com... | 23.583333 | 75 | 0.772085 |
43c4573bce166c3ea5bf124f964dec3c46666c90 | 126 | package org.lukosan.salix;
public interface SalixTemplate extends SalixScoped {
String getName();
String getSource();
} | 14 | 52 | 0.761905 |
c12739684a804417a887647ce6f12a6cfafa7aa4 | 1,774 | /**
* Copyright (c) 2003 by Bradley Keith Neuberg, bkn3@columbia.edu.
*
* Redistributions in source code form must reproduce the above copyright and this condition.
*
* The contents of this file are subject to the Sun Project JXTA License Version 1.1 (the "License");
* you may not use this file except in ... | 26.477612 | 104 | 0.709132 |
6f20dad73202c89fe5dabcae8666ac68803f5a52 | 736 | package com.xuxd.kafka.console.service;
import com.xuxd.kafka.console.beans.ResponseData;
import com.xuxd.kafka.console.beans.enums.AlterType;
import org.apache.kafka.clients.admin.ConfigEntry;
/**
* kafka-console-ui.
*
* @author xuxd
* @date 2021-11-02 19:57:43
**/
public interface ConfigService {
Response... | 27.259259 | 93 | 0.78125 |
5e7e4fb1cd5e2c2b09569eb5127f632b3331f0cc | 70,849 | /*
* Copyright (c) 2000, 2010, 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 ... | 39.382435 | 149 | 0.560022 |
104c33b9a3386993dc6059b4d83b91dbf103a75a | 1,637 | package com.cart4j.auth.service.impl;
import com.cart4j.auth.Cart4jAuthApp;
import com.cart4j.auth.service.ClientService;
import com.cart4j.model.security.dto.v1.ClientDto;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | 33.408163 | 71 | 0.714111 |
a6c191fc203f27169ec9fc3186a23f827886b846 | 907 | package info.novatec.tr.websocket;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.conf... | 36.28 | 104 | 0.848953 |
db718bdca9067787f7277972d7e8a833222c49b9 | 3,299 | /*
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"). You may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | 42.844156 | 109 | 0.756896 |
f8cac5a1d2e05db441e59a62f2f1c89f51980221 | 5,685 | /*
* 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 ... | 33.639053 | 98 | 0.675989 |
5634c4808f445003756f325203d1c70b9457e05a | 10,865 | /*
* #%L
* OW2 Chameleon - Fuchsia Framework
* %%
* Copyright (C) 2009 - 2014 OW2 Chameleon
* %%
* 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/licens... | 34.492063 | 90 | 0.683111 |
442fbe7091e8f4552cb3c6cc75e784222d44020c | 14,589 | package tab_achievements;
import backend.MessageProcessing;
import backend.ModelDBConnection;
import general_classes.CheckBoxCellRenderer;
import general_classes.GUITableModel;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
im... | 46.461783 | 354 | 0.689629 |
5535c113a23241aaf82e61213dfb38d3516a8277 | 5,325 | package seedu.siasa.storage;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import com.fasterxml.jackson.annota... | 39.154412 | 118 | 0.678873 |
393192092befb6096f503cd7ae7c3e84bdeae186 | 1,100 | package com.otcdlink.chiron.mockster;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Blocks until it gets a value from the {@link OperativeInvocation}.
*/
class ArgumentCapture extends ArgumentTrap {
private final CoreVerif... | 30.555556 | 83 | 0.754545 |
de87e0db8a167820f8d452d855c26b69f367bd9c | 630 | package com.herokuapp.budgetcontrolapi.service.revenue;
import com.herokuapp.budgetcontrolapi.dto.revenue.request.RevenueRequest;
import com.herokuapp.budgetcontrolapi.dto.revenue.response.RevenueResponse;
import java.util.List;
public interface RevenueService {
RevenueResponse createRevenue(RevenueRequest requ... | 30 | 75 | 0.81746 |
66a2f2188619cdb7d66e2656f0258a42aa386194 | 335 | package com.devlomi.record_view;
class RecordDurationBoundariesException extends IllegalArgumentException {
RecordDurationBoundariesException() {
super("Minimum Duration must have a positive value, and must be smaller than the Maximum duration value if and only if the Max duration is set (has positive val... | 37.222222 | 174 | 0.779104 |
924074e2bd371f5e2c9e0befec104f99c504bfac | 2,908 | package net.minecraft.client.gui;
import com.google.common.collect.Lists;
import java.util.Iterator;
import java.util.List;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ServerList;
import net.minecraft.client.network.LanServerDetector;
public class ServerSelectionList extends GuiList... | 29.373737 | 166 | 0.659216 |
a94157bc5702dd57aa533c3766711b70dc054d9b | 890 | // Code written as part of the Java-Methods-Program-AP-Comp-A-2021-2022 repository on GitHub.
package com.company;
import java.util.Arrays;
public class Main {
public static void main(String[] args)
{
String testStatement = "<a>ThisIstheSequenceofCharacters</a>";
System.out.println(removeTag(... | 28.709677 | 93 | 0.621348 |
78bb20f542da78483f5fada31e2cb0c21e199066 | 2,694 | package com.yongzhi.library;
import android.os.Bundle;
import android.support.constraint.ConstraintLayout;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.kevin.tipview.TipItem;
import com.kevin.tipview.TipView;
import com.yongzhi.latlng.convert.Ln... | 40.818182 | 99 | 0.60876 |
d8438b3f0d03b29e5783016147280edcee979e53 | 1,585 | package diary.gui.EntryLog;
import java.awt.Color;
import diary.constants.Constants;
import diary.gui.GButton;
import diary.interfaces.GUIFunction;
import diary.methods.Methods;
public class EntryLogMapButton extends GButton implements GUIFunction
{
/**
*
*/
private static final long serialVersionUID = -8739... | 20.320513 | 90 | 0.745741 |
ab8e274c2a449e7ec0fbe06e0f7b2281c617ffa1 | 1,017 | package com.ftfl.imageslidergallery;
import com.ftfl.imageslidergallery.adapter.FullScreenImageAdapter;
import com.ftfl.imageslidergallery.helper.Utils;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
public class FullScreenViewActivity ... | 26.076923 | 68 | 0.79351 |
ffc0ab5aea4d0ca75000ea4d4f69762187a9936f | 5,688 | package demo.inventory.api.kafka;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import java.util.concurrent.Semaphore;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Metho... | 33.857143 | 106 | 0.743671 |
8d67495885d8ce660f5c49133b5445328882c1b3 | 10,335 | package extracells.part;
import appeng.api.config.Actionable;
import appeng.api.config.SecurityPermissions;
import appeng.api.networking.IGridNode;
import appeng.api.networking.security.MachineSource;
import appeng.api.networking.ticking.IGridTickable;
import appeng.api.networking.ticking.TickRateModulation;
import ap... | 33.77451 | 184 | 0.766715 |
c5f3b50d1256f2087812742d983a5c7b4ce946aa | 3,186 | package com.lxy.mew.expandtextview.adapter;
import android.content.Context;
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.TextView;
import com.lxy.mew.expandtextview.R;
... | 26.773109 | 105 | 0.576899 |
df1451e1dfbb3934094a1956466595f1faa5fb6b | 4,710 | package se.mah.elis.external.water.beans;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
import org.joda.time.DateTime;
import se.mah.elis.data.WaterSample;
import se.mah.elis.external.beans.PeriodicityBean;
/**
* The WaterBeanFactory cre... | 28.035714 | 91 | 0.691932 |
785499cffc1809e54a89879a0d0878492e063dbf | 5,865 | /*
* Copyright 2021-present Open Networking 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 appli... | 35.331325 | 91 | 0.587383 |
4d6d8fdbcf7f761ebbac4e799a67bb2a9f7024db | 181 | package org.dishorg.dishorg;
class RecipeNotFoundException extends RuntimeException {
RecipeNotFoundException(Long id) {
super("Could not find recipe #" + id);
}
}
| 22.625 | 56 | 0.712707 |
26ff95e5cf26a314a8b4c058a94a22c6c16b70ec | 3,228 | /*
* Copyright (c) 2008-2022 The Aspectran Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 30.45283 | 106 | 0.596344 |
291ca7f18b4ff1f433141f7a30861d4dabb073c4 | 4,478 | package io.stanwood.analyticstest.analytics;
import android.app.Application;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.firebase.perf.FirebasePerformance;
import java.util.HashMap;
import java.util.Map;
import io.stanwood.framework.anal... | 46.645833 | 136 | 0.635998 |
6d582bddbb710185a0bd045c630b6e90ce1c12dc | 4,557 | package de.ugoe.cs.smartshark.mutaSHARK.util;
import com.github.gumtreediff.actions.model.*;
import com.github.gumtreediff.tree.ITree;
import de.ugoe.cs.smartshark.mutaSHARK.util.defects4j.Defects4JBugFix;
import org.apache.commons.lang3.NotImplementedException;
import java.util.ArrayList;
public class ActionExecuto... | 33.755556 | 106 | 0.653939 |
4ba31ac8429dc6c39311280c7a4f77a4fda72e6c | 7,140 | package fr.faylixe.ekite.internal;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import org.eclipse.core.resources.IFile;
import org.eclipse.jface.text.IDocument;
import com.google.gson.Gson;
import fr.faylixe.ekite.EKitePlugin;
import fr.fa... | 28.110236 | 127 | 0.717367 |
fe941477a08a37146ddcac4f0c59bd97d6587a84 | 374 | package com.chansuk.productservice.dao;
import com.chansuk.productservice.model.Music;
import com.chansuk.productservice.model.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface MusicDao extends JpaRepository<Music, Integer> {
Music findById(int id);
... | 28.769231 | 65 | 0.81016 |
614c1055df24fee977c49f0ac2d8fcae2bac1e5b | 4,130 | /*
* The MIT License (MIT)
*
* Copyright (c) 2021-2022 Yegor Bugayenko
*
* 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
*... | 34.132231 | 80 | 0.637046 |
13fc858b1e24264396d138d9828d73065f935235 | 278 | public void copyFile(File in, File out) throws Exception {
FileChannel ic = new FileInputStream(in).getChannel();
FileChannel oc = new FileOutputStream(out).getChannel();
ic.transferTo(0, ic.size(), oc);
ic.close();
oc.close();
}
| 34.75 | 64 | 0.607914 |
fd2f54ab95b3719f8179cfe2b1bffde62bac6036 | 2,575 | package com.in726.app.e2e.test.chrome;
import com.in726.app.e2e.page.LoginPage;
import com.in726.app.e2e.page.MainPage;
import com.in726.app.e2e.page.UrlMonitorPage;
import com.in726.app.e2e.util.Util;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import org... | 34.333333 | 88 | 0.695146 |
3b5bdd9d79db17817a855431c37c38c801b5ee72 | 2,506 | package hr.fer.zemris.jcms.desktop.satnica;
import hr.fer.zemris.jcms.parsers.TextService;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
im... | 30.192771 | 130 | 0.694733 |
ec299d93d5491177c61b8c52ae28d1ac70aa77b0 | 2,098 | package com.robin.algorithm.datastructures.unionfind;
public class UnionFind {
private int size;
private int[] rank;
private int[] father;
private int numComponents;
public UnionFind(int size) {
if (size <= 0) {
throw new IllegalArgumentException("Size <= 0 is not allowed");
... | 20.98 | 75 | 0.492374 |
9ea370bbf0580e7e480dd8f37847e7c53d4358ec | 1,011 | package com.redhat.quotegame.util;
import java.util.Map;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.kafka.common.errors.SerializationException;
import org.apache.kafka.common.serialization.Deserializer;
/**
* Generic Kafka deserialiser for reading JSON to POJO.
* @param <T>
* @author l... | 25.275 | 84 | 0.657765 |
2f92215f4951c6281b55795c671798daafea6784 | 819 | package ren.crux.rainbow.runtime;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.s... | 39 | 123 | 0.859585 |
9d2b3a278131af3a535225a8b3942f74d58b8381 | 468 | package com.wqt.springboot.example;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
/**
* @author iuShu
* @date Mar 29, 2018 6:35:15 PM
*/
@ComponentScan
@EnableAutoConf... | 23.4 | 71 | 0.760684 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.