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 |
|---|---|---|---|---|---|
5e80ed6b4b5345f8416ed9ae7609e386c4c489a6 | 1,072 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.internal.metadata.core;
import java.lang.reflect.Member;
/**
* An ... | 34.580645 | 127 | 0.810634 |
3d3b9b99fd657a706e1561ca8c33a5a80d71b99b | 6,648 | /**
* 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... | 37.348315 | 121 | 0.656588 |
78d24c16a42a8ad01fde8f73bb6835b435dd1be0 | 6,181 | /**
* CS180 - Lab 07
*
* This class contains a list of some of the on-campus and off-campus restaurants and cafes.
* You should complete it to fulfill the requirements of lab07
*
*/
import java.util.*;
import java.lang.*;
public class Restaurants {
// On campus
public static final String ON_CAMPUS_VEGAN ... | 50.252033 | 128 | 0.577738 |
dcd92f3987ed90ff12c52486be61c4e338579b18 | 138 | package enums;
public enum NbrTeam {
TWO(2),
THREE(3),
FOUR(4);
NbrTeam(int i) {
// TODO Auto-generated constructor stub
}
}
| 9.857143 | 41 | 0.630435 |
24f984c2ccc4c65634c8abb8836b802f1c85374b | 6,150 | /*-
*
* * Copyright 2015 Skymind,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
* *
* * ... | 32.712766 | 119 | 0.621301 |
7039a0772f9a7c04996377eefd31f8306c09b6bb | 2,552 | /**
* Copyright 2015 SPeCS.
*
* 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 writi... | 28.043956 | 118 | 0.688088 |
c9456278ab59ded5738b075b848f214e9d3b941b | 1,216 | package com.cipher.tradisional.library;
import java.util.Random;
/**
* @author : hafiq on 20/04/2017.
*/
public class KamasutraCipher {
public static String MakeKSutra(String text,String key){
int keyLen = key.length()/2;
// arrange random key
char[][] keyRow = new char[2][keyLen];
... | 25.333333 | 60 | 0.38898 |
6d3075734eecd9c63ba7e436e3dd524ded039c80 | 608 | package com.youhualife.modules.topprod.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
/**
* 客户信息表
* @author ZQ
*/
@Data
@TableName("occ_file")
public class OCCEntity implements Serializable {
... | 16.888889 | 54 | 0.654605 |
33de10d4c56b5fd40df7136226c28d3aafb30776 | 2,229 | package com.tianci.weather.ui.citysetting;
import java.util.ArrayList;
import java.util.List;
import com.tianci.weather.Debugger;
import com.tianci.weather.data.DataUtils;
import com.tianci.weather.data.ShareDataManager;
import android.R.integer;
import android.text.TextUtils;
/**
@Date : 2016年4月26日
@Author : Zhan ... | 18.889831 | 75 | 0.719605 |
75eb91448d61773fc2774351d9ee7a942da574e9 | 2,709 | package com.amazonaws.xray.agent.dispatcher;
import software.amazon.disco.agent.event.ServiceActivityRequestEvent;
import software.amazon.disco.agent.event.ServiceActivityResponseEvent;
import software.amazon.disco.agent.event.ServiceRequestEvent;
import com.amazonaws.xray.agent.handlers.XRayHandlerInterface;
import o... | 38.15493 | 142 | 0.771133 |
0264fde70a44b7d1db6a0786a76ceab67cb7f509 | 1,026 | package com.quarantyne.classifiers.impl;
import com.quarantyne.classifiers.HttpRequestClassifier;
import com.quarantyne.classifiers.Label;
import com.quarantyne.lib.HttpRequest;
import com.quarantyne.lib.HttpRequestBody;
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class LargeBody... | 28.5 | 84 | 0.721248 |
e96f43bf878ed7311ad4a519c856f52aff019f8a | 1,024 | package slimeknights.tconstruct.tools;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import slimeknights.tconstruct.library.tinkering.Category;
import slimeknights.tconstruct.library.tinkering.PartMaterialRequirement;
import slimeknights.tconstruct.library.tools.ToolDef... | 39.384615 | 86 | 0.831055 |
7f2a06d1be4856a2807ac43bb2cf2be908c55ce0 | 136 | package com.titizz.shorturl.repository;
public interface InitialCodeDao {
Long AUTO_INCREMENT_STEP = 1000L;
Long insert();
}
| 15.111111 | 39 | 0.742647 |
a4fd29a959ea93daf7a1fb62571c387b259927ba | 4,850 | package com.lambdaschool.foundation.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Se... | 22.146119 | 65 | 0.594227 |
743e437688715669c63bc8cb45c8e2414e0bf279 | 3,043 | package life.qbic.view.panels;
import com.vaadin.ui.*;
import life.qbic.model.Globals;
import life.qbic.model.beans.AlignmentFileBean;
import life.qbic.model.beans.ProjectBean;
import life.qbic.presenter.Presenter;
import life.qbic.testing.TestData;
import life.qbic.view.InfoBar;
import life.qbic.view.MyGrid;
/**
* ... | 36.22619 | 108 | 0.733158 |
0eae1f54d4b3a863205eb1f4f358c15e57e41193 | 887 | package deposit;
import rate.Rate;
public abstract class Deposit implements DepositInterfaceAdvanced{
protected String name;
protected double sum;
protected Rate rate;
protected double term;
protected Deposit(String name, double sum, Rate rate, double term){
this.name = name;
this... | 20.627907 | 71 | 0.588501 |
42861e97f33ff1e388727ca7f945ab0302b5d4b7 | 1,593 | package ro.pub.cs.systems.pdsd.lab05.sample03gridview;
import android.app.Activity;
import android.app.LoaderManager;
import android.content.CursorLoader;
import android.content.Loader;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract.Contacts;
import android.view.Menu... | 30.634615 | 104 | 0.775267 |
6a68411fc3bb5c884420819dc95433440e62dfd6 | 966 | package ru.otus.core.model;
import javax.persistence.*;
@Entity(name = "Phone")
@Table(name = "phones")
public class Phone {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
@Column(name = "phone_id")
private long id;
@Column(name = "number", nullable = false)
private String number;
@ManyToOne(fetch ... | 16.1 | 53 | 0.645963 |
42aee9647ff6668c8b65f3bf1d6c7c7d1b879b6e | 769 | package abused_master.refinedmachinery.blocks.tanks;
import abused_master.refinedmachinery.RefinedMachinery;
public enum EnumTankTypes {
COPPER_TANK(RefinedMachinery.config.getInt("copperTankStorage")),
SILVER_TANK(RefinedMachinery.config.getInt("silverTankStorage")),
STEEL_TANK(RefinedMachinery.config.ge... | 25.633333 | 69 | 0.713914 |
01b84ccea62e034639208acfd2a78cc3431c5c71 | 744 | package com.jzd.jzshop.entity;
import java.io.File;
import java.util.List;
/**
* @author LWH
* @description:
* @date :2020/1/7 17:46
*/
public class EventFile {
private List<FileBean> file;
public List<FileBean> getFile() {
return file;
}
public void setFile(List<FileBean> file) {
... | 16.533333 | 46 | 0.534946 |
d80ca0e1609325f68d8ca88d07d1c56bf8f2a52e | 1,625 | package life.genny.test;
import java.lang.invoke.MethodHandles;
import java.util.UUID;
import org.apache.logging.log4j.Logger;
import org.javamoney.moneta.Money;
import org.junit.Test;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import life.genny.qwanda.MoneyDeserializer;
import life.genny.qwan... | 24.621212 | 104 | 0.759385 |
32b71f2384059f058125881fc7517a7530635150 | 438 | package jToolkit4FixedPipeline.physics;
/**
* Created with IntelliJ IDEA.
* User: Astemir Eleev
* Date: 24.02.13
* Time: 19:53
* To change this template use File | Settings | File Templates.
*/
public interface BoundingRoundedVolume<T, V> extends BoundingVolume <T>{
public void setPosition(final V ... | 27.375 | 73 | 0.694064 |
4fa7890d3ddb412f29a9b41d99c147245dc23f19 | 658 | package com.rolfje.anonimatron.file;
import junit.framework.TestCase;
import java.io.*;
public class CsvFileReaderTest extends TestCase {
public void testHappy() throws IOException {
File tempFile = File.createTempFile(CsvFileReaderTest.class.getSimpleName(), ".csv");
Writer writer = new BufferedWriter(new Fi... | 27.416667 | 87 | 0.74772 |
dd525f5c563aff4a10e66d2dc309f5e7e12ca0ea | 951 | package com.tuixin11sms.tx.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import com.tuixin11sms.tx.R;
public class WarnDialogAcitvity extends Activity {
@Override
pr... | 27.970588 | 68 | 0.746583 |
a5b35560596991c118c73c5d98486f6099a70f29 | 2,725 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* 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.or... | 41.287879 | 80 | 0.714128 |
833d0cafa2bf24babfc72c62e7c3571ed5c0940c | 638 | package com.github.chen0040.gp.treegp.program.operators;
import org.testng.annotations.Test;
import java.util.Arrays;
import static org.assertj.core.api.AssertionsForInterfaceTypes.assertThat;
/**
* Created by xschen on 11/5/2017.
*/
public class PlusUnitTest {
@Test
public void test_makeCopy(){
Pl... | 20.580645 | 74 | 0.669279 |
d044eaf93a8ce78532cc93b82f593f32dddd784b | 232 | package com.coolweather.app.util;
/**
* Author:DJ
* Time:2015/12/20 0020 20:42
* Name:CoolWeather
* Description:
*/
public interface HttpCallbackListener
{
void onFinish(String response);
void onError(Exception e);
}
| 15.466667 | 37 | 0.706897 |
b1e43f186d3e818c3769ea40d04b5fc76d4c5ff4 | 2,468 | /*
* Copyright (c) 2010 eXtensible Catalog Organization.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.service... | 30.097561 | 173 | 0.694895 |
7fcbe2f8356046496fc5a8a279e29fc5d59abaf1 | 4,257 | /*
* Copyright 2015-2021 Alexandr Evstigneev
*
* 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... | 33.257813 | 133 | 0.775664 |
6d67a017743e2bf8d636c4d8e0669452b117599f | 632 | package com.qmdj.service.teacher;
import com.github.pagehelper.PageInfo;
import com.qmdj.biz.pogo.qo.TeacherQO;
import com.qmdj.service.bo.TeacherBO;
import com.qmdj.service.common.Result;
public interface TeacherService {
/**
* 添加
* @return
*/
Result<Integer> addTeacher(TeacherBO teacherBO);
Result<Int... | 19.75 | 70 | 0.754747 |
bc794662715a2df8c55b4d01aaad1fc87a2326ff | 412 | package io.leego.office4j.excel;
import org.apache.poi.xssf.streaming.SXSSFSheet;
/**
* @author Yihleego
*/
public interface ExcelFooter {
/**
* Returns the height occupied by the footer.
* @param sheet {@link SXSSFSheet} sheet
* @param rowNumber the number of current rows.
* @return th... | 21.684211 | 51 | 0.67233 |
81ebede3e55bac008c5fb3cf9e98cf73a79d6a82 | 1,564 |
package br.com.ecarrara.neom.nearearthobjects.data.entity.json;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class CloseApproachDataJsonEntity {
@Expose
private MissDistanceJsonEntity missDistance;
@SerializedName("orbiting_body")
@Expose
p... | 22.666667 | 75 | 0.627238 |
ff576ebfaaacb502475950095d0910248ec7d056 | 4,664 | /*
* 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 not ... | 35.876923 | 100 | 0.719554 |
e82050d25ffeb41521d2f990a2f3e82dc3dc6526 | 2,087 | /*
* Copyright 2015-2018 The OpenZipkin 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 applicable law or a... | 35.372881 | 104 | 0.691423 |
0187b79a488b753fd6c8e520045cadaa45097dac | 255 | package org.robotninjas.barge;
public class NotLeaderException extends RaftException {
private final Replica leader;
public NotLeaderException(Replica leader) {
this.leader = leader;
}
public Replica getLeader() {
return leader;
}
}
| 17 | 55 | 0.733333 |
e1ecd2d8c48ddcfece84dc2340186f013deff498 | 34,906 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* org.lwjgl.opengl.GL11
*/
package me.wintware.client.utils.visual;
import java.awt.Color;
import me.wintware.client.utils.font.FontRenderer;
import me.wintware.client.utils.other.MinecraftHelper;
import me.wintware.client.utils.visual.Co... | 54.711599 | 601 | 0.663783 |
b6eef5b70c1d22902f38c5a430ac547cb449af2d | 1,607 | /*
* Copyright (C) 2005-2020 Gregory Hedlund & Yvan Rose
*
* 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... | 23.632353 | 75 | 0.686372 |
2043c8cab92a59d52fba5ecd3ce4a7623255993c | 199 | package com.smlnskgmail.jaman.hashchecker.features.hashcalculator.input;
import androidx.annotation.NonNull;
public interface TextValueTarget {
void textValueEntered(@NonNull String text);
}
| 19.9 | 72 | 0.81407 |
0bd5f99c575a1a20e73d8a92405bea7abffb810f | 282 | package Integracion.Avion;
import Negocio.Avion.imp.TransferAvion;
public interface DaoAvion {
public boolean add(TransferAvion t);
public TransferAvion search(String matricula);
public TransferAvion searchId(int id);
public boolean update(TransferAvion t);
} | 21.692308 | 48 | 0.762411 |
8c491ee21a9aa4fd5ef8c524d311ee159d8bd1cd | 2,617 | package org.qcri.rheem.core.optimizer.costs;
import org.qcri.rheem.core.optimizer.ProbabilisticIntervalEstimate;
import org.qcri.rheem.core.util.Formats;
import java.util.Comparator;
/**
* An estimate of time (in <b>milliseconds</b>) expressed as a {@link ProbabilisticIntervalEstimate}.
*/
public class TimeEstimat... | 36.347222 | 126 | 0.627054 |
ce47cebd86dd05f7fc3ea71f2d61171eecd8ec67 | 511 | package jetbrains.buildServer.clouds.kubernetes.podSpec;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
/**
* Created by ekoshkin (koshkinev@gmail.com) on 15.06.17.
*/
public interface BuildAgentPodTemplateProviders {
@NotNull
Collection<Bu... | 24.333333 | 60 | 0.778865 |
4c8f180440df4ea6735259827cf60d76e0019262 | 20,917 | package org.jetbrains.jps.builders.java.dependencyView;
import com.intellij.util.io.DataExternalizer;
import gnu.trove.TIntHashSet;
import gnu.trove.TIntProcedure;
import org.jetbrains.asm4.Type;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.io.PrintStream;
import java.u... | 28.575137 | 131 | 0.641488 |
0935fe1ad9e289f113296816b5e1e135caf23698 | 1,084 | package com.liuyiyang.code.client;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.Socket;
/**
* Description:
* <br/>��վ: <a href="http://www.crazyit.org">���Java����</a>
* <br/>Copyright (C), 2001-2012, Yeeku.H.Lee
* <br/>This program is protected by c... | 30.111111 | 62 | 0.555351 |
e1b0469479fa74977c1de6a69cf34db49320cac8 | 457 | package com.alexrnl.jseries.request.parameters;
/**
* Parameter which allow to set the episode number.<br />
* @author Alex
*/
public class Episode extends Parameter<Integer> {
/** Name of the episode parameter */
public static final String PARAMETER_EPISODE = "episode";
/**
* Constructor #1.<br />
* @para... | 22.85 | 58 | 0.68709 |
1e01365accf8a3b3e79c3778a484980c47500d86 | 1,777 | package org.dbpedia.dbtax.utils;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
import org.dbpedia.dbtax.database.CategoryDB;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*
*
* This class has all functions related to threshold calculations.
* We calculated thresh... | 29.131148 | 93 | 0.693303 |
5c0728fc742ef3d0de1f78bcf56eba24a7bc269e | 4,976 | // Copyright (c) 2010 Rob Eden.
// 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 of source code must retain the above copyright
// notice, this list of conditions... | 28.434286 | 86 | 0.711817 |
b9efbb47cbf09e2bf746ed2d3f7865d215d43750 | 2,680 | package com.safie.rtsp;
// import org.slf4j.Logger;
// import org.slf4j.LoggerFactory;
import com.safie.rtsp.core.*;
import com.safie.rtsp.util.GeneralUtil;
import com.safie.rtp.server.*;
import com.safie.rtp.session.*;
import com.safie.rtp.media.*;
import com.safie.rtp.packet.*;
import org.apache.logging.log4j.LogM... | 30.11236 | 97 | 0.644776 |
ff56b2a4e5c671e35540fa8464b49618a1f1c6ae | 457 | package coronavaitus.coronavairus.Services;
import coronavaitus.coronavairus.Model.CoronaModel;
import java.util.List;
public interface CoronaServiceInterface {
public CoronaModel save(CoronaModel cModel);
public CoronaModel update(CoronaModel cModel, Integer id_corona_virus);
public Integer delete(Inte... | 28.5625 | 75 | 0.809628 |
a634b7cf6c55ace7f5f62ed3dea645f520b80a30 | 7,028 | package net.poringsoft.imascggallery;
import android.content.Context;
import android.graphics.Point;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.Im... | 34.965174 | 147 | 0.641007 |
06febbaf771f3de78f6941e1fc89c8901d9392e0 | 4,277 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.usage_stats;
import android.app.Activity;
import android.content.res.Resources;
import org.chromium.base.Callback;
i... | 41.125 | 100 | 0.658172 |
6f864ed230a60a9eb0b4c2d9157bd8e85bb1a474 | 889 | package entities;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Created by POF4CLJ on 29.07.2016.
*/
@Entity
public class Config extends BaseEntity {
String line;
String factory;
String machine_id;
protected Config() {
}
public Config(String line, String factory, ... | 18.142857 | 67 | 0.622047 |
36a9e80bf6b9d9ecf9e98bc3dc30396e892029ff | 350 | package com.cleeng.api.domain;
import java.io.Serializable;
public class UpdateCustomerSubscriptionOfferData implements Serializable {
public String status;
public String expiresAt;
public UpdateCustomerSubscriptionOfferData(String status, String expiresAt) {
this.status = status;
this.e... | 23.333333 | 81 | 0.748571 |
129bb702b3caab9e57c3065fa7d15ecf17e5209b | 1,110 | package no.nav.vedtak.isso.ressurs;
import no.nav.vedtak.feil.Feil;
import no.nav.vedtak.feil.FeilFactory;
import no.nav.vedtak.feil.LogLevel;
import no.nav.vedtak.feil.deklarasjon.DeklarerteFeil;
import no.nav.vedtak.feil.deklarasjon.TekniskFeil;
import java.io.UnsupportedEncodingException;
interface RelyingPartyCa... | 42.692308 | 127 | 0.772973 |
273d2a281f82302592475596f9be1c9d1167a22e | 1,112 | package org.hy.common.xml.junit.xjavacloud;
import org.hy.common.net.data.LoginRequest;
import org.hy.common.net.netty.rpc.ClientRPC;
import org.hy.common.xml.log.Logger;
/**
* 测试单元:XJavaCloud的客户端
*
* @author ZhengWei(HY)
* @createDate 2021-09-29
* @version v1.0
*/
public class JU_XJavaCloudClien... | 25.860465 | 86 | 0.630396 |
5853139b83df6882673d61274151ba0f9beecbb1 | 4,350 | /*
* Copyright (c) 2016 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.network.api.info.frodo;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.gson.annotations.SerializedName;
// TODO: Extend from Base... | 25.892857 | 86 | 0.618161 |
9e70115fd36343dceb87307d1e994ef83147d98e | 8,205 | package cn.leancloud.sample.testcase;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.view.LayoutInflater;
import android.widget.EditText;
import android.widget.LinearLayout;
import java.util.HashMap;
import java.util.Map;
import cn.leancloud.LCException;
import cn.leancloud.LC... | 42.076923 | 130 | 0.567824 |
048190292526d5eea7f2af31a4570c3fc57e95bf | 595 | package fr.romainmoreau.gsmmodem.web;
import javax.validation.constraints.NotNull;
import org.springframework.util.StringUtils;
public class SmsRoute {
@NotNull
private String prefix;
@NotNull
private String endpointUrl;
public boolean matches(String sms) {
return StringUtils.startsWithIgnoreCase(sms, prefi... | 17.5 | 55 | 0.757983 |
82401a1289227e1c7336c4a5e09e641dab9291e0 | 3,128 | package helloworld.hmrc.camel;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.ValidationException;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.dataformat.JsonLibrary;
import org.springframework.stereotype.Component;
import java.util.HashMap... | 40.102564 | 120 | 0.576087 |
16f8c392032dfffe397893caa60b46fd755bee45 | 1,114 | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 b... | 25.906977 | 78 | 0.672352 |
2a214423f46900ffbfcb48498a1785d4140ce92d | 3,980 | package lm44_xw47.chatRoom.controller;
import java.rmi.RemoteException;
import common.DataPacketCR;
import common.ICRCmd2ModelAdapter;
import common.ICRMessageType;
import common.IChatRoom;
import common.IComponentFactory;
import common.IReceiver;
import common.IUser;
import lm44_xw47.chatRoom.model.ChatRoomModel;
im... | 26.357616 | 122 | 0.702261 |
fcd44b194e5e94efd440b942c4de7772d719b22a | 6,929 | package com.catherine.classloader;
import android.app.Application;
import android.content.Context;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.util.Log;
import java.io.File;
import java.lang.reflect.Constructor;
import java.la... | 32.530516 | 148 | 0.580603 |
db866f61c8366905fdb05d7cd82e6c81eb29a8dc | 1,255 | package jdo.ecommerce.model.webvisit;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import jdo.model.BasePersistentModel;
@Entity
public class UserAgent extends BasePersistentModel {
/**
*
*/
private static final long serialVersionUID = 1L;
@ManyToOne
private BrowserType browse... | 17.430556 | 60 | 0.752191 |
af287e3256297a436ed85da5d3f5cb474801be78 | 653 | package ru.kershov.blogapp.model.dto.auth;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import ru.kershov.blogapp.config.Config;
import javax.validation.constraints.Email;
import javax.validation.co... | 29.681818 | 58 | 0.784074 |
a45bba57b45516363e8dedeb09fc954eb67980a5 | 4,449 | /*
* 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 ... | 29.85906 | 94 | 0.717689 |
d3b4fbc242f643fd9c42bd4d68d6e88b015d8835 | 11,366 | package com.techexe.androidroom.Common;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.support.annotation.CheckResult;
import android.support.annotation.ColorInt;
import a... | 37.511551 | 122 | 0.670597 |
81cf97a33e84aced489a9d34f2c848cbf2f6ec68 | 5,962 | package tools;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
import javax.swing.JFileChooser;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
/**
* Easy configuration file managment
*
... | 31.378947 | 128 | 0.604663 |
04ce9251fd3d04d7861cfbc8fe1a38f470c5d78b | 6,574 | package com.example.amar.smartphoneinventory;
import android.app.LoaderManager;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.CursorLoader;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import android.net.Uri;
import and... | 41.345912 | 122 | 0.685123 |
d4e21354a1f7370dbb05cb658ab5671a2f5eac9e | 766 | package il.ac.technion.nlp.nli.core;
import il.ac.technion.nlp.nli.core.state.NliEntity;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Used to add a description (a natural language phrase) to a N... | 30.64 | 112 | 0.755875 |
9a243de5d154bbda69bdb567481fa44bbd467810 | 776 | package com.baislsl.decompiler.structure.constantPool;
import com.baislsl.decompiler.DecompileException;
import com.baislsl.decompiler.Result;
public class DoubleTag extends LongDoubleBasic {
public DoubleTag(int tag){
super(tag);
}
@Override
public String[] description(Result result) throws ... | 24.25 | 98 | 0.662371 |
3b505a8ae0aa186c1a15790f007109f5146a736e | 2,386 | package com.services;
import com.LongPolling.ServicePoll;
import com.entity.Credentials;
import com.entity.RegistrationModel;
import com.entity.User;
import com.dao.UserDaoInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.... | 30.589744 | 129 | 0.718776 |
21c06cab6b25c1b106cddebeb231cb843156bc37 | 1,224 | /*
* 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 main;
import java.io.File;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.a... | 27.2 | 100 | 0.628268 |
9c07f3d6920b0933f06b76fba96865f9d733ef7d | 1,444 | /*
* Copyright (C) 2016 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... | 30.723404 | 75 | 0.664127 |
f1b02435cbe7520de46a1afa7d6381647d41b540 | 1,003 | package com.gabor.hr.service.dto.validator;
import com.gabor.hr.model.Status;
import com.gabor.hr.service.dto.RequestDto;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.time.LocalDate;
public class DateValidator implements ConstraintValidator<DateInFuture... | 30.393939 | 106 | 0.648056 |
aa91dd60ca55521aaa44279685c33e955909f524 | 3,773 | package com.photatos.dalin.mlkit.ghost.auth;
import androidx.annotation.NonNull;
import androidx.annotation.VisibleForTesting;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import io.reactivex.Observable;
import io.reactivex.Single;
import com.photatos.dalin.mlkit.ghost.error.UrlNotFoundE... | 40.569892 | 102 | 0.622847 |
7d5c4ea9acafe167ac5234fe258b4570ffc9a0f4 | 1,343 | package co.team.security.service;
import org.junit.Test;
import co.team.food.service.FoodVO;
public class PasswordEncoderTest {
@Test
public void passwordEncode() throws Exception{
//String str ="하하.png";
//String word = str.split("\\.")[str.split("\\.").length -1];
//System.out.println(wor... | 24.87037 | 92 | 0.581534 |
992444ca5ae493c592d54102fa6961b464faec1c | 1,649 | package lk.axres.mobimart;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
public class EnginActivity ... | 34.354167 | 93 | 0.688296 |
9b4732d12c4badd729793bccd208178bc0439b39 | 482 | package net.minidev.ovh.api.dbaas.queue;
/**
* AppConfiguration
*/
public class OvhAppConfiguration {
/**
* Application
*
* canBeNull && readOnly
*/
public OvhApp app;
/**
* List of created roles
*
* canBeNull && readOnly
*/
public OvhRole[] roles;
/**
* Metrics account
*
* canBeNull && ... | 13.771429 | 41 | 0.639004 |
1765e8b49a497085ef0c9e29738abc6d065c3d79 | 8,499 | package com.xiaojukeji.kafka.manager.service.cache;
import com.xiaojukeji.kafka.manager.common.entity.po.ClusterDO;
import kafka.admin.AdminClient;
import org.apache.kafka.clients.CommonClientConfigs;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.KafkaConsumer;
impor... | 39.901408 | 143 | 0.656783 |
e5a68f58793511a0c9126150b34f48b07886fa3e | 796 | package application.model.quantity;
public class Charge extends UnitValue implements Cloneable {
public static final String unit = "As";
public Charge(double value) {
super(value, unit);
}
public Charge(Charge Q) {
this(Q.getValue());
}
public Charge(Current I, T... | 20.410256 | 61 | 0.540201 |
59299a0d1c33431415a17d10e6a9ee3e5b270215 | 4,934 | package com.airbnb.aerosolve.core.models;
import com.airbnb.aerosolve.core.KDTreeNode;
import com.airbnb.aerosolve.core.util.Util;
import com.google.common.base.Optional;
import lombok.Getter;
import org.apache.commons.codec.binary.Base64;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.ByteAr... | 27.10989 | 90 | 0.638022 |
6858aba99d318ecfbcee4a8a0b0ffcc9092c14ef | 2,992 | package com.telek.betterswing.components;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class SwingFrame {
private JFrame frame;
////////////////////
/* CONSTRUCTORS */
////////////////////
public SwingFrame(JFrame frame){
this.frame = frame;
}
publ... | 26.245614 | 86 | 0.626003 |
0955137da844dd18831a1ca454d99bf2a8eb5e0e | 2,296 | package ooga.parser.components;
import java.util.ResourceBundle;
/**
* Job of this class is to parse and extract display/launcher info. Uses the DOM Parser API.
* @author Alex Xu
*/
public class DisplayInfoParser extends AbstractParser {
public static final String RESOURCES_PATH = "ooga.parser.properties.dis... | 29.818182 | 95 | 0.710366 |
16d6dcc6606a251ce171df87b56192a2ae6d82af | 1,291 | package com.example.demo.repository;
import com.example.demo.entity.Menu;
import lombok.extern.java.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
i... | 30.738095 | 86 | 0.613478 |
c1a518b287e367f3f0b669e09282ff62c1e3f095 | 463 | package app.retake.services.api;
import app.retake.domain.dto.AnimalJSONImportDTO;
import app.retake.domain.dto.AnimalsJSONExportDTO;
import app.retake.domain.models.Animal;
import java.text.ParseException;
import java.util.List;
public interface AnimalService {
void create(AnimalJSONImportDTO dto) throws ParseE... | 30.866667 | 74 | 0.825054 |
0b25236c5e4f15afeea7e2d258a1993ac99e88bc | 12,401 | package com.github.cuter44.wxpay.resps;
import java.util.List;
import java.util.ArrayList;
import java.util.Properties;
import java.util.Iterator;
import java.util.Arrays;
import java.util.Date;
import java.io.InputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import com.github.cute... | 27.993228 | 123 | 0.587775 |
a15f97385f9efabb7ce3e14fa086bc34d3b45030 | 599 | package com.young.simpledict.dict.model;
import java.util.ArrayList;
import java.util.List;
/**
* Author: landerlyoung
* Date: 2014-10-22
* Time: 16:05
* Life with passion. Code with creativity!
*/
public class DictExplain {
public String dictName;
//词性
public List<String> trs = new ArrayList<Str... | 20.655172 | 54 | 0.609349 |
4f4062bdbcd75afdd16c5007f6be34e86abef9b8 | 369 | package com.goat.chapter200.item03;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
* Created by Administrator on 2021/6/16.
*
* @ Description: TODO
* @ author 山羊来了
* @ date 2021/6/16---16:18
*/
@Configuration
@ComponentScan("com.go... | 18.45 | 60 | 0.745257 |
4f9a8e84d80adc225c7afaed39f921b8b0b3aca2 | 1,816 | package org.algorithms.coding_patterns.educative.merge_intervals;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class EmployeeFreeTimeTest {
@Test
void findEmployeeFreeTime1() {
List<L... | 40.355556 | 91 | 0.659692 |
8865e42b27160cb2440dc893f302b0ee2b112ee3 | 11,794 | package com.chin.bbdb.activity;
import java.util.HashMap;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import com.chin.bbdb.FamStore;
import com.chin.bbdb.FamStore.TierCategory;
import com.chin.bbdb.R;
import com.chin.common.TabListener;
i... | 39.444816 | 133 | 0.596744 |
194d19113d09a59b7bc744ac613e58cc067ddbdf | 159 | package com.camnter.hook.ams.f.activity.plugin.host;
import android.app.Activity;
/**
* @author CaMnter
*/
public class StubActivity extends Activity {
}
| 14.454545 | 52 | 0.742138 |
79e6d9e2db3eb30477f4486edd2813147c4ad3b2 | 8,061 | /*
* 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.349057 | 114 | 0.610842 |
a4b2bd341fe8b71bed051ff7c2399f8bc4b50bcc | 315 |
package com.doublechain.flowable.district;
import com.doublechain.flowable.EntityNotFoundException;
public class DistrictVersionChangedException extends DistrictManagerException {
private static final long serialVersionUID = 1L;
public DistrictVersionChangedException(String string) {
super(string);
}
}
| 21 | 79 | 0.828571 |
a0fec5dcb659ac7e3b8cfb64ad103f37c773db45 | 1,242 | package com.andcreations.ae.lua.parser;
/**
* Represents a Lua element.
*
* @author Mikolaj Gucki
*/
public abstract class LuaElement {
/** The begin line. */
private int beginLine;
/** The end line. */
private int endLine;
/** */
protected LuaElement(int beginLine,int ... | 22.581818 | 71 | 0.530596 |
9a7cc05bf97a1e636f8dcc8f99f775ab48fa4b55 | 482 | /*
* Copyright (c) 2019 - 2020.
* Author: Arnold Chow
* Project name: Java_Optional
* Filename: Teacher.java
* Date: 21/10/2020, 21:18
*/
package test.chapter6.t4;
public class Teacher extends Person{
public int b;
public static void main(String[] args) {
Person p = new Person();
Teache... | 17.214286 | 44 | 0.582988 |
4d5a8f2f10b734f91af4396149f67b03bba4170a | 2,322 | package br.com.fernando.myExamCloud.implementBusinessLogicUsingEJBs;
import java.util.concurrent.TimeUnit;
import javax.ejb.Schedule;
import javax.ejb.Singleton;
import javax.ejb.Stateful;
import javax.ejb.StatefulTimeout;
import javax.ejb.Stateless;
public class Question02 {
// What is true about TimerService ... | 21.90566 | 138 | 0.577089 |
f41cb3b3032fd1a31aa7c738ef06120d43ae26cf | 4,568 | /*******************************************************************************
* Copyright 2016
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 32.397163 | 97 | 0.696804 |
10e1f104696c08273f7649edb10dedf5a7e2e3b0 | 202 | package cn.ism.fw.simba.jsr.validation.groups;
import javax.validation.groups.Default;
/**
* 创建校验组
* @since 2017年9月25日
* @author Administrator
*/
public interface CreateGroup extends Default {
}
| 15.538462 | 46 | 0.747525 |
42d53cee6bcb5926c7fc24e95c3b01346eb9d684 | 3,914 |
package com.calliemao.gasmeter.clients.mapsresponse;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Generated("org.jsonschema2pojo")
public class Step {
@SerializedName("distance... | 19.186275 | 66 | 0.570772 |
2414d075bd268a193f5773b0abd72e29e5ee0f8e | 157 | package com.github.prbpedro.sortingalgorithms.algorithms.interfaces;
public interface ISortAlgorithmExecutioner<T> {
void sort(T[] unsortedArr);
}
| 22.428571 | 68 | 0.77707 |
6c7b4d3569eeaf028c8d38c559ef5d80c533d80b | 1,280 | package com.github.east196.core.api;
import cn.hutool.core.builder.EqualsBuilder;
import cn.hutool.core.builder.HashCodeBuilder;
public class DataTableResult<T> {
private int draw;
private long recordsTotal;
private long recordsFiltered;
private T data;
public DataTableResult() {
}
public Dat... | 19.393939 | 84 | 0.7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.