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 |
|---|---|---|---|---|---|
3536ab76c9f19a0ae0ed25dd2d40609a070965eb | 2,521 | /*
* Copyright 2012 Vaadin Ltd.
*
* 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 a... | 31.5125 | 81 | 0.699326 |
bfaa2ebaa1b11c0f63a6ef47fcc180e691746081 | 2,458 | /*
* MIT License
*
* Copyright (c) 2019-2020 PiggyPiglet
*
* 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,... | 30.345679 | 81 | 0.683483 |
7fd77fc548461b1553b0bce0f01f53aad7136ebc | 3,360 | /*
* MIT License
*
* Copyright (C) 2013 - 2017 Philipp Nowak (https://github.com/xxyy) and contributors.
*
* 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, includin... | 37.333333 | 111 | 0.697321 |
1fe8f43fcf573eeb46599d68caa4ba0ee5fa5ed6 | 2,238 | package com.likc.data.sort;
/**
* @author likc
* @date 2022/3/23
* @description
*/
public class Sort {
/**
* 使用递归的二分查找
*title:recursionBinarySearch
*@param ints 升序数组
*@param key 待查找关键字
*@return 找到的位置
*/
int binarySearch(int[] ints, int key, in... | 26.963855 | 67 | 0.371314 |
26f6197ef8d2522948559f14bda8592c220dee54 | 1,440 | package victus.table;
import pl.zankowski.iextrading4j.api.stocks.Quote;
import pl.zankowski.iextrading4j.client.rest.request.stocks.QuoteRequestBuilder;
import victus.IEX;
import victus.StockQuote;
import java.util.ArrayList;
import java.util.List;
public class Symbol implements Runnable{
private sta... | 32.727273 | 121 | 0.629861 |
e455648d46e92c5a1865b2370c01aa126710ac77 | 1,486 | package pt.up.hs.linguini.analysis.cooccurrence;
import java.util.Objects;
/**
* Representation of a word-word co-occurrence.
*
* @author José Carlos Paiva <code>josepaiva94@gmail.com</code>
*/
public class CoOccurrence {
private String firstWord;
private String secondWord;
private double value;
... | 22.861538 | 76 | 0.629206 |
aece99253e3b7200abcd37a7473a55c0c53d9855 | 84 | package observer;
public interface Observer {
void update(float temprature);
}
| 14 | 34 | 0.75 |
bc9a4da22c991c26eff6a807706e67733146b3e9 | 1,141 | package org.kin.scheduler.core.worker.transport;
import org.kin.kinrpc.message.core.RpcEndpointRef;
import org.kin.scheduler.core.worker.domain.WorkerInfo;
import java.io.Serializable;
/**
* 通知master注册worker消息
*
* @author huangjianqin
* @date 2020-02-07
*/
public class RegisterWorker implements Serializable {
... | 25.355556 | 86 | 0.701139 |
66e0cf0b1a98de39f80bcb013941c2a05718e5a5 | 648 | package quiz;
/**
* @author yuyunlong
* @date 2021/6/14 1:19 下午
* @description 微观博弈笔试题
*/
public class WeiGBY01 {
/**
* 旋转字符串
* @param A string字符串
* @param B string字符串
* @return bool布尔型
*/
public boolean solve (String A, String B) {
// write code here
for (int i = 0... | 19.636364 | 47 | 0.487654 |
b78366906f052db36bc41c33d802397cbaa49568 | 11,203 | /*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | 25.346154 | 115 | 0.607337 |
0e69dd6eb8c1898ff70ae855fd4d8314ab522f08 | 197 | package databook.listener;
import databook.persistence.rule.rdf.ruleset.Messages;
public interface Indexer {
void messages(Messages m) throws Exception;
void setScheduler(Scheduler s);
}
| 16.416667 | 54 | 0.781726 |
ed329f3f5659673755fccf043f7bd295786eaaa6 | 28,974 | /*
* Copyright by Zoltán Cseresnyés, Ruman Gerst
*
* Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge
* https://www.leibniz-hki.de/en/applied-systems-biology.html
* HKI-Center for Systems Biology of Infection
* Leibniz Institute for Natural Product Research and Infection Biology - Hans Kn... | 59.740206 | 327 | 0.709912 |
544e3927e8e1f80dfb74f3828e87a4d480484ef2 | 305 | package com.sensiblemetrics.api.alpenidos.pattern.adapter8.model;
import java.math.BigDecimal;
/**
* Standard Account holder cannot have overdraft.
*/
public class StandardAccount extends AbstractAccount {
public StandardAccount(final BigDecimal balance) {
super(balance, false);
}
}
| 21.785714 | 65 | 0.75082 |
4646f58b8dc94b39212d0f10c8f8e523bbed6144 | 2,853 | package model;
import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* The persistent class for the bookingdetails database table.
*
*/
@Entity
@Table(name="bookingdetails")
@NamedQuery(name="Bookingdetail.findAll", query="SELECT bd FROM Bookingdetail bd... | 18.171975 | 82 | 0.750088 |
537e738fb48ff62efe5e2a63d8c87b6b0c522de0 | 639 | package Practise9;
/*
编写两个类,TriAngle和TriAnTest,其中Triangle类中声明私有的底边长base和高height,
同时声明公共方法访问私有变量,此外,提供类必要的构造器。
另一个类中使用这些公共方法,计算三角形的面积
*/
public class TriAngleTest {
public static void main(String[] args) {
TriAngle t1=new TriAngle();
t1.setBase(2.0);
t1.setHeight(2.4);
//不能用t1.base=2.0;t1.he... | 35.5 | 128 | 0.636933 |
2f6df0c5e2493cbbb95ce6adc80d54c8816b6384 | 974 | package com.github.dockerjava.api.model;
import static org.testng.Assert.assertEquals;
import org.testng.annotations.Test;
public class LinkTest {
@Test
public void parse() {
Link link = Link.parse("name:alias");
assertEquals(link.getName(), "name");
assertEquals(link.getAlias(), "alias");
}
@Test
publ... | 23.756098 | 69 | 0.723819 |
09dc2d6bc99a9a76c29233ecb57be94b325661bb | 3,180 | package org.odk.share.services;
import com.evernote.android.job.Job;
import com.evernote.android.job.JobManager;
import com.evernote.android.job.JobRequest;
import com.evernote.android.job.util.support.PersistableBundleCompat;
import org.odk.share.events.UploadEvent;
import org.odk.share.rx.RxEventBus;
import org.odk... | 31.176471 | 90 | 0.57673 |
e8b319e104369a173b74fe361f3c685ebb050e75 | 538 | package cn.kiway.mp.ui.fragment;
import android.widget.BaseAdapter;
import java.util.List;
import cn.kiway.mp.adapter.SubjectListAdapter;
import cn.kiway.mp.bean.SubjectBean;
public class SubjectFragment extends BaseLoadMoreListFragment {
private List<SubjectBean> mSubjects;
@Override
protected void s... | 18.551724 | 63 | 0.726766 |
dc2538acafbf1d7eb5bf89119a74af45dd8a74e2 | 559 | package uk.co.ribot.androidboilerplate.injection.module;
import dagger.Module;
import dagger.Provides;
import uk.co.ribot.androidboilerplate.data.local.PreferencesHelper;
/**
* Created by mike on 2017/9/28.
*/
@Module
public class PreferenceModule {
private PreferencesHelper mPreferencesHelper;
... | 23.291667 | 68 | 0.728086 |
0731c1d097b9a1ceea8a56657804d0dafa34bfd9 | 424 | package org.springframework.security.oauth2.server.authorization.mongodb;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Created on: 9/13/21.
*
* @author Bjorn Harvold Responsibility:
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class OAuth2ClientSettings {
... | 22.315789 | 73 | 0.792453 |
2e702441e0e4fdc0c96f456fb955219d80d10ca5 | 1,586 | package com.intita.forum.config;
import org.springframework.boot.autoconfigure.web.ResourceProperties;
import org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.EnableWebMvcConfiguration;
import org.springframework.boot.autoconfigure.web.WebMvcProperties;
import org.springframework.boot.context.propert... | 44.055556 | 100 | 0.825977 |
5433946065e0f8b55b4c254eeb38f3d7dd97a6f3 | 62 | package com.lns.tinydbms.parser;
public class Expression {
}
| 12.4 | 32 | 0.774194 |
66ffc73425f354e4edddd34670f1ef2c124a9be6 | 636 | package com.github.tobiasmiosczka.discordstats.persistence.repositories;
import com.github.tobiasmiosczka.discordstats.persistence.model.DiscordGuild;
import com.github.tobiasmiosczka.discordstats.persistence.model.DiscordUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.da... | 42.4 | 111 | 0.833333 |
74ae09bf1b784841474c6763e849b5100ea17112 | 247 | package com.example.demo.service;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Service;
@Service
public interface CourseService {
JSONObject course(String id);
JSONObject coursesearch(String stuId);
}
| 17.642857 | 46 | 0.789474 |
17423b0db775cf36e763706d1274f3b532daf978 | 10,424 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/google/protobuf/nested_extension_lite.proto
package protobuf_unittest;
public final class NestedExtensionLite {
private NestedExtensionLite() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite regi... | 41.03937 | 139 | 0.717959 |
88363df42b11ce960968622be040540e9b940ab9 | 457 | package net.minestom.server.command.builder.parser;
import net.minestom.server.command.builder.CommandSyntax;
import net.minestom.server.command.builder.arguments.Argument;
import java.util.Map;
/**
* Holds the data of a validated syntax.
*/
public record ValidSyntaxHolder(String commandString,
... | 28.5625 | 98 | 0.691466 |
e5ef3590481adceabee19918681a2a8e7779408f | 3,865 | package org.openstreetmap.atlas.tags.annotations.extraction;
import java.util.Optional;
import org.openstreetmap.atlas.tags.annotations.Tag;
import org.openstreetmap.atlas.tags.annotations.validation.LengthValidator;
import org.openstreetmap.atlas.utilities.collections.StringList;
import org.openstreetmap.atlas.utili... | 42.944444 | 100 | 0.602587 |
80dfe650e2dbf83d06facfd119d900c12555b01f | 2,954 | package com.example.activiti.demo.config;
import lombok.extern.slf4j.Slf4j;
import org.activiti.engine.*;
import org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration;
import org.activiti.engine.repository.DeploymentBuilder;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework... | 33.191011 | 129 | 0.739675 |
1ec8cce00ad156474acc1838da021c57a6b90676 | 1,523 | package org.tdl.vireo.export;
import java.io.File;
import java.io.IOException;
import java.util.zip.ZipOutputStream;
import org.tdl.vireo.search.SearchFilter;
/**
* Export service. This service's purpose is to contain all the nitty details of
* generating an export. The client is only responsible for reading the
... | 32.404255 | 80 | 0.721602 |
08cc1b603d169f17d3051410df9cfe402540da7a | 478 | package com.milos.config;
import com.milos.domain.util.Validator;
public class ServerIp {
private String value;
public ServerIp(String value) {
if (!Validator.validIP(value)) {
throw new IllegalArgumentException("The given value '" + value + "' is not a valid IP");
}
this.... | 19.12 | 100 | 0.598326 |
d41525e3885f9ecda5aa35cccee4034020334a2f | 1,844 | package remonsinnema.blog.scmlog.html;
import java.io.PrintWriter;
import java.io.Writer;
import remonsinnema.blog.scmlog.log.ChangeHunk;
import remonsinnema.blog.scmlog.log.Line;
public class ToHtml {
private static final String SPACE = " ";
private static final String GREEN = "eaffea";
private static ... | 28.369231 | 107 | 0.667028 |
d820d3a4ca5eba53c213fb858789f2a85016b5e6 | 1,011 | package com.cyfxr.basicdata.service;
import com.cyfxr.basicdata.domain.DIC_ZD;
import com.cyfxr.basicdata.domain.DIC_ZMK;
import java.util.List;
public interface BasicDataService {
public List<DIC_ZMK> getZmk(String dbm);
public DIC_ZMK getZmkById(String id);
public int addZm(DIC_ZMK zmk);
... | 20.22 | 56 | 0.636993 |
457f1b53e55671086205acd08d3571f66a3e309d | 2,714 | package com.mango.jtt.springSecurity;
import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 29.5 | 101 | 0.795505 |
62a934d8a0b039be4e5649d32bc15c76c014438e | 9,399 | /**
* Copyright (c) 2016, Oliver Kleine, Institute of Telematics, University of Luebeck
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* - Redistributions of source messageCode must reta... | 39.826271 | 125 | 0.681881 |
d67e4af7dda3410d21e1151fde8454b5826142e2 | 1,336 | package com.uwork.happymoment.mvp.social.chat.model;
import android.content.Context;
import com.uwork.happymoment.BuildConfig;
import com.uwork.happymoment.api.ApiService;
import com.uwork.happymoment.mvp.social.chat.bean.NewFriendResponseBean;
import com.uwork.happymoment.mvp.social.chat.contract.IGetNewFriendContra... | 36.108108 | 102 | 0.767216 |
d6b43bca9db696edca10460f37aa3681446fbbdf | 300 | package com.tokenplay.ue4.www.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CurrencyResponse extends JSONResponse {
@JsonProperty("Currency")
final double currency;
}
| 21.428571 | 53 | 0.796667 |
41abe8ce0a66067943e45f548ce20dd13dda537c | 346 | package me.irfen.algorithm.ch08;
public class ArraySortTest {
public static void main(String[] args) {
int[] array1 = {1, -2, -4, 5, 9, -3, -8, 6};
int[] array2 = {1, -2, -4, 5, 9, -3, -8, 6};
int[] array3 = {1, -2, -4, 5, 9, -3, -8, 6};
ArraySort.sort1(array1);
ArraySort.sort2(array2);
ArraySo... | 24.714286 | 47 | 0.554913 |
9bd983d6a0d685c171152abd71cb7128b5716abd | 517 | package org.jcodings.specific;
import static org.junit.Assert.assertEquals;
import org.jcodings.specific.EmacsMuleEncoding;
import org.junit.Test;
public class TestEmacsMule {
@Test
public void testRightAdjustCharHeadAscii() {
byte[] str = new byte[]{(byte)'a', (byte)'b', (byte)'c', (byte)',', (byte)'... | 32.3125 | 109 | 0.667311 |
bf37d2f19042275d384cbf8265de25419b4b96b3 | 243 | package com.lee.demo.service;
import com.lee.demo.entity.UserInfo;
/**
*
* @author min
*/
public interface UserInfoService {
/**
* findByUsername
* @param username
* @return
*/
UserInfo findByUsername(String username);
}
| 13.5 | 43 | 0.666667 |
360bb89da6c9d96583352604b28f6b94b4368952 | 2,155 | /**
*
* Copyright 2021 Modelware Solutions and CAE-LIST.
*
* 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.944444 | 75 | 0.683527 |
5b1e97ee350a6b12b31b5a031cbf0ab5aef0cd60 | 1,562 | /*
* 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 controle.academico.model;
import java.io.Serializable;
/**
*
* @author home
*/
public class Disciplina implem... | 21.694444 | 100 | 0.601793 |
6cf0e5a99ad59e6adddca7060c983d927085838c | 3,744 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.computesystemcontroller.impl;
import java.net.URI;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.emc.storageos.db.client.DbClient;
import com.emc.storageos.db.client.model.Action... | 39.829787 | 116 | 0.620994 |
71577339b6ba9375f8c145836e20027e6de8d36d | 4,268 | /*
* Copyright (c) 2011-2019, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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... | 31.382353 | 102 | 0.673149 |
36cf9903487c7658a2f4ab946748a0f60e2432f8 | 12,947 | /*
* Copyright (c) 2002-2012 Alibaba Group Holding Limited.
* 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/LICENS... | 35.568681 | 125 | 0.620066 |
4def4dc9ec66a8db82b6ad52367ef1e0dbae1ba5 | 1,182 | package Lesson6.FullBST;
import java.util.ArrayList;
import java.util.Random;
public class TestBST {
public static void main(String[] args) {
ArrayList<BST<Integer, Integer>> treeList = new ArrayList<>();
int treeCount = 100_000;
int notBalanced = 0;
for (int i = 1; i <= treeCoun... | 33.771429 | 147 | 0.563452 |
6dac9503d936ed2ea40f0e6f53f211a9484e258a | 8,283 | /*
* Copyright 2017 Confluent 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... | 29.476868 | 94 | 0.656767 |
ffa787011442c712c9d0d3ec0d149313424661ee | 16,367 | package com.noah.solutions.system.appcontroller;
import com.alibaba.fastjson.JSONObject;
import com.noah.solutions.common.BaseController;
import com.noah.solutions.common.JsonResult;
import com.noah.solutions.common.ProjectConfig;
import com.noah.solutions.common.exception.CodeAndMsg;
import com.noah.solutions.common.... | 43.298942 | 188 | 0.646484 |
237288e194270a14ecac98dc776d163471e6a41d | 1,944 | package ch.rasc.sbjooqflyway;
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpRequest.BodyPublishers;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.LocalDate;
imp... | 34.714286 | 89 | 0.701132 |
e770681b8a8b6c9345a1636dc4f6a3c18316f2da | 747 | package com.estafet.blockchain.demo.currency.converter.ms.service;
import com.estafet.blockchain.demo.currency.converter.ms.model.ExchangeRate;
import com.estafet.blockchain.demo.messages.lib.bank.BankPaymentBlockChainMessage;
import com.estafet.blockchain.demo.messages.lib.bank.BankPaymentCurrencyConverterMessage... | 31.125 | 102 | 0.828648 |
7c060ff8ac328cedbb31b015a65788cbd2026a52 | 8,999 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 43.684466 | 155 | 0.559618 |
4b76093e37524c0b325bcdfb48393d2156848d13 | 14,222 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 49.381944 | 100 | 0.535508 |
3b78fe206d272717a60e71c4763ff58c4ca22499 | 3,477 | package org.apache.jetspeed.services.jsp.tags;
/*
* Copyright 2000-2004 The Apache Software Foundation.
*
* 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.or... | 31.899083 | 110 | 0.631291 |
ea64403f3c78ccf8bec8dd73d44088a4c6f2ef5b | 9,699 | /*
* Copyright (C) 2016 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 app... | 37.886719 | 100 | 0.638623 |
3ee701dcf71727720b378aee46a07523735f537d | 149 | package com.estproject.core.dao;
import com.estproject.common.domain.UserVO;
public interface UserDao {
UserVO queryUserById(Long id);
}
| 16.555556 | 44 | 0.744966 |
f802ed412cff82c8ad3fd8979a0cdd0cb130b858 | 26,438 | package au.com.museumvictoria.fieldguide.vic.ui;
import java.io.DataInputStream;
import java.io.File;
import java.io.IOException;
import java.util.zip.CRC32;
import android.app.PendingIntent;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager.NameNotFound... | 36.821727 | 130 | 0.586466 |
8b9689b20e00a1b0f9f4f1d8b4deb589f8e2a3a5 | 470 | package com.floreysoft.jmte.token;
public abstract class AbstractToken implements Token {
protected final int line;
protected final int column;
public AbstractToken(int line, int column) {
this.line = line;
this.column = column;
}
public abstract String getText();
public int get... | 17.407407 | 55 | 0.653191 |
0cdc32198ceb014d9ede7b2b542cbadabbaf86f2 | 1,645 | package com.ruoyi.projectApproval.AppxNgReq.mapper;
import java.util.List;
import com.ruoyi.projectApproval.AppxNgReq.domain.AppxNgReq;
/**
* 事前审批Mapper接口
*
* @author Mu
* @date 2020-12-09
*/
public interface AppxNgReqMapper {
/**
* 查询事前审批
*
* @param id 事前审批ID
* @return 事前审批
*/
... | 19.127907 | 68 | 0.593921 |
590afa24691c74e7b3290627eecbc689ac1708d8 | 2,781 | package com.IceMetalPunk.amethystic.commands;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.CommandResultStats.Type;
import net.minecraft.command.ICommand;
import net.minecr... | 24.182609 | 108 | 0.708019 |
e5c31be414a89b486cdda524e50816c47760ecc9 | 766 | package com.lbh.friendcircledemo.views;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;
public class UserDataItemNoScrollView extends ListView {
public UserDataItemNoScrollView(Context context, AttributeSet attrs,
int defStyle) {
super(context, attrs, defStyle)... | 23.9375 | 72 | 0.778068 |
78abac3f83b93d4fffd656f4f6f46efa9954506f | 393 | package com.whoiszxl.command;
import com.whoiszxl.command.cmd.FollowMemberCommand;
import com.whoiszxl.model.ddd.ApplicationService;
/**
* 关注应用服务接口
*
* @author whoiszxl
* @date 2022/1/27
*/
public interface FollowerApplicationService extends ApplicationService {
/**
* 关注用户
* @param followMemberCom... | 19.65 | 72 | 0.735369 |
250b557e56dd1701228db29d7eb97aee53086e6e | 556 | package net.anzix.spark;
import org.apache.spark.storage.StorageLevel;
import org.apache.spark.streaming.receiver.Receiver;
public class DataGenerator extends Receiver<String> {
public DataGenerator() {
super(StorageLevel.MEMORY_AND_DISK_2());
}
@Override
public void onStart() {
new ... | 19.172414 | 53 | 0.597122 |
4a8b0a64484b0ac310f2e87e9cdce971ac71a10a | 429 | package com.github.shoothzj.distribute.job.impl.common.service;
import com.github.shoothzj.distribute.job.api.module.CronJob;
import com.github.shoothzj.distribute.job.api.module.JobCallbackDto;
/**
* @author hezhangjian
*/
public interface ICronJobService {
void addJob(String jobId, String context, CronJob c... | 26.8125 | 112 | 0.79021 |
eb56451a37cbe4f45fe377bcdc7239499300610e | 2,484 | package com.vidnyan.javaspringbootjwtautontication.config;
import javax.servlet.Filter;
import com.vidnyan.javaspringbootjwtautontication.filter.JwtRequestFilter;
import com.vidnyan.javaspringbootjwtautontication.service.UserService;
import org.hibernate.query.criteria.internal.expression.ConcatExpression;
import or... | 45.163636 | 119 | 0.833333 |
2df4d0ebb3186b14e97b52ab527036e3020cbfc7 | 4,052 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.repositoryservices.auditlog;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.List;
import static org.... | 27.753425 | 120 | 0.643633 |
84dd57724cb5c7c3d81388b1f0dfbe4e195ffef5 | 1,194 | public List<List<Integer>> XXX(int[] nums) {
List<List<Integer>> res = new ArrayList<>();
Set<List<Integer>> set = new HashSet<>();
if(nums.length < 3) return res;
Arrays.sort(nums);
if(nums[0] > 0 || nums[nums.length - 1] < 0) return res;
Map<Integer, Integer> map = ... | 36.181818 | 135 | 0.422111 |
ca6cc959e684e636e045346b6082ac2100c75c1a | 3,377 | package net.secknv.scomp.item;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.item.EntityItemFrame;
import net.minecraft.init.Items;
import net.minecraft.item.IItemPropertyGetter;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ResourceLocat... | 33.435644 | 119 | 0.543678 |
028f534be7221563d22c6872c6cadc570c40a8b4 | 2,415 | package com.github.ksokol.mailsink.websocket;
import com.github.ksokol.mailsink.entity.Mail;
import com.github.ksokol.mailsink.repository.MailRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
import org.mockito.InO... | 28.75 | 94 | 0.742029 |
f6d7283d25e8152b2af09d7aa26bd50379769e97 | 4,500 | /*
* InformationMachineAPILib
*
*
*/
package co.iamdata.api.models;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
public class UserPurchase
implements java.io.Serializable {
private static final long serialVersionUID = 517... | 24.193548 | 70 | 0.614222 |
d63e86d6c6deb5cfa6a81f70eb5f31165bc4eb0f | 3,621 | package org.dynmap;
import java.util.concurrent.ConcurrentHashMap;
import org.dynmap.servlet.ClientUpdateServlet;
import org.json.simple.JSONObject;
public class InternalClientUpdateComponent extends ClientUpdateComponent {
/**
* Interval (in milliseconds) on which a client update snapshot should be ga... | 36.21 | 114 | 0.626622 |
f6c7e501dba43be4ca2f22d953d8638f87110bfb | 1,294 | package com.ess.utils;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
public class ThreadedHandler extends Handler {
private static final String TAG = ThreadedHandler.class.getSimpleName();
/* default handler */
public static final ThreadedHandler createHandler() {
return... | 28.130435 | 97 | 0.74575 |
26c6e8dada334ba72351dbc3b8ae5e6794b2727a | 2,561 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 28.142857 | 100 | 0.717298 |
a05e90b29883b480a99478b8448831b0e2801b31 | 6,344 | package array_stack;
/**
*
* @author Polis
*/
public class ArrayStack implements iStack {
//main meta tin class ArrayStack
public static final int capacity = 100;
private Object arr_s[];
private int itop = -1;
public ArrayStack() {
this(capacity);
}
public ArrayStack(int capaci... | 35.244444 | 89 | 0.401955 |
48c36028b358e05c75f806c55ca9a361f34f3be4 | 1,874 | package com.mycompany.fallphotowall.util;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
publi... | 34.703704 | 92 | 0.688901 |
f8928794c49773329d811598e1c99af11cb0e169 | 2,461 | package com.github.maybeec.lexeme;
import com.github.maybeec.lexeme.schemaprovider.MergeSchemaProvider;
/**
*
* @author sholzer (Jul 7, 2015)
*/
public final class LeXeMeFactory {
/**
*
*/
private static LeXeMeBuilder builder = null;
/**
* Sets the field 'builder'.
* @param builde... | 26.180851 | 109 | 0.583096 |
ee4c195bbae8c2e02c0e554f624f5b6407327800 | 3,966 | package com.ywh.LoRaWANServer.packet.mac_part;
public class OperateMacJoinRequest implements OperateMacPkt {
@Override
public MacPktForm MacParseData(byte[] data, String gatawayId, String syscontent) {
return null;
/*
byte[] datain = Arrays.copyOfRange(data, 0, 19);
byte[] micComputed = LoRaMacCrypto... | 37.771429 | 127 | 0.718356 |
49164e1fe521aa49b2dbe27152c91e80e417d60c | 8,510 | package com.frontanilla.estratega.core;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.utils.... | 39.581395 | 90 | 0.594712 |
8e437f4a2e4b77190e145b6fe8141b08b9d5b99f | 1,511 | /**
* 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... | 27.472727 | 75 | 0.685639 |
d028fb48296d63a07a071112ad72b5972cec58e9 | 3,278 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.... | 32.455446 | 106 | 0.724527 |
43849e091d30ce70abd0ad37432d320332b4c1f2 | 6,049 | /*
* 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 ... | 35.374269 | 120 | 0.780294 |
7ac36d8d2473a9b2eb419a7b1eeca6cb6a07bbfe | 223 | package com.extracraftx.minecraft.extradoors.interfaces;
public interface TeleportableLivingEntity{
public boolean teleport(double x, double y, double z, float yaw, float pitch, boolean particles, int maxDrop);
} | 31.857143 | 114 | 0.784753 |
531f95a4b581b3af557256d98528924713a84b3c | 10,172 | /*
* Copyright 2020-2020 Exactpro (Exactpro Systems Limited)
*
* 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... | 32.812903 | 160 | 0.750492 |
18f58cb4643076cadc65bae6dd5c02fb77a65585 | 966 | package com.lym.security.code.img.propertities;
import com.lym.security.code.consts.ValidateCodeConsts;
import com.lym.security.code.propertities.ValidateCodeProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 验证码配置项
*
* @author lym
* @since 1.0
*/
@ConfigurationProperti... | 19.714286 | 78 | 0.646998 |
25bcf5e51c41eb3e65993afb926af5c7bb539179 | 2,170 | package com.tvd12.ezyfox.testing.reflect;
import java.util.Comparator;
import java.util.stream.Collectors;
import org.testng.annotations.Test;
import com.tvd12.ezyfox.reflect.EzyClassTree;
public class EzyClassTreeTest {
@Test
public void test() {
EzyClassTree tree = new EzyClassTree();
tree = new EzyClassT... | 28.181818 | 69 | 0.745161 |
39501d216869d406445fb27aca79888ee124f1b0 | 523 | package com.obiwanwheeler.creators;
import java.util.Scanner;
public class Creator {
Scanner scanner = new Scanner(System.in);
public void startCreate(){
System.out.println("would you like to make a deck (d), or add new cards to existing ones (c)?");
String userChoice = scanner.next();
... | 26.15 | 104 | 0.590822 |
732508926da1c0be5552dc2249abf2032871e928 | 1,652 | package com.example.acer.shopping.entity;
import java.sql.Timestamp;
import java.util.Date;
public class Cart {
//cartId,userId,collectNumber,collectTime
/* public Cart(int cartId, int userId, int collectNumber,
Timestamp collectTime) {
super();
this.cartId = cartId;
this.userId = userId;
this.col... | 19.209302 | 72 | 0.720339 |
9aaa03ef8df68e3fc4291afc05e9f7a619363fe0 | 1,221 | package livelance.app.support;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.methodOn;
import org.springframework.hateoas.mvc.ResourceAssemblerSupport;
import org.springframework.stereotype.Component;
import liv... | 35.911765 | 95 | 0.781327 |
e0cb122e3cb40ae83449598858187247f84e0070 | 496 | package com.cn.pojo;
import lombok.Data;
import java.util.List;
/**
* 树数据封装类
*
* @author chen
* @date 2018-01-02 17:56
*/
@Data
public class MenuDTO {
public static Long rootId = 0L;
protected Long id;
/** 名称 */
protected String name;
/** 父id */
protected Long parentId;
/** 链接地址 ... | 13.052632 | 37 | 0.582661 |
e2faf07dbf24273c7a4db5e1e65e70c770f7f439 | 506 | package com.supervisor.sdk.pgsql.statement;
import com.supervisor.sdk.datasource.Base;
import java.util.Arrays;
public final class PgDropColumnStatement extends PgUpdateSchemaStatement {
public PgDropColumnStatement(Base base, final String entity, final String column) {
super(
base,
script(column, entit... | 24.095238 | 84 | 0.745059 |
6c54585e1b2b73e70313834fd9bfb9daa75eb3e9 | 9,319 | package com.uiresource.cookit;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
impor... | 46.133663 | 165 | 0.619594 |
c1e96eb9a9edc3f9dcae9fd5ab11055b87736b3e | 3,308 | /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any la... | 31.207547 | 223 | 0.784764 |
4f518a4506ff6e546a923a4f18e13bfa20fc51c4 | 18,737 |
package com.aware;
import android.Manifest;
import android.content.ContentValues;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.ContentObserver;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteException;
impo... | 47.920716 | 186 | 0.582217 |
00f0b732848fe132846d48451c61f5e17fd2defd | 1,527 | package host.kuro.onetwothree.command;
import cn.nukkit.Player;
import cn.nukkit.command.Command;
import cn.nukkit.command.CommandSender;
import cn.nukkit.lang.TranslationContainer;
import cn.nukkit.utils.TextFormat;
import host.kuro.onetwothree.Language;
import host.kuro.onetwothree.OneTwoThreeAPI;
public ... | 35.511628 | 108 | 0.677145 |
ab4e20279a59395b5bbe69e2469bbc2101498ae3 | 360 | package com.billybyte.spanjava.recordtypes.expanded.subtypes;
public class TierNumberLeg {
private final String tierNumberLeg;
public TierNumberLeg(String tierNumberLeg) {
this.tierNumberLeg = tierNumberLeg;
}
public String getTierNumberLeg() {
return tierNumberLeg;
}
public String toStri... | 18.947368 | 62 | 0.730556 |
880daa8b718c34e1728440e0267ec3f30d5b27f8 | 311 | package net.ajmichael.projecteuler;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.assertEquals;
@RunWith(JUnit4.class)
public class Problem086_T {
@Test
public void testSolve() {
assertEquals(1818, Problem086.solve());
}
}
| 18.294118 | 44 | 0.758842 |
a247d9339ceab1fa31eaafa0e75614e9eac2bb5e | 37,710 | // Copyright 2009 Distributed Systems Group, University of Kassel
// This program is distributed under the GNU Lesser General Public License (LGPL).
//
// This file is part of the Carpe Noctem Software Framework.
//
// The Carpe Noctem Software Framework is free software: you can redistribute it and/or modify
// ... | 33.021016 | 161 | 0.745664 |
0122596fa339cadc35920bc108a2a85a4f3e8949 | 1,635 | package com.tinnova.cadastroveiculos.entities;
import com.tinnova.cadastroveiculos.dto.VeiculoDTO;
import com.tinnova.cadastroveiculos.enumerated.MarcaVeiculo;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@NoArgsCo... | 25.546875 | 85 | 0.697248 |
72950d15ca9600a945b19c33fe05dccec67a7c31 | 391 | package com.codeka.justconduits.common.impl.energy;
import com.codeka.justconduits.packets.IConduitToolExternalPacket;
import net.minecraft.network.FriendlyByteBuf;
public class EnergyConduitToolExternalConnectionPacket implements IConduitToolExternalPacket {
@Override
public void encode(FriendlyByteBuf buffer) {... | 26.066667 | 94 | 0.823529 |
b9547d370c6afd7a42107ec6f18cdafaca2457f4 | 5,520 | package com.haibusiness.szweb.controller;
import com.haibusiness.szweb.entity.Authority;
import com.haibusiness.szweb.entity.User;
import com.haibusiness.szweb.exception.BadRequestException;
import com.haibusiness.szweb.security.PBKDF2Encoder;
import com.haibusiness.szweb.security.SecurityContextHolder;
import ... | 35.612903 | 111 | 0.647826 |
8ee4b6ca73fc78a1ded36a1765c9283e791f3706 | 1,101 | package sfms.rest.api.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* Defines a Crew Member entity exposed by the Crew Member REST service.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CrewMember {
private String m_key;
private String m_firstName;
priv... | 17.47619 | 72 | 0.732062 |
292b8c7bc1b3bd244556fddeacc759f11573ade0 | 1,993 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed ... | 38.326923 | 116 | 0.743101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.