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 |
|---|---|---|---|---|---|
00990b6b8caeed7831f1a0dccf6ee25257809a20 | 482 | package com.grolinger.java.controller.templatemodel;
/**
* Defines the thymeleaf template that is used to export a file
*/
public enum Template {
//1.2020.7 new procedures in preprocessor
COMPONENT_V1_2020_7("componentExport_V1_2020_7.html"),
SEQUENCE_V1_2020_7("sequenceExport_V1_2020_7.html");
priv... | 22.952381 | 63 | 0.701245 |
e4493bf17243a396b790c27646f25090e157e490 | 1,103 | package funky;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import com.sun.net.httpserver.HttpServer;
import org.json.JSONObject;
import java.io.IOException;
import java.io.OutputStream;
import java.net.InetSocketAddress;
public class Api implements HttpHandler {
priva... | 25.068182 | 101 | 0.650045 |
fce7f3aaa1a88e284b1558a21fc1a71cc75c8582 | 500 | package net.data.technology.jraft;
public class RpcException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 7441647103555107828L;
private RaftRequestMessage request;
public RpcException(Throwable realException, RaftRequestMessage request){
... | 25 | 78 | 0.68 |
8cda371ed9f39bc3304eddbd0100a17263645b8f | 1,221 | package org.ilmostro.vertx.grpc;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.grpc.VertxServerBuilder;
import org.ilmostro.verx.grpc.HelloReply;
import org.ilmostro.verx.grpc.HelloRequest;
import org.ilmostro.ver... | 33 | 116 | 0.701065 |
7c1e1b47b1010ff06a2f5011f9899da838535f97 | 529 | package polimorfismo_parte_1;
public class Mamifero extends Animal implements Caracteristicas{
private String corDaPele;
@Override
public void locomover() {
System.out.println("Os mamiferos se locomovem correndo");
}
@Override
public void alimentar() {
System.out.println("mamando");
}
@Override
pub... | 16.030303 | 64 | 0.724008 |
cbb5ec56044703267905198e5a8d441cb0a85838 | 2,404 | package rayo.ui.actions;
import static javax.swing.JOptionPane.ERROR_MESSAGE;
import static javax.swing.JOptionPane.INFORMATION_MESSAGE;
import static javax.swing.JOptionPane.showMessageDialog;
import java.awt.event.ActionEvent;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.... | 27.632184 | 107 | 0.740017 |
e972ef9ecf83de54dbe8aa1607cafbcec81c0d75 | 769 | package com.taskadapter.redmineapi.internal;
import com.taskadapter.redmineapi.RedmineException;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
public final class DirectObj... | 34.954545 | 153 | 0.726918 |
72d77e7070f760c313de41063afbdbab3c559a73 | 17,862 | /*
* 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... | 34.818713 | 101 | 0.579666 |
26dcd7ff1f41ac66ced0169be962a4b384474e5a | 2,258 | package org.apereo.cas.config;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.configuration.model.support.redis.RedisTicketRegistryProperties;
import org.apereo.cas.redis.core.RedisObjectFactory;
import org.apereo.cas.ticket.Ticket;
import org.apereo.cas.ticket.registry.RedisTick... | 41.814815 | 105 | 0.80248 |
05909216455f7ff34b560e5f276905ff6d020abc | 1,037 | package edu.harvard.iq.dataverse.ror;
import edu.harvard.iq.dataverse.persistence.ror.RorData;
import edu.harvard.iq.dataverse.persistence.ror.RorDataRepository;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.transaction.Transactional;
import java.util.Set;
/**
* Class dedicated only for abili... | 25.925 | 68 | 0.68081 |
394c9b4576e5ad5e023fdb2b56cff49af3c98199 | 4,803 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.sun.opengl.impl.mipmap.HalveImage;
import engine.entities.Visible;
import engine.entities.Visible.TransformListener;
import engine.gtypes.BBox;
import engine.gtypes.Vec3;
import junit.framework.TestCase;
abs... | 23.895522 | 72 | 0.592546 |
d9cd82b5d601a4d0ab32bd5ae236eed72028b5b2 | 87 | package com.example.core.mapper;
public interface Mapper<F, T> {
T map(F from);
}
| 10.875 | 32 | 0.678161 |
2a8704fabd1e3dcfeafd7b43036e53a436b7d1a9 | 3,878 | /*
* Copyright 2002-2015 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... | 38.39604 | 117 | 0.756318 |
5413f0d523da02b7f0c3f9c0d6b3310daf3f77f0 | 973 | package be.swsb.typesafety.example2.domain.booking;
import be.swsb.typesafety.example2.domain.DomainValidationRuntimeException;
import java.util.UUID;
import java.util.regex.Pattern;
public class Booking {
private UUID id;
private String bookingCode;
//imagine a bunch of other fields
private Bookin... | 24.948718 | 138 | 0.654676 |
5c08cad32d2b1d168be6e4a9fce6e6aba5784a57 | 8,023 | package datawave.query.tld;
import datawave.query.Constants;
import datawave.query.iterator.QueryIteratorIT;
import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Range;
import org.apache.accumulo.core.data.Value;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
imp... | 52.097403 | 159 | 0.67481 |
8413e4f12ed6ea88a87e350a5409aa22c4164bbe | 1,599 | /*
* (c) Copyright 2017 EntIT Software LLC, a Micro Focus company, L.P.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License v2.0 which accompany this distribution.
*
* The Apache License is available at
* http://www.apache.org/licenses/LICE... | 38.071429 | 147 | 0.741714 |
c46d153b256eb09e32b1a31d56104e0541999ddb | 4,927 | package com.autonavi.mapart.mapper;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | 35.192857 | 100 | 0.746905 |
10fd427e6e5ab21aaca98f9f84c63c940e35953b | 1,748 | package br.com.correios.estimativa;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class EstimativaComPrecoEPrazoTest {
private EstimativaComPrecoEPrazo estimativaComPrecoEPrazo;
@Before
public void setUp() {
estima... | 33.615385 | 118 | 0.837529 |
ef03fcac759d6236e881ac2ea9f59b88b0ee9319 | 4,583 | package com.signalDoc_doctor.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class MedicalInfomration implements Parcelable {
@SerializedName("id")... | 26.80117 | 109 | 0.620118 |
a276e207ae39d968e1298bda9d2c900562703912 | 947 | package postoffice.datatypes;
import java.io.UnsupportedEncodingException;
public class Letter {
private String sender;
private String recipient;
private byte[] payload = null;
public Letter(String sender, String recipient, byte[] payload){
this.sender = sender;
this.recipient = recipient;
this.paylo... | 17.537037 | 88 | 0.690602 |
261d52ce858cf4e6781825f43009fee2afd5377c | 431 | import java.util.Scanner;
public class Quetion02
{
public static void main(String[]args)
{
Scanner scan=new Scanner(System.in);
System.out.println("enter 10 numbers: ");
for(int i=0;i<10;i++)
{
int num=scan.nextInt();
if(num<100 && num>0)
{
if(num>75)
{
i=15;... | 11.342105 | 44 | 0.459397 |
2b93a0633cb17f6776d1c2a091aed4b8e1daee37 | 40,334 | package nl.nn.adapterframework.pipes;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeFalse;
import static org.junit.Assume.assumeTrue;
import java.io.... | 36.30423 | 322 | 0.734517 |
f0dff9cd3db0a76fa06acfa6d72634de2d3e944a | 654 | package ch.ethz.globis.phtree.util;
/**
* Type of mapper that does not use the value of the PHEntry, only the key.
*
* @param <T> Value type
* @param <R> Result type
*/
public interface PhMapperK<T, R> extends PhMapper<T, R> {
static <T> PhMapperK<T, long[]> LONG_ARRAY() {
return e -> (e.getKey());
... | 24.222222 | 75 | 0.558104 |
5572cf8f2ec763d400d4d92e19f4a935e51f42a7 | 4,338 | /**
* Tencent is pleased to support the open source community by making TDW available.
* Copyright (C) 2014 THL A29 Limited, a Tencent company. 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... | 33.369231 | 93 | 0.751037 |
a99d5154a6c08ea601ba3b19abbd8af7cddf712f | 10,638 | /*
* Copyright 1999-2020 Alibaba Group Holding 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 applica... | 41.717647 | 144 | 0.579056 |
3a67781d727f12f6628fc6523c561471cc9cb7c5 | 1,173 | /**
* Created by hpnhxxwn on 2017/3/1.
*/
import java.util.List;
import java.util.ArrayList;
public class PrimeGap {
public static void main(String[] args) {
int n = Integer.parseInt(args[0]);
boolean[] isPrime = new boolean[n];
for (int i = 2; i < n; i++) {
isPrime[i] = true;... | 29.325 | 88 | 0.421995 |
fbb3d57c6851e463b23b6e60b368eab3ee7b6185 | 2,386 | package io.jenkins.plugins.analysis.warnings;
import org.apache.commons.lang3.StringUtils;
import org.openqa.selenium.WebElement;
import edu.umd.cs.findbugs.annotations.CheckForNull;
/**
* Representation of a table row displaying the blames details for an issue.
*
* @author Thomas Großbeck
*/
public class Blames... | 25.655914 | 76 | 0.582984 |
4e652a3318aa92f8c10faaf1f14108da9ba5281c | 3,041 | /*
* Copyright (c) 2007 Tom Parker <thpr@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any... | 23.392308 | 92 | 0.734298 |
61a3fb5ef3868d9bddd1c9088b2f09895197fac9 | 1,110 | package com.cmpl.web.core.common.dao;
import com.cmpl.web.core.models.BaseEntity;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
public interface BaseDAO<ENTITY extends BaseEntity> {
/**
* Creer une entite
*/
ENTITY createEntity(ENTIT... | 19.821429 | 98 | 0.694595 |
2e781408ec0ec13489fb147a3570f334f56acb0b | 5,305 | package ro.lrg.method.defragmenter.visitors.fragment.groupers;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.jdt.core.IJavaProject;
import ro.lrg.method.defragmenter.utils.AbstractInternalCodeFragment;
import ro.lrg.method.defragmenter.utils.InternalCode... | 38.722628 | 121 | 0.75721 |
c05961cf2b27d4ff96c8a73e1aee9cd97564376c | 4,265 | package io.opensphere.core.units.duration;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.temporal.ChronoUnit;
import java.util.Calendar;
import io.opensphere.core.units.InconvertibleUnits;
import io.opensphere.core.units.UnitsUtilities;
import io.opensphere.core.util.Constants;... | 24.653179 | 104 | 0.611254 |
35287b6e8a374360c0575754dcaeba8716dff8f3 | 1,609 | package com.testvagrant.utils;
import java.io.FileReader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.Logger;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.testvagrant.common.Constants;
public class ReadConfigJson {
private static String apiB... | 30.942308 | 94 | 0.765693 |
f9e5d6b117868273b5f2648e8cde88e8ba72fadb | 9,841 | package uk.nhs.adaptors.gp2gp.ehr.mapper.diagnosticreport;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.lenient;
import static org.mockito.Mockito.when;
import java.io.IOException;
import java.util.Collections;
import java.... | 49.70202 | 131 | 0.748704 |
b864fa5387a3eb20fbdb1a9aebffd1e164829045 | 737 | package com.java.structuralPattern.flyweightPattern;
/**
* Created by Intellij IDEA Author: lizhiyong E-mail: lizhiyong@xiaomi.com Time:
* 17-3-2 下午3:42
*/
public class Client {
private static Order[] flavors = new Flavor[20];
private static int ordersMade = 0;
private static FlavorFactory flavorFactory... | 26.321429 | 80 | 0.640434 |
49b4de85566afb14da52a4689ea9946c152f3f21 | 4,099 | package mobi.chouette.exchange.netex_stif.importer;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import javax.naming.InitialContext;
import lombok.extern.log4j.Log4j;
import mobi.chouette.common.Constant;
import mobi.chouette.common.Co... | 39.796117 | 160 | 0.78019 |
60b5c995b6958e7fe03fcffd3b889277fc4721fb | 719 | package org.fwiffo.seedfinder.types;
import java.io.*;
import org.apache.beam.sdk.coders.AvroCoder;
import org.apache.beam.sdk.coders.DefaultCoder;
@DefaultCoder(AvroCoder.class)
public class Location implements java.io.Serializable {
public final int x;
public final int z;
public Location() {x=0; z=0;}
public ... | 23.193548 | 56 | 0.689847 |
821a5d60b9f0b95fe1bfc7aadc6a81bba825e91a | 1,149 | package osm5.ns.yang.nfvo.vnfr.rev170228;
import java.util.List;
import javax.annotation.Nullable;
import org.opendaylight.yangtools.yang.binding.DataObject;
import org.opendaylight.yangtools.yang.common.QName;
import osm5.ns.yang.nfvo.vnfr.rev170228.placement.group.info.PlacementGroupsInfo;
/**
*
* <p>
* This c... | 24.446809 | 112 | 0.704961 |
114057004036e128b5607295f6f3e9c7d668b1d1 | 4,362 | package com.planet_ink.coffee_mud.Abilities.Archon;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.p... | 39.297297 | 145 | 0.732691 |
ec7076855e53b0934ec9882856c160e711acbf59 | 2,859 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 36.189873 | 115 | 0.73802 |
aded685b3909c52b77d6527074e901a3fa0d5286 | 1,403 | package com.kaesar.algorithm4.exercise.chp4;
import com.kaesar.algorithm4.base.edu.princeton.cs.algs4.MinPQ;
import com.kaesar.algorithm4.exercise.chp1.Queue;
/**
* 最小生成树的Prime算法的延时实现
*
* @Author: chengk
* @Date: 2021/5/23 8:46 上午
*/
public class LazyPrimMST {
private boolean[] marked; // 最小生成树的顶点
privat... | 24.614035 | 63 | 0.497505 |
0e98d0582d0bbc03a0e1ab3562b2d5f0865b3563 | 566 | package net.pushq.soccero.framework;
import net.pushq.soccero.endpoints.LemStatEndpoint;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
public class RestEndpoints {
List<AbstractEndpoint> endpoints = new ArrayList<>();
public void register() {
endpoints.add(new LemSt... | 21.769231 | 55 | 0.701413 |
116fb9df1d552bf9238d10ac29fcfce6845d618d | 16,304 | package thaumcraft.common.blocks.devices;
import thaumcraft.common.blocks.*;
import net.minecraftforge.fml.common.*;
import net.minecraft.block.material.*;
import thaumcraft.common.tiles.devices.*;
import net.minecraft.block.state.*;
import net.minecraft.world.*;
import net.minecraft.entity.player.*;
import thaumcraft... | 49.108434 | 223 | 0.679772 |
77fd3de6c2003e368b0abde61d90709f6909f56b | 1,471 | /*******************************************************************************
* Copyright (c) 2013 Pronoia Health LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available... | 24.114754 | 81 | 0.579198 |
ff093902894e0a61bb44bdccd1c3f10ee70b8c54 | 3,132 | package com.cb.platform.yq.api.sign.bean.impl;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import org.springframework.web.multipart.MultipartFile;
/**
* 签名准备数据
* @author whh
*/
@ApiModel(value="com.cb.platform.yq.api.sig... | 24.092308 | 178 | 0.626756 |
6224b3972a441bd9f33469d90f573e483bdde96d | 1,644 | package mod.vemerion.mostshearables.renderer;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.vertex.IVertexBuilder;
import mod.vemerion.mostshearables.Main;
import mod.vemerion.mostshearables.capability.Clipped;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.clie... | 43.263158 | 130 | 0.817518 |
3b3889d7eccac47935e7f3a79d811b837b7b341b | 10,978 | package edu.cmu.geolocator.io;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import edu.cm... | 31.1875 | 152 | 0.614684 |
ba2a35014c1764c707cf929a83efc08f81ee6f85 | 731 | package ru.vetclinic.clinic.Operations;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Не закончен
* Created by Djony on 30.07.2016.
*/
public class ChangeClientNameTest {
/*@Test
public void simpleChanging() throws Exception {
Clinic clinic = new Clinic();
Client client1 =... | 27.074074 | 59 | 0.655267 |
26e910378a8e6eb6786968cac8e9a05c53e4983a | 35,644 | // Copyright 2009 Indeed
package com.indeed.util.varexport;
import com.google.common.base.Supplier;
import com.google.common.collect.AbstractIterator;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.indeed.util.varexport.external.PublicClass;
import org.apache.logging.log4j.c... | 41.884841 | 166 | 0.64151 |
14f149ca9e707b8e92455a82745900dec26abb30 | 3,568 | /*
* Copyright 2012 GitHub Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 30.237288 | 75 | 0.655269 |
ab26c78ca6e89282127d54104f4ee2ae90834c01 | 918 | package Views;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class LabelExample extends Frame implements ActionListener{
private JTextField tf;
private JLabel l;
public LabelExample(){
tf=new JTextField();
tf.setBo... | 27.818182 | 76 | 0.611111 |
ee282e5037575d96f89d05a6e0f9374d92f0ade8 | 3,893 | package core.apis.last.queues;
import core.Chuu;
import core.apis.discogs.DiscogsApi;
import core.apis.last.entities.chartentities.UrlCapsule;
import core.apis.spotify.Spotify;
import core.commands.utils.CommandUtil;
import dao.ChuuService;
import dao.entities.ScrobbledArtist;
import dao.entities.UpdaterStatus;
import... | 33.852174 | 153 | 0.643463 |
d86eb5bba696a907f3056200f35b251e09dd6355 | 5,082 | package com.prajitdas.simplecontentprovider;
import java.io.FileNotFoundException;
import java.io.IOException;
import android.app.Activity;
import android.app.Fragment;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaS... | 34.107383 | 86 | 0.736128 |
3d6a16c1bb6c0d2989895aafccec5f604544f39f | 3,980 | /*
* Copyright 2006-2018 Prowide
*
* 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... | 30.151515 | 75 | 0.688191 |
c919f3459256b129f2b7e78189184d76d78631e6 | 167 | package taursus.remoteControl;
public interface IKeyboardControl {
public IKeyboardControl pressKey(int key);
public IKeyboardControl releaseKey(int key);
}
| 20.875 | 48 | 0.790419 |
18b0f212c0977f465c6a273c2b12f72568d799c0 | 2,570 | /*
* Copyright 2016 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 applica... | 33.815789 | 119 | 0.665759 |
fba34291a73ff366ee3a135848501c24db6d5793 | 2,587 | /**
* Copyright (C) 2013 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.web.analytics.formatting;
import com.opengamma.engine.value.ValueSpecification;
import com.opengamma.financial.analytics.TenorLabelledLocalDateDoubleTimeSerie... | 38.044118 | 149 | 0.770777 |
8696f198ebb9032cd4b57a87d9ec7e9bde7d0b98 | 3,392 | // Copyright (C) 2020 The Android Open Source Project
//
// 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 ... | 37.274725 | 97 | 0.697524 |
ba2d9efe8fc3e10635ced4f3dffc9adc300e514d | 195 | package com.customized.libs.core.libs.proxy.interfaces;
public class ProxyIndexImpl implements ProxyIndex {
@Override
public void query() {
System.out.println("Query");
}
}
| 19.5 | 55 | 0.697436 |
85b23567fb65b15e311361062df1c5f683567ca9 | 6,235 | package com.vmware.avi.vro.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vmware.o11n.plugin.sdk.a... | 30.563725 | 96 | 0.706496 |
edba3f434c145d08563eaa852db5625bfd9d3876 | 1,605 | package seedu.address.ui;
import java.util.Comparator;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.model.groupmate.Groupmate;
/**
* An UI component that displays information of a {@code Groupmate}.
*/
public cl... | 26.75 | 93 | 0.634268 |
b317bd9bd6b57cc069049bdfdd3e63ad9c34997f | 798 | // Template Source: Enum.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------------------... | 20.461538 | 152 | 0.478697 |
7137f81f3c87e76d7f34a4b1cb6110ce92ff198a | 410 | package com.miniweather.android.gson;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* @author Jason
* @time 2017/6/27 21:29
* @desc ${TODD}
*/
public class Weather {
public String status;
public Basic basic;
public AQI aqi;
public Now now;
public Suggestion su... | 19.52381 | 50 | 0.702439 |
9f7e6417badff6a50955fe101415d0eef4541f42 | 2,874 | /*
* Copyright (c) 2022 SAP SE or an SAP affiliate company and XSK contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Apache License, v2.0
* which accompanies this distribution, and is available at
* http://www.apache.org/licenses/LICENSE-... | 39.369863 | 136 | 0.691023 |
710829f8b785f85a015451166131f3dceaa41f33 | 89 | package com.biblioteca;
public interface Displayable {
public String display();
}
| 11.125 | 30 | 0.730337 |
97b1c9fc65c8f808c2031a55d31bb82d1b5ab9d5 | 3,011 | /*
* Copyright (c) 2022 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS... | 19.679739 | 87 | 0.587512 |
83f043b33f21e12a46b38f688d1ee138f3269b6d | 1,661 | package com.secunet.eidserver.testbed.common.classes;
import java.security.InvalidParameterException;
import java.util.ArrayList;
import java.util.List;
import com.secunet.eidserver.testbed.common.interfaces.entities.TestCase;
public class TestModule
{
private String name;
private List<TestModule> modul... | 18.662921 | 102 | 0.665864 |
61236c3994b0a844d4bd0560a88d695376f8ff56 | 10,418 | /*
* Copyright 2011-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 32.354037 | 117 | 0.684968 |
cba74398e87530d9a150bce716b20b74e523afc3 | 3,978 | package com.crudsample;
import com.crudsample.dao.user.UserDaoImpl;
import com.crudsample.model.UserInfo;
import java.sql.SQLException;
import java.util.List;
import org.junit.jupiter.api.AfterAll;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.junit.jupiter.api.Assertions.assertEquals;
i... | 35.20354 | 111 | 0.687783 |
c69da19b0cf716e9faa1cccb58d61f2d0833fd2d | 3,650 | import java.io.FileReader;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import au.com.bytecode.opencsv.CSVReader;
// importing the class which will be used to read the CSV file
public class HbaseCSVtoOracle {
public HbaseCSVtoOracle() {... | 38.421053 | 132 | 0.625205 |
7cfe62a99d5826b066ee2bc8c6fc1e3d936ffcd2 | 116 | package PrimitiveDataTypes;
public class WholeAndFractional {
public static void main(String[] args) {
}
}
| 10.545455 | 41 | 0.724138 |
191e2a87d9df322135c4a2ab67b745e0cd8a829b | 2,537 | package com.sprb.domain;
import lombok.*;
import javax.persistence.*;
/**
* @ClassName:User
* @Descripion: User实体类
* @Author:andy.ten@tom.com
* @Date:2020/6/22 6:30 下午
* @Version V1.0
*/
// @Entity(name="EntityName") entity的name属性来表明对应数据库表的表名,默认为当前类名
// 如果定义了Entity的name属性,就不能定义@Table,反之,定义了@Table,就不需要@Entity的n... | 30.939024 | 158 | 0.729208 |
1c0279897aac418bdf36f5bc1719318f1b24c87f | 6,111 | /*
* Copyright (C) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 43.340426 | 106 | 0.748814 |
d534d704607b214cf00dedb012c7297f85b6c58b | 1,882 | package dk.lbloft.service;
import com.google.common.util.concurrent.AbstractIdleService;
import lombok.RequiredArgsConstructor;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client... | 33.607143 | 88 | 0.705632 |
4f8cd3cdfe18530282c780e48691c81d6a08fd0c | 3,344 | /*
* Copyright 1997-2020 Optimatika
*
* 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, publish... | 30.962963 | 132 | 0.635167 |
5be462e6c95d421b2b970fab98bbe64b0eae8a23 | 92 | /**
* Health and Metrics specific code.
*/
package org.appsec.securityRAT.config.metrics;
| 18.4 | 46 | 0.73913 |
14313e6ce43bdedc0d3f01767ce3326b98f15e08 | 27,629 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* This program 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 F... | 40.393275 | 146 | 0.665786 |
43b0931643c8942e800039c38ddb54cb9523f024 | 206 | package gui;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class View {
public View(Stage stage, Scene scene){
stage.setScene(scene);
stage.setResizable(false);
stage.show();
}
}
| 15.846154 | 41 | 0.718447 |
2b8df5d8ca7760dc61d0e74cfc046a35cd032085 | 2,042 | package me.zhengjie.modules.study.domain;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;
import me.zhengjie.modules.system.domain.Dict;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import lombok.Getter;
import lombok.Setter;
i... | 25.209877 | 92 | 0.649853 |
1ff3653cbae5b290534f4c4247cfaac27e71381a | 13,326 | /*******************************************************************************
* Copyright (c) 2014~2017 HoryuSystems Ltd. All rights reserved.
*
* 본 저작물의 모든 저작권은 HoryuSystems 에 있습니다.
*
* 소스를 참고하여 다른 프로그램을 제작하는 것은 허용되지만,
* 프로그램의 접두사, 기능등의 수정 및 배포는 불가능합니다.
*
* 기능을 거의 똑같이 하여 제작하는 행위등은 '참고하여 다른 프로그램을 제작한다는 것' 에 ... | 37.016667 | 177 | 0.616089 |
ed342af4c62bbca83b43667c133022e4c078ecf0 | 4,277 | package com.smcpartners.shape.frameworks.data.dao.shape.impl;
import com.diffplug.common.base.Errors;
import com.smcpartners.shape.frameworks.data.dao.shape.OrganizationDAO;
import com.smcpartners.shape.frameworks.data.entitymodel.shape.OrganizationEntity;
import com.smcpartners.shape.frameworks.data.exceptions.DataAc... | 34.491935 | 131 | 0.671265 |
6dd90ad535b6076c37a20f6efa86a4b587a224a9 | 1,735 | package com.arematics.minecraft.guns.listener;
import com.arematics.minecraft.core.items.CoreItem;
import com.arematics.minecraft.core.server.entities.player.CorePlayer;
import com.arematics.minecraft.data.mode.model.Weapon;
import com.arematics.minecraft.data.service.WeaponService;
import com.arematics.minecraft.guns... | 43.375 | 141 | 0.737752 |
2b435cbf0a1b441bc83e024571d13ce1bcfa9722 | 8,329 | package com.chen.fakevibrato.ui.home.view;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.PagerSnapHel... | 37.859091 | 137 | 0.611718 |
ffafe175ad74123e8fd2753e6a961c29a409dfd8 | 7,060 | package com.airlocksoftware.hackernews.activity;
import org.apache.commons.lang3.StringUtils;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import android.view.View;
import android.view.Vi... | 33.942308 | 116 | 0.749858 |
ca38280aea189c9c3da11d5ee8fc7321d1d156a0 | 957 | import java.util.Arrays;
import java.util.stream.IntStream;
public class greedy_42862 {
public static void main(String[] args) {
int n = 7;
int[] lost = {2,3,4};
int[] reserve = {1,2,3,6};
System.out.println(solution(n, lost, reserve));
}
public static int solution(int n, i... | 38.28 | 91 | 0.565308 |
663fcc1a463f454da9ef822b2c2c3dcb9b2c34fb | 901 | package org.mongobaba.refactory.chapter10;
import java.util.EmptyStackException;
import java.util.Stack;
/**
* Replace Exception with Test
* 以测试取代异常
*/
public class Chapter10_15 {
static class Resource {
@Override
public String toString() {
return "Resource{}";
}
}
... | 24.351351 | 57 | 0.54717 |
457c963a2864e203c961422c00efd68ce1d28728 | 3,188 | /*
* Copyright (C) 2016 ghomsi
*
* This program 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed... | 25.918699 | 102 | 0.611669 |
e8e6be8d7af2ace117a71e27dc920cba9d11c27e | 383 | package fr.atesab.xray.color;
import net.minecraft.world.entity.EntityType;
public class EntityTypeInfo extends AbstractEnumElement {
private EntityType<?> type;
public EntityTypeInfo(EntityType<?> type) {
super(EntityTypeIcon.getIcon(type), type.getDescription());
this.type = type;
}
... | 23.9375 | 67 | 0.684073 |
a57c1dc53e5ead38e40be891e3a5da10b25fa9a9 | 974 | package com.practice.petclinic.model;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "pets")
@Getter
@Setter
@NoArgsConstructor
public class Pet extends BaseEnt... | 22.136364 | 80 | 0.688912 |
feb4081db14d473181dc32d9d5e07fbe93450054 | 12,079 | package com.sensetime.stlivenesslibrary.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedWriter;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import ... | 27.704128 | 84 | 0.683252 |
fc0438516bf943a9528b3afab6a69d604a26aabd | 3,736 | package top.zeus2.data.util;
import lombok.extern.slf4j.Slf4j;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@Slf4j
public class StringUtils {
/**
* 检查指定的字符串是否为空.
*
* <ul>
* <li>StringUtils.isBlank(null) = true
* <li>StringUtils.isBlank("") = true
* <li>Stri... | 24.25974 | 105 | 0.521681 |
0da70e579942a872a3f1f3a6f2ff17b8da4b7ce5 | 781 | package com.aek.ebey.assets.web.request;
import io.swagger.annotations.ApiModel;
/**
* 资产状态返回实体类
*
* @author HongHui
* @date 2017年12月8日
*/
@ApiModel(value = "AssetsStatusResponse", description = "设备状态信息")
public class AssetsStatusResponse {
/**
* 设备id
*/
private Long assetsId;
/**
* 设备状态
*/
privat... | 14.735849 | 65 | 0.681178 |
2f0f01d11901ce2ec2ab76407fd6121201b505e0 | 1,775 | package PickupPointSystem.Server.NotificationSystem;
import javax.mail.*;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.*;
/**
* @author Gruppo D19
* @version 1.0.0
*/
public abstract class EMailSender extends Thread {
private final String username = "sm... | 28.629032 | 82 | 0.597746 |
ed42945e700460fd210557ff653192f4e6d62da8 | 5,489 | /*
* 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 fronteira;
import java.awt.BorderLayout;
import java.util.HashMap;
import javax.swing.JFrame;
import persistencia.BaseDeDados;... | 37.340136 | 132 | 0.63272 |
a7a796552dafd5160df295d78b05aa92f01e4bda | 1,936 | package ro.msg.learning.shop.security;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.security.config.annotation.authentication.buil... | 37.960784 | 139 | 0.752066 |
86bf7fcefb41cb0bbdefba7fb16a33a08ce5207d | 393 | package com._604robotics.quixsam;
import edu.wpi.first.wpilibj.geometry.Pose2d;
public class QuixsamEsimate {
private int id;
private Pose2d pose;
public QuixsamEsimate(int id, Pose2d pose) {
this.id = id;
this.pose = pose;
}
public int getID() {
return id;
... | 17.863636 | 49 | 0.577608 |
73cef59ca06f2e0347bb3e159ea6ff9e7a4c37e1 | 18,724 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses... | 14.469861 | 811 | 0.804743 |
e87f016f35e9a44563267121dc93cde827196643 | 3,324 | package com.education.controller.system;
import com.baomidou.mybatisplus.extension.api.R;
import com.education.common.Result;
import com.education.entity.system.PermissionEntity;
import com.education.mapper.system.PermissionMapper;
import com.education.service.system.PermissionService;
import com.education.vo.Permiss... | 27.471074 | 84 | 0.670878 |
906fe2273b4b3cd064284fb456ece07ae1df0d8c | 15,793 | package com.ziroom.ziroomcustomer.ziroomapartment.a;
import android.content.Context;
import android.text.TextUtils;
import com.alibaba.fastjson.a;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.freelxl.baselibrary.f.a.d;
import com.freelxl.baselibrary.f.h;
import com.ziroom.ziroomcustomer.util.ae... | 47.002976 | 289 | 0.741468 |
d6b845c025215eca73fbda6d4a72c3c83578b567 | 1,027 | package io.deephaven.engine.table.impl.sources.regioned;
import io.deephaven.chunk.attributes.Any;
/**
* Adds region factory for deferred column regions implementations. Deferred regions serve as placeholders, constructing
* (and usually swapping themselves for) the "real" region on first access.
*/
interface Defe... | 38.037037 | 133 | 0.718598 |
58ec56e1cff6f16043a47c859cd266d10681d09a | 1,593 | package ru.nsu.likhachev.network.filetransfer.messages;
import ru.nsu.likhachev.network.filetransfer.ClientMessageListener;
import ru.nsu.likhachev.network.filetransfer.MessageHandler;
import java.nio.ByteBuffer;
import java.nio.charset.StandardCharsets;
/**
* Copyright (c) 2016 Alexander Likhachev.
*/
public clas... | 25.693548 | 87 | 0.680477 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.