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 |
|---|---|---|---|---|---|
268c112cf88353edbc1e3533727f9fa6aa246cd9 | 1,414 | package org.jys.learn.kafka.consumer.spring.interfaces.batch;
import org.apache.kafka.clients.consumer.Consumer;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.jys.learn.kafka.utils.RecordLogUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfig... | 41.588235 | 140 | 0.77157 |
c61ccd5d1adce481f98c6bd373a747a504fc977d | 13,969 | package com.victor.baselib.view;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;... | 37.856369 | 123 | 0.507696 |
b317c4fb077b659f4b718e9b523c193aafc95a10 | 3,375 | package org.lyj.config.network;
import org.lyj.Lyj;
import org.lyj.commons.util.StringUtils;
import org.lyj.commons.util.json.JsonWrapper;
/**
* Network Configuration Helper
*/
public class ConfigNetwork {
// ------------------------------------------------------------------------
// c... | 31.25 | 89 | 0.427556 |
53e2d82b883992ffdcb5c09c18bc0d3bcb4cd5e3 | 805 | package org.fluentlenium.assertj;
import org.assertj.core.api.AbstractThrowableAssert;
import org.assertj.core.api.Assertions;
import org.assertj.core.api.ThrowableAssert.ThrowingCallable;
/**
* Utility methods for working with assertions.
*/
public final class AssertionTestSupport {
private AssertionTestSuppo... | 29.814815 | 102 | 0.73913 |
e9b6b767853b76dc919305ea1a771fc80993f1af | 1,475 | package com.apress.springrecipes.replicator.config;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jmx.export.MBea... | 28.921569 | 80 | 0.76 |
898179d9c786d0b33ba548233357563c64eaf152 | 17,386 | package org.spongycastle.jce.provider.test;
import java.io.ByteArrayInputStream;
import java.security.Security;
import java.security.cert.CertificateFactory;
import java.security.cert.X509CRL;
import java.security.cert.X509CRLEntry;
import java.util.Iterator;
import java.util.Set;
import org.spongycastle.jce.provider... | 64.63197 | 79 | 0.769125 |
9097715f8802cc4fbfc59e13d14b0e968197f057 | 264 | package com.alibaba.dubbo.performance.demo.agent.registry;
import java.net.InetAddress;
public class IpHelper {
public static String getHostIp() throws Exception {
String ip = InetAddress.getLocalHost().getHostAddress();
return ip;
}
}
| 20.307692 | 64 | 0.712121 |
635b9a238e340673630934194619fd2791934386 | 568 | package com.tenxerconsulting.swagger.doclet.sample;
/**
* The Pojo represents
* @version $Id$
* @author conor.roche
*/
public class Pojo {
/**
* This creates a Pojo
*/
public Pojo() {
}
/**
* This creates a Pojo
* @param name
*/
public Pojo(String name) {
super();
this.name = name;
}
privat... | 12.909091 | 51 | 0.603873 |
991f9b2776912a32218bad12abdaca41341765d2 | 2,203 | /*
* Copyright (C) 2015 AppTik 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 law or ag... | 33.892308 | 92 | 0.633227 |
da03441ee25bee8d7c42b292dc7000f4b42996c0 | 8,159 | package com.sweetrpg.catherder.common.config;
import com.sweetrpg.catherder.CatHerder;
import com.sweetrpg.catherder.api.CatHerderAPI;
import com.sweetrpg.catherder.api.registry.Talent;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.Mod... | 54.393333 | 273 | 0.710871 |
889d35ceda9ea1b2655381b86c0ddae22047ed0b | 4,185 | package org.tessell.widgets;
import org.tessell.gwt.dom.client.IsElement;
import org.tessell.gwt.dom.client.IsStyle;
import org.tessell.gwt.user.client.ui.IsWidget;
import com.google.gwt.event.dom.client.DomEvent.Type;
import com.google.gwt.event.logical.shared.AttachEvent.Handler;
import com.google.gwt.event.shared.... | 25.674847 | 94 | 0.701553 |
5a2ed079fc6080bb4fa3bbbf98e8433862287297 | 10,411 | package main.java.author.view.tabs.wave_editor;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
impo... | 28.290761 | 83 | 0.723273 |
092012065979e675f40cfb8ebefaf50bf5d89711 | 13,431 | /*
* Copyright 2020 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 applicab... | 24.243682 | 98 | 0.6485 |
837433f798469fcd728eb850490f9d6584e9b0bc | 484 | package ldbc.snb.datagen.test.csv;
import java.util.List;
public abstract class Check {
protected String checkName;
protected List<Integer> columns;
public String getCheckName() {
return checkName;
}
public Check(String name, List<Integer> columns) {
this.checkName = name;
... | 18.615385 | 55 | 0.652893 |
4455a22daa522d4549c57ec60111e9090d22e728 | 1,229 | package org.zalando.techtalks.hackingjava.valueobjects.lombok.immutable;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.google.common.collect.ComparisonChain;
import lombok.Data;
@Data
public class User implements Comparable<User> {
priva... | 29.261905 | 89 | 0.65419 |
2f17a4d0edea290460107866ecad57d58f0bec25 | 2,172 | package tw.bill.java101;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import tw.bill... | 34.47619 | 164 | 0.683241 |
1eaac0b153fb8be5b9aadb2348332970ea39df3a | 92 | package p;
import java.util.Set;
class B extends A{
public Set m() {
return null;
}
} | 9.2 | 21 | 0.641304 |
ecbe1a313718db1edcdca5f0eb3fa7da27340fc9 | 807 | package remember.domain.instances;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;
import remember.domain.InstanceType;
import remember.domain.Tip;
import javax.persistence.Ent... | 25.21875 | 62 | 0.744734 |
706b781824a27a803887b943fe0e7f29b9d2e26e | 10,653 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 43.659836 | 114 | 0.735849 |
08417e6defeaf5d4aa0b1c710f0cafa84038694c | 4,104 | ///*
// * Copyright (c) 2018 by Andrew Charneski.
// *
// * The author licenses this file to you 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... | 40.235294 | 156 | 0.673489 |
78534ff8c961f39921f1855a3e63902af52c13ad | 13,482 | package cherry.spring.tutorial.db.gen.dto;
import cherry.foundation.type.DeletedFlag;
import java.io.Serializable;
import org.joda.time.LocalDate;
import org.joda.time.LocalDateTime;
public class BizdatetimeMaster implements Serializable {
/**
* This field was generated by MyBatis Generator.
* This fiel... | 32.408654 | 138 | 0.641225 |
b825ee780ce408279677bb670dbdc6e285d89854 | 257 | package net.xasquatch.document.model;
import lombok.Data;
import java.util.Date;
@Data
public class Authorization {
private long no;
private String name;
private String mbr_no;
private String mbr_email;
private Date created_date;
}
| 15.117647 | 37 | 0.731518 |
24ac3d1e3465d987a065d50464a0af400e52bf79 | 745 | package com;
import org.hibernate.spatial.dialect.postgis.PostgisDialect;
import org.hibernate.type.descriptor.sql.BinaryTypeDescriptor;
import org.hibernate.type.descriptor.sql.SqlTypeDescriptor;
import java.sql.Types;
public class PostgresDialect extends PostgisDialect {
public PostgresDialect() {
sup... | 29.8 | 90 | 0.736913 |
c8226e0aaf7753ad5e7c64e29af04e7145ab51f9 | 8,222 | /*
* Copyright 2013-2014 Richard M. Hightower
* 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 ... | 26.184713 | 111 | 0.510946 |
5228e43bfda67f7c45b913d475ac38071209b77e | 1,430 | package Controlador;
import Modelo.*;
import Vista.*;
import java.io.InvalidClassException;
/**
* Bolsa de Valores de Lima
* <p>
* Programa para simular la bolsa de valores de Lima
* @author Johan Valerio Mitma
* @version 11.2
* @since 2019
*/
public class Run {
/**
* Funcion principal {@code main(S... | 29.791667 | 97 | 0.632168 |
00b4099295e3bab136086a591fd7013669726c6f | 770 | package com.github.messenger4j.user;
import com.github.messenger4j.common.MessengerHttpClient;
import com.github.messenger4j.internal.PreConditions;
/**
* @author Max Grabenhorst
* @since 0.8.0
*/
public final class UserProfileClientBuilder {
final String pageAccessToken;
MessengerHttpClient httpClient;
... | 27.5 | 89 | 0.749351 |
4e22aa8482049c1dcdb730c7cc10981e43f9abad | 9,053 | package com.went.core.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
imp... | 25.429775 | 118 | 0.593615 |
026b0e76af8f1b73c2533c507b558294c60eec32 | 2,428 | package org.nakedobjects.plugins.dnd.viewer.tree;
import org.nakedobjects.metamodel.adapter.NakedObject;
import org.nakedobjects.metamodel.consent.Allow;
import org.nakedobjects.metamodel.consent.Consent;
import org.nakedobjects.metamodel.spec.SpecificationFacets;
import org.nakedobjects.metamodel.spec.feature.NakedOb... | 36.238806 | 118 | 0.678336 |
474c5ade3e62ed3512f046b0973b4697a91c01fd | 5,531 | package ee.ioc.cs.vsle.table.gui;
/*-
* #%L
* CoCoViLa
* %%
* Copyright (C) 2003 - 2017 Institute of Cybernetics at Tallinn University of Technology
* %%
* 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 ... | 38.409722 | 124 | 0.537335 |
86897f0af00c31a3662cf9a89cffca5d2f433d7c | 1,932 | package com.szkopinski.todoo.service;
import com.szkopinski.todoo.model.Task;
import com.szkopinski.todoo.repository.TaskRepository;
import lombok.NonNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import ... | 28.835821 | 64 | 0.715839 |
4d6ec68c4bcbefc6fe07bd9274193b36be43f5c6 | 919 | package org.companion.inquisitor;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
class DefaultValidationRule implements ValidationRule {
private List<Condition> conditions;
private Map<String, Map<String, Object>> definitions;
... | 28.71875 | 101 | 0.669206 |
dc78d23dad19c5d521ef4febe43b6236db4fd036 | 2,021 | package jfxtras.icalendarfx.component;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import jfxtras.icalendarfx.components.VComponent;
import jfxtras.icalendarfx.components.VEvent;
import jfxtras.icalendarfx.components.VJournal;
import jfxtras.ic... | 32.596774 | 92 | 0.640772 |
f50832ac751943bf1b5260ca0b5454ea64f654e5 | 73,486 | package sadco;
import java.sql.*;
import java.util.*;
/**
* This class manages the CUR_DATA table with the help of the DbAccessC
* class. It has <b>get, put, del</b> and <b>upd</b> methods to <b>select,
*insert, delete</b> and <b>update</b> the table.
*
* @author 040203 - SIT Group
* @version
* 040203 - GenT... | 33.326984 | 92 | 0.556079 |
1a4a428770b6e059ed96fefc353377dac572e3d4 | 985 | package com.github.pister.zhoubao.biz.enums;
/**
* 岗位
* Created by songlihuang on 2022/3/7.
*/
public enum PositionEnum {
PD(2, "产品经理"),
OPS(3, "运营"),
MARKET(4, "市场"),
SELLER(5, "销售"),
FINANCE(6, "财务"),
LEGAL_AFFAIR(7, "法务"),
HR(8, "hr"),
TECH_ARCH(11, "架构师"),
UED_UI(20, "视觉设计... | 17.589286 | 44 | 0.551269 |
17b31ae7760b05150fb8e2f3dcbf7b7c9cbe5c7b | 833 | package org.camunda.bpm.extension.osgi.el;
import org.camunda.bpm.engine.impl.el.ExpressionManager;
import org.camunda.bpm.engine.impl.el.VariableContextElResolver;
import org.camunda.bpm.engine.impl.el.VariableScopeElResolver;
import org.camunda.bpm.engine.impl.javax.el.*;
public class OSGiExpressionManager extends ... | 39.666667 | 72 | 0.80072 |
1be53ba97cf289b8d453dc34df1678bdfea113ec | 697 | package com.virjar.vscrawler.core.net.user;
import com.virjar.vscrawler.core.net.session.CrawlerSession;
import com.virjar.vscrawler.core.util.VSCrawlerConstant;
/**
* Created by virjar on 17/6/4.
*
* @author virjar
* @since 0.0.1
*/
public class UserUtil {
public static User getUser(CrawlerSession crawlerSe... | 27.88 | 91 | 0.711621 |
4ddcb7721cff125684f1b0a7b5ae2202b549913c | 5,604 | package de.metas.rest_api.invoice.impl;
import java.time.LocalDate;
import org.springframework.context.annotation.Profile;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annota... | 44.832 | 218 | 0.784797 |
2c224ac864b585650272c9cd02f2b74a763b4da7 | 6,150 | /*
* Copyright 2013-2015 Urs Wolfer
*
* 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 ... | 44.244604 | 118 | 0.75122 |
ba04ba863bdb4a3eeb26169bd96e5d72651882d2 | 608 | package org.cs27x.filewatcher;
import java.nio.file.attribute.FileTime;
public class FileState {
private long size_;
private FileTime lastModificationDate_;
public FileState(long size, FileTime lastModificationDate) {
super();
size_ = size;
lastModificationDate_ = lastModificationDate;
}
public long get... | 18.424242 | 69 | 0.766447 |
3d1e1b8ceb89d6c9f93dfec4794f8069dc4b43e1 | 1,963 | package com.Unity3DExample.TextureParticles;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.PointerInfo;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
i... | 19.245098 | 112 | 0.684157 |
7242c21120efaa46f3945fc79177d695cef2597c | 1,670 | package de.energiequant.vatsim.compatibility.legacyproxy.attribution;
import static de.energiequant.vatsim.compatibility.legacyproxy.utils.ArgumentChecks.requireData;
import static de.energiequant.vatsim.compatibility.legacyproxy.utils.ArgumentChecks.requireDataOrNull;
import java.util.Collection;
import java.util.Co... | 27.833333 | 119 | 0.683234 |
b5b808d3c427d6b5e4187536766e0fd3e456fff1 | 9,263 | /*
* 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 ... | 33.200717 | 83 | 0.59376 |
cf46949113141581a08b5e8f6dacfe5c836f5251 | 808 | package com.lpq.mail.config;
import com.lpq.mail.interceptor.AuthenticationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.c... | 31.076923 | 77 | 0.77104 |
637b7454c5a37311bacad3241cd2350acb5739c6 | 1,450 | package com.gigaspaces.demo.feeder;
import com.gigaspaces.demo.common.*;
import org.openspaces.core.GigaSpace;
import org.openspaces.core.GigaSpaceConfigurer;
import org.openspaces.core.space.SpaceProxyConfigurer;
import java.util.logging.Logger;
public class Main {
private static Logger logger = Logger.getLogg... | 27.358491 | 91 | 0.668966 |
10db36569ac9010bbf679e8315b7677f100000c9 | 884 | package com.bizzabo.provider.mailchimp.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class MetadataLink
{
private String rel;
private String href;
private String method;
private String schema;
@JsonProperty("targetSchema")
private String targetSchema;
public String getRel()
{
return re... | 15.785714 | 53 | 0.718326 |
9363ea9c4c6cb79b1f3b397f8d4365cfef796363 | 6,237 | /**
*/
package com.amazonaws.blox.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/ecs-blox-v2017-07-11/EnvironmentRevision" target="_t... | 29.7 | 138 | 0.633317 |
41a288b38eb27a11e80e36450608f95e913beb3e | 1,276 | package com.step.jliang;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* Created by jliang on 17/4/21.
* 测试泛型的类
*/
public class Generics {
public void oldStyleMethod(List list){
list.add(new Cat());
}
@Test
public void checked... | 17.971831 | 79 | 0.588558 |
5ab1b549e1c37c7a02227696aa0cddcfe206c420 | 3,910 | package ch.sama.sql.dialect.tsql.query;
import ch.sama.sql.dbo.Field;
import ch.sama.sql.dbo.Table;
import ch.sama.sql.dialect.tsql.TSqlQueryFactory;
import ch.sama.sql.dialect.tsql.TSqlSourceFactory;
import ch.sama.sql.dialect.tsql.TSqlValueFactory;
import ch.sama.sql.query.helper.Condition;
import org.junit.... | 32.583333 | 136 | 0.409719 |
95e5e0f77eb1093b0d04444b22f1199bd4583622 | 35,379 | package com.samsung.galaxy_babies.data;
import com.samsung.galaxy_babies.obj.Baby;
import com.samsung.galaxy_babies.obj.BabyData;
import java.util.Calendar;
public class WeightData {
public static final double[][] boy = {
{2.3,2.5,2.6,2.8,2.9,3,3.3,3.7,3.9,4,4.2,4.3,4.6},
{3.2,3.4,3.6,3.... | 73.553015 | 79 | 0.483225 |
fe323e2b172a578c1e74fb99c9c47f03c369d7bf | 1,662 | package web.bean;
import domain.model.binding.UserRegisterBinding;
import domain.model.service.UserServiceModel;
import org.apache.commons.codec.digest.DigestUtils;
import org.modelmapper.ModelMapper;
import service.UserService;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
imp... | 26.380952 | 126 | 0.684116 |
fa1aecba8cb1259832e828d9ca9834edbb832f4d | 1,647 | package org.edx.mobile.view.dialog;
import android.support.v4.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import org.edx.mobile.R;
/**
* Created by yervant on ... | 31.075472 | 81 | 0.677596 |
6f60444cf09a70301cc32f35d26b31ebb46ffcc5 | 3,954 | /*
* Copyright 2011 Google 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 required by applicable ... | 26.716216 | 97 | 0.675518 |
122df5a969759582de40ffab0e85f38f63a84893 | 1,928 | package mondrian.olap.fun;
import mondrian.olap.Exp;
import mondrian.olap.FunDef;
import mondrian.olap.Syntax;
import mondrian.olap.Util;
import mondrian.olap.Validator;
import mondrian.olap.type.SetType;
import mondrian.olap.type.Type;
import java.util.List;
public class PatternNamedSetExpFunDef extends FunDefBase ... | 31.606557 | 94 | 0.525415 |
e8b40454ff29a4cdcc23ff73cfcffc3242ea34de | 25,198 | package dataVisualizers;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.Fil... | 32.724675 | 208 | 0.688983 |
19a8420fb08a177675d4779249ed1d6acc2c04c5 | 401 | package com.softicar.platform.common.container.matrix.data.table;
import java.util.Map;
public class MatrixDataTableRow<R, C, V> {
private final R row;
private final Map<C, V> valueMap;
public MatrixDataTableRow(R row, Map<C, V> valueMap) {
this.row = row;
this.valueMap = valueMap;
}
public R getRow() {
... | 15.423077 | 65 | 0.693267 |
4af019c36b3acd76bb243d02372cec6d55ed4866 | 999 | package no.kantega.openaksess.search.config;
import no.kantega.openaksess.search.provider.transformer.AttachmentTransformer;
import no.kantega.openaksess.search.provider.transformer.ContentTransformer;
import no.kantega.publishing.common.data.enums.ObjectType;
import no.kantega.search.api.retrieve.IndexableContentType... | 45.409091 | 128 | 0.851852 |
62ee3228b359c918dd1be18b86451459cfc75288 | 3,511 | /*
* 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.016529 | 119 | 0.748505 |
d4a63846ad63972a148277719ffe246bccb228ac | 448 | package com.ht.healthindex.service;
import com.ht.healthindex.dataobject.ManualAdjustRecordDO;
import com.ht.healthindex.error.BusinessException;
import java.util.List;
public interface ManualAdjustService {
List<ManualAdjustRecordDO> listByDeviceIdAndDate(Integer deviceId,String beginDate,String endDate);
... | 28 | 104 | 0.796875 |
04b43d897c651d10b3726d491d22042418a892c6 | 10,343 | /*
* 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 edu.gestudent.gui;
import com.codename1.components.ImageViewer;
import com.codename1.ui.Image;
import com.codename1.c... | 33.581169 | 108 | 0.54839 |
08e94a7156fdb20ffb8a12edfff0a9387d4ca210 | 13,801 | /*
*
* 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"); ... | 30.002174 | 129 | 0.667778 |
f29d2ab192ac54729240d518f46b3ec7321374df | 1,334 | package test.mongodborm;
import java.io.InputStream;
import java.util.Arrays;
import java.util.List;
import org.springframework.core.io.InputStreamResource;
import org.springframework.core.io.Resource;
import org.yy.mongodb.client.MongoClientTemplet;
import org.yy.mongodb.client.MongoDataSource;
import or... | 31.023256 | 86 | 0.682909 |
0ee2dd4fc39cbb95145d29cf83692fce2e4be64a | 14,088 | package com.xunlei.downloadprovider.member.register.ui;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.SpannableString;
import android.text.... | 33.946988 | 196 | 0.610307 |
4aa71648240f37dcaaf759215a3c14c57f7c35bf | 5,355 | package cn.dennishucd.activity;
import java.io.InputStream;
import org.json.JSONArray;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickList... | 27.321429 | 74 | 0.681793 |
092d5a21ce72f20074b6564adadbcab180a954ef | 4,436 | /*
* Copyright 2014 Google 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 required by applicable ... | 31.913669 | 99 | 0.752029 |
00b29e1aafa6659d48d5d1661be7dc0f41abab12 | 2,373 | package common;
public class LoginParams {
public static final String LOGIN_NOT_SPECIFIED = "'Login' is not specified (/l|-l|/login|--login)";
public static final String PASSWORD_NOT_SPECIFIED = "'Password' is not specified (/p|-p|/password|--password)";
public static final String URL_NOT_SPECIFIED = "'URL'... | 31.223684 | 123 | 0.581121 |
56d7ecbf7391d77f15187156ec91fb45fb72b3ce | 752 | package com.yishuifengxiao.common.code.constant;
/**
* 验证码模块错误码常量
*
* @author yishui
* @version 1.0.0
* @since 1.0.0
*/
public final class ErrorCode {
/**
* 错误的验证码发送目标
*/
public final static int ERROR_CODE_TARGET = 100;
/**
* 验证码生成器不存在
*/
public final static int GENERATOR_NO_EXTIS = 101;
/**
*... | 14.188679 | 53 | 0.650266 |
08bb670de9b309714ba4ccaf1070d540495dd670 | 6,067 | /*
* 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 ... | 36.993902 | 97 | 0.711719 |
d4e29dfddb13169e9075149f47f6d4661d8f51f7 | 3,944 | package com.xyoye.dandanplay.ui.weight.dialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
import android.view.View;
import a... | 34.295652 | 111 | 0.613337 |
b91fa8542ddaf403b29493565647fc37aa021f00 | 497 | package org.dromara.hodor.register.api;
import org.dromara.hodor.common.Host;
/**
* register manager
*
* @author tomgs
* @since 2020/9/23
*/
public final class RegisterManager {
private static final RegisterManager INSTANCE = new RegisterManager();
private RegisterManager() {
}
public static ... | 17.75 | 82 | 0.688129 |
2485b2514b4a0b6dca0314d53cf54183f760c786 | 299 | package br.com.bruno96dantas.ksspoohibernate.models;
public class Cachorro extends Animal {
public Cachorro() {
}
public Cachorro(String nome, Integer idade, String raça) {
super(nome, idade, raça);
}
@Override
public String som() {
return "Au!";
}
}
| 17.588235 | 62 | 0.625418 |
9ba289efca50fbeb1023bd4ad262711be9db0efc | 1,172 | package biggerfish.terrain;
import org.joml.Vector2i;
import biggerfish.quadtree.QuadTree;
import biggerfish.quadtree.QuadTreeNode;
import cage.core.asset.AssetManager;
import cage.core.graphics.GraphicsDevice;
import cage.core.graphics.sampler.Sampler;
import cage.core.graphics.type.EdgeType;
import cage.c... | 35.515152 | 113 | 0.696246 |
8d79dbc336afa5579a1d296d4acca94963bd9781 | 8,796 | /*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & dreamlu.net).
*
* 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
*
* Unles... | 27.835443 | 118 | 0.728513 |
62dd11ec05c0b39780e64daec6beefa9a67b6a21 | 774 | /*
* Copyright (c) $day.year. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellente... | 27.642857 | 98 | 0.678295 |
6c9fb82369321be0c58fdcdc077b5d1353810bf7 | 4,582 | /*
* 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 ... | 26.485549 | 109 | 0.645133 |
de59b4dd96b61dc4f87f6072200e894aab1a7a7c | 894 | package exercicios;
import java.util.Locale;
import java.util.Scanner;
public class Exercicio_18 {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner sc = new Scanner(System.in);
System.out.println("------------------");
System.out.println(" IMC ");
System.ou... | 24.833333 | 56 | 0.623043 |
2b95f2fd522299c2ee3f0f682908810f2a328c53 | 311 | package pl.simonduraj.blooddonor.ui.main;
import java.util.List;
import pl.simonduraj.blooddonor.data.model.Ribot;
import pl.simonduraj.blooddonor.ui.base.MvpView;
public interface MainMvpView extends MvpView {
void showRibots(List<Ribot> ribots);
void showRibotsEmpty();
void showError();
}
| 18.294118 | 49 | 0.762058 |
830d32ef267e5a4cee87c06c810941940014bcd1 | 1,457 | package com.ways2u.android.goapp.util;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.support.annotation.StringRes;
import android.view.Gravity;
import android.widget.Toast;
import com.ways2u.android.goapp.dagger.ui.ActivityScope;
import javax.inject... | 28.568627 | 88 | 0.694578 |
3ffbb41cbfb2dfbd64c0aea38d541d96b4c85c0a | 3,454 | /*
* Java Genetic Algorithm Library (@__identifier__@).
* Copyright (c) @__year__@ Franz Wilhelmstötter
*
* 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/... | 31.688073 | 84 | 0.743775 |
6c5dba1f09f78d51c3ec401c356fa99c0644e9e0 | 22,032 | package org.egov.vendor.service;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList... | 36.966443 | 171 | 0.742738 |
ffd51019d4dedc158ab516549b5123a28fce7efa | 4,990 | package org.loguno.processor.handlers;
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
import com.sun.tools.javac.tree.JCTree;
import com.sun.tools.javac.util.ListBuffer;
import com.sun.tools.javac.util.Pair;
import org.loguno.Loguno;
import org.loguno.processor.LogunoScanner;
import org.loguno.proce... | 35.642857 | 127 | 0.693387 |
9399d9fc4b3e5b644404e53d4fc06705d58ae5df | 2,925 | package com.timojo.energymart.model;
import com.timojo.energymart.util.WeekHour;
import java.math.BigDecimal;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
public class PricePlan {
private static fina... | 34.011628 | 138 | 0.654701 |
1cd41ba92f33ee6a47fac2924eca9117b596b1e0 | 1,928 | package com.springapp.mvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.ws.rs.Path;
import javax.xml.bind.annotation.*;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/**
* Created with Intel... | 20.956522 | 69 | 0.625519 |
7cc72504d83c741d0a4f352ae5fe05817863024a | 1,723 | package io.github.stairman06.loader4k.patch;
import io.github.stairman06.loader4k.Hooks;
import net.fabricmc.loader.impl.game.patch.GamePatch;
import net.fabricmc.loader.impl.launch.FabricLauncher;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;... | 35.895833 | 158 | 0.784098 |
26e656bd98d71c6e346e9f3e1e0894eb172aa032 | 1,527 | package com.mcmanuellp.twodpathfinding;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Window extends JFrame
{
JPanel panelButtons;
JLabel header;
JLabel display;
final int buttonCount = 9 * 9;
JButton[] buttons = new JButton[buttonC... | 22.455882 | 95 | 0.709889 |
6c4d67be6799d734b87cf553e03bca67573b487a | 1,844 | package fi.luukuton.jirin.dao;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
/**
* A class for the handling of the settings.properties file.
*/
public class Settings {
private final Properties settings;
private final String setting... | 29.269841 | 102 | 0.677332 |
61c988e7dce887dcc6eabbe14bcf96b5a1e82ed6 | 12,314 | package datawave.query.iterator.logic;
import com.google.common.collect.TreeMultimap;
import datawave.query.attributes.Document;
import datawave.query.iterator.NestedIterator;
import datawave.query.iterator.SeekableIterator;
import datawave.query.iterator.Util;
import datawave.query.iterator.Util.Transformer;
import o... | 35.900875 | 158 | 0.574468 |
48a6bc57b8610e3e3c4093ee7919a00d1f8b6acf | 948 | package de.qaware.qav.graph.api;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Node in the dependency graph.
*
* @author QAware GmbH
*/
public class Node extends AbstractGraphElement {
/**
* Constructor.
*
* A node always has a name which can not be changed.
*
... | 20.170213 | 64 | 0.559072 |
273c0f86707bc3c8e7454794db9cacb3ebaca00d | 1,039 | package pt.ulisboa.tecnico.softeng.activity.domain;
import org.junit.Assert;
import org.junit.Test;
public class ActivityMatchAgeMethodTest extends RollbackTestAbstractClass {
private static final int MIN_AGE = 25;
private static final int MAX_AGE = 80;
private static final int CAPACITY = 30;
private Activity act... | 25.341463 | 85 | 0.755534 |
c7e64f8586bf75b310f4f490df624b5b0960f1f5 | 433 | package com.diwakar.dto;
import com.diwakar.entity.User;
import com.diwakar.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserDTO {
@Autowired
UserRepository userRepository;... | 22.789474 | 62 | 0.778291 |
8d112cebf103cec1795527b3caa14ee5526fa49a | 8,081 | package com.little.g.common.web.interceptor;
import com.google.common.base.Strings;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.little.g.common.CommonConstants;
import com.little.g.common.CommonErrorCodes;
import com.l... | 35.599119 | 121 | 0.648063 |
43374a6637e8ca6bf24afe4b7b291a3a6241167d | 2,969 | package tbox;
import java.util.Arrays;
public class ByteOps
{
public static byte[] xor( byte[] a, byte[] b )
{
if ( a.length != b.length ) return null;
byte[] result = new byte[ a.length ];
for ( int ii = 0; ii < result.length; ii++ )
result[ii] = (byte)(a[ii] ^ b[ii]);
return result;
}
... | 26.747748 | 79 | 0.563153 |
2f78674ca16a89a2614264880814d07ebbe014af | 311 | package week1.les01.practicum1;
import java.net.Socket;
import java.io.OutputStream;
class Client {
public static void main(String[] arg) throws Exception {
Socket s = new Socket("localhost", 4711);
OutputStream os = s.getOutputStream();
os.write("HOLENDRECHT\n".getBytes());
s.close();
}
} | 25.916667 | 58 | 0.697749 |
d56d5b14cbeff408a7fd6a9cba29908aefeaf8ca | 3,340 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any la... | 39.761905 | 94 | 0.69491 |
84037b8b14f0f8e934df0d2e1e6eb5f07e9fa873 | 2,446 | package pt.ulisboa.ewp.node.api.ewp.controller.iias.approvals.cnr;
import eu.erasmuswithoutpaper.api.architecture.v1.EmptyV1;
import eu.erasmuswithoutpaper.api.iias.approval.cnr.v1.IiaApprovalCnrResponseV1;
import io.swagger.v3.oas.annotations.Operation;
import java.util.Collection;
import org.springframework.http.Med... | 45.296296 | 123 | 0.820523 |
4cb29d3ef05b52baada14f3fe9ee324641206729 | 970 | package com.challenge.entity;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.N... | 21.555556 | 74 | 0.742268 |
08dac7a90e0260f130beceff6dc64d9ced6b602b | 2,004 | package com.crud.cloud.evanliu2968.po;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import c... | 17.578947 | 88 | 0.622255 |
fe17c40757559a57d52c06f2134c6183af897907 | 891 | package cf.nirvandil.coursework.rest;
import cf.nirvandil.coursework.repo.TeacherRepo;
import cf.nirvandil.coursework.rest.dto.TeacherDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.transaction.annotation.Transactiona... | 28.741935 | 85 | 0.777778 |
a3e9a8603011837010e6f0a2b9389722507e9f24 | 5,806 | /*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
* Standards and Technology (NIST), and others.
* This software has been contributed to the public domain.
* Pursuant to title 15 Untied States Code Section 105, works of NIST
* employees are not subject to copyright pro... | 32.077348 | 152 | 0.731485 |
9dd052fc73e0594d515759c3b0a7376e74f09560 | 6,384 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 35.664804 | 162 | 0.784774 |
360697a85c882edcc5f91a124a764927f845ae12 | 1,554 |
import java.util.Scanner;
public class Solution {
private static final Scanner scan = new Scanner(System.in);
public static void main(final String... args) {
int n, p;
int[] ints;
n = scan.nextInt();
ints = new int[n];
while (n-- > 0) {
int temp;
... | 23.545455 | 70 | 0.469112 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.