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 |
|---|---|---|---|---|---|
7e5b1d7d9fe6371e0b6ab90c7d41f3705a03c11b | 564 | package io.banditoz.discordsourcequerier.querier;
import com.github.koraktor.steamcondenser.exceptions.SteamCondenserException;
import com.jagrosh.jdautilities.menu.Paginator;
import net.dv8tion.jda.core.entities.MessageEmbed;
import java.util.concurrent.TimeoutException;
@SuppressWarnings("unused")
public abstract ... | 35.25 | 100 | 0.836879 |
4ddaa6285de72b05ca31b47a3e3ea734d4f7adbf | 12,141 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 39.806557 | 138 | 0.646405 |
115f870e0cfa3e516a8de745623c9093cd2161ba | 5,097 | /**
* This class is generated by jOOQ
*/
package org.openforis.calc.persistence.jooq.tables;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Table;
import org.jooq.TableField;
import org... | 29.807018 | 174 | 0.737885 |
b08b469dc52e7b2d697b5a0eb43dbe1d05d90e18 | 4,350 | /*
* Copyright 2002-2016 jamod & j2mod development teams
*
* 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... | 32.954545 | 187 | 0.567356 |
d63dc7fea4b1c274f54ec7b7c6a765c48747f4c2 | 580 | package com.mauriciotogneri.designpatterns.structural.flyweight;
import java.util.HashMap;
import java.util.Map;
public class Menu
{
private final Map<String, CoffeeFlavour> flavours = new HashMap<>();
public CoffeeFlavour lookup(String flavorName)
{
if (!this.flavours.containsKey(flav... | 24.166667 | 74 | 0.646552 |
e3cb4da8b265b06b777d2d998b1a020d46a44a0a | 634 | package io.lpamintuan.backend.backend.librarycontent;
import java.io.Serializable;
import java.util.UUID;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Embeddable
@EqualsAndHashCode
@Data
@NoArgsConstructo... | 20.451613 | 59 | 0.755521 |
c12fba04aa939887175e41d06fe3c9f4dc2492c2 | 653 | /*
* Copyright 2015, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.... | 28.391304 | 108 | 0.777948 |
717214580fa5b4539ac658fc7ec703c22bb68149 | 1,048 | package com.numberone.system.service;
import com.numberone.system.domain.OfficialDocument;
import sun.rmi.server.InactiveGroupException;
import java.util.List;
/**
* 公文管理 服务层
*/
public interface IOfficialDocumentService
{
/**
* 查询公文信息
*
* @param DocumentId 公文ID
* @return 公文信息
*/
... | 16.903226 | 74 | 0.587786 |
0b5a716240c8ce3620a4f588f798aaec430098f2 | 3,280 | package com.song.xposed.utils;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by chensongsong on 2020/10/15.
*/
public class PreferencesUtils {
public static boolean putString(Context context, String key, String value) {
SharedPreferences.Editor editor = getShar... | 34.526316 | 89 | 0.699085 |
810c3f3c0c166e721be14fecbf3bb5defa307176 | 2,183 | /*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 34.650794 | 101 | 0.758589 |
7c45ebe448bb9ac814b39398a6966b013138a901 | 3,765 | /*
* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/cookie/SetCookie.java $
* $Revision: 617193 $
* $Date: 2008-01-31 11:26:47 -0800 (Thu, 31 Jan 2008) $
*
* ====================================================================
* Licensed to th... | 31.115702 | 144 | 0.640372 |
1e94ed9c64b6916cbabcafe5af0aef8b0c89136f | 3,198 | /**
* SPDX-Copyright: Copyright (c) Capital One Services, LLC
* SPDX-License-Identifier: Apache-2.0
* Copyright 2017 Capital One Services, 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 Lice... | 42.078947 | 101 | 0.709506 |
7bbec7ac1e7f17df795a277d2ee15201a6bab4c1 | 30,925 | /**
* 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
* "Li... | 34.864713 | 309 | 0.59253 |
525f9a151d6832116d1703db7b42e1e02334780e | 4,311 | /*-
* ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
* The Apache Software License, Version 2.0
* ——————————————————————————————————————————————————————————————————————————————
* Copyright (C) 2013 - 2020 Autonomic, LLC - All rights reserved
* ———————————————————————————————————————... | 28.361842 | 81 | 0.564834 |
773c0060064241096daacea0e6314f0a54b37636 | 545 | package com.cn.boot.sample.guava.eventbus;
import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;
/**
* @author Chen Nan
*/
@Slf4j
public class MultiListener extends BaseListener {
@Subscribe
public void doAction1(String event) {
log.info("doAction1 event={}", event);
}
... | 20.185185 | 49 | 0.656881 |
8597f6dc916b3193fb31368f345599dfc0fc393c | 1,220 | /**
*
*/
package com.impetus.client.cassandra.config;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* @author Kuldeep Mishra
*
*/
@Entity
@Table(name = "CASSANDRAUSERXYZ", schema = "KunderaCassandraXmlTest@CassandraXmlProperty... | 15.25 | 94 | 0.536066 |
6afa7f6dca60a35655351d66389f5016e2fd2074 | 2,976 | package com.xlc.spartacus.gateway.config;
import java.util.List;
import java.util.stream.Stream;
import com.alibaba.csp.sentinel.adapter.gateway.sc.callback.BlockRequestHandler;
import org.springframework.http.HttpStatus;
import org.springframework.http.InvalidMediaTypeException;
import org.springframework.http.Media... | 39.68 | 272 | 0.715726 |
717e3a9342b91550e629ca6cf347ad874c1856d2 | 2,645 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 37.785714 | 148 | 0.758412 |
4d3e293db79389e6305adfd3a1369b480b59cd71 | 7,294 | package com.potato369.novel.manage.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import com.potato369.novel.manage.RedisManager;
import java.util.HashMap;
import java.util.List;
impor... | 20.093664 | 110 | 0.568275 |
f7e4472d73a0d5c3278dace15ae80a00b2263bec | 13,902 | package cc.mrbird.febs.yb.entity;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;
import com.wuwenze.poi.annotat... | 23.016556 | 77 | 0.629262 |
c750c3e08e20656db9e4f4e64ed2b124ecfd36b7 | 11,527 | /**
* 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
* distribu... | 55.68599 | 119 | 0.607877 |
a6fc08459f6756c75cf103745f09c6c58ad1f394 | 437 | package io.danpalmer101.csc.provider.local;
/**
* Basic metadata for a session
*/
public class StoredSession {
private String id;
private boolean expired;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public boolean isExpired() {
... | 15.607143 | 45 | 0.604119 |
a224ae43568abc122b532b2f88d4632127e7e9b5 | 2,583 | package it.necst.grabnrun;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import android.support.annotation.NonNull;
import java.io.File;
import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;
import java.util... | 40.359375 | 98 | 0.756872 |
b2fd1c68b54a372a0ca3a6d621a31af8f0ee382f | 4,158 | package jetbrains.mps.baseLanguage.test;
/*Generated by MPS */
import jetbrains.mps.MPSLaunch;
import jetbrains.mps.lang.test.runtime.BaseTransformationTest;
import org.junit.ClassRule;
import jetbrains.mps.lang.test.runtime.TestParametersCache;
import org.junit.Rule;
import jetbrains.mps.lang.test.runtime.RunWithCom... | 58.56338 | 864 | 0.810486 |
01750341758919c32be0ec7be3545322034e1a76 | 5,531 | /*
* 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 segundamano;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.persisten... | 29.420213 | 136 | 0.634243 |
47ddb4267618cf3dfd41f94ad92760b66129bcb6 | 577 | package app.web.beans;
import app.domain.models.service.JobServiceModel;
import app.service.JobService;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
@Named
@RequestScoped
public class JobApplicationDetailsBean {
private JobService jobService;
public J... | 20.607143 | 61 | 0.750433 |
26fa7b9ae80f16fd7c8f2ad2395085d6b19bfe9a | 378 | package org.pfaa.geologica.block;
import org.pfaa.chemica.block.IndustrialBlockAccessors;
import org.pfaa.geologica.GeoMaterial;
public interface GeoBlockAccessors extends IndustrialBlockAccessors {
public abstract GeoMaterial getGeoMaterial(int meta);
public abstract boolean containsGeoMaterial(GeoMaterial mater... | 25.2 | 69 | 0.838624 |
4799c14ae07f10a9ce5020dd2921500c1053446e | 2,806 | /*
* Copyright 2009-2016 University of Hildesheim, Software Systems Engineering
*
* 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
*
* ... | 35.974359 | 112 | 0.658945 |
4f9fa7c0d127e8212e4d683254d5ab197845a2e4 | 1,434 | package com.bikeshop.product.database.dao.impl;
import java.util.Collection;
import java.util.Optional;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Compon... | 26.072727 | 95 | 0.794282 |
785d7abdab9b1bea0a1d724fe0d239d2ed6e8a8d | 6,476 | package com.zyf.bings.bingos.coupon.view;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.GridLayoutManager;
import android.su... | 39.248485 | 182 | 0.70105 |
cb5059c569f21bc1b62b1cca60c5a5e25d8ec58a | 423 | package org.techytax.domain.fiscal;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
@Data
public class FiscalReport {
@Id
@GeneratedValue
protected Long id = 0L;
@NotNull
priv... | 16.92 | 44 | 0.749409 |
d4e87561d89245dd5e497773652a467d143a0d06 | 1,026 | package com.numerx.formweb.heroform.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.numerx.formweb.heroform.entity.Hero;
import com.numerx.formweb.heroform.mapper.HeroMapper;
import com.numerx.formweb.... | 29.314286 | 93 | 0.735867 |
27d7022044b2f87845a1cd5dfd50e3f3dc72022e | 7,049 | package nachos.vm;
import nachos.machine.Lib;
import nachos.machine.OpenFile;
import nachos.machine.Processor;
import nachos.machine.TranslationEntry;
import nachos.threads.Lock;
import nachos.threads.ThreadedKernel;
import nachos.vm.*;
import java.util.HashMap;
import java.util.LinkedList;
/**
* The Swap file data... | 28.771429 | 90 | 0.557384 |
9827614227c3d690afcd0aa35d1bb192f3cbf0e4 | 573 | package p005cm.aptoide.p006pt.home.apps;
import p005cm.aptoide.p006pt.presenter.View.LifecycleEvent;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.home.apps.Jc */
/* compiled from: lambda */
public final /* synthetic */ class C3550Jc implements C0132p {
/* renamed from: a */
private final /* syn... | 27.285714 | 65 | 0.699825 |
6b4994116178cc7c0df6c076390824693a4449a8 | 7,508 | /*
* Copyright 2013 MovingBlocks
*
* 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 t... | 39.515789 | 129 | 0.695258 |
f319088432cce58b7fbeeca7e41d3a91094b4ddd | 433 | /*
* Author : ACIMS(Arizona Centre for Integrative Modeling & Simulation)
* Version : DEVSJAVA 2.7
* Date : 08-15-02
*/
package model.simulation;
import java.util.*;
import GenCol.*;
public interface CoupledCoordinatorInterface
extends CoordinatorInterface
... | 18.826087 | 76 | 0.542725 |
dc327b5a12f8407d85fc4042c5519e6377f7190b | 4,898 | /* (c) 2014 LinkedIn Corp. 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 applicable law or ag... | 34.985714 | 105 | 0.682115 |
c62fd538f0e59a8cb45a621d649ee845a58df03b | 301 | package cc.mrbird.febs.delivery.mapper;
import cc.mrbird.febs.delivery.entity.DeliveryTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper
*
* @author A stubborn man
* @date 2021-03-05 11:38:07
*/
public interface DeliveryTimeMapper extends BaseMapper<DeliveryTime> {
}
| 20.066667 | 70 | 0.760797 |
0c8f258b5ba081505f903d71cebd31fcb0ec1a5c | 1,658 | package com.cor.v3;
import java.util.ArrayList;
import java.util.List;
class Msg{
String name;
String msg;
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
@Override
public String toString() {
return "Msg{" +
... | 20.469136 | 59 | 0.544029 |
ac4d402992d54292cf698cd17711f2012d481ef5 | 1,495 | //===============================================================================
// © 2015 eWorkplace Apps. ALL rights reserved.
// Main Author: Parikshit Patel
// Original DATE: 4/29/2015
//===============================================================================
package com.eworkplaceapps.platform.cyclicnoti... | 31.808511 | 118 | 0.665552 |
ef5458612a3a43fe89998d04f9f3d8341dc8e747 | 403 | package engine.parameterGetters;
import engine.GameObject;
/**
* @author Ian Eldridge-Allegra
*
*/
public class DoubleGetter extends ParameterGetter<Double> {
public DoubleGetter(GameObjectGetter gameObject, String parameterName) {
super(gameObject, parameterName);
}
@Override
protected Double get(GameObje... | 19.190476 | 73 | 0.774194 |
88a55443e88fc1154a1cdb0c314d2652800eaab0 | 1,813 | package com.networknt.schema;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.networknt.schema.walk.JsonSchemaWalkListener;
import com.networknt.schema.walk.WalkEvent;
import com.networknt.schema.walk.WalkFlow;
import org.junit.jupiter.api.Assertions;
impo... | 36.26 | 98 | 0.720353 |
f5c703de6fc75a02697a85f5b4bcaa388a6ab0fe | 626 | package me.RoboBoy99.Reports.managers;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.entity.Player;
import me.RoboBoy99.Reports.data.PlayerData;
import net.md_5.bungee.api.ChatColor;
public class PlayerManager {
public Map<UUID, PlayerData> PD;
public P... | 22.357143 | 74 | 0.693291 |
f510e74c2fae9b9ca30643c1a8e52ff3bc046e3d | 1,083 | package phonescreen;
import java.util.List;
public class BookingRoom {
public int minimumRooms(List<InterviewSchedule> schedules) {
if (schedules == null || schedules.isEmpty()) {
return -1;
}
int maxRange = 0;
for (int i = 0; i < schedules.size(); ++i) {
... | 25.186047 | 71 | 0.535549 |
2f76e2be02a9f6e4e6cfaf6931dd44ce25735d66 | 5,397 | package com.qingtian.source.list.impl;
import com.qingtian.source.list.MyList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author mcrwayfun
* @version v1.0
* @date Created in 2018/07/17
* @description
*/
public class DoubleLinkedList<E> implements MyList<E> {
public static final Logger l... | 20.837838 | 85 | 0.428386 |
37c55dfbc86e2fedd51cb7ef3c1254540d5b4d1e | 1,559 | package io.smallrye.reactive.messaging.blocking;
import static org.assertj.core.api.Assertions.assertThat;
import static org.awaitility.Awaitility.await;
import org.jboss.logmanager.Level;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.smallrye.reactive.messagi... | 39.974359 | 124 | 0.714561 |
dba75d50940e8f433859043ac921ed0fd6611025 | 2,492 | package com.xing.common.security.util;
import cn.hutool.core.util.StrUtil;
import com.xing.common.core.constant.SecurityConstants;
import com.xing.common.security.service.XingUser;
import lombok.experimental.UtilityClass;
import org.springframework.security.core.Authentication;
import org.springframework.security.core... | 24.431373 | 89 | 0.741172 |
2d0d36762267bb576b627973325c27e463f41b93 | 8,582 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 23.972067 | 213 | 0.6488 |
8ec08731e6a1eef6aac3202da2eb532023a62201 | 1,996 | /**
* Copyright 2018 Simon Heyden
*
* 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 ... | 35.017544 | 161 | 0.726954 |
42e0140722b2cec13cfbb9ca5f248239f65376fd | 717 | package org.spongepowered.asm.launch;
import java.util.*;
import java.io.*;
import net.minecraft.launchwrapper.*;
public class MixinTweaker implements ITweaker
{
public MixinTweaker() {
super();
MixinBootstrap.start();
}
public final void acceptOptions(final List<String> a1, final Fil... | 23.9 | 107 | 0.659693 |
2bef508c0db743f3103ca8fdc9a99a60b941cc24 | 434 | package com.wujiabo.fsd.feign;
import com.wujiabo.fsd.dto.TUser;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
@Component
public class UserFeignFallback implements UserFeign {
@Override
public ResponseEntity<TUser> findByEmail(String email) {
return n... | 22.842105 | 60 | 0.739631 |
9d1257b29c47860ca89c9686939b05c68305eba0 | 1,133 | package com.pku.smart.common.async;
import com.pku.smart.common.mylog.MyLog;
import com.pku.smart.modules.sys.entity.SysOperLog;
import com.pku.smart.modules.sys.mapper.SysOperLogMapper;
import com.pku.smart.utils.AddressUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfram... | 31.472222 | 91 | 0.694616 |
e1c47867f5f975130bc98e22c486ff3256b0ce83 | 2,941 | /*
* The MIT License
*
* Copyright 2017 Raymond Buckley.
*
* 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 use, copy,... | 30.635417 | 85 | 0.646039 |
e870d5fa8a18e72cff7d2d8ec0e655c34fb6eb84 | 661 | import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
@Configuration
public class NotProfileBoundConfig {
@Bean
GenericOne specificToOne() {
return () -> "genericOne";
}
@Bean
... | 18.885714 | 60 | 0.652042 |
67fba639ff29fdd31c0491a81b9e6dfac56771a9 | 1,493 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.marketdata;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import com.google.common.collect.Maps;
import com.opengam... | 24.883333 | 107 | 0.697924 |
bc93018493895ccf76235abdca21a76cbb2756fe | 28,092 | package io.fabric.sdk.android.services.network;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.Closeable;
import java.io.Flushable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURL... | 27.924453 | 213 | 0.608216 |
239f6759e679063a063f597184a5447453464f3a | 1,647 | package com.mcndsj.lobbyShop.managers;
import com.mcndsj.lobbyShop.items.ShopItem;
import com.mcndsj.lobbyShop.shops.Shop;
import com.mcndsj.lobbyShop.shops.ShopListener;
import org.bukkit.entity.Player;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
/**
* Created by Matthew on 4/07/2... | 27.915254 | 79 | 0.595021 |
85d8b703f807c6a3c7f783db84e53ccdb7fefc7e | 652 | package io.neow3j.examples.jsonrpc;
import io.neow3j.types.Hash256;
import java.io.IOException;
import static io.neow3j.examples.Constants.NEOW3J;
public class GetRawTransaction {
public static void main(String[] args) throws IOException {
Hash256 txId = new Hash256("b76bcfd718b2099a43e09b72e624a1e0d7... | 27.166667 | 103 | 0.641104 |
b3d19c7841215e672d752d66f27c59e20bc467da | 369 | package com.x3408.gulimall.member.feign;
import com.x3408.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
@FeignClient("gulimall-coupon") //寻找哪个服务
public interface CouponService {
@RequestMapping("/coupon/coupon/member/lis... | 28.384615 | 62 | 0.766938 |
1e22d79f1ecebfa33abe1acb54d2bed29ca9d719 | 123 | package designpattern.factory;
/**
* @author shanejim
* @description todo
* @date 2018/11/26
*/
public class test {
}
| 12.3 | 30 | 0.674797 |
248304e59362941a91045c193158013986bb5802 | 508 | package com.sofftek.demo;
import com.sofftek.demo.entities.Cliente;
import com.sofftek.demo.entities.TipoDeCliente;
import com.sofftek.demo.service.ClienteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autocon... | 25.4 | 68 | 0.82874 |
180cf4cbe47dadbdbefc6fc0e9408944911884d3 | 4,061 | package utilities;
import burp.IBurpExtenderCallbacks;
import burp.IExtensionHelpers;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import java.awt.*;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URI;
import java.net.URISyntaxException;
import java.nio... | 37.601852 | 126 | 0.573504 |
e132835bc694d1182b0fde777092e7e1e8ccaaa5 | 882 | package io.github.brandonjmitchell.amblur.utils;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
import org.springframework.core.io.ClassPathResource;
public class AmblurTestUtils {
private AmblurTestUtils() {}
public static String ... | 25.2 | 93 | 0.734694 |
0ba049a54478f86eb59affbd4d904b55b8487f29 | 981 | package com.automician.talks.kisspageobjects.diaspora.kiss_widgets_with_driver.model.pageobjects;
import com.automician.talks.kisspageobjects.diaspora.kiss_widgets_with_driver.core.SelenideDriver;
import com.codeborne.selenide.SelenideElement;
import static com.codeborne.selenide.Selenide.$;
/**
* Created by yashak... | 27.25 | 98 | 0.705403 |
c70cc60da4d73c8b5766b3a0f299d54ecfde6f39 | 1,552 | package com.cla.main;
import com.cla.excel.CreadorExcel;
import com.cla.excel.LectorExcel;
import org.apache.log4j.Logger;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
/**
* Created by alaya on 7/09/17.
*/
public class Main {
private final static Logger log = Logger.g... | 23.164179 | 77 | 0.590206 |
e4bc54c5fa73aca3031198120570e7586004b822 | 706 | package alekseybykov.portfolio.whitepappers.repositories;
import alekseybykov.portfolio.whitepappers.entities.SomeDictionary;
import alekseybykov.portfolio.whitepappers.registries.SomeDictionaryRegistry;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import ... | 27.153846 | 111 | 0.798867 |
8bb3dab4a181a5aa5a960eacc0f35471d2083aa8 | 967 | package org.legacycode.mvp.view.table;
import java.util.List;
import javax.swing.table.AbstractTableModel;
import org.legacycode.mvp.entity.User;
public class UserTableModelImpl extends AbstractTableModel implements UserTableModel {
private static final long serialVersionUID = 1L;
private transient List<User> use... | 17.267857 | 86 | 0.708376 |
7d25e16987842d459434240cffc20bb84c3ec74a | 71,763 | package com.aminebag.larjson.parser;
import com.aminebag.larjson.stream.ArrayByteStream;
import com.aminebag.larjson.chardecoder.Utf8CharacterDecoder;
import com.aminebag.larjson.exception.LarJsonException;
import com.aminebag.larjson.stream.ByteStream;
import org.junit.jupiter.api.Test;
import java.io.IOException;
i... | 42.639929 | 152 | 0.638574 |
f3866e4ab74fd6a379b5bcd71565fb53e260adc6 | 1,419 | package xss;
//00642
import java.io.IOException;
import javax.servlet.ServletException;
//import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
//@WebServlet(value="/xss-01/BenchmarkTe... | 28.959184 | 117 | 0.716702 |
2e041c307f3de7b459ee59e2cbb755e97a14026b | 3,580 | package net.fortytwo.ripple.libs.control;
import net.fortytwo.flow.Sink;
import net.fortytwo.ripple.RippleException;
import net.fortytwo.ripple.model.ModelConnection;
import net.fortytwo.ripple.model.NullStackMapping;
import net.fortytwo.ripple.model.Operator;
import net.fortytwo.ripple.model.PrimitiveStackMapping;
im... | 33.773585 | 103 | 0.62067 |
4330cc329c97d89860f5e63f62876f4856dc984e | 40,396 | /*
* 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 ... | 31.339022 | 206 | 0.482944 |
617b338cb1ea4f127185eccf30e1243e09528196 | 4,360 | package com.wang.config.shiro;
import com.wang.config.shiro.jwt.JwtToken;
import com.wang.util.JedisUtil;
import com.wang.mapper.PermissionMapper;
import com.wang.mapper.RoleMapper;
import com.wang.mapper.UserMapper;
import com.wang.model.PermissionDto;
import com.wang.model.RoleDto;
import com.wang.model.UserDto;
imp... | 38.584071 | 130 | 0.696789 |
47c8414e430694b930d6fc02c94076fb93eacef8 | 1,698 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses ... | 24.257143 | 810 | 0.790342 |
00eb8ffe7c0d1baef7d9ddd3f1de419376bb3ff8 | 6,815 | package io.coderails.flutter_speech_to_text;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.speech.RecognitionListener;
import android.speech.RecognizerIntent;
import android.speech.SpeechRecognizer... | 35.680628 | 124 | 0.655172 |
c358dc3836f064a3be48a87fb9717490053c4e62 | 2,177 | package com.fshows.fubei.biz.agent.model.param;
import com.alibaba.fastjson.annotation.JSONField;
import com.fshows.fubei.foundation.model.BaseBizContentModel;
/**
* 商户费率修改请求
*
* @author John (linwei@fshows.com)
* @version $Id ParamMerchantAdjustRate.java, v1.0 2019-07-02 09:24 John Exp$
*/
@SuppressWarnings("un... | 23.159574 | 82 | 0.657786 |
77b7bfbec372e1a61dfaa2a71f74f3711132a342 | 2,950 | package com.defano.wyldcard.part.msg;
import com.defano.hypertalk.ast.model.Value;
import com.defano.hypertalk.ast.model.specifier.PartMessageSpecifier;
import com.defano.hypertalk.ast.model.specifier.PartSpecifier;
import com.defano.hypertalk.util.Range;
import com.defano.wyldcard.WyldCard;
import com.defano.wyldcard... | 32.065217 | 154 | 0.700339 |
be2c3fc1177d32039f664bfdb8bcd86f8ed79a28 | 11,992 | /*
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 agre... | 34.45977 | 184 | 0.755754 |
65ce75bc595e0d8eec9f6e76eed44965aca4c046 | 286 | package magicgis.newssystem.constant;
public class WebConstant {
public static final int PAGE_SIZE = 10;
public static final int PAGE_MAX_SIZE = 15;
public static final int RESULT = 6;
public static final int MAX_RESULT = 10;
public static final int LOGIN_FAILURE_LOCKED = 5;
}
| 23.833333 | 50 | 0.772727 |
6a6d30557fd57d4edde68ed6e9e1881cd975d759 | 2,593 | package se.sundsvall.feedbacksettings.api.exception.mapper;
import static javax.ws.rs.core.Response.Status.BAD_REQUEST;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import javax.validation.Con... | 33.24359 | 123 | 0.810258 |
b2088de86962413fec3b3c6d5d8a88f2a44df0a0 | 2,207 | /*
* Copyright (C) 2012 Information Management Services, Inc.
*/
package com.imsweb.seerutilsgui;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import ja... | 33.953846 | 117 | 0.63797 |
8d41d3b5422134e886034e80a7beea1964f48fa7 | 9,915 | /**
* Copyright 2021. Huawei Technologies Co., Ltd. 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
*... | 34.307958 | 113 | 0.652849 |
ef34f7368a186da8fadfaf082dbe0de6c6677d39 | 1,271 | package ru.hh.oauth.subscribe.apis;
import ru.hh.oauth.subscribe.core.builder.api.DefaultApi20;
import ru.hh.oauth.subscribe.core.extractors.AccessTokenExtractor;
import ru.hh.oauth.subscribe.core.extractors.JsonTokenExtractor;
import ru.hh.oauth.subscribe.core.model.OAuthConfig;
import ru.hh.oauth.subscribe.core.mode... | 41 | 145 | 0.777341 |
a8827bdb83a9ae8fe005bb4125276ff4167f9f88 | 440 | package com.yelp.fusion.client.models;
import java.io.Serializable;
public class ApiKey implements Serializable {
public ApiKey(String apiKey, String tokenType) {
this.apiKey = apiKey;
this.tokenType = tokenType;
}
public String getApiKey() {
return this.apiKey;
}
private ... | 20.952381 | 52 | 0.665909 |
a6f01cf43d5114f4a7cba16563d4470571528ba0 | 2,497 | /*
* #%L
* bdfbox-script
* %%
* Copyright (C) 2015 Arne Haber
* %%
* 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 r... | 27.43956 | 75 | 0.555867 |
43e24d496cdf3c11900e88ff2c44ad72d6a9a0e1 | 843 | package com.lzhlyle.leetcode.recite.no125;
public class ValidPalindrome_TwoPoints {
public boolean isPalindrome(String s) {
char[] arr = s.toLowerCase().toCharArray();
int left = 0, right = arr.length - 1;
while (left < right) {
while (left < right && !valid(arr[left])) l... | 33.72 | 75 | 0.533808 |
4fd766e000ba60bd92660137dda7578769e6e79a | 1,087 | package com.asha.nightowllib.observer.impls;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.res.TypedArray;
import android.os.Build;
import android.view.Window;
import com.asha.nightowllib.observer.IOwlObserverWithId;
/**
* Created by hzqiujiadi on 15/11/9.
* hzqiujiadi as... | 30.194444 | 100 | 0.74333 |
242d7ffb9d82a8afdbe9e53201894acd0ff2dd0e | 129 | package com.projeto.backend.helpdesk.enums;
public enum ProfileEnum {
ROLE_ADMIN,
ROLE_CUSTOMER,
ROLE_TECHNICIAN
} | 14.333333 | 43 | 0.744186 |
e2ad15bb528064d5d15cbb6a3ca8bb2e9c02d4f5 | 5,619 | // Copyright 2018 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.components.browser_ui.widget.chips;
import android.content.Context;
import android.graphics.Rect;
import android.view.View;
import ... | 41.932836 | 98 | 0.689091 |
138334c9300339bbad761ce199d3a7a54bd963ca | 1,939 | package org.rcsb.cif.schema.mm;
import org.rcsb.cif.model.*;
import org.rcsb.cif.schema.*;
import javax.annotation.Generated;
/**
* Data items in the PDBX_NA_STRUCT_KEYWDS category record give details
* about structural features of the NA.
*/
@Generated("org.rcsb.cif.schema.generator.SchemaGenerator")
public clas... | 28.940299 | 82 | 0.643631 |
35538c2ca6e52d6ecb26df7cf6c3a8c246ceac46 | 1,362 | package me.htrewrite.client.mixin.client;
import me.htrewrite.client.HTRewrite;
import me.htrewrite.client.event.custom.entity.HorseSaddledEvent;
import me.htrewrite.client.event.custom.entity.SteerEntityEvent;
import net.minecraft.entity.passive.EntityPig;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepo... | 38.914286 | 86 | 0.732746 |
f88a51fba9978cdb82612b31ba6f07248ab87558 | 885 | package model;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
// Unit tests for IncomeItem class
class IncomeItemTest extends ItemTest {
@BeforeEach
public void runBefore() {
item = new IncomeItem(TEST_DESCRIPT... | 24.583333 | 109 | 0.707345 |
853fc22c245769372fc7a62c3401cacf499287be | 434 | package jp.co.acroquest.endosnipe.perfdoctor.rule;
import java.util.List;
import jp.co.acroquest.endosnipe.perfdoctor.PerformanceRule;
import junit.framework.TestCase;
public class RuleManagerTest extends TestCase
{
public void testGetActiveRules()
throws Exception
{
List<Performa... | 25.529412 | 85 | 0.721198 |
07a0fcb656bf6aaf5c0272eafcde2820bf0c39db | 3,664 | /*
* Copyright 2019 The Bazel Authors. 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 a... | 33.925926 | 82 | 0.668668 |
6737a12317f93f7b6a4ac765347a04d74b78691b | 13,118 | package net.bramp.ffmpeg.builder;
import com.google.common.collect.ImmutableList;
import net.bramp.ffmpeg.options.AudioEncodingOptions;
import net.bramp.ffmpeg.options.EncodingOptions;
import net.bramp.ffmpeg.options.MainEncodingOptions;
import net.bramp.ffmpeg.options.VideoEncodingOptions;
import org.junit.Test;
imp... | 28.393939 | 139 | 0.498475 |
d4b3072419a3cd25da6840356176eee355e212ec | 7,797 | /*
* Copyright 2011-2015 The Trustees of the University of Pennsylvania
*
* 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 requir... | 35.766055 | 127 | 0.577658 |
0eaa591c035fe7e0159313ea6c47fc09c2241beb | 541 | package com.xujiaji.learnmvvm.di;
import com.xujiaji.learnmvvm.view.ui.ProjectFragment;
import com.xujiaji.learnmvvm.view.ui.ProjectListFragment;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
/**
* author: xujiaji
* created on: 2018/6/12 13:44
* description:
*/
@Module
public abstract c... | 23.521739 | 65 | 0.802218 |
c1101338e8d0a10556111244616cac4bf9a7f5d2 | 1,412 | package ru.job4j.chess;
public class Board {
static Figure[] figures;
static int index = 0;
public Board(Figure[] figures) {
this.figures = figures;
}
boolean move(Cell source, Cell dist) throws ImposibleMoveException, OccupiedWayException, FigureNotFoundException {
Figure figure ... | 28.24 | 119 | 0.513456 |
86916e043dcc9476164d4df2348a1bc2fa9ea91c | 403 | package com.houarizegai.oca.ch4;
public class StaticDemo {
static int x = 10;
int y;
static void greeting() {
System.out.println("Hello");
}
public static void main(String[] args) {
StaticDemo obj = new StaticDemo();
obj.greeting();
obj = null;
obj.greetin... | 19.190476 | 44 | 0.565757 |
1bc4daba25a88711635d46b2c3e2d8128afdc408 | 473 | package com.stevesun.solutions;
/**
* Implement pow(x, n).
*/
public class PowXN {
public double myPow(double x, int n) {
if(n == 0)
return 1;
if( n == Integer.MIN_VALUE)
{
++n;
n = -n;
x = 1/x;
return x * x * myPow( x*x, n/2 );... | 18.192308 | 64 | 0.369979 |
3c7c3130eee0dc4604d04025849d2a0ce45b258e | 169 | package my.mycompany.myapp.service;
import my.mycompany.myapp.domain.User;
public interface IUsersService {
public User insertUser(User newUser, String password);
}
| 18.777778 | 55 | 0.798817 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.