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 |
|---|---|---|---|---|---|
31acff46f4e267353c4fcaaca1b45d3c032d0f8a | 1,772 | /*
* Microsoft JDBC Driver for SQL Server
*
* Copyright(c) Microsoft Corporation All rights reserved.
*
* This program is made available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc;
/**
* StreamTabName interprets t... | 32.218182 | 132 | 0.664221 |
fdc3ec4865d8acec87d4baa4e60ea1ba92919a4a | 2,814 | /*******************************************************************************
* Copyright (c) 2009, 2013 Wind River Systems, Inc. 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 distrib... | 31.617978 | 103 | 0.668088 |
2ac60422650b1333cd14542e868d9b43a24f34f6 | 1,158 | package com.yumatech.smnadim21.api;
import com.yumatech.smnadim21.tools.Constants;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;
public class ApiClient {
private static final String DEV_URL = "https://labapi.yuma-te... | 29.692308 | 93 | 0.670121 |
7fca0685c7195d1b0194a10f0fad52691b6a9ab4 | 6,681 | /*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018 Chatopera Inc, <https://www.chatopera.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... | 24.472527 | 167 | 0.611884 |
2ea591d3fec3b205dc855c07ba9df5acb8d2ce78 | 3,279 | /*
* Copyright 2014-2021 JKOOL, 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 applicable law or agreed to... | 25.223077 | 96 | 0.718817 |
147e07c0b2d06344c5b9238e2d01838c9cc3fcf4 | 9,095 | package com.yalantis.guillotine.animation;
import android.animation.Animator;
import android.animation.ObjectAnimator;
import android.animation.TimeInterpolator;
import android.os.Build;
import android.view.View;
import android.view.ViewTreeObserver;
import com.yalantis.guillotine.interfaces.GuillotineListener;
impor... | 35.948617 | 156 | 0.64464 |
1e63695b6cfdd218df26fb13831f5c8e9a344832 | 2,599 | package ajin.mall.sys.goods.controller;
import ajin.mall.common.base.anno.RepeatSubmit;
import ajin.mall.common.base.result.BaseResult;
import ajin.mall.common.base.result.ResultEnum;
import ajin.mall.common.base.result.ResultPage;
import ajin.mall.sys.goods.form.CategoryAddForm;
import ajin.mall.sys.goods.form.Categ... | 30.940476 | 102 | 0.725664 |
09d0d767936537694e3e4ac633d97d08e2a69889 | 1,403 | package com.wuroc.chaptereleven;
import com.typeinfo.pets.*;
import sun.awt.windows.WPrinterJob;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
;
;import static com.wuroc.util.Print.print;
/**
* https://github.com/WuRoc
*
* @author WuRoc
* @creat... | 26.471698 | 151 | 0.608696 |
687f3a5f6d40c6d8ed6dd04601ca66181bd07222 | 1,318 |
package eu.doppel_helix.jna.tlb.word8;
import com.sun.jna.platform.win32.COM.util.IComEnum;
/**
* <p>uuid({3568EE18-032C-39F9-A32B-179BC05CB782})</p>
*/
public enum WdGoToItem implements IComEnum {
/**
* (-1)
*/
wdGoToBookmark(-1),
/**
* (0)
*/
wdGoToSection(0),
... | 12.552381 | 54 | 0.397572 |
11e76f9894457c56861a35529dc8ad289a97dbde | 1,390 | package net.evgiz.ld40.game.entity;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import net.evgiz.ld40.game.Game;
import net.evgiz.ld40.game.player.Player;
import net.evgiz.ld40.game.world.World;
public class Ladder extends Entity{
private String targetLevel = "nil";
public boolean upLadder = false;
... | 25.272727 | 88 | 0.626619 |
2e9165c4b28382b7faf96f3c5517b7bddc9322f9 | 820 | package com.profitera.services.system.report;
import java.io.IOException;
import java.io.InputStream;
public interface IReportOutputGenerator {
public final static String OUTPUT_PATH = "reportOutput.outputPath";
public final static String BASE_FILE_NAME = "reportOutput.baseFileName";
public final static String F... | 37.272727 | 86 | 0.80122 |
9b1c2a14622cd054ec243b78e8afaea904346429 | 1,678 | package com.yile.learning.redis.test;
import java.io.IOException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import redis.clients.jed... | 23.305556 | 70 | 0.696663 |
cd433c7f9c76f7a127104f5a11e068a94c85aa0e | 2,007 | package com.pumpkin.utils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.filefilter.AbstractFileFilter;
import java.io.File;
import java.io.InputStream;
import java.util.Collection;
import java.util.Optional;
/**
* @className: FileUtils
* @description: 文件工具类
* @author: pumpkin
* @date:... | 27.875 | 100 | 0.644743 |
64bf3617ac74135366f9b380cdb212b91fe7e440 | 2,850 | package theProdigy.powers;
import basemod.interfaces.CloneablePowerInterface;
import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction;
import com.megacrit.cardcrawl.actions.utility.UseCardAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardQueueItem;
import ... | 39.041096 | 126 | 0.679649 |
ad6e518361b38b56ee46a50f96a5668fef8ef2ab | 6,018 | /*
* Copyright 2012 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 37.148148 | 78 | 0.776005 |
50feb60e845485b11643ca7642e73ac8650ddaf0 | 1,729 | /*
* Copyright 2019 WeBank
* 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, ... | 40.209302 | 173 | 0.73742 |
88fb864ccd88d006bb91a6c2a6dfb010c2d14815 | 2,370 | package org.goblinframework.dao.mysql.client;
import com.zaxxer.hikari.HikariDataSource;
import org.goblinframework.core.service.GoblinManagedBean;
import org.goblinframework.core.service.GoblinManagedObject;
import org.goblinframework.core.util.ClassUtils;
import org.goblinframework.core.util.ProxyUtils;
import org.g... | 35.373134 | 104 | 0.75865 |
d53ba50d553f25df903ff6f13006eb58bf8efa2c | 796 | package webflux.cassandra.example.repository;
import org.springframework.data.cassandra.core.ReactiveCassandraOperations;
import reactor.core.publisher.Mono;
import webflux.cassandra.example.dto.Article;
/**
* Repository class for interacting with the Article table - not a traditional spring repository
*/
public cl... | 30.615385 | 96 | 0.782663 |
dd264b1e4d786e4946b619c3f1acee535187f313 | 4,708 | /*
* This file is generated by jOOQ.
*/
package cn.vertxup.atom.domain.tables.daos;
import cn.vertxup.atom.domain.tables.MJoin;
import cn.vertxup.atom.domain.tables.records.MJoinRecord;
import io.github.jklingsporn.vertx.jooq.classic.jdbc.JDBCClassicQueryExecutor;
import io.github.jklingsporn.vertx.jooq.shared.inte... | 45.708738 | 477 | 0.720263 |
93d08b7d15e52c8e64e47b40318a76cf07d25d40 | 2,006 | package edu.utexas.tacc.tapis.jobs.api.driver;
import java.io.IOException;
import java.util.Properties;
import edu.utexas.tacc.tapis.client.shared.exceptions.TapisClientException;
import edu.utexas.tacc.tapis.systems.client.SystemsClient;
import edu.utexas.tacc.tapis.systems.client.SystemsClient.AuthnMethod;
public ... | 36.472727 | 104 | 0.655533 |
b99e19064fb2b63783ff965b626e78c61c11a33d | 5,639 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | 30.983516 | 104 | 0.632204 |
b52407490ffddaba7bc44bf6bdb36789713ee5d1 | 1,049 | package io.renren.modules.supply_manage.entity;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class UploadPath {
@Value("${UploadPath.path}") //上传文件路径
private String path;
@Value("${UploadPath.httppath}")
private String h... | 20.173077 | 58 | 0.64347 |
f0c72c7654313ee4acb4efbd3076637acf64317d | 700 | package org.ixmas.ixmatrixmult.improver;
import org.ixmas.ixmodel.improver.InputModel;
import org.ixmas.ixmodel.improver.SoftwareMetricsEvaluator;
import org.ixmas.ixmodel.improver.SoftwareModel;
import org.ixmas.ixmodel.metrics.SoftwareMetrics;
public interface MatrixSoftwareMetricsEvaluator extends SoftwareMetricsE... | 38.888889 | 141 | 0.822857 |
168a93cf189937dcb6d4db1bce4d9e66f85db06d | 2,852 | /*
* Copyright (c) 2016—2021 Andrei Tomashpolskiy and individual contributors.
*
* 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
*
* ... | 34.780488 | 80 | 0.653927 |
d228a6d2f2f51c0435f49c04580ce6147a5a7177 | 883 | package mskubilov;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* //курс Петра Арсентьева job4j.ru.
*
* @author Maksim Skubilov skubilov89@yandex.ru
* @version 1.0
* @since 07.04.17
*/
public ... | 25.970588 | 60 | 0.630804 |
f39d862d24018dab05ca5a32c21cd036c71e227b | 4,649 | import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* A receiver packet window which corrects for packet loss.
*
* @author aran
*/
public abstract class ReceiverWindow {
private final boolean goBackN;
private final ArrayBlockingList<PacketContent> window;
... | 30.993333 | 82 | 0.585502 |
ec8039a83d93b2af122a690dd5aabbc3d845a879 | 654 | package io.ads;
import java.util.List;
public class AdPricing {
private static AdPricing instance = null;
protected AdPricing()
{
}
public static AdPricing getInstance() {
if(instance == null) {
instance = new AdPricing();
}
return instance;
}
public void setCostPerClick(List<Ad... | 20.4375 | 118 | 0.642202 |
5b9aadb778456de5c9749915a19404854843919f | 833 | package com.zitlab.palmyra.auth;
import java.util.Map;
/**
* The interface Auth client.
*/
public interface AuthClient {
/**
* The constant HEADER_BASIC_AUTH.
*/
String HEADER_BASIC_AUTH = "Authorization";
/**
* The constant HEADER_DEVICE. Which sends the palmyra device string in reques... | 26.03125 | 102 | 0.67467 |
9e22170841d222b47b5ea267a0f9f337cc5bf09d | 7,241 | package tech.nilu.platform.explorer.web3.contracts;
import org.web3j.abi.EventEncoder;
import org.web3j.abi.EventValues;
import org.web3j.abi.TypeReference;
import org.web3j.abi.datatypes.*;
import org.web3j.abi.datatypes.generated.Uint256;
import org.web3j.abi.datatypes.generated.Uint8;
import org.web3j.crypto.Creden... | 43.620482 | 157 | 0.687612 |
c6f35856c95daaa2619b884fe97dd2c9ca638af4 | 17,401 | /*
* Copyright 2011 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 in w... | 36.944798 | 99 | 0.664962 |
8861a793a2ab47cddf363f6844500f59cdd2e52d | 6,455 | /*
* 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 ... | 32.114428 | 112 | 0.727188 |
5412ac94341d0df142a896c9ac5eac250dbf1b4e | 3,414 | /*
* ============LICENSE_START=======================================================
* Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* yo... | 35.5625 | 83 | 0.657586 |
d1fedcb81424453f75f82a470ce86bdbdd2414e9 | 981 | package com.egoveris.vucfront.model.model;
import com.egoveris.vucfront.model.util.EstadoTareaEnum;
import java.io.Serializable;
public class EstadoTareaDTO implements Serializable {
private static final long serialVersionUID = 5007925834460246246L;
private Long id;
private String descripcion;
public Esta... | 21.326087 | 97 | 0.70948 |
36bfe82e933248375a0143fca9dcade2ecf67c82 | 874 | package glg203.jpa.repositories.custom;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import glg203.jpa.model.heritage.Document;
/**
* Implémentation de l'interface DocumentRepositoryPersonnalise.
* Le suffixe <code>Impl</code> est <b>important</b> pour Spring.
*/
public cl... | 32.37037 | 144 | 0.729977 |
602d0bba55db1c1d5437c49ab2d8e1963c6ca8b3 | 3,058 | package com.cui.view;
import com.cui.R;
import com.cui.view.addition.AboutOurActivity;
import com.cui.view.addition.CurrentWeatherReportActivity;
import com.cui.view.addition.FutureWeatherReportActivity;
import com.cui.view.addition.MultyLocationActivity;
import com.cui.view.addition.SoftwareActivity;
import com.cui.v... | 29.68932 | 64 | 0.754742 |
6bc3c86a105280bf4e8ecaadb2d0f5c9027ca822 | 2,525 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 34.121622 | 123 | 0.703762 |
8001e7818fdaaf4e7d394c823713213128dd53c9 | 696 | /*
* This source file is subject to the license that is bundled with this package in the file LICENSE.
*/
package com.codeup.auth.infrastructure.jdbc;
import com.codeup.auth.domain.identity.User;
import com.codeup.auth.domain.identity.Users;
import java.sql.Connection;
public class JdbcUsers implements Users {
... | 24.857143 | 100 | 0.706897 |
bc02a4605fe4e202324f837632f222f2d9c8c68e | 1,746 | package com.votingsection.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.ann... | 32.943396 | 79 | 0.796105 |
dcd49ece5a10d7d478fdca1f598b6157b653470d | 5,285 | /*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 50.333333 | 123 | 0.800378 |
bea2f95c40b9d5d8318efb11fa480135487dd07b | 295 | package com.imscv.navipacksdk.module;
/**
* Created by dell on 2016/9/4.
* 对文件描述的类
*/
public class FileDesc {
public String filePath;
public String fileName;
public FileDesc(String path, String fileName) {
this.filePath = path;
this.fileName = fileName;
}
}
| 18.4375 | 51 | 0.654237 |
e8e8e2f481aeca44df129c6845fcbead38a95042 | 91 | package pd_decorator;
public interface ComponenteGraficoVehiculo {
void visualiza();
}
| 18.2 | 44 | 0.791209 |
fe012b6b3ce157607acdb8f78cc8dc8f3f7ef037 | 36,969 | /**
* Copyright (c) 2015-present, Jim Kynde Meyer
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.ide.project;
import com.google.common.base.Optional;
import com.google.... | 50.642466 | 188 | 0.642078 |
cbfebe98979e9cc8ac2f3bf640eca95413728f3f | 2,240 | package com.ylesb.service.Impl;
/**
* @title: OrderServiceImpl4Listener
* @projectName springcloud-alibaba
* @description: TODO
* @author White
* @site : [www.ylesb.com]
* @date 2022/1/1317:05
*/
import com.ylesb.dao.TxLogDao;
import com.ylesb.domain.Order;
import com.ylesb.domain.TxLog;
import org.apache.rocke... | 32.463768 | 93 | 0.705804 |
db9ab3f2f919e81bf2e023e8c9005a926edc00a3 | 15,175 | /*
* 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.251989 | 145 | 0.5629 |
f8ddf4550f900c85d03c59d653bf9a008146a6e8 | 878 | package io.github.communitymod.core.init;
import com.mojang.brigadier.CommandDispatcher;
import io.github.communitymod.common.commands.BaseCommand;
import io.github.communitymod.common.commands.impl.StatsCommand;
import net.minecraft.commands.CommandSourceStack;
import net.minecraftforge.event.RegisterCommandsEvent;
... | 33.769231 | 81 | 0.72779 |
32616cd704f2a31a54396fb2a7da27493931e2b0 | 550 | package ga.rugal.demo.springmvc.controller;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Student controller.
*
* @a... | 22.916667 | 62 | 0.772727 |
1a900d128ef8d95ba38bacc414b1845637ae1fff | 1,597 | package de.dytanic.cloudnet.ext.cloudperms.node.listener;
import de.dytanic.cloudnet.common.io.FileUtils;
import de.dytanic.cloudnet.driver.event.EventListener;
import de.dytanic.cloudnet.driver.util.DefaultModuleHelper;
import de.dytanic.cloudnet.event.service.CloudServicePreStartEvent;
import de.dytanic.cloudnet.ext... | 46.970588 | 178 | 0.745147 |
4cad427304fb8157a26ea5b2d4c521458f05a95c | 4,395 | /* RollingChecksum: interface to a "rolling" checksum.
Copyright (C) 2003, 2007 Casey Marshall <rsdio@metastatic.org>
This file is a part of Jarsync.
Jarsync is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; e... | 36.322314 | 80 | 0.711945 |
07da4d7067d4883c384fd54d8736ed93ed1ee968 | 1,382 | package com.yueny.blog.service.admin.manager.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yueny.blog.bo.console.user.UserBaseInfoBo;
import com.yueny.blog.bo.console.user.UserBaseInfoExpBo;
import com.yueny.blog.bo.console.user.UserInfo... | 30.043478 | 101 | 0.797395 |
f65405b04b94a7d4c0a679ce7846e287920789a2 | 1,417 | package com.softserve.controller;
import java.io.IOException;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servl... | 29.520833 | 110 | 0.738885 |
7bf9d91f895cdf06c7e555efd661c2f48d35a727 | 378 | package com.pinhuba.core.daoimpl;
import org.springframework.stereotype.Repository;
import com.pinhuba.core.pojo.*;
import com.pinhuba.core.dao.*;
/**
* 表:hrm_contract 对应daoImpl
*/
@Repository
public class HrmContractDaoImpl extends BaseHapiDaoimpl<HrmContract, String> implements IHrmContractDao {
public HrmCo... | 23.625 | 105 | 0.76455 |
71d2485507b90da5c6f68424fe4e8cd05e17ae30 | 205 | package com.xp.bird;
/**
* @author lenovo
*/
public interface EggLayable {
/**
* 下蛋
*/
void layEgg();
/**
* 接口默认方法测试
*/
default void test() {
System.out.println("test");
}
}
| 10.25 | 31 | 0.526829 |
dbdfec0de81c172bf4aa11897f9cbada8053dcee | 3,534 | package com.sequenceiq.freeipa.controller.validation;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.lenient;
import static org.mockito.Mockito.when;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupite... | 41.093023 | 132 | 0.788342 |
aaf0952a2dd54a920824d44fa02bebf91e4a7bca | 2,895 | package tss.tpm;
import tss.*;
// -----------This is an auto-generated file: do not edit
//>>>
/** This command allows the TPM to perform the actions required of a Certificate Authority
* (CA) in creating a TPM2B_ID_OBJECT containing an activation credential.
*/
public class TPM2_MakeCredential_REQU... | 30.797872 | 103 | 0.625216 |
4d9b9669fc530e38e20a335bdb8b951dc533526e | 6,220 | /*
* Copyright © "Open Digital Education", 2019
*
* This program is published by "Open Digital Education".
* You must indicate the name of the software and the company in any production /contribution
* using the software and indicate on the home page of the software industry in question,
* "powered by Open Digita... | 48.59375 | 247 | 0.695659 |
2a33e9d5d79bf6fa4b570c96893ccb3f3442ce0d | 873 | package com.lee.leebaseadapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.Log;
import com.lee.mylibrary.SlideRecycleViewAdapter;
import com.lee.mylibrary.UniversalViewHolder;
/**
* Created by nick on 2018/7/30.
* 侧滑删除---拖拽排序
* @author nick
*/
public class Sli... | 28.16129 | 84 | 0.749141 |
24ac92a43030a1b0046bcba36c5b678c0242977a | 2,139 | package io.github.ihelin.demo.io.socket.nio.chatroom;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.Ite... | 30.126761 | 95 | 0.578308 |
3ecc5f771901928886b86c0fbce056e668e2aaa5 | 607 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.06.12 at 09:... | 20.233333 | 110 | 0.649094 |
c3c0b61085514505375095288735f4b092f51876 | 10,334 | package com.avereon.marea.fx;
import com.avereon.curve.math.Point;
import com.avereon.curve.math.Vector;
import com.avereon.marea.*;
import com.avereon.marea.geom.*;
import javafx.scene.canvas.Canvas;
import javafx.scene.shape.ArcType;
import javafx.scene.shape.StrokeLineCap;
import javafx.scene.shape.StrokeLineJoin;
... | 33.121795 | 183 | 0.683569 |
d59c6c94baabcfbf7f8fc8b473c63458d96c1fb8 | 4,954 | package stroom.node.impl;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.junit.jupiter.MockitoExtension;
... | 37.530303 | 123 | 0.680057 |
8dd590728cce100f1e7e97abe3099315ac5058f8 | 27,084 | /*
* Copyright (c) 2005-2011, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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
*
* http://www.apache.o... | 52.184971 | 159 | 0.665596 |
52c1054b784d5ad9d7c1229d28bc3008b1fc8cb1 | 2,056 | package io.elastic.jdbc.providers;
import io.elastic.api.SelectModelProvider;
import io.elastic.jdbc.utils.Utils;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.util.LinkedList;
import java.util.List;
import javax.json.Json;
import javax.json.JsonObject;
import jav... | 32.125 | 103 | 0.728113 |
0b8574edcc4d50d66c1fe7d0a2a0bf6e350d58ef | 316 | package com.github.seratch.jslack.api.methods.request.conversations;
import java.util.List;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class ConversationsOpenRequest {
private String token;
private String channel;
private boolean returnIm;
private List<String> users;
}
| 18.588235 | 68 | 0.759494 |
7facc4a9d3dbabc301227484ae59bd0f748c4c0a | 2,658 | /*
* 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 ... | 42.190476 | 120 | 0.733634 |
fd716f72ba4f58296befc2978ee38d4ab29d3231 | 1,042 | package com.learn.example;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TestRule;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
// Must exist one test method at least.
@Category(FastTests.class)
public class R... | 23.155556 | 67 | 0.53263 |
6050f2e0adcf916622b16e4cea7baca157c3b3d4 | 821 | package com.github.kickshare.rest;
import java.util.List;
import com.github.kickshare.domain.Category;
import com.github.kickshare.service.CategoryService;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.s... | 26.483871 | 89 | 0.789281 |
54f77e7984fc6f501ef697cffce5c01f2cbdbe1b | 1,266 | package no.vipps.twitchecom.DTO;
public class InitiateRequestFromClientDTO {
private String amountInNOK;
private double amountInUSD;
private String transactionText;
private String senderName;
public InitiateRequestFromClientDTO(String amountInNOK, double amountInUSD, String transactionText, String... | 24.823529 | 124 | 0.688784 |
221ac9208bd1030f11ea89155e2e0fbe23bcdd69 | 6,273 | package net.seesharpsoft.intellij.plugins.csv.settings;
import com.intellij.openapi.editor.colors.EditorColorsManager;
import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.editor.markup.TextAttributes;
import com.intellij... | 47.885496 | 166 | 0.728519 |
f86db9151664f7ce43d93678ad46b6bf9c374829 | 4,040 | package org.xbib.elasticsearch.action.bulk;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.ActionRequestBuilder;
import org.elasticsearch.action.WriteConsistencyLevel;
import org.elasticsearch.action.delete.DeleteRequest;
import org.elasticsearch.action.delete.DeleteRequestBuilder;
imp... | 33.114754 | 120 | 0.690594 |
103a06fe7c0b6caaa6e1da1f390fab46c342c313 | 473 | package com.java2000.observer;
import org.junit.Test;
public class TestDemo {
@Test
public void testObserver(){
Message message = new Message();
Observer user1 = new User("Lily");
Observer user2 = new User("Tom");
Observer user3 = new User("Vince");
message.registerO... | 22.52381 | 45 | 0.632135 |
c0e1df30f6446c4d479a5f35c12629239e4c2d64 | 936 | /*
* 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... | 33.428571 | 75 | 0.732906 |
4bcc55629989f34146a7c683ab02c93d9995f494 | 12,254 | /*
* Copyright 2017 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... | 31.180662 | 128 | 0.713889 |
15e969185a6615f29d27e690a2b59843b61dd8fa | 3,165 | package com.scloudic.jsuite.core.utils;
public class Enums {
public enum DelStatus {
NORMAL(1, "正常"),
DEL(2, "删除");
private int value;
private String message;
DelStatus(int value, String message) {
this.value = value;
this.message = message;
... | 22.446809 | 67 | 0.483412 |
7599cd4c6554067e956583fbf35eb622d8614d47 | 520 | package com.axellience.vuegwtexamples.client.examples.instanciatejscomponent;
import com.axellience.vuegwt.client.component.VueComponent;
import com.axellience.vuegwt.jsr69.component.annotations.JsComponent;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
/**
* @author Adrien Baron
*/
@... | 28.888889 | 77 | 0.815385 |
8857fa5fdcdc779d4a51d375f7a7f4dfe3b63566 | 1,064 | package org.reclipse.generator.generation;
import java.io.File;
/**
* @author mm
* @author Last editor: $Author: lowende $
* @version $Revision: 3535 $ $Date: 2007-03-22 02:30:24 +0100 (Do, 22 Mrz 2007) $
*/
public class FileInformation
{
private String name;
public String getName()
... | 13.818182 | 83 | 0.555451 |
cd0a303b04b24a0f57db25c77de074d48a518b92 | 4,131 | package ru.liahim.mist.world.layer;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
import net.minecraft.world.WorldType;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.gen.layer.GenLayer;
import net.minecr... | 37.899083 | 109 | 0.719196 |
b770ac17ae3c983bbf3c12d8d5c41c8e103fb87b | 1,989 | package com.portal.app.model;
import com.portal.app.model.audit.UserDateAudit;
import org.hibernate.annotations.Fetch;
import org.hibernate.annotations.FetchMode;
import org.hibernate.annotations.OnDelete;
import org.hibernate.annotations.OnDeleteAction;
import javax.persistence.*;
import javax.validation.constraints... | 21.857143 | 66 | 0.667169 |
ab4c2880de7ff378ba63baf578fb3541f7366e85 | 1,426 | package galaxy.weather.forecaster.domain;
/**
* Defines the <code>DirectionTypeEnum</code> enumeration.
*/
public enum DirectionTypeEnum {
/* DEFINITIONS **************************************************/
CLOCKWISE(-1, "CLOCKWISE"),
ANTI_CLOCKWISE(+1, "ANTI-CLOCKWISE");
/* MEMBERS DECLARATIONS **********... | 27.960784 | 100 | 0.619916 |
b62f2bd7e23b85af1952becbee1775d07bcd4e49 | 2,100 | /*
* Copyright (c) 2002-2021 Gargoyle Software 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 applica... | 36.206897 | 111 | 0.656667 |
dda3eb1ad1831d58e16fb1f23345ef3d83e9d86d | 2,672 | package pl.edu.agh.geotime.service.util;
import pl.edu.agh.geotime.domain.ClassUnitGroup;
import pl.edu.agh.geotime.domain.ScheduleUnit;
import pl.edu.agh.geotime.service.dto.ScheduleUnitInfoDTO;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
public c... | 37.633803 | 122 | 0.686003 |
154a4ad24b732aef1b0c292fd2a63936b6330763 | 3,662 | /*
* 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 eapli.base.messagesmanagement.domain;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persiste... | 24.092105 | 175 | 0.636537 |
617e61be9b7d30198ffa11a821442a4caa6f44cd | 2,195 | package ren.growth.util;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import java.io.File;
public class AppUtil {
private stati... | 29.662162 | 97 | 0.636446 |
63b52cf4d6c226b5e4bf450d0e2b18dce0374de5 | 4,169 | /*
* Copyright (c) 2015-2019 LabKey Corporation
*
* 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... | 40.872549 | 128 | 0.710242 |
00a0b204c5c4f2bbe5f7811c5eb2feb60cb1467f | 7,333 | /*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 30.427386 | 112 | 0.723169 |
9c9f8921414f2e2853c5a7ccdfe102b7b2b34a8e | 869 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: access_api_auth.proto
package org.amv.access.grpc.auth;
public interface IssuerAuthOrBuilder extends
// @@protoc_insertion_point(interface_extends:amv_access_api.IssuerAuth)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.amv_acc... | 26.333333 | 76 | 0.695052 |
ddd50ebe18492b7650986350d700d6293e17cd78 | 1,510 | /*
* Copyright 2012-2017 Brian Campbell
*
* 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 ag... | 35.952381 | 217 | 0.727152 |
a09d59fe4b161b97b39507636b53bf8a442ea641 | 2,911 | package com.github.tinosteinort.beanrepository;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
/**
* Important note: the method 'getBeansOfType' cannot be called in a construc... | 28.539216 | 92 | 0.667125 |
fe9ed08f488ac858fb39754fc2063222c6c67b08 | 633 | //,temp,SharedCache.java,674,688,temp,QueryTracker.java,258,272
//,3
public class xxx {
List<QueryFragmentInfo> getRegisteredFragments(QueryIdentifier queryIdentifier) {
ReadWriteLock dagLock = getDagLock(queryIdentifier);
dagLock.readLock().lock();
try {
QueryInfo queryInfo = queryInfoMap.get(query... | 31.65 | 83 | 0.680885 |
8d79de2c263b00db1718b1e00a22517d086636c1 | 2,320 | package macaca.client.common;
// https://github.com/macacajs/webdriver-keycode/blob/master/lib/webdriver-keycode.js
public enum Keycode implements CharSequence {
NULL('\uE000'),
CANCEL('\uE001'),
HELP('\uE002'),
BACK_SPACE('\uE003'),
TAB('\uE004'),
CLEAR('\uE005'),
RETURN('\uE006'),
E... | 20.530973 | 85 | 0.528017 |
d0b255fa75fa457c4c37bdeef4bf3311eaf5ef1f | 429 | package com.fit.testdatagen.se.normalstatementparser;
import com.fit.testdatagen.se.memory.VariableNodeTable;
import org.eclipse.cdt.core.dom.ast.IASTNode;
/**
* Ex: c = (char) x
*
* @author ducanhnguyen
*/
public class TypeCastingExpressionParser extends NormalBinaryAssignmentParser {
@Override
public vo... | 23.833333 | 79 | 0.745921 |
34757f6af7755e0484c15fdb978acc5b268214de | 5,370 | package org.blendee.sql;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.blendee.jdbc.BPreparedStatement;
/**
* プレースホルダの型ヒントを表します。
* @author 千葉 哲嗣
*/
public abstract class Placeholder extends Binder {
private static fin... | 18.776224 | 90 | 0.65121 |
180f4b705c9098ea44d9cd6ce81036c0c73063c6 | 1,847 | package com.minenash.languagecheck.troblesome;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Field;
import java.util.Comparator;
import java.util.IdentityHashMap;
import java.util.stream.Stream;
import static com.minenash.languagecheck.troblesome.LanguageClassLo... | 36.215686 | 121 | 0.593395 |
d0f3e1e16782ca92404dfbb4ce7ace68308ec5ad | 1,633 | package SACEPICN.Operators;
import SACEPICN.NFNQueryCreator;
import java.sql.Timestamp;
public class OperatorJoin extends OperatorA {
public OperatorJoin(String query) {
super(query);
this.isOperatorCreatingNode = true;
}
@Override
public Boolean checkParameters() {
// first ... | 29.690909 | 127 | 0.562768 |
aaaf9bbe5c25cc975b169f18eddef93ccf28fabe | 2,800 | package io.voucherify.client.module;
import io.reactivex.Observable;
import io.voucherify.client.api.VoucherifyApi;
import io.voucherify.client.callback.VoucherifyCallback;
import io.voucherify.client.model.segment.Segment;
import io.voucherify.client.model.segment.response.SegmentResponse;
import io.voucherify.client... | 26.666667 | 87 | 0.683214 |
5f3f24ea1e8fcc14dc4765058020c18d19afd1f2 | 482 | package com.feriantes4dawin.feriavirtualmovil.data.models;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import com.google.gson.annotations.Expose;
@Entity
public class DetallePujaSubastaProductor {
@PrimaryKey
public Integer p_secret_pk;
@Expose
public Integer id_detalle;
@Expos... | 19.28 | 58 | 0.746888 |
b0bab4a6c2452aabff5139d72a62e324fc406071 | 4,493 | //=============================================================================
// Copyright 2006-2010 Daniel W. Dyer
//
// 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.... | 39.412281 | 91 | 0.682617 |
550b1692276846b415c5d29337277a4e2ac52e3f | 8,227 | /*
* Copyright 2018 Google 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 applicable law or agreed to ... | 40.727723 | 99 | 0.73356 |
4bcb9df9d3a200de906becbff285e8c03eab5f4e | 8,630 | package net.ripe.db.whois.update.handler.validator.common;
import net.ripe.db.whois.common.dao.RpslObjectDao;
import net.ripe.db.whois.common.rpsl.ObjectType;
import net.ripe.db.whois.common.rpsl.RpslObject;
import net.ripe.db.whois.update.domain.Action;
import net.ripe.db.whois.update.domain.PreparedUpdate;
import ne... | 44.947917 | 168 | 0.728621 |
0445c3d079a6bdadc207fbac40498dbf269fc477 | 250 | package de.slevermann.cocktails;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class CocktailsApplicationIT extends ContainerTestBase {
@Test
void contextLoads() {
}
}
| 17.857143 | 60 | 0.776 |
6bf9a7db003872e92b9f0df4000cd608c5a67db1 | 1,944 | package org.wildfly.extras.creaper.commands.security.realms;
import java.util.concurrent.TimeoutException;
import org.wildfly.extras.creaper.commands.foundation.offline.xml.GroovyXmlTransform;
import org.wildfly.extras.creaper.commands.foundation.offline.xml.Subtree;
import org.wildfly.extras.creaper.core.offline.Offl... | 40.5 | 113 | 0.740741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.