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 |
|---|---|---|---|---|---|
31f14d6f00ed29961ecbd2c0607864bfafa22647 | 2,086 | package com.sdw.soft.cocoim.cli;
import com.google.common.base.Splitter;
import com.sdw.soft.cocoim.protocol.ChatRequestPacket;
import com.sdw.soft.cocoim.protocol.LoginRequestPacket;
import com.sdw.soft.cocoim.protocol.Packet;
import com.sdw.soft.cocoim.utils.LoginHelper;
import io.netty.channel.Channel;
import org.s... | 27.813333 | 87 | 0.549856 |
4b14ad9946b9b3d6a79c8880de51f03dd4bdc21e | 853 | package task_c;
import java.util.Random;
public class Monk implements Comparable {
private Integer energy;
private String monastery;
public Monk() {
Random r = new Random();
energy = r.nextInt(100);
monastery = (r.nextInt(2) == 0) ? "Guan-un" : "Guan-yan";
}
@Override
... | 22.447368 | 65 | 0.52755 |
851f44a43c30b2a3cb876e16079182410cdf171a | 3,389 | package ca.bc.gov.open.jag.efilingdiligenclientstarter;
import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenAuthService;
import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenProperties;
import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenService;
import ca.bc.gov.open.jag.efilingdiligenclient.api.Docu... | 37.241758 | 94 | 0.689584 |
2eb6313046e5be817681a3ead49114259a46cb7b | 826 | package top.chenqwwq.leetcode.archive.$20200418.common;
import lombok.extern.slf4j.Slf4j;
/**
* @author CheNbXxx
* @description
* @email chenbxxx@gmail.con
* @date 2019/1/11 14:32
*/
@Slf4j
public class LeetCode746 {
public static void main(String[] args) {
log.info(new Solution().minCostClimbingStai... | 25.8125 | 107 | 0.558111 |
7bad1a52fb3325489f10ac6b35a7022b0549478d | 135 | /**
* Created by Ramesh Ponnada on 5/20/15.
*/
public class HazelcastTest {
public void setup(){
// HazelcastIns
}
}
| 13.5 | 40 | 0.592593 |
43b423719aee1e064ee64c15e7adcceb57c40726 | 147 | package controllers.getters;
public class GetterIssue {
public Integer issue;
public Integer task;
public GetterCommand[] commands;
} | 18.375 | 36 | 0.741497 |
d6920b24a176e8042f8995b99de7be34c80c65e4 | 2,418 | package dev.arthomnix.spaghettitrees.mixin;
import net.minecraft.block.BlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.intprovider.IntProvider;
import net.minecraft.world.TestableWorld;
import net.minecraft.world.gen.feature.TreeFeature;
import net.minecraft.world.gen.feature.TreeFe... | 52.565217 | 284 | 0.720844 |
53872a1bdcf3c762875d06f215d0100dd861f9f0 | 2,229 | package net.spizzer.aoc2019.helpers.maze.keys;
import net.spizzer.aoc2019.helpers.maze.GraphNode;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class KeyMazeNode implements GraphNode<KeyMazeNode> {
private final List<Character> positions;
private final Set<... | 27.8625 | 104 | 0.62629 |
7fd61fbe1c59379d5520b4f2c93f4d30e8f8f0b3 | 2,388 | /*
*
* Copyright 2015 Jonathan Shook
*
* 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... | 35.641791 | 109 | 0.681323 |
60d703d39939399001d3e68af0aa74ece09340d7 | 695 | package p005cm.aptoide.p006pt.comments;
import p005cm.aptoide.p006pt.dataprovider.model.p009v7.ListComments;
import p005cm.aptoide.p006pt.dataprovider.model.p009v7.Review;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.comments.a */
/* compiled from: lambda */
public final /* synthetic */ class C2649a imp... | 28.958333 | 81 | 0.703597 |
c6c62932556714c7a289cec336d5f0d1e0e19de0 | 705 | package es.ujaen.rlc00008.gnbwallet.data.source.net;
/**
* Created by Ricardo Lechuga on 22/1/16.
*/
public class Meta {
public static final int CODE_OK = 0;
private int code = -1;
private String errorDetail;
private String errorMessage;
public Meta() {
}
///// GETTERS AND SETTERS /////
public int getCod... | 16.785714 | 52 | 0.703546 |
6cb90325b031835e480ab07284d44441f9191099 | 5,213 | /**
* FreightClassType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.fedex.rate.stub;
public class FreightClassType implements java.io.Serializable {
private java.lang.String _value_;
private static java.util.HashMap... | 50.61165 | 111 | 0.735661 |
1171e05b5784bbc2279757cad94bdfcf73b4721e | 403 | package one.innovation.digital.classes.person;
import one.innovation.digital.classes.user.SuperUser;
public class UserApp {
public static void main(String[] args) {
final var quackMan = new SuperUser("QuackMan", "1234");
quackMan.getLogin();
// quackMan.getPassword(); // Error: protected ... | 26.866667 | 66 | 0.672457 |
e71ddb6508681929fffc4741bcc3c4c05ad016f4 | 1,884 | package org.statemach.db.sql.postgres;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
import org.statemach.db.jdbc.Vendor;
import org.statemach.db.schema.Column... | 25.808219 | 104 | 0.679406 |
37b6af06bfa980250065c9111a76dc669c392302 | 2,018 | package ru.job4j.task;
import java.util.Arrays;
/**
* Class Класс для реализации сортировок.
* @author agavrikov
* @since 07.07.2017
* @version 1
*/
public class Sort {
/**
* Метод для сортировки массива слиянием. Решил реализовать и его.
*
* @param array - массив, который нужно отсортироват... | 29.246377 | 83 | 0.565411 |
efc42c1caf83c50f13014639e627bdd81829efd7 | 517 | package fixtures.intrange;
import com.uber.rave.annotation.Validated;
import fixtures.SampleFactory;
import androidx.annotation.IntRange;
@Validated(factory = SampleFactory.class)
public class IntRangeTestClass {
@IntRange(from = -5, to = 10)
public int getInt1() {
return 1;
}
@IntRange(from =... | 19.884615 | 42 | 0.622824 |
5e574f4ba4b9a76ef9b507ed16a875417769742f | 17,754 | /*
* Copyright 2014-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 39.192053 | 119 | 0.580038 |
44a87261b8cd67a74fb4d873e0a2a941e7dca832 | 4,046 | package com.mercury.chat.server.protocol.group;
import static com.mercury.chat.common.constant.Constant.userInfo;
import static com.mercury.chat.common.util.Channels.get;
import static com.mercury.chat.common.util.Channels.has;
import io.netty.channel.Channel;
import io.netty.channel.ChannelId;
import io.netty.... | 28.293706 | 98 | 0.669797 |
423d01152a059d7182640b0b84c47a31fed9abd4 | 632 | package com.sillykid.app.homepage.chartercustom.chartercommon;
import com.common.cklibrary.common.BasePresenter;
import com.common.cklibrary.common.BaseView;
/**
* Created by ruitu on 2016/9/24.
*/
public interface CharterDetailsContract {
interface Presenter extends BasePresenter {
/**
* 获得... | 17.555556 | 62 | 0.606013 |
6cf876bb75364331fcb3f86d6cb678ce12cd292f | 4,630 | /*
* Copyright (C) 2009-2018 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 44.519231 | 167 | 0.678834 |
1e363ffc95acbd2d7bcbc2abf1da9a5c11c2a00f | 1,213 | /**
* This class holds an enumeration of all command words known
* to the program.
*
* @author David J. Barnes and Michael Kölling.
* @version 2011.07.31
*/
public class CommandWords
{
// a constant array that holds all valid command words
private static final String validCommands[] = {
"add", "se... | 24.26 | 67 | 0.555647 |
7f38f8c5412a42bfe664eb3fc57f5b8377abaab1 | 3,120 |
package org.javacc.cpp;
import org.javacc.parser.CodeGeneratorSettings;
import org.javacc.parser.TokenManagerCodeGenerator;
import org.javacc.utils.OutputFileGenerator;
public class CodeGenerator implements org.javacc.parser.CodeGenerator {
public static final boolean IS_DEBUG = true;
/**
* The name of th... | 35.454545 | 150 | 0.708654 |
3dd9d351c5f878f29f8bf4de44517a75dde6a467 | 5,100 | /*
* 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 ... | 31.097561 | 114 | 0.649412 |
6b52fb3adc77529c88ccf0b5a862a89d71e7d4b7 | 2,368 | /*--------------------------------------------------------------------------
* Copyright 2007 Taro L. Saito
*
* 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.apach... | 21.527273 | 94 | 0.630068 |
ed66b69275403594412e1e80098fac9a284c3e6b | 1,036 | package nl.knokko.races.event.parameter;
public class EntityParameter extends EventParameter {
static final EventParameter[] INFO = {
new NumberParameter("CurrentSpeed"),
new NumberParameter("DimensionID"),
new NumberParameter("RemainingFireTicks"),
new NumberParameter("CurrentHearts"),
new NumberParamete... | 25.9 | 53 | 0.745174 |
0b08f681d86d81fc2e07fb1286e597004a83d9ed | 701 | package com.roocon.thread.ta4;
public class Main {
private int value;
private MyLock2 lock = new MyLock2();
public int next() {
lock.lock();
try {
Thread.sleep(300);
return value++;
} catch (InterruptedException e) {
throw new RuntimeException();
} finally {
lock.unlock();
... | 14.306122 | 42 | 0.544936 |
44e27553426fb9516af88e696fb614cc1c07ca47 | 236 | package com.baidu.ueditor;
import java.io.File;
public interface CloudStorageInteface {
/**
* @param file 待上传的文件
* @param key 上传到云存储的key
* @return 返回对象的访问路径url,若为null则表示失败
* */
public String upload(File file,String key);
}
| 18.153846 | 45 | 0.720339 |
eec1455beac8bcb59ec49fb5469e5d3a4f75e963 | 5,262 | /*
* Copyright (c) 2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.test.asserter.refinedschema;
import com.evolveum.midpoint.schema.processor.ResourceObjectTypeDefinition;... | 45.756522 | 198 | 0.764158 |
f7676681ad70169ab639af0f3c34d0df676dc266 | 1,348 | /*
* Copyright 2017-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 24.962963 | 78 | 0.624629 |
4d46888434631be649a052258e596c322c9f3948 | 2,599 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.web.action.abstractlist;
import static org.junit.Assert.assertEquals;
import gov.nih.nci.ca... | 40.609375 | 109 | 0.734898 |
efa10ea13e8d8be3147d9add22cde3c0a01fb60e | 19,092 | /*
* Copyright (c) 2010-2015 Pivotal 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. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 39.52795 | 173 | 0.695841 |
82efd863ea76db994ba2e7be816d216cc743622b | 8,626 | /*
* FastReport Cloud
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do n... | 26.872274 | 111 | 0.717946 |
ed351dfacf76a528dbc0aa2319a72ca0e01a579a | 1,220 | package com.xiaohuan.multithread;
/**
* <p>Title: Test1</p >
* <p>Description: </p >
* <p>Company: http://www.taiyuejinfu.com</p >
* <p>Project: spring</p >
*
* @author: xiaohuan
* @Date: 2020/5/19 5:34 下午
* @Version: 1.0
*/
import java.util.LinkedList;
public class Test1 {
//最大的数量
private static final I... | 19.677419 | 99 | 0.60082 |
d50a7ea6869294e8428a5fc7b96976b003a9af17 | 552 | package oop.inheritance;
public class Lebewesen {
// Attribute
protected String name;
protected int alter;
protected int gewicht;
// Standardkonstruktor
public Lebewesen() {
name = "unbekannt";
alter = 0;
gewicht = 0;
}
// Paremter-Konstruktor
public Lebewe... | 18.4 | 59 | 0.583333 |
0634e0d3547bb26bdc2d114c8196bcb965cbd9d5 | 1,081 | /*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2015
*/
package com.ibm.streamsx.topology.test;
import com.ibm.streamsx.topology.function.UnaryOperator;
/**
* A functional operator to delay a stream's first tuple;
* subsequent tuples are not delayed.
*
* @param <T>
*/
public class InitialDelay... | 24.568182 | 60 | 0.592044 |
04486a4e3e8917ab3f889fb6db88cc98e1e41a47 | 589 | package com.davidmedenjak.redditsample.features.home;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import com.davidmedenjak.redditsample.R;
class AccountViewHolder extends RecyclerView.ViewHolder {
TextView name;
TextView linkKarma;
TextView ... | 28.047619 | 65 | 0.752122 |
da09c0b2dacc702cad1ff66a1d90a920cbd6ae4a | 12,414 | package com.google.common.primitives;
import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.common.base.Converter;
import com.google.common.base.Preconditions;
import java.io.Serializable;
import java.util.... | 29.913253 | 134 | 0.525616 |
3f24085f09f981c8d8e308d41879461a477f4024 | 806 | package unit.dev.andersoncontreira.trainingddd.infrastructure.persistence.hibernate.repositories;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import unit.AbstractUnitTestCase;
class CategoryRepositoryTest extends AbstractUnitTestCase {
@BeforeEach
void setUp() {
// ... | 22.388889 | 118 | 0.689826 |
427690bb3803512b06f1144eb53e22ccd8ba0140 | 2,086 | package spring.boot._2.test.by.howtodoinjava.reactive.webflux;
import de.flapdoodle.embed.mongo.MongodExecutable;
import de.flapdoodle.embed.mongo.MongodProcess;
import de.flapdoodle.embed.mongo.MongodStarter;
import de.flapdoodle.embed.mongo.config.IMongodConfig;
import de.flapdoodle.embed.mongo.config.MongodConfigBu... | 35.355932 | 92 | 0.784276 |
37fdf853d3a2fa1d9a7132bff36d347f3c014524 | 5,366 | package com.github.suosi.commons.spider.utils;
import com.google.common.net.InternetDomainName;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.URL;
public class DomainUtils... | 35.071895 | 107 | 0.524599 |
f8f56d75554a388205d9c7af60072ad8821ae8a9 | 703 | package org.phoenix.leetcode.challenges;
import org.junit.jupiter.api.Test;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class Problem30_WordSearchIITest {
private final Problem30_WordSearchII test = new Problem30_WordSearchII();
@Test
void findWord... | 27.038462 | 77 | 0.543385 |
6b4c90181534e400c319f319a3993a86ba6580cc | 4,713 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 39.940678 | 121 | 0.670274 |
465bd3a6814135e266030f207a406501df133aac | 213 | @ParametersAreNonnullByDefault
@MethodsReturnNonnullByDefault
package net.silentchaos512.gear.api.stats;
import net.minecraft.MethodsReturnNonnullByDefault;
import javax.annotation.ParametersAreNonnullByDefault; | 30.428571 | 54 | 0.896714 |
8ec032751323e5d9df1a82104a27019c99fb48ae | 7,650 | package seedu.souschef.storage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.function.Supplier;
import java.util.logging.Logger;
import com.google.common.eventbus.Subscribe;
import seedu.souschef.commons.core.Compon... | 41.129032 | 112 | 0.730327 |
b56919152a759439e0168977a3c16120237189be | 11,106 | /*
* 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 ... | 40.98155 | 167 | 0.753827 |
d4ebc221b31962ddd26a7d4a54454ed617f9efb9 | 1,836 | package org.edmcouncil.spec.fibo.view.controller;
import java.util.List;
import org.edmcouncil.spec.fibo.weasel.model.module.FiboModule;
import org.edmcouncil.spec.fibo.weasel.ontology.DataManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org... | 31.655172 | 84 | 0.757625 |
7274fc952d0eb3a5df57146cd616d6b95bba70fe | 8,713 | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import util.DBConnection;
import java.sql.*;
public final class studentView_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final J... | 38.724444 | 138 | 0.46356 |
17ff8a6414be083cecd761decdb64149d441a8d5 | 499 | package adapter;
import com.google.inject.Inject;
import dto.Example;
import service.TestService;
import java.util.concurrent.Future;
public class TestAdapter {
@Inject
private TestService testService;
public String get() {
return testService.getString();
}
public Futu... | 19.192308 | 45 | 0.657315 |
8a6976fc2238e7a8b58509ffccda626863fc8285 | 495 | public static boolean copy(String source, String dest) {
int bytes;
byte array[] = new byte[BUFFER_LEN];
try {
InputStream is = new FileInputStream(source);
OutputStream os = new FileOutputStream(dest);
while ((bytes = is.read(array, 0, BUFFER_LEN)) > 0) o... | 33 | 90 | 0.523232 |
82ff7972d47ac79c8c477d17fa94663b8fd9b4b9 | 910 | package app.example.store.jwt;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class JwtCanceledAccessTokenServiceImpl implements JwtCanceledAccessTokenService {
@Autowired
JwtCanceledAccessTokenRepository r... | 22.75 | 89 | 0.721978 |
bd183cccb36f389a52080162531dcb59891b0d69 | 1,493 | package fr.kayrnt.tindplayer.fragment;
import android.os.Bundle;
import com.google.android.gms.maps.GoogleMap;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import fr.kayrnt.tindplayer.R;
import fr.kayrnt.tindplayer.utils.AdvSupportMapFragment;
/**
* Created by Kayrnt on 30/0... | 31.104167 | 102 | 0.665104 |
2d21727fc10942ea4b3a58b55b1cb1c6bc4603e8 | 379 | package zmaster587.libVulpes.inventory.modules;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
public interface IButtonInventory {
/**
* Called on the client when a user presses a button
* @param buttonId id of the button pressed
*/
@OnlyIn(value=Dist.CLIENT)
... | 23.6875 | 54 | 0.783641 |
793ba017402ce109ae1b1b73b0e71928c2b86f56 | 16,622 | package com.pungwe.cms.core.theme.services;
import com.pungwe.cms.core.annotations.stereotypes.Theme;
import com.pungwe.cms.core.annotations.system.ModuleDependency;
import com.pungwe.cms.core.module.services.ModuleManagementService;
import com.pungwe.cms.core.system.element.templates.PageElement;
import com.pungwe.cm... | 41.869018 | 199 | 0.612381 |
90fc453a9ae67e21778be91c0f3dd27dad1998ee | 1,886 | package com.xiaobudian.huastools.data;
import android.util.Log;
import org.jsoup.Jsoup;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by 小不点 on 2016/6/20.
*/
public class GetNetData {
private static fi... | 26.194444 | 121 | 0.61824 |
745d608846e4913224d424df6617aa5dc8f8628d | 1,912 | package org.mifos.connector.gsma.transfer;
import io.zeebe.client.ZeebeClient;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation... | 32.40678 | 85 | 0.708159 |
6cdbecd96ad5f1e094bf66b3e6e87b62aa2de93f | 5,338 | /*
* Copyright (c) 2021, MegaEase
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 46.017241 | 112 | 0.709442 |
b7dcd1b8dac0d46c5ce332ed93a6df77ad78ebe5 | 669 | package com.applause.assignment.testermatching.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* Entity object representing Tester_Device database table
*/
@Entity
@Table(name = "TESTER_DEVICE")
p... | 20.90625 | 69 | 0.753363 |
537df11996b26b990acdb3044e1150ecd2047f9d | 854 | package com.krux.kafka.offsetReporter;
import java.util.List;
import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;
public class ConsumerOffsetReporter {
p... | 26.6875 | 99 | 0.667447 |
10299e8f92ea4bdc92aa2094b441ecc33a5469bf | 754 | package com.qa.framework.library.log4j;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.helpers.PatternParser;
/**
* Created by kcgw001 on 2016/2/22.
*/
public class Log4jExPatternLayout extends PatternLayout {
/**
* Instantiates a new Log 4 j ex pattern layout.
*
* @param pattern ... | 22.176471 | 65 | 0.659151 |
afc083b9d32b3475aeb6752733fd2490f7ef7a6d | 743 | package com.telRun.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class LoginTrelloTest extends TestBase{
// @BeforeMethod
// public void ensurePreconditions() throws InterruptedException {
// Thread.sleep(6000);
// if(app.h... | 24.766667 | 73 | 0.637954 |
04c88a9e12437fc0ea20d3005b97d65431f36c5a | 2,371 | // copied this class over from lab03 nothing special here
package pr1;
import java.awt.Color;
import java.awt.Graphics;
/**
* @author Ivan Capistran
*
*/
public class Ball {
//ball
private double x;
private double y;
private double radius;
// Part II
private double velocityX;
private dou... | 18.379845 | 93 | 0.595108 |
457d099d0750332f6afff4d6ab4d3cbb42f914a3 | 490 | package com.woophee.stream.transform;
import com.woophee.common.SourceData;
import org.apache.flink.api.common.functions.ReduceFunction;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Reduce implements ReduceFunction<SourceData> {
private final static Logger logger = LoggerFactory.getLogge... | 27.222222 | 79 | 0.755102 |
aa04eaea3604efcf4021504beacdabbc2c940108 | 4,728 | package org.aksw.simba.bigrdfbench.util;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.eclipse.rdf4j.query.BindingSet;
import org.eclipse.rdf4j.query.MalformedQueryException;
import org.eclipse.rdf4j.query.QueryEvaluationException;
import org.eclipse.rdf4j.query.QueryLanguage;
impo... | 39.731092 | 151 | 0.692047 |
a003703ec7f317298d1d186413065ed97dcc877c | 130 | package br.com.bytebank.banco.teste;
public class Teste {
public static void main(String[] args) {
System.out.println();
}
}
| 16.25 | 41 | 0.707692 |
0a87372ba88a74892b49ffa374414715482045cf | 2,912 | package tests;
import com.github.chengyuxing.common.tuple.Pair;
import com.github.chengyuxing.sql.Args;
import com.github.chengyuxing.sql.BakiDao;
import com.github.chengyuxing.sql.SQLFileManager;
import com.github.chengyuxing.sql.utils.SqlUtil;
import org.junit.Test;
import org.nutz.dao.impl.NutDao;
import org.nutz.i... | 30.978723 | 124 | 0.652129 |
9ec8bea327ca13acdbe8ace9d8484bdd301c41ff | 409 | package com.example.diploma.persistence.dto.front;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE... | 18.590909 | 50 | 0.801956 |
a5c188194d05ccba16e38ba0fe621704e68ae134 | 85 | module jp.dip.oyasirazu.xmlviewer {
requires java.xml;
requires args4j;
}
| 10.625 | 35 | 0.682353 |
e6c810a71e65711ff795906c4f216b7409800cc7 | 307 | // Copyright 2000-2021 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 org.jetbrains.android.compiler.artifact;
public enum AndroidArtifactSigningMode {
DEBUG, DEBUG_WITH_CUSTOM_CERTIFICATE, RELEASE_UNSIGNED, RELEASE_SIGNED
}
| 43.857143 | 140 | 0.814332 |
c0640dcc0d59b6af9e8c98e611a7deee00bd2a4c | 801 | package cn.glogs.news.entity;
public class NewsType {
private int typeId;
private String typeName;
private String Remark;
public int getTypeId() {
return typeId;
}
public void setTypeId(int typeId) {
this.typeId = typeId;
}
public String getTypeName() {
return... | 19.536585 | 50 | 0.52809 |
071208841bc4e3127a1996a919fbe562f9516ad0 | 1,632 | package starter.math;
import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import net.serenitybdd.junit.runners.SerenityRunner;
import net.thucydides.core.annotations.Narrative;
import net.thucydides.core.annotations.Steps;
import org.junit.Test;
import org.junit.runner.RunWi... | 36.266667 | 73 | 0.766544 |
aea01cb7933b2faa77bcb1df187818c13234b044 | 1,623 | package io.kaif.service;
import java.util.List;
import java.util.Optional;
import io.kaif.model.account.Authorization;
import io.kaif.model.clientapp.ClientApp;
import io.kaif.model.clientapp.ClientAppUser;
import io.kaif.model.clientapp.ClientAppUserAccessToken;
import io.kaif.oauth.OauthAccessTokenDto;
import io.ka... | 29.509091 | 78 | 0.797289 |
be2e1dbd1e661ca0a4b9fbf73dbdf5ea6ed36749 | 18,318 | package org.apache.ofbiz.accounting.payment.service.base;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.apache.ofbiz.common.ExecuteFindService.In;
import org.apache.ofbiz.common.ExecuteFindService.Out;
import org.apache.ofbiz.common.ExecuteFindService;
import java.util.A... | 30.890388 | 77 | 0.714106 |
2a953fda2f5aa9c45f05bd8d5adf9b4a8f5de3ae | 3,078 | /**
* Copyright 2016 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.408163 | 93 | 0.712476 |
59fb3a4dac33a50b5dc66602f1e1fbcdb62166fd | 840 | package com.ampota.user.resource.admin;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annota... | 33.6 | 77 | 0.789286 |
66d78c9ced89cf51d17f022218e10289df92e6b7 | 468 | package se.natusoft.osgi.aps.util;
import java.io.InputStream;
/**
* This because getClass().getResourceAsStream(path) fails in Groovy 3.x!!
*
* Thereby I decided to create this resource loading tool in Java and add to it as needed.
*
* Works fine when this is called from Groovy code!
*/
public class APSResourc... | 26 | 90 | 0.730769 |
3dcd3b129114781b65e290cd0a32201a447e786b | 1,331 | /*
* CentrallyHeld.java
*
* 21.01.2008
*
* (c) by O.Lieshoff
*
*/
package corent.db.xs;
/**
* Dieses Interface muß von Klassen implementiert werden, die zentralisiert gehalten
* werden und über eine globale Identifikationsnummer verfügen.
*
* @author
* O.Lieshoff
... | 27.163265 | 97 | 0.642374 |
fc06da82ebc0679951df364be839a20da3b1b1fb | 274 | /**
* UserView.java
* in package: * org.net9.minipie.server.logic
* by Mini-Pie Project
*/
package org.net9.minipie.server.logic;
/**
* @author Seastar
*
*/
public class UserView {
/**
* @param args
*/
public static void main(String[] args) {
}
}
| 11.913043 | 50 | 0.60219 |
d666936df3d9130deb8bcd29d9d1c92cdee6ff44 | 3,959 | package com.mrbysco.candyworld.config;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.common.ForgeConfigSpec.BooleanValue;
import net.minecraftforge.common.ForgeConfigSpec.IntValue;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.config.ModConfig;
impor... | 35.348214 | 127 | 0.75802 |
6fbc7304ce8bc3ce137f5fad380dc7910e27d94c | 3,317 | /* Copyright 2010, 2017, Oracle and/or its affiliates. All rights reserved. */
package oracle.demo.view;
/*-------------------------------------------------------------------------------------------
* This code is distributed under the MIT License (MIT)
*
* Copyright (c) 2012 Duncan Mills
*--------------------... | 42.525641 | 96 | 0.640941 |
4fe17ff8da508de2a4e133ff305907e79cbfb2b3 | 845 | package leetcode.oo.dp;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public final class DecodingWaysTestCase {
private DecodingWays alg;
/**
* Init.
*/
@Before
public void init() {
this.alg = new DecodingWays();
}
@Test
public void test() {
... | 19.651163 | 45 | 0.474556 |
948f662225c1553891a23dfad732c0b139770a73 | 2,506 | /*
* Copyright 2015 Realm Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 34.805556 | 146 | 0.702314 |
0a29e2199767ceade52a05dbc96de94544ffb29c | 778 | package james.gustavo.exemplopostconstructpredestroy.dao;
import james.gustavo.exemplopostconstructpredestroy.model.Client;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;... | 21.027027 | 65 | 0.736504 |
a538ce82fd821b6eaaf23ec7fe5a70697369a5c2 | 3,026 | /* Copyright 2019 Telstra Open Source
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 36.902439 | 108 | 0.705882 |
24eeed19c076ce0338a806d729d72523e6237dc2 | 274 | package com.dumas.pedestal.framework.springboot.constant;
/**
* Web模块常量
*
* @author az.ye
* @version V1.0
* @since 2021-06-03 14:39
*/
public class WebConstant {
/**
* 用户基本信息请求头
*/
public static final String REQ_HEADER_USER_INFO = "x-user-info";
}
| 16.117647 | 68 | 0.645985 |
ffd0c61ea7f600a796d27b5e085a4887d744e037 | 4,180 | /*
* 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 eapli.base.smm.application;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
impor... | 37.657658 | 125 | 0.543301 |
f7a98ff06febbf2136fd141f915ef964dab66e8e | 1,719 | package com.gbourquet.yaph.serveur.password.handler;
import java.util.HashMap;
import java.util.List;
import net.customware.gwt.dispatch.server.ExecutionContext;
import net.customware.gwt.dispatch.shared.ActionException;
import com.gbourquet.yaph.serveur.handler.AbstractHandler;
import com.gbourquet.yaph.se... | 37.369565 | 143 | 0.79523 |
0901aa2e0da4122db25ae0b1964476e2aa2424ea | 1,692 | /**
* Copyright 2016 William Van Woensel
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 ... | 31.333333 | 85 | 0.767139 |
ffa2a1cbe7cfd8be034061735b4b5b7b034d0f89 | 2,386 | package com.github.vanroy.springboot.autoconfigure.data.jest;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Jest Elasticsearch properties.
* @author Julien Roy
*/
@ConfigurationProperties(prefix = "spring.data.jest")
public class ElasticsearchJestProperties {
private String ur... | 18.936508 | 90 | 0.733864 |
81b15d89d1fe9229d95890b3d32a687bd87058a3 | 821 | package study.huhao.demo.application.usecases;
import org.springframework.stereotype.Component;
import study.huhao.demo.application.concepts.UseCase;
import study.huhao.demo.domain.contexts.blogcontext.blog.Blog;
import study.huhao.demo.domain.contexts.blogcontext.blog.BlogRepository;
import study.huhao.demo.domain.co... | 34.208333 | 102 | 0.795371 |
8bf7ade4a536a29fac71b7b2d295df708d6873b2 | 2,410 | /*
** Author(s): Miguel Calejo
** Contact: interprolog@declarativa.com, http://www.declarativa.com
** Copyright (C) Declarativa, Portugal, 2000-2005
** Use and distribution, without any warranties, under the terms of the
** GNU Library General Public License, readable in http://www.fsf.org/copyleft/lgpl.html
*/
pac... | 40.847458 | 135 | 0.744398 |
4d2c919a99970a4104efb05d02f2ba9ce34c15a5 | 1,006 | package com.github.oliverschen.olirpc.cluster;
import com.github.oliverschen.olirpc.exception.OliException;
import com.github.oliverschen.olirpc.protocol.OliUrl;
import org.springframework.util.StringUtils;
import static com.github.oliverschen.olirpc.constant.Constants.*;
/**
* @author ck
*/
public class OliUrlClu... | 28.742857 | 86 | 0.646123 |
56b0013f50d15fa1cec1f1474e07963fd5aecd9f | 253 | package com.open.lcp.core.framework.loader;
import com.open.lcp.core.framework.api.service.dao.entity.ApiMaxThreadsEntity;
public interface ApiMaxThreadsTimerLoader extends TimerLoader {
public ApiMaxThreadsEntity getLcpApiMaxThreads(String api);
}
| 28.111111 | 78 | 0.841897 |
519774ce6d24e5ba0eed07a9d61defa9530fa8cf | 890 | package uk.gov.ida.matchingserviceadapter.mappers;
import stubidp.saml.domain.assertions.AuthnContext;
import uk.gov.ida.matchingserviceadapter.rest.matchingservice.LevelOfAssuranceDto;
public class AuthnContextToLevelOfAssuranceDtoMapper {
private AuthnContextToLevelOfAssuranceDtoMapper() {}
public static ... | 35.6 | 134 | 0.677528 |
54d6148b7c033d63c762981a38bbc97a5b5241e8 | 3,671 | package org.cipres.treebase.domain.matrix;
import javax.persistence.AttributeOverride;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.p... | 25.493056 | 86 | 0.715336 |
941983a1e2b1fb5785c44efd1f199a77fbef328a | 626 | package com.jinhaoxun.dubbo.module.user.vo.response;
import com.jinhaoxun.dubbo.vo.action.ActionPageableResponse;
import com.jinhaoxun.dubbo.pojo.user.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
... | 23.185185 | 72 | 0.769968 |
c7031dc15b956c923e274fc8783801bbc1326cb0 | 426 | package io.github.scave.lsp4a.model.completion;
/**
* The class define the formats of text insertion
* @author Scave
*/
public class InsertTextFormat {
/**
* The plain text will be inserted
*/
public static final int PLAINTEXT = 1;
/**
* The snippet will be inserted
* In fact, the sn... | 23.666667 | 76 | 0.659624 |
13406c58716e716c64060f0510beb89ad3abd77a | 501 | package game.block;
import util.BmpRes;
import graphics.Canvas;
public class AirBlock extends AirType{
private static final long serialVersionUID=1844677L;
static BmpRes bmp=new BmpRes("Block/AirBlock");
public BmpRes getBmp(){return bmp;}
public void draw(Canvas cv){}
public void onDestroy(int x,int y){}
public... | 29.470588 | 52 | 0.758483 |
de9552761e9bb796cd227a5df4dfa2f5f233da71 | 2,136 | package com.github.zella.rxprocess2.common;
import io.reactivex.Observable;
import io.reactivex.Single;
import io.reactivex.functions.BiConsumer;
import io.reactivex.functions.Function;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.u... | 32.861538 | 123 | 0.64279 |
b52186b3388495c243e43a0f3211ad4147525d87 | 1,641 | package com.islarf6546.gmail.myapplication;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.widget.Toast;
/**
* Created by YamiVegeta on 15/11/2015.
* Refere... | 26.047619 | 105 | 0.658135 |
7f8521e2ba524001f6ae28811d1e1834dfe86d33 | 1,763 | package com.deadsimplegui;
import com.deadsimplegui.util.Gui;
import com.deadsimplegui.util.resource.AnnotationScanner;
import com.deadsimplegui.util.resource.ExternalResourceLogic;
import com.deadsimplegui.util.resource.InternalResourceLogic;
import com.deadsimplegui.util.resource.ResourceLogic;
import com.deadsimple... | 27.984127 | 98 | 0.754963 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.