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 |
|---|---|---|---|---|---|
0747a4953df75ef8b5959086afb14b1654aed637 | 4,898 | package com.orhanobut.android.swipemenu;
import android.content.Context;
import android.opengl.GLES20;
import android.opengl.Matrix;
import javax.microedition.khronos.opengles.GL10;
/**
* Created by limon on 08.03.2014.
*/
public class TextureRenderer extends MyRenderer {
public TextureRenderer(Context contex... | 32.437086 | 83 | 0.5588 |
9af23c90c9c7bd97cc4079950e1c8c03da924fab | 3,958 | /*
* 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 controller;
import bean.UniteEnseignement;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.Resu... | 39.979798 | 130 | 0.651844 |
641fb835e7d79f31285a4fc728fbe1d21f9bacd0 | 3,245 | /*
* Copyright 2021 Alfresco Software, 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 by applicable law o... | 30.613208 | 93 | 0.678891 |
df78fc186b5a4280633715cc3ba90f4e65c92cf8 | 5,235 | package com.devicehive.model.wrappers;
/*
* #%L
* DeviceHive Java Server Common business logic
* %%
* Copyright (C) 2016 DataArt
* %%
* 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
*... | 33.993506 | 113 | 0.678128 |
74442280a932261ded4690726b5b8eb3074a44ce | 527 | package ofouro.code.graphql.demo.model;
import lombok.*;
import javax.persistence.*;
import java.time.ZonedDateTime;
@Entity
@Data
@RequiredArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Comment extends BaseEntity {
@NonNull
@Column(columnDefinitio... | 17.566667 | 41 | 0.745731 |
79edec08f19ebc6bafc573418bd3a83caee1c806 | 1,863 | package br.ufes.inf.ontoumlplugin.model;
import com.vp.plugin.model.IStereotype;
import com.vp.plugin.model.IProject;
import com.vp.plugin.model.IModelElement;
import com.vp.plugin.model.factory.IModelElementFactory;
public enum OntoUMLClassType {
KIND("Kind"), COLLECTIVE("Collective"), QUANTITY("Quantity"),
SUBKI... | 32.12069 | 142 | 0.745035 |
3293c5fedeceea00281302d969e2f08cd766e61e | 5,932 | package com.sap.mlt.xliff12.impl.persistence;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
... | 33.325843 | 98 | 0.731457 |
c830c7bf604b75e8c2536a2719d86060061307f1 | 727 | package org.infinispan.client.rest;
import java.util.concurrent.CompletionStage;
/**
* @author Tristan Tarrant <tristan@infinispan.org>
* @since 10.0
**/
public interface RestServerClient {
CompletionStage<RestResponse> configuration();
CompletionStage<RestResponse> stop();
CompletionStage<RestRes... | 25.964286 | 90 | 0.782669 |
770a1e2296db812467969ed80af2095cf189d745 | 3,881 | /*
* The MIT License (MIT)
* Copyright (c) 2011-2014 Turenai Project
*
* 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
... | 26.04698 | 116 | 0.686936 |
52ac9b49c85738f78f54dfb83a18997004a4261f | 1,020 | package com.dreamcc.orm.dataobject;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.D... | 18.545455 | 54 | 0.640196 |
d8c03742b189a4c311092d732acb0c0ba4706225 | 3,042 | package org.datazup.expression;
import java.util.*;
/**
* Created by admin@datazup on 3/14/16.
*/
public class Parameters {
private String functionSeparator;
private final List<Operator> operators = new ArrayList();
private final List<Function> functions = new ArrayList();
private final List<Consta... | 28.429907 | 74 | 0.693951 |
f2b4ecc333357454625206cac76e5b8b77292734 | 417 | package dev7.id.sidausappspublic.Server;
import dev7.id.sidausappspublic.Model.User;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
public interface UserInterface {
@FormUrlEncoded
@POST("api_token_auth/")
... | 24.529412 | 94 | 0.776978 |
fb68210665f65697690c4c6b5ae60273ba11ccf2 | 1,306 | package com.videolibrary.metadata;
/**
* Created with Android Studio.
* Title:LiveTypeConstans
* Description:
* Copyright:Copyright (c) 2016
* Company:quanyan
* Author:赵晓坡
* Date:9/13/16
* Time:18:58
* Version 1.1.0
*/
public class LiveTypeConstants {
/**
* 达人创建直播
*/
public static final Str... | 21.766667 | 71 | 0.630168 |
31b24b8345218e1e00f47029ef3574848e780131 | 508 | package webshop.products;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
public class ServiceConfiguration extends Configuration {
@NotNull
@Min(1)
private long defaultCategoryId = 1;... | 19.538462 | 57 | 0.797244 |
2c9fc9d562f3562a7ff29c5b863f7fbdece8b285 | 729 | package control;
/*
* While loops whit "labeled break" and "labeled continue"
*
*/
public class LabeledWhile
{
public static void main(String [] args)
{
int i = 0;
outer:
while(true)
{
System.out.println("Outer while loop");
while(true)
{
i ++;
System.out.print... | 16.568182 | 59 | 0.466392 |
85fb092cfd59908eb43e0f13c225d63a0555d854 | 4,553 | package com.ontologycentral.ldspider.any23;
import java.net.URISyntaxException;
import java.util.logging.Logger;
import org.apache.any23.extractor.ExtractionContext;
import org.apache.any23.writer.TripleHandler;
import org.apache.any23.writer.TripleHandlerException;
import org.openrdf.model.BNode;
import org... | 28.63522 | 94 | 0.686141 |
fc4b02d04fb0d5471af8f4aa18f43562294cf59b | 6,773 | /*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 45.456376 | 193 | 0.700281 |
ff4daa89cea17a424d0a1876934489e3bee44d2e | 274 | package us.fjj.spring.learning.conditionalannotationusage.test3;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import({BeanConfig1.class, BeanConfig2.class})
public class MainConfig3 {
}
| 27.4 | 64 | 0.843066 |
4f5c4c9a8e26d2d6acba270c7d41291f11f6d63a | 481 | package com.darkyen.nbtapi.nbt;
/**
*
*/
public final class NBTDouble extends NBTBase {
public final double value;
public NBTDouble(double value) {
this.value = value;
}
@Override
public String toString() {
return getClass().getSimpleName() + "[" + value + "]";
}
@Overr... | 20.913043 | 108 | 0.609148 |
fb20aa4d3aca1df71a6e6a4245f043d055831d15 | 404 | package org.prebid.server.bidder.model;
import io.vertx.core.MultiMap;
import io.vertx.core.http.HttpMethod;
import lombok.AllArgsConstructor;
import lombok.Value;
/**
* Packages together the fields needed to make an http request.
*/
@AllArgsConstructor(staticName = "of")
@Value
public class AdapterHttpRequest<T> {... | 16.833333 | 63 | 0.740099 |
8739638d3db7e01cf3ee203aef6e781857258221 | 2,882 | /*
* Copyright 2008/2011 Mohawk College of Applied Arts and Technology
*
* 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... | 18.474359 | 83 | 0.655448 |
5bf028204c1a64d1f741f1c59cc1633d2ead7d73 | 54 | package test.bank;
public class NationalBankTest {
}
| 10.8 | 31 | 0.777778 |
0e9c26307f74d55bbe412539492a371fb63b8b98 | 14,291 | package com.logicartisan.common.core.thread;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicBoolean;
/**
*
*/
class SharedThreadPoolImpl implements ScheduledExecutor... | 29.587992 | 95 | 0.717305 |
73dd8a365e7fb0f9a96fe1816f4f6fb1f54e6ffe | 1,886 |
import java.util.Scanner;
public class DivisionDemoSecondVersion
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
try
{
System.out.println("Enter numerator:");
int numerator = keyboard.nextInt();
System.... | 28.575758 | 65 | 0.497349 |
7ebfa7deea6e097a25fd61c73c0b80b71fce9271 | 775 | class Sort{
public static void bubble(int[] arr){
int n = arr.length;
int temp;
boolean no_swap;
for(int i=0; i<n; i++){
no_swap = true;
for(int j=0; j<n; j++){
if(arr[i] < arr[j]){
temp = arr[i];
arr[i] ... | 24.21875 | 47 | 0.381935 |
18eea80ac1a520607d7b06fef1d789dc791e3684 | 8,282 | package com.bridgefy.samples.twitter;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recycle... | 32.478431 | 129 | 0.610118 |
1bd6914cb655d50253805f08d0246072f425e5c8 | 4,953 | package me.uniodex.uniofactions.listeners;
import com.gamingmesh.jobs.api.JobsExpGainEvent;
import com.gamingmesh.jobs.api.JobsPrePaymentEvent;
import com.gamingmesh.jobs.container.Job;
import me.uniodex.uniocustomitems.CustomItems;
import me.uniodex.uniocustomitems.managers.ItemManager;
import me.uniodex.uniofactions... | 40.933884 | 187 | 0.675954 |
10e7203c20819173c2455f9687d8f203a282d1aa | 5,554 | package eu.okaeri.configs.schema;
import eu.okaeri.configs.OkaeriConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
import java.lang.reflect.*;
import java.util.*;
import java.util.stream.Collectors;
@Data
@AllArgsConstructor
public class GenericsDeclaration {
private static fi... | 38.839161 | 118 | 0.664206 |
1438bf9b07e5171838c8f91c5117b85d39b39c9b | 2,505 | package jetbrains.mps.kotlin.textGen;
/*Generated by MPS */
import jetbrains.mps.text.rt.TextGenDescriptorBase;
import jetbrains.mps.text.rt.TextGenContext;
import jetbrains.mps.text.impl.TextGenSupport;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.internal.collection... | 46.388889 | 198 | 0.754092 |
c6902e9f8793b0108ca88bf4096b198c1a312cfa | 3,803 | import java.io.Serializable;
//------------------------------------------------------------------
//Nome: Matheus Fernando vieira Pinto -
//Classe Posicao responsavel por representar uma posicao em um -
//tabuleiro -
//------... | 46.950617 | 130 | 0.517486 |
1ffe4497730f487412c92c8553b33b0fd5fc2f9d | 2,106 | package com.vimukti.accounter.web.client.ui.settings;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.RunAsyncCallback;
import com.google.gwt.resources.client.ImageResource;
import com.vimukti.accounter.web.client.Global;
import com.vimukti.accounter.web.client.core.ClientMeasurement;
i... | 23.931818 | 71 | 0.70038 |
41408e42e829353d9455cd1fd0593ee752459b64 | 3,802 | /**
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* 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 a... | 27.751825 | 85 | 0.568385 |
47571741a503d1dd66c42de818cad0146c849374 | 3,389 | package rocks.inspectit.ui.rcp.handlers;
import java.util.HashMap;
import java.util.Map;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.commands.IHandler;
import org.eclipse.ui.IEditorPart;... | 38.954023 | 131 | 0.782532 |
643c9896ee3704c2ec6d913897cf5f1a2301ce98 | 4,468 | package icetone.examples;
import com.jme3.app.SimpleApplication;
import com.jme3.math.FastMath;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.control.AbstractControl;
import icetone.controls.containers.Panel;
import icetone.controls.extras.Indicator;
import icetone.c... | 31.244755 | 111 | 0.720904 |
6791a08367c4655914f2fff78d1161788948402d | 5,822 | /*****************************************************************************\
* AtlasRef
*
* AtlasRef is a class that figures out which page in a number of atlases
* given an R.A. and Dec. It also supports the Rukl lunar atlas
* given a lunar latitude and longitude.
*
* Based in part on C ... | 28.4 | 79 | 0.53023 |
4ded891540505b2fda875248815074a9efe92725 | 7,331 | package ca.dieterlunn.android.pizza.fragments;
import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.wi... | 33.939815 | 145 | 0.703315 |
b0a809c12dfce007be9d5af533a23653180c8461 | 35,842 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 46.3674 | 135 | 0.591066 |
57e6dff628dd1056adffe8c1ae94a09842a5d06f | 1,087 | package com.darian.BaTJ_face_Question._03_integerSwap;
import java.lang.reflect.Field;
/**
* <br>
* <br>Darian
**/
public class IntegerProxySwap {
public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
// 装箱操作
Integer a = 1, b = 2;
System.out.printl... | 35.064516 | 105 | 0.594296 |
c56d4d2b457906381bd3e513d025b7eec7429828 | 385 | package io.gridgo.config.test;
import io.gridgo.core.GridgoContext;
import io.gridgo.core.Processor;
import io.gridgo.core.support.RoutingContext;
import io.gridgo.framework.support.Registry;
public class TestProcessor implements Processor {
public TestProcessor(Registry registry) {
}
@Override
pub... | 20.263158 | 62 | 0.763636 |
3a06dbd9d949790b125d6c9acda266c77c22a486 | 709 | package top.imdtf.multi.thread.chapter2.page65;
/**
* 0 *
* 1 * @Author: deng.tengfei
* 2 * @email: imdtf@qq.com
* 3 * @Date: 2021/8/3 22:23
*/
public class Page65SyncLockIn1 {
public static void main(String[] args) {
new MyThread().start();
}
}
class Service {
public synchronized void ser... | 19.162162 | 47 | 0.590973 |
f69483567ccf7b9fd72161ac7e95256dfbe42753 | 3,892 | package sjcorbett.boggle;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Deque;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Sets;
import sjcorbett.trie... | 34.140351 | 128 | 0.545735 |
ea6adedadc7d4048abc74b9148588962029f9428 | 4,271 | package org.fluentlenium.adapter.cucumber;
import org.fluentlenium.adapter.DefaultFluentControlContainer;
import org.fluentlenium.adapter.FluentAdapter;
import org.fluentlenium.adapter.FluentControlContainer;
import org.fluentlenium.adapter.SharedMutator;
import org.fluentlenium.core.annotation.Page;
import org.fluent... | 31.404412 | 116 | 0.636619 |
57898a4125dbb1b00477bc80b9ed53e78bd9ee22 | 252 | package io.starteos.jeos.net.request;
public class BlockHeaderStateRequest extends BaseRequest {
private String block_num_or_id;
public BlockHeaderStateRequest(String block_num_or_id) {
this.block_num_or_id = block_num_or_id;
}
}
| 25.2 | 60 | 0.77381 |
2a146ace290109e15e2e54e5dc19f83807ed61f3 | 2,083 | package mrghastien.thermocraft.common.capabilities.heat.transport.networks;
import mrghastien.thermocraft.common.capabilities.heat.transport.cables.Cable;
import mrghastien.thermocraft.util.MathUtils;
import net.minecraft.core.BlockPos;
import net.minecraft.world.level.Level;
import java.util.Map;
public class HeatC... | 28.534247 | 127 | 0.62314 |
6363837835466baa0236b1490fd37ab59e63470c | 4,385 | /*
* Copyright (C) 2010,2011 ECOSUR, Andrew Waterman and Max Pimm
*
* Licensed under the Academic Free License v. 3.0.
* http://www.opensource.org/licenses/afl-3.0.php
*/
/**
* GentePlayer extends GridRegistrant to provide several Pente specific methods
* for use by the Pente rule set.
*
* @author awaterma@ecosur... | 26.10119 | 118 | 0.567845 |
b85e78749bc6e2906ed3f04dcc2e6173cf445360 | 3,420 | /**
* Copyright 2013-2019 the original author or authors from the Jeddict project (https://jeddict.github.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.ap... | 46.849315 | 144 | 0.765789 |
7a332e56cc10553ae9d90d19408fb82048703440 | 1,141 | package in.succinct.beckn.registry.db.model.onboarding;
import com.venky.swf.db.Database;
import com.venky.swf.db.annotations.column.UNIQUE_KEY;
import com.venky.swf.db.annotations.column.indexing.Index;
import com.venky.swf.db.annotations.model.HAS_DESCRIPTION_FIELD;
import com.venky.swf.db.annotations.model.MENU;
im... | 31.694444 | 97 | 0.7695 |
410cf125531c87f7b84b832192b86c47a70d4af5 | 5,082 | /*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 - 2020 Elastic and contributors
* %%
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. ... | 32.787097 | 111 | 0.710547 |
94d4138639cc145314eab66df601e1b0328435d7 | 9,228 | package com.psychowood.henkaku;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException... | 36.330709 | 116 | 0.551907 |
f774d5564375337af12ebea9403a4aaaa7c777fb | 3,553 | /*
* Copyright 2014-2016 Fukurou Mishiranu
*
* 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... | 35.888889 | 113 | 0.769209 |
742f14f9a04088abcf8c08d9e32c31bf0b56a595 | 5,402 | /*
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.141104 | 105 | 0.666235 |
3a0ec6de3a6d2772331ea83f4774f7948c731f66 | 1,167 | package arithmetic;
import java.util.ArrayList;
import java.util.List;
/**
*@Description: 将所有在listB中存在,但listA中不存在的字符串,存放到A中(重复的也算)
*@Author:Ryan
*@Date:2018/1/29 23:36
*/
public class ListMerge {
/**
* 将所有在listB中存在,但listA中不存在的字符串,存放到A中
*/
public static List<String> comList(List<String> listA,... | 22.018868 | 79 | 0.491003 |
043374c1336a7cddc4b02e2169c566ee155a6e06 | 3,888 | /*
* Copyright 2016-2018 Talsma ICT
*
* 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... | 38.49505 | 106 | 0.716049 |
39f999f85363700f23ae0f6019af7b82ecc3a442 | 1,170 | //package org.loed.framework.common.web.mvc.freemarker;
//
//import freemarker.template.Configuration;
//import freemarker.template.TemplateException;
//
//import java.io.IOException;
//
///**
// * @author Thomason
// * @version 1.0
// * @since 2016/9/19 15:22
// */
//
//public class FreeMarkerConfigurer extends org.sp... | 30 | 114 | 0.757265 |
96b392f800845d49f6073f69333e04b8f0658dbf | 1,491 | /**
* Copyright (C) 2014 Karlsruhe Institute of Technology
*
* 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... | 30.428571 | 79 | 0.731724 |
672f0f47b0f6d27e382650caa428aae2676f9a6d | 5,599 | /*! ******************************************************************************
*
* Hop : The Hop Orchestration Platform
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
* http://www.project-hop.org
*
*******************************************************************************
*
* ... | 28.712821 | 112 | 0.66244 |
3f866f33655539acbf2787f1f86c8086d5062047 | 2,468 | package com.tom.protobuf.handler;
import com.tom.protobuf.UserInfo;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import io.netty.uti... | 28.697674 | 94 | 0.593598 |
3bda15cb0bb78c7cd3d0db49d579f5ce9ed086ca | 792 |
package kr.gaulim.lib.string;
public class Nvl
{
// private static final String TAG = Nvl.class.getSimpleName();
private Nvl() { }
/**
* <p>null을 빈 문자열로 바꾼다.</p>
*
* @param str 문자열
*
* @return null이 제거된 문자열
*/
public static String null2zero(final String str)
{
... | 16.163265 | 64 | 0.496212 |
ba0663beb01f317993364687d84b9e99999788e4 | 481 | package io.github.dunwu.tool.lang;
import io.github.dunwu.tool.date.DateTime;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class DictTest {
@Test
public void dictTest() {
Dict dict = Dict.create()
.set("key1", 1)//int
.set("key2", 1000L)//... | 22.904762 | 57 | 0.611227 |
becfb074f5b4b99541ff999d2cbf5a1d74c51e32 | 684 | package entidad;
public class Cliente {
// atributos
private String nombre;
private String direccion;
// constructores
public Cliente() {
}
public Cliente(String nombre, String direccion) {
super();
this.nombre = nombre;
this.direccion = direccion;
}
// getters y setters
public String getNombr... | 15.2 | 72 | 0.672515 |
1cf947789c1122a12cc8df21588ccd868606b78b | 9,740 | package org.synyx.urlaubsverwaltung.account.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.synyx.urlaubsverwaltung.account.domain.Account;
import org.synyx.urlaubsverwalt... | 46.380952 | 131 | 0.732341 |
9ceae9a4d9fc0be4251000abf53bc924f13f7774 | 3,762 | /*******************************************************************************
* Copyright 2013-2019 Qaprosoft (http://www.qaprosoft.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 ... | 38.387755 | 140 | 0.691919 |
d33eb68c6e2c4132884b4ac6b67e614d04923043 | 5,009 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.constraint.solver.widgets;
// Referenced classes of package android.support.constraint.solver.widgets:
// ConstraintWidget
pub... | 48.163462 | 145 | 0.643242 |
751ef4343a9e278235de800d2bae274d34e9b4c4 | 609 | /*
* 爱组搭 http://aizuda.com 低代码组件化开发平台
* ------------------------------------------
* 受知识产权保护,请勿删除版权申明
*/
package com.aizuda.limiter.exception;
/**
* 分布式锁异常
* <p>
* 尊重知识产权,CV 请保留版权,爱组搭 http://aizuda.com 出品
*
* @author zhongjiahua
* @since 2021-12-04
*/
public class DistributedLockException extends RuntimeExc... | 20.3 | 70 | 0.627258 |
d672521ad0f801bbfac1e8329cf11e1d8327a308 | 1,890 | /**
* Copyright 2010 OpenConcept Systems,Inc. All rights reserved.
*/
package com.ocs.indaba.action;
import com.ocs.indaba.common.Constants;
import com.ocs.indaba.service.JournalVersionService;
import com.ocs.util.StringUtils;
import com.ocs.indaba.vo.JournalVersionView;
import javax.servlet.http.HttpServletRequest... | 38.571429 | 125 | 0.786772 |
79ebed30439cb687d42f2135dc907b014ca57df7 | 6,550 | package com.example.ori.jnidemo.utils;
import android.os.Handler;
import android.util.Log;
import com.example.ori.jnidemo.bean.ActionMessageEvent;
import com.example.ori.jnidemo.bean.MessageEvent;
import com.example.ori.jnidemo.bean.Order;
import com.example.ori.jnidemo.bean.OrderValidate;
import com.example.ori.jnid... | 51.171875 | 169 | 0.706107 |
7f4be97ee7572eb810f3201da3152d5c61c5fad7 | 1,553 | package org.whyisthisnecessary.eps.economy;
import org.bukkit.entity.Player;
public interface Economy {
/**Changes the specified player's balance.
*
* @param playername The player affected
* @param amount The amount changed. Can be negative.
* @return Returns the amount the player has after.
*/
public I... | 29.301887 | 65 | 0.725692 |
6b0e3ba00d932291c4b6a46c4efa0a3af0257b4e | 3,011 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 28.951923 | 97 | 0.709731 |
072eeb1e2f588cd4c9e52042da5288a99f1724b7 | 1,009 | package com.aaa.javatest.fragment_test;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import com.aaa.javatest.R;
import com.aaa.javatest.fragment_test.FirstActivity;
public class SecondActivity extends App... | 28.027778 | 62 | 0.717542 |
e5184fe15581b60807632582575f3eefd897367c | 2,195 | package org.apache.commons.jcs.yajcache.lang.annotation;
/*
* 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 unde... | 41.415094 | 93 | 0.582232 |
026237ce5f0e4ec42450bea222fdcd70d32984d0 | 443 | package com.synaodev.automobile.car;
import java.util.ArrayList;
import java.util.List;
public class Car {
private List<CarPart> parts;
public Car() {
parts = new ArrayList<CarPart>();
parts.add(new Engine(40, 8));
parts.add(new FuelTank(60, 590));
parts.add(new Seats(50, 6));
parts.add(new Wheels(70, "Mi... | 20.136364 | 40 | 0.659142 |
1e2f82d458a5ae211006281ddc59420467328975 | 1,412 | /**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
* <p>
* Copyright (C) 2017 - 2017 Evgenii Lartcev (https://github.com/Evegen55/) and contributors
* <p>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software... | 54.307692 | 120 | 0.765581 |
0778cab7ca2f288b449a18b623f9fbdf037b5686 | 360 | package org.beetl.ext.fn;
import org.beetl.core.Context;
import org.beetl.core.Function;
import org.beetl.core.misc.ClassSearch;
/**
* 获取当前模板信息
* var a = meta.resource();
* @author xiandafu
*
*/
public class ResourceFunction implements Function {
@Override
public Object call(Object[] paras, Context ctx) {
... | 15.652174 | 51 | 0.705556 |
cc0cae2aea63886607dfbd223f576efde38d3d42 | 1,445 | /*
* Copyright 2013 The Sculptor Project Team, including 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/L... | 33.604651 | 95 | 0.764706 |
2390e61a5aabb143efd063e7a24736c118977e7a | 1,120 | /*
* Copyright 2021 EPAM Systems.
*
* 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 t... | 25.454545 | 75 | 0.735714 |
0fddbdd46abcb37b0bc021931f0cae4af82957f3 | 6,794 | package org.firstinspires.ftc.teamcode.autonomous.step;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.No... | 34.48731 | 113 | 0.618634 |
defeac208b6db724d46ab31af578988f3bee3aa9 | 340 | package io.github.uetoyo.patterns.specification;
import io.github.uetoyo.patterns.specification.protocols.Immutable;
/**
* The specification without any component.
*
* @param <T> The type of entity for which the specification is defined.
*/
@Immutable
abstract class NullaryCompositeSpecification<T> implements Spe... | 24.285714 | 77 | 0.782353 |
6f0498bab5bd1b4ecee6a7ce84d6645cf8a134d5 | 1,087 | package org.gradoop.demo.server.pojo.enums;
public class SamplingType {
public enum Type {
PAGE_RANK,
EDGE,
LIMITED_DEGREE_VERTEX,
NON_UNIFORM_VERTEX,
VERTEX_EDGE,
VERTEX_NEIGHBORHOOD,
VERTEX
}
private Type type;
public SamplingType(String typeString) {
switch (typeString) {
... | 22.183673 | 68 | 0.604416 |
74b9166ac8fef67319e80ba04d34e7fbe356b26b | 7,099 | package mekanism.generators.client;
import java.util.Map;
import java.util.function.Function;
import mekanism.client.ClientRegistrationUtil;
import mekanism.client.render.item.ItemLayerWrapper;
import mekanism.generators.client.gui.GuiBioGenerator;
import mekanism.generators.client.gui.GuiGasGenerator;
import mekanism... | 68.92233 | 161 | 0.839977 |
13385885173e5d59d2ffcc63b3fe18d140bbe384 | 2,566 | package com.wontlost.alert;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.notification.Notification;
import com.vaadin.flow.component.orderedlayout.FlexComponent;
import com.vaadin.flow.component.orderedlayout.VerticalLayout... | 41.387097 | 105 | 0.652377 |
5306a4feee142cd0440f68c5ba2bdd8c4e73aeee | 1,205 | package com.charlyghislain.authenticator.domain.domain.secondary;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class ApplicationAuthenticatorAuthorizationHealth implements Serializable {
@NotNull
private String application... | 24.591837 | 82 | 0.712033 |
afbbd269c72d713ecf92695594e1152a9d9e801e | 396 | package pl.plh.app.employment.service;
import org.springframework.data.repository.CrudRepository;
public class PersistServiceValidator {
private PersistServiceValidator() {
}
static <E> void checkIdExists(CrudRepository<E, Long> repo, Long id, Class entityClass) {
if (!repo.existsById(id)) {
... | 26.4 | 93 | 0.699495 |
fa9ecf5a1536042d960223d7ef6374d16170830a | 4,187 | package at.ac.tuwien.ifs.parser;
import at.ac.tuwien.ifs.api.SimilarityApiMock;
import org.apache.lucene.index.Term;
import org.apache.lucene.search.BooleanQuery;
import org.apache.lucene.search.Query;
import org.apache.solr.common.params.ModifiableSolrParams;
import org.apache.solr.search.QParser;
import org.apache.s... | 36.408696 | 127 | 0.679245 |
186d77f82cfd7e96e6561898e09c932f4cbcc165 | 3,753 | package com.changgou.order.controller;
import com.changgou.entity.Result;
import com.changgou.entity.StatusCode;
import com.changgou.order.pojo.ReturnOrder;
import com.changgou.order.service.ReturnOrderService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 29.320313 | 144 | 0.664002 |
dd07a655f07eb7cb99adbb95707bfac17d042843 | 306 | package com.cloud.springcloud.configservice.service;
import com.cloud.springcloud.entities.entity.Adver;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 广告信息 服务类
* </p>
*
* @author wangcheng
* @since 2021-04-19
*/
public interface AdverService extends IService<Adver> {
}
| 18 | 59 | 0.738562 |
7fe136c67afd8aa859da917f3e93f17cfde1cb80 | 2,441 | package io.hefuyi.listener.dataloader;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.MediaStore;
import java.util.ArrayList;
import java.util.List;
import io.hefuyi.listener.mvp.model.Song;
import io.hefuyi.list... | 39.370968 | 159 | 0.597706 |
d75f694a3b78627067449257bc4c891d09217e8b | 2,144 | import java.awt.*;
import java.awt.event.*;
public class StringRequest extends Dialog {
BorderLayout borderLayout1 = new BorderLayout();
Label label1 = new Label();
Panel panel1 = new Panel();
Panel panel2 = new Panel();
Button button1 = new Button();
BorderLayout borderLayout2 = new BorderLayout();
Butt... | 29.777778 | 80 | 0.58722 |
5fb05896952c673306dd9be568f4de16c39bc923 | 629 | package p005cm.aptoide.p006pt.search.view;
import p005cm.aptoide.p006pt.presenter.View.LifecycleEvent;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.search.view.Tc */
/* compiled from: lambda */
public final /* synthetic */ class C4759Tc implements C0132p {
/* renamed from: a */
private final /*... | 29.952381 | 91 | 0.72655 |
6cc3cb2cf83c94f9b234091dcbb31c22b860aec4 | 2,404 | package com.dtstack.chunjun.connector.api;
import com.dtstack.chunjun.connector.pgwal.conf.PGWalConf;
import com.dtstack.chunjun.connector.pgwal.converter.PGWalColumnConverter;
import com.dtstack.chunjun.connector.pgwal.listener.PgWalListener;
import com.dtstack.chunjun.connector.pgwal.util.ChangeLog;
import com.dtsta... | 32.486486 | 85 | 0.72005 |
e4b3ee3a9afb9d120c4fc8ed413d8374cf87816b | 332 | package by.tc.task05.service.validator;
import by.tc.task05.entity.HotelForm;
import by.tc.task05.service.exception.ServiceException;
/**
* Interface that contains methods validating input associated with hotel's
* actions
*/
public interface HotelValidator {
void validateHotelForm(HotelForm form) throws ServiceE... | 25.538462 | 75 | 0.804217 |
2205e75d46f2d230bab1f4f511d5f9c90aeffb89 | 5,649 | /*
* Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
*
* 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 appl... | 29.731579 | 106 | 0.730041 |
8f1885c31aa3b25ba6e608b34e3ad63685700298 | 6,491 | package systemtests;
//@@author chernghann
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.EVENT_ADDRESS_A_DESC;
import static seedu.address.logic.commands.CommandTestUtil.EVENT_ADDRESS_B_DESC;
import static seedu.address.logic... | 52.346774 | 117 | 0.758589 |
b010a11e8c09b3a52ff7ec6cfacaee2d38d9a633 | 884 | package com.kolyadko_polovtseva.book_maze.service;
import com.kolyadko_polovtseva.book_maze.dto.SearchQueryDto;
import com.kolyadko_polovtseva.book_maze.entity.Book;
import com.kolyadko_polovtseva.book_maze.entity.Category;
import com.kolyadko_polovtseva.book_maze.entity.LibraryBook;
import java.util.List;
import jav... | 24.555556 | 75 | 0.771493 |
9b05cdf85efa15670542775c2ba4f9770d605c1b | 10,371 | package intextbooks;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Calendar;
import java.util.List;
import org.apache.commons.io.FileUtils;
import intextbooks.Configuration;
import intextbooks.SystemLogger;
import intextbooks.content.... | 37.305755 | 271 | 0.766175 |
36fe773d63e9376476cf07387e0cde933129739a | 3,730 | /*
* Copyright 2016 Ratha Long
*
* 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 i... | 35.188679 | 110 | 0.637265 |
3452b1b1ba6c835dbb18501dd04dd9faf49ac600 | 18,800 | package org.codelogger.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import org.codelogger.utils.exceptions.DateException;
import org.codelogger.utils.lang.DatePeriod;
/**
* A useful tools to handle da... | 29.467085 | 113 | 0.686436 |
eaa91438aab8f8e0c7b2d468f13f5e28e7fc9fb7 | 4,537 | /*
* Copyright © 2021 ProStore
*
* 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... | 40.508929 | 95 | 0.635222 |
293d0abc9030844c092d69bfd1ca3d8f443102b0 | 4,086 | /*******************************************************************************
* Copyright 2012 University of Southern California
*
* 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
*
... | 32.951613 | 82 | 0.738864 |
a4e26cbc00257a4fe96a1c196808a42c2947670c | 481 | package vkbootstrap;
import java.util.ArrayList;
import java.util.List;
// For advanced device queue setup
public class VkbCustomQueueDescription {
public VkbCustomQueueDescription(int index, int count, List<Float> priorities) {
this.index = index; this.count = count; this.priorities.addAll(priorities);
... | 30.0625 | 84 | 0.713098 |
896ae3ef27ba003b1da54d65abbeae99b532f150 | 479 | package org.prvn.lab.functionalinterfaces;
import org.prvn.lab.data.Person;
import org.prvn.lab.data.PersonDatabase;
import java.util.List;
import java.util.function.Supplier;
public class WorkingWithSupplier {
//Supplier returns something
static Supplier<List<Person>> personSupplier = ()-> PersonDatabase.ge... | 26.611111 | 87 | 0.73904 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.