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 |
|---|---|---|---|---|---|
5fa04ab4fd92af1f0ac634928c980cd847fbc053 | 1,039 | package xyz.mlserver.java.sql.db;
import org.bukkit.plugin.Plugin;
import xyz.mlserver.java.Log;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.sql.SQLException;
public class DataBaseUtil {
private final Plugin plugin;
public DataBaseUtil(Plugin plugin) {
this.plugin = plugin;
... | 25.975 | 111 | 0.628489 |
0ce63e0fea4b6f7033be6dd488060aed612fd2e6 | 795 | package com.study.empty.myTest;
import com.alibaba.fastjson.JSONObject;
import org.junit.Test;
/**
* @Author: Dingpengfei
* @Description:插入排序 从第二位开始将数据放到合适的地方,后面的依次进行移动
* @Date: 2022/2/24 23:38
*/
public class InsertTest
{
@Test
public void test(){
int[] a = {5, 4, 11, 2, 1, 54, 8,12,45,4564};
... | 20.384615 | 69 | 0.513208 |
f87b7d682febb7bd4cbda378dcc47021f389084b | 8,436 | /*
* The MIT License
*
* Copyright 2018 Siggi.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 33.744 | 116 | 0.766596 |
04e73e01c3efbdfba204e1d965d101159eb76e05 | 505 | package com.ceiba.reserva.comando;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.time.LocalDate;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class ComandoReserva {
private Long id;
private Long idCliente;
priv... | 20.2 | 34 | 0.782178 |
991b4051318dbee3042a95b9236d766ac77b97a2 | 1,762 | /*
* Copyright 2015-2017 GenerallyCloud.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 applicabl... | 24.472222 | 85 | 0.622588 |
8db987e6a6498b2ecb8c9e1c1f3ea11bec07e2c2 | 752 | package io.github.bennofs.wdumper.ext;
import com.github.luben.zstd.ZstdInputStream;
import org.wikidata.wdtk.dumpfiles.MwLocalDumpFile;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
public class ZstdDu... | 31.333333 | 123 | 0.740691 |
f070bcd684af5c43849f4dfdb8669927f0dbdeff | 2,361 | package com.denizenscript.depenizen.bukkit.events.magicspells;
import com.nisovin.magicspells.events.SpellLearnEvent;
import com.denizenscript.denizen.utilities.implementation.BukkitScriptEntryData;
import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizen.objects.PlayerTag;
import co... | 28.445783 | 89 | 0.679373 |
55a8f4228d17d772a2b1bdb4ee4b387ba2de009f | 1,786 | // Copyright 2018 Delft University of Technology
//
// 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 l... | 31.333333 | 122 | 0.631019 |
7d3b0a796ca08230206c3d46eace1002fafa8f5b | 2,093 | package snownee.cuisine.world.gen;
import java.util.Random;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeSwamp;
import net.minecraft.world.gen.feature.WorldGenerator;
import net.minecraftforge.event.terraingen.... | 46.511111 | 260 | 0.690874 |
77be8b34e3c8cff017c866e4e4949bad382558db | 1,701 | /*
* Copyright 2015 Kim A. Betti, Alexey Zhokhov
*
* 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... | 51.545455 | 118 | 0.647266 |
69a867a14c05548a51381758137e8ed034dbbcd3 | 1,137 | package com.networknt.kafka.streams;
import com.networknt.config.Config;
import com.networknt.kafka.common.KafkaStreamsConfig;
import com.networknt.utility.ModuleRegistry;
import java.util.ArrayList;
import java.util.List;
public interface LightStreams {
/**
* Start the streams processing. The ip and port i... | 33.441176 | 153 | 0.69569 |
eb7c229400f7aefad927974770aed95ed8e52719 | 2,817 | package com.spring.edu.Interceptor;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.HandlerInter... | 34.353659 | 118 | 0.655307 |
0cfd68c8587ee30130cce08b86dd908d7b0479ba | 8,333 | package mtr.render;
import mtr.block.BlockRailwaySign;
import mtr.block.BlockStationNameBase;
import mtr.block.IBlock;
import mtr.data.NameColorDataBase;
import mtr.data.Platform;
import mtr.data.RailwayData;
import mtr.data.Station;
import mtr.entity.EntitySeat;
import mtr.gui.ClientData;
import mtr.gui.IGui;
import ... | 48.447674 | 451 | 0.731549 |
bd46aedf8ba86a9f23a5e060e196b5448862e2c3 | 16,308 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.volatility.surface;
import it.unimi.dsi.fastutil.doubles.DoubleArrayList;
import java.util.Collections;
import java.util.HashMap;
import j... | 58.035587 | 190 | 0.767967 |
864556189ed5755a2db11a21d448fe54a041b6d5 | 447 | package com.vlados.lab3.main.models;
public class Validator {
public float checkNumber(String string) throws IllegalArgumentException {
float num;
num = Float.parseFloat(string);
if(num >= 1) return num;
throw new IllegalArgumentException();
}
public String checkString(Stri... | 27.9375 | 77 | 0.675615 |
bf9a51a1bd5ef901cc6d2507b4c45815e906aeca | 3,786 | package io.github.winsontse.hearteyes.util;
import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
/**
* Created by hao.xie on 16/5/10.
*/
public class TimeUtil {
private static Calendar calendar;
public static Calendar getCalendar() {... | 29.123077 | 122 | 0.548072 |
00a3665e34df203ec9b275a49acea6b78dbdcb8c | 1,082 | package br.skylight.commons.dli.vehicle;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import br.skylight.commons.dli.services.Message;
import br.skylight.commons.dli.services.MessageType;
public class VehicleConfigurationCommand extends Message<VehicleConfigur... | 25.761905 | 88 | 0.769871 |
a14ecbe7f7799e49a016318c642901e06dc62b7a | 226 | package gui;
import java.awt.Point;
public interface Selectable {
public boolean isSelected();
public void select(Selection s);
public void deselect();
public Point getLocation();
public void moveTo(int x, int y);
}
| 16.142857 | 34 | 0.734513 |
3d6c443fd2d37df63d2d7f4880d7081e62376dcf | 7,222 | /*
* Copyright 2012 International Business Machines Corp.
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You ... | 40.346369 | 125 | 0.633758 |
c2d533c535b770a0bd91208f0b357cb467198e28 | 7,527 | package org.sagebionetworks.bridge.fitbit.schema;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.collect.ImmutableList;
import com.goog... | 45.343373 | 117 | 0.698153 |
1b6fccaea91eddb6a6406e44421010579a49af7f | 2,681 | package tv.dyndns.kishibe.qmaclone.client.ranking;
import java.util.List;
import tv.dyndns.kishibe.qmaclone.client.packet.PacketRankingData;
import tv.dyndns.kishibe.qmaclone.client.report.SafeHtmlColumn;
import com.google.gwt.core.client.GWT;
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
import com.googl... | 30.123596 | 111 | 0.763148 |
705e47faae044bddc7508416b6a5902853a1cd25 | 34,337 | /**
* Copyright © 2015, University of Washington
* 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,... | 32.889847 | 182 | 0.599237 |
4ae73449a77d1b2d124a45dff3e8b07b92398d5f | 1,901 | package com.yiran.api.utils;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Map;
public class CheckUtils {
public static final String COMMON_FIELD = "flowID,initiator,";
/**
* 验证对象是否为NULL,空字符串,空数组,空的Collection或Map(只有空格的字符串也认为是空串)
* @param obj 被验证的对象
* @param message 异常信息
*/
... | 25.346667 | 70 | 0.687007 |
5f09eb8e1eaed3da83bbc062211163b89f6f311b | 284 | package de.fh_dortmund.inf.cw.phaseten.server.exceptions;
/**
* CardAlreadyTakenInThisTurnException
*
* @author Marc Mettke
*/
public class CardAlreadyTakenInThisTurnException extends MoveNotValidException {
private static final long serialVersionUID = 4739322323858292982L;
}
| 25.818182 | 80 | 0.816901 |
a0ce4cf2d0ee435486488a4a452c1d2047f2aa16 | 3,517 | package com.synopsys.integration.detectable.detectables.dart.functional;
import java.io.File;
import java.io.IOException;
import java.nio.file.Paths;
import org.jetbrains.annotations.NotNull;
import org.junit.jupiter.api.Assertions;
import com.synopsys.integration.bdio.model.Forge;
import com.synopsys.integration.de... | 44.518987 | 164 | 0.731589 |
9e5f720b498e4c085ba9281cde4d93f87f71e0fe | 19,769 | /**
* Project Name:OpenUniversity
* File Name:PersonSearchActicity.java
* Package Name:com.tming.openuniversity.activity
* Date:2014-6-9下午11:34:16
* Copyright (c) 2014, XueWenJian All Rights Reserved.
*
*/
package com.nd.shapedexamproj.activity.im;
import android.content.Context;
import android.g... | 31.479299 | 124 | 0.665942 |
09838b974057fbcd5feeff16e6494d7441f5c833 | 6,764 | package com.github.project.videoeditor.gui;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import javax.swing.*;
import com.github.project.videoeditor.container.Marker;
import com.github.project.videoeditor.container.Movie;
import com.github.project.videoeditor.mod... | 28.540084 | 79 | 0.72531 |
a2545ab31bcd16c503a6de958da24be9da51eb1a | 13,185 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
*************************************... | 44.846939 | 290 | 0.719909 |
f9584d937e4b3a02f9de991e3cffc4528ea1de55 | 178,073 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 50.303107 | 375 | 0.818024 |
76b0b23493f67ce1201e4dfad47b8aa7f7ef23a4 | 9,062 | package cn.huan.mall.product.service.impl;
import cn.huan.common.constant.ProductConstant;
import cn.huan.common.utils.PageUtils;
import cn.huan.common.utils.Query;
import cn.huan.mall.product.dao.AttrDao;
import cn.huan.mall.product.dao.AttrGroupDao;
import cn.huan.mall.product.dao.CategoryDao;
import cn.huan.mall.pr... | 40.275556 | 118 | 0.661885 |
5307e74d64f0d87fda20b5cdf02ddd771333d616 | 1,371 | package com.siyuan.enjoyreading.ui.activity.knwoledge;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import com.androidapp.activity.BaseActivity;
import com.androidapp.smarttablayout.SmartTabLayout;
import com.androidapp.wid... | 31.883721 | 87 | 0.733042 |
308c3c3ea5214a488779cc3e0fb8008ff308b9db | 967 | /*
* Copyright (c) 2019 Nike, 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 i... | 29.30303 | 75 | 0.726991 |
8b7a44927ac46d1629715eb0aee6e1820efc2d1f | 243 | package org.wso2.siddhi;
import org.wso2.siddhi.core.event.Event;
/**
* Proxy callback interface for QueryCallback Abstract Class
*/
public interface ExecutionPlanCallbackProxy {
void receive(long l, Event[] events, Event[] events1);
} | 24.3 | 60 | 0.757202 |
7a60c944224ad37f3c3693f6260dcb655f31c9ca | 2,894 | /**
* 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 m... | 37.584416 | 152 | 0.681064 |
ffcc486302e1891f681d63dc21f620e05f30e70e | 4,451 | package com.borneo.framework.common.utils;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
public class UploadFileUtil {
private static final String S... | 38.37069 | 269 | 0.619411 |
4763f2ce2813cc47ad90bb27b5fd9aa14e6ff347 | 2,862 | /*
* 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 ... | 35.333333 | 164 | 0.628232 |
1739333d0b32969b0b233336eb153607fad6c83c | 2,988 | /*
* Copyright 2011 JBoss 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 i... | 44.597015 | 98 | 0.695448 |
fe70fdaf807dc4c920933deb302951cf938c8921 | 5,236 | package com.vladsch.flexmark.ext.enumerated.reference.internal;
import com.vladsch.flexmark.ext.attributes.internal.AttributesNodeFormatter;
import com.vladsch.flexmark.ext.enumerated.reference.*;
import com.vladsch.flexmark.formatter.*;
import com.vladsch.flexmark.util.data.DataHolder;
import com.vladsch.flexmark.uti... | 38.5 | 164 | 0.688503 |
e0673bc02722cac802a86ea8354cd7772875ae33 | 1,530 | /*
* 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.25 | 98 | 0.752288 |
5317d0f5dabaef689479c64a6012e0188a404a39 | 2,299 | package edu.tamu.aser.tests.ABPushPop; /*************************************************************/
/* (C) IBM Corporation (2007), ALL RIGHTS RESERVED */
/* */
/* Benny Godlin 30/1/2007 Class created */
/******************************... | 37.080645 | 102 | 0.606351 |
cd41e7b50a44a913e60bfa78aa5050df84296298 | 608 | package com.gangoffour2.monopoly.azioni.giocatore;
import com.gangoffour2.monopoly.model.giocatore.Giocatore;
import com.gangoffour2.monopoly.stati.casella.StatoCasella;
import com.gangoffour2.monopoly.stati.partita.StatoPartita;
import lombok.Data;
import lombok.experimental.SuperBuilder;
import java.io.Serializable... | 25.333333 | 63 | 0.8125 |
36ffe2755bf80e4bf3091ac777d688508004e35a | 4,017 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 69.258621 | 189 | 0.839432 |
93e8992e0b9f6f3bda4c2d9a97cbab8161fabf06 | 13,684 | /*
* Copyright 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 applic... | 23.798261 | 83 | 0.697822 |
425f1cf19abf933664a6d2066b9182b5ce18f418 | 585 | package com.mtons.mblog.modules.service;
import com.mtons.mblog.modules.data.NotifyVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
/**
* @author langhsu on 2015/8/31.
*/
public interface NotifyService {
Page<NotifyVO> findByOwnId(Pageable pageable, long ownId);... | 17.205882 | 62 | 0.62735 |
21c078bdbec9f4285ef609da3d24ba2d6a92487b | 17,876 | package de.unistuttgart.ipvs.as.mmp.init;
import com.google.common.io.ByteStreams;
import de.unistuttgart.ipvs.as.mmp.common.domain.*;
import de.unistuttgart.ipvs.as.mmp.common.domain.opcua.OpcuaInformationModel;
import de.unistuttgart.ipvs.as.mmp.common.domain.opcua.OpcuaMetadata;
import de.unistuttgart.ipvs.as.mmp.c... | 47.924933 | 135 | 0.632356 |
368656f4636b5f203e4fbff1a0c41748619030e5 | 1,090 | package de.thecodelabs.storage.serializer;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
/**
* Class for saving and reading serialized data
*
* @author Deadlocker8
*/
public class Serializer
{
private Serializer()
{
}
... | 20.566038 | 89 | 0.695413 |
aa2f272652f12e999ef50b73d34539905a594fc1 | 1,937 | package com.ruoyi.project.system.mapper;
import java.util.List;
import com.ruoyi.project.system.domain.SysPost;
import org.apache.ibatis.annotations.Param;
/**
* 岗位信息 数据层
*
* @author ruoyi
*/
public interface SysPostMapper
{
/**
* 查询岗位数据集合
*
* @param post 岗位信息
* @return 岗位数据集合
*/
... | 18.805825 | 106 | 0.568921 |
ea32840ca067995562d0a4bcdf926e206fb3555f | 80 | package com.mao.lang;
public interface Obtainable {
public Object obtain();
}
| 13.333333 | 29 | 0.75 |
90f7f48ff9ca4f0dcbe15a943a64e70bd5fc05d6 | 9,508 | /*
* Copyright 1999-2017 Alibaba Group Holding Ltd.
*
* 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 applica... | 55.27907 | 127 | 0.517775 |
61b3e75eaa8096fced63fddc20091fa3d8b4061d | 468 | package com.devskiller.jfairy.producer.person.locale.zh;
import org.apache.commons.lang3.RandomStringUtils;
import com.devskiller.jfairy.producer.person.PassportNumberProvider;
/**
* com.devskiller.jfairy.producer.person.locale.zh.ZhPassportNumberProvider
*
* @author lhfcws
* @since 2017/3/2
*/
public class ZhP... | 23.4 | 75 | 0.797009 |
b7fd851b1d85a4629c5fddb7cdda92bde080796a | 1,498 | package co.shubhamgupta.vogue.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import co.shubhamgupta.vogue.model.Product;
import co.shubhamgupta.vogue.repository.ProductRepository;
@Service
public class ProductService {
... | 24.966667 | 74 | 0.790387 |
4b12a48263a5508b8171c66e2db28b6cc45aea3d | 10,126 | package com.joyfulmagic.colors.databases.UserDatabase;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.joyfulmagic.colors.databases.ColorDatabase.ColorDataba... | 31.349845 | 113 | 0.589769 |
3fa9fceb548ac458f4a7ebc752655a273b3bb581 | 9,512 | package com.seras.api;
import com.seras.constants.LogConstants;
import com.seras.enums.SpreadSheetFormat;
import com.seras.exceptions.InvalidSpreadSheetFormatException;
import com.seras.interfaces.ExcelParserHSSF;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.a... | 31.496689 | 144 | 0.655067 |
16112d1b86d96b593fede03ffe8053b7218bcdff | 414 | package xyz.rensaa.providerservice.repository;
import org.springframework.data.repository.CrudRepository;
import xyz.rensaa.providerservice.model.Treatments.TreatmentLicenseAssignment;
import java.util.List;
public interface TreatmentLicenseAssignmentRepository extends CrudRepository<TreatmentLicenseAssignment, Str... | 37.636364 | 115 | 0.86715 |
8595c94d340e587b8b0086e3b02d91c6d1bf641a | 1,818 | /**
* 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... | 39.521739 | 75 | 0.709021 |
12c3c9cce2ab50499698a8ef5f39dbfbd80f9471 | 949 | package calcu;
public class Class_ohmLaw2 {
private double resis;
private double resMa;
private double comp;
private double areaTra;
public double getResis() {
return resis;
}
public void setResis(double resis) {
this.resis = resis;
}
public double getResMa() {
... | 16.946429 | 44 | 0.537408 |
1e2136014cf7a9a4bb59ad12d870d8f1e79338f0 | 737 | import java.net.Socket;
import java.io.PrintWriter;
import java.io.IOException;
public class SimpleJavaSocketClient {
public static void main(String[] args) throws Exception {
System.out.println("Sending Message to Client :)"); // System Output
try {
Socket socket = new Socket("192.168... | 30.708333 | 103 | 0.618725 |
83ba6c0c14762b1013d5b7c6773384c8ca0b4504 | 7,061 | package com.st.novatech.springlms.service;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.IOException;
import java.sql.SQLException;
import java.time.LocalDate;
import ja... | 32.995327 | 96 | 0.756975 |
7c832374cc47484a47ca4af6c338161e7a606136 | 156 | package g_earth.protocol.hostreplacer;
public interface HostReplacer {
void addRedirect(String[] lines);
void removeRedirect(String[] lines);
}
| 15.6 | 40 | 0.74359 |
a73fbfd2f3897abc2d58a7aa690dc6eb0169a35e | 182 | package sif3.au.naplan.provider.service;
import sif.dd.au30.model.SchoolInfoCollectionType;
public interface SchoolInfoService extends NaplanService<SchoolInfoCollectionType> {
}
| 22.75 | 84 | 0.846154 |
ac3a61da3d9930c494875968b896b6d1d21925d7 | 58 | package nfl.playdb.dao;
public interface TackleDAO {
}
| 8.285714 | 28 | 0.741379 |
0780275d24a06575f55fc02cf9729956f9683637 | 1,505 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package org.atalk.impl.androidupdate;
import net.java.sip.communicator.service.update.UpdateService;
import net.java.sip.communicator.util.ServiceUtils;
import net.java.sip.... | 24.672131 | 80 | 0.747508 |
69cd24f45578910136569a2e042c9c88c38f7da3 | 24,271 | package com.tanyiqu.filesafe.activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.SparseBooleanArray;
import android.view.Gravity;
import android.view.LayoutInflat... | 33.850767 | 121 | 0.507519 |
ddfe76fbfa3680b731d652544bfa9f7142e1cd24 | 3,101 | package com.vaadin.flow.uitest.ui.template;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.vaadin.flow.component.html.testbench.NativeButtonElement;
import com.vaadin.flow.testutil.ChromeBrowserTest;
public class InnerTemplateVisibilit... | 39.75641 | 83 | 0.663334 |
40f224e8f3144d3ab4c892a5a3fe40932226cca2 | 17,177 | package com.bfo.json;
import java.util.*;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.charset.*;
/**
* <p>
* This class controls the details of the {@link Json#read Json.read()} call.
* The various flags set on this class can control the read process, and in
* some cases (e.g. {@link #setStrictT... | 32.655894 | 127 | 0.590906 |
b641f1f8caf8e369c3fa5a84a95e1bcaa58ed572 | 1,040 | package com.ineat.sample.quickadapter.itemrenderer;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.TextView;
import com.ineat.quickadapter.QuickItemRenderer;
import com.ineat.quickadapter.QuickLayout;
import com.ineat.quickadapter.sample.R;
import com.ineat.sample.quickadap... | 30.588235 | 83 | 0.769231 |
5b61142009d69d87baafb26170763526239fd8e0 | 1,342 | package org.vitrivr.cineast.api.messages.session;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.vitrivr.cineast.api.messages.... | 27.958333 | 88 | 0.763785 |
127a49e64c0d314d903260ce0704a5678eb9ab59 | 4,264 | package cn.zqmy.monkeytool.cache.util;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.data.redis.connection.DataType;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.co... | 24.090395 | 121 | 0.584662 |
a7f7a4741ca9d41debb8556b1ed1f48a9a78ee89 | 509 | package com.scheduler.managerserver.vo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 模型集成
* @Author: wangming
* @Date: 2020-05-26 10:20
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ComputerServerInfo {
String oid;
... | 17.551724 | 39 | 0.726916 |
78f0d5d9f049aeb534357e9c62cbb591a5b71e0b | 2,690 | package DataStructureStrArrayDeque;
import java.util.ArrayList;
import java.util.List;
public class CsvParser_STR {
/*
* How to parse csv file:
input file
“some_name|some_address|some_phone|some_job”,
output
Json format “{name:some_name, address:some_addres,phone:some_... | 34.935065 | 121 | 0.430855 |
cd4f166779689911fbd50a053dfcb3027d668f5b | 4,682 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.management;
import java.io.File;
import java.io.IOException;
import java.io.Inp... | 37.758065 | 118 | 0.605938 |
65415182099bd44b967ccda0537e7877dca41a2c | 210 | package calendar;
public interface Effect {
public void init();
public void mouse();
public void keyboard();
public void reshape(int width, int height);
public void display();
public String getName();
}
| 19.090909 | 44 | 0.728571 |
7c3512b8b5d72596a3ee4ef13723e728fcbf8dd1 | 21,350 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v4.view.accessibility;
import android.os.Parcelable;
import android.view.View;
import android.view.accessibility.AccessibilityReco... | 33.888889 | 127 | 0.583138 |
111ab01224fd97021a1e8f5af9ebcb4200827652 | 1,922 | /*
* Copyright 2021 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 28.264706 | 107 | 0.693548 |
3574cf875c6284687c10637159ec96a823ade2dc | 595 | package net.minecraft.server;
public class ItemSplashPotion extends ItemPotionThrowable {
public ItemSplashPotion(Item.Info item_info) {
super(item_info);
}
@Override
public InteractionResultWrapper<ItemStack> a(World world, EntityHuman entityhuman, EnumHand enumhand) {
world.playSoun... | 39.666667 | 234 | 0.736134 |
b078dbd5e8c3f0bd58a6235d1f197b97e1fb80d7 | 1,311 | package com.google.jenkins.plugins.computeengine.client;
import com.google.api.services.compute.Compute;
import com.google.api.services.compute.model.Operation;
import java.io.IOException;
// This class is a collection of things that ought to be in
// com.google.cloud.graphite.platforms.plugin.client.ComputeClient,
/... | 34.5 | 96 | 0.755912 |
ed345358a712d66a3505a023c8f69aae092e5937 | 4,592 | package org.shapelogic.imageprocessing;
import org.shapelogic.color.ValueAreaFactory;
import org.shapelogic.imageutil.SLImage;
import static org.shapelogic.imageutil.ImageUtil.runPluginFilterOnBufferedImage;
/** Test SBSegment.
* <br />
*
* @author Sami Badawi
*
*/
public class BaseParticleCounterTest extends ... | 37.032258 | 96 | 0.762195 |
db23f18a91a8a9f75eaf4d1601351851e1314d93 | 18,897 | package msifeed.mc.more.crabs.combat;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import msifeed.mc.more.More;
import msifeed.mc.more.crabs.action.Action;
im... | 39.286902 | 129 | 0.632428 |
902e06d8947be86f39c69d4f2f4b04fa9d6c83a5 | 1,900 | /*
* Copyright 2017 The Mifos Initiative.
*
* 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 a... | 38 | 111 | 0.794211 |
9292ae7cb7894a26272c9876e83ba625b59ce2de | 4,506 | package mod.noobulus.tetrapak.quark;
import mod.noobulus.tetrapak.TetraPak;
import net.minecraft.block.material.MaterialColor;
import net.minecraft.util.ResourceLocation;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Predicate;
import sta... | 34.930233 | 131 | 0.748114 |
0e1cafc575c2ee5b2e02baa44524e7f6ac6e20b6 | 1,275 | package com.eon.androidthings.sensehatdriverlibrary.devices.fonts;
import android.content.res.AssetManager;
/**
* TODO Description
*/
public class BlackWhiteFont extends AbstractLEDFont {
private static final String FONT_IMAGE = "BlackWhiteFont.png";
// -------------------------------------------------... | 29.651163 | 148 | 0.596078 |
70c7ba7ad7dce7165ceb94cd090fe2bfba0dc3da | 2,713 | package com.nonstoppvp.core.utils;
import com.google.common.collect.Maps;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.enchantments.EnchantmentTarget;
import org.bukkit.inventory.ItemStack;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Map;
public class EnchantUtils
{
... | 23.188034 | 105 | 0.55105 |
f074e1a8581c31576e39352b9d8bf40c805d3ef3 | 374 | package com.epam.pricecheckercore.model.product;
import com.epam.pricecheckercore.model.magazine.Magazine;
import org.javamoney.moneta.Money;
import org.jsoup.nodes.Document;
public interface Product {
Magazine getMagazine();
boolean isInStock(Document document);
Money getDiscountedPrice(Document docum... | 22 | 57 | 0.78877 |
2e7fc2cd2f0dd7571cc94b5f331adfe920b8728a | 3,057 | package com.webank.wedatasphere.streamis.appconn.standard;
import com.webank.wedatasphere.dss.appconn.core.AppConn;
import com.webank.wedatasphere.dss.standard.app.structure.StructureIntegrationStandard;
import com.webank.wedatasphere.dss.standard.app.structure.project.ProjectService;
import com.webank.wedatasphere.ds... | 27.053097 | 109 | 0.686948 |
e61a2bbc66ecaa196d90aeb581affd7ce45dac8d | 432 | package com.ocadotechnology.newrelic.alertsconfigurator.configuration.condition.violationclosetimer;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor(access = AccessLevel.PACKAGE)
public enum ViolationCloseTimer {
DURATION_1("1"),
DURATION_2("2"),
... | 22.736842 | 100 | 0.75 |
d95eee9c944f6fd083d834503259c886b34143a3 | 49,643 | /*
* Copyright 2016 The Sem 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 applicable law or agr... | 49.151485 | 185 | 0.502266 |
cc7cbdb0ccad780070eee1b429877ffbcf1241bf | 241 | package stexfires.io;
import stexfires.io.spec.RecordFileSpec;
import java.nio.file.Path;
/**
* @author Mathias Kalb
* @since 0.1
*/
public interface RecordFile<S extends RecordFileSpec> {
Path getPath();
S getFileSpec();
}
| 13.388889 | 55 | 0.697095 |
8a4205323198c1e7fa2d899fccc23a805651382e | 2,069 | /**
* Copyright © Microsoft Open Technologies, Inc.
*
* All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* THIS ... | 32.328125 | 85 | 0.755921 |
3d31ec9ae29b64798254c6cc3e36bf15c8aaa028 | 1,425 | /*
* 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.6875 | 99 | 0.73614 |
9f97bcd54bf8faeba74c41af11f51b833e3d9817 | 507 | package sh.evc.sdk.wechat.mp.domain.customer;
/**
* 客服消息文本
*
* @author winixi
* @date 2019-06-07 16:36
*/
public class Text {
/**
* 消息内容
*/
private String content;
public Text(String content) {
this.content = content;
}
public String getContent() {
return content;
}
public void set... | 14.485714 | 45 | 0.57002 |
fce946a605120c6efc149455e30a42b502daa143 | 8,094 | /*
* MIT License
*
* Copyright (c) 2017 SnowShock35
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 58.230216 | 360 | 0.7681 |
a40a0b113270dc909e3485de29f4c85aa319b79f | 477 | package com.saurav.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.saurav.base.TestBase;
public class AddressPage extends TestBase{
@FindBy(xpath="(//button[@type='submit'])[2]")
WebElement checkout;
public Add... | 19.875 | 47 | 0.752621 |
5195ac680ef63282a8d95ede1b2179dbe4353e49 | 3,504 | package org.vaadin.activiti.simpletravel.domain;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.OneToOne;
import javax.persistence.Temporal;
... | 29.948718 | 91 | 0.716039 |
2561a63ffb1c0642ce284cd53de768bc444613cb | 929 | package com.communote.server.web.commons.resource;
import javax.servlet.http.HttpServletRequest;
import com.communote.common.util.Orderable;
/**
* Provider which defines the URL from which a favicon icon can be downloaded.
*
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.commun... | 35.730769 | 99 | 0.697524 |
c6ad42c43f6eb0dfaad6b43ca4f6d9e8d18cd95f | 10,144 | package net.mizucoffee.onenightwerewolf.welcome;
import android.app.ProgressDialog;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.databinding.ObservableInt;
import android.databinding.adapters.SeekBarBindingAdapter;
import android.graphics.Typeface;
import android.os.Bundle... | 39.780392 | 124 | 0.5764 |
0bcd6d216e36fa302068cb8f642bf444402f64f6 | 2,276 | package sensor;
import core.Sensor;
import edu.wpi.first.wpilibj.ADXL345_I2C;
import event.events.ADXL345Event;
import event.listeners.ADXL345Listener;
import java.util.Enumeration;
import java.util.Vector;
/**
* Wrapper for the ADXL345 accelerometer. Measures X, Y, and Z accelerations in
* G's (doesn't account for... | 30.346667 | 82 | 0.638401 |
9a9ddbcf87f6eacddf09b3ac08f750b7aa4824fa | 4,914 | package utils;
import java.util.Random;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.function.Predicate;
import java.util.function.Supplier;
import static org.junit.jupiter.api.Assertions.*;
/**
* Some simple utilities for writing tests.
*
* @author Samuel A. Rebelsky
*/
public cla... | 26.706522 | 99 | 0.582621 |
55ca79866d5c92f66f973c765d55e68c8a2cdf1a | 492 | package com.airback.vaadin.ui;
import com.airback.vaadin.web.ui.WebThemes;
import com.vaadin.ui.Component;
import com.vaadin.ui.Panel;
/**
* @author airback Ltd
* @since 7.0.0
*/
public class FormSection extends Panel {
public FormSection(String caption) {
this(caption, null);
}
public FormSec... | 22.363636 | 59 | 0.689024 |
c60a5c6523019f4c32ffcaa418d71caf8a6fd934 | 509 | package equals;
import java.util.Objects;
class Person{
private String name;
public Person(String name) {
this.name = name;
}
@Override
public String toString() {
return name;
}
// 우클릭 - 소스 - generate hashCode() and equals()클릭
}
public class App {
public static void main(String[] args) {
// 같은지 비교하는... | 16.966667 | 56 | 0.646365 |
319e24ea962054193c0015c5a0fdc0a8a4d73c86 | 11,861 | package com.example.org.bouncycastle.crypto.signers;
import java.security.DigestException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
impor... | 37.065625 | 357 | 0.760054 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.