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 |
|---|---|---|---|---|---|
e5def60d23dbca9d325ee7dff31fee8fcc7ebeed | 1,070 | package hashTable;
import java.util.HashMap;
import java.util.List;
/**
* Created by cuixiaodao on 11/07/2017
* for leetCode problem:
* https://leetcode.com/problems/employee-importance/description/
*/
class Employee {
// It's the unique id of each node;
// unique id of this employee
public int id;
... | 27.435897 | 84 | 0.660748 |
4f03615856e7f7a51c5a4b8001cbf542a3d5b0d1 | 18,024 | package pro.taskana;
import pro.taskana.exceptions.InvalidArgumentException;
import pro.taskana.exceptions.NotAuthorizedException;
/**
* WorkitemQuery for generating dynamic sql.
*/
public interface WorkbasketQuery extends BaseQuery<WorkbasketSummary, WorkbasketQueryColumnName> {
/**
* Add your ids to you... | 36.412121 | 120 | 0.646471 |
ebbcd4d7beb91cc0f39f64acdc5452e64b1bd9e0 | 3,795 | /*
* 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
* distrib... | 38.333333 | 97 | 0.709091 |
8cbcc3215bb56b8f1d8f289fc53c3b0c8e87376a | 3,915 | /*
* Copyright 2019 The Hekate Project
*
* The Hekate Project 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/LICENSE-2.0
*
* Unless ... | 32.090164 | 101 | 0.714432 |
5ac899b3489390bcbc5f4e39ad6b4aa4e229cd5d | 904 | package com.nitorcreations.willow.sshagentauth;
import static com.nitorcreations.willow.sshagentauth.SSHUtil.printBase64Binary;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.jcraft.jsch.Identity;
public abstract class AbstractSSHAuthentication implements SSHAuthe... | 28.25 | 102 | 0.701327 |
3575153bb499942960fe6889b65e603e2fc2416b | 2,542 | package com.airmap.geofencingsdkexample.util;
import android.support.annotation.Nullable;
import android.support.v7.util.DiffUtil;
import com.airmap.geofencingsdk.status.GeofencingStatus;
import java.util.List;
public class DiffStatusCallback extends DiffUtil.Callback {
@Nullable
private List<GeofencingSta... | 30.261905 | 125 | 0.662077 |
14f0dec6dc4708d8e9b0d5207316bd3a015560e8 | 397 | package sigmobile.sigapp.sigproc;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import sigmobile.sigapp.R;
public class NotificationView extends AppCompatActivity {
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
... | 26.466667 | 64 | 0.738035 |
ea4eb26e6a5712e452fed4a06499c3ff4d16d898 | 452 | package net;
import net.aE2;
import net.asJ;
import net.minecraft.client.model.ModelBiped;
import net.optifine.PlayerConfiguration;
public class hE {
public static void a(ModelBiped var0, asJ var1, float var2, float var3) {
aE2.a(var0, var1, var2, var3);
}
public static PlayerConfiguration a(asJ var0)... | 21.52381 | 76 | 0.692478 |
e799de4fc6c93098e802090c1ef871a3463b5cd3 | 1,191 | /**
* Copyright (c) 2011 Terracotta, Inc.
* Copyright (c) 2011 Oracle and/or its affiliates.
*
* All rights reserved. Use is subject to license terms.
*/
/**
This package contains event listener interfaces.
These may be registered for callback notification of the cache events.
The specific interface should... | 41.068966 | 118 | 0.775819 |
448a5d5ec11f15c0b109238bcddd6d30d802b9b7 | 2,526 | /*
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/methods/multipart/StringPart.java,v 1.11 2004/04/18 23:51:37 jsdever Exp $
* $Revision: 480424 $
* $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $
*
* =======================... | 57.409091 | 232 | 0.72407 |
9e6bac6d68a1bcd4f7da6a5071cb30340f64566e | 3,420 | package driver;
import backend.CodeGenManager;
import frontend.SysYLexer;
import frontend.SysYParser;
import frontend.Visitor;
import ir.MyModule;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Arrays;
import java.util.logging.Logger;
import org.antlr.v4.runtime.CharStream... | 28.983051 | 62 | 0.65117 |
07f404bd6fcbcb834bd9ed8cdc3971b74190173e | 1,716 | package com.wealth.wealthusers.controller;
import com.wealth.wealthusers.common.LogUtil;
import com.wealth.wealthusers.common.MyUtil;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.server.ResponseStatusException;
@RestController
public cla... | 30.105263 | 120 | 0.596154 |
31db27a75d0bdbc70dee2119a9be475211a44fe3 | 2,704 | package com.huaweicloud.sdk.dli.v1;
import com.huaweicloud.sdk.core.ClientBuilder;
import com.huaweicloud.sdk.core.HcClient;
import com.huaweicloud.sdk.core.invoker.AsyncInvoker;
import com.huaweicloud.sdk.dli.v1.model.*;
import java.util.concurrent.CompletableFuture;
public class DliAsyncClient {
protected HcC... | 38.084507 | 118 | 0.752219 |
e990437786609ad95cd9e7d79dda7327c4101c15 | 2,234 | /**
* Project: Blume
*
* Blume is a simple interface for producing ANSI 8-bit and 24-bit colored text with
* foreground and background color options and various display attributes.
*
* @file OSIncompatibilityException.java
* @version 1.1.0
*
* @author Allen Vanderlinde
* @date 6/28/2018
*
* ... | 34.369231 | 130 | 0.704118 |
9feb2239bbc3e0b9cd4093bdb4005ed84263922d | 1,389 | /*
* 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 appli... | 31.568182 | 122 | 0.688985 |
a14e1abec54b54f6f269ea7e073fe32e51d58844 | 6,386 | /*
* Copyright 2020 OPPO ESA Stack 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... | 37.564706 | 113 | 0.595991 |
4534dfc68410ea0e054808f35021da519967401e | 2,592 | /*
* Copyright 2016
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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/lice... | 31.609756 | 104 | 0.623843 |
a451905b07cb1bfd2565517cbf9ce2ac28e1fb5d | 819 | package HackerblockPractise;
// **************** total
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
public class Elitmus_RollNoQuestion {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String arr = sc.nextLine();
//using Strin... | 22.75 | 52 | 0.579976 |
4fbc7ebe3f284bf15f94b7f4674a1f7fa381c4e9 | 5,094 | package net.modificationstation.sltest.mixin;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.Minecraft;
import net.minecraft.client.render.WorldRenderer;
import net.minecraft.client.texture.TextureManager;
import net.minecraft.level.Level;
import org.spongepowered.asm... | 46.309091 | 140 | 0.559678 |
de9d0a827b2eff16d5140e98371b0190e1c3433b | 613 | package proyecto.cursos.spring.repository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import proyecto.cursos.spring.entity.CursosModel;
public interface CursosRepository extends CrudRepository<CursosModel, Integer> {
@Qu... | 30.65 | 84 | 0.797716 |
e797472a4f877844c6d40e7e4232f929a465d633 | 1,035 | package com.compomics.spectrawl.gui.event;
import com.google.common.base.Joiner;
import java.util.List;
/**
*
* @author Niels Hulstaert
*/
public class MessageEvent {
private String messageTitle;
private String message;
private int messageType;
public MessageEvent(String messageTit... | 24.642857 | 87 | 0.642512 |
639b8e5f7bf2f74f7f422a2de116e5372da6addc | 5,151 | package com.bei.yd.ui.main.model.iml;
import android.content.Context;
import com.bei.yd.api.IApiConfig;
import com.bei.yd.ui.main.api.MainFragmentApi;
import com.bei.yd.ui.main.bean.AreaBean;
import com.bei.yd.ui.main.bean.MainBean;
import com.bei.yd.ui.main.bean.MainItemNewOrderBean;
import com.bei.yd.ui.main.bean.Us... | 39.930233 | 110 | 0.736944 |
8cb9ff4dc4a15e9b0f2b8498668046573ebb5e8b | 5,874 | package com.jnape.palatable.lambda.lens.lenses;
import com.jnape.palatable.lambda.functions.builtin.fn2.Filter;
import com.jnape.palatable.lambda.lens.Lens;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import ja... | 38.644737 | 140 | 0.57031 |
2c0a629067be5ddf991098c06b6a09550b31a8f5 | 1,824 | /*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 23.088608 | 123 | 0.730811 |
5022eedc5c8c487c56df577759b6dbd881857973 | 955 | package com.imperva.ddc.core.exceptions;
/**
* Created by gabi.beyo on 3/6/2016.
*/
public class ProtocolException extends BaseException {
private String reason = "Protocol Exception can be caused by malconfigured port address. Usually Port 389 is used for non-secured connections and Port 636 for secured conne... | 26.527778 | 184 | 0.696335 |
0e60bf324d965972305471c095f5f6cba163fffe | 3,027 | /*
Copyright 2022 The Kubernetes 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 applicable law or agreed to in writing, softwar... | 36.035714 | 100 | 0.779319 |
47598119c2d402c336e56c84503811c7770df572 | 2,831 | /**
* Copyright 2021 SPeCS.
*
* 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 writi... | 41.632353 | 118 | 0.740021 |
797c9ef0ecced1cf78f5a3f5e853368d47993de6 | 4,696 | package com.edu.uj.sk.btcg.logic;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import org.apache.commons.lang.StringUtils;
import com.google.common.collect.Lists;
public class Tokenizer {
private static List<String> operators = Lists.newArrayList(">=", "<=", "==", "&&",
"||", "!"... | 22.796117 | 83 | 0.596678 |
b86b1ca2050779be6e12bcb72660238a00e45ee9 | 284 | package models;
import java.util.List;
public class EnvelopeDeProdutos {
private List<Produto> produtos;
public EnvelopeDeProdutos(List<Produto> produtos) {
this.produtos = produtos;
}
public List<Produto> getProdutos() {
return produtos;
}
}
| 16.705882 | 55 | 0.672535 |
11e82e65df2f2e2e4f5820a7d57e2d2bc3f9ccfb | 3,627 | package com.simibubi.create.content.contraptions.itemAssembly;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.simibubi.create.content.contraptions.processing.ProcessingOutput;
import net.minecraft.world.item.crafting.RecipeSerializer;
import net.min... | 40.3 | 111 | 0.783568 |
ffb611310c46b59b77c13aa4cc23a5920e59135c | 1,153 | package ca.cb.cc.cv;
import android.content.Context;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.support.v4.util.LruCache;
import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;
//Copy pasted code public for custom font
public class TypefaceSpan extends Metr... | 26.813953 | 73 | 0.718994 |
02bdc91a887feb1c223aa626e50011910f2f97c0 | 9,654 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 30.647619 | 241 | 0.614357 |
408d5b7f59708f2dfc4e2c9eaf9e2e1948119679 | 10,066 | package com.hue.model.persist;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.util.Optional;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.ja... | 35.822064 | 124 | 0.643155 |
2a87cb082231708dcbfde43f0494529be9db63a9 | 525 | package org.testcontainers.images.builder.dockerfile.traits;
import org.testcontainers.images.builder.dockerfile.statement.SingleArgumentStatement;
import org.testcontainers.utility.DockerImageName;
public interface FromStatementTrait<SELF extends FromStatementTrait<SELF> & DockerfileBuilderTrait<SELF>> {
defaul... | 37.5 | 107 | 0.8 |
bdd8f43a593c6455920e4426bd6750addebd18b6 | 430 | package me.maximumpower55.mecha;
import me.maximumpower55.mecha.data.recipe.InfusingRecipe;
import net.minecraft.core.Registry;
public class ModRecipeSerializers {
public static final InfusingRecipe.Serializer INFUSING_RECIPE_SERIALIZER = new InfusingRecipe.Serializer();
public static void register() {
... | 33.076923 | 111 | 0.795349 |
e2ec82a776c71b85b30daa3adb4f5c1615c0d5fe | 2,219 | package game.world;
import static java.lang.Math.*;
import static util.MathUtil.*;
import static game.world.World.*;
import game.block.*;
import java.util.*;
import game.entity.*;
import game.item.*;
import game.world.StatMode.StatResult;
public class PvPMode extends GameMode{
private static final long serialVersion... | 21.543689 | 95 | 0.658405 |
b5b9c4b65862fd846d35153db0e480c016984fe3 | 1,390 | /**
* Copyright (c) 2020 kedacom
* OpenATC is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES ... | 25.272727 | 87 | 0.730935 |
9f6db7d7623c1165e4753f11881f21805b76f185 | 2,855 | package com.sohu.cache.util;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.... | 27.451923 | 81 | 0.619615 |
19cbfcedc3c8bc430aaeef6b66750b6f32e0e2c1 | 3,664 | package server;
import java.lang.ClassNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.io.EOFException;
import java.lang.Thread;
import utils.Buffer;
import utils.PriorityBuffer;
import... | 25.09589 | 86 | 0.672489 |
1c130caa61fcda8dd892f45779a3839c7f962934 | 1,703 | /*
* 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 ... | 24.328571 | 78 | 0.719906 |
0e6f132aa025509b64c074b6da121d01eea29366 | 263 | package com.fanxb.bookmark.common.entity.po;
import lombok.Data;
/**
* 类功能简述:
* 类功能详述:
*
* @author fanxb
* @date 2019/7/9 14:47
*/
@Data
public class Url {
private int userId;
private String method;
private String url;
private int type;
}
| 13.842105 | 44 | 0.65019 |
c621370eb97270fe2a2c6cd85fac62721ff4adaa | 1,013 | package com.tokelon.toktales.tools.assets.files;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import com.tokelon.toktales.tools.assets.annotation.ParentIdentifiers;
public class FileParentResolver implements IParentResolver<File> {
private final Map<Object, Fi... | 25.974359 | 86 | 0.787759 |
a35f3aa3ceb6795d35eb08703a473c18fcfc98d4 | 11,646 | /**
* Track class that creates a Linked List of trains in tracks
*/
public class Track {
private Train head;
private Train tail;
private Train cursor;
private Track next;
private Track prev;
private int trackNumber;
private int numTrains;
private int transferTime;
private double ut... | 27.662708 | 91 | 0.573158 |
69c178c8cdf8c7400b8889a3d867c83bb5cf384b | 2,574 | package com.sunnsoft.sloa.db.dao;
import com.sunnsoft.sloa.db.vo.Tag;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.gteam.db.dao.BaseDAO;
import java.util.List;
// Generated by Hibernate Tools 3.4.0.CR1,modified by llade
/**
* Home object for domain model class Tag.... | 28.6 | 90 | 0.573815 |
7b3f357e1c0e9e10d60f8db3d851b1b3aaff1eb8 | 558 | package org.apache.poi.ss.usermodel;
import org.apache.poi.ss.util.CellAddress;
public interface Comment {
CellAddress getAddress();
String getAuthor();
ClientAnchor getClientAnchor();
int getColumn();
int getRow();
RichTextString getString();
boolean isVisible();
void setAddres... | 16.411765 | 50 | 0.689964 |
488a7d22c39e38676042b44c18d27e1b0464aa9c | 3,070 | package cn.laoshini.dk.generator.id;
import javax.sql.DataSource;
import org.springframework.beans.BeansException;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.support.incrementer.AbstractColumnMaxValueIncrementer;
import org.springframework.jdbc.support.incrementer.AbstractIden... | 33.736264 | 120 | 0.688274 |
7f0f150f68c26e1a111da92092ab392647b260ff | 2,960 | /**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., 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");
* you may not use this file ex... | 30.515464 | 112 | 0.740203 |
2937ef229369661260a9c778ab7070d14b11237b | 4,271 | /*
* 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 Database;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet... | 30.507143 | 149 | 0.607352 |
ce160d6962977da4611681b0532fee49b1e339d3 | 379 | package ru.itis.jwtserver.services;
import ru.itis.jwtserver.dto.AccessTokenResponse;
import ru.itis.jwtserver.dto.RefreshTokenResponse;
import ru.itis.jwtserver.dto.UserAuthorizationForm;
public interface UserLoginService {
RefreshTokenResponse login(UserAuthorizationForm emailPasswordDto);
AccessTokenRespo... | 29.153846 | 75 | 0.846966 |
19bc731604d43706b067863c7dc7ba1b5774d9d2 | 247 | package edu.javacourse.spring.integration;
/**
* @author Artem Pronchakov | email/xmpp: artem.pronchakov@calisto.email
*/
public class LoggerB {
public void log(String message){
System.out.println("Logger B: " + message);
}
}
| 19 | 72 | 0.680162 |
bb1604cbccba2683f63eb1808750be664c1108d9 | 2,592 | package com.todo1.demoapp.dto;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Objeto Producto DTO para
* @author Mustarroz
*
*/
public class ProductoDTO {
/**
* id autogenerado
*/
private Long id;
/**
*... | 19.343284 | 126 | 0.667824 |
551c518cd0cba09e397e3461c198045a5fcb1c0d | 1,538 | package org.femtoframework.service.apsis.k8s;
import org.femtoframework.cube.spec.ConnectionSpec;
import org.femtoframework.cube.spec.SystemSpec;
import org.femtoframework.service.apsis.cube.CubeConnector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.InetAddress;
import java.net.URI;
impor... | 30.76 | 87 | 0.637191 |
53c173ee549a076e857ec2fb9e53604fa2cd9013 | 8,019 | package com.thinkgem.jeesite.modules.tmc.modal;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.thinkgem.jeesite.modules.taier.entity.TmcRwsqd;
import com.thinkgem.jeesite.modules.tmc.utils.DBConnectionUtils;
public class TmcRwsqdModal {
public void save(TmcR... | 40.296482 | 121 | 0.668413 |
8249993a38e2cc42c387ad25ff72b73ba744bf44 | 433 | package com.rekmock;
/**
* Created by Faleh Omar on 01/23/2015.
*/
public class RekMokException extends RuntimeException {
public RekMokException() {
super();
}
public RekMokException(String message) {
super(message);
}
public RekMokException(String message, Throwable cause) {
... | 18.826087 | 61 | 0.637413 |
d5358c64d453b108db17947713b120dfc5e59a14 | 6,867 | package com.kalyoncu.mert.mancala.pit.playerstore.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.javatuples.Pair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
imp... | 35.035714 | 157 | 0.751274 |
263291f5f432104e1e51c75c3cdebcab72752890 | 8,338 | package edu.unc.irss.arc.dataverse.client.util.zip;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.nio.file.Path;
impor... | 34.887029 | 175 | 0.580955 |
845739eae9da51cd9ba773e78cf68b3a780e5412 | 1,271 | package io.schinzel.basicutils.collections.valueswithkeys;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static java.util.stream.Collectors.toList;
import static org.assertj.core.api.Assertions.assertThat;
public class IValueWi... | 27.630435 | 58 | 0.553895 |
517365edff4484589dd5f45db0b6be763d0612d8 | 10,450 | package frc.team7170.lib.networktables;
import edu.wpi.first.networktables.*;
import frc.team7170.lib.Name;
import frc.team7170.lib.Named;
import frc.team7170.lib.ReflectUtil;
import java.lang.reflect.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;
im... | 40.820313 | 134 | 0.623445 |
9fe9f4b61b8c2f9bd040e300ed02cf89d03623a3 | 6,158 | package com.aliyun.alink.linksdk.channel.core.persistent.mqtt.send;
import android.content.Context;
import android.text.TextUtils;
import com.aliyun.alink.linksdk.channel.core.base.ASend;
import com.aliyun.alink.linksdk.channel.core.persistent.BadNetworkException;
import com.aliyun.alink.linksdk.channel.core.persisten... | 43.673759 | 149 | 0.609938 |
471e1a163446b3818419728e4f45e2986dbf923d | 4,201 | package com.example.feedbackapp.ui.classs;
import androidx.lifecycle.ViewModelProvider;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.navigation.Navigation;
import androidx.recyclerview.widget.LinearLayoutMana... | 37.176991 | 139 | 0.711021 |
55fa2ec1c367259a70f2a1e2bfbd32c1dd591f06 | 8,524 | package com.andretissot.firebaseextendednotification;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Notification.BigPictureStyle;
import android.app.Notification.BigTextStyle;
import android.app.Noti... | 45.582888 | 128 | 0.660371 |
f7883b8c00578904dee09dcf8dbfce9e2831dd38 | 2,192 | /*
* Copyright 2021 EPAM Systems.
*
* 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... | 36.533333 | 100 | 0.773723 |
0650aad2ea9df44e2372803ac28fd0cb07fa0c3d | 853 | /*
* 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 uk.gov.ipo.renewals.model;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
*
* @author simon chan... | 19.837209 | 79 | 0.671747 |
713ae1f1687a5fbbb69bf98fa5a3da79c50aa395 | 3,087 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package csc212hw8;
/**
*
* @author jregistr
*/
public class BinaryTreeNode {
public String value;
public BinaryTreeNode left, right;
public BinaryTreeNode (String v){
... | 26.384615 | 65 | 0.396501 |
8ce786efce74a0806d48a20db496dfc157c1b58c | 624 | package io.vertx.up.annotations;
import java.lang.annotation.*;
/**
* Event bus annotation
* If it's annotated on method, it means that this action enabled event bus.
* Otherwise use sync response directly.
* Address/Out should be matching
* Address -> The component will send message to event bus ( EndPoint )
*... | 24.96 | 76 | 0.703526 |
386abf8d30aa58e6d3734c63b9909cd4c7b1cf1b | 7,850 | package net.minecraft.world.level.levelgen.feature;
import com.mojang.serialization.Codec;
import java.util.Random;
import net.minecraft.core.BlockPos;
import net.minecraft.core.SectionPos;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.LightLayer;
import net.minecraft.world.level.WorldGenLevel;... | 50.974026 | 393 | 0.483312 |
e159b0f3382c4ce5ff25113d6d6a568dbb444547 | 891 | package com.example.cihan.eczanebul;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import java.util.ArrayList;
public class NobetciActivity extends AppCompatActivity {
@Override
... | 34.269231 | 122 | 0.747475 |
e43e3f9bf5484f2f8c144cd52567529ac4e2e1f0 | 731 | package Release_VIII.B_Chapter_12.P1_EnumDemo;
public class EnumDemo {
public static void main(String[] args) {
Apple ap = Apple.RedDel;
System.out.println("Wartość ap = " +ap +"\n");
ap = Apple.GoldenDel;
if(ap == Apple.GoldenDel) {
System.out.println("ap zawiera GoldenDel. \n");
}
switch... | 19.756757 | 54 | 0.662107 |
64e65cd92edea594657f237b8d5b5ac50e6d8113 | 15,181 | package io.jenkins.plugins.checks.steps;
import java.io.IOException;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3... | 32.36887 | 129 | 0.619327 |
f6bba49b6744f3659d1adef53a723c3aa12164a2 | 805 | package com.lio.sc.test;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.apache.commons.dbcp.BasicDataSource;
public class DataSourceTest {
public static void main(String[] args) throws SQLException{
BasicDataSource source = new BasicDataSource();
source.setDriverClassName("org.apach... | 33.541667 | 309 | 0.778882 |
6e88851f3145d50dc7130cc93366ff38ad9da1d7 | 374 | package class_loader.exception;
/**
* Created by qindongliang on 2018/9/25.
*/
public class NoClassFoundErrorTest {
public static void main(String[] args) {
try {
double i=Loading.i;
}catch (Throwable e){//此处,必须用Throwable,用Exception会直接退出。
System.out.println(e);
}... | 15.583333 | 63 | 0.574866 |
09856cb1a6845272b7c1d0903f3fcd18d7fd8df9 | 5,630 | /**
* Copyright Liaison Technologies, Inc. All rights reserved.
* <p>
* This software is the confidential and proprietary information of
* Liaison Technologies, Inc. ("Confidential Information"). You shall
* not disclose such Confidential Information and shall use it only in
* accordance with the terms of the li... | 39.647887 | 140 | 0.669094 |
4bc8288ca3f89a9140394b64aed448db42763052 | 26,293 | /*
* Copyright 2018 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... | 40.019787 | 143 | 0.499791 |
3e600b25dc960335b28cbfd050f73ec27af61e6d | 1,629 | package com.sap.cloud.security.xsuaa.token;
import com.sap.cloud.security.xsuaa.XsuaaServiceConfiguration;
import com.sap.cloud.security.xsuaa.XsuaaServiceConfigurationDefault;
import com.sap.cloud.security.xsuaa.extractor.IasXsuaaExchangeBroker;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import org.... | 33.9375 | 91 | 0.828729 |
86c52707a1f52e51b0734b1a65994e3efa3006a2 | 3,483 | package dev.anhcraft.craftkit.cb_1_17_r1.services;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.properties.Property;
import dev.anhcraft.craftkit.cb_1_17_r1.CBModule;
import dev.anhcraft.craftkit.cb_common.internal.backend.CBPlayerBackend;
import dev.anhcraft.craftkit.common.Skin;
import dev.anhcra... | 41.464286 | 151 | 0.735286 |
c27b34a310dd54999a8bdc7ce614897fef0d8002 | 1,095 | package basic.other;
import org.junit.Test;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @describe 测试特殊运算符
*/
public class TestString
{
public static void main(String[] args)
{
}
@Test
public void test1()
{
Pattern p = Pattern.compile("\\(.*\\)");
Matcher m = p.matcher("1.2.0(23... | 20.277778 | 103 | 0.645662 |
d554ad32a89d26b899279f5a5075d84182089bb7 | 1,020 | package net.violet.platform.dataobjects;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.violet.platform.datamodel.Lang;
public class HumeurDataFactory {
private static final String[] FREQS_LABELS = new String[] { "srv_humeur/freq_rare", "srv_humeur/freq_normal", "srv_humeur/freq_... | 34 | 167 | 0.762745 |
97183b69d39377e7e9998271a66b514a04cb9698 | 1,365 | package xyy.java.note.mt;
/**
* @author xyy
* @version 1.0 2017/6/14.
* @since 1.0
*/
public class VmDemo {
public static void main(String[] args) {
ThreadGroup group = Thread.currentThread().getThreadGroup();
if(group != null) {
Thread[] threads = new Thread[(int)(group.activeCoun... | 26.25 | 76 | 0.485714 |
9257f4e3d6d7b5427b47a2bb4911aec24c145fd3 | 105 | package com.latte.controller.domain.history.service;
public enum SortOrder {
ASC,
DESC,
;
}
| 13.125 | 52 | 0.67619 |
e6a8907c35e18477410d63d4512f72937d3ce477 | 21,582 | /*
* Copyright 2003-2020 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.01669 | 147 | 0.702345 |
298da35803769f57fad32fa86ad8bd2503f977f1 | 753 | import java.io.*;
class sort_11
{
void input()throws IOException
{
DataInputStream in=new DataInputStream(System.in);
int n;
System.out.println("enter array size");
n=Integer.parseInt(in.readLine());
int a[]=new int[n];
int i;
for(i=0;i<n;i++)
{
System.out.println("Enter number");
a[i]=Integer.parseInt(in... | 14.764706 | 51 | 0.565737 |
98dfe13b67d5494fba4376f640b6ea1c51df117c | 830 | /*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.intellij.ui.ColorUtil
* com.intellij.util.xmlb.Converter
* org.jetbrains.annotations.NotNull
* org.jetbrains.annotations.Nullable
*/
package com.github.copilot.settings;
import com.intellij.ui.ColorUtil;
import com.intellij.ut... | 23.055556 | 60 | 0.714458 |
8173ad0c093fe451d44036f62717d8db1e2e3528 | 1,169 | /*
* Copyright (C) 2013 Artur Termenji
*
* 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... | 26.568182 | 75 | 0.723695 |
630f731eeac621c08aeb84d9c780d1ecfd1833b7 | 791 | package com.mchekin.designpatterns.abstractfactory;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class AnimalAbstractFactoryTest {
@Test
public void africanAnimalsGreetings() {
Application application = new Application(new AfricanAnimalFactory());
... | 31.64 | 83 | 0.733249 |
82aee61d76674b58a6c2eecf16c4cbb212916233 | 349 | package com.egoveris.deo.base.exception;
import org.terasoluna.plus.common.exception.ApplicationException;
public class NoEsDocumentoSadePapelException extends ApplicationException{
/**
*
*/
private static final long serialVersionUID = 3648524018593622835L;
public NoEsDocumentoSadePapelException(final Str... | 20.529412 | 74 | 0.796562 |
18ec08a516f26b60a797484421264f74d9499f63 | 6,669 | // Copyright 2011-2016 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 in ... | 37.892045 | 99 | 0.701454 |
64a371e66b4062d4d34c9dedd1e5876e0b26b72a | 739 | package net.rodrigoamaral.algorithms.smpso;
import org.uma.jmetal.problem.DoubleProblem;
import org.uma.jmetal.solution.DoubleSolution;
import org.uma.jmetal.util.archive.BoundedArchive;
public class SMPSO_MABuilder extends SMPSOBuilder {
public SMPSO_MABuilder(DoubleProblem problem, BoundedArchive<DoubleSolution... | 41.055556 | 121 | 0.719892 |
fb02ad19b1aefc8a80b36099a221772ff8e034eb | 214 | package test;
public class B {
private A bf;
public B() {
A a = new A();
this.bf = a;
}
public int get() {
A a = this.bf;
return a.get();
}
public void set(int i) {
A a = this.bf;
a.set(i);
}
}
| 11.888889 | 25 | 0.528037 |
493e65f715afc6443f8bef9928e010d95beba8c2 | 297 | package Main;
import javax.swing.JFrame;
public class MainFrame extends JFrame{
public MainFrame() {
this.setContentPane(new GameEngine());
this.setSize(1200+16, 600+38);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setResizable(false);
this.setVisible(true);
}
}
| 18.5625 | 54 | 0.740741 |
7a9b5ddf4ed95f980c08469f2cae4cc0dc1be0db | 639 | package org.yugzan.amqp.core;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.messaging.handler.annotation.Payload;
import org.springframework.stereotype.Component;
import org.yugzan.amqp.config.RabbitConfigur... | 26.625 | 65 | 0.790297 |
33d422bc7ab64297bcc8963b1d338a41700cdf8b | 2,158 | package ca.bc.gov.open.ecrc.service;
import java.util.Map;
import ca.bc.gov.open.ecrc.exception.EcrcServiceException;
import ca.bc.gov.open.ecrc.model.*;
import javassist.NotFoundException;
import org.json.JSONObject;
import org.springframework.http.ResponseEntity;
/**
*
* Interface for ECRC Service
*
* @autho... | 40.716981 | 167 | 0.859129 |
3c770dd17b5cd442fb93dec8bca612c1f5cc8fc5 | 2,758 | package uk.co.compendiumdev.restlisticator.api.action;
import uk.co.compendiumdev.restlisticator.api.ApiRequest;
import uk.co.compendiumdev.restlisticator.api.ApiResponse;
import uk.co.compendiumdev.restlisticator.api.UserAuthenticator;
import uk.co.compendiumdev.restlisticator.api.payloads.UserPayload;
import uk.co.c... | 34.475 | 112 | 0.715373 |
f65556bdab2e352bf61bd32b8dca540e09b9b85b | 3,336 | /**
* ------------------------------------------------------------
* QuickTodo Lite
* ------------------------------------------------------------
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 33.69697 | 98 | 0.618405 |
88175d3e4a38c3cec279f132b55f703bc317b3b7 | 1,133 |
package org.apache.rocketmq.common.protocol.header;
import org.apache.rocketmq.remoting.CommandCustomHeader;
import org.apache.rocketmq.remoting.annotation.CFNotNull;
import org.apache.rocketmq.remoting.annotation.CFNullable;
import org.apache.rocketmq.remoting.exception.RemotingCommandException;
public class Unreg... | 23.604167 | 75 | 0.728155 |
cb6b1291010f28524497a54d361b7957b9769a68 | 237 | package com.cier.base.sta;
public class Test1 {
static int x = 10;
static {
x += 5;
}
static {
x /= 3;
}
public static void main(String[] args) {
System.out.println("x=" + x);
}
}
| 12.473684 | 44 | 0.476793 |
eca2cf34ea3cbdb529a502fc22be001f1fe9145e | 297 | package ar.com.tandilweb.exchange.gameProtocol.texasHoldem.inGame;
import ar.com.tandilweb.exchange.gameProtocol.texasHoldem.InGameSchema;
public class CardDist extends InGameSchema {
public int position;
public boolean[] cards;
public CardDist() {
super("cardDist");
}
}
| 21.214286 | 72 | 0.744108 |
dd6e97933004067a35a9dc65762147ef9b483370 | 4,568 | package cc.mrbird.febs.check.controller;
import cc.mrbird.febs.common.annotation.Log;
import cc.mrbird.febs.common.controller.BaseController;
import cc.mrbird.febs.common.domain.router.VueRouter;
import cc.mrbird.febs.common.exception.FebsException;
import cc.mrbird.febs.common.domain.QueryRequest;
import cc.mrbird.f... | 32.628571 | 122 | 0.733363 |
fe92a98c5ec6fb00ca04ec2b0745f34e945ff0a7 | 5,344 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.lang.annotation;
import gw.lang.GosuShop;
import gw.lang.reflect.IAnnotationInfo;
import gw.lang.reflect.IType;
import gw.lang.reflect.TypeSystem;
import gw.lang.reflect.java.IJavaType;
import gw.lang.reflect.java.JavaTypes;
import java.lang.annotation.Ele... | 36.60274 | 155 | 0.69143 |
84ced61f61259754bdc8237b7feda0054e056b44 | 7,138 | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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... | 33.046296 | 119 | 0.6761 |
d3ef22b52ba70fd24b18ca7ba0d95bdcced7f05e | 1,706 | package org.c4c.eventstorej.api;
import org.c4c.eventstorej.Event;
import java.util.List;
import java.util.UUID;
public interface EventStore {
void init() throws Throwable;
int saveEvent(Event event) throws Throwable;
<T> int saveEvent(List<Event<T>> eventList) throws Throwable;
<T> List<Event<T>... | 38.772727 | 133 | 0.756155 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.