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 |
|---|---|---|---|---|---|
f407717572ec56488a9fe6da0a094d858395b36c | 6,733 | package cc.zip.charon.features.modules.combat;
import cc.zip.charon.Charon;
import cc.zip.charon.features.command.Command;
import cc.zip.charon.features.modules.Module;
import cc.zip.charon.features.setting.Setting;
import cc.zip.charon.util.BlockUtil;
import cc.zip.charon.util.EntityUtil;
import cc.zip.charon.util.In... | 36.005348 | 290 | 0.65231 |
06c5c61c90d7d441a70caa9580cbc8c9af157fcd | 859 | import java.util.Collections;
import java.util.List;
import java.util.function.Supplier;
class Test {
public static void bar(boolean f) {
foo(() -> {
if (f) <error descr="Missing return value">return;</error>
if (false) <error descr="Missing return value">return;</error>
if (!f) return <error d... | 33.038462 | 125 | 0.654249 |
7f32b163f7fe25ec7cd1bf74a6d63d1c1a86a9cd | 1,225 | package fr.uiytt.magiclauncher;
import java.io.File;
import java.io.IOException;
import fr.theshark34.openlauncherlib.minecraft.GameInfos;
import fr.theshark34.openlauncherlib.minecraft.GameType;
import fr.theshark34.openlauncherlib.minecraft.GameVersion;
import fr.theshark34.openlauncherlib.minecraft.util.Ga... | 24.019608 | 95 | 0.718367 |
5dec67323b12e2f13ef6fde6e8af89f9794ab634 | 1,369 | package cn.sexycode.myjpa.binding;
import cn.sexycode.myjpa.mapping.PersistentClass;
import cn.sexycode.sql.dialect.function.SQLFunction;
import cn.sexycode.sql.model.Database;
import cn.sexycode.sql.type.TypeResolver;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Collection... | 29.12766 | 108 | 0.753104 |
e10ee0c52a3f107532227ebccb4de91e6b28786b | 409 | package at.petrak.hexcasting.mixin.accessor;
import net.minecraft.world.entity.ai.village.poi.PoiType;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import java.util.Set;
@Mixin(PoiType.class)
public interface Acces... | 27.266667 | 57 | 0.797066 |
f9b3c418eb2d25fa70e090452d06d522e0ea8525 | 1,351 | package algorithms;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import graph.Vertex;
/**
* This class implements the Bron-Kerbosh algorithm for finding all Maximal Cliques
* in a graph. (https://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm)
*
* @au... | 23.701754 | 106 | 0.678016 |
d636cce42b0e992269e31c45e1596b8d3c17e1d0 | 2,489 | /*
* Copyright 2013-2015 Alex Lin.
*
* 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... | 29.987952 | 119 | 0.675372 |
8ec43c3beebe4dd11b8095f7724bf1899e9d6866 | 1,674 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.c... | 25.753846 | 86 | 0.710872 |
ac5eb8cbb328ac8182ce04d415d1c4b0997212b8 | 2,794 | /*
* Copyright 2009 Andrew Pietsch
*
* 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 la... | 25.4 | 112 | 0.72942 |
1a7e152475ba5174c055e37681c04905843f7425 | 1,532 | package examples.sharedui;
import java.net.URL;
import java.util.ResourceBundle;
import ilusr.core.ioc.ServiceManager;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.Label;
import javafx.scene.control.MenuItem;
public class ThemeI... | 25.533333 | 84 | 0.751305 |
88277d6ab45a109f26a56b9fef936d48bd22b5c2 | 3,112 | package mskubilov;
import mskubilov.board.*;
import mskubilov.exceptions.*;
import mskubilov.moves.*;
import mskubilov.figures.*;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* TestKingLikeRook.
* @author Maksim Skubilov skubilov89@yandex.ru
* @since... | 37.493976 | 103 | 0.742609 |
7b1f7dbbcae991fa5a0c4112bb180960838ae348 | 15,904 | /*
* This file is generated by jOOQ.
*/
package io.cattle.platform.core.model.tables.records;
import io.cattle.platform.core.model.Network;
import io.cattle.platform.core.model.tables.NetworkTable;
import io.cattle.platform.db.jooq.utils.TableRecordJaxb;
import java.util.Date;
import java.util.Map;
import javax.an... | 21.009247 | 249 | 0.529678 |
6240466dc914b536ab46e07e08e9438336caa35a | 1,321 | // In-Place Quick Sort, a little bit dump way, but maybe easier to understand.
public class Main {
static void swap(int x[], int a, int b) {
int t = x[a];
x[a] = x[b];
x[b] = t;
}
static int partition(int[] x, int l, int r) {
int p = r; // Choosing last element as pivot.
... | 28.106383 | 86 | 0.4595 |
bfe5b468f6400ed2dfc6d565864888f47ad9dc12 | 230 | package com.github.xfslove.shiro.uaa.service;
import com.github.xfslove.shiro.uaa.model.Role;
/**
* Created by hanwen on 2017/6/12.
*/
public interface RoleService {
Role getById(Long id);
Role getByName(String name);
}
| 16.428571 | 47 | 0.726087 |
74ca9d3b3996c60f2accadf05755c9f8b703ce3b | 1,707 | package Day5;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class Day5 {
static final int INPUT = 1;
static final int OPT_ADD = 1;
static final int OPT_MUL = 2;
static final int OPT_IN = 3;
static final int OPT_OUT = 4;
static final... | 23.708333 | 110 | 0.617458 |
2b366bcab922be6f3948722dc553eadfe1648617 | 516 | package org.enricogiurin.codingchallenges.codeforces.old.c1140;
public class GoodStringB {
public static void main(String[] args) {
/*Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i <n; i++) {
int length = sc.nextInt();
String s = sc.ne... | 21.5 | 63 | 0.531008 |
107728a50889b8c25f05950853135c7de4d59129 | 2,992 | package io.sealights.plugins.sealightsjenkins.buildsteps.cli.utils;
import io.sealights.plugins.sealightsjenkins.buildsteps.cli.CommandMode;
import io.sealights.plugins.sealightsjenkins.buildsteps.cli.entities.*;
import io.sealights.plugins.sealightsjenkins.utils.PropertiesUtils;
/**
* Created by shahar on 2/12/2017... | 46.75 | 123 | 0.741979 |
dee73e9c1676e4bc905bb1a0da64b296f1415a04 | 3,323 | /*
* MIT License
*
* Copyright (c) 2016 Eric
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 35.351064 | 81 | 0.597051 |
dc2c4e231f2d1427d81818d7b4ab34b1fbf0387a | 3,629 | /*
* 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.293578 | 127 | 0.630201 |
dd72433e9a8272014f8414343c594038ad8be3c2 | 6,123 | package core.menu;
import static core.Frame.SCREEN_SIZE;
import gui.FontManager.FontType;
import gui.GameGUI;
import gui.PowerSelectionGUI;
import gui.ui.ButtonElement;
import gui.ui.HudElement.InteractionType;
import gui.ui.HudOverlay;
import gui.ui.TextElement;
import java.awt.Color;
import java.util.Li... | 26.27897 | 168 | 0.649518 |
c4406f89056c42ac1a040846f5df1cc872926523 | 2,071 |
package com.thalesgroup.rtti._2012_01_13.ldb.types;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* A list of messages ap... | 28.763889 | 147 | 0.654273 |
ed42c9aa07b16e1768148d2fb1b71cd69db7f5ef | 997 | /*
* Copyright (c) 2001-2002, Stewart Allen <stewart@neuron.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Artistic License.
*/
package javax.comm;
// ---( imports )---
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import j... | 20.770833 | 105 | 0.703109 |
aca0eb07835db0d43e0546a961a81e8965dc8e45 | 124 | package org.apache.age.jdbc.base.type;
public interface UnrecognizedObject {
void setAnnotation(String annotation);
}
| 17.714286 | 42 | 0.782258 |
186b386c7ae7390ce6760dd9b1e98e71bde0c576 | 1,496 | package net.devaction.kafka.transferswebsocketsservice.server.sender;
import javax.websocket.Session;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import net.devaction.entity.TransferEntity;
im... | 29.92 | 96 | 0.719251 |
4101a3ee61af0e17848357a317da9cbf5d31d1da | 270 | package space.harbour.l71.structural.decorator;
/**
* Created by tully.
* <p>
* CoreFunctionality in the Decorator pattern.
*/
public class PrinterImpl implements Printer {
@Override
public void print(String str) {
System.out.println(str);
}
}
| 18 | 47 | 0.681481 |
89857d01487118de8284e7c965aa88ac035652f2 | 2,185 | /*
* 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 ... | 31.666667 | 102 | 0.759268 |
9cff7047efefad9ded093b59088d6114cdfe98f5 | 8,116 | /*
* Copyright © 2020 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 46.913295 | 120 | 0.759364 |
f6b785c23f0bad8d8fcfcd63e566320018f03e5a | 643 | package org.cmdb.dto;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
/**
* DTO to customize the returned message
*
* @author lishen
*/
@Getter
@Setter
public class RestResult<T> implements Serializable {
public static final int OK = 0;
public static final String M_OK = "成功";
... | 20.741935 | 52 | 0.681182 |
f69256fc98d225bcad87ddd27ffd4060580c315e | 218 | package com.gitee.sop.adminserver.service;
import org.springframework.stereotype.Service;
/**
* @author tanghc
*/
@Service
public class ConfigRouteBaseService {
public void updateConfigRouteBase() {
}
}
| 13.625 | 46 | 0.733945 |
35ebaaa038ef80a93efd8a66c9d5517d43231f9d | 615 | package reflectDemo;
import commondata.People;
import java.lang.reflect.Constructor;
/**
* @author bin.yu
* @create 2018-08-24 15:23
**/
public class ReflectDemo {
public static void main(String[] args) {
try {
Class<?> clz = Class.forName("commondata.People");
Constructor<?> ... | 25.625 | 85 | 0.609756 |
5ad0412b9c8d062dcbef3ddfd3fe85229d22df15 | 6,291 | /*
* 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 ... | 27.471616 | 75 | 0.593228 |
2903968c8f9fce9bb74013097d0aade5d65f7be8 | 658 | package com.netease.nim.demo.login;
import com.netease.nim.demo.DemoCache;
import com.netease.nim.demo.chatroom.helper.ChatRoomHelper;
import com.netease.nim.uikit.LoginSyncDataStatusObserver;
import com.netease.nim.uikit.NimUIKit;
import com.netease.nim.uikit.common.ui.drop.DropManager;
/**
* 注销帮助类
* Cre... | 28.608696 | 60 | 0.68997 |
3b1f4b2df578f73a14ec97443c1d885ea4939664 | 9,682 | package org.contentmine.ami.lookups;
import java.util.List;
import nu.xom.Element;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import org.eclipse.jetty.util.log.Log;
import org.contentmine.eucl.xml.XMLUtil;
/**
* analyzes the XML returned by a Genbank search.
*
* @author ... | 35.335766 | 234 | 0.697377 |
03e5a2967f690128c2d5b19b92b6590ef82d9fba | 2,038 | //package com.hitesh_sahu.retailapp.domain.mock;
//
//import android.content.Context;
//
//import com.android.volley.AuthFailureError;
//import com.android.volley.Cache;
//import com.android.volley.Request;
//import com.android.volley.RequestQueue;
//import com.android.volley.toolbox.BasicNetwork;
//import com.android.... | 30.41791 | 101 | 0.587831 |
16063ce062dc8176f5f1c49547d21dc53d34a003 | 5,922 | /*
* Copyright ConsenSys AG.
*
* 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... | 40.561644 | 118 | 0.772712 |
d771c8244014e2b42512fed64e346d1d718e797a | 3,789 | package org.ddouglascarr.integration.query.repositories;
import org.ddouglascarr.LiquidcanonApplication;
import org.ddouglascarr.exceptions.ItemNotFoundException;
import org.ddouglascarr.query.models.Area;
import org.ddouglascarr.query.repositories.AreaRepository;
import org.junit.Test;
import org.junit.runner.RunWith... | 35.083333 | 127 | 0.73555 |
2a4fed1f886fd7482d8ed3d3a1149d7f3fd36c22 | 319 | package slack.android.api.webapi.response;
import slack.android.api.models.Channel;
public class ChannelResponse extends BaseResponse {
private Channel channel;
public Channel getChannel() {
return channel;
}
public void setChannel(Channel channel) {
this.channel = channel;
}
}
| 19.9375 | 51 | 0.702194 |
841998996a52b7938a3e09dc21d0a0c64bb01e73 | 482 | package com.brandon.apps.groupstudio.models;
/**
* Created by Brandon on 11/27/2015.
*/
public class CalculationModel {
public int CalculationId;
public int CalculationTarget;
public int CalculationStat;
public String CalculationName;
public CalculationModel(int id, int target, int st... | 25.368421 | 73 | 0.661826 |
7eb8947b4ab906c09765d493036f267bbdda1879 | 10,422 | package com.example.rohanupponi.scribeapp;
import android.content.Intent;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import ... | 54.565445 | 199 | 0.504606 |
e4856311db4f9619b949bcc48cc56d481a03a29b | 383 | package io.github.parj.getExternalIP;
import java.util.Optional;
/**
* Main class for entry point
*/
public class App {
public static void main(String[] args) {
String port = Optional.ofNullable(System.getenv("port")).orElse("9998");
MainServer.getInstance()
.startServer()
... | 21.277778 | 80 | 0.629243 |
69da0dfae6e52eb8cff40b3d731a13274bf8b086 | 2,066 | package org.liballeg.android;
import android.app.Activity;
import android.content.Context;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.util.Log;
class Clipboard
{
private static final String TAG = "Clipboard";
private Activity activity;
private boolean clip_... | 23.213483 | 95 | 0.57696 |
db7508cf2e361a0af6a6ae4f85dffdd28af0fc0c | 1,407 | package com.fo0.robot.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* TODO: Add java.utils.logging or log4j as logger
*
* @author max
*
*/
public class Logger {
private static final String DATE_PATTERN = "yyyy-mm-dd HH:mm:ss.SSS";
public static FileLog log = null;
public static void ... | 22.333333 | 147 | 0.665956 |
7e0daf542aac3472dd6558c6c332d9a942da5c3f | 5,025 | package org.opensha.gem.GEM1.calc.gemHazardMaps;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.opensha.commons.data.function.ArbitrarilyDiscretizedFunc;
import org.opensha.commons.param.... | 28.389831 | 132 | 0.702488 |
1d30f48fffa449b825ffabdb70d9e25a56658ebd | 2,571 | /*
* 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 ... | 28.88764 | 82 | 0.697783 |
e983229c76c5948d8600a2b4685c919514b54d45 | 1,019 | package io.hawt.jmx;
public interface QuartzFacadeMBean {
/**
* Updates an existing simple trigger by changing the repeat counter and interval values.
*
* @param misfireInstruction the misfire instruction
* @param repeatCount the repeat count (use 0 for forever)
* @param repeatInterval t... | 40.76 | 118 | 0.700687 |
f622f39137dc10de0a83000a1892b971ce1ad720 | 7,798 | package com.lightclockcontrol.gss;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AppCompatActivity;
im... | 36.610329 | 142 | 0.639266 |
f7a925ff4cdde47be473667416af2f8d53c55ee3 | 9,532 | package com.alrosyid.notula.activities.notulas;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.app.ProgressDialog;
imp... | 38.591093 | 123 | 0.650126 |
10e51ff8ea0b8ec1cbdfe88c00b553508ed5d895 | 1,441 | package GUI_SingleFiles;
// Пример использования окна без рамки JWindow
import javax.swing.*;
import java.awt.*;
// http://java-online.ru/swing-windows.xhtml
// Класс прорисовки изображения
class ImageDraw extends JComponent
{
private static final long serialVersionUID = 1L;
private Image capture;
ImageDraw (Ima... | 24.844828 | 51 | 0.712006 |
719db194feb15e9def3f06c6152c06d5a86ffd52 | 1,641 | /**
* Copyright (C) 2011 Inqwell Ltd
*
* You may distribute under the terms of the Artistic License, as specified in
* the README file.
*/
/*
* $Archive: /src/com/inqwell/any/GetUniqueKey.java $
* $Author: sanderst $
* $Revision: 1.2 $
* $Date: 2011-04-07 22:18:20 $
*/
package com.inqwell.any;
/**
* Return... | 21.038462 | 78 | 0.594759 |
565af287cfb909466235e8cf0dc09d0225ecee90 | 3,517 | package com.example.cityweather.data.local;
import androidx.lifecycle.LiveData;
import com.example.cityweather.data.api.RequestCallback;
import com.example.cityweather.data.api.ResponseCode;
import com.example.cityweather.data.local.dao.CityDao;
import com.example.cityweather.data.local.dao.ForecastDao;
import com.ex... | 31.972727 | 113 | 0.681547 |
e97444fd2ea7e7f9f2a7f6b515b44a4971c47fa0 | 406 | package com.dev.crm.core.repository.jpa;
import java.math.BigDecimal;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.dev.crm.core.model.entity.Usuario;
@Repository("usuarioJpaRepository")
public interface UsuarioJpaRepository extends JpaRep... | 27.066667 | 82 | 0.834975 |
c8fc2f8d3cd3736dd16ff4ff082e48fbaf6b29b9 | 1,973 | package uk.gov.hmcts.probate.services.submit.controllers.v2;
import au.com.dius.pact.provider.junitsupport.IgnoreNoPactsToVerify;
import au.com.dius.pact.provider.junitsupport.loader.PactBroker;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.json.JSONException;
import org.json.JSONObject;
import org.ju... | 37.942308 | 117 | 0.758236 |
11106ac55471418318c7a2bac04778682d7822bb | 3,241 | /*
* Copyright (c) 2017 Mattias Eklöf <mattias.eklof@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use,... | 29.463636 | 86 | 0.746066 |
4815bba18e846af41d71dee7f8f5a473a51ff7c1 | 4,735 | package keytouch;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.uti... | 31.993243 | 107 | 0.685322 |
140af5810ebec22a192dda918e07aa4ec69ff6a2 | 415 | package com.fernandocejas.android10.sample.data.cache;
import com.fernandocejas.android10.sample.data.entity.UserEntity;
import io.reactivex.Observable;
/**
* Created by Leeprohacker on 3/21/18.
*/
public interface HomeCache {
Observable<UserEntity> get(final int userId);
void put(UserEntity userEntity)... | 16.6 | 65 | 0.73253 |
9e08084bd335b0daf871167cb5af964512348ce6 | 207 | package jdk_dynamic_proxy;
/**
* Author: markliu
* Time : 16-9-2 下午4:31
*/
public class Logger {
public void log(String userId) {
System.out.println("Logger ==> user (" + userId + ") logged");
}
}
| 15.923077 | 64 | 0.628019 |
db0caddaa98ca214d24a2fc40cb879fb7b0a70fd | 1,054 | package pkg06rockpaperscissors;
public class Check {
public Check(int player1,int com){
//papier kamien nozyce
switch(player1){
case 1:
if(com==1)
System.out.println("Remis!");
else if(com==2)
System.out.printl... | 29.277778 | 54 | 0.402277 |
b5e8a8a24dffba7946d767b7a76e2daececb969c | 2,250 | package com.hzh.answer.dao.impl;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Projections;
import org.springframework.orm.hibernate5.support.HibernateDaoSup... | 27.108434 | 105 | 0.752889 |
313ea7eb466ffe94ada3d7347559315cfc9a5000 | 1,112 | package com.gosun.xone.core.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import com.gosun.xone.core.entity.Organization;
import com.gosun.xone.c... | 37.066667 | 81 | 0.774281 |
3b20ed5d7ea482d8410f63c80803f54a2065c07a | 3,531 | package com.example.main;
import java.util.ArrayList;
import java.util.List;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickList... | 30.179487 | 76 | 0.766072 |
a82bbdf388c47be04fb37a390b3eaea2b06b2961 | 91 | @tech.jhipster.lite.BusinessContext
package tech.jhipster.lite.generator.setup.codespaces;
| 30.333333 | 54 | 0.857143 |
a7ec0c677af60bf834ed92d52c646cceb50a75bb | 1,740 | package com.redhat.repository.validator.impl.remoterepository;
import java.io.File;
import java.net.URI;
import org.apache.http.Header;
import org.apache.http.HttpResponse;
public class ChecksumProviderNginx implements ChecksumProvider {
@Override
public String getRemoteArtifactChecksum(URI remoteArtifact, ... | 31.071429 | 155 | 0.70977 |
2cd3488ac7444fecb5b0c371966fdf8feae9cf0e | 2,293 | package com.skeqi.mes.controller.dzb.report;
import com.alibaba.fastjson.JSONObject;
import com.skeqi.mes.service.dzb.report.ScrewDownService;
import com.skeqi.mes.util.ToolUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.spri... | 35.828125 | 146 | 0.662451 |
32873291ee697967b0949d77cd3c604c936ee9a8 | 3,397 | package be.howest.twentytwo.parametergame.factory;
import be.howest.twentytwo.parametergame.dataTypes.DifficultyDataI;
import be.howest.twentytwo.parametergame.dataTypes.EnemyDataI;
import be.howest.twentytwo.parametergame.model.ai.IAIMoveBehaviour;
import be.howest.twentytwo.parametergame.model.ai.IAIShootBehaviour;
... | 38.602273 | 97 | 0.806888 |
d0d282c1ae175a19b9e9c7d2edd2af43ff48d309 | 738 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.governanceservers.openlineage.scheduler;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.LocalDateTim... | 29.52 | 84 | 0.749322 |
0119c05377e9c6f078fb58002144fef43b986bb0 | 294 | package com.billy.android.preloader.interfaces;
/**
* @author billy.qi
*/
public interface DataLoader<DATA> {
/**
* pre-load loaded data
* Note: this method will runs in thread pool,
* @return load result data (maybe null when load failed)
*/
DATA loadData();
}
| 19.6 | 61 | 0.642857 |
537467d894d9a2672d29d4b050cf73454f0a32a9 | 942 | /**
*
*/
package serendip.struts.plugins.thymeleaf.diarect;
import java.util.LinkedHashSet;
import java.util.Set;
import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.templatemode.TemplateMode;
/**
* diarect:sth.
*
* @author A-pZ
* @version 3.0... | 24.789474 | 83 | 0.759023 |
5913bc1d33324f198a730544013be632b6922625 | 740 | package de.adesso.gitstalker.core.objects;
import lombok.Data;
import java.util.ArrayList;
@Data
public class Team {
private String name;
private String description;
private String avatarURL;
private String githubURL;
private ArrayList<Member> teamMembers;
private ArrayList<Repository> teamR... | 28.461538 | 157 | 0.735135 |
b0c1fca88bf0cdae569b6323a53afb05c4dc31a5 | 524 | package cn.houtaroy.springboot.koala.starter.log.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Houtaroy
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
pub... | 17.466667 | 61 | 0.660305 |
811d37f537e4da8af3e72acdd76ec969a4a8d719 | 726 | import org.paddy.generics.GenericTypes;
import org.paddy.http.HTTP_Header;
import org.paddy.streams.CollectionManipulation;
import org.paddy.streams.Transactions;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
new CollectionManipulation();
HTTP_Header.parseHTTP... | 36.3 | 73 | 0.655647 |
f2e558f06a240a5de1bd4a06503806f8b1436b6a | 5,207 | package at.tuwien.rocreateprofil.model.entity.rocrate.meta.util;
import at.tuwien.rocreateprofil.output.rocrate.RoCrateSchema;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import java.util.ListIterator;
public class RoCrateMetaUtil {
public static JSONArray getRoCrateMetadataGraphArray(J... | 42.333333 | 175 | 0.525639 |
a4189df31d1150b0be218a784d3e73df4f35fc78 | 243 | package com.baeldung.concurrent.interrupt;
public class CustomInterruptedException extends Exception {
private static final long serialVersionUID = 1L;
CustomInterruptedException(String message) {
super(message);
}
}
| 22.090909 | 59 | 0.744856 |
f896d38f2cdd03025c546997599d265dcadae459 | 4,769 | package cellsociety.configuration;
import cellsociety.model.Cells.Cell;
import com.opencsv.CSVReader;
import com.opencsv.exceptions.CsvException;
import java.io.FileReader;
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.nio.file.Path;
import java.util.Arr... | 38.459677 | 100 | 0.689453 |
1055b78d2310b24a1903989de6dc343237711605 | 1,544 | package com.lazydev.stksongbook.webapp.config;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.sprin... | 41.72973 | 111 | 0.816062 |
85dde1cc03b20fdb2394b576d8db9b56052d0cb6 | 2,457 | /**********************************************************************************************
Copyright 2019 Pivotal Software
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... | 22.135135 | 95 | 0.693122 |
e55429e9d6aab3ece01bd56de64d179db6be38cd | 1,853 | package no.kjelli.generic.tweens;
import no.kjelli.generic.gameobjects.GameObject;
import aurelienribon.tweenengine.TweenAccessor;
public class GameObjectAccessor implements TweenAccessor<GameObject> {
public static final int POSITION_X = 1;
public static final int POSITION_Y = 2;
public static final int POSITION... | 17.481132 | 70 | 0.649757 |
f9d27d3a2b67fee47e37db7c7bbe99575cc283fc | 1,911 | package com.db.prisma.droolspoc.generation;
import com.db.prisma.droolspoc.pain001.Document;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.xml.sax.SAXException;
import javax.xml.XMLConstants;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.... | 34.745455 | 84 | 0.723182 |
1dda0b772323dc9602a82c763fa97322d3ed6dc4 | 3,689 | package wannabit.io.cosmostaion.widget;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import org.jetbrains.annotations.NotNull;
import java.math.BigDe... | 50.534247 | 146 | 0.740851 |
88cd12dce462b3d086f7ed84fc5acb29dcf53ce9 | 2,435 | /* */ package org.apache.xpath.compiler;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
... | 20.635593 | 96 | 0.340452 |
6cc966c9e2424efc0f087a1662f731e4b099b8a6 | 5,510 | package library.rays;
import library.collision.Arbiter;
import library.dynamics.Body;
import library.geometry.Circle;
import library.geometry.Polygon;
import library.math.Matrix2D;
import library.math.Vectors2D;
import testbed.Camera;
import testbed.ColourSettings;
import java.awt.*;
import java.awt.geom.Path2D;
impo... | 32.994012 | 117 | 0.601996 |
0b7575b8e08e1f9e34db61978a1035fcd35ae40e | 1,877 | /*-
* #%L
* Slice - Core API
* %%
* Copyright (C) 2012 Wunderman Thompson Technology
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICEN... | 40.804348 | 118 | 0.765051 |
93913dc9f2a78a44e277e2a3a5d4eb59db02f36e | 9,118 | package io.github.yedaxia.musicnote.activity;
import android.content.Intent;
import android.media.AudioTrack;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.view.View;
import android.widget.Button;
import android... | 32.798561 | 119 | 0.629963 |
43f44dec27d72c7d369b54770a1a50aed4a5da69 | 319 | package com.nicjansma.tisktasks.test;
public abstract class TestConstants
{
//
// test constants
//
public static final String DEFAULT_USER_EMAIL = "test@test.com";
public static final String DEFAULT_USER_API_KEY = "xyz";
public static final String DEFAULT_USER_PASSWORD = "test";
}
| 26.583333 | 69 | 0.69906 |
9e3078afa1556209c00f9b8c85fb3e9ba9c88412 | 3,351 | /*
* Copyright (c) 2014-2018 Kumuluz and/or its affiliates
* and other contributors as indicated by the @author tags and
* the contributor list.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 41.37037 | 133 | 0.68875 |
6627e61401aa44cf1d66fd8e2ea7286284b0565b | 5,109 | package eclipse.tests.exams.matriculation.cs.y2009;
import eclipse.utilities.adt.*;
import eclipse.utilities.adt.mine.Utilities;
import eclipse.utilities.adt.moe.Node;
/**
* @author GrizzlyMcBear
*
* @implNote This class contains the solution for question #1.
* @implSpec
* <ul>
* <li>The exam questions coul... | 31.93125 | 125 | 0.667058 |
504857850163751b9628a55e40fd910339c2e475 | 485 | package wooteco.prolog.report.application.dto.ability;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import wooteco.prolog.report.domain.ablity.Ability;
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class AbilityUpdateRequest {
private Long id;
private Strin... | 22.045455 | 57 | 0.764948 |
69e101bef1188f1a106b943f9e69c5b9698dfe57 | 6,465 | package org.clarksnut.report.jasper;
import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.data.JRMapCollectionDataSource;
import net.sf.jasperreports.engine.export.HtmlExporter;
import net.sf.... | 39.662577 | 149 | 0.676566 |
cc22f92fd56fa9dd5594438f774da1404dab9e6a | 1,994 | package com.acmebank.accountmanager.exception;
public class BusinessException extends Exception {
public static final ErrorCode BAD_REQUEST = new ErrorCode(400001, 400, "Bad request");
public static final ErrorCode INVALID_METHOD_ARGUMENT = new ErrorCode(400002, 400, "Invalid method argument");
public sta... | 37.622642 | 126 | 0.703109 |
b0d5fe50655891e83a10d1e75ca05e3dcab2ffaf | 7,033 | /*
* 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 ... | 29.304167 | 110 | 0.652069 |
85515b217e8517808c601ec5a82c23352ac10aa5 | 1,089 | package br.com.hmv.dtos.responses.administrativo;
import br.com.hmv.models.entities.ConvenioAdministrativo;
import br.com.hmv.models.enums.StatusConvenioEnum;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
@Data
@NoArgsConstr... | 28.657895 | 98 | 0.76584 |
4702ee9bcb96b91f011a9d5b8dce24997898fa2b | 960 |
// 2021.05.21
// Leetcode 第 213 题
// https://leetcode-cn.com/problems/house-robber-ii/
package DynamicProgramming;
public class T213 {
public static void main(String[] args) {
T213 solution = new T213();
int[] nums = { 2, 3, 2 };
int[] nums2 = { 1, 2, 3, 1 };
System.out.println(sol... | 22.325581 | 66 | 0.480208 |
0de5d5e4fa02fd16ef13f5fec84a0fa5821ad8b1 | 1,470 | /*
* Copyright 2019 Dhiego Cassiano Fogaça Barbosa
*
* 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 applicabl... | 28.823529 | 89 | 0.67551 |
be04104a6b88ba3cd7c006fc97e31746af4a1f36 | 250 | package com.test.privat.currency.models.utils;
import java.math.BigDecimal;
public class StringUtils {
public static String getPercentage(BigDecimal digit) {
return digit.multiply(BigDecimal.valueOf(100)).toPlainString() + "%";
}
}
| 25 | 77 | 0.732 |
e95b5e4d01ec1789905e6927329a5788496688de | 3,974 | /*
* Landscape omnikeeper REST API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator... | 22.579545 | 109 | 0.597383 |
86f5a7298c79a0427be410289f9ace1ca1b47bfe | 672 | package me.bytebeats.mns.tool;
import com.github.promeg.pinyinhelper.Pinyin;
/**
* @author <a href="https://github.com/bytebeats">bytebeats</a>
* @email <happychinapc@gmail.com>
* @since 2020/8/19 16:48
*/
public class PinyinUtils {
public static String toPinyin(String input) {
StringBuilder pinyins =... | 29.217391 | 73 | 0.60119 |
9e6523fe942eef8db6673af955d476a3922a0ebb | 1,479 | package eu.rcauth.delegserver.storage.sql.table;
import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.OA2TransactionKeys;
import edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.OA2TransactionTable;
import edu.uiuc.ncsa.security.storage.sql.internals.ColumnDescriptorEntry;
import java.sql.Types;
import eu.rcauth.delegserver.... | 49.3 | 116 | 0.651792 |
5af03e8887e467ce067ae5c11c2e76b4bfd6c670 | 571 | package kvj.taskw.data;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import org.kvj.bravo7.log.Logger;
import kvj.taskw.App;
/**
* Created by kvorobyev on 11/25/15.
*/
public class BootReceiver extends BroadcastReceiver {
Controller controller = App... | 22.84 | 65 | 0.730298 |
f60dcfba90189d92fc3257f5bf87b4fcb2f8de7e | 3,655 | package com.zxj.resolver;
import com.zxj.model.Table;
import com.zxj.util.GenerateConfig;
import com.zxj.util.JdbcConnectionFactory;
import com.zxj.util.PathUtil;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;
/**
* Cre... | 42.011494 | 140 | 0.630369 |
bfc69fc6d43ff7c4d24e4de9953ee8c73ecccccb | 14,182 | /*
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 39.176796 | 136 | 0.717388 |
cdd1d1ed67acc410514fea66712ef2dd132561b1 | 4,571 | package com.github.loki.afro.metallum.entity;
import com.github.loki.afro.metallum.enums.Country;
import java.awt.image.BufferedImage;
import java.util.*;
public class Member extends AbstractEntity {
// good Example: http://www.metal-archives.com/artists/Kerry_King/267
private Country country;
private S... | 24.057895 | 91 | 0.62809 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.