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 |
|---|---|---|---|---|---|
0df35c2cfa1afdc90f41c60051f69e2c60b85e96 | 372 | package xyz.a00000.blog.bean.dto;
import lombok.Data;
import lombok.ToString;
import java.io.Serializable;
import java.util.Date;
@Data
@ToString
public class RegisterParams implements Serializable {
private String username;
private String password;
private String token;
private String email;
pr... | 17.714286 | 53 | 0.755376 |
588869d1d1ffc4fffe191e0b5910bba13e21e9e0 | 6,274 | /*
* Copyright 2008-2009 MOPAS(Ministry of Public Administration and Security).
*
* 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
*
... | 20.706271 | 92 | 0.617947 |
a61bde7508f2a4ed04d7e57bd7d3d7f23083c1ec | 2,828 | package org.unique.web.core;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebFilter;
import... | 27.72549 | 123 | 0.640028 |
47d8f4511f7dd9464f502d64cf516a12d5b1398d | 442 | package com.novbank.ndp.kernel.exception;
/**
* A transaction was not found in the transaction registry
*
* Created by CaoKe on 2015/5/13.
*/
public class TransactionMissingException extends RepositoryRuntimeException {
private static final long serialVersionUID = 2139084821001303830L;
/**
*
* ... | 22.1 | 77 | 0.701357 |
57f4b1d8fc249046ad00c44a0477d15b4f9e6145 | 999 | package section_12;
import typeinfo.pets.Pet;
import typeinfo.pets.Pets;
import java.util.AbstractCollection;
import java.util.Iterator;
/**
* @Author ZhangGJ
* @Date 2019/05/29
*/
public class CollectionSequence extends AbstractCollection<Pet> {
private Pet[] pets = Pets.createArray(8);
public int size(... | 22.704545 | 65 | 0.584585 |
9e9d8621776d2444424198420c36b628520ccb11 | 319 | package com.ctrip.framework.apollo.common.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* 实体对
*
* @author Jason Song(song_s@ctrip.com)
*/
@Data
@AllArgsConstructor
public class EntityPair<E> {
/**
* 第一个实体
*/
private E firstEntity;
/**
* 第二个实体
*/
private E secondEntity;
}
| 13.291667 | 49 | 0.667712 |
884fc0b9b134c5dfa938248797bd354062ff3318 | 2,278 | package telran.aop.document;
import java.time.LocalDateTime;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@AllArgsConst... | 24.494624 | 84 | 0.640474 |
146c25864a6770c18c037b1f67cfeb8c963d5f31 | 805 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package team3176.robot.commands.Shooter;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import team3176.robot.su... | 32.2 | 96 | 0.776398 |
431e2be2718b2609fb0af6d6c54fbeccb447e1db | 1,995 | package co.com.devmont.javatestingcourse.movies.data;
import co.com.devmont.javatestingcourse.movies.model.Genre;
import co.com.devmont.javatestingcourse.movies.model.Movie;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import java.util.Collection;
import java.util... | 32.704918 | 106 | 0.64411 |
30793316e1a9cc777f17eeca67795ee9e7d73061 | 18,738 | /*
* Copyright 2005-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 applica... | 31.598651 | 140 | 0.621945 |
0cc1bdcd722ab4afb7e351099d32995168ee2894 | 3,323 | /*
* 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... | 37.761364 | 119 | 0.692748 |
4af6fc11604757d748b6c5195c9ff1f85e824ec6 | 676 | package nl.nikhef.jgridstart.gui.util;
import javax.swing.JButton;
import nl.nikhef.xhtmlrenderer.swing.ITemplatePanel;
import nl.nikhef.xhtmlrenderer.swing.ITemplatePanelTest;
import nl.nikhef.xhtmlrenderer.swing.TemplatePanelGuitest;
public class TemplateButtonPanelGuitest extends TemplatePanelGuitest {
@Overr... | 30.727273 | 70 | 0.782544 |
a5d86f65b2c51f32062059a9f760b173501be7c2 | 1,107 | package com.skeqi.finance.mapper.endhandle;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skeqi.finance.domain.endhandle.withholding.TGlWithholdingScheme;
import com.skeqi.common.core.mybatisplus.core.BaseMapperPlus;
import com.skeqi.... | 41 | 134 | 0.837398 |
76f1667b53e4bfbf1ff83480dfbe50fdece61cce | 1,060 | package org.cocos2dx.cpp.drawingcoloring.activity;
import android.Manifest;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import org.cocos2dx.cpp.drawingcoloring.core.Const;
import org.cocos2dx.cpp.drawingcoloring.view.ViewDrawingColoring;
public class DrawingActivity extends DrawingColorin... | 35.333333 | 110 | 0.762264 |
f61886091943391a6f687c3c0e6620c8d3af6481 | 1,700 | package com.cavecat.bo;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import org.springframework.dao.DataAccessException;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import org.springframework.tr... | 27.419355 | 81 | 0.750588 |
08bc60d62ea8cc3409b216634e286c29a1f20723 | 1,249 | package io.github.mattthomson.depijp.tap;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import io.github.mattthomson.depijp.DePijpSink;
import io.github.mattthomson.depijp.DePijpSource;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.util.List;
import ... | 35.685714 | 90 | 0.738991 |
c9f3bf6b5df0dec3094dec4130508937a52239fc | 2,252 | package com.eme22.bolo.commands.admin;
import com.eme22.bolo.Bot;
import com.eme22.bolo.commands.AdminCommand;
import com.jagrosh.jdautilities.command.CommandEvent;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.events.interaction.SlashCommandEvent;
import net.dv8tion.jda.api.interactions.comm... | 40.214286 | 172 | 0.671847 |
e3ef6ae9147882f1b002d4d23cf50493a8be1663 | 3,352 | package com.xhe.common.redis.config;
import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.f... | 45.917808 | 146 | 0.790573 |
9de8c13a00216d25a84f444a24aa0ab53cb6e9b9 | 1,803 | package io.quarkus.mongodb.panache.deployment;
import io.quarkus.mongodb.panache.PanacheMongoEntity;
import io.quarkus.mongodb.panache.PanacheMongoEntityBase;
import io.quarkus.mongodb.panache.PanacheMongoRepository;
import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase;
import io.quarkus.mongodb.panache.Panach... | 29.080645 | 89 | 0.734886 |
c323242c3a15f23e5a339ee0f70220cc618e57e6 | 138 | package com.ynhenc.comm.registry;
import com.ynhenc.comm.ArrayListEx;
public class ArrayListRegiItem extends ArrayListEx<RegiItem> {
}
| 17.25 | 62 | 0.811594 |
669e0dbc63011c87176b540d4f5ec654cdc7f4ff | 318 | package ru.mihkopylov.myspb.dao;
import lombok.NonNull;
import org.springframework.data.jpa.repository.JpaRepository;
import ru.mihkopylov.myspb.model.User;
import java.util.Optional;
public interface UserDao extends JpaRepository<User, Long> {
@NonNull
Optional<User> findByLogin(@NonNull String login);
}
| 24.461538 | 61 | 0.792453 |
5993232e6c7decb546bcae2fa64bf3b51c9e9116 | 1,235 | package problems;
import java.util.HashSet;
import java.util.Set;
import datastructures.SinglyLinkedList;
import datastructures.SinglyLinkedList.Node;
/**
* Cracking the Coding Interview - Data Structures 2 Linked Lists 2.1 Write code
* to remove duplicates from an unsorted linked list.
*
* @author Ajinkya Pati... | 23.301887 | 80 | 0.664777 |
4271c5f469a0d2e51d26223244ab5aa42969cab1 | 20,851 | package com.leidos.glidepath.ead;
import com.leidos.glidepath.appcommon.Constants;
import com.leidos.glidepath.appcommon.utils.GlidepathApplicationContext;
import com.leidos.glidepath.asd.Location;
import com.leidos.glidepath.asd.map.MapMessage;
import com.leidos.glidepath.dvi.AppConfig;
import com.leidos.glidepath.lo... | 43.896842 | 158 | 0.685818 |
f87852b94925a392b6eb7cbdafb974f24ece72fd | 2,968 | package com.indianeagle.internal.util;
import com.indianeagle.internal.constants.StringConstants;
import com.indianeagle.internal.dto.Employee;
import com.itextpdf.text.Document;
import com.itextpdf.text.Element;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.html.simpleparser.HTMLWorker;
import com.itext... | 40.108108 | 156 | 0.665094 |
1e101f1cc502f03e601bf81afe3b5422bbde05aa | 238 | package com.github.football.dto.club.response;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@Getter
@AllArgsConstructor
public class CheckClubNameResponse {
private Boolean isDuplicate;
}
| 19.833333 | 46 | 0.827731 |
5e17e6ce266f8ba2c185b9bed25bb3c1cccca182 | 316 | package com.example.pontoacesso.repository;
import com.example.pontoacesso.model.JornadaTrabalho;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface JornadaTrabalhoRepository extends JpaRepository<JornadaTrabalho, Long> {
}
| 31.6 | 89 | 0.860759 |
43688dfa5b155da566312f0dd22920cd3c82b629 | 14,497 | /*
* Copyright 2012 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 app... | 43.665663 | 109 | 0.775057 |
da76149adc8d10a37eb3f95c33a8501657d1b43c | 3,626 | package model;
public enum AminoAcid {
ALANINE("Alanine", "ALA", 'A', 71.03711 + 18.010565),
CYSTEINE("Cysteine", "CYS", 'C', 103.00919 + 18.010565),
ASPARTIC_ACID("Aspartic acid", "ASP", 'D', 115.02694 + 18.010565),
GLUTAMIC_ACID("Glutamic acid", "GLN", 'E', 129.04259 + 18.010565),
PHENYLALANINE("Phenylalanine... | 29.721311 | 68 | 0.641754 |
015aa642651c289076b3ba890c890eec97b52ec0 | 5,801 | /*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in... | 32.774011 | 104 | 0.658852 |
13721feb6aed690a4d556b89624bdafdd4104b2b | 1,177 | /*
* This file is part of java2c. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/raphaelcohn/java2c/master/COPYRIGHT. No part of compilerUser, including this file, may be copied, modified, propagated, or distribute... | 42.035714 | 381 | 0.794393 |
d13d42f42c9e4cff688514f264fb29aaf58e3b98 | 100 | package com.base.basepedo.callback;
public interface StepCallBack {
void Step(int stepNum);
}
| 14.285714 | 35 | 0.75 |
f89a89b58a6385cf778f1329311651dddad1278b | 9,070 | package uk.gov.ida.notification;
import engineering.reliability.gds.metrics.bundle.PrometheusBundle;
import io.dropwizard.Application;
import io.dropwizard.configuration.EnvironmentVariableSubstitutor;
import io.dropwizard.configuration.SubstitutingSourceProvider;
import io.dropwizard.setup.Bootstrap;
import io.dropwi... | 46.040609 | 142 | 0.727012 |
3a4730683c299fc5c0fcb53671478da2dc74e6f1 | 1,437 | package com.xceptance.common.util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Utility class that provides convenient methods regarding ordinary java objects.
*
* @author Jörg Werner (Xceptance Software Techn... | 29.9375 | 115 | 0.680585 |
a36876beaad6db4afef1a916ff24e14e29d4a36b | 3,605 | package AST;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.io.File;
import java.util.*;
import beaver.*;
import java.util.ArrayList;
import java.util.zip.*;
import java.io.*;
import java.util.Stack;
import java.util.regex.Pattern;
import java.io.FileOutputStream;
import java.io.IOException;
im... | 22.253086 | 89 | 0.665187 |
a75e3793bac0cdba8778cbee4e4e5c2430404f64 | 56,329 | package pk.ajneb97.managers;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bu... | 41.116058 | 259 | 0.67301 |
600a3c11a40589b187763f7cb60987293e5585fe | 2,322 | /* ###
* IP: GHIDRA
*
* 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 writin... | 22.114286 | 88 | 0.700689 |
c4afb8f77cffd21784917f35dd776dce0bc958db | 674 | package um.si.de4a.resources.vc;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class CredentialsAttach {
@SerializedName("lastmod_time")
private String lastmodTime;
private Data data;
public CredentialsAttach(String lastmodTime, Data data) {
this.lastm... | 20.424242 | 61 | 0.661721 |
430fa4c3d23022d3ea4308724a4b4b237f2bf4c2 | 722 | package com.zeshanaslam.actionhealth.support;
import io.lumine.mythic.bukkit.BukkitAPIHelper;
import io.lumine.mythic.bukkit.MythicBukkit;
import org.bukkit.Bukkit;
import org.bukkit.entity.Entity;
public class MythicMobsSupport {
private static final MythicBukkit plugin = (MythicBukkit) Bukkit.getServer().getPlu... | 31.391304 | 124 | 0.710526 |
bbfc9ac91d1c27ab10f5461484f6ca83686a3ec2 | 261 | package de.unisiegen.gtitool.core.grammars.cfg;
import de.unisiegen.gtitool.core.grammars.Grammar;
/**
* The interface for context free grammars.
*
* @author Christian Fehler
* @version $Id$
*/
public interface CFG extends Grammar
{
// Do nothing
}
| 15.352941 | 50 | 0.720307 |
b01cdc6d390b8c936b6aae81b59938916477ffb3 | 1,238 | package burlap.behavior.stochasticgames.agents.naiveq.history;
import burlap.oomdp.stochasticgames.agentactions.GroundedSGAgentAction;
/**
* An interface that can turn a grounded action into an integer value
* @author James MacGlashan
*
*/
public interface ActionIdMap {
/**
* Returns an int value correspondi... | 30.95 | 78 | 0.756058 |
55bad4ed012fa5e6dd6ce489f741ef8f2c6f4528 | 9,332 | /*
* 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 ... | 34.820896 | 140 | 0.684312 |
05bf90475c5963c84114e4bdc04bd4843c089f9a | 2,035 | /**
* Copyright 1996-2014 FoxBPM ORG.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 31.307692 | 116 | 0.764619 |
43dc6b9e5340084749e6a02f3ec3c739c2e42d31 | 1,192 | package me.jinhao.springblog.model;
import java.util.Date;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne... | 22.923077 | 66 | 0.730705 |
517b164769d1d4f5faad16f0ed5aa10de33995aa | 1,606 | /*
* Copyright (c) 2015 Andrew Coates
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 35.688889 | 109 | 0.728518 |
b5dcc8d5c02a92c071ef4efc0462123cf6860788 | 1,276 | package com.blazemeter.jmeter.citrix.clause.strategy.format;
import com.blazemeter.jmeter.citrix.clause.CheckResult;
import com.blazemeter.jmeter.citrix.clause.Clause;
/**
* Provides a check result formatter dedicated to displaying the correspondence
* with the expected value.
*/
public class RegularResultFormatte... | 33.578947 | 95 | 0.634013 |
8c7f32a87599f29bc2517649f8c4f223b169d3fa | 4,053 | package com.googlecode.blaisemath.graph.metrics;
/*
* #%L
* BlaiseGraphTheory
* --
* Copyright (C) 2009 - 2021 Elisha Peterson
* --
* 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
*
... | 31.913386 | 111 | 0.643967 |
facb7878d38591af7f61f06a159581768035bb89 | 1,857 | package org.sports.hbaseparse.parserUtils;
import java.util.Calendar;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class CustomDateTimeParser {
private static int getMonth(String bgMonthString) {
int result;
switch (bgMonthString.toLowerCase()) {
case "ян... | 20.865169 | 73 | 0.628433 |
3c731de92e82cfed0cd08d8c2995587a488b30a0 | 4,951 | package com.dylanvann.fastimage;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.util.Log;
import androidx.annotation.Nullable;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.DataSource;
import com.bumptech.glide.load.engine.GlideException;
import com.bumptech.... | 39.608 | 152 | 0.533428 |
5f53f14e484761c6484c752cba400b2445aca963 | 2,106 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.baasdt.models;
import com.aliyun.tea.*;
public class SetIpOrdergoodsidRequest extends TeaModel {
// OAuth模式下的授权token
@NameInMap("auth_token")
public String authToken;
@NameInMap("product_instance_id")
pub... | 28.08 | 98 | 0.695632 |
74489a6a3f43025127283d80bb133e834c4d7418 | 1,587 | package com.figueiras.photocontest.backend.rest.dtos;
import com.figueiras.photocontest.backend.model.entities.Horarios;
import java.util.List;
public class ListaHorariosPorElevador {
private List<Horarios> horariosElevador1;
private List<Horarios> horariosElevador2;
private List<Horarios> horariosEleva... | 27.362069 | 72 | 0.729049 |
44959e781bd68cb239bbf6420c6767378fff7dbc | 2,165 | package com.example.android_thread;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class RunExample extends AppCompatActivity implements View.OnClickListener{
... | 33.307692 | 82 | 0.546882 |
2b09948044d8af50127fef12132d2dfd69dc3767 | 623 | package com.hcl.sql.postgresql.connection;
import java.sql.Connection;
import java.sql.DriverManager;
import com.hcl.sql.postgresql.constants.AppConstants;
public class ConnectionFactory {
public static Connection getConnection() {
Connection conn = null;
try {
Class.forName(AppConstants.DriverClass);
co... | 27.086957 | 109 | 0.751204 |
ab38212a481c28a011fcdef5e54d0de4b64a318c | 6,970 | package dao;
import entity.Sesion;
import java.sql.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class SesionMySQLFactoryDAO implements SesionDAO {
private Connection connection = null;
... | 32.877358 | 99 | 0.521234 |
c7e6acb81ef425dae29a4f289a635d020ba39461 | 4,040 | package org.wikipedia.page.database;
import android.content.Context;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.wikipedia.WikipediaApp;
import org.wikipedia.database.Database;
import org.wikipedia.page.notes.Article;
import org.wikipedia.page.notes.Note;
import org.wikipedia.pa... | 33.114754 | 109 | 0.72203 |
86066a5dba9776bfa9ed7224e33583b747b922e9 | 753 | package com.packtpub.wflydevelopment.chapter3.boundary;
import com.packtpub.wflydevelopment.chapter3.control.TheatreBox;
import com.packtpub.wflydevelopment.chapter3.entity.Seat;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import java.util.Collection;
@Stateless
@Remote(TheatreInfoRemo... | 25.965517 | 64 | 0.706507 |
21ff87a4de6925dbdf782cc48ca3cd5df93a0285 | 3,638 | package fluidpirates.fluidpirates_android;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android... | 34.647619 | 115 | 0.646234 |
48286dbefacdec706da6a17434b955f05fc22035 | 579 | package com.tvd12.ezyfox.exception;
import lombok.Getter;
@Getter
public class EzyObjectGetException extends IllegalArgumentException {
private static final long serialVersionUID = -5250894414568092276L;
protected final Object key;
protected final Object value;
protected final Class<?> outType;
public EzyObj... | 26.318182 | 106 | 0.728843 |
ae9e98562dd847cae55dbd140b4e6f200bc9e824 | 293 | package org.raku.nqp.io;
import org.raku.nqp.runtime.ThreadContext;
import org.raku.nqp.sixmodel.SixModelObject;
public interface IIOAsyncWritable {
void spurt(ThreadContext tc, SixModelObject Str, SixModelObject data, SixModelObject done,
SixModelObject error);
}
| 29.3 | 94 | 0.750853 |
c911288af15748f9b2fdb3924a5c7b70ec089ebe | 2,547 | /*
* ***************************************************************************
* Copyright 2014-2019 Spectra Logic Corporation. 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. A copy of the License is l... | 39.184615 | 98 | 0.664311 |
f0b1626c7d183fa20ff12a51f1406e7be1198bdd | 3,319 | package com.wjx.android.wanandroidmvp.presenter.project;
import com.wjx.android.wanandroidmvp.base.presenter.BasePresenter;
import com.wjx.android.wanandroidmvp.bean.db.ProjectClassify;
import com.wjx.android.wanandroidmvp.bean.project.ProjectClassifyData;
import com.wjx.android.wanandroidmvp.contract.project.Contract... | 33.525253 | 114 | 0.520337 |
ba5507ce95ac1aa7c9bbf7a511298b814fb8fe02 | 4,043 | /**
* Copyright Microsoft 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 law or agreed to... | 35.778761 | 81 | 0.658917 |
acc3e834d81368c7e46f441fc6fbff31713641ac | 2,974 | /*
* Copyright 2020 Arne Limburg
*
* 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... | 36.268293 | 118 | 0.754539 |
3f5afcd0d55b8851af0f18f58ee6f0a3de67642f | 159 | package org.acme;
import java.util.List;
/**
* BookRepository
*/
public interface BookRepository {
Book save(Book book);
List<Book> listAll();
} | 11.357143 | 33 | 0.666667 |
18d2bf88efae2bbfe8b423ab59612502df35d195 | 1,973 | package cn.lee.leetcode.probolems.g0;
import java.util.ArrayList;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
/**
* @Title: Q68
* @Description: https://leetcode-cn.com/problems/text-justification/
* @author: libo
* @date: 2021/9/9 13:53
* @Version: 1.... | 27.027397 | 129 | 0.580841 |
75e279c03ec17283df9a3771c623cb40a9cf0c82 | 5,197 | /**
* 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... | 25.600985 | 91 | 0.584183 |
e487503b3a9e75026c64d77c2a4f2748e93d38d0 | 1,965 | package com.appgallabs.cloudmlplatform.datascience.model;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
import java.util.Objects;
public class Label implements Serializable {
private static Logger logger... | 22.329545 | 79 | 0.597455 |
30654342c48c9764b3d51a362f1e76f75e085619 | 9,171 | package com.queryflow.accessor.runner;
import com.queryflow.accessor.handler.ResultSetHandler;
import com.queryflow.accessor.interceptor.InterceptorHelper;
import com.queryflow.accessor.interceptor.Interceptors;
import com.queryflow.utils.JdbcUtil;
import com.queryflow.utils.Utils;
import java.sql.*;
import java.util... | 34.738636 | 120 | 0.543779 |
9e0437e7452a0926b1ff75d6cf391d6d7641d43b | 219 | package com.javarush.task.task14.task1410;
/**
* Created by boltenkov on 03.01.2018.
*/
public class Wine extends Drink {
public String getHolidayName()
{
return "День Рождения";
}
}
| 16.846154 | 43 | 0.616438 |
9738e9f78c027fe470922baf6c40f5cd2a27da62 | 1,616 | package br.com.zupacademy.dani.transacao.transacao;
import br.com.zupacademy.dani.transacao.erros.ErroPadronizado;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
im... | 42.526316 | 152 | 0.764233 |
f49a6ba5d07042411a7bea5707defeed9f7c5884 | 1,299 | package pro.chenggang.plugin.springcloud.gateway.response.strategy;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import pro.chenggang.plugin.springcloud.gateway.option.ResponseResult;
import pro.chenggang.plugin.springcloud.gateway.option.SystemRespons... | 40.59375 | 136 | 0.788299 |
228a9726f1edee50100a5831b18d8a9bbaf2055f | 7,269 | package org.sng.shortener;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.jsonpath.JsonPath;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.sng.shortener.controllers.ParamNames;
import org.sng.shortener.json.GetStatisticRespon... | 42.261628 | 120 | 0.725684 |
40df8046a44bc3d69e72937db32646d4ac7fbfc7 | 3,539 | package ca.zesty.fleetreporter;
import android.accessibilityservice.AccessibilityService;
import android.accessibilityservice.AccessibilityServiceInfo;
import android.content.Intent;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
public class UssdReceive... | 44.2375 | 96 | 0.635773 |
8495e0452dd5fda598cda2ecc551ce008a348a9e | 1,169 | package ru.job4j.generic;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
public class StoresTest {
@Test
public void whenUseUserStoreThenShowsItsFunctional() {
UserStore users = new UserStore();
User user = new User("123");... | 30.763158 | 76 | 0.613345 |
76c774d07ecfc846d860fde4ef40c98cd3b243e3 | 2,255 | /**
* Copyright (c) 2001-2017 Mathew A. Nelson and Robocode contributors
* 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 distribution, and is available at
* http://robocode.sourceforge.net/license/ep... | 22.777778 | 87 | 0.729933 |
86b44326252064214b731d2d609fa6e79ff51f2c | 11,299 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.mobilenetwork.models;
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
import com.azure.cor... | 36.214744 | 120 | 0.610674 |
06b6585bbf4d99cc114666e63a6426c0bb6a0cc2 | 327 | package com.songchao.mybilibili.model;
/**
* Author: SongCHao
* Date: 2017/9/18/14:11
* Email: 15704762346@163.com
*/
public class DoubleNews {
public String id;
public String title;
public String image;
public String content;
public String source;
public String digest;
public String t... | 18.166667 | 38 | 0.685015 |
522a8034ae723f85e457a0960149e2547f551f2b | 959 | package org.usfirst.frc.team4488.robot.autonomous.actions;
import org.usfirst.frc.team4488.robot.systems.Forklift;
public class InaccurateMoveLift implements Action {
private Forklift lift;
private int startingCycles;
private double startingDoneRange;
private double height;
private int updateCycles = 0;
... | 21.795455 | 58 | 0.722628 |
2a26bcdc6600556450750f405f8eaea6f91751ba | 10,335 | package top.imshan.pdf;
import com.itextpdf.awt.geom.Rectangle2D.Float;
import com.itextpdf.text.*;
import com.itextpdf.text.Image;
import com.itextpdf.text.Rectangle;
import com.itextpdf.text.pdf.PdfContentByte;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
import com.itextpdf.text.... | 34.221854 | 155 | 0.553459 |
a87997b815d7e513b99455d38f8d47d841c23349 | 4,604 | /*
* Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.362319 | 101 | 0.641182 |
017b934c8546ea83c8223c520b6887ad1a185804 | 1,081 | package com.github.kbreczko.gitproxy.user.controllers;
import com.github.kbreczko.gitproxy.common.properties.GitproxyProperties;
import com.github.kbreczko.gitproxy.user.api.UserApi;
import com.github.kbreczko.gitproxy.user.models.UserDto;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.... | 36.033333 | 104 | 0.803885 |
cb9ae3887255525684f7f65f17ec61ddc4bc410c | 1,687 | package io.treefrog.function.tuple;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import java.util.concurrent.atomic.AtomicInteger;
import static com.google.common.truth.Truth.assertThat;
import static io... | 27.209677 | 95 | 0.688797 |
99b413159b58af182e23eb7d95691f142ce2dbdf | 2,320 | package net.simpvp.PathCleaner;
import java.util.HashSet;
import org.bukkit.Chunk;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.event.block.BlockPlaceEvent;... | 30.526316 | 103 | 0.75819 |
1a868bb31241aec967adf534c3a943d9b1cf315f | 1,070 | package Simulation;
import java.util.List;
/**
* Rules for Ant simulation
*/
public class AntRuleSet extends RuleSet {
/**
* Set parameters
* @param parameters
*/
@Override
public void setParameters(double[] parameters) {
super.setParameters(parameters);
}
/**
* Ap... | 19.454545 | 73 | 0.563551 |
95eb810a1a3748020e502cd8c56e8622b3fa6dd9 | 356 | package com.bangqu.lib.slipload.callback;
public interface IHeaderCallBack {
/**
* 正常状态
*/
void onStateNormal();
/**
* 准备刷新
*/
void onStateReady();
/**
* 正在刷新
*/
void onStateRefreshing();
/**
* 刷新成功
*/
void onStateSuccess();
/**
* 刷新失... | 12.275862 | 41 | 0.483146 |
f4549f78e0aad5eb882f8445896fbe46289c95c5 | 5,513 | package com.geodatastore.zk;
import org.apache.zookeeper.*;
import org.apache.zookeeper.data.Stat;
import org.junit.Test;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
public class ZKConnectionTest {
private final String zkLocation = "192.168.1.5:2181";
private final int sessionTim... | 32.429412 | 123 | 0.520225 |
8f28d6620ee8eb92ccd242977d0583361c75fab9 | 855 | package org.malagu.panda.dbconsole.service;
import java.util.Map;
import org.malagu.panda.dbconsole.model.SqlWrapper;
public interface ISqlWrapperService {
public static final String BEAN_ID = "panda.dbconsole.sqlWrapperService";
/**
* 添加数据浏览器记录sql
*
* @param tableName
* @param map
* @throws Exception
... | 22.5 | 125 | 0.725146 |
60cd3674c35082dda20976647fa3ebff8e88cec9 | 1,844 | package jfract4d.jfract.api.user.impl;
import jfract4d.discord.exception.MalformedDiscordIDException;
import jfract4d.discord.util.FormatHelper;
import jfract4d.jfract.api.exception.MalformedIDException;
import jfract4d.jfract.api.user.Role;
import jfract4d.jfract.api.user.User;
/**
* Basic implementation of a user ... | 23.05 | 78 | 0.594902 |
3d08bbd411da6415f51cde37a98fb9b07f33410b | 521 | package com.lakeel.altla.vision.nearby.presentation.beacon.distance;
import java.util.Locale;
public final class Distance {
private final int txPower;
private final int rssi;
public Distance(int txPower, int rssi) {
this.txPower = txPower;
this.rssi = rssi;
}
public String getM... | 23.681818 | 78 | 0.641075 |
e0fe3f862a01f691aead2eada5cb0eb6d8c24b24 | 160 | package com.google.ads.mediation;
import e.b.a.a;
@Deprecated
public interface c {
void a(MediationBannerAdapter<?, ?> mediationBannerAdapter, a aVar);
}
| 17.777778 | 72 | 0.7375 |
447a7269fb1e2ef9c99593ad0ad788111813e267 | 502 | package cn.qd.peiwen.demo;
import androidx.appcompat.app.AppCompatActivity;
import cn.qd.peiwen.logger.PWLogger;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | 25.1 | 56 | 0.705179 |
edc5ecad9375965ecc89ad90c764a16460139d04 | 2,037 | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
public class CardDeckTest {
CardDeck deck;
int cardDeckNumber;
ArrayList<Card> alternateDeck;
String pathToFile;
@Before
public void setU... | 26.802632 | 108 | 0.627884 |
0d228c837bc040ee329bf1616aac2718047259fb | 4,068 | /*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/
p... | 29.478261 | 122 | 0.707227 |
ee447c1658025be8d37b8414f5449eee3e3254ea | 3,112 | /*
* Copyright 2018-present KunMinX
*
* 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 ... | 33.462366 | 95 | 0.742931 |
836a4b7264364aef878c29715099a7c233f315c7 | 5,455 | package xworker.swt.actions;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Shell;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
import org.xmeta.World;
import org.xmeta.util.UtilData;
import org.xmeta.ut... | 32.088235 | 107 | 0.672777 |
2f3ef2706e3b41a666dff8b7c9a5c540eb76d3f6 | 5,290 | package com.test.basequickadapterlib.head;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | 30.228571 | 130 | 0.66087 |
a8aaacaaaa3b11d01b46c5befebb3f6ba1755fae | 1,117 |
public class PrintInitials {
/* This program prints my initials (DJE) in big letters,
where each letter is nine lines tall.
*/
public static void main(String[] args) {
System.out.println();
System.out.println(" ****** ************... | 48.565217 | 92 | 0.283796 |
f271cb89809e8d63fe2f7ef6b710e1200b42f55a | 410 | package bio.singa.structure.parser.pdb.structures.iterators.sources;
import java.util.Iterator;
import java.util.List;
/**
* @author cl
*/
public interface SourceIterator<SourceContent, ContentType> extends Iterator<SourceContent> {
List<SourceContent> getSources();
ContentType getContent(SourceContent so... | 18.636364 | 93 | 0.739024 |
b91740559136d930dda1c1fc99f5e26df178d75b | 2,941 | /*
* Copyright (C) 2014 Dell, 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 la... | 31.623656 | 105 | 0.675621 |
ffb7b5204df8fd7c762b0fd1d8019fd60d7698aa | 1,149 | public class Solution {
public int[][] generateMatrix(int n) {
int[][] res = new int[n][n];
int rowBegin = 0;
int rowEnd = n-1;
int columnBegin = 0;
int columnEnd = n-1;
int counter = 1;
while(rowBegin <= rowEnd && columnBeg... | 26.113636 | 62 | 0.369887 |
31280a498d75ebf39e13eb4f27fcf12fc3a8e54f | 3,025 | /*
* 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... | 23.269231 | 78 | 0.676694 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.