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 |
|---|---|---|---|---|---|
6c325351c5105769d403d425867950b6a86fb8fd | 1,399 | package com.example.demo.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import com.example.demo.model.en... | 24.54386 | 72 | 0.786276 |
9af1a47aa2c092924b30da92e3a3a9d0578a9587 | 3,105 | package de.sormuras.javacompilerscriptengine;
import java.io.BufferedReader;
import java.io.Reader;
import java.util.stream.Collectors;
import javax.script.AbstractScriptEngine;
import javax.script.Bindings;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptContext;
import j... | 35.284091 | 100 | 0.718519 |
601b04bda3627ef03d79270d51dab067d0bd5d39 | 5,087 | /**
*
*/
package com.perforce.p4java.tests.dev.unit.features111;
import com.perforce.p4java.client.IClient;
import com.perforce.p4java.core.file.FileSpecBuilder;
import com.perforce.p4java.core.file.IFileAnnotation;
import com.perforce.p4java.core.file.IFileSpec;
import com.perforce.p4java.option.server.GetFileAnnot... | 43.853448 | 119 | 0.673875 |
266a624b4372c25b0037020d3881bd8405eb69c4 | 1,048 | package com.github.et118.El_Macho.Events;
import com.github.et118.El_Macho.Commands.Music.MusicManager;
import discord4j.core.event.domain.guild.GuildCreateEvent;
import discord4j.core.event.domain.guild.GuildDeleteEvent;
import reactor.core.publisher.Mono;
public class MusicEvent extends Event{
public MusicEvent... | 36.137931 | 136 | 0.723282 |
36f5daeba867f75a9152f471e7e200eccfddf2fe | 6,760 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INS... | 37.142857 | 131 | 0.736391 |
fd9998e1092622e77ceb445a0ef282a7ecf05c7a | 3,119 | package de.budschie.bmorph.capabilities.common;
import java.util.Optional;
import java.util.UUID;
import java.util.function.Supplier;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import de.budschie.bmorph.capabilities.common.CommonCapabilitySynchronizer.CommonCapabilitySynchron... | 27.848214 | 198 | 0.738378 |
b0c97b33af7e437ca2a140aec32af0b9a7abc181 | 517 | package me.echeung.moemoekyun.client.model;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter
@Builder
public class User {
private String uuid;
private String email;
private String username;
private String displayName;
private String avatarImage;
private String bannerI... | 20.68 | 43 | 0.738878 |
dd900a34e6066242e82b690bca299f085c49903c | 11,395 | package u.aly;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.zip.GZIPInputStream;
import java.util.zip.InflaterInputStream;
im... | 37.117264 | 139 | 0.637122 |
e651a3de3ec38f499a08834960b4a3555db249a4 | 1,392 | /*******************************************************************************
* Copyright (c) 2005, 2009 SAP. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanie... | 30.26087 | 88 | 0.611351 |
1693e587082da308a25a01fab1474112f9b980bc | 1,029 | package com.gempukku.swccgo.logic.actions;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.SwccgGame;
import com.gempukku.swccgo.logic.timing.Effect;
/**
* An action that does not have a source card. This is used for game actions, such as performing the phases
* of a turn, performing t... | 24.5 | 107 | 0.626822 |
f4190308e291612e342bd3897f6546424fd73358 | 6,563 | package palisades.lakes.dynafun.java;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import clojure.lang.IFn;
/** Utilities for 'immutable' maps.
*
* @author palisades dot lakes at gmail dot com
* @since 2017-0... | 32.330049 | 66 | 0.445985 |
bee60c4cc31b2d5c335bed0c1ffd81eadeb2ccc7 | 1,124 | package String;
/**
* Author - archit.s
* Date - 05/10/18
* Time - 12:51 AM
*/
public class CountAndSay {
public String countAndSay(int A) {
if(A == 1){
return "1";
}
StringBuilder s = new StringBuilder("11");
int count = 0;
if(A == 2){
return... | 21.207547 | 61 | 0.41637 |
a787de4622c583679d0b9b7adc8e11ffb26fa40c | 637 | package com.oninvoice.models.api;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.oninvoice.models.entities.Person;
public interface IPersonApi {
/**
* This method returns a Page<Person>
*
* @return
*/
public Page<Person> findAll(Pageable pageable);... | 16.763158 | 48 | 0.675039 |
3c725dac42d0aec65d296dd541bd4fcba7b5c7f3 | 2,719 | package com.mongodash.dao.mapper;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.mongodash.Config;
import com.mongodash.dao.DBObjectMapper;
import com.mongodash.model.Backup;
import com.mongodb.BasicDBList;
import com.mongodb.BasicDBObject;
import com.m... | 38.842857 | 83 | 0.757999 |
ba787f5895dfc41e5bad4379bedd53b000c3f118 | 2,935 | package com.lulu.main;
import com.lulu.main.java.models.reporters.MonitorOutputDataAdapter;
import com.lulu.main.java.models.reporters.MonitorOutputSignal;
import org.json.simple.JSONObject;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.HashMap;
import static org.hamcrest.CoreMatchers.is;
imp... | 36.6875 | 90 | 0.583646 |
72fca94c6bbf9be478ea2ac27b479fd605fc16ee | 4,272 | package com.noah.solutions.system.service.impl;
import com.noah.solutions.common.exception.CodeAndMsg;
import com.noah.solutions.common.exception.CustormException;
import com.noah.solutions.common.shiro.EndecryptUtil;
import com.noah.solutions.common.utils.BeanUtils;
import com.noah.solutions.system.entity.User;
impor... | 37.80531 | 113 | 0.545412 |
031393635516bcb4314be8f7ca4e4792ac722cca | 21,785 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.contrib.jmxmetrics.target_systems;
import static org.assertj.core.api.Assertions.assertThat;
import io.opentelemetry.contrib.jmxmetrics.AbstractIntegrationTest;
import io.opentelemetry.proto.metrics.v1.Metri... | 39.537205 | 143 | 0.513289 |
ea3c5c402a5ed45500e60ee180d07dac4e85aeec | 2,919 | package com.example.orderservice.controller;
import com.example.orderservice.client.InventoryClient;
import com.example.orderservice.dto.OrderDTO;
import com.example.orderservice.model.Order;
import com.example.orderservice.repository.OrderRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.S... | 44.907692 | 121 | 0.741692 |
7b23e0f8d62c1a74bb2469102b062656fb1ee09c | 993 | package ru.mydesignstudio.database.metadata.extractor.output;
import java.util.Collection;
import java.util.Iterator;
import java.util.Optional;
import com.google.common.base.Preconditions;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Component;
import ru.mydesignstudio.database.meta... | 32.032258 | 85 | 0.763343 |
7286428732f02975766cf0d9c4b3f87031a88611 | 42,191 | /*
* 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... | 36.880245 | 100 | 0.683843 |
9da4e65ed63d3a0c9076150023660025defb57b4 | 329 | package ru.job4j.list;
/**
* LIFO - last input first output.
* @author Ayup Bariev.
* @since 30.01.2018.
*/
public class SimpleStack<T> extends SimpleQueue<T> {
/**
* Retrieves and removes the last element of this deque.
* @return element.
*/
public T poll() {
return getRemoveTail();... | 19.352941 | 60 | 0.607903 |
7b8e848a7cc52f9c73ae6104406458c9fad1c554 | 2,758 | package com.food.ordering.zinger.constant;
public class ApiConfig {
public static final String EMPTY_QUOTES = "";
public static class PlaceApi {
public static final String BASE_URL = "/place";
public static final String insertPlace = EMPTY_QUOTES;
public static final String getAllPlace... | 45.966667 | 106 | 0.683466 |
5174a916a45507811a4acb25b2528020c02f1849 | 4,920 | package in.aaho.android.ownr.profile;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import com.android.volley.VolleyError;
imp... | 36.176471 | 113 | 0.61626 |
d941f968ffac06fa651c2be818a5f7622733f01b | 8,069 | /*
* #%L
* ImgLib: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2013 Stephan Preibisch, Tobias Pietzsch, Barry DeZonia,
* Stephan Saalfeld, Albert Cardona, Curtis Rueden, Christian Dietz, Jean-Yves
* Tinevez, Johannes Schindelin, Lee Kamentsky, Larry Lindsey, Grant Har... | 27.824138 | 139 | 0.66142 |
891e359033f2671b62fa29731bf57b793510ec18 | 1,783 | /********************************************************************************
* generated by de.acegen 1.6.4
********************************************************************************/
package com.anfelisa.box.data;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import de.acegen.IDa... | 29.229508 | 107 | 0.766685 |
b0025f1da69b9dbf19b11e9e5680377f424c64a0 | 11,111 | package me.shaftesbury.utils.functional;
import me.shaftesbury.utils.functional.monad.Option;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.commons.lang3.tuple.Triple;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
... | 33.068452 | 144 | 0.552876 |
bf0a0f77dae20a69c4fe96a4227068f818c90e7d | 158 | package com.mafia.core.util;
public abstract class MafiaUtil {
public static boolean isOnlineMode()
{
// TODO
return false;
}
}
| 14.363636 | 40 | 0.613924 |
898e97791174c7869a5edb34d697e7ce7672f8bb | 1,425 | /*
* Extremely Compiler Collection
* Copyright (c) 2015-2020, Jianping Zeng.
*
* Licensed under the BSD License version 3. Please refer LICENSE
* for details.
*/
package backend.mc;
import java.io.PrintStream;
/**
* This represents an "assembler immediate". In its most general
* form, this can hold "Symbo... | 26.388889 | 77 | 0.674386 |
5809f3c91c98f252dd870d435b0d2c503d346c62 | 3,951 | package pro.gravit.simplecabinet.web.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.stereotype.Service;
import pro... | 29.931818 | 98 | 0.665654 |
e4d517fdeace1b24d6f5a2c89aaf3eafb653e3aa | 3,555 | package com.runcoding.learn.algorithm.uva; /**
* In positional notation we know the position of a digit indicates the weight of that digit toward the
* value of a number. For example, in the base 10 number 362 we know that 2 has the weight 100
* , 6
* has the weight 101
* , and 3 has the weight 102
* , yielding t... | 39.065934 | 111 | 0.674543 |
74aadc0451759d808b912d136f69a25c81f56aea | 1,232 | /**
* 项目名称:tools
* 项目包名:com.songfayuantools.thread.concurrent.demo05
* 创建时间:2018年1月22日下午2:23:43
* 创建者:Administrator-宋发元
* 创建地点:杭州
*/
package com.songfayuantools.thread.concurrent.demo05;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
/**
* 描述: 实现一个连环炸弹,2秒后爆炸一次,3秒后爆炸一次,如此循环下去。
*
... | 22.4 | 78 | 0.696429 |
5ef303846d60b6efd9c950b8aeec9087b292c887 | 4,256 | import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* The path weight of a node is the sum of the integers on the unique path
* from root to that node.
*
* Determine if there exists a leaf whose path weight equals the given targetSum
*
* Approach:
*
... | 28.373333 | 81 | 0.539239 |
27d911e3d7bd3c9fd3c46e5f2a9f35e6ef15b588 | 1,858 | /**
* Project for the "Distributed Algorithms" course
* Academic Year: 2015/2016
* Zen Roberto, Student ID: 171182.
* Bof Michele, Student ID: NaN.
*/
package com.distributedalgorithms.project;
import java.util.Vector;
class ProcessVertex implements Comparable<ProcessVertex>{
private String peer0 = "";
... | 22.658537 | 71 | 0.595802 |
1e6488fa57c92d9f6e30b39e77d5d6217a528907 | 4,386 | /*
* Copyright (c) 2017, Bart Hanssens <bart.hanssens@bosa.fgov.be>
* 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 noti... | 23.454545 | 80 | 0.681259 |
fe203680431933e668c65d9ee0f8c3cfa19673df | 1,031 | package pl.panryba.mc.sponge.enchant;
import pl.panryba.mc.sponge.interfaces.EnchantSelector;
import pl.panryba.mc.sponge.interfaces.FishItemEnchantment;
import pl.panryba.mc.sponge.interfaces.FishItemStack;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
public class ... | 32.21875 | 106 | 0.71484 |
1282211d8e79273ea0c65b85ed2d5ba6b11fd88c | 2,271 | /**
* Copyright (c) 2015 See AUTHORS file
* 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 and... | 49.369565 | 758 | 0.778512 |
20fea997a8147fc995ccc4049e805ce9e81bb47a | 3,131 | package com.kiselev.enemy.network.vk.api.request;
import com.kiselev.enemy.network.vk.api.model.Profile;
import com.vk.api.sdk.client.Utils;
import com.vk.api.sdk.objects.users.Fields;
import java.util.Collections;
import java.util.List;
/**
* Query for Users.get method
*/
public class ProfileRequest extends ApiRe... | 36.406977 | 347 | 0.657617 |
40cc64975e22ac12cc83a85de70921492dd85252 | 1,530 | import java.util.HashSet;
import java.util.Set;
class NaturalNumber {
private int naturalNumber;
public NaturalNumber(int naturalNumber) {
if (invalidNaturalNumber(naturalNumber)) {
throw new IllegalArgumentException(
"You must supply a natural number (positive integer)",
new Throwa... | 27.321429 | 85 | 0.688235 |
754db965844a69c8ca12b410c8d2dbfa7578fd65 | 711 | package com.algaworks.curso.jpa2.service;
import java.io.Serializable;
import javax.inject.Inject;
import com.algaworks.curso.jpa2.dao.MotoristaDAO;
import com.algaworks.curso.jpa2.modelo.Motorista;
import com.algaworks.curso.jpa2.util.jpa.Transactional;
public class CadastroMotoristaService implements Serializable... | 24.517241 | 77 | 0.767932 |
6f2bbd3b3d03acf05656ee081cfc793ece1a332a | 5,031 | package aux;
import java.io.*;
/**
* Created with IntelliJ IDEA.
* User: miroslav
* Date: 6/21/13
* Time: 11:58 AM
*/
public class AnalyzeCSV {
private String file_path;
private int file_length;
private int max_width = Integer.MIN_VALUE;
private int min_width = Integer.MAX_VALUE;
public... | 26.478947 | 107 | 0.543431 |
c10d854a6f3b6741dbb4efc7b22f689f6a1ba46d | 420 | package com.classroom.telus.international.dsu.javacollections.bo;
import com.classroom.telus.international.dsu.javacollections.vo.Animal;
/**
*
* @author geovanni.santos
*/
public interface AnimalInterface {
public void createAnimal(Animal animal);
public Object readAllAnimal();
public... | 21 | 72 | 0.72381 |
6f8c814bc49a81ee852fb63143c7c95f747dfc58 | 2,680 | package www.dander.com.menutestdemo;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.... | 27.070707 | 96 | 0.593657 |
5dc5927aab215beedb94fba0f440ff4ecaf194f0 | 1,004 | package nyla.solutions.commas.remote.partitioning;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Collection;
import nyla.solutions.commas.CommandFacts;
public interface CommasRemoteRegistry<KeyType,LocationType> extends Remote
{
/**
*
* @param key the routing key
* @param commandF... | 22.818182 | 81 | 0.77988 |
372baac369c462d774e480c9a223e0263bf482af | 2,845 | package org.nrg.containers.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
import org.nrg.framework.orm.hibernate.AbstractHibernateEntity;
import javax.persistence.Entity;
import java.util.Objects;
@Entity
public class CommandEventMapping extends AbstractHibern... | 31.966292 | 125 | 0.679789 |
1f6faa5653c8ac0018c864e0d9aa9317d35aa066 | 724 | /*
* Project Workday Connector
* (c) 2019-2020 VMware, Inc. All rights reserved.
* SPDX-License-Identifier: BSD-2-Clause
*/
package com.vmware.ws1connectors.workday.web.resources;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoA... | 24.133333 | 69 | 0.767956 |
393b9860159fdfd9130480bad1ed7c8b7544b6d0 | 1,072 | package com.uprint.android_pack.cloudprint4androidmanager.utils;
import android.content.Context;
import android.content.pm.PackageManager;
import android.util.Log;
/**
* Created by zhangxiaang on 15/11/27.
* 获取本地app版本的工具
*/
public class CPackageManageUtils {
public static int getAppVersion(Context context) {
... | 32.484848 | 133 | 0.66791 |
3c186978871d31427b1e149abfa69a10bbd9758a | 472 | package org.onetwo.common.convert;
public interface TypeConvert<T> {
/****
*
* @author weishao zeng
* @param source
* @param componentType
* @return 如果source为null,则返回配置的默认值
*/
public T convertNotNull(Object source, Class<?> componentType);
/****
* 当目标类型为基本类型时,如果source为null,则返回配置的基本类型的默认值
* 否则,返回... | 18.88 | 64 | 0.684322 |
7719e6da929726c8023e30f952f0792e7835d5db | 172 | package com.example.webappboilerplate.security;
public final class Roles {
public static final String USER = "USER";
public static final String ADMIN = "ADMIN";
}
| 24.571429 | 47 | 0.738372 |
d3f238fd07346054290aa433ea836785f84d90d3 | 5,555 | package hu.arheu.gds.message.data.impl;
import hu.arheu.gds.message.data.EventSubResultHolder;
import hu.arheu.gds.message.util.*;
import org.msgpack.core.MessageBufferPacker;
import org.msgpack.core.MessageUnpacker;
import org.msgpack.value.Value;
import org.msgpack.value.ValueType;
import java.io.IOException;
impor... | 35.608974 | 118 | 0.618722 |
d8cfb130653c5dcbb231c43b0f35c2a7a7a8566a | 259 | package ru.otus.homework.domain.quiz;
import lombok.Data;
import ru.otus.homework.domain.user.User;
import java.util.ArrayList;
import java.util.List;
@Data
public class Quiz {
private User user;
private List<Answer> answers = new ArrayList<>();
}
| 18.5 | 53 | 0.741313 |
fc78603cbbf9e78fa4afc78ed07c787be54806e6 | 1,061 | package org.spongepowered.asm.mixin.transformer;
import org.spongepowered.asm.lib.*;
class MixinPostProcessor$1 extends ClassVisitor {
final /* synthetic */ MixinPostProcessor this$0;
MixinPostProcessor$1(final MixinPostProcessor a1, final int a2, final ClassVisitor a3) {
this.this$0 = a1;
... | 32.151515 | 121 | 0.606975 |
619130cd27da2ed1a95914e8deb5dc9d51c0fa49 | 2,733 | /*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 40.791045 | 96 | 0.786315 |
6290fff20bff565cdd9e0973a4186c7c9a064295 | 1,182 | package gov.nih.nci.evs.reportwriter.core.model.evs;
public class EvsSynonym {
private String code;
private String label;
private String termName;
private String termGroup;
private String termSource;
private String sourceCode;
private String subSourceName;
public String getCode() {
return code;
}
public v... | 21.490909 | 53 | 0.741117 |
2e5b5845da1b4def862ee9b452d33652c70c4bd0 | 1,915 | /*
* 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 ... | 35.462963 | 81 | 0.749869 |
b7ec01eeb057f6b66d9556a0b90f63888ad1bbe9 | 3,210 | /*
* JaamSim Discrete Event Simulation
* Copyright (C) 2013 Ausenco Engineering Canada 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/LICE... | 33.092784 | 138 | 0.747975 |
a4905d590f740775f8063f9a739a0e870424c131 | 2,915 | package io.aftersound.weave.service.request;
import io.aftersound.weave.common.NamedType;
import io.aftersound.weave.service.message.Message;
import io.aftersound.weave.service.message.MessageRegistry;
import io.aftersound.weave.service.message.Messages;
import io.aftersound.weave.service.metadata.param.Enforcement;
i... | 31.684783 | 100 | 0.591081 |
d89513a0a3c4f6f187722e7684d774788d94767d | 2,766 | /*
* -----------------------------------------------------------------------
* Copyright 2012 - Alistair Rutherford - www.netthreads.co.uk
* -----------------------------------------------------------------------
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 29.741935 | 75 | 0.541938 |
c838cc7fda4e271a19fa4ca785ddb5d14adf5a37 | 385 | package com.example.demo.observer.mouse;
import com.example.demo.observer.core.Event;
/**
* Created by czy0218 on 2020/3/9.
*/
public class MouseEventCallback {
public void onClick(Event e) {
System.out.println("单机后触发");
System.out.println("==单击事件==\n" + e);
}
public void onDoubleClick(... | 21.388889 | 45 | 0.625974 |
f18b61ce40784333db948a150c628a3ef0f18912 | 1,629 | package com.firebase.authwrapper.resultactivity.types.google;
import com.firebase.authwrapper.providers.types.GoogleProvider;
import com.firebase.authwrapper.resultactivity.common.ActivityInvoker;
import com.google.android.gms.common.api.GoogleApiClient;
/**
* <p>
* This class is the facebook implementation of cla... | 27.610169 | 76 | 0.726826 |
5d48cc4a2cae8b74bca37b757e3c06e4654cd41b | 3,888 | package com.google.gson;
import com.google.gson.internal.Excluder;
import com.google.gson.internal.bind.TypeAdapters;
import java.lang.reflect.Type;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.u... | 50.493506 | 403 | 0.744084 |
8482e514867a42f227a83a4deb1ae72b0dccee7a | 3,410 | /*
* Isilon SDK
* Isilon SDK - Language bindings for the OneFS API
*
* OpenAPI spec version: 5
* Contact: sdk@isilon.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.... | 24.357143 | 125 | 0.678299 |
81972a5791659c2bd7c39ac1f4b156e6cb5d61e0 | 3,537 | package br.com.basis.madre.madreexames.service;
import br.com.basis.madre.madreexames.domain.Sinonimo;
import br.com.basis.madre.madreexames.repository.SinonimoRepository;
import br.com.basis.madre.madreexames.repository.search.SinonimoSearchRepository;
import br.com.basis.madre.madreexames.service.dto.SinonimoDTO;
im... | 33.056075 | 149 | 0.705683 |
2d4453939fb8879e8d82f0e7cbfb4dcaa928cb8e | 2,165 | package gov.hhs.onc.dcdt.crypto.certs.impl;
import gov.hhs.onc.dcdt.beans.impl.AbstractToolBean;
import gov.hhs.onc.dcdt.beans.utils.ToolBeanFactoryUtils;
import gov.hhs.onc.dcdt.crypto.certs.CertificateInfo;
import gov.hhs.onc.dcdt.crypto.certs.CertificateValidator;
import gov.hhs.onc.dcdt.crypto.certs.CertificateVal... | 45.104167 | 155 | 0.8097 |
d11061a7d113cbbb10cb1b0f696f0ffbcc3d92a5 | 582 | package com.fangm.demo.crashhandler;
import android.app.Application;
import com.fangm.app.crashhandler.CrashHandler;
import com.fangm.app.crashhandler.impl.CrashLogServiceImpl;
public class MainApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
CrashHandler... | 29.1 | 64 | 0.666667 |
c97e486bec4bfe88c00fd14eb42676b2d0a42ef3 | 4,448 | package data;
import java.time.LocalDate;
import ui.utils.IListable;
public class Client extends Personne implements IListable {
private int id;
private String adresse;
private String numeroPermis;
private String numeoTelphone;
private String courriel;
private String note;
private LocalDate dateDeNaiss... | 23.659574 | 87 | 0.627473 |
59771d318b5b383cbd59cd3c05001af66f018933 | 5,880 | package uk.gov.ida.notification.eidassaml.saml.validation;
import com.google.common.base.Strings;
import org.opensaml.core.xml.XMLObject;
import org.opensaml.saml.common.SAMLVersion;
import org.opensaml.saml.saml2.core.AuthnRequest;
import org.opensaml.security.credential.Credential;
import org.opensaml.xmlsec.signatu... | 48.595041 | 143 | 0.726361 |
1fb2becf07f5212fb06e78cee75f56fb7e56806f | 1,303 | package org.impala.javaapi;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.common.*;
//import com.hive.jdbcutils.HiveConnectionUtils;
public class ImpalaDML
{
... | 25.057692 | 79 | 0.578665 |
cb812770e1636768c95e7c6f3332abcb71654ba5 | 979 | package se.umu.cs.ads.fildil.proto.utils;
import com.google.protobuf.ByteString;
import com.google.protobuf.GeneratedMessageV3;
import se.umu.cs.ads.fildil.proto.autogen.Chunk;
/**
* Created by eeemil on 2017-01-09.
*/
public class ChunkUtils {
public static final int FLAG_CHUNK_NO_EXISTS = -1;
public stat... | 27.194444 | 58 | 0.664964 |
b6b4a8c2dbcc02fe45f550e7db17d2264adbb426 | 1,128 | package com.deiser.jira.dc.listener;
import com.atlassian.event.api.EventListener;
import com.atlassian.event.api.EventPublisher;
import com.atlassian.plugin.event.events.PluginDisabledEvent;
import com.atlassian.plugin.event.events.PluginEnabledEvent;
import org.apache.log4j.Logger;
import org.springframework.beans.... | 31.333333 | 95 | 0.765957 |
4612a72a7581dc2c88884830272aeb9843aac8ce | 1,926 | /*-
* Copyright (C) 2011, 2017 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 30.571429 | 96 | 0.718069 |
922d69561560b4404f94cbcdfb3b079b3e26dabe | 4,594 | /*
* 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.264957 | 166 | 0.774924 |
f0aa4d1d3a0a35f82414d202f28674cefd5ff181 | 3,730 | package com.javamokey.adminxx.modules.sys.controller;
import com.javamokey.adminxx.common.annotation.SysLogAnnotation;
import com.javamokey.adminxx.common.util.Constant;
import com.javamokey.adminxx.common.util.R;
import com.javamokey.adminxx.modules.sys.entity.SysDept;
import com.javamokey.adminxx.modules.sys.entity... | 25.37415 | 86 | 0.634316 |
1ace3371a719bb9d055592ff92e664d52347f752 | 674 | package recaf.paper.demo;
import java.util.Iterator;
import java.util.function.Function;
import java.util.function.Supplier;
import java.util.stream.IntStream;
import recaf.paper.stm.MuJava;
public interface Times<R, S> extends MuJava<R, S> {
static Iterable<Integer> range(Integer n) {
return new Iterable<Integer... | 21.0625 | 54 | 0.683976 |
ac709c6b9a09bdb0daf0ffcfd6175818cc8afe8c | 9,447 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 39.3625 | 133 | 0.722028 |
e8de9bba7b68529f2e8889022a22a5156cb5cee0 | 2,558 | package net.exacode.spring.social.connect.mongo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.encrypt.TextEncryptor;
import org.springframework.social.connect.Connection;
import org.springframework.social.connect.ConnectionData;
import org.springframework.so... | 36.028169 | 73 | 0.794371 |
05b52dee80ebd753f9ba8e6c190ebf0bfa61f113 | 1,216 | package com.vaadin.tests.components.combobox;
import com.vaadin.data.Item;
import com.vaadin.server.Resource;
import com.vaadin.server.ThemeResource;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.ComboBox;
public class ComboBoxUndefinedWidthAndIcon extends TestBase {
@Override
protected vo... | 32.864865 | 166 | 0.657895 |
173d1b81a20126a298f315b780d5fb5076d60847 | 134 | package net.ronasoft.wsfamilytracking.config.auth;
public interface FirebaseService {
TokenInfo parseToken(String idToken);
}
| 14.888889 | 50 | 0.791045 |
22cb726ad57e32649a3dbf345152709d52dee6ed | 4,776 | package com.me.webapi.service;
import com.me.webapi.pojo.ErrorMessage;
import com.me.webapi.pojo.User;
import com.me.webapi.repository.UserRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
impo... | 36.458015 | 92 | 0.644263 |
58ed7b5baf54c2dc4fb34fb81f426fb4410cf15d | 2,233 | // -*- mode: java; c-basic-offset: 2; -*-
// Copyright © 2018 Massachusetts Institute of Technology, All rights reserved.
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.runtime;
import com.google.appinventor.components.runtime.... | 27.9125 | 86 | 0.68249 |
0aabc10870dbb303d58f1b063369a5f64ea9778f | 5,473 | package us.ihmc.avatar.roughTerrainWalking;
import static org.junit.Assert.assertTrue;
import javax.vecmath.Point3d;
import javax.vecmath.Quat4d;
import org.junit.After;
import org.junit.Before;
import us.ihmc.avatar.DRCObstacleCourseStartingLocation;
import us.ihmc.avatar.DRCStartingLocation;
import us.ihmc.avatar... | 37.744828 | 143 | 0.681345 |
494c4cbf940acebae7ab25e354839307c33cbdcf | 1,444 | package yhao.micro.service.surety.business.apilist.model.twiceRepay;
import io.swagger.annotations.ApiModelProperty;
import yhao.infra.common.model.Entity;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description:
* @Created by ql on 2019/3/2 14:26
* @Version: v1.0
*/
public class TwiceRepayBilling... | 20.628571 | 68 | 0.75554 |
334b8d6f41c858d23fdc55d1ceae85319da1b0cd | 923 | package com.blalp.chatdirector.common.modules.replacement;
import com.blalp.chatdirector.core.model.Context;
import com.blalp.chatdirector.core.model.IItem;
import lombok.Data;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.NoArg... | 27.969697 | 91 | 0.68039 |
2be30722866bbd734a71dd53f0e771640ea44944 | 305 | package org.tain.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.tain.domain.TbResult;
@RepositoryRestResource
public interface TbResultRepository extends JpaRepository<TbResult, Long>{
}
| 27.727273 | 76 | 0.852459 |
1931cc09655831110fd87be26b4aa6e2fee2b24e | 6,840 | /*
* Licensed to ObjectStyle LLC under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ObjectStyle LLC licenses
* this file to you under the Apache License, Version 2.0 (the
* "License"); you may not u... | 34.371859 | 128 | 0.64883 |
706ff27f23dfd612c1f87f77cbcffeb418467da6 | 5,050 | package net.diogomarques.wifioppish;
import net.diogomarques.utils.CountDownTimer;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManag... | 27.595628 | 99 | 0.726139 |
6ff485f179db3a86814dad1e1956224231c0ecd8 | 1,591 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 28.410714 | 105 | 0.639849 |
d2182e02ce4b5f833740b527dd10518b8c962184 | 7,109 | /*
* Copyright (c) 2021 Silverwolfg11
*
* 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, modify, merge, publi... | 30.642241 | 94 | 0.544802 |
f41a73c708cef55d53645eb19568c5988a902543 | 674 | package org.apache.http.impl.auth;
import org.apache.http.annotation.Contract;
import org.apache.http.annotation.ThreadingBehavior;
import org.apache.http.auth.AuthScheme;
import org.apache.http.auth.AuthSchemeFactory;
import org.apache.http.auth.AuthSchemeProvider;
import org.apache.http.params.HttpParams;
import org... | 29.304348 | 81 | 0.793769 |
f9aecff7994f13afdbea402f9e95c1ca1600da1f | 373 | package microhttp;
import java.util.function.Consumer;
/**
* HTTP request handler.
*/
public interface Handler {
/**
* Handle HTTP request.
* The provided callback object has a reference to internal connection state.
* The callee MUST invoke the callback once and only once.
*/
void hand... | 20.722222 | 81 | 0.69437 |
5c9f1595969c39d14b99cd0464bbd068376e4ad7 | 5,851 | package de.kekru.codeanalysisbb.reporter.spotbugs;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import com.cdancy... | 47.185484 | 269 | 0.742779 |
c38d5240336f5719cb24c80fa14b5c2dbcd0f4ae | 3,443 | package bigjun.iplab.ReversePolish;
/**
* 逆波兰表达式(包括将算术表达式转化成逆波兰表达式和计算逆波兰表达式的值)
*/
public class ReversePolish {
// 将算术表达式转换成后缀表达式
public String convertToPostfix(String expression){
LinkStack S = new LinkStack(); // 初始化一个运算符栈
String postfix = new String(); // 初始化一个用于存放输出的后缀表达式的字符串
for (int i = 0; i <... | 28.932773 | 81 | 0.530351 |
01b9956e062f040e90b82fc3190c575803fa097d | 509 | package ru.shestakov.models;
/**
* Init class for "find by name" operation
*/
public class FilterByName implements Filter {
final private String name;
/**
* Initializes a newly created filter by name
* @param name
*/
public FilterByName(String name) {
this.name = name;
}
... | 18.851852 | 65 | 0.585462 |
0e65441703fcec8d23958cece3893448c69e580f | 3,775 | /*
* Copyright 2009 Kantega AS
*
* 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... | 38.131313 | 147 | 0.645298 |
0dcac0e9c11c36f91d4210bcd584d412e549f26a | 578 | package io.mosaicnetworks.babblesweeper;
import android.content.Context;
import android.net.wifi.WifiManager;
import android.text.format.Formatter;
import android.util.Log;
import static android.content.Context.WIFI_SERVICE;
public class Utils {
public static String getIPAddr(Context context) {
WifiMana... | 30.421053 | 102 | 0.747405 |
c8b96cf39fa3c140b311755d4982f46a806c4a67 | 4,019 | /*
* ******************************************************************************
* Copyright 2019 Korea University & Open Networking Foundation
*
* 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 t... | 38.644231 | 89 | 0.573775 |
ad98a7ea2121430fa20b390a0b49c0978a951d0e | 4,154 | /*
* Copyright (c) 2006, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | 38.82243 | 105 | 0.735195 |
6d6e3af41c35ed4f18c39c2cbd7e257aad7f6984 | 1,477 | import com.github.theholywaffle.lolchatapi.ChatServer;
import com.github.theholywaffle.lolchatapi.FriendRequestPolicy;
import com.github.theholywaffle.lolchatapi.LolChat;
import com.github.theholywaffle.lolchatapi.listeners.ChatListener;
import com.github.theholywaffle.lolchatapi.riotapi.RateLimit;
import com.github.th... | 30.770833 | 70 | 0.703453 |
a3618c2e5190cd8d043418e4b518c6b96b78eaf4 | 1,122 | /**
* 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 agreed to in writing,... | 28.769231 | 87 | 0.707665 |
2f929e5ed2b45121b34c23ae3692577e150eb456 | 569 | package com.fr.swift.query.aggregator.funnel;
import java.util.List;
/**
* This class created on 2018/12/13
*
* @author Lucifer
* @description
*/
public interface ITimeWindowFilter {
void init();
void setDictSize(int size);
/**
* 添加一条明细记录
* @param event 事件
* @param timestamp 时间戳
... | 16.735294 | 98 | 0.616872 |
60a44e345b736dd6f007325ecc9618ce021a2b21 | 3,634 | /**
* Copyright 2012-2018 The Feign 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 agree... | 35.627451 | 100 | 0.727023 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.