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 |
|---|---|---|---|---|---|
b98c3fe45760983480657437bd76f809da0e1d16 | 5,784 | package de.xstampp.service.project.service.data;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import de.xstampp.service.project.data.entity.User;
import de.xstampp.service.project.service.dao.iface.IUserDAO;
import org.springframework.beans.f... | 41.314286 | 134 | 0.705048 |
04bc78bd0b36c1abdf22b0b742117e0f2dbf1134 | 1,764 | /******************************************************************
* File: ValueGeoPoint.java
* Created by: Dave Reynolds
* Created on: 1 Dec 2014
*
* (c) Copyright 2014, Epimorphics Limited
*
*****************************************************************/
package com.epimorphics.dclib.values;
im... | 24.5 | 83 | 0.577098 |
05c05288c1ea111649b08ca5bab0438d3b7e1960 | 6,815 | package org.recap.repository.jpa;
import org.apache.commons.lang3.time.DateUtils;
import org.junit.Test;
import org.recap.BaseTestCase;
import org.recap.model.jpa.BibliographicEntity;
import org.recap.model.jpa.HoldingsEntity;
import org.recap.model.jpa.ItemEntity;
import org.springframework.beans.factory.annotation.A... | 44.835526 | 221 | 0.770213 |
34ff6b65bea57271f617f607406ed22846c1ea23 | 826 | package org.sekka.api;
import org.jetbrains.annotations.Nullable;
import org.sekka.api.server.Server;
import org.sekka.api.world.World;
import java.util.UUID;
public final class Sekka {
private static Server server;
public static final String MOD_ID = "sekka";
public static final String MOD_NAME = "Sek... | 24.294118 | 107 | 0.663438 |
389dd0ff6bcbc43f2b20329c1239010f3431eb5c | 1,749 | /*
* 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 br.com.argonavis.javaeesecurity.facade;
import br.com.argonavis.javaeesecurity.entity.Usuario;
import java.util.List;
import j... | 30.155172 | 115 | 0.656375 |
a3ba091e7dffe7d0442b8e8b9508dec0e2c5aeec | 4,581 | /*
* Copyright (c) 2011-2017, Numdata BV, The Netherlands.
* 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
* not... | 25.032787 | 110 | 0.695263 |
b4a01282e809bee3a41e999fc10311840c4f9e22 | 387 | // Sort Colors
// Counting Sort
// 时间复杂度O(n),空间复杂度O(1)
public class Solution {
public void sortColors(int[] nums) {
int[] counts = new int[3]; // 记录每个颜色出现的次数
for (int i = 0; i < nums.length; i++)
counts[nums[i]]++;
for (int i = 0, index = 0; i < 3; i++)
for (int j =... | 24.1875 | 49 | 0.475452 |
a36fdf9308e4aa333788f5f273486dea962c7a79 | 1,164 | package coding.challenge;
import coding.challenge.filesystem.Directory;
import coding.challenge.filesystem.File;
public class Main {
public static void main(String[] args) {
/*
D:/
|
----Docs
| |
| ----summer.txt
| ----winter.t... | 29.1 | 78 | 0.531787 |
22b98441646a5e28abbf684a43a2ce6402dc9653 | 1,492 | /*
* 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 com.cse.StudyCafe_management_system.server;
import java.io.*;
import java.util.ArrayList;
import java.util.logging.Level;
impo... | 32.434783 | 98 | 0.607239 |
4d79b1a053ca5442a9e5e18c986eaed710384176 | 1,072 | package de.codecentric.reedelk.platform.module.deserializer;
import org.osgi.framework.Bundle;
import java.net.URL;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
public class BundleDeserializer extends AbstractModuleDeserializer {
private static final boolean RECURSIVE = tru... | 28.972973 | 92 | 0.715485 |
b46a8d64dd2102847387ad2d92c019a3be4189b2 | 1,607 | package net.naari3.offershud.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import net.naari3.offershud.OffersHUD;
import net.naari3.offer... | 42.289474 | 86 | 0.729932 |
d9629f975f793fa3b08c9346a5fa1a847793649e | 4,048 | /**
* Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 24.095238 | 110 | 0.681324 |
8d60cb3ea41d1f9f59d967e1f77f11ffca509f82 | 1,342 | package com.nd.android.rxjavademo.data.impl.schedulers;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.StringRes;
import com.nd.android.rxjavademo.R;
import com.nd.android.rxjavademo.activity.schedulers.SchedulersActivity;
import com.nd.android.rxjavademo.data.IMainLi... | 26.313725 | 72 | 0.652757 |
11f28256a20f1036066d9390b62597c30d4dcd77 | 7,972 | package ml.bigbrains.tinkoff.tinkoffe3capiclient;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import ml.bigbrains.tinkoff.tinkoffe3capiclient.model.*;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client... | 43.802198 | 154 | 0.666332 |
f35101a0499961db722ba45cfe6b1ecd0cbd40ef | 4,057 | /*
* Copyright (C) 2012 Google Inc.
* tracksPlayed
* 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 ... | 26.86755 | 92 | 0.70668 |
46db162247016e782193c8e035ff364111ecc3bd | 4,995 | /*
* Licensed under the MIT License
*
* Copyright (c) 2020 Mahdi Jaberzadeh Ansari
*
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTI... | 35.935252 | 170 | 0.704505 |
b06582f1e70167608c946a57ac621a83d3dfbc3d | 3,049 | /*
* Copyright 2016 Randy Nott
*
* 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 i... | 30.49 | 105 | 0.697278 |
ae3bc7ff60c7e1f6ad14174a77ea5b31eb6e095b | 1,013 | package com.ruoyi.product.mapper;
import com.ruoyi.product.domain.Temperature;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author chenm
* @create 2019-08-02 10:21
*/
public interface TemperatureMapper {
Integer insertTemperature(Temperature temperature);
List<Temperature> ... | 28.138889 | 118 | 0.7769 |
0ef32f6347ba8e11e5db7d588eb1fbe0db87bf09 | 5,515 | package com.humane.application;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import com.humane.application.views.database.DatabaseView;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.button.ButtonVariant;
import com.vaadin.flow.component.charts.model.VerticalAlign... | 39.113475 | 120 | 0.690662 |
48098012256fdbab61f1ae4530e89920984b4f36 | 474 | package optifine;
import java.lang.reflect.Field;
public class FieldLocatorFixed implements IFieldLocator {
private Field field;
public FieldLocatorFixed(Field p_i37_1_) {
this.field = p_i37_1_;
}
public Field getField() {
return this.field;
}
}
/* Location: C:\Users\BSV\AppData... | 22.571429 | 129 | 0.696203 |
10f08b51741b62b6e2af0df448b30e4c5e78f214 | 36,885 | package collectors;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import housing.Model;
/**************************************************************************************************
* Class to write output to files
*
*... | 57.81348 | 211 | 0.655388 |
e265efb53ac70c5eb6b502b90ef98521439d5861 | 10,261 | /*
Copyright 2015 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 39.92607 | 159 | 0.567976 |
4f41756fa600a2f51a7d6be713924dbbc0674bf3 | 928 | package engineer.thomas_werner.euler;
public class Problem9 {
public static void main(String[] args) {
System.out.println(new Problem9().findPythagoreanTriplet());
}
private long findPythagoreanTriplet() {
for(int c=1; c<1_000; c++)
for(int b=1; b<c; b++)
for(i... | 29 | 81 | 0.532328 |
c4ace66bfc02aaf0c25070d3ea6805128250fc51 | 13,316 | /*
* Copyright (C) 2004 Derek James and Philip Tucker
*
* This file is part of ANJI (Another NEAT Java Implementation).
*
* ANJI is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the
*... | 34.408269 | 123 | 0.725068 |
5564eb92e162e018f39d61ffde09308046810abe | 1,404 | package com.example.injector.circular;
import java.util.Objects;
import javaemul.internal.annotations.DoNotInline;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("sting.processor.StingProcessor")
final class Sting_SupplierBrokenDirectCircula... | 28.08 | 121 | 0.769943 |
1949b06d27047d75860774c75a6954af5fbbce72 | 17,065 | package com.kevinrei.chronotrack;
import android.Manifest;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
impo... | 34.897751 | 107 | 0.599004 |
d03df5746ff1a84d30d359b9f2ceabbb547a6642 | 334 | package com.travelbank.knit.generators;
import com.travelbank.knit.KnitResponse;
/**
* Generator that accepts 1 parameter.
*
* @param <K> type of the {@link KnitResponse} body.
*
* @see ValueGenerator
* @author Omer Ozer
*/
public interface Generator1<T,K> extends ValueGenerator {
KnitResponse<T> generate... | 19.647059 | 57 | 0.721557 |
dbf6549aef46db1b6123271069aba2d6f23655c8 | 3,956 | /*
* Copyright 2006 Webmedia Group 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 law or agree... | 28.666667 | 106 | 0.726997 |
a05ef8c25fc79aa1c119d7d53b53a842e1dabbee | 3,086 | /*******************************************************************************
* Copyright (c) 2016 Alex Shapiro - github.com/shpralex
* This program and the accompanying materials
* are made available under the terms of the The MIT License (MIT)
* The above copyright notice and this permission notice shall be in... | 26.376068 | 81 | 0.477641 |
704383c6bfa715e30458cc2e387508cc0c44d07a | 959 | package no.nav.foreldrepenger.fordel.web.app.metrics;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import io.prometheus.client.CollectorRegistry;
im... | 29.96875 | 140 | 0.719499 |
97b4ad698f15499aeacc6ced0d3915c1fc67f9e3 | 1,606 | package eu.dirk.haase.bean.hierarchy;
import eu.dirk.haase.bean.MwsBeanImpl;
import eu.dirk.haase.test.MwsTestContextConfiguration;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.... | 28.678571 | 105 | 0.734745 |
8b4668df5f39ec76897ce1e79831c42f77d04721 | 11,027 | /*
* (C) Copyright 2013, 2015 Wojciech Mruczkiewicz
*
* 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 applicab... | 34.567398 | 95 | 0.634896 |
bf88f34a01173ead4c4ca6fc0ffa6a116c17bf2b | 1,494 | package au.org.garvan.vsal.beacon.entity;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement(name = "ssvs-beacon-response")
public class BeaconResponseSSVS {
private CoreQuery coreQuery;
private Long ssvsTimeMs; // ms
private List<Variant> variants;
private Long ... | 22.636364 | 118 | 0.637216 |
7069ec6d48113ebff657cd6a283fd19093507849 | 650 | package org.jahia.modules.jahiaauth.service;
import java.io.Serializable;
public class MappedProperty implements Serializable {
private MappedPropertyInfo info;
private Serializable value;
public MappedPropertyInfo getInfo() {
return info;
}
public void setInfo(MappedPropertyInfo info) ... | 20.967742 | 66 | 0.663077 |
d5a9f365f9e62e5ef05cb43c0ad5ae836d058436 | 2,176 | // BSD License (http://lemurproject.org/galago-license)
package org.lemurproject.galago.core.retrieval.extents;
import org.junit.Test;
import org.lemurproject.galago.core.retrieval.iterator.ThresholdIterator;
import org.lemurproject.galago.core.retrieval.processing.ScoringContext;
import org.lemurproject.galago.c... | 32 | 79 | 0.723346 |
29537ac1e85a62450ecd98e8c7d5ede9542e18e2 | 397 | public class InicioDeJogo extends Comunicado{
private String nomeDoUsuario;
public InicioDeJogo(String nome) throws Exception{
if(nome == null || nome.length() == 0)
throw new Exception("O nome do usuário não pode ser nulo e nem vazio.");
this.nomeDoUsuario = nome;
}
... | 18.045455 | 84 | 0.639798 |
49079c0b6b4fb0b801a038428dc929377367a3e6 | 2,976 | package com.bergerkiller.generated.net.minecraft.server;
import com.bergerkiller.mountiplex.reflection.util.StaticInitHelper;
import com.bergerkiller.mountiplex.reflection.declarations.Template;
import com.bergerkiller.bukkit.common.wrappers.HumanHand;
/**
* Instance wrapper handle for type <b>net.minecraft.server.P... | 45.090909 | 206 | 0.69254 |
2d9b3ed7b2923a5c0dc33c95a6fae6864bc69917 | 2,072 | /*-
* ==========================LICENSE_START=================================
* PolyGenesis Platform
* ========================================================================
* Copyright (C) 2015 - 2019 Christos Tsakostas, OREGOR LTD
* ========================================================================
* L... | 23.545455 | 75 | 0.581564 |
6e114fbe2a46cdd71958b65a3307d0843775c93c | 714 | package main;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.imageio.ImageIO;
public class Animation {
private int speed;
public ArrayList<Image> sprites = new ArrayList<Image>();
public Animation(int speed){
this.setSpeed(speed);
}
public ... | 18.307692 | 58 | 0.696078 |
f86322fcba319ac137e1fdacf25545006c6ff00e | 2,425 | package net.shmin.auth.handler.impl;
import net.shmin.auth.handler.IRequestHandler;
import net.shmin.core.util.CodecUtil;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.ArrayList... | 33.680556 | 109 | 0.645773 |
a2353817277c0679788841223f2af33772b4acb0 | 2,205 | /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.mozilla.gecko.gfx;
im... | 31.056338 | 93 | 0.664399 |
ece40244aca4f01c39d638ff2e13f27dea0a037d | 319 | package crimereport.crimes;
public class Geometry {
private String type = "Point";
private double[] coordinates;
public String getType() {
return type;
}
public double[] getCoordinates() {
return coordinates;
}
public void setCoordinates(double[] coordinates) {
this.coordinates = coordinates;
}
}
| 15.95 | 51 | 0.714734 |
b91b31836385fadc205aaf60602759483054d878 | 4,547 | /*
* 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 ... | 38.863248 | 109 | 0.711678 |
7a407f6e35ec57808ff81fb43c32cff49c6d5798 | 2,729 | package com.pivotal.pcf.mysqlweb;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import static org.spri... | 37.383562 | 110 | 0.71528 |
bc6b0f0ff698548c91ca2f60528cae8841297fcb | 2,358 | /*
* Copyright (c) 2001-2003 Regents of the University of California.
* All rights reserved.
*
* See the file LICENSE included in this distribution for details.
*/
package bamboo.router;
import java.math.BigInteger;
import java.util.Iterator;
import java.util.LinkedList;
import ostore.network.NetworkMessage;
impo... | 27.103448 | 73 | 0.69296 |
bdd14a7125200d266f2a734d020334f307d7b109 | 305 | package domain.bed.exception;
public class InvalidDateWithoutMinCapacityException extends AirbnbException {
public InvalidDateWithoutMinCapacityException() {
super(
"ARRIVAL_DATE_WITHOUT_MINIMAL_CAPACITY",
"a minimal capacity should be provided along with the arrival date");
}
}
| 30.5 | 77 | 0.777049 |
09ac4434e6012b275574c50b970dd522b824f5cf | 1,511 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* ____ _ _____ _
* / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___
* \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \
* ___) | |_) |... | 43.171429 | 121 | 0.434811 |
13d99b3ffc1888996df25b9c79666c09441843c8 | 4,660 | package validbst;
import jdk.nashorn.internal.ir.ThrowNode;
import java.util.*;
public class ValidBST {
public static void main(String[] args) {
Solution solution = new Solution();
//System.out.println(solution.minDepth(TreeNode.instance()));
System.out.println(solution.generateParenthes... | 34.264706 | 96 | 0.463519 |
24157262f7f800f2696546f9f562b6f41d6f65ad | 1,023 | package com.custom_computing_ic.maxdeep.kernel.conv2d;
import com.custom_computing_ic.maxdeep.kernel.conv2d.lib.Conv2DKernel;
import com.custom_computing_ic.maxdeep.lib.BinarizedDotProduct;
import com.maxeler.maxcompiler.v2.kernelcompiler.KernelBase;
import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEType;... | 34.1 | 79 | 0.773216 |
458fca8a4a6d881aae77d5123050eb73974cc90c | 1,942 | package com.tencent.business;
import com.tencent.common.Util;
import com.tencent.protocol.red_backage_protocol.RedPackageReqData;
import com.tencent.protocol.red_backage_protocol.RedPackageResData;
import com.tencent.protocol.refund_protocol.RefundReqData;
import com.tencent.protocol.refund_protocol.RefundResData;
imp... | 33.482759 | 113 | 0.720391 |
39b235b4b07cad4c132b6c4324de875f29b0760c | 1,257 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.generation;
import com.intellij.psi.PsiClass;
import com.intellij.psi.util.PsiFormatUtil;
import com.intellij.psi.util.PsiFormatUtilBase;
import ... | 29.928571 | 140 | 0.77327 |
96db544392b3265b0749a97e3881298ad73eac70 | 291 | package pack.util;
public class ErrorLog {
public static void print(String error){
Output.newLine();
Output.println("ERROR: " + error);
for(StackTraceElement ste : Thread.currentThread().getStackTrace()) {
Output.println(ste + "");
}
Output.flush();
System.exit(1);
}
}
| 20.785714 | 71 | 0.670103 |
fffe71236591bbc69a0bfa49a29e31aa6705d6b4 | 3,407 | package com.convious.pricingapi;
import com.convious.pricingapi.events.InventoryEvent;
import com.convious.pricingapi.transport.*;
import java.net.URI;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.CompletableFuture;
public class PricingApiClient {
... | 38.280899 | 177 | 0.57059 |
f2dbf2fad78596a77bdf08b7618b5fd64013e6db | 275 | package io.mindjet.jetgear.mvvm.viewinterface;
import android.content.Context;
import android.databinding.ViewDataBinding;
/**
* Created by Jet on 2/17/17.
*/
public interface ViewInterface<V extends ViewDataBinding> {
Context getContext();
V getBinding();
}
| 16.176471 | 59 | 0.741818 |
263f32ccc7c7ef3aae99ee5f3221843848abd941 | 5,273 | package remote;
import enums.MessageType;
import io.netty.channel.ChannelHandlerContext;
import lombok.extern.log4j.Log4j2;
import manager.BrokerManager;
import manager.TopicManager;
import message.*;
import model.BrokerData;
import netty.protocal.RemotingCommand;
import netty.server.NettyServerHandler;
import utils.B... | 45.068376 | 103 | 0.636639 |
11e83910623aeff538ef6fcb1cdb16713d50a18d | 8,391 | 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 javax.validation.Valid;
/**
* BQCollateralLiquidationInitiateInputModel
*/
public class B... | 43.476684 | 248 | 0.835657 |
02a38f8aef3a6d2c9c89ea89853fe037295c8f22 | 982 | package com.deigon.lanpartypicker;
import com.deigon.lanpartypicker.domain.LanPartyUser;
import com.deigon.lanpartypicker.repositories.UserRepository;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.se... | 35.071429 | 86 | 0.787169 |
63c9048ea4015ba914adf87ba277841b3d7115bc | 20,015 | package superstartrek;
import static org.junit.Assert.*;
import org.junit.Test;
import org.mockito.AdditionalMatchers;
import superstartrek.client.activities.combat.CombatHandler;
import superstartrek.client.activities.combat.CombatHandler.partTarget;
import superstartrek.client.activities.klingons.Klingon;
import s... | 37.62218 | 114 | 0.755783 |
5763dd17448e448382baba944b61c262e04022a3 | 1,978 | /*<license>
Copyright 2007 - $Date$ by the authors mentioned below.
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... | 23.831325 | 72 | 0.646613 |
90a2f7312b3acf90b94450f91753cd32a500b08e | 916 | package org.rapidpm.vaadin.sessionplanner;
import static java.util.Collections.unmodifiableSet;
import static org.rapidpm.vaadin.sessionplanner.SessionPlannerApplication.APPLICATION_ROOT;
import java.util.HashSet;
import java.util.Set;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.ApplicationPa... | 32.714286 | 91 | 0.810044 |
6c103182ff277785d1c2e8a6a49e14d536999863 | 4,819 | package com.github.assisstion.ModulePack.logging;
import java.awt.BorderLayout;
import java.awt.Color;
import java.util.List;
import java.util.function.Consumer;
import java.util.logging.Logger;
import javax.lang.model.SourceVersion;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JScro... | 25.908602 | 93 | 0.739573 |
b3f630d33984bb0ca7ff41ca7e8e0ddf208fda43 | 2,220 | /*
* Copyright 2016 Hammock and its contributors
*
* 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 ... | 33.134328 | 118 | 0.753604 |
2b001c6fb28b4eb389fd81f7d2dc57f7658e2ff6 | 518 | package uk.ac.ebi.ep.unisave.config;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
*
* @author Joseph
*/
@Configuration
@ConfigurationPropertie... | 23.545455 | 100 | 0.80888 |
11f5a4d2ec09eb7e92bbd934475f42930aa9b39b | 588 | package org.pes.onecemulator.service;
import org.pes.onecemulator.entity.Act;
import org.pes.onecemulator.exception.NotFoundException;
import org.pes.onecemulator.exception.ValidationException;
import org.pes.onecemulator.model.internal.ActModel;
import java.util.List;
import java.util.UUID;
public interface ActServ... | 25.565217 | 77 | 0.794218 |
98009fa4548dd268a24c42fb8bdbddf2fbf67352 | 127,100 | /*
* 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 ... | 35.873553 | 132 | 0.655673 |
9ababd3f4d700939b2fd4a5607d19de4fc9697c3 | 3,992 | package com.example.noweb.thirdParty;
import org.assertj.core.util.Lists;
import org.junit.jupiter.api.Test;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
/**
* <p>Hamc... | 28.719424 | 91 | 0.615481 |
9c6ba5c4c745e943bf72c111db81a038e41d2895 | 430 | package org.gosky.paradise.refreshlayout;
import android.view.View;
/**
* @author galaxy captain
* @date 2015/12/28
*/
public abstract class RefreshView {
public abstract View createView();
/**
* 普通状态
*/
public abstract void onNomarlState(int offset);
/**
* 可执行状态
*/
publi... | 14.827586 | 51 | 0.611628 |
39151b6fea71d655fe51668065c17156c87ed440 | 496 | package com.hbb.legou.item.controller;
import com.hbb.legou.core.controller.BaseController;
import com.hbb.legou.item.entity.Sku;
import com.hbb.legou.item.service.ISkuService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... | 31 | 69 | 0.832661 |
09a1bb54bff08e0b0374e12931ff55046e8defe1 | 1,172 | package com.ffan.smartlife.msite.receiver;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import java.util.Arrays;
import java.util.Properties;
public class Main {
public static void mai... | 31.675676 | 105 | 0.682594 |
5a21d30d05451bb262a13f3298d512a722c5c27b | 1,307 | // @formatter:off
/*
* Unlicensed, generated by javafx.ftl
*/
package javafx.scene.text;
/**
* {@link Font}建構器。
*
* @author JarReflectionDataLoader-1.0.0
* @version jfxrt.jar
* @param <Z> 要建構的物件型態(需繼承{@link Font})
* @param <B> 建構器本身的型態(需繼承{@link FontMaker})
*/
@javax.annotation.Generated("Gene... | 22.929825 | 66 | 0.576894 |
ddf07c25da4604bd0de902d0ac8f9e824bface40 | 21,181 | package com.github.siboxd.fatturapa.model.invoicebody.payment;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Order;
import org.simpleframework.xml.Root;
/**
* Contains the ... | 38.510909 | 113 | 0.635853 |
6e119501d2fcaaab8b2cee75ec073e53fb53bad8 | 1,934 | package io.zxnnet.model;
import io.zxnnet.view.RepoInfo;
import javafx.scene.control.TextInputDialog;
import org.eclipse.jgit.api.Git;
import java.io.File;
import java.util.Optional;
public class CloneProject {
public static RepoInfo Clone(File file) throws Exception {
if (file != null && file.exists()... | 33.929825 | 96 | 0.537229 |
9a0bc85a48ef46b0f90175d9dbf00e20d2caa90a | 2,064 | package org.apache.ideaplugin.plugin;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.Application;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import javax.swing.*;
/*
* Copyright 2004,2005 The Apache Software Fo... | 32.761905 | 99 | 0.678295 |
96ffa50ba47523dbb3b41bdcfd7bff6cc9b70dd0 | 1,169 | package basic.tree;
import static org.junit.Assert.assertArrayEquals;
import org.junit.Before;
import org.junit.Test;
import util.BiTreeListAdaptor;
import util.NumberUtil;
import datastructure.IBiList;
public class BiTree2BiListTransformerTest {
private BiTreeListAdaptor<Integer> tree;
private int[] ascending, ... | 30.763158 | 118 | 0.730539 |
6e0430be5a1d8e2e490540fd5c6f0a07264ea37d | 1,165 | import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;
public class Print
{
static Component gui... | 23.3 | 97 | 0.656652 |
e3011d01fefc19d97311f91c5ed674151524d900 | 2,254 | package com.lgy.biz.order;
import com.alibaba.fastjson.JSONObject;
import com.lgy.common.core.domain.CommonResponse;
import com.lgy.es.EsSearchEngine;
import com.lgy.model.EsPage;
import org.elasticsearch.index.query.QueryBuilder;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.... | 23.726316 | 106 | 0.612245 |
06c4ba0c282008f5b12eec9258aea49300e166f2 | 477 | /*
* @test /nodynamiccopyright/
* @bug 8264843
* @summary Javac crashes with NullPointerException when finding unencoded XML in <pre> tag
* @library ..
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
* @build DocLintTester
* @run main DocLintTester -Xmsgs -ref UnknownTagTest.out UnknownTagTest.java
*/
/**
... | 26.5 | 91 | 0.716981 |
55d66a5c58d025f4371f7135e408a1b37b24b530 | 3,092 | package pass.worker;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import com.rabbitmq.client.ShutdownSignalException;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
imp... | 31.232323 | 87 | 0.551746 |
6d0426593ed181450db662dff48f016b63b59391 | 5,212 | package com.anhel;
//https://medium.com/dtechlog/%D0%B0%D0%BB%D0%B3%D0%BE%D1%80%D0%B8%D1%82%D0%BC%D1%8B-%D1%85%D1%8D%D1%88-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F-sha-256-9862302f942f
public class SHA256 {
public static byte[] encode(byte[] data) {
int h0 = 0x6a09e667;
int h1 = 0xbb67ae85;
... | 36.194444 | 167 | 0.46297 |
1c9be3b943a68b26c81729ace99873a6f0b2959b | 1,589 | package day_three;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
class Student {
String name;
int rollNo;
Student(String name, int rollNo) {
this.name = name;
this.rollNo = rollNo;
}
public String getName() {
return name;
}
public void s... | 20.371795 | 53 | 0.677785 |
011d36914fc3653e04cb56b35df82dfd56964f80 | 3,681 | /**
* Copyright 2014 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 agreed ... | 31.461538 | 119 | 0.575115 |
e4fa251fa42be250a2afc9ed186d99d88c3ef08b | 2,976 | package org.js4ms.ip;
/*
* #%L
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* IPNoOperationOption.java [org.js4ms.jsdk:ip]
* %%
* Copyright (C) 2009 - 2014 Cisco Systems, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 25.878261 | 94 | 0.594758 |
f99cc9a76171568a163b272059de26663e209592 | 2,722 | package pe.asomapps.popularmovies.ui.adapters;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import pe.asomapps.popularmovies.R;
import pe.asomapps.popularmovies.ui.utils.SortOptio... | 28.061856 | 117 | 0.64144 |
c62bae4bf9c85fd16477a92bac1132dede4b851b | 1,711 | package connect.ui.activity.chat.bean;
import android.text.TextUtils;
import java.io.Serializable;
import protos.Connect;
/**
* Created by pujin on 2017/3/24.
*/
public class AdBean implements Serializable{
private String title;
private String content;
private int category;//0:link 1:upgrade
priv... | 21.935897 | 114 | 0.649328 |
7810472cd3f3f47635b2d0f05c5f8d2a7e52fd5a | 722 | package test.io.smallrye.openapi.runtime.scanner.jakarta;
import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.openapi.annotations.parameters.Paramete... | 25.785714 | 73 | 0.736842 |
4c614feaa695987321f9d9b6110854030c91c9f0 | 72 | /**
*
*
*/
/**
* @author franck
*
*/
module wcs_nfs_dicoutils {
} | 7.2 | 26 | 0.486111 |
198057f4804acb279cdaf3b0d31dce46d6a9e60c | 4,415 | package com.cesurazure.crm.controller;
import com.cesurazure.crm.controller.impl.IAssignLeadController;
import com.cesurazure.crm.model.AssignCRM;
import com.cesurazure.crm.model.AssignLead;
import com.cesurazure.crm.model.Lead;
import com.cesurazure.crm.service.impl.IAssignCRMService;
import com.cesurazure.crm.servic... | 37.10084 | 135 | 0.700113 |
5566746203ec8afd26ea672c4e8e8b143d39b54d | 13,702 | package uk.co.nyakeh.papertrail;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.SearchRecentSuggestions;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.... | 39.831395 | 268 | 0.613633 |
9ba57a4a44d6a2db4faef9aba0b4974d2f0e3708 | 1,411 | package org.smartregister.p2p.model;
import android.arch.persistence.room.Database;
import android.arch.persistence.room.Room;
import android.arch.persistence.room.RoomDatabase;
import android.content.Context;
import android.support.annotation.NonNull;
import android.text.SpannableStringBuilder;
import com.commonswar... | 32.813953 | 117 | 0.744153 |
d9baa658bcdfe67e608852f635636194bfb92221 | 963 | package com.twotoasters.clusterkraf;
import com.google.android.gms.maps.model.Marker;
/**
* Because Clusterkraf must set its own OnMarkerClickListener on the GoogleMap
* it is managing, and because the GoogleMap can only have one
* OnMarkerClickListener, Clusterkraf passes the event downstream to its users.
*/
pu... | 40.125 | 79 | 0.721703 |
10a0cdc0b6202242e8c07dcaa12f251df78842b7 | 1,351 | /**
* 本项目采用《JFinal 俱乐部授权协议》,保护知识产权,就是在保护我们自己身处的行业。
*
* Copyright (c) 2011-2021, jfinal.com
*/
package com.jfinal.admin.demo;
import com.jfinal.admin.common.BaseController;
import com.jfinal.core.Path;
import static com.jfinal.admin.demo.Icons.*;
/**
* 后续版本添加更多组件演示,如 bootstrap 4 组件
*/
@Path("/admin/demo")
publ... | 25.490566 | 59 | 0.715766 |
75069bada1af39cf0e20c1c9020872e2eeda0e57 | 467 | package com.bolt.alexa.skill.model;
public class RestaurantSearchResponse{
private final boolean foundMatch;
private final Restaurant[] foundRestaurants;
public RestaurantSearchResponse(boolean foundMatch, Restaurant[] foundRestaurants) {
super();
this.foundMatch = foundMatch;
this.foundRestaurants = foundRe... | 25.944444 | 85 | 0.785867 |
696b2d361749f1d1859226c03a0d1dca7d850b43 | 6,390 | package io.g740.pigeon.biz.service.handler.account;
import io.g740.commons.exception.impl.AuthAccountNotFoundException;
import io.g740.commons.exception.impl.ResourceDuplicateException;
import io.g740.commons.exception.impl.ResourceNotFoundException;
import io.g740.commons.exception.impl.ServiceException;
import io.g7... | 43.767123 | 117 | 0.72097 |
7d16511371c3cb9fac722f064bea155bdcd0b5ca | 7,161 | /*
* Copyright (c) 2010-2018. Axon Framework
*
* 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 o... | 37.689474 | 122 | 0.668063 |
028d6b431d9d7bdcfba39c6d2d664dc18745192e | 6,013 | package org.example.controller;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.DatePicker;
import javafx.scene.control.TextField;
import org.example.App;
import org.example.model.*;
import java.net.URL;
import... | 21.945255 | 100 | 0.552969 |
52175e47ae1c41f5af200ed5972d8ede6ccf2a1e | 8,683 | package algorithms.planner;
import models.agents.Agent;
import models.facilities.Facility;
import models.facilities.Rack;
import models.maps.GridCell;
import models.warehouses.Warehouse;
import utils.Constants;
import utils.Constants.*;
import utils.Utility;
/**
* This {@code PlanNode} class represents a state nod... | 28.943333 | 114 | 0.569619 |
e46e03fce75e7fb0d770ff200fa7c69afed17f04 | 184 | package com.xyh.enjoyweather.util;
/**
* Created by 向阳湖 on 2016/3/7.
*/
public interface HttpCallbackListener {
void onFinish(String reponse);
void onError(Exception e);
}
| 16.727273 | 39 | 0.706522 |
81bf5317aa2159c588f785533c947f7e4b86a66b | 7,885 | package de.datenkraken.datenkrake.ui.util;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PixelFormat;
import android.graphics.drawable.Drawable;
import android.text.Html;
import android.widget.TextView;
import androidx.annotation.NonNull;
... | 29.754717 | 116 | 0.57565 |
699b70bd8019843dc54758413f3b3c3ccca09041 | 13,622 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 29.044776 | 102 | 0.647188 |
457859e4dd721a96c1c15f55e77cd83d9c4bde13 | 2,694 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.pimslims.crystallization.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpS... | 26.411765 | 82 | 0.700074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.