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 |
|---|---|---|---|---|---|
ce592941d53f5d88dea84bdd5589d7ffda39ea61 | 515 | package org.learn.points.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 积分实体类
*/
@Data
@TableName("t_points")
public ... | 23.409091 | 54 | 0.751456 |
fefa75b39dcd42676de2c28786ecf3a24dc3357f | 200 | package org.pmiops.workbench.actionaudit.auditors;
public interface AuthDomainAuditor {
void fireSetAccountDisabledStatus(
long userId, boolean newDisabledValue, boolean oldDisabledValue);
}
| 28.571429 | 71 | 0.82 |
58161215229b57ff17317810d2da86900fa4ca9c | 807 | package com.github.imthenico.simplecommons.data.db.sql.query;
import com.github.imthenico.simplecommons.data.db.sql.query.impl.QueryBuilderImpl;
import java.sql.Connection;
import java.sql.SQLException;
public interface QueryBuilder {
QueryBuilder table(String tableName);
QueryBuilder addPlaceholder(String... | 26.032258 | 82 | 0.775713 |
e6f0fc905af4583c7d9eef2b72838e4ecf36b243 | 2,924 | /*
* This file is part of GroupManager, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | 34.809524 | 82 | 0.649453 |
aaae541a49372762956ba15c4804c560e0e1f7c2 | 5,968 | /***********************************************************************************************************************
* Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu)
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi... | 41.444444 | 123 | 0.726877 |
d920417c3acc5608ce2b2338f8668e9a897bed15 | 1,286 | package com.xiaoyi.ssm.service;
import java.util.List;
import com.xiaoyi.ssm.model.TrainCourse;
/**
* @Description: 培训课程业务逻辑层
* @author 宋高俊
* @date 2018年9月29日 下午8:04:23
*/
public interface TrainCourseService extends BaseService<TrainCourse, String> {
/**
* @Description: 根据培训机构ID获取培训课程
* @author 宋高俊 ... | 18.371429 | 78 | 0.639969 |
c650d323d1ce57662087dfe3a769b1838dcce4d7 | 2,433 | /*L
* Copyright Oracle inc, SAIC-F
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-util/LICENSE.txt for details.
*/
package gov.nih.nci.ncicb.cadsr.common.dto;
import gov.nih.nci.ncicb.cadsr.common.dto.BaseTransferObject;
import gov.nih.nci.ncicb.cadsr.common.resou... | 20.445378 | 65 | 0.67201 |
e8c56e4cc0e6ba5e543a0b08a0830b135dafc80c | 4,029 | package com.kugou.loader.clickhouse.context;
import com.google.common.collect.Maps;
import com.kugou.loader.clickhouse.ClickhouseClient;
import com.kugou.loader.clickhouse.ClickhouseClientHolder;
import com.kugou.loader.clickhouse.config.ClickhouseConfiguration;
import com.kugou.loader.clickhouse.config.ConfigurationK... | 35.654867 | 245 | 0.674361 |
6ec141550dbc2a0ce54fcda98ab8f958b57812cc | 1,374 | package com.gwtfb.sdk;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.gwtfb.client.Callback;
/**
* Class that wraps Facebook Event Handling methods
* @see http://developers.facebook.com/docs/reference/javascript/#event-handling
* @author... | 35.230769 | 169 | 0.708151 |
b15769d35435a3f73dd97359016fca183e207f0f | 3,830 | package relamapper.accountservice.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import relamapper.accountservice.model.Account;
import relamapper.accountservice.model.Credential;
impo... | 34.504505 | 95 | 0.66658 |
5c8752a4da345d5935c97718cf0e2e6935b7331a | 2,061 | package core.pl.bindings;
import play.data.validation.Constraints;
/**
* Created by nue on 2.9.2015.
*/
public class RegistrationData {
@Constraints.Email
private String email;
private String password;
private String passwordAgain;
private String userName;
private String userAddress;
... | 18.567568 | 56 | 0.633188 |
75a34fd1a9e74460443e7915a2c0fdf2239cabf0 | 23,400 | /*
* QR Code generator library (Java)
*
* Copyright (c) Project Nayuki. (MIT License)
* https://www.nayuki.io/page/qr-code-generator-library
*
* 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 S... | 34.411765 | 128 | 0.574786 |
b3e3155e27bbb44d674a0ce05dd3b0e89bf28d99 | 2,087 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 35.982759 | 111 | 0.641112 |
c39b964c078204388397992bf7a2fce48d4b828b | 2,231 | package com.microprogram.grpc.client.nameresolver;
import com.google.common.collect.ImmutableList;
import io.grpc.Attributes;
import io.grpc.EquivalentAddressGroup;
import io.grpc.NameResolver;
import java.util.Collection;
import java.util.List;
import static java.util.Objects.requireNonNull;
/**
* Copyright (C), ... | 30.148649 | 105 | 0.695204 |
e07830c6d06ceadfb929e97619c2c0ce3268f07d | 1,977 | package org.toilelibre.libe.soundtransform.model.converted.sound.transform;
import java.io.Serializable;
import org.toilelibre.libe.soundtransform.model.converted.sound.Channel;
import org.toilelibre.libe.soundtransform.model.converted.spectrum.FourierTransformHelper;
import org.toilelibre.libe.soundtransform.model.c... | 42.978261 | 184 | 0.778452 |
b003dfedfb06243e9d443dfb5d64f34bd5691ffd | 2,337 | package org.apereo.cas.support.saml.web.idp.metadata;
import org.apereo.cas.support.saml.BaseSamlIdPConfigurationTests;
import org.apereo.cas.support.saml.SamlIdPTestUtils;
import org.apereo.cas.support.saml.services.SamlRegisteredService;
import lombok.val;
import org.apache.commons.lang3.StringUtils;
import org.jun... | 35.409091 | 121 | 0.773214 |
199ec2e4fbc7d1f963bc5294b007505bce8168a9 | 645 | package com.example.taxihelper.mvp.model;
import com.example.taxihelper.mvp.contract.OrderDetailContract;
import com.example.taxihelper.mvp.entity.OrderDetailInfo;
import com.example.taxihelper.mvp.model.base.BaseModelImpl;
import javax.inject.Inject;
import rx.Observable;
/**
* Created by Raven on 2017/8/26.
*/
... | 24.807692 | 94 | 0.773643 |
3159eedf133e82f6f0fa6befce9772c4a267a00a | 258 | package com.upai.manageallactivity.first;
import android.content.Context;
import com.upai.manageallactivity.second.SecondActivity;
class FirstModel {
void switchToSecondActivity(Context context){
SecondActivity.actionStart(context);
}
}
| 18.428571 | 56 | 0.775194 |
c74a0faf9da270cdb3be33fe5b83741882be5517 | 1,558 | package com.zerowater.environment.ui.dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.ProgressBar;
import com.zerowater.environment.R;
import com.zerowater.environment.ui.base.BaseDialog;
import butterknife.BindView;
import butterknife.ButterK... | 22.257143 | 79 | 0.609756 |
e5317062550a5e32bdd5e150e424c1f21d253a5e | 4,104 | package be.fgov.caamihziv.services.quickmon.interfaces.api.healthChecks.lucene;
import be.fgov.caamihziv.services.quickmon.domain.healthchecks.HealthCheck;
import org.springframework.beans.BeanUtils;
import org.springframework.util.ReflectionUtils;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;... | 41.04 | 148 | 0.583821 |
b5ae7ef952077f799da1139b436d32040f231cf0 | 1,295 | package br.eti.arthurgregorio.library.domain.entities.administration;
import br.eti.arthurgregorio.library.domain.entities.PersistentEntity;
import lombok.*;
import org.hibernate.envers.Audited;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.pers... | 24.903846 | 93 | 0.716602 |
b334cacfeee864e471cfd33161e5161fe4e5a87e | 1,660 | package com.example.project.configuration.security.service;
import java.util.List;
import com.example.project.domain.entities.SiteRole;
import com.example.project.domain.entities.SiteUser;
import com.example.project.service.SiteUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | 37.727273 | 102 | 0.768675 |
c1e5199cf623ffd79ad4b71d8e929c5131fe3f76 | 809 | package ru.kontur.vostok.hercules.meta.auth.blacklist;
import ru.kontur.vostok.hercules.curator.CuratorClient;
import java.util.List;
/**
* @author Gregory Koshelev
*/
public class BlacklistRepository {
private final CuratorClient curatorClient;
public BlacklistRepository(CuratorClient curatorClient) {
... | 25.28125 | 63 | 0.698393 |
793d89535bd6ef354c3db4f70edd8ded99b5e3a3 | 1,809 | package com.taoerxue.app.qo;
/**
* Created by lizhihui on 2017-03-27 10:25.
*/
public class CourseQuery {
private String order;
private Integer parentTypeId;
private Integer typeId;
private String address;
private Integer cityId;
private Integer areaId;
private Double lng;
private Dou... | 18.459184 | 55 | 0.593698 |
e3da559290c504ca7669c7c1c52dc8c6fa8585a9 | 3,303 | package br.com.fernando.chapter12_javaTransaction.part04_transactionIsolation;
public class TransactionIsolation01 {
// JDBC Transaction Isolation Levels
//
// Problems:
//
// Dirty reads: A dirty read occurs when a transaction is allowed to read data from a row that has been modified by another r... | 73.4 | 265 | 0.759612 |
c83d700aa4f597a2e2ce46f4b0fe8807b9230606 | 3,624 | package net.pryden.accounts.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
/**
* Represents the totals of the various columns computed from the month's data. It is never
* serialized -- instead the values are recomputed when necessary.
*/
@AutoValue
public abst... | 35.881188 | 94 | 0.762969 |
d35751480540a7745d932e399537313603f3efe3 | 2,993 |
package org.rookit.dm.bistream;
import org.apache.commons.text.RandomStringGenerator;
import org.junit.jupiter.api.Test;
import org.rookit.test.AbstractUnitTest;
import org.rookit.test.categories.FastTest;
import org.rookit.test.categories.UnitTest;
import org.rookit.test.mixin.ByteArrayMixin;
import org.rookit.test.... | 34.011364 | 111 | 0.676579 |
ac5b25f973403e47a7a40e3a7a66a7854fee700f | 1,176 |
/*
* JGCS - Group Communication Service.
* Copyright (C) 2006 Nuno Carvalho, Universidade de Lisboa
*
* jgcs@lasige.di.fc.ul.pt
*
* Departamento de Informatica, Universidade de Lisboa
* Bloco C6, Faculdade de Ciências, Campo Grande, 1749-016 Lisboa, Portugal.
*
* See COPYING for licensing details.
*/
package... | 21.777778 | 76 | 0.715136 |
9dc7a4334911f8e0c9cd05e944132de4c47bd0d7 | 16,225 | package com.example.bot.spring.covidcases;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.linecorp.bot.client.LineBlobClient;
import com.linecorp.bot.client.LineMessagingClient;
import com.l... | 39.285714 | 139 | 0.580832 |
fe9b6350ee6348aacac201d508803ff932fb1e2d | 3,244 | /*
* Compile: javac -sourcepath src -d target src/playground/concurrency/SemaphoreDemo.java
* Run: java -cp target playground.concurrency.SemaphoreDemo
*/
package playground.concurrency;
import java.util.concurrent.Semaphore;
/**
* An example of using the {@code java.util.concurrent.Semaphore} class.
* <p>
* Ex... | 22.068027 | 89 | 0.689889 |
550d834608b5960fafd30558447a8da9152ac236 | 11,542 | package org.jaudiotagger.tag.id3.framebody;
import org.jaudiotagger.AbstractTestCase;
import org.jaudiotagger.tag.TagOptionSingleton;
import org.jaudiotagger.tag.id3.ID3v24Frames;
import org.jaudiotagger.tag.id3.valuepair.TextEncoding;
/**
* Test TPOSFrameBody
*/
public class FrameBodyTPOSTest extends AbstractTestC... | 32.240223 | 135 | 0.633686 |
b0674d6dc4ab401dbf5453d45b86ed9cbc07cc29 | 3,192 | package de.sec.dns.test;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputForma... | 31.294118 | 77 | 0.723997 |
24ad03f9d0231856fee927b4d33fa9fc5bd6d3a2 | 890 | package com.weatherchecker.tool;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
public class DateProvider {
public static String getDayOfWeek() {
int dayOfWeek = Calendar.getInstance().get(Calendar.DAY_OF_WEEK);
switch (dayOfWeek){
... | 27.8125 | 82 | 0.606742 |
21145327f957a100f74a15f42f504d4f7cfe8f7b | 749 | package org.firstinspires.ftc.teamcode.testOpModes;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.firstinspires.ftc.teamcode.subsystems.robot.Robot;
@TeleOp
public class GyroTest extends OpMode {
Robot robot;
boolean started = false;... | 25.827586 | 75 | 0.682243 |
a052ed19c8c547733f25d3f911406fda74ea80ee | 2,052 | package com.test;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
import java.util.concurrent.atomic.AtomicInteger;
public class Test {
public static class CyclicPrint implements Runnable {
private final CyclicBarrier headBarrier;
private final Cycli... | 34.2 | 112 | 0.576511 |
d2a9d45d5bd5f834cbdabc477f6596cec05c72a3 | 2,042 | /*
* Copyright (c) 2015, 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 Softwa... | 30.029412 | 77 | 0.663075 |
3701b7c2746f345911836c9ff5531ea6ec4baa7f | 681 | package Runner;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
@RunWith(Cucumber.class)
@CucumberOptions(
... | 21.28125 | 49 | 0.678414 |
741ba41bfa405b184fc11fea6eb46d2468c6905c | 4,336 | package havis.llrpservice.server.service.fsm;
import java.io.IOException;
import java.net.NetworkInterface;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Collections;
import java.util.Enumeration;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.u... | 30.971429 | 93 | 0.701568 |
f3dd78c075d3cba9b3a390840f419587e7eacb13 | 432 | package io.horizon.ctp.service.monitor;
import lombok.Getter;
import lombok.Setter;
/**
*
* @author yellow013
*
*/
@Getter
@Setter
public class Cpu {
/**
* 核心数
*/
private int coreNum;
/**
* CPU总的使用率
*/
private double total;
/**
* CPU系统使用率
*/
private double sys;
/**
* CPU用户使用率
*/
priv... | 9.391304 | 39 | 0.590278 |
0ea1a3650439f262517f83b3b80577a991f844ec | 3,308 | /*
* (c) Copyright 2007, 2008, 2009 Hewlett-Packard Development Company, LP
* All rights reserved.
* [See end of file]
*/
package com.hp.hpl.jena.sparql.engine.iterator;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.hp.hpl.jena.sparql.engine.QueryIterator;
import com... | 32.431373 | 91 | 0.703144 |
1a4249ea3bd056eae71a9019c8aee1978b9e5dd5 | 499 | import java.util.Scanner;
public class Largest3num
{
public static void main(String[] args)
{
int num1,num2,num3;
System.out.print("Enter three numbers :");
Scanner sc=new Scanner(System.in);
num1=sc.nextInt();
num2=sc.nextInt();
num3=sc.nextInt();
if(num1>num2 && num1>num3)
System.out.println("The ... | 23.761905 | 53 | 0.669339 |
e4ecf3fc0b0e4dc3e15d8881de7ebddb73df7a92 | 12,058 |
package org.vorthmann.zome.app.impl;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.vorthmann.ui.Controller;
import org.vorthmann.ui.DefaultC... | 37.101538 | 136 | 0.616437 |
9b4f72589ea83d6a6e27e96561ab7d7e9a0f0921 | 5,688 | package com.faithfulmc.hardcorefactions.command;
import com.faithfulmc.hardcorefactions.ConfigurationService;
import com.faithfulmc.hardcorefactions.HCF;
import com.faithfulmc.hardcorefactions.events.CaptureZone;
import com.faithfulmc.hardcorefactions.events.faction.ConquestFaction;
import com.faithfulmc.hardcorefacti... | 46.622951 | 196 | 0.625176 |
6998281cdc9ce6c960a5fbb86079147ab21b449e | 1,742 | package com.half.wowsca.model;
import org.json.JSONObject;
/**
* Created by slai4 on 9/19/2015.
*/
public class BatteryStats {
private int maxFrags;
private int frags;
private int hits;
private int shots;
private long maxFragsShipId;
public static BatteryStats parse(JSONObject json) {
... | 21.775 | 71 | 0.557979 |
8c309785bc1e1c281d8917ca1e1377609f062c60 | 507 | package plb.spring.dao.jdbc;
import java.sql.Connection;
import java.sql.SQLException;
import com.mysql.jdbc.DatabaseMetaData;
public class TransactionSupport {
public static void main(String[] args) throws SQLException {
Connection conn = JDBCUtil.getConnection();
DatabaseMetaData dm = (DatabaseMetaD... | 29.823529 | 99 | 0.771203 |
36ee39c1a50ad2ac764032cd7bcd1064d3547f5e | 26,075 | package com.kuaiyou.obj;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
/**
* 单条广告的属�?
*/
public class AdsBean implements Serializable {
private static final Long serialVersionUID = 8472182013671215462L;
private String idAd = null;
private String adText = null;
pr... | 24.121184 | 73 | 0.636702 |
a41fdaf6abea549ed4ffd8cd3aac62f697c94c2e | 910 | package io.luna.game.model.mob.inter;
import io.luna.game.model.mob.Player;
import io.luna.net.msg.out.NameInputMessageWriter;
import java.util.Optional;
import java.util.OptionalInt;
/**
* An {@link InputInterface} implementation that opens an "Enter name" interface.
*
* @author lare96 <http://github.com/lare96>... | 27.575758 | 92 | 0.702198 |
900bbe33ac1e8d786610816103d45b7249829fb9 | 2,246 | /*
* Copyright (C) 2019 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.akka.coordination.lease;
import akka.actor.ActorSystem;
import akka.cluster.Cluster;
import akka.coordination.lease.LeaseSettings;
import akka.coordination.lease.javadsl.Lease;
import akka.coordination.lease.javadsl.LeaseProvider;
i... | 23.642105 | 96 | 0.705699 |
5e87ec20333671dc8b50ff4e71ff39c0d59063b7 | 15,388 | // ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 43.103641 | 128 | 0.637705 |
5e1db603d81553a7318cbe0e0f184156cd240368 | 161 | package sti.software.engineering.reading.assistant.ui;
import android.view.View;
public interface Hostable {
void onInflate(View view, String screen);
}
| 16.1 | 54 | 0.770186 |
f3ccfb43d7a0b999f2fd056bb9273ec59541dc98 | 1,959 | package com.scalar.kelpie.modules;
import com.scalar.kelpie.config.Config;
import com.scalar.kelpie.stats.Stats;
/** Processor executes operations. */
public abstract class Processor extends Module {
private Stats stats;
public Processor(Config config) {
super(config);
}
public abstract void execute();
... | 22.261364 | 72 | 0.695253 |
62e13c872415bb1eace482dda240f0b858d1ac24 | 773 | package com.nt.rest;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
@Produces({ "application/xml", "application/json" })
public interface... | 23.424242 | 71 | 0.698577 |
0f805f0634d5f2256f2df3441eb12e34d50c1428 | 539 | /**
* Copyright 2009 Joe LaPenna
*/
package com.joelapenna.foursquared.util;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
/**
* @author Joe LaPenna (joe@joelapenna.com)
*/
public interface DiskCache {
public boolean exists(String key);
public File getFile(String key);
... | 17.387097 | 69 | 0.714286 |
3f88f1d759a82417d279be155adcffeebbf23c66 | 2,688 | package org.parseerror;
import com.sun.faces.config.ConfigureListener;
import com.sun.faces.config.FacesInitializer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.DispatcherServletAutoCon... | 38.4 | 122 | 0.779018 |
c08630c7c8936f1ebb2c6b8b0d5c239adbc28586 | 6,177 | package ca.sheridancollege.vu8.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springf... | 33.93956 | 94 | 0.728509 |
67460c854ad27cc9825190af9d4fc33242e71bb8 | 916 | /*
* 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 thump.game.play.action;
import thump.game.Player;
import thump.game.maplevel.MapObject;
import thump.game.play.PSprite;
/**
... | 22.9 | 79 | 0.612445 |
42ffd724905154dc05abb9a88a41fecb5ed2e636 | 2,880 | package jwt4j;
import com.google.gson.JsonObject;
import jwt4j.exceptions.AlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.nio.charset.StandardCharsets;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.Base64;
imp... | 33.488372 | 117 | 0.681944 |
c1f516f6ad5ee1f7cb3c38880d9ca94c3faec20c | 2,666 | package org.prosolo.services.nodes.data.organization;
import org.prosolo.services.common.observable.StandardObservable;
import org.prosolo.services.nodes.data.ObjectStatus;
import org.prosolo.services.nodes.data.ObjectStatusTransitions;
import java.io.Serializable;
/**
* @author stefanvuckovic
* @date 2017-11-14
... | 25.634615 | 101 | 0.623406 |
6a54b4e02b0e8eb0f4ac91ee2e727b1c88b41e93 | 3,547 | import java.util.*;
import java.io.*;
/* Mighty Cohadar */
public class GG {
static class Ret {
final int last;
final long count;
Ret(int last, long count) {
this.last = last;
this.count = count;
}
public String toString() {
return String.format("(l=%d, c=%d)", last, count);
}
}
private final... | 21.628049 | 59 | 0.524387 |
ca3da932b3ee33ed00b07c66834a5922a16aad96 | 8,319 | package com.google.android.gms.internal;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import... | 40.980296 | 178 | 0.479745 |
e3b434ed0a53ea75d69c6c4b732446dbbe3fd969 | 26,290 | /*
* Copyright 2016 Davide Maestroni
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 36.412742 | 100 | 0.688132 |
9bc80c0ad8ad8a5e4891d7147c039ff04a78c08e | 796 | package cqu.edu.cn.ssosystem.controller;
import cqu.edu.cn.ssosystem.global.DBConnection;
import cqu.edu.cn.ssosystem.global.ResData;
import cqu.edu.cn.ssosystem.model.Token;
import cqu.edu.cn.ssosystem.model.User;
public class TokenControllerTest {
public static void main (String[] args) throws Exception {
... | 36.181818 | 91 | 0.729899 |
08889914cbce8e8590e81ccbf88413a07d744199 | 103 | package com.csculb.interfaceDemo;
public interface BaseRepository {
void save(Savable entity);
}
| 14.714286 | 33 | 0.76699 |
d4dbe8bfc7a22fc4c6ef00216be4bfb8b83a32c3 | 323 | package lumien.randomthings.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
public class ContainerAnalogEmitter extends ContainerEmptyContainer
{
public ContainerAnalogEmitter(EntityPlayer player, World world, int x, int y, int z)
{
super(player, world, x, y, z);
}
... | 21.533333 | 85 | 0.786378 |
1957bd9c31e95cc89f77f3137984a1566fb862eb | 651 | package com.juztoss.shapes;
import com.juztoss.Game;
/**
* Created by Kirill on 5/16/2016.
*/
public class IShape extends AbstractShape {
private boolean[][] mContent;
public IShape(Game game) {
super(game);
}
@Override
void reset() {
super.reset();
mContent = new boole... | 18.6 | 52 | 0.562212 |
c8305fd6c6b8593ac3301c08cfa4e1797dd7bad7 | 18,328 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2014 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 30.045902 | 136 | 0.689655 |
852998698bd5bd00395727d233aa3e81b3ddaab1 | 6,504 | /*
* 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 required by applica... | 42.509804 | 261 | 0.697109 |
90819d9e7920ed503ba70361270eaea4ae86c501 | 426 | package com.qr.model;
import javax.websocket.Session;
public class WebSocketClient {
private String code;
private Session session;
public void setCode(String code) {
this.code = code;
}
public Session getSession() {
return session;
}
public String getCode() {
r... | 15.214286 | 45 | 0.619718 |
16290cd7d85d544c2a2aededaa83646bbd770749 | 1,607 | /*
* Licensed to GIScience Research Group, Heidelberg University (GIScience)
*
* http://www.giscience.uni-hd.de
* http://www.heigit.org
*
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The G... | 40.175 | 80 | 0.749844 |
f48f6767b36cd996cf0691e58f8cbddc071bce77 | 269 | package com.yapp.pet.domain.common;
import lombok.Getter;
@Getter
public enum PetSizeType {
LARGE("대형견"),
MEDIUM("중형견"),
SMALL("소형견"),
ALL("상관없음");
private final String value;
PetSizeType(String value){
this.value = value;
}
}
| 13.45 | 35 | 0.613383 |
d1dfd49c2edf97680f5b37834aae34f798c016d4 | 893 | package com.example.leetcodedemo.array.medium;
/**
* 给定数组 A,我们可以对其进行煎饼翻转:我们选择一些正整数 k <= A.length,然后反转 A 的前 k 个元素的顺序。我们要执行零次或多次煎饼翻转(按顺序一次接一次地进行)以完成对数组 A 的排序。
*
* 返回能使 A 排序的煎饼翻转操作所对应的 k 值序列。任何将数组排序且翻转次数在 10 * A.length 范围内的有效答案都将被判断为正确。
*
*
*
* 示例 1:
*
* 输入:[3,2,4,1]
* 输出:[4,2,4,3]
* 解释:
* 我们执行 4 次煎饼翻转,k 值分别... | 19.844444 | 106 | 0.592385 |
5e02cead3c1781f66618d7bec40ae99d493172e4 | 6,102 | package com.base.services.aws;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.CannedAccessControlList;
import com.amazonaws.s... | 34.868571 | 160 | 0.646018 |
676416e88786ee98243ccb3c07ecb99404bc6248 | 262 | package ru.job4j.menustructure;
import java.util.List;
/**
* the interface for items with children.
*/
public interface IntChildren {
/**
* returns the children list.
* @return the list with children.
*/
List<IntName> getChildren();
}
| 17.466667 | 41 | 0.656489 |
e797447b7e1cb6c8381d8c78b921d1f5f220a276 | 2,235 | /*
* Artifactory is a binaries repository manager.
* Copyright (C) 2012 JFrog Ltd.
*
* Artifactory is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your o... | 39.210526 | 107 | 0.75302 |
dcffe5f4203447af4460608665c0fa1f3841c6e3 | 957 | package io.blockv.example.feature.login.phone;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import io.blockv.example.R;
import io.blockv.example.feature.BaseFragment;
/**
* The LoginPhoneFragment demonstrates logging a user into the blockv pla... | 28.147059 | 101 | 0.776385 |
ca06da8fa175c74c6bb0e9e45fc2669a46dca36f | 4,259 | package cn.com.nexwise.sdk.common;
import java.util.concurrent.Callable;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;
import cn.com.nexwise.sdk.common.dto.ApiResult;
import cn.com.nexwise.sdk.common.dto.TaskResult;
import okhttp3.Request;
import okhttp3.Response;
public class ApiPollCal... | 25.502994 | 90 | 0.61869 |
1bd744293a8c36ada898638b56492577003202cd | 1,040 | package com.archyx.aureliumskills.skills.mining;
import com.archyx.aureliumskills.AureliumSkills;
import com.archyx.aureliumskills.ability.Ability;
import com.archyx.aureliumskills.api.event.LootDropCause;
import com.archyx.aureliumskills.data.PlayerData;
import com.archyx.aureliumskills.loot.LootPool;
import com.arch... | 30.588235 | 67 | 0.773077 |
5cbb5075b93b6af5b0a26705fc95e5cca998fe31 | 1,492 | package io.skysail.server.app.storymapper.story.resources;
import io.skysail.server.db.DbClassName;
import io.skysail.server.queryfilter.Filter;
import io.skysail.server.restlet.resources.ListServerResource;
import io.skysail.api.links.Link;
import java.util.List;
import java.util.Map;
import io.skysail.server.Resou... | 31.083333 | 120 | 0.728552 |
843fc6ad40bbc45f5bd55d2bf8ec8515418bb8ad | 1,715 | package io.keinix.protoflow.data.source;
import android.arch.lifecycle.LiveData;
import android.os.AsyncTask;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import io.keinix.protoflow.data.Routine;
import io.keinix.protoflow.data.source.local.RoutineDao;
@Singleton
public class R... | 24.5 | 88 | 0.66414 |
c2da127f2b8b81a74b859415e298656ee775e440 | 823 | package com.learning.ads.design;
import java.util.PriorityQueue;
/**
* https://www.geeksforgeeks.org/kth-largest-element-in-a-stream/
*
*
* @author Arun Rahul
*
*/
public class KthLargestElementInStream {
/**
* Complexity: O(n)
*
* @param array
* @param k
* @return
*/
public int[] find(int[] a... | 17.510638 | 65 | 0.550425 |
f17d7951d1d2ac5e6523092dc2ab664e49239862 | 1,030 | package cz.muni.fi.pa165.mushrooms.service.config;
import cz.muni.fi.pa165.mushrooms.facade.MushroomHunterFacade;
import cz.muni.fi.pa165.mushrooms.service.MushroomHunterService;
import cz.muni.fi.pa165.mushrooms.validation.PersistenceSampleApplicationContext;
import org.dozer.DozerBeanMapper;
import org.dozer.M... | 35.517241 | 101 | 0.784466 |
66643116ed999efe29157d5562419257a242cceb | 5,173 | /*
* $Header:
* /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons
* //httpclient/src/java/org/apache/commons/httpclient/util/DateParser.java,v
* 1.11 2004/11/06 19:15:42 mbecke Exp $ $Revision: 480424 $ $Date: 2006-11-29
* 06:56:49 +0100 (Wed, 29 Nov 2006) $
*
* =========================... | 34.952703 | 102 | 0.639474 |
dda706259f967677a45674ac53d69bb23e63a32c | 5,500 | /*
* 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 ... | 44 | 162 | 0.654182 |
f4104f7b2a6f7bff44e7567c6ccc722943a8e503 | 2,432 | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_CONTENT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_FROM;
import static seedu.address.logic.parser.CliSyntax.PREFIX_SUBJECT;
im... | 40.533333 | 104 | 0.738898 |
83a778bebbf34d891e0a5ab0d73e7637275b7127 | 2,882 | /* SPDX-License-Identifier: Apache-2.0 */
package org.odpi.openmetadata.accessservices.subjectarea.properties.classifications;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.odpi.openm... | 31.67033 | 113 | 0.738376 |
1f1f26a5949c58acb5fc29f8fa216e1d52d36f93 | 946 | package com.bluebee.smartsupply;
import com.bluebee.smartsupply.config.AppConfig;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplicatio... | 32.62069 | 97 | 0.858351 |
bf671a061dee0fff183abd848985a9e343c7782d | 4,872 | package org.folio.finc.select;
import io.restassured.RestAssured;
import io.restassured.parsing.Parser;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import io.vertx.ext.unit.junit.Timeout;... | 33.833333 | 99 | 0.712644 |
a9044aad0984af850e9ca02d11dde8fe21ad01db | 3,687 | package com.eitan.shopik.genderFilteringPages;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import a... | 37.242424 | 102 | 0.715758 |
a2d9f0fa591864bfba5659b5c8eae13af73d2ee2 | 2,689 | /*
* Copyright 2013 SFB 632.
*
* 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... | 29.549451 | 80 | 0.742655 |
d24e92f0b659a34107d35539956320df0015c5e3 | 4,425 | package com.dice.util;
import android.util.Log;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Dynamic;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.ReadableMapKeySetIterator;
import com.facebook.react.brid... | 43.382353 | 352 | 0.63774 |
413cf336e22785bbb5ed6781707dc826eabe19b7 | 1,142 | package cn.lemonit.tencent_cloud_im_server_sdk.service;
import cn.lemonit.tencent_cloud_im_server_sdk.exceptions.ServiceException;
import cn.lemonit.tencent_cloud_im_server_sdk.model.common.ApiResponse;
import cn.lemonit.tencent_cloud_im_server_sdk.utils.RestTemplateUtil;
import org.springframework.http.ResponseEntity... | 43.923077 | 125 | 0.749562 |
034d8c650e58ae4c7e05c2c19a5be4ac782ddabf | 2,256 | package com.snowcattle.game.net.client.tcp;
import com.snowcattle.game.common.config.GameServerConfig;
import com.snowcattle.game.common.constant.GlobalConstants;
import com.snowcattle.game.bootstrap.manager.LocalMananger;
import com.snowcattle.game.service.config.GameServerConfigService;
import com.snowcattle.game.se... | 52.465116 | 146 | 0.791223 |
a9ca5a18b61276d358efcd60db1889aec50ff671 | 1,909 | package org.evomaster.client.java.controller;
import org.evomaster.client.java.controller.api.dto.ActionDto;
import org.evomaster.client.java.controller.api.dto.UnitsInfoDto;
import org.evomaster.client.java.controller.internal.SutController;
import org.evomaster.client.java.instrumentation.*;
import org.evomaster.cli... | 30.301587 | 80 | 0.72813 |
75f1d28807cdd832370a1452fb038934d08cda93 | 1,619 | package com.koolearn.android.kooreader.preferences;
import android.content.Context;
import com.koolearn.klibrary.core.options.ZLStringOption;
import com.koolearn.klibrary.core.resources.ZLResource;
import com.koolearn.klibrary.ui.android.view.AndroidFontUtil;
import java.util.ArrayList;
class FontPreference extends... | 28.403509 | 105 | 0.759111 |
e2dce8df0f511618c06be81e1b50e92d03c78d4c | 5,085 | package com.stripe.example.module;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.ListView;
import com.stripe.android.model.Card;
import com.stripe.android.view.CardInputWidget;
import com.... | 36.321429 | 98 | 0.67237 |
e68d50673b36764a63fcb8795dcc0076d09bcca2 | 1,413 | package com.dmg.fusion.config;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class SaleSystemConfig {
private static SaleSystemConfig instance = null;
private static final String CONFIG_LOCATION = System.getProperty("config.location");
... | 25.690909 | 85 | 0.785563 |
7380dddf6a66918a167d50587437510858d060a0 | 998 | package com.xandersu.class082_leetcode.chapter_4;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* @author suxun
* @date 2020/8/8 12:35
* @description
*/
public class $1_349_intersection_of_two_arrays_My {
public static int[] intersection(int[] nums1, i... | 23.209302 | 64 | 0.504008 |
dec80bee67e761095ea1955d1a05e482dfbb76a5 | 928 | package com.nmmoc7.polymercore.api.util;
/**
* 表示一个属性的Key
*
* @param <T>
*/
public class AttributeKey<T> {
private final Class<T> valueClass;
private final String attributeName;
private AttributeKey(Class<T> valueClass, String attributeName) {
this.valueClass = valueClass;
this.attribu... | 21.090909 | 80 | 0.626078 |
cc1ac3d4d4a259e511e71bb780fc7e0dc34d12c5 | 1,152 | package br.com.zup.mercadolivre.email;
import br.com.zup.mercadolivre.email.dto.SendEmailRequest;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.stereotype.Service;
import javax.mail.MessagingException;
import javax.m... | 32 | 77 | 0.731771 |
0fd4735f509268f64001666a1a91282be3d7c94d | 544 | // Copyright 2000-2021 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.notification.impl;
import com.intellij.util.xmlb.annotations.Attribute;
/**
* @author Alexander Lobas
*/
@Deprecated
public final class NotificationGroupB... | 24.727273 | 140 | 0.757353 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.