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 |
|---|---|---|---|---|---|
4aea51f674fd2d88befd5f40e79aade9bb6503a5 | 1,759 |
/*
ID: helena.6
LANG: JAVA
TASK: range
*/
import java.io.*;
public class range {
static int n;
static int[][] grid;
public static void main(String[] args) throws IOException {
BufferedReader f = new BufferedReader(new FileReader("range.in"));
PrintWriter out = new PrintWriter(new BufferedWrite... | 21.45122 | 86 | 0.474133 |
d5cc4350d2ea5be768eb87fd0d621b46c69b00b5 | 4,239 | /*
* Copyright (c) 2016, 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
*
* ... | 44.15625 | 116 | 0.692616 |
67ddf171ad61ea36162260809146a295b2eb992d | 2,147 | package de.metas.ui.web.window.descriptor;
import java.util.Set;
import org.adempiere.ad.callout.api.ICalloutExecutor;
import org.adempiere.ad.callout.api.ICalloutField;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
import de.metas.util.Check;
/*
* #%L
* metasfresh-web... | 26.8375 | 117 | 0.757802 |
e18992a0fe3460e40f3290c7d07043ab1aac58ad | 2,118 | /*
* 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 ... | 42.36 | 110 | 0.746459 |
6ea9eb5727afe3815bad66f759d7f089dd6b38bd | 880 | package org.fan.demo.pratice;
import java.util.HashMap;
import java.util.Map;
/**
* 两数之和
* 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。
*
* 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。
*
* 给定 nums = [2, 7, 11, 15], target = 9
*
* 因为 nums[0] + nums[1] = 2 + 7 = 9
* 所以返回 [0, 1]
*
* 来源:力扣(LeetCode)
... | 22.564103 | 65 | 0.619318 |
ac8a452791425fe900d0b74ae8b7ee9851112cec | 896 | package com.xfhy.myokhttp;
import com.alibaba.fastjson.JSON;
import java.nio.charset.StandardCharsets;
/**
* Created by xfhy on 2019/7/18 22:33
* Description : 一个任务
*/
public class HttpTask<T, M> implements Runnable {
private IHttpRequest mIHttpRequest;
public HttpTask(String url, T requestData, Class<M... | 26.352941 | 121 | 0.667411 |
09769977d8b4e06733eb992038340b0cbeeeab65 | 2,011 | package org.appdapter.gui.swing;
import java.util.Collection;
import org.appdapter.gui.api.BT;
import org.appdapter.gui.api.NamedObjectCollection;
import org.appdapter.gui.api.POJOCollection;
import org.appdapter.gui.api.POJOCollectionListener;
import org.appdapter.gui.browse.Utility;
/**
* A GUI component showing ... | 28.323944 | 179 | 0.7454 |
2a953a5b5a043303dddd48c6cfb86cddee6038ef | 6,722 |
package shiver.me.timbers.aws.sagemaker;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
im... | 37.977401 | 202 | 0.733413 |
52cbcb3ff5eaab1649973626906ad8028456649f | 7,457 | /*
* Copyright (c) 2009-2020 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 27.116364 | 78 | 0.637656 |
ba334ac0368d7d9f4e78edfbee75dc12cd96e9d0 | 5,444 | package org.apache.synapse.mediators.transform.custom;
import org.apache.axiom.om.OMAttribute;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMText;
import org.apache.axiom.om.impl.llom.util.AXIOMUtil;
import org.apache.axis2.AxisFault;
import org.apache.axis2.databinding.utils.BeanUtil;
import org.... | 30.244444 | 128 | 0.608009 |
952fc7f9f837845379dc28a8c8165ea5cc42dac0 | 2,717 | package com.init.mini.web.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "rocketmq")
public class RocketMQProperties {
// isEnable 是否开启mq
private boolean isEnable = false;
// namesrvAddr 集群地址
private String namesrvAddr = "local... | 29.532609 | 95 | 0.734634 |
d00e7ce9324814e73be99c2091eb957b7467ba28 | 795 | package kr.docs.smartaddemo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import kr.docs.smartad.SmartAdBanner;
public class BannerActivity extends AppCompatActivity implements SmartAdBanner.OnSmartAdBannerListener {
@Override
protected void onCreate(Bu... | 27.413793 | 104 | 0.728302 |
1753d5d3f0da100cd5b8bd56890cd71a5e670ad6 | 5,540 | package net.phalapi.sdk;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import ja... | 25.412844 | 108 | 0.624368 |
1dc1c4b635a4404aceb1264f5938c63552fef61d | 637 | package cn.lite.flow.console.dao.mapper;
import cn.lite.flow.common.dao.basic.BaseMapper;
import cn.lite.flow.console.model.basic.Role;
import cn.lite.flow.console.model.query.RoleQM;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* Created by ly on 2018/10/24.
*/
public interface RoleMappe... | 20.548387 | 62 | 0.626374 |
fff0eaeac1599a383d9dc75a1f3f41945c14a96c | 789 | package com.xiaomi.mipush.sdk;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.util.Log;
final class i
implements Runnable
{
i(Context paramContext) {}
public void run()
{
try
{
PackageInfo localPackageInfo = this... | 23.205882 | 110 | 0.665399 |
6838c9fa4097ed61c8a3ce3dda0c74a75e008a67 | 4,046 | package leetcode.map;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
/**
* Created by Joshua on 6/18/17.
*/
public class WordSearchII1 {
HashMap<Character, List<String>> map = new HashMap<>();
public List<String> findWords(char[][] board, String[] wor... | 26.794702 | 103 | 0.448344 |
8a974086486b31bac4aa174c822543738a31de08 | 2,360 | /*
* 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 u... | 33.714286 | 109 | 0.636864 |
6001cd8ec9bc25b3b91ea30b2cd9b4e7eeb032d5 | 296 | package com.hutquan.hut.mapper;
import com.hutquan.hut.pojo.Comment;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ICommentMapper {
int insertDynamicComment(Comment comment);
List<Comment> queryCommentDynamic(int dynamicId);
}
| 19.733333 | 53 | 0.797297 |
9227ec49ec967e31aa764d69c595634870cfe658 | 2,108 | /*
* 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... | 35.728814 | 98 | 0.744307 |
e187b63937a5ee04e5a1b106e34d776ea804c623 | 3,021 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.criteria;
import org.hibernate.Criteria;
import org.hib... | 25.820513 | 111 | 0.672294 |
3c5da2d7c7258e32d21a66a134b574cc3a69673b | 266 | package com.sfelaco.rsocket.pojos;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZTLAccessRequest {
private List<ZTLAccess> ztlAccesses;
}
| 16.625 | 37 | 0.823308 |
e7b7c0a88526d2d00243f58c94a6c0dc16244826 | 1,953 | package com.cinesis.controller;
import java.sql.Date;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import com.cinesis.model.Entrada;
public class ControllerEntrada implements Con... | 27.507042 | 116 | 0.690732 |
a0dd2762ca9edde4899b0d948ba24377aa16b671 | 11,238 | /**
* Copyright (c) 2017 Ariel Favio Carrizo
* 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 o... | 43.55814 | 160 | 0.675387 |
05c7cb72594bf6b434100c5f6bf6f15726210fff | 3,719 | package one.kii.summer.asdf.api;
import one.kii.summer.io.context.WriteContext;
import one.kii.summer.io.exception.*;
import org.junit.Test;
import org.springframework.http.ResponseEntity;
import org.springframework.util.Assert;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.Multi... | 32.33913 | 121 | 0.663619 |
1a115224050570d8cbafdcad8e788ac9227fcd04 | 649 | package util4j.config;
import java.io.IOException;
import java.util.Properties;
public class ConfigDB {
private static Properties p = new Properties();
static{
try {
p.load(ClassLoader.getSystemResourceAsStream("/config.properties"));
} catch (IOException e) {
e.printStackTrace();
}
}
... | 23.178571 | 73 | 0.679507 |
5cfacc5300884648b197287f5149d3d5c6c481c1 | 240 | package com.ncme.springboot.mapper;
import com.ncme.springboot.model.SystemResourceSite;
public interface SystemResourceSiteMapper {
int insert(SystemResourceSite record);
int insertSelective(SystemResourceSite record);
} | 26.666667 | 53 | 0.791667 |
646ba267b65865924bdd4f6dc516bba999afdad7 | 858 | package merlin.ianusinc.ianusinchq.materials;
import net.minecraft.block.material.EnumPushReaction;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
/**
* Created by Seine Eiligkeit on 03.07.2017.
*/
public class IanusIncHolographicMaterial extends Material {
public... | 18.652174 | 59 | 0.680653 |
23f5d342a636587eca8b7fb1cfdb843188c7444b | 3,146 | package com.g2forge.habitat.trace;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Executable;
import java.lang.reflect.Field;
import java.util.Map;
import java.util.stream.Stream;
import com.g2forge.alexandria.java.core.helpers.HStream;
import lombok.AccessLevel;
import lombok.Build... | 38.365854 | 196 | 0.768913 |
1bb3e31e884cae62c18c09dc0a35fca2fddf4ba1 | 127 | package com.freeinfo.mediaw.mediawapp.model;
import lombok.Data;
@Data
public class What3words {
private String words;
}
| 11.545455 | 44 | 0.76378 |
d9f16e32658e710f0f444dd0c64a598d1acf5a23 | 1,491 | package com.example.application.views.booking;
import com.example.application.data.entity.Address;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.html.Image;
import com.vaadin.flow.component.html.Paragraph;
import com.vaadin.flow.component.h... | 28.673077 | 117 | 0.700872 |
dcc8946a24dc8c13c7d65a47a32cef03004eda06 | 1,089 | package com.codepath.instagram_app;
import android.app.Application;
import com.codepath.instagram_app.model.Post;
import com.parse.Parse;
import com.parse.ParseObject;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
public class ParseApp extends Application {
@Override
public voi... | 32.029412 | 85 | 0.707071 |
2155dbe51ff99ecbbb5e8ea86dd18664d16f9ce3 | 1,459 | package com.hp.autonomy.frontend.find.idol.users;
import com.hp.autonomy.types.idol.responses.UserDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.... | 44.212121 | 210 | 0.806032 |
43eacdd7a7bb91f44c93dc352214970088b55553 | 10,880 | /**********************************************************************
Copyright (c) 2004 Erik Bengtson and others. 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
ht... | 32.094395 | 154 | 0.590074 |
f0e86e34ab6b3e34733214cef9f31bef849e5043 | 2,721 | /*
* Android基础开发个人积累、沉淀、封装、整理共通
* Copyright (c) 2016. 曾繁添 <zftlive@163.com>
* Github:https://github.com/zengfantian || http://git.oschina.net/zftlive
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 34.884615 | 79 | 0.737596 |
04c857c311015acb43c5153b04ad3e23cff89f6d | 13,879 | /*
* Copyright (c) 2021-present radien GmbH. All rights reserved.
* <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://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unles... | 40.941003 | 162 | 0.675193 |
f6394e68a705e52fb85d5cb6bc6e03df35f3ca1b | 9,321 | package de.unistuttgart.ipvs.as.mmp.common.v1.controller;
import de.unistuttgart.ipvs.as.mmp.common.domain.*;
import de.unistuttgart.ipvs.as.mmp.common.exception.IdException;
import de.unistuttgart.ipvs.as.mmp.common.exception.MMPExceptionHandler;
import de.unistuttgart.ipvs.as.mmp.common.service.ProjectService;
impor... | 44.175355 | 140 | 0.69853 |
9104e9aef10cf4fa572c5af7962f10c499517dce | 1,404 | import java.util.Random;
public class BubbleSort {
public static void bubble_sort(int[] a) {
// Your code goes here
if (a.length > 1) {
boolean swapped = true;
while (swapped) {
swapped = false;
for (int i = 0; i < a.length; i++) {
... | 27 | 62 | 0.421652 |
82901aa94697fc9a6b7df5b4d6bbd95105bf90fb | 7,886 | /*
* This file is generated by jOOQ.
*/
package com.cas.easycas.dao.tables.records;
import com.cas.easycas.dao.tables.AuthChain;
import java.sql.Timestamp;
import javax.annotation.Generated;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record6;
import org.jooq.Row6;
import org.jooq.impl.Updata... | 20.015228 | 145 | 0.515217 |
35d234ccb2d87b3528440ae0ce69fbbf9f3b5020 | 3,532 | /*
* Copyright 2016-2019 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 39.244444 | 180 | 0.646376 |
2e9bca55392d7d8334fad837ab9d160a2d88ed98 | 5,277 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 a... | 37.692857 | 120 | 0.602994 |
f93fd9fabab3f94e8f976e70a103318f1b2a817f | 2,418 | package de.metas.aggregation.model.validator;
/*
* #%L
* de.metas.aggregation
* %%
* Copyright (C) 2015 metas GmbH
* %%
* 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 2 ... | 37.78125 | 126 | 0.796526 |
57eef75319e1f20a2dee73f9e1c92e965f6a51ef | 895 | package com.ooooo.activiti.common.enums;
import lombok.Getter;
/**
* @author leizhijie
* @since 1.0.0
*/
public enum ActivityType {
START_EVENT("startEvent"),
SERVICE_TASK("serviceTask"),
RECEIVE_TASK("receiveTask"),
USER_TASK("userTask"),
END_EVENT("endEvent"),
;
@Getter
private final String... | 18.645833 | 110 | 0.668156 |
badce18f1658c7f7ff1fe149da9798783fd281c9 | 2,031 | /*
* 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.823529 | 79 | 0.674052 |
8e1ce8fd15f2734f5cb957ee747ea4166f737bb0 | 962 | package com.destornillador.destornillador;
import lombok.AllArgsConstructor;
import java.util.concurrent.Callable;
import lombok.Builder;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PruebaHilo implements Callable<Integer> {
private Integer id;
/*@Override
... | 24.666667 | 65 | 0.610187 |
b93ad4a968994a384e1f87b2bb4bbb9c3aa0e7e8 | 1,274 | package net.contargo.intermodal.domain;
/**
* Number of cones a barge has to carry to indicate its dangerous goods.
*
* @author Isabell Dürlich - duerlich@synyx.de
* @version 2018-04
* @name_german Kegel
* @name_english cone
* @definition_german Das Datenfeld, welches Informationen zu Kegeln beinhaltet, wi... | 49 | 119 | 0.717425 |
516da136f5ed676c8cffa7afc4055bb5481c0622 | 4,950 | package com.sparrow.collect.task.resource;
import com.sparrow.collect.crawler.httpclient.CrawlKit;
import com.sparrow.collect.crawler.httpclient.HttpResp;
import com.sparrow.collect.utils.FileIOUtil;
import com.sparrow.collect.utils.JsonMapper;
import org.apache.commons.lang3.StringUtils;
import org.codehaus.jackson.J... | 38.076923 | 119 | 0.590505 |
5c5aed8fe906838518b98cae3ffb1c61c3fbf50f | 32,318 | /*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others.
* 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, an... | 35.475302 | 141 | 0.705396 |
68a6b64e432d18a8e0a3afb6a53e98d337d4fca1 | 16,902 | /* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package com.publicobject.issuesbrowser;
import ca.odell.glazedlists.BasicEve... | 74.787611 | 195 | 0.679328 |
1423afd3b106ec0cea370ee573a9386fdcc7661e | 1,123 | package com.peopletech.organization.entity;
import com.google.gson.annotations.SerializedName;
import me.yokeyword.indexablerv.IndexableEntity;
/**
* 组织成员
*
* @author hych
* @date 2019/2/20 14:15
*/
public class MemberEntity implements IndexableEntity {
/**
* 组织成员 id
*/
@SerializedName("id")
... | 16.761194 | 54 | 0.607302 |
befd775e8352f0c941f46e5ce8ba39d72cb6c5bd | 14,813 | package org.square.qa.utilities.constructs;
import org.apache.log4j.Logger;
import org.jblas.DoubleMatrix;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.*;
public class GeneralUtilsParameterized<TypeWID,TypeQ,TypeR> {
private static Logger log = Logger.getLo... | 44.08631 | 193 | 0.727604 |
ed8db872ff9799641084e08b8af2fecc43ebc3c4 | 419 | package com.github.dynamo.model;
import com.github.dynamo.model.result.SearchResultType;
public class DownloadLocation {
private SearchResultType type;
private String url;
public DownloadLocation(SearchResultType type, String url) {
super();
this.type = type;
this.url = url;
}
public Sear... | 16.76 | 62 | 0.689737 |
287efe22dc41887b464e396b374629ca3c3115ed | 3,234 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution;
import com.intellij.execution.configurations.RunProfileState;
import com.intellij.execution.process.ProcessHandler;
import com.intellij.execution.... | 45.549296 | 150 | 0.713976 |
33815f1712b64e0616686409fb77bcf534c097a2 | 3,353 | package engine.interactions;
import java.util.HashMap;
import java.util.Map;
import engine.fieldsetting.Settable;
import engine.gameobject.GameObject;
import engine.gameobject.labels.Type;
import gameworld.GameWorld;
/**
* The InteractionEngine stores interactions between different GameObjects as
* BiConsumer Func... | 31.632075 | 97 | 0.629287 |
6fda38bf34045161245363a8c8bf68d93d9c953c | 719 | package com.kovaliv.lab3.entities;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.Min;
import java.util.List;
@Entity
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "p... | 19.432432 | 51 | 0.723227 |
e5ea4cd444e5dca5aa84e2cfb4c2be5e902657d1 | 2,270 | package one.innovation.digital.api.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
imp... | 35.46875 | 106 | 0.815419 |
02213a4c8a594a9c1f809aadc9fa442b60d16289 | 2,634 | package com.ruoyi.galaxy.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;
import java.util.Date;
/**
... | 19.367647 | 71 | 0.599089 |
7ee9c2367dfc371296473806bf6e333a04afaf2a | 968 | package org.folio;
import org.folio.test.TestBase;
import org.folio.test.config.TestModuleConfiguration;
import org.folio.test.services.TestIntegrationService;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
public class ModTagsApiTest extends TestBase... | 26.162162 | 87 | 0.706612 |
f6defc67028b313bdcd749d1d4acfdf93bfdb18c | 2,031 | /*
* Copyright 2021 YugaByte, Inc. and Contributors
*
* Licensed under the Polyform Free Trial License 1.0.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://github.com/YugaByte/yugabyte-db/blob/master/licenses/POLYFORM-FREE-... | 32.238095 | 100 | 0.771049 |
1a45df04fab32fcffa1c9d90d0020fdbe652002d | 2,511 | package de.fanta.easyafk;
import de.fanta.easyafk.util.ChatUtil;
import de.fanta.easyafk.util.Config;
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayerEntity;
import java.util.HashMap;
public class AFKHandler {
... | 34.39726 | 122 | 0.632816 |
e4cc7441cc61f1f872dfe4e68df6285e083bcfa2 | 5,916 | /*
* Copyright (C) 2016-2019 the original author or authors.
*
* 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.
... | 27.137615 | 124 | 0.77265 |
ad8fc7735a5b372cf0231d0173128d8771a97901 | 1,460 | /*
* Android基础开发个人积累、沉淀、封装、整理共通
* Copyright (c) 2016. 曾繁添 <zftlive@163.com>
* Github:https://github.com/zengfantian || http://git.oschina.net/zftlive
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 23.548387 | 79 | 0.634932 |
e3ec2aeb7fb86dee14fd5c66fe7bd8d26d538dca | 3,250 | package com.pax.market.android.app.sdk.dto;
import android.os.Parcel;
import android.os.Parcelable;
import com.pax.market.android.app.sdk.util.StringUtils;
/**
* Created by fojut on 2019/1/7.
*/
public class StoreProxyInfo implements Parcelable {
private int type; //0:DIRECT, 1:HTTP, 2:SOCKS
private Str... | 23.049645 | 89 | 0.58 |
b275949804c310fd572931b566cf627a5307f86c | 11,120 | package tech.pod.dataset.storageprovider;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
impor... | 42.121212 | 231 | 0.573741 |
dd7bd5508dcf731b3660bcc958e039c64dc4f293 | 2,578 | /*
* Copyright (c) 2002 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed... | 50.54902 | 145 | 0.729635 |
a8c607a721a64b7b8e9d94036cad5ce10d741776 | 7,180 | /**
* 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 m... | 38.810811 | 110 | 0.67117 |
524469c9a6d0e2b521b58d2070df22eaa2a76096 | 9,302 | /*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 53.768786 | 165 | 0.648355 |
fd82b0a468ab0b6cb421ee79956ee99f1da400e9 | 4,535 | package net.nocturne.network.decoders;
import net.nocturne.Settings;
import net.nocturne.cache.Cache;
import net.nocturne.game.player.Player;
import net.nocturne.game.player.content.PlayerLook;
import net.nocturne.grab.Grab;
import net.nocturne.network.Session;
import net.nocturne.stream.InputStream;
import net.noctur... | 28.167702 | 73 | 0.673208 |
2e505fb89e5bae3d39e39c453544bce384095cde | 955 | package es.ucm.fdi.iw;
import java.util.concurrent.Executors;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.concurrent.ConcurrentTaskExecutor;
import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer;
import org.springframework.web.servlet.co... | 35.37037 | 96 | 0.781152 |
fb032bc7888b068b4913fda1a73efb8e5ca65a5b | 932 | package io.mateu.mdd.core.annotations;
import com.vaadin.icons.VaadinIcons;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created by miguel on 18/1/17.
*/
@Retention(RetentionPolicy.RUNTIME)
@Ta... | 22.190476 | 74 | 0.723176 |
3042db8608ac9f14d56a5f169c682d9fbc94716e | 6,937 | package nl.crashdata.chartjs.data.simple;
import nl.crashdata.chartjs.data.ChartJsInteractionMode;
import nl.crashdata.chartjs.data.ChartJsTooltipConfig;
import nl.crashdata.chartjs.data.ChartJsTooltipPositioning;
import nl.crashdata.chartjs.data.colors.ChartJsRGBAColor;
public class SimpleChartJsTooltipConfig implem... | 16.715663 | 71 | 0.772812 |
e40f981f2841146159e29602f5bbb1737603f48d | 874 | package model;
/**
* Created by root on 30/03/16.
*/
public class Education {
String school, degree, field;
int begin_year,end_year;
public String getSchool() {
return school;
}
public void setSchool(String school) {
this.school = school;
}
public int getEnd_year() {
... | 17.48 | 47 | 0.589245 |
f292759b46f0bbc4e6a39e47afa225c1543d00c4 | 1,699 | package com.traptricker;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
/**
* The class used to handle keyboard input.
*/
public class KeyInput extends KeyAdapter {
private Handler handler;
public KeyInput(Handler handler) {
this.handler = handler;
}
// Called whenever ... | 33.313725 | 96 | 0.582107 |
09beb48773cf4b11ac831c070ccf2651f1bd45db | 3,783 | /*
* 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 Controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import j... | 36.375 | 123 | 0.67354 |
6e76e40e51451da8e6fceee25b60e0a219fcc2b7 | 4,265 | package lrgs.multistat;
import java.awt.*;
import javax.swing.*;
import java.io.File;
import java.io.IOException;
import ilex.util.EnvExpander;
import ilex.util.Logger;
import ilex.util.FileLogger;
import ilex.util.QueueLogger;
import ilex.util.TeeLogger;
import ilex.util.IndexRangeException;
public class MultiStat... | 21.540404 | 71 | 0.691442 |
dfa9c69d01dc849c2d46b3c5b6fd26c27ff17979 | 645 | package com.tokelon.toktales.core.screen.view;
import com.tokelon.toktales.core.game.model.IPoint2i;
import com.tokelon.toktales.core.game.model.IRectangle2f.IMutableRectangle2f;
/** Transforms between coordinates, pixels and grid positions.
* Uses a grid, a camera and a view transformer.
*/
public interface IViewG... | 29.318182 | 97 | 0.815504 |
057c69e1e945d8ca7f480ecc71c586af6a5359ad | 340 | package nv.samples.cmdlist;
import jet.opengl.postprocessing.common.GLenum;
public class NVTokenStencilRef {
public static final int ID = GLenum.GL_STENCIL_REF_COMMAND_NV;
public final StencilRefCommandNV cmd = new StencilRefCommandNV();
NVTokenStencilRef() {
cmd.header = NvToken.s_nvcmdlist_... | 24.285714 | 69 | 0.744118 |
e0f06f47ef5760004feaacaff59da381e55db9ae | 102 | package CglibTest;
/**
* 本节学习的来源:
* 博客:
* https://blog.csdn.net/danchu/article/details/70238002
*/ | 17 | 56 | 0.676471 |
e52011025b9466f109b36e170e60aa0c61eb71a5 | 648 | package com.example.novel.dao;
import com.example.novel.po.BookList;
import com.example.novel.po.Novel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface BookListMapper {
@Select("select * from booklist")
public List<Boo... | 27 | 92 | 0.740741 |
b70781879681ebd67e994b076358382f7138d9cb | 193 | package cn.zenliu.java.esbuild;
/**
* @author Zen.Liu
* @since 2022-03-02
*/
public
enum LegalComments {
Default,
None,
Inline,
EndOfFile,
Linked,
External,
;
}
| 11.352941 | 31 | 0.590674 |
1711a3e21cc71dcee3baaf25fa194bd92fcbe925 | 3,541 | /*******************************************************************************
* Copyright 2019 Markus Gronau
*
* This file is part of PowerFlowAnalyzer.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | 35.767677 | 103 | 0.664784 |
aad478df52f2aa4c9152c72f62ae4e0c9f532629 | 8,790 | /*
* Copyright (c) 2003-2013, KNOPFLERFISH project
* 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 ... | 28.819672 | 80 | 0.655063 |
f7264c6d048b570b4d65212df4744393a5c90eb5 | 16,978 | /* ###
* IP: GHIDRA
*
* 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 writin... | 31.853659 | 135 | 0.735717 |
c1191ecff5b92dc2b227c210a143c7719042d295 | 3,195 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 35.10989 | 232 | 0.635681 |
0ea5f67402d56dcb673f968ef415e741769905d8 | 1,225 | package battleship;
import math.Point2D;
/**
* ShipFactory
*/
public class ShipFactory
{
public static final int SHIP_COUNT = 5;
public static enum SHIP
{
Carrier,
Cruiser,
Battleship,
Submarine,
Destroyer
}
public static Ship buildShip(SHIP ship, Point2... | 20.081967 | 72 | 0.452245 |
d85e70f5188eb63a59b9389f1b6d3a71f24b5728 | 590 | package com.agora.data.provider;
import com.google.gson.Gson;
import java.lang.reflect.Type;
import cn.leancloud.LCObject;
import io.reactivex.Observable;
import io.reactivex.functions.Function;
class AVObjectToObservable<T> implements Function<LCObject, Observable<T>> {
private Type type;
public AVObject... | 23.6 | 82 | 0.718644 |
24df3e6ed56370d24a7c1be6656286c0d007c0eb | 5,651 | /*
*
* 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
... | 34.882716 | 108 | 0.783932 |
97758a247eeed442af570606785b75923a8e4f36 | 2,973 | /*
* Copyright (c) 2005-2022 Xceptance Software Technologies 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 requir... | 31.967742 | 100 | 0.667676 |
c4ac81bed7bd41a36696d86279d7cc3fa1a105a1 | 4,597 | // Copyright © Microsoft Open 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
//
// THIS CODE... | 39.290598 | 104 | 0.661736 |
ef464f9f22537ee1c6ca414bc27034002f80c502 | 453 | class Solution {
public boolean XXX(TreeNode root) {
//整个左子树小于根节点 整个右子树大于根节点
long min = Long.MIN_VALUE,max = Long.MAX_VALUE;
return deep(root,min,max);
}
private boolean deep(TreeNode root,long min,long max){
if(root == null)return true;
if(root.val <= min)return false; //小于最小值
... | 30.2 | 75 | 0.635762 |
45a379df84cdc804a7cc9da720042075f2630f13 | 292 | package br.com.fidelity.repository;
import org.springframework.data.repository.CrudRepository;
import br.com.fidelity.entity.Cliente;
import br.com.fidelity.entity.Membro;
public interface ClienteRepository extends CrudRepository<Cliente, Long>{
Cliente findByUsuario(Membro usuario);
}
| 24.333333 | 73 | 0.828767 |
066aa16d4740362c3b5e92a9f02f62d1ba6e44d0 | 72 | public class Foo {
public void setInteger(Integer first) {
}
}
| 12 | 43 | 0.638889 |
26eb4414b74a69ca1005230826a6c2d4532fc406 | 1,187 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.appservice;
import com.azure.core.annotation.Immutable;
import co... | 25.255319 | 79 | 0.67481 |
7625b0d24de318951f6500624f53f170a919373a | 5,719 | // 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... | 37.136364 | 147 | 0.657807 |
3127fa60d2f0ac8706be8e7c87400ac100786308 | 715 | /**
* Montana State University
* Class: Adv/Computational Biology CL - CSCI 451 - 551 - 001
* @author Olexandr Matveyev
*
* DSTR: data-structure
* This class is used to provide minimal data structure for the algorithm results
* in order to have nice output in console.
*/
public class DSTR
{
private char c ... | 18.333333 | 81 | 0.588811 |
3d082fd7cf2ad92ae4344e44f30395b3c25dc457 | 7,482 | package com.sap.psr.vulas.patcheval2;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.google.gson.Gson;
import com.sap.psr.vulas.backend.BackendConnector;
import com.sap.psr.vulas.java.sign.gson.GsonHelper;
import com.... | 44.802395 | 164 | 0.575247 |
f5fed8a279e82a11982f88b06c6d52142f05a1d9 | 129 | package io.github.luanelioliveira.samplekafka.consumer;
public interface ServiceFactory<T> {
ConsumerService<T> create();
}
| 16.125 | 55 | 0.782946 |
39b673a81bba17e3a7bf959adeb23b3e128a45bb | 12,420 | /*
* 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")... | 37.074627 | 192 | 0.625604 |
835d3721b6d4354e6bbdb1e114cb0a92a74f1c0b | 3,198 | /**
* Copyright (C) 2017
* Michael Mosmann <michael@mosmann.de>
*
* 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 r... | 37.623529 | 157 | 0.758912 |
f73a066c1e4f4a8e4dd06519230c5314e7899408 | 985 | package com.mykid.platform.common.entity;
import org.springframework.http.HttpStatus;
import java.util.HashMap;
/**
* @author MrBird
*/
public class PlatformResponse extends HashMap<String, Object> {
private static final long serialVersionUID = -8713837118340960775L;
public PlatformResponse code(HttpStat... | 21.888889 | 71 | 0.647716 |
b4e5bea164df7aca5905a81648183570c95eb942 | 183 | package com.rainbow.latte.net.callback;
/**
* Latte-Core
* Created By Rainbow on 2019/4/30.
*/
public interface IRequest {
void onRequestStart();
void onRequestEnd();
}
| 14.076923 | 39 | 0.677596 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.