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 |
|---|---|---|---|---|---|
562637f912ccc159ecafc46ad4cbc4ec58cb88df | 123 | package io.khasang.gahelp.dao;
import io.khasang.gahelp.entity.Role;
public interface RoleDao extends BasicDao<Role> {
}
| 17.571429 | 49 | 0.788618 |
c252c6b0778eba175ad57508b29ca7fe01bdc376 | 1,897 | /*
* Copyright (c) 2018. paascloud.net All Rights Reserved.
* 项目名称:paascloud快速搭建企业级分布式微服务平台
* 类名称:PcAuthenticationFailureHandler.java
* 创建人:刘兆明
* 联系方式:paascloud.net@gmail.com
* 开源地址: https://github.com/paascloud
* 博客地址: http://blog.paascloud.net
* 项目官网: http://paascloud.net
*/
package com.paascloud.serv... | 30.111111 | 110 | 0.777016 |
c880060c0329b650f2104461367dab482913b0f8 | 1,975 | /*
* Copyright 2011 by TalkingTrends (Amsterdam, The Netherlands)
*
* 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://opensahara.com/licenses/apache-2.0
*
* Unless required by... | 31.854839 | 113 | 0.715949 |
5701ebb927c6f9e5a0a12844bda9422f98060950 | 849 | package com.projeto.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.... | 21.225 | 52 | 0.779741 |
c70eb6299dc6d97fd167a20e859825fb1336c732 | 201 | package net.plavcak.maven.plugins.docker.core.tasks;
import net.plavcak.maven.plugins.docker.core.TaskResult;
public interface Task<T> {
TaskResult run(T input) throws InvalidInputException;
}
| 20.1 | 57 | 0.78607 |
16837ee8d033df2a9a227b77471a5f8b6ee0ad6c | 866 | package org.wikiup.modules.webdav.method;
import org.wikiup.core.inf.Document;
import org.wikiup.core.util.StringUtil;
import org.wikiup.modules.webdav.imp.WebdavFileSystem;
import org.wikiup.modules.webdav.util.StatusUtil;
import org.wikiup.modules.webdav.util.WebdavUtil;
import org.wikiup.servlet.ServletProce... | 41.238095 | 75 | 0.732102 |
dcad1a553d982a6af4919656e3129203a7e1be50 | 1,148 | package me.young1lin.offer.list;
import java.util.Deque;
import java.util.LinkedList;
/**
* 从尾到头打印链表
* 不允许修改链表结构
* 用栈来实现,LinkedList 就是默认的栈
*
* @author <a href="mailto:young1lin0108@gmail.com">young1lin</a>
* @since 2021/1/28 下午11:40
* @version 1.0
*/
public class ReversePrintlnList {
private static final Li... | 18.222222 | 65 | 0.648955 |
d8005ceb7f43d4c67f7ee9eb2b1827c493ce850a | 630 | package com.github.shaquu.utils;
public class PrimitiveObject {
public static byte[] toByteArrPrimitive(Byte[] bytesObject) {
byte[] bytesPrimitive = new byte[bytesObject.length];
for (int i = 0; i < bytesObject.length; i++) {
bytesPrimitive[i] = bytesObject[i];
}
ret... | 24.230769 | 65 | 0.607937 |
fa3d441fd510cf9209746237814b4f481dc5c726 | 1,898 | package com.laycoding.service.impl;
import com.laycoding.bo.UploadInfoBO;
import com.laycoding.common.utils.LayUtils;
import com.laycoding.common.utils.OssUtils;
import com.laycoding.common.utils.ResultUtil;
import com.laycoding.entity.OssConfig;
import com.laycoding.mapper.OssConfigMapper;
import com.laycoding.servic... | 34.509091 | 112 | 0.731823 |
0d256a551c63e0c475ae1ac2afbc798e23dfd97c | 835 | package net.jbock.examples;
import net.jbock.examples.fixture.ParserTestFixture;
import org.junit.jupiter.api.Test;
import java.util.Optional;
import static net.jbock.examples.fixture.ParserTestFixture.assertEquals;
class GradleArgumentsFooTest {
private final GradleArguments_FooParser parser = new GradleArgumen... | 23.857143 | 83 | 0.676647 |
ed02157a1d86010892eab168b8a987d8a30f30b2 | 2,299 | package com.zeoflow.stylar.movement;
import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import android.text.method.MovementMethod;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.zeoflow.stylar.AbstractStylarPlugin;
import c... | 24.98913 | 112 | 0.672031 |
2af3d33cbd03753f65a54c9f9038f80f007b7763 | 446 | package org.givwenzen.reflections.scanners;
import com.google.common.base.Predicate;
import com.google.common.collect.Multimap;
import org.givwenzen.reflections.Configuration;
/**
*
*/
public interface Scanner {
void scan(final Object cls);
void setConfiguration(Configuration configuration);
... | 19.391304 | 53 | 0.742152 |
08ae9022585bfdedc2a697a79399fef4b0d0e18d | 370 | package com.jota.marvel.data;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTestRunner;
import org.robolectric.annotation.Config;
@RunWith(RobolectricTestRunner.class)
@Config(constants = BuildConfig.class, manifest = "src/main/AndroidManifest.xml",
application = ApplicationStub.class, sdk = ... | 33.636364 | 94 | 0.808108 |
fa79af3fa1cda76458cfddd9f90c8085662ca510 | 2,470 | package com.lance.activiti.common.captcha;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Date;
import java.util.Properties;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
i... | 29.058824 | 124 | 0.665587 |
ee3cb1c131a3704640a423becff73672f98d9a3a | 211 | package tr.metu.ceng.construction.server.exception;
public class PlayerNotFoundException extends RuntimeException {
public PlayerNotFoundException(String errorMessage) {
super(errorMessage);
}
} | 30.142857 | 63 | 0.781991 |
95c9b6cf233c11add606a8c82778c5bb3d8c9746 | 5,456 | /**
* %SVN.HEADER%
*/
package net.sf.javaml.featureselection.ranking;
import java.util.HashSet;
import java.util.Set;
import libsvm.LibSVM;
import libsvm.SelfOptimizingLinearLibSVM;
import net.sf.javaml.core.Dataset;
import net.sf.javaml.core.DefaultDataset;
import net.sf.javaml.core.Instance;
import n... | 31.177143 | 106 | 0.576796 |
ba700534e187c407ca3baa0adfd1963990457f24 | 892 | package com.github.a4ad.port.in.server;
import com.github.a4ad.common.SelfValidating;
import lombok.EqualsAndHashCode;
import lombok.Value;
import javax.validation.constraints.NotBlank;
public interface DeleteServerUseCase {
void deleteServer(DeleteServerUseCaseCommand command) throws ServerNotFoundRuntimeExcep... | 26.235294 | 96 | 0.719731 |
c932a17094c0080992b15f546a399d44389cee96 | 363 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.xmlb;
import com.intellij.serialization.MutableAccessor;
import org.jetbrains.annotations.NotNull;
public interface NestedBinding extends Binding {
@... | 33 | 140 | 0.798898 |
d52473ee2a803f8f7aefeae9e189d46f6099979e | 577 | package de.npruehs.missionrunner.client.controller.mission;
import dagger.Subcomponent;
import de.npruehs.missionrunner.client.ActivityScope;
import de.npruehs.missionrunner.client.view.mission.MissionDetailsFragment;
import de.npruehs.missionrunner.client.view.mission.ShowMissionsFragment;
@ActivityScope
@Subcompone... | 30.368421 | 75 | 0.818024 |
9429a5323d00b9cfc3c22f4bb507b5510c99664f | 2,489 | /*
* Copyright (c) 2020 , <Pierre Falda> [ pierre@reacted.io ]
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.reacted.core.reactorsystem;
import io.reacted.core.config.ChannelId;
import io.r... | 42.186441 | 132 | 0.666131 |
2b221d33a29d3450ff20e6f1e30b179820f72673 | 1,209 | import org.infai.ses.senergy.operators.Config;
import org.infai.ses.senergy.utils.ConfigProvider;
import java.time.ZoneId;
public class EstimatorFactory {
public static Estimator createNewInstance() {
Config config = ConfigProvider.getConfig();
return createNewInstanceWithConfig(config);
}
... | 36.636364 | 119 | 0.651778 |
27e2c572d70d5c0fb60ed32c51944a5191a3b369 | 989 | /*
* Copyright 2016, Joseph B. Ottinger
*
* 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 ap... | 31.903226 | 78 | 0.669363 |
29e1615737f5d0e53833c3b2de0064234ac14a30 | 1,369 | package org.iubbo.proxy.config;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 请求常量类
*
* @author idea
* @date 2020/1/2
* @version V1.0
*/
public class CommonConstants {
public final static String SAMPLE_REQ = "{\n" +
" \"interfaceName\": \"com.sise.dubbo.provider.api.EchoServi... | 21.390625 | 85 | 0.431702 |
3fb975889f2e5ce51c85a578808610f98c1474cc | 439 | package com.clausgames.crystalmagic.blocks.plants;
import com.clausgames.crystalmagic.lib.LibMisc;
import net.minecraft.block.material.Material;
public class CoalInfusedStone extends OreInfusedStone
{
protected CoalInfusedStone(Material material)
{
super(Material.rock);
this.setBlockName("Coal... | 31.357143 | 95 | 0.751708 |
d46d0f4cd3628ab4e7d5a2cc8ceafe56ca7793e1 | 831 | package com.indirectionsoftware.runtime.nlu;
import java.util.ArrayList;
import java.util.List;
import com.indirectionsoftware.metamodel.IDCAttribute;
public class IDCValue {
public String value;
public List<IDCAttributeValueDataList> attrVals = new ArrayList<IDCAttributeValueDataList>();
/*******... | 22.459459 | 95 | 0.524669 |
8706b9482c181e377d0f4b6fd5a8179573c49dae | 104 | package com.github.sadikovi;
import java.util.List;
interface LoxGetter {
Object get(Token name);
}
| 13 | 28 | 0.75 |
9b30faea5273bca825110786b408fafcc1f36b24 | 699 | package br.com.orange.cdc.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import br.com.orange.cdc.config.validation.ValorUnico;
@Enti... | 21.181818 | 87 | 0.76681 |
06cc8474abb5c291cfa36120c087f7ce041c9154 | 4,874 | package cx.rain.mc.bukkit.ieconomy;
import net.milkbowl.vault.economy.Economy;
import net.milkbowl.vault.economy.EconomyResponse;
import org.bukkit.OfflinePlayer;
import java.util.List;
public class EconomyImpl implements Economy {
public EconomyImpl() {
}
@Override
public boolean isEnabled() {
... | 21.283843 | 98 | 0.6508 |
bf590510ce672420ead4858dfb7045bfd43557ee | 842 | package com.subrosagames.subrosa.event;
/**
* An exception thrown when an event is unable to be scheduled.
*/
public class EventException extends Exception {
private static final long serialVersionUID = 1301604863966351742L;
/**
* Default constructor.
*/
public EventException() {
}
/... | 19.136364 | 70 | 0.587886 |
d58d52e83680d11640c08cfe69f308e4dcbd68b1 | 1,410 | package html;
public class HtmlCreator {
private StringBuilder stringBuilder;
private Tag tag;
private String padding;
public HtmlCreator(Tag tag) {
this.tag = tag;
stringBuilder = new StringBuilder();
padding = manyTab(tag.getLevel());
}
public StringBu... | 29.375 | 101 | 0.553901 |
bfdabcc20a2b2c10944d83eed33ab0e91f470f47 | 586 | package io.junq.examples.usercenter.util;
public final class UserCenterMapping {
public static final String BASE = "/api/";
public static final String USERS = "api/users";
public static final String PRIVILEGES = "api/privileges";
public static final String ROLES = "api/roles";
public stati... | 27.904762 | 69 | 0.687713 |
358fe34eb23d7c8c63aa65f63ff68778dc4f4e7a | 3,938 | /*
* Copyright 2018 Google LLC 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 applicab... | 35.160714 | 93 | 0.751397 |
589118d59cc41805bd5c888c23ad15d08dddb51b | 1,788 | // GPars - Groovy Parallel Systems
//
// Copyright © 2008-10 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/LIC... | 32.509091 | 114 | 0.681767 |
cbf5d11cb101e68ad3be2090bf62eeb66e71d780 | 342 | package org.chathamrobotics.ftcutils;
/*!
* ftc-utils
* Copyright (c) 2017 Chatham Robotics
* MIT License
* @Last Modified by: Carson Storm
* @Last Modified time: 5/26/2017
*/
/**
* A common driver interface.
*/
public interface Driver {
/**
* Stops all driving functionality.
*/
... | 17.1 | 40 | 0.605263 |
e3bf28526f77ce0a773c9289f1c0e79e9d31eab6 | 2,143 | /*
* Copyright 2014 Space Dynamics Laboratory - Utah State University Research 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/LICEN... | 22.797872 | 88 | 0.745217 |
635108f26990158294e982255e91dad28ce805fe | 281 | package com.github.t3t5u.common.expression;
import java.io.Serializable;
public interface BinaryExpression<L extends Serializable, R extends Serializable, T extends Serializable> extends Expression<T> {
Expression<L> getLeftExpression();
Expression<R> getRightExpression();
}
| 28.1 | 129 | 0.807829 |
62aa47dfd3d9baf5a27bdc0ef8381b68b3e9db5d | 1,376 | package com.csxiaoshang.xml;
import org.junit.Test;
import java.io.*;
import java.text.MessageFormat;
public class XmlUtilsTest {
@Test
public void readXml() throws IOException {
System.out.println( XmlUtils.readXml("D:\\github\\jenkins\\xmljenkins\\src\\main\\resources\\test.xml"));
Syste... | 41.69697 | 140 | 0.645349 |
a15c3be54471be7059963ec0c9db0ef9a4810949 | 757 | package za.org.grassroot.graph.repository;
import lombok.extern.slf4j.Slf4j;
import org.neo4j.ogm.session.event.Event;
import org.neo4j.ogm.session.event.EventListenerAdapter;
import za.org.grassroot.graph.domain.GrassrootGraphEntity;
import java.time.Instant;
@Slf4j
public class PreSaveListener extends EventListene... | 32.913043 | 88 | 0.705416 |
255a88dd8c839ed7e1044cb478569acbb5fdbdb5 | 18,943 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.firebase.ui.database;
public final class R {
private R() {}
public static final class attr {
p... | 65.09622 | 183 | 0.746819 |
27600d53c632af830b46a1f92336ca9d61aac623 | 17,680 | /**
*/
package org.ecore.component.componentDefinition.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import org.ecore.base.documentation.AbstractDocumentedElement;... | 34.065511 | 161 | 0.724774 |
4d9fb21743aeb9350388adcd69e573a999c24f3b | 2,954 | /*
* Original author: Daniel Jaschob <djaschob .at. uw.edu>
*
* Copyright 2019 University of Washington - Seattle, WA
*
* 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
*
* ... | 32.461538 | 103 | 0.803995 |
c877174107836b0f0d0501ce0a5ba001d8133b1e | 571 | package com.dao;
import com.entity.Customer;
import com.entity.User;
import java.util.List;
/**
* Created by yangzhe on 2017/5/2.
*/
public interface CustomerDao extends BaseDao<Customer> {
// public void add(Customer customer);
// public List<Customer> findCustomers();
// public Customer findOne(Integer ... | 27.190476 | 67 | 0.728546 |
cbfd6571ec22ab91e49ca8fbd2915b1aab471cc8 | 16,878 | package ai.verta.modeldb;
import static ai.verta.modeldb.utils.TestConstants.RESOURCE_OWNER_ID;
import ai.verta.modeldb.authservice.AuthService;
import ai.verta.modeldb.authservice.AuthServiceUtils;
import ai.verta.modeldb.authservice.PublicAuthServiceUtils;
import ai.verta.modeldb.authservice.PublicRoleServiceUtils;... | 41.367647 | 100 | 0.710333 |
129fcddee318d8a831147d116c4c70b212da9827 | 4,424 | package norswap.autumn;
import norswap.autumn.positions.LineMap;
import norswap.autumn.util.ArrayStack;
import norswap.utils.Strings;
/**
* A stack of {@link ParserCallFrame} representing parser invocations at a certain position.
*/
public final class ParserCallStack extends ArrayStack<ParserCallFrame>
{
// ---... | 39.855856 | 100 | 0.54679 |
1c7796bec1f54eae330eb71d51a91b34f56d70e9 | 650 | package lista2.atividade8;
import java.util.Scanner;
public class AppTriangulo {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Triangulo t = new Triangulo();
System.out.println("Digite 3 valores:");
float x = sc.nextFloat();
float... | 28.26087 | 70 | 0.516923 |
f37da29dd21b04fec11731fbde485756e6b0d5ae | 4,474 | package pages;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.FindBy;
import utils.BasePage;
public class HomePage extends BasePage {
// Elements
@FindBy(xpath = "//p//bu... | 37.596639 | 98 | 0.746312 |
b109c62cf0e51d0f7cf05fc2ad22d2565b3d9cac | 57 | package org.itt.data.list;
public class LinkedList {
}
| 9.5 | 26 | 0.736842 |
d04b2078bccee90c9feb7a3205a2287e4330ef02 | 9,224 | package org.compiere.model;
import de.metas.cache.CCache;
import de.metas.logging.LogManager;
import de.metas.util.StringUtils;
import org.adempiere.ad.trx.api.ITrx;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.exceptions.DBException;
import org.adempiere.service.ISysConfigBL;
import org.co... | 25.765363 | 141 | 0.680616 |
3ece184286d28588f95455f6bdb878c7ce8e54f7 | 334 | package test.activator;
import org.osgi.framework.*;
public class Activator11 implements BundleActivator {
@Override
public void start(BundleContext context) throws Exception {/**/}
@Override
public void stop(BundleContext context) throws Exception {/**/}
public void modded(BundleContext context) throws Excep... | 22.266667 | 66 | 0.763473 |
2a3485fd7fd03b03f4d37c61c352b4d0c4ebb191 | 4,448 | /*
* BSD 3-Clause License - imaJe
*
* Copyright (c) 2016, Michael Ludwig
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyrig... | 41.962264 | 100 | 0.733588 |
550339b0a2a6fd3dbeb100921f7afb66ce4871fb | 59 | package com.alibaba.csp.sentinel.dashboard.rule.zookeeper;
| 29.5 | 58 | 0.847458 |
22685b3400d0523f07a324f3c997201bc8146b39 | 19,936 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.connectedasset.handlers;
import org.odpi.openmetadata.accessservices.connectedasset.converters.TypeConverter;
import org.odpi.openmetadata.accessservices.connectedasset.ffdc.e... | 40.602851 | 187 | 0.604635 |
6b7108ae07b71a57eafbcd012ada08580f8f1cbc | 3,587 | package pro.taskana.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pro.taskana.TaskanaRole;
import pro.taskana.exceptions.InvalidArgumentException;
import pro.taskana.exceptions.NotAuthorizedException;
import pro.taskana.impl.report.header.TimeIntervalColumnHeader;
import... | 36.979381 | 99 | 0.7385 |
a60ed79a9d965a5d95ffbbb30a588f50f87c87d3 | 261 | package org.sogive.server;
import org.sogive.data.user.RepeatDonation;
import com.winterwell.web.app.CrudServlet;
public class RepeatdonationServlet extends CrudServlet<RepeatDonation> {
public RepeatdonationServlet() {
super(RepeatDonation.class);
}
}
| 20.076923 | 72 | 0.804598 |
46aa3e31599a7a63f9e19f1901e45d8b109b0af8 | 1,840 | package ru.pavelkr.priorauniver;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Created by pavel on 19.04.2017.
*/
publ... | 36.078431 | 128 | 0.53587 |
8737083d6d1d7c27696254f90b081b4519b2758c | 29,156 |
//----------------------------------------------------
// The following code was generated by CUP v0.11b 20141202 (SVN rev 60)
//----------------------------------------------------
package hoc4;
import java_cup.runtime.*;
import java.io.FileReader;
import java.lang.Math;
import java_cup.runtime.XMLElement;
/** CUP... | 55.961612 | 271 | 0.572369 |
f863db01453ebe86383b369dd881422bb81cf4dd | 8,018 | /**
* 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... | 30.838462 | 87 | 0.70005 |
13e59b873469d035b0b6c9dd0ff109d675f7b215 | 225 | package com.dtask.center.remoteTaskModule.bo;
import lombok.Data;
/**
* Created by zhong on 2020-5-8.
*/
@Data
public class RemoteTaskMemberBo {
int userID;
int nodeID;
String username;
boolean isAdmin;
}
| 15 | 45 | 0.693333 |
2c8d4fe7d67ba268289e89e0c30ff38537b5b5db | 3,271 | /*
* 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
* "Lic... | 32.71 | 109 | 0.664629 |
d9269b226f4f838b363dfe7edeebe21be15accb9 | 984 | package org.polyglotted.graphonomy.model;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.List;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;
import com.google.common.collect.Lists;
@Accessors(chain = true)
@Gett... | 25.894737 | 71 | 0.745935 |
6cacc88b45644b0f1e91360706971582b427db82 | 3,477 | package login;
import account.AccountManager;
import utils.Utils;
import java.util.Scanner;
public class LogInPage {
Scanner input = new Scanner(System.in);
public void run() {
while (true) {
Utils.print("========Insurance Management System========");
Utils.print("1)Log In")... | 37.387097 | 91 | 0.395456 |
799b3be6c1c80478f0527d2d545713344582002d | 2,528 | package com.lichkin.application.apis.GetModuleList;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;
import com.lichkin.framework.db.beans.Condition;
import com.lichkin.framework.db.beans.Order;
import com.lichkin.framework.db.beans.QuerySQL... | 28.088889 | 87 | 0.799446 |
f9bcdb1066feea872a3139cfb4a4c0f32a864083 | 1,829 | package brv.notifier.packt;
import java.util.Locale;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframew... | 33.87037 | 115 | 0.83871 |
4ee46c91209a8fc178331977d728e06280701929 | 491 | package me.kevinnovak.treasurehunt;
public class PermissionManager {
public String base = "treasurehunt.";
public String command = "command.";
public String item = base + "item";
public String help = base + command + "help";
public String list = base + command + "list";
public String top = bas... | 28.882353 | 55 | 0.653768 |
e28a363c0931db210fd1d66c1039dc07021eb298 | 1,442 | import java.util.Scanner;
public class bell
{
private int D[];
private int num_ver;
public static final int MAX_VALUE = 999;
private int n;
public bell(int n)
{
this.n=n;
D = new int[n+1];
}
public void shortest(int s,int A[][])
{
for (int i=1;i<=n;i++)
{
D[i]=MAX_VALUE;
}
D[s] = 0;
for(int k=... | 16.767442 | 77 | 0.493759 |
5b0098b44142677c631da1ed12600e1640213bcc | 462 | package Java_Object;
public class Person
{
private String name;
private char gender;
private int age;
public String getName()
{
return name;
}
public void setName(String _name)
{
this.name=_name;
}
public char getGender()
{
return gender;
}
public void setGender(char _gender)... | 13.2 | 37 | 0.623377 |
e71c2f41ad08c97310edd29d87ff42d4b9d5b90b | 197 | package jp.toufu3.ChatServer;
public enum PermissionEnum {
INVITE_CHANNNEL,
MANAGEMENT_MES,
SEND_MES,
SEND_MENTION_MES,
READ_MES,
KNOW_EXIST,
CREATE_ROOM,
}
| 16.416667 | 30 | 0.664975 |
1c413a18c17034872af4e2c884b68f10bfaa8b82 | 516 | package com.atguigu.spring.rabbitmq;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringRabbitmqApplicationTests {
@A... | 27.157895 | 98 | 0.78876 |
44f32573001119f550b12da25aec2077175e05a2 | 279 | package kuina.spring_social_sbox;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SandBoxController {
@GetMapping("/secured")
public String secured() {
return "OK";
}
}
| 21.461538 | 62 | 0.795699 |
cd709e25d1e88986b01ab903b882c6da11f2a984 | 30,665 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2018 Groupon, Inc
* Copyright 2014-2018 The Billing Project, LLC
*
* The Billing Project 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 cop... | 53.053633 | 225 | 0.578771 |
be03c87363338e6d91f2c2b6907c1f5216f805b6 | 10,124 | package de.unistuttgart.vis.dsass2021.ex05.p2;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
// author: Siyu Chen (3494095) st169719@stud.uni-stuttgart.de
// Xuefeng Hou (3502673) st175367@stud.uni-stuttgart.de
// Leqi Xu (3556962) st176119... | 43.264957 | 119 | 0.617345 |
e48b82de3c74cc9c0c201b17d9615a64492bbdb0 | 536 | package configuration.marvel.csv;
import configuration.marvel.domain.MCUPhases;
import configuration.marvel.domain.MediaVehicle;
import lombok.Builder;
import lombok.Data;
import org.apache.commons.lang3.Range;
import org.jetbrains.annotations.Nullable;
import java.time.LocalDate;
@Data
@Builder(toBuilder = true)
pu... | 24.363636 | 48 | 0.813433 |
680db674074680dd82892af6aa0b8792353edc06 | 3,319 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 30.731481 | 112 | 0.693281 |
7a5ab9554cb7c8e396cf1d2ed2c2f0a6eecc5ce8 | 22,411 | package scalc;
import org.junit.Assert;
import org.junit.Test;
import scalc.exceptions.CalculationException;
import scalc.internal.converter.INumberConverter;
import scalc.test.model.Money;
import scalc.test.model.MoneyConverter;
import scalc.test.model.TestDto;
import java.math.BigDecimal;
import java.math.RoundingM... | 27.033776 | 113 | 0.566909 |
55b65ded3b2d85e9c9e00adb65af0160835404bd | 5,671 | import java.io.*;
import java.util.*;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Group;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.TextArea;
import j... | 31.159341 | 152 | 0.614354 |
75da31e71bafc646e8fd8be1f9ccc0f8636940c3 | 1,874 | package cn.hkxj.platform.service.wechat.handler.messageHandler;
import cn.hkxj.platform.builder.TextBuilder;
import cn.hkxj.platform.config.wechat.WechatMpPlusProperties;
import cn.hkxj.platform.service.wechat.StudentBindService;
import lombok.extern.slf4j.Slf4j;
import me.chanjar.weixin.common.error.WxErrorException... | 35.358491 | 150 | 0.762006 |
5223a98c5aed0412448881bf8936ff890ccc432b | 5,442 | /*
* Copyright 1999-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 requir... | 35.109677 | 106 | 0.62771 |
eae514d29b0979ac327a6d17d00d4d859e05ba80 | 3,457 | package com.mongodb;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import static com.mongodb.client.model.Filters.*;
import org.bson.Document;
import org.bson.conversions.Bson;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Auth... | 28.570248 | 91 | 0.602546 |
00bd54a31542cc1a95aa078f855315e28b6746ae | 3,452 | package org.vorthmann.j3d;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseWheelEvent;
/**
* Description here.
*
* @author Scott Vorthmann 2003
*/
public class MouseListenerSwitch extends MouseAdapter implements MouseTool {
protect... | 21.710692 | 98 | 0.634705 |
ff3ca5f886ef2971b3911224bd73e357ef6aa7ab | 1,645 | package com.zkyking.springaop.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
... | 35.76087 | 128 | 0.580547 |
f9293fe95c4d90c9ef713efe64ce813f18544977 | 1,248 | package com.ibm.ABCDEF;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.spring... | 28.363636 | 94 | 0.78766 |
a7a9d0bde5f852359ceaac50c814e1bfbae4fb6d | 3,644 | package com.minapp.android.sdk.content;
import androidx.annotation.NonNull;
import com.minapp.android.sdk.Global;
import com.minapp.android.sdk.database.query.Query;
import com.minapp.android.sdk.util.BaseCallback;
import com.minapp.android.sdk.util.PagedList;
import com.minapp.android.sdk.util.Util;
import java.util... | 32.535714 | 136 | 0.641054 |
bbc76b8e7b4c724a6f5b4307c3e6df6c4fa4c8db | 5,678 | // Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... | 32.445714 | 89 | 0.756252 |
f49ed08b0299da55b2822d903294cc5890d4790f | 4,734 | /*
* Copyright (c) 2019 Dario Lucia (https://www.dariolucia.eu)
*
* 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... | 39.45 | 165 | 0.709759 |
e3bb72deb8463fe76d36372bf5e853a3239ac051 | 460 | package com.whiletrue.ct4j.tasks;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface ClusterTask {
String name();
int de... | 25.555556 | 44 | 0.765217 |
c54d56aa3f42cffe58a29909be3ef97b10d52b1c | 2,319 | package com.example.pcbackend.Components.Queue;
import com.example.pcbackend.BackController.WebController;
import com.example.pcbackend.Components.Component;
import com.example.pcbackend.Components.Machine.MachineComponent;
import com.example.pcbackend.TheSystem;
import com.example.pcbackend.Timer;
import jav... | 28.280488 | 137 | 0.598103 |
4b403ef6dc52d72ede014b0204910a80cd497af5 | 1,955 | package no.nav.modiapersonoversikt.service.plukkoppgave;
import no.nav.modiapersonoversikt.legacy.api.domain.Oppgave;
import no.nav.modiapersonoversikt.legacy.api.domain.Temagruppe;
import no.nav.modiapersonoversikt.legacy.api.service.OppgaveBehandlingService;
import no.nav.modiapersonoversikt.infrastructure.tilgangsk... | 45.465116 | 150 | 0.784655 |
7ebc5f5dffe87e7ec5b7cb0bc3565a622f2d6a09 | 356 | package to;
import to.reports.FbPictureData;
/**
* Created by arkady on 06/04/16.
*/
public class FbPicture {
private FbPictureData data;
public FbPicture() {
}
public FbPicture(FbPictureData data) {
this.data = data;
}
public FbPictureData getData() {
return data;
}
public void setData(FbPictureDa... | 13.185185 | 42 | 0.688202 |
3b68f8ef7e5090304916798e9767fe99ff0db90a | 1,819 | /**
* 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.microsoft.azure.management.databox.v2019_09_01;
import com.fasterxml.jackso... | 33.685185 | 138 | 0.736668 |
3a2b6652e86bdfeceab72ffe321fd132f43031b4 | 966 | package com.DearBaby.www.mapper;
import com.DearBaby.www.entity.MyOrder;
import java.util.List;
/**
* 我的订单模块持久化操作接口
* Created by chenfumei on 2017/7/3.
*/
public interface MyOrderMapper {
/**
* 查询所有订单信息
* Created by chenfumei on 2017/6/30.
* @param
* @return 订单信息
*/
public List<M... | 18.226415 | 48 | 0.57971 |
cb2836c9349dee0559bf5143382f1f9a052467da | 1,741 | package com.asofdate.batch.dao.impl;
import com.asofdate.batch.dao.BatchGroupHistoryDao;
import com.asofdate.batch.dao.impl.sql.BatchSqlText;
import com.asofdate.batch.entity.BatchGroupHistoryEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapp... | 37.042553 | 119 | 0.745549 |
2951e98b6ac98f1161c9d920f490c40934ff1704 | 341 | package top.pippen.compress;
/**
* 消息体压缩工厂
* @author pippen
*/
public class CompressorFactory {
public static Compressor get(byte extraInfo) {
switch (extraInfo & 24) {
case 0x0:
return new SnappyCompressor();
default:
return new SnappyCompressor(... | 18.944444 | 50 | 0.557185 |
461b91e772b9527c90975054a7d9c11f91a6d1ac | 2,085 | package com.burcumirza.HenryChess.Pieces;
import com.burcumirza.HenryChess.Logic.*;
import java.util.*;
public class King extends Piece {
public King(Chessboard board, int row, int col, int color) {
super(board, row, col, color, 5, 12, "King");
abbreviation = "K";
}
public ... | 29.366197 | 91 | 0.464748 |
01c0bd1e1bb55de7fa4b593a361bdeb1a090e041 | 2,342 | /*
* Copyright (C) 2006-2011 by Benedict Paten (benedictpaten@gmail.com)
*
* Released under the MIT license, see LICENSE.txt
*/
/*
* Created on Feb 11, 2005
*/
package bp.pecan.dimensions;
import bp.common.fp.Function_2Args;
import bp.common.fp.Functions;
import bp.common.fp.Functions_2Args;
/**
* @author ben... | 29.275 | 107 | 0.649018 |
911d79a38528579d0392dfe8e49d3686a2e90ff8 | 7,587 | package com.example.lab.android.nuc.crizyandroid;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.view.PagerAdapter;
im... | 28.738636 | 102 | 0.600896 |
cbd251ab68fedab42f050874641fd8ca72ffb98f | 4,353 | package com.slimgears.util.sample;
import com.google.auto.value.AutoValue;
import com.google.common.reflect.TypeToken;
import com.slimgears.util.autovalue.annotations.BuilderPrototype;
import com.slimgears.util.autovalue.annotations.HasMetaClass;
import com.slimgears.util.autovalue.annotations.MetaBuilder;
import com.... | 36.579832 | 219 | 0.681829 |
74cb1004819a4ec46f6bc7213c40c70d420167ad | 112 | package pl.jacob_the_liar.calculator.window;
public interface Refresh {
void refreshControls();
}
| 14 | 45 | 0.714286 |
6f1192943a9f9ea1851ad09043dec613a9198f0c | 2,588 | package edu.cnm.deepdive.dungeonrunclient.viewmodel;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import edu.cnm.deepdive.dungeo... | 31.180723 | 98 | 0.739567 |
9287c3c55f8a1ab5e78ab639acdc477c6b3f98f0 | 8,539 | /*
* Copyright 2007 Penn State 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 applicable law or agreed to... | 29.243151 | 79 | 0.590467 |
6d91443a3798fe995c1ffde4add80725f0919537 | 1,994 | /*******************************************************************************
* Copyright (c) 2016 Sebastian Stenzel and others.
* This file is licensed under the terms of the MIT license.
* See the LICENSE.txt file for more info.
*
* Contributors:
* Sebastian Stenzel - initial API and implementation
****... | 34.982456 | 131 | 0.723671 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.