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 |
|---|---|---|---|---|---|
be195bee1eb66f3aa6482539a63f24e7a32bd903 | 38,424 | /****************************************************************************
* Copyright AGAT-Team (2014)
*
* Contributors:
* J.F. Randrianasoa
* K. Kurtz
* E. Desjardin
* N. Passat
*
* This software is a computer program w... | 30.471055 | 188 | 0.617401 |
1e76d3629051c22a2099db90d2f37b4e39010c10 | 3,432 | package com.restaurant.dinner.admin.controller.base;
import com.restaurant.dinner.admin.ProjectProperties;
import com.restaurant.dinner.api.pojo.po.admin.TbSysUser;
import com.restaurant.dinner.api.pojo.vo.JsonObjectVo;
import com.restaurant.dinner.api.recipe.admin.SysUserService;
import org.springframework.beans.fact... | 36.903226 | 99 | 0.6588 |
4fca8674a11c67a60335e3c94a1e72a4e202335a | 4,908 | /*
* #%L
* AbstractSaslAuthenticator.java - mongodb-async-driver - Allanbank Consulting, Inc.
* %%
* Copyright (C) 2011 - 2014 Allanbank Consulting, 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 c... | 35.565217 | 85 | 0.650774 |
f45f2d1a7c077db9d6f15d548441f25b3a2bbc0d | 7,039 | package com.wavefront.agent.handlers;
import com.wavefront.agent.data.EntityPropertiesFactory;
import com.wavefront.common.SamplingLogger;
import com.wavefront.api.agent.ValidationConfiguration;
import com.wavefront.data.ReportableEntityType;
import org.apache.commons.lang.math.NumberUtils;
import wavefront.report.His... | 50.640288 | 100 | 0.756926 |
216c9bf8e19623bdb9ab0f1918f9abd7802c76e1 | 359 | package dev.cheerfun.pixivic.biz.web.collection.dto;
import lombok.Data;
/**
* @author OysterQAQ
* @version 1.0
* @date 2020/5/2 8:01 下午
* @description UpdateIllustrationOrderDTO
*/
@Data
public class UpdateIllustrationOrderDTO {
private Integer upIllustrationId;
private Integer lowIllustrationId;
pr... | 21.117647 | 52 | 0.760446 |
6bb8b6bc60cc560363a82acec40dceaa048537e8 | 2,540 | package minevalley.core.api.corporations;
import minevalley.core.api.Registered;
import minevalley.core.api.economy.BankAccount;
import java.util.List;
public interface Group extends Registered {
/**
* Gets the id of this group.
*
* @return id of group
*/
int getId();
/**
* Get... | 20.650407 | 93 | 0.588583 |
df83c1cdb9a5218283b667719526cbba89902e85 | 849 | package uk.co.stikman.utils;
import java.util.HashMap;
import java.util.Map;
public class MimeTypes {
public static final Map<String, String> MIME_TYPES = new HashMap<>();
static {
MIME_TYPES.put(".css", "text/css");
MIME_TYPES.put(".js", "text/javascript");
MIME_TYPES.put(".html", "text/html");
MIME_TYPES... | 24.257143 | 70 | 0.656066 |
64d6cea235efbf895987581afc82f14882b24458 | 2,701 | package com.mooc.ppjoke.utils;
import android.content.ComponentName;
import androidx.fragment.app.FragmentActivity;
import androidx.navigation.ActivityNavigator;
import androidx.navigation.NavController;
import androidx.navigation.NavGraph;
import androidx.navigation.NavGraphNavigator;
import androidx.naviga... | 37.513889 | 132 | 0.701222 |
36c7bc3b7a72f7ec88f3f33b05e4aced3c9155b8 | 950 | package org.nautilus.plugin.factory;
import java.util.ArrayList;
import java.util.List;
import org.nautilus.plugin.extension.SelectionExtension;
import org.nautilus.plugin.extension.selection.BinaryTournamentWithRankingAndCrowdingDistanceSelectionExtension;
import org.uma.jmetal.operator.SelectionOperator;
import org... | 27.142857 | 112 | 0.789474 |
4e569df2f27f53b3523e1b1d15cf2c199a1be9b2 | 370 | package com.cn.luckymorning.study.optional;
/**
* Main
*
* @author lucky_morning
* @group com.cn.luckymorning.study.optional
* @date 2020/8/21 13:51
*/
public class Main {
public static void main(String[] args) {
System.out.println(OptionalDemo.testOptionalOrElse(null));
System.out.println(O... | 21.764706 | 69 | 0.697297 |
d221688fc2520ac3e473f3706bbbe41614008cc4 | 1,355 | package cyclops.data;
import cyclops.reactive.ReactiveSeq;
import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;
public class HashSet2Test {
@Test
public void duplicates(){
assertThat(HashSet.of(1,2,1,2,1,2).size(),equalTo(2));
}
@Test
... | 32.261905 | 89 | 0.564576 |
553ebc82d7353a6489a0ab1c388b19bd4d851907 | 3,410 | package edu.uw.covidsafe.ble;
import android.bluetooth.le.AdvertiseCallback;
import android.bluetooth.le.AdvertiseSettings;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.ScanResult;
import android.bluetooth.le.ScanSettings;
import android.content.Context;... | 37.472527 | 107 | 0.607918 |
6e3258dc9af5ca5eb061c8d96a1e87bc0fb03b71 | 3,057 | package com.manoelcampos.exportador;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Classe abstrata que fornece uma implementação base para as subclasses
* que definem formatos específicos de exportação de dados.
*
* @author Manoel Campos da Silva Filho
*/
public abstract class... | 33.228261 | 126 | 0.643114 |
9e3157f15ba2990d331d4dc4cc5a3d6221586e5b | 458 | package lightsearch.server.initialization;
import org.springframework.stereotype.Service;
@Service("serverInitializer")
public class ServerInitializerImpl implements ServerInitializer {
private final BlacklistCreator blacklistCreator;
public ServerInitializerImpl(BlacklistCreator blacklistCreator) {
... | 24.105263 | 69 | 0.766376 |
b07da2f2d7634a6c118664023480065eb091ebcb | 1,071 | package roundone.helper;
import roundone.helper.graph.Graph;
import roundone.helper.graph.Vertex;
import java.util.*;
public class TopologicalSort<T> {
private final Graph<T> graph;
private Stack<Vertex<T>> stack;
private Set<Vertex<T>> visited;
public TopologicalSort(Graph<T> graph) {
thi... | 23.8 | 59 | 0.558357 |
4dcc5c21cfa9b816cf11a5ac3bc8b925be834eff | 1,765 | package com.mcml.space.patches;
import com.mcml.space.config.Patches;
import com.mcml.space.core.DataManager;
import com.mcml.space.core.EscapeLag;
import com.mcml.space.util.AzureAPI;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
i... | 30.431034 | 91 | 0.639093 |
929a24b4627cc14a954307b9ec0a98eb34316983 | 7,319 | package cellsociety.simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import java.util.Set;
import javafx.util.Pair;
/**
* Purpose: This class is used to make and manage gri... | 31.960699 | 124 | 0.643804 |
7a51fed45bb8975ef1cf3497cebc72d9fd222b59 | 701 | package com.prefecture.gestionlocale.model.dao;
import com.prefecture.gestionlocale.bean.Rue;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repos... | 35.05 | 105 | 0.820257 |
bac876c0e1a77fca82a4f0b966635e5b255dcb9f | 16,956 | package org.mockserver.socket;
import org.apache.commons.io.IOUtils;
import org.bouncycastle.asn1.*;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.*;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.cert.X509v3CertificateBuilder;
import org.bouncycastle.cert.b... | 43.813953 | 300 | 0.681883 |
02463087f8121b8d8a824509b5d700f0eaa089a7 | 461 | package com.levelup.java.junit;
import static org.junit.Assert.assertFalse;
import org.junit.Ignore;
import org.junit.Test;
/**
* This java example will demonstrate ignoring
* a test with junit.
*
* @author Justin Musgrove
* @see <a href='http://www.leveluplunch.com/java/examples/junit-ignore-test/'>Ignore Tes... | 18.44 | 94 | 0.711497 |
5ceb301aeca344cde8cc7c10a25b33fa0a71a032 | 1,435 | package org.jboss.resteasy.util;
import org.jboss.resteasy.spi.ResteasyProviderFactory;
import org.jboss.resteasy.spi.StringConverter;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.RuntimeDelegate;
import java.util.Set;
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version... | 22.076923 | 75 | 0.55331 |
2d39f1b46f6a24f24abe792f2d7541e7d219804d | 1,510 | package com.jakubpetriska.gameengine.api;
import com.jakubpetriska.gameengine.api.components.Camera;
import com.jakubpetriska.gameengine.api.math.Matrix44;
/**
* Provides rendering functionality.
*/
public interface Renderer {
/**
* Gets called by the engine before the rendering of a frame starts (calls t... | 30.2 | 97 | 0.660927 |
ba477017e66fb930f5fc7de7edf689cdf3d56fab | 986 | package javacore.Xnio.test;
import java.nio.file.Path;
import java.nio.file.Paths;
public class RelativizarTest {
public static void main(String[] args) {
Path dir = Paths.get("/home/caio");
Path classe = Paths.get("/home/caio/java/Pessoa.java");
Path pathToClasse = dir.relativize(classe);... | 36.518519 | 67 | 0.648073 |
16e9d5dd07a03e301a36ad92fffb15e5434226de | 1,393 | package net.elmosoft.splendid.browser;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import ... | 32.395349 | 81 | 0.806174 |
cd14a8741f41ac6aa78fadd298ca0fa98129049e | 3,041 | package com.anvil.adsama.nsaw.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class AlphaVantage implements Parcelable {
public static final Parcelable.Creator<AlphaVantage> CREATOR = new Creator<... | 27.899083 | 127 | 0.634988 |
28ddafd877021e55db1d151a60799581d727ed80 | 4,796 | package com.cy.core.role.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.cy.core.resource.dao.ResourceMapper;
import com.cy.core.resource.entity.Resource;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUti... | 23.742574 | 74 | 0.696622 |
cdcbc9cc582d53f53b24af9cd5f3840d7c225921 | 1,382 | package cn.yinjiahui.group_purchase.po;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("address")
public class Address
{
@TableId(type= IdType.AUTO)
private Intege... | 16.452381 | 73 | 0.596961 |
ad9a4d9c1c29da704f4cd735accf5601bade35e8 | 7,923 | /*
* Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: Visdom.java,v 1.1.1.1 2001/05/22 08:12:37 jstrachan Exp $
*/
/*
* Dom4jGUI.java
*
* Created on 11. april 2001, 22:02
*/
package org.dom4j.... | 32.875519 | 99 | 0.64256 |
90d4c3bbc5912f51143c5f928a5d9959f42acef0 | 618 | package com.dojogrouppty.account;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class UserAuthenticationIntegrationTest {
private static final Logger logger
= LoggerFactory.getL... | 29.428571 | 80 | 0.690939 |
99f9a992e548cf3c9225850db1f529e6d55ab96b | 11,543 | /*
* $Id$
*/
/*
Copyright (c) 2000-2008 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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... | 34.663664 | 97 | 0.692974 |
3f9953fa32e0c35a8ee37d63034062628ec632bd | 2,715 | package com.landoop.avro.codec;
import org.apache.avro.file.Codec;
import org.apache.avro.file.DataFileConstants;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorInputStream;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
import java.io.ByteArrayInputStream;
impo... | 30.166667 | 106 | 0.660773 |
40f0a03868d512ba6e27b02d951265eede31c452 | 3,821 | package com.valarao.wordlesolver.controller;
import com.valarao.wordlesolver.cache.CacheManager;
import com.valarao.wordlesolver.calculator.ScoreCalculator;
import com.valarao.wordlesolver.loader.WordDatasetLoader;
import com.valarao.wordlesolver.model.CalculateInformationScoresRequest;
import com.valarao.wordlesolver... | 37.831683 | 124 | 0.750589 |
4c8f4c96e3dadd61c2939f86a6d97b036b8c3e73 | 1,846 | package com.youngadessi.demo.auth.controller;
import com.youngadessi.demo.auth.service.AuthenticationService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.crypto.password.PasswordEncoder;
import or... | 32.385965 | 90 | 0.755688 |
a939bd24a3915d0cfcfb877ff812cc6027864d15 | 8,705 | /*
* (C) Copyright 2021 Radix DLT Ltd
*
* Radix DLT Ltd licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the
* License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 28.540984 | 121 | 0.727972 |
b30c4a2ea15f0a794667e6952b46156ba645ee92 | 1,561 | /*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 32.520833 | 76 | 0.692505 |
8b8460733f5f2e826b4330521bde6fd7f6e0c7c1 | 3,410 | package org.gama.lang;
import java.io.Serializable;
import java.util.Iterator;
/**
* Kind of StringBuilder aimed at being simpler by its API.
*
* @author Guillaume Mary
*/
public class StringAppender implements Serializable, CharSequence {
private StringBuilder appender;
public StringAppender() {
appender... | 22.142857 | 117 | 0.677126 |
253472e2b2b8afcb77e326f40b01d801afa1f5ac | 4,113 | package ca.corefacility.bioinformatics.irida.ria.unit.web.services;
import java.util.List;
import java.util.Locale;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.context.MessageSource;
import ca.corefacility.bioinformatics.irida.exceptions.EntityNotFoundExcept... | 43.294737 | 111 | 0.822514 |
2fb5d9448a72fee7aa4e656f2b5a67b0cbc17e0c | 4,052 | package com.stackroute.userregistration.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.stackroute.userregistration.domain.User;
import com.stackroute.userregistration.service.UserService;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock... | 40.118812 | 103 | 0.682626 |
8f371c80db3fb6a968e09cd9e08e4db5900586d7 | 14,520 | package com.navismart.navismart.view;
import android.app.Dialog;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModelProviders;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import ... | 43.603604 | 180 | 0.646901 |
593abbfde8628c9f6dff1a1219f7df2ffabfbdef | 789 | package com.imyc.SBAP.Base.valid.combinedNotNull.annotation;
import com.imyc.SBAP.Base.valid.combinedNotNull.utils.CombinedNotNullValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation... | 34.304348 | 79 | 0.780735 |
c92b751375f46c9eba094c309f0b71e0481baba8 | 1,338 | package org.cybersapien.watercollection.processors;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.cybersapien.watercollection.service.v1.model.WaterCollection;
import javax.cache.Cache;
import javax.inject.Named;
import ja... | 30.409091 | 98 | 0.704783 |
809b5329f16601db5d57bda0cb8818fb2019cac3 | 3,254 | package com.github.stormbit.sdk.utils.vkapi.executors;
import com.github.stormbit.sdk.utils.Utils;
import com.github.stormbit.sdk.utils.vkapi.Auth;
import com.github.stormbit.sdk.utils.vkapi.Executor;
import com.github.stormbit.sdk.utils.vkapi.calls.CallAsync;
import org.json.JSONException;
import org.json.JSONObject;... | 34.252632 | 135 | 0.509219 |
338f1a382b960b99b8e7891b6cd55537fed8b0c7 | 305 | package com.zscat.mallplus.build.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zscat.mallplus.build.entity.BuildingFloor;
/**
* <p>
* 服务类
* </p>
*
* @author zscat
* @since 2019-11-27
*/
public interface IBuildingFloorService extends IService<BuildingFloor> {
}
| 17.941176 | 72 | 0.740984 |
385d0e84282ab8a441d75457fec3ab02db65e740 | 368 | package io.crowdcode.cloudbay.auction.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(HttpStatus.NOT_ACCEPTABLE)
public class AuctionExpiredException extends InvalidAuctionStateException {
public AuctionExpiredException() {
... | 28.307692 | 75 | 0.809783 |
4c1838fe09e759aeaa8d33e9b457345bc64c9166 | 2,273 | package order.model.service;
import static common.JDBCTemplate.*;
import java.sql.Connection;
import java.util.ArrayList;
import member.model.dao.MemberDao;
import member.model.vo.Member;
import notice.model.dao.NoticeDao;
import notice.model.vo.Notice;
import order.model.dao.OrderDao;
import order.model... | 24.706522 | 107 | 0.683238 |
03aba8181d53f085465de67107c18de21e12e483 | 4,998 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 38.446154 | 100 | 0.744098 |
c7885b7019230f1a016ba6f085a1dde377210189 | 227 | package org.patientview.api.model;
public class RequeueReport {
private final int count;
public RequeueReport(int count) {
this.count = count;
}
public int getCount() {
return count;
}
}
| 15.133333 | 37 | 0.625551 |
414e5c006d4fd2635d3908d9dc3645f06cd93d44 | 1,791 | /*
* Copyright (C) 2014 Naver Corp.
*
* 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... | 36.55102 | 123 | 0.778336 |
f8fb2d6bbb8cc241f91ded8c8796ceff7b8b1167 | 5,018 | /**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite 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, eit... | 30.412121 | 102 | 0.705261 |
b7d908179e8bff8db9bdb68ba3fa33beb0c08559 | 2,119 | package sf.example.spring.mockmvc;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.web.servlet.MockMvc... | 36.534483 | 89 | 0.694195 |
e64261a6e9b93e189d4044de198ba59fa1749cbc | 6,561 | package com.lothrazar.dimstack.transit;
import com.lothrazar.dimstack.DimstackMod;
import javax.annotation.Nullable;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.NBTUtil;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math.BlockPos;
/**
* A transit object. A transit represent... | 28.526087 | 199 | 0.656912 |
110d15cfbcb3f325d48c5264e4d6e25f4bf7e267 | 2,043 | /*
* 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")... | 32.951613 | 80 | 0.659814 |
45ae73665be244d68a033be1e68ab888995530a4 | 1,357 | package com.example.subhasis.spy;
/**
* Created by Subhasis on 26-09-2017.
*/
import android.app.Service;
import android.content.*;
import android.os.*;
import android.widget.Toast;
public class BackgroundService extends Service {
public Context context = this;
public Handler handler = null;... | 27.693878 | 95 | 0.614591 |
d5f3795b0765cd866a2c48f3800d2e19725da6d1 | 249 | package com.flagship.design.pattern.structural.decorator.v2;
/**
* @Author Flagship
* @Date 2020/11/13 12:32
* @Description
*/
public abstract class ABatterCake {
protected abstract String getDesc();
protected abstract int cost();
}
| 16.6 | 60 | 0.710843 |
885d51aec2044bd1d931a729bde9b9cf623ad0f9 | 9,384 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms.wearable;
public final class R {
public static final class attr {
public static final int ambientEnabled... | 61.333333 | 246 | 0.831628 |
e10927b5e890df8ac18da0193b69725bba7abb80 | 1,260 | package net.bytebuddy.implementation.bytecode.assign.reference;
import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.implementation.bytecode.StackManipulation;
import net.bytebuddy.implementation.bytecode.assign.Assigner;
import net.bytebuddy.implementation.bytecode.assign.TypeCasting;
/**
* A... | 36 | 116 | 0.703968 |
cd350deb2a28a0a0e655f53b0f8982db444d27df | 1,319 | package cn.javava.weixin.oauth2;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.AuthenticationEntryPoint;
import org.springframework.web.util.UriComponentsBuilder;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import jav... | 43.966667 | 160 | 0.753601 |
3b6e64a814330e4ddac59192a7eb638e17461ad6 | 233 | package com.mmx.myshop.admin.dao;
import com.mmx.myshop.domain.TbUser;
import org.springframework.stereotype.Repository;
@Repository
public interface TbUserDao extends BaseDao<TbUser>{
TbUser getAdminByemail(String email);
}
| 19.416667 | 51 | 0.802575 |
98ff31980ad98adc3f1c19170b6194c5c4279357 | 2,102 | package httpfaultinjectorclient;
import java.net.URI;
import reactor.core.publisher.Mono;
import reactor.netty.http.client.HttpClient;
import reactor.netty.http.client.HttpClientResponse;
public class App {
private static String _scheme = "http";
private static String _host = "localhost";
private static ... | 34.459016 | 131 | 0.630828 |
85fa504b1148ae7012b91ce2404e8481c89b7f17 | 3,060 | package org.junit.platform.console.options;
import eu.cqse.teamscale.client.CommitDescriptor;
import org.junit.platform.console.shadow.joptsimple.OptionParser;
import org.junit.platform.console.shadow.joptsimple.OptionSet;
import org.junit.platform.console.shadow.joptsimple.OptionSpec;
import static java.util.Arrays.... | 33.26087 | 108 | 0.769935 |
9fddb7d247aae54067b12bc00b8d6ff22200bf19 | 1,241 | /*
* Copyright (c) 2019 Bixbit - Krzysztof Benedyczak. All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.types.authn;
import java.util.Objects;
/**
* Describes authenticator configuration.
*
* @author P.Piernik
*
*/
public class AuthenticatorDefinition
{
pu... | 23.865385 | 105 | 0.736503 |
c5c4349f7b784e7ea1a5c7a34961d0dc9ba07efd | 3,206 | /**
* Copyright (C) 2018 Jeebiz (http://jeebiz.net).
* All Rights Reserved.
*/
package net.jeebiz.admin.authz.rbac0.web.dto;
import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToS... | 24.105263 | 119 | 0.653774 |
967b44387c365414ed800044c8701f1d7f6bb8ce | 1,517 | package com.sequenceiq.cloudbreak.converter.v4.connectors;
import java.util.HashSet;
import java.util.Set;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.api.endpoint.v4.connector.responses.EncryptionKeyConfigV4Response;
import com.sequenceiq.cloudbreak.api.endpoint.v4.connector.re... | 48.935484 | 157 | 0.805537 |
97d5058092e81ed2c4a7dd760afb99c5183a55d5 | 1,846 | /*
* 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
* di... | 24.289474 | 76 | 0.646262 |
e315c6bf7963bf56676311a4accace68fe21c3ac | 2,820 | package com.pg85.otg.customobjects.bofunctions;
import com.pg85.otg.configuration.customobjects.CustomObjectConfigFile;
import com.pg85.otg.configuration.customobjects.CustomObjectConfigFunction;
import com.pg85.otg.exception.InvalidConfigException;
import java.util.List;
/**
* Represents a block in a BO3.
*/
publi... | 33.571429 | 239 | 0.625887 |
4387e389bf3ed194334795bcde5169c6b261206a | 3,648 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.iflytek.skintest;
public final class R {
public static final class attr {
}
public static final class color {
... | 45.6 | 67 | 0.733827 |
e33bdb2730dd7efbf477a6e1a4e56102ea402f28 | 3,400 | /*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in... | 43.589744 | 99 | 0.73 |
6b96f86c195a9ba6d27263d27215dd7b60884636 | 5,554 | package org.elasticsearch.plugin.analysis.hanlp;
import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.utility.Predefine;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.analysis.Analyzer;
import org.elasticsearch.common.io.FileSystemUtils;
import org.elast... | 46.672269 | 115 | 0.71552 |
74b52d3aa13ab77980ccac473a7cffb8895653ab | 20,477 | /*
* ***** BEGIN LICENSE BLOCK *****
*
* Zimbra Collaboration Suite Server
* Copyright (C) 2011 VMware, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the Licens... | 28.519499 | 121 | 0.554036 |
080217c13aeebc8dcfa9b26899837b5f5057e082 | 19,877 | package edu.sc.snacktrack.login;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.text.Editable;
import android.text.Htm... | 34.508681 | 105 | 0.583589 |
c36dcc1b1563d5be1eed43c0ec948bf19c08888f | 1,945 | package appUtils.settings;
import music.Rhythm;
import settings.SettingDouble;
import settings.SettingRhythm;
import settings.Settings;
/**
* A {@link Settings} object which contains all of the information about tabs
* in general without direct respect to any input or output interface
* @author zrona
*/
public ... | 38.9 | 147 | 0.751671 |
9ff9349a51b472350acde791b87f090650b1759b | 936 | package emlkoks.entitybrowser.query;
import emlkoks.entitybrowser.query.comparator.ComparationType;
import emlkoks.entitybrowser.session.entity.FieldProperty;
import java.util.Objects;
import lombok.Getter;
import lombok.NonNull;
/**
* Created by EmlKoks on 19.06.19.
*/
@Getter
public class FieldFilter {
privat... | 26.742857 | 122 | 0.706197 |
62f5d58b5c503b47492bcb2c6076372855b6a8ed | 1,143 | package com.fluxtream.domain;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
im... | 27.878049 | 147 | 0.785652 |
c484511f0754679befb601cdc9ead071ec57db82 | 1,000 | /* *
* Authors: Hyunwoo Lee <hyunwoo9301@naver.com>
* Released under the MIT license.
* */
package com.bot.api.conversation;
import com.bot.api.model.conversation.ConversationRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.... | 30.30303 | 106 | 0.781 |
76666846e7e86d59c092b38e4bae086f81f87dc9 | 7,472 | package com.abatra.android.wheelie.mayI;
import android.content.pm.PackageManager;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.core.app.ActivityCompat;
import androidx.... | 43.695906 | 159 | 0.790418 |
1c4f8686d7c35c818b4bc4bea263ac8f6dc3b21c | 2,706 | /*
* Copyright (c) 2014, 2015, OpenMapFX and LodgON
* 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 copyright
* notice, t... | 40.38806 | 83 | 0.702513 |
6b581f43939accadfe51fe21aa5f106eb4d7af52 | 1,093 | // SPDX-License-Identifier: MIT
package mealplaner.plugins.comment.mealextension;
import java.util.Objects;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import mealplaner.plugins.api.MealFact;
import mealplaner.plug... | 21.019231 | 59 | 0.695334 |
086a6d075be3b2fa8e8f1a5eee5e949d5cd59e24 | 2,319 | /* Copyright 2016 Google Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 29.730769 | 75 | 0.776197 |
22b1c4f90bb2b97891d7260e84472df6f074d9c2 | 11,116 | package com.box.sdk;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.eclipsesource.json.JsonArray;
import com.eclipsesource.json.JsonObject;
import com.eclipsesource.json.JsonValue;
/**
* The Metadata class represents one type instance of Box met... | 29.801609 | 120 | 0.601205 |
388f840bae2390c85d16fc9abffe5c3f5d44de5a | 1,755 | package de.adorsys.keycloack.custom.auth;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.keycloak.OAuth2Constants;
import org.keycloak.authentication.AuthenticationFlowContext;
import org.keycloak.models.UserCredent... | 40.813953 | 176 | 0.765812 |
2f3653e8163c851da5b4f6d2267e850830dccef5 | 337 | package com.example.demo;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@EnableJpaRepositories
@EnableTransactionManagement
public c... | 25.923077 | 78 | 0.869436 |
76a631794966766247958350ec0af7c84224c013 | 287 | package io.whz.synapse.pojo.neural;
import android.support.annotation.NonNull;
public class Digit {
public final double[] colors;
public final int label;
public Digit(int label, @NonNull double[] colors) {
this.colors = colors;
this.label = label;
}
}
| 20.5 | 55 | 0.66899 |
d18adf64b69e85134c68ce811ab3e8d224310e84 | 200 | package io.axway.iron.core.model.validation;
import io.axway.iron.description.Entity;
import io.axway.iron.description.Unique;
@Entity
public interface TargetEntity {
@Unique
String id();
}
| 18.181818 | 44 | 0.76 |
03800c7698c19b62a864ecc9aa4004514195750a | 1,764 | package me.lake.librestreaming.tools;
/**
* Created by lake on 16-3-16.
*/
import android.util.Log;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.net.UnknownHostException;
public class LogTools {
protected static final String TAG = "RESLog";
private static boo... | 23.837838 | 61 | 0.518707 |
cbaf455982e3e0cda69e72c961c34e84a197b46f | 2,101 | /* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019 Datadog, Inc.
*/
package com.datadoghq.sketch.gk;
import static org.junit.jupiter.api.Assertions.fail;
... | 28.013333 | 119 | 0.63208 |
ddf07b00f10cae9bc69d6e40b3c0122eef6726f6 | 1,633 | package br.com.casadocodigo.listadelivros;
import br.com.casadocodigo.novolivro.LivroEntity;
import java.math.BigDecimal;
import java.time.LocalDate;
public class DetalhesLivroDto {
private Long id;
private String titulo;
private String resumo;
private String sumario;
private BigDecimal precoLiv... | 22.067568 | 56 | 0.637477 |
350b64d2aad513bddc32f2cb8cffe2a95e848ceb | 378 | package com.itjing.designpatterns.factorymethod;
/**
* @author: lijing
* @Date: 2021年05月27日 16:28
* @Description: 具体产品 ConcreteProduct
*/
public class BusImpl2 implements Bus {
@Override
public void run() {
System.out.println("BusImpl2 is running");
}
@Override
public void stop() {
... | 19.894737 | 52 | 0.653439 |
faf90f8db2c1a82a22015b6c224184f892af13c1 | 2,469 | package eu.coatrack.admin.service;
/*-
* #%L
* coatrack-api
* %%
* Copyright (C) 2013 - 2020 Corizon | Institut für angewandte Systemtechnik Bremen GmbH (ATB)
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... | 25.989474 | 94 | 0.684488 |
31cc4b18cfc2b17ed17f2e689fadc9ac47302989 | 227 | package com.example.mystudyzone;
import java.util.List;
import retrofit.Callback;
import retrofit.http.GET;
public interface MyJsonService {
@GET("/1kpjf")
void listEvents(Callback<List<Event>> eventsCallback);
}
| 15.133333 | 58 | 0.748899 |
e1ffb0d214192078cd89940c255919b68a21f684 | 6,035 | package com.sample.eventstreams.builders;
import java.util.Map;
import javax.jms.JMSContext;
import javax.jms.JMSException;
import javax.jms.Message;
import com.sample.eventstreams.MQSourceConnector;
import org.apache.kafka.connect.data.Schema;
import org.apache.kafka.connect.data.SchemaAndValue;
import org.apache.... | 40.233333 | 145 | 0.624689 |
c8f92bea43454da114d7391eeb6da377081aafb1 | 5,513 | /*
* Seldon -- open source prediction engine
* =======================================
*
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
* ********************************************************************************************
*
* Licensed under the Apache License, V... | 40.536765 | 127 | 0.73626 |
3c115eddc2729723b68532fc481872303f340448 | 215 | package org.saiku.service.util.security.authorisation;
import org.springframework.security.core.Authentication;
public interface AuthorisationPredicate
{
boolean isAuthorised(Authentication authentication);
}
| 23.888889 | 56 | 0.84186 |
0fdf7177fd96ca00084d7815017f94919821860a | 921 | // Copyright (C) 2017 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 applicable ... | 34.111111 | 75 | 0.765472 |
07af6c387ed0b270b1781f52293e93f213399552 | 1,270 | package com.github.wesleyegberto.jaxrsspecificationtest.aop;
import com.github.wesleyegberto.jaxrsspecificationtest.business.boundary.PersonResources;
import javax.annotation.Priority;
import javax.ws.rs.DELETE;
import javax.ws.rs.Priorities;
import javax.ws.rs.container.DynamicFeature;
import javax.ws.rs.container.R... | 36.285714 | 105 | 0.744882 |
a4f3ba988d16d6d6c74438c33e6889c0c310b044 | 3,790 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.bedit.gaming.wormstats.math;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import de.bedit.gaming.worms... | 30.32 | 78 | 0.681003 |
af8300fbd0759a669467d5ba694ecf23ab8a6a02 | 4,054 | // Code generated by Wire protocol buffer compiler, do not edit.
// Source file: ./src/protobufs/services/media/actions/complete_image_upload.proto
package com.rhlabs.protobufs.services.media.actions.complete_image_upload;
import com.rhlabs.protobufs.services.media.containers.media.MediaTypeV1;
import com.squareup.wir... | 31.671875 | 135 | 0.707203 |
aa41aa363db4d1d53aef6cda29f547bdbda538a2 | 1,790 | package com.google.android.gms.internal.ads;
import android.os.SystemClock;
public final class zzsw implements zzso {
/* renamed from: a */
private boolean f29341a;
/* renamed from: b */
private long f29342b;
/* renamed from: c */
private long f29343c;
/* renamed from: d */
private... | 23.246753 | 76 | 0.54581 |
7a16a5708ad48d5f673cf78968e310994c741055 | 1,404 | package uk.co.bitcat.helpers;
import edu.stanford.nlp.ie.util.RelationTriple;
import java.util.List;
import java.util.Map;
public class Loggers {
public static void logEntities(Map<String, String> entitiesToTypes) {
System.out.println("----------ENTITIES----------");
for (Map.Entry<String, Strin... | 37.945946 | 117 | 0.576923 |
b503bc04ddba28b2af8d21597ce1b63c1c3a0e6f | 1,718 | package com.xtoon.boot.sys.domain.model.log;
import com.xtoon.boot.common.domain.Entity;
import com.xtoon.boot.sys.domain.model.tenant.TenantId;
import com.xtoon.boot.sys.domain.model.user.UserName;
/**
* 日志实体
*
* @author haoxin
* @date 2021-02-02
**/
public class Log implements Entity<Log> {
/**
* log... | 16.679612 | 118 | 0.557043 |
346807165d5a0f6539d7f3cb05c07e9c5bf1b2a5 | 3,350 | package org.bougainvillea.java.basejava.codequality.chapter09;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
/**
* 129.适当设置阻塞队列长度
*
* 注意:阻塞队列的长度是固定的
*
* 阻塞队列BlockingQueue扩展了Queue、Collection接口,
* 对元素的插入和提取使用了“阻塞”处理,
... | 23.103448 | 80 | 0.616418 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.