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 |
|---|---|---|---|---|---|
81d90e707ebd82439e722f132b02502e81506917 | 212 | /**
* @author Aleksey Terzi
*
*/
package com.aleksey.castlegates.database;
public class LinkInfo {
public int link_id;
public Integer gearblock1_id;
public Integer gearblock2_id;
public byte[] blocks;
}
| 15.142857 | 41 | 0.740566 |
6180d90c2dae33ae1babce23627cb6e88f54c2f0 | 2,179 | package it.unibz.inf.ontop.answering.resultset.impl;
import com.google.common.collect.ImmutableList;
import it.unibz.inf.ontop.answering.resultset.OntopBinding;
import it.unibz.inf.ontop.answering.resultset.OntopBindingSet;
import it.unibz.inf.ontop.model.term.RDFConstant;
import it.unibz.inf.ontop.utils.ImmutableColl... | 28.298701 | 77 | 0.67508 |
d1865b1c5748a39b8f2b086fbb14e50400d1d7aa | 4,615 | package edu.umich.mlib;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
* This program demonstrates how to resize an image.
*
* @author www.codejava.net
*
*/
public class ImageResizer {
/**
* Resizes an image to... | 39.444444 | 107 | 0.672806 |
b924e4f954cc805c4ead432d6342667ddfb7c63d | 503 | class Logging{
//Final Static private obj
private static final Logging SingleInstance = new Logging();
/*Private constructor*/
private Logging(){
System.out.println("Private Constructor");
}
//Accesor Method for private obj
public static Logging getSingleInstance(){
return SingleInstance;
}
public void l... | 19.346154 | 61 | 0.723658 |
f0898ee8ff3756651b0f9e574c74ba53675c9ffb | 379 | package com.linln.modules.system.service;
import java.lang.annotation.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Documented//说明该注解将被包含在javadoc中
@Target({ElementType.METHOD, ElementType.TYPE})//目标下的方法和类型
@Retention(RUNTIME)// 注解会在class字节码文件中存在,在运行时可以通过反射获取到
@Inherited//说明子类可以继承父类中的该注解 //
publi... | 27.071429 | 59 | 0.783641 |
4e18024da7acaad96e1e9219a4e8c1b5a02c79e2 | 11,781 | /**
* This package provides classes to facilitate the handling of opengl textures and glsl shaders in Processing.
* @author Andres Colubri
* @version 0.6.5
*
* Copyright (c) 2008 Andres Colubri
*
* This source is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... | 29.233251 | 124 | 0.579577 |
84b2ad6ef0043964aed0eb0f1771151e4ecba9f2 | 999 | package seedu.moolah.testutil;
import seedu.moolah.model.MooLah;
import seedu.moolah.model.event.Event;
import seedu.moolah.model.expense.Expense;
/**
* A utility class to help with building MooLah objects.
* Example usage: <br>
* {@code MooLah ab = new MooLahBuilder().withExpense("John", "Doe").build();}
*/
... | 22.704545 | 82 | 0.628629 |
84f96cba65c977e41233a94464b703abfa99a6fa | 1,517 | package com.hbm.items.machine;
import java.util.List;
import com.hbm.items.ModItems;
import com.hbm.main.MainRegistry;
import net.minecraft.client.util.ITooltipFlag;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public class ItemStamp extends Item {
public ... | 31.604167 | 104 | 0.738299 |
fd1379060c3f0e08d5419e4c52d6ec9cba537485 | 7,961 | package iudx.gis.server.cache;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Mockito.mock;
import io.vertx.core.Vertx;
import io.vertx.core.cli.annotations.Description;
import io.vertx.core.json.JsonObject;
import io.v... | 30.619231 | 95 | 0.612863 |
2d7f1338f7249e8bbb7db450eb4f50c312791e98 | 8,574 | package xyz.redtorch.utils;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.ParseException;
import java.util.Date;
import org.bson.Document;
import org.joda.time.DateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | 37.605263 | 121 | 0.649988 |
c6b71ad0f2f3fa79e3e9e7381612024fe9dd0b0d | 393 | package shuaicj.hello.configuration.case12.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import shuaicj.hello.configuration.case12.bean.B;
/**
* Override B.
*
* @author shuaicj 2019/10/12
*/
@Configuration
public class OverrideB {
@Be... | 20.684211 | 60 | 0.73028 |
40594f57da921b3a3d3ad6edc02718b94b3caef6 | 40,401 | /*
* Copyright 2004 Outerthought bvba and Schaubroeck nv
*
* 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... | 50.818868 | 253 | 0.632583 |
8a844175a60240c9ea2389de99d53f28f00aac03 | 2,328 | package com.obdobion.billiardsFX.model.drills.drdave;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.obdobion.billiardsFX.model.drills.AbstractDrillCommand;
/**
* <p>
* UpdateScoreFromInt class.
* </p>
*
* @author Chris DeGreef fedupforone@gmail.com
*/
public class UpdateScor... | 24.765957 | 88 | 0.568729 |
beec1ce4d235a5ca95731f41c85d8b936b2a9662 | 3,168 | /*
* Copyright 2018-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 34.434783 | 100 | 0.731692 |
fdd9465e1aa7573f77eeaca0df54b237771a4be2 | 6,260 | package com.donfyy.crowds.viewpager;
import android.app.Fragment;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.don... | 34.20765 | 113 | 0.672843 |
a39636b8418a1e0456c777cc2c5ca032c07c23ea | 1,039 | package com.hsuforum.easportalm.exception;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
impor... | 24.738095 | 95 | 0.72666 |
12e2fddda6be15c4a4b1b4697015ab0654e19e89 | 3,020 | /*
* Copyright 2016-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 25.59322 | 86 | 0.744371 |
29a4af57f52445e223970afe5dc1e2071013868f | 7,695 | package com.flaurite.addon.headerbutton.impl;
import com.flaurite.addon.headerbutton.ext.AttachableButton;
import com.haulmont.bali.events.Subscription;
import com.haulmont.bali.util.Preconditions;
import com.haulmont.cuba.gui.icons.CubaIcon;
import com.haulmont.cuba.gui.screen.Screen;
import java.util.EventObject;
i... | 25.229508 | 103 | 0.624821 |
4daa94deb11405163366174d249ad938368e8966 | 586 | package com.rokejits.android.tool.connection2;
import com.rokejits.android.tool.connection2.handler.ErrorHandler;
public interface IConnection2 {
public String getUrl();
public void setConnectionListener(ConnectionListener listener);
public ConnectionListener getConnectionListener();
public void setErrorHa... | 29.3 | 66 | 0.798635 |
938932c30be566d9017934797e48cf6aad50710e | 6,218 | /*
* 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. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 32.051546 | 114 | 0.74413 |
dc47880bde82dc29b5e7ec281d734e671e45a094 | 286 | package io.kenxue.cicd.coreclient.dto.sys.user;
import io.kenxue.cicd.coreclient.dto.common.command.CommonCommand;
import lombok.Data;
import lombok.experimental.Accessors;
@Accessors(chain = true)
@Data
public class UserFullGetQry extends CommonCommand {
private String userId;
} | 26 | 66 | 0.807692 |
bd70d1d992401cb7ec53bf0497912203d7e93405 | 4,225 | /*
* 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 ... | 33.267717 | 100 | 0.781065 |
ee2174099497f02b34f86ba08edbe6b402488c6e | 1,425 | package io.rong.callkit.util;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import io.rong.calllib.RongCallClient;
import io.rong.calllib.RongCallSession;
import io.rong.common.RLog;
p... | 36.538462 | 93 | 0.632281 |
c9042a4c6cbd371e2616ecfadb494a855a9aae21 | 2,677 | /*
* (c) Copyright 2019 Palantir Technologies 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 ... | 36.175676 | 107 | 0.732163 |
815158d02cde760ef9d5d23bbfdfdbe465d79255 | 17,474 | /*
* 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 bft;
import bft.util.ProxyReplyListener;
import bft.util.BFTCommon;
import bft.util.ECDSAKeyLoader;
import bftsmart.communicat... | 37.099788 | 236 | 0.554481 |
96322f17bc2d57b2dc4a0e02122cdb99b3598702 | 158 | /**
* Contains fun search to prevent our snake to do certain things
* @author carl.lajeunesse
*
*/
package ai.nettogrof.battlesnake.treesearch.search.fun; | 26.333333 | 64 | 0.753165 |
c5e0b02062266adf0bbba65e1e98d180fa432ebc | 1,654 | package net.pugsworth.manythings.entity;
import net.fabricmc.fabric.api.entity.FabricEntityTypeBuilder;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityCategory;
import net.minecraft.entity.EntityDimensions;
import net.minecraft.entity.EntityType;
import net.minecraft.util.Identifier;
import net.... | 45.944444 | 253 | 0.779927 |
6e2d657d8b07b6f6514ca80995a8a850bde4a0bb | 547 | package com.diancan.service.resto;
import com.diancan.domain.resto.DialingTable;
import java.sql.Date;
import java.util.List;
public interface DialingTableService {
DialingTable findOneById(Long id);
DialingTable findOneByNum(Integer num);
List<DialingTable> findMultipleByGivenRestaurantId(Long restau... | 24.863636 | 78 | 0.804388 |
e561778995252dcb794077aec7730051e44b5105 | 6,258 | /* Copyright (c) 2017 atacama | Software GmbH
*
* 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, modify, merg... | 49.666667 | 342 | 0.72643 |
eab5ff7c6c97eb1ed200156068ef7640e63dac84 | 14,194 | package eu.isas.reporter.gui.tablemodels;
import com.compomics.util.exceptions.ExceptionHandler;
import com.compomics.util.experiment.identification.Identification;
import com.compomics.util.experiment.identification.matches.SpectrumMatch;
import com.compomics.util.experiment.identification.peptide_shaker.PSParameter;... | 37.157068 | 203 | 0.620755 |
d97f059197681cbd74fdf51430634395f833a860 | 1,299 | package Negocios;
import java.io.Serializable;
public class Lesson implements Serializable {
private static final long serialVersionUID = 1L;
private String lessonID;
private Subject subject;
private Teacher teacher;
private Career career;
private String hour;
public Lesson() {}
publ... | 20.619048 | 98 | 0.619707 |
35ec0477e4389411f65916162bcc99881b95a81b | 599 | package base.patient.mapper;
import base.core.mapper.BaseMapper;
import base.patient.model.Hospital;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Created by zyn on 10/24/16.
*/
public interface HospitalMapper extends BaseMapper<Hospital> {
List<Hospital> findByUserID(int use... | 35.235294 | 91 | 0.736227 |
18957170994a5325d267b9b5e26142b8785bf664 | 723 | package com.bolyartech.forge.server.tple.rythm;
import com.bolyartech.forge.server.misc.TemplateEngine;
import org.rythmengine.RythmEngine;
import java.util.HashMap;
import java.util.Map;
public class RythmTemplateEngine implements TemplateEngine {
private final RythmEngine mRythmEngine;
private final Map<S... | 23.322581 | 68 | 0.73444 |
6580e1d0ea454b5ed277c2671be7adcfd6a75cba | 447 | package cz.metacentrum.perun.webgui.json.keyproviders;
import com.google.gwt.view.client.ProvidesKey;
import cz.metacentrum.perun.webgui.model.FacilityState;
/**
* Provides key for tables with FacilityState objects
*
* @author Pavel Zlamal <256627@mail.muni.cz>
*/
public class FacilityStateKeyProvider implements ... | 23.526316 | 77 | 0.769575 |
c7c6d019f6666e545810ac4f88bb78aebfb78b15 | 360 | package com.algaworks.algafood.api.controller.model.input;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class CidadeInput {
@NotBlank
private String nome;
@NotNull
@... | 16.363636 | 58 | 0.8 |
989471a91decee3218a7004c697f671914e10d3d | 3,271 | /*
* Copyright (C) 2008-2013, fluid Operations AG
*
* FedX is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This pro... | 24.969466 | 108 | 0.745644 |
ad063b444c0aec392fc1c5af5e72eed2eda2f7e6 | 3,415 | package com.bugsnag.android;
import static org.junit.Assert.assertEquals;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Map;
import java.util.c... | 30.765766 | 99 | 0.64041 |
c9c38a45f5e47285a5c622910dc06ee9788637f7 | 479 | package pushDominoes;
import PushDominoes.Solution;
import org.junit.Assert;
import org.junit.Test;
public class SolutionTest {
@Test
public void test1() {
Solution s = new Solution();
System.out.println(".L.R...LR..L..");
Assert.assertEquals("LL.RR.LLRRLL..", s.pushDominoes(".L.R...LR... | 22.809524 | 80 | 0.601253 |
26c321ae0c1193f28614fa7903b4ba126429f310 | 2,818 | package me.arasple.mc.trchat.utils;
import io.izzel.taboolib.module.inject.TSchedule;
import me.arasple.mc.trchat.TrChat;
import me.arasple.mc.trchat.TrChatFiles;
import me.clip.placeholderapi.PlaceholderAPI;
import me.clip.placeholderapi.PlaceholderAPIPlugin;
import me.clip.placeholderapi.expansion.cloud.CloudExpansi... | 35.670886 | 352 | 0.656494 |
1a94de4370e490ba11d230a699d4c9dd6122dd48 | 389 | package com.duan.blogos.dto.blogger;
import lombok.Data;
import java.io.Serializable;
/**
* Created on 2018/5/4.
*
* @author j_jiasheng
*/
@Data
public class BloggerBriefDTO implements Serializable {
private static final long serialVersionUID = -5298929293069099257L;
// 博主统计信息
private BloggerStatis... | 16.913043 | 71 | 0.727506 |
1bea27ec6ec3bfeffc9ffb7e93f660a130df231a | 12,158 | /**
* Copyright 2005 The Apache Software Foundation
*
* 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 applicab... | 34.936782 | 108 | 0.678154 |
da8e7b4b52d45379e9dcebdb2df3a33d4bbf244f | 2,597 | package com.operations.ship.cucumber.entity;
import com.operations.ship.cucumber.client.ShipClient;
import com.operations.ship.dto.ShipCreationDTO;
import com.operations.ship.dto.ShipDTO;
import com.operations.ship.dto.ShipResponseDTO;
import com.operations.ship.dto.ShipUpdationDTO;
import kong.unirest.HttpResponse;
i... | 33.294872 | 121 | 0.693492 |
223e4a530182040cf44947a14060cffc0d5f6581 | 1,475 | package ru.job4j.condition;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Class MaxTest тест задачи части 001 - урок Максимум из двух чисел 3.2.
* @author vmyaskovskiy
* @version $Id$
* @since 0.1
*/
public class MaxTest {
@Test
public void m... | 26.818182 | 73 | 0.584407 |
2cd1513e0eb2566a8cead46741514e8bf06bd94a | 2,285 | /*
* Copyright (C) 2008 feilong
*
* 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... | 33.602941 | 121 | 0.690591 |
3d73b0c1db43b65660a85f25052575f21734a370 | 1,895 | package javaspringexamples.ThreadExamples;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
import java.util.stream.IntStream;
/**
* This example represents how to create a pool of t... | 25.608108 | 110 | 0.711346 |
c904d919a5bac3a307d9a89a0ad94f1c7c00658c | 4,165 | package com.chao.jsoup.util;
import okhttp3.*;
import java.io.IOException;
import java.util.Map;
/**
* 利用okhttp进行get和post的访问
* Created by Chao on 2017/8/18.
*/
public class OKHttpUtils {
private static final OkHttpClient client = new OkHttpClient();
/**
* 同步GET
*
* @throws Exception
*... | 31.315789 | 128 | 0.556062 |
3b680c430369bc31c03ee42cc9bcc3c1dc7b7d37 | 4,855 | package com.daxiang.core.ios;
import com.daxiang.api.MasterApi;
import com.daxiang.core.MobileDevice;
import com.daxiang.core.MobileDeviceHolder;
import com.daxiang.core.appium.AppiumServer;
import com.daxiang.model.Device;
import com.daxiang.websocket.MobileDeviceWebSocketSessionPool;
import io.appium.java_client.App... | 34.678571 | 101 | 0.61586 |
18780b5ebc7ed355bf240db4b12fcfccdd231a18 | 4,598 | /*
* Copyright (c) 1999-2012 weborganic systems pty. ltd.
*/
package org.pageseeder.psml.process.config;
/**
* Defines how to traverse XRefs, including the XRefs types and some patterns to include/exclude.
*
* <p>Used to represent the inner ANT element:<p>
* <pre>{@code<xrefs
* types="[xref type... | 30.653333 | 112 | 0.608525 |
18e96b3f612e4b2a99f06f5bd56223e51807fee6 | 330 | package com.netflix.ribbon.proxy.sample;
import com.netflix.ribbon.http.HttpResourceGroup;
/**
* @author Tomasz Bak
*/
public class ResourceGroupClasses {
public static class SampleHttpResourceGroup extends HttpResourceGroup {
public SampleHttpResourceGroup() {
super("myTestGroup");
... | 22 | 75 | 0.70303 |
42b14c84019bf5c2ffee5f29cfe4e41a13577962 | 967 | package mb.resource.classloader;
import mb.resource.fs.FSResource;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.io.Serializable;
import java.util.Objects;
public class JarFileWithPath implements Serializable {
public final FSResource file;
public final String path;
public JarF... | 26.861111 | 65 | 0.627715 |
bcf3fab7336df77ae3615ae84b1848b37406182f | 7,662 | package controller.out.formatter;
import controller.in.reader.StringReader;
import controller.in.transformer.CSVTransformer;
import junit.framework.TestCase;
import model.Solution;
import model.SolutionTemplate;
public class PlainFormatterTest extends TestCase {
public void testFormatHappyPath() throws Exceptio... | 72.971429 | 498 | 0.329157 |
ee214864d6f27f895e9dac5106a9ad1d9f30a792 | 3,896 | /*
---------------------------------------------------------------------------
Open Asset Import Library - Java Binding (jassimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and... | 24.815287 | 89 | 0.649384 |
0a4626669dd866666e0cd26d98f375af20a06b3b | 2,473 | /*
Copyright 2021 Adobe. All rights reserved.
This file is licensed 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 applicable law or agre... | 33.876712 | 99 | 0.790538 |
55f8f9f0074b2da9e85e1d7cd55ce0497300d441 | 2,638 | package io.apicurio.registry.utils.streams.ext;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicLong;
@FunctionalInterface
public interface LongGenerator {
long getNext();
class HiLo implements LongGenerator {
private final LongGenerator hiGenerator;
private final AtomicLo... | 38.794118 | 98 | 0.486353 |
4d1bac169522bf8c8439051b0a26d7ed037f8785 | 1,027 | package messages;
import io.smallrye.mutiny.Multi;
import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.eclipse.microprofile.reactive.messaging.Message;
import org.eclipse.microprofile.reactive.messaging.Metadata;
import org.eclipse.microprofile.reactive.messaging.Outgoing;
import java.util.Optiona... | 29.342857 | 82 | 0.703019 |
fec38ec44cf11d004a2a976669cc4d3486427b95 | 4,164 | package com.kc.shiptransport.data.bean.device.repair;
import android.os.Parcel;
import android.os.Parcelable;
/**
* @author 邱永恒
* @time 2018/6/17 12:45
* @desc
*/
public class DeviceRepairDetailBean implements Parcelable {
public static final Parcelable.Creator<DeviceRepairDetailBean> CREATOR = new Creator<... | 30.617647 | 183 | 0.677474 |
d38a769bf00331a8ef6d7d5ffc9e663efed659ee | 331 | package com.itscoder.ljuns.practise.dagger2;
import dagger.Component;
/**
* Created by ljuns at 2018/11/30.
* I am just a developer.
*/
@Component(modules = DemoModule.class)
public interface DaggerComponent {
void daggerActivity(DaggerActivity activity);
void daggerDemoB(DemoB b);
void daggerDemoC(D... | 19.470588 | 49 | 0.734139 |
dd49b9b47e73aca74011ef2e819aef062432283a | 802 | package czy.spring.boot.starter.swagger;
import lombok.Data;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.util.Assert;
import springfox.documentation.spi.DocumentationType;
/**
* {@link springfox.documentation.spring.web.plugins.Docket}属性
*/
@Data
public class DocketProperti... | 26.733333 | 78 | 0.741895 |
837662a34df3cd092ad2acfe8c293724fb741e59 | 321 | package org.bricolages.streaming.event;
import org.bricolages.streaming.exception.ApplicationException;
public class MessageParseException extends ApplicationException {
MessageParseException(String message) {
super(message);
}
MessageParseException(Exception cause) {
super(cause);
}
}... | 24.692308 | 65 | 0.750779 |
c12892b0517f7ad5a63a1e729ef100a3d722c8d7 | 287 | package edu.thinktank.thymeleaf.example;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import java.util.Map;
public class ExampleConfig extends Configuration {
@JsonProperty("views")
public Map<String, Map<String, String>> views;
}
| 23.916667 | 53 | 0.787456 |
1fb08702caad9e1d33a056756f2be4d7edfc3445 | 211 | package de.hhu.stups.plues;
public enum HistoryChangeType {
BACK, FORWARD;
public boolean isBack() {
return this.equals(BACK);
}
public boolean isForward() {
return this.equals(FORWARD);
}
} | 16.230769 | 32 | 0.682464 |
1242056275b69437f085695b2135860c29dd3acd | 571 | package com.github.cc3002.finalreality.controller.combatphases;
/**
* this class was created to interact with the gui. NOT IMPLEMENTED YET
*/
public class SelectingWeaponPhase extends CombatPhase {
public SelectingWeaponPhase() {
super();
// code to show and hide some buttons
}
@Overri... | 22.84 | 71 | 0.669002 |
a9ad9e7672292986be89d091495d4398685d41b1 | 3,062 | package com.redescooter.ses.tool.utils.ssl;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.openssl.PEMReader;
import org.bouncycastle.openssl.PasswordFinder;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax... | 39.766234 | 132 | 0.684847 |
ac8b13c218313df0c56bca65c201d157ed484294 | 4,068 | package com.gp.health.ui.faqs;
import android.annotation.SuppressLint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.AppCompatTextVie... | 26.940397 | 125 | 0.637906 |
03e8c555e19b6c638eb55699799e7d10b30f702e | 2,518 | package org.jenkinsci.plugins.ghprb_lp.extensions;
import hudson.DescriptorExtensionList;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.PredicateUtils;
import org.apache.commons.collections.functors.InstanceofPredica... | 35.971429 | 132 | 0.710882 |
59390496d0df85b2eb01ff03fe5619a7bab11605 | 792 | package org.opentosca.yamlconverter.main;
import org.junit.Test;
import org.opentosca.yamlconverter.main.exceptions.ConverterException;
import org.opentosca.yamlconverter.main.interfaces.IToscaYaml2XmlConverter;
import java.io.IOException;
import java.net.URISyntaxException;
public class Yaml2XmlQuickConverterTest e... | 36 | 88 | 0.808081 |
4681cec199deb85c8abbc3a8c22c3f8d0c686588 | 3,735 | package io.quarkus.paths;
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
import java.util.function.Function;
import java... | 24.411765 | 75 | 0.527711 |
f0e088092cc0272724d28a090921e33d24d360da | 596 | package chapter7;
public class RecTest {
int valumes[];
RecTest(int i) {
valumes = new int[i];
}
//выводим рекрсивно элементы массива
void printArray (int i) {
if (i == 0) return;
else printArray(i-1);
System.out.println("[" + (i - 1) + "]" + valumes[i-1]);
}
... | 22.074074 | 98 | 0.550336 |
e6154b0d2a75d802a281c4c43b74c303deefc690 | 5,204 | package com.wardrobe.platform.rfid.rfid.bean;
import com.wardrobe.platform.rfid.rfid.config.HEAD;
/**
* Object of describing data package;
* @author Administrator
*
*/
public class MessageTran {
private byte btPacketType; //head of data, defauld value is 0xA0
private byte btDataLen; //Length of d... | 30.432749 | 138 | 0.593966 |
bdd453a1a1ed6b9ae46468b581050417bb71672d | 3,035 | package io.github.mariazevedo88.financialjavaapi.test.repository.transaction;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.math.BigDecimal;
import java.util.Date;
impor... | 28.101852 | 93 | 0.771334 |
95a69541a9125133017d81c7e33b20a05c91eeb5 | 1,836 | package com.dutchs.modpacktools.network;
import com.dutchs.modpacktools.Constants;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraftforge.network.NetworkEvent;
import org.jetbrains.annotations.NotNull;
import... | 36 | 137 | 0.6939 |
8e7d4baad10cb2e5fe63e6ca04acefeb0ab6233c | 1,742 | package com.ruoyi.schoolJob.mapper;
import java.util.List;
import java.util.Map;
import com.ruoyi.schoolJob.domain.MyTitle;
import com.ruoyi.schoolJob.domain.MyClass;
/**
* MyTitleMapper接口
*
*/
public interface MyTitleMapper
{
/**
* 查询MyTitle
*
* @param titleId MyTitle主键
* @return MyTitl... | 18.336842 | 71 | 0.588404 |
580503b200ed00e723e8805eb5f2029664cf4efb | 2,237 | /*
314 Binary Tree Vertical Order Traversal
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column).
If two nodes are in the same row and column, the order should be from left to right.
Examples:
Given binary tree [3,9,20,null,null,15,7],
3
/ ... | 20.522936 | 122 | 0.637014 |
e91ac2bb9bd1f18303ab8811f6207aac64e8e80b | 26,352 | package romever.scan.oasisscan.service;
import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.search.SearchResponse;
import org.elastic... | 50.482759 | 188 | 0.56565 |
081568e34c8d40e53a2b1230026adaa245fd7f22 | 1,785 | package org.lahsivjar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.... | 37.1875 | 119 | 0.77479 |
bbc95fbdf890da1a0972444cb76b250f9bb508c7 | 229 | package com.ooad.xproject.vo;
import lombok.Data;
@Data
public class AcInfoStdUpdateVO {
private String[] skills;
private String[] flags;
private String bio;
private String email;
private String iconUrl;
}
| 16.357143 | 32 | 0.71179 |
ff71fce9733c3553a27fd0b03b51a15ade205735 | 1,894 | package chat.persistence.repository.mock;
import chat.model.User;
import chat.persistence.repository.UserRepository;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by IntelliJ IDEA.
* User: grigo
* Date: Mar 18, 2009
* Time: 1:13:54 PM
*/
public class UserRepositoryMock implements UserRepository
... | 24.282051 | 67 | 0.591341 |
1af42e65b3a0839a21351eefea9947a3ed89314c | 1,575 | /*
* 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 Entidades;
import java.util.*;
/**
*
* @author CajaJL
*/
public class Empleado {
String rifSede, nombre, ciPersona;
... | 19.936709 | 150 | 0.587937 |
a12922f98e2b724c93061a2347cd5a226b67d24d | 14,310 | /*****************************************************************
JADE - Java Agent DEvelopment Framework is a framework to develop
multi-agent systems in compliance with the FIPA specifications.
Copyright (C) 2000 CSELT S.p.A.
GNU Lesser General Public License
This library is free software; you can redistribute i... | 36.136364 | 149 | 0.641579 |
6d0ef5ff7f38c7ddb4d2b486d9f379369f82f95a | 1,791 | package com.frontbackend.springboot.controller;
import java.io.IOException;
import java.nio.file.Paths;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import org.springframework.http.HttpHeaders;
import org.spring... | 39.8 | 101 | 0.646566 |
9342076ab33f748ee219631111290bf3b1f4c5d8 | 1,860 | package com.leeup.javase.day18.test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.TreeSet;
/**
*
* @author 李闯
*
*/
public class Test3 {
public static void main(String[] args) {
String[] num = {"3","4","5","6","7","8","9","10","J","Q","K","A","2"};
Str... | 24.155844 | 72 | 0.58871 |
9cd770bf49e92226df33861b94eb45bc7e94d7a2 | 461 | /*
* Query.java
*
* Created on August 10, 2004, 2:04 PM
*/
package com.cyc.baseclient.util.query;
import java.util.Set;
/**
* @version $Id: QuerySpecification.java 150536 2014-04-15 20:54:59Z nwinant $
* @author mreimers
*/
public interface QuerySpecification {
public String getGloss();
public Obje... | 17.730769 | 78 | 0.700651 |
d25e64227ac3d26c5e2abd96c5d885645790ac67 | 26,278 | /*
* The MIT License (MIT)
* Copyright (c) 2014 longkai
* The software shall be used for good, not evil.
*/
package org.catnut.fragment;
import android.app.Activity;
import android.app.Fragment;
import android.content.AsyncQueryHandler;
import android.content.Intent;
import android.content.SharedPreferences;
impor... | 35.225201 | 119 | 0.730687 |
dd76b9a1c89c920bca945848e9c56ca524e13d13 | 25,546 | /*
* Copyright (c) 2013, 2018, 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.090674 | 153 | 0.566312 |
b0d3f629bbc740715adc3804d47bc13698322eac | 7,773 | /*
* 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 ... | 30.363281 | 99 | 0.702174 |
453614413e0b45c03a8b0cfffcb0e3827d6d2861 | 4,457 | /*
* SPDX-License-Identifier: Apache-2.0
*/
package org.ethereum.beacon.discovery.community;
import org.apache.tuweni.bytes.Bytes;
import org.apache.tuweni.units.bigints.UInt64;
import org.ethereum.beacon.discovery.packet.AuthHeaderMessagePacket;
import org.ethereum.beacon.discovery.packet.MessagePacket;
import org... | 50.078652 | 534 | 0.795827 |
f480ec5250033df843fbf3acd3f748ce534ad8b7 | 320 | package me.dev.legacy.event.events;
import me.dev.legacy.event.EventStage;
import net.minecraft.util.math.BlockPos;
public class BlockDestructionEvent extends EventStage {
BlockPos nigger;
public BlockDestructionEvent(BlockPos nigger) {
}
public BlockPos getBlockPos() {
return this.nigger;
}
}
| 20 | 55 | 0.75 |
a91536604ab982f573df9a40206657574d960f3a | 779 | package ru.prilepskiy.model;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.Set;
/**
* ... | 25.129032 | 66 | 0.730424 |
2a880da0b4550ba4fb02af8a828f3a56c913be02 | 647 | import jdk.nashorn.internal.objects.annotations.Attribute;
import jdk.nashorn.internal.objects.annotations.Where;
import jdk.nashorn.internal.runtime.JSType;
class NativeMath extends ScriptObject {
/**
* ECMA 15.8.2.15 round(x)
*
* @param self self reference
* @param x argument
*
... | 25.88 | 79 | 0.670788 |
c10c95d6ea6a07d3b86d161f1bef73ba15097195 | 1,442 | package org.jtwig.model.tree;
import org.jtwig.context.RenderContext;
import org.jtwig.model.expression.Expression;
import org.jtwig.model.position.Position;
import org.jtwig.render.Renderable;
import org.jtwig.render.model.EmptyRenderable;
import java.util.Collection;
public class IfNode extends Node {
private ... | 28.27451 | 87 | 0.680305 |
2c12562fa25f51d6e9e35c61f5c8a52be31e1799 | 6,699 | package com.bird.service.common.service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrap... | 23.588028 | 162 | 0.592476 |
eeb41755bca017c976881187f4dc255a06da91cc | 3,677 | package com.ruoyi.web.controller.guangzhou;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.a... | 28.952756 | 87 | 0.705738 |
801828f0e52dea7fdd19a37d42971ed932581967 | 2,141 | /*
* Class Name
*
* Date of Initiation
*
* Copyright @ 2019 Team 07, CMPUT 301, University of Alberta - All Rights Reserved.
* You may use, distribute, or modify this code under terms and conditions of the Code of Student Behaviour at the University of Alberta.
* You can find a copy of the license in the github ... | 30.585714 | 146 | 0.650163 |
47d52563c9724491b5ef7691a3be3e32ff8ee304 | 292 | package com.testquack.dal;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.testquack.beans.TestCase;
public interface TestCaseRepository extends TestCaseRepositoryCustom,
PagingAndSortingRepository<TestCase, String>, CommonRepository<TestCase> {
}
| 32.444444 | 82 | 0.839041 |
3de39adf57b7d9b8651c1c2c9d1c1702b78d4efa | 254 | package classe;
public class Comida {
String nomeComida;
double pesoComida;
Comida (String nomeComida, double pesoComida) {
this.nomeComida = nomeComida;
this.pesoComida = pesoComida;
}
double peso() {
return pesoComida;
}
}
| 11.545455 | 48 | 0.685039 |
309218301425dcf5c37b7341aa27dd688a253173 | 341 | package com.training.springbootbuyitem.entity.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NotificationRequest {
private String email;
private String subject;
priva... | 18.944444 | 54 | 0.809384 |
4aae83ab4ac1048cd53eaed1c12945f546324c38 | 809 | package com.phoenixnap.oss.ramlplugin.raml2code.github;
import org.junit.Test;
import com.phoenixnap.oss.ramlplugin.raml2code.plugin.TestConfig;
import com.phoenixnap.oss.ramlplugin.raml2code.rules.GitHubAbstractRuleTestBase;
import com.phoenixnap.oss.ramlplugin.raml2code.rules.Spring4ControllerDecoratorRule;
/**
*... | 32.36 | 84 | 0.822002 |
b9fbb36a98fe62586ef52ff8e1e051f2e1faf8f3 | 1,310 | package io.github.mela.command.provided.interceptors;
import static org.junit.jupiter.api.Assertions.assertEquals;
import io.github.mela.command.provided.BindingTest;
import io.github.mela.command.bind.Command;
import io.github.mela.command.bind.CommandBindingsBuilder;
import io.github.mela.command.provided.mappers.... | 27.87234 | 86 | 0.748092 |
72dd7c2de40736adc617a6ae7bdd95f430468c43 | 3,532 | /**
* Copyright 2013 Canada Health Infoway, 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... | 44.708861 | 182 | 0.761608 |
90c0078c5a89ed06c9c5790ce5bfc034f216b0cd | 783 | package world.md2html.plugins;
import world.md2html.utils.UserError;
import world.md2html.options.model.Document;
public interface PageMetadataHandler {
/**
* Accepts document `doc` where the `metadata` was found, the metadata `marker`, the
* `metadata` itself and the whole section `metadata_s... | 32.625 | 92 | 0.692209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.