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 |
|---|---|---|---|---|---|
efddea1ee7ef9afde4d5c347fecf3f3b073aa665 | 415 | package eu.xenit.contentcloud.thunx.predicates.model;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode
class NullValue implements Scalar<Void> {
protected static NullValue INSTANCE = new NullValue();
private NullValue() {
}
@Override
public Void getValue() {
return null;
}
@... | 18.043478 | 58 | 0.674699 |
fb207d68a76db0f60bbfd9bbbfbb233e1c2780f7 | 381 | package api.core.exception;
/**
* author caibin
* date 2021-07-15
*/
public final class FindFailedException extends RocksIOException {
public FindFailedException(final String message) {
super(message);
}
public FindFailedException(
final String message,
final Throwable ... | 19.05 | 65 | 0.648294 |
fe21d03273485aff50a88568fd6070cf5e599644 | 467 | package com.yin.myproject.demo.concurrent.base;
public class JoinDemo01 implements Runnable {
private static int n = 0;
public void run() {
for (int i = 0; i < 5; i++) {
n += 1;
}
}
public static void main(String[] args) throws InterruptedException {
Thread t = new Thread(new JoinDemo01());
... | 17.961538 | 70 | 0.576017 |
6f159799b26c1734e542f66125e963cc06c766ae | 10,967 | /*
* Copyright (c) 2014. Real Time Genomics Limited.
*
* 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
* notice... | 30.046575 | 120 | 0.694721 |
5496458fde67bee1874877d87ade003fff31bea5 | 2,980 | package com.et.springwebapp.entity;
import com.et.springwebapp.exception.ServiceException;
import java.beans.BeanInfo;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
/**
* Created by ... | 26.846847 | 89 | 0.589262 |
55329f35b5e9f5ec2c54819853fe5f0c6e72e7bc | 6,925 | package com.wxw.test.hbase;
import com.wxw.HbaseTestBase;
import com.wxw.common.Constant;
import com.wxw.manager.client.ServiceHbaseClient;
import org.apache.hadoop.hbase.Cell;
import javafx.util.Pair;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.CellUtil;
import org.apache.hadoop.hbase... | 36.835106 | 130 | 0.59639 |
7056088c3af9492897a5068ba2b5b17b7d75f5df | 2,779 | package com.coin.exchange.view.fragment.trade.position;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
impo... | 27.514851 | 134 | 0.706369 |
1a5f4ed6a2c47d7265a4111a22c30859590f8faf | 3,511 | /*
* Copyright (c) 2006-2018 Tibor Adam Varga (tibor.adam.varga on gmail)
*
* 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... | 33.759615 | 158 | 0.612076 |
e8da8c99fb4d198364f6ed16efeeedc3877df82b | 253 | package com.didiglobal.logi.job.common.po;
import lombok.Data;
import java.sql.Timestamp;
@Data
public class BasePO {
/**
* 创建时间
*/
protected Timestamp createTime;
/**
* 更新时间
*/
protected Timestamp updateTime;
}
| 12.65 | 42 | 0.624506 |
7ccab88bdbf0939679083705bf7752cd50a149cc | 587 | package util;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
/**
* @author Jan Van Haaren
* @version 1.0
*/
public class OutputLogger {
private final File outputFile;
public OutputLogger(final File outputFile) {
this.outputFile = outputFile;
}
public boolean log(... | 16.305556 | 75 | 0.701874 |
1e86ae5343e4345bc46b278fd3edcaeddff1fc16 | 18,674 | package com.fx.maind;
import java.io.IOException;
import java.util.concurrent.Callable;
import android.content.Context;
import android.database.ContentObserver;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.os.PowerManager;
import android.os.PowerManager.WakeLock;
import ... | 31.227425 | 92 | 0.700814 |
b89e292c6e683b87949c0cd244c0eac1c7e471f1 | 2,112 |
package se.tekis.arende;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for arendeHandlaggare complex type.
*
* <p>The following schema fragment specifies the expected content contained w... | 26.4 | 116 | 0.64536 |
ceda3662498bf4d8d898f05a3112df2377f0a866 | 1,281 | package test.set;
import java.io.File;
import test.StatsLog;
import krati.core.segment.MemorySegmentFactory;
import krati.core.segment.SegmentFactory;
import krati.store.DataSet;
import krati.store.StaticDataSet;
public class TestStaticDataSet extends EvalDataSet
{
public TestStaticDataSet()
{
super... | 26.6875 | 72 | 0.583919 |
3ce79797dc0046efc9ff8571dede907425f1d19e | 16,308 | package com.annaru.upms.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.annaru.common.base.BaseController;
import com.annaru.common.config.redis.IRedisService;
import com.annaru.common.result.PageUtils;
import com.annaru.common.result.ResultMap;
import com.annaru.common.result.UserBasicMen... | 34.117155 | 121 | 0.60688 |
b2f1ec1b0bec459c2bdd86a6eeda6a2a56570311 | 1,491 | /**
* Copyright 2017 Comcast Cable Communications Management, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by a... | 39.236842 | 75 | 0.714956 |
eabb288e3549f3d8e476759836227742787e38bb | 5,009 | package chat;
import static chat.Conversation.getConversationFile;
import java.io.*;
import java.net.*;
import java.util.*;
import java.util.logging.Level;
import java.util.logging.Logger;
// This class shows differente messages of the conversation, and receive
// this information from a server
public class User{
... | 24.434146 | 86 | 0.555001 |
208ab5e3a9e2d196c03c953178ec7aea2c88e89b | 3,617 | package com.google.zxing.qrcode.decoder;
final class FormatInformation {
private static final int[][] FORMAT_INFO_DECODE_LOOKUP = {new int[]{FORMAT_INFO_MASK_QR, 0}, new int[]{20773, 1}, new int[]{24188, 2}, new int[]{23371, 3}, new int[]{17913, 4}, new int[]{16590, 5}, new int[]{20375, 6}, new int[]{19104, 7}, ne... | 47.592105 | 759 | 0.638374 |
47f9e9a4a4ae854871db49920737752944a008fd | 4,400 | package routes;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.Attributes;
import org.... | 26.347305 | 104 | 0.690227 |
09bb2130576a1963046243fc11588007c5794d90 | 759 | package com.vc.medium;
import java.util.ArrayList;
import java.util.List;
class L39 {
List<List<Integer>> res;
public List<List<Integer>> combinationSum(int[] candidates, int target) {
this.res = new ArrayList<>();
if(candidates.length == 0) return res;
helper(candidates, 0, target, ne... | 29.192308 | 86 | 0.587615 |
b28d08bf3815ab1289167328d0bb4379d0ee29fb | 3,470 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40.823529 | 100 | 0.787032 |
551fb5ab5019798afcca9360fa5d71e5c8120e9c | 1,981 | package net.ssehub.teaching.exercise_submitter.eclipse.background;
import java.util.Optional;
import java.util.function.Consumer;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.ILock;
import org.ec... | 26.413333 | 117 | 0.603231 |
fc7f5a9057b127d8930da47864713e5fee7544b9 | 516 | package ru.sdetteam.easygauge.model;
import lombok.Data;
/**
* Table: mantis_tokens_table
*/
@Data
public class Tokens {
/**
* Column: id
*/
private Integer id;
/**
* Column: owner
*/
private Integer owner;
/**
* Column: type
*/
private Integer type;
/**
... | 13.230769 | 36 | 0.52907 |
642f24d2968bb2d8112a3b6c10aeb5058192bc4b | 1,066 | package classification.file;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.apache.commons.csv.CSVRecord;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
public class CSVHandler {
public s... | 26 | 93 | 0.637899 |
3e83ddc2f0433a8af0b247974c1c422217e9cd02 | 1,532 | package co.finalproject.farm.app.shop.service.impl;
import java.util.List;
import java.util.Map;
import co.finalproject.farm.app.shop.service.CartVO;
import co.finalproject.farm.app.shop.service.OrderVO;
import co.finalproject.farm.app.shop.service.ShopVO;
public interface ShopMapper {
// 페이징 건수(상품)
public int get... | 18.91358 | 53 | 0.708225 |
230189dcb61cd52b33aa6565060d9f5144159fc6 | 1,363 | package intellibitz.intellidroid.util;
/**
*/
public enum MediaPickerRequest {
REQUEST_CAPTURE,
REQUEST_GALLERY,
REQUEST_DOCUMENTS,
REQUEST_CROP,
REQUEST_CHOOSER;
/**
* Convert request code integer back into a user
* friendly enum.
*
* @param code Request code integer.
... | 16.621951 | 60 | 0.512839 |
1e151dad303a96902cb4cf51e8b4b16e01d8196e | 319 | package com.mercateo.test.clock.example.timer;
import java.time.Clock;
import java.time.OffsetDateTime;
public class MyWatch {
private final Clock clock;
public MyWatch(Clock clock) {
this.clock = clock;
}
public String now() {
return OffsetDateTime.now(clock).toString();
}
}
| 16.789474 | 52 | 0.670846 |
fc85551449a6c09c734f9b4264103969b01bb09f | 560 | package org.gnube.dnd.api;
import org.gnube.dice.visitor.DiceRoller;
public class Attack {
public static final String BASE_ATTACK_DICE="1d20";
String dice;
DiceRoller.Total total;
boolean crit;
public Attack(String dice, DiceRoller.Total total, boolean crit) {
this.dice = dice;
t... | 18.064516 | 70 | 0.617857 |
e4f26b8dd9956ecc84a190a1a82efe740d39b2b1 | 1,374 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Model;
/**
*
* @author Frederic
*/
public class UserServiceWebClient implements UserService{
UserService webService;
public... | 24.535714 | 127 | 0.695779 |
12be96241d7c0a55f7afc125655e5573dd79c395 | 6,232 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 45.15942 | 121 | 0.513158 |
b6aa969e086d641aeed2a9c376f46bd9ae2e5625 | 5,934 | /*
* Copyright 2000-2013 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... | 36.404908 | 101 | 0.709471 |
e9b7e1f2c6b62c4f0318936dcadd8294635494ed | 572 | /*
* CFGAnalyzerOutput.java - part of the GATOR project
*
* Copyright (c) 2018 The Ohio State University
*
* This file is distributed under the terms described in LICENSE in the
* root directory.
*/
package presto.android.gui.wtg.analyzer;
import com.google.common.collect.Multimap;
import presto.android.gui.gra... | 26 | 71 | 0.774476 |
5ddb48cc8663eba6e09d9ae2ab90d3f08d73e8e2 | 81 | package core.Model;
public class Model_Fahrer {
public Model_Fahrer() {
}
}
| 9 | 27 | 0.703704 |
c3423dda6420b9389fb7ea27e2fbccb91f2a21cb | 551 | package com.softwaremill.common.test.util;
import org.mockito.cglib.proxy.Factory;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Extensions to Mockito mocking framework.
*
* @author Maciej Bilas
* @since 15/12/11 13:05
*/
public class ExtMockito {
/**
* Checks if the given obj... | 21.192308 | 64 | 0.664247 |
01b39caf1990747591116a201df156dfaff21437 | 1,803 | /*
* Copyright 2008-2009 the original 赵永春(zyc@hasor.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 by a... | 38.361702 | 111 | 0.69939 |
5543f0d93b03d137da52b46b22c86d41870a4a78 | 848 | package jp.skypencil.pmd.slf4j;
import org.apache.commons.io.IOUtils;
import org.sonar.api.resources.Java;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleRepository;
import org.sonar.api.rules.XMLRuleParser;
import java.io.InputStream;
import java.util.List;
public class PmdExtensionRepository exten... | 24.941176 | 60 | 0.766509 |
6117bb5e53a5d3b20e2318212d89a1297c9beb90 | 759 | package com.example.georged.orarupb.utils;
import com.example.georged.orarupb.R;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
/**
* Created by georgemd on 14.02.2018.
*/
public class ScheduleVi... | 28.111111 | 65 | 0.760211 |
4214a8d063885ce0e6a3b94b870bcf369aa2f580 | 2,570 | package com.db117.example.leetcode.solution7;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
/**
* 705. 设计哈希集合.
* 不使用任何内建的哈希表库设计一个哈希集合
* <p>
* 具体地说,你的设计应该包含以下的功能
* <p>
* add(value):向哈希集合中插入一个值。
* contains(value) :返回哈希集合中是否存在这个值。
* remove(value):将给定值从哈希集合中删除。如果哈希集合中没有这个值,什么也不做。... | 22.54386 | 66 | 0.530739 |
46ba3faabc6c736846c2f937b47e4d1fa1aa65a1 | 4,158 | package org.bouncycastle.pqc.crypto.frodo;
import org.bouncycastle.crypto.BufferedBlockCipher;
import org.bouncycastle.crypto.InvalidCipherTextException;
import org.bouncycastle.crypto.Xof;
import org.bouncycastle.crypto.digests.SHAKEDigest;
import org.bouncycastle.crypto.engines.AESEngine;
import org.bouncycastle.cry... | 35.237288 | 180 | 0.480038 |
433aee39b83e58611d2948d10f3e24c08cbd6ad5 | 394 | package cn.alphahub.mall.site.mapper;
import cn.alphahub.mall.site.domain.SiteInvalidSession;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 场地预约不可用场次表
*
* @author Weasley J
* @email 1432689025@qq.com
* @date 2021-02-16 18:16:14
*/
@Mapper
public inter... | 21.888889 | 82 | 0.779188 |
b48a51b419db3e3165704b377d77dcf4e79cf69b | 824 | package chav1961.da.util.interfaces;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.ZipOutputStream;
import chav1961.purelib.basic.SubstitutableProperties;
import chav1961.purelib.basic.interfaces.LoggerFacade;
@FunctionalInterface
public interface EntityPro... | 32.96 | 156 | 0.830097 |
2295c81fb80b4ff1becd447418d79b2c3060b531 | 5,929 | /*
* Copyright (C) 2010 0xlab - http://0xlab.org/
*
* 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... | 27.705607 | 88 | 0.576488 |
3f5203fa307693d1847c7ac5980ccfd11cf1e6e8 | 1,613 | package com.mycompany.insercion;
import java.util.Scanner;
/**
*
* @author alemr
*/
public class Insercion {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
int[] arreglo;
int numeroElementos, posicion, memoria;
System.out.println("In... | 32.26 | 138 | 0.549907 |
36a44bd5f006aa79b57e76932a7017eafdf93452 | 1,651 | package bewte.endanalysis;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import foal.map.IntIntHashMap;
public abstract class AbstractEndAnalyzer implements EndAnalyzer {
protected S... | 31.150943 | 192 | 0.73834 |
6259ed5b97e7f2067da945e4c0b945052cd5554a | 744 | package professions;
/**
* Класс Профессия.
* @author Oleg Bech (oleg071984@gmail.com)
* @since 08.05.2018
* @version 1.0
*/
public class Profession {
public String name;
public String profession;
/**
* Дефолтный конструктор.
*/
public Profession() {
}
/**
* Метод Profession.... | 19.076923 | 55 | 0.568548 |
bbcbb0bcc625daa3e72869d8716f7ab206af3395 | 318 | package com.yhy.flow.internal.callback;
/**
* 回调钩子
* <p>
* Created on 2021-10-12 10:10
*
* @param <R> 回调结果类型
* @param <T> 回调参数类型
* @author 颜洪毅
* @version 1.0.0
* @since 1.0.0
*/
public interface Callback<R, T> {
/**
* 执行回调
*
* @param t 参数
* @return 执行结果
*/
R apply(T t);
}
| 13.25 | 39 | 0.518868 |
c304945716212105642f090bbff728931302150d | 1,890 | package m0.rmitaste.rmi.payload;
import ysoserial.payloads.ObjectPayload;
/**
* Generates and returns specific payload from ysoserial
*
* @author Marcin Ogorzelski (mzero - @_mzer0)
*/
public class BasicGenerator implements PayloadGenerator{
protected Object currentPayload;
protected boolean isNext;
p... | 20.322581 | 96 | 0.608466 |
67d3753440ffb0cdcc288706798a4fcefec545e9 | 4,677 | package ir.farsirib.Fragment;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import and... | 33.891304 | 160 | 0.646141 |
30ba85cf024782fe726c4788448790ea9a020001 | 858 | import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
public class JFrameBackgroundColor
{
public static void main(String[] args)
{
// schedule this for the event dispatch thread (edt)
SwingUtilities.invokeLater(new Runnable()
{
... | 23.833333 | 61 | 0.656177 |
1010bda404dac7a35f9910f0f672e5479bc959d1 | 228 |
public class Main {
public static void main(String[] args) {
Lukutulostin tulostin = new Lukutulostin();
tulostin.lukuporras(5);
tulostin.jatkuvaLukuporras(4);
tulostin.kertokolmio(4);
}
}
| 19 | 51 | 0.635965 |
0f4432738c3b9b0d51c3950f1b55ddc0fc36e63f | 76 | package basicessentials.basicessentials.Punishments;
public class Warn {
}
| 15.2 | 52 | 0.828947 |
4299fca8fa68615a771902dcb4b1dd9dd00c934b | 2,257 | /*******************************************************************************
*
* COPYRIGHT (C) 2009 FUJITSU Limited - ALL RIGHTS RESERVED.
* ... | 35.265625 | 83 | 0.462561 |
5ddcb096f3439f639fbc862b891487c6482363db | 6,934 | package org.hubotek.service.google.news;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import javax.inject.Named;
import org.hubotek.model.HubDocument;
import org.hubotek.service.ejb.document.HubDocumentProvider;
import org.hubotek.service... | 47.82069 | 316 | 0.804009 |
84d193ac05fd532dff53da9d17fb5167a3636428 | 2,698 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* CRProductAndServiceAgreementRetrieveOutputModelProductAndSer... | 41.507692 | 226 | 0.840252 |
3673a0483c87b59beeb70c0f5626767dc464df8a | 6,467 | /*
* Copyright (c) 2014, John Campbell and other contributors. All rights reserved.
*
* This file is part of Tectonicus. It is subject to the license terms in the LICENSE file found in
* the top-level directory of this distribution. The full list of project contributors is contained
* in the AUTHORS file found i... | 35.729282 | 114 | 0.732024 |
462b161e36539f6aa607947aa25870ee79dc2617 | 621 | package travel;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class Context {
private List<Transport> allTransports = new ArrayList<>();
public Context() {
this.allTransports.add(new Bus("大巴车"));
this.allTransports.add(new AirPlane("飞机"));
... | 29.571429 | 118 | 0.674718 |
6bf79873cd58ca6b951e1177ed2cdd7daa47846e | 1,555 | package org.bluedb.api.index;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import org.bluedb.api.BlueCollection;
import org.bluedb.api.keys.LongKey;
/**
* This is used by the {@link BlueIndex} class to extra... | 35.340909 | 120 | 0.717685 |
0b148cdde0835fbac7d4960a96b57b5d6577f261 | 1,553 | package test.module.framework.tests.functional;
import java.io.File;
import java.lang.reflect.Method;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import core.helpers.Helper;
import core.support.configReader.PropertiesReader;
import test.... | 31.06 | 74 | 0.7302 |
d351dc94eb883b68f3ae73973074472ccf5f6a52 | 112 | package var.rmi.chat;
public class Conf {
public static final String CHATSERVICE = "//localhost:1099/chat";
}
| 18.666667 | 66 | 0.741071 |
c577f57960fabbf54bd11aa25fa8bc6ff8303864 | 7,221 | // Copyright (C) 2018-2019 Brandon Lee. BSD-3-Clause Licensed, see LICENSE.
package com.newbuck.duckparser;
import java.time.Month;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import or... | 30.597458 | 126 | 0.65628 |
532b0a4e57fc57902501cf43867acb122d510b0c | 722 | package org.prebid.pg.dimval.api.persistence;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Timestamp;
@Data
@NoArgsConstructor
@Entity
@... | 15.695652 | 50 | 0.729917 |
b8925406474eca39a2faa7cb1e832d27c55d78f2 | 6,429 | package io.gridgo.utils.test;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.concurrent.atomic.AtomicInteger;
import io.gridgo.utils.ArrayUtils;
p... | 44.337931 | 135 | 0.601649 |
fb2c2eeaaed4b945167d09c237f89d1093f21b20 | 24,396 | /**
* 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... | 40.795987 | 129 | 0.633751 |
d81e167341565a759840c6f0f14e7e9e1fd14c09 | 14,279 | package al.jdi.dao.beans;
import static org.apache.commons.lang3.StringUtils.EMPTY;
import static org.apache.commons.lang3.StringUtils.isBlank;
import static org.slf4j.LoggerFactory.getLogger;
import java.math.BigInteger;
import java.util.Collection;
import java.util.List;
import org.hibernate.Query;
impo... | 42.497024 | 232 | 0.642132 |
3b76d07128156aef5e9b5852aa49e123caa1b350 | 1,027 | package parser.ex2;
import java.util.function.BiFunction;
public class Tuple2<X, Y> {
public final X item1;
public final Y item2;
public Tuple2(X item1, Y item2) {
this.item1 = item1;
this.item2 = item2;
}
public X item1() {
return item1;
}
public Y item2() {
... | 20.959184 | 71 | 0.540409 |
fe7e41c55236cb89bc92f9270cb12f56d2201682 | 2,516 | package pl.Mateusz.RecipesManager.entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import jav... | 21.878261 | 113 | 0.697138 |
2d4fa0de223d5d07f07152b488adb3dbfb5e0d1b | 1,880 | /*-
* ===============LICENSE_START=======================================================
* Acumos
* ===================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* ==========================================================... | 39.166667 | 127 | 0.651064 |
c6c43708d2818ff54da714cf9b71e36d73bd1077 | 2,695 | package solutions.alterego.androidbound.example.viewmodels;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import lombok.Getter;
import lombok.experimental.Accessors;
import solutions.alterego.androidbound.android.AndroidViewModel;
import solutions.alterego.androidbound.exa... | 30.280899 | 99 | 0.715028 |
b3c2dd61feaee68f663129943a16aa2817783faf | 1,096 | package com.github.seaframework.core.io.util;
import com.github.seaframework.core.BaseCoreTest;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import java.io.File;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.util.concurrent.CountDownLa... | 24.909091 | 95 | 0.668796 |
8188c674852be4a1d95c19c8a81609048d30c482 | 401 | package com.example.android.project3_tourism;
public class Names {
private String name;
private int ImageResourseId;
public Names(String sight_name, int imageResourceId) {
name = sight_name;
ImageResourseId = imageResourceId;
}
public String getName() {
return name;
}... | 18.227273 | 58 | 0.658354 |
705a6d34fe8fa4453a379a6580f64fe67296f82e | 1,530 | package cn.ztuo.bitrade.dto;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
/**
* QMemberBonusDTO is a Querydsl query type for MemberBonusDTO
*/... | 30.6 | 114 | 0.750327 |
29a7340b35845884634afc25b70de10ab6b54781 | 3,605 | /**
* Copyright (C) 2015 Orion Health (Orchestral Development 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 r... | 33.691589 | 138 | 0.74147 |
923ddd88bdd235e7c1694caf9b672dc788a8d6cd | 1,735 | package com.baeldung.repository;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperat... | 29.40678 | 109 | 0.725072 |
0fffecfad326496348d971a57b9db1c0221d0206 | 16,637 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 39.706444 | 97 | 0.6964 |
db5929161c2a0eb4809f0d2f5166f0aa790fdba1 | 1,653 | /**
* 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... | 35.170213 | 75 | 0.672111 |
a4e7042e0fe5d0e6bfa865f488b01235daf1bbb4 | 9,649 | package org.mindswap.swoop.utils.owlapi.diff;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.semanticweb.owl.model.OWLAnd;
import org.semanticweb.owl.model.OWLAnnotationProperty;
import org.semanticweb.owl.model.OWLClass;
import org.semanticweb.owl.model.OWLDataAllRestriction;
i... | 36.688213 | 129 | 0.769406 |
b6407a0724f9adea77ec64956753185ef2020818 | 6,509 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Simulator;
import java.awt.Toolkit;
/**
*
* @author MY
*/
public class Frame_Instuction extends javax.swing.JFrame {
/**
* Creates new form Frame_Instuction
*/
public Frame_Instuction() {
... | 43.10596 | 169 | 0.643417 |
6c8daed4c37deeb968c5faef0a70719ad5f7765c | 2,747 | package com.automobiles.entities;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
public class Dealer implements java.io.Serializable {
private int dealerCode;
private String dealerNm;
private Date registrationDt;
private int contactNo;
private String emailAddress;
priv... | 22.516393 | 88 | 0.672006 |
cfeb8ed337e218a84b76995f66769637717b3738 | 4,263 | /*
* 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 ... | 30.669065 | 100 | 0.749941 |
30f987727b07457d5a7c8b250d7d5cb47fb4aeb1 | 5,792 | /*
* Copyright 2018 Johannes Donath <johannesd@torchmind.com>
* and other copyright owners as documented in the project's IP log.
*
* 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
*
* ... | 36.89172 | 100 | 0.724275 |
a1e349dd57995b2f3cc2eaea5bbe75c00f12eaaf | 4,587 | package sonia.scm.api.v2.resources;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.io.Resources;
import com.google.inject.Provider;
import com.google.inject.util.Providers;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.ap... | 30.58 | 144 | 0.703292 |
833ef4026cf7e94368cc37e65f88b7e296e8c5a0 | 155 | package easy.thread;
public interface WorkerGroupHandler {
void handleTask(Object taskObj);
void handleException(Exception ex, Object taskObj);
}
| 22.142857 | 55 | 0.774194 |
49fc430484c981612138c474eac63ef80fc21f2d | 1,738 | /*
* Copyright 2020 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 applicab... | 25.940299 | 80 | 0.6916 |
dda894caaaa9cb2be0c7c4668469e3bed9f10a4b | 3,158 | package com.luckystar.advent2016;
import java.nio.CharBuffer;
import java.security.MessageDigest;
import java.util.HashMap;
import java.util.Map;
/**
* By: Alexey Matveev
* Date: 28.12.2016
* Time: 14:26
*/
public class Advent140 {
public static void main(String[] args) throws Exception {
// String in... | 32.895833 | 86 | 0.487967 |
ed267d21b86283720426a4afd170b870683e82e7 | 8,199 | /*
* Copyright 2008-2018 Hippo B.V. (http://www.onehippo.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 ... | 42.262887 | 142 | 0.700939 |
ae9d1f2299375c977a8e5f313f5c3e4a90c5b18d | 284 | package com.veniuscloudpower.kubedashboard.repositories.tasks;
import com.veniuscloudpower.kubedashboard.models.tasks.TaskCategory;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TaskCategoryRepository extends JpaRepository<TaskCategory,Integer> {
}
| 35.5 | 85 | 0.869718 |
042dc42db74b9f55b670c96dfe8ec0368092669a | 1,786 | package com.dxc;
import java.sql.SQLException;
import java.util.List;
import com.dxc.dao.BookDao;
import com.dxc.model.Book;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Hello world!
*
*/
public class App {
public static void main(String[] args) {
System.out.println(... | 33.074074 | 99 | 0.589586 |
b2e2d1ec2984113d833c36a07da2c62fb4e2b3ef | 2,219 | package uk.gov.dft.bluebadge.model.applicationmanagement.generated;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
import javax.validation.constraints.Size;
import org.springframework.validation.annotation.Validated;
/** Treatment */
@Va... | 22.876289 | 100 | 0.65525 |
dcf30c013ef53a1f963d4ef7d6ccbd4a08621fab | 2,087 | package org.fluxtream.connectors.up;
import org.fluxtream.core.OutsideTimeBoundariesException;
import org.fluxtream.core.TimeInterval;
import org.fluxtream.core.connectors.vos.AbstractFacetVO;
import org.fluxtream.core.connectors.vos.AllDayVO;
import org.fluxtream.core.domain.GuestSettings;
/**
* User: candide
* Da... | 32.609375 | 164 | 0.709631 |
1752e8f38374ad440767a917d9e93f1218d9e57e | 364 | package org.microclasses.strings;
public class Leftpad {
public static String leftpad(String text, int length) {
if (text.length() >= length) {
return text;
}
StringBuilder sb = new StringBuilder(length);
for (int i = text.length(); i < length; i++) {
sb.append(' ');
}
sb.ap... | 20.222222 | 57 | 0.596154 |
3372d223caa580763057e69c7747347606cfb42b | 676 | package com.interview.codechef.ccdsapfoundation_1.slidingwindow;
public class SubString {
//https://www.geeksforgeeks.org/program-print-substrings-given-string/
public static void main( String[] args ) {
char[] ar = {'a', 'b', 'c'};
subString(ar, ar.length);
}
private static void subS... | 23.310345 | 74 | 0.47929 |
379a642c49723b8ce6cc38fe18ba3112ca2383e0 | 11,217 | package io.github.gaming32.sdl4j;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.sun.jna.Pointer;
import io.github.gaming32.sdl4j.LowLevel.SDL2Library;
import io.github.gaming32.sdl4j.LowLevel.SDL2Library.SDL_AudioDeviceEvent;
import io.github.gaming32.s... | 42.812977 | 114 | 0.581082 |
fd57778275d7c5e19a43e570bc8e1459940eb9ec | 5,125 | /*
* Copyright 2010 Google 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... | 35.10274 | 100 | 0.717073 |
b605eb05d1d89f58a12d4b691c6e7ed3f3875fbd | 1,158 | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.treeui.tree;
import java.io.File;
import jsystem.framework.FrameworkOptions;
import jsystem.framework.JSystemProperties;
public class ScenarioNode extends AssetNode {
/**
*
*/
private static final long serialVersionUI... | 23.632653 | 135 | 0.739206 |
dff2ea4f8378f1b3f7f86a01838eb5f4b588c988 | 3,160 | package com.zxu.cniao5shop;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;
import com.lidroid.xutils.view.annotation.event.OnClick;
import com... | 23.58209 | 99 | 0.637342 |
68473125f2db2e8e3b599ca91c60a1845a03510d | 3,112 | package umontreal.iro.lecuyer.util;
import java.io.Serializable;
/**
* Represents a pair of values.
*
* @param <S> the type of the first value.
* @param <T> the type of the second value.
*/
public class Pair<S, T> implements Cloneable, Serializable {
private static final long serialVersionUID = 91655709776204... | 24.3125 | 98 | 0.567481 |
ff0ccc6c8c3d2c2a0bdb6a46c9da16b1cec44901 | 407 | package com.bullhornsdk.data.model.response.list.customobjectinstances;
import com.bullhornsdk.data.model.entity.core.customobjectinstances.clientcorporation.ClientCorporationCustomObjectInstance21;
import com.bullhornsdk.data.model.response.list.StandardListWrapper;
public class ClientCorporationCustomObjectInstance... | 50.875 | 134 | 0.896806 |
af5dda70e33fc574889103f943336206070c7df3 | 460 | package com.yupaits.docs.entity.keys;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author yupaits
* @date 2018/8/12
*/
@Data
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class PostTag... | 18.4 | 52 | 0.780435 |
3eac3497d9e4627beecb73456babcd12c51b6fc5 | 6,796 | package us.ihmc.commonWalkingControlModules.controllerCore.parameters;
import us.ihmc.commonWalkingControlModules.momentumBasedController.optimization.JointAccelerationIntegrationCalculator;
public class JointAccelerationIntegrationParameters implements JointAccelerationIntegrationParametersReadOnly
{
private doub... | 35.395833 | 119 | 0.721601 |
bc09996a508c221516002e7112d7fd7a7f00dfda | 9,267 | package Acitivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import com.android.... | 37.216867 | 144 | 0.585842 |
5abe0adc184cecd274e482fbb379efd0d039b031 | 1,212 | package one.edee.darwin.resources;
import one.edee.darwin.model.Platform;
import org.springframework.core.io.Resource;
import java.util.List;
/**
* Interface provides access to patch storage. Allows to detect patches and access their contents.
*
* @author Jan Novotný, FG Forrest a.s. (c) 2007
*/
public interface... | 29.560976 | 98 | 0.755776 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.