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 |
|---|---|---|---|---|---|
7888eadb6ba3f965445872fe81aaf4cdc28ea986 | 3,537 | package gs;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.web.cl... | 36.463918 | 100 | 0.769013 |
47c54c6fb5d2b8f2ff13a320cd422e77d8afd104 | 3,966 | /*
*
* * $Id: Template.jav,v 1.2 2005/10/07 23:46:50 clairetg Exp $
*
*
*
* Copyright (c) 2000-2015 Board of Trustees of Leland Stanford Jr. University,
* all rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... | 41.747368 | 120 | 0.732476 |
144fcef188aeef7fd514f482dc89aa025b71fec2 | 6,038 | /*
* 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 dao;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;... | 39.207792 | 99 | 0.568069 |
66d749415ca9d1114c77805e02ced4b2b2949f36 | 1,954 | package chapter3.recipe1;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.http.HttpHeaders.Names;
import io.netty.handler.codec.http.HttpRequest;
import io.netty.handler.codec.http.HttpRequestDecoder;
impor... | 38.313725 | 101 | 0.747185 |
66f3e261ed1ff1e981f16327f2369555824f56b2 | 55,319 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 36.394079 | 125 | 0.675392 |
020eade0b63b08f79b1aed12a8f405deb2e05bb9 | 1,957 | package pramp;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
/**
* https://www.pramp.com/challenge/W5EJq2Jld3t2ny9jyZXG
* @author baibhav <baibh... | 25.415584 | 114 | 0.635156 |
4164293ed34c474cb9d1c9055a45b51a92e5e558 | 386 | package org.support.project.di;
import java.lang.reflect.Method;
public class TestAdvice2 implements org.support.project.aop.Advice<TestObject> {
@Override
public Object invoke(TestObject object, Method method, Object[] args) throws Throwable {
System.out.println("TestAdvice2 point cut");
// 実際のコードを呼び出し
O... | 19.3 | 89 | 0.740933 |
6f733cba5a0df6bb7a2092a0fbb2d0877e9e1787 | 1,460 | package org.openntf.domino.xots;
/**
* @author Paul Withers
* @since 2.5.0
*
*/
public class XotsContext {
private String contextApiPath;
private String openLogApiPath;
private String taskletClass;
/**
* Getter for contextApiPath
*
* @return String ApiPath of database to act upon
*/
... | 20.56338 | 62 | 0.65411 |
cc686121a9fac94fc9752cc884b5ca88838b8b79 | 7,121 | /*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.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 re... | 26.472119 | 147 | 0.666058 |
2604f25f290dbd9e790878e1aadf816aba2e0940 | 2,667 | package com.lanking.cloud.job.doQuestionRank.DAO.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import com.lanking.cloud.component.db.support.hibernate.... | 32.925926 | 109 | 0.753281 |
ba85b81d90767cecf51a77477a76fa00746b2ca1 | 416 | package collection;
import java.util.ArrayList;
import java.util.Collection;
/**
* 集合仅能存放引用类型元素,并且存放的是元素引用地址
*
* 如果存放基本类型则会转换为包装类进行保存。
* @author wm
*/
public class CollectionDemo3 {
public static void main(String[] args) {
Collection c=new ArrayList();
Point p=new Point(1,2);
c.add... | 16 | 44 | 0.615385 |
c90f30740a6106b0ff76fa59ab78e1dd8d816190 | 998 | package org.jeecg.modules.demo.trace.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jeecg.modules.demo.index.vo.MedicinalVO;
import java.util.List;
/**
* 追溯展示类
*/
@Data
@No... | 19.568627 | 58 | 0.675351 |
76320384244037c632c750683dac6cac6574d2a0 | 4,774 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* 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 withou... | 32.256757 | 223 | 0.679095 |
85f5f81114777a520291d66a199989829b5b6ef0 | 10,784 | /*-
* #%L
* Molecule Archive Suite (Mars) - core data storage and processing algorithms.
* %%
* Copyright (C) 2018 - 2022 Karl Duderstadt
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributio... | 33.490683 | 154 | 0.753431 |
368f981278b4b59a421ca68c89bd7d74f0533842 | 3,013 | package ru.dadata.api.entity;
import com.google.gson.annotations.SerializedName;
/**
* @author leon0399
*/
public class Phone extends AbstractEntity {
@SerializedName("type")
private String type;
@SerializedName("phone")
private String phone;
@SerializedName("country_code")
private String... | 20.77931 | 98 | 0.543644 |
1e2188fc6d33fe00f568d6d363ac248eef3055cf | 5,468 | /*******************************************************************************
* Cloud Foundry
* Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except i... | 47.547826 | 163 | 0.695135 |
dc8b6d8ac3185a7921d10bbb93bcb5b1f1f88b9d | 8,890 | /*
* 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 ... | 35.56 | 101 | 0.670191 |
3cf6a0d08fc8721af04c620b429dd66a0a69fc4e | 2,243 | /*
* Copyright (c) 2011, Paul Merlin. 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 applicable law... | 29.12987 | 92 | 0.71333 |
7b96f8a8ccec0b4c792b4b646cbce8527d7aae7a | 1,633 | package me.etki.tasks.revolving.di.database;
import com.google.inject.Inject;
import com.google.inject.Provider;
import me.etki.tasks.revolving.database.PersistenceUnit;
import me.etki.tasks.revolving.database.entity.AccountEntity;
import me.etki.tasks.revolving.database.entity.RateEntity;
import me.etki.tasks.revolvi... | 38.880952 | 106 | 0.778322 |
7e9763357726bf00ee8215d8961d6978498a2170 | 81,368 | package com.zyh5games.controller;
import com.alibaba.fastjson.JSONObject;
import com.zyh5games.entity.Account;
import com.zyh5games.entity.GameNew;
import com.zyh5games.entity.UOrder;
import com.zyh5games.jedis.JedisRechargeCache;
import com.zyh5games.sdk.UOrderManager;
import com.zyh5games.sdk.channel.BaseChannel;
im... | 44.221739 | 181 | 0.567582 |
6e1ac5bf66c96db4ac58064a14e104f97390e3f2 | 35,161 | /*
* Tencent is pleased to support the open source community by making TubeMQ available.
*
* Copyright (C) 2012-2019 Tencent. 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
* ... | 43.355117 | 118 | 0.625295 |
9ded4e6abf7b86ed534d5413cfc205f5de972b4f | 962 | package com.tencentcloudapi.cmq.v20190304;
public enum CmqErrorCode {
// 操作失败。
FAILEDOPERATION("FailedOperation"),
// 操作进行中,请稍后重试。
FAILEDOPERATION_TRYLATER("FailedOperation.TryLater"),
// 参数错误。
INVALIDPARAMETER("InvalidParameter"),
// 任务Id不存在。
INVALIDPARAMETERVALUE_... | 21.377778 | 70 | 0.614345 |
1a99f6cf6c7be981b5c31d1b888a91d50d19958e | 772 | package org.anddev.andengine.extension.multiplayer.protocol.adt.message.server.connection;
import org.anddev.andengine.extension.multiplayer.protocol.adt.message.server.*;
import java.io.*;
public class ConnectionCloseServerMessage extends BaseServerMessage
{
public ConnectionCloseServerMessage() {
super(... | 26.62069 | 104 | 0.729275 |
fc377abb66d66f2668e9a90d4ac342d8b7e3efdb | 1,946 | /**
* 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... | 29.484848 | 84 | 0.685509 |
44e921c235c8c0b837ad633bd57a5799b48c9fe9 | 4,906 | /* This source code is released under the new BSD license, a copy of the
* license is in the distribution directory. */
package mazerob.nxt;
import java.lang.RuntimeException;
import lejos.nxt.Motor;
import lejos.nxt.SensorPort;
import lejos.nxt.UltrasonicSensor;
import lejos.robotics.RotatingRangeScanner;
import le... | 30.283951 | 78 | 0.661435 |
bf69869422b3024e1922966464c61663925544a0 | 2,880 | package de.renew.gui;
import de.renew.dbnets.shadow.node.ShadowDBNetTransition;
import de.renew.dbnets.shadow.node.ShadowRollbackArc;
import de.renew.shadow.ShadowNet;
import de.renew.shadow.ShadowNetElement;
import de.renew.shadow.ShadowPlace;
import java.awt.Color;
import java.util.Objects;
/**
* The db-net rollb... | 29.690722 | 111 | 0.661458 |
9853a98f1a2ce34ba680fd766d1e19ae83bdbf40 | 1,647 | package jdbc0627;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class Test05_Update {
public static void main(String[] args) {
/*
* JDBC(Java Database Connection)
* 자바와 MySQL 데이터베이스를 연동
* mysql-connector-java-5.1.47.jar 라이브... | 19.843373 | 113 | 0.585914 |
c374706c059f1d7b3c317285ee662a277bf7444e | 742 | package yuku.alkitabconverter;
import java.io.FileInputStream;
public class Cek7BitFileTeks {
public static void main(String[] args) throws Exception {
new Cek7BitFileTeks().u(args);
}
public void u(String[] args) throws Exception {
FileInputStream fis = new FileInputStream(args[0]);
int len = fis.availabl... | 23.935484 | 65 | 0.623989 |
6a1a7ad18778ade5abbba4bcbff215781d5aed89 | 124 | package com.topicsbot.services.api.telegram.model;
/**
* Author: Artem Voronov
*/
public interface InlineQueryResult {
}
| 15.5 | 50 | 0.75 |
ddc2fa129f162d1e5df7d79db50c3ac0b363c037 | 2,650 | /*
* Copyright 2019 The Context Mapper Project Team
*
* 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... | 41.40625 | 173 | 0.738113 |
2a65d5f47bb757950efe0e7339c43e5c123fbf3c | 3,568 | /*
* #%L
* Jetro Core
* %%
* Copyright (C) 2013 - 2016 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/LI... | 25.855072 | 96 | 0.705437 |
27379071d79c92855a734daf76dea1cec13ee07f | 356 | package io.be.naut;
import java.util.List;
import org.springframework.stereotype.Service;
@Service
public class UserService {
UserRepository userRepository;
public UserService() {
}
public UserService(UserRepository userRepository) {
this.userRepository = userRepository;
}
public List<User> list() {
ret... | 15.478261 | 52 | 0.758427 |
f82d98af0c2fc47cd5b0c93b8bbe167f13f668c2 | 2,802 | package es.upm.miw.apaw_ep_jesus_garceran.team_resource;
import es.upm.miw.apaw_ep_jesus_garceran.ApiTestConfig;
import es.upm.miw.apaw_ep_jesus_garceran.team_data.TeamDto;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
impo... | 35.923077 | 104 | 0.642041 |
61f48756ff13734fcff33a478dc098ef42925ce3 | 5,040 | package ganymedes01.etfuturum.blocks.ores;
import java.util.Random;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ganymedes01.etfuturum.IConfigurable;
import ganymedes01.etfuturum.ModBlocks;
import ganymedes01.etfuturum.configuration.ConfigurationHandler;
import ganymedes01.etfu... | 36.521739 | 205 | 0.652183 |
122b9ee51585463d1ba6505323ff7a119867858d | 1,370 | package uk.co.ribot.assertjrx.api.observable;
import rx.observables.BlockingObservable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* This class takes a {@link BlockingObservable}. It uses {@link BlockingObservable#getIterator()} to triggers the
* subscription. Then it saves t... | 25.849057 | 114 | 0.655474 |
dad4d1a20ce13a3fb0fa289d5564819e2ba5a919 | 1,823 | package io.github.krasnoludkolo.eifer;
import io.vavr.control.Either;
import org.junit.jupiter.api.Test;
import static io.github.krasnoludkolo.eifer.Eifer.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
class ComplexEiferTest {
private f... | 24.972603 | 83 | 0.484366 |
b14dc40fbceae17f3df8ec5f1e5d3a52348366e7 | 4,424 |
package kth.se.id2208.top_down.generated.client;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.FaultAction;
import javax.xml.ws.RequestW... | 44.686869 | 205 | 0.731013 |
0a4d8aada7de5d456556ff43d3b2c206b3bf483d | 1,195 | package com.dev;
import android.app.Application;
import android.content.Context;
import com.dev.data.DataManager;
import com.dev.di.component.ApplicationComponent;
import com.dev.di.component.DaggerApplicationComponent;
import com.dev.di.module.ApplicationModule;
import com.dev.utils.AppLogger;
import javax.inject.I... | 23.431373 | 73 | 0.725523 |
48dd168312a1d6219511946a313f1a6aa2cc8174 | 2,660 | /*
* Copyright (c) 2015 Christian Chevalley
* This file is part of Project Ethercis
*
* 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
*
... | 27.708333 | 113 | 0.725564 |
626816de8b41224903907aa102bda3a6a8ad16c2 | 6,232 | /**
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
package com.github.anba.es6draft.runtime.modules;
import java.io.IOException;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Co... | 36.87574 | 120 | 0.638158 |
99a820d30294763189d9b5c8f9888a3fc88c481b | 3,854 | package com.github.dadiyang.wechat.client;
import com.github.dadiyang.wechat.ApiTestBase;
import com.github.dadiyang.wechat.result.ClientResult;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.ThreadLocalRandom;
import static com.git... | 41 | 131 | 0.614946 |
ac588c4e2264a5485aa876580e4ad35f035b9bb1 | 2,245 | /*
* 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 n... | 28.782051 | 75 | 0.726503 |
8631d342d51436e253db2ba9cbbec299fe9c0631 | 9,539 | /*
Copyright (c) 2016 Robert Atkinson
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted (subject to the limitations in the disclaimer below) provided that
the following conditions are met:
Redistributions of source code must retain the above copyright... | 48.668367 | 224 | 0.662753 |
da2b244943cdd64c4a945bc630e97dc4df6cc713 | 665 | package cn.meetdevelop.lesson_1;
/**
* @author zgy
* @DATE 2019/12/4 - 20:39
*/
public class LambdaDemo {
public static void main(String[] args) {
Action action = () -> {
System.out.println("Execute");
};
//System.out.println(Action.doExecute());
Act... | 19.558824 | 50 | 0.521805 |
a5d281a72b8513fdbb7089b11ffb5863cb5ee0c4 | 913 | /**
* ADOBE SYSTEMS INCORPORATED
* Copyright 2009-2013 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute
* this file in accordance with the terms of the MIT license,
* a copy of which can be found in the LICENSE.txt file or at
* http://opensource.org/... | 22.268293 | 62 | 0.681271 |
260c11ea6342c1be5b714d9260f9ff389a99b129 | 1,608 | /* -*- mode: Java; c-basic-offset: 2; indent-tabs-mode: nil; coding: utf-8-unix -*-
*
* Copyright © 2018 microBean.
*
* 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.... | 36.545455 | 83 | 0.75995 |
837107332702f39eda52661dd44bf641b087a313 | 506 | package se.l4.dust.api.template;
/**
* Exception related to components, thrown when components are missing or
* misbehaving.
*
* @author Andreas Holstenson
*
*/
public class ComponentException
extends TemplateException
{
public ComponentException()
{
super();
}
public ComponentException(String message, ... | 14.457143 | 73 | 0.725296 |
83b614904a3d5668e08c2de7c9b4e9226132e7a7 | 6,173 | package org.contentmine.svg2xml.text;
import java.util.List;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.Test;
import org.contentmine.eucl.euclid.IntArray;
import org.contentmine.graphics.svg.text.line.TextLine;
import org.contentmine.graphics.svg.text.structure.TextStructurer;
... | 45.725926 | 115 | 0.774178 |
9bca6e5cdbb57fa021876d88ad464676bb3ad227 | 14,721 | /*
* 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 ... | 19.118182 | 77 | 0.695877 |
f38daf201b45a45ac08bb3bfddbb8ee662b9d5c3 | 1,487 | package com.buildfailure.yaig.services;
import com.buildfailure.yaig.entities.InvoiceContext;
import org.springframework.stereotype.Service;
@Service
public class ContextMerger {
public InvoiceContext merge(InvoiceContext base, InvoiceContext individual){
InvoiceContext invoiceContext = new InvoiceContex... | 33.795455 | 80 | 0.64694 |
7c0ad7c217d1bf380e5cff6150f4d8ab552e9959 | 4,569 | /*
* Copyright (C) 2014 singwhatiwanna(任玉刚) <singwhatiwanna@gmail.com>
*
* collaborator:田啸,宋思宇
*
* 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... | 31.510345 | 88 | 0.672576 |
1ee811224dbd5ab91555e66674f9f90024f8382f | 2,456 | package at.rseiler.spbee.demo.entity;
import at.rseiler.spbee.core.annotation.Entity;
import at.rseiler.spbee.core.annotation.MappingConstructor;
import at.rseiler.spbee.demo.McName;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.List;
... | 23.169811 | 123 | 0.569625 |
9d9a5f582df1da536f26a59dd36945b46bfefb2f | 9,479 | /**
*
* 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.876221 | 88 | 0.61114 |
1aa14d3da442a59d135f2ad9e96ef31deb92d8a4 | 1,432 | package com.web.keywords.entity;
import com.app.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* 类别匹配... | 23.096774 | 71 | 0.670391 |
8cb0ff9c00059ffc79e030bd6a1a421f1a6eacf7 | 7,243 | package com.systematictesting.daolayer.beans;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import ... | 36.766497 | 233 | 0.727185 |
ded366d43b7f62a9b1866fec19a3f2c5ba9c2a58 | 748 | package io.fabric8.kubernetes.api;
import io.fabric8.kubernetes.api.model.Pod;
import org.eclipse.jetty.websocket.client.WebSocketClient;
public class WatchPodsExample {
public static void main(String... args) throws Exception {
KubernetesClient kube = new KubernetesClient();
System.out.println("... | 31.166667 | 87 | 0.677807 |
9cf17ba9929f4cf26ccc63b37726b75b19dc6f74 | 1,332 | package com.couchbase.litecore;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertEquals;
public class C4PathsQueryTest extends C4QueryBaseTest {
C4Query query = null;
//-------------------------------------------------------------------------
// public methods
//... | 29.6 | 87 | 0.516517 |
4d4174cfd5a2a9e8d6209b85223e1f8e1b12de39 | 429 | package TheoryDA;
import java.util.Scanner;
public class BMI {
public static void main(String[] args) {
Scanner s = new Scanner(System.in); System.out.println("Enter your weight in kg: ");
float weight = s.nextFloat();
System.out.println("Enter your height in cm: "); float height = s.nextInt();
float heightInMeters = h... | 42.9 | 94 | 0.731935 |
9cd0d001a9a99eeaae21b597ad3a44fd3d160f5e | 4,475 | package com.daniel366cobra.impenitent_illagers.world.gen.feature;
import com.daniel366cobra.impenitent_illagers.structure.PillagerFortGenerator;
import com.mojang.serialization.Codec;
import net.minecraft.block.BlockState;
import net.minecraft.structure.StructureGeneratorFactory;
import net.minecraft.structure.Structu... | 52.034884 | 156 | 0.730503 |
a537d683c3be52996cb153da8214e7368d17dbb5 | 2,666 | import java.util.Date;
import java.util.LinkedList;
import java.util.NoSuchElementException;
import java.util.Random;
/**
* Connection class
* @descrip Connection class to be used as a pipe between router threads.
* @author Benjamin Russell (brr1922)
*/
public class Connection extends LinkedList<RoutingTable> {
... | 28.063158 | 76 | 0.522881 |
e1472f9c6f0b48095e231e090daa0d1c130cfa27 | 10,767 | package xyz.dowenliu.study.algo._07_linked_list;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Arrays;
import java.util.Objects;
/**
* {@code int} 循环单链表
* <p>create at 2019/11/27</p>
*
* @author liufl
* @since version 1.0
*/
public class IntCircularSingly... | 27.821705 | 79 | 0.526516 |
3d6298ce194afc2fc81c4ee81102778d29e05488 | 3,436 | package gnu.kawa.functions;
import gnu.expr.Language;
import gnu.lists.FVector;
import gnu.lists.LList;
import gnu.lists.Pair;
import gnu.mapping.Procedure2;
public class IsEqual extends Procedure2 {
Language language;
public IsEqual(Language language2, String name) {
this.language = language2;
... | 31.236364 | 79 | 0.460128 |
b1a247546342fdc362c8f9b5e9d424dd1a314089 | 1,108 | /*
* Created on Apr 11, 2005
*
* Copyright (c) 2005, the JUNG Project and the Regents of the University
* of California
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* http://jung.sourceforge.net/license.txt for a description.
*/
package edu.uci.... | 27.02439 | 106 | 0.696751 |
7ac23aa0d6a0e091b6b9ac6f3dde493e6a412c00 | 3,679 | /*
*
* * Copyright (c) [2019-2021] [NorthLan](lan6995@gmail.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
... | 39.55914 | 107 | 0.723023 |
f64c6fa7c3503237e0f2e099c6728abed200b71d | 2,377 | package com.mfg.Entity;
import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;
/**
* Created by I309908 on 1/18/2017.
*/
@Entity
public class FunctionalQuality {
@Id
@GeneratedValue
private Long id;
@Column(nullable = true)
private String createdBy;
@Column(nullable ... | 18.570313 | 55 | 0.615902 |
ee8e2a4a794627937bc5cf3e9c3911cdb71da646 | 4,290 | /*
* Copyright (c) 2017 LingoChamp 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 ag... | 28.986486 | 91 | 0.650583 |
5a21b018825e8ca56943ccd66ad885333eae1ed3 | 1,723 | package section1_recipe5;
import java.util.Date;
import java.util.concurrent.Delayed;
import java.util.concurrent.FutureTask;
import java.util.concurrent.RunnableScheduledFuture;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class MyScheduledTask<V> ext... | 24.971014 | 126 | 0.69704 |
d8a542a16aa962b83d1e8b5a6eaf03b4fc00f125 | 1,910 | package pl.kz.youtube;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public class YouTubeFileDownloadedValidator {
public static void main(String[] args) throws IOExce... | 38.2 | 120 | 0.624084 |
e1fe20ae58a5372400c0b32ede17bf0205fa6141 | 1,790 | /*
* Copyright (c) 2013-2014. Urban Airship and Contributors
*/
package com.urbanairship.api.client.model;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import java.util.List;
public final class APIListTagsResponse {
priva... | 22.948718 | 77 | 0.588268 |
72382b43eb69caeca027a9e1a545a4b0f7b65be4 | 5,798 | package com.buaa.pms.entity;
import java.sql.Timestamp;
public class PmsTask {
private String taskUid;
private Integer taskId;
private String taskName;
private Integer taskType;
private Integer taskInType;
private Integer taskOutType;
private String taskProjUid;
private String taskPro... | 23.958678 | 77 | 0.682477 |
cfc3b427877f996c2eb2bdf19f4ab0839edeac71 | 165 | package java.security;
public class PrivilegedActionException extends Exception {
public PrivilegedActionException(Exception exception) {
super(exception);
}
}
| 20.625 | 58 | 0.812121 |
a7b2bf110b7981719d4cedfd0733a8ee02451674 | 1,391 | /**
* Copyright 2016 - 2017
*
* Daniel Hintze <daniel.hintze@fhdw.de>
* Sebastian Scholz <sebastian.scholz@fhdw.de>
* Rainhard D. Findling <rainhard.findling@fh-hagenberg.at>
* Muhammad Muaaz <muhammad.muaaz@usmile.at>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 32.348837 | 75 | 0.695902 |
088b009e6b9afd38ab786c76920c93e9b64ed92a | 587 | package decaf.error;
import decaf.Location;
/**
* example:incompatible argument 3: int[] given, int/bool/string expected<br>
* 3表示发生错误的是第三个参数<br>
* PA2
*/
public class BadScopySrcError extends DecafError {
private String count;
private String dsttype;
private String srctype;
public BadScopySrcError(Locatio... | 19.566667 | 77 | 0.722317 |
a2f76756b5864c93eac72f5d81b19dc95e0b4cd6 | 7,365 | package com.amazon;
import java.util.*;
/**
* The worst case of Kruskal Algorithm E log E
*
* build PQ - E [1 time]
* delete min - log E [E times]
* //union - log V [V times]
* //connected - log V [E times]
*
*/
public class MinCostToConnectAllNodes {
public static void main(String[] args) {
//O... | 24.966102 | 118 | 0.488663 |
9cb36cf1d3d6d44cdc7bdb66980bb8c49333a6de | 1,951 | package org.jspare.vertx.unit;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.ext.unit.TestContext;
import org.jspare.unit.mock.InjectMocks;
import org.jspare.unit.mock.Mock;
import org.jspare.unit.mock.Mocker;
import org.jspare.vertx.unit.ext.junit.VertxJs... | 30.015385 | 101 | 0.752947 |
8393eca9762f99028ba38338b93a99b16659aaa1 | 1,574 | package git.comalmighty911216mustmeetnow.github.sportmate2;
import java.io.Serializable;
@SuppressWarnings("serial")
public class room_item implements Serializable{
String img;
String name;
String super_user;
String address;
String date;
String time;
String num;
public room_item(Strin... | 19.675 | 122 | 0.591487 |
08884e6d162889b5aa5609cef0ff474b96dcd643 | 1,790 | /*
* Copyright 2003-2006 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 event copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 34.423077 | 139 | 0.732402 |
ebb52c101da3b99c5c633faf3f0a8f8f318f6d9d | 724 | public class Solution {
public boolean isAnagram(String s, String t){
if(s.length() != t.length()) return false;
int[] alphabets = new int[26];
for (int i = 0; i < s.length(); i++) {
++alphabets[s.charAt(i) -'a'];
}
for (int i = 0; i < t.length(); i++) {
... | 31.478261 | 55 | 0.506906 |
fc3dab1e460a6e35a2c26066177670995385183f | 2,908 | package net.dzikoysk.funnyguilds.command.admin;
import net.dzikoysk.funnyguilds.basic.guild.Guild;
import net.dzikoysk.funnyguilds.basic.guild.Region;
import net.dzikoysk.funnyguilds.basic.user.User;
import net.dzikoysk.funnyguilds.basic.guild.GuildUtils;
import net.dzikoysk.funnyguilds.command.util.Executor;
import n... | 33.813953 | 141 | 0.651307 |
24d3d4a409c2e8d878095b826cb8897910540472 | 1,030 | package com.napier.sem;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.ArrayList;
import org.junit.jupiter.api.*;
import static org.junit.jup... | 22.888889 | 53 | 0.658252 |
064e50503649f6c00a63f69690ba517caa1b9d86 | 875 |
package Aula_12_Polimorfismo_parte1;
public class Ave extends Animal{
protected String corDaPena;
//contrutor
public Ave(String corDaPena) {
this.corDaPena = corDaPena;
}
//get and set
public String getCorDaPena() {
return corDaPena;
}
public void setCor... | 19.886364 | 71 | 0.609143 |
50ec74f82388572082dd553700f67292c8fa5076 | 1,845 | package io.jexxa.jexxatest.infrastructure.drivenadapterstrategy.messaging.recording;
import java.util.Properties;
import io.jexxa.infrastructure.drivenadapterstrategy.messaging.MessageProducer;
import io.jexxa.infrastructure.drivenadapterstrategy.messaging.MessageSender;
/**
* Stores a message that is send via JMS ... | 26.357143 | 84 | 0.705149 |
11a0c9c99bb3a711a5f7b642c2521daf421acbca | 13,159 | /*
* Copyright 2013-2014 JIWHIZ Consulting 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 ... | 51.807087 | 127 | 0.683411 |
8dd6adc1419e837def47935614c6ef339d93764a | 9,785 | package ru.job4j.test;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* test for Bank.
*
* @author Ayuzyak
* @since 01.05.2017
* @version 1.0
*/
publ... | 35.581818 | 105 | 0.61676 |
0e42c217ad3311af9d113c1d3380b2cf001a3eb2 | 774 | //
// Decompiled by Procyon v0.5.36
//
package org.pitest.mutationtest.build;
import org.pitest.mutationtest.TimeoutLengthStrategy;
public class PercentAndConstantTimeoutStrategy implements TimeoutLengthStrategy
{
private static final long serialVersionUID = 1L;
public static final float DEFAULT_FACTOR = 1... | 28.666667 | 88 | 0.73385 |
ada0c6f98dba40aafad48b87112794cdd231fdb5 | 4,707 | /*
* Copyright (C) 2007-2010 Júlio Vilmar Gesser.
* Copyright (C) 2011, 2013-2016 The JavaParser Team.
*
* This file is part of JavaParser.
*
* JavaParser can be used either under the terms of
* a) the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the ... | 36.773438 | 106 | 0.636711 |
caf598066dfe078effb0c7cd16d3bdda10ad7892 | 566 | package org.ovirt.engine.ui.uicommonweb.models;
/**
* Simple {@link org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel}
* that has the same detail entity as its list elements.
*
* @param <E> {@link org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.E}
* @param <T> {@link org.ovirt.engine.ui.uicom... | 35.375 | 94 | 0.745583 |
5d2cc027cafd34b63c24406a0be75aa708d187e6 | 3,568 | /*
* 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 ... | 48.216216 | 119 | 0.699552 |
a8fa4097bdb27a610273e38a55ee7ec1cbf5c748 | 1,031 | package com.example.demo;
import java.util.Optional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | 28.638889 | 87 | 0.823472 |
991f947d75f614fe7bf863c1bd665ba8abec4284 | 1,945 | package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0
/** //indent:0 exp:0
* This test-input is intended to be checked using following configuration: //indent:1 exp:1
* ... | 55.571429 | 94 | 0.366581 |
7b92d4b2f946d6ded383c598c0d9c34d0c3dac31 | 6,998 | /*
* Copyright 2013-2019 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 req... | 36.638743 | 127 | 0.713632 |
207ff347c9a55829b946ce0e2d2efecf67302f70 | 3,826 | /*
* Copyright (C) 2012 Orange Labs UK. All Rights Reserved.
* Copyright (C) 2011 The Android Open Source 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.a... | 32.423729 | 96 | 0.759279 |
d22a0916aa9ca3101e5d001a1c627c70dba2da44 | 1,725 | package home.app.grpc.api.mappers;
import home.app.grpc.UserMessage;
import home.app.grpc.api.model.IMapper;
import home.app.grpc.api.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Com... | 32.54717 | 68 | 0.656812 |
90c4c9c03806a73f8a0defa42d7c8d75b8895b69 | 1,994 | /*
* 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... | 22.91954 | 104 | 0.712638 |
112cc72b05d19cb07640a8ab7ba4ca21ba2e83d4 | 11,083 | package sqlancer.mysql;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLIntegrityConstraintViolationException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.St... | 36.943333 | 122 | 0.55716 |
c5878c612beb703ac9d3731986c3a4b3490fb285 | 22,962 | /*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2015 IDRsolutions and Contribut... | 31.071719 | 151 | 0.589931 |
94ebd3fe297496aea4f2f00b855efe387aa93c53 | 324 | package proyecto.modelo.dao;
import java.util.ArrayList;
import proyecto.modelo.entidades.Corte;
public interface CorteDAO {
public Corte conseguirCorte(int id);
public ArrayList<Corte> conseguirCortes();
public int agregarCorte(Corte corte);
public int editarCorte(Corte corte);
public int eliminarCorta(int id)... | 23.142857 | 43 | 0.79321 |
a1466840c1d56fa25741b36198974c250ebbc3f4 | 685 | package org.ice1000.textseq.impl;
import org.ice1000.textseq.TextSequence;
import org.jetbrains.annotations.NotNull;
import java.util.LinkedList;
import java.util.List;
@SuppressWarnings({"WeakerAccess", "unused"})
public final class LinkedListTextSequence extends LinkedList<Character> implements ListTextSequence {
... | 24.464286 | 101 | 0.776642 |
fd4b1fa42bb317b68bcffa7d47c42068bcba6b25 | 9,726 | /*
* This file was automatically generated by EvoSuite
* Fri Aug 24 14:42:15 GMT 2018
*/
package wheel.asm;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org... | 36.701887 | 185 | 0.656591 |
4c82bf24c727dad9959a50ba5ea181eb349e551a | 8,372 | /*************************************************************************
* *
* EJBCA Community: The OpenSource Certificate Authority *
* *
* This software is... | 46.511111 | 238 | 0.702819 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.