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 |
|---|---|---|---|---|---|
77bec97da622311c386aed00e96ba12ed632cad1 | 3,727 | /**
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS... | 25.703448 | 80 | 0.653609 |
fe0824d069f149ebd831ef1bab44bad8f47091d3 | 4,283 | package org.spongepowered.asm.mixin.transformer.ext.extensions;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.s... | 42.83 | 163 | 0.705814 |
133416b78b4ef5cd16eb151b3b524acaaf9d280b | 312 | package de.njsm.stocks.client.frontend;
import de.njsm.stocks.client.config.Configuration;
public abstract class UIFactory {
public abstract ConfigGenerator getConfigActor();
public abstract CertificateGenerator getCertGenerator();
public abstract MainHandler getMainHandler(Configuration c);
}
| 24 | 64 | 0.801282 |
9725ce3c26b4427082bc1f0a14ef0f7b1ef3a618 | 444 | package com.fiuba.tdp.linkup.util;
import android.app.Application;
import android.content.Context;
/**
* Created by alejandro on 9/25/17.
*/
public class MySuperAppApplication extends Application {
private static Application instance;
public static Context getContext() {
return instance.getApplica... | 19.304348 | 56 | 0.684685 |
aa04cced91920124c9f4cc0be026d4777573f6c3 | 2,030 | /*
Copyright 2017 Danny Kunz
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 27.432432 | 111 | 0.685714 |
949ae007fb101da13fa283b88fcddeac6017bbe3 | 5,275 | package io.zonky.test.db;
import io.zonky.test.db.context.DatabaseContext;
import io.zonky.test.db.provider.DatabaseProvider;
import io.zonky.test.support.SpyPostProcessor;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.InitializingBean;
imp... | 39.365672 | 129 | 0.759242 |
695b035bc6ebf2b36ed905e57138a00a9aab66d8 | 2,803 | import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
import java.lang.management.OperatingSystemMXBean;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
import jade.content.lang.sl.*;
import jade.core.*;
import jade.core.behaviours.*;
import jade... | 26.695238 | 138 | 0.692116 |
4db0f0ffcaa98b5a330403c34fdd656ef58b6853 | 7,960 | package fr.aerwyn81.headblocks.databases.types;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import com.zaxxer.hikari.pool.HikariPool;
import fr.aerwyn81.headblocks.HeadBlocks;
import fr.aerwyn81.headblocks.databases.Database;
import fr.aerwyn81.headblocks.handlers.ConfigHandler;
i... | 36.0181 | 265 | 0.573492 |
bbf090bceaaa193c6314c9c341e34c66e0efc691 | 2,120 | package hudson.plugins.sitemonitor;
import hudson.plugins.sitemonitor.model.Result;
import hudson.plugins.sitemonitor.model.Site;
import hudson.plugins.sitemonitor.model.Status;
import java.net.HttpURLConnection;
import java.util.ArrayList;
import java.util.List;
import junit.framework.TestCase;
public class SiteMo... | 38.545455 | 82 | 0.686792 |
cc59556761577686a5f5422401e9fd7649192022 | 3,822 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe
~
~ 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/li... | 37.106796 | 94 | 0.680795 |
685f9fe156871929fbaaac0b7514af76735955da | 367 | package com.smartgwt.mobile.client.internal.theme;
import com.smartgwt.mobile.SGWTInternal;
import com.smartgwt.mobile.client.theme.ThemeResources;
@SGWTInternal
public interface ThemeResourcesBase extends ThemeResources {
@Override
@Source({ "com/smartgwt/mobile/client/theme/tabs.gwt.css", "tabs.gwt.css" })... | 28.230769 | 80 | 0.784741 |
09bbfb84b2b3e43f0961879c12a230dc4dcdff54 | 15,077 | package org.jzy3d.plot3d.rendering.view;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
import org.jzy3d.maths.Coord3d;
import org.jzy3d.maths.PolygonArray;
import org.jzy3d.plot3d.rendering.view.modes.CameraMod... | 36.506053 | 166 | 0.622405 |
49132c226e73abb34b146305073b0f376765cb92 | 755 | package org.jessenpan.leetcode.array;
import java.util.HashMap;
import java.util.Map;
/**
* @author jessenpan
* tag:array
*/
public class S169MajorityElement {
public int majorityElement(int[] nums) {
int lengthOfNums = nums.length;
float halfLengthOfNums = (float) (lengthOfNums / 2.0);
... | 26.964286 | 71 | 0.569536 |
75334ef7d3728f2117eff79126af7a01d93c4115 | 363 | package com.pawnrace;
public class BoardDisplayProgram {
public static void main(String[] args){
Board board = new Board('c', 'f');
board.display();
Square w2 = board.getSquare(1,1);
Square e2 = board.getSquare(3,1);
Move move = new Move(w2, e2, false);
board.applyMo... | 25.928571 | 44 | 0.584022 |
100ba2ebdf7c98b5fb8f96557b37b4e37b6b15cd | 614 | package com.rent.project.orderservice.models.productmodels;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProductDurationRate implements Ser... | 22.740741 | 60 | 0.732899 |
d835f025c02bf1af3645bd6dc06eb5c58d283c66 | 1,706 | package com.ibeetl.cms.entity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import com.ibeetl.admin.core.util.Valida... | 19.168539 | 69 | 0.672919 |
5855be614f93106a076e3dc9d9f5e08eaaa2c915 | 7,946 | package ownerszz.libraries.dependency.injection.core;
import ownerszz.libraries.dependency.injection.annotation.scanner.AnnotationScanner;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ownerszz.libraries.dependency.injection.logging.ContainerLogger;
import java.io.File;
import java.io.FilenameFilte... | 34.103004 | 106 | 0.583942 |
caf521d0cbde13af9c35129d253b222d80356d73 | 3,310 | package com.github.cc3002.finalreality.controller;
import com.github.matiasvergaras.finalreality.controller.GameController;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
/**
* A class to check that game will be only in one state at a... | 39.404762 | 74 | 0.671903 |
1e170fc93bf92a41ef4bbddf89e52f87624f354e | 1,515 | /*
* Copyright (C) 2009-2016 Hangzhou 2Dfire Technology Co., Ltd. All rights reserved
*/
package dfire.ziyuan;
import dfire.ziyuan.exceptions.FKCException;
import java.util.Iterator;
import java.util.ServiceLoader;
/**
* IncubatorFactory 生产incubator的工厂
*
* @author ziyuan
* @since 2017-01-06
*/
public enum Inc... | 27.545455 | 86 | 0.658086 |
aa95638d07ebbeadf412e0e9325cd10edc5af380 | 2,917 |
package graphql.resolvers.mutation;
import com.linkedin.common.urn.CorpuserUrn;
import com.linkedin.datahub.graphql.exception.AuthenticationException;
import com.linkedin.datahub.graphql.exception.ValidationException;
import com.linkedin.datahub.graphql.generated.CorpUser;
import com.linkedin.datahub.graphql.loaders.... | 37.883117 | 125 | 0.713747 |
8075e3561f821b62c6df0b9d0a52f3b827d0c8fa | 2,340 | /*
* Copyright 2016 Flinbor Bogdanov Oleksandr
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 27.857143 | 82 | 0.682051 |
ff8913ff8826fa0b11dc714caa9ba6ccbf2ecac0 | 1,631 | package ru.intertrust.cm.core.business.impl.universalentity;
import java.util.Collection;
import javax.annotation.Nonnull;
import ru.intertrust.cm.core.business.api.dto.universalentity.EnumProcessor;
import ru.intertrust.cm.core.business.api.dto.universalentity.NonAbstract;
import ru.intertrust.cm.core.util.... | 32.62 | 152 | 0.699571 |
cc90ac9a1130d416c700e369fee053a2fcedeabc | 2,388 | /*
* Copyright (c) 2016-2021 Flux Capacitor.
*
* 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 agr... | 37.3125 | 118 | 0.773869 |
867c92a901aff5e146e768b287996315209dc516 | 9,156 | /*
* HDDM_W_Test.java
*
* @author Isvani Frias-Blanco (ifriasb@udg.co.cu)
*
* 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/LICE... | 42.586047 | 170 | 0.66066 |
7d8cb1fd18c67fe352b9556418e164d1f4bcac98 | 1,271 | package lv.llu.science.dwh.domain.metadata;
import com.mongodb.DBObject;
import lv.llu.science.utils.time.TimeMachine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Service;
import java.util.Optional;
... | 31 | 104 | 0.733281 |
28862a5bcb7f3c968b6b08b5f60a48c48ddbfeba | 1,033 | package br.edu.uepb.nutes.haniot.data.model;
import android.content.Context;
import br.edu.uepb.nutes.haniot.R;
/**
* Contains constants that represent the type of measurement context.
*
* @author Douglas Rafael <douglas.rafael@nutes.uepb.edu.br>
* @version 1.0
* @copyright Copyright (c) 2017, NUTES UEPB
*/
pu... | 28.694444 | 104 | 0.688287 |
f785144b0a5363cf91466a2383a73e6f80c9ab86 | 207 | package org.code.completion.custom;
/**
* Fraze
*/
public class Frase {
public String text;
public int offset;
public Frase(String text, int offset) {
this.text = text;
this.offset = offset;
}
}
| 13.8 | 40 | 0.676329 |
215695d25b6a3380a30a7bacc4032070ff34579a | 1,399 | package at.porscheinformatik.tapestry.csrfprotection.tests.auto.services;
import org.apache.tapestry5.SymbolConstants;
import at.porscheinformatik.tapestry.csrfprotection.CsrfConstants;
import at.porscheinformatik.tapestry.csrfprotection.CsrfProtectionMode;
import org.apache.tapestry5.commons.Configuration;
import org... | 39.971429 | 116 | 0.787706 |
ef524a689f106737697d795d93d14336a8c8829c | 18,466 | package ch.sbb.maven.plugins.iib.mojos;
import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId;
import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration;
import static org.twdata.maven.mojoexecutor.MojoExecutor.element;
import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo;
im... | 40.853982 | 199 | 0.666089 |
8477b705df303f44f3ec890d9678c13ead970f5a | 916 | package com.soft.design.demo3;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import java.util.List;
import java.util.stream.Collectors;
@Slf4j
public class TemplateAServiceImpl extends TemplateService {
@Override
public String handler(String req) {
return super.handler(re... | 25.444444 | 119 | 0.668122 |
aa31e0095ba1dd25a1c04007e3581be413a909d7 | 1,109 | package alu.linking.launcher;
import java.io.File;
import alu.linking.config.constants.FilePaths;
import alu.linking.config.kg.EnumModelType;
import alu.linking.executable.preprocessing.setup.surfaceform.processing.url.webcrawl.NP_HSFURLContentSaver;
/**
* Downloads a bunch of websites as defined in the URL-based n... | 28.435897 | 108 | 0.732191 |
ebabf9cdd9140356de38cc5afd9368d5e4b88b39 | 2,605 | /*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 42.016129 | 114 | 0.796161 |
aa94ff074a1f634248ce8014eb9ae9f8df9efeb5 | 12,712 | /*
* Copyright (c) 2016 Couchbase, 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 agr... | 41.678689 | 117 | 0.669053 |
306cfa79f81f03344cbb65384aaf66d61ed751bb | 399 | package manifold.ij.psi;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiField;
/**
*/
public interface ManLightFieldBuilder extends PsiField
{
ManLightFieldBuilder withContainingClass( PsiClass psiClass );
ManLightFieldBuilder withModifier( String modifier );
... | 23.470588 | 77 | 0.814536 |
c66b4810e84c7236d3bcb246d4aa055221d18173 | 2,013 | package org.apache.maven.plugins.shade.resource;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.jar.JarEntry;
import ja... | 20.752577 | 110 | 0.716841 |
4f88ac1691bce1d30db2ff79de2772b5963c8dbd | 3,966 | /*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may... | 33.610169 | 75 | 0.638174 |
ef1b893b8f59dc951991ef0a1a0085e28733f26b | 359 | package com.shy.covidDashboard.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.shy.covidDashboard.model.User;
@Repository
public interface UserRepository extends JpaRepository<User, Long> {
Optional<Us... | 25.642857 | 67 | 0.832869 |
2fe6cf138840f4e0e55d2d8ec25fc7c826703bbc | 7,854 | package com.puppycrawl.tools.checkstyle.checks.indentation.indentation; //indent:0 exp:0
import java.util.Arrays; //indent:0 exp:0
/** //indent:0 exp:0
* This test-input is intended to be checked using following configuration: //indent:1 exp... | 38.5 | 94 | 0.510568 |
4f1340bc8d598048d648bc9191833b8983742a6b | 2,811 | package com.example.musicplayerproject.adapters;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotatio... | 36.986842 | 151 | 0.712914 |
8f5218ba56742bdc038575fd2220e20448fb0c48 | 1,903 |
import fi.helsinki.cs.tmc.edutestutils.MockStdio;
import fi.helsinki.cs.tmc.edutestutils.Points;
import org.junit.*;
import static org.junit.Assert.*;
@Points("52")
public class ReversingNameTest {
@Rule
public MockStdio io = new MockStdio();
@Test
public void noExceptions() throws Exception {
... | 22.654762 | 120 | 0.561745 |
9f2d54b95e014ff0a7b9809cde5f1d9c9ea114f8 | 782 | package com.github.kingjava.user.utils;
import com.github.kingjava.user.api.module.Menu;
import com.github.kingjava.user.excel.model.MenuExcelModel;
import org.springframework.beans.BeanUtils;
import java.util.ArrayList;
import java.util.List;
/**
* 菜单工具类
*
* @author kingjava
* @date 2018/10/28 15:57
*/
public ... | 21.722222 | 75 | 0.731458 |
76986ef8a2d4f0175ccb4f959a8b16ecdde9945b | 2,541 | package org.knowm.xchange.bitcointoyou.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPrope... | 24.2 | 87 | 0.70917 |
937898dea3f801ce1f802665eda10147d78b578c | 4,478 | /*
* (c) Copyright 2016 Palantir Technologies Inc. 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 ... | 42.245283 | 115 | 0.698749 |
fa20f20570c3eb8ec2df10d84de36fcf5676f899 | 6,995 | /*
* The MIT License
*
* Copyright (c) 2018-2022, qinglangtech Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 43.71875 | 144 | 0.652609 |
e1bff50aa59c3935cd671cda3073238162a463e5 | 922 | package chadbot.bot.synonyms;
import chadbot.bot.synonyms.SynonymGroup;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class SynonymGroupTest {
String[] SynonymArray = {"Happy", "Sad", "Mad", "Bad"};
SynonymGroup testGroup = new SynonymGroup(SynonymArray);
//Test C... | 24.918919 | 77 | 0.678959 |
d04e00879b0029e6e143dee630c22b9cb17bb969 | 2,587 | package com.sequenceiq.cloudbreak.core.flow2.event;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import com.sequenceiq.cloudbreak.common.event.AcceptResult;
import com.sequenceiq.cloudbreak.common.type.ScalingType;
import reactor.rx.Promise;
public class ClusterAndStackDownscaleTriggerE... | 51.74 | 151 | 0.771937 |
633d0cf9863529390b9537a2a87a610bd53265f0 | 1,163 | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package com.google.cloud.healthcare.fdamystudies.dao;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
impo... | 32.305556 | 99 | 0.798796 |
102f927b8e598c65002c9fc11d546f61cd27d923 | 826 | package net.glowstone.datapack.loader.model.external.predicate;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import net.glowstone.datapack.loader.model.external.advancement.condition.prop.Entity;
public class EntityPropertiesPredicate implements Predicate ... | 28.482759 | 86 | 0.730024 |
43366824788517b3d362aaee34bf4150c8ac4bac | 1,110 | package com.blakebr0.cucumber.block;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.world.IWorldReader;
import java.util.function.Functio... | 33.636364 | 119 | 0.72973 |
d71e1ff4650d5206cffe08da3f214fa65fd7ae26 | 2,524 | package com.sw.project.controller;
import java.net.URI;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.spr... | 33.653333 | 114 | 0.786054 |
65d7204850780521fdcd1d03f47ad3d5f5fb83c9 | 8,719 | class Payment {
/**
* 统一下单接口.
*
* @param request
* @param response
*
* @return JSONObject json_return
*/
@Override
public JSONObject createUnifiedOrder(HttpServletRequest request,HttpServletResponse response) {
logger.info("微信 统一下单 接口调用");
//设置最终返回对象
... | 42.740196 | 206 | 0.549604 |
0f15f4647aac4f168d68c8b36c57a63142ebb118 | 2,346 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands.autons;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.... | 46 | 98 | 0.647485 |
4ca9deb6ecc97ce39a35fcfba65a8696f7f5c12e | 499 | package net.dirtydeeds.discordsoundboard;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
/**
* This is the MainController for the SpringBoot application
*/
@SpringBootApplication
@E... | 23.761905 | 68 | 0.799599 |
6dfaa182dde265723f5334b006a4d078530384e1 | 102 | package pack1;
public class Avo1 {
public final int CINCO = 5;
public void metodo1() {
}
}
| 8.5 | 28 | 0.627451 |
0df7c8dc155440f7ea52c0998c3f6e71a3b1b1bd | 9,720 | package genetics.common.mixin;
import genetics.common.genetics.*;
import genetics.init.Initializer;
import genetics.items.ItemBlockChickenCube;
import genetics.items.ItemBlockJar;
import genetics.util.Logger;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.Living... | 45.633803 | 145 | 0.575617 |
ac10569d10a9e43cd3d68484049d02ab4953dd77 | 909 | package com.datacloudsec.config.conf.intercepor;
import java.io.Serializable;
/**
* AnalysisEventMappingBean
*
* @author gumizy 2017/9/7
*/
public class AnalysisEventMappingBean implements Serializable {
private String from;
private String to;
private Object defaultValue;
private Boolean toStr... | 17.480769 | 63 | 0.635864 |
356111683fcd20317426624b0a710458ac8ed59c | 681 | package com.webank.keygen.crypto;
import org.bouncycastle.crypto.PBEParametersGenerator;
import org.bouncycastle.crypto.digests.SHA512Digest;
import org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator;
import org.bouncycastle.crypto.params.KeyParameter;
public enum PBKDF2WithHmacSha512 {
INSTANCE;
... | 40.058824 | 98 | 0.781204 |
b43b5fc1aab376bae705720fe94d1743fd3b61a1 | 15,109 | /*===========================================================================
Copyright (C) 2014 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in com... | 32.078556 | 137 | 0.716791 |
87cf854d3f925cc8f6140e53fc2cbef2a66b12b2 | 3,418 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 32.245283 | 111 | 0.658572 |
7226241b25ab44560aa03acf66522f2d80418011 | 560 | /**
* RestifErrorDto.java
* (C) 2013,2015, Hitachi, Ltd.
*/
package org.o3project.mlo.server.dto;
import javax.xml.bind.annotation.XmlElement;
/**
* This is the DTO class of error information.
*/
public class RestifErrorDto {
/** A cause of the error. */
@XmlElement(name = "Cause")
public String cause;
... | 18.666667 | 47 | 0.667857 |
9c530884cd76d465046f1c831dc20870aa415e7a | 174 | package datastructures;
public class BinaryTrieTest extends MembershipTest {
@Override
protected Membership getInstance() {
return new BinaryTrie();
}
}
| 19.333333 | 52 | 0.712644 |
2c517f722bfc0efac4dc9062aa71db930c30914f | 498 | package pnet.data.api.util;
import java.util.Collection;
/**
* Restricts todo ids.
*
* @author ham
* @param <SELF> the type of the filter for chaining
*/
public interface RestrictTodoId<SELF extends Restrict<SELF>> extends Restrict<SELF>
{
default SELF todoId(Integer... todoIds)
{
return restric... | 19.92 | 83 | 0.668675 |
3b24eb4846d77703adcb871ad9d500d53f9b99e6 | 9,027 | /**
* Copyright (c) 2013-2014, TU Braunschweig
* 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,
* this list of ... | 34.586207 | 183 | 0.573502 |
43e5613bed45ba6c5a14ba2478bc646b0ec342df | 11,061 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 35.565916 | 118 | 0.705 |
9f2953b48641b2f1830648d9209c03a95e151b0f | 2,806 | /*
* Copyright (c) 1996, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package java.awt.event;
/**
* An abstract adapter class for receiving mouse events.
* The methods in... | 24.614035 | 126 | 0.662153 |
a09d448de85dbe28dc08af8c615d8c9f55a9a12b | 910 | package genericsAndCollections.generics.bounds;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Lowerbounded are mutable
*/
public class LowerBounded {
private void addSound(List<? super String> list) {
list.add("This is mutable!");
li... | 27.575758 | 138 | 0.726374 |
24d7b8ccde4891d67103b97c1e20a82a057b27de | 17,113 | import ij.IJ;
import ij.ImagePlus;
import ij.ImageStack;
import ij.gui.Line;
import ij.gui.OvalRoi;
import ij.gui.Overlay;
import ij.gui.PointRoi;
import ij.process.ByteProcessor;
import ij.process.FloatProcessor;
import java.awt.*;
import java.util.ArrayList;
/**
*
*
*
*
*
In a right-handed coordinate system, ... | 34.294589 | 158 | 0.501549 |
5edc85411d0c3fb5d6df6f6ecf82057c6a843218 | 965 | package org.javaswift.joss.instructions;
import org.apache.http.HttpEntity;
import org.apache.http.entity.InputStreamEntity;
import org.javaswift.joss.headers.object.Etag;
import java.io.IOException;
import java.io.InputStream;
public class UploadPayloadInputStream extends UploadPayload {
private InputStream in... | 24.74359 | 97 | 0.735751 |
dea4413dda067084fe3db060c2b9ae1e43add511 | 11,441 | package com.qiniu.shortvideo.app.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.DisplayMetrics;
impo... | 34.987768 | 127 | 0.594004 |
95be6834380a0997dc6b0c0ec5d35ce773b6cacb | 11,448 | /*
* 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... | 28.763819 | 93 | 0.59137 |
8d0870d80595ff3d887e0222f877ebd15d78d48d | 1,156 | package com.example.bank.utils;
import javax.validation.constraints.NotBlank;
import java.util.Objects;
public class AccountInput {
@NotBlank(message = "Account number is mandatory")
private String accountNumber;
@NotBlank(message = "Account name is mandatory")
private String accountName;
... | 17.784615 | 59 | 0.625433 |
ba08c05e886e599bf4bc19ad7d38b5bc37618b16 | 1,190 | package io.github.apace100.originsclasses.registry;
import io.github.apace100.origins.Origins;
import net.minecraft.util.Identifier;
import virtuoel.pehkui.api.ScaleModifier;
import virtuoel.pehkui.api.ScaleRegistries;
import virtuoel.pehkui.api.ScaleType;
import virtuoel.pehkui.api.TypedScaleModifier;
import java.ut... | 41.034483 | 190 | 0.77563 |
0efb0723122e9bb41aef6bebb690071bfff82809 | 10,305 | package com.googlecode.gtalksms.cmd.smsCmd;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.text.T... | 34.69697 | 155 | 0.544978 |
d81d3557d1c58bc19954f2f15f5fec2972266f33 | 7,095 | /*
* Tencent is pleased to support the open source community by making BK-JOB蓝鲸智云作业平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-JOB蓝鲸智云作业平台 is licensed under the MIT License.
*
* License for BK-JOB蓝鲸智云作业平台:
* ----------------------------------------------... | 47.939189 | 116 | 0.662156 |
d39e947bf2e860b9a08b1df5a37049fcd338544d | 809 | package me.pexcn.mall.controller;
import me.pexcn.mall.entity.EasyUITreeNode;
import me.pexcn.mall.interfaces.ItemCategoryService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestControl... | 31.115385 | 76 | 0.751545 |
777ce59c94f381c7f108e8a540ba5c9d6f6c145c | 564 | package org.danyuan.identify.base.info;
import org.danyuan.identify.base.info.controller.Centroller;
/**
*
* 文件名 : App.java
* 包 名 : org.danyuan.identify.base.info
* 描 述 : 程序的入口
* 机能名称:
* 技能ID :
* 作 者 : wang
* 时 间 : 2017年3月9日 下午1:48:20
* 版 本 : V1.0
*/
public class App {
/**
*
* ... | 17.090909 | 60 | 0.551418 |
0cb670b4e7735f0ffbe1fe8cbd3d6a6e5e1f839f | 1,265 | package com.example.anitac.flicks.models;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by anitac on 6/28/18.
*/
public class Config {
String imageBaseUrl; //showing images
String posterSize; //fetch poster size
String backdropSize; //fetch backdrop... | 25.3 | 78 | 0.67668 |
f95d146280c5067f1278786ae4f699ec03fbbd12 | 554 | package io.coded.seabird_minecraft_backend.event;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import java.util.UUID;
public interface EmoteCallback {
Event<EmoteCallback> EVENT = EventFactory.createArrayBacked(EmoteCallback.class,
(listeners) -> (uui... | 29.157895 | 84 | 0.651625 |
192bcc7946dee14bda098d57714c369b978b7932 | 1,155 | /*******************************************************************************
* Copyright (c) 2019 Eclipse RDF4J contributors.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, an... | 29.615385 | 81 | 0.654545 |
945e5f24f0f1fe9d0d909626660c628e3e5ef26a | 5,382 | package com.zhaozhijie.jcartadministrationback.util;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.ClassP... | 31.846154 | 103 | 0.658863 |
6b4f964ab413818ec5064773cd6db80274eeeb8b | 5,995 | package br.com.sutel.mymaps;
import androidx.fragment.app.FragmentActivity;
import android.Manifest;
import android.graphics.Color;
import android.location.LocationManager;
import android.os.Bundle;
import android.widget.Toast;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.map... | 38.677419 | 113 | 0.626022 |
d34bc799a596f293e8b950858bcc7375dc7ceecd | 4,240 | package algorithm.medium;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
/**
* 最长回文子串
* 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。
* <p>
* 输入: "babad"
* 输出: "bab"
* 注意: "aba" 也是一个有效答案。
* <p>
* <p>
* 输入: "cbbd"
* 输出: "bb"
*
* @author parkstud@qq.com 2020-04-08
*/
public clas... | 30.285714 | 90 | 0.399528 |
6f6080d2ec428579881f02c4095bd59c2635cd40 | 16,713 | package edu.drake.research.web.lipswithmaps.backend;
import com.google.appengine.repackaged.com.google.gson.Gson;
import com.google.appengine.repackaged.com.google.gson.GsonBuilder;
import com.google.appengine.repackaged.com.google.gson.JsonObject;
import com.google.common.reflect.TypeToken;
import com.google.firebase... | 47.078873 | 142 | 0.568539 |
12509b6c26073fb9d47e2d78d2fa43f9794c4cf3 | 8,120 | /***************************************************************************
* Copyright 2001-2009 The VietSpider All rights reserved. *
**************************************************************************/
package org.vietspider.html.renderer;
import java.text.Normalizer;
import java.util.Ar... | 31.843137 | 101 | 0.631281 |
bb06904d2050af4b892d716f4411c14ffd38a6a8 | 955 | package org.metaborg.meta.lang.dynsem.interpreter.nodes.building;
import org.metaborg.meta.lang.dynsem.interpreter.terms.ITerm;
import org.metaborg.meta.lang.dynsem.interpreter.terms.TermPlaceholder;
import org.metaborg.meta.lang.dynsem.interpreter.utils.SourceUtils;
import org.spoofax.interpreter.terms.IStrategoAppl;... | 32.931034 | 89 | 0.831414 |
2d9e3e50a54503237cd82603ded08743069a03da | 30,911 | package org.d2rq.mapgen;
import java.net.URI;
import java.sql.Types;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.d2rq.db.SQLConnection;
import org.d2rq.db.schema.ColumnDef;
import org.d2rq.d... | 37.604623 | 545 | 0.685808 |
90a919589c902788afd7882a8e60781346c28835 | 4,498 | package com.github.dynamobee.utils;
import static java.util.Arrays.asList;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import j... | 32.594203 | 121 | 0.756336 |
af0c1c5fb1b2b0c186eb1b518591cdcb7092e469 | 1,564 | package lectureNotes.lesson5.factory;
import java.util.ArrayList;
import java.util.List;
// Wikipedia example for factory method
public class F5 {
public abstract class Room {
abstract void connect(Room room);
}
public class MagicRoom extends Room {
public void connect(Room room) {}
... | 26.965517 | 100 | 0.56266 |
2d40fe674f887ee5b4047f94003f2a1062807f1f | 322 | package org.portal.back.pinnacle.darts;
import org.portal.back.pinnacle.Constants;
import org.portal.back.pinnacle.grabber.LineGrabber;
import org.springframework.stereotype.Service;
@Service
public class DartsLineGrabber extends LineGrabber {
public DartsLineGrabber() {
super(Constants.DARTS_ID);
}
... | 23 | 52 | 0.779503 |
4d5c5d5f64bbb5710273fc96950560400a773c4f | 1,487 | package com.coditory.quark.context;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.NoSuchElementException;
import java.util.Queue;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
final class HierarchyIterator im... | 28.596154 | 76 | 0.62542 |
08d4a84a41ce85670060c5aea3ce2d622eed4590 | 2,949 | package com.groupdocs.ui.annotation.annotator;
import com.groupdocs.ui.annotation.entity.web.AnnotationDataEntity;
import com.groupdocs.annotation.models.PageInfo;
import com.groupdocs.ui.common.exception.TotalGroupDocsException;
public class AnnotatorFactory {
/**
* <p>
* Create annotator instance dep... | 49.15 | 105 | 0.679891 |
887c6215c35e45449f7f239d39bb743da93d450c | 7,711 | package com.edasaki.rpg.items.stats;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import com.edasaki.rpg.PlayerDataRPG;
public class StatAccumulator {
public int level = 1;
private int damageLow = 0;
private int damageHigh = 0;
private int maxHP = 0;
privat... | 29.208333 | 84 | 0.556737 |
2d5d9eee4527d19ba54486e3472506b0689dd033 | 1,292 | package de.jeff_media.updatechecker;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
class InternalUpdateCheckListener implements Listener {
private final UpdateChecke... | 32.3 | 162 | 0.68808 |
dae33c20352c204fe29a8dc4d3645ccff16982f0 | 2,704 | package com.androidufo.demo;
import android.Manifest;
import android.content.Intent;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import androidx.core.app.ActivityCompat;
import com.androidufo.demo.configs.ConfigsActivity;
impo... | 29.391304 | 85 | 0.634615 |
17b04b11606f7b6f28710815640d6c216f42bc89 | 124 | package pl.edu.agh.dsm.common.security;
public interface AutorizationContext {
public ApplicationUser getActiveUser();
}
| 17.714286 | 40 | 0.806452 |
52d456dfe2010316e7e2052297051d2aa5a1a8b4 | 1,022 | package com.wwwjf.wlibrary.base;
import com.wwwjf.mvplibrary.IMvpView;
import com.wwwjf.mvplibrary.base.BaseMvpPresenter;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
public abstract class BasePresenter<T extends IMvpView> extends BaseMvpPresenter<T> {
privat... | 23.227273 | 85 | 0.663405 |
ce30f89b2ce234075b51f9d9dc052d423ce0004e | 2,226 | package com.homework.lovedog.bean;
import com.homework.lovedog.dbmanager.DogInfoDbManager;
import com.homework.lovedog.utils.dbutils.DbManager;
import com.homework.lovedog.utils.dbutils.db.annotation.Column;
import com.homework.lovedog.utils.dbutils.db.annotation.Table;
@Table(name = DogInfoDbManager.DOG_ITEM_TABLE)
... | 24.733333 | 63 | 0.659479 |
5592ad9b68f90d04a98a59a7dd7e5edd50c880de | 16,895 | package org.cqframework.cql.cql2elm;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.testng.Assert.assertTrue;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.cqframework.cql.cql2elm.LibraryBuilder.SignatureLevel;
imp... | 47.061281 | 221 | 0.671323 |
c57c4d33fd4abac71b557d85eb359e75c2b8ea40 | 447 | /**
*
*/
package com.lq.work.modules.gen.dao;
import com.lq.work.common.persistence.CrudDao;
import com.lq.work.common.persistence.annotation.MyBatisDao;
import com.lq.work.modules.gen.entity.GenTable;
import com.lq.work.modules.gen.entity.GenTableColumn;
/**
* 业务表字段DAO接口
*
* @version 2013-10-15
*/
@MyBatisDa... | 21.285714 | 68 | 0.767338 |
f62aa2ee5202420134cd0256ae7a4388017c84af | 5,447 | package sh.isaac.solor.rf2;
/*
* aks8m - 9/6/18
*/
import sh.isaac.MetaData;
import sh.isaac.api.Get;
import sh.isaac.api.bootstrap.TermAux;
import sh.isaac.api.chronicle.Chronology;
import sh.isaac.api.chronicle.LatestVersion;
import sh.isaac.api.component.concept.ConceptChronology;
import sh.isaac.api.component... | 40.051471 | 141 | 0.684964 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.