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 |
|---|---|---|---|---|---|
4c33fe9118b3151d7bc55a62f297b29ce07307e1 | 2,330 | package org.testcontainers.images.builder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.containers.startupcheck.OneShotStartupCheckStrategy;
import java.nio.file.Path;
import java.nio.fi... | 34.264706 | 136 | 0.639056 |
ba98a87feab637c63efdd1fb117950d1239c2bd8 | 7,859 | package com.alibaba.otter.canal.parse.driver.mysql.utils;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
/**
* mysql collation转换mapping关系表
*
* @author agapple 2018年11月5日 下午1:01:15
* @since 1.1.2
*/
public class CharsetUtil {
private static final ... | 30.343629 | 97 | 0.525639 |
f27102b5e6386a79e294739295031c97af55a05a | 4,211 | package com.example.findmytag;
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.FragmentTransaction;
import... | 37.936937 | 87 | 0.638566 |
9620b4e0ef4f212b22bcdf9d012ee3b92e56ff69 | 5,942 | import java.util.Arrays;
import java.util.Scanner;
class Exam27 {
private Scanner sc= new Scanner(System.in);
final private String NUMBER;
public Exam27()
{
System.out.println("Check narcissisticNumber. Enter Integer: ");
this.NUMBER= sc.next();
}
private int narcissisticNumbe... | 25.393162 | 79 | 0.510602 |
c27f44fe90917bee45c88c55eca4dbfe2d69c661 | 3,472 | package com.parking.rest;
import com.parking.rest.dto.AccountGroupDto;
import com.sun.jersey.api.client.WebResource;
import org.codehaus.jettison.json.JSONException;
import org.junit.Test;
import java.net.URISyntaxException;
public class AccountGroupTest extends ApplicationTest {
@Test
public void testCreateOneGr... | 37.333333 | 87 | 0.618088 |
430252c841503a2073d000ef9dd3f24b708e2777 | 607 | package net.ulno.libni.controller.gdx.desktop;
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.Graphics.DisplayMode;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import net.ulno.libni.controller.gdx.Main;
public class DesktopL... | 33.722222 | 77 | 0.771005 |
83686d46903bb5a5c16e89097a5ef527ed022e55 | 1,922 | package simpkins.query;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
public class QueryContextController<T> implements QueryContext<T>, Iterator<T> {
private Iterator<T> iterator;
// we roll over to index=0 when the first object is fetc... | 23.156627 | 104 | 0.584287 |
d2ec718592aea12f479e99b3f6cbcae9f5d3b3de | 3,379 | package al.jdi.dao.beans;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.sameInstance;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.mockito.MockitoAnnotations.initMocks;
import java.u... | 28.880342 | 86 | 0.765315 |
b36e1650e887166e1b3076e02ffcb923f161afa1 | 977 | /*
* ____ _ ____ _ _ _____ ___ _
* / ___| / \ | _ \| \ | |_ _\ \ / / \ | |
* | | / _ \ | |_) | \| || | \ \ / / _ \ | |
* | |___/ ___ \| _ <| |\ || | \ V / ___ \| |___
* \____/_/ \_\_| \_\_| \_|___| \_/_/ \_\_____|
*
* https://github.com/yingzhuo/carnival
*/
package com.github.... | 27.138889 | 103 | 0.583419 |
bf2a3cd53d9aebfc69a3ea3063f340db841fa424 | 369 | package shakeanapple.backtracker.parser.ltlformula.old.rule;
import shakeanapple.backtracker.parser.ltlformula.old.State;
import shakeanapple.backtracker.parser.ltlformula.old.Parser;
import shakeanapple.backtracker.parser.ltlformula.old.tree.Node;
public abstract class Rule {
private String name;
public abs... | 28.384615 | 64 | 0.815718 |
310fe99da48a247248d28f28bfb4bb573392fe75 | 4,222 | package RozetkaTest;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
i... | 45.397849 | 195 | 0.670062 |
bf80d62e7813f1c74332dc3c318ad0ef1c327cde | 5,576 | package wzp.com.texturemusic.bean;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.List;
/**
* Created by Wang on 2017/6/28.
* 评论实体类
*/
public class CommentBean implements Parcelable {
private String commentId;
private String commnetCreaterName;
private Long commentCreaterId;... | 26.937198 | 83 | 0.664275 |
7ccacaf9f4a60c16aefc1684ec6eb16b18b6a5a1 | 287 | package io.github.pikaq;
/**
* 异步回调,发送异步请求时使用
*
* @author pleuvoir
*
*/
public interface InvokeCallback {
/**
* 接收到响应时触发
*/
void onReceiveResponse(final RemotingFuture remotingFuture);
/**
* 发送异常时触发
*/
void onRequestException(final RemotingFuture remotingFuture);
}
| 13.666667 | 62 | 0.696864 |
0aab08198ec3871e58a04f393987a07df8b6c55d | 473 | package com.sx4.bot.handlers;
import com.mongodb.event.ClusterClosedEvent;
import com.mongodb.event.ClusterListener;
import com.mongodb.event.ClusterOpeningEvent;
public class MongoDatabaseHandler implements ClusterListener {
public void clusterOpening(ClusterOpeningEvent event) {
System.out.println("Connected t... | 26.277778 | 62 | 0.803383 |
9356482a76eadd035a6f03671f8add54f8b5cb83 | 1,517 | package com.venky.swf.plugins.collab.db.model.user;
import com.venky.core.util.ObjectUtil;
import com.venky.swf.db.model.Model;
import com.venky.swf.db.table.ModelImpl;
import com.venky.swf.plugins.collab.util.MailUtil;
public class EmailImpl<T extends Model & com.venky.swf.plugins.collab.db.model.user.Email> extends... | 25.711864 | 137 | 0.610415 |
878a08dc7e785cde3a6bdbc8c72fb7b1aef970a7 | 4,546 | /*
* Copyright (C) 2017 grandcentrix GmbH
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 32.014085 | 90 | 0.642323 |
3d6fe4e239b3305aba622a32716cfd4064338e4e | 6,087 | package de.mathema.sas.memorygame.rules;
import de.mathema.sas.memorygame.cards.Card;
import de.mathema.sas.memorygame.player.Player;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mocki... | 31.056122 | 96 | 0.679317 |
10d740e65339d6b446b432f424990a1873624a8a | 6,093 | package com.eminent.usb.a3d;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbInterface;
/**
* Created by kentlee on 2017/10/11.
*/
public class A3DController {
private static int s_interval = 135;
private static int s_integration_max_... | 29.434783 | 115 | 0.569178 |
fb5bf7fc67a8261dd70bfab64b9dd84965bd2096 | 2,821 | package com.mickey305.util.file.zip;
import com.mickey305.util.file.AbsCompressManager;
import org.apache.tools.zip.ZipEntry;
import org.apache.tools.zip.ZipOutputStream;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.*;
/**
* Created by K.Misaki on 2017/04/02.
*
*/
public class... | 30.663043 | 132 | 0.683446 |
727e17776f270d72496fc3d4de26b9eb5c3f0df9 | 379 | package com.example.libo.myapplication.Activity;
import android.os.Bundle;
import android.app.Activity;
import com.example.libo.myapplication.R;
public class UserSearchActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | 22.294118 | 56 | 0.765172 |
32b016298efd01b5c4ad51df4ff0c17e56d27c47 | 435 | package com.example.githubclient;
public interface APIConfiguration {
static final String COMPANY_DOMAIN = "xpandit-fa07db";
static final String API_BASE_URL_PD = "https://" + COMPANY_DOMAIN + ".pipedrive.com/";
static final String API_BASE_URL_GH = "https://api.github.com/";
static final String API_VE... | 48.333333 | 90 | 0.751724 |
4c127569dce1c378c26da4a8acf0da5487682c97 | 872 | package com.ruan.hncc.dms.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.R... | 26.424242 | 62 | 0.81422 |
89148a9fac79718b7d290ba69f8d10f2a93f3857 | 1,619 | /**
*copyright(C)2012
*Ods信息技术软件有限公司 & Service Corporation All rights reserved
*/
package com.ods.base.action.system.bulletin;
import org.directwebremoting.Browser;
import org.directwebremoting.ScriptSessions;
/**
*<b>系统名称:</b><b>
*武警遵义支队按纲建队系统
*</b>
* &nbs... | 24.907692 | 81 | 0.555281 |
64c7afc53a8c7ac0a4214f725edeb3aa245dbf14 | 1,121 | package foo;
import static androidx.lifecycle.Lifecycle.Event.ON_START;
import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
import androidx.lifecycle.Lifecycle.Event;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.OnLifecycleEvent;
public class ... | 26.690476 | 69 | 0.67975 |
81a0020ed70aa0fcd46bbfee01f37b3f950b7bb8 | 252 | package com.github.extermania.leetcode;
public class $0596_Classes_More_Than_5_Students_24_88 {
// select class from(
// select count(1) as cnt, class from (select distinct student, class from courses) group by class
// )where cnt>=5
}
| 31.5 | 101 | 0.72619 |
bf35c02acf608dcc45f46bfdf4238d3b84bd8010 | 7,181 | /*
* The FUJABA ToolSuite RE project:
*
* FUJABA is the acronym for 'From Uml to Java And Back Again'
* and originally aims to provide an environment for round-trip
* engineering using UML as visual programming language. During
* the last years, the environment has become a base for several
* re... | 32.789954 | 83 | 0.645732 |
3fbdf810f656747613d1476f4dc6445349fe98f6 | 1,686 | package com.algaworks.algafood.api.exceptionhandler;
import java.time.OffsetDateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import... | 30.654545 | 188 | 0.736655 |
dd2ee4e2f088d066f074d626ebd1e669e814d278 | 504 | package com.review.socket.TCPTest04;
import java.net.ServerSocket;
import java.net.Socket;
/**
* @author 小白
* @create 2021/4/14
*/
public class Server {
public static void main(String[] args) throws Exception {
ServerSocket serverSocket =new ServerSocket(999);
while(true){
Socket so... | 24 | 61 | 0.634921 |
b922b98a0532ce59f9d627c926c200b3d7da873b | 4,900 | package org.apache.lucene.demo;
import org.apache.lucene.search.similarities.*;
import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.search.CollectionStatistics;
import org.apache.lucene.search.Explanation;
import org.apache.lucene.search.TermStatistics;
import org.apache.lucene.util.Byte... | 32.450331 | 116 | 0.664082 |
8922b1470575bbb8ddc0a499e5b90f0e395167c7 | 826 | package homework.cardealer.domain.dto.seed;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@X... | 27.533333 | 67 | 0.756659 |
c608b038ce79c6be9f74929813a7c0ef310b1942 | 1,093 | package com.shejiaomao.weibo.widget;
import com.cattong.entity.Status;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.style.ClickableSpan;
import android.view.View;
import com.shejiaomao.weibo.activity.MicroBlogActivi... | 26.02381 | 58 | 0.716377 |
697da2a34fa894d0eb0b5c0e1e4c06aa53a68f0f | 856 | class Main {
public static int binarySearch(int[] array, int target) {
int high = array.length - 1;
int low = 0;
while (high >= low) {
int middle = (low + high) / 2;
if (array[middle] == target) {
return middle;
} else if (array[m... | 28.533333 | 74 | 0.453271 |
62295802309378cf9b205d14cec4e31119bf78c7 | 5,885 | /*
* Copyright 2016 Hippo Seven
*
* 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 ... | 34.415205 | 127 | 0.535599 |
f7cd7b987ac3abfad1be9fc125d40e2926624ee1 | 2,978 |
import java.time.*;
import java.util.*;
import java.text.SimpleDateFormat;
import java.io.*;
import java.util.Scanner;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
//this is the new nurse window
public class newNurse extends FinalProjectApp {
//Nurse to be returned later
Nurse aNurse ... | 21.737226 | 177 | 0.692747 |
af7edc27651dcb0cf7c6ebac423043d0cfb0c2dd | 5,080 | /*
* Copyright (c) 2020 Squaredesk GmbH and Oliver Dotzauer.
*
* This program is distributed under the squaredesk open source license. See the LICENSE file distributed with this
* work for additional information regarding copyright ownership. You may also obtain a copy of the license at
*
* https://squaredes... | 35.524476 | 123 | 0.692913 |
d5b750601ae6b82e0cffd4f21d01043c8860fd38 | 539 | package com.liwy.study.springboot;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
//@EnableAutoConfiguration
@SpringBootApplicatio... | 33.6875 | 68 | 0.808905 |
e534f006f381b08c8406bcdf4cab64a6b4c59ab6 | 1,381 | package tk.snapz;
import com.ericrabil.yamlconfiguration.configuration.InvalidConfigurationException;
import tk.snapz.server.SnapzServerApplication;
import tk.snapz.server.minecraft.spigot.SpigotServer;
import tk.snapz.server.minecraft.spigot.SpigotServers;
import tk.snapz.usermanager.Users;
import tk.snapz.web.Spring... | 32.880952 | 95 | 0.606083 |
1334199cd2ec91a64a801f5283e0256ec16629df | 3,252 | /*
* 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 objects2;
/**
*
* @author swade
*/
public class Car {
//public member variables: we don't need to impleme... | 26.016 | 94 | 0.544588 |
43ac08d60b46f9fa1628aeb93899e72efb8930fb | 1,095 | package com.github.catalin.cretu.verspaetung.jpa;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.R... | 37.758621 | 81 | 0.706849 |
ea8bd7729b9c1eff462a318c7bff79e8665c2f5b | 1,065 | package frc.robot.commands;
import edu.wpi.first.wpilibj.GenericHID.Hand;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.Drive_Subsystem;
public class TeleDriveCommand extends CommandBase {
private final XboxController driver_Controller;... | 22.1875 | 94 | 0.75493 |
ac121d5a5f7ca62a8717f9359d55c469d51f0888 | 1,908 | /**
* Copyright (c) 2000-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... | 29.8125 | 100 | 0.787212 |
8b3ccae14bafd3cef97772b709ffc34a6552cf4f | 291 | package localhost.abec2304.kurokohi;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public interface Info {
void init(DataInputStream dis) throws IOException;
void write(DataOutputStream dos) throws IOException;
}
| 20.785714 | 57 | 0.745704 |
8b8ed1efb8a024eed4328d28a3eb20cec5998e0c | 2,565 | package com.boot.basics.coding.netty.echo;
import com.boot.basics.coding.netty.echo.EchoServerHandler;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.SocketChannel;
import io.netty.channel.socket.nio.NioServerSocketCha... | 38.863636 | 94 | 0.623002 |
066ec9c0d4252b93be7fb8ceb16b102e5497fac0 | 7,616 | /*******************************************************************************
* Copyright (c) 2011 Earth System Grid Federation
* ALL RIGHTS RESERVED.
* U.S. Government sponsorship acknowledged.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that th... | 41.617486 | 244 | 0.694459 |
3e356713c8338b7533c92f52701722869a63de8a | 251 | package com.shj.pojo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AutowiredBean {
public void say() {
System.out.println("autowired bean");
}
}
| 19.307692 | 62 | 0.741036 |
490b66901a8e73aee853c2d6814174bae0f03f91 | 14,869 | package cn.ichi.android.presentation;
import android.app.Presentation;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Display;
import an... | 28.539347 | 105 | 0.550541 |
802431369c45af6e84a4cb3c6ddc4028658449ad | 1,998 | package us.ihmc.acsell.hardware.command;
import us.ihmc.robotics.dataStructures.registry.YoVariableRegistry;
import us.ihmc.robotics.dataStructures.variable.DoubleYoVariable;
import us.ihmc.sensorProcessing.sensors.RawJointSensorDataHolder;
public class AcsellJointCommand
{
private final YoVariableRegistry registr... | 23.785714 | 99 | 0.675175 |
58d14c37ea2f8d4c2131fd1f3a65571b2b3f45b0 | 661 | package binarytrees;
/**
* For each node in a binary search tree, create a new duplicate node, and
* insert the duplicate as the left child of the original node. The resulting
* tree should still be a binary search tree.
*
* Signature of expected method:
*
* public static <T> void doubleTree(TreeNode<T>... | 23.607143 | 77 | 0.683812 |
7ad266b9da2bad7cc513db86d6db0d8537ff74ec | 2,223 | /*
* Copyright 2010 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 requi... | 28.87013 | 80 | 0.681511 |
793fdc9c36702fad7fb80393eebb65dcaa15ed37 | 678 | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
package com.epi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class IntersectSortedArrays2 {
// @include
public static List<Integer> intersectTwoSortedArrays(List<Integer> A,
... | 28.25 | 78 | 0.587021 |
65f9fcf4dc16045cd7a2b40804d3b06f78c8d180 | 8,620 | /*
* Copyright The Cryostat Authors
*
* The Universal Permissive License (UPL), Version 1.0
*
* Subject to the condition set forth below, permission is hereby granted to any
* person obtaining a copy of this software, associated documentation and/or data
* (collectively the "Software"), free of charge and under ... | 45.851064 | 100 | 0.604408 |
ff1e4797647839add1f03ee23bf65998aca99073 | 2,308 | /**
* 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... | 27.152941 | 102 | 0.739601 |
e65f95850f41d3399fa0f17eadd9c564db55e04f | 2,017 | package packets.data.enums;
/*
* A class representation of the `useItemType` packet variable with helper functions.
*/
public enum UseItemType {
INVALID(-1, "Invalid"),
/**
* Sent for consumables and single-use abilities such as spells and tomes.
*/
DEFAULT(0, "Default"),
/**
* Sent t... | 26.893333 | 85 | 0.607338 |
036ea358f43b3aa98c282cb2e0ee29b4fdd6aa5c | 1,972 | package com.emc.thye;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.text.SimpleDateFormat;
import java.util.Date;... | 34 | 90 | 0.61359 |
e9d95347c6d4c8d32eed6af4c85585cf35aa56a9 | 524 | package org.jpromise.functions;
import org.jpromise.patterns.Pattern3;
public abstract class OnFulfilled3<V1, V2, V3> implements OnFulfilled<Pattern3<V1, V2, V3>> {
@Override
public final void fulfilled(Pattern3<V1, V2, V3> result) throws Throwable {
if (result == null) {
fulfilled(null, n... | 29.111111 | 93 | 0.650763 |
128b1b10e5f5739daadaac7581038311117e873b | 12,030 | import com.github.hlvx.dao.database.sql.DAO;
import com.github.hlvx.dao.database.sql.DaoManager;
import com.github.hlvx.dao.database.sql.SQLSession;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.jdbc.JDBCClient;
impo... | 61.377551 | 214 | 0.438071 |
a3c327e1cc89dc1e756ef71086e53182c661323b | 971 | package io.qameta.allure.junitplatform.features;
import io.qameta.allure.Epic;
import io.qameta.allure.Feature;
import io.qameta.allure.Owner;
import io.qameta.allure.Stories;
import io.qameta.allure.Story;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import java.util.stream.Str... | 22.581395 | 60 | 0.634398 |
c3665a4e73b62c2083d5e640b0e79629a2eef213 | 3,849 | /* RMIHashes.java --
Copyright (c) 1996, 1997, 1998, 1999, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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; either version... | 38.108911 | 114 | 0.714471 |
093725164eef034e5c26dbd8923ac564a5da9efc | 185 | package com.r00ta.ffm.core.models;
public enum ManagedEntityStatus {
ACCEPTED,
PREPARING,
PROVISIONING,
READY,
DEPROVISION,
DELETING,
DELETED,
FAILED
}
| 14.230769 | 34 | 0.664865 |
690bcfff0184586f5eb0afd131e378c35d6bfa8f | 489 | package au.com.turingg.microlibs.mimak;
import java.io.IOException;
/**
* Root class for all Mimak exceptions.
*
* @author Behrang Saeedzadeh
*/
public class MimakException extends IOException {
public MimakException() {
}
public MimakException(String message) {
super(message);
}
pu... | 17.464286 | 60 | 0.664622 |
5e3eef0169373073d25b99d6c0cbf6aa39bc0a6e | 2,604 | /* */ package classes.lrg.insider.plugins.core.properties.hismo.functions;
/* */
/* */ import lrg.common.abstractions.entities.AbstractEntityInterface;
/* */ import lrg.common.abstractions.entities.ResultEntity;
/* */ import lrg.insider.plugins.core.properties.hismo.HismoDetail;
/* */ import lrg.insi... | 62 | 198 | 0.65745 |
8de5121229bb08405bbffbc75bf414b38260cf44 | 264 | package com.kr.test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingTest {
private static final Logger log = LoggerFactory.getLogger(LoggingTest.class);
public static void main(String[] args) {
log.info("Logging Test");
}
}
| 18.857143 | 78 | 0.75 |
8ba2628147db5304fe08097d35c21116870528d6 | 3,155 | /*
* WPCleaner: A tool to help on Wikipedia maintenance tasks.
* Copyright (C) 2017 Nicolas Vervelle
*
* See README.txt file for licensing information.
*/
package org.wikipediacleaner.api.data;
import org.wikipediacleaner.api.configuration.WikiConfiguration;
/**
* Information about Linter c... | 22.862319 | 88 | 0.591759 |
d5a598f79c1aa43c140529e3e65a0f42332baf60 | 1,739 | package com.github.sawied.jweb.api;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import... | 30.508772 | 94 | 0.807936 |
31dcc9003a274beeaa0298d499b387636cf218f6 | 10,849 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 39.886029 | 144 | 0.66301 |
f8e494f794d8448c0d1f06021c8ece839b613b64 | 7,595 | package com.xiaomaigou.code.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
/**
* 字段属性
*
* @author xiaomaiyun
* @version 1.2.3
* @date 2020/5/30 12:47
*/
@ApiModel(description = "字段属性")
public... | 26.649123 | 275 | 0.602107 |
809c66dfdd937d21d5e3fc1b7edd5fd1630564d4 | 389 | package io.pivotal.cla.service;
import java.util.List;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class MigratePullRequestStatusRequest {
/**
* Repository ids in the format of spring-projects/spring-security
*/
final List<String> repositoryIds;
final String commitStatusUrl;
final Str... | 16.208333 | 67 | 0.773779 |
1a59fa0a45bbca1f702c5b8e172af7753e1f9bba | 1,764 | /*
* Copyright 2017 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.cucumb... | 44.1 | 111 | 0.816327 |
e9d879358c653ae90e7c3ff4758f9e5cf7f279f1 | 435 | package frc.robot.simulator.hal;
import edu.wpi.first.hal.JNIWrapper;
/**
* Sim JNI classes must be structured EXACTLY like their counterpart non-sim JNI classes. If a single field or method is added or removed, the ByteBuddy redefine will fail
*/
public class SimConstantsJNI extends JNIWrapper {
public static ... | 31.071429 | 171 | 0.744828 |
6e5683fc7acf8b877f0a7fa831e328165a1ae4a2 | 2,042 | package com.googlecode.yatspec.plugin.sequencediagram;
import com.googlecode.totallylazy.Sequence;
import com.googlecode.yatspec.state.givenwhenthen.CapturedInputAndOutputs;
import org.junit.Test;
import static com.googlecode.totallylazy.Sequences.sequence;
import static org.hamcrest.MatcherAssert.assertThat;
import ... | 53.736842 | 166 | 0.75808 |
8ca9ea10763eb42d7749dcb4626280c9cb7d67e5 | 556 | package com.neo.qiaoqiaochat.web.model.vo;
import lombok.Data;
/**
* 好友返回参数
* @author linyi
* @date 2020/7/28 9:00
*/
@Data
public class FriendVO {
/**
* 账号
*/
private String account;
/**
* 昵称
*/
private String nickName;
/**
* 好友备注
*/
private String remark... | 11.829787 | 42 | 0.535971 |
8d311d9787079be65a4ee843b08efa42536edfbf | 384 | package com.mmnaseri.utils.spring.data.sample.mocks;
import com.mmnaseri.utils.spring.data.domain.impl.matchers.AbstractUnaryMatcher;
/**
* @author Milad Naseri (m.m.naseri@gmail.com)
* @since 1.0 (4/12/16, 7:01 PM)
*/
public class NotMatchingUnaryMatcher extends AbstractUnaryMatcher {
@Override
protected... | 22.588235 | 80 | 0.723958 |
43bc9a7eda4d388aeb92ba0630df645447fb0e52 | 12,631 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... | 14.602312 | 810 | 0.805558 |
e51c150163b5daacb08b372e9bd257aeae6f8093 | 1,013 | package com.ma.home;
import java.util.Deque;
import java.util.LinkedList;
public class TrainComposition {
private final Deque<Integer> wagons = new LinkedList<>();
public void attachWagonFromLeft(int wagonId) {
wagons.addFirst(wagonId);
}
public void attachWagonFromRight(int wagonId) {
... | 25.974359 | 61 | 0.611056 |
c583c4086e28c9e3be97765f9ae7dae8b86c25a9 | 875 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2013-2014 sagyf Yang. The Four Group.
*/
package goja.lucene.analyzer;
import org.junit.Test;
import org.wltea.analyzer.core.Lexeme;
import java.util.List;
public class AnalyzerTest {
@Test
public void testAnalyzer() throws... | 26.515152 | 134 | 0.659429 |
81c21b81b41e118d4f16e5ad4defa8c4d19036b0 | 6,138 | /*
* Copyright 2016 Claymore Minds Limited and Niche Solutions (UK) Limited
*
* 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
*
* Unl... | 33.911602 | 166 | 0.64679 |
bd47ddf3fa977cc8ce2885ad68d89fb7e60dd0b4 | 10,065 | /*
*
* Copyright (c) 2013 - 2020 Lijun Liao
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 29.429825 | 90 | 0.72002 |
23f05857e05706bb06962f1dc4aec202b940768a | 2,449 | package application;
import com.interactivemesh.jfx.importer.obj.ObjModelImporter;
import javafx.application.Application;
import javafx.scene.AmbientLight;
import javafx.scene.Group;
import javafx.scene.PerspectiveCamera;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
impo... | 32.223684 | 95 | 0.672111 |
bd5047361920d50163a7b4997a96005f593f30e7 | 4,540 | package com.wallet.crypto.trustapp.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.support.design.widget.TextInputLayout;
import android.support.v4.view.ViewCompat;
import android.support.v4.view.ViewPropertyAnimatorListenerAdapte... | 30.066225 | 93 | 0.756608 |
9cdd15c745d88b43d58143b697d3a3538c9919b5 | 4,841 | /*
* MIT License
*
* Copyright (c) 2018 Isaac Ellingson (Falkreon) and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | 34.827338 | 148 | 0.737658 |
2e775d51b92b07608f64c99e6ba838b7f29c523a | 713 | package com.sai.javafx.calendar.cell;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Text;
/**
* AbstractCell
* @author Sai.Dandem
*
*/
public abstract class AbstractCell extends StackPane {
protected Text txt;
public AbstractCell(){
super();
}
public abstract void setCell... | 18.763158 | 57 | 0.638149 |
17207757ff080f72bd847ab33d2e14ba98bae6c3 | 202 | package net.zelaznog.library.model;
/**
* Created by Decaedro on 30/01/2016.
*/
public class App {
public String title;
public String pkg;
public String url;
public String version;
}
| 16.833333 | 37 | 0.678218 |
e6584f029263b9fc89590cf463f38ccfdba8347f | 6,036 | import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import javax.swing.*;
public class Client {
public static void main(String[] args) {
setupGUI();
}
private static void setupGUI() {
// Main window
JFrame frame = new JFrame();
frame... | 51.152542 | 196 | 0.665176 |
4d63e056048519f7fa8a6fad66c5a995381caa33 | 5,645 | package com.github.softbasic.micro.service;
import com.github.softbasic.micro.model.SchedulerModel;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import ... | 34.212121 | 113 | 0.654916 |
5f77cecc2006bbdfe2c5b4f3c3adedcdd05a530d | 3,961 | /**
*
*/
package com.sina.util.dnscache.model;
import com.sina.util.dnscache.Tools;
import org.json.JSONException;
import org.json.JSONStringer;
/**
*
* 项目名称: DNSCache <br>
* 类名称: IpModel <br>
* 类描述: ip数据模型 - 对应ip表 <br>
* 创建人: fenglei <br>
* 创建时间: 2015-3-26 下午5:23:06 <br>
*
* 修改人: <br>
* 修改时间: <br>
... | 23.861446 | 98 | 0.540015 |
6a59d30fbfc2da8fb9ecbb0b4564a23349aa7bc0 | 3,771 | package com.sprylab.xar.utils;
/**
* This is a minimal, stripped down version of {@code StringUtils} from <a href="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</a>.
*/
public final class StringUtils {
/**
* The empty String {@code ""}.
*
* @since 2.0
*/
public sta... | 33.972973 | 154 | 0.582074 |
ddae0dc3ae25891e1e5c7bcceb4251b9a33f830c | 3,206 | package io.github.cottonmc.spinningmachinery.compat.rei;
import com.google.common.collect.ImmutableList;
import io.github.cottonmc.spinningmachinery.block.SpinningBlocks;
import io.github.cottonmc.spinningmachinery.block.entity.GrinderBlockEntity;
import io.github.cottonmc.spinningmachinery.compat.rei.widget.InfoWidge... | 41.636364 | 126 | 0.674984 |
14c4ca77ad4fc07e44dc5fec865585d45cf623d3 | 1,521 | //Deobfuscated with https://github.com/PetoPetko/Minecraft-Deobfuscator3000 using mappings "mcp_snapshot-20171003-1.12"!
/*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.minecraft.init.Items
* net.minecraft.item.ItemStack
* net.minecraft.item.crafting.Ingredient
* net.minecra... | 47.53125 | 365 | 0.77449 |
a25d6d6e784756f8d0f06436032d930c6993c4b8 | 7,846 | /*
* Copyright (C) 2014 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 49.974522 | 96 | 0.703416 |
4ea0c3f7b303eada9cd2066c4b417c9b0f38d26b | 2,989 | package com.smartgwt.mobile.client.internal;
import java.util.AbstractList;
import java.util.List;
import com.smartgwt.mobile.SGWTInternal;
import com.smartgwt.mobile.client.data.Record;
import com.smartgwt.mobile.client.util.IsCallback;
@SGWTInternal
public final class Array {
public static final Record LOADIN... | 35.164706 | 86 | 0.610572 |
c61c6f0a2fbadfa8ac69fc45ded70dfa6b7e7d70 | 1,272 | package dev.sheldan.abstracto.moderation.model.template.job;
import dev.sheldan.abstracto.core.models.ServerUser;
import dev.sheldan.abstracto.moderation.model.database.Warning;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import net.dv8tion.jda.api.entities.Member;
/**
* A single warning conta... | 31.02439 | 119 | 0.720912 |
0bfce96346943d15fc5f799c66ed3bfc3e64a058 | 1,459 | class Solution {
public String longestPalindrome(String s) {
final String t = join('@' + s + '$', '#');
final int n = t.length();
// t[i - maxExtends[i]..i) ==
// t[i + 1..i + maxExtends[i]]
int[] maxExtends = new int[n];
int center = 0;
for (int i = 1; i < n - 1; ++i) {
final int r... | 29.77551 | 96 | 0.559973 |
2ff906682f7818e1c737503496fa2cbbb20168fe | 6,468 | /*
* Copyright 2018 The Exonum 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 applicable law or agreed... | 36.134078 | 132 | 0.703309 |
b0d74c12f294bf46964dffab16fe3c54296f274b | 5,202 | package com.mesosphere.sdk.specification;
import com.mesosphere.sdk.scheduler.SchedulerConfig;
import com.mesosphere.sdk.scheduler.plan.Phase;
import com.mesosphere.sdk.scheduler.plan.Plan;
import com.mesosphere.sdk.scheduler.plan.PodInstanceRequirement;
import com.mesosphere.sdk.specification.yaml.RawPlan;
import com... | 42.292683 | 112 | 0.574587 |
f3665ac0f2f4501e0a973be719b62da8af80d2e0 | 4,695 | /**
* 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.839695 | 92 | 0.62279 |
76f57f409b7a0e7fbd83dab80ba7d93a957d98de | 3,927 | /*
* Licensed to 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 file except in compl... | 42.684783 | 102 | 0.743825 |
d220c00e30d04f2df3e6956c13a3c9da261479c0 | 4,017 | package com.vaadin.tests.components.table;
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.components.AbstractReindeerTestUI;
import com.vaadin.ui.Button;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;
import co... | 34.333333 | 77 | 0.647249 |
488b250efe535efcb58638087eeb055deaa00f74 | 595 | import java.util.Scanner;
public class Factorial {
/*
* Problem- A positive number N is given to you and You need to calculate its factorial.
* Approach- Recursion
*/
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a no. :");
int n = sc.nextInt(... | 19.193548 | 89 | 0.638655 |
9eb5414dc62ca3029b9a84c9ae53a5210818cd13 | 1,418 | package com.ulfy.master.ui.cell;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.TextView;
import com.ulfy.android.image.ImageUtils;
import com.ulfy.android.mvvm.IViewModel;
import com.ulfy.android.ui_injection.Layout;
import com.ulfy.android.ui... | 32.976744 | 126 | 0.737659 |
6b66c2ed84e830b470f72523b47a4bdf1e094e3c | 3,485 | package restx.tests;
import com.github.kevinsawicki.http.HttpRequest;
import com.google.common.base.Charsets;
import com.google.common.base.Stopwatch;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableMap;
import org.hamcrest.MatcherAssert;
import restx.factory.Component;
import restx.sp... | 41 | 118 | 0.634433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.