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 |
|---|---|---|---|---|---|
b8d7bcebd3241014ef73037f512b5a2031a043b5 | 1,426 | package it.dipvvf.abr.app.mail.soap;
import java.util.List;
import java.util.concurrent.Future;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.xml.ws.AsyncHandler;
import javax.xml.ws... | 40.742857 | 113 | 0.73352 |
34786aa4db4228d267fff8cfaef60e0aff354c2f | 1,731 | /*
* ProGuardCORE -- library to process Java bytecode.
*
* Copyright (c) 2002-2020 Guardsquare NV
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... | 27.47619 | 99 | 0.715194 |
cfd25ca4b5b60f8e71f2799c961eaf217507f799 | 22,462 | package com.telecominfraproject.wlan.client.datastore.cassandra;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import... | 40.545126 | 147 | 0.675007 |
87fbfa0e6896f2e6ebf640d86806d3ce37ff86bf | 2,012 | package eap.comps.datamapping.definition;
import java.util.ArrayList;
import java.util.List;
/**
* <p> Title: </p>
* <p> Description: </p>
* @作者 chiknin@gmail.com
* @创建时间
* @版本 1.00
* @修改记录
* <pre>
* 版本 修改人 修改时间 修改内容描述
* ----------------------------------------
*
* -... | 26.473684 | 83 | 0.677435 |
ba88d6a33ffee527a9e93a5db8405e17e0fefa8b | 23,615 | package com.example.Eshop.services.impl;
import com.example.Eshop.dto.CartDto;
import com.example.Eshop.dto.CartProductDto;
import com.example.Eshop.dto.PDFInfoDto;
import com.example.Eshop.dto.UserDto;
import com.example.Eshop.entities.Orders;
import com.example.Eshop.entities.User;
import com.example.Eshop.services.... | 75.689103 | 389 | 0.449672 |
f457bba705ab47d69880179d20f58f38624d65eb | 451 | package util.study.Designpattern.decorator.gupo;
/**
* 【装饰器模式】
* 被装饰类
* 一个基本的煎饼. 继承抽象类BatterCake
*
* @version: java version 1.7+
* @Author : mzp
* @Time : 2020/8/24 14:51
* @File : BaseBatterCake
* @Software: IntelliJ IDEA 2019.2.04
*/
public class BaseBatterCake extends BatterCake {
@Override
... | 18.04 | 48 | 0.611973 |
79541f6ee754ebf85831e71637be1016bb4f4e15 | 472 | package me.eluch.libgdx.DoJuMu.network.packets;
import me.eluch.libgdx.DoJuMu.game.doodle.DoodleGenderType;
public class ValidationDatas {
public final String hash;
public final String version;
public final String name;
public final DoodleGenderType genderType;
public ValidationDatas(String hash, String vers... | 24.842105 | 96 | 0.775424 |
e5dffa5a41883ce6c09353e770cafb34c2265c66 | 1,537 | package android.net.sip;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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.... | 23.287879 | 75 | 0.709174 |
dee66c3fd0dde0481ad962cce75cfd0b858b6739 | 561 | package com.lookstarry.doermail.member.feign;
import com.lookstarry.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @PackageName:com.lookstarry.doermail.member.feign
* @NAME:CouponFeignService
* @Description:
* @author: y... | 24.391304 | 62 | 0.768271 |
0efd66e8f842c301b74a1744a49b64efa70c765d | 146 | //Destination.java
package com.wuroc.chapterten;
/**
* @author RocWu
*
*/
public interface Destination {
String readLabel();
}
| 11.230769 | 31 | 0.630137 |
fafa35a396324be1b937118e61bec9ee3fefc692 | 505 | package com.microsoft.azure.servicebus.primitives;
import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.messaging.Source;
import org.apache.qpid.proton.amqp.transport.Target;
import org.apache.qpid.proton.amqp.transport.SenderSettleMode;
import java.util.Map;
class SenderLinkSettings {
S... | 28.055556 | 62 | 0.786139 |
5a730e44107c72fffe5a7be65e8b45d5d2c5662f | 975 | package nl.bertriksikken.luftdaten.api.dto;
import java.util.Locale;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Object describing a particular sensor and its current measurement.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
... | 24.375 | 93 | 0.685128 |
382e94b4cf0a73f40c86420cc58a64c76a9479ec | 13,824 | package org.bk.ass.sim;
import static java.lang.Math.max;
import static java.lang.Math.min;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Consumer;
public class Agent {
static final Consumer<UnitDeathContext> CARRIER_DEATH_H... | 24.863309 | 99 | 0.693359 |
d0c4238311d62e01803a98bc89c9f829f4f5a1df | 475 | package org.firstinspires.ftc.team7316.modes.test_opmodes;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import org.firstinspires.ftc.team7316.modes.AutoBaseOpMode;
import org.firstinspires.ftc.team7316.util.Hardware;
/**
* Created by jerry on 12/30/17.
*/
public class GyroTesting extends AutoBaseOpM... | 20.652174 | 59 | 0.732632 |
7a88772af8655b9586cc51e088d82b2e450bf7b9 | 3,356 | /*
* 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... | 39.952381 | 116 | 0.577175 |
5f0d10079a6e4e1191c3ee583d975d12de56e68f | 648 | /**
* <p>Title: MyInterceptor.java</p>
* <p>Description: </p>
* @author dengjili
* @date 2020年7月1日
*/
package priv.mybatis.example03.test;
import java.lang.reflect.Method;
import priv.mybatis.example03.plugin.Interceptor;
/**
* <p>Title: MyInterceptor.java</p>
* <p>Description: </p>
* @author ... | 23.142857 | 88 | 0.680556 |
ac5535c4029e309380a3d7cb4ef7e8a71e06c053 | 565 | package com.dragon.flow.listener.task.execution;
import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;
/**
* @author bruce.liu
* @description 任务监听测试
* @date 2021/7/22 8:44
*/
@Slf... | 25.681818 | 55 | 0.745133 |
de600d4755473a7afba2a6edebd253740556f747 | 377 | /*
* Copyright (c) 2019 RANIL L.A and/or its affiliates. All rights reserved. Use is subject to license terms.
*/
package yabonza.assignment.ranil.iao;
import yabonza.assignment.ranil.vo.DogBreedVo;
/**
* @author RANIL L.A
*/
public interface YabonzaIAO {
/**
*Attempt to retrieve a random dog breed specific i... | 20.944444 | 108 | 0.72679 |
1738dc4436384792f47c4a7939c1938b819e0376 | 74 | package org.litescipt.loader.lang;
public class Error extends Object {
}
| 14.8 | 35 | 0.783784 |
90150d76dc1e55acbc3c71cddcb7fece92bf4c70 | 1,363 | package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class FreematicsProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
FreematicsProtocolDecoder decoder = new FreematicsProtocolDecoder(new FreematicsProtocol());
... | 40.088235 | 197 | 0.647102 |
1a4bcbdef9f001e5f5dc371952c68b30031dcc61 | 1,087 | package ru.evgenyhodz.bomberman;
import org.junit.Before;
import org.junit.Test;
/**
* @author Evgeny Khodzitskiy (evgeny.hodz@gmail.com)
* @since 14.04.2017
*/
public class BombermanTest {
private int x;
private int y;
private GameField gameField;
// @Before
// public void create() {
// ... | 29.378378 | 95 | 0.5023 |
5275a1f20fe3c8f5ed53a1ccfd2a9e79ecf58621 | 718 | package com.luis.transformer.process.separator;
import com.luis.transformer.model.request.TransformerRequest;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.stereotype.Component;
@Component
public class TransformerSplitTeam i... | 26.592593 | 90 | 0.655989 |
04a1a9687f1127ce32c8fb68f05913a8d7d35d6b | 147 | package com.jtelegram.api.chat;
public enum ChatMemberStatus {
CREATOR,
ADMINISTRATOR,
MEMBER,
RESTRICTED,
LEFT,
KICKED
}
| 13.363636 | 31 | 0.666667 |
31c173ff30c844cb0ae06b7322d52747c17c9521 | 13,032 | /*
* 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... | 55.93133 | 196 | 0.663597 |
8684f1341fc2d33dce93f8b8814d5386b61314cc | 82 | package com.lnpdit.woofarm.entity;
public class CObject extends Object {
}
| 13.666667 | 38 | 0.731707 |
c9c67b932a762efe23469f3efcdbc1c392688210 | 466 | package com.pureatio.dto.line.in;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
/**
* 画像メッセージDTO<br>
* LINEから画像が送信されることを前提とする。
*/
@JsonIgnoreProperties({ "contentProvider" })
public class ImageMessage... | 17.923077 | 61 | 0.759657 |
80a0eb6ae1f125fd04a7503919cc7f4ce14f2c3c | 2,797 | /*
Copyright 2014 Shahriyar Amini
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... | 28.252525 | 78 | 0.679299 |
5840e64672e4aa3fdef0214a910188d33c188ded | 259 | package com.wrike.codestyle;
import lombok.Data;
import java.util.List;
@Data
public class PmdLogFileBean {
private List<ProcessingErrors> processingErrors;
@Data
public static class ProcessingErrors {
private String detail;
}
}
| 14.388889 | 52 | 0.718147 |
0b923754609d667feaf5084ff7c53bae69c2cdbd | 670 | package school.cesar.eta.unit;
public class BodyMassIndex {
public double calculate(double weight, double height){
return weight/Math.pow(height, 2);
}
public String classify(double bmi) {
if(bmi < 16){
return "severely underweight";
}
if(bmi < 18.5){
... | 19.705882 | 58 | 0.532836 |
ffc74f0a2bc29da7f387d4218a25d485ff3a30b8 | 123 | package view;
import moxy.MvpView;
public interface PositiveViewStateView$$State extends MvpView {
void method();
}
| 13.666667 | 63 | 0.756098 |
d99fff55b7a75b8ab0f137c87ae7dff65a8cc29d | 781 | package <%= appPackage %>.weather.di.module;
import dagger.Module;
import dagger.Provides;
import <%= appPackage %>.di.scope.FragmentScope;
import <%= appPackage %>.mvvm.IModel;
import <%= appPackage %>.weather.R;
import <%= appPackage %>.weather.mvvm.model.WeatherDailyModel;
import <%= appPackage %>.weather.mvvm.view... | 25.193548 | 74 | 0.727273 |
068e74d1118e36489eab406430ae58347775eb84 | 1,997 | /*
* Copyright 2009 Rally Software Development
*
* 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... | 31.203125 | 80 | 0.699549 |
c3cb1c2582fcd815a5fd58ab147aa2d39e397eee | 69 | package com.tekion.appium.common;
public class AutomationTools {
}
| 11.5 | 33 | 0.782609 |
3231482c01fcf2ad8205a79d134217a3092bf3a0 | 405 | package com.mgilangjanuar.dev.ssoui;
/**
* Created by mgilangjanuar (mgilangjanuar@gmail.com)
*
* @since 2018
*/
class Constant {
static final String BASE_URL = "https://sso.ui.ac.id/oauth/lockdin/";
static final String GRANT_TYPE = "password";
static final String CLIENT_ID = "dev-propensi-cs";
... | 20.25 | 83 | 0.718519 |
522d489402f6b571cfd8a917976ce1317561ecfe | 1,912 | package com.github.estekhin.set.form;
import java.util.Objects;
import com.github.estekhin.set.ast.BinaryOperation;
import com.github.estekhin.set.ast.ExpressionNode;
import com.github.estekhin.set.ast.FilterCallNode;
import com.github.estekhin.set.ast.MapCallNode;
import com.github.estekhin.set.ast.NodeVisitor;
impo... | 33.54386 | 94 | 0.708682 |
04ba4e9692e330f9de40bf6cb213f0c11aac1c07 | 3,213 | /*
* Copyright (c) 2014-2018 T-Systems Multimedia Solutions 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 require... | 27.228814 | 168 | 0.653906 |
ba5ab75a128fb71de1ae79e3033a30e2340ab9ef | 5,325 | package erjang.epmd;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Logger;
import erjang.driver.IO;
public class EPMDConnection extends PacketConnection {
static final Logger log = Logger.getLogger("erjang.epmd");
priv... | 25 | 90 | 0.64338 |
d3cf65533bc036de2e8d8b8cd03d2233e0c7fcd1 | 210 | package net.aionstudios.artemis.exception;
public class PerceptronBoundaryException extends RuntimeException {
public PerceptronBoundaryException(String message) {
super(message);
}
}
| 21 | 68 | 0.742857 |
c797dae2abc927617b8d8b0bc1cbfecd00b891d6 | 4,362 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.partyManage.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotation.RequiresPermi... | 35.177419 | 108 | 0.728106 |
db7b636e35402a0e7d939b074e4bfa53a915d8f7 | 3,292 | package com.power4j.kit.seq.persistent.provider;
import com.power4j.kit.seq.core.exceptions.SeqException;
import com.power4j.kit.seq.persistent.AddState;
import com.power4j.kit.seq.persistent.SeqSynchronizer;
import lombok.Getter;
import lombok.Setter;
import java.util.HashMap;
import java.util.Map;
import java.util.... | 22.09396 | 96 | 0.700486 |
387a051fe0d1cc287e9ece41ed14e9c08dcfc6f1 | 503 | package com.github.zxl0714.redismock.operations;
import com.github.zxl0714.redismock.storage.RedisBase;
import com.github.zxl0714.redismock.server.Slice;
import com.github.zxl0714.redismock.Utils;
import java.util.List;
class RO_incrbyfloat extends RO_incrOrDecrByFloat {
RO_incrbyfloat(RedisBase base, List<Slice... | 27.944444 | 68 | 0.761431 |
24a9d5023983c08ba337857683c4600d59141a52 | 810 | package org.cloudfoundry.promregator.config;
public class OAuth2XSUAAAuthenticationConfiguration {
private String tokenServiceURL;
private String client_id;
private String client_secret;
private String scopes;
public String getTokenServiceURL() {
return tokenServiceURL;
}
public void setTokenServiceURL... | 17.608696 | 57 | 0.759259 |
08388d2676e486a10b73695ef417560af644e97a | 3,751 | /*
* Copyright (c) 2016, GoMint, BlackyPaw and geNAZt
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.proxy;
import io.gomint.proxy.asset.AssetAssembler;
import io.gomint.proxy.network.EncryptionHandler;
import org.slf4j.... | 28.633588 | 105 | 0.638763 |
b8739dd0b836ac56bb933d681883afc993ae1320 | 1,360 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.lib.data;
import erp.lib.SLibConstants;
import java.util.Vector;
/**
*
* @author Sergio Flores
*/
public abstract class SDataProcedure implements java.io.Serializable {
protected int mnProcedureTyp... | 28.93617 | 84 | 0.710294 |
a5527e1ca27c83371c3f2519642abc0a0ed7794e | 3,346 | /*
* Copyright © 2021 Daniel Nordhoff-Vergien (dve@vergien.net)
*
* 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... | 37.595506 | 100 | 0.717573 |
9b64116dd48fde3a911dadb82aca9d4f709bfb0e | 1,832 | package com.xtransformers.designpattern.design.factory;
import org.junit.Test;
import java.time.Duration;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/**
* @author daniel
* @date 2021-05-30
*/
public class RuleConfig {
@Test
public void test() {
DateTimeFormatter dt... | 40.711111 | 128 | 0.58679 |
a351963bf56102036d741a8a4110ea8425cf5048 | 346 | package design.pattern.behavioural.strategy.phone.right;
import design.pattern.behavioural.strategy.phone.right.algorithm.*;
public class CameraPlusApp extends PhoneCameraApp {
public CameraPlusApp() {
setPhotoSharable(new SharePhotoOnEmail());
}
@Override
public void edit() {
System.out.println("I can Edi... | 21.625 | 67 | 0.765896 |
3740855fc3531fe6aeaa66a68dba33284a8967ec | 7,459 | package org.ecd3.samples.transactions;
import com.zaxxer.hikari.HikariConfig;
import com.zaxxer.hikari.HikariDataSource;
import edu.umd.cs.mtc.MultithreadedTestCase;
import edu.umd.cs.mtc.TestFramework;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamRea... | 32.012876 | 135 | 0.712294 |
2bf78f82865d3a3c4e9afade0bf29e08a6195c8d | 2,264 | package com.hkm.dllocker.basic;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import com.hkm.layout.Module.easyAdapter;
import com.marshalchen.ultimaterecyclerview.UltimateViewAdapter;
/**
* Created by hesk on 13/1/16.
*/
public class LoadMoreGridLayoutManager extends GridLayo... | 33.294118 | 108 | 0.650177 |
6b35c65bb7a5ae630c1a7fdf8b9809fc1e5b0deb | 9,966 | /*
* 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 ... | 33.783051 | 119 | 0.600843 |
0ec5be51c32ab3dd9d5cb7fe16e75185841274e2 | 2,621 | /*
* Copyright (c) 2021. www.hoprxi.com 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... | 25.201923 | 78 | 0.600153 |
1f56578832e37a828d4191c053adf4db658b2b86 | 447 | package com.camnter.smartsave.adapter;
import android.graphics.drawable.Drawable;
import android.view.View;
/**
* @author CaMnter
*/
public interface Adapter<T> {
View findViewById(T target, int resId);
String getString(T target, int resId);
Drawable getDrawable(T target, int resId);
int getCol... | 17.88 | 51 | 0.713647 |
f602cc0fa98bd196776f8b6df20a208def2920f9 | 280 | package example.domain.concerns.searchTicket.beans;
import java.util.List;
public class TicketBeans {
List<TicketBean> list;
public TicketBeans(List<TicketBean> list) {
this.list = list;
}
public List<TicketBean> getList() {
return list;
}
}
| 20 | 51 | 0.667857 |
db3169af7d7084cc0cdc8a42b40f6d07b01e683f | 3,834 | package xmas;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.IntStream;
public class XMasSinger {
private List<String> mainLyrics;
private List<String> songStartLyrics;
public XMasSinger(List<String> mainLyrics){
this.mainLyrics = mainLyrics;
... | 37.588235 | 112 | 0.646583 |
a0fe1aab066e2984b1975fe053ec3e7c52287acb | 1,987 | package server;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Scanner;
public class myServer {
public static void main(String[] args) {
myServer server ... | 30.569231 | 134 | 0.51686 |
8f18442aec17e731e226fff621668fd6542c2ff8 | 8,039 | /*
* 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");... | 34.650862 | 83 | 0.600075 |
a371ffe6b8692162e7a82beed5ce8249c8869d52 | 1,202 | package org.traccar.protocol;
import org.junit.Test;
import org.traccar.ProtocolTest;
public class TekProtocolDecoderTest extends ProtocolTest {
@Test
public void testDecode() throws Exception {
var decoder = new TekProtocolDecoder(null);
verifyPosition(decoder, binary(
"050... | 48.08 | 301 | 0.85025 |
ec74b3671a783eb08290f558d88d408eb599e728 | 1,317 | package com.remondis.remap.noImplicitMappings;
public class B {
private String string;
private Integer integer;
public B(String string, Integer integer) {
super();
this.string = string;
this.integer = integer;
}
public B() {
super();
}
public String getString() {
return string;
... | 19.954545 | 75 | 0.595292 |
2311fe7e2004342a4dd1a4ded87e44fd4193c84e | 5,530 | /*
* Copyright 2018 Martin Furek
* 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 ... | 28.505155 | 104 | 0.674141 |
93e182829c0994092422ece246580068e182b5da | 3,996 | /*
* 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 ... | 38.057143 | 112 | 0.656156 |
fa4f36219037b31e81767739f304f51c05b56521 | 599 | package com.ppdai.das.console.dto.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InitDbUserRequset{
private String dbaddress;
private String dbport;
private String dbus... | 21.392857 | 40 | 0.769616 |
f1fcccdb6aaea194eef4140e5cb09b3663ce0ea9 | 660 | package org.crap.jrain.core.validate.exception;
/**
* @project Crap
*
* @author Crap
*
* @Copyright 2013 - 2014 All rights reserved.
*
* @email 422655094@qq.com
*
*/
public class ParamIllegalRangeException extends RuntimeException {
/**
*
*/
private static final long serialVersi... | 18.333333 | 68 | 0.669697 |
debc885115d0e26232088029e4fecdfc9acbfa17 | 3,546 | /* */ package org.springframework.asm;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/*... | 19.810056 | 129 | 0.316977 |
916309f7e1434f0e584e0acea89586d58de7ec99 | 1,552 | package com.jobsity.app.model.services.interfaces;
import com.jobsity.app.access.FileReader;
import com.jobsity.app.access.interfaces.DataAccessInterface;
import com.jobsity.app.model.entities.Game;
import com.jobsity.app.model.services.impl.ClassicBowlingBuilder;
import com.jobsity.app.model.services.impl.ClassicBowl... | 39.794872 | 98 | 0.741624 |
f36c3bb33da87ad70e33d0421cda0deac1ad627e | 943 | package ee.taltech.cs.mbt.tdl.scenario.scenario_composer.utils;
import ee.taltech.cs.mbt.tdl.uppaal.uta_model.language.expression.generic.AbsExpression;
import ee.taltech.cs.mbt.tdl.uppaal.uta_model.language.expression.impl.GroupedExpression;
import ee.taltech.cs.mbt.tdl.uppaal.uta_model.language.expression.impl.Negat... | 39.291667 | 108 | 0.815483 |
555f04bb5b1ae589526019b8f65f7e7a7b1139c1 | 704 | package workspace_th.day06.ex01.hashmapEx;
import java.util.Enumeration;
import java.util.Hashtable;
public class HashtableEx03 {
public static void main(String[] args) {
Hashtable<String, String> ht = new Hashtable();
ht.put("1", "가위");
ht.put("2", "바위");
ht.put("3", "보");
if (ht.containsKey("1"))
S... | 19.555556 | 53 | 0.613636 |
c5f9162e19c31230af1129d3181e3e7de64a184f | 5,605 | package mso.generator.utils;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jdt.annotation.Nullable;
public class Choice extends Type {
public final @Nullable Type commonType;
public final List<Option> options = new ArrayList<Option>();
public String[] getChoiceNames() {
String n[] = ne... | 25.711009 | 76 | 0.604282 |
9cf6d70dc826d8bd42388b47c42c83f14ce5870c | 222 | package swim.physics;
/**
*
* @author Sherif
*/
public enum Collisions {
// keep this order
VERY_FEW,
FEW,
MODERATE,
MANY,
SO_MANY
// add anything new below this line
}
| 13.058824 | 40 | 0.540541 |
f0968d251bfda7182d0f20f04651213206e4c6f2 | 1,899 | package tk.dmanstrator.discordbots.utils;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONObject;
import org.json.JSONTokener;
public... | 36.519231 | 146 | 0.597156 |
a81e6518dbda5d23294aeb172a901bba6686d87e | 4,950 | /*
* Copyright (c) 2008-2013, Hazelcast, 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 ... | 38.671875 | 123 | 0.70404 |
5ce3ee8f7e98afc899daa9633cdfd90f54f607b7 | 2,782 | // The MIT License (MIT)
//
// Copyright (c) 2014 Fredy Wijaya
//
// 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, ... | 26.75 | 83 | 0.685119 |
d86f3c28553a9f66beca7a8f332941547eb889cc | 439 |
/**
* 大神留步,帮我看个问题.
* @User: jspp@qq.com
* @Date: 2019/5/27 10:56
* @Desc
* @Param
*/
public class BadCode {
/**
* 计算总数
*/
public void countDemo(){
int num = 0;
for (int i=0;i<100;i++){
num = num ++;
/**
* do something
... | 14.633333 | 33 | 0.382688 |
72acb138cf44d3d9ccae9a5797ed67a26946dac5 | 4,232 | /*
* The Gemma project
*
* Copyright (c) 2006 University of British Columbia
*
* 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
*
... | 32.806202 | 118 | 0.700614 |
9c35021c0f3b2000596479d593b2e59fbe655845 | 1,620 | package sas.data.models;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import javax.persistence.*;
import java.util.Collection;
import java.util.List;
@Setter
@NoArgsConstructor
@Ent... | 18.202247 | 68 | 0.674691 |
22f7158a282c170ac57f5bcc8cf67ed6521684bb | 2,948 | /*
* Copyright 2014-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 28.07619 | 110 | 0.6981 |
0224dd611c8021703b2ff57bf9ffb01a8f25f939 | 581 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.aps;
import java.io.Serializable;
// Referenced classes of package com.aps:
// Z, X, z, v
final class Y
implements ... | 17.606061 | 62 | 0.576592 |
2a97f7e9371931564ff9a30542ac0f59b934d9c2 | 9,151 | package org.contentmine.pdf2svg2;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.geom.Point2D;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.logging.log4j.... | 29.711039 | 123 | 0.663425 |
7513cb19b818c55cda870b8d3e3eb95defe59626 | 19,189 | package com.example.ovidiu.inventoryapp;
import android.Manifest;
import android.app.LoaderManager;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.Loader;
import android.content.pm.Package... | 39.564948 | 127 | 0.5931 |
8f47d710091ed14866123f135a557e05472d9970 | 263 | package com.mhennessy.java8.demo.interfaces;
public interface NameGenerator {
String generateFirstName();
String generateLastName();
default String generateFullName() {
return generateFirstName() + " " + generateLastName();
}
}
| 21.916667 | 62 | 0.680608 |
df31de29187e60bacc0fb0bf447033baeafc8ca5 | 1,966 | package uk.ac.ebi.ddi.service.db.service.dataset;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import uk.ac.ebi.ddi.ddidomaindb.dataset.DSField;
import uk.ac.ebi.ddi.service.db.model.dataset.Dataset;
import uk.ac.ebi.ddi.service.db.model.dataset.UnMergeD... | 42.73913 | 135 | 0.715158 |
b7d542309d4ee98d3986c0214c853b56b86185d9 | 2,135 | package org.trianacode.shiwaall.workflowCreation.dart;
import org.trianacode.annotation.CustomGUIComponent;
import org.trianacode.annotation.Process;
import org.trianacode.annotation.Tool;
import javax.swing.*;
import java.awt.*;
import java.io.File;
import java.io.FileWriter;
// TODO: Auto-generated Javadoc
/**
* ... | 24.54023 | 87 | 0.560187 |
7e8c8bb248ff47969146d5726e5a04e6a93f09aa | 7,630 | package com.osh.rvs.form.qf;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.struts.action.ActionForm;
import framework.huiqing.bean.annotation.BeanField;
import framework.huiqing.bean.annotation.FieldType;
import framework.huiqing.common.util.CodeListUtils;
import framework.huiqing.commo... | 25.604027 | 92 | 0.738663 |
012dd065d6255ad96f0eaa338bcd9746cb429691 | 662 | package de.immomio.mail.s3;
import com.amazonaws.services.s3.AmazonS3;
import de.immomio.common.amazon.s3.AbstractS3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Service
public class MailProp... | 22.066667 | 62 | 0.743202 |
8841a67a63e3ea4ceadc2e6cf1f498e36cda5ee0 | 5,641 | /**
* Copyright (C) 2015 Red Hat, 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... | 32.988304 | 138 | 0.756426 |
c6bc883470a03a6245b09d4e5be580c1353844bd | 177 | package com.github.shniu.im.core;
/**
* @author niushaohan
* @date 2021/2/7 18
*/
public interface IMBootstrap {
void start();
void addHandler(Class<?> handler);
}
| 14.75 | 38 | 0.655367 |
738a78639e5689f91adf6c69ca693d7a40c80f40 | 4,727 | package com.example.eager_presurvey.UI;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.RadioGroup.OnChe... | 33.055944 | 167 | 0.699175 |
afdce5e117270b9e3e7ebd8a0738cbc8566e2e91 | 917 | package com.sa.sbsimplewebapp.storageservice;
import java.nio.file.Path;
import java.util.List;
import org.springframework.core.io.Resource;
import org.springframework.security.core.Authentication;
import org.springframework.web.multipart.MultipartFile;
public interface StorageService {
void init();
public v... | 35.269231 | 83 | 0.778626 |
881f661df2076385b6cab29efbf924b440a1cb9c | 26,379 | /*
* 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 ... | 36.086183 | 98 | 0.674969 |
a3283b61fa660f77a1737b1ab1a1d4fb35d212ac | 1,773 | package org.drakosha.tools.calctable.dataprovider.parser.portrait;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.Locale;
import org.drakosha.tools.calctable.dataprovider.parser.CalcTableDataParserConfig;
import org.drakosha.tools.calctable.dataprovider.parser.commo... | 27.276923 | 124 | 0.797518 |
1418d3455d68d5afa4f173793af0256ad98ffb9d | 11,860 | /*******************************************************************************
* Copyright (c) 2010 Haifeng Li
*
* 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... | 32.762431 | 160 | 0.489798 |
e1364a16e976a438308b4a9ed08d405d31def333 | 12,798 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation and others.
* 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, an... | 35.649025 | 152 | 0.701672 |
8b713d9e612bf77c25f6861ea9f4ef5dff6eb23b | 506 | package com.example.organization.client;
import com.example.organization.model.Employee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
@FeignClient(name = "employee... | 31.625 | 89 | 0.822134 |
cce140eae21539c4f62c56f68a226d39a090766d | 225 | package io.github.kwahome.structural.decorator.example.bouquet;
public class OrchidBouquet extends FlowerBouquet {
public OrchidBouquet() {
this.description = "Orchid bouquet";
this.cost = 29.0;
}
}
| 22.5 | 63 | 0.697778 |
59e1c2071e1f1abf3829723b19324371edd9e1be | 21,221 | // 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.components.payments;
import androidx.annotation.Nullable;
import androidx.annotation.VisibleForTesting;
import org.chromium.compone... | 40.809615 | 100 | 0.698506 |
92f1ce4f2b286b59f5d054551ebbbdc92029170c | 4,108 | package org.segrada.controller;
import com.google.inject.Inject;
import com.google.inject.servlet.RequestScoped;
import com.sun.jersey.api.view.Viewable;
import org.segrada.model.prototype.ITag;
import org.segrada.search.SearchEngine;
import org.segrada.service.TagService;
import org.segrada.session.Identity;
import ... | 31.358779 | 96 | 0.695472 |
8927364f1dc193bd5d1d0f29f3c20db165ed0e8e | 425 | package com.ipd.jmq.common.network.v3.codec;
import com.ipd.jmq.common.network.TransportException;
import io.netty.buffer.ByteBuf;
/**
* 对象编码
* Created by hexiaofeng on 16-6-23.
*/
public interface Encoder {
/**
* 编码
*
* @param obj 对象
* @param buf 输出流
* @throws TransportException.Code... | 19.318182 | 82 | 0.677647 |
136a5d697afc62b7991478551211cf19bea5ec41 | 1,026 | package com.ma.test.IOTest;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.FilterInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberInputS... | 20.938776 | 41 | 0.793372 |
5de95241a5c0b14f91279573fdb59b4a9259bf9b | 4,086 | /**
* Copyright (c) 2008, Swedish Institute of Computer Science.
* 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 copyright
* not... | 33.491803 | 88 | 0.637298 |
7304a674d9c74ab533780aba80bd0605be4b8d76 | 152 | package com.sensorup.iot.action;
import org.json.JSONObject;
public interface ActionInterface {
void execute(String topic, JSONObject message);
}
| 19 | 51 | 0.782895 |
83df7500c128a9a809f234d255fef655c3986ee7 | 8,267 | package com.okta.developer.its;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.client.WireMock;
import com.okta.developer.holdingsapi.Holding;
import com.okta.developer.holdingsapi.HoldingsApiApplication;
import org.junit.After;
import org.junit.Assert;
import org.junit.B... | 43.057292 | 135 | 0.658038 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.