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 |
|---|---|---|---|---|---|
5350e4374359f25c46533872c2c77060f3008213 | 3,490 | package com.rbkmoney.newway.handler.dominant.impl;
import com.rbkmoney.damsel.domain.*;
import com.rbkmoney.newway.dao.dominant.iface.DomainObjectDao;
import com.rbkmoney.newway.dao.dominant.impl.PaymentMethodDaoImpl;
import com.rbkmoney.newway.domain.enums.PaymentMethodType;
import com.rbkmoney.newway.domain.tables.p... | 39.213483 | 111 | 0.719484 |
e5eade3dad6bdb677c89b0f085559f4833feef0e | 442 | package com.deer.wms.bill.manage.model;
import com.deer.wms.project.seed.core.service.QueryParams;
/**
* Created by on 2019/02/21.
*/
public class MtAlonePrintModelParams extends QueryParams {
/**
* 模版类型
*/
private Integer printModelType;
public Integer getPrintModelType() {
return printMo... | 19.217391 | 59 | 0.710407 |
f5816c87fae5208e0eccd3c660f37c09beeb6cbb | 1,224 | /*
* Copyright 2017 Andrii Horishnii
*
* 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 agree... | 24.979592 | 75 | 0.700163 |
4c0f3387aaacf1453acd64b1a6a4819c3a72231b | 3,199 | package it.polimi.vovarini.model.godcards;
import it.polimi.vovarini.common.exceptions.BoxFullException;
import it.polimi.vovarini.common.exceptions.InvalidNumberOfPlayersException;
import it.polimi.vovarini.common.exceptions.InvalidPositionException;
import it.polimi.vovarini.model.Game;
import it.polimi.vovarini.mod... | 31.362745 | 114 | 0.70522 |
6e48112f4be9e3ce0e58c824a52289d7d7a774f3 | 499 | package eu.f3rog.blade.compiler;
import javax.annotation.processing.RoundEnvironment;
import javax.lang.model.element.TypeElement;
import eu.f3rog.blade.compiler.util.ProcessorError;
/**
* Interface {@link ProcessorModule}
*
* @author FrantisekGazo
* @version 2015-12-19
*/
public interface ProcessorModule {
... | 20.791667 | 66 | 0.777555 |
5cd6f975203d34b10f0892213cbe828ebf77a886 | 589 | package com.anteoy.coreJava.reflect;
public class ClassDemo2 {
public static void main(String[] args) {
Class c1 = int.class;//int ��������
Class c2 = String.class;//String��������� String���ֽ��루�Լ�������)
Class c3 = double.class;
Class c4 = Double.class;
Class c5 = void.... | 29.45 | 75 | 0.548387 |
83d4e2f11b61970c11b818b4e8a26b50c787fe7e | 704 | package it.polimi.ingsw.message.updateMsg;
import it.polimi.ingsw.message.ViewObserver;
import it.polimi.ingsw.message.viewMsg.ViewGameMsg;
/**
* Turn Controller --> VV --> CLI/GUI
*
* msg send from Server to client to notify him that is not his turn
* but another player is actually playing
*/
public class VWait... | 24.275862 | 68 | 0.704545 |
45bf05bd096987370fefe3be7da7af7c7ef4c4ba | 359 | package be.woutschoovaerts.mollie.data.permission;
import be.woutschoovaerts.mollie.data.common.Link;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PermissionLinks {
private Link sel... | 17.95 | 50 | 0.81337 |
1efd8ed1989a98272018b9891445d2c222bda3a7 | 1,238 | /*
* Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
*/
package com.openiot.cloud.base.profiling;
import static java.nio.file.StandardOpenOption.APPEND;
import static java.nio.file.StandardOpenOption.CREATE;
import com.openiot.cloud.base.help.BaseUtil;
import java.io.... | 30.195122 | 97 | 0.761712 |
8d7a3d56dfca812b331db66bfd788bd41b53008b | 41,395 | /*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... | 52.069182 | 243 | 0.647325 |
1f25a93ff7e9a6986901768dd8f950a66331da4a | 820 | package org.jlab.smoothness.presentation.util;
import java.util.logging.Logger;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
@WebListener
public class ConfigurationParameterInit implements Servl... | 28.275862 | 75 | 0.752439 |
b2bd47fc0167261baef54a5e4036c5480912c4d6 | 10,101 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 37.136029 | 174 | 0.665083 |
7e330587cac265204a8d6ebb91f926827611b122 | 1,180 | package com.optilink.android.boilerplate.flux.action;
import android.support.v4.util.ArrayMap;
public class ActionImpl implements Action<ArrayMap<String, Object>> {
private String type;
private ArrayMap<String, Object> dataMap;
public ActionImpl(String type, Object... params) {
this.type = type;... | 24.081633 | 73 | 0.541525 |
709fe63992171d61f7aaf2e527066a340b610b03 | 2,615 | package io.zero88.qwe;
import java.util.Objects;
import java.util.concurrent.CountDownLatch;
import io.github.zero88.utils.Strings;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Handler;
import io.vertx.core.Verticle;
import io.vertx.core.Vertx;
import io.vertx.ext.unit.TestContext;
import io.vertx.jun... | 40.859375 | 118 | 0.604207 |
fccf26aa53e9820b51de3ea3977b5e3b6bade8ee | 24,145 | /*
* Copyright 2016, 2017 DTCC, Fujitsu Australia Software Technology, IBM - 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/license... | 34.296875 | 173 | 0.637979 |
6a6350fb6913177ab108e86b933363b66baed23a | 4,170 | package com.desklampstudios.thyroxine.eighth.model;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
public class EighthActvInstance {
public static final int FLAG_ALL = 7168;
public static final int FLAG_ATTENDANCETAKEN = 1024;
public static final int FLAG_CANCELLED ... | 32.578125 | 97 | 0.593525 |
716735be9624d0acac3bc50eb3d15ac635adf989 | 2,377 | package com.sidchai.music.result;
import lombok.Getter;
import lombok.ToString;
/**
* @Author sidchai
* @since 2020-05-20
*/
@Getter
@ToString
public enum ResultCodeEnum {
SUCCESS(true, 20000,"成功"),
UNKNOWN_REASON(false, 20001, "未知错误"),
BAD_SQL_GRAMMAR(false, 21001, "sql语法错误"),
JSON_PARSE_ERROR(f... | 31.276316 | 68 | 0.706353 |
4340f474700571768bf7335f0a4d23974eefb2cf | 179 | public class shuzu3{
public static void main(String[] args){
int a[]={11,12,13};
for(int i=2;i>=0;i--){
System.out.println(a[i]);
}
}
} | 22.375 | 43 | 0.480447 |
7eb84c3ffe99f9fa53aaf545ce7a186b4ca1513b | 955 | package com.github.davetrencher.timone.util;
import com.github.davetrencher.timone.TunnelPlugin;
import com.intellij.openapi.ui.MessageType;
import com.intellij.openapi.ui.popup.Balloon;
import com.intellij.openapi.ui.popup.JBPopupFactory;
import com.intellij.openapi.wm.StatusBar;
import com.intellij.ui.awt.RelativePo... | 29.84375 | 75 | 0.698429 |
5cb8d2450b05145bceff0724a6c86be207c32fad | 1,216 | /*
* Copyright 1999,2004 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... | 27.022222 | 80 | 0.711349 |
5d550ad54c4bd6e4813ee4c521dffa2153637a13 | 11,021 | // ========================================================================
// Copyright 2009 NEXCOM Systems
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
... | 31.760807 | 137 | 0.73115 |
60aca071fafab812bc6d9ea50888a64dcc00eb9a | 199 |
import java.lang.Thread;
public class HelloSleep {
public static void main (String[] args)
throws InterruptedException {
System.out.println("Hello, New World!");
Thread.sleep(1000);
}
}
| 16.583333 | 42 | 0.708543 |
d45c516734f6a12e60afe648f49848b7dad5d85c | 4,102 | package java.lang;
import android.os.Build;
import com.sundayliu.utils.IOHelper;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.callbacks.XC_LoadPackage;
import info.loveai.xposed.xdebuggable.XDumpDex;
import java.lang.reflect.Method;
import sta... | 49.421687 | 122 | 0.440761 |
ee3655cbf15bb3517db425554f24f46fe1e6cbd6 | 182 | package org.sms.entity;
public class VideoLibrary {
private int id;
private String videoUrl;
private String subjectName;
private String levelNo;
private String description;
}
| 16.545455 | 28 | 0.785714 |
7dfa3ebbe16a91e994a4b8e3766138a625b640e5 | 2,156 | /*
* Copyright 2012 M3, 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 ... | 29.534247 | 113 | 0.697124 |
13878957609919a1b6a29db5c8af22de9540b101 | 783 | package breadthfirst;
import graph.Edge;
import graph.Node;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Queue;
public class BreadthFirst {
public ArrayList<Node> BreathFirst(Node node){
ArrayList<Node> visited = new ArrayList<Node>();
Queue... | 21.162162 | 56 | 0.563218 |
ef999b0863f3a1b8de24cd9e64d64ae8944dada7 | 575 | package ch.uzh.ifi.hase.soprafs21.rest.dto;
public class ChatGetDTO {
private String message;
private long lobby;
private String timestamp;
public String getTimestamp() {
return timestamp;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
p... | 19.166667 | 48 | 0.629565 |
e037cce8a10fc3abb5c5c7260933257430d45de0 | 1,384 | package culebra.viz;
import java.util.ArrayList;
import processing.core.*;
/**
* Path Class by Daniel Shiffman
* @author Daniel Shiffman
*
*/
public class Path extends PApplet {
private ArrayList<PVector> points;
private float radius = 20.0f;
/**
* Constructor
*/
public Path() {
points = new ArrayList<P... | 17.974026 | 50 | 0.630058 |
a186f9f3702e2a9daa881514376bef02a0600121 | 1,584 | /*
Copyright (C) 2010 Copyright 2010 Google Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed i... | 24.369231 | 75 | 0.749369 |
1730b58bce4bcb9779b641180a4e8e896c7c6674 | 2,010 | /*******************************************************************************
* Copyright (c) 2018, 2020 ArSysOp
*
* 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.a... | 38.653846 | 123 | 0.699502 |
dc8aa1ed35514c66814f9ef8470d114e6b62325a | 1,738 | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 35.469388 | 112 | 0.696778 |
70aa08947267953f746fa82a1799dc440e3edf4e | 491 | package twistrating.commands;
import org.axonframework.commandhandling.annotation.TargetAggregateIdentifier;
public class RateTwistCommand {
@TargetAggregateIdentifier
private final String twistId;
private final int rating;
public RateTwistCommand(String twistId, int rating) {
this.twistId =... | 20.458333 | 78 | 0.690428 |
9ccda9dede6ca8e756b98aac6fad7f440648a3f4 | 1,147 | package jp.classmethod.spring_stateless_csrf_filter.example_thymeleaf3.model.repository;
import jp.classmethod.spring_stateless_csrf_filter.example_thymeleaf3.infra.EntityStore;
import jp.classmethod.spring_stateless_csrf_filter.example_thymeleaf3.model.entity.User;
import org.springframework.beans.factory.Initializin... | 27.309524 | 88 | 0.734961 |
913fceee2346faf5e44e9b2bff47b666281ad273 | 1,888 | /*
* Copyright 2021-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 37.76 | 141 | 0.771186 |
0d4d0b28ee5e6e0d7613d60917551dac33dedc96 | 6,151 | /**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
/*
* ---------------------------------------------------------------------------------------------------------------------
* AUTO-GENERATED CLASS - DO NOT EDIT MANUALLY - for any changes edit CharChunkPool and regenerate
* --------------------... | 43.316901 | 140 | 0.694846 |
0367b8ccb36793f0253c8c525ea11a4b87bf1d53 | 2,296 | package com.labyrinth.game.Screen;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.scenes.scene2d.Event;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputEvent.Type;
import com.badlogic.gdx.scene... | 30.613333 | 93 | 0.58101 |
5d8a0e361b6f1a57f21c23386c2885c3c8c52e9b | 654 | import org.junit.Assert;
import org.junit.Test;
public class Q00307mTest {
@Test
public void test() {
Q00307m numArray = new Q00307m(new int[]{1, 3, 5, 4, 2});
Assert.assertEquals(9, numArray.sumRange(0, 2)); // 返回 9 ,sum([1,3,5]) = 9
Assert.assertEquals(13, numArray.sumRange(0, 3)); /... | 38.470588 | 83 | 0.571865 |
4636a2752ca488432912faf79adf42ce74567384 | 1,632 | package org.tenwell.identity.common.resolver;
import java.sql.SQLException;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.MessageSourc... | 36.266667 | 128 | 0.772059 |
6616de80f076a854ceef2b3b416e43693a6f2ddd | 490 | package lumberwizard.scholarlyarcana.world.spell;
import net.minecraft.world.InteractionResultHolder;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.Level;
public class Firebolt extends Spell {
public Firebolt() {
super(TargetT... | 25.789474 | 106 | 0.757143 |
1e86094bf2a8751e48953f80936e1e84cfcf0c43 | 5,901 | package io.quarkus.oidc.client;
import java.time.Duration;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import io.quarkus.oidc.common.runtime.OidcCommonConfig;
import io.quarkus.oidc.common.runtime.OidcConstants;
import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.a... | 30.895288 | 128 | 0.64023 |
6e20f8a96cfbf0d886c1cdfdfba1cf13eac89cab | 649 | package iterator_java_util;
import java.util.Arrays;
import java.util.List;
import domein.CafeMenu;
import domein.DinerMenu;
import domein.Menu;
import domein.PancakeHouseMenu;
import domein.Waitress;
public class IteratorStartUp {
public static void main(String args[]) {
//PancakeHouseMenu pancake... | 24.961538 | 93 | 0.728814 |
f2f7b17152b2ebdfe437f5cb07cfd175a1333152 | 516 | package com.gmail.imshhui.easy;
import org.junit.Assert;
import org.junit.Test;
/**
* User: liyulin
* Date: 2020/1/13
*/
public class AssignCookiesTEst {
AssignCookies client = new AssignCookies();
@Test
public void findContentChildren() {
int[] g = {1, 2, 3};
int[] s = ... | 23.454545 | 107 | 0.593023 |
0e2212f056fdadcc279ebb0505ea33b0de1b812f | 3,613 | /*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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... | 31.692982 | 119 | 0.603653 |
4c1e8f5968ad3791e8c5701d32b0c3e023fc0969 | 29,841 | /**
* 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... | 34.104 | 124 | 0.684293 |
638fb1f499d48fa1ad84498c6be866fb2eaf3dea | 23,167 | // 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.idea.devkit.references;
import com.intellij.codeInsight.daemon.EmptyResolveMessageProvider;
import com.intellij.codeInsight.lookup.LookupElement;
import com... | 43.546992 | 140 | 0.673587 |
65bd2ad6915fceff8c8e06302177a3a58fd84a9e | 4,903 | /*
* Copyright (c) 2010-2014. Axon Framework
*
* 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 ... | 39.861789 | 117 | 0.664287 |
2d85107566f27783cd2462d5c3b8e0487274a01b | 2,114 | package softuni.angular.services.impl;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.modelmapper.ModelMapper;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.stereotype.Service;
import softuni.angular.exception.GlobalSe... | 40.653846 | 104 | 0.71334 |
7f2bbc538c436d45997ff7265d8140e4711cb302 | 124 | package com.faforever.commons.api.dto;
public enum ModerationReportStatus {
AWAITING, PROCESSING, COMPLETED, DISCARDED
}
| 20.666667 | 44 | 0.806452 |
49091047235d5267c67a73888c442ed36cd866c8 | 5,045 | package io.github.vampirestudios.gadget.programs.system.layout;
import io.github.vampirestudios.gadget.api.AppInfo;
import io.github.vampirestudios.gadget.api.ApplicationManager;
import io.github.vampirestudios.gadget.api.app.Dialog;
import io.github.vampirestudios.gadget.api.app.Layout;
import io.github.vampirestudio... | 44.254386 | 219 | 0.672547 |
9920fefac7ef5b5c6b3b7dda8f00a3e7f88aa417 | 446 | package io.freefair.gradle.plugins;
import lombok.Data;
import org.gradle.api.Project;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.provider.Property;
import javax.inject.Inject;
@Data
public class AspectJExtension {
private final Property<String> version;
@Inject
public AspectJExte... | 22.3 | 80 | 0.757848 |
55bcd26c27a023109109bdfff48ee468a76f182b | 12,732 | /**
* 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... | 34.134048 | 117 | 0.636192 |
5ffe2e551583a16bddcd4ae42a7bbd015b1555bf | 567 | package com.cloud.tao.callback;
import android.view.View;
/**
* 防止过快多次点击
* Created by zeda on 16/3/2.
*/
public abstract class NoDoubleClickListener implements View.OnClickListener {
private static final long CLICK_SPACE = 500 ;
private long lastClickTime = 0;
@Override
public synchronized void ... | 21.807692 | 77 | 0.670194 |
34ed9d9968618f7d67dd49b95666e74d0c1eebb2 | 356 | package softuni.heroes.services.models.heroes;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import softuni.heroes.data.models.enums.Gender;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class HeroCreateServiceModel {
private String... | 19.777778 | 47 | 0.817416 |
ec0553b86894da89c5b51b8038b39ce9a29de4f5 | 740 | package visualfamilyclassifier;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class VisualFamilyClassifier extends Application {
@Override
public void start(Sta... | 25.517241 | 92 | 0.672973 |
30c86c3afb7ab9d1faa63e34f2c6503dfc0af495 | 933 | package com.nukkitx.protocol.genoa.v425.serializer;
import com.nukkitx.protocol.bedrock.BedrockPacketHelper;
import com.nukkitx.protocol.bedrock.BedrockPacketSerializer;
import com.nukkitx.protocol.genoa.packet.GenoaEventFlatbufferPacket;
import io.netty.buffer.ByteBuf;
import java.util.UUID;
public class GenoaEvent... | 35.884615 | 115 | 0.800643 |
7338523b3f4d57a2c73deae2ef5156cc2d0c922a | 928 | package br.com.pict.model;
import java.util.Date;
/**
*
* @author Iarley
*/
public class Logs {
// ============== Campos =================
private Integer id;
private Date dataEntrada;
private Date dataSaida;
// ================ Relações 1 para N =======================
private Pessoa pe... | 17.509434 | 61 | 0.539871 |
8c523e20c196b02b5721d51bfbb75787775db6e5 | 2,908 | package seedu.address.storage;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import seedu.address.commons.exceptions.Ille... | 33.425287 | 104 | 0.656465 |
d218b8bcf89eb9c1f7348bf04acef7cc6531634e | 6,413 | package ezvcard.property;
import static ezvcard.property.PropertySensei.assertCopy;
import static ezvcard.property.PropertySensei.assertEqualsMethod;
import static ezvcard.property.PropertySensei.assertNothingIsEqual;
import static ezvcard.property.PropertySensei.assertValidate;
import static org.junit.Assert.assertEq... | 34.478495 | 100 | 0.752534 |
c91cc3d1d02329d3af99a7535acd39359cb9debe | 2,090 | package com.cloud.api.command.admin.vm;
import com.cloud.api.APICommand;
import com.cloud.api.APICommandGroup;
import com.cloud.api.ApiErrorCode;
import com.cloud.api.ResponseObject.ResponseView;
import com.cloud.api.ServerApiException;
import com.cloud.api.command.user.vm.RestoreVMCmd;
import com.cloud.api.response.U... | 47.5 | 197 | 0.767943 |
08ac45fd8f6675fc9c3abd010b5e41227e7317c2 | 3,891 | /*
* 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 ... | 29.477273 | 90 | 0.711899 |
38233cbdc8c543efdc24c868c9f46229d3451cef | 1,934 | package py.com.volpe.cotizacion;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
... | 36.490566 | 118 | 0.713547 |
1b80951784c867ec8a5b4bd81f3746772f9a7f8b | 3,182 | /*
* Copyright 2017-2022 original 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 applicable law or agr... | 41.324675 | 212 | 0.761157 |
22c4790e249a82674def474cac7e355fc9c18ea7 | 1,738 | package cn.ucloud.common.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
/**
* @description: java model 工具
* @author: codezhang
* @date: 2018-09-17 16:06
**/
public class GetAndSetUtil {
private static Logger logger = LoggerFac... | 26.333333 | 90 | 0.605869 |
91c8bceef6acc5719a3b5b53c7bb88a0ac3c0038 | 3,964 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 22.39548 | 75 | 0.650605 |
34afed7d5af9a167d24de8a00e90b0484122f397 | 4,911 | /*
* Copyright (c) 2008-2015, Esri(China), Inc. All Rights Reserved.
* @author chenhao
* @email chenh@esrichina.com.cn
* @since 2015.09.29
*/
package cn.com.esrichina.adapter.openstack;
import org.apache.http.HttpStatus;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logg... | 39.926829 | 135 | 0.495011 |
e35117f712303fa0eefbb1fef291be6e19383194 | 2,090 | package net.jforum.util.legacy.clickstream;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import net.jforum.util.legacy.clickstream.config.ClickstreamConfig;
import net.jforum.util.legacy.clickstream.config.ConfigLoader;
/**
* Determines if a request is actually a ... | 26.794872 | 105 | 0.662201 |
428c9ab00e41989bc8f20234929f73d7e7d2eaf9 | 1,293 | package codebot.commands.random;
import codebot.Command;
import net.dv8tion.jda.core.entities.Message;
import java.util.Random;
class EightBall extends Command {
EightBall() {
name = "8ball";
info = "Predicts the future (don't drink the blue liquid)";
usage.add("");
usage.add("que... | 30.069767 | 97 | 0.490333 |
0e9da14562600a3d85f38c684d4f52128d43dc9d | 1,788 | package com.td.admin.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.td.admin.entity.SysParam;
import com.td.admin.mapper.SysParamMapper;
@Service
public class Par... | 22.074074 | 117 | 0.733781 |
158fe28feb502ce0340224afe3ac71d1098ffd32 | 291 | package com.github.jiahaowen.spring.assistant.component.rule.model;
/**
* @author jiahaowen.jhw
* @version $Id: RuleCondition.java, v 0.1 2016-12-07 下午6:53 jiahaowen.jhw Exp $
*/
public interface RuleCondition {
String description();
boolean condition();
String code();
}
| 19.4 | 80 | 0.701031 |
b2e2d71c5137a5408ae62a7a5240d900cc49dafd | 1,029 | package com.playernguyen.optecoprime.utils;
import com.playernguyen.optecoprime.utils.NumberUtil.FlexibleNumber;
import com.playernguyen.optecoprime.utils.NumberUtil.NumberFilter;
import org.junit.Assert;
import org.junit.Test;
public class NumberUtilTest {
@Test
public void shouldReturnAsNumberDouble() {
... | 27.078947 | 68 | 0.670554 |
d09164667cfd583e4299bc397b30d5f1f24e82d5 | 1,170 | package com.fun.mybatis.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.contex... | 30 | 81 | 0.808547 |
db30ed529809b75acf241a1d489b4d59e6016ffb | 1,382 | // Copyright 2012 Google 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 required by applicable... | 30.711111 | 75 | 0.74602 |
a66bffc39001298d422ce999f300037f099257e9 | 1,376 | package rules.entities.conditions.lookup;
import org.json.JSONObject;
import rules.entities.conditions.ConditionLookup;
import rules.entities.conditions.ConditionParameter;
/**
* Created by christopher on 10.08.16.
*/
public class ConditionLookupTable {
String tableId;
ConditionParameter row;
Conditi... | 26.980392 | 100 | 0.68314 |
ae49033dcfbf41e1f6a26c69fb075a9a26fce630 | 2,052 | package demo.metrics;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import lombok.Builder;
import lombok.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bi... | 29.73913 | 87 | 0.625244 |
6b231f1c592e66128334686ea1d6eb4a41ad2b60 | 5,700 | package org.lared.desinventar.dbase;
import java.sql.*;
import java.io.*;
import org.lared.desinventar.dbase.*;
/**
* Class to handle DBase IV memo fields.
*
* @since 2.01
*/
public class DBASEIVMemoHandler extends MemoHandler
{
/**
* Mysterious bytes written to the start of each memo record.
*/
private final by... | 28.217822 | 97 | 0.675263 |
83a363ef246d815966e2001adf59a420ef20a42f | 2,537 | /*
* Copyright ConsenSys AG.
*
* 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 writ... | 34.753425 | 80 | 0.712653 |
3de0962e1ea2c5cc19709c58eba826e827f75a36 | 3,777 | /*
* 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
* distrib... | 26.787234 | 102 | 0.780514 |
364915ceee940f221cbd89125d6eab1690dfd83e | 2,982 | package pwe.planner.logic.commands;
import static pwe.planner.logic.commands.CommandTestUtil.assertCommandSuccess;
import static pwe.planner.testutil.TypicalDegreePlanners.getTypicalDegreePlannerList;
import static pwe.planner.testutil.TypicalModules.getTypicalModuleList;
import static pwe.planner.testutil.TypicalRequ... | 41.416667 | 119 | 0.756204 |
b4d0005d5c473080d3e351853435926f7e921785 | 20,737 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
... | 24.001157 | 92 | 0.681969 |
dfc87ff4142c74a94b113aa56f3dbc4d7066eb77 | 3,272 | package com.mycompany.customerservice.model;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.util.Date;
import java.util.Objects;
@Entity
@Table(name = "customer")
public class Customer {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@NotNull(... | 27.495798 | 82 | 0.61522 |
2b816094015cb110aeb5b2d80474d66e2feccf6e | 2,252 |
package com.gp.health.ui.member_profile.member_ads;
import androidx.lifecycle.MutableLiveData;
import com.gp.health.data.DataManager;
import com.gp.health.data.models.AdAndOrderModel;
import com.gp.health.data.models.PagDataWrapperModel;
import com.gp.health.ui.base.BaseViewModel;
import com.gp.health.utils.rx.Sched... | 35.1875 | 93 | 0.624334 |
afb309880fb68b8e0136f254bf66a19c60e2bd32 | 3,093 | package de.metas.dunning.api.impl;
/*
* #%L
* de.metas.dunning
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 2 of the
* Licen... | 24.354331 | 97 | 0.722599 |
08bbbb2caeee7ff59937db934c2415f0d4e90b7a | 752 | package de.felixklauke.avalance.core;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import de.felixklauke.avalance.core.config.AvalanceCoreConfig;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
/**
* @... | 25.931034 | 67 | 0.771277 |
a8adace4eb249d4cef0f2ea4a94a227a5db862d4 | 2,320 | /*
* Copyright 2019 Albert Tregnaghi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 41.428571 | 93 | 0.751724 |
514ff25df43bcf4171118f75d8ec80f147c0a8c1 | 11,070 | package com.cncounter.druid.web.util;
import org.apache.http.*;
import org.apache.http.client.HttpClient;
import org.apache.http.client.params.ClientPNames;
import org.apache.http.client.params.CookiePolicy;
import org.apache.http.client.utils.URIUtils;
import org.apache.http.impl.client.DefaultHttpClient;
import org... | 39.255319 | 124 | 0.624119 |
e116c6365d29cb14e06946331c812377060ff057 | 432 | package com.eletter.gr.springboot;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.logging.Logger;
@Controller
public class IndexController {
private final Logger logger = Logger.getLogger(this.getC... | 24 | 78 | 0.75 |
e8757e5958d9ce24be1a232736d5e711b4df3343 | 589 | /*
* Copyright 2019 YugaByte, Inc. and Contributors
*
* Licensed under the Polyform Free Trial License 1.0.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://github.com/YugaByte/yugabyte-db/blob/master/licenses/POLYFORM-... | 23.56 | 105 | 0.701188 |
23c01ce454e044cefd3bca7eec52a163471c99ca | 1,798 | package com.web.cost.entity;
import com.app.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 客户BOM附件关... | 21.662651 | 71 | 0.659066 |
a0c9bc5b44349acc37ae93bdcefc53baf0842ba3 | 19,439 | import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.nio.charset.Charset;
import java.util.Date;
import com.pi4j.io.gpio.*;
import com.pi4j.io.serial.*;
import com.pi4j.wiringpi.SoftPwm;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import ja... | 29.542553 | 106 | 0.499357 |
3be4dd8dc0d4147680f28d285b61dc11e064ee52 | 4,026 | package com.github.fromi.chess.material;
import static com.github.fromi.chess.material.Piece.Color.BLACK;
import static com.github.fromi.chess.material.Piece.Color.WHITE;
import static com.github.fromi.chess.material.util.Squares.*;
import org.junit.Rule;
import org.junit.Test;
import com.github.fromi.chess.material... | 39.470588 | 90 | 0.5539 |
cbf41c5f56061ac693faa4a147542e88b4907976 | 294 | package algo.tzashinorpu.SecondRound.Chapter07;
import org.junit.jupiter.api.Test;
class permute_047Test {
@Test
void permuteUnique() {
permute_047 instance = new permute_047();
int[] ints = {1, 2, 1};
System.out.println(instance.permuteUnique(ints));
}
} | 22.615385 | 57 | 0.663265 |
d3be570d4a0df85640343d967a8781e04c607736 | 7,265 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 40.814607 | 119 | 0.596696 |
492e6a35e8488332c474aaafe323a2b9998bf355 | 3,174 | package com.ferg.awful.user;
import org.htmlcleaner.CleanerProperties;
import org.htmlcleaner.HtmlCleaner;
import org.htmlcleaner.SimpleHtmlSerializer;
import org.htmlcleaner.TagNode;
import org.htmlcleaner.XPatherException;
import android.util.Log;
import java.util.HashMap;
import com.ferg.awful.constants.Constants... | 29.943396 | 90 | 0.624134 |
923f5d510970247d55329da2dc5ff5dea2102588 | 260 | package org.sif.beans;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = "org.sif.beans")
public class ApplicationContextTestConfigurer {
}
| 23.636364 | 60 | 0.838462 |
a7fd73b4e2ba34cbdccf39c48d380e3b124f345c | 510 | package drlc.generate.drc1.instruction.address;
import drlc.generate.drc1.DataInfo;
public abstract class InstructionALU extends InstructionAddress {
public InstructionALU(DataInfo info) {
super(info);
}
@Override
public boolean isCurrentRegisterValueModified() {
return true;
}
@Override
public boole... | 16.451613 | 65 | 0.74902 |
6156a17d7e2bde97b77a9dd17ace70d7ef12aeec | 362 | package net.schattenkind.androidLove.utils;
public class Rectangle {
public float left;
public float top;
public float width;
public float height;
public Rectangle() {
this(0f, 0f, 0f, 0f);
}
public Rectangle(float left, float top, float width, float height) {
this.left = left;
this.top = top;
this.wi... | 18.1 | 69 | 0.696133 |
6d3dc5f02a5e655300207a92e301aab661d8864b | 949 | /**
* Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved.
*
* You may not modify, use, reproduce, or distribute this software except in
* compliance with the terms of the License at:
* https://github.com/javaee/tutorial-examples/LICENSE.txt
*/
package javaeetutorial.checkoutmodule;
im... | 23.146341 | 77 | 0.658588 |
5423a19fb152973625461b6c1784c1d340cf0b79 | 1,735 | package org.amv.vertx.spring.mqtt;
import io.vertx.mqtt.MqttServerOptions;
import io.vertx.rxjava.core.Vertx;
import io.vertx.rxjava.mqtt.MqttServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBea... | 36.145833 | 81 | 0.794813 |
3030e5c53ddad9a8347bd5ed264fef5a74612d85 | 576 | package org.logspin.extendChartForJava;
import com.github.abel533.echarts.series.Line;
import org.logspin.data.DataResource;
@SuppressWarnings("unused")
public class ELine extends Line implements SeriesExtend {
private DataResource dataResource = DataResource.Spin;
private String key = null;
@Override
... | 21.333333 | 58 | 0.689236 |
35962eeb5ad98a3863fee1e02144acfd6175e710 | 474 | /*
Copyright 2019 - 2021 VMware, Inc.
SPDX-License-Identifier: Apache-2.0
*/
package bootjson.session.gemfire;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.geode.config.annotation.EnableClusterAware;
@SpringBootAppl... | 22.571429 | 70 | 0.812236 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.