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 |
|---|---|---|---|---|---|
0f3ab7f162d2b9334e43bd3e1d48b6b97bf27f3f | 1,871 | /*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 31.711864 | 88 | 0.648851 |
434c6d5a63667ffd01b779412dd7f859a886b026 | 313 |
package DiscUtils.Iscsi;
enum RejectReason {
None,
Reserved,
DataDigestError,
SNACKReject,
ProtocolError,
CommandNotSupported,
ImmediateCommandReject,
TaskInProgress,
InvalidDataAck,
InvalidPduField,
LongOperationReject,
NegotiationReset,
WaitingForLogout;
}
| 16.473684 | 27 | 0.71246 |
75e62a83fbc62646ac671ebd6a5446d8cd7c2e18 | 1,743 |
public class RoboticsResult implements IResult{
RoboticsTeam contestantA;
RoboticsTeam contestantB;
double teamApoints;
double teamBpoints;
int teamAtasks;
int teamBtasks;
boolean teamAFell;
boolean teamBFell;
public RoboticsResult(RoboticsTeam contestantA, RoboticsTeam contestantB, //constructor for R... | 28.57377 | 182 | 0.698795 |
4cfe81e90d87c3cdbf5a030746eed2c5b67a791d | 2,244 | package guitests.guihandles;
import javafx.stage.Stage;
/**
* Provides a handle for {@code MainWindow}.
*/
public class MainWindowHandle extends StageHandle {
private final EmployeeListPanelHandle employeeListPanel;
private final ResultDisplayHandle resultDisplay;
private final CommandBoxHandle command... | 34.523077 | 120 | 0.763815 |
68a252710032e08f1dd47f2661ea58e71c430e34 | 4,822 | package com.example.curate.activities;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.... | 30.327044 | 113 | 0.672335 |
941c9987011fe5fe9a3d2a568c4d308f0b611e60 | 924 | package com.pansijing.common;
import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;
/**
* @author: zhuhuanhuan
* @time: 2017/7/2-上午11:35.
* @email: zhuhuanhuan@mistong.com
* @desc: 用于获取豆瓣的电影和书籍
*/
public final class DouBanRet... | 22.536585 | 81 | 0.674242 |
cc4a02336cfdabb16532e5c8accbda69eced3bf7 | 4,119 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
***************************************************... | 26.746753 | 134 | 0.558388 |
76e97b2113bb505d22234c8834e07ca0fc902e5e | 1,872 | package com.rbkmoney.adapter.cashreg.spring.boot.starter.utils.converter.ip;
import com.rbkmoney.adapter.cashreg.spring.boot.starter.config.ConverterIpConfiguration;
import inet.ipaddr.AddressStringException;
import inet.ipaddr.IPAddress;
import inet.ipaddr.IPAddressString;
import inet.ipaddr.ipv6.IPv6Address;
import... | 29.714286 | 107 | 0.64797 |
82cb7a4265f50eeaa630886c8b85c9208d23750a | 1,307 | package com.jvfast.module.sys.model.vo;
import com.jvfast.common.entity.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* <p>
* 菜单权限表 查询结果对象
* </p>
*
* @author Walter Hu
* @dat... | 22.534483 | 68 | 0.715379 |
449683067ea9c50a5d229ff09e02dad4d65d8988 | 1,457 | package test.jpa;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Company {
int id;
private String name;
private Address address;
private Collection<Person> employees;
public Company() ... | 20.236111 | 67 | 0.566918 |
ced2aa9c7851bf03f96646a665087587012925f6 | 1,659 | package java.util;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache... | 25.136364 | 75 | 0.6956 |
70298a941c0dc89b3fc94832526e2e948998ecff | 3,225 | /*
* Copyright (c) Aug 12, 2017 StarChart Labs Authors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributor... | 32.908163 | 108 | 0.71907 |
2116896735d7bcf3b7f85ddb32a2733ba3950ded | 1,615 | package com.thinkerwolf.frameworkstudy.alogrithm;
import java.util.Collection;
/**
* 一个符号表的接口
*
* @param <K>
* @param <V>
* @author wukai
*/
public interface ST<K, V> {
/**
* 放入值
*
* @param key
* @return
*/
V put(K key, V value);
/**
* 获取值
*
* @param key
... | 12.617188 | 49 | 0.342415 |
d19f625a691c687397a688336078d84a65f670e8 | 203 | package io.harness.cf.client.connector;
public interface Service {
void start() throws InterruptedException;
void stop() throws InterruptedException;
void close() throws InterruptedException;
}
| 20.3 | 43 | 0.783251 |
e26d1b86f3dc24472ffe122493b8c29790c64d42 | 13,585 | package io.cantor.http;
import java.net.SocketAddress;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.CompositeByteBuf;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.buffer.UnpooledByteBufAllocator;
import io.netty.channel.Channel;
import io.netty.chan... | 28.965885 | 119 | 0.650644 |
80d740306f801f07b8073105a01fc7b9c52025fe | 2,405 | /*
* Copyright (c) 2017 seleniumQuery authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 40.762712 | 160 | 0.773389 |
10d8679c6d8640e94fde8b55e12b690c2c4852e8 | 8,562 | /*
* Copyright (c) 2011, 2018, 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 ... | 48.925714 | 161 | 0.652885 |
5c7eefbb2ba04249c4805f1ca3a5f1eb2e5461f6 | 305 | package net.tutorial.springboot.service;
import java.util.List;
import net.tutorial.springboot.model.Jadwalguru;
public interface JadwalguruService {
List<Jadwalguru> getAllJadwal();
void saveJadwal(Jadwalguru jadwalguru);
Jadwalguru getJadwalById(long id);
void deleteJadwalById(long id);
}
| 30.5 | 49 | 0.793443 |
0bcce82e6d9c80e672d0ac7827dc30d7dcb5cfeb | 162 | package com.block.cache;
/**
* Created by fandong
* created on: 2018/10/19
* description:
*/
public interface ICacheListener<T> {
void onFinish(T t);
}
| 13.5 | 36 | 0.666667 |
2fa2924f260ab05ca9af8ff2f0021402b6cda02d | 2,644 | /*
* MIT License
*
* Copyright (c) 2020 Pim van der Loos
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | 33.897436 | 103 | 0.703858 |
df2defb4106a04fdc68cb33bf60f80a7e98040db | 2,032 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 45.155556 | 141 | 0.802657 |
f1bcdcdf3f3e4f28fae55a9eaee3f0f04e264698 | 443 | package com.tdsoft.bro.core.service.cache;
import java.util.AbstractMap.SimpleEntry;
import java.util.List;
import com.tdsoft.bro.core.bean.TagCacheBean;
public interface TagCache extends CacheService {
void putTag(TagCacheBean bean);
TagCacheBean getTag(String deviceId);
List<SimpleEntry<Double, String>> getT... | 21.095238 | 72 | 0.78781 |
b4e5a6e6f8f19f1c032933b8363435b00f1181e6 | 654 | package com.java.customisedGenericClass.experiment.view;
import com.java.customisedGenericClass.experiment.bean.DAO;
import com.java.customisedGenericClass.experiment.bean.User;
import org.junit.Test;
public class ExperimentTest {
@Test
public void Test1(){
DAO d = new DAO();
d.save("1", new U... | 29.727273 | 60 | 0.625382 |
d982d2ebcb3079077e6118601d11c9f59ae99e00 | 8,979 | /*
* Copyright (C) 2018 Seoul National University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 39.381579 | 107 | 0.719791 |
5e8289ff9619fa3f2577880fab8baae6d7fd4f95 | 4,797 | package JLexPHP.Utility;
public class Utility {
public static final boolean DEBUG = false;
public static final boolean SLOW_DEBUG = false;
public static final boolean DESCENT_DEBUG = false;
public static final boolean OLD_DEBUG = false;
public static final boolean OLD_DUMP_DEBUG = false;
p... | 29.611111 | 103 | 0.469877 |
b966c10ad3d37ee9eb1d495fcb9c776c9e8b5318 | 2,558 | //----------------------------------------------------------------------
//
// PerfectJPattern: "Design patterns are good but components are better!"
// MovieGenericDaoBean.java Copyright (c) 2012 Giovanni Azua Garcia
// bravegag@hotmail.com
//
// Licensed under the Apache License, Version 2.0 (the "License")... | 32.794872 | 79 | 0.551603 |
c534044b75a02ea8dfa5794e1713ee4d6eea3120 | 374 | package ch.uzh.ifi.seal.soprafs19.repository;
import ch.uzh.ifi.seal.soprafs19.entity.WorkerNormal;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository("workerNormalRepository")
public interface WorkerNormalRepository extends CrudRepository<WorkerNo... | 34 | 87 | 0.836898 |
643d7da5246381a526bc8ca331505e713c536584 | 1,020 | package org.moe.bindings.enums;
import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.NUInt;
@Generated
public final class SDWebImageDownloaderOptions {
@Generated
private SDWebImageDownloaderOptions() {
}
@Generated
@NUInt
public static final long LowPriority = 0x0000000000000001L;
@Gen... | 25.5 | 76 | 0.811765 |
5db41283497b1454fca0dc108db810e89419505f | 2,636 | package dunder.mifflin.http.actions.doctor;
import dunder.mifflin.beans.DAOs;
import dunder.mifflin.beans.Emails;
import dunder.mifflin.persistence.daos.exceptions.DAOException;
import dunder.mifflin.persistence.pojos.ExamTicket;
import dunder.mifflin.persistence.pojos.Person;
import dunder.mifflin.utils.Auths;
impor... | 37.657143 | 175 | 0.691958 |
4cd57d3074359e5a289c1ccb0dc8f9d5b402763f | 183 | module com.headius.backport9 {
requires java.base;
exports com.headius.backport9.buffer;
exports com.headius.backport9.modules;
exports com.headius.backport9.stack;
} | 26.142857 | 42 | 0.748634 |
f0566f9b7485d91f3f9670fdb2a5f08111ec354f | 4,345 |
package com.mastercard.api.partnerwallet.domain.switchapi;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for WalletProviderSearch complex type.
*
* <p>Th... | 24.828571 | 112 | 0.590564 |
3fa18aa2e85005a0fb72b40a77202a48a0f4ce25 | 1,144 | package com.epicodus.moviesearchapp.ui;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.epicodus.moviesearchapp.R;
import butterknife.Bind;
import butterknife.B... | 30.105263 | 93 | 0.728147 |
37af3a96532752a1f4e40b07bae7dd5f6deacdd9 | 1,915 | /*****************************************************************
* 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
* ... | 38.3 | 67 | 0.650653 |
a5d2c4a598571d4cc091c7a6bfd48d4ad04390ed | 1,023 | package com.tyrlib2.util;
import com.tyrlib2.game.IUpdateable;
import com.tyrlib2.graphics.renderables.Text2;
import com.tyrlib2.graphics.renderer.OpenGLRenderer;
import com.tyrlib2.graphics.scene.SceneManager;
import com.tyrlib2.graphics.scene.SceneNode;
import com.tyrlib2.math.Vector3;
public class Texture... | 22.23913 | 98 | 0.690127 |
51065ce3b130aed8589b74cb2021cceb8c631d3c | 346 | package co.com.grupoasd.jdm.fixedassets;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class FixedAssetsApplication {
public static void main(String[] args) {
SpringApplication.run(FixedAssetsApplicati... | 24.714286 | 68 | 0.797688 |
560993e7787227f1ca56418d2aa50d722b07c214 | 4,230 | package org.pdfserv;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Base64;
import java.util.Date;
import java.util.List;
import javax.imageio.ImageIO;
import javax... | 34.390244 | 128 | 0.765485 |
e0c44aed4d7ae80239e530dbbcdfa97aa1c34459 | 7,643 | /*
* Copyright (c) 2018-2020 bartimaeusnek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, ... | 82.182796 | 331 | 0.74879 |
d6399ce6f831defb53c6d27b18a710fac88f8b01 | 891 | package com.neura.sampleapplication.fragments;
import android.app.Fragment;
import android.content.Context;
import android.view.View;
import android.widget.ProgressBar;
import com.neura.sampleapplication.NeuraHelper;
import com.neura.sampleapplication.SampleApplication;
public abstract class BaseFragment extends Fra... | 27.84375 | 110 | 0.709315 |
588070a12af98c192bb7e8568fe2245512f085fb | 1,894 | /*-
* ============LICENSE_START=======================================================
* ONAP - CCSDK
* ================================================================================
* Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
* ========================================================... | 42.088889 | 83 | 0.618268 |
d94b71253e6e384bb2f67133d97bb5e487656686 | 2,058 | /**
* ========================================================
* 北京五八信息技术有限公司技术中心开发一部
* 日 期:2011-4-26 下午05:27:24
* 作 者:张纪豪
* 版 本:1.0.0
* ========================================================
* 修订日期 修订人 描述
*
*/
package org.howsun.util;
import java.util.regex.Matcher;
impor... | 18.709091 | 100 | 0.559767 |
7ceb13cbce5913a3aa8f675ceef4bcc05c56c930 | 432 | package model.command.oneParameter.turtle;
import java.util.List;
import model.command.AbstractCommand;
public class SetShape extends AbstractCommandOneParameterTurtle {
public SetShape(List<AbstractCommand> parameters) {
super(parameters);
}
public double turtleExecute() {
double newSh... | 22.736842 | 65 | 0.719907 |
2886705599a48b342dfd294123b33493e03f6c99 | 567 | package context.event;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* 传播事件启动类
* @author JingQ at 2019-06-18
*/
public class EventBootstrap {
public static void main(String[] args) {
ApplicationContext context = new ClassPa... | 27 | 106 | 0.758377 |
4c44191f29e1a93a65f24df00420243bc1dfb137 | 15,825 | package org.myrobotlab.process;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.myrobotlab.codec.CodecUtils;
import org.myrobotlab.framework.MRLListener;
import org.myrobotlab.framework.Message;
impo... | 28.877737 | 153 | 0.557156 |
7633bd166b7b4104749b240614b8478de9c5267e | 2,360 | /*
* Copyright 2017 StreamSets 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... | 28.780488 | 75 | 0.666949 |
3d8d0d6e09a9e27ade37e1973dc2266dc5c9844d | 2,290 | package com.j05promax.cinema.controller;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.j05promax.cinema.entity.Calendar;
import com.j05promax.cinema.entity.Film;
import com.j05promax.cinema.repo.Postgr... | 33.676471 | 82 | 0.656332 |
7c35ae199be0771b834b035fcfd667d7dbd71ac5 | 3,664 | /*
* Copyright 2010-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 40.263736 | 160 | 0.749454 |
0536ac622c5dc190f73534028c7e2a4652a09728 | 906 | package org.openfuzzy.fuzzy.set;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.openfuzzy.fuzzy.set.IFuzzySet;
import org.openfuzzy.fuzzy.set.RightUpLinearShapeFuzzySet;
public class RightUpLinearShapeFuzzySetTest {
@Test
public void... | 29.225806 | 70 | 0.699779 |
d2909f8d931aec7b82e0aa0a97217da15a1ea3f4 | 289 | /**
* Copyright (c) 2010 Perforce Software. All rights reserved.
*/
package com.perforce.team.core.map;
/**
* @author Kevin Sawicki (ksawicki@perforce.com)
*/
public enum MapTableT {
/**
* Left hand side
*/
LHS,
/**
* Right hand side
*/
RHS,
}
| 13.136364 | 62 | 0.564014 |
3b0d1e794d94c9332e5ba46ae3d63506e60ec6be | 1,603 | /*
* 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 ... | 34.106383 | 80 | 0.725515 |
6a31ef7f560a3e2ae21f75304afdd2b769d9d770 | 4,908 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package soen487.util.DBUtils;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import jav... | 33.616438 | 135 | 0.596373 |
aa666881f908b11130cb28152a9f51b9918bfcea | 666 | package york.com.retrofit2rxjavademo.subscribers;
import rx.Subscriber;
import york.com.retrofit2rxjavademo.http.exception.ApiException;
/**
* @author YorkYu
* @version V1.0
* @Project: Retrofit2RxjavaDemo
* @Package york.com.retrofit2rxjavademo.subscribers
* @Description:
* @time 2016/8/11 10:48
*/
public abs... | 23.785714 | 64 | 0.66967 |
366fa443ab38ed34a9eebcabd9acebc6c0b0f941 | 4,167 | package ppitransformation.io;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
impo... | 29.764286 | 108 | 0.701704 |
69ac7bb3ceb0d526b1b80592980d183bf24a5779 | 51 | package clustering;
public class FeaturePivot {
}
| 10.2 | 27 | 0.784314 |
4256c80ff63ba9f278e39e75db3e596f835435cf | 767 | package li.cil.oc.api.fs;
import li.cil.oc.api.Persistable;
/**
* Used by file system components to get and set the file system's label.
*
* @see li.cil.oc.api.FileSystem#asManagedEnvironment
*/
public interface Label extends Persistable {
/**
* Get the current value of this label.
* <p/>
* May... | 23.96875 | 73 | 0.610169 |
82f63f2223610fe73ccc19f123a546c7723a6131 | 6,194 | /**
* $RCSfile$
* $Revision: 3144 $
* $Date: 2005-12-01 14:20:11 -0300 (Thu, 01 Dec 2005) $
*
* Copyright (C) 2004-2008 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... | 34.603352 | 119 | 0.647562 |
f4753110e76b45e99cb572acff492360858777d9 | 526 | package vg.civcraft.mc.namelayer.mc.rabbit.executions;
import org.json.JSONObject;
import vg.civcraft.mc.namelayer.core.Group;
import vg.civcraft.mc.namelayer.core.requests.GroupModifications;
public class RenameGroup extends AbstractGroupModificationHandler {
@Override
protected void handle(Group group, JSONObje... | 23.909091 | 67 | 0.794677 |
ee25775f81a88df4304ffdeaf95769fe1ff134fa | 7,915 | // tag::adocResourceTest[]
package io.quarkus.workshop.superheroes.hero;
import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.common.mapper.TypeRef;
import org.hamcrest.core.Is;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Order;... | 31.40873 | 90 | 0.594188 |
4d89821ec2a0bc8c049a365c0f9636a711b0cc99 | 5,183 | package com.qraffa.easyrentboot.controller;
import com.qraffa.easyrentboot.model.ReturnModel;
import com.qraffa.easyrentboot.model.StatusEnum;
import com.qraffa.easyrentboot.model.entity.TestTable;
import com.qraffa.easyrentboot.model.exception.ExceptionModel;
import com.qraffa.easyrentboot.model.req.file.PostFileReq;... | 31.412121 | 102 | 0.659271 |
71c50615d5654fdb31269654503a41401f83d16f | 649 | package com.jfinalshop.controller.admin;
import com.jfinal.aop.Before;
import com.jfinalshop.model.Agreement;
import com.jfinalshop.validator.admin.AgreementValidator;
/**
* 后台类 - 会员注册协议
*
*/
public class AgreementController extends BaseAdminController<Agreement>{
private Agreement agreement;
// 编辑
public ... | 19.666667 | 72 | 0.725732 |
ca0aac43ed940dcd331033a66684806571f860a3 | 212 | package thread.STM;
/**
* @Author baichen
* @Date 2019/11/20
* @Description 自定义实现STM
* 事务入口
*/
public interface Txn {
<T> T get(TxnRef<T> ref);
<T> void set(TxnRef<T> ref, T value);
}
| 15.142857 | 42 | 0.570755 |
7897c3c00281f0f169693ce993c3c3031d7efab9 | 15,875 | package edu.isi.bmkeg.sciDT.uima.ae;
import java.io.File;
import java.io.FileReader;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.com... | 32.331976 | 113 | 0.660787 |
3bef8bc17c099e66d50d0a1add85bdd0fd1f2e5b | 3,120 | /*
* Copyright (c) 2010-2018 Osman Shoukry
*
* 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... | 41.6 | 122 | 0.789744 |
18384b2eea525cb6d58467828dfa3916604d20d5 | 3,018 | package org.hros.assessments.components;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.jsonschema.JsonSchema;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.github.fge.jsonschema.cfg.LoadingConfiguration;
import com.github.fge.jsonschema.exceptions.Proces... | 35.928571 | 103 | 0.781643 |
e6ec72537db8ab8a3c51abb00a56f71eb4009b6a | 514 | package com.entities;
public enum UserRole {
ADMIN, TEACHER, STUDENT;
public static String getAutority(String role) {
String userRole = "";
switch (role) {
case "STUDENT":
userRole = "ROLE_" + STUDENT;
break;
case "ADMIN":
... | 21.416667 | 51 | 0.459144 |
5d264d2f61245ae279e11e01e628915fe54fe1df | 4,567 | package com.gemalto.ezio.configurationmanager;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.security.keystore.KeyGenParameterSpec;
import android.security.keystore.KeyProperties;
import android.util.Base64;
imp... | 41.518182 | 118 | 0.620758 |
4ed830f3ee89aa71a0799a5702938e9b9810fd4e | 18,141 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package online.movie.tv.show;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import jav... | 44.792593 | 171 | 0.624387 |
7127e467a032ff89650440f41ce535da8207ec5d | 1,455 | package si.f5.hatosaba.autobroadcast.spigot.util;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import si.f5.hatosaba.autobroadcast.spigot.AutoBroadcast;
import java.io.File;
import java.io.IOException;
import ... | 26.454545 | 115 | 0.679725 |
17a9fa6bd68df6d70d0340900a32df46b9d7e1a3 | 8,220 | package com.instaclustr.operations;
import static com.instaclustr.operations.OperationBindings.installOperationBindings;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import javax.validation.Validation;
import javax.validation.Validato... | 38.957346 | 175 | 0.644891 |
028f1d7a4bcd5300783539e1dc9b353b1502c64f | 4,193 | /*
* Copyright 2015 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 24.520468 | 90 | 0.589077 |
f64f5cd2a6c06dc4b06cf167382496273c48933e | 3,944 | /*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (th... | 42.869565 | 170 | 0.77713 |
dff4646f33f4e65042f21f828a189240351e137e | 174 | package io.redskap.lambda.runtime.util;
public class EnvironmentVariableResolver {
public static String resolve(String key) {
return System.getenv(key);
}
}
| 21.75 | 46 | 0.724138 |
20985ada9e5e2e6e2e988a995aaa6e86f8606990 | 1,429 | package titan.ccp.kiekerbridge.raritan.simulator;
import java.util.function.LongToDoubleFunction;
/**
* Functions to create {@link LongToDoubleFunction}s.
*/
public final class Functions {
private Functions() {}
public static LongToDoubleFunction squares(final long initialLowLength, final long highLength, // ... | 34.02381 | 104 | 0.655703 |
5d8076403684a1423c276a1a6e8fed9d7c08881c | 1,078 | package com.cg.lab1.ex3;
import java.util.Scanner;
/*
* Exercise 3: The Fibonacci sequence is defined by the following rule.
* The first 2 values in the sequence are 1, 1.
* Every subsequent value is the sum of the 2 values preceding it.
* Write a Java program that uses both recursive and non-recursive functio... | 28.368421 | 81 | 0.699443 |
8d5c40f343c544142aff6e26b87585c5448f2d34 | 758 | package pdfact.core.pipes.translate.characters;
import pdfact.core.util.pipeline.Pipe;
/**
* A pipe that standardizes characters, i.e. translates characters with
* different glyphs but same semantic meaning to a steady characters. For
* example this pipe translates '“' to '"'.
*
* @author Claudius Korzen
*/
pu... | 28.074074 | 74 | 0.71504 |
9be21fd190925851c98cd492f5b8212e62cc8250 | 2,751 | package org.ml4j.gpt3.prompt.builders.questionanswer;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.ml4j.gpt3.GPT3Request;
import org.ml4j.gpt3.prompt.PromptSubmission;
import org.ml4j.gpt3.prompt.processors.SubmissionResult;
public class QuestionAndAnswerPromptSubmission... | 31.62069 | 113 | 0.814613 |
017a5aab2e58118cbb947de932fc78762518859b | 2,666 | /*
* MIT License
*
* Copyright (c) 2022 Ursin Filli
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 37.549296 | 105 | 0.740435 |
b435097569591e4d10dac84838a7372b73c20dd3 | 1,204 | package com.thinkgem.jeesite.modules.weixin.wxpay.util;
public class Example {
public static void main(String args[]) {
try {
// WxPayV3Helper wxPayHelper = new WxPayV3Helper();
// wxPayHelper.SetAppId("wx1df1998dec4171fb");
// wxPayHelper.SetAppKey("J5Km7XqhNryOgeSDPf3ZrQHAkVfMILpXIVrAnoSVTcxVqBw67CkxSqMJYx... | 38.83871 | 159 | 0.73588 |
ae93fac3bee1c3f08adb5acb23011987b2978d86 | 6,869 | package sk.fei.mobv.pivarci.fragments;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import andr... | 38.374302 | 147 | 0.675499 |
cb941d8f3d28978c860448a4a04e7452b9cee8be | 207 | package com.mantledillusion.injection.hura.core.plugin.misc;
import com.mantledillusion.injection.hura.core.InjectableInterface;
public interface InjectedInjectable {
InjectableInterface getBean();
}
| 23 | 67 | 0.826087 |
31e9803115ca3d16466c47549784caf3c59ce0b0 | 771 | package com.ppfuns.report.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ppfuns.report.mapper.AppContentTypeAlbumUserCountRankDayMapper;
import com.ppfuns.report.entity.AppContentTypeAlbumUserCountRankDay;
import com.ppfuns.report.service.AppContentTypeAlbumUserCountRankDa... | 40.578947 | 215 | 0.869001 |
b6ee4507be081fe33c1259cb2938318ba5289cd8 | 4,905 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 40.204918 | 142 | 0.670744 |
79934ca84fbbd48df5b2651ee54a983fe1a6e580 | 11,750 | package com.us47codex.mvvmarch.complaint;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.widget.FrameLayout;
import android.widget.ImageView;
i... | 38.778878 | 142 | 0.58766 |
1443785b87ad2a69bbbe2cccee3d0472cc664e16 | 699 | package com.agenson.cinema.room;
public class InvalidRoomException extends RuntimeException {
public enum Type {
NB_ROWS("Error: Number of rows needs to be > 0"),
NB_COLS("Error: Number of columns needs to be > 0"),
NUMBER("Error: Room number needs to be > 0"),
EXISTS("Error: Room ... | 24.964286 | 65 | 0.593705 |
71338f88bc0978024c53c0140b20e49c571e4adb | 751 | package leetcode.weekly_contests.weekly_24;
import java.util.ArrayDeque;
import java.util.Deque;
public class P_544 {
public String findContestMatch(int n) {
Deque<String> deque = new ArrayDeque<>();
for (int i = 0; i < n; i++) {
deque.addLast(String.valueOf(i + 1));
}
... | 26.821429 | 79 | 0.524634 |
1758ee3c9b8b35c2aa5ce0bfc513ef2e91389b5c | 2,845 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.messaging.eventgrid.systemevents;
import com.azure.core.annotation.Immutable;... | 27.095238 | 92 | 0.653427 |
a1bf37d94718a2bc918bed9469a8f791b45b9d67 | 3,020 | /* Copyright 2013 The jeo project. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 33.186813 | 90 | 0.642715 |
bbbf0c3c9813d5bcaf445c4e1612a407d38d5103 | 421 | import java.io.*;
import java.util.*;
public class lostlineup {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt() - 1;
int[] arr = new int[n];
for (int x = 1; x <= n; x++)
arr[sc.nextInt()] = x + 1;
... | 28.066667 | 61 | 0.501188 |
ac7eee520dcfd1c2899178312ead1eacf03cd660 | 1,434 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 28.68 | 75 | 0.691771 |
06a2e3296c761816e218d889acbac1a479f0966c | 15,619 | package org.jeecg.modules.pd.controller;
import java.util.*;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.constant.PdConstant;
import org.jeecg.modules.pd.entity.PdStockRecordDetail;
import org.jeecg.modules.p... | 39.342569 | 135 | 0.647609 |
f5b08fa1779d77ba7fe17b449e31afe12f99db6a | 1,758 | package com.javarush.task.task14.task1414;
/*
MovieFactory
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//ввести с консоли несколько ключей (строк), пункт 7
Scanner in = new Scanner(System.in);
Movie movie = null;
... | 27.046154 | 108 | 0.600114 |
37ec789aaf56060dc9e5dc88c67b21f5ae998758 | 49,968 | package net.shadew.ndebris.data.models;
import net.minecraft.block.Block;
import net.minecraft.block.enums.BlockHalf;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.Direction;
import net.minecraft.util.registry.Registry;
import java.util.function.BiConsumer;
import java.util.function.Function;
... | 70.476728 | 225 | 0.582553 |
608a812f8dadc60c03307937bddeeac67ef178d5 | 721 | class cobaiametodo {
// método: tem uma assinatura (declaração)
// saida/retorno nome(entradas)
static int potencia(int base, int expoente) {
int potencia = 1;
for (int i = 0; i < expoente; i++) {
potencia = potencia * base;
}
return potencia;
}
public static void main(String[] args) {... | 22.53125 | 47 | 0.613037 |
831c66301cfab546b52f4ea17f969e9f9c9b059c | 815 | package jp.chang.myclinic.pharma.javafx.pharmadrug;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
import jp.chang.myclinic.dto.PharmaDrugNameDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class PharmaDrugList extends ListView<PharmaDrugNameDTO> {
private static Logger... | 29.107143 | 81 | 0.620859 |
38b41172c6c6552ed45079c9b5ad110c23551e36 | 521 | package com.workggr.nacosconfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
@EnableDiscoveryCli... | 28.944444 | 72 | 0.829175 |
deb94f4b5beefaa958ac5a743c4ae66566393a6a | 206 | package tec;
public class TecInvalidException extends Exception {
public TecInvalidException() {
super();
}
public TecInvalidException(Throwable cause) {
super(cause);
}
}
| 17.166667 | 52 | 0.65534 |
b632a475be3ec3cb34c6c70632d685a2a2861f33 | 10,040 | /*
* Copyright 2019 Bytabit AB
*
* 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... | 48.97561 | 166 | 0.676594 |
644042329079f1200fa931736aa4f42b6965613e | 110 | package one.spectra.minecraft.restream.restream.models;
public enum Platform {
UNKNOWN, TWITCH, YOUTUBE
} | 22 | 55 | 0.781818 |
0ae838304593d4369d41f07bea98f54e4423d307 | 391 | package cn.paxos.jam.event;
import cn.paxos.jam.Event;
import cn.paxos.jam.util.BytesWrapper;
public class BytesWrapperEvent implements Event
{
private final BytesWrapper bytesWrapper;
public BytesWrapperEvent(BytesWrapper bytesWrapper)
{
this.bytesWrapper = bytesWrapper;
}
public By... | 17.772727 | 54 | 0.716113 |
3c90d03ae14df66b815c2063308403b515be28dc | 253 |
public class Lf {
public static void main(String[] args) {
System.out.println("TTTT");
System.out.println("TTTT");
System.out.println("TTTT");
System.out.println("TTTT");
System.out.println("TTTT");
}
}
| 21.083333 | 44 | 0.565217 |
5ebb47cf49f1fd374530c6029ea6e87ff9eacfec | 1,058 | package data;
public class FieldsB {
int[] is = new int[] { 1, 2, 3 };
int i = 23;
boolean b = false;
char c = 'a';
short s = 123;
long l = 32768 * 327;
double d = 2.0d;
float f = 1.4f;
String theMessage = "Hello Andy";
public boolean isB() {
return b;
}
public void setB(boolean b) {
this.b = b;
}
... | 12.16092 | 45 | 0.581285 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.