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 |
|---|---|---|---|---|---|
2465fa6319322a5c4e3c96fd8605ef2adc597147 | 1,098 | package biz.orgin.minecraft.hothgenerator.schematic;
import biz.orgin.minecraft.hothgenerator.HothUtils;
public class DoorNS implements Schematic
{
private static final long serialVersionUID = 299532124330599474L;
public static Schematic instance = new DoorNS();
private static int WIDTH = 3;
private static int LE... | 18 | 66 | 0.636612 |
16724ba59a3338e219086439a6b6765c4b6e11cf | 2,979 | package com.sohu.cache.web.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import java.net.InetAddress;
import java.net.NetworkInterface;
i... | 32.380435 | 109 | 0.558577 |
7ad188c45f589bc74c9cd5f2437b8288eb1c5d84 | 7,789 | package org.crawler.monitor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.URL;
import java.net.URLConnection;
import java.security.MessageDigest;
import java.text.SimpleDateFormat;
import java.util.Date;
import org... | 31.281124 | 105 | 0.602773 |
6beaaffa5847b7ac8d69ba118cbef4408d3def25 | 5,216 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 abel533@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | 19.462687 | 80 | 0.549271 |
30ffc8b3d7960c4215840170422a5161d0023a98 | 445 | package com.inconvenience.apkdecompiler;
import java.util.Comparator;
import java.util.Locale;
import com.inconvenience.apkdecompiler.AppListItem;
public class SortOptions {
public Comparator<AppListItem> AppListItemDefault = new Comparator<AppListItem>() {
@Override
public int compare(AppListIt... | 26.176471 | 87 | 0.723596 |
65b7ddef52d015860240d892016bc6edb615ae07 | 2,472 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 28.413793 | 79 | 0.67233 |
d2a0b79aa822a11a16c18e64f4aa7a45393d6df9 | 515 | package com.almasb.lang;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;
/**
* @author Almas Baimagambetov (almaslvl@gmail.com)
*/
public class Env {
private Map<String, Object> memory = new HashMap<>();
private Consumer<String> output;
public Env(Consumer<String> ... | 18.392857 | 57 | 0.650485 |
f7fdced6e7e485ee0a56fb76588abd422346f44d | 1,204 | package com.ruoyi.project.elevator.service.service;
import com.ruoyi.project.elevator.service.domain.Service;
import com.ruoyi.project.elevator.service.mapper.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
@org.springframework.stereotype.Service("ServiceService")... | 25.617021 | 63 | 0.743355 |
ecd349161700efb13e15b0644aa8f01b621f0b4e | 1,037 | /*
* Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.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
*
* Unles... | 29.628571 | 75 | 0.746384 |
ff78fb0b9931b74095af50d7fd22deddb5b869b9 | 399 | package com.ablanco.zoomy;
import android.app.Activity;
import android.view.ViewGroup;
public class ActivityContainer implements TargetContainer {
private Activity mActivity;
ActivityContainer(Activity activity) {
this.mActivity = activity;
}
public ViewGroup getDecorView() {
... | 23.470588 | 70 | 0.699248 |
640dcc6618db517159eb2e6eea99438074fcd0de | 1,891 | import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ex")
public class class138 {
@ObfuscatedName("o")
@ObfuscatedGetter(
longValue = 8571598183286101587L
)
stati... | 31 | 108 | 0.595981 |
768ffb7e9de397e066b3ec9f1532dbb0fc90a5f1 | 5,178 | /**
* 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
* distribut... | 35.958333 | 101 | 0.658749 |
b0fa94db2e452d01f7254af1eff1993deb6d79b4 | 689 | package io.github.jzdayz.jdk.type;
import org.apache.ibatis.reflection.TypeParameterResolver;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;
public class Tests {
public interface B<T> {
List<T> list();
}
public interface C exte... | 21.53125 | 73 | 0.667634 |
9362acf9acd6e7e70db54ff64ef2868e06552c39 | 3,439 | package com.sendtomoon.eroica.common.beans.map;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.sendtomoon.eroica.co... | 25.474074 | 111 | 0.674033 |
61d1c275195f2c40178f8a790bb9c9c5592e4cfd | 1,531 | /*
* 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 applicab... | 27.339286 | 85 | 0.742652 |
349e20c01a6952ae1c1037b5057eed6484eed22b | 5,066 | /*
Copyright 2014 Twitter, 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 in writing, software
distr... | 37.80597 | 96 | 0.750888 |
dc228c04f141662328714e3eac3b004951a0051d | 464 | package com.weique.overhaul.v2.di.module;
import com.weique.overhaul.v2.mvp.contract.SignInContract;
import com.weique.overhaul.v2.mvp.model.SignInModel;
import dagger.Binds;
import dagger.Module;
/**
* ================================================
* Description:
* <p>
* =====================================... | 22.095238 | 69 | 0.592672 |
314cf506ffeaade3dee58a58c14bc418a66ae96b | 2,404 | /*
* Copyright 2016 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 35.880597 | 95 | 0.767887 |
dd054957fd0a311321945ae0f0ef3aec1fba3e07 | 2,666 | /**
* Copyright © 2015 Pablo Grela Palleiro (pablogp_9@hotmail.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 requ... | 29.622222 | 100 | 0.69805 |
b266c6309e06d7107627a47d4c4b9c7864cdef67 | 4,489 | /*
* Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
*/
package gov.opm.scrd.services.impl.reporting;
import gov.opm.scrd.services.impl.BaseReportResponse;
import java.util.Map;
/**
* This class represents the response for the namesake report. <p> <strong>Thread-safety:</strong> This class is mutable
* an... | 25.651429 | 120 | 0.625306 |
7d1160fd32fe9ce2d0f6bda9d8a4851c8c41128f | 576 | package com.fxb.demo1;
import redis.clients.jedis.Jedis;
import java.util.Iterator;
import java.util.Set;
/**
* @author fangxiaobai on 2017/10/20 14:45.
* @description
*/
public class demo4_RedisKeyJava {
public static void main(String[] args) {
Jedis jedis = new Jedis("localhost");
Syste... | 21.333333 | 47 | 0.592014 |
5bbfb5fc3f8b124f6d7d9e1567e12ca54c6d7c11 | 5,822 | package net.minecraft.server.commands;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.FloatArgumentType;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import com.mojang.brigadier.builder.RequiredArgumentBuilder;
import com.mojang.brigadier.exceptions.CommandSyntaxExc... | 58.22 | 341 | 0.704741 |
9350de4339d1135a61cfd686d72f01d2c89436c9 | 796 | package mx.uam.archinaut.services;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import mx.uam.archinaut.data.loader.YamlLoader;
import mx.uam.archinaut.model.yaml.YamlConfigurationEntry;
public cl... | 26.533333 | 97 | 0.830402 |
b7bd5b3186a49faa61143a6fde77e619617fa7bc | 2,459 | package com.wj.spring.encache.Service.impl;
import com.wj.spring.encache.Service.DemoInfoService;
import com.wj.spring.encache.entity.DemoInfo;
import com.wj.spring.encache.exception.NotFoundException;
import com.wj.spring.encache.repository.DemoInfoRepository;
import org.springframework.cache.annotation.CacheEvict;
i... | 31.935065 | 250 | 0.702318 |
52d4a6fc796f272fc242e9beb0efcc59ea5e997b | 2,331 | package com.tinet.clink.openapi.model;
import java.util.Date;
import java.util.List;
/**
* 工单模板实体对象
*
* @author liuhy
* @date: 2020/11/22
**/
public class WorkflowResultModel {
/**
* 工单模板主键id
*/
private Integer id;
/**
* 工单模板名称
*/
private String name;
/**
* 工单模板类型 1... | 16.415493 | 54 | 0.559846 |
7012acc1260e72049495c0fb8d44ffccaccb6037 | 464 | package IntroductionToJava.EqualOperator;
public class Test {
public static void main(String[] args) {
A obj1 = new A();
obj1.x = 10;
A obj2 = new A();
obj2.x = 10;
System.out.println(obj1 == obj2); // false, because addr(obj1) != addr(obj2)
System.out.println(obj1... | 22.095238 | 84 | 0.547414 |
be1340beb5f9a6e3e220980277708087e9346d5e | 547 | package com.cgfy.pattern.proxy.dynamicproxy;
/**
* 测试类
*/
public class App {
public static void main(String[] args) {
// 目标对象
UserDao target = new UserDaoImpl();
// 【原始的类型 class cn.itcast.b_dynamic.UserDao】
System.out.println("目标对象:"+target.getClass());
// 给目标对象,创建代理对象
... | 24.863636 | 78 | 0.592322 |
81f32c7419b7ef5e9478a258b01bfa4ad5bcecf8 | 5,589 | package com.example.controller;
import com.example.dto.PatientDTO;
import com.example.entities.Patient;
import com.example.exceptions.*;
import com.example.service.BedService;
import com.example.service.ClientService;
import com.example.service.DeviceService;
import com.example.service.PatientService;
import ... | 54.794118 | 372 | 0.749687 |
a3e269d3c881f5d30e723ac2c047f7bf3b814cda | 846 | package models.base;
import models.Persistent;
import javax.persistence.CascadeType;
import javax.persistence.OneToMany;
import java.util.ArrayList;
import java.util.List;
@javax.persistence.Entity
public class Entity extends Persistent {
private String name;
private String type;
@OneToMany(mappedBy="b... | 18.8 | 59 | 0.644208 |
5e20d84342ead57165462a38134b08950031c814 | 949 | package com.atlassian.plugin.connect.modules.beans.builder;
import com.atlassian.plugin.connect.modules.beans.AuthenticationBean;
import com.atlassian.plugin.connect.modules.beans.AuthenticationType;
public class AuthenticationBeanBuilder {
private AuthenticationType type;
private String publicKey;
publi... | 27.911765 | 72 | 0.713383 |
dbc23c0f9866bacb2f1b984a83e9142efb41beee | 207 | package com.github.dolphineor.demo01;
import org.junit.Test;
public class HelloLuceneTest {
@Test
public void testIndex() {
HelloLucene hl = new HelloLucene();
hl.index();
}
}
| 15.923077 | 43 | 0.642512 |
020a05ebd278315010f6e91fd65eee795651edcf | 2,421 | /*
* Copyright (c) 2013-2015. Urban Airship and Contributors
*/
package com.urbanairship.api.segments.model;
import com.google.common.base.Preconditions;
import org.apache.commons.lang.StringUtils;
public final class LocationAlias {
private final String aliasType;
private final String aliasValue;
pu... | 25.755319 | 115 | 0.585295 |
bbce27a5a264f332b51b5b5f6288730829b5c547 | 2,011 | package com.robertovecchio.model.veichle;
/**
* Questo enum serve a specificare il brand del Taxi, utile ai fini della memorizzazione
* @author robertovecchio
* @version 1.0
* @since 07/01/2021
* */
public enum BrandType {
/**
* Caso taxi con brand ABARTH
* */
ABARTH,
/**
* Caso taxi co... | 16.483607 | 88 | 0.467429 |
f8570b3a7ac7f1d478ed30cfcf7db2e2332ef929 | 1,336 | package com.js.interpreter.plugins.standard;
import com.js.interpreter.ast.expressioncontext.ExpressionContext;
import com.js.interpreter.ast.returnsvalue.FunctionCall;
import com.js.interpreter.ast.returnsvalue.RValue;
import com.js.interpreter.exceptions.ParsingException;
import com.js.interpreter.linenumber.LineInf... | 30.363636 | 110 | 0.701347 |
04397e31caf92edce1d636193457266e5deb0175 | 1,904 | package com.mypurecloud.sdk.v2.connector.apache;
import org.apache.http.auth.AuthScope;
import org.apache.http.auth.Credentials;
import org.apache.http.client.CredentialsProvider;
import java.security.Principal;
import java.util.HashMap;
public class ApacheHttpCredentialsProvider implements CredentialsProvider {
... | 26.816901 | 102 | 0.662815 |
fd07abcf7b857d157981310a792ed6201ce7e650 | 1,382 | /*
* Copyright © 2020 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 27.098039 | 87 | 0.743126 |
6dc4f047bf5af7f532b1a3b1b48c52f87cfc04fe | 926 | package me.javaee.meetup.listeners.scenarios;
import me.javaee.meetup.Meetup;
import me.javaee.meetup.handlers.Scenario;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import java.util.concurrent.TimeUnit;
/*
... | 30.866667 | 150 | 0.706263 |
6dc417f3cfaff9dd2c246e8f098293c08537684f | 1,745 | package com.pengrad.telegrambot.passport.decrypt;
import com.google.gson.Gson;
import com.pengrad.telegrambot.passport.Credentials;
import java.util.Arrays;
/**
* Stas Parshin
* 31 July 2018
*/
public class Decrypt {
public static Credentials decryptCredentials(String privateKey, String data, String hash, S... | 34.9 | 127 | 0.681375 |
286b3abb42197b02ace998edb359f9eec97bedc7 | 863 | package com.example.invoice.service;
import com.example.invoice.domain.User;
import com.example.invoice.domain.UserPrincipal;
import com.example.invoice.repository.UserRepository;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundExce... | 34.52 | 109 | 0.806489 |
acb353028b5103c2aea46d0ac72bbb0065bef84c | 857 | package com.gaohui.nano;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import com.gaohui.utils.ThemeManageUtil;
/**
* Created by gaohui on 2017/3/12.
*/
public class BaseActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundl... | 20.404762 | 77 | 0.645274 |
e78738c301161997038e8d40bec74c5af8f07761 | 1,931 | /*
* 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 TestBed;
/**
*
* @author Mohammad Fasha
*/
import java.util.List;
import java.io.StringReader;
import edu.... | 32.183333 | 154 | 0.673226 |
ee3849257648a181a8a185b90f3f9191f8b1e64b | 22,523 | /*
* 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 ... | 50.387025 | 241 | 0.635351 |
0859b1b8b5d697fe246caad7ec50102774ac24d1 | 711 | package org.clickandcollect.model.entity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.p... | 22.935484 | 55 | 0.803094 |
c4e056e93c79e0d583e61ca8f31ee05cba0c68ed | 3,137 | package com.tiny.demo.firstlinecode.kfysts.chapter04.ui;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.annot... | 34.097826 | 105 | 0.689512 |
8c990a35e79691e6b7914cba1ec6a603fe60c98e | 21,865 | package com.innoz.toolbox.scenarioGeneration.network;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.log4j.Logger;
impor... | 29.547297 | 154 | 0.665859 |
bb302914fe6c767edf782c846980c0304fe21c37 | 2,569 | package com.igoosd.api;
import com.igoosd.domain.User;
import com.igoosd.domain.vo.ResultMsg;
import com.igoosd.exception.StaticException;
import com.igoosd.util.RoadPricingException;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
import javax.servlet.http.HttpS... | 30.583333 | 83 | 0.599844 |
8c918f6a7af268537acfc513e43f96aef3a95dae | 3,160 | /*
* Copyright (C) 2017 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... | 32.244898 | 88 | 0.737025 |
7869bf18e1b0fa6886d7910a563227156bbcccf8 | 2,069 | package com.smithkatakkar.hauntingmod.testrunner;
import net.minecraft.launchwrapper.Launch;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.TestClass;
import java.lang.reflect.Method;
/**
* Created by ben on 01/02/17.
*
* Inspire... | 39.037736 | 115 | 0.691155 |
fdb318ffcf61bdce17cb8831c4b40aade4eabdf7 | 3,948 | package sibbo.bitmessage.network.protocol;
import java.io.IOException;
import java.math.BigInteger;
import java.util.Objects;
import org.bouncycastle.jce.interfaces.ECPublicKey;
import sibbo.bitmessage.crypt.CryptManager;
/**
* Represents an encrypted message in the bitmessage encryption format.
*
* @author Seb... | 28.402878 | 114 | 0.680598 |
6a8b1e59d5c1a860dc6e8485eaa2979bb3eb02d2 | 11,187 | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2014 Visualink
*
* 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 with... | 40.241007 | 117 | 0.621436 |
a7c1f9f0ef814d429d9bef7ae9f9d0d4c38cc64f | 1,393 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* 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... | 37.648649 | 100 | 0.753051 |
59ad27e2638b3b693c392284f6a943e4cad89172 | 762 | package jp.ne.naokiur.design.pattern.command;
public class Writing extends Command {
private Canvas canvas;
private int thickness;
private String color;
private int length;
public Writing(int thickness, String color, int length) {
this.thickness = thickness;
this.color = color;
... | 23.8125 | 85 | 0.603675 |
525f0406b995adab4889e5e18068c871849c98c2 | 8,560 | /*
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2020 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hi... | 22.765957 | 134 | 0.679673 |
31c04bf2638f0a09bbfb0eba65bb3e4adbc0aa4b | 150 | package net.minecraft.client.gui.recipebook;
public interface IRecipeShownListener
{
void recipesUpdated();
RecipeBookGui getRecipeGui();
}
| 16.666667 | 44 | 0.773333 |
2e7bdc8cc5b9b9ca618830710ca4c655156d55b4 | 1,333 | import java.util.ArrayList;
public class Producer implements Runnable{
ArrayList <Integer> buffer; //variable for shared resource
private int objectNo; //keep track of order of added objects
final int max = 5; //max size of buffer
/*Constructor*/
public Producer(ArrayList<Integer> buffer){
this.buff... | 31 | 123 | 0.671418 |
203711a99b17db79b6c527f019703657e22ce599 | 1,065 | package com.hblog.mapper;
import com.hblog.bean.Message;
import com.hblog.bean.MessageExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MessageMapper {
long countByExample(MessageExample example);
int deleteByExample(MessageExample example);
int del... | 29.583333 | 109 | 0.728638 |
c36917a9741dd6ddb40a6cadf18f2e31b0b7fcc1 | 2,688 | package org.firstinspires.ftc.teamcode.hardware;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.Gamepad;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.checkerframework.checker.index.qual.LTEqLengthOf;
i... | 40.119403 | 113 | 0.718378 |
a488c5e24e8278b42da71ca62be8d23c294c4a11 | 506 | package ru.ltst.saturday_data_binding.ui.events;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class EventsClicks {
public void onFirstClick(View view) {
showToast(view);
}
public void onSecondClick(View view) {
showToast(view);
}
pri... | 23 | 79 | 0.689723 |
3d239dfe9f4894c39879dff202b92b507c4a1bd1 | 492 | package com.surroundrervouscat.astar;
import com.surroundrervouscat.PlayGameScene;
public class MapInfo {
public PlayGameScene.SATTUS[][] maps; // 二维数组的地图
public int width; // 地图的宽
public int hight; // 地图的高
public Node start; // 起始结点
public Node end; // 最终结点
public MapInfo(PlayGameScene.SATTUS[][]... | 22.363636 | 93 | 0.672764 |
f9432a41742a133bf224d4fa207a904bf322678d | 3,016 | import java.util.List;
import org.checkerframework.checker.guieffect.qual.*;
class ThrowsTest {
boolean flag = true;
// Type var test
<E extends @UI PolyUIException> void throwTypeVarUI1(E ex1, @UI E ex2) throws PolyUIException {
if (flag) {
//:: error: (throw.type.invalid)
... | 28.186916 | 154 | 0.608422 |
19d5e63ed926bffef27171465914dd7edba5be33 | 876 | package array;
public class selectionsort {
public static void main(String[] args)
{//max=descending order
//for ascending order change max to min and if(m[j]"<"m[min]).....
int m[]={4,5,2,6,8,12,34,32,1,7};
int i,j,max,t;
for(i=0;i<10;i++)
{
max=i;
for(j=i+1;j<10;j++)
{
if(m[j]>m[max])//chan... | 17.877551 | 68 | 0.504566 |
1976be84fa78a701857028059080257f201557fd | 826 | package io.planckx.api.client;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Constants used throughout PlannckX's API.
*/
public class PlanckXConstant {
/**
* HTTP Header to be used for API authentication.
*/
public static final String API_KEY_HEADER = "access_key";
public stat... | 28.482759 | 89 | 0.72276 |
6757f5accad7ce192db039735f4c19a23c8930dc | 3,346 | package integration.sockjs;
import integration.VertxNubesTestBase;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.WebSocket;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
public abstract class EventBusBridgeTestBase extends VertxNubesTestBas... | 33.79798 | 97 | 0.682606 |
b792d8ee47c19ee9d46aa472f1c9834429353278 | 10,519 | package io.l0neman.utils.stay.uiautomation;
import android.os.SystemClock;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Checkable;
import android.widget.EditText;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Cre... | 26.23192 | 91 | 0.648256 |
ad1020a02c4ddd88f1babe54eac9eb4963e224dc | 1,518 | package com.booking.app.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.pe... | 17.448276 | 73 | 0.735837 |
12d337e0d83d35fa4e355469e617081ee051237a | 1,602 | //
package interface08y09;
/**
* Clase Triangulo que implementa Figuras Geometricas
* @author EDg2
*/
public class Triangulo implements FigGeometrica{
// Atributos
private double lado1, lado2, lado3; // Lados del triangulo
// Constructor
public Triangulo(double lado1, double lado2, double la... | 24.646154 | 95 | 0.533708 |
1fd62ba1a06291f3e3afe65bed7cd3760994513f | 352 | package tran.nam.flatform.database;
import android.arch.persistence.room.Database;
import android.arch.persistence.room.RoomDatabase;
import tran.nam.flatform.model.AlarmData;
@Database(entities = {AlarmData.class}, version = 1 ,exportSchema = false)
public abstract class DBProvider extends RoomDatabase{
public ... | 29.333333 | 74 | 0.801136 |
e54012b63bd1ebd050555174c99be95d73530b03 | 5,240 | /* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.components.translation.processors;
import io.annot8.api.capabilities.Capabilities;
import io.annot8.api.components.annotations.ComponentDescription;
import io.annot8.api.components.annotations.ComponentName;
import io.annot8.api.components.annotat... | 39.69697 | 100 | 0.709542 |
ecbf8ebf46ff717b4d7a304b1c2acea4cde829ac | 915 | package com.aqstore.service.event.payload;
import java.util.List;
import com.aqstore.service.event.payload.component.CreateOrderSagaStep;
import com.aqstore.service.event.payload.component.EventOrderItemDTO;
import com.aqstore.service.event.payload.component.EventUserAddressDTO;
import lombok.AllArgsConstructor;
imp... | 24.72973 | 71 | 0.83388 |
e88aec0831fadc8e98c81381e3aed2ca4701413d | 671 | package com.semihunaldi.backendbootstrap.entitymodel.exceptions.user;
import com.semihunaldi.backendbootstrap.entitymodel.exceptions.BaseException;
import lombok.NoArgsConstructor;
/**
* Created by semihunaldi on 28.11.2018
*/
@NoArgsConstructor
public class UserNotFoundException extends BaseException {
public U... | 19.171429 | 77 | 0.769001 |
2c297c82c68ad293d2da87bb7f065c2e1ad38d77 | 4,970 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 37.368421 | 114 | 0.662978 |
6caf9086511ac5453320db287dcd8cc841c6ad58 | 1,221 | package com.revolsys.record.query;
import com.revolsys.record.Record;
import com.revolsys.record.schema.RecordStore;
public class ParenthesisCondition extends AbstractUnaryQueryValue implements Condition {
public ParenthesisCondition(final Condition condition) {
super(condition);
}
@Override
public void... | 24.42 | 88 | 0.719083 |
016e2f956f2fe36afd78aabf112fc33da66bb44f | 3,928 | import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ParseIPAddress {
public static void main(String[] args) {
String [] tests = new String[] {"192.168.0.1", "127.0.0.1", "256.0.0.1", "127.0.0.1:80", "::1", "[::1]:80", "[32e::12f]:80", "2605:2700:0:3::4713:93e3", "[2605:2700:0:3::4... | 35.387387 | 229 | 0.490326 |
1ce2779505ad4fe05977c52fd7d14519fb268d0d | 167 | package com.liteworm.spb.dao;
/**
* @ClassName TestDao
* @Decription @TOTO
* @AUthor LiteWorm
* @Date 2020/4/17 0:35
* @Version 1.0
**/
public class TestDao {
} | 15.181818 | 29 | 0.652695 |
d9f6c26cdf80ac8ee00ebfe5292d9f828a49d560 | 1,190 | package com.questionnaire.ssm.module.questionnaireManage.pojo;
/**
* Created by 郑晓辉 on 2017/6/29.
* Description:
*/
public class PreOrNextQes {
//已经超出边界的情况
public final static long OUT_OF_INDEX = 0L;
//我的全部问卷id信息
private Long[] ids;
//当前查看问卷id
private Long curQesId;
//上一份问卷ID
priva... | 23.8 | 71 | 0.605882 |
61a998a6b8ddabe6af8f98b28e886948289cbc30 | 23,036 | package star.lut.com.chatdemo.appModules.chatDetails.adapter;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
imp... | 42.580407 | 158 | 0.571019 |
811da502ecbe1f43e63681a055865841896a1b1b | 1,643 | package lykrast.universalbestiary;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.minecraft.advancements.CriteriaTriggers;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml... | 35.717391 | 69 | 0.777845 |
174f07ec995d0d7cb758104749c3523156038f3d | 640 | package gov.ca.emsa.pulse.broker.dao;
import gov.ca.emsa.pulse.broker.dto.LocationDTO;
import gov.ca.emsa.pulse.broker.entity.LocationEntity;
import java.util.List;
public interface LocationDAO {
public LocationDTO create(LocationDTO location);
public LocationDTO update(LocationDTO location);
public List<Locati... | 32 | 59 | 0.809375 |
b5bf3ddacdbe30566a0bfd04d063a326fb0db159 | 442 | package cn.edu.gdupt.genericity;
/**
* 泛型特性练习
*
* @author Liang Xiaobin<1490556728@qq.com>
* @version 2019.09.07
* @since JDK1.8
*/
public class Generic<T> {
private T key;
/**
* 泛型构造方法形参key类型也为T,T的类型由外部指定
*
* @param key
*/
public Generic(T key) {
this.key = key;
}
... | 14.258065 | 43 | 0.524887 |
486074c906c52921d73b2e582204a1bbdf2e50a5 | 1,961 | package com.primankaden.stay63.entities;
import com.primankaden.stay63.XmlUtils;
import org.w3c.dom.Element;
public class Stop extends AbsPoint {
@Override
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public String getTitl... | 23.345238 | 70 | 0.651198 |
c39f5ae418552a396327f315af7e7695c929b84c | 908 | class Solution {
public List<List<Integer>> combinationSum(int[] candidates, int target) {
Arrays.sort(candidates);
List<List<Integer>> res = new ArrayList<List<Integer>>();
List<Integer> comb = new ArrayList<Integer>();
backtrack(res,comb,candidates,target,0);
return res;
... | 31.310345 | 107 | 0.564978 |
28834954662b3246f0adbc68f604fbbd0a8c7bf0 | 4,061 | /*
* Exercise 6.33
* (Current date and time) Invoking System.currentTimeMillis() returns the
* elapsed time in milliseconds since midnight of January 1, 1970. Write a program
* that displays the date and time.
*
* Current date and time is May 16, 2012 10:34:23
*/
package chapter06.exercise.exercise06_33;... | 30.081481 | 91 | 0.551096 |
75f1dbbb17eb732a2a1e3a1e7cfba2d029cc57a7 | 6,850 | package org.infinispan.persistence.manager;
import static org.infinispan.commons.test.Exceptions.expectCompletionException;
import static org.infinispan.persistence.manager.PersistenceManager.AccessMode.BOTH;
import static org.infinispan.test.TestingUtil.extractComponent;
import static org.infinispan.test.TestingUtil.... | 42.283951 | 119 | 0.736788 |
209e62268b752473a256a2e747b04ed5edd93ac8 | 690 | package com.tomersela.lightex.ast;
import com.tomersela.lightex.parser.Token;
public abstract class UnaryOp implements Operator {
private final String symbol;
private final Exp expression;
private final Token token;
public UnaryOp(String symbol, Exp expression, Token token) {
this.symbol = sy... | 20.294118 | 64 | 0.63913 |
d21e563ac646451d88c71fe62cc76c4b335f1303 | 967 | /*
* @lc app=leetcode id=158 lang=java
*
* [158] Read N Characters Given Read4 II - Call multiple times
*/
// @lc code=start
/**
* The read4 API is defined in the parent class Reader4.
* int read4(char[] buf4);
*/
public class Solution extends Reader4 {
private char[] buf4 = new char[4];
private i... | 21.488889 | 63 | 0.496381 |
e1747d68c55cd34f560047d6273d9c1b607bde2d | 36,905 | /**
* personium.io
* Copyright 2014 FUJITSU 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 applica... | 38.322949 | 119 | 0.643571 |
83995121e071eaebff3578f37d891168f7424769 | 3,303 | package org.eclipse.aether.spi.connector;
/*
* 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 Li... | 28.474138 | 116 | 0.66818 |
27fb0feb5704013d5980d98db96842d1f9a6c573 | 370 | class Solution {
public int XXX(String haystack, String needle) {
int l1=haystack.length();
int l2=needle.length();
if(l2==0) return 0;
if(l1==0) return -1;
for(int i = 0;i<l1-l2+1;i++){
if(haystack.substring(i,i+l2).equals(needle)){
return i;
... | 21.764706 | 58 | 0.472973 |
f605f16c7c8f6bf99fcb6db8eb8926c2bce153cd | 276 | package me.cchu.mall.ware.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.cchu.mall.ware.entity.WareOrderTaskEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface WareOrderTaskDao extends BaseMapper<WareOrderTaskEntity> {
}
| 23 | 75 | 0.826087 |
8b79afbbf1e007f659b5119edf302ff0b016fc27 | 1,354 | package info.scry.utils;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.Signature;
import android.content.pm.PackageManager;
import java.security.MessageDigest;
public class Utils{
public static byte[] getSignature(Context context) {
try {
Stri... | 31.488372 | 101 | 0.55096 |
423e5ca2b4a260e63ff2c286c9394414dc6cb286 | 6,415 | package com.rockchip.alexa.jacky.activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
import android.view.KeyEvent;
import com.amazon.identity.auth.device.AuthError;
import com.amazon.identity.auth.device.api.authorization.AuthCancellation;
... | 37.51462 | 171 | 0.638504 |
d7f09fb1976602a9c5a5ff0fe609fa934249765b | 41,597 | package tfc.smallerunits.utils.world.client;
import net.minecraft.block.*;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.ClientChunkProvider;
import net.minecraft.client.network.play.ClientPlayNetHandler;
import net.minecraft.client.particle.DiggingParticle;
import net.minecraft.client... | 41.974773 | 279 | 0.701397 |
2ba9c8085569160ce40625f01f015339c0e5c0d5 | 194,612 | package eu.isas.peptideshaker.gui.tabpanels;
import com.compomics.util.gui.file_handling.FileAndFileFilter;
import com.compomics.util.Util;
import com.compomics.util.examples.BareBonesBrowserLaunch;
import com.compomics.util.experiment.biology.proteins.Peptide;
import com.compomics.util.experiment.identification.Ident... | 44.996994 | 294 | 0.612619 |
71e98796fb455e71e55a59ff72f0a47dfba95107 | 116,454 | package com.huaweicloud.sdk.iotda.v5;
import com.huaweicloud.sdk.core.http.FieldExistence;
import com.huaweicloud.sdk.core.http.HttpMethod;
import com.huaweicloud.sdk.core.http.HttpRequestDef;
import com.huaweicloud.sdk.core.http.LocationType;
import com.huaweicloud.sdk.iotda.v5.model.*;
import java.util.List;
import ... | 36.993011 | 186 | 0.595763 |
7e88ac88207401c2fb7d9d1098690950be399c94 | 5,285 | /**
* *****************************************************************************
* Copyright 2013 Lars Behnke
*
* 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.... | 24.354839 | 115 | 0.529801 |
93636401d3bf579b3d80c5cd6f79385e70ae4920 | 1,736 | package com.codahale.gpgj;
import org.bouncycastle.asn1.nist.NISTNamedCurves;
import org.bouncycastle.asn1.x9.X9ECParameters;
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.bouncycastle.crypto.generators.ECKeyPairGenerator;
import org.bouncycastle.crypto.params.ECDomainParameters;
import org.bouncy... | 39.454545 | 97 | 0.745968 |
64c68f9cbffa35145fa08afdbf4ce502cf4691e0 | 3,514 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.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 app... | 25.1 | 112 | 0.713432 |
e08b42c63237288d82d9c17db480e52d8867b2f0 | 1,015 | package com.moon.poi.excel.annotation;
import com.moon.core.lang.Unsupported;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 索引
*
* @author moonsky
*/
@Unsupported("暂不支持")
@Target({ElementType.... | 17.20339 | 56 | 0.589163 |
939cce1babff9784e99cee08546af152554c5036 | 2,570 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.file.datalake.models;
/**
* AccessControlChangeCounters contains counts of operations that change Access Control Lists recursively.
*/
public class AccessControlChangeCounters {
private long... | 35.205479 | 108 | 0.714786 |
13f47813dda73e3dd0ad6a568c1dd44b9a0089e6 | 1,427 | package com.android.picshow.utils;
import android.support.v4.app.Fragment;
import android.util.SparseArray;
import com.android.picshow.app.AlbumSetPage;
import com.android.picshow.app.TimeLinePage;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created by yuntao.wei on 2017/11/28.
* github:https://gi... | 25.035088 | 67 | 0.648213 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.