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 |
|---|---|---|---|---|---|
995e740522eacd1fbb9eb9ec51108eaae04d3ba1 | 1,833 | /*
* Copyright 2015 JBoss, by Red Hat, 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 ... | 27.358209 | 75 | 0.627932 |
8a2499642a4f0b02ad35b25541c6c7c193bbc661 | 871 | package com.hapramp.views;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import com.xw.repo.BubbleSeekBar;
public cla... | 24.885714 | 82 | 0.716418 |
e68bc744e70264cd8f8d9bd96da32280ddbb7aa7 | 2,961 | /*
* DatabaseScript.java
*
* Copyright 2013, Compusult Ltd.
*
* 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 ... | 27.416667 | 106 | 0.69132 |
2553d1b143a2c4aeef72a938ff85647df7693e17 | 6,378 | /**
* Bean Validation TCK
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.beanvalidation.tck.tests.xmlconfiguration.constraintdeclaration.propertylevel;
import static org.testng.Assert.assertEquals;... | 40.113208 | 111 | 0.787237 |
c5dc7e2ac5437224751784f6fa4704b4e287e665 | 594 | //package com.xe.demo.common.datasource;
//
//import javax.sql.DataSource;
//
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import com.alibaba.druid.pool.DruidDataSou... | 24.75 | 77 | 0.713805 |
30aebd71bcdb43e4b8b27b25341936244a38877e | 413 | package org.xmlet.xsdparser.xsdelements.exceptions;
/**
* An exception that is thrown whenever the parsing process encounters a error in the values present in the XSD file.
* The exception message contains valuable information to find and correct the error in the file.
*/
public class ParsingException extends Runti... | 29.5 | 117 | 0.762712 |
8a174e4cd3303f541e0b6ba0f2b812c6fbccbd77 | 601 | package com.ins.sys.tools;
/**
* 用于处理字符串
*/
public class StringTool {
public static boolean isnull(String param){
return null==param||param.isEmpty();
}
public static String sqlLike(String param){
return "%"+param+"%";
}
public static String templateSql(String ...param){
... | 23.115385 | 82 | 0.579035 |
498205e1cf4b9caf7c8d9fff9fabab2169e972c5 | 1,426 | /*
* 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 indiesvsgamersbropals.screens;
import bropals.lib.simplegame.gui.GuiButton;
import bropals.lib.simplegame.gui.GuiButtonAction... | 24.169492 | 86 | 0.668303 |
ac1a015536151e9aa0ad48e295045d1571cd88fc | 187 | package org.jboss.resteasy.reactive.server.spi;
import java.util.function.Supplier;
public interface EndpointInvokerFactory {
Supplier<EndpointInvoker> invoker(String baseName);
}
| 20.777778 | 55 | 0.807487 |
5d0712cac2e140f236c088e867c2905ad9f555ba | 1,482 | package services;
import models.User;
import repositories.JDBC.UserJDBC;
import repositories.UserRepo;
import repositories.hibernate.UserHibernate;
import java.util.List;
// Where we are going to put any business logic needed for the application to function the way we want.
// Specifically any services tha... | 29.64 | 104 | 0.639001 |
9aeeaaab7afd41e05cdff500e7f483b747a9b148 | 6,647 | /*
Copyright (C) GridGain Systems. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 53.604839 | 116 | 0.717918 |
ddcba90304b2a3c14a09585f9e2b949a5bce0df2 | 3,753 | package com.spotinst.sdkjava.model;
import com.spotinst.sdkjava.client.http.UserAgentConfig;
import com.spotinst.sdkjava.client.response.BaseSpotinstService;
import com.spotinst.sdkjava.exception.HttpError;
import com.spotinst.sdkjava.exception.SpotinstHttpException;
import com.spotinst.sdkjava.model.bl.admin.account.... | 39.505263 | 123 | 0.685585 |
187ef4a87e550116180c3e49aee15945c8a641ac | 11,773 | /*
Copyright 2018 Eduardo Garcia Melia <wagiro@gmail.com>
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... | 39.243333 | 136 | 0.570628 |
35e543f0b7bf0906a5055af04baf56abee1b1f05 | 1,043 | package net.qldarch.gson;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.stream.Stream;
import com.google.gson.ExclusionStrategy;
import com.google.gson.GsonBuilder;
import net.qldarch.guice.Bind;
@Bind
public class AnnotatedExclusions {
private Stream<JsonSkipField> skipFields... | 32.59375 | 98 | 0.771812 |
3c7acd92ea2e143fda76a5b088c324e19ec40b68 | 3,786 | /*
Copyright 2011-2013 Pieter Pareit
This file is part of SwiFTP.
SwiFTP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SwiFTP is distrib... | 37.86 | 88 | 0.702324 |
09db16db971ac09b8eaaf86c77b1d4628d332256 | 3,347 | /*
* Copyright 2019-2020 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
*
* Unle... | 42.910256 | 117 | 0.728115 |
2170ed441d530ea18e637860108e458dde14bec2 | 2,261 | /**
* @page License
*
* Copyright (c) 2010 Guibin.Li. 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.... | 25.988506 | 77 | 0.685095 |
c6d29e53cbc98f3e3ee4afb929669d70661d90f0 | 38 | package util;
public class Hand {
}
| 6.333333 | 19 | 0.684211 |
bd2f9273931207f1e58a41348ffa201614f85e2b | 4,280 | package cc.mrbird.febs.system.controller;
import cc.mrbird.febs.common.controller.BaseController;
import cc.mrbird.febs.common.domain.FebsResponse;
import cc.mrbird.febs.common.domain.QueryRequest;
import cc.mrbird.febs.common.exception.FebsException;
import cc.mrbird.febs.system.domain.Test;
import cc.mrbird.febs.sys... | 34.796748 | 103 | 0.607009 |
e6db5033486383626710c6b142aaee402f38b848 | 892 | package com.spring.cloud.example.ribbonconsumer.hystrix.command;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.spring.cloud.example.ribbonconsumer.hystrix.User;
import org.apache.commons.lang.StringUtils;
import org.springframework.web.client.RestTemplate;
im... | 30.758621 | 118 | 0.751121 |
273ba7947ed1a60e32cdbcb32e331c92be2e34b9 | 2,013 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.timeseries.filter;
import it.unimi.dsi.fastutil.ints.Int2DoubleMap;
import it.unimi.dsi.fastutil.objects.ObjectIterator;
import org.apach... | 35.946429 | 108 | 0.72926 |
01bbdfe4bb83675b4542c59ee6028216f760d35b | 1,665 | package pub.avalon.sqlhelper.core.engine;
import pub.avalon.beans.DataBaseType;
import pub.avalon.sqlhelper.core.beans.*;
import pub.avalon.sqlhelper.core.build.SqlBuilder;
import pub.avalon.sqlhelper.core.norm.Model;
import pub.avalon.sqlhelper.core.sql.Table;
/**
* 表引擎
*
* @author 白超
* @date 2018/8/24
*/
publi... | 30.833333 | 103 | 0.69009 |
8b90e122d0cc9621e4208ebf30b5568379241b0e | 2,817 | package com.team4.backend.pdf;
import com.lowagie.text.DocumentException;
import org.thymeleaf.context.Context;
import org.thymeleaf.spring5.SpringTemplateEngine;
import org.xhtmlrenderer.pdf.ITextRenderer;
import java.io.ByteArrayOutputStream;
import java.util.Map;
/**
* Abstract class to be extended with a concre... | 38.589041 | 136 | 0.653887 |
b5c81ba8d3e5fd6a31611012300b1b0eaff846ca | 6,982 | /*
* Copyright 2002-2016 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 ap... | 32.324074 | 103 | 0.750358 |
0276cd3f02d6d78df1bac31c466c1c800d48654f | 452 | package com.biniam.designpatterns.bridge.foobarmotorco;
/**
* @author Biniam Asnake
*/
public class SportDriverControls extends AbstractDriverControls {
public SportDriverControls(Engine engine) {
super(engine);
}
// IMPORTANT: this additional method is coded interms of the superclass 'abstraction' and NOT th... | 25.111111 | 128 | 0.75 |
7951621d2659fd90097f9e8c23f5c52e379a6ccf | 900 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2018 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
/**
* PermissionResultHandler -- This handler is called from
* ... | 33.333333 | 79 | 0.626667 |
ae91f9716ac14d1a6ffb0a52a8083fe87ccd5feb | 6,380 | /*
* Chart Generation Service
* This is a service for generating charts in a node environment that were created using web charting and get back images in form of `PNGs` and `JPEGs` as response.
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://... | 27.860262 | 174 | 0.710031 |
3f3c22729007621eba92474b7cabf0c56b2f458b | 1,728 | /**
* Copyright (C) 2015 Orion Health (Orchestral Development Ltd)
*
* 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 r... | 32.603774 | 102 | 0.771412 |
78ebba6debb02c028f099fcdb07a1f74bdd4d5a6 | 583 | package name.julatec.ekonomi.tribunet.annotation;
/**
* Provides adaption support for the classes defined by {@link Adapt}.
*/
public interface AdapterFactory {
/**
* Classes to be adapted.
* @return supported classes.
*/
Class<?>[] supportedClasses();
/**
* Adapts the given object ... | 26.5 | 82 | 0.660377 |
354e713a320928c27e2270aa601de0d45fa7af9c | 2,211 | package de.samply.share.client.quality.report.results.filter;
import de.samply.share.client.quality.report.results.QualityResult;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
public class ValidValueFilterQualityResults {
private final Se... | 27.987342 | 97 | 0.724107 |
da52f7c7d85e9e4457f2d90fa00ec502cf3a2621 | 982 | package cn.bootx.common.lock.annotation;
import cn.bootx.common.lock.enums.LockType;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
/**
* 加锁注解
*
* @author xianzh... | 17.535714 | 58 | 0.627291 |
4b55f4a08b69904e750044796628a5f9ef9e9c31 | 2,533 | package com.yqboots.social.wechat.client;
import com.yqboots.commerce.order.entity.Order;
import com.yqboots.commerce.order.entity.OrderEntry;
import com.yqboots.commerce.product.entity.Product;
import com.yqboots.social.wechat.WeChatApplication;
import com.yqboots.social.wechat.api.pay.TradeType;
import com.yqboots.s... | 35.676056 | 106 | 0.76668 |
5d95d922199a00865961b3db3ddc1dd917bf2ee7 | 551 | package org.knowm.xchange.binance.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
public final class DepositAddress {
public String address;
public String url;
public String addressTag;
public String asset;
public DepositAddress(
@JsonProperty("address") String address,
@Jso... | 23.956522 | 53 | 0.705989 |
8c1bee881fe9b8cfea63adb28996df7cd818f77a | 1,464 | package com.wipro.www.pcims.restclient;
import static org.junit.Assert.assertEquals;
import com.wipro.www.pcims.restclient.CellInfo;
import com.wipro.www.pcims.restclient.OofRequestBody;
import com.wipro.www.pcims.restclient.RequestInfo;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
publi... | 36.6 | 77 | 0.712432 |
c9f4db8e25f02cae913fec2f225b51d92de33daf | 383 | package io.renren.modules.generator.entity.vo;
import lombok.Data;
import java.util.Date;
/**
* @author
* @date 2022 年 01 月 24 日
*/
@Data
public class ChartVo {
private String username ; //名字
private Long exhaledVolume;//呼出量
private Long onCapacity; //接通量
private Date operationDate;//操作日期
pr... | 17.409091 | 46 | 0.686684 |
116639fcf2e3b4910f9536316e1b7e07e9a5106f | 7,343 | /*
* Copyright Terracotta, 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 ... | 45.04908 | 225 | 0.737846 |
9e0f1f0bd7aec9fb1e80cd35db85f7eb88198c0e | 231 | package org.johoco.depinsight.dto;
import lombok.Data;
/**
* Per https://maven.apache.org/xsd/maven-4.0.0.xsd
*
* @author John Hoestje
*/
@Data
public class ActivationFile {
private String missing;
private String exists;
}
| 15.4 | 51 | 0.718615 |
9635730f14a8a27001f1ef33a62267ddf2252e71 | 607 | package br.com.albus.generic.exception;
import org.junit.Test;
public class GenericSqlInexistenteRuntimeExceptionTest {
@Test(expected = GenericSqlInexistenteRuntimeException.class)
public void genericEntityTestExceptionTest() throws GenericSqlInexistenteRuntimeException {
throw new GenericSqlInexist... | 35.705882 | 96 | 0.802306 |
e2bf5af47fff0c2ba008196ef5d589b3f63c80f6 | 7,452 | /*
* Copyright (C) 2021 Adrian-Philipp Leuenberger
*
* 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 la... | 56.454545 | 175 | 0.636205 |
0a63242d4bc22e92da80fb9d50f31ded5d3ae193 | 1,224 | package me.piggypiglet.docdex.documentation.objects.detail.field;
import me.piggypiglet.docdex.documentation.objects.DocumentedObject;
import me.piggypiglet.docdex.documentation.objects.detail.DocumentedDetailBuilder;
import org.jetbrains.annotations.NotNull;
// ------------------------------
// Copyright (c) PiggyPi... | 26.042553 | 159 | 0.669935 |
83d1d80aedd859c97537f80616ba6d064187e031 | 1,006 | package io.quarkus.it.jaxb;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.ContentType;
@QuarkusTest
public class JaxbTest... | 26.473684 | 128 | 0.550696 |
ee1b04687f2e7dc3f653032d89b8fe94982e8d0c | 348 | package com.android.volley;
import android.content.Intent;
// compiled from: AuthFailureError.java
public final class a extends w {
private Intent c;
public a(l lVar) {
super(lVar);
}
public final String getMessage() {
return this.c != null ? "User needs to (re)enter credentials." : ... | 20.470588 | 92 | 0.652299 |
a817cbfe714acf415eaa0c301e80c08d13d336bf | 4,541 | package msb.shortcut.master.web.rest;
import com.codahale.metrics.annotation.Timed;
import msb.shortcut.master.domain.Question;
import msb.shortcut.master.service.QuestionService;
import msb.shortcut.master.web.rest.errors.BadRequestAlertException;
import msb.shortcut.master.web.rest.util.HeaderUtil;
import io.github.... | 37.841667 | 158 | 0.690156 |
aeaab81b52eb44cb5e30867825ce2af2172f6d45 | 4,445 | package com.alfredxl.templatefile.ui;
import com.alfredxl.templatefile.bean.Template;
import com.alfredxl.templatefile.impl.SimpleMouseListener;
import com.alfredxl.templatefile.util.HandleLocalData;
import com.intellij.openapi.fileChooser.*;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs... | 38.652174 | 117 | 0.587627 |
25edab42a412d0c40cc32779cc25d2caed8e546c | 981 | package fr.lithie.matchup.utils.views;
import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JList;
import fr.lithie.matchup.entities.ContractType;
import fr.lithie.matchup.entities.Location;
import fr.lithie.matchup.entities.User;
/**
* @author Audrey
*
*/
public class ComboB... | 29.727273 | 106 | 0.744139 |
f95ccf823aff412bb8636a02fbc9aa789a1a05c0 | 1,213 | package com.fishercoder.solutions;
public class _758 {
public static class Solution1 {
/**
* Interestingly, this problem is exactly the same as 616, using 616's code could get it AC'ed.
*/
public String boldWords(String[] words, String S) {
boolean[] shouldBold = new b... | 34.657143 | 103 | 0.422094 |
48e034bb75509d3752525179821ec2f5fb870982 | 408 | package com.avantsystems;
import com.avantsystems.IMachine;
import com.avantsystems.MobilePhone;
public class MachineManager {
IMachine machine;
public Machine(IMachine machine) {
this.machine = machine;
}
void apply() {
machine.execute();
}
public static void main(String[]... | 17.73913 | 51 | 0.637255 |
d20191d6f170ad1782a49cc8fe9a468dd94b07b8 | 8,574 | /*
* 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 ... | 54.265823 | 165 | 0.657686 |
98aa66ae8ef5448f9893e07bd8e5ebfd3dd6ec27 | 585 | package com.github.fjdbc.connection;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
import com.github.fjdbc.ConnectionProvider;
/**
* A {@link ConnectionProvider} that wraps a {@link DataSource}.
*/
public class DataSourceConnectionProvider implements Connection... | 22.5 | 74 | 0.755556 |
5555cc3398b005dfd9875df22cdd3fd2d6bc3a2a | 3,740 | /*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 44.52381 | 172 | 0.7 |
39994a0a23cc1a19392796c444457f0a2ca37a14 | 3,079 | /*
* Copyright 2016-2017 Axioma srl.
*
* 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... | 42.763889 | 120 | 0.764534 |
251f392a693c85c5d893704f3da5bb37f77c63cd | 98 | package me.bc56.discord.model.gateway.event;
public class HelloEvent implements GatewayEvent {
}
| 19.6 | 49 | 0.816327 |
f599c62e374680e4c4770958f58af40ad4c9b5e3 | 1,414 | package graphql.sql.core.config.domain.type;
import com.healthmarketscience.sqlbuilder.QueryPreparer;
import graphql.Scalars;
import graphql.language.Value;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
public class TimestampTypeUtil extends Ab... | 28.28 | 114 | 0.687412 |
8362568ae02e957ca8efb1e4985f212aa611471b | 6,767 | package idp.saml;
import org.joda.time.DateTime;
import org.opensaml.Configuration;
import org.opensaml.saml2.core.*;
import org.opensaml.saml2.core.impl.StatusBuilder;
import org.opensaml.saml2.core.impl.StatusCodeBuilder;
import org.opensaml.saml2.core.impl.StatusMessageBuilder;
import org.opensaml.xml.XMLObjectBuil... | 41.771605 | 147 | 0.795921 |
ab6aee9082c70370f6dc7ac766e57f4f97a6ed5f | 4,353 | package org.tianlangstudio.data.hamal.core.multithread;
import com.codahale.metrics.Counter;
import com.codahale.metrics.Timer;
import org.apache.commons.pool2.impl.GenericObjectPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tianlangstudio.data.hamal.core.ConfigUtil;
import org.tianlan... | 31.316547 | 123 | 0.589249 |
9b0d981f1c3a05edd4aabcd2e93b29493958eb08 | 1,795 | package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.session.data.mongo.JacksonMongoSessionConverter;
import org.springframework.session.data.mongo... | 32.636364 | 96 | 0.75376 |
639374396c724bd4e7654ea29ad25813bb56f799 | 1,956 | package com.hermant.graphics.cameras;
import org.joml.Matrix4f;
import org.joml.Vector3f;
public class FirstPersonCamera implements Camera {
public FirstPersonCamera(Vector3f position, Vector3f rotation) {
this.position = position;
this.rotation = rotation;
}
private Vector3f position;
... | 29.19403 | 88 | 0.598671 |
8752a7c394d05bf16e89ba241bab00768117e251 | 10,861 | package pinacolada.powers.affinity;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.core.AbstractCreature;
import com.megacrit.cardcrawl.core.Set... | 33.834891 | 211 | 0.642298 |
70dbf7d4b28afaf26a418df68d4c53816d9b12a2 | 1,195 | package io.vertx.core.eventbus.impl;
import io.vertx.core.Context;
import io.vertx.core.spi.metrics.EventBusMetrics;
import com.newrelic.api.agent.Token;
import com.newrelic.api.agent.Trace;
import com.newrelic.api.agent.weaver.NewField;
import com.newrelic.api.agent.weaver.Weave;
import com.newrelic.api.agent.weaver... | 22.54717 | 137 | 0.722176 |
4b4515116c4d7bcaaf8979a445705ddda062cdf2 | 3,686 | package com.trasier.opentracing.spring.interceptor;
import com.trasier.client.configuration.TrasierClientConfiguration;
import com.trasier.client.interceptor.TrasierSpanResolverInterceptor;
import com.trasier.opentracing.spring.interceptor.ws.TracingClientInterceptor;
import com.trasier.opentracing.spring.interceptor.... | 42.860465 | 162 | 0.736028 |
3723481c649a77bff4fbebdf8d7b9bfde1cebf68 | 3,983 | package com.ta.utdid2.aid;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build.VERSION;
import com.ta.utdid2.android.utils.Base64;
import com.ta.utdid2.android.utils.Base64Helper;
import com.ta.utdid2.android.utils.DebugUtils;
import com.ta.utdid2.android.utils.SharedPrefe... | 44.752809 | 150 | 0.692192 |
1cb7d19bc1c1e24e9ea021a153af5d0428c6ac23 | 3,534 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">dobo</a> All rights reserved.
*/
package com.dobo.modules.cst.entity.detail;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import javax.validation.constraints.NotNull;
import com.dobo.common.persistence.Data... | 20.079545 | 105 | 0.713639 |
682ac04db28512f5f7332bc002dcf5609a562fd2 | 2,327 | /*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-present, b3log.org
*
* Solo is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org... | 32.319444 | 204 | 0.644177 |
6b8b81dc24b839a62a475e270a5063474de5dcbd | 786 | package de.linkvt.ontobench.features.classexpressions;
import de.linkvt.ontobench.features.Feature;
import de.linkvt.ontobench.features.FeatureCategory;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.model.OWLClass;
import org.springframework.stereotype.Component;
@Component
public class... | 22.457143 | 62 | 0.760814 |
d307b7b477c5303fa1aecfc64fdc674ade8df3f8 | 1,256 | package android.support.v4.media.session;
import android.content.Intent;
import android.os.Bundle;
import android.os.ResultReceiver;
public abstract interface MediaSessionCompatApi21$Callback
{
public abstract void onCommand(String paramString, Bundle paramBundle, ResultReceiver paramResultReceiver);
public abst... | 29.209302 | 109 | 0.789013 |
2b2da364b4ada70aef1fcde5e756b26a4cdf4676 | 1,409 | package model;
import javafx.geometry.Pos;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.VBox;
/**
* 这个类是用来当要开始游戏时,选择飞船角色的按钮
*/
public class ShipPicker extends VBox {
private ImageView circleImage;
private ImageView shipImage;
private Strin... | 29.354167 | 95 | 0.663591 |
e9a9f17ec8d366359af5f01bf696d0785d375208 | 1,325 | package com.indiestream;
import com.wowza.wms.amf.AMFDataList;
import com.wowza.wms.client.IClient;
import com.wowza.wms.logging.WMSLoggerFactory;
import com.wowza.wms.request.RequestFunction;
import com.wowza.wms.vhost.IVHost;
import com.wowza.wms.vhost.IVHostNotify;
public class ISSecurityFeedVHost implements IVHos... | 25 | 113 | 0.778113 |
c2ec54f4d8c3c9c30a8d0f1b1dcda730b4aae90f | 4,452 | /*
* Copyright (c) 2018 Vinay Avasthi
*
* 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... | 31.574468 | 104 | 0.720126 |
feb7153254a76b49f2cd5ca2959b0847a27ed0ad | 2,012 | package com.openrest.v1_1;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class State {
private State() {}
/** Demonstration only, unmonitored (e.g. for a restaurant, orders will not be handl... | 40.24 | 93 | 0.686382 |
dabd66e4f70fd519c7b1ba6267d2a30b27d4895c | 6,799 | package practicaltest01.eim.systems.cs.pub.ro.practicaltest01.view;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import an... | 38.851429 | 167 | 0.66098 |
f247e16590b19d1bdb6488a56df24b872c1fa920 | 15,198 | package cn.remex.contrib.service;
import cn.remex.RemexConstants;
import cn.remex.contrib.appbeans.DataCvo;
import cn.remex.contrib.appbeans.DataRvo;
import cn.remex.contrib.auth.AuthenticateBtx;
import cn.remex.core.CoreSvo;
import cn.remex.core.RemexApplication;
import cn.remex.core.exception.ServiceCode;
import cn.... | 45.232143 | 184 | 0.699632 |
9f1aee7805e755bc66a8ba86b5aa3627e4330bac | 1,761 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.exporter.otlp.internal.logs;
import io.opentelemetry.exporter.otlp.internal.Marshaler;
import io.opentelemetry.exporter.otlp.internal.MarshalerUtil;
import io.opentelemetry.exporter.otlp.internal.MarshalerWit... | 36.6875 | 100 | 0.796139 |
3be302c35835c9fbfdcd8f0833323df496ac3301 | 2,690 | package ru.micron.configs;
import static ru.micron.libs.controller.InfoController.INFO_CONTROLLER_URL;
import static ru.micron.paths.ApiPathAdmin.BASE_URL;
import static ru.micron.paths.ApiPathAuth.LOGIN;
import static ru.micron.paths.ApiPathAuth.LOG_OUT;
import lombok.RequiredArgsConstructor;
import org.springframew... | 34.487179 | 102 | 0.770632 |
5f0bd38e8735a4881f876017d8ed63b3361992a0 | 698 | package com.delllogistics.entity.sys;
import com.delllogistics.entity.BaseModel;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;
/**
* Created by jiajie on 15/04/2017.
*/
@Entity
@Getter
@Setter
public class WechatToken extends Ba... | 16.232558 | 44 | 0.633238 |
f091a7d05f94f80dd6ba43ba5edcf420ae718d69 | 2,016 | package com.nepxion.discovery.contrib.example.impl;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.util.Timer;
import java.util.TimerTask;
import javax.annota... | 30.545455 | 99 | 0.712302 |
99d924faa0d63b6320875c81193cb70b8c6a412b | 478 | class Loader extends Thread {
public void run() {
for (int i=0; i<100; i++)
System.out.println("BOO " + i);
}
}
class Hugo extends Thread {
public void run() {
for (int i=0; i<100; i++)
System.out.println("foo " + i);
}
}
class watek {
public static void main(String[] args) {
Loader ... | 19.12 | 42 | 0.548117 |
23d9969ceb82b243d82bf0aa4888a7d3ca2d4af4 | 1,021 | /**
* .
*
* Thm
*
* !
*/
package io.renren.modules.sys.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
@TableName(... | 21.723404 | 67 | 0.7238 |
60a9800902b33b6fed94a6826ad86547511416ed | 4,016 | /*
* The MIT License
*
* Copyright 2014 Jesse Glick.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | 40.565657 | 124 | 0.689243 |
e788e33a169a23b0d19c40b9c2741d11b558a9a2 | 544 | package it.r.rubrica.core.data;
import it.r.rubrica.core.data.utils.ConnectionUtils;
import java.sql.Connection;
public class RubricaJdbcConnection {
/*
* Parametri DB
*/
private static final String HOST = "localhost";
private static final String DB = "test";
/*
* Parametri login
*/
private static ... | 21.76 | 97 | 0.709559 |
16492a4855c1952bcae8d6214e09f300f49a1243 | 169 | /**
* Пакет содержит решение к заданиям по generic.
* @author Timur Kapkaev (timur.kap@yandex.ru)
* @version $Id$
* @since 06.07.2017
* */
package ru.job4j.generic; | 24.142857 | 48 | 0.680473 |
6cbe2aec80a06b915777b76fcc9b88b3ea27654e | 1,110 | /*******************************************************************************
* Copyright 2019 grondag
*
* 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/l... | 35.806452 | 80 | 0.640541 |
8121d67678036d1be154859f5bffa2e1e3939474 | 37,537 | /*
* 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 ... | 39.101042 | 109 | 0.660921 |
82b1c023f399f3cc119fb4cbc510aa3ec2a6f024 | 32,568 | /*
* Copyright © 2017-2020 factcast.org
*
* 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 ag... | 32.797583 | 100 | 0.665684 |
dd7b604410a8f535cf8a85d99c263764430fbb2c | 6,225 | package ru.valle.spongycastle.crypto.generators;
/*
* Nov/2013 Modified by Valentin Konovalov - threading & interruption handling was added. Jun/2015 1.7 sources semantics, rename methods
*
Spongy Castle uses the same adaptation of the MIT X11 License as Bouncy Castle.
Copyright (c) 2000 - 2013 The Legion of the ... | 38.425926 | 461 | 0.605944 |
03847dea5c91c8812f5f429f409adcfc3136067c | 971 | package gchess.chess.players;
import gchess.boardgame.Alliance;
import gchess.boardgame.Move;
import gchess.chess.ChessGame;
import gchess.chess.ChessPlayer;
/**
* This class simulates a human player by getting it's next move from a ui.
*/
public class HumanPlayer extends ChessPlayer {
private UI _ui;
publi... | 22.581395 | 75 | 0.665294 |
bd5f03b34049b537377385109f05143c198e9fb4 | 1,616 | package MaximumLengthofPairChain;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* You are given n pairs of numbers. In every pair, the first number is always smaller than the
* second number.
* <p>
* Now, we define a pair (c, d) can follow another pair (a, ... | 27.389831 | 99 | 0.509282 |
e43ed8f2eb66670633efe7b4e2dce38a78f6313d | 730 | package eu.datlab.worker.raw;
import eu.datlab.dataaccess.dao.DAOFactory;
import eu.dl.dataaccess.dao.CrawlerAuditDAO;
import eu.dl.dataaccess.dao.TransactionUtils;
import eu.dl.worker.raw.BaseIncrementalPagedSourceHttpCrawler;
/**
* Base class for incremental crawlers for paged HTTP sources.
*/
public abstract cla... | 33.181818 | 113 | 0.786301 |
bac9128d55deac874f2aa75de8d9b55aae812e6e | 481 | package org.jeecg.modules.dreamlabs.account.service;
import org.jeecg.modules.dreamlabs.account.entity.DreamlabsAccountParam;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* @Description: 账户参数表
* @Author: jeecg-boot
* @Date: 2020-07-03
* @Version: V1.0
*/
pu... | 28.294118 | 89 | 0.767152 |
6d7b5e92a641b8c4f6d42f645f47a8605b5c5246 | 7,140 | /*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* 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
*... | 30.126582 | 88 | 0.636275 |
f8672a75fb525d7e3d50ac0e5233579f565e3b4e | 9,403 | /*
* Copyright (c) 2010-2017 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.wf.impl;
import com.evolveum.midpoint.model.api.ModelInteractionService;
import com.evolveum.midpo... | 46.781095 | 254 | 0.775604 |
c873a3605dc5b9fc0d866d2e8ac0ba7b628f5078 | 388 | package com.pano.examples.basic;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* <p>description: main class </p>
*
* @author pano
*/
@SpringBootApplication
public class BasicAppServerRun {
public static void main(String[] args) {
... | 21.555556 | 68 | 0.75 |
681d60b94039850c1dfbefc387d6d4a07bbaf9ac | 1,974 | package com.hellokoding.auth.validator;
import com.hellokoding.auth.model.Produs;
import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;
@Component
public class ProdusValidat... | 35.890909 | 114 | 0.636272 |
bcd24d5c27de53c519e0aaf9ec174560c6a58f45 | 309 | package com.example.demo.infrastructure;
public class RestResponseError {
private String error;
public String getError() {
return error;
}
public static RestResponseError fromMessage(String message) {
RestResponseError resp = new RestResponseError();
resp.error = message;
return resp;
}
}
| 18.176471 | 62 | 0.750809 |
a9fa227bebc714148994d0105bb4c1cdf361d7c7 | 7,283 | package era.server.data.model;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Sets;
import era.server.data.Model;
import javax.annotation.Nonnull;
import... | 31.803493 | 99 | 0.598654 |
e58b41278e05d6b7cd5ca00535921ddefaf5a24d | 482 | package org.scribble.ast.local;
import org.antlr.runtime.tree.CommonTree;
import org.scribble.ast.ConnectionAction;
import org.scribble.ast.MessageNode;
import org.scribble.ast.name.simple.RoleNode;
import org.scribble.sesstype.kind.Local;
public abstract class LConnectionAction extends ConnectionAction<Local> implem... | 30.125 | 105 | 0.815353 |
9972175a3a2ed796deac1be2c2982083cd57c66a | 529 | package de.unistuttgart.vis.dsass2021.ex08.p2;
import java.util.Set;
public abstract class AbstractShortestPath<N,E> implements IShortestPath<N, E> {
/**
* Calculates the points that are in the middle of both ShortestPath instances.
*
* @param o the other ShortestPath instance of another point
... | 35.266667 | 88 | 0.725898 |
60fbe77e2ead88ac90cb81e6195949b06351c136 | 14,607 | /* Copyright (c) 2011 Timothy Wall, All Rights Reserved
*
* The contents of this file is dual-licensed under 2
* alternative Open Source/Free licenses: LGPL 2.1 or later and
* Apache License 2.0. (starting with JNA version 4.0.0).
*
* You can freely decide which license you want to apply to
* the project.
... | 58.899194 | 205 | 0.730882 |
297fac787313c0bc6063574b91b448ffac45dc5a | 3,601 | package com.youlai.gateway.security;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.nimbusds.jose.JWSObject;
import com.youlai.common.constant.SecurityConstants;
import com.youlai.common.result.ResultCode;
import com.youlai.gateway.util.ResponseUtils;
i... | 38.308511 | 106 | 0.728409 |
046c3d7d4969bf3a7149ad686a8f742f0832e44d | 5,830 | package com.github.steveice10.mc.protocol.packet.ingame.server;
import com.github.steveice10.mc.protocol.data.MagicValues;
import com.github.steveice10.mc.protocol.data.game.statistic.BreakBlockStatistic;
import com.github.steveice10.mc.protocol.data.game.statistic.BreakItemStatistic;
import com.github.steveice10.mc.p... | 49.40678 | 107 | 0.696398 |
060f9c4c8e875aef442fd8a161114f9cd75d6d01 | 740 | /*
Method 7:
----------
Replaces the element at the specified position in this list with the specified element :
set() method replace the value with given value in specific element
*/
import java.util.*;
// import java.util.LinkedList; // Import Only LinkedList
public class Java_80_LinkedList_Set_Meth... | 20 | 89 | 0.552703 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.