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 |
|---|---|---|---|---|---|
f0ccd79e3db4918b74503a10fb2db3f146119a8f | 1,886 | package com.anthonycaliendo.instagramphotoviewer.model.dao;
import android.os.Looper;
import android.test.AndroidTestCase;
import com.anthonycaliendo.instagramphotoviewer.model.Photo;
import com.loopj.android.http.AsyncHttpClient;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurre... | 43.860465 | 148 | 0.697773 |
0ac0354fbba65b31b888ccedc8b7f719a9668b49 | 6,085 | package com.spacetimecat.build.java;
import org.apache.maven.model.*;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Properties;
import java.util.function.Consumer;
import java.util.stream.Collectors;
public fina... | 28.97619 | 115 | 0.61479 |
41d4b1e2e03cbdd4d81c80398e211589d774d8b0 | 1,447 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.deps.models;
import com.aliyun.tea.*;
public class QueryCellRequest extends TeaModel {
@NameInMap("auth_token")
public String authToken;
@NameInMap("tenant")
public String tenant;
// 目标工作空间名称
@NameIn... | 24.525424 | 89 | 0.662751 |
87a9d6398edd490844b25ca418008155f7e65a0e | 576 | package juice.exceptions;
/**
* @author Ricky Fung
*/
public class SerializationException extends NestedRuntimeException {
/**
* Constructs a new {@link SerializationException} instance.
*
* @param msg
*/
public SerializationException(String msg) {
super(msg);
}
/**
... | 21.333333 | 68 | 0.631944 |
318825c531db991822b0cac1efaf32ecb3a058ea | 16,054 | /*
* Copyright 2018-2021, ranke (213539@qq.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... | 27.584192 | 129 | 0.544537 |
3eb480aa2efd737b9df2a5ae0391705e2bc5856e | 151 | package custom;
public class AClass {
public AClass returnA() {}
public void paramA(AClass a) {}
@AAnnotation
public void annoA() {}
} | 18.875 | 35 | 0.649007 |
1f41f6d7406f6a556f686f30b4c54d3d7a19335c | 4,427 | /*
* 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 ... | 37.201681 | 117 | 0.687825 |
f112f507f9045334205d5b18657629f0a233dbe5 | 2,746 | package ghost.framework.web.socket.plugin.server;
import ghost.framework.context.module.IModule;
import ghost.framework.web.context.servlet.ServletContextHeader;
import javax.servlet.http.HttpSession;
import javax.websocket.Extension;
import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRe... | 31.930233 | 111 | 0.633285 |
df7a3b1b91bf751cdbb8895d5fbb458ae9a83f89 | 2,602 | package epi.graph;
import java.util.*;
//Clone a connected directed cyclic graph
public class CloneDirectedGraph {
private static class GNode{
char value;
List<GNode> adj = new LinkedList<GNode>();
public GNode(char value){
this.value = value;
}
}
static Set... | 23.87156 | 84 | 0.476556 |
1c76f14be98df2ba2b450b7beaf8ad185cebd736 | 1,830 | package mcjty.immcraft.blocks.furnace;
import mcjty.immcraft.api.handles.DefaultInterfaceHandle;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.tileentity.TileEnt... | 33.272727 | 128 | 0.621311 |
26a1f1addb32dff7413ad5c01753ea0f5bf58032 | 2,399 | package com.udacity.jdnd.course3.critter.controller;
import com.udacity.jdnd.course3.critter.dto.PetDTO;
import com.udacity.jdnd.course3.critter.entity.Customer;
import com.udacity.jdnd.course3.critter.entity.Pet;
import com.udacity.jdnd.course3.critter.service.PetService;
import com.udacity.jdnd.course3.critter.servi... | 29.256098 | 77 | 0.680283 |
5565537535bf3945eef41c562387011c8bcb43a7 | 12,700 | /*
* This file is part of Latch, licensed under the MIT License.
*
* Copyright (c) 2016-2018 IchorPowered <https://github.com/IchorPowered>
* Copyright (c) Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Sof... | 48.288973 | 143 | 0.674646 |
14d327de661b1264d82158a15975f10745c06bac | 3,369 | package flyway.oskari;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json... | 45.527027 | 264 | 0.72336 |
0927ad30eaa966b08fc9be4e0a1a7abebc7b2e33 | 1,785 | package xyz.neopan.example.graphql;
import graphql.execution.instrumentation.Instrumentation;
import graphql.execution.instrumentation.dataloader.DataLoaderDispatcherInstrumentation;
import graphql.execution.instrumentation.dataloader.DataLoaderDispatcherInstrumentationOptions;
import lombok.extern.slf4j.Slf4j;
import... | 33.679245 | 95 | 0.770308 |
b1edf901574ea1b6b8c8f05d12c16c3166241aed | 549 | package leetcode.p860;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class Solution860Test {
@Test
void lemonadeChange() {
Solution860 underTest = new Solution860();
Assertions.assertTrue(underTest.lemonadeChange(new int[]{5, 5, 5, 10, 20}));
Assertions.a... | 34.3125 | 86 | 0.688525 |
292ebb8094e122ccc467f74d156f997a13ca0c0b | 1,639 | /*
* Copyright © 2017 CHANGLEI. All rights reserved.
*/
package com.baidaojuhe.library.baidaolibrary.adapter.viewholder;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.AppCompatTextView;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import com.baidaojuhe.library.baidaol... | 33.44898 | 94 | 0.748017 |
e38ce6b4cf6a4b487c33b5084e7d19d817b3252e | 3,356 | /*
* (C) Copyright IBM Corp. 2019,2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.ta.sdk.core.report;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.*;
public class IssueReport {
private JsonObject issueJO;
priva... | 30.234234 | 124 | 0.662992 |
69182f03098013491f849c70a265fb0e30d89ed8 | 14,180 | /*
* Copyright 2014 Tedroid developers
*
* 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.900232 | 119 | 0.581453 |
f91346a00fbe512c00f664879cb1de4c54624b26 | 2,868 | //package us.codecraft.jobhunter.pipeline;
//
//import java.io.ByteArrayOutputStream;
//import java.io.File;
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.io.InputStream;
//import java.net.MalformedURLException;
//import java.net.URL;
//import java.net.URLConnection;
//
//import javax.a... | 32.590909 | 80 | 0.542538 |
f00f1c22ec1950f00769efad1469eb92c66c7fd8 | 1,949 | package dev.blufantasyonline.embercore.physics;
import com.fasterxml.jackson.annotation.JsonIgnore;
import dev.blufantasyonline.embercore.config.serialization.SerializationInfo;
import dev.blufantasyonline.embercore.reflection.annotations.OnEnable;
import org.bukkit.Location;
import java.util.HashMap;
import java.uti... | 32.483333 | 89 | 0.664956 |
6f1429af7d423cf828dfacb729814899051bc35a | 623 | package tterrag.stoneLamp.common.block;
public class BlockInfo
{
public static final String LAMP_UNLOC_NAME = "stoneLamp";
public static final String EMPTYLAMP_UNLOC_NAME = "emptyLamp";
public static final String COLOREDLAMP_UNLOC_NAME = "coloredLamp";
public static final String EMPTYCOLOREDLAMP_UNLOC_NAME = "emp... | 38.9375 | 83 | 0.807384 |
a793d68f56fb2df7380a2db6e08400510337640a | 1,673 | package com.lanshiqin.algorithm.leetcode.a167;
/**
* 167. 两数之和 II - 输入有序数组
* <p>
* 给你一个下标从 1 开始的整数数组 numbers ,该数组已按 非递减顺序排列 ,请你从数组中找出满足相加之和等于目标数 target 的两个数。如果设这两个数分别是 numbers[index1] 和 numbers[index2] ,则 1 <= index1 < index2 <= numbers.length 。
* <p>
* 以长度为 2 的整数数组 [index1, index2] 的形式返回这两个整数的下标 index1 和 index2。... | 26.140625 | 165 | 0.545129 |
8b21233c8c4e99b8d47622fd9966130d571aefb3 | 397 | package com.vmanolache.httpserver.api;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Created by Vlad Manolache on 2018-09-22.
*/
public class PathResolver {
private final Path documentRoot;
public PathResolver(String documentRoot) {
this.documentRoot = Paths.get(documentRoot);
}
public Path ... | 18.045455 | 48 | 0.743073 |
d0faa6b931843c0d7c694457c93bc3e9d0721d34 | 1,988 | package me.gca.talismancreator.gui;
import com.cryptomorin.xseries.XMaterial;
import me.gca.talismancreator.TalismanCreator;
import me.gca.talismancreator.events.Listeners;
import me.gca.talismancreator.gui.util.SpigotGUIComponents;
import me.gca.talismancreator.managers.Talisman;
import org.bukkit.Bukkit;
import org.... | 40.571429 | 182 | 0.690644 |
5489a75dc5faca69c2ac15f8b79897cdda41adb1 | 6,119 | package org.jaya.android;
import android.app.Activity;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.util.Pair;
import java.io.Buffered... | 35.783626 | 108 | 0.539958 |
2220b67ee7f80017e2bdf8a3bcb44e0160f4f938 | 7,053 | /*
* 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 not ... | 41.005814 | 100 | 0.766908 |
58d74d1846baf8ee912888e43f57bb4b68cfd0b2 | 1,254 | package com.google.android.gms.internal.ads;
import android.os.RemoteException;
import android.view.View;
import com.google.android.gms.dynamic.ObjectWrapper;
import java.util.HashMap;
/* compiled from: com.google.android.gms:play-services-ads-lite@@19.4.0 */
final class zzwl extends zzwn<zzael> {
private final /... | 34.833333 | 120 | 0.682616 |
f5c8968c4b086396c4f9bdca7f242d43ed6ae0c9 | 4,561 | package ilyag.ah81;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
import j... | 33.050725 | 116 | 0.539794 |
e4d65a8f5259b0825f95118f77ae29b5c13ae815 | 2,744 | package com.ihgoo.allinone.support;
import org.json.JSONObject;
import java.util.HashSet;
import java.util.Set;
/**
* Created by ihgoo on 2015/6/16.
*/
public class StringUtil {
public static String quoteString(Object object, String left, String right) {
return left.concat(object.toString()).concat(ri... | 26.901961 | 98 | 0.52223 |
08958346b90b733a95c73d29e3b38f64095c37fe | 2,749 | package com.codeborne.selenide.impl;
import com.codeborne.selenide.Driver;
import org.apache.commons.io.IOUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.By.ByCssSelector;
import org.openqa.selenium.SearchContext;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
i... | 33.938272 | 130 | 0.733721 |
c33353a61e8af656558d755b1cb31637892abad1 | 567 | package com.alexanderhirschfeld.singleton;
import static org.junit.Assert.assertTrue;
import org.junit.jupiter.api.Test;
public class EnumSingletonTest {
@Test
public void testSingleton() {
EnumSingleton instance1 = EnumSingleton.Instance.getInstance();
assertTrue(instance1 instanceof EnumSingleton);
EnumSi... | 25.772727 | 65 | 0.783069 |
c23513d100e5120bc72cacb24b86300764721943 | 665 | package com.mrbysco.liquidblocks.handler;
import net.minecraft.world.World;
import net.minecraftforge.event.TickEvent;
import net.minecraftforge.event.TickEvent.Phase;
import net.minecraftforge.event.TickEvent.WorldTickEvent;
import net.minecraftforge.eventbus.api.EventPriority;
import net.minecraftforge.eventbus.api.... | 28.913043 | 80 | 0.778947 |
a77e9ab0c593ef160a764b283f8c673592855967 | 5,155 | package tencent2018;
import com.sun.org.apache.bcel.internal.generic.IF_ACMPEQ;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Main3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = ... | 34.139073 | 102 | 0.321242 |
2b2aac5226230fb9e2a974e514f39ff638154464 | 3,371 | package main.me.thedome.aesencryptor.utils;
import main.me.thedome.aesencryptor.classes.DEBUG_MODE;
import main.me.thedome.aesencryptor.classes.OPERATION_MODE;
import main.me.thedome.aesencryptor.main.AESEncryptor;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
/**
* AES_Encryptor/PA... | 23.248276 | 108 | 0.650845 |
81a28e8ef3f240ff4b72544118e9bbd62cdd0a35 | 398 | package cz.krtinec.telka;
public class CannotLoadProgrammeException extends RuntimeException {
public CannotLoadProgrammeException(String detailMessage,
Throwable throwable) {
super(detailMessage, throwable);
// TODO Auto-generated constructor stub
}
public CannotLoadProgrammeException(String detailMessage... | 22.111111 | 68 | 0.79397 |
50f7f5948ee4eeef14f4604f221c6ba2f340abd5 | 275 | package com.jiaxingrong.requstov.wx;
import lombok.Data;
/**
* @Author:luchang
* @Date: 2019/12/28 15:54
* @Version 1.0
*/
@Data
public class GoodsBean {
private Integer number;
private String picUrl;
private Integer id;
private String goodsName;
}
| 13.095238 | 36 | 0.676364 |
786a522c754d95ddb045da21c302968ae7a516e3 | 1,956 | package com.github.maxopoly.WurstCivTools.effect;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDeathEvent;
import org.bukkit.event.entity.PlayerDeathE... | 27.942857 | 95 | 0.745399 |
07f5a2720ac077058ba7af8328d2ac887948b208 | 1,670 | /**
* Copyright 2018-2019 The Jaeger 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 applicable law or agre... | 32.745098 | 100 | 0.707186 |
b61fb55fc05b09666f2a79522adb8f766502e4ba | 2,512 | package yanagishima.module;
import com.google.inject.servlet.ServletModule;
import yanagishima.servlet.*;
public class PrestoServletModule extends ServletModule {
@Override
protected void configureServlets() {
bind(PrestoServlet.class);
bind(PrestoAsyncServlet.class);
bind(QueryServlet.class);
bind(KillServ... | 38.646154 | 66 | 0.774283 |
8e22801626cdbf4df087afbae96ad88af11856fe | 1,005 | package music.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import music.model.Vinyl;
import music.repository.VinylRepository;
@Service
public class VinylService {
@Autowired
VinylReposito... | 20.9375 | 62 | 0.728358 |
3a2f93875bf6efe2fd85b083e33d1c39c2de2a37 | 369 | package com.lemon.web.request;
import com.lemon.web.base.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
/**
* PayRequest
*
* @author sjp
* @date 2019/5/23
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class PayRequest extends BaseR... | 17.571429 | 46 | 0.766938 |
14461cf354f308cfa730f7e04b3c2bf3d4e63064 | 1,158 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.iothub.v2018_04_01.implementation;
import java.u... | 25.733333 | 95 | 0.690846 |
57682166c9922fd02244a6df733250b41ca49df2 | 2,764 | /*******************************************************************************
* Copyright (c)2014 Prometheus Consulting
*
* 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://w... | 29.094737 | 111 | 0.624457 |
9f089541a10c90da2f5d5a41a9a4634975ff2765 | 1,984 | package com.mz.jarboot;
import com.mz.jarboot.api.AgentService;
import com.mz.jarboot.api.JarbootFactory;
import com.mz.jarboot.api.cmd.spi.CommandProcessor;
import com.mz.jarboot.api.service.ServiceManager;
import com.mz.jarboot.api.service.SettingService;
import org.springframework.boot.autoconfigure.condition.Condi... | 38.901961 | 118 | 0.775706 |
1423eb13681081e15be599d396411f7c1a433e02 | 40,885 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.largeFilesEditor.editor;
import com.google.common.collect.EvictingQueue;
import com.intellij.CommonBundle;
import com.intellij.codeInsight.highlighting.Highl... | 37.168182 | 140 | 0.721194 |
3109bfe8352585f92077be6a25c1876df3e04f3c | 1,528 | package xyz.mieszko.speed;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
/**
* @author Mieszko Kycermann
*/
public class Speed extends JavaPlugin {
@Override
public void onEnable() {
this.getCom... | 27.285714 | 98 | 0.543194 |
0f2f3c129a465d29035f74bc91e7e93956276f51 | 603 | package com.javapatterns.observerawt.mouse4;
import java.awt.Frame;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ConcreteSubject extends Frame
{
public ConcreteSubject()
{
}
public static void main(String[] argv)
{
ConcreteSubject s = new ConcreteSubject();
... | 18.84375 | 44 | 0.655058 |
2a547b633cbfdad9e01cd9db4ad7d6997e1f5292 | 606 | package io.cattle.platform.configitem.context.data.metadata.version2;
import io.cattle.platform.configitem.context.data.metadata.common.ServiceMetaData;
import io.cattle.platform.configitem.context.data.metadata.common.StackMetaData;
import java.util.List;
public class StackMetaDataVersion2 extends StackMetaData {
... | 26.347826 | 82 | 0.757426 |
492b66c596e1a6208573e7b917e7eeacd899ea96 | 729 | package io.lpgph.ddd.book.converter;
import io.lpgph.ddd.common.BaseEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.WritingConverter;
/**
* TODO 妥协 spring data jdbc 枚举默认使用枚举名称 即 枚举转换字符串 如果需要自定义枚举值 枚举值类型必须为字符串
*
* <p>https:... | 30.375 | 74 | 0.791495 |
9830097075f3af2ec6e0822d66e5d5198ba8784a | 46 | package com.loc.framework.autoconfigure.lock;
| 23 | 45 | 0.847826 |
a500deab5f938d306d2e0acdc536727dee9af986 | 1,912 | package br.edu.fumep.entity;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
/**
* Created by arabasso on 09/05/2017.
*/
public class GrupoEstudoTests {
private GrupoEstudo gru... | 26.191781 | 84 | 0.669456 |
3a43b341d6a5037f57ff443251617571371a4cae | 1,472 | package view;
import java.util.*;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import parsing.Interpreter;
public class ViewHistory extends ViewInterpretable implements Observer{
private VBox vb = new VBox();
private final ResourceBundle cssResources = ResourceBundle.getBundle("CSSClasses");
publ... | 23.741935 | 98 | 0.70856 |
d6815b215369c98cdb5c5f31d9424ac17c9c67c1 | 199 | package edu.miu.eshop.product.dto;
import jdk.jfr.Timespan;
import lombok.*;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class BooleanDto {
private boolean bool;
}
| 14.214286 | 34 | 0.773869 |
eac3abfc1552d4e52da89ccff0ec1e113ae89eea | 335 | package mainpackage;
public class ConcreteBlockedFactory extends ContactFactory {
@Override
public Contact createContact(Name name, Address address, String email, Number number) {
return new BlockContact(name, address, email, number); //To change body of generated methods, choose Tools | Templat... | 33.5 | 128 | 0.728358 |
54a06e75f282025c2fa179b64a4d501ee08291b2 | 1,594 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nl.uva.cs.lobcder.auth;
import lombok.Data;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlRootElement;
import lombok.Data;
... | 23.101449 | 69 | 0.552698 |
bfb3a629fdb526a550a10c5683fa0d0178082258 | 1,130 | package simulator.cs.anycast.events;
import simulator.cs.anycast.core.Configuration;
import simulator.cs.anycast.core.Simulator;
import simulator.cs.anycast.components.Connection;
import simulator.cs.anycast.utils.SimulatorThread;
/**
* Class defines the methods any class that want to process events
* need to exten... | 25.111111 | 86 | 0.715929 |
97a87faae1a5290e4ebb0dcbc30269a867da93fb | 1,712 | package nl.guuslieben.circle.components;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.html.H3;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.littemplate.LitTe... | 32.301887 | 130 | 0.695678 |
fe2f26f29bfdb2e1354b82f400777d3d6813a7d5 | 5,154 | /*
* Copyright (C) 2018 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... | 38.177778 | 101 | 0.600893 |
69d519a783fc84b298f52e2e823160bf8fa2ea41 | 6,953 | package jsortie.quicksort.governor.expansionist;
import jsortie.RangeSorter;
import jsortie.earlyexitdetector.RangeSortEarlyExitDetector;
import jsortie.earlyexitdetector.TwoWayInsertionEarlyExitDetector;
import jsortie.heapsort.topdown.TwoAtATimeHeapsort;
import jsortie.janitors.exchanging.BranchAvoidingAlternatingCo... | 34.939698 | 90 | 0.653243 |
6ee7d355293bdabbf2f4c631b14865dea65498fe | 2,219 | package org.jesperancinha.jtd.jee.app1.domain;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.persistence.EntityManager;
import javax.transaction.HeuristicMixedException;
import javax.transaction.HeuristicRollbackException;
import javax.tr... | 31.253521 | 143 | 0.644885 |
d91684cfed3ad357e609f75268f13e8bea2b5f21 | 2,930 | /* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.components.text.processors;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.... | 38.051948 | 154 | 0.730375 |
a520a522927ac83b6cb481dd77ff4d19ebab45e9 | 626 | package com.wedian.site.modules.weixin.web;
import com.wedian.site.common.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Cr... | 28.454545 | 73 | 0.776358 |
28c1efc49a89242313ad55552bf247ac86c8ded7 | 1,379 | /*
* Copyright 2018-2020 The Code Department.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 28.729167 | 98 | 0.711385 |
6431376252b02816ea3771e2bb5e926e57478307 | 394 | package com.cjy.mall.ware.dao;
import com.cjy.mall.ware.entity.WareOrderTaskDetailEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 库存工作单
*
* @author chenjy01
* @email chenjunyu102@126.com
* @date 2020-08-20 15:30:40
*/
@Mapper
public interface W... | 21.888889 | 87 | 0.77665 |
6d6272ddcb2e7c7a1967328ebdf50d46496b37bb | 1,545 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 34.333333 | 81 | 0.649191 |
eb238ac80d9a0026777bb75877c7c102ab6af0cf | 2,844 | package com.compuware.ispw.restapi;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* A Java bean that holds any possible context path related parameters
* Note: this method is using reflection t... | 21.709924 | 102 | 0.701125 |
cd287c6752dccd18e71c0d468b5ed63c7e5129bc | 1,955 | import java.util.HashMap;
import java.util.Map;
/**
* Given a string, find the length of the longest substring without repeating characters.
*
* Example 1:
*
* Input: "abcabcbb"
* Output: 3
* Explanation: The answer is "abc", with the length of 3.
* Example 2:
*
* Input: "bbbbb"
* Output: 1
* Explanation: ... | 29.621212 | 116 | 0.595908 |
716fb381f208d0f51da3480d9159e64248fdb16a | 562 | package com.bug1312.cloudyporkchops.common.item;
import com.bug1312.cloudyporkchops.util.enums.RenderDimension;
public interface IItem3D {
public default RenderDimension handRendering() { return RenderDimension.THREE; }
public default RenderDimension inventoryRendering() { return RenderDimension.TWO; }
public defa... | 46.833333 | 85 | 0.823843 |
d5577285021e5d51d5a235673926f654fa4ffd5e | 375 | package jp.ac.ems.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@Controller
public class LoginController {
@GetMapping(path="login")
String login() {
return "login";
}
@GetMa... | 18.75 | 59 | 0.754667 |
6b51f9e394bea59bf02d0d5a1b5862eaebdeb337 | 1,174 | package me.retrodaredevil.solarthing.graphql.packets;
import me.retrodaredevil.solarthing.packets.Packet;
import me.retrodaredevil.solarthing.packets.collection.FragmentedPacketGroup;
import java.util.ArrayList;
import java.util.List;
public final class PacketUtil {
private PacketUtil(){ throw new UnsupportedOperat... | 33.542857 | 149 | 0.739353 |
4f97b8e657d184c12f02b645c289fe23d1d1b7ff | 6,683 | /**
* 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... | 24.479853 | 98 | 0.637438 |
f35044b27c49a922f939c0df15c663c3025727bc | 165 | package de.adito.irradiate;
/**
* @author j.boesl, 29.12.2015
*/
public interface IDetector<T>
{
void hit(T pValue);
void failure(Throwable pThrowable);
}
| 11.785714 | 37 | 0.678788 |
21d22c5fe8ca6561752d5a43cf91bc76c6b0e036 | 711 | package leetCode;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
public class LeetCode628Test {
@Test
public void maximumProduct() {
LeetCode628 l = new LeetCode628();
assertEquals(l.maximumProduct(new int[]{1, 2, 3}), 6);
assertEquals(l.maximumProduct(new int[]{1,... | 33.857143 | 74 | 0.630098 |
5a0c2e1fa8a3607d5937125d283dc10d6a158db6 | 299 | package Game;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
public class WinningScreen {
public void paint(Graphics g, int Winner) {
g.setColor(Color.WHITE);
g.setFont(new Font("TimesRoman", Font.BOLD, 20));
g.drawString("Player "+ Winner + " Wins",110,120);
}
}
| 19.933333 | 52 | 0.705686 |
2051826e66d7ce94a43d9938f778499b55d91846 | 580 | package au.com.origin.snapshots.docs;
import au.com.origin.snapshots.Expect;
import au.com.origin.snapshots.annotations.UseSnapshotConfig;
import au.com.origin.snapshots.junit5.SnapshotExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ExtendWith(SnapshotExtension.class)... | 32.222222 | 62 | 0.817241 |
5bc32ad7742dd79e2186f7e6dc270f33ce88c99c | 724 | import java.util.ArrayList;
import java.util.Arrays;
import java.util.Locale;
import java.util.Scanner;
public class Index_of_Letters {
public static void main(String[] args) {
Locale.setDefault(Locale.ROOT);
Scanner scanner = new Scanner(System.in);
ArrayList<Character> letterArray = new ... | 23.354839 | 61 | 0.553867 |
6459c9f81bfaaa04aceabd579d9f64280484c5b1 | 450 | package com.ronja.crm.ronjaserver.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.List;
public class StatusValidator implements ConstraintValidator<Status, String> {
private final List<String> statuses = List.of("ACTIVE", "INACTIVE");
... | 28.125 | 77 | 0.797778 |
f11b675a33a8cce0516adeec6c27dfcb5408ed61 | 5,572 | package org.xmlet.xsdparser;
import org.junit.Assert;
import org.junit.Test;
import org.xmlet.xsdparser.core.XsdParser;
import org.xmlet.xsdparser.xsdelements.*;
import java.net.URL;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
public class IssuesTest {
private static fi... | 38.965035 | 177 | 0.703877 |
260ec8bf8c6af5a7b00c04fe003f8267fd669101 | 306 | package it.mcella.jcr.oak.upgrade.repository.firstversion.node.root;
import it.mcella.jcr.oak.upgrade.repository.JcrNode;
public class OakRootNodeFactory implements JcrRootNodeFactory {
@Override
public JcrRootNode createFrom(JcrNode jcrNode) {
return new OakRootNode(jcrNode);
}
}
| 23.538462 | 68 | 0.767974 |
de5017b87f0c4d553179a170c3e8c9706638e383 | 462 | package pulse.util;
/**
* A listener used by {@code PropertyHolder}s to track changes with the
* associated {@code Propert}ies.
*/
public interface PropertyHolderListener {
/**
* This event is triggered by any {@code PropertyHolder}, the properties of
* which have been changed.
*
* @param e... | 24.315789 | 79 | 0.679654 |
ddd3f877fc2799b894de5f48fa6dc85fbc69aa34 | 4,558 | package com.cda.jee.crypto.dao.impl;
import com.cda.jee.crypto.dao.CryptoCurrencyDao;
import com.cda.jee.crypto.dao.DaoConnection;
import com.cda.jee.crypto.dao.exception.DaoException;
import com.cda.jee.crypto.model.CryptoCurrency;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
import java.uti... | 32.791367 | 188 | 0.550461 |
ee2ea5108bcd222fad2a7c34af47ebcb5dc11a86 | 165 | package ug.or.nda.dao;
import ug.or.nda.entities.PaymentNotification;
public interface PaymentNotificationDAOI extends GenericDAOI<PaymentNotification, Long> {
}
| 20.625 | 89 | 0.824242 |
3f1bb93ca5b35be1a88780e235ea7fb33b5c35c9 | 22,801 | /*
* ButtonInternalImplTest.java
*
* Copyright (c) 2018 Button, Inc. (https://usebutton.com)
*
* 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 li... | 46.723361 | 128 | 0.727687 |
4a0e3b02626c762153c048af1e93e275307d058e | 280 | package org.zhuonima.exchange.accounts.requests;
import lombok.Data;
import org.zhuonima.exchange.common.models.Currency;
import java.math.BigDecimal;
@Data
public class DepositRequest {
private Long userId;
private Currency currency;
private BigDecimal balance;
}
| 20 | 52 | 0.785714 |
33d20c9e01b24086311eb8718329cc1ed9dd817c | 1,680 | package com.riaancornelius.flux.ui.issue;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.riaancornelius.flux.jira.domain.autho... | 25.074627 | 90 | 0.656548 |
74da04fcfc0a67bc8f284c3b2c998a408e926c2b | 6,179 | package cz.metacentrum.perun.wui.consolidator.pages;
import com.google.gwt.core.client.*;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;
import... | 31.687179 | 188 | 0.725198 |
a1666b6529095c892cf10de5ec58c5e9e1da03b2 | 2,715 | package com.brickgit.motoracergdx.actors;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.utils.Timer;
import com.brickgit.motoracergdx.utils.Assets;
import java.util.Iterator;
/**
* Created by Daniel Lin on 24/04/2018.
*/
public class Racer extends... | 25.138889 | 70 | 0.507182 |
9f94b29c4693dc03c0bd1c963c3f3be208682f63 | 674 | package com.lyhace.sfnotice.service;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class DoingCommHystrixFactory implements FallbackFactory<DoingCommOpenfeignService> {
@Override
public DoingCommOpenfeignServic... | 25.923077 | 92 | 0.652819 |
80f37630ae96f96afe996d2c61185d7114a871ee | 88 | package com.question.answer.misc;
public enum AREA {
AREA1,
AREA2,
AREA3
}
| 11 | 33 | 0.647727 |
1bb388ba63932fc7db0316b3209e5bf38614ff22 | 642 | package net.kemitix.slushy.app.trello.webhook;
import org.apache.camel.builder.RouteBuilder;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
@ApplicationScoped
public class RegisterWebhookRoute
extends RouteBuilder {
private final RegisterWebhook registerWebhook;
@Inj... | 22.928571 | 66 | 0.702492 |
49d02b00c5acef58f71eca8b2fb6f8d9269df044 | 801 | package com.communote.server.core.exception.mapper;
import com.communote.server.core.exception.ExceptionMapper;
import com.communote.server.core.exception.Status;
import com.communote.server.core.tag.TagNotFoundException;
/**
* Mapper to create a useful error message when a tag does not exist
*
* @author... | 30.807692 | 94 | 0.726592 |
85ee735ca4f7e0d6a8da1bcfde39e1ddb0dc07eb | 666 | package de.fraunhofer.iem.swan.features.code.type;
import de.fraunhofer.iem.swan.data.Method;
/**
* Implicit methods (e.g. methods from bytecode for access of private fields)
*
* @author Lisa Nguyen Quang Do
*
*/
public class IsImplicitMethod extends WeightedFeature implements IFeature {
@Override
public Ty... | 20.181818 | 77 | 0.696697 |
e1a2ad3e5d150e5e197b1d54c77d19e1d8a224b9 | 3,921 | /*
* Copyright (c) 2018 David Sargent
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must reta... | 51.592105 | 161 | 0.765876 |
4c41688daad3a826bc172f3ba94d34e9e30ebfe5 | 4,618 | package com.gaochunjiang.tools;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
public class BizUtil {
/**
* 判断是否为 null、""、"null"
*/
public static boolean isNull(Object obj){
boolean result = false;
try{
if(obj instanceof String){
String str = (String)... | 19.403361 | 86 | 0.555652 |
e7bbbc4d9f3270a8c1c038bb02861d42343c864f | 931 | package com.mygdx.game.Dungeon.DungeonTiles;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.GridPoint2;
import com.mygdx.game.Dungeon.Dungeon;
import com.mygdx.game.Dungeon.DungeonTile;
public class EmptyDungeonTile extends DungeonTile {
public EmptyDungeonTile(GridPoint2 pos, Du... | 19.395833 | 62 | 0.653061 |
9011ebd7e20caaf0baf1bf893d64cd93cdb905ca | 4,168 | /* 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... | 37.214286 | 136 | 0.760797 |
ffb8a0ae671d8f4d41682d49d304ff4224495648 | 1,903 | /*
* Copyright 2017 Redsaz <redsaz@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 l... | 29.734375 | 82 | 0.662112 |
afbe1ed9a000b61815a851a6e51eac51cbddfedb | 1,037 | package com.github.dormesica.mapcontroller;
import android.os.Parcel;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.github.dormesica.mapcontroller.graphics.Color;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class ColorAndroid... | 30.5 | 66 | 0.689489 |
864895362bdc3a5c2b016dd96afebe4c0d4f55c9 | 2,582 | package com.example.demo.defaultapp.security.jwt;
import com.example.demo.defaultapp.exceptions.JwtAuthenticationException;
import com.example.demo.defaultapp.properties.JwtProperties;
import io.jsonwebtoken.*;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.UsernamePassw... | 39.723077 | 113 | 0.717661 |
1cec7be424e8ae368701621591c98a2c43708337 | 1,136 | package io.wttech.markuply.engine.component.method.resolver.context;
import io.wttech.markuply.engine.component.MarkuplyComponentContext;
import io.wttech.markuply.engine.component.method.resolver.MethodArgumentResolver;
import io.wttech.markuply.engine.component.method.resolver.MethodArgumentResolverFactory;
import i... | 31.555556 | 89 | 0.800176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.