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 |
|---|---|---|---|---|---|
530c187c23a23c174b4862bbbdb56332e31858de | 1,399 | package main.evolution.ga;
import java.util.ArrayList;
import java.util.List;
import main.utils.Evolutionhelper;
/**
* Abstract implementation of a gene. A gene has a list of values.
*
* @author Felix
*
* @param <T> The type of the values
*/
public abstract class AbstractGene<T> {
protected Li... | 22.564516 | 102 | 0.658327 |
c7c3932476ca3bde2bea40d8533a81f5054de7ae | 1,000 | package io.suricate.monitoring.model.dto.api.rotation;
import io.suricate.monitoring.model.dto.api.AbstractDto;
import io.suricate.monitoring.model.dto.api.rotationproject.RotationProjectRequestDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombo... | 29.411765 | 92 | 0.76 |
98b50d16a2b1b44f16d8ec4c7fd92b8c40daab5e | 53,597 | package eu.bcvsolutions.idm.core.model.service.impl;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import java.uti... | 43.645765 | 146 | 0.78913 |
ff7ea02aaf25125f6e4a98971e5dbf35075fe0f3 | 857 | package parser.ast.fragment.ddl;
import parser.ast.AST;
import parser.ast.expression.Expression;
import parser.ast.expression.primary.Identifier;
import parser.visitor.Visitor;
/**
* @author Dagon0577
* @date 2020/7/15
*/
public class IndexColumnName implements AST {
private final Identifier columnName;
pr... | 20.404762 | 83 | 0.670945 |
3b5445b291951213dc033bcfd3b9562fb8645628 | 2,153 | /*
* Copyright 2015 Alexandr Evstigneev
*
* 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... | 28.328947 | 121 | 0.765444 |
6797ce40bda5c5d77a0ae8482cb4d1d4cd097962 | 438 | package com.paradigmadigital.from0tocloud.monolithbackend.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.paradigmadigital.from0tocloud.monolithbackend.model.Offer;
@RepositoryRestResource(collecti... | 43.8 | 76 | 0.856164 |
9a0569a96356387829a9205bae1750cce651827b | 310 | package com.jyc.designpatterns._04_decorator.halocoffee.coffee;
/**
* Coffee的基类
* Created by ucar-jyc on 2017/9/30.
*/
public abstract class Coffee {
protected String description ; // 描述
public abstract double cost();
public String getDescription() {
return description;
}
}
| 14.761905 | 63 | 0.677419 |
83f96dd420c1dce84c24152de5f9d8dfddf45731 | 2,070 | /*
* Copyright (C) 2005 - 2019 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package global.namespace.truelicense.maven.plugin.commons;
import global.namespace.truelicense.build.tasks.commons.AbstractTask;
import global.namespace.truelicense.build.tasks.commons.Logger;
import... | 32.857143 | 107 | 0.69372 |
6e729b59bf81a8f207d1f2833f29c8ce9a868248 | 822 | package org.globsframework.metamodel.index;
public class DispatchIndexVisitor implements IndexVisitor {
public void visitSingleIndex(SingleFieldIndex index) {
notManaged(index);
}
public void visitMultiFieldIndex(MultiFieldIndex index) {
notManaged(index);
}
public void visitUniq... | 24.909091 | 69 | 0.701946 |
a2a706c2fc5e10d50af506ec9593c4feb121ae6b | 775 | package exercicios.secao08;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class Exercicio14 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.print("Distancia (Km): ");
double km = scan.nextDouble();
System.out.print("Quantidade Combustível... | 22.794118 | 65 | 0.670968 |
c512e5957ece4adb809700c712e7a273466f6119 | 9,044 | package com.platform.controller;
import com.platform.entity.TagEntity;
import com.platform.entity.TbWeixinTokenEntity;
import com.platform.entity.WechatSettingEntity;
import com.platform.service.TagService;
import com.platform.service.TbWeixinTokenService;
import com.platform.service.WechatSettingService;
import com.p... | 36.467742 | 110 | 0.617647 |
4ccc48d4ee9fd49444e19735ad38ab74462858a9 | 14,548 | /*-
* ========================LICENSE_START=================================
* Smartconfig Maven Plugin
* *
* Copyright (C) 2016 BruceZhang
* *
* 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 ... | 38.691489 | 196 | 0.534025 |
412cc2dd5fdb7b73f9a24e781a12fd31ff812128 | 2,373 | package net.microfalx.testware.spi.util;
import net.microfalx.binserde.utils.ArgumentUtils;
import net.microfalx.resource.ResourceUtils;
import java.io.File;
/**
* Various utilities around file system.
*/
public class FileUtils {
public static final String LOCAL_REPO_NAME = "teamware";
/**
* Returns... | 27.275862 | 100 | 0.613148 |
4f3a4af0fbb8ccd558ac18d20bac043019521bef | 3,181 | package io.reptyl.test.unit.server;
import io.reptyl.ReptylServer;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import static io.reptyl.ReptylServer.Builder.DEFAULT_HOST;
import static io.reptyl.ReptylServer.Builder.DEFAULT_PORT;
import static io.reptyl.ReptylSe... | 33.135417 | 175 | 0.703238 |
82188dd2e2b07e89fbf1bf19412c6511bb66f5aa | 8,292 | package com.example.contest_2019_1.fragment_pro3;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx... | 33.707317 | 133 | 0.586348 |
4daacdde53b5cab27301bef9b8b7b84dbd8499d8 | 21,281 | /*
* 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 ... | 45.765591 | 141 | 0.604906 |
62dbe8e56db1374309fd142a8b280373e17cee12 | 2,009 | package chapter4;
import java.math.BigInteger;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import javax.crypto.KeyAgreement;
import javax.crypto.spec.DHParameterSpec;
/**
* Two party key agreement using Diffie-Hellman
*/
public class BasicDH... | 35.245614 | 80 | 0.656048 |
c063942166b7121dbdaf42ecf555869f47c6ed9a | 6,747 | /*
* ApplicationInsights-Java
* Copyright (c) Microsoft Corporation
* All rights reserved.
*
* MIT License
* 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, inclu... | 39.45614 | 177 | 0.663851 |
fa44f65269ecac5052a2bd89290c0032f45c6411 | 16,710 | package cyclops.control;
import com.oath.cyclops.types.persistent.PersistentSet;
import com.oath.cyclops.util.box.Mutable;
import cyclops.companion.*;
import cyclops.data.HashSet;
import cyclops.function.Monoid;
import cyclops.reactive.ReactiveSeq;
import cyclops.reactive.Spouts;
import cyclops.data.tuple.Tuple;
im... | 27.98995 | 238 | 0.621604 |
718e8f743b2caeed81abdd4f75602a971f616de6 | 5,288 | package com.simibubi.create.content.contraptions.components.structureMovement;
import com.simibubi.create.content.contraptions.components.structureMovement.sync.ContraptionFluidPacket;
import com.simibubi.create.content.contraptions.fluids.tank.CreativeFluidTankTileEntity;
import com.simibubi.create.content.contraptio... | 30.923977 | 111 | 0.765507 |
18bb7bee993a283f81900bd94b5648fe42793c45 | 1,347 | package algorithms.charapter_1;
import java.util.Arrays;
/**
* 二分查找,适用于整数集合
*
* @author Mo
*/
public class StaticSETofInts {
private int[] a;
/**
* 构造函数
*
* @param keys 源数组
*/
public StaticSETofInts(int[] keys) {
a = new int[keys.length];
for (int i = 0; i < keys.l... | 20.104478 | 56 | 0.476615 |
4ecef53980b29a20ec7af3823f82c0cc7ed63fd0 | 1,090 | package com.mumu.webmagic.main;
import com.mumu.webmagic.IConfig;
import com.mumu.webmagic.IFilePersist;
import com.mumu.webmagic.PersistManager;
import com.mumu.webmagic.Spider;
import com.mumu.webmagic.impl.DefaultConfig;
import com.mumu.webmagic.impl.b_faloo_com.BFalooFilePersist;
/**
* ${todo}〈一句话功能简述〉
* ${todo... | 29.459459 | 79 | 0.66055 |
13795275e6ec17be43a12c7252a8ebc9351437d3 | 24,264 | /* The following code was generated by JFlex 1.4.1 on 8/8/10 6:22 PM */
/* It's an automatically generated code. Do not modify it. */
package com.google.protoeditor.lex;
import com.intellij.lexer.FlexLexer;
import com.intellij.psi.tree.IElementType;
/**
* This class is a scanner generated by
* <a href="http://ww... | 32.352 | 101 | 0.558688 |
6aa6fd18fdc0732a0bff5ca8e9c47492a9010f20 | 933 | package edu.zjut.utils;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
public class Tools {
private static final String PATH = "InstanceLimit.cfg";
/**
* 读取cfg配置文件
* @return
*/
public Integer getCount() {
BufferedReader reade... | 23.325 | 89 | 0.685959 |
c63a0152c8ce3272c59c25881edfed3d123c959f | 874 | package com.github.egor18.jdataflow.testcases;
import java.util.ArrayList;
public class TestExecutableReference
{
native void function();
static native void staticFunction();
native Object g(Runnable a, Runnable b, Runnable c);
public Runnable r1 = this::function;
public Runnable r2 = TestExecuta... | 25.705882 | 81 | 0.639588 |
6732ec2aaa8939b89f315b00408f8b4826d1e7a5 | 654 | package com.sportmonks.data.structure;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.sportmonks.data.entity.StandingRow;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)... | 24.222222 | 58 | 0.735474 |
4a625a7eeba43a489cb2e8307059cf04be625389 | 5,414 | package software.amazon.disco.agent.integtest.sql;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import software.amazon.disco.agent.event.Event;
import software.amaz... | 32.614458 | 106 | 0.707795 |
2731d5b15b38abc19ddd40a3afd6a50db142b7fc | 299 | package com.haulmont.sample.petclinic.web;
import java.time.LocalDate;
public class DateRange {
private final LocalDate startDate;
private final LocalDate endDate;
public DateRange(LocalDate startDate, LocalDate endDate) {
this.startDate = startDate;
this.endDate = endDate;
}
} | 19.933333 | 60 | 0.755853 |
a3772e42fe6017e7d43e57d14068ba656a4b51f6 | 1,928 | package org.drakosha.tools.calctable.dataprovider.parser.portrait;
import org.testng.annotations.DataProvider;
import java.util.Arrays;
import java.util.HashSet;
import org.drakosha.tools.calctable.dataprovider.parser.common.testdata.CalcTableDataParser_CollectonTypes_TestDataFactory;
import org.drakosha.tools.calct... | 32.677966 | 123 | 0.655083 |
410d9cac523ec62449b101da809ae720154c53e3 | 586 | package com.slava.taboolatestjava.common;
import androidx.lifecycle.ViewModel;
import io.reactivex.annotations.NonNull;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
public abstract class BaseViewModel extends ViewModel {
private CompositeDisposable disposeOnCl... | 25.478261 | 75 | 0.759386 |
7c2dc6e4c8fb8b21deb5bbfc5dc49a59a05c0b69 | 698 | package com.github.zj.dreamly.model.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
/**
* Permission
*
* @author 苍海之南
* @date 2018/8/31 14:41
*/
@Table(name = "permission")
@Data
@AllArgsConstructor
@NoArgsCo... | 17.02439 | 71 | 0.664756 |
761a6328674ea066edf7ab728c40fe068983d256 | 254 | package com.yc.YcRecyclerViewBaseAdapter.interfaces;
import com.yc.YcRecyclerViewBaseAdapter.base.YcBaseViewHolder;
/**
* 条目点击事件
*/
public interface OnItemClickListener<T> {
void onItemClick(YcBaseViewHolder viewHolder, T data, int position);
}
| 21.166667 | 72 | 0.791339 |
ab5b6d00576c8e5c2c77a15c7697f6ba881e769b | 8,565 | package org.rest.sec.persistence.service;
import static org.apache.commons.lang3.RandomStringUtils.randomAlphabetic;
import static org.hamcrest.Matchers.hasItem;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertThat;
import java.util.List;
import org.apache.commons.lang3.tuple.I... | 39.288991 | 161 | 0.740339 |
88f900ebcfb3003632b1dae7d9a44df8bdaf8c0d | 448 | package com.urbanairship.octobot.tasks;
import org.apache.log4j.Logger;
import org.json.simple.JSONObject;
// This is a sample test used for execution verification in the test suite.
public class SampleTask {
private static final Logger logger = Logger.getLogger("Sample Task");
// Stores a notification for... | 24.888889 | 75 | 0.729911 |
cf6076fb23d28c306634cc556e855b9a3204d9ec | 1,288 | package protect.Finia.spending;
import android.os.Parcel;
import android.os.Parcelable;
/**
* The class to store all the data of the spending in the current month.
* The GroupedSpending is parcelable in order to be able to transfer to the spending report activity.
*
* @author Owner Kevin Zhijun Wang
* created o... | 25.76 | 101 | 0.659938 |
600758048452523031cea9bd2739fe7350eb6a16 | 2,663 | /*
* MIT License
*
* Copyright (c) 2017-2018 nuls.io
*
* 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, mod... | 35.986486 | 93 | 0.674803 |
2242243d501af89620421059cb3f73721400582b | 1,400 | package com.redescooter.ses.mobile.rps.service.base.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.redescooter.ses.mobile.rps.dao.base.OpeCombinListRelationPartsMapper;
import com.redescooter.ses.mobile.rps.dm.OpeCombinListRelationParts;
import org.springframework.stereotype.Servi... | 31.111111 | 132 | 0.776429 |
c55846b6a496e09932c643bcd4e7448c5060e88d | 2,464 | /*
* Copyright (c) 2021. 杜少雄 AllRightsReserved
*/
package cn.shaoxiongdu.controller.productmodule;
import cn.shaoxiongdu.bean.ProductType;
import cn.shaoxiongdu.service.ProductTypeService;
import cn.shaoxiongdu.utils.InputUtils;
import java.util.ArrayList;
import java.util.Scanner;
/**
* @作者: 杜少雄 <email@shaoxion... | 27.377778 | 144 | 0.45414 |
ccab1729b1087608873219c6323d4dd1fb38c216 | 1,328 | /*
* Copyright (C) 2016 The Material Motion Authors. 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
*
* Unle... | 34.051282 | 98 | 0.725151 |
8dd791f8e6fd350b41959daecc8ac8215bcb9e87 | 1,910 | package com.storefront.kafka;
import com.storefront.model.CustomerOrders;
import com.storefront.model.OrderStatusChangeEvent;
import com.storefront.respository.CustomerOrdersRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mong... | 34.107143 | 100 | 0.756021 |
1246f472e9182efaf3d7b40a06f0b8490af31909 | 26,865 | package com.brandon3055.draconicevolution.common.tileentities.multiblocktiles.reactor;
import com.brandon3055.brandonscore.BrandonsCore;
import com.brandon3055.brandonscore.common.handlers.ProcessHandler;
import com.brandon3055.brandonscore.common.utills.Utills;
import com.brandon3055.draconicevolution.DraconicEvoluti... | 44.258649 | 237 | 0.635697 |
d3012e01137a79966821cd7ca85f85e77ccd62ab | 428 | package com.github.gilbertotcc.lifx.operations;
import com.github.gilbertotcc.lifx.models.LightSelector;
import com.github.gilbertotcc.lifx.models.PulseEffect;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Getter(AccessLevel.PACKAGE)
public class DoP... | 25.176471 | 56 | 0.843458 |
903b588619ee096c6ffd73bd200c6414b583c170 | 7,099 | package seedu.address.logic.commands.paymentcommandtest;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.ass... | 47.966216 | 118 | 0.7687 |
3dd1e530ed270a181603610f5fb83f73d5b1f054 | 685 | package com.sequenceiq.cloudbreak.service.filesystem.resource.definition;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class CloudFileSystemSupportConfigEntry {
private String supportedFileSytem;
private String minVersion;
public Strin... | 24.464286 | 73 | 0.745985 |
a4a2006487d1090a8178a11071a0d0141fee5a77 | 1,028 | package tests;
import org.informagen.oswf.impl.stores.MemoryWorkflowStore;
import tests.AbstractFunctionalWorkflow;
// JUnit 4.x testing
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit... | 25.073171 | 95 | 0.699416 |
3cd3dad6cca30269846a06cb455ee067347843a7 | 3,822 | /*
* Copyright (c) 2020, Jack Hodkinson <https://github.com/jrhodkinson>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyrigh... | 41.543478 | 151 | 0.755364 |
c96c41510f5209bd0e170b466d4b6b68631ea588 | 4,848 | /*
* #%L
* BroadleafCommerce Framework
* %%
* Copyright (C) 2009 - 2016 Broadleaf Commerce
* %%
* Licensed under the Broadleaf Fair Use License Agreement, Version 1.0
* (the "Fair Use License" located at http://license.broadleafcommerce.org/fair_use_license-1.0.txt)
* unless the restrictions on use therein are... | 38.784 | 115 | 0.610974 |
f58f0691c3774e45f7eeacdca50c12cca12dcc00 | 5,987 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 43.384058 | 94 | 0.646735 |
cc92cc426cfedeec635741715c055b72714c5327 | 820 | package mylist;
public class Item<E> {
Item<E> prev;
Item<E> next;
E value;
public Item (E value) {
this.value = value;
}
public Item (Item<E> prev, E value) {
this.prev = prev;
this.value = value;
this.next = null;
}
public Item (Item<E> prev, E value, ... | 17.826087 | 55 | 0.504878 |
cbc1f2257f8b87caa9d0150c407f899b80d89f12 | 1,258 | package ru.job4j.noblock;
import java.util.concurrent.ConcurrentHashMap;
/**
* Хранилище моделей.
*
* @author Alexey Rastorguev (rastorguev00@gmail.com)
* @version 0.1
* @since 07.04.2018
*/
public class Cache implements ICache {
private ConcurrentHashMap<Integer, Model> store = new ConcurrentHashMap<>();
... | 25.16 | 113 | 0.622417 |
4ce3b05659078e0b7ce290e1cd6fbc161cb0bfa6 | 498 | package eu.okaeri.validator.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* The annotated element must not be null and must contain at least one non-whitespace character.
*
* Supported... | 26.210526 | 97 | 0.781124 |
b4256ca6d65efa9b582f4b7e90bd626688e94a8e | 1,322 | /*
* Problem : https://www.careercup.com/question?id=5999476452360192
*/
public class GroupPoints{
UnionFind components;
Point2D[] points;
public GroupPoints(Point2D[] points) {
components = new UnionFind(points);
this.points = points;
}
private void printNumGroups() {
Sy... | 26.979592 | 80 | 0.548411 |
15547cb4715fc7315612d0ef047fafddc9be4a8c | 726 | package net.h34t.enrico;
import java.util.HashMap;
import java.util.Map;
public class LabelOffsetTranslator {
private final Map<Label, Integer> labelOffsets;
LabelOffsetTranslator() {
labelOffsets = new HashMap<>();
}
public void put(Label label, int offs) {
labelOffsets.put(label, o... | 22.6875 | 94 | 0.621212 |
87606f48d0a5f873d95004879dfdef757671484a | 8,715 | package com.bamdoliro.gati.domain.community.service;
import com.bamdoliro.gati.domain.community.domain.Community;
import com.bamdoliro.gati.domain.community.domain.Member;
import com.bamdoliro.gati.domain.community.domain.repository.CommunityRepository;
import com.bamdoliro.gati.domain.community.domain.type.Authority;... | 40.915493 | 108 | 0.678256 |
4135147766be5a7f8318a4483c9015d3c58d2e6d | 872 | package info.itsthesky.disky3.core.skript.properties.channels;
import info.itsthesky.disky3.api.bot.Bot;
import info.itsthesky.disky3.api.skript.action.GuildAction;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.requests.restaction.ChannelAction;
import org.jetbrains.annotations.NotNull;
public... | 25.647059 | 67 | 0.683486 |
59c58c0ded02bbfcfb6c45cd139b546030c607d1 | 11,923 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* ExportDialog.java
*
* Created on 4.12.2009, 1:03:44
*/
package org.quickclient.gui;
import java.awt.event.ActionListener;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
... | 44.655431 | 291 | 0.771115 |
2dae18e3be7a43c07256d1ce3cad86d716ad6b2a | 396 | package com.coffee.baby.aop;
import lombok.extern.slf4j.Slf4j;
/**
* @Description TODO
* @Author Thinkpad
* @Date 2019/1/29 23:28
**/
@Slf4j
public class AgvCompass implements CompassInterface {
@Override
public void statErrorData() {
System.out.println("Agv统计异常数据");
}
@Override
publi... | 18 | 53 | 0.659091 |
7b4cf7b5cc68b24c4f2a10697e4a17e20803b3d3 | 276 | package br.com.abc.introduction;
public class NumerosImpares {
public static void main(String[] args) {
int valor = 50;
for (int i = 0; i < valor; i++) {
if (i % 2 != 0) {
System.out.println(i);
}
}
}
}
| 21.230769 | 44 | 0.467391 |
204e58b422783b9aaeb819b341a23acc18dedad4 | 208 | package id.ac.ui.cs.advprog.tutorial4.exercise1.factory.dough;
public class TossedDough implements Dough {
public String toString() {
return "Double tossed extra combo repository yoman";
}
}
| 26 | 62 | 0.730769 |
82dd8651ee6b2f904fd86ec0d7d809f482936011 | 899 | package cn.hutool.extra.servlet;
import org.junit.Ignore;
import org.junit.Test;
import javax.servlet.http.HttpServletResponse;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
/**
* ServletUtil工具类测试
*
* @author dazer
* @date 2021/3/24 15:02
* @see ServletUtil
*/
public class Serv... | 24.972222 | 90 | 0.74416 |
54a5ab901010f29ba91aa8dbc13b3a3c6cffada6 | 4,607 | package novamachina.exnihilosequentia.client.render;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import javax.annotation.Nonnull;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderTy... | 34.901515 | 99 | 0.690905 |
6ec84f2230d150e33278b2c286a01796248b55d6 | 254 | package com.wu.alipay.view.password;
import com.hannesdorfmann.mosby.mvp.MvpView;
/**
* Created by Administrator on 2016/8/11.
*/
public interface IPasswordInputView extends MvpView{
void finishActivity();
void inputError(int errorCount);
}
| 19.538462 | 52 | 0.751969 |
2e9a7ddbbd9105e6e303c75df686e900ec5c132f | 1,019 | /**
* 项目名称:quickstart-zeromq
* 文件名:Push3.java
* 版本信息:
* 日期:2017年9月9日
* Copyright youngzil Corporation 2017
* 版权所有 *
*/
package org.quickstart.mq.zeromq.jeromq;
import org.zeromq.ZMQ;
/**
* Push3
*
* @author:yangzl
* @2017年9月9日 上午11:12:20
* @since 1.0
*/
public class Push3 {
public static void main... | 21.680851 | 63 | 0.451423 |
13189e168802820e90e20715bd62a4c245f7120a | 2,415 | package com.restfully.shop.domain;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
... | 21.954545 | 89 | 0.601656 |
bced093e4402d57034e00a4524b48ed97ab3c648 | 1,707 | package com.lifeofcoder.autolimiter.dashboard;
/**
* 响应结果
*
* @author xbc
* @date 2020/4/20
*/
public class ResponseDto {
private boolean success;
private String errorMsg;
private Object data;
public static final ResponseDto SUCCESS = new ResponseDto(true, "", null);
public ResponseDto(boole... | 23.708333 | 78 | 0.625659 |
3cf8886ed9eae8dc3b145be58f8cfa964f4bd524 | 914 | package com.xunlei.downloadprovider.member.login;
import com.xunlei.common.lixian.XLLX_USERINFO;
import com.xunlei.common.lixian.XLLixianListener;
// compiled from: LoginHelper.java
final class f extends XLLixianListener {
final /* synthetic */ LoginHelper a;
f(LoginHelper loginHelper) {
this.a = log... | 32.642857 | 117 | 0.654267 |
c0f78ffb0356021122b3b34700b87ce5bae8b789 | 649 | package cf.litetech.additions.mixin.server;
import cf.litetech.additions.carpet.CarpetAddonsSettings;
import net.minecraft.server.command.TeamCommand;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.ModifyArg;
@Mixin(TeamCommand.c... | 36.055556 | 97 | 0.762712 |
19b0c0a49906826148337a743246c49f5946c51b | 402 | package exception;
/**
*
* throw if there are some in-game problems like unexpected states or something like that
*
*/
public class FunctionalException extends RuntimeException {
private static final long serialVersionUID = 1672251038884875668L;
public FunctionalException(String message) {
super(messa... | 19.142857 | 89 | 0.741294 |
10e74d7ae86d16ee28781c6f94622ff32e4251c8 | 1,659 | package org.ihtsdo.buildcloud.service.file;
import org.ihtsdo.buildcloud.manifest.ListingType;
import org.ihtsdo.buildcloud.service.build.RF2Constants;
import org.ihtsdo.otf.rest.exception.ResourceNotFoundException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarsha... | 38.581395 | 155 | 0.791441 |
dbf105932f6a65cb38ec02772ba5ed7e56a77331 | 3,004 | package com.udp.nb.entity;
import com.udp.nb.util.JavaBytesUtils;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;
@Data
@Slf4j
public class AirSwitchData {
private String pver; //1协议的版本号
private String cmd;//1类型
private Integer ver;//1
private ... | 34.930233 | 78 | 0.586551 |
a4357ada72e02a34e76f8d93322b270f12da249f | 1,650 | /*
* Copyright 2021 Marcus Portmann
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 33 | 99 | 0.759394 |
d4cba8f8e3be3733dfae5eba67b4d3a91deb6c9a | 2,040 | package org.isis.gme.bon;
import org.isis.gme.mga.*;
public class JBuilderConnection extends JBuilderObject
{
protected JBuilderModel owner;
protected JBuilderObject src;
protected JBuilderObject dst;
public JBuilderConnection(MgaSimpleConnection iConn, JBuilderModel parent)
{ super(iConn,parent);... | 21.935484 | 91 | 0.678922 |
9519eae9db6cdc9910c288c0f74f62e345a908da | 261 | package com.getfei.jobSpider.util.data;
import lombok.Getter;
import lombok.Setter;
/**
* 统计
* @author lroy
*
*/
@Getter
@Setter
public class Statistics {
private Integer visitCount;
private Integer technologyCount;
private Integer analysisCount;
}
| 13.05 | 39 | 0.743295 |
1e097b6a10ebfe5e5bd73d555effbecd31d9bc96 | 10,494 | /*
* 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 ... | 54.373057 | 109 | 0.743377 |
013ed49b723f855fd2a0611d539a6d6461c43b11 | 1,294 | /*
* Copyright 2019 is-land
*
* 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 w... | 29.409091 | 75 | 0.742658 |
c5957ad186c677f586410fc528ef4c3d53002bf9 | 885 | package me.star.system.dto;
import lombok.Data;
import me.star.base.BaseDTO;
import java.io.Serializable;
import java.util.Objects;
import java.util.Set;
/**
* @author Star Chou
* @description /
* @create 2022/1/8 20:28
*/
@Data
public class RoleDto extends BaseDTO implements Serializable {
private Long id;... | 18.061224 | 62 | 0.613559 |
425c13eab53bf74d704f91d45105d2b531b267a4 | 10,657 | package code.ponfee.commons.jedis;
import java.util.ArrayList;
import java.util.List;
/**
* redis list(列表)操作类
*
* @author Ponfee
*/
public class ListOperations extends JedisOperations {
ListOperations(JedisClient jedisClient) {
super(jedisClient);
}
/**
* 将一个或多个值 value 插入到列表 key 的表头
... | 30.711816 | 92 | 0.54293 |
6eb1122fd041eb249b9eb374800f014c1cfe37dc | 1,513 | package net.nameplate.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import io.netty.buffer.Unpooled;
import org.spongepowered.asm.mixin.injection.At;
... | 35.186047 | 107 | 0.760079 |
0f5a9cfa124058f41623533318bb3cf19d145644 | 11,384 | package com.unascribed.yttr.content.item;
import java.util.Collections;
import java.util.List;
import org.jetbrains.annotations.Nullable;
import com.unascribed.yttr.content.block.decor.CleavedBlockEntity;
import com.unascribed.yttr.init.YBlocks;
import com.unascribed.yttr.init.YItems;
import com.unascribed.yttr.init... | 34.186186 | 145 | 0.711437 |
5c2993edbae2094ddca6bab98d5b6ea3a371c2aa | 463 | public class BubbleSort<T extends Comparable<T>> {
public void sort(T[] array) {
int limit = array.length-1;
for (int i = 0; i < array.length; i++) {
int j = 0;
while (j < limit) {
if (array[j].compareTo(array[j + 1]) > 0) {
swap(array, j, j + 1);
}
j++;
}
limit--;
}
}
... | 16.535714 | 55 | 0.539957 |
8b46d91dd4107c3e751b3261a0592932dffcd083 | 2,467 | package sopra.tour.rest.mapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import sopra.tour.entity.Tour;
import sopra.tour.entity.TourMember;
import sopra.tour.rest.dto.TourGetDTO;
import sopra.tour.rest.dto.TourMembersGetDTO;
import sopra.tour.rest.dto.TourPostDT... | 43.280702 | 124 | 0.710174 |
54ed0f073ccbad6b8b6b09a7fdad4bc8ea277088 | 4,084 | package com.exasol.bucketfs.jsonrpc;
import static com.exasol.errorreporting.ExaError.messageBuilder;
import jakarta.json.JsonStructure;
import jakarta.json.bind.annotation.JsonbProperty;
/**
* The base class for {@link RpcCommand} that expect a JSON response payload. This simplifies processing the result for
* ch... | 30.939394 | 119 | 0.623653 |
0ebfec686e89121022b304e29e0a49c836a31e60 | 66 | package net.distortsm.api.systems;
public class ShieldRegen {
}
| 11 | 34 | 0.772727 |
2d09cad439b22cce20b57e46e144cc17edabb02b | 3,035 |
package org.projectvoodoo.screentestpatterns;
public class SaturationTables {
public static final int[] RED = {
127, 127, 127,
139, 123, 123,
150, 119, 119,
161, 115, 115,
170, 111, 111,
179, 107, 107,
188, 102, 102,
... | 23.897638 | 45 | 0.344646 |
31d232b32c3449ab31c749a26a2b463c000bf9cb | 10,123 | /*
* Copyright (C) 2015 Paul Burke
*
* 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... | 29.686217 | 80 | 0.747407 |
d447b0b99af63cfbe453fb9ec878a47180912fc5 | 4,577 | package com.llsoft.entest;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.Filterable;
import android.widget.TextView;
public class TestL... | 33.408759 | 113 | 0.681451 |
09257a772dfa88f36ae8fb96bfd2924a66253183 | 4,333 | package com.poomoo.edao.activity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.google.gson.Gson;
import com.poomoo.edao.R;
import com.poomoo.edao.adapter... | 29.678082 | 97 | 0.684514 |
97a493fd207a6009483f0316d9216fce4708e200 | 265 | package smallworld.core;
class SmallInt extends SmallObject {
public int value;
public SmallInt(SmallObject IntegerClass, int v) {
super(IntegerClass, 0);
value = v;
}
@Override
public String toString() {
return "SmallInt: " + value;
}
}
| 16.5625 | 52 | 0.671698 |
7291bdce84889e00bd41e75293b0a33da3ade245 | 1,609 | /*
* Copyright (c) 2020.
* Created by YoloSanta
* Created On 10/22/20, 1:23 AM
*/
package net.hcriots.hcfactions.team.commands.team;
import cc.fyre.stark.Stark;
import cc.fyre.stark.engine.command.Command;
import cc.fyre.stark.engine.command.data.parameter.Param;
import net.hcriots.hcfactions.Hulu;
import net.hcr... | 34.978261 | 196 | 0.659416 |
a5fae7236bb798cbeb3afe9f8e59e148ba25d698 | 14,462 | package com.adapter.files;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.... | 40.968839 | 199 | 0.631033 |
b9fc85769472b5e365053b4cf54b0ba315430a69 | 1,015 | package org.java.smartrestaurant.repository;
import org.java.smartrestaurant.model.Dish;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
... | 29.852941 | 74 | 0.757635 |
80289200a5f83c330c90a7af11f339ab6f88c014 | 2,253 | /*
* Copyright 2017 Apereo
*
* 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.136364 | 91 | 0.764314 |
16b58acfc6d0a38b1952c7c5566f7e40e0c036a3 | 1,940 | package bapspatil.pantheon.adapters;
import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.ArrayList;
import bapspatil.pantheon.R;
import bapspatil... | 32.333333 | 116 | 0.739691 |
1e70300268951d2f4351e8cb1b7aa2e7b12e210e | 753 | package io.featurehub.client;
import io.opentracing.Span;
import static io.featurehub.client.interceptor.OpenTracingValueInterceptor.FEATUREHUB_OPENTRACING_BAGGAGE_PREFIX;
/**
* A set of utilities allowing injection of feature states into the current OpenTracing span that
* something down the line can pick up.
*/... | 32.73913 | 113 | 0.75166 |
60e3617c085470c114e0aa3575b3e507a9267cc8 | 2,353 | /*
* Copyright 2014 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 27.682353 | 84 | 0.659584 |
bb7a5aa5aa0fe52c87e9c32e9e1442dad38fe1a0 | 25,965 | /*
* Copyright © 2018-2021 Apple Inc. and the ServiceTalk project 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 ... | 51.415842 | 119 | 0.650684 |
ab79d83f3df2a92911ec007e124a8e37b584d978 | 1,019 | package com.supportportal.listner;
import com.supportportal.service.LoginAttemptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent;
import org.s... | 36.392857 | 98 | 0.792934 |
e6516fd487f50a3c4776b20a448acf881b79e41a | 10,516 | /*
* Copyright 2021-2022 Rudy De Busscher (https://www.atbash.be)
*
* 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 requir... | 37.423488 | 135 | 0.691993 |
3c4b99bdf2dfe4b74fc0e0a4235bed234422e001 | 6,228 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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... | 37.97561 | 222 | 0.683365 |
14e5bbb96390d90c9a05070d876dab1e06abb178 | 1,307 | package com.alibaba.idst.nls.uds.core.engine;
import com.alibaba.idst.nls.uds.core.context.DialogSessionImpl;
import com.alibaba.idst.nls.uds.response.DialogResultElement;
import com.alibaba.idst.nlu.response.common.NluResultElement;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation... | 29.044444 | 102 | 0.704667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.