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 |
|---|---|---|---|---|---|
10246ebdf561137d9fc86958e8c3f0179e00867a | 1,423 | package com.br.zupacademy.hugo.proposta.cartao.bloqueio;
import com.br.zupacademy.hugo.proposta.cartao.Cartao;
import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import java.time... | 22.587302 | 99 | 0.691497 |
afc28e3a0da625c88f21b265a83903fd4d5a3783 | 4,738 | package org.edumo.gui.button;
import org.edumo.gui.ActionEvent;
import org.edumo.touch.TouchPointer;
import processing.core.PApplet;
import processing.core.PGraphics;
import processing.core.PImage;
import processing.core.PVector;
public class ButtonSlider extends ButtonText {
int size;
public PImage img;
public... | 21.834101 | 113 | 0.651119 |
d8435f365d9baf256c17b0d05fa02629971ac37b | 9,967 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.07.22 at 10:05:... | 39.395257 | 225 | 0.666098 |
9662b6b7f0d17b79e022bd2c585357695136bd46 | 2,047 | /*
* #%L
* de.metas.shipper.gateway.dhl
* %%
* Copyright (C) 2019 metas GmbH
* %%
* This program 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 2 of the
* License, or (at your option) ... | 25.271605 | 95 | 0.747924 |
f4d23d16518c01edb4a7591c5f474c50a119b223 | 16,205 | package com.stappert.runulator;
import com.stappert.runulator.utils.CustomException;
import com.stappert.runulator.utils.ParameterType;
import com.stappert.runulator.utils.Run;
import com.stappert.runulator.utils.Unit;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.Expec... | 47.383041 | 108 | 0.622277 |
ec82dfdfe8dcab7ec4f20a625a1010c89ae7af99 | 679 | package org.ihtsdotools.crs.snomect.batch.field;
import java.util.Map;
/**
* User: huyle
* Date: 7/22/2016
* Time: 10:08 AM
*/
public class ImportedRequestFieldPopulatorLocator {
private Map<String, ImportedRequestFieldPopulator> fieldPopulatorMap;
public ImportedRequestFieldPopulatorLocator(Map<String, I... | 26.115385 | 110 | 0.773196 |
09eb026652f7f65f8fd72add13f122065dc39515 | 5,595 | /*
* 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")... | 41.444444 | 88 | 0.704379 |
43bc7de4c2eb0ce187033e9f2f6bdfda92f1548c | 4,566 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: model/message/message.proto
package im.turms.turms.pojo.bo.message;
public interface MessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:im.turms.proto.Message)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.g... | 29.649351 | 73 | 0.678493 |
dfe3563fefbf256206de8dd241ca70aaa6b4864b | 1,789 | package io.github.tonvanbart.ldapexample;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.spri... | 35.078431 | 107 | 0.696478 |
2cabc30e94d94ae1bfe408a270c154c274e67405 | 5,071 | /*
* $Id$
*
* $Log$
* Revision 1.1.1.1 2014/05/19 15:28:59 mmaloney
* OPENDCS 6.0 Initial Checkin
*
* Revision 1.1 2008/04/04 18:21:16 cvs
* Added legacy code to repository
*
* Revision 1.3 2007/08/08 17:46:40 mmaloney
* *** empty log message ***
*
* Revision 1.2 2004/09/02 13:09:06 mjmaloney
* javado... | 26.411458 | 71 | 0.717413 |
3e90aaacfdc65d5340224ec082e5e32d952222cd | 623 | package org.frekele.demo.data.analyzer.config;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FilenameUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import java.io.File;
@Slf4j
@Getter
@Configuration... | 23.961538 | 64 | 0.764045 |
02b244d711a0c0423ce617a6142d4aa489427ffc | 104 | package com.jeecms.cms.service;
public interface AcquisitionSvc {
public boolean start(Integer id);
}
| 17.333333 | 34 | 0.788462 |
f7da4375cbc3bcfdbe0dd2c7e7db0771b14ad97d | 469 | package com.reckue.post.service;
import java.util.List;
/**
* Interface AuthService represents a common base service with CRUD operations for services
* with authorization.
*
* @author Kamila Meshcheryakova
*/
public interface BaseService<T> {
T create(T object);
T update(T object);
List<T> findAl... | 18.038462 | 91 | 0.701493 |
5fae52e0d1bd17ff9067412a279ee9ef1d4f3344 | 692 | package me.anchore.mail.entity;
/**
* @author anchore
*/
public class Account {
private final User owner;
private final String password;
public Account(User owner, String password) {
this.owner = owner;
this.password = password;
}
public static Account of(User owner, String pass... | 19.771429 | 59 | 0.549133 |
d86526a4e0aed30093eaaa10e79b8904567c6531 | 4,120 | /**
* The MIT License (MIT)
*
* Copyright (c) 2018 tools4j.org (Marco Terzer)
*
* 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 the ri... | 30.977444 | 124 | 0.640534 |
9f432c54346d75ea7d44d0f74dd271e90cbad2bd | 893 | package com.ilyagubarev.proofs.glassfishspring;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.Reso... | 37.208333 | 81 | 0.788354 |
a9d2f0d217b6c748086c7f1878194d13dc1fe922 | 2,167 | package org.vraptor.interceptor;
import junit.framework.TestCase;
import org.vraptor.Interceptor;
import org.vraptor.LogicException;
import org.vraptor.LogicFlow;
import org.vraptor.annotations.InterceptedBy;
import org.vraptor.component.ComponentInstantiationException;
import org.vraptor.view.ViewException;
/**
* ... | 30.957143 | 115 | 0.796031 |
da690b172c58181df5d09697326e3eca426dbf43 | 4,074 | package com.haiyan.deflower.service.impl;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.haiyan.deflower.dao.UserDao;
import com.haiyan.deflower.exception.ExceptionResult;
import com.haiyan.deflower.mapper.UserMapper;
import com.haiyan.deflower.pojo.Back... | 36.053097 | 124 | 0.661757 |
9071e30b358de0aa80684f88c42326b9ae806f13 | 3,901 | /*-
* #%L
* Procedure
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* 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
... | 24.080247 | 103 | 0.683158 |
c943b44e9f922987a5801058d61047978e387d6f | 12,840 | /*
* This software is in the public domain under CC0 1.0 Universal plus a
* Grant of Patent License.
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
* ... | 36.067416 | 207 | 0.59634 |
f9ca152d40e9c4a8ce5fe533fcd70dbac4f331ae | 617 | package com.intact.rx.testdata.command;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import com.intact.rx.api.command.Action0;
public class BeforeExecuteAction implements Action0<List<String>> {
private final List<String> result;
public BeforeExecuteAction() {
resul... | 19.28125 | 67 | 0.654781 |
716045ef9f00ae0752f695394f94b281f8eabd2b | 259 | package com.bumptech.glide.load.resource.file;
import com.bumptech.glide.load.resource.SimpleResource;
import java.io.File;
public class FileResource extends SimpleResource<File> {
public FileResource(File file) {
super(file);
}
}
| 23.545455 | 57 | 0.718147 |
040ef340ed92c633daf91a62dac4ecb121033adb | 4,775 | /*
* Copyright (C) 2019 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... | 29.84375 | 95 | 0.735497 |
3449411bfc64f4f4ab6fab78a7dc98a82dd4e79c | 453 | package com.purbon.kafka.topology.model.artefact;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
@TypeArtefact(name = "STREAM")
public class KsqlStreamArtefact extends KsqlArtefact {
@JsonCreator
public KsqlStreamArtefact(
@JsonProperty("path") St... | 26.647059 | 54 | 0.746137 |
b34a6ea5beae1015ee6b39b2a109515c5937487d | 77,448 | /*
* Copyright (C) 2010-2021 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.model.intest.security;
import static org.testng.AssertJUnit.*;
import java.io.*;
import java.util.... | 63.953757 | 379 | 0.772867 |
32238ee839cc41f2087ba30a993f937141b8e3f1 | 2,750 | package org.trianacode.enactment.logging.stampede;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Created by IntelliJ IDEA.
* User: Ian Harvey
* Date: 15/08/2011
* Time: 10:15
* To change this template use File | Settings | File Templates.
*/
public class StampedeLogg... | 20.220588 | 72 | 0.611636 |
e1310516e63b818c0348a1bd0f3baa6e6c92cad7 | 1,665 | /**
*
*/
package com.fdahpstudydesigner.service;
import java.util.List;
import com.fdahpstudydesigner.bean.ActiveStatisticsBean;
import com.fdahpstudydesigner.bo.ActiveTaskBo;
import com.fdahpstudydesigner.bo.ActiveTaskListBo;
import com.fdahpstudydesigner.bo.ActiveTaskMasterAttributeBo;
import com.fdahpstudydesign... | 30.833333 | 78 | 0.836637 |
6f81115c09f184eec87e8b503f3ca7c128cb217f | 149 | package ru.job4j.profession.otherclasses;
/**
* Competitor class.
*
* @author Maxym Mateuk maxymmateuk@gmail.com
*/
public class Competitor {
}
| 14.9 | 45 | 0.724832 |
93eb21a9b9d67875db9e3a06f4dac2c447053fe2 | 384 | package yhr.ya.kr.service.messageboard;
import java.util.Map;
import yhr.ya.kr.bean.MessageBean;
import yhr.ya.kr.bean.NominationBean;
public interface MessageboardService {
public Map<String, Object> getMessageboard(Map<String, Object> paramMap);
public Map<String, Object> setMessageboard(MessageBean MB);
p... | 22.588235 | 74 | 0.783854 |
e59597dc5338883d9d81cf0a63b7134dff551867 | 1,258 | package delivery.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.validator.constraints.NotBlank;
import javax.persistence.*;
@Entity
@Table(name = "restaurantsitems")
public class RestaurantsItems {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private int id;
... | 19.060606 | 57 | 0.644674 |
d68bb45d1c4e0d9fd348ecb73f71d0b2c1090cbc | 719 | package com.anarres.toolskit.locks;
import java.util.HashMap;
import java.util.Map;
public class FunctionLockKit {
private static Map<String, Map<Object, Object>> lockMap = new HashMap<>();
/**
* 获取指定key 和 function 生成的对象锁。
* @param key 唯一键 例如:username。(不建议使用复杂对象)
* @param function 功能描述
* ... | 24.793103 | 78 | 0.616134 |
5589bb3e235bf4c2b9f04a1c477838971a067b7b | 3,831 | package com.ezwel.htl.interfaces.server.entities;
//import lombok.Data;
//import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;
import com.ezwel.htl.interfaces.commons.thread.Local;
import com.ezwel.htl.interfaces.commons.utils.APIUtil;
import com.ezwel.htl.interfaces.commons.annotation.APIModel... | 27.561151 | 150 | 0.677369 |
7d150da8e8f6f55877808af241cdf0135fdc73f9 | 858 | package seedu.address.model;
import static java.util.Objects.requireNonNull;
import java.util.ArrayList;
import seedu.address.model.student.Student;
/**
* A Model stub that always accept the person being added.
*/
public class ModelStubAcceptingStudentAdded extends ModelStub {
public final ArrayList<Student> ... | 23.189189 | 70 | 0.699301 |
438715a4c02b2086379a342925a890d00bccfcab | 881 | package com.mib.function;
import static java.util.concurrent.ConcurrentHashMap.newKeySet;
import java.util.Set;
import java.util.function.Function;
import java.util.function.Predicate;
/**
* Utility methods for {@link Predicate}.
*/
public enum MibPredicates {
;
/**
* Returns a predicate avoiding red... | 30.37931 | 112 | 0.6958 |
6bcd0aabbf7ee7e922d7dc4aa9944ca8f4f3053a | 4,963 | package com.salesmanager.core.model.catalog.product.price;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persist... | 26.972826 | 164 | 0.80274 |
516553e05a4ccb287dc341e6a354a4893e9ec504 | 888 | package org.jp.illg.nora.vr;
import lombok.Getter;
public class NoraVRUser {
@Getter
private boolean remoteUser;
@Getter
private String callsignLong;
@Getter
private String callsignShort;
public NoraVRUser(
final boolean remoteUser,
final String callsignLong,
final String callsignShort
) {
super(... | 16.754717 | 56 | 0.69482 |
7ec741c0affee4750b28924f24b0fed6ff9b22df | 692 | package org.batfish.common.bdd;
import java.util.List;
import javax.annotation.ParametersAreNonnullByDefault;
import net.sf.javabdd.BDD;
/**
* Class for picking a representative flow from a BDD according to the given preference as a list of
* BDDs
*/
@ParametersAreNonnullByDefault
public final class BDDRepresentat... | 22.322581 | 100 | 0.695087 |
ce534122acb1123aad7914a8bbc216b792f6d2f7 | 6,260 | package me.shenchao.webhunger.client.control;
import me.shenchao.webhunger.client.api.control.TaskAccessor;
import me.shenchao.webhunger.dto.ErrorPageDTO;
import me.shenchao.webhunger.entity.*;
import me.shenchao.webhunger.util.common.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.i... | 34.585635 | 119 | 0.639936 |
bb86fb75289d3c09099f94f64a31b41513e93be6 | 1,412 | package org.softeg.slartus.forpdaplus.controls;/*
* Created by slinkin on 14.05.2014.
*/
import android.content.Context;
import android.graphics.Rect;
import android.os.Build;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
public class ExtRelativeLayout extends RelativeLayout {
private... | 27.153846 | 81 | 0.631728 |
1a72e7d6ac3f0ba0eb3a2274b096e42d06186c19 | 1,867 | package NQueens;
import java.util.ArrayList;
import java.util.List;
/**
* The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
* <p/>
* <p/>
* <p/>
* Given an integer n, return all distinct solutions to the n-queens puzzle.
* <p/>
* Each solutio... | 24.893333 | 157 | 0.447777 |
bb95b842fa650ae1e36831cefa6d5809cfce5764 | 5,261 | package com.hedera.services.usage.crypto;
/*-
*
* Hedera Services API Fees
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 43.479339 | 114 | 0.785782 |
0ef788dae0379bf6ae3db96a9765b955d0e0c64e | 2,000 | /*
* Copyright (c) 2016 Open Baton (http://www.openbaton.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 ... | 29.411765 | 100 | 0.7285 |
02aa5189b7c9dcdbdad0113bc47c61cd6d3347ee | 1,735 | package gui.graphics;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
/**
*
* @author Matt
*/
public class MapLoader {
... | 27.539683 | 81 | 0.529107 |
28f47c6007bad5a5fe76097f18b6640663964acc | 1,421 | package com.ii.app.mappers;
import com.ii.app.dto.in.CurrencyTypeIn;
import com.ii.app.dto.out.CurrencyTypeOut;
import com.ii.app.models.CurrencyType;
import javax.annotation.Generated;
import org.springframework.stereotype.Component;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2021-04-13... | 30.234043 | 137 | 0.689655 |
060ecfd2d6038e99001c3c20fbfd22e3719570b8 | 875 | package com.computing.cloud.service;
import static org.junit.Assert.assertNotNull;
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.test.context.ActiveProfiles;... | 28.225806 | 65 | 0.820571 |
56114eebee3ea485afb85b43b7f77891a97e1957 | 9,225 | package com.example.finalgrapgics3;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.wi... | 32.255245 | 106 | 0.495285 |
e6ad77eee5ca8244d9a17e5cf5017803f9145afb | 4,870 | package Code.customClasses.DancingFinch;
import edu.cmu.ri.createlab.terk.robot.finch.Finch;
import java.awt.Color;
import java.util.Random;
/**
* The DancingFinch is a controller for the finch which allows the finch to move to
* a certain beat. It uses a simple state machine which stores the last motion, a... | 28.816568 | 103 | 0.678234 |
fd49d67ea48e69ed186977b9269483dc264744ca | 561,208 | package uk.ac.shef.wit.nhmm;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.Scanner;
import static java.lang.Double.isFinite;
import static java.lang.Double.isNaN;
import static java.lang.Math.*;
import static uk.ac.shef.wit.nhmm.Constants.*;
import static uk.ac.shef.wit... | 44.607583 | 246 | 0.421874 |
d0c210db33d8fab578a9be6a944bab967cebf8fa | 2,094 | /********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | 41.058824 | 164 | 0.721108 |
179b38427b8ef841bce8aa4b268894ae05667117 | 2,687 | package com.smcpartners.shape.crosscutting.email;
import org.apache.commons.mail.DefaultAuthenticator;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.SimpleEmail;
import org.apache.deltaspike.core.api.config.ConfigProperty;
import javax.ejb.Stateless;
import javax.inject.Inject;
import java.util... | 25.590476 | 102 | 0.653889 |
7ccc7e99d8d9895ee416c075bbf32bfaa9b8dac8 | 256 | package com.dimples.common.constant;
/**
* @author zhongyj <1126834403@qq.com><br/>
* @date 2020/1/8
*/
public class RegexpConstant {
/**
* 简单手机号正则(这里只是简单校验是否为 11位,实际规则更复杂)
*/
public static final String MOBILE_REG = "[1]\\d{10}";
}
| 17.066667 | 57 | 0.628906 |
a0bd23f0ceabfb059e0fdbed4faa37ed5e8f9d67 | 1,956 | /*
* Copyright (c) 2020, Mulesoft, LLC. All rights reserved.
* Use of this source code is governed by a BSD 3-Clause License
* license that can be found in the LICENSE.txt file.
*/
package com.mulesoft.tools.migration.library.munit.steps;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.a... | 34.928571 | 124 | 0.761247 |
ab58a0625aa691e40ffc29cf4dfabc07becbe802 | 27,437 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v2ray.com/core/transport/internet/tcp/config.proto
package com.v2ray.core.transport.internet.tcp;
/**
* Protobuf type {@code v2ray.core.transport.internet.tcp.Config}
*/
public final class Config extends
com.google.protobuf.GeneratedMessage... | 37.584932 | 214 | 0.68907 |
fe86c47f4c2021a48b570ef59ffb5779c4122ce4 | 3,460 | /*
* Copyright 2016 Anna Eggers - Göttingen State and University Library
* The work has been developed in the PERICLES Project by Members of the PERICLES Consortium.
* This project has received funding from the European Union’s Seventh Framework Programme for research, technological
* development and demonstration ... | 61.785714 | 124 | 0.714162 |
af90b904843a83882f5ca9cbdaca30cc082ddf9b | 239 | package org.s3s3l.yggdrasil.ddd.pojo;
/**
* <p>
* </p>
* ClassName:DataTransferObject <br>
* Date: Jul 27, 2019 1:50:03 PM <br>
*
* @author kehw_zwei
* @version 1.0.0
* @since JDK 1.8
*/
public interface DataTransferObject {
}
| 14.9375 | 37 | 0.635983 |
d42f73d0eff2ba4d20fe411e16b8c3bff14cca77 | 1,572 | package com.zukexing.api;
import com.google.gson.Gson;
import com.zukexing.pojo.Rented;
import com.zukexing.service.RentedService;
import com.zukexing.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfram... | 32.75 | 92 | 0.706743 |
6e8f95cb067baa41ce784f6b65b19ea24bf17b94 | 648 | package com.sap.core.extensions.taskmanagement.dto;
import java.time.ZonedDateTime;
import com.sap.core.extensions.taskmanagement.vdm.namespaces.todoentity.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@NoArgsConstructor
@AllArgsConstructo... | 22.344828 | 77 | 0.820988 |
665163372b146b3e1515eefa215b24e296ec055d | 239 | package com.simon.scanlogin.exception;
/**
* 无网络异常
*
* @author simon
* @create 2018-04-27 17:41
**/
public class NoNetworkException extends Exception {
public NoNetworkException(String message) {
super(message);
}
}
| 15.933333 | 51 | 0.67364 |
4f21cc9bcd07e0fe65c999f6e26163a6bcbe7632 | 1,330 | package work.pcdd.qndxx.common.interceptor;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
import work.pcdd.qndxx.entity.Student;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Http... | 33.25 | 146 | 0.730827 |
5c23bec350585221498f0d8ace6ef370d852eef9 | 457 | package todolist.today.today.infra.file.exception;
import lombok.extern.slf4j.Slf4j;
import todolist.today.today.global.error.exception.BasicException;
import static todolist.today.today.global.error.ErrorCode.CREATE_RANDOM_IMAGE_FAILED;
@Slf4j
public class CreateImageFailedException extends BasicException {
pu... | 26.882353 | 85 | 0.792123 |
de7bd8619d6c640ea62f37e7a309431fb180fafb | 4,778 | /*
* Copyright 2016 Erwin Müller <erwin.mueller@deventm.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... | 31.853333 | 77 | 0.67455 |
ffc18a7d6b7ff97e6baf3ed9d893db5902364e27 | 2,970 | package com.thomasbonderup.manning;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.clients.producer.RecordMetadata;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
impo... | 35.357143 | 102 | 0.679798 |
a6a8c32bed3764631b4421698348ac0c7a374bd9 | 1,614 | // ----- ----- ----- ----- -----
// IJA Project - Solitaire
// Authors:
// Andrej Hučko (xhucko01)
// Do Long Thanh (xdolon00)
// May 2017
// ----- ----- ----- ----- -----
package src.cards;
import java.util.Arrays;
import java.util.Stack;
/**
* Class implementing starting pack in Solitaire game. <br>
* {@link... | 16.8125 | 66 | 0.488848 |
fc20d13d7cff04b0bca0b5b4760c4214c931c2d8 | 1,166 | package arekkuusu.implom.client.render.stack;
import arekkuusu.implom.client.util.BakerLibrary;
import arekkuusu.implom.client.util.ShaderLibrary;
import arekkuusu.implom.client.util.helper.RenderHelper;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.texture.TextureMap;
impor... | 34.294118 | 68 | 0.799314 |
ce4d05b0ede0a53e3fd183d9ddc7376a1985b3da | 6,048 | package com.serverless.demo.model;
import java.util.Map;
public class ServerlessInput {
private String resource;
private String path;
private String httpMethod;
private Map<String, String> headers;
private Map<String, String> queryStringParameters;
private Map<String, String> pathParameters;
... | 34.363636 | 97 | 0.584656 |
9e58bb4c77055daf17aa813250600147e02ca338 | 20,808 | /*
* Copyright 2017-2021 Denis Kokorin
*
* 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... | 29.982709 | 99 | 0.620531 |
0d488cf73811392af69e3e058c78381be892732f | 949 | package model;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.2.v20140319-rNA", date="2020-04-21T18:28:36")
@StaticMetamodel(TSpdcPrmtAcssoTxto.class)
public class TSpdcPrmtAcssoTxto_ {
... | 49.947368 | 90 | 0.83667 |
41bf7f1141d4602e4222a12346120b6b08414fde | 1,214 | package me.jorgebernal.api_demo.business_controllers;
import me.jorgebernal.api_demo.daos.SponsorDao;
import me.jorgebernal.api_demo.documents.Sponsor;
import me.jorgebernal.api_demo.dtos.IdDto;
import me.jorgebernal.api_demo.dtos.SponsorCreationDto;
import me.jorgebernal.api_demo.dtos.SponsorDto;
import org.springfra... | 30.35 | 107 | 0.755354 |
4bca76f7f52995504cee5ab3a6ba9e380c3215d1 | 505 | package commands;
import factory.PlantsFactory;
import src.Game;
public class ListCommand extends NoParamsCommand {
public final static String commandName = "List";
public final static String commandInfo = "[L]ist";
public final static String helpInfo = "Prints the list of available plants.";
public ListCommand... | 21.956522 | 78 | 0.760396 |
4940c66b2838f3856eda5cf22c8010933c62ec25 | 24,798 | /*
* 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 ... | 37.234234 | 108 | 0.650375 |
ac4a7f5354f94ef99f575206d9a1418b927d6ebe | 1,474 | package com.econetwireless.epay.api.processors.impl;
import com.econetwireless.epay.api.processors.api.EpayRequestProcessor;
import com.econetwireless.epay.business.services.api.CreditsService;
import com.econetwireless.epay.business.services.api.EnquiriesService;
import com.econetwireless.utils.formatters.MobileNumbe... | 42.114286 | 122 | 0.819539 |
4d3d5561c374cf95130ca1252fcbebc3bc671e8c | 8,889 | package io.mycat.sqlengine.mpp;
/*
* Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software;Designed and Developed mainly by many Chinese
* opensource volunteers. you can redistribute it and/... | 28.399361 | 106 | 0.674992 |
528455fbebb1f214565f0f477d7ffcdbcae4a6d4 | 1,395 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.apache.couchdb.jdbc.util;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.httpclient.NameValuePair;
import org.json.JSONException;
import org.json.JSON... | 29.680851 | 92 | 0.612903 |
d4de778f864070eb7eedd8144e786df665a37494 | 1,420 | package com.matt.forgehax.util.text;
public class ParenthesizedHelper {
public static char toParenthesized(char c) {
if(c >= 0x0031 && c <= 0x0039) c+= 0x2443; //Numbers 1-9
else if(c >= 0x0061 && c <= 0x007A) c += 0x243B; //Letters a-z
else c = 0;
return c;
}
public static... | 33.809524 | 98 | 0.555634 |
3df32661f188f76bb11fbb44f396b4916a968573 | 649 | package io.github.pleuvoir.tookit.configuration.object;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
public abstract class CopyStateUtil {
/**
* 拷贝对象属性至新对象,类似于 Beanutils.copy(),属于浅拷贝
* @param source 原目标
* @param target 目标对象
*/
public static void copyStateTo(Object source, Object targe... | 24.037037 | 78 | 0.68567 |
10ccd42aa7fd5d692bdffd0421af9c6d90d76cb3 | 3,313 | package com.me.harris.textviewtest.ui._003_transform;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import android.support.annotation.NonNull;
import android.support.v7.... | 31.855769 | 112 | 0.67703 |
dd6ca90b3180dee121c4b39d0c54ee5aa2f5b8cc | 8,487 | /*
* 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 ... | 31.786517 | 88 | 0.596442 |
1a4ee04763a2409e70187290b86f7ad50269ae0c | 2,961 | /*
* Copyright 2017 Apereo
*
* 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 wr... | 35.25 | 92 | 0.751435 |
dcdc478b49939ffe5a30a0691807b9d218997a40 | 704 | package com.szp.starter;
import com.szp.starter.service.UserService;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.Sprin... | 27.076923 | 68 | 0.808239 |
c13a68c3cb72c8888c0aed52176e2d7933166c1b | 15,545 | /*
* Copyright (c) 2009-2018, United States Government, as represented by the Secretary of Health and Human Services.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions ... | 46.127596 | 132 | 0.717723 |
abcdd295b28091bfd24af6b0324d6973955c151e | 1,544 | package com.ciandt.techgallery.utils.i18n;
import java.io.IOException;
import java.util.Locale;
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 jav... | 28.592593 | 97 | 0.718264 |
87c3cacba53ee4bb8c9eda1d44cd4eb66720a737 | 644 | package com.onlythenaive.casestudy.slimchat.service.core.security.token;
import org.springframework.stereotype.Service;
import com.onlythenaive.casestudy.slimchat.service.core.utility.component.GenericComponentBean;
/**
* Security token projector.
*
* @author Ilia Gubarev
*/
@Service
public class TokenProjectorB... | 26.833333 | 95 | 0.695652 |
bf268af4e849ab16ee8ec17537717259d5b329e1 | 525 | package com.herostore.products.service;
import com.herostore.products.constants.FileType;
import com.herostore.products.dto.request.ProductOrderRequest;
import com.herostore.products.dto.response.ProductOrderResponse;
import java.io.OutputStream;
import java.util.List;
public interface ProductOrderService {
Lis... | 29.166667 | 87 | 0.83619 |
8a5080b2d58fa4a0f00bcee25fd32c099715cbfd | 911 | package com.pinstagram.contents.dto;
import com.pinstagram.domain.entity.contents.ContentsEntity;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.NotNull;
public class CreateDto {
@Getter
@Setter
public static class Request{
@NotNull
private String title;
... | 23.973684 | 60 | 0.60483 |
a1892674dd4f04a5c7f5b06922ca865778bde0da | 650 | package models;
import java.util.LinkedList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import play.data.validation.Constraints;
import play.db.ebean.Model;
@Entity
public class Tag extends Model {
/**
*
*/
private static final... | 17.105263 | 68 | 0.730769 |
6a2a546b63e565b1f809f26ca4d28f3af03e2689 | 404 | package com.romanceabroad.ui;
import org.testng.annotations.Test;
public class PasswordTests extends BaseUI {
@Test(dataProvider = "PasswordExamples", dataProviderClass = DataProviders.class)
public void password(String password, boolean requirement) {
mainPage.clickSingInPageLink();
mainPage... | 26.933333 | 85 | 0.740099 |
9975b75ece7ab1a690b346de9a2820e79a065ec0 | 404 | package com.cengel.yyshop.user.service.impl;
import com.cengel.yyshop.user.entity.ShopUserRole;
import com.cengel.yyshop.user.service.ShopUserRoleService;
import com.cengel.hibernate.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* 业务层:
*/
@Service
public class ShopUserRoleServiceImpl ... | 25.25 | 117 | 0.821782 |
a9c5953fc484b93621746be53794e875937e994a | 584 | package com.gnerv.boot.extend.service;
import com.gnerv.boot.extend.annotation.EntityExtend;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMapping;
import java.util.List;
import java.util.Set;
/**
* <p>
* ResultMap 服务类
* </p>
*
* @author Gnerv LiGen
* @since 2019/5/31... | 23.36 | 115 | 0.767123 |
e1ec239040410c144977b348efe6aeac4159eaa9 | 2,687 | package burp.ui;
import burp.BurpExtender;
import burp.action.History;
import javax.swing.*;
import java.awt.event.*;
import java.io.PrintWriter;
import static burp.Utils.stderr;
/**
* 这个类主要是为了创建搜索框,并为搜索框添加各种监听事件:
* 右键菜单、上线翻动历史记录(鼠标滚轮翻动和上下键翻动)、enter事件、
*/
public class SearchTextField extends JTextField{
boolea... | 22.771186 | 85 | 0.631932 |
88551cbf05f7e397259eca5dc487db97a6ca91e0 | 5,017 | package info.bitrich.xchange.coinmate;
import info.bitrich.xchangestream.service.pusher.PusherStreamingService;
import io.reactivex.Observable;
import io.reactivex.observers.TestObserver;
import org.junit.Before;
import org.junit.Test;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order;... | 48.240385 | 136 | 0.708391 |
f382900ff0a0d3089f83b171f1c5dbc858e75630 | 1,546 | package algo.leetcode;
import java.util.*;
public class GuessWord {
class Master{
public int guess(String word) {return 0;}
}
public void findSecretWord(String[] wordlist, Master master) {
int[] count = new int[26];
for (String s : wordlist) {
for (char c : s.toCharArra... | 27.122807 | 73 | 0.429495 |
7acefc48290c0b4b226571be33b8e871d67944df | 1,088 | package com.idaptive.configserver.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping... | 32 | 107 | 0.826287 |
8a30581d793952bbfc7e4d85ffa7748e7232f2c3 | 1,462 | package com.github.sd4324530.fastlock.redis;
import com.github.sd4324530.fastlock.FastLock;
import com.github.sd4324530.fastlock.FastLockManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import java.util.HashMap;
import j... | 27.074074 | 84 | 0.645691 |
65a09859baed2176a23037eea84fbbb68cd6ae45 | 465 | /*
* MIT License
*
* Copyright (c) 2020 Ilya Lysenko
*
* A short and simple permissive license with conditions only requiring preservation of copyright and license notices.
* Licensed works, modifications, and larger works may be distributed under different terms and without source code.
*/
package com.ilysenko.... | 23.25 | 118 | 0.72043 |
42b1d4746fde94b8dd19c015a435f12835842051 | 1,773 | package wang.redder.kiter.generator;
/**
* 文件名生成器
* 这里包含了各种文件名生成方法
*
* @author Red
* email: 1318944013@qq.com
* date: 2019/3/29 19:15
*/
public class FileNameGenerator {
/**
* <p>文件名生成器模板方法,负责调用传入的名称生成器实现类
* 可以在调用方法前或者方法后做一些处理
* 注意:用户如果想自定义文件名(当然生的字符串不一定要作为文件名)生成规则,可以有以下操作:
* 1. 选择继承Ab... | 22.730769 | 76 | 0.638466 |
8e8c40412816bdc01b709389ee3a27b23d4afa3e | 12,411 | package com.example.derga.droshed;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
/**
* Created by gwenael on 30/05/17.
*/
public class SheetD... | 44.010638 | 151 | 0.61792 |
1e262b025ca075e5107f933d5c9bd140d03ced1e | 10,965 | /*
* Copyright (C) 2012 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... | 42.173077 | 97 | 0.709439 |
a18394c8068bb25678e3516e7b6887df250c2fd7 | 1,424 | /*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... | 25.890909 | 102 | 0.668539 |
64cdb7e8596b095dfdca935c3ddde85e11188747 | 628 | package com.zahory.studentmgsystem.service.teacher;
import com.zahory.studentmgsystem.manager.teacher.TimetableManager;
import com.zahory.studentmgsystem.model.vo.response.ResultVO;
import com.zahory.studentmgsystem.service.BaseService;
import org.springframework.stereotype.Service;
@Service
public class TimetableSer... | 29.904762 | 67 | 0.775478 |
9c5f6fe79b5cc19416719f4972d25c0f8c3bd48f | 769 | package main.algorithms.sort.insertion;
import main.template.Algorithms;
import java.util.function.BiPredicate;
/**
* Created by hun on 25/07/2017.
*/
public class Insertion<T> implements Algorithms<T> {
@Override
public <T> void implement(T[] arr, BiPredicate<T, T> predicate) {
insertionSort(arr, predicat... | 24.806452 | 75 | 0.585176 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.