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 |
|---|---|---|---|---|---|
af245a9f36f7d8bedb4d1cd938004cdaf378d111 | 4,957 | /*
* 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 ... | 32.611842 | 105 | 0.677829 |
dbd1506aca8f2937f69666aacaca908f567b3fb8 | 1,161 | package org.jeecg.modules.business.vo;
import lombok.Data;
/**
* Created by zj on 2021/4/1.
*/
@Data
public class DeviceBroadEntity {
//动态信息部分
public String broadRecId;//动态信息ID
public String broadTime;//动态信息时间
public String broadDec;//动态信息描述
//设备故障报警信息部分
public String errorRecId;//故障记录ID
... | 25.23913 | 49 | 0.720069 |
ee5533b7ca54913e0f176247c9e4de22075d1d1a | 84 | package br.com.concretesolutions.audience.core;
public class ActorStorageTest {
}
| 14 | 47 | 0.809524 |
3f3dfc8f8b07d9b853aea9047ac7011a54657d8f | 378 | package mao.com.mao_wanandroid_client.compoent.event;
/**
* @author maoqitian
* @Description: 主题切换事件
* @date 2019/8/2 0002 11:26
*/
public class ThemeModeEvent {
int mode;
public ThemeModeEvent(int mode){
this.mode = mode;
}
public int getMode() {
return mode;
}
public v... | 15.75 | 53 | 0.608466 |
2fab542ac37539dd54ef2001c61d9ac9c63932af | 2,814 | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | 29.3125 | 88 | 0.590618 |
e2a0218732b55842a8931ab68f2097297c532a66 | 3,080 | /*
* Copyright (c) 2016, 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 Softwa... | 42.191781 | 88 | 0.683117 |
c47333f96208eec1f5ec63d0a972759c096c5164 | 2,564 | package com.jtorregrosa.meteoasv.aemet;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jtorregrosa.meteoasv.aemet.utils.ApiKeyInterceptor;
import com.jtorregrosa.meteoasv.aemet.utils.DefaultHeadersInterceptor;
import com.jtorregrosa.meteoasv.aemet.utils.TrustAllX509TrustManager;
import okhttp3.OkHttpCl... | 33.736842 | 115 | 0.709828 |
e8f26857e1ad35c6d00c8314230976ad0c199a60 | 247 | import java.io.PrintWriter;
public class Using_PrintWriter_Class
{
public static void main(String args[])
{
PrintWriter out = new PrintWriter(System.out,true);
out.println("Used the PrintWriter Class.");
}
}
| 22.454545 | 60 | 0.651822 |
12309860e505432a0fbfb6fff48a4f5a90966c9e | 510 | package cn.xhh.leetcode._059;
import org.junit.Assert;
import org.junit.Test;
/**
* SpiralMatrixIITest
*
* @author <a href="mailto:bigtiger02@gmail.com">xhh</a>
* @date 2020/11/21
*/
public class SpiralMatrixIITest {
private Solution solution = new Solution();
@Test
public void case1(){
int[... | 20.4 | 56 | 0.570588 |
93400a9434f455e3847990aa392229bc69c88835 | 641 | package g1801_1900.s1805_number_of_different_integers_in_a_string;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void numDifferentIntegers() {
assertThat(new Solution().numDifferentIn... | 26.708333 | 87 | 0.728549 |
271c558be9b621c2248fb6377265a93e54f5c0f1 | 3,095 | /*
* CloudReactor API
* CloudReactor API Documentation
*
* The version of the OpenAPI document: 0.2.0
* Contact: jeff@cloudreactor.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io... | 27.633929 | 134 | 0.667851 |
3ec5af975d36ccd61325da57d61a3fd1c02e00de | 460 | //Code to demonstrate difference between concatenation [seen in case of strings] and addition
public class Concat
{
public static void main(String[] args)
{
int a=11;
int b=7;
//Summing both the numbers a and b [treating them as integers]
System.out.println("Summation: "+(a+b));... | 32.857143 | 93 | 0.63913 |
787836d2e995e85476329646b110ebe056e1148e | 234 | package work.koreyoshi.constant;
/**
* @author zhoujx
*/
public class VideosUrl {
public final static String BASE_PATH = "https://www.nfmovies.com";
public final static String SEARCH = "/search.php?page=1&searchword=";
}
| 19.5 | 73 | 0.700855 |
8db037bc9bdc71bcfd738f9bac5eb5083f53ddb9 | 499 | /*
* Copyright (c) 2019 CascadeBot. All rights reserved.
* Licensed under the MIT license.
*/
package org.cascadebot.cascadebot.utils.language;
import org.cascadebot.cascadebot.data.language.Language;
import org.cascadebot.cascadebot.data.language.Locale;
public class LanguageUtils {
// TODO: Doc
public ... | 26.263158 | 96 | 0.725451 |
22d243adfb594b36303a2986ea91487b4eb27d3d | 99 | /*
*/
package gov.osti.doi;
/**
*
* @author ensornl
*/
public class DataCiteMetadata {
}
| 8.25 | 31 | 0.575758 |
6a87d3deca3238a1de059dca64e996f8af16cb88 | 2,312 | /*
* Copyright (c) 2018. Manuel D. Rossetti, rossetti@uark.edu
*
* 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
*
* U... | 32.111111 | 81 | 0.563581 |
be90d3730b22da499217c4af3ee573ffba8b350a | 2,919 | package net.toshirohex.lycurgus.materials;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.recipe.Ingredient;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
imp... | 35.168675 | 222 | 0.714628 |
f68b080ca69b1daf3e3dd3b40e63282bdb58d2aa | 8,411 | import static org.assertj.core.api.Assertions.*;
import static org.assertj.core.api.Assertions.fail;
import static org.junit.jupiter.api.Assertions.*;
public class JUnit5MigrationTestCases {
Object x = new Object();
Class xClass = Object.class;
Object y = new Object();
Object[] xArray = new Object[] {};
Ob... | 23.170799 | 96 | 0.701343 |
a8ebb11f7238e263a59e59b6d413e63089958916 | 92 | package academy.pocu.comp2500.assignment2;
public enum StampColor {
RED, BLUE, GREEN
}
| 15.333333 | 42 | 0.75 |
a71ec79d92ab7589eb3b322f3ad4d09fb58ccc9d | 1,076 | package fr.poulpogaz.mandelbrot.explorer.colorpicker;
import fr.poulpogaz.mandelbrot.explorer.sliders.Slider;
import javax.swing.*;
import java.awt.*;
public class AlphaSlider extends Slider {
public AlphaSlider(int alpha) {
setModel(new DefaultBoundedRangeModel(alpha, 0, 0, 255));
}
@Override
... | 30.742857 | 104 | 0.625465 |
ccea02b54ec09ac2695453bf693d18f27cc0376b | 2,082 | /**
* Copyright 2011-2014 the original author or authors.
*/
package com.jetdrone.vertx.yoke.middleware.filters;
import org.jetbrains.annotations.NotNull;
import org.vertx.java.core.buffer.Buffer;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.regex.Patter... | 24.785714 | 83 | 0.64073 |
2bccfb8c76ca7f9ac52f68d314783fb44131763b | 649 | package com.ms.silverking.cloud.dht.daemon.storage.serverside;
public class LRUInfo {
private long accessTime;
private int size;
public LRUInfo(long accessTime, int size) {
this.accessTime = accessTime;
this.size = size;
}
public void updateAccessTime(long accessTime) {
this.accessTime = access... | 19.088235 | 62 | 0.677966 |
09f15e674309e4025da4176f00b864aac02677fd | 952 | package yuudaari.soulus.common.recipe.ingredient;
import com.google.gson.JsonObject;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
import net.minecraftforge.common.crafting.IIngredientFactory;
import net.minecraftforge.common.crafting.JsonContext;
import yuudaari.soulus.common.Mod... | 25.72973 | 78 | 0.80042 |
074d6a1779cc25b955d49affabbea7991c68abb8 | 130 | package com.design.patterns.creational.factory.simplefactory;
public abstract class Parser {
public abstract void parse();
}
| 21.666667 | 61 | 0.784615 |
11c22d4aca85c7e405b2a73635cd13fe9079cb95 | 851 | package com.sdu.calcite.api;
import com.sdu.calcite.plan.SduRelOptimizerFactory;
import java.util.List;
import java.util.Optional;
import org.apache.calcite.plan.RelOptCostFactory;
import org.apache.calcite.plan.RelTraitDef;
import org.apache.calcite.sql.SqlOperatorTable;
import org.apache.calcite.sql.parser.SqlParser... | 26.59375 | 64 | 0.807286 |
bb94273dd729a5362f3360e918aa8b6cc6032dda | 3,344 | package client;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
public class ClientScreen extends JFrame {
private User user;
private JPanel navPanel;
public ClientScreen(User user) {
super("Client");
this.user = user;
setSize(400, 120);
setRes... | 27.866667 | 83 | 0.578947 |
0a959e4ed6aefa0f64f3e03aa74893bdb49feb50 | 2,494 | /*
* Copyright 2010 LinkedIn, 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... | 36.144928 | 104 | 0.67482 |
5ddc919baf4b1209cc8907bb5446c3c98e8b0ee4 | 1,142 | /*
* Copyright (c) 2021 Callum Wong
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR A... | 36.83871 | 80 | 0.7662 |
e6f846f73009c0b78da18975a453715616cca413 | 10,779 | /**
* This program and the accompanying materials
* are made available under the terms of the License
* which accompanies this distribution in the file LICENSE.txt
*/
package com.archimatetool.example;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.uti... | 43.46371 | 162 | 0.64672 |
51d5bfeca01464a2272ab1b207537eebb2329c6f | 6,812 | /*
* ******************************************************************************
* Copyright 2016
* Copyright (c) 2016 Technische Universität Darmstadt
*
* 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... | 40.070588 | 138 | 0.582208 |
1a0c5dc41f7f7a3b68f4aa24d14d5fc7461e4fd9 | 2,107 | package com.miqt.wand;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;
import android.... | 31.447761 | 104 | 0.699098 |
d028b5fe42481089b8c7417a10b41254daa9c428 | 259 | package main.java.utils;
/**
* Created by johnchronis on 25/5/2016.
*/
public class Tuple3<X, Y, Z> {
public X x;
public Y y;
public Z z;
public Tuple3(X x, Y y, Z z) {
this.x = x;
this.y = y;
this.z = z;
}
}
| 13.631579 | 39 | 0.498069 |
579ba4b956aeb800961403e1bd4583b5a7c42cc9 | 1,840 | package org.zalando.stups.fullstop.web.test.builder;
import com.google.common.base.Optional;
import org.joda.time.DateTime;
import org.zalando.stups.fullstop.domain.AbstractModifiableEntity;
import static com.google.common.base.Optional.absent;
import static com.google.common.base.Optional.fromNullable;
import static... | 34.074074 | 153 | 0.747283 |
c22783918f17b20ad622d4d96d6e557947d04ef1 | 1,037 | package io.github.muxiaobai.java.java.construtorTest;
/**
*
* @author zhang
* @date 2016年7月22日 下午4:06:24
*
*/
public class StaticConstrutorTest {
static{
System.out.println("StaticConstrutorTest static ");
}
{
System.out.println("StaticConstrutorTest {}");
}
public static void main(String[] args) {
... | 19.203704 | 77 | 0.591128 |
082c675e3ed776e7d00bd4e510f342c31afdde79 | 6,381 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.weblayer_private.payments;
import androidx.annotation.Nullable;
import org.chromium.components.payments.BrowserPaymentRequest;
impo... | 37.098837 | 100 | 0.724024 |
b2d69de377837f51c5104b3934ec7c24b637e4d1 | 1,145 | package com.michaelbradleymods.firstmod.util.handlers;
import com.michaelbradleymods.firstmod.init.ModItems;
import com.michaelbradleymods.firstmod.util.IHasModel;
import net.minecraft.item.Item;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.event.RegistryEvent;
import net.minecr... | 27.261905 | 77 | 0.692576 |
8802651aae8b4abb73fb4dd4fe05842df95056af | 14,796 | package com.mysql.cj.xdevapi;
import com.mysql.cj.Messages;
import com.mysql.cj.exceptions.AssertionFailedException;
import com.mysql.cj.exceptions.ExceptionFactory;
import com.mysql.cj.exceptions.WrongArgumentException;
import java.io.IOException;
import java.io.StringReader;
import java.util.HashMap;
import java.uti... | 38.232558 | 198 | 0.619965 |
de4151eb3038f53e69cd37a4938deab6d267eb60 | 421 | package chachichat.packets;
import com.esotericsoftware.kryo.Kryo;
public class Packets {
public static void registerPackets(Kryo kryo) {
kryo.register(PacketMessage.class);
}
public static class PacketMessage {
public String msg;
public PacketMessage() {
// Necesario par... | 15.035714 | 49 | 0.646081 |
cdc317977564dab196feeeaacd5636983f88a3af | 507 | package DB;
import java.io.Serializable;
/**
* Created by Anil on 19/03/2018
*/
public class LabInstructor implements Serializable {
private LabBatch labBatch;
private Teacher teacher;
public Teacher getTeacher() {
return teacher;
}
public void setTeacher(Teacher teacher) {
thi... | 18.107143 | 52 | 0.650888 |
cea79ba52305863896c7b9e3effe9c9acb253133 | 1,808 | package com.shangame.fiction.ui.popup;
import android.app.Activity;
import android.view.View;
import android.widget.TextView;
import com.lxj.xpopup.XPopup;
import com.lxj.xpopup.core.BottomPopupView;
import com.fiction.bar.R;
/**
* Create by Speedy on 2019/5/9
*/
public class DeleteBookPopupWindow {
private A... | 30.644068 | 86 | 0.561947 |
50e8b07b3bc5fe02bc572a1046f556d7bc232776 | 500 | package com.company.managers;
import com.company.models.Revenues;
import java.util.ArrayList;
import java.util.List;
public class RevenuesManager {
private List<Revenues> revenues = new ArrayList<>();
private static RevenuesManager revenuesManagersin = new RevenuesManager();
private RevenuesManager() {... | 19.230769 | 78 | 0.704 |
ee356ac9aa436da759c70f15c4b62494bc1dd838 | 4,507 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | 33.634328 | 111 | 0.694697 |
85f07276e99346f5a54a50c109a9201bbb70e324 | 2,119 | /*
* Copyright (c) 2018, hiwepy (https://github.com/hiwepy).
*
* 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... | 28.253333 | 85 | 0.717791 |
c55ad966c1c53922ec5a4c849fe10a6b2d4d8796 | 43 | package java.lang;
public class Byte {
} | 8.6 | 19 | 0.697674 |
69a257c2f6a14a3db1a668259dad0dfbf14404f7 | 829 | package com.anshul.interview.ds.trees;
public class Soutions {
class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
}
}
// Definition for a binary tree node.
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
class Solution {
publ... | 16.918367 | 55 | 0.624849 |
4ef226d29d51e30ffd686839b47dc45784d96ffa | 1,820 | package ru.stqa.pft.addressbook.tests;
import org.testng.Assert;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.model.GroupData;
import ru.stqa.pft.addressbook.model.UserData;
import ru.stqa.pft.addressbook.model.Users;
import static org.hamcrest.CoreMatche... | 36.4 | 112 | 0.644505 |
ff8879dd1c10db28f3b7e38fdd298420b3631b38 | 122 | package co.kr.ingeni.twitterloginexample;
public interface TwitterWriteTaskFunction {
void doFinish(Boolean result);
}
| 17.428571 | 43 | 0.819672 |
f320548a8ef15ae1f9de5ff9739ec5fb5b85ac7d | 1,555 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.lob;
import java.util.Random;
import org.junit.Test;
... | 31.734694 | 118 | 0.752412 |
d377ee5c3e635fa106645a43d583d275a09a3454 | 1,642 | package com.revolsys.ui.html.serializer.key;
import com.revolsys.record.io.format.xml.XmlWriter;
import com.revolsys.ui.web.utils.HttpServletUtils;
import com.revolsys.util.HtmlAttr;
import com.revolsys.util.HtmlElem;
import com.revolsys.util.JavaBeanUtil;
public class BooleanImageKeySerializer extends AbstractKeySer... | 29.321429 | 98 | 0.701583 |
987f9590b2cd470539f7981c8bc3edff25c3be7a | 2,482 | package br.com.caulox.luizalabscommunicationapi.controller;
import br.com.caulox.luizalabscommunicationapi.domain.Schedule;
import br.com.caulox.luizalabscommunicationapi.requests.SchedulePatchRequest;
import br.com.caulox.luizalabscommunicationapi.requests.SchedulePostRequest;
import br.com.caulox.luizalabscommunicat... | 45.962963 | 104 | 0.737309 |
cb6731f9d4082c426f48aa84669bb3e29172a9f5 | 6,289 | /*
* 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 ... | 41.375 | 222 | 0.683415 |
9f30bd29cd16000b5c8685764e0f804d42f62599 | 4,139 | package com.wavefront.config;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.wavefront.helpers.ApplicationConfigValidator;
import java.util.ArrayList;
import java.util.List;
/**
* Application configuration object for setting sender ... | 24.491124 | 98 | 0.666345 |
2d57db181bd50e2a44a20bf67a78674e0d1bcd9c | 3,037 | /*
* 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
* distribut... | 30.069307 | 125 | 0.68324 |
80145d4397eeedfe49917eb2f43a31d86cce30a2 | 3,131 | package com.itcast.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.itcast.entity.Result;
import com.itcast.mapper.MemberMapper;
import com.itcast.mapper.OrderMapper;
import com.itcast.service.ReportService;
import com.itcast.utils.DateUtils;
import org.springframework.beans.factory.annotat... | 31.94898 | 95 | 0.721495 |
5297f5bf6c8f3235f6c08348f4235798816b836e | 1,148 | /**
* Copyright 2010 CosmoCode GmbH
*
* 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.435897 | 93 | 0.722997 |
fd6f448b032382298bf89fcdf9080163ce0c8ee1 | 910 | package com.cy.onepush.common.exception;
/**
* abstract application runtime exception
*
* @author WhatAKitty
* @date 2020-12-12
* @since 0.1.0
*/
public class AbstractAppRuntimeException extends RuntimeException {
public AbstractAppRuntimeException() {
super();
}
public AbstractAppRuntimeEx... | 27.575758 | 149 | 0.714286 |
e82ab8da2058e140a3605157a2f76f98c95c4a5a | 756 | package qunar.tc.qconfig.admin.service;
import com.google.common.collect.Multimap;
import com.google.common.collect.Table;
import qunar.tc.qconfig.admin.dto.CandidateDTO;
import java.util.List;
import java.util.Map;
/**
* @author zhenyu.nie created on 2016 2016/3/2 16:26
*/
public interface FileDescriptionService ... | 30.24 | 96 | 0.77381 |
4ded66893ce0eb5fc46b658bbcfe4f3c1d82e6cc | 955 | package com.byteowls.vaadin.selectize.config.options;
import com.byteowls.vaadin.selectize.config.annotation.SelectizeOptionLabel;
import com.byteowls.vaadin.selectize.config.annotation.SelectizeOptionSearch;
import com.byteowls.vaadin.selectize.config.annotation.SelectizeOptionValue;
public class BasicOption {
... | 22.738095 | 77 | 0.668063 |
7ab4fc40459d0cde4930493e44b3e6d3eea30c90 | 769 | class ExceptionOne {
static void validAge(int age) throws MyException { // We need to declare the exception; that the method may throw.
if (age < 18) {
throw new MyException("You should be 18+ to cast vote.");
} else {
System.out.println("You can vote.");
}
}
... | 36.619048 | 118 | 0.596879 |
c86ea98dcfe413e880959ef36bd99d5687012109 | 2,220 |
package com.compositesw.services.system.admin.server;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import com.compositesw.services.system.util.common.BaseRequest;
/**
* <p>Java class for removeFromClusterRequest complex ... | 24.395604 | 108 | 0.61982 |
945cd79e68edab8bec57f76b517a62c9313c717a | 3,086 | package de.metas.banking.payment.paymentallocation.model;
/*
* #%L
* de.metas.banking.swingui
* %%
* 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, e... | 27.309735 | 116 | 0.747894 |
9a15f303dd03e104ef4989f27df34c58303e22ac | 4,089 | package egovframework.com.god.codegen.oracle.alltabcols.service.impl;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.... | 32.975806 | 104 | 0.744436 |
d571d3fe560e02486ae870ee5c267a380c63b480 | 15,517 | // Copyright (c) 2016 FUKUI Association of information & system industry. All rights reserved.
//
// 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... | 36.170163 | 138 | 0.583747 |
214ce0face325109e45da84d19e04627271845d0 | 13,058 | package org.opensrp.web.controller;
import static ch.lambdaj.collection.LambdaCollections.with;
import static java.text.MessageFormat.format;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.springframework.http.HttpStatus.CREATED;
import static org.springframework.http.HttpStatus.INTER... | 52.023904 | 321 | 0.6792 |
c1d36c915a84c842d4f5c1808e14f1e37a78c685 | 1,066 | package me.nokko.bexment.mixin;
import me.nokko.bexment.common.registry.BSMTransformations;
import moriyashiine.bewitchment.api.interfaces.entity.BloodAccessor;
import moriyashiine.bewitchment.common.item.BottleOfBloodItem;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minec... | 42.64 | 117 | 0.781426 |
3c9a67e50ff392717e4e8ec38895ac69b7100f61 | 607 | package algorithms.a301_to_a350.a337_HouseRobberIII_Medium;
/**
* Created by 31798 on 2016/9/14.
*/
public class SolutionNotEfficientEnough {
public int rob(TreeNode root) {
if (root == null) {
return 0;
}
int robThis = root.val;
if (root.left != null) {
ro... | 27.590909 | 68 | 0.566722 |
6b2d3b824b749b3197bd60da92ade340064e9bce | 8,246 | /*
Copyright (c) 2010, NullNoname
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of ... | 26.429487 | 87 | 0.722168 |
05dc3eaa8af39cae8e91024f21fa414b1e046e5d | 1,493 | package com.github.lzk90s.cbec.auth.dao.entity;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.github.lzk90s.cbec.internal.api.auth.PlatformAccountDTO;
import com.google.common.base.Converter;
import l... | 35.547619 | 100 | 0.750167 |
a23891d6f3df6ebe35662e22249296f8c47ab4d6 | 1,309 |
package org.onvif.ver10.schema;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for SetDateTimeType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <... | 21.459016 | 95 | 0.614973 |
fb82e4f3b029333f8c3910a346a6885ecd64633b | 2,646 | /*
* 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")... | 30.413793 | 94 | 0.666667 |
cff952b26aae1dd1bbfb5f8741a9f9a010118567 | 2,283 | package org.rx.spring;
import lombok.SneakyThrows;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.reflect.MethodSignature;
import org.rx.core.*;
import org.rx.util.Servlets;
import org.springframework.http.HttpStatus;
i... | 36.238095 | 142 | 0.711783 |
79d64222c2f5edc29f34fcf1477b6bd63f5548b9 | 302 | package com.softwareonpurpose.calibrator4test;
class Tally {
private long tally;
static Tally getInstance() {
return new Tally();
}
void increment() {
tally += 1;
}
long getTally() {
return tally;
}
void reset() {
tally = 0;
}
}
| 13.727273 | 46 | 0.533113 |
09edec2cce55882c1835c16db6284f96b3039fd3 | 1,297 | package models;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Entity
@Table(name = "daily_recaps")
public class SalesRecap {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne(optional = false)
@JoinColumn(... | 18.797101 | 59 | 0.615266 |
b492477e2b158579c826fb8097bbbff2ea5181fa | 3,105 | /*
철학자
status 생각하다, 밥먹다, 배가 고프다
밥을 먹을때는 양손에 포크를 들어야하며
총 5명의 사람과 5개의 포크가 있다
즉 세마포어로 2개의 스레드만 작동하도록
*/
package Task.Philosopher.Semaphore;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.conc... | 27.236842 | 94 | 0.561997 |
eb7fa5d40e0c5e28508ba9312ed1e1b05bd9a22e | 363 | package com.ac.mylib.domain;
import lombok.Data;
import java.util.Date;
/**
* @author Echo
*/
@Data
public class Diary {
private int id = 0;// 日记ID号
private String title = "";// 日记标题
private String address = "";// 日记图片地址
private Date writeTime = null;// 写日记的时间
private int userid = 0;// 用户ID
... | 15.782609 | 43 | 0.628099 |
0a1d7884aa9ffc2c6cad1535c7ad9fd0c24d08cd | 1,077 | /*
* Copyright(c) 2016 - 2020, Clouds Studio Holding Limited. All rights reserved.
* Project : components
* File : ProduceSkuException.java
* Date : 7/22/20, 12:51 AM
* Author : Hsi Chu
* Contact : hiylo@live.com
*/
package org.hiylo.components.exceptions;
import java.io.Serializable;
/**
* @author 朱玺
* @Cla... | 28.342105 | 92 | 0.718663 |
70643804d08a990db09aac669e55eb65c256cdd3 | 3,118 | package com.github.cloudgyb.m3u8downloader.viewcontroller;
import com.github.cloudgyb.m3u8downloader.ApplicationContext;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Pos;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.layout.Pane;
import java... | 34.263736 | 84 | 0.650417 |
0bb7aa2ecd3c3aff6c00949d2cb2a3c19aaf5ea6 | 4,793 | /*******************************************************************************
* Copyright (c) 2002,2006 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | 36.587786 | 301 | 0.676194 |
53d3058f921873ff1ee6327c819ec30b315b6d3f | 2,173 | /**
*
* Copyright 2003-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... | 25.564706 | 109 | 0.64243 |
ee0d7e698fdb00171ffc600d35a8b9fa4750ab89 | 1,356 | package com.thundersphun.foggingup.fogTypes;
import com.thundersphun.foggingup.util.IdType;
import net.minecraft.util.Identifier;
public class FogTypeBuilder {
private final IdType type;
private float start;
private float end;
private float density;
private Identifier id;
private boolean enabled;
public FogTy... | 21.1875 | 92 | 0.70649 |
5e3411983c2e807248564f86125c81a664cef20d | 418 | package com.easy.live.streaming.servants.protocol.output.user;
import lombok.Data;
/**
* @Description:用户出参
* @Author: zhangliangfu
* @Create on: 2019-07-10 19:05
*/
@Data
public class UserOutput {
private String password;
private String title;
private String avatar;
private Integer id;
privat... | 19 | 62 | 0.705742 |
845a3c63451c82a35fa80ed29fcfc235f3b6d099 | 426 | package org.openntf.xrest.xsp.log;
import com.ibm.commons.log.Log;
import com.ibm.commons.log.LogMgr;
public class SmartNSFLoggerFactory extends Log{
public final static LogMgr XSP = load("org.openntf.xrest.xsp", "Logger used for Logging all events around the SmartNSF Server side");
public final static LogMgr DDE ... | 35.5 | 134 | 0.774648 |
10994f07e85b275bd8375b8220413ffcd7dd9f49 | 3,176 | /*
* Copyright 2000-2009 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... | 42.918919 | 129 | 0.700567 |
09b763fdae2983142d74ee1aca37bfb26b6e5ff1 | 465 | /*
* Copyright 2013, Andrew Lindesay
* Distributed under the terms of the MIT License.
*/
package org.haiku.haikudepotserver.dataobjects;
import org.haiku.haikudepotserver.dataobjects.auto._Captcha;
public class Captcha extends _Captcha {
private static Captcha instance;
private Captcha() {}
public... | 19.375 | 60 | 0.670968 |
89e32cc05932be2339c47dbd065393367364e731 | 1,812 | package com.jfinal.weixin.sdk.api.shop.bean;
/**
* 商品其他属性
*
* @author Administrator
*
*/
public class ShopAttrExt {
private String isPostFree;// 是否包邮(0-否, 1-是), 如果包邮delivery_info字段可省略
private String isHasReceipt;// 是否提供发票(0-否, 1-是)
private String isUnderGuaranty;// 是否保修(0-否, 1-是)
private String isSupportRepl... | 18.875 | 68 | 0.718543 |
8001574900b73595a72db2198a17fc8a37935be9 | 1,849 | package dev.darshit.urlshortener.utils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public final class StringUtils {
public static boolean isEmpty(String value) {
return (value == null || "".equals(value) || "null".equalsIgnoreCase(value));
}
public static List<St... | 32.438596 | 101 | 0.63656 |
706694b8adac6220987038395e53f6803f575f8f | 2,926 | package org.apache.maven.plugin.internal;
/*
* 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 Li... | 29.857143 | 120 | 0.675666 |
6c2cb0ff42ff5c4f68ce562ddb2f4c2e0d36f693 | 2,104 | package hu.bme.mit.theta.solver.smtlib.impl.generic;
import hu.bme.mit.theta.core.decl.Decl;
import hu.bme.mit.theta.core.type.Expr;
import hu.bme.mit.theta.core.type.Type;
import hu.bme.mit.theta.solver.smtlib.solver.transformer.SmtLibDeclTransformer;
import hu.bme.mit.theta.solver.smtlib.solver.transformer.SmtLibExp... | 40.461538 | 111 | 0.786122 |
e89b2f30e6b607e8bd183b3283dcf7cc42996415 | 3,374 | package com.zup.cartao.proposta.solicitaCartao;
import feign.FeignException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.spri... | 43.25641 | 133 | 0.714582 |
8e5edf843c4b4e883ea49526de99d9b084542cc2 | 7,924 | package type.quantity;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import type.TypeEnv;
import compile.structure.Atom;
import compile.structure.Membrane;
import compile.structure.ProcessContext;
import compile.structure.Context;
import compile.structure.RuleContext;
i... | 26.861017 | 108 | 0.709869 |
ddd44b95208456e4395a66a07089247d94ea6155 | 255 |
module io.toolisticon.compiletesting.integrationtest.java9 {
requires java.compiler;
requires java.logging;
requires transitive integration.test.java9.namedautomaticmodule;
exports io.toolisticon.compiletesting.integrationtest.java9;
}
| 25.5 | 68 | 0.8 |
067ed4f44c142aa0da37cc0fbdcb9aa300dc9d12 | 263 | package org.ljelic.instafram.observer.command;
import org.ljelic.instafram.view.adapter.dialog.DialogAdapter;
public class HelpOfflineAction extends Command {
@Override
void execute() {
DialogAdapter.info("Offline help should show up");
}
} | 23.909091 | 62 | 0.741445 |
fb6ceb8145383f0c444b4ffaace81a27abfc9574 | 859 | package de.adesso.anki.messages;
import java.nio.ByteBuffer;
/**
* Notifies the controller that the vehicle deviated from its desired driving lane.
*
* @author Yannick Eckey <yannick.eckey@adesso.de>
*/
public class OffsetFromRoadCenterUpdateMessage extends Message {
public static final int TYPE = 0x... | 26.84375 | 84 | 0.711292 |
90b18ddb97622f3938a338a1b0cccce7816acd87 | 6,011 | /*
* 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 ... | 36.430303 | 122 | 0.680586 |
6bafc642f8e8677cad61f95689e282c16ddcc119 | 2,584 | /*
* Copyright 2017-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 32.708861 | 90 | 0.771285 |
f6aad832070fad47ac62969846987331eb350b5c | 4,927 | package seedu.recruit.storage;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static seedu.recruit.testutil.TypicalPersons.ALICE;
import static seedu.recruit.testutil.TypicalPersons.HOON;
import static seedu.recruit.testutil.TypicalPersons.IDA;
import static seedu.recru... | 38.492188 | 120 | 0.739598 |
4efac2ae56260a19546b8d7db7fca6667e91d121 | 2,449 | package com.walmartlabs.concord.server.cfg;
/*-
* *****
* Concord
* -----
* Copyright (C) 2017 - 2018 Walmart 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
*
* ht... | 31.397436 | 122 | 0.701511 |
cca3b072ee7443fb2a1161ff7b81a2e63e3967b8 | 378 | package com.gnt.movies.utilities;
public class ApiClientRunnable implements Runnable {
private String urlApi;
private String result;
@Override
public void run() {
result = ApiClient.getResultFromTMDB(urlApi);
}
public ApiClientRunnable(String urlApi) {
super();
this.urlApi = urlApi;
}
... | 17.181818 | 53 | 0.687831 |
335b2f1dd432fb7b76e9d0936131af01599d9925 | 74 | package com.gentics.diktyo.wrapper;
public interface WrappedElement {
}
| 12.333333 | 35 | 0.797297 |
198487575511d473e7bc0532678f87776e405ae8 | 1,685 | /*
* Copyright 2015 Steve Ash
*
* 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... | 33.7 | 99 | 0.750148 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.