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 |
|---|---|---|---|---|---|
877085968dc07ff6df8baf029a3548340f6443c0 | 6,723 | package org.fundacionparaguaya.adviserplatform.data.model;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.text.CharacterIterator;
import java.text.StringCharacterIterator;
import java.... | 35.760638 | 118 | 0.562695 |
a4c868ba7ac6f492a98c75d6fbbc6a19f00ade45 | 2,107 | package io.eventuate.messaging.kafka.basic.consumer;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.clients.consumer.OffsetAndMetadata;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.TopicPartition;... | 25.083333 | 79 | 0.756051 |
6c3df3bd4e1c163936a303376c64dc57b7ffee47 | 610 | package com.wcf.funny.admin.constant;
/**
* 用户常量信息
*/
public class UserConstant {
/**
* 空的个人简介
*/
public final static String NULL_INRODUCE="";
/**
* 默认注册用户角色
*/
public final static String DEFAULT_REGISTER_ROLE_TYPE="VIP-1";
/**
* 默认头像
*/
public final static St... | 17.941176 | 101 | 0.616393 |
ad2a1a5e3f7cdb8d525201b6a59bcb68f2b43267 | 229 | package com.sokil.repository;
import com.sokil.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
public interface RoleRepository extends JpaRepository<Role, Long> {
Role findByRole(String role);
}
| 22.9 | 67 | 0.803493 |
8b88d3ca8a2fdbd53f52e4ea2a5c76e7921a9ccc | 3,776 | package org.apache.hawq.pxf.service.rest;
/*
* 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 Li... | 38.530612 | 117 | 0.681144 |
3fa1807ee21ecac0a7e27d52d9617c6f4c76a4b5 | 424 | package co.lq.modules.system.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import co.lq.modules.system.domain.SellerUserAvatar;
/**
* @author billy
* @date 2018-11-22
*/
public interface SellerUserAvatarRepository... | 26.5 | 99 | 0.806604 |
1d5f30a70868992712c9841cb9e9e9db97279982 | 699 | package slr.expression;
/**
* Árvore binária.
* @param <T>
*/
public class BinaryTree<T> {
private BinaryTreeNode<T> root;
/**
* Construtor.
*/
public BinaryTree() {
this.root = null;
}
/**
* Construtor.
* @param root raiz da árvore.
*/
public BinaryTree(BinaryTreeNode<T> root) {
this.root... | 13.705882 | 46 | 0.600858 |
68eb1862c4f257b7952809a194de2fddeedc3f40 | 834 | public class Solution {
/**
* @param nums: A list of integers
* @return: A list of integers includes the index of the first number and the index of the last number
*/
public List<Integer> subarraySum(int[] nums) {
List<Integer> res = new ArrayList<>();
if (nums == null || nums.len... | 28.758621 | 106 | 0.468825 |
93f48598d9c9c99ed37378e615a67bc9dc4801f9 | 1,203 | package mx.ipn.escom.prueba.coffeeapp.asynctasks;
import android.os.AsyncTask;
import android.util.Log;
import mx.ipn.escom.prueba.coffeeapp.entities.Local;
import mx.ipn.escom.prueba.coffeeapp.services.LocalesService;
import retrofit2.Response;
public class GetLocalDetailByIdAsyncTask extends AsyncTask<Integer,Void... | 30.075 | 79 | 0.627598 |
55666f7514018ce852ea731eedb29f6973173075 | 771 | /*
* Copyright (c) 2015-2018 Vladimir Schneider <vladimir.schneider@gmail.com>, all rights reserved.
*
* This code is private property of the copyright holder and cannot be used without
* having obtained a license or prior written permission of the of the copyright holder.
*
* Unless required by applicable law or... | 36.714286 | 98 | 0.774319 |
671bcbb3c7c673cbfb5561aa43976614ceff1b34 | 402 | package com.icuxika.api.exception;
/**
* 请求返回体为空
*/
public class ResponseNotOKException extends RuntimeException {
private Integer code;
public ResponseNotOKException(String message, Integer code) {
super(message);
this.code = code;
}
public Integer getCode() {
return code;... | 17.478261 | 65 | 0.636816 |
3efd690f8062f15ec787de26f83a520b7af3e65b | 14,537 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2019 John Stewart.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 34.944712 | 119 | 0.59125 |
026d4f041ac5884c37b6c702c29f5010e5f40164 | 298 | package com.qinwei.deathnote.support.resolve;
import java.util.Map;
import java.util.Set;
/**
* @author qinwei
* @date 2019-06-03
*/
public interface PropertyResolver {
String resolvePlaceholders(String text, Map<String, Object> config);
Set<String> findPlaceholders(String text);
}
| 18.625 | 72 | 0.734899 |
e81a35480947e2e344e93531a6de51784ec2452c | 6,585 | /**
* Copyright 2014 Flipkart Internet Pvt. 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 46.373239 | 122 | 0.764313 |
d149bb59bcd8a23bdda92a99f686bafdf63c7be5 | 652 | package tools;
/**
*
* @author broihier
* <pre>
* Class for creating ExpectedResults objects
* </pre>
*/
public class ExpectedResults extends DatabaseComponent {
/**
* Constructor for creating ExpectedResults objects
*
* @param category name that maps to 'category'.testDbExpectedResults files
*
*/... | 22.482759 | 76 | 0.720859 |
1e5ccfaa49b1b981545a1cd0c39d844fe76b0655 | 6,911 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 33.548544 | 83 | 0.578498 |
f0f503828a40179020966210173a45baf7f8a3de | 5,667 | package edu.gemini.itc.operation;
import edu.gemini.itc.base.ITCConstants;
import edu.gemini.itc.base.Instrument;
import edu.gemini.itc.base.SampledSpectrumVisitor;
import edu.gemini.itc.base.TransmissionElement;
import edu.gemini.spModel.core.Site;
import edu.gemini.spModel.gemini.obscomp.SPSiteQuality;
/**
* The W... | 43.592308 | 159 | 0.426857 |
1c199b8fb5d7eb392e95a913255fc7404c396018 | 5,200 |
/*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* 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 ... | 30.409357 | 120 | 0.583269 |
13a4ef19d823ce841007abf34390123608e05fb6 | 412 | package com.example.ticketunion.model.domain;
import java.util.List;
/**
* @ProjectName: TicketUnion
* @Author: Tz
* @CreateDate: 2020/6/2 21:05
* God bless my code!
*/
public class Histories {
private List<String> histories;
public List<String> getHistories() {
return histories;
}
pub... | 17.913043 | 54 | 0.662621 |
25d8dddab1628ac26e5391bec579e68f90650a8c | 188 | package fudge.tasks;
import net.minecraft.entity.player.PlayerEntity;
@FunctionalInterface
public interface Reward {
void provide(PlayerEntity rewardedPlayer, Task rewardingTask);
}
| 20.888889 | 66 | 0.81383 |
da2a47cb7e054f67b0a9f317a73dc74f4234e400 | 505 | package com.didispace;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;
@Slf4j
public class ApplicationEnvironmentPreparedEventListener implements ApplicationListener<ApplicationEnvironmentPrepa... | 31.5625 | 126 | 0.817822 |
99711044be0a5cad7ffb9457d9bfc351128828b9 | 3,906 | package naef.ui;
import tef.MVO;
import tef.TransactionContext;
import tef.TransactionId;
import tef.skelton.AuthenticationException;
import tef.skelton.Model;
import tef.skelton.SkeltonTefService;
import tef.skelton.dto.DtoChanges;
import tef.skelton.dto.DtoOriginator;
import tef.skelton.dto.EntityDto;
import tef.ui.... | 33.965217 | 108 | 0.595494 |
d4f03e11b34ade456b8ab9bc9d8eafd33eb5dba1 | 998 | package com.wuda.web.model.constant;
/**
* 路径常量.
*
* @author wuda
*/
public class PathConstant {
/**
* 禁止实例化.
*/
private PathConstant() {
}
/**
* rest接口的path context.
*/
public final static String PATH_CONTEXT_REST = "/rest";
/**
* mvc接口的path context.
*/
... | 28.514286 | 126 | 0.709419 |
34a29e35b9f58ff20d96d65e8ac2dbd5dc78cba2 | 333 | package com.aaxis.rnsecurestorage.exceptions;
/**
* Created by zacharyhou on 2019/11/22.
*/
public class CryptoFailedException extends Exception {
public CryptoFailedException(String message) {
super(message);
}
public CryptoFailedException(String message, Throwable t) {
super(message,... | 19.588235 | 63 | 0.696697 |
79def2626ba7984df83af4a903475f03b6ba2b89 | 1,313 | package com.xiaomi.push.log;
import java.io.File;
import java.util.Date;
class c extends b {
File a;
final /* synthetic */ int b;
final /* synthetic */ Date c;
final /* synthetic */ Date d;
final /* synthetic */ String e;
final /* synthetic */ String f;
final /* synthetic */ bo... | 26.795918 | 88 | 0.46687 |
3bc3df3104e484601e3a5e270b791b844ae23f61 | 337 | package com.atharva.encryptchat.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Friend implements Serializable {
private String name;
private String phoneNo;
private Stri... | 16.85 | 45 | 0.79822 |
b3467c9ea2830361d04afbccd8043b24867838ff | 220 | package com.oukingtim.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.oukingtim.domain.File;
/**
* Created by xufan on 2018/03/19.
*/
public interface MgrFileMapper extends BaseMapper<File> {
}
| 20 | 57 | 0.772727 |
d355e65128ab72cc07b5d7a9288f375f874a11f1 | 1,514 | /**
* Copyright (C) 2007 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 29.686275 | 75 | 0.731836 |
f91955e8da6038b69ef7ef8235c943677483d46d | 3,315 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQMaintenanceAndUpgradeRetrieveInputModelMaintenanceAndUpgradeInstanceAnalysis;
im... | 39.939759 | 195 | 0.854299 |
c43018cc4e16c68b648a4799e31548fcc60fc5d1 | 997 | package ca.corefacility.bioinformatics.irida.service.remote;
import ca.corefacility.bioinformatics.irida.model.assembly.GenomeAssembly;
import ca.corefacility.bioinformatics.irida.model.assembly.UploadedAssembly;
import ca.corefacility.bioinformatics.irida.model.sample.Sample;
import java.util.List;
/**
* A service... | 34.37931 | 86 | 0.781344 |
aeec3d7606d78fd56c116132a65e6bd983ba4abb | 3,989 | /*
* Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 25.570513 | 96 | 0.646027 |
4b45bb14c300de2f68e253c0ba0d13ef7947a8de | 4,217 | package org.radarcns.service;
import static org.radarcns.util.ThrowingFunction.tryOrRethrow;
import java.io.IOException;
import java.time.Instant;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.ws.rs.NotFoundEx... | 38.688073 | 96 | 0.682001 |
66f6fb05d5c36b3c3e57eb76953f3fd2d0bba81b | 2,268 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 31.5 | 77 | 0.729277 |
fff9843cae6add0e79be5810a545efccd469aed6 | 11,538 | package com.github.sukhvir41.core.classgenerator;
import com.github.sukhvir41.core.template.Template;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import static com.github.sukhvir41.utils.StringUtils.getIndentations;
public class RuntimeCla... | 36.512658 | 130 | 0.483273 |
2d6a85e2a4ed670d78b0f5d431f662e2510b47c9 | 12,911 | /*
* 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 dex.counter;
import info.persistent.dex.DexMethodCounts;
import java.awt.FileDialog;
import java.io.IOException;
import java.u... | 48.355805 | 165 | 0.645109 |
d605a61b2f21a6c22d20b6b7a7f6fe230e752342 | 28,909 | package mandarin.packpack.supporter.server.holder;
import common.io.assets.UpdateCheck;
import common.system.files.VFile;
import common.util.Data;
import common.util.anim.MaAnim;
import discord4j.core.event.domain.message.MessageCreateEvent;
import discord4j.core.object.entity.Attachment;
import discord4j.core.object.... | 38.804027 | 302 | 0.464838 |
7f6e24d9fd33c09a095973eab977ead19a5e9956 | 7,351 | package org.wso2.carbon.apimgt.rest.api.publisher.v1.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import javax.va... | 28.164751 | 230 | 0.665352 |
49438d2172bd6465031fd8580ef414dc07fd5218 | 68 | package com.clx4399.common.vaild;
public interface UpdateGroup {
}
| 13.6 | 33 | 0.794118 |
d45653b0dfd8b4c870252baefabbe1bcde110833 | 4,674 | /*-
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2021 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark H... | 41.362832 | 130 | 0.77086 |
883d0207bc8f0bc1d9dbc2b671420fe8d29176b7 | 40,806 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "License");
* you m... | 46.742268 | 134 | 0.62209 |
f1b98c6c5347516f1388574c5c13137855fd50b2 | 5,756 | /*
*
* 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
* "Licens... | 27.673077 | 145 | 0.725678 |
6957889c593edbdab38d75f898533b9e79d70de2 | 556 | package org.tek.code;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.GetMapping;
/**
* @Author Nick
* @CreateTime 2020/9/... | 24.173913 | 72 | 0.758993 |
e4920032a615e2ff09ab02f1949f41ea2d04b80f | 1,609 | package io.faucette.virtandroid;
import android.app.Activity;
import android.util.Log;
import io.faucette.messenger.Callback;
import io.faucette.virtandroid.websockets.FakeWebSocket;
import io.faucette.virtandroid.websockets.FakeWebSocketServer;
/**
* Created by nathan on 9/1/16.
*/
public class Server extends Fak... | 24.378788 | 66 | 0.63207 |
9c94238b962f8668eaa291a386846a2edba42248 | 324 | package com.catfish.ums.entity.dto;
import lombok.Data;
import java.util.List;
/**
* 用户资源
* @author chenyj
* 2020/5/24 - 23:40.
**/
@Data
public class MenuPermissionDTO {
//资源或菜单的id列表
private List<String> resourceIds;
//资源状态,true->启用资源,false->禁用资源,就算用户角色中有这个资源也不会生效
private Boolean status = true... | 15.428571 | 51 | 0.685185 |
c34b47c788e2eae612ff216274cb4773de4fbba2 | 1,470 | package com.github.chen0040.bootslingshot.controllers;
import com.github.chen0040.bootslingshot.services.AccountApi;
import com.github.chen0040.bootslingshot.viewmodels.Account;
import com.github.chen0040.bootslingshot.viewmodels.LoginObj;
import com.github.chen0040.bootslingshot.viewmodels.TokenObj;
import org.spring... | 40.833333 | 111 | 0.787755 |
f67456892460bc1717f4e416a3829421d8f16614 | 450 | package org.jco.applications.domain.core;
import java.util.HashMap;
public abstract class AbstractDomainObject {
private HashMap<String, PropertyGroup> propertyGroupList = new HashMap<>();
public void addPropertyGroup(PropertyGroup propertyGroup, String pgName){
propertyGroupList.put(pgName, prop... | 22.5 | 79 | 0.748889 |
c933344b22744cc38c11f1666faf8e45f812683f | 4,880 | package com.github.platymemo.alaskanativecraft.recipe;
import com.github.platymemo.alaskanativecraft.item.AlaskaItems;
import com.github.platymemo.alaskanativecraft.tags.AlaskaTags;
import com.google.common.collect.ImmutableList;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.Statu... | 36.691729 | 113 | 0.616189 |
c069e34d57097ff3848441e1f3feb759502a6081 | 1,354 | package victor.kryz.hrfusion.entities;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.List;
import victor.kryz.hrfusion.hrdb.Employee;
import victor.kryz.hrfusion.jni.PocoException;
import static org.junit.Assert.asse... | 26.54902 | 70 | 0.694239 |
38b379f02f1dec383d5d7f874b53dd3745d38cfc | 755 | package program.classes;
import java.io.Serializable;
public class Lorry extends Vehicle implements Serializable{
/**
*
*/
private static final long serialVersionUID = -3499630700596375118L;
protected double loadingCapacity;
/**
* Constructor for the child Class of Vehicle, Lorry.
*/
public Lorry... | 19.868421 | 147 | 0.760265 |
0948fa22f7254ca1eb30e4f374b3438fa10f78af | 1,803 | /*
Copyright (c) 2014 Ahomé Innovation Technologies. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... | 35.352941 | 167 | 0.735996 |
8fa9acb40ceeff4855aa83e3644742c85a37d739 | 2,001 | package com.mateus.burble;
import com.mateus.burble.command.CommandManager;
import com.mateus.burble.command.types.MemeCommands;
import com.mateus.burble.command.types.TextCommands;
import com.mateus.burble.config.CoreConfig;
import com.mateus.burble.listener.MainListener;
import net.dv8tion.jda.api.JDA;
import net.dv... | 30.318182 | 74 | 0.68066 |
f4ac628d8723d86bf3d08a8a67c47990781c9be0 | 1,358 | package org.smyld.util;
import org.smyld.SMYLDObject;
public class ProcessTimeCalculator extends SMYLDObject {
/**
*
*/
private static final long serialVersionUID = 1L;
long minTime = -1, maxTime = -1, totalTime, curTime;
String processName;
public ProcessTimeCalculator(String processName) {
this.process... | 20.892308 | 70 | 0.699558 |
00f4e99aa8dc74f9f08f60cdd2061961ca7f75a0 | 1,130 | package com.ywh.ds.sorting;
/**
* 选择排序
* [排序] [不稳定排序]
*
* @author ywh
* @since 13/11/2019
*/
public class SelectionSort {
private void swap(int[] arr, int i, int j) {
int tmp = arr[i];
arr[i] = arr[j];
arr[j] = tmp;
}
/**
* Time: O(n^2), Space: O(1)
*
* @param... | 21.320755 | 54 | 0.366372 |
708925aa7d01f3d900fcbe3c47252355d3a6397f | 8,569 | package org.terraform.biome.flat;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Biome;
import org.bukkit.block.data.Rotatable;
import org.terraform.biome.BiomeBank;
import org.terraform.biome.BiomeHandler;
import org.terraform.coregen.PopulatorDataAbstract;
import org.terraform.data.Sim... | 42.211823 | 141 | 0.55269 |
f47ff4f0e1ec4bdf1306ca363c0c2a985d95e870 | 3,765 | /*
* Created by Orchextra
*
* Copyright (C) 2016 Gigigo Mobile Services SL
*
* 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... | 40.483871 | 113 | 0.74927 |
0d33b430c798fd53039d7de666543517c8603531 | 3,416 | /*
* Copyright 2017 LINE Corporation
*
* LINE Corporation licenses this file to you 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 36.731183 | 99 | 0.732436 |
f09383feaea4cb0d868f9730b49e655b6b915d8f | 8,414 | package com.plume.code.core;
import cn.hutool.core.util.ZipUtil;
import com.plume.code.core.common.enums.ControllerOption;
import com.plume.code.core.common.enums.PortalOption;
import com.plume.code.core.common.enums.ServiceOption;
import com.plume.code.core.common.helper.PathHelper;
import com.plume.code.core.common.... | 42.928571 | 133 | 0.677086 |
b8dda96801d2713257ca955d90ae46b20e447a40 | 3,056 | /*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.samplers;
import java.lang.management.ManagementFactory;
import java.text.MessageFormat;
import java.util.logging.Level;
import com.newrelic.agent.Agent;
import com.newre... | 35.126437 | 119 | 0.608312 |
1b5895eb3f94c201d9f61734b595866c0ced34f5 | 4,885 | package com.rank.rss;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.UUID;
import javax.xml.ws.Response;
import o... | 33.689655 | 104 | 0.723439 |
609d1edea952648f9f732c33e354f60fe8ed147a | 12,146 | /*
* Copyright 2013-2016, Kasra Faghihi
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 41.172881 | 140 | 0.593446 |
b48103b303b2b9980506feda8fc3858e9c76d43d | 2,252 | package model;
import exceptions.CarWrongDataException;
public class Car {
private String model;
private int year;
private double engine;
private boolean ac;
public Car() {
}
public Car(String model,int year,double engine,boolean ac) throws CarWrongDataException {
try {
setModel(model);
} catch (Car... | 21.864078 | 94 | 0.665187 |
e81bac30578c163f0715110b91675f70adaac33c | 1,698 | /**
* Copyright (C) 2009 Lambico Team <lucio.benfante@gmail.com>
*
* This file is part of Lambico Example - Console Spring Hibernate.
*
* 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
*... | 29.789474 | 95 | 0.71967 |
4de3269873b1733cb4beb40aeec19c78c1e2561c | 66 | package com.pk.timeapi.instant;
public class InstantTest {
}
| 13.2 | 32 | 0.727273 |
e499849abf0de6bf212cbbdf8537b4112bd34e89 | 808 | /**
* Leetcode - remove_element
*/
package com.duol.leetcode.y21.m3.d30.no27.remove_element;
import java.util.*;
import com.duol.common.*;
/**
* log instance is defined in Solution interface
* this is how slf4j will work in this class:
* =============================================
* if (log.isDebugEnabled())... | 21.837838 | 57 | 0.438119 |
48736a46340ba9f06e882b2e8a21244e26fe0786 | 20,771 | /*
* Copyright (c) 2018, Tomas Slusny <slusnucky@gmail.com>
* Copyright (c) 2018, PandahRS <https://github.com/PandahRS>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributi... | 53.810881 | 147 | 0.739637 |
07568c239423bed7412ed37cb6cb22ea686b34ab | 332 | package com.github.nhojpatrick.cucumber.json.core.exceptions;
import com.github.nhojpatrick.cucumber.core.exceptions.IllegalOperationException;
public class IllegalPathOperationException
extends IllegalOperationException {
public IllegalPathOperationException(final String message) {
super(message... | 25.538462 | 81 | 0.792169 |
364499134f7d7264cd8e062f9593d2ffb07aaf1e | 5,708 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2020 wcm.io
* %%
* 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 ap... | 38.308725 | 120 | 0.709355 |
043d93e2ef12282e83c6294c8f0cb449d2d80548 | 543 | package seedu.address.model.person;
import javafx.collections.ObservableList;
/**
* Unmodifiable view of an address book
*/
public interface ReadOnlyAddressBook {
/**
* Returns an unmodifiable view of the persons list.
* This list will not contain any duplicate persons.
*/
ObservableList<Per... | 22.625 | 56 | 0.679558 |
19d0eda7790bc5918fcd980298cd68d830451289 | 71 | package com.atul.gitbook.learn.users.models;
public class UserDto {
}
| 14.2 | 44 | 0.774648 |
7e6bdc3607d9ca6bcb5e178fbc638fa0819b28ea | 617 | package com.rektapps.greendictionary.view.adapter.viewholder;
import android.arch.lifecycle.ViewModel;
import android.databinding.ViewDataBinding;
import android.support.v7.widget.RecyclerView;
public abstract class BaseViewModelViewHolder<VM extends ViewModel, DB extends ViewDataBinding, T> extends RecyclerView.View... | 32.473684 | 132 | 0.769854 |
6ab9eb13fd5c451844702abcc03b65da171a30fc | 10,503 | package jetbrains.mps.vcs.core.mergedriver;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import org.apache.log4j.Logger;
import org.apache.log4j.LogManager;
import org.jetbrains.mps.openapi.model.SModelName;
import jetbrains.mps.core.platform.Platform;
import org.jetbrains.annotations.Nullab... | 44.884615 | 328 | 0.719604 |
6cdfedd0f443225106594670fca03efb267a9e7d | 4,030 | /*
* Copyright 2014-2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 30.763359 | 84 | 0.712407 |
2b043e94915f20afff3d4c8939cd7a50831d81ac | 1,827 | /*
* This file is part of kdk. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of kdk,
* including this file, may be copied, modified, propagated, or distributed except according to the te... | 31.5 | 115 | 0.684182 |
0875e251f357181c922de65542fc67b7d14e287f | 641 | package org.flowable.community.external.worker.model;
public class EngineVariable {
private String name;
private Object value;
private String type;
private String valueUrl;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Object getValue() {
r... | 14.906977 | 53 | 0.695788 |
37f27e623d187d093a8f41720c28222c9a0992fe | 6,950 | /*
* Cardinal-Components-API
* Copyright (C) 2019-2021 OnyxStudios
*
* 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 rights
* to u... | 40.406977 | 127 | 0.609928 |
856c380edbc8d265315ca46e94028c858b4da88b | 1,362 | package org.semanticweb.rulewerk.rpq.parser;
/*-
* #%L
* Rulewerk Parser
* %%
* Copyright (C) 2018 - 2020 Rulewerk Developers
* %%
* 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 Licens... | 30.954545 | 85 | 0.700441 |
05b006c64332e4488d576a7de300b3b3dd33406a | 6,766 | package pixelartengine.ui.views;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import jav... | 31.179724 | 75 | 0.737659 |
709b6775cbfa4098345b055005187fc8e0679a94 | 516 | package ggc.core;
public class Acquisition extends Transaction {
Acquisition(int id, Date paymentDate, double baseValue, int quantity, Product product, Partner partner) {
super(id, paymentDate, baseValue, quantity, product, partner);
}
@Override
public String toString() {
return "COMP... | 32.25 | 119 | 0.612403 |
494092e59e417bc7763761ca8651c6b5435fdb95 | 3,431 | package game.play;
import processing.core.PShape;
import processing.core.PVector;
import static game.Game.getPApplet;
import static processing.core.PConstants.GROUP;
import static processing.core.PConstants.RECT;
public class AlienSquid extends Alien {
private PShape[] children = new PShape[18];
public Alie... | 38.988636 | 88 | 0.573885 |
22fafe9dba7a9f2762c4b8c5fe9e5b99d100471a | 5,018 | package com.bina.varsim.fastqLiftover.types;
import com.google.common.base.Joiner;
import org.apache.log4j.Logger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class SimulatedRead {
private final static Logger log = Logger.getLogger(SimulatedRead.class.getName());
pr... | 34.847222 | 150 | 0.594659 |
bb575eb0f284b42bbaa72f2d7c27490b5db6dbad | 13,775 | package dev.util.crypto;
import java.math.BigInteger;
import java.security.InvalidKeyException;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.PublicKey;
import... | 41.366366 | 149 | 0.648857 |
c536aac0e34f0df6e6e1633d1d90ddbd0a0e9e02 | 2,064 | /*
PreviewServer.java
Copyright (c) 2017 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.deviceplugin.theta.core.preview;
import javax.net.ssl.SSLContext;
/**
* プレビュー配信用サーバを定義するインターフェース.
*/
public interface PreviewServer {
/... | 18.594595 | 79 | 0.573643 |
13b9749940ef109ee2bb5a355d05988d8d151da1 | 1,934 | package lab4.client;
import javafx.event.ActionEvent;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import lab4.dependency.RMIConstant;
import lab4.dependency.ResourceCollector;
import java.rmi.NotBoundException;
import... | 27.628571 | 86 | 0.643226 |
607b6798e4efe97f1e30746e0393435a4deb79d6 | 316 | package org.woo.dubbo;
import org.woo.service.lookup.ServiceLookUp;
/**
* @author Administrator
* @date 2018 07
* org.woo.dubbo.DubboServiceLookUp
*/
public class DubboServiceLookUp extends ServiceLookUp {
@Override
protected <T> T lookupImpl(Class<T> aClass, String s) {
return null;
}
}
| 18.588235 | 59 | 0.699367 |
c3ba71997b723f1f9cfaa25774a98e57f7a60d40 | 5,386 | package com.gank.gankly.ui.main.ios;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.gank.gankly.R;
import com.gank.gankly.... | 28.497354 | 107 | 0.692722 |
3343bfb55fd75700be5e8c2f4b7aaece52fb0dda | 7,550 | package net.petafuel.styx.core.persistence.layers;
import net.petafuel.styx.core.persistence.Persistence;
import net.petafuel.styx.core.persistence.PersistenceEmptyResultSetException;
import net.petafuel.styx.core.persistence.PersistenceException;
import net.petafuel.styx.core.xs2a.oauth.entities.OAuthSession;
import ... | 46.036585 | 133 | 0.652185 |
d286b5c9e9d5f5b220470a6cea7a6ba6850607a2 | 850 | /*
* Copyright (c) 2016 Yahoo Inc.
* Licensed under the terms of the Apache version 2.0 license.
* See LICENSE file for terms.
*/
package com.yahoo.yqlplus.engine.sources;
import com.google.common.collect.ImmutableList;
import com.google.inject.Inject;
import com.yahoo.yqlplus.api.Source;
import com.yahoo.yqlplus... | 24.285714 | 63 | 0.682353 |
65b557c1e361e55e5ae0b38e5a11674c1785b81d | 420 | package com.java.demos.spring.repositories;
import com.java.demos.spring.models.Author;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface AuthorRepository extends JpaRepository<Author, Long> {
Au... | 30 | 71 | 0.82381 |
98dc8f07b7750464ec9ccb415465d5a0c31cdbd2 | 9,733 | package net.minecraft.world;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.enchantment.EnchantmentProtection;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityTNTPrimed;
import net.minecraft.e... | 33.912892 | 111 | 0.661666 |
902a8cf854ee24de07e77017ea30c62bdc730e03 | 174 | package org.apache.http.protocol;
import org.apache.http.HttpRequest;
public interface HttpRequestHandlerMapper {
HttpRequestHandler lookup(HttpRequest httpRequest);
}
| 21.75 | 55 | 0.821839 |
c5527cde11d4e6ad0b63723e935a2807716a9294 | 317 | package ru.mail.polis.service;
import javax.annotation.concurrent.ThreadSafe;
import java.nio.ByteBuffer;
import java.util.Set;
@ThreadSafe
public interface Topology<T> {
boolean isMe(T topology);
T me();
Set<T> primaryFor(ByteBuffer key, ReplicationFactor replicationFactor);
Set<T> all();
}
| 15.85 | 75 | 0.728707 |
09c0d9ee8800448588fd9616ff195308b4e80d9c | 1,340 | package CompilerRuntime;
import java.util.concurrent.Callable;
import org.coreasm.engine.absstorage.Element;
import org.coreasm.engine.absstorage.RuleBackgroundElement;
/**
* An interface representing a CoreASM Rule
* @author Markus Brenner
*
*/
public abstract class Rule extends Element implements Callable<RuleRe... | 26.27451 | 108 | 0.771642 |
3e18f8f9e5e3e9af872172be0b983b5f2ba93779 | 208 | package com.puc.sistemasdevendas.model.entities;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class PatchOrderRequest {
@NotNull
private OrderStatus orderStatus;
}
| 17.333333 | 48 | 0.793269 |
2073980bfcf5f581b0f0445dc4f2f8d8fae5949b | 2,293 | package com.vitco.app.low.engine;
import com.vitco.app.low.CubeIndexer;
import com.vitco.app.util.misc.IntegerTools;
import gnu.trove.map.hash.TIntObjectHashMap;
import java.util.HashMap;
/**
* Proves fast read/write access to voxel in the world.
*/
public class Engine {
// ------------------------------
... | 29.779221 | 104 | 0.576973 |
096d44644019fe05e584cfb82f986910dd93d889 | 999 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package eu.socialsensor.framework.common.domain.alethiometer;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
*
* @author etzoannos
*/
public class Alex... | 24.975 | 75 | 0.691692 |
f6540494acd5ff938b604db09a7fbfb9377157fd | 121 | @ParametersAreNonnullByDefault
package org.predicode.predicator;
import javax.annotation.ParametersAreNonnullByDefault;
| 24.2 | 54 | 0.892562 |
b29cceb9916f7869791cc0f8b8975ae957c4667d | 3,731 | package jprelude.csv.base;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.Arrays;
/*
public class CsvFormatTest {
private enum Column {
COLUMN1, COLUMN2, COLUMN3;
}
//@Test
public void testApplyOn() throws IOException {
final Seq<Integer> records = Seq.ra... | 31.352941 | 161 | 0.468239 |
5667f870ff47b41023ea404d2ea95b215e37836d | 222 | package com.vmware.vcd.domain;
import java.util.List;
@VcdMediaType("application/vnd.vmware.vcloud.query.records")
public class QueryResultVappsType extends ResourceType {
public List<QueryResultVappType> record;
}
| 22.2 | 60 | 0.801802 |
549e5bfb744937ea82b55f26f5a5f513bdb48e3a | 142 | package application;
import spms.Event;
public class Viewer extends Applicant{
public Event event;
public String ticketReceipt;
}
| 15.777778 | 39 | 0.753521 |
9f9a8eeda4a18bdec57f4e8a6d3ae69e35e9e07e | 3,413 | package org.yggdrasil.node.network.peer;
import org.yggdrasil.core.utils.DateTimeUtil;
import org.yggdrasil.node.network.messages.payloads.AddressPayload;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.ZonedDateTime;
import java.util.UUID;
public class PeerRecord implements Serializable {... | 29.678261 | 102 | 0.643422 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.