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 |
|---|---|---|---|---|---|
1e0a2e5a51aa67088e95781cf786017104c2580a | 18,022 | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 36.116232 | 131 | 0.588115 |
59089f0851713366693bc204633e8a0df208d789 | 1,146 | /**
* Copyright 2021 jb51.net
*/
package com.qianyitian.hope2.spider.model;
import com.alibaba.fastjson.annotation.JSONField;
import java.util.Date;
/**
* Auto-generated: 2021-01-27 10:33:18
*
* @author jb51.net (i@jb51.net)
* @website http://tools.jb51.net/code/json2javabean
*/
public class AchievementList {... | 19.758621 | 52 | 0.640489 |
1bc0413ec68383f225a667059e7ba52d137633c9 | 451 | package cc.eamon.open.mapping.mapper.valid;
import javax.validation.constraints.Min;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.SOURCE)
public ... | 21.47619 | 44 | 0.756098 |
d980497d22e3e60d863534bece25a61693c343fc | 331 | package org.jeecg.modules.hudong.hdExcel.service;
import org.jeecg.modules.hudong.hdExcel.entity.HdExcel;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: Excel模版管理
* @author: jeecg-boot
* @date: 2019-07-31
* @version: V1.0
*/
public interface IHdExcelService extends IService<HdE... | 22.066667 | 60 | 0.755287 |
f7dbc5ead0ce0a9b8daf8b970fd2d20d64059d62 | 324 | package biz.golek.whattodofordinner.business.contract.response_data;
import java.io.Serializable;
/**
* Created by Bartosz Gołek on 2016-02-08.
*/
public class DinnerListItem implements Serializable {
public Long id;
public String name;
@Override
public String toString() {
return name;
... | 19.058824 | 68 | 0.70679 |
acdafa75a02b9f55c215ba4f7b8fdfcf24e46f1e | 1,017 | package com.wexalian.jtrakt.endpoint.sync;
import com.wexalian.jtrakt.endpoint.TraktItemType;
import com.wexalian.jtrakt.endpoint.episodes.TraktEpisode;
import com.wexalian.jtrakt.endpoint.movies.TraktMovie;
import com.wexalian.jtrakt.endpoint.shows.TraktShow;
import java.time.OffsetDateTime;
public class TraktPlayb... | 21.638298 | 58 | 0.665683 |
a20a55a2f9eb63d6eff23240dfb3587f05a7b1be | 429 | package com.prim.primweb.core.uicontroller;
/**
* ================================================
* 作 者:linksus
* 版 本:1.0
* 创建日期:6/20 0020
* 描 述:
* 修订历史:
* ================================================
*/
public interface IndicatorController {
void show();
void hide();
void reset();
... | 17.16 | 51 | 0.468531 |
a7c5655eeef8f8ead39f03cce4793d32145672eb | 38,367 | package io.github.jayzhang.mybatis.generator.plugin;
import static org.mybatis.generator.internal.util.StringUtility.stringHasValue;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import java.util.stream.Collectors;
import org.apache.... | 38.87234 | 141 | 0.66982 |
e230e1cf9125daa30924d98febf55f70dbc8286e | 4,888 | package simorion;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
/**
* @author Vlad
* @author Paul
*/
pub... | 32.586667 | 90 | 0.606997 |
81abe41771ceeac9da548e3288109ebc7d4fb7bb | 958 | package com.weme.group.action;
import android.content.Context;
import android.text.TextUtils;
import com.weme.group.utils.DidHelper;
import java.util.HashMap;
import java.util.Map;
/**
* 用于上报数据提交,默认已经提交了did,equipment_id, os_version, device_info
*/
public class ActionParams {
private Map<String,Object> params;... | 24.564103 | 89 | 0.658664 |
ad59ede2bd59365381ace3718295e451642cb688 | 7,487 | /**
* Created by mmucito on 18/09/17.
*/
package com.paymentez.example;
import com.paymentez.example.model.Customer;
import com.paymentez.example.sdk.Paymentez;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.Htt... | 48.616883 | 165 | 0.706024 |
3fc1a94b756c0367cf365ac5da4d320af235093e | 951 | package com.argusapm.android.core.job.net.i;
import com.argusapm.android.core.job.net.NetInfo;
/**
* OkHttp相关,对外暴露的接口
*
* @author ArgusAPM Team
*/
public class QOKHttp {
/**
* 记录一次网络请求
*
* @param url 请求url
* @param code 状态码
* @param requestSize 发送的数据大小
* @param... | 27.970588 | 98 | 0.610936 |
59e237c13381160679ec81fd3127a3796086d929 | 8,328 | package com.sproutigy.verve.resources;
import com.sproutigy.verve.resources.exceptions.ChildrenNotAvailableResourceException;
import com.sproutigy.verve.resources.exceptions.InvalidResolvePathResourceException;
import com.sproutigy.verve.resources.props.DataAccessJSONProps;
import com.sproutigy.verve.resources.props.J... | 26.864516 | 100 | 0.574207 |
30dcfaa1a81d8a318ce629f22bdfb06d0d601cdf | 935 | class Solution {
public void XXX(int[] nums) {
//遇见0和前面的交换,遇见1不动
int zeroPosition = -1;
int twoposition = nums.length;
for (int i = 0; i < nums.length; i++) {
//提高效率,后面都是2了
if(nums[i] == 2 && i == twoposition - 1){
break;
}
... | 29.21875 | 84 | 0.428877 |
4baa447caa7b7537a2937e7b7a20dd435d360d84 | 4,504 | package net.okair.springcloud.gateway.admin.rest;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import net.okair.springcloud.common.core.entity.vo.Result;
import net.okair.springcloud.gateway.admin.entity.form.GatewayRouteForm;
import net.okair.springcloud.gateway.admin.entity.form.GatewayRouteQue... | 42.093458 | 125 | 0.704041 |
9227552b424c7b064948637b4c83c016dc15c1c9 | 188 | package me.rubenicos.mc.picospacos.core.paco.rule.comparator;
import me.rubenicos.mc.picospacos.core.paco.rule.ComparatorType;
public class EqualComparator implements ComparatorType { }
| 31.333333 | 64 | 0.835106 |
7b35988d86dd90b189652a2407e7d0b418cf882a | 545 | package org.loader.shotcutsstatic;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
/**
* Created by qibin on 16-10-20.
*/
public class SettingsActivity extends AppCompatActivity {
@Override
protected void... | 24.772727 | 66 | 0.715596 |
3da821cb72e66c1be6faf0b24aa3d007262d27b3 | 575 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static String repeat(char c, int n) {
String s = "";
for (int i = 0; i < n; i++) {
s += c;
}
return s;
}
... | 20.535714 | 71 | 0.45913 |
ec86ec93fca1a948b06c611e42de9e9407783c99 | 4,020 | package therent.view.delivery;
import com.jfoenix.controls.JFXButton;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Tab;
import javafx.scene.control.TableColumn;
import javafx.scene.control.Tabl... | 27.724138 | 84 | 0.690796 |
585137f4b88bda86417857201f8bc7cdc3db75cf | 4,110 | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2016 Board of Regents of the University of
* Wisconsin-Madison, University of Konstanz and Brian Northan.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | 35.73913 | 79 | 0.720195 |
f7f637570d95954927f6e02d0856ef24b6257a8c | 875 | package cc.cc4414.spring.resource.core;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 基础用户,一些用户的公共字段,需要用到这些字段的用户类直接继承该类
*
* @author cc 2019年10月21日
*/
@Data
@Accessors(chain = true)
public class BaseUser implements Serializable ... | 16.203704 | 50 | 0.645714 |
b5660729ee5e843fd7887e7274e61af53129a3cb | 6,348 | /**
* Copyright 2016 Jan Petendi <jan.petendi@p-acs.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
*
* Unless required by ap... | 38.240964 | 105 | 0.677221 |
2e9a9ec352e20f798fe5c4dc14658708864f2849 | 429 | package com.JTweaks.Main;
import com.JTweaks.Main.Items.*;
import cpw.mods.fml.common.*;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.registry.*;
import net.minecraft.item.*;
public class Fuel implements IFuelHandler {
@Override
public int getBurnTi... | 21.45 | 45 | 0.701632 |
b4e070048a61cd139d2f895d203d1d44dceb317e | 2,671 | package wusc.edu.pay.facade.user.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import wusc.edu.pay.common.exceptions.BizException;
import wusc.edu.pay.common.page.PageBean;
import wu... | 24.731481 | 91 | 0.707226 |
8550827a85f97c270dfb0540c1c22be7b0284f32 | 261 | package io.github.fatihbozik.oca.polymorphism.example3;
public class Capybara extends Rodent {
public static void main(String[] args) {
Rodent rodent = new Rodent();
Capybara capybara = (Capybara) rodent; // Throws ClassCastException at runtime
}
}
| 26.1 | 79 | 0.743295 |
f34bd60302f10fee8ddfc09d1ee7fe69aba7593c | 1,521 | /*
* Copyright 2014 The Android Open Source 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... | 23.765625 | 79 | 0.637738 |
366b0fa227081c5b39dea82fbd8e9ef64e1aeea4 | 8,892 | package org.iota.jota.dto.response;
/**
*
* Contains information about the result of a successful {@code getNodeInfo} API call.
*
*/
public class GetNodeInfoResponse extends AbstractResponse {
/**
* Name of the IOTA software you're currently using. (IRI stands for IOTA Reference Implementation)
*/
... | 27.444444 | 124 | 0.631691 |
606f006dadb6abbb9d0c3f16318a24e92ff26dc2 | 2,084 | /*
* 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 daos;
import beans.RegisterBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLE... | 38.592593 | 188 | 0.652591 |
0f6c5affb3175f97de0ff2f4cf2051c13c0f1823 | 4,078 | package org.jetbrains.android.formatter;
import com.intellij.application.options.XmlCodeStyleSettingsProvider;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationsConfiguration;
import com.intellij.notification.impl.No... | 37.412844 | 134 | 0.757479 |
0e49b1e58513c5a8b8cba52abd4271419d7c792c | 671 | package eu.dareed.rdfmapper.xml;
import eu.dareed.eplus.model.idd.AnnotatedObject;
import org.semanticweb.owlapi.vocab.OWL2Datatype;
/**
* @author <a href="mailto:kiril.tonev@kit.edu">Kiril Tonev</a>
*/
enum DataProperty {
INTEGER(OWL2Datatype.XSD_INTEGER.getIRI().toString()),
REAL(OWL2Datatype.XSD_DOUBLE.g... | 27.958333 | 93 | 0.718331 |
6c7a2e5938fc4500ac41973b33732f1a5034e86a | 6,034 | /*
* 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 unifavip.estruturadados;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Before... | 25.896996 | 79 | 0.561651 |
8bcfae62277501c3ccc75b00a940a996c7d52a36 | 6,083 | package edu.ucla.cs.wis.bigdatalog.compiler;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import edu.ucla.cs.wis.bigdatalog.compiler.predicate.Predicate;
import edu.ucla.cs.wis.bigdatalog.compiler.type.CompilerTypeBase;
import edu.ucla.cs.wis.bigdatalog.compiler.type.CompilerType;
i... | 27.035556 | 85 | 0.668091 |
cb9aac3f5a63026bccefb1ab50b2bab0d734fd7a | 215 | package net.collaud.fablab.manager.data.type;
/**
*
* @author Gaetan Collaud <gaetancollaud@gmail.com>
*/
public enum AuditAction {
INSERT,
UPDATE,
SAVE,
SIGNUP,
DELETE,
CONFIRM,
LOGIN,
LOGOUT,
OTHER
}
| 11.944444 | 51 | 0.697674 |
7577e20adb7e48405686b1454f2e79b03ffb171e | 1,598 | package io.jenkins.x.client.kube;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
i... | 27.084746 | 85 | 0.686483 |
d6ff1c721822faf162ef62f3211cf9ee9aa882c6 | 371 | package com.example.einkbitcoinpriceticker.models;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class UserIpEntity {
String userIp;
String currency;
Boo... | 19.526316 | 50 | 0.827493 |
a197b082bbf1d9d4e20e6b12a4f8c782face7012 | 1,417 | package controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.UserDAO;
import entity.User;
public class LoginSer... | 32.953488 | 121 | 0.726182 |
2139e05f692f49cba9794ee85cfd35b63b105dd3 | 495 | package net.su.common.items;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.su.client.gui.GuiRun;
public class Book extends Item {
public ItemStack onItemRightCli... | 29.117647 | 86 | 0.79798 |
09fd0e2bcdec414dab2edd2c039efd17c5d46b8e | 753 | package net.sorenon.mcxr.play.mixin.accessor;
import com.mojang.math.Vector3f;
import net.minecraft.client.Camera;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.BlockGetter;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(Camera.class)
pub... | 22.147059 | 48 | 0.722444 |
eab1333225ac22d1d6e61a2b7b90e48b18944830 | 1,433 | package br.com.tiagohs.popmovies.model.dto;
import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Tiago on 22/01/2017.
*/
public class ImageSaveDTO implements Parcelable {
private Bitmap mBitmap;
private String mPath;
public ImageSaveDTO(Bitmap bitmap... | 22.046154 | 107 | 0.629449 |
2ca79e0eba82d1caa7f9fd05f8328ce139180e55 | 1,144 | package com.csc480.game;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.headless.HeadlessApplication;
import com.badlogic.gdx.graphics.GL20;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.mockito.Moc... | 27.902439 | 73 | 0.656469 |
456aec9bda52659262d700ef8ca9aff1173a34b7 | 233 | package com.procesualHito3.CoronaVirusWeb;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class CoronaVirusWebApplicationTests {
@Test
void contextLoads() {
}
}
| 16.642857 | 60 | 0.806867 |
7e2a2302be317ae5431d976a8f35b3240c690eb5 | 1,368 | package co.yixiang.modules.shop.web.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
/**
* <p>
* 购物车表 查询结果对象
* </p>
*
* @author hupeng
* @date 2019-10-25
*/
@Data
@ApiModel(value = "YxStoreCartQueryVo对象", description =... | 20.41791 | 67 | 0.708333 |
d943abd1fa21b40ceeb5e1462b4f5549743bd8a3 | 7,594 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.devtools_bridge;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import androi... | 31.774059 | 99 | 0.644983 |
33fc94dc635aa635d0b3cb432361a03d9dc7fa56 | 1,154 | /*
* Copyright 2019 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... | 28.146341 | 75 | 0.70364 |
2e3bbaa76f7ee694328e4cf9017366e1feacfb34 | 551 | package br.gov.df.emater.negocio.pessoa.pessoa;
import org.springframework.stereotype.Component;
import br.com.frazao.cadeiaresponsabilidade.Comando;
import br.com.frazao.cadeiaresponsabilidade.Contexto;
import br.gov.df.emater.repositorio_principal.entidade.principal.Pessoa;
@Component
public class PessoaIniciarCmd... | 23.956522 | 72 | 0.794918 |
53fb7742a8b8153d0ca3a5a370d800d7f85295ae | 765 | package com.fengwenyi.apistarter.constraints;
/**
* @author <a href="https://www.fengwenyi.com">Erwin Feng</a>
* @since 2021-08-09
*/
import com.fengwenyi.apistarter.validator.PhoneValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
import static java.lan... | 24.677419 | 65 | 0.72549 |
85bf6e50ea9f5c82b59e14d1a14d57dc1c7a21c9 | 1,183 | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 Li... | 34.794118 | 80 | 0.735418 |
e80b9cca124b2f999ba82526bb7e1d654de1ca45 | 3,075 | package org.eclipse.php.internal.ui.editor.contentassist;
import org.eclipse.dltk.core.CompletionProposal;
import org.eclipse.dltk.core.DLTKCore;
import org.eclipse.dltk.utils.TextUtils;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
... | 28.211009 | 79 | 0.720325 |
b3cfa8a6e04882ff78bea3b11f871c7313152ed7 | 2,904 | //
// Copyright 2021 SenX S.A.S.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 26.162162 | 113 | 0.710055 |
cd4636b6fe32814c793609abcf9ab09f897610d4 | 8,950 | /*
* 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 ... | 47.354497 | 157 | 0.722011 |
b44cec801f21e1c2e1677332f448b330afae9450 | 3,720 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fil... | 34.12844 | 120 | 0.634409 |
6c1be9276ede84ff8b5966a5fd478d5e5cd855c1 | 1,183 | package org.gooru.nucleus.reports.infra.routes;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Created by ashish on 26/4/16.
*/
public class RouteConfiguration implements Iterable<RouteConfigurator> {
private final Iterator<RouteConfigurator> internalIterator;
public R... | 27.511628 | 72 | 0.654269 |
0a79da202547f449eee32b31bb994095b112ebe1 | 5,122 | package io.github.dunwu.module.cas.controller;
import io.github.dunwu.module.cas.entity.Menu;
import io.github.dunwu.module.cas.entity.dto.MenuDto;
import io.github.dunwu.module.cas.entity.query.MenuQuery;
import io.github.dunwu.module.cas.entity.vo.MenuVo;
import io.github.dunwu.module.cas.service.MenuService;
import... | 35.569444 | 111 | 0.723741 |
cbf5b886dbd6580974d30db50ffce730e3c1d968 | 343 | package ru.fusionsoft.dbgit.integration.primitives.files;
import java.io.IOException;
import java.util.Map;
public interface TextResourceGroup {
void add(String name, String content) throws IOException;
void clean() throws IOException;
TextResource file(String... name);
Map<String, TextResource> all()... | 28.583333 | 61 | 0.763848 |
501157f9a5b812a9568bc672e0bfb57916df9e1e | 1,298 | package com.getcapacitor;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.inputmethod.BaseInputConnection;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import org.xwalk.core.XWalkView;
public class Capa... | 33.282051 | 80 | 0.706471 |
52ccad14a742088dd6bb8667489f5d5f90c25133 | 288 | package server.life;
public interface MonsterListener {
/**
*
* @param monster The monster that was killed
* @param highestDamageChar The char that did the highest damage to the
* monster. Can be null if that char is offline.
*/
void monsterKilled();
}
| 22.153846 | 75 | 0.663194 |
a147ad82171192639fee7bbcb02883b6c25963af | 2,566 | package com.example.demo;
import com.example.demo.InputStreamTransactionLoader;
import org.junit.jupiter.api.DynamicTest;
import org.junit.jupiter.api.TestFactory;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Map;
im... | 38.298507 | 131 | 0.535853 |
31760de44111ff05c9b6b2e87880fea6b52c1cfd | 2,374 | package no.nav.vedtak.sikkerhet.abac;
import java.lang.reflect.Method;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.ws.rs.Path;
class ActionUthenter {
private static final String SLASH = "/";
private ActionUthenter() {
}
static String action(Class<?> clazz, Method method)... | 35.969697 | 147 | 0.63353 |
cc5c3b1ee1e7f7c8b10c58834f9cc3d9f2e7d1a3 | 635 | package FreeWheel;
import java.util.Scanner;
public class FW_template {
public static void main(String[] args) {
// 处理输入
Scanner sc = new Scanner(System.in);
// 解析输入
int n = sc.nextInt();
int m = sc.nextInt();
// 主要逻辑 + 输出返回
System.out.println(new FW_templat... | 22.678571 | 58 | 0.529134 |
31f6ac528bd540b53624cd02aae0b08153863bf3 | 4,653 | package net.njit.ms.cs.service;
import lombok.extern.slf4j.Slf4j;
import net.njit.ms.cs.exception.BadRequestRequestException;
import net.njit.ms.cs.exception.ResourceNotCreatedException;
import net.njit.ms.cs.exception.ResourceNotDeletedException;
import net.njit.ms.cs.exception.ResourceNotFoundException;
impor... | 39.432203 | 113 | 0.656351 |
a86103c1f287335498b3897d6bc2d79188a0e943 | 650 | package arez.component;
import javax.annotation.Nonnull;
/**
* Interface implemented by components that have references that need to be eagerly resolved.
* The method on this interface should only be invoked by the runtime and not directly by external code.
*/
public interface Linkable
{
/**
* Resolve any ref... | 21.666667 | 104 | 0.675385 |
4b9cc93d6b1137340eef0fa004a53d7c12561fef | 1,133 | package cn.binarywang.wx.miniapp.bean;
import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
/**
* {"session_key":"nzoqhc3OnwHzeTxJs+inbQ==","expires_in":2592000,"openid":"oVBkZ0aYgDMDIywRdgPW8-joxXc4"}
*
* @author <a href="https://github.com/binarywang">Bina... | 22.66 | 106 | 0.731686 |
100aaa040391774f395c7b87c2d43bf906623194 | 2,952 | package com.alibaba.alink.operator.common.clustering;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.table.api.TableSchema;
import or... | 33.931034 | 105 | 0.757453 |
e52cbbda86624596899e6cb4af1b6f11456ba15b | 504 | //Lambada表达式例子
interface Command {
//接口定义process方法用于封装"处理行为"
void process(int[] target);
}
class ProcessArray{
public void process(int[] target,Command cmd) {
cmd.process(target);
}
}
public class Test086 {
public static void main(String[] args) {
ProcessArray pa = new ProcessArray();
int[] array = {3,-4,... | 18 | 48 | 0.640873 |
ce288cf688e80123bcc605360078a4901ccc9dbf | 81 | package org.gwtproject.resources.client;
public interface ResourcePrototype {
}
| 16.2 | 40 | 0.82716 |
dd61ffb9fdc56c5ef72c968ba416f1354837167d | 613 | package com.puc.cmfback.repository;
import com.puc.cmfback.model.entity.Produto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ... | 29.190476 | 76 | 0.828711 |
d0c093a1d51e70638bcfbe2be634c00f42d40865 | 64 | package test.factory;
public class DataProviderConFactory {
}
| 10.666667 | 37 | 0.796875 |
429c9a16a136290779b5fc016d401492dd60a70a | 139 | package net.liplum.coroutine;
public class WaitForNextTick extends WaitForTicks{
public WaitForNextTick() {
super(1);
}
}
| 17.375 | 50 | 0.697842 |
6680c4375f19e4947ee3740d5d4fc5dab7074f5d | 870 | package racingCar;
import utils.RandomUtils;
public class Car {
private static final int MIN_VALUE = 0;
private static final int MOVING_STANDARD = 4;
private static final int MAX_VALUE = 9;
private final String name;
private int position = 0;
public Car(String name){
this.name = name;
}
public int getRan... | 17.4 | 51 | 0.686207 |
daa7170eae6c01ba07405c0e7b0009b5e6879ba5 | 1,934 | package pumpkinpotions.effect;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.ai.attributes.AttributeModifierManager;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectType;
import javax.annotation.Nonnull;
public class Ghost... | 38.68 | 144 | 0.701655 |
893b1ee05cc5db180dab698c1b3daa74fe0d8b12 | 384 | package org.apache.ibatis.reflection;
import java.util.ArrayList;
/**
* 描述:
*
* @author: huifer
* @date: 2019-12-09
*/
public class Man extends People implements TestManInterface {
@Override
public Integer inte() {
return 1;
}
public String hello() {
return "hello";
}
pu... | 15.36 | 61 | 0.604167 |
e4176afcda8c184cb7c0da284cd85905d397afd0 | 5,813 | package com.xt.ws.impl;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.... | 32.116022 | 104 | 0.598486 |
6911ee14e2ff99b431f6a25bee5d556574a13828 | 274 | package Absyn;
import Symbol.Symbol;
public class FieldList extends Absyn {
public Symbol name;
public Symbol typ;
public FieldList tail;
public boolean escape = true;
public FieldList(int p, Symbol n, Symbol t, FieldList x) {pos=p; name=n; typ=t; tail=x;}
}
| 27.4 | 91 | 0.715328 |
26fd2654239f9e5ea5f70d32d926fa225a16a6d6 | 8,284 | /*
* Copyright 2018 The Android Open Source 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 applica... | 33.95082 | 99 | 0.620715 |
d9c48fbd23a55dc00ca5c615c84a1110e21121a1 | 3,012 | package cn.mobile.entity;
/**
* Created by LucasX on 2016/4/27.
* <p>
* WAP版的商户信息
*/
public class Shop {
//shopList页面就可以直接获取到的信息
private String shopId;
private String shopName;
private String avgPrice;
private String address;
private String rank;//星级--从图片链接src中取,src="/static/img/irr-star50... | 23.904762 | 100 | 0.573373 |
d49e11d51868a4309107e01958d737ba9d114748 | 1,838 | /*
* Licensed to Elastic Search and Shay Banon under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Elastic Search licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you m... | 39.106383 | 80 | 0.76333 |
6c431ea2fa61764c20d48353a16042b45a12ac48 | 1,511 | /* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 28.509434 | 93 | 0.72998 |
cd3ab90d51532f20d2919eee0a3bd0b9224b0dab | 878 | package org.distributeme.registry.ui.action;
import net.anotheria.maf.action.Action;
import net.anotheria.maf.action.ActionCommand;
import net.anotheria.maf.action.ActionMapping;
import net.anotheria.maf.bean.FormBean;
import org.distributeme.core.ServiceDescriptor;
import javax.servlet.http.HttpServletRequest;
impor... | 30.275862 | 139 | 0.817768 |
e12fb709fa37709bbc2d0c312436d0db8e7d09a2 | 1,717 | package ru.job4j.html;
import java.util.Objects;
/**
* @author Aleksandr Karpachov
* @version 1.0
* @since 26.10.2019
*/
public class User {
String name;
String surname;
String gender;
String description;
public String getName() {
return name;
}
public void setName(String nam... | 21.734177 | 69 | 0.531741 |
3af5354d410b0163e9666706ff38f6c8c324d221 | 620 | package com.speyejack.learning.neat;
import java.awt.Dimension;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
public class Innovation implements Serializable{
private static final long serialVersionUID = 4527372854080147954L;
private int inno = 0;
private Map<Dimension, Integer> inno... | 24.8 | 81 | 0.754839 |
d2233d7a7fd4cd83f451b059984dd332e67258ea | 149 |
package com.laytonsmith.abstraction;
/**
*
* @author Jim
*/
public interface MCLightningStrike extends MCEntity{
public boolean isEffect();
}
| 12.416667 | 52 | 0.731544 |
9273a90cbc141f109b6f59f0d68b570a1963d33d | 40,678 | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 40.037402 | 162 | 0.556124 |
e37a98fc32609d014ed968dee4abd9110c62cc76 | 9,288 | package de.rosariop.trovoapi.chat;
import java.io.Closeable;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.concurrent.TimeUnit;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import org.jetbrains.annotation... | 32.362369 | 119 | 0.573643 |
4f75315329dab08d690219a3f397c542272c87d0 | 5,783 | package com.amirnadiv.project.utils.common;
import static com.amirnadiv.project.utils.common.Assert.ExceptionType.ILLEGAL_ARGUMENT;
import static com.amirnadiv.project.utils.common.Assert.ExceptionType.UNEXPECTED_FAILURE;
import static com.amirnadiv.project.utils.common.Assert.ExceptionType.UNREACHABLE_CODE;
import st... | 32.857955 | 115 | 0.620612 |
73b1d23462de3b9680470a286a13a47f34882b17 | 10,376 | package com.muyoumumumu.QuShuChe.ui.acitivity;
import android.app.AlertDialog;
import android.app.Service;
import android.content.ContentValues;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.os.Vibrator;
import android.support... | 23.212528 | 88 | 0.65054 |
2d21074b349e1159ad95990e12e19ee3aa7d0686 | 542 | package com.jd.blockchain.ledger.core;
import com.jd.blockchain.crypto.PubKey;
import com.jd.blockchain.ledger.BlockchainIdentity;
import utils.Bytes;
/**
* 账户访问策略;
*
* @author huanghaiquan
*
*/
public interface AccountAccessPolicy {
/**
* Check access policy before committing the specified account; <br>
... | 19.357143 | 76 | 0.739852 |
2f3f9075a0b0d6e62305b8ddb5e18b4a9287e658 | 2,292 | /*
* Copyright (C) 2016 Kyle Fricilone
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progra... | 27.614458 | 75 | 0.684991 |
7075b694f0298efed3ed01050659f72bb54a32ae | 102 | package com.adaptris.labs.verify.report.sonar;
public enum Type {
BUG, VULNERABILITY, CODE_SMELL
}
| 17 | 46 | 0.77451 |
d2b7d086a6729129e29b0e257c7d077d9ca8e92d | 3,491 | /*
Copyright (c) 2000-2017 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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 limitat... | 36.747368 | 80 | 0.68204 |
9b1aebc32e4738ce80e17933f8828d0f1725cc93 | 4,822 | /*
* Copyright (c) 2018 victords
*
* 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, merge, publish, d... | 38.576 | 109 | 0.678971 |
1a0573cebf00b828f470dc3734b1c363cb7065fc | 181 | package Graphs4Beginners;
public class Edge {
Vertex to;
int weight;
Edge(Vertex toVertex, int weight) {
to = toVertex;
this.weight = weight;
}
}
| 13.923077 | 39 | 0.596685 |
2e6cfd0067ab4815ff767fbb4ec84eda8c027477 | 2,170 | package system.gui.menus.examplemenu;
import system.gui.DynamicSelectionZone;
import system.gui.HALMenu;
import system.gui.Payload;
import system.gui.event.DataPacket;
import system.gui.menus.TextSelectionMenu;
import system.gui.viewelement.TextElement;
import system.gui.viewelement.eventlistener.EntireViewButton;
imp... | 43.4 | 98 | 0.613364 |
24b9504f587cb3d78eee8a19cc93402d35a93c63 | 8,456 | package mkl.testarea.pdfbox2.extract;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.GeneralPath;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.util.Arrays;
import org.apache.fontbox.util.BoundingBox;
import org.apache.pdfbox... | 32.775194 | 129 | 0.621097 |
102c1c8cb69f25330550815a2e7543dceeef9883 | 2,927 | package com.nainai.mapper;
import com.nainai.domain.ShopModule;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface ShopModuleMapper {
int deleteByPrimaryKey(String id);
int insert(Sho... | 36.135802 | 135 | 0.626238 |
722350e44b262f09dca2e6955250df3f39df28e7 | 402 | // https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
class Solution {
public int maxProfit(int[] prices) {
int min_price = Integer.MAX_VALUE, max_profit = 0;
for(int i = 0; i < prices.length; i++){
min_price = Math.min(min_price, prices[i]);
max_profit = Math.max... | 33.5 | 69 | 0.599502 |
ddff1709eb739d205da49d9651edf76a5bc87f10 | 972 | package com.shubham.prep.search;
import java.util.Arrays;
public class Leetcode875 {
public int minEatingSpeed(int[] piles, int h) {
int low = 1;
int high = Arrays.stream(piles).max().getAsInt();
int ans = Integer.MAX_VALUE;
while(low <= high) {
int mid = low + (high -... | 27 | 84 | 0.509259 |
6b0523845417c5284b0616deb078096ef221bc5b | 1,055 | package org.jetbrains.plugin.devkt.clojure.psi.impl;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.kotlin.com.intellij.lang.ASTNode;
import org.jetbrains.kotlin.com.intellij.psi.PsiElement;
import org.jetbrains.plugin.devkt.clojure.psi.ClojurePsiElement;
import org.jetbrains.plugin.devkt.clojure.psi.C... | 27.051282 | 81 | 0.778199 |
917a08322cd03f2d6de0d2115dfa1688965f35d6 | 1,289 | package org.backmeup.discmailing.test;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Properties;
import org.backmeup.discmailing.DiscmailingD... | 33.921053 | 101 | 0.77114 |
907d4c921ec99e0b7f8f1e65244d3214385457cc | 5,625 | package com.lin.server.bean;
import java.io.Serializable;
import java.util.Date;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Index;
@Entity
/*
* @author Naresh Pokhriyal
* This entity is used in Admin(Accounts) to sa... | 27.173913 | 132 | 0.744178 |
91f90275eeea58da48b66dbdb902ecd4ef0bc859 | 1,744 | /*-
* ============LICENSE_START=======================================================
* Copyright (C) 2021 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | 38.755556 | 117 | 0.629014 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.