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 |
|---|---|---|---|---|---|
863d1331c5c621e46dd99c79313c5ddfc2c4a7c3 | 10,306 | /*
* Copyright 2017-2021 Micro Focus or one of 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... | 47.712963 | 137 | 0.703086 |
3435e53c745a08a7494b2a2e44936f5dce61495f | 3,792 | package org.prebid.server.geolocation;
import com.maxmind.geoip2.DatabaseReader;
import com.maxmind.geoip2.exception.GeoIp2Exception;
import com.maxmind.geoip2.model.CityResponse;
import com.maxmind.geoip2.record.City;
import com.maxmind.geoip2.record.Continent;
import com.maxmind.geoip2.record.Country;
import com.max... | 38.693878 | 114 | 0.67827 |
e0615a70c7c4d168127b15bdb2de197689ffc0d5 | 67 | package com.mrh0.buildersaddition.blocks;
public class Bench {
}
| 11.166667 | 41 | 0.776119 |
14855655ff7d57bdc80b7ef40d5a06567d8a1dbc | 1,075 | package org.kuali.ole.docstore.model.rdbms.bo;
import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
import java.io.Serializable;
/**
* Created with IntelliJ IDEA.
* User: mjagan
* Date: 7/15/13
* Time: 10:26 PM
* To change this template use File | Settings | File Templates.
*/
public class FormerIdenti... | 19.907407 | 73 | 0.646512 |
2d97ed88ef21effa4bc137cf102a7dbeda59674b | 7,639 | package org.hisp.dhis.ivb.util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.hisp.dhis.dataset.DataSet;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.organisationunit.Organis... | 23.504615 | 100 | 0.746433 |
791d7f44847bac0e843c55c5a9968f6053df5605 | 3,043 | /*
* 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 ... | 41.684932 | 93 | 0.74466 |
edef623aad7eafd8a96770c960854a30c2c959ce | 863 | class ArithMeticDemo {
public static void main(String[] args) {
int result = 1 + 2;
// result is now 3
System.out.println("1 + 2 = " + result);
int original_result = result;
result = result - 1;
// result is now 2
System.out.println(original_result + " - 1 = " + result);
original_result = result... | 25.382353 | 59 | 0.617613 |
d445e79adf39ae594e21081431ef24da3a1b5638 | 1,088 | package com.rabc.fangkuai.entity;
import com.yyfly.common.entity.BaseEntity;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @创建人 lin
* @创建时间 2020/1/20
* @描述
*/
@Data
@Entity
@Table(name = "imms_resource")
public class Resource extends BaseEntity {
/**
* serial... | 14.90411 | 71 | 0.519301 |
145d90d3b4f0d08489467b83d84671e120a221f0 | 3,875 | /*
* 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 ... | 33.991228 | 98 | 0.659871 |
31e6203f78ae3a6fede716fe416395f5f0e6ee3d | 1,920 | /**
* 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.microsoft.azure.management.apimanagement.v2019_12_01.implementation;
import... | 25.945946 | 93 | 0.691667 |
f76543ad491c2be04580b8ff85847b23902ba1ae | 2,611 | /**
* Copyright 2013 Dennis Ippel
*
* 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... | 27.484211 | 118 | 0.720414 |
22c0b62abc66524fdfc176925c3678aa53eccb30 | 222 | package main;
//This exception is thrown to stop parsing or execution of a BotScript program
public class StopException extends RuntimeException{
public StopException(String message) {
super(message);
}
}
| 24.666667 | 78 | 0.747748 |
485147c4c3042213cb3d8d633614a471df27d49b | 4,054 | package club.javafan.blog.common.mail.impl;
import club.javafan.blog.common.mail.MailService;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.io.FileSystemResource;
impo... | 33.783333 | 152 | 0.693143 |
5e9eb4245cd6c7b4c88e48a30a09e7d38e9f46cc | 2,467 | /*
* 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 ... | 32.038961 | 105 | 0.743008 |
778a533fc334f6a32eca43043e53cae279b0bd15 | 3,629 | package jenkins.plugins.docker_compose;
import hudson.DescriptorExtensionList;
import hudson.Extension;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.AbstractProject;
import hudson.model.Result;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.tasks.BuildStepDescriptor;
im... | 25.921429 | 127 | 0.759713 |
e7de4b6894999abf7aacc0593bcf26183d186f17 | 6,310 | package com.rbkmoney.threeds.server.service.testplatform;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.rbkmoney.threeds.server.domain.cardrange.ActionInd;
import com.rbkmoney.threeds.server.domain.cardrange.CardRange;
import com.rbkmoney.threeds.server... | 40.709677 | 118 | 0.655309 |
cc4e7e043245f244d032588fcc7e6b00e4da6dee | 1,402 | package com.optimaize.webcrawlerverifier;
/**
* Result returned by the {@link KnownCrawlerDetector#detect} method.
*/
public class KnownCrawlerResult {
private final String identifier;
private final KnownCrawlerResultStatus status;
public KnownCrawlerResult(String identifier, KnownCrawlerResultStatus s... | 22.612903 | 83 | 0.60271 |
141dba3839364c3d02a452018050c55ebabb0a76 | 11,463 | /*
* Copyright 2018 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 36.390476 | 99 | 0.721626 |
357b69f19032ef3591c9a1b897e312698ac54843 | 481 | package io.github.tomszilagyi.svhu1972;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class TextPosition {
public int page;
public int line;
public TextPosition() {
this.page = 0;
this.line = 0;
}
public TextPosition(int page,... | 19.24 | 49 | 0.617464 |
f74dbb38b7bc845aca87614ce6a92708179f5ac6 | 2,547 | /*
* Copyright 2014-2017 See AUTHORS file.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 36.385714 | 106 | 0.781311 |
2fb228ee9dbd99d63b019aa9f849a0e6cb8442a7 | 1,635 | /*
* Copyright 2010 BigData.mx
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 32.058824 | 76 | 0.722324 |
21a0ba61e0868216d858a2e63eebd62247b26518 | 2,071 | package com.kisslang.source.library.value.built_in.bool;
import com.kisslang.source.library.Value;
/*
* Copyright (C) 2019 The KISSlang Project by Vitalii Vorobii
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 26.551282 | 213 | 0.627716 |
b0f4ea61cf3cca6a54557c5f0b3758b832696a48 | 3,125 | package lee.study.down.update;
import java.util.Collections;
import lee.study.down.boot.AbstractHttpDownBootstrap;
import lee.study.down.boot.HttpDownBootstrapFactory;
import lee.study.down.constant.HttpDownConstant;
import lee.study.down.dispatch.HttpDownCallback;
import lee.study.down.model.HttpDownInfo;
import lee.... | 41.118421 | 98 | 0.72576 |
d51281e3dec693fdd0008b11be564e7f9b289f2c | 9,252 | package com.tiantian.sams.controller;
import com.tiantian.sams.model.Dormitory;
import com.tiantian.sams.model.DormitoryChange;
import com.tiantian.sams.model.DormitoryCheckInAndOut;
import com.tiantian.sams.model.Student;
import com.tiantian.sams.service.DormitoryService;
import com.tiantian.sams.service.StudentServi... | 42.054545 | 159 | 0.633593 |
1a4514d2850234fec8d0430eb3ecc07871038898 | 805 | package abstractfactory.human;
import java.util.Locale;
import adapter.address.Address;
public class People {
private Locale local;
private int id;
protected static int idCount;
protected int type;
private Address address;
public People(String local){
this.local = new Locale(local);
this.id = getIdCount()... | 16.428571 | 48 | 0.701863 |
7db8905bea0855f2bf83f7c3e1b0dfa21c69a766 | 1,417 | package com.microsoft.bingads.v11.api.test.entities.ad_extension.site_link.write;
import com.microsoft.bingads.v11.api.test.entities.Util;
import com.microsoft.bingads.v11.bulk.entities.BulkEntity;
import com.microsoft.bingads.v11.bulk.entities.BulkSiteLinkAdExtension;
import com.microsoft.bingads.v11.campaignman... | 45.709677 | 84 | 0.765702 |
51efa5d60b217944021bbfefc064e352a7c23902 | 4,003 | package JiuChap3_DequeStackTrie;
import java.util.Arrays;
import java.util.Stack;
/**
* http://www.lintcode.com/en/problem/delete-digits/
* Created at 12:54 PM on 11/25/15.
*/
public class DelelteDigits {
public static void main(String[] args) {
String A = "10009876091"; //"134523"; //"30517";
int k = 4;... | 26.865772 | 121 | 0.509118 |
e148a390003cf8a067f42eea3b9e89a0b08fb0fa | 1,781 | import javafx.geometry.Insets;
import javafx.scene.Parent;
import javafx.scene.control.*;
import javafx.scene.layout.GridPane;
public class View {
private final Controller control;
GridPane startView;
Label selectStudentLabel = new Label("Select Student:");
ComboBox< Student > studentComboBox = new Co... | 32.981481 | 67 | 0.668164 |
6d141cf414c60ac4eb0abf6f046a26a9afa87882 | 6,400 | package com.codepath.android.lollipopexercise.activities;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.suppo... | 33.333333 | 97 | 0.624375 |
c6b5de9923bee7e86141972aeb175509d6973f73 | 1,032 | package com.connectplusplus.wizapi.utils;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* class containing utility methods related to JSON-POJO operations
* */
public class JsonUtils {
private static final ObjectMa... | 19.846154 | 82 | 0.704457 |
42604f48d0bec10ba66d4bfb949dc433f658758f | 10,474 | /**
* Copyright 2016-2017 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 40.754864 | 145 | 0.729234 |
8fbc600c862b00dda7d7472768a65e1493f604a2 | 12,438 | package de.uni_mannheim.informatik.dws.tnt.match.matchers;
import java.io.File;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.time.DurationFormatUtils;
import de.uni_mannheim.informatik.dws.tnt.match.ContextColumns;
import de.uni_mannheim.informatik.dws.tnt.match.CorrespondenceFormatter... | 45.727941 | 244 | 0.799083 |
e3c39bafcaea90d7d2f759497ae698ab14186a9a | 7,545 | package inpro.incremental.sink;
import inpro.incremental.PushBuffer;
import inpro.incremental.unit.EditMessage;
import inpro.incremental.unit.IU;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
imp... | 34.769585 | 177 | 0.693439 |
74fbbd715640498cf066d16663624a29c598c51e | 3,144 | /*
* Copyright 2017. Akshay Jain
*
* 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 t... | 22.297872 | 81 | 0.611641 |
2b1dbac4da8c7690bc1d18d4c02d992ac5b7eabd | 1,628 | //给你一个日期,请你设计一个算法来判断它是对应一周中的哪一天。
//
// 输入为三个整数:day、month 和 year,分别表示日、月、年。
//
// 您返回的结果必须是这几个值中的一个 {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
//"Friday", "Saturday"}。
//
//
//
// 示例 1:
//
// 输入:day = 31, month = 8, year = 2019
//输出:"Saturday"
//
//
// 示例 2:
//
// 输入:day = 18, month = 7, year = 199... | 22.929577 | 107 | 0.512899 |
56247ebd861e80438cf6cd4a9f7fd96e7b8f11f3 | 3,410 | package de.olyro.pizza.models;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import de.olyro.pizza.M... | 36.276596 | 112 | 0.609677 |
e3e33a39464041a5056258854bb261db0ed6cd7b | 875 | package com.ss.leetcode.medium;
/**
* @author Senn
* @create 2022/2/15 11:05
*/
public class Lee132 {
int[] mins;
int n;
char[] cs;
public int minCut(String s) {
cs = s.toCharArray();
n = cs.length;
mins = new int[n];
for (int i = 0; i < n; i++) {
mins[... | 19.444444 | 65 | 0.379429 |
232e7e90b1ba66b9466ca922d3dcea8a40d695ed | 415 | package CCPC;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int i = 0; i <t ; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
for(int j=0;j<=a && j<=b;j++){
if(((j^a) & (j^b)) == 0){
if... | 18.863636 | 41 | 0.53253 |
2a6b5cbfca2db59b33a63a1026efb58109f3f3c4 | 1,980 | package com.progwml6.natura.world.worldgen.trees;
import java.util.Random;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.BlockPos.MutableBl... | 28.285714 | 138 | 0.671212 |
8416effbe5a179ca61affcea4984d7c10f6e5ce3 | 1,850 | package knife;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.PrintWriter;
import javax.swing.JMenuItem;
import burp.BurpExtender;
import burp.HelperPlus;
import burp.IBurpExtenderCallbacks;
import burp.IContextMenuInvocation;
import burp.IExtensionHelpers;
import burp.IHttpR... | 28.90625 | 100 | 0.775676 |
4876e0b0a78c249b6367fd14b7b12d6d263fd96b | 1,134 | import java.lang.reflect.Array;
import java.util.ArrayList;
public class CalculaFitness implements Runnable {
private Populacao populacao;
private ArrayList<Cromossomo> cromossomos;
private int iComeco, iFim;
CalculaFitness(Populacao p, ArrayList cromossomos, int iComeco, int iFim) {
this.pop... | 30.648649 | 104 | 0.599647 |
be1ff2d58383bbc4daf37887e2c157f9101e715a | 4,109 | package ozgurdbsync;
import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class Main {
// public static List<String> ordered = new ArrayList<>();
public sta... | 24.458333 | 99 | 0.600146 |
e0a0ebb79c68bc6923b20d1995a827dacea46ee4 | 709 | package com.example.change4change;
public class TransactionEntry {
private String lbID;
private String lbTranstype;
private String lbTransAmt;
private String lbDateInfo;
public TransactionEntry (String lbID,String lbTranstype,String lbTransAmt,String lbDateInfo) {
this.lbID = lbID;
... | 20.852941 | 98 | 0.655853 |
4deb685b7e4ed75a6e5906141a633b59d30cb955 | 415 | package com.example.restservice.api.data;
import com.example.restservice.service.data.Tag;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class TagDto {
private final Long id;
private final String name;
public static TagDto createFrom(Tag tag) {
return TagDto.builder()
... | 20.75 | 48 | 0.628916 |
395133fe7bdfaa3702d90dcb9e520260eaf15405 | 2,195 | /*
* Copyright 2014 David Lukacs
*
* 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.486111 | 130 | 0.634169 |
270b277325e8e02636ca6df12ad37c20527254db | 1,803 | package com.hebaiyi.www.topviewmusic.bean;
import com.google.gson.annotations.SerializedName;
public class Channel {
@SerializedName("name")
private String name;
@SerializedName("channelid")
private int channelId;
@SerializedName("thumb")
private String picture;
@SerializedName("ch_nam... | 18.978947 | 52 | 0.627842 |
dc89038467921f759620569b9d82a7911d3cdb04 | 1,483 | /*
* Copyright 2014-present IVK JSC. 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 appl... | 27.981132 | 78 | 0.743763 |
0647ac34b7db59efc1ba3cde3d75199770ff3861 | 416 | package com.dciets.androidutils.application;
import android.app.Activity;
/**
* Created by marc_ on 2016-03-07.
*/
public class MyActivity extends Activity {
@Override
protected void onResume() {
super.onResume();
MyApplication.setCurrentActivity(this);
}
@Override
protected vo... | 18.909091 | 47 | 0.661058 |
cd5e26afc043fdec4410c0fc8511cd8c3ca7b319 | 159 | package org.kingtec.utils.Base;
/**
* Created by Verizon on 16/03/2018.
*/
public interface OnGetString<T extends Object> {
String getString(T p);
}
| 13.25 | 48 | 0.685535 |
0e19d60ba6b43b42e88c8b8aa2d817591d3b5d7b | 3,491 | package com.woshidaniu.daointerface;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import com.woshidaniu.common.dao.BaseDao;
import com.woshidaniu.entities.JsglModel;
import com.woshidaniu.entities.YhglModel;
/**
*
*
* 类名称:JsglDao 类描述: 角色管理数... | 16.162037 | 72 | 0.634775 |
ab26b4bb062bedfd00c42618e78d717b88343879 | 787 | package com.jeiker.zk.demo;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Description: spring-boot-zk
* User: jeikerxiao
* Date: 2019/6/19 10:26 AM
*/
public class TestCountDownLatch {
public static void main(String[] arg... | 23.147059 | 67 | 0.653113 |
2fa657c2ccf8cf9d9d90ea10919c2fba7e01a465 | 6,965 | package no.sanchezrolfsen.framework.selenium;
import lombok.extern.slf4j.Slf4j;
import no.sanchezrolfsen.framework.selenium.config.BrowserConfig;
import no.sanchezrolfsen.framework.selenium.config.BrowserType;
import org.apache.commons.lang3.StringUtils;
import org.openqa.selenium.InvalidArgumentException;
import org.... | 38.910615 | 151 | 0.646662 |
799563bdfa8b74dc1263b842be0938bf0cfce81b | 3,806 | package net.opendatadev.odensample;
import android.content.res.Resources;
import android.support.annotation.NonNull;
import com.google.gson.Gson;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.ArrayList;
import j... | 27.185714 | 120 | 0.56805 |
a31c663dfcd5ecbf620b8991caac190e01f6fed9 | 23,977 | /*
* 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 ... | 43.994495 | 167 | 0.652751 |
3673b948705461d50fe4e3ecc2732f9b944c9a90 | 4,445 | /*
* Copyright (C) 2017-2020 Samuel Audet
*
* Licensed either under the Apache License, Version 2.0, or (at your option)
* under the terms of the GNU General Public License as published by
* the Free Software Foundation (subject to the "Classpath" exception),
* either version 2, or any later version (collectively... | 65.367647 | 158 | 0.677165 |
375a717dec80d7684854b206c1bbf80c35039186 | 1,263 | package jkanvas.examples;
import java.io.IOException;
import jkanvas.Canvas;
import jkanvas.CanvasSetup;
import jkanvas.animation.AnimatedPainter;
import jkanvas.io.json.JSONElement;
import jkanvas.io.json.JSONReader;
import jkanvas.painter.SimpleTextHUD;
import jkanvas.present.DefaultSlideMetrics;
import jkanvas.pre... | 28.704545 | 84 | 0.738717 |
ee06df626400bf4aa39633efacd60a8ad1a8358e | 4,594 | package net.varanus.sdncontroller.linkstats.sample;
import java.time.Duration;
import java.time.Instant;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.Immutable;
import net.varanus.mirroringprotocol.util.TimedPacketSumm... | 32.58156 | 99 | 0.642142 |
b658808ead4d2d20a7dc0a85c53035d41a7ef329 | 4,595 | package org.eop.cassandra.json;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonStructure;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.CodecRegistry;
import com.datastax.driver.core.PreparedStatement;
import com.datastax.driver.core.ResultSet;
import ... | 39.612069 | 118 | 0.576061 |
11bccaf5444244f789d79f4aea46c98f59b00c56 | 874 | package br.com.zupacademy.charles.proposta.criaCartaoAssociaProposta.carteiraDigital;
import java.time.LocalDateTime;
public class CarteiraDigitalResponse {
private String id;
private String email;
private String associadaEm;
private TipoCarteira emissor;
public CarteiraDigitalResponse(String id... | 28.193548 | 109 | 0.71167 |
0fbc300f821a53bccab3d3ceedd6d2cff0d00cb0 | 299 | package com.github.opensharing.framework.springboot.view.freemarker.model;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* User
*
* @author jwen
* Date 2020-09-17
*/
@AllArgsConstructor
@Data
public class User {
private int id;
private String name;
private int age;
}
| 15.736842 | 74 | 0.722408 |
313008ec5c65f10272e7fc9704dbc3b659e37dd9 | 3,479 | package cz.jcu.uai.javapract.mock.mock;
import cz.jcu.uai.javapract.ITimetableDAO;
import cz.jcu.uai.javapract.Subject;
import cz.jcu.uai.javapract.TimeTable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
/**
* DAO m... | 28.516393 | 152 | 0.623742 |
020b7ab7675aa0d958f8bb7a630efc2bfc3cb49a | 1,747 | package org.spring.cloud.service.user.controller;
import org.apache.log4j.Logger;
import org.spring.cloud.service.api.model.User;
import org.spring.cloud.service.api.service.UserService;
import org.spring.cloud.service.user.config.AppConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | 32.351852 | 73 | 0.713223 |
536ca860d4f560de7745e28f17706e21918ffedb | 5,492 | package com.boyarsky.apiservice.config;
import com.boyarsky.apiservice.security.*;
import com.boyarsky.apiservice.service.impl.CustomOAuth2UserService;
import com.boyarsky.apiservice.service.impl.DefaultUserDetailsService;
import com.boyarsky.apiservice.service.impl.TokenProvider;
import org.springframework.boot.autoc... | 45.766667 | 299 | 0.727968 |
00c5b6e7636a53e87252171e71cac36ac53582f7 | 2,302 | package de.oio.vaadin.uriactions;
import com.google.common.eventbus.Subscribe;
import com.vaadin.spring.annotation.UIScope;
import com.vaadin.ui.UI;
import de.oio.vaadin.event.EventBus;
import de.oio.vaadin.event.impl.navigation.NavigateToURIEvent;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.rok... | 30.693333 | 106 | 0.746308 |
1a706ac03f78358cc39e7d6189c62ba70ee682b0 | 2,653 | package org.joverseer.metadata.domain;
import java.awt.Point;
import java.io.Serializable;
import org.joverseer.support.movement.MovementDirection;
import org.joverseer.support.movement.MovementUtils;
/**
* Enumeration for the hex sides
*
* Values are according to the palantir data files.
*
* @au... | 28.836957 | 104 | 0.63023 |
b0ce24a9b5d4aef2cafd2a5b85348d1139eeae2a | 1,956 | package com.young.mall.controller;
import com.young.db.entity.YoungBrand;
import com.young.mall.common.CommonPage;
import com.young.mall.common.ResBean;
import com.young.mall.service.BrandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.an... | 38.352941 | 113 | 0.692229 |
c0f886bc2a37fd8ddaf89571f42e5bc4639a79e9 | 8,348 | /*
* Copyright 2003-2017 Dave Griffith, Bas Leijdekkers
*
* 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... | 45.369565 | 131 | 0.747484 |
d3ac3ba079fbf1912c638889eafe76f48bbec2d6 | 916 | package edu.fiuba.algo3.modelo.fases;
import java.beans.PropertyChangeListener;
import edu.fiuba.algo3.modelo.*;
import edu.fiuba.algo3.modelo.Interfaces.*;
import edu.fiuba.algo3.modelo.excepciones.*;
public abstract class FaseAbstracta implements IFase {
ITurno turno;
Mazo mazo;
IMapa mapa;
Objetiv... | 26.941176 | 77 | 0.735808 |
f4b2c3df1d0ebbd6733a23f7c48bd26dce894a48 | 1,481 | package edu.zieit.scheduler.schedule;
import edu.zieit.scheduler.api.render.SheetRenderer;
import edu.zieit.scheduler.api.schedule.ScheduleInfo;
import edu.zieit.scheduler.api.schedule.ScheduleParseException;
import edu.zieit.scheduler.api.schedule.ScheduleLoader;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
imp... | 32.911111 | 91 | 0.681296 |
2f08886c907ff88e30e8fcc47e3390e8bf1d9344 | 25,514 | //
// Depot library - a Java relational persistence library
// https://github.com/threerings/depot/blob/master/LICENSE
package com.samskivert.depot;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import com.google.common.collect.Lists;
import com.samskivert.depot.clause.*;
import com.sam... | 35.83427 | 99 | 0.644666 |
75fdca3119c6bcd710caddd273837cdda279761f | 1,689 | package com.ppdai.infrastructure.mq.biz.service.common;
import com.ppdai.infrastructure.mq.biz.common.trace.Tracer;
import com.ppdai.infrastructure.mq.biz.common.trace.spi.Transaction;
import com.ppdai.infrastructure.mq.biz.common.util.SpringUtil;
import com.ppdai.infrastructure.mq.biz.service.CacheUpdateService;
imp... | 35.1875 | 112 | 0.618709 |
01644d85d4485e383bfed4004975aff5704d3292 | 845 | package com.oneidentity.safeguard.safeguardjava.event;
import java.util.logging.Level;
import java.util.logging.Logger;
class EventHandlerRunnable implements Runnable {
private final ISafeguardEventHandler handler;
private final String eventName;
private final String eventBody;
EventHandlerRunna... | 27.258065 | 94 | 0.666272 |
c8c9b82d124ec5af502ccbaf6bcc5216d710b7da | 2,372 | package com.smalljava.core.test.l5_expression;
import com.smalljava.core.analyse.l5_expression.ExpressionASTAnalyse;
import com.smalljava.core.common.VarValue;
import com.smalljava.core.commonvo.l5_expression.RootAST;
import com.smalljava.core.eval.l5_expression.SmallJavaExpressionEval;
import com.smalljava.core.l6_su... | 40.896552 | 108 | 0.786678 |
ab4dca6f02e9342f14e48afeab3eb37375a9d345 | 3,088 | /*************************************************************************
*
* Compilation: javac Point.java
* Execution:
* Dependencies: StdDraw.java
*
* Description: An immutable data type for points in the plane.
*
*************************************************************************/
import java.util.... | 25.733333 | 102 | 0.512953 |
f20570aefadd5c133a76a278034a929a665e3829 | 2,980 | /*
* JBoss, Home of Professional Open Source
* Copyright 2016, 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... | 41.971831 | 152 | 0.76745 |
8e6843764a3a703b52039641ac5d7427bdd417bd | 33,873 | /***
* Copyright (c) 1995-2009 Cycorp 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 appl... | 53.681458 | 321 | 0.676261 |
2ec93d85f0cc1b32ad087b734453820e3a43008b | 723 | package com.kimi.myshop.plus.cloud.feign;
import com.kimi.myshop.plus.cloud.dto.AdminLoginLogDTO;
import com.kimi.myshop.plus.cloud.feign.fallback.MessageFeignFallback;
import com.kimi.myshop.plus.config.FeignRequestConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.ann... | 38.052632 | 133 | 0.811895 |
5a447073719db80a3747954520f42c7ec55f88eb | 1,061 | package com.sysu.guli.service.oss.controller.admin;
import com.sysu.guli.service.base.result.R;
import com.sysu.guli.service.oss.service.FileService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.a... | 31.205882 | 79 | 0.724788 |
a2df6752a327e8d874fc886a363ab563d86a5943 | 594 | package org.kyojo.schemaorg.m3n5.doma.core.container;
import java.math.BigDecimal;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n5.core.impl.MIN_VALUE;
import org.kyojo.schemaorg.m3n5.core.Container.MinValue;
@ExternalDomain
public class MinV... | 24.75 | 81 | 0.809764 |
0790660fcc87cf38d924d9176861fbb97cd0bd81 | 6,623 | package com.ruoyi.web.controller.system;
import java.util.List;
import com.ruoyi.system.domain.SysDept;
import com.ruoyi.system.service.ISysDeptService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.Api... | 30.804651 | 286 | 0.70074 |
d4893e9ef7f3a79270140e82c734d0eb59f076c7 | 1,213 | package net.abcbook.learn.lombok;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/**
* @author summer
* @date 2018/4/12 下午6:39... | 23.784314 | 75 | 0.661171 |
ddae337692cb2693b1314194ab53040900db0d9c | 1,544 | /******************************************************************************
*
*
* Program: MyPane
*
* Programmer: Mariusz Derezinski-Choo
* Date: 05/25/2018
* School: Northwest Guilford High School
*
*
* Description: This class extends stackPane by allowing a pane to be constructed with instnace va... | 29.692308 | 117 | 0.584845 |
84b429c6dffc88dfd02c851090549a08f29a2ab7 | 1,365 | package com.truthbean.debbie.jdbc.entity;
import com.truthbean.debbie.jdbc.column.ColumnInfo;
import java.util.Collection;
import java.util.List;
import java.util.function.Supplier;
/**
* @author TruthBean
* @since 0.5.3
* Created on 2021/12/13 21:23.
*/
public class ResultMap<E> extends EntityInfo<E> {
pri... | 26.25 | 73 | 0.624176 |
e350e277bd83151025e214bcd7a6d1f1c94f7a58 | 2,066 | //
// Copyright (C) 2010-2016 Roger Rene Kommer & Micromata GmbH
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | 28.30137 | 114 | 0.714424 |
ad4d7d4a233f66b8324cc578ef989f4688098995 | 189 | package uo270318.mp.tareaS9.collections_iterators.model;
public class LinkedListTest extends ListTest {
@Override
protected List createList() {
return new LinkedList();
}
}
| 17.181818 | 56 | 0.740741 |
aa23af546bcf54d567aa43c7cfeba817c25cbf1f | 1,217 | package leetcode.datastructures.binarytree;
import leetcode.models.TreeNode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/** Binary Tree Level Traversal */
public class BinaryTreeLevelTraversal {
public List<List<Integer>> levelOrder(TreeNode root) {
... | 32.891892 | 98 | 0.510271 |
5c13ecd1b53339ce01c8635626bdeac88ea28d93 | 1,509 | /*
* Copyright 2002-2018 Jalal Kiswani.
* E-mail: Kiswani.Jalal@Gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 30.795918 | 100 | 0.744864 |
e2e6f1e2acf34092fb4eb09639d7a9bf2ee6a40e | 1,027 | package com.pyh.collection;
/**
* 类ListToStack的实现描述:自己实现的stack
*
* @author panyinghua 2020-7-29 20:41
*/
public class ListToStack {
// 1.直接使用java的链表结构,自己实现也比较简单
//private LinkedList<Integer> outList = new LinkedList<>();
// 2.自己的简单链表类
private JLinkedList outList = new JLinkedList();
public st... | 20.959184 | 63 | 0.555988 |
e812bf396fb5eabe26ea20539f3330dd36cae673 | 494 | package io.quarkus.it.jpa.configurationless;
import static org.hamcrest.core.StringContains.containsString;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.RestAssured;
/**
* @author Emmanuel Bernard emmanuel@hibernate.org
*/
@QuarkusTest
public class JPALoadScri... | 22.454545 | 62 | 0.720648 |
a4667bbfd45d4abcf160ee4a49ae96cc40bb799f | 857 | package cn.wbnull.hellotlj.presenter;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;
import cn.wbnull.hellotlj.view.IBaseView;
/**
* Mvp BasePresenter
*
* @author dukunbiao(null) 2020-02-04
* https://github.com/dkbnull/HelloTlj
*/
public class BasePresenter<T extends IBaseView> {
priv... | 20.902439 | 62 | 0.610268 |
fccc74f878f8b59a3ac291784d24f958f37752e5 | 245 | package com.basic;
public class PowerOfNumber3 {
public static void main (String[] args) {
int number = 10, p = 3;
double result = Math.pow(number, p);
System.out.println(number+"^"+p+" = "+result);
}
} | 24.5 | 55 | 0.563265 |
a81f8eee3faf45a9a157091e7fdf984cd5e600af | 7,635 | package nl.han.ica.oopg.dashboard;
import nl.han.ica.oopg.objects.GameObject;
import nl.han.ica.oopg.objects.Sprite;
import nl.han.ica.oopg.view.PGraphicsCreator;
import processing.core.PGraphics;
import java.util.Vector;
/**
* Create or extend this class to create a new dashboard, a dashboard object
* ... | 31.290984 | 111 | 0.620432 |
2155ddd7c5e5387833fcfd6f0d9332aeae90522e | 1,753 | package org.ticketbooking.core.domain.user;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persiste... | 21.120482 | 96 | 0.737593 |
921a150325e3b3400046110ad3064de124efda6d | 4,167 | package com.lesson.distributed.redis.sample;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
/**
*
* 自写 jedis
*
* resp 协议
*
*
*
*
* @author z... | 23.948276 | 95 | 0.557715 |
7c8b054c8b1b8096e69c0fe50c869d94e03cf6b9 | 1,136 | import java.util.Arrays;
import java.util.stream.IntStream;
class Check{
// Function return true if given element
// found in array
private static void check(int[] arr, int toCheckValue)
{
// check if the specified element
// is present in the array or not
// using... | 26.418605 | 64 | 0.488556 |
5e3e12a811eb93149952c66c3d506db4ad983762 | 527 | package com.threeq.dubbo.tracing;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
* @Date 2017/2/8
* @User three
*/
public class ApplicationContextAwareBean implements ApplicationContextAware {
... | 27.736842 | 100 | 0.798861 |
bfcd537dfdf935c6ea27e1b1c946215ea5477c3b | 1,985 | package de.techdev.trackr.domain.employee.login;
import de.techdev.trackr.domain.AbstractDomainResourceTest;
import org.junit.Test;
import org.springframework.http.MediaType;
import static de.techdev.trackr.domain.DomainResourceTestMatchers.isAccessible;
import static de.techdev.trackr.domain.DomainResourceTestMatche... | 31.015625 | 85 | 0.704282 |
a41622f1ffb27fc024b759a0e56207f2a7b912dd | 19,267 | package it.zenitlab.cordova.plugins.zbtprinter;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter... | 37.778431 | 170 | 0.589557 |
eda8fb47664a65953ebae2240b27e5989c5ff575 | 17,835 | /*
* 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 ... | 39.284141 | 174 | 0.617382 |
60822de666309ffe933aef9e196ec29a779d7ec0 | 888 | package ru.sftqa.pft.helmesframework.tests;
import org.testng.annotations.Test;
import ru.sftqa.pft.helmesframework.model.ClaimDescriptionData;
import ru.sftqa.pft.helmesframework.model.NewCaseData;
public class CreateNewCaseTest extends TestBase {
@Test
public void testClaimCreation() throws InterruptedExcepti... | 35.52 | 146 | 0.782658 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.