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 |
|---|---|---|---|---|---|
213755a4bcf044feef8fd1fea85dd864f29b1f33 | 3,538 | package cn.liulin.algorithm.leetcode.array.simple;
import java.util.HashMap;
import java.util.Map;
/**
* cn.liulin.algorithm.leetcode.array.simple$
* 594. 最长和谐子序列
* 和谐数组是指一个数组里元素的最大值和最小值之间的差别 正好是 1 。
* 现在,给你一个整数数组 nums ,请你在所有可能的子序列中找到最长的和谐子序列的长度。
* 数组的子序列是一个由数组派生出来的序列,它可以通过删除一些元素或不删除元素、且不改变其余元素的顺序而得到。
* @author... | 27.640625 | 70 | 0.447428 |
bbcb4d2d1c9262e9802731f32a955c9435059407 | 2,047 | package dk.sebsa.amber_engine.rendering.overlays;
import java.util.function.Consumer;
import dk.sebsa.amber.graph.GUI;
import dk.sebsa.amber.graph.Sprite;
import dk.sebsa.amber.math.Rect;
import dk.sebsa.amber_engine.Main;
import dk.sebsa.amber_engine.editor.Editor;
import dk.sebsa.amber_engine.rendering.Overlay;
pu... | 35.912281 | 163 | 0.721055 |
8491f62f9febf3e78acebcb8632e0f6e85860c0f | 3,296 | package com.ziroom.ziroomcustomer.ziroomstation.projectdetail.a;
import android.content.Context;
import android.support.v7.widget.RecyclerView.a;
import android.support.v7.widget.RecyclerView.u;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.... | 31.390476 | 165 | 0.712985 |
77091f3e4dd0450cca51e59e7ca6f5cdb1cebc7e | 349 | package com.touwolf.mailchimp.model.campaign;
import com.google.gson.annotations.SerializedName;
public enum CampaignTypeEnum {
@SerializedName("regular")
REGULAR,
@SerializedName("plaintext")
PLAIN_TEXT,
@SerializedName("absplit")
AB_SPLIT,
@SerializedName("rss")
RSS,
@SerializedN... | 20.529412 | 50 | 0.707736 |
a3805b8732134cce1c5e87c9c61edc6face6789f | 2,674 | /*
* Copyright 2012-2014 Sergey Ignatov
*
* 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... | 31.833333 | 142 | 0.780105 |
2bcc65a1934868f376b5cd5930e2cb584d6c871a | 2,365 | package com.njh.socket.TCPSocketHalfDuplexContact;
import java.io.*;
import java.net.Socket;
import java.util.Scanner;
/**
*ClassName: SocketClient
*Description: 半双工通信客户端
*Author: njh
*Time: ,14:47
*Version: V1.0
*
**/
public class SocketClient{
private Socket socket;//使用TCP协议
//private... | 30.714286 | 112 | 0.557717 |
97734ae0c1805af6e32986b65d48110a7758ec0e | 250 | package lambda.rodeo.lang.values;
import lombok.Builder;
import lombok.EqualsAndHashCode;
@Builder
@EqualsAndHashCode
public class Constant<T> {
private final T value;
@Override
public String toString() {
return value.toString();
}
}
| 14.705882 | 33 | 0.74 |
bf2e1ca862572e9fa6d66339da6b3bdafc58213b | 1,919 | /**
* Copyright (c) Dell Inc., or its subsidiaries. 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
*/
package ... | 36.903846 | 101 | 0.711308 |
6d2843dda4185bb61d3cffd99f37003b569c093d | 632 | package page21.q2097;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
private static boolean b[] = new boolean[10];
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
boolean f = true;
for(int i=in.nextInt(), m=in.nextInt(); i<=m; i++)
if(isDist... | 22.571429 | 54 | 0.601266 |
06ee017c4cce39863cdf6fe30ca81db8ab572a6f | 882 | package thundr.redstonerepository.item.tool;
import cofh.redstonearsenal.item.tool.ItemSickleFlux;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import thundr.redstonerepository.item.GelidEnderiumEnergy;
public class ItemSickleGelid extends ItemSickleFlux {... | 30.413793 | 75 | 0.756236 |
0fa9d7935919016418d63f41c029a50c1f80d99a | 1,686 | package com.shsrobotics.library.joysticks;
/**
* Logitech Extreme 3-D Controller button mappings.
* @author Team 2412 <first.robototes.com, github.com/robototes>
*/
public class Extreme3DController {
/** Trigger. */
public static final int trigger = 1;
/** Button 2. Side-key at the joystick top */
public s... | 36.652174 | 89 | 0.702847 |
afa312dfbbb7142b5d4c603f9637ac030dcecc20 | 1,951 | package com.archos.filemanager.dialog;
import android.content.Intent;
import android.os.Bundle;
import com.archos.filemanager.ShortcutDb;
import com.archos.filemanager.network.shortcuts.ShortcutsFragment;
import com.archos.environment.ArchosUtils;
/**
* Created by vapillon on 13/04/16.
*/
public class ShortcutRen... | 33.067797 | 101 | 0.646848 |
afcc1687293c7baf95fb65382b0d10f07e4dcade | 223 | package com.xp.basics.inter_face;
/**
* Test1.java 测试1
*
* @author: zhaoxiaoping
* @date: 2019/08/06
**/
public class Test1 implements TestInterface {
@Override
public String getName() {
return "test1";
}
} | 14.866667 | 45 | 0.659193 |
2d1905f719dd92db709e6860bada9996c81a33b4 | 2,317 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package dev.random.discord.bot;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.entities.Activity;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.MessageChannel;
... | 35.646154 | 109 | 0.615019 |
6ca40aa39a61980125e33362b377696c1509ce4c | 488 | package telnetthespire.commands.parsers;
import telnetthespire.commands.Command;
import telnetthespire.commands.annotations.Name;
import telnetthespire.commands.handlers.State;
import java.util.Vector;
@Name("state")
public class StateParser extends CommandParser {
public StateParser() {
}
@Override
... | 19.52 | 52 | 0.717213 |
70698e436bf9289d57a989765b626ba2f71541ba | 756 | package h6getallen;
import java.applet.Applet;
import java.awt.*;
/**
* Created by Mike on 9/18/2016.
*
*/
public class PraktijkOpdrH6Getallen extends Applet {
private double combineerd;
private double verdeeld;
public void init() {
double cijfer1 = 5.9;
double cijfer2 = 6.3;
... | 19.384615 | 75 | 0.607143 |
00fa073f838ba07f7df721689f8b5efbdd6a2229 | 2,689 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 36.835616 | 104 | 0.722945 |
622d77948c8c99ba49d72e2cfe86be229a4d42a6 | 519 |
private static int[] insertSort(int[] seq, boolean isASC) {
int[] tmp_seq = new int[seq.length];
System.arraycopy(seq, 0, tmp_seq, 0, seq.length);
for (int i = 1; i < tmp_seq.length; i++) {
int tmp = tmp_seq[i];
int j = i - 1;
while (j >= 0 && (isASC?... | 32.4375 | 80 | 0.433526 |
ad5adcf1082117c7b84dbc3487e77e24e281c3d4 | 3,651 | package com.airbnb.reair.db;
import com.airbnb.reair.common.Container;
import com.airbnb.reair.utils.RetryableTask;
import com.airbnb.reair.utils.RetryingTaskRunner;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.sql.Connection;
import java.sql.PreparedStatement;
imp... | 29.92623 | 100 | 0.672966 |
96d5b653a9754b367630f656a688f5d1bad9fbce | 914 | package org.roaringbitmap.buffer;
import java.nio.LongBuffer;
import org.junit.Test;
import org.roaringbitmap.BitmapContainer;
public class TestMappeableBitmapContainer {
@Test(expected = IndexOutOfBoundsException.class)
public void testPreviousTooSmall() {
emptyContainer().prevSetBit(-1);
}
... | 28.5625 | 71 | 0.719912 |
a9ab308fc304881d85bedb8b6711b0052b63dc8f | 542 | package com.rollbar.reactivestreams.notifier.sender.http;
import java.util.Map;
import java.util.Set;
/**
* Data for an asynchronous, non-blocking HTTP request.
*/
public interface AsyncHttpRequest {
String getUrl();
Iterable<Map.Entry<String, String>> getHeaders();
String getBody();
class Builder {
... | 23.565217 | 92 | 0.671587 |
58651c943a352258014e578d2d5dbaeb55324c80 | 8,174 | package de.metas.handlingunits.attribute.impl;
import java.math.BigDecimal;
import java.util.Collection;
/*
* #%L
* de.metas.handlingunits.base
* %%
* Copyright (C) 2015 metas GmbH
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License... | 38.375587 | 171 | 0.797651 |
6598b4d7c2bbed4bdcf1660fb25bbcb52029aff7 | 794 | package uk.gov.dft.bluebadge.webapp.la.controller.utils;
import java.io.Serializable;
import java.util.Comparator;
import java.util.List;
import org.apache.commons.lang3.math.NumberUtils;
import uk.gov.dft.bluebadge.common.api.model.ErrorErrors;
public class ErrorComparator implements Comparator<ErrorErrors>, Seriali... | 27.37931 | 79 | 0.768262 |
f171d62a0bacc712861ae2721a52b2caf5587982 | 617 | /*
* Copyright 2019-2020 VMware, Inc.
* SPDX-License-Identifier: BSD-2-Clause
*
*/
package samples.vm.model;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Getter;
import lombok.Setter;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = J... | 22.851852 | 102 | 0.740681 |
9372ae1c4bc1f3f23fb17f174877a17ba7081c69 | 94 | package js.util.iterable;
public interface StringIterableIterable extends StringIterable {
}
| 18.8 | 64 | 0.840426 |
089781ec907e212030cc664861f3741abad8e1f2 | 10,780 | /*
* Copyright (c) 2020 DLR Institute of Transport Research
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package de.dlr.ivf.tapas.tools;
import de.dlr.ivf.tapas.persistence.db.TPS_DB_IO;
import de.dlr.ivf.... | 45.677966 | 158 | 0.616976 |
2e1a9bd8436c03042b7f292be5509ff2be73fd25 | 1,858 | /*
* Copyright (c) 2014-2018 North Concepts 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 applicab... | 33.178571 | 91 | 0.695371 |
a0640b7c978badad616b4a90d740145916a4577f | 4,266 | package com.zhiyi.ukafu.activitys;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import android.webkit.Coo... | 38.432432 | 120 | 0.661978 |
64fd3b31bb69e2b0a5685aa69696537efaaf7503 | 1,767 | package com.interphone.bean;
import android.text.TextUtils;
import java.text.NumberFormat;
import lombok.Data;
/**
* Created by Administrator on 2016/5/13.
*/
@Data
public class ProtertyData {
/**
* 30s-180s
*/
private int totTime;
/**
* 0-5
* 0:OFF , 1 2 3 4 5
*/
private ... | 18.6 | 69 | 0.567629 |
46c455212ce9706be73133aa3e6dd72b00cfb374 | 3,449 | package ru.yoomoney.tech.dbqueue.settings;
import org.junit.Test;
import javax.annotation.Nonnull;
import java.util.Objects;
import java.util.Optional;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.BiFunction;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.C... | 34.148515 | 101 | 0.656712 |
e035029c4b254c6589ea3cb59abdcdec38d9fc06 | 6,360 | package ca.carleton.gcrc.json;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import nunaliit.org.json.JSONArray;
import nunaliit.org.json.JSONException;
import nunaliit.org.json.JSONObject;
import nunaliit.org.json.JSONString;
public cla... | 26.065574 | 85 | 0.577201 |
99681482c27aad6e320e59bfb18e145b4affdb15 | 2,651 | package pl.smsapi.test.run;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import pl.smsapi.api.MmsFactory;
import pl.smsapi.api.action.mms.MMSDelete;
import pl.smsapi.api.action.mms.MMSGet;
import pl.smsapi.api.action.mms.MMSSend;
import pl.smsapi.api.response.CountableResponse;
import pl.sm... | 27.614583 | 284 | 0.592607 |
d1c473b974b4df7e895c6042c7cd07c7ad48b482 | 163 | package emailvalidator4j.parser.exception;
public class InvalidEmail extends Exception{
public InvalidEmail(String message) {
super(message);
}
}
| 20.375 | 44 | 0.736196 |
55c3f9560623777f7cd01222be3b695bd1146338 | 1,081 | package com.repomgr.repomanager.rest.model.common;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Response Object for common messages and a status, if action was successful (valid = true) or if action failed (valid = false)
*/
@JsonInclude(JsonInclud... | 24.568182 | 128 | 0.679926 |
67758316001219bb1a701ae3a46269c97b8a6828 | 3,466 | /*
* 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 ... | 38.511111 | 98 | 0.685805 |
3995e5ded2916b3ffe82a53f7005779830743cbc | 1,130 | package fr.firmy.lab.eternity2server.controller.dal;
import fr.firmy.lab.eternity2server.controller.exception.RegisteringFailedException;
import fr.firmy.lab.eternity2server.controller.exception.UnregisteringFailedException;
import fr.firmy.lab.eternity2server.model.Node;
import java.util.List;
public interface Work... | 38.965517 | 86 | 0.612389 |
c672a3142cb78e632b2d3ad226e45bd164c4e117 | 1,198 | package com.devops.thatguy.dao;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.devops.thatguy.model.BillingAddress;
@Reposito... | 29.219512 | 89 | 0.807179 |
b53301341b30a1e0596d3acc4394bd609a4ab548 | 196 | package com.cardillsports.fantasystats.fantasyv.model;
/**
* Created by vithushan on 1/23/17.
*/
public interface RequestTokenHandler {
void handleRequestToken(String authorizationUrl);
}
| 19.6 | 54 | 0.770408 |
42a7dc9c4e74431d10af535d726d3da2bc885a2b | 13,471 | /*
* Copyright (c) 2014, AXIA Studio (Tiziano Lattisi) - http://www.axiastudio.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above c... | 37.839888 | 132 | 0.572489 |
7fb8864d81ba2a504a0403c9f5b6a3f78c86e4d1 | 5,348 | package com.assistant.albert.studentassistant.schedule;
import android.graphics.Typeface;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | 39.614815 | 131 | 0.6408 |
4f8619219d707aeffdbf8da9cf4232d76b99f6ef | 234 | package com.world.cup.sticker.brick.worldcupstickerbrick.business.service.impl;
import com.world.cup.sticker.brick.worldcupstickerbrick.business.service.StickerService;
public class StickerServiceImpl implements StickerService {
}
| 29.25 | 88 | 0.854701 |
e07f203fa8dad9fe0ada8d0a02c7166764986dc5 | 376 | /*
* Brandon Russeau
* COSC 423
*/
package scheduler;
public class Work implements JobWorkable {
String name = "";
public Work() {
name = Thread.currentThread().getName();
}
@Override
public void doWork() {
// TODO Auto-generated method stub
// reference to current thread = Thread.currentThread();
Sy... | 17.090909 | 58 | 0.678191 |
6cbd15937203b236b1eddfab965538cd130f1894 | 17,561 | /**
* Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.datasource.sample;
import org.diirt.datasource.PVReader;
import org.diirt.datasource.PVReaderEvent;
import org.diirt.datasource.ChannelHandler;
import org.diir... | 45.377261 | 168 | 0.628837 |
d3e50d871905c92ffd8612750865dd376ff183ef | 1,112 | //Class for register/login
class Registration_Login {
//Variables to store different stuff
private String username;
private String password;
private String Name;
private String number;
//Constructor to initialise variables that are private
Registration_Login(String name, String username, St... | 22.693878 | 86 | 0.635791 |
1475af5d1201f5fbb34071e74a641fab04c0d3ea | 280 | package stepDefinition;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features = { "src/logout" }, glue = { "stepDefinition" })
public class TestRunner {
}
| 17.5 | 75 | 0.717857 |
1e453b00362cd1882dffd4f23c33ffa05189d472 | 4,919 | package org.intermine.web.struts;
/*
* Copyright (C) 2002-2022 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/lesser.h... | 40.991667 | 100 | 0.66294 |
6e6d97cf2da6c565bd6ec25ee0e1f66c7ee516f3 | 3,044 | /**
* Sachin Shah
* version 1
*/
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.File;
import java.util.Scanner;
import java.util.ArrayList;
import javax.imageio.ImageIO;
public class Condenser
{
private String folderName = "";
public static void main(S... | 19.895425 | 93 | 0.621879 |
1b9bab3c74e108c18a0a3415c3b496cd5c5fc557 | 2,900 | /* Copyright (C) 2004 - 2011 Versant Inc. http://www.db4o.com */
package com.db4o.internal.query.processor;
import com.db4o.foundation.*;
import com.db4o.internal.*;
import com.db4o.internal.classindex.*;
import com.db4o.internal.fieldindex.*;
/**
* @exclude
*/
public class QueryResultCandidates {
... | 25.892857 | 81 | 0.631034 |
352e9c21b48677fceac7251404864d19379d9d41 | 1,878 | package de.aaaaaaah.velcom.backend.restapi.jsonobjects;
import de.aaaaaaah.velcom.backend.data.commitcomparison.CommitComparison;
import de.aaaaaaah.velcom.backend.access.entities.Commit;
import java.util.Collection;
import java.util.Optional;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
/**... | 25.726027 | 82 | 0.764111 |
f81d37237b4aef41f265f027f38e2560c0857cf2 | 1,231 | package com.vzh.leetcode;
import java.util.ArrayList;
/*
* Problem: https://leetcode.com/problems/remove-colored-pieces-if-both-neighbors-are-the-same-color/
* Submission: https://leetcode.com/submissions/detail/572630347/
*/
public class P2038 {
class Solution {
public boolean winnerOfGame(String ... | 23.673077 | 102 | 0.470349 |
c9bae162fd96542dc72ab55dec4de189860359c2 | 8,307 | package com.google.widget.view;
import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.content.res.Configuration;
import android.support.design.widget.FloatingActionButton;
import android.view.View;
import android... | 29.045455 | 135 | 0.627182 |
9bd6f5d319f8d76959f225fadb81ccd4053efda5 | 670 | package rs.raf.projekat1.luka_petrovic_rn3318.ui.login.data;
import rs.raf.projekat1.luka_petrovic_rn3318.ui.login.data.model.LoggedInUser;
import java.io.IOException;
/**
* Class that handles authentication w/ login credentials and retrieves user information.
*/
public class LoginDataSource {
public Result<L... | 30.454545 | 89 | 0.674627 |
8087cc7d03dc9e5d729b6955bf4ba3ecdbce1e16 | 1,804 | package com.g2forge.alexandria.java.io.dataaccess;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.nio.channels.Channel;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.nio.file.Path;
import c... | 26.529412 | 118 | 0.755543 |
9dc8e9bac5eb133604f63fa50a3c924ec3ce9858 | 5,734 | /*
* Copyright (c) 2020 HRZN LTD
*
* 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... | 53.588785 | 201 | 0.69428 |
099157fff240aa3d2c8e537637c3f313dac9e1ef | 13,010 | package net.sharplab.springframework.security.webauthn.sample.domain.component;
import net.sharplab.springframework.security.webauthn.sample.domain.config.ModelMapperConfig;
import net.sharplab.springframework.security.webauthn.sample.domain.entity.AuthorityEntity;
import net.sharplab.springframework.security.webauth... | 31.425121 | 116 | 0.695004 |
f172fb9e5812de5784925e2ff769779bb2555c8f | 171 | package io.adenium.exceptions;
public class EmptyProgramCounterException extends PapayaException {
public EmptyProgramCounterException() {
super("");
}
}
| 21.375 | 67 | 0.736842 |
18f9908d60e4bcaea2104900d09d41bfa594f2cc | 1,511 | package theFishing.cards;
import basemod.ReflectionHacks;
import com.badlogic.gdx.graphics.Color;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
... | 35.139535 | 98 | 0.724686 |
2a832dcf4950e224b7dbc6b5921a9f8a3b52abd0 | 10,796 | package dominatingset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import graph.Graph;
import graph.GraphVertex;
import util.RandSet;
import graph.CapGraph;
// @a... | 34.602564 | 136 | 0.727399 |
24cd68b3c24e4118b8f513e6fa8cd5298c9c7c1f | 2,037 | package org.rxjava.service.reward.entity;
import lombok.Data;
import org.rxjava.service.reward.status.RewardEventStatus;
import org.rxjava.service.reward.type.RewardEventType;
import org.rxjava.service.reward.type.RewardType;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annot... | 20.785714 | 66 | 0.637703 |
23c961880d6d506aced6f244626cdde1c3466048 | 1,824 | package com.yonyou.etl.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimen... | 21.714286 | 58 | 0.615132 |
dc723a33f31bfa0d0e2fbcbb7572124d8c23d627 | 262 | package com.kent.gumiho.sql.basic.ast.expr;
import com.kent.gumiho.sql.basic.visitor.SQLVisitor;
/**
* @author kongtong.ouyang on 2018/2/8.
*/
public class SQLOrderByItemExpr {
// @Override
// protected void accept0(SQLVisitor visitor) {
//
// }
}
| 17.466667 | 52 | 0.69084 |
ba51e638ce14e693cfb8692c3f7d11b8593b1511 | 1,280 | package org.dimdev.dimdoors.world.pocket.type;
import com.mojang.serialization.Codec;
import net.minecraft.util.DyeColor;
public enum PocketColor {
WHITE(0, DyeColor.WHITE),
ORANGE(1, DyeColor.ORANGE),
MAGENTA(2, DyeColor.MAGENTA),
LIGHT_BLUE(3, DyeColor.LIGHT_BLUE),
YELLOW(4, DyeColor.YELLOW),
LIME(5, DyeColor... | 20.31746 | 96 | 0.691406 |
ce2af127ca09efcf41681c820da982cc9e305ccc | 492 | public class FrenchKeyboard extends Keyboard {
private static final String[] french=new String[] {
" 0",
".1",
"abc\u00E0\u00E2\u00E6\u00E72",
"def\u00E9\u00E8\u00EA\u00EB3",
"ghi\u00EE\u00EF4",
"jkl5",
"mno\u00F4\u0153\u00F16",
"pqrs7",
... | 23.428571 | 55 | 0.479675 |
4c3055f09ea7ef08a5f73f27fff3ae223914eeb0 | 4,703 | /*
* Copyright 2005 JBoss 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 to i... | 32.434483 | 88 | 0.619817 |
34e6710c706c149b79a69d14461cd2fe86ba3c84 | 1,447 | /**
*
*/
package backtracking;
/**
* @author PRATAP LeetCode 1255
*
*/
public class MaximumScoreWordsFormedByLetters {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String[] words = { "dog", "cat", "dad", "good" };
char[] letters = { 'a', 'a', 'c', ... | 24.948276 | 97 | 0.555632 |
c22d8c1c335da5d88a5222532c9c33aab0572522 | 1,169 | package model.VO;
public class UserInfoVO {
private int usercode;
private String userid;
private String userpw;
private String username;
private int userphone;
private String useremail;
public int getUsercode() {
return usercode;
}
public void setUsercode(int usercode) {
this.usercode = usercode;
}
pu... | 21.254545 | 112 | 0.695466 |
2cb193ec9fc9ab0ab918121c4959a2874251720c | 3,382 | /*
* 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 ... | 30.196429 | 94 | 0.73152 |
49dde40c164d702fb910fe4c0233ad6650e0f2fd | 334 | package com.google.android.gms.internal.auth;
import android.os.IInterface;
import android.os.RemoteException;
import com.google.android.gms.auth.api.proxy.ProxyResponse;
public interface zzal extends IInterface {
void zza(ProxyResponse proxyResponse) throws RemoteException;
void zzb(String str) throws Remot... | 27.833333 | 65 | 0.808383 |
123e503fe4e5f1aace9a5dbc14ffa2eab136b33d | 663 | package com.code10.security.model;
import org.kie.api.definition.type.Expires;
import org.kie.api.definition.type.Role;
/**
* Added to the running kie session every time a new {@link LogItem} is created.
* Used only by the rule engine, so that old events are automatically retracted from the session.
*/
@Role(Role.... | 21.387097 | 97 | 0.678733 |
4e9ba248484f54061f24f893ed430604ac9f3d37 | 895 | package day06;
import java.util.*;
public class HomeWork {
public static void main(String[] args) {
// {{1},{2,2},{3,4,5}};
int[][]scores = new int[3][5];
Scanner in = new Scanner(System.in);
//给每个班的每个学生赋值
for(int i = 0;i<scores.length;i++){
//统计每个班总分
double sum = 0;
System.out.println("=====请输入第... | 22.375 | 66 | 0.532961 |
1a2633cf7ec161d9a760719021fb1fee0b3a5f93 | 6,782 | // __________________________________
// ______| Copyright 2008-2015 |______
// \ | Breakpoint Pty Limited | /
// \ | http://www.breakpoint.com.au | /
// / |__________________________________|... | 32.449761 | 105 | 0.567532 |
36a768f1f2c59220a644e4e2020a760f3394eaed | 1,034 | /*
*/
package com.infinityraider.agricraft.api.v1.adapter;
import java.util.Optional;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Interface for determining the true value of certain objects.
*
* @param <T> The type adapted by this adapter.
*/
public interface IAgriAdapter<T> {
/... | 27.210526 | 99 | 0.675048 |
0346c635f4abef6f46d1c49714b02c93093adc03 | 269 | package main.server.connection.request.base;
public enum RequestType {
Add,
Auth,
Contact,
Message,
Register,
ContactList,
Empty,
AuthSuccess,
AuthFailed,
RegistationSuccess,
RegistationFailed,
InvalidMessage,
InvalidRequest,
AddSuccess,
AddFailed
}
| 13.45 | 44 | 0.769517 |
edfdbbf4776a63edb02b163280362137199c6494 | 69 | public abstract class Test {
Runnable r = new TestSubclass() {};
} | 23 | 38 | 0.681159 |
8d6bf57e3ef4401046dcdc6d55149e5216107cd7 | 874 | package org.cyclops.commoncapabilities.modcompat.ic2.capability.work;
import ic2.api.item.ElectricItem;
import ic2.core.block.machine.tileentity.TileEntityAdvMiner;
import ic2.core.item.tool.ItemScanner;
import ic2.core.util.StackUtil;
/**
* Worker capability for {@link TileEntityAdvMiner}.
* @author rubensworks
*... | 32.37037 | 91 | 0.679634 |
3b3f097bfa7041a5e450fa35f67a5433d6263da1 | 8,062 | /*
* (C) Copyright 2017 Nuxeo (http://nuxeo.com/) and others.
*
* 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 b... | 39.135922 | 119 | 0.624907 |
33e4e1b0f09ad4fd014aa208cf378c29cb8ea755 | 12,757 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | 44.919014 | 152 | 0.717959 |
319819df27fb039997f7ebee40fe7e24a819cb7a | 14,955 | package fr.jrds.smiextensions.objects;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.time.Duration;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.snmp4j.asn1.BER;
import org.snmp4j.asn1.BERInputStream;
import org.snmp4j.smi.Integer32;
import org.snmp4j.smi.IpAddress;... | 33.606742 | 171 | 0.552123 |
935ec80cd116aa53ad67d8f634ead2fd4354e710 | 2,395 | package uk.gov.dvla.oepp.domain.payment;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.MoreObjects;
/**
* Represents an initiate offence payment response.
* The nested {@link Builder} should be used to create this class.
* <... | 29.207317 | 101 | 0.639666 |
05d63828d5e7dda7b0529c19d3dd008c5db9757b | 2,775 | package allbegray.slack.type;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Group {
protected String id;
protected String name;
protected String is_group;
protected Long created;
protecte... | 19.821429 | 180 | 0.708468 |
d9f6faea55bfb2c36fa7cdb7c13a94d3dc4c8901 | 654 | package permutation;
/**
* A(A也是他的编号)是一个孤傲的人,在一个n个人(其中编号依次为1到n)的队列中,
* 他于其中的标号为b和标号c的人都有矛盾,所以他不会和他们站在相邻的位置。 现在问你满足A的要求的对列有多少种?
*
* 给定人数n和三个人的标号A,b和c,请返回所求答案,保证人数小于等于11且大于等于3。
*
* @author dell
*
*/
public class LonelyA {
// N个人全排列总数为n!,其中a与b相邻总数为(将ab和ba看做一个人)=(n-1)*2!
// 其中a与c相邻的总数为(将ac和ca看做一个人)= (n-1)*2!
... | 19.818182 | 58 | 0.591743 |
9654334e4dbae3ae9b4b419c0e205179485c0e2a | 40,401 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.mky.image;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;... | 41.650515 | 176 | 0.584515 |
89e676b0b01413160e7bd0f229a0254890d37241 | 350 | package org.jetlinks.community.gateway.external.socket;
import lombok.Getter;
import lombok.Setter;
import java.util.Map;
@Getter
@Setter
public class MessagingRequest {
private String id;
private Type type;
private String topic;
private Map<String,Object> parameter;
public enum Type{
... | 14 | 55 | 0.708571 |
09706e7d367515e748da58e02a2ca2b6d1cb7276 | 818 | package com.ttulka.ecommerce.portal;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.web.server.LocalServerPort;
import static io.restassured.RestAssured.with;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
c... | 24.787879 | 75 | 0.610024 |
e95baeeee583a0c164df8c2bb6d883cdee17c0f4 | 134 | package com.ustc.ruoan.framework.cache.autoconfigure;
/**
* @author ruoan
* @date 2022/5/4 4:12 下午
*/
public class HelloWorld {
}
| 14.888889 | 53 | 0.69403 |
c671764bfcd51dddfb18305af9efebed82d0b0c4 | 469 | package com.pigmo.gbms.enums;
public enum ResultStatusEnum {
SUCCESS("10000","成功"),
NOT_FOUND("10001","未找到"),
FAILED("10002","失败"),
UNKNOWN("10003","未知");
private String code;
private String message;
ResultStatusEnum(String code, String message) {
this.code = code;
this.... | 18.038462 | 51 | 0.592751 |
b163b5e204ae3490c7d72b3a372fa14291bb5960 | 103 | package rbl.serial;
/**
* Created by Peter Mösenthin.
*/
public class ModuleSessionStateHandler
{
}
| 11.444444 | 38 | 0.728155 |
2b00ea72e832b9d27be4e1e8e2eabf3df8f28333 | 942 | package edu.stuy.starlorn.upgrades;
import edu.stuy.starlorn.sound.AudioPlayer;
public class FocusShotUpgrade extends GunUpgrade {
private int _shotNum;
public FocusShotUpgrade() {
super();
_name = "Crazy Piss";
_description = "Now you can't piss straight!";
_shotNum = 0;
try {
_... | 20.478261 | 62 | 0.642251 |
d07d2588dafe4c53dd70b6e290b781bafeec4bec | 585 | package core;
import java.awt.*;
import entity.Rect;
public class CollisionBox {
private Rect bounds;
public CollisionBox(Rect bounds) {
this.bounds = bounds;
}
public boolean collidesWith(CollisionBox other) {
return bounds.overlaps(other.getBounds());
}
public Rect getBo... | 17.205882 | 62 | 0.622222 |
398d79ae84404e0c80cd977cdfe4788fdcdc2fbe | 3,587 | package net.sourceforge.retroweaver.runtime.java.util;
import java.util.Locale;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
import java.io.IOException;
public class Formatter {
public Formatter() { this(new StringBuilder(), Locale.getDefault()); }
public Formatt... | 23.141935 | 124 | 0.587957 |
bbdbeb216b43fce6378f7ec45c34e27006210ffc | 2,361 | package de.uni_hildesheim.sse.functions;
import java.text.DecimalFormat;
/**
* Defines an {@link IFunction} which stores the avg of a given attribute.
*
* @author Stephan Dederichs
*
* @since 1.00
* @version 1.00
*/
public class AvgFunction implements IFunction {
/**
* Stores the {@l... | 21.27027 | 80 | 0.531131 |
20835823e4618282cb84471ee924f3e10f68bc5c | 1,105 | package com.chaoppo.db.storm.test.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class HashcodeTester {
/**
* Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode
* method must consist... | 34.53125 | 119 | 0.640724 |
5e00de1d015917013459cc5448e5c2976d4208cf | 4,067 | /*
* Copyright (c) 2016, WSO2 Inc. (http://wso2.com) All Rights Reserved.
* <p>
* 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
* <p>
* http://www.apache.or... | 38.009346 | 115 | 0.71822 |
84b291e20152720708c5832232174e1be1dce068 | 17,038 | package io.advantageous.qbit.meta.builder;
import io.advantageous.boon.core.TypeType;
import io.advantageous.boon.core.reflection.MethodAccess;
import io.advantageous.qbit.http.request.HttpBinaryResponse;
import io.advantageous.qbit.http.request.HttpTextResponse;
import io.advantageous.qbit.jsend.JSendResponse;
impor... | 37.03913 | 123 | 0.624663 |
67058587a7572fbbf57f0198388378e4634640fe | 2,449 | /*
* Copyright 2018 Tallence 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 ... | 34.013889 | 155 | 0.761944 |
4398a5c847f37ab19b2016883356d466e69391ab | 1,532 | package br.com.ibnetwork.guara.app.modules;
import br.com.ibnetwork.guara.bean.BeanUtils;
import br.com.ibnetwork.guara.metadata.BeanInfo;
import xingu.container.Inject;
import xingu.factory.Factory;
import xingu.store.PersistentBean;
import xingu.validator.ValidatorContext;
public class Result
{
@Inject
private Fa... | 16.473118 | 115 | 0.686031 |
d2a6e0215429ecd96ab90ec21ceab848159a3d64 | 1,101 | /** Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.game.twoplayer.tictactoe;
import com.barrybecker4.game.common.player.PlayerList;
import com.barrybecker4.game.twoplayer.gomoku.GoMokuSearchable;
import com.barrybecker4.game.twop... | 26.853659 | 115 | 0.718438 |
45bb68621b421dcbf495ff0a9a4d69adffe3c42a | 1,317 | package io.opentelemetry.auto.instrumentation.trace_annotation;
import static io.opentelemetry.auto.instrumentation.trace_annotation.TraceDecorator.DECORATE;
import static io.opentelemetry.auto.instrumentation.trace_annotation.TraceDecorator.TRACER;
import io.opentelemetry.auto.instrumentation.api.MoreTags;
import io... | 39.909091 | 98 | 0.791192 |
2ab5fec8c5cced4be417d459b493189a6527fdbb | 3,198 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.fxb.jeesite.modules.oa.service;
import com.fxb.jeesite.common.persistence.Page;
import com.fxb.jeesite.common.service.CrudService;
import com.fxb.jeesite.modules.oa.dao.UserInfoDao;
import c... | 29.88785 | 108 | 0.578799 |
89c12511731d5c80c88bf24a7a4c0482396cbac4 | 1,902 | package de.bitnoise.sonferenz.service.v2.services.impl;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Matchers.anyBoolean;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.mockito.internal.verif... | 26.416667 | 78 | 0.760778 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.