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 |
|---|---|---|---|---|---|
eb99c9473d1fe9dc4dc629ed2aa9a22d70596966 | 828 | package pt.upskills.projeto.gui;
import pt.upskills.projeto.game.FireBallThread;
import pt.upskills.projeto.rogue.utils.Position;
/**
* @author Jorge Rafael Santos
*
* FireTile is the interface required to use "images" as FireBallThread on
* ImageMatrixGUI.
*
*/
public interface Fi... | 27.6 | 94 | 0.657005 |
60a92cc063a87e22fea0881c049fbd3ffa5828a7 | 2,034 | package com.jlkj.common.exception.file;
import java.util.Arrays;
import org.apache.commons.fileupload.FileUploadException;
/**
* 文件上传 误异常类
*
* @author jlkj
*/
public class InvalidExtensionException extends FileUploadException
{
private static final long serialVersionUID = 1L;
private String[] allowedExte... | 28.25 | 145 | 0.689282 |
0fd4d3d02e0ddfe49fe53d435bff38a2d19486e7 | 3,485 | /*
* Copyright 2000-2012 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... | 24.034483 | 97 | 0.619225 |
67229beb5a46c7334226adbcbe496e61a35158a3 | 1,832 | package com.maxchn.nytimesnewsapp.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.To... | 40.711111 | 120 | 0.779476 |
f8f1a2c5bbee5b06d9a7f7eef9e7d5bc10ff09d6 | 1,306 |
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Scanner;
public class HenkilotTiedostosta {
public static void main(String[] args) {
Scanner lukija = new Scanner(System.in);
System.out.println("Minkä niminen tiedosto luetaan?");
String... | 29.681818 | 84 | 0.614089 |
c1f4d7f94c2a020fa95029fe5c82ca0a7666e799 | 2,866 | package hu.gamf.szakdolgozatbackend.entity;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.per... | 22.046154 | 105 | 0.744592 |
0f2604a5349314e84a0f9aa3170f063b5099e09e | 1,461 | package net.runelite.client.plugins.raids;
public class timerSpecial {
private long startTime = 0;
private long difference = 0;
private long pause = 0;
private long unpaused = 0;
private long tempTime = 0;
private boolean paused = false;
public boolean started = false;
public void start... | 28.096154 | 99 | 0.590691 |
8bf30ba6381f97e502885b2ab05fd59b59fb743d | 2,498 | package io.quarkus.security.runtime.interceptor.check;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Func... | 36.202899 | 127 | 0.672938 |
b68842425ffd99e3890899fcaad092b356275a40 | 5,342 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | 35.852349 | 105 | 0.729689 |
49a5c60b4b9cf86242115e49d4557d0d3ae085e0 | 729 | /*
* dexulong.java June 17, 2015, 21:40
*
* Copyright 2015, FreeInternals.org. All rights reserved.
* Use is subject to license terms.
*/
package org.freeinternals.format.dex;
import java.math.BigInteger;
/**
* 64-bit unsigned int, little-endian.
*
* @author Amos Shi
* @see
* <a href="http... | 21.441176 | 77 | 0.60631 |
ae51749138f8b595ff552dcebbe1987e648e07e3 | 1,903 | /*
*
* * Copyright (c) [2019-2021] [NorthLan](lan6995@gmail.com)
* *
* * 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
... | 29.734375 | 113 | 0.625328 |
69f6684dd131e5d9c5150d2baa32e7b696190427 | 11,708 | import Bril.*;
import PREStruct.*;
import Utils.ExpSet;
import Utils.Util;
import org.json.JSONObject;
import picocli.CommandLine;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.concurrent.Callable;
import static PREStruct.CFGBlock.linkBlocks;
@... | 40.09589 | 117 | 0.504954 |
3e5fed4fd2e146b5da738a1352780ccb460da14a | 34,458 | package pl.tecna.gwt.connectors.client.elements;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import pl.tecna.gwt.connectors.client.CornerPoint;
import pl.tecna.gwt.connectors.client.Diagram;
import pl.tecna.gwt.connectors.client.Point;
import pl.... | 37.535948 | 135 | 0.658135 |
63ca2fea6535bb4d65c7476fa83ba533ed1264b6 | 13,165 | /*
* Copyright 2012-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 agr... | 60.949074 | 101 | 0.777744 |
9bfc31f80d4b347f23408b503a406764668eeccd | 12,854 | package com.brandon3055.draconicevolution.client.gui.componentguis;
import com.brandon3055.brandonscore.client.gui.guicomponents.*;
import com.brandon3055.brandonscore.client.utills.GuiHelper;
import com.brandon3055.brandonscore.common.utills.Utills;
import com.brandon3055.draconicevolution.client.handler.ResourceHand... | 63.950249 | 364 | 0.687179 |
117c9a276b41377cf2b6611a314f141892cffd63 | 1,833 | package org.mapfish.print.map.geotools.function;
import org.geotools.filter.FunctionExpressionImpl;
import org.geotools.filter.capability.FunctionNameImpl;
import org.opengis.filter.capability.FunctionName;
import static org.geotools.filter.capability.FunctionNameImpl.parameter;
/**
* A Function that multiplies the... | 35.25 | 100 | 0.588652 |
5ac37714ba5151e2795be20d9b33a75e27950ca6 | 1,533 | package ru.sftqa.pft.addressbook.model;
public class ContactData {
private final String firstName;
private final String middleName;
private final String lastName;
private final String nickName;
private final String title;
private final String company;
private final String address;
private final String ... | 28.924528 | 205 | 0.727332 |
6ce8bfe711f78807b6ca35cfe2833d65221e4510 | 2,824 | /*
* Copyright 2018 Braden Hitchcock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 27.153846 | 103 | 0.709278 |
64461ea7fd5084967fbd3b33bb11c608bcbb0e8a | 16,309 | package voldemort.store.routed;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static voldemort.VoldemortTestConstants.getEightNodeClusterWithZones;
import static voldemort.VoldemortTestConstants.getFourNodeClusterWithZones;
import java.util.ArrayList;
import java.util... | 56.628472 | 117 | 0.582071 |
3ac67001b967bdac70e8d706f46eea5de19c28c0 | 1,916 | package pe.edu.upc.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax... | 20.826087 | 70 | 0.733299 |
47122e509300b342dea8328bb14c289b569691b1 | 5,980 | /*
Copyright (c) 2016, Shanghai YUEWEN Information Technology Co., Ltd.
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... | 42.112676 | 774 | 0.72709 |
a762e8caf8450b1ca8599a1e9c4f7a31db213dbf | 5,378 | /*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package test.aes;
import com.intel.dcsg.cpg.crypto.Aes128;
import com.intel.dcsg.cpg.crypto.CryptographyException;
import com.intel.dcsg.cpg.crypto.RsaUtil;
import com.intel.dcsg.cpg.performance.Task;
import com.intel.dcsg.cpg.perf... | 35.615894 | 141 | 0.631462 |
f81e3a9169d6b022b81519c98fa036abb66ca245 | 17,283 | /*
* This file was automatically generated by EvoSuite
* Sun Nov 29 05:51:07 GMT 2020
*/
package com.lts.io;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.lts.io.ArchiveScanner;
import com.lts.io.ImprovedFile;
import java.io.ByteArrayInputSt... | 32.609434 | 176 | 0.646994 |
9796cfcf64352908319d0687763999eafb6522fa | 2,403 | package org.pm4j.core.pb;
import org.pm4j.core.pb.PbFactory.ValueUpdateEvent;
/**
* Base iterface/implementation for presentation binding default settings.
*
* @author olaf boede
*
* @param <T_WIDGET_FACTORY_SET> The view platform specific widget set class.
*/
public abstract class PbDefaultsBase <T_WIDGET_FA... | 26.406593 | 88 | 0.72243 |
09dc279f271a71abc2952358f985f8eb1c7cfb68 | 1,469 | package com.hitszplaza.background.controller;
import com.google.gson.JsonObject;
import com.hitszplaza.background.service.impl.FeedbackServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("feedback")
public class ... | 33.386364 | 92 | 0.669843 |
6626069330e35df562fcc95e081e288e0a628af1 | 527 | package org.gbif.occurrence.download.file.dwca;
/**
* Tables suffixes used to name tables and files.
*/
public final class TableSuffixes {
//Suffixes for table names
public static final String INTERPRETED_SUFFIX = "_interpreted";
public static final String VERBATIM_SUFFIX = "_verbatim";
public static final ... | 23.954545 | 65 | 0.732448 |
632ab828cfd09336c48ea6754ecce5bad3a4f38a | 4,171 | /*
* Copyright 2016 h-j-k. 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 app... | 28.568493 | 91 | 0.623591 |
2133f81d3b39af2dfd5ec3c67974679001c98941 | 1,783 | /**
* Copyright (c) 2013-2022 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | 33.018519 | 100 | 0.701626 |
60b314ae7fca52b596bb0a5223db50e1aac095cb | 2,542 | package net.saisimon.agtms.web.service.upload;
import java.io.IOException;
import java.util.UUID;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springf... | 28.561798 | 87 | 0.764752 |
4d6218797cacb85d887a139b99769caa952b0b9d | 21,076 | package org.keycloak.testsuite.broker;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.graphene.Graphene;
import org.jboss.arquillian.graphene.page.Page;
import org.jboss.shrinkwrap.api.spec.WebArchive;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
imp... | 40.844961 | 140 | 0.686705 |
1b04487ef3cccdaae9a876c8534b1d8f7f0e44c1 | 529 | package org.mp.naumann.database.data;
public class GenericColumn<T> implements Column<T> {
private String name;
private Class<T> clazz;
public GenericColumn(String name, Class<T> clazz) {
this.name = name;
this.clazz = clazz;
}
public static GenericColumn<String> StringColumn(Str... | 20.346154 | 67 | 0.625709 |
3b7c54048c62f92b5ef60cdac57daad588744347 | 4,189 | package com.wenox.users.dto;
import com.wenox.users.domain.Role;
import com.wenox.users.domain.User;
import com.wenox.users.domain.UserStatus;
import com.wenox.users.service.FormatDate;
import java.util.Objects;
/** Password and relations are not returned. */
public class FullUserResponse {
public static FullUserR... | 20.945 | 85 | 0.706135 |
f6ae855d426cd9798e6428cc59721aecd228e8cf | 631 | import com.chaos.hades.client.config.ConfigBasedHadesClient;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
/**
* Created by zcfrank1st on 22/11/2016.
*/
public class ConfigBasedHadesClientTest {
private ConfigBasedHadesClient configBasedHadesClient;
@Before
public void init () ... | 27.434783 | 91 | 0.713154 |
40138f03673e74415b81d2856968bcce1ac9a8f5 | 2,359 | package datastructure.binarytree;
import java.util.ArrayList;
import java.util.List;
/**
* @author tsc
* @description: 第一天
* @date 2022/4/1 11:52
*/
public class FirstDay {
/**
* 144 二叉树的前序遍历
*
* @param root
* @return
*/
public List<Integer> preorderTraversal(TreeNode root) {
... | 21.842593 | 79 | 0.550233 |
a03f6bb8e3c540803b2661a2f562c2d3afdee8e7 | 4,786 | /*
Copyright (C) 2008 Srinivas Hasti
This source code is release under the BSD License.
This file is part of JQuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://jquantlib.org/
JQuantLib is free software: you can redistribute it and/or modify it
under the t... | 35.984962 | 121 | 0.677392 |
c05a0dea174c918d09e9a0dc2d81a8d59abf209d | 871 | package com.mmc.security.record.rest;
import com.mmc.security.common.msg.ObjectRestResponse;
import com.mmc.security.common.rest.BaseController;
import com.mmc.security.record.biz.OrderBiz;
import com.mmc.security.record.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | 30.034483 | 71 | 0.755454 |
74a3fdac3493235b58b03db9cc0c6e53d89e1bcb | 843 | /*
* XML Type: ActClassROI
* Namespace: urn:hl7-org:v3
* Java type: uk.nhs.connect.iucds.cda.ucr.ActClassROI
*
* Automatically generated - do not modify.
*/
package uk.nhs.connect.iucds.cda.ucr.impl;
/**
* An XML ActClassROI(@urn:hl7-org:v3).
*
* This is a union type. Instances are of one of the following typ... | 29.068966 | 176 | 0.705813 |
6986c2c82a6a14cb08c42063fee128a9a07b95a0 | 811 | package org.shoulder.web.template.dictionary;
import org.shoulder.web.template.crud.CrudCacheableController;
import org.shoulder.web.template.dictionary.model.DictionaryEntity;
import org.shoulder.web.template.dictionary.service.DictionaryService;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | 35.26087 | 121 | 0.806412 |
7276ac9e9147b8f33727a884b9b4fc1469bee4ba | 6,489 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 27.495763 | 98 | 0.696872 |
81e2b03a9ea5adc96917a6b850755b54e631d159 | 5,262 | package top.feb13th.athena.server;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.ServerChannel;
import io.netty.channel.nio.NioEventLoop... | 27.123711 | 95 | 0.696883 |
0f2e9573b286d07c83af7b2c2ddfe2420752716f | 4,564 | package org.flowvisor.config;
import java.io.FileNotFoundException;
import org.flowvisor.VeRTIGO;
import org.flowvisor.api.APIServer;
import org.flowvisor.api.JettyServer;
import org.flowvisor.exceptions.DuplicateControllerException;
import org.flowvisor.flows.FlowEntry;
import org.flowvisor.flows.FlowMap;
import org... | 33.313869 | 86 | 0.707932 |
0e6ea7dc179545700c11c98dbe9cb1a5a7b4607b | 2,339 | package com.Server.security;
import com.Server.service.impl.UserDetailsimpl;
import io.jsonwebtoken.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Compo... | 35.439394 | 99 | 0.663104 |
df7249cf3865efccd2b815641c07fbc6bdb0637b | 672 | package io.github.talelin.latticy.model;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @author generator@TaleLin
* @since 2021-03-04
*/
@Data
@EqualsAndHashCode... | 16 | 53 | 0.66369 |
ce9354dc5c6fcae6b260f68b16b44a714d248d15 | 1,420 | class stick{
boolean taken = false;
public synchronized void take(){
while(taken){
try{ wait();}
catch(Exception e){}
}
taken=true;
}
public synchronized void drop(){
taken=false;
notifyAll();
}
}
class phil implements Runnable{
int num;
stick left;
stick r... | 26.296296 | 99 | 0.553521 |
a4617e4a1ef9de9c7596ec4098aa9312e7ae40f0 | 2,645 | /*
* @author Ramesh Lingappa
*/
package com.jmandrillapi.http;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;
import com.jmandrillapi.enums.MediaType;
import com.jmandrillapi.utils.ObjectUtils;
/**
* The Class MandrillApiRequest.
*
* @param <T> the generic type
*/
public clas... | 18.892857 | 66 | 0.670321 |
9564f14434c22fe5d3bc38d0e2fbd6e1f9048345 | 241 | package com.capco.noc.algo.strategy;
import com.capco.noc.algo.schema.Portfolio;
public interface StrategyCreator {
void defineInitialPortfolioAllocation(Portfolio portfolio);
void defineAccountStrategy(Portfolio portfolio);
}
| 21.909091 | 64 | 0.80083 |
352d78ec74a069ac108d5f4b50cbb42f78960590 | 6,663 | package com.qianmi.boat.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;
import android.widget.V... | 29.878924 | 196 | 0.556656 |
50c5eed41e8454c7566b77fa4ec5aa4ad61c90cd | 6,152 | //
// Decompiled by Procyon v0.5.36
//
package jdk.nashorn.internal.objects;
import jdk.nashorn.internal.codegen.CompilerConstants;
import java.lang.invoke.MethodHandles;
import jdk.nashorn.internal.runtime.JSType;
import jdk.nashorn.internal.runtime.arrays.ArrayData;
import jdk.nashorn.internal.runtime.arrays.Cont... | 33.802198 | 165 | 0.617848 |
484d0977cc184e8688be26cbab4a47e420adcd15 | 1,535 | package com.codethales.classesabstratas.domainmodel;
/* A palavra abstract impede a classe de ser instanciada. Ela se torna algo como um template.
* Essa ação é muito útil em casos onde desejamos que a classe seja utilizada apenas com o intuito de ser herdada
* para que seus atributos e métodos sejam utilizados por su... | 47.96875 | 119 | 0.744625 |
c223ac7f469a306dd8a6440044c57321bdcb5144 | 2,532 | package com.fans.fansrobot.listener;
import catcode.CatCodeUtil;
import com.fans.fansrobot.util.FileReaderUtils;
import love.forte.simbot.annotation.Filter;
import love.forte.simbot.annotation.OnGroup;
import love.forte.simbot.api.message.events.GroupMsg;
import love.forte.simbot.api.sender.MsgSender;
import love.fort... | 42.915254 | 157 | 0.702607 |
85de6db219168f633dddb88792ab9bf48792a3e8 | 8,767 | /*
* Disq
*
* MIT License
*
* Copyright (c) 2018-2019 Disq contributors
*
* 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... | 41.159624 | 100 | 0.760123 |
1b4f2026e13906b45484bbef67324266d91af28c | 2,408 | /*
*
*
* 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"); ... | 29.728395 | 111 | 0.675249 |
4b1fef77815f4bb447e65f8466c55139e09e5e2e | 1,000 | package jasmine.orm.query.impl;
import jasmine.orm.code.DbConfig;
import jasmine.orm.code.DbContext;
import jasmine.orm.table.TableMapping;
public class OracleDialectQueryImpl<T> extends AbstractSupportQueryImpl<T>{
public OracleDialectQueryImpl(TableMapping<T> tableMapping, DbConfig config) {
super(tabl... | 27.027027 | 82 | 0.692 |
26f3ba75ced80ba43537ec98cd1cead99ea3b083 | 4,846 | /**
* *****************************************************************************
*
* <p>Copyright 2017 Walmart, Inc.
*
* <p>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
*
* <p>http://... | 34.126761 | 99 | 0.717293 |
5ea909fd718854ca768d8d803444832cbfe47020 | 7,911 | package com.fr.swift.generate;
import com.fr.swift.beans.annotation.SwiftBean;
import com.fr.swift.beans.annotation.SwiftScope;
import com.fr.swift.bitmap.BitMaps;
import com.fr.swift.bitmap.ImmutableBitMap;
import com.fr.swift.bitmap.MutableBitMap;
import com.fr.swift.cube.io.Types.StoreType;
import com.fr.swift.cube... | 35.79638 | 149 | 0.627734 |
c2ce6b3013c104ba54cca61ffa58e9d3fd56f39c | 2,038 | /**
* Copyright 2017 ZTE 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 agre... | 22.395604 | 75 | 0.670265 |
12ec7c5a3db823f5c19780191c8614e26a0bea1f | 1,053 | package org.spica.javaclient.params;
public abstract class AbstractInputParam<T> implements InputParam<T>{
private String key;
private String displayname;
private T value;
private Renderer<T> renderer;
private boolean visible = true;
@Override
public String getKey() {
return k... | 17.847458 | 69 | 0.612536 |
7544f2b03bf1c601925876712b4c17654e14f159 | 171 | package manifold.util.cache;
public class IllegalTypeNameException extends RuntimeException
{
public IllegalTypeNameException( String msg )
{
super( msg );
}
}
| 17.1 | 62 | 0.754386 |
c6277f0beaa1a40cb45f2f3d2e63d1266c6dbaab | 2,370 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. 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
*
* Un... | 37.619048 | 136 | 0.74135 |
1759aa15b67c7854e245ea9c62385c1a67eda9df | 4,641 | /*
* 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 distributed under t... | 33.15 | 182 | 0.73217 |
c89c6781cf63318270e0e9d5f8e331e5c1924ed4 | 2,428 | package com.pinger.model;
import java.util.ArrayList;
import java.util.List;
public class Site implements SiteLinkRepository {
private String tag;
private final String name;
private final String description;
private final SiteProdLink prodLink;
private final SiteDevLink devLink;
private fin... | 25.030928 | 129 | 0.593904 |
5298283560c98b853d1e93453fc8a8b6f392c44d | 4,807 | package com.vladykin.replicamap;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.BiFunction;
import java.util.function.Function;
public class TestMap<K,V> implements ReplicaMap<K,V> {
private Object id;
public M... | 28.443787 | 116 | 0.602039 |
55d3be97c401b821e741468f986eee53f4a547dc | 11,748 | /**
* 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... | 39.555556 | 124 | 0.618829 |
5aac898c27a6cb1fca3c4ce071c5c016ae53d56c | 1,983 | package cn.com.myproject.learn.leetcode;
import org.springframework.util.CollectionUtils;
import java.sql.SQLOutput;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
* 三数之和
* */
public class LeetCode15 {
public static List<List<Integer>> threeSum(int[... | 26.797297 | 71 | 0.377206 |
9faf2bc533c2ae440515e7c32530d45b05affda8 | 607 | package beone.acnt.service;
import java.util.List;
import java.util.Map;
import beone.acnt.vo.AcntVO;
import beone.corp.vo.CorpVO;
import beone.transaction.vo.TransactionVO;
public interface AcntService {
/**
* 계좌번호로 계좌 정보 검색
* @param no
* @return
*/
public AcntVO selectOne(String no);
/**
* 계좌 잔액 변... | 15.973684 | 45 | 0.652389 |
de247d085fe2f130bc559b39096daff356fb5da2 | 5,831 | package com.sankholin.web.ui;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Valid;
import javax.validation.Validator;
import javax.xml.parsers.DocumentBuilderFactory;
import org.springframework.beans.factory.annotation.Autow... | 31.518919 | 138 | 0.667638 |
3964758fdacb9d12a59a2cef10f86a622c5a2d3e | 837 | package org.andot.share.common.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.text.SimpleDateFormat;
import java.util.LinkedList;
/**
* 使用jackson进行封装的json array工具方法
* @author andot
*/
public class JSONArray extends LinkedList {
... | 23.25 | 80 | 0.65233 |
c265d72b47ac138145bc3c898b1d75a907fa25d8 | 2,270 | package bc.gov.agri.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotat... | 39.137931 | 105 | 0.755066 |
128dc03caa97dfc588a67a35961a7349e3092518 | 302 | package com.example.diploma.admin.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class AuthController {
@RequestMapping("/login")
public String getLoginPage() {
return "login";
}
}
| 20.133333 | 62 | 0.751656 |
7e5359fb4c35d7f414a7760801421d5584d53242 | 1,382 | package com.indeed.mph.serializers;
import com.indeed.util.core.Pair;
import com.indeed.mph.LinearDiophantineEquation;
import com.indeed.mph.SmartSerializer;
import javax.annotation.Nonnull;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
/**
* @author xinjianz
*/
public class Smar... | 28.791667 | 96 | 0.680897 |
4edccab2d24bac263bf1addefe96898de9bd72d8 | 659 | package leetcode_problems.medium;
import java.util.HashMap;
import java.util.Map;
public class FourSumII_454 {
public int fourSumCount(int[] a, int[] b, int[] c, int[] d) {
int res = 0;
Map<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < a.length; i++) {
for (int... | 25.346154 | 75 | 0.4522 |
ad54da66be6001e9cbafb11bc1a740c647f5a499 | 512 | package com.platform.aix;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* @description:
* @author: fuyl
* @create: 2020-08-24 14:25
**/
@SpringBootApplicati... | 28.444444 | 79 | 0.775391 |
43b10d19ccdb0a24cc0c2a1eccb0527daf7c4fa8 | 1,974 | package com.juyss.mapper.impl;
import com.juyss.mapper.BookMapper;
import com.juyss.pojo.Book;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import java.util.List... | 21.692308 | 73 | 0.647416 |
02db044e23d89a9bdccf7849cc0d658b6a31d021 | 835 | package io.micronaut.validation.validator.customwithdefaultconstraints;
import io.micronaut.core.annotation.AnnotationValue;
import io.micronaut.validation.validator.constraints.ConstraintValidator;
import io.micronaut.validation.validator.constraints.ConstraintValidatorContext;
import jakarta.inject.Singleton;
impor... | 37.954545 | 146 | 0.790419 |
526380d69fe7dca218f3e10365b01779ac562237 | 1,822 | /*
* Copyright 2015-present Facebook, 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... | 32.535714 | 98 | 0.705269 |
769c069f28f93f43936fb3062df164d7a74badff | 1,190 | /*
*
* Copyright (c) 2006-2019, Speedment, Inc. 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 requi... | 29.75 | 80 | 0.697479 |
cef1e0956a721f62b9b062c0d3894757df41e545 | 13,427 | package com.tony.ngeno.ridealong;
import com.tony.ngeno.ridealong.models.Carpool;
import com.tony.ngeno.ridealong.models.RideRequestPost;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import j... | 35.521164 | 216 | 0.549788 |
021dba8b066a33f30daf7e251188d3079b8652f3 | 76,635 | /*
Copyright (c) 2000-2020, Board of Trustees of Leland Stanford Jr. University.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice... | 36.475488 | 108 | 0.669968 |
1f97fd7bf57f02914b65e8c9a5f2f82702996385 | 583 | package com.scottlogic.deg.generator.outputs.datasetwriters;
import com.scottlogic.deg.generator.ProfileFields;
import com.scottlogic.deg.generator.outputs.GeneratedObject;
import java.io.Closeable;
import java.io.IOException;
import java.nio.file.Path;
public interface DataSetWriter<TWriter extends Closeable> {
... | 29.15 | 74 | 0.789022 |
a8076f8878d080e387bb5941612781bc38bbba44 | 338 | package org.filho.sergio.projections.pojo;
import lombok.Data;
import org.filho.sergio.projections.Projection;
import org.filho.sergio.projections.Property;
@Data
public class WrongConstructorAuthorDTO implements Projection {
@Property
private String name;
public WrongConstructorAuthorDTO(String name) {
this.n... | 18.777778 | 62 | 0.798817 |
6db127f41daff1de1aca33b45c440d473bb18d14 | 1,555 | /*
* Copyright 2016-2018 Litsec AB
*
* 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 ... | 33.804348 | 105 | 0.767846 |
a4b7a13c134ec7df91e22f3dd8c3d19a3a4350fc | 2,647 | /*
* Copyright (C) 2014-2021 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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/LICEN... | 28.159574 | 103 | 0.720816 |
4634514b7693fc252ce6dfbbbb4d00781a282e95 | 239 | package org.leibnizcenter.rechtspraak.tagging.crf.features.textpatterns.title;
import org.junit.Test;
/**
* Created by maarten on 1-4-16.
*/
public class TitlePatternsTest {
@Test
public void testPatterns() {
//todo
}
} | 18.384615 | 78 | 0.698745 |
2535622831a4061e0d1e53efdf48e90cda55293c | 3,996 | package uk.gov.hmcts.reform.ccd.documentam.client.datastore;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.HttpEnt... | 44.4 | 103 | 0.71021 |
7fbee40678e50aa359d483b79884b87b4e712d58 | 3,197 | package com.scj.beilu.app.ui.merchant.adapter;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.scj.b... | 36.329545 | 125 | 0.713481 |
725e4f5017fc3a820596eb4cfbb5fa534abecbf1 | 1,180 | /*
* Copyright 2021 Adobe. 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... | 31.052632 | 78 | 0.704237 |
82ddbdc965231047fabe55dc58c7ac4e71b22cd1 | 155 | package Exceptions;
public class StackException extends Exception{
public StackException(){super();}
public StackException(String s){super(s);}
}
| 22.142857 | 46 | 0.748387 |
f12ef4c7d4c965ae23287dd7150d21de331ad44f | 22,356 | package ca.pfv.spmf.algorithms.sequentialpatterns.spade_spam_AGP;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import j... | 42.827586 | 224 | 0.675166 |
e591aac2201351f3d94b76baa3619f7032812f63 | 9,793 | /***************************************************************************
* $Id: Point.java 1316 2011-07-01 18:18:32Z mathews $
*
* (C) Copyright MITRE Corporation 2006-2007
*
* The program is provided "as is" without any warranty express or implied,
* including the warranty of non-infringement and the implied... | 30.990506 | 98 | 0.691106 |
00f4ba757b1e19e89b1728cdab0540641ca49e1b | 23,702 | /*-
* ===============LICENSE_START=======================================================
* Acumos
* ===================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* ==========================================================... | 38.792144 | 178 | 0.735634 |
d7ae0e77551f4acf0f81181317b575ad4b24fa95 | 2,959 | package com.xydroid.dbutils.persistence.repository;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.xydroid.dbutils.persistence.sqlite.Entity;
import com.xydroid.dbutils.persistence.sqlite.... | 27.398148 | 136 | 0.620818 |
ba94876a80ff655c3371ef0ef6b113af90d7959d | 9,527 | /*
* 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 ... | 40.368644 | 99 | 0.732025 |
1b4507d363247ac007ea05529d0eea59b3365400 | 2,895 | /**
* Copyright 2010 Molindo GmbH
*
* 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... | 29.540816 | 104 | 0.711917 |
9a9842ff5cd03a246e2f5a591c10c7bf4880c960 | 3,694 | package com.zup.edu.mercadolivre.compra;
import com.zup.edu.mercadolivre.compra.dtos.CompraRequest;
import com.zup.edu.mercadolivre.compra.dtos.FinalizaCompraRequest;
import com.zup.edu.mercadolivre.compra.simulacoeslocais.GerarNotaFiscal;
import com.zup.edu.mercadolivre.compra.simulacoeslocais.GerarPontuacaoRanking;
... | 45.04878 | 196 | 0.765836 |
368ca613a9d7f99390b5078f0c8f5894c5abdc5c | 12,515 | package edu.upc.eetac.dsa.group7.dao;
import edu.upc.eetac.dsa.group7.db.Database;
import edu.upc.eetac.dsa.group7.entity.User;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql... | 32.338501 | 140 | 0.539912 |
ce0d663540a6bab606ffc166065cc9a9145fdded | 3,575 | //The MIT License
//
//Copyright (c) 2009 nodchip
//
//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... | 29.545455 | 96 | 0.69986 |
5ef7fa63a4d000c1a50b2391b8d689ea7aaacd0d | 647 | package com.seedapp.springrest.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annot... | 32.35 | 100 | 0.834621 |
96a439e922c40b5068cef7198a1f298d2ff5128b | 1,002 | package io.renren.wcs.client.dto.condition;
import java.io.Serializable;
/**
* 消息05制作条件
*
* @Author: CalmLake
* @date 2019/8/15 10:46
* @Version: V1.0.0
**/
public class MsgCycleOrderFinishReportAckConditionDTO implements Serializable {
private String msgMcKey;
private String plcName;
private Strin... | 21.782609 | 125 | 0.664671 |
8ea71f0339554bb6470aa8322f6c22bd7b4c4e41 | 3,848 | /*******************************************************************************
* Copyright (c) 2011 GigaSpaces Technologies 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 th... | 26.722222 | 89 | 0.679834 |
bbbcb598eb2bbcdab083321a7d27d9472afb0a48 | 3,336 | package com.example.poxiaoge.tvserver.utils;
import android.os.Environment;
//import com.zxt.dlna.util.DevMountInfo.DevInfo;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
public class DevMountInfo implements IDev {
/**
* ***... | 19.062857 | 72 | 0.666966 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.