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 |
|---|---|---|---|---|---|
6be519d00af16888b2699712c19030e76825e229 | 3,055 | // ***************************************************************************************************************************
// * 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 regar... | 47.734375 | 150 | 0.556137 |
f3fd4661fcaec592da2ab25495e112b3cb201e16 | 2,617 |
/**
* Copyright 2019 TIBCO Software 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.
* A copy of the License is included in the distribution package with this file.
* You also may obtain a copy of th... | 29.077778 | 114 | 0.664883 |
93c22e97419c231193ebde37b88b8fbd0302b06b | 5,010 | /*-
* Copyright (c) 2013-2020 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 o... | 39.140625 | 120 | 0.696806 |
d7ed5a315f74cc21d9367410ba17b29614dc0453 | 5,208 | package org.codelabor.example.crud.emp.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.xml.bind.annotation.XmlRootElement;
import org.codelabor.system.web.taglib.PaginationConstants;
import org.... | 21.609959 | 136 | 0.618856 |
b9860c1d2f94b000e023165c849b27304b8ab676 | 3,952 | package com.litongjava.hotswap.kit;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* @author create by ping-e-lee on 2021年6月23日 上午11:28:05
* @version 1.0
* @desc
*/
public class ReflectionUtils {
/**
* 使用指定的加载器加载类
* @param ... | 23.111111 | 131 | 0.635121 |
a2e4210927e5ee6da8e5666ccfbd31a6624dbe02 | 2,957 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | 19.201299 | 75 | 0.718296 |
1a4ac6628ccd95a2888bac4ea12a4083fd5dba41 | 81,822 | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
Program.java
Abstract:
Z3 Java API: Example program
Author:
Christoph Wintersteiger (cwinter) 2012-11-27
Notes:
--*/
import com.microsoft.z3.*;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;... | 37.758191 | 229 | 0.553763 |
ff230c233fc8b37137ac73714a5af4f6474cabfa | 792 | package cn.com.heaton.blelibrary.ble;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
/**
*
* Created by LiuLei on 2017/10/30.
*/
public class BleHandler extends Handler {
private static final String TAG = "BleHandler";
private static BleHandler sHandler;//Handler for... | 25.548387 | 82 | 0.638889 |
e6d035804f6cc813195aeb67d5def728ce5e651e | 1,076 | package org.walterinkitchen.parser.expression;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
public class BaseCompareExpression extends CompareExpression {
public enum Comparator {
EQ,
NEQ,
NULL_SAFE_EQ,
GTE,
GT,
LTE,
... | 24.454545 | 107 | 0.650558 |
d5a2c2a8942d531939b569277f5f82617b02b59f | 2,247 | /**
* Copyright (c) 2010 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
package name.martingeisse.stackd.client.system;
import java.util.HashSet;
import java.util.Set;
/**
* This class keeps a set of system resources. It also refers to a parent
* node and child nodes in a hie... | 20.614679 | 81 | 0.683578 |
656fcac7ba93e39bf0d1e9f567c0d6c75077ac25 | 867 | package org.iii.ideas.catering_service.rest.api;
import java.util.ArrayList;
import java.util.List;
import org.iii.ideas.catering_service.dao.Navi;
public class QueryNaviAuthorityResponse extends AbstractApiResponse{
/**
*
*/
private static final long serialVersionUID = -1904135875588581166L;
... | 18.0625 | 69 | 0.696655 |
c70e08b323a858d8c53b7ff32ec892c82e2530e7 | 388 | package com.baoyongan.java.eg.pattern.command.type4;
// 具体的commond
public class ConcreteCommand<T, S> implements Command {
private Action<T, S> action;
private T t;
private S s;
public ConcreteCommand(Action action, T t, S s) {
this.action = action;
this.t = t;
this.s = s;
... | 19.4 | 55 | 0.603093 |
c35a6670e4c71f54abb5249445adbb724a509ed4 | 5,164 | /*
* 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
* distributed u... | 33.532468 | 109 | 0.656081 |
6d3e37f65c52a4b02ecbb50e91a42a5aa81c3947 | 428 | package top.zylsite.cheetah.elasticjob;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import com.zylsite.www.elasticjob.annotation.EnableElasticJob;
@EnableElasticJob
@SpringBootApplication
public class ElasticJobCheetahApplication {
public ... | 23.777778 | 68 | 0.838785 |
09d18bbddf05ecef7627044a6284fdfd86a30649 | 418 | package org.folio.circulation.domain;
public class AccountFeeFineTypeInfo {
private final String feeFineId;
private final String feeFineType;
public AccountFeeFineTypeInfo(String feeFineId, String feeFineType) {
this.feeFineId = feeFineId;
this.feeFineType = feeFineType;
}
public String getFeeFineI... | 20.9 | 71 | 0.744019 |
a0ffa7a2017549671a4d4df53da2f7e6d5cb630a | 562 | package com.ace.controller.admin.concerns;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* Created by john on 17-5-13.
*/
@Getter
@Setter
public class DataTable<T> {
@JsonView(AdminView.Table.class)
private int start;
@JsonView(... | 21.615385 | 49 | 0.725979 |
09d483318ca2b84388980725fe3487aa5c834f95 | 382 | package com.sometrik.framework;
import java.util.ArrayList;
class NativeCommandTransaction {
private ArrayList<NativeCommand> commands = new ArrayList<NativeCommand>();
public NativeCommandTransaction() { }
public void addCommand(NativeCommand command) {
commands.add(command);
}
public ArrayL... | 21.222222 | 77 | 0.73822 |
dcee0a789cbf0a2d3ffc8b3ccd2c180ad54329ae | 2,636 | /* Copyright (C) 2002 Dept. of Computer Science, Univ. of Massachusetts, Amherst
This file is part of "MALLET" (MAchine Learning for LanguagE Toolkit).
http://www.cs.umass.edu/~mccallum/mallet
This program toolkit free software; you can redistribute it and/or
modify it under the terms of the GNU General P... | 30.651163 | 143 | 0.73217 |
1bf54288c8d47c07aeea0fe61359036e0c93bffd | 6,035 | package com.likya.tlossw.web.management;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import j... | 25.572034 | 102 | 0.724606 |
f0d17cacd5263497c9515dff9ad77c4bd543e087 | 2,465 | package com.oheers.fish.baits;
import com.oheers.fish.EvenMoreFish;
import com.oheers.fish.FishUtils;
import com.oheers.fish.config.messages.Message;
import com.oheers.fish.exceptions.MaxBaitReachedException;
import com.oheers.fish.exceptions.MaxBaitsReachedException;
import org.bukkit.GameMode;
import org.bukkit.Mate... | 33.767123 | 114 | 0.73712 |
242089c35066dff900bb2ce9c4ea454a30969907 | 88 | package top.alertcode.adelina.framework.base.dao;
public interface BaseEntityDao {
}
| 12.571429 | 49 | 0.795455 |
ef33e5302d45c4c7ca31d58eb9662d3ad93ecbf2 | 1,785 | package org.apache.fineract.client.services;
import org.apache.fineract.client.ApiClient;
import org.apache.fineract.client.models.CommandProcessingResult;
import org.apache.fineract.client.models.GetPermissionsResponse;
import org.apache.fineract.client.models.PutPermissionsRequest;
import org.junit.Before;
import or... | 33.679245 | 579 | 0.734454 |
d42b6da77d46ea01a9db84c792382b385a664413 | 4,801 | package org.jasig.cas.adaptors.radius.authentication.handler.support;
import net.jradius.packet.attribute.RadiusAttribute;
import org.jasig.cas.authentication.MessageDescriptor;
import org.jasig.cas.adaptors.radius.RadiusResponse;
import org.jasig.cas.adaptors.radius.RadiusServer;
import org.jasig.cas.authentication.H... | 39.677686 | 119 | 0.690065 |
52a0f72db039716fef55f4872ddd72128f63f908 | 1,155 | package com.mobile.ocelot.ocelot_mobile_test;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view... | 33 | 76 | 0.753247 |
966ec3e9754a14efa843c20ccef3eddc88c667dc | 25,865 | /**
*
* Copyright 2021 Florian Schmaus
*
* 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... | 41.516854 | 188 | 0.676049 |
bd529e9d5a6bb5a92ff676c6ed45661af2255031 | 3,962 | /**
* 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
* distribu... | 37.377358 | 131 | 0.714791 |
c597acdf84430b6f1b61bf3cdb77ce1899c22240 | 980 | package br.senac.tads.dsw.exemploemail;
import java.io.IOException;
import javax.mail.MessagingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.... | 23.902439 | 68 | 0.777551 |
f4221fdd42ae0ad1b8d7cd605683e5f71de66b38 | 19,467 | package dora.util;
import android.app.Activity;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import java.io.Serializable;
import java.uti... | 40.55625 | 129 | 0.578055 |
d8dadf4e9c7d7e6039f8b164b6b891ba2b10fc74 | 2,492 | package net.akehurst.example.flightSimulator.gui.channel;
import java.net.URL;
import net.akehurst.application.framework.common.annotations.instance.ConfiguredValue;
import net.akehurst.application.framework.common.interfaceUser.UserSession;
import net.akehurst.application.framework.realisation.AbstractIdentifiableOb... | 38.338462 | 102 | 0.811396 |
df5d291eeb77d93b11da144f6e58255be88d3e28 | 4,649 | package com.xiaojukeji.kafka.manager.web.api.versionone.normal;
import com.xiaojukeji.kafka.manager.common.constant.Constant;
import com.xiaojukeji.kafka.manager.common.entity.Result;
import com.xiaojukeji.kafka.manager.common.entity.ResultStatus;
import com.xiaojukeji.kafka.manager.common.entity.dto.normal.TopicModif... | 42.651376 | 114 | 0.71994 |
6d419b3f5fb696706371a1025698c3c7823d79f2 | 4,890 | package io.toolisticon.annotationprocessortoolkit.templating.templateblocks;
import io.toolisticon.annotationprocessortoolkit.templating.exceptions.InvalidPathException;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
/**
* Unit... | 36.222222 | 172 | 0.713497 |
79f3625fae45eed94d35930654c30e2b74583fa9 | 413 | package EXP_4;
public class KY4_2 extends KY4_1_P{
protected String xy;
protected String xi;
public static void main(String args[]){
KY4_1_P p1 = new KY4_1_P();
p1.setdata("甲",1);
KY4_2 p2 = new KY4_2();
p2.setdata("乙",2);
p2.xy="经济管理";
p2.xi="信息管理";
... | 22.944444 | 52 | 0.527845 |
09e7326ee0901ec4d6d6c81d06fb104ccdd6a0de | 3,292 | /*
* 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.190476 | 96 | 0.737242 |
78f9654a596e7373539e62c0d114f1f652f94ed6 | 10,989 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MT License.
package com.microsoft.bot.builder.teams;
import java.net.HttpURLConnection;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import com.microsoft.bot.builder.InvokeResponse;
im... | 45.222222 | 119 | 0.671035 |
68283d9e3bd7b19091585222d40eef8f9bca9508 | 8,884 | package zenderoz;
import estructuras.BusRoute;
import estructuras.Path;
import estructuras.Distance;
import estructuras.GPSUnit;
import estructuras.Graph;
import estructuras.PlanResult;
import estructuras.Route;
import estructuras.Routes;
import geocodificador.Geotagger;
import geocodificador.Renderer;
import gps.GPSM... | 41.514019 | 239 | 0.648582 |
434b890cfc06c1685a35a751a1531f6d8281f112 | 455 | package com.m00ware.ftpindex.raw;
/**
* @author Wooden
*
*/
public class FixupListing extends Fixup {
private RawDirectory listing;
public FixupListing(int position, RawDirectory listing) {
super(position);
this.listing = listing;
}
public RawDirectory getListing() {
retur... | 19.782609 | 64 | 0.637363 |
d935a4334918caa927a152ce81cf095d42170c4c | 2,034 | /**
*
* This file is part of the https://github.com/BITPlan/com.bitplan.wikitask open source project
*
* Copyright 2015-2022 BITPlan GmbH https://github.com/BITPlan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* You ma... | 29.478261 | 143 | 0.714356 |
a7ec4b746456142b899f1b027baffaef462a9e01 | 7,835 | /*
* Copyright (C) 2021-2021 Huawei Technologies Co., Ltd. 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
*
*... | 28.911439 | 129 | 0.687428 |
dfad710b603acdb08653d7ec3b08bb244cefe275 | 757 | package se.mickelus.tetra.blocks.forged.hammer;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.registries.ObjectHolder;
import se.mickelus.tetra.TetraMod;
public class HammerHeadTile extends TileEntity {
@ObjectHolder(TetraMod.MOD_ID + ":" + H... | 22.939394 | 74 | 0.712021 |
955afb1fffde96438f26c1a6ba1686f418c8b352 | 467 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
/**
* Top-level package of the data layer.
* <a name="documentation"/><h2>Data</h2>
* This is the top-level package of all utilities of this project. This package
* itself only contains... | 38.916667 | 80 | 0.713062 |
2650c3ced24002b66b50ae7913cdf6832787a7e9 | 2,532 | package com.packtpub;
import java.io.IOException;
import java.util.*;
import com.microsoft.azure.functions.annotation.*;
import org.apache.commons.lang3.StringUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.microsoft.azure.functions.*;
/**
* Azure Functions with HTTP Trigger.
*/
public class... | 43.655172 | 175 | 0.663507 |
fc3550bc1183fd18ddec536581e21893cb559a18 | 591 | package com.evernym.vdrtools.anoncreds;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.isA;
import java.util.concurrent.ExecutionException;
public class ProverCreateMasterSecretTest extends AnoncredsIntegrationTest {
@Test
public void testProverCreateMasterSecretWorks() throws Exception {
}
@T... | 24.625 | 79 | 0.825719 |
ed21d794a42c6c2472651b10156f12527c3ff508 | 1,508 | package org.apache.maven.artifact.ant;
/*
* 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 Licen... | 32.085106 | 74 | 0.720822 |
618b0104b0e911774e660c5c3b58a7fc8968ef17 | 409 | package jp.devisoft.griddecorationtest;
import android.support.v7.widget.GridLayoutManager;
public class MySpanSizeLookup extends GridLayoutManager.SpanSizeLookup {
private MyAdapter adapter;
public MySpanSizeLookup(MyAdapter adapter) {
this.adapter = adapter;
}
@Override
public int get... | 22.722222 | 72 | 0.738386 |
9c0185733e4e2b8f6b4af4c43ac616a099497964 | 1,465 | package cl.uach.kelluwen.nlp.engines.metrics;
import java.text.DecimalFormat;
import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.cas.FSIterator;
import org.apache.uima.cas.text.AnnotationIndex;
import org.apac... | 35.731707 | 123 | 0.76587 |
de703ac670729cfc4cd7b5b3fbc9fa8d1bde660c | 7,762 | /*
* Copyright 2015- Tomofumi Chiba
*
* 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 ... | 31.681633 | 101 | 0.555012 |
e854040a0a491c740b70923118a67193be6a0b64 | 3,487 | package me.supriyapremkumar.thenewyorktimes_articles.models;
import java.util.ArrayList;
/**
* Created by supriya on 7/31/16.
*/
public class NewsDeskModel {
private String newsDeskName;
private static final String[] news_desk = new String[]{
"Adventure Sports",
"Arts & Leisure",
... | 25.086331 | 70 | 0.412389 |
e9663fc9b6713e731943528333173d10b8f96541 | 1,042 | package com.dovar.router_api.router.ui.forresult;
import android.content.Intent;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
/**
* @Date: 2018/9/28
* @Author: heweizong
* @Description:
*/
public class Activity4ResultUtil {
/**
* @param intent 目标页面和携带参... | 35.931034 | 141 | 0.725528 |
5eae425ee2b988ec70209ec630427eaec8dab9d3 | 2,489 | package org.itsnat.droid.impl.xmlinflater.layout.classtree;
import org.itsnat.droid.impl.xmlinflater.layout.ClassDescViewMgr;
import org.itsnat.droid.impl.xmlinflater.layout.attr.widget.AttrDescView_widget_Switch_switchTextAppearance;
import org.itsnat.droid.impl.xmlinflater.layout.attr.widget.AttrDescView_widget_... | 52.957447 | 139 | 0.762555 |
1451a40efc4394d95d1afbfa3fc635e54b215879 | 49,515 | /*
* Copyright (C) 2006 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 app... | 37.855505 | 100 | 0.592487 |
7057073823cc1a77960be8bcba82c263ad813690 | 429 | package java.util.concurrent;
public class RejectedExecutionException extends RuntimeException {
public RejectedExecutionException() { }
public RejectedExecutionException(String message) {
super(message);
}
public RejectedExecutionException(String message, Throwable cause) {
super(me... | 22.578947 | 72 | 0.713287 |
3ea320d252dcf7c52f48c95fe547138a9e95c9f0 | 1,091 | package nl.atlasdev.v1wac.servlets;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.*;
@WebServlet(urlPatterns = "/calculator.do")
public class Calculator extends HttpServlet {
protected void doGet(HttpServletRequest req, HttpServletRespo... | 27.275 | 110 | 0.665445 |
3325aeb9a61abed70c310658b1924e9f889424cd | 3,243 | package bfood.spotting.eng_mahnoud83coffey.embeatit;
import android.content.Intent;
import android.support.design.widget.TextInputEditText;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import bfood.spott... | 28.2 | 111 | 0.60037 |
e343da3d87ca87f07e4768342a58211ed7a3c9a0 | 1,392 | /*
Copyright 2014-2015 Intecs Spa
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 writ... | 28.408163 | 79 | 0.714799 |
57c29a42f35d8dd7008b2c9b47ec62dbb7b24135 | 238 | package unae.lp3.service;
import java.util.List;
import unae.lp3.model.Marca;
public interface IMarcasService {
void guardar(Marca marcas);
List<Marca> buscarTodas();
void eliminar(int idMarca);
Marca buscarPorId(int idMarca);
}
| 15.866667 | 33 | 0.760504 |
e315c1350fade49e96988a2b69f68e8617c27748 | 1,359 | package com.lucythemoocher.actors;
import com.lucythemoocher.R;
import com.lucythemoocher.controls.AIController;
import com.lucythemoocher.physics.Cinematic;
import com.lucythemoocher.util.Direction;
/**
* Target of the game.
* I.e. Freddy!!!
*/
public class TargetCharacter extends Actor {
/**
* Co... | 24.709091 | 69 | 0.646799 |
bacc7e0837e8ebd0885af3b3483dee6eab06b7e3 | 1,079 | // Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.naming;
import com.android.tools.r8.graph.DexClass;
import com.android.tools... | 32.69697 | 77 | 0.784059 |
5e1c5d71bab016fd0e851d33f9d599c82281263c | 1,357 | package org.example.interceptor;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class SystemInterceptor implements HandlerInterceptor {
@Override
... | 41.121212 | 162 | 0.775976 |
4bcd96504255a7d9c5d7c8b13d07c5aa765e3556 | 2,331 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program 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 F... | 30.272727 | 81 | 0.694981 |
63e7cb7a4933f4c1c4c80a1cd0fa86f545321653 | 2,451 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.adk.java.viewfilter.tools;
import java.io.BufferedReader;
import java.io.CharArrayWriter;
import java.io.FileReader;
import java.util.Map;
import org.adk.java.log.KLogger;
import org.apache.velocity.app.Vel... | 26.641304 | 104 | 0.556508 |
64916bdbc0148c00f6707ad9dc920fda20d7a812 | 12,811 | package com.renrairah.bukalock;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory... | 45.109155 | 259 | 0.59246 |
5d5cc83baa08c2e9dc18676ce5a7b27ce3eae8b4 | 288 | package com.util;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtil {
public static String GETIME(){
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(("yyyy-MM-dd HH:mm:ss"));
return simpleDateFormat.format(new Date());
}
}
| 24 | 90 | 0.711806 |
23deec4220ef4387667b4fa9d28345ff089f88c9 | 3,333 | package com.alamkanak.weekview.sample;
import android.annotation.TargetApi;
import android.app.IntentService;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.Context;
import android.os.AsyncTask;
import and... | 29.236842 | 108 | 0.627963 |
80ec0a48da47519cf918d937f459af03bb4cb90c | 2,345 | package com.damianogiusti.acknowledgements;
import android.content.Context;
import android.support.annotation.RawRes;
import android.webkit.WebView;
import com.damianogiusti.acknowledgements.config.AcknowledgerConfig;
import com.damianogiusti.acknowledgements.model.Artifact;
/**
* Created by Damiano Giusti on 01/09... | 32.569444 | 108 | 0.61322 |
b07b08a7bec4e54e4e58ad3177f0afc493150ba6 | 430 | package church.universityumc;
/**
* The response a {@link ChurchMember} had to contact by Lay Leadership or other recruitment effort for an
* {@link ActivityEngagement}.
*/
public enum ContactResponse
{
/**
* The {@link ChurchMember} declined the invitation to engage in the activity.
*/
DECLINED,
... | 22.631579 | 106 | 0.686047 |
3e357a29a01715e9006b50f2de9cd80a6a068cf1 | 308 | package com.promotionDetail.model;
import java.util.List;
public interface PromoDetailDAO_IN {
public void addpromotion(List<PromoDetailVO> list);
public List<PromoDetailVO> getOne(Integer id);
public List<PromoDetailVO> getPmotionprice();
public void updatepromodetail(PromoDetailVO PromoDetailVO);
}
| 28 | 60 | 0.818182 |
61df04041e1a83d1f9f4a48d4030fa506f453b0e | 156 | package com.codeberry.tadlib.tensor;
import com.codeberry.tadlib.array.NDArray;
public interface GradFunc {
NDArray calcGradient(NDArray gradient);
}
| 19.5 | 43 | 0.794872 |
b5aa0637af5c8bf638ad5e37d0736a03af12d637 | 5,194 | /*
* 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 ... | 48.092593 | 150 | 0.702734 |
37dd94b3c05fc27a0252675eb51e4ef63add3946 | 361 | package net.dontdrinkandroot.gitki.model;
/**
* @author Philip Washington Sorst <philip@sorst.net>
*/
public enum FileType
{
MARKDOWN("md"),
TEXT("txt");
private final String extension;
FileType(String extension)
{
this.extension = extension;
}
public String getExtension()
... | 15.695652 | 53 | 0.628809 |
bb89a600c43be4296491d6b8cc8223b43f577d00 | 2,247 | package game.tables;
import game.Rail;
public class TrackPathFinderTables
{
public static final byte _bits_mask[] = {
0x19,
0x16,
0x25,
0x2A,
};
public static final byte _tpf_new_direction[] = {
0,1,0,1,2,1, 0,0,
2,3,3,2,3,0,
};
public static final byte _tpf_prev_direction[] = {
0,1,1,0,... | 20.614679 | 75 | 0.610592 |
2503b536d6d24571da90872d03139d95bd3236c9 | 351 | static int temp=1;
public static <T> void printArray(T[] a) {
if(temp==2){
System.out.println("Hello");
System.out.println("World");
}
if(temp==1){
System.out.println("1");
System.out.println("2");
System.out.println("3");
... | 23.4 | 42 | 0.438746 |
919b185f69ebdef8347a6e2310b52a0cb37f7045 | 5,291 | /**
* Project Name:java11_in_action
* File Name:StringToDateTest.java
* Package Name:luozix.start.java8.problems.string
* Date:2021年2月28日下午8:27:15
* Copyright (c) 2021, xiaoyulong07@outlook.com All Rights Reserved.
*
*/
/**
* @Title: StringToDateTest.java
* @Package luozix.start.java8.probl... | 35.75 | 136 | 0.719713 |
f8b231889af857fbf90b45d2fb5976cfbba48665 | 24,558 | package com.asthereon.green_thumb;
import net.runelite.api.Client;
import net.runelite.api.Skill;
import net.runelite.client.util.ColorUtil;
import java.awt.*;
import java.text.DecimalFormat;
import java.util.*;
import java.util.List;
public enum Seed {
POTATO_SEED("Potato seed","Allotment",8,0,9,4,10,1,3,"Comp... | 86.168421 | 292 | 0.636615 |
a04af990d403ed280a9e9d5b9617d18a99023e22 | 19,242 | /*
* Copyright © 2014-2016 NetApp, 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 require... | 36.791587 | 197 | 0.619322 |
24a3ea1ee91ba0f22da07018e9916ea3f6c8a43b | 672 | package marc.nguyen.minesweeper.server.core;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Custom IO Threads for the Server.
*
* <p>These threads should only be used for non-intensive CPU work (e.g Accessing file, network
* calls...). These can also be calls Worker thre... | 33.6 | 136 | 0.755952 |
71fc9b88ddfc1e13d4b70a98fed630a498aab487 | 4,130 | package ee.bitweb.banklink.sdk.protocol.iPizza;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.open... | 41.3 | 148 | 0.734625 |
6c3147705a0eefdb5007c4181dde65f7bec4e5dc | 1,769 | package models;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import java.util.ArrayList;
import java.util.List;
public class IOExample {
private String name = "f";
private List<String> inputs;
... | 24.569444 | 132 | 0.587903 |
08cfaa14bf44ad2b899dd3defc0466e650305a28 | 5,867 | package com.loopperfect.buckaroo.versioning;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.loopperfect.buckaroo.*;
import org.jparsec.Parser;
import org.jparsec.Parsers;
import org.jparsec.Scanners;
public final class VersioningParsers {
private Version... | 42.208633 | 105 | 0.679734 |
d84c367777162121c180694ca91c5c9eee956eed | 1,703 | package com.hedera.hashgraph.sdk;
import com.google.protobuf.ByteString;
import org.bouncycastle.crypto.digests.SHA384Digest;
import org.bouncycastle.util.encoders.Hex;
import javax.annotation.Nullable;
import javax.net.ssl.X509TrustManager;
import java.nio.charset.StandardCharsets;
import java.security.cert.Certific... | 30.410714 | 111 | 0.669994 |
9513590603a12ab20f1182ebf54d4d624ba91956 | 8,813 | package cn.felord.wepay.ali.sdk.api.response;
import java.util.Date;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
import cn.felord.wepay.ali.sdk.api.AlipayResponse;
/**
* ALIPAY API: alipay.fund.auth.operation.detail.query response.
*
* @author auto create
* @version $Id: $Id
*/
public class Al... | 20.983333 | 80 | 0.655282 |
648c1c4bde123625503fa92ccadc9cfeae0a4498 | 1,767 | package noise;
import simplexNoise.OpenSimplexNoise;
public class Noise {
OpenSimplexNoise noise;
public Noise(long seed) {
noise = new OpenSimplexNoise(seed);
}
public float getHeightAt(float x, float y, float size) {
x *= size;
y *= size;
float value = (float) noise.eval(x / 300, y / 300) * 1.2f;
... | 22.0875 | 72 | 0.570458 |
fcc808bd87e09aa15ffce2bb339136eddb02250e | 4,859 | /*
* Copyright 2020 Global Biodiversity Information Facility (GBIF)
*
* 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 requ... | 38.872 | 99 | 0.763326 |
de8427ef033883853263adb9acf280b049c302ad | 1,931 | /*
* Copyright 2014-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
*
* Unless required by ap... | 33.877193 | 119 | 0.736406 |
a1acbddf0b433c4c2247ded46fadd87b630606e9 | 2,304 | package co.ecso.dacato.cassandra;
import co.ecso.dacato.AbstractTest;
import co.ecso.dacato.helpers.CreateTableOnlyFilter;
import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.thrift.transport.TTransportException;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import java.io... | 36 | 109 | 0.697483 |
8a3daed6bc007f2b9debf0afbf365bf8fac3b4a7 | 4,873 | /*
* 版权所有 2017 Tweea。
* 保留所有权利。
*/
package cn.tweea.filecontentlogger;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.apache.commons.codec.dige... | 35.830882 | 135 | 0.599631 |
2e41a8cc7d86e842e1e086134915acfd70020a49 | 2,602 | package com.hbm.entity.mob.sodtekhnologiyah;
import java.util.List;
import com.google.common.base.Predicates;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.util.EntitySelectors;
import net.minecraft.util.math.MathHelper;
public class WormMovementBody {
priv... | 37.171429 | 274 | 0.721368 |
c149be14cbd6b8ee3ed88edb56e26108c8ed9078 | 1,310 | package org.pwsafe.jfx;
import javafx.scene.control.TableCell;
import javafx.scene.control.TableColumn;
import javafx.util.Callback;
import org.pwsafe.lib.datastore.PwsEntryBean;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
*/
public class DateCellFactory {
public static SimpleDateFormat da... | 32.75 | 117 | 0.580153 |
f8e0a2ee092e6cc192ef9b7889b04400b2133599 | 1,747 | package vg.civcraft.mc.civchat2.command.commands;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import vg.civcraft.mc.civchat2.ChatStrings;
import vg.civcraft.mc.civchat2.CivChat2;
import vg.civcraft.mc.civchat2.command.ChatCommand;
public... | 25.691176 | 105 | 0.71723 |
a18da24a7580003c4f8978317d4ded50594f1e5b | 849 | package fi.jumi.actors.generator.reference.dummyListener;
import fi.jumi.actors.eventizers.Event;
import fi.jumi.actors.generator.DummyListener;
import fi.jumi.actors.queue.MessageSender;
import javax.annotation.Generated;
@Generated(value = "fi.jumi.actors.generator.EventStubGenerator",
comments = "Based on ... | 29.275862 | 77 | 0.726737 |
24bf768aff6f14e4b0166c2cabca6790f9bef8d3 | 2,011 | package org.contentmine.norma.input.tex;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import org.apache.commons.io.IOUtils;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.contentmine.norma.NormaFixtures;
import org.contentmine.norma.input.tex.TEX2HTMLConv... | 36.563636 | 100 | 0.741919 |
bfc89a38554c4c938e69ec298f79bc9f8537c976 | 2,695 | /**
** Copyright 2011 by Sarah Wise, Mark Coletti, Andrew Crooks, and
** George Mason University.
**
** Licensed under the Academic Free License version 3.0
**
** See the file "LICENSE" for more information
**
** $Id$
**/
package sim.app.geo.sleuth;
import java.util.ArrayList;
import sim.engine.SimState;
impo... | 36.917808 | 162 | 0.700557 |
a5cb0546bbad79517ffc36b6eaf0b50fdacf6e3c | 3,341 | package moze_intel.projecte.gameObjs.container;
import java.util.function.IntConsumer;
import java.util.function.IntSupplier;
import java.util.function.Predicate;
import javax.annotation.Nonnull;
import moze_intel.projecte.gameObjs.blocks.MatterFurnace;
import moze_intel.projecte.gameObjs.container.slots.MatterFurnace... | 34.802083 | 156 | 0.756959 |
5c24254175a7459c65ceaa83d6f319977c1272d9 | 5,866 | package com.internousdev.leisurepass.action;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.struts2.interceptor.SessionAware;
import com.internousdev.leisurepass.dao.CartInfoDAO;
import com.internousdev.lei... | 25.175966 | 89 | 0.713092 |
157ba6453e4285f03e1b63ecbf9c018e697ce245 | 588 | package com.tomise.meigang.learnintent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;
public class BActivity extends AppCompatActivity {
public static final String ACTION = "com.tomise.meigang.learnintent.intent.BActivity";
@Override
protected void... | 32.666667 | 90 | 0.741497 |
9e25335dedd301be8230fa6ea03e9d29a8a75de9 | 1,733 | package m.co.rh.id.a_news_provider.base.entity;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;
import java.io.Serializable;
import java.util.Date;
import m.co.rh.id.a_news_provider.base.room.converter.Converter;
@Entity(tableName =... | 25.485294 | 64 | 0.582804 |
7dbf768605f2287107c940db433d4bb7b368dbba | 463,800 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 38.273643 | 509 | 0.749605 |
90b845caee81c85c86dc09d7c6e3928b24fa4ef8 | 858 | package com.mshams.cs.problems.leetcode;
/**
* https://leetcode.com/problems/shortest-palindrome/
*/
public class ShortestPalindrome {
public String shortestPalindrome(String s) {
if (s.length() <= 1) return s;
int n = s.length();
String rev = new StringBuilder(s).reverse().toString();
String p = s... | 26 | 74 | 0.566434 |
b5eb614756025e39ebf5a88fb415625b6c96d3a9 | 2,210 | package com.spring.biz.user.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.spring.biz.common.JDBCUtil;
import com.spring.biz.user.UserVO;
@Repository("userDAO")
public cl... | 23.510638 | 57 | 0.626244 |
cb132cf379fa7d8b73ba608df287ffb96078676a | 1,033 | package ramdan.file.bpp.geneva.config;
import ramdan.file.line.token.LineToken;
import ramdan.file.line.token.callback.Callback;
import ramdan.file.line.token.config.Config;
import ramdan.file.line.token.config.ConfigToken;
import java.util.ArrayList;
import java.util.List;
public class GenevaPairRemoveConfig extend... | 29.514286 | 87 | 0.638916 |
1969d3481c7fe1953fbfd120603c54d413446b49 | 2,014 | /*
* 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 ... | 38 | 94 | 0.751738 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.