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 |
|---|---|---|---|---|---|
18db784da4e188f6377a60f9b7b05e3643387f5c | 1,190 | package main.utils;
import org.apache.commons.io.FilenameUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PathUtils {
public static String createPath(String... parts){
return String.join(File.separator, Arrays.asList(parts));
}
... | 30.512821 | 104 | 0.642017 |
d080d46c7aa00d22eb83ef6cf7ace67dad4c2913 | 2,551 | /*
* @(#)UnitTestingTask.java
*
* Copyright C.T.Co Ltd, 15/25 Jurkalnes Street, Riga LV-1046, Latvia. All rights reserved.
*/
package lv.ctco.scm.gradle.xamarin;
import lv.ctco.scm.gradle.utils.ErrorUtil;
import lv.ctco.scm.mobile.utils.ExecResult;
import lv.ctco.scm.mobile.utils.ExecUtil;
import lv.ctco.scm.mobi... | 34.472973 | 91 | 0.676205 |
c44d3fbcd22a136eb05b75f272c295c57b5b34a9 | 8,020 | /* */ package org.apache.log4j;
/* */
/* */ import java.io.PrintWriter;
/* */ import java.io.StringWriter;
/* */ import java.net.MalformedURLException;
/* */ import java.net.URL;
/* */ import java.util.Enumeration;
/* */ import org.apache.log4j.helpers.Loader;
/* */ import org.apach... | 28.540925 | 132 | 0.467207 |
2084d97e3646431b62774181fee12889049865c0 | 876 | package net.aydini.modescisc.cif.dao;
import java.io.Serializable;
import java.util.Date;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa... | 31.285714 | 112 | 0.77968 |
b5b09455ab305ae5cf188500631fbbbe8c160457 | 4,879 | package org.xxpay.service.channel.tencent.protocol.transfers_protocol;
import org.xxpay.service.channel.tencent.common.Configure;
import org.xxpay.service.channel.tencent.common.RandomStringGenerator;
import org.xxpay.service.channel.tencent.common.Signature;
import java.lang.reflect.Field;
import java.util.HashMap;
... | 26.807692 | 127 | 0.596844 |
ee6ce2e930aa89a9634dc2d9076e44a0907e40ec | 2,150 | /*******************************************************************************
* Copyright 2012 momock.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.o... | 30.714286 | 80 | 0.66 |
2a21ec4247dc9ae738a985ad3a35bb77ec86ce6b | 211 | package script.test;
public class OneEnterMapScript extends AbsEnterMap{
@Override
public int getId() {
return 0;
}
@Override
public void onEnterMap() {
//do something
}
}
| 10.55 | 52 | 0.620853 |
c50a9590fb16c8eebd2621f29e836c298837a13a | 510 | /***********************************************************
* @Description : 方法4:lambda表达式创建线程
* @author : 梁山广(Liang Shan Guang)
* @date : 2020/3/27 0:42
* @email : liangshanguang2@gmail.com
***********************************************************/
package chapter2.section4CreateThread;
publ... | 31.875 | 65 | 0.462745 |
17af4b8ad960fb085da6b71cf4238baa6e259cec | 880 | package com.tecsus.ddc.user;
import lombok.Builder;
import lombok.Data;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;
@Builder
@Data
public class User {
private String login;
private String username;
private String password;
private Date creat... | 24.444444 | 69 | 0.617045 |
f6edb3fb6af01fd217ed42487073b86679cc91da | 1,692 | package demo.model.enums;
import java.util.HashMap;
import java.util.Map;
/**
* 状态公共枚举
*
* @author 苟治国
*/
public enum StatusEnum {
DISABLED(0, "禁用"), ENABLED(1, "启用");
private StatusEnum(int status, String description) {
this.status = status;
this.description = description;
}
/... | 20.142857 | 65 | 0.531915 |
ba9959075c0865c9f33ad82c5fa8d3a95ab14b08 | 1,023 | package com.am.scheduling.presentation.screens.home.management.subject.create;
import com.am.scheduling.domain.usecases.subject.CreateSubjectCase;
import com.am.scheduling.presentation.abc.core.base.BasePresenter;
import com.am.scheduling.presentation.abc.core.base.BaseView;
import javax.inject.Inject;
import dagger... | 22.23913 | 78 | 0.677419 |
a8bd004b394823f5b680b8536cf7408ca45e7ded | 7,753 | /***
* CERT Kaiju Copyright 2021 Carnegie Mellon University.
*
* NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS
* FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER
* EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NO... | 52.385135 | 100 | 0.710177 |
e6cf945a7317027090d42e71714c6a796e110bd6 | 464 | package org.observertc.observer.configbuilders;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target({ METHOD, FIELD, ANNOTATION_TYPE, TY... | 25.777778 | 59 | 0.790948 |
02be839cb32370749678d75460ca283e4f78cf2c | 12,424 | /*******************************************************************************
* Copyright (c) 2015 Low Latency Trading Limited : Author Richard Rose
* 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 L... | 33.219251 | 151 | 0.609788 |
c2213f4b17fd7ca930b20cffc09625b53fa06754 | 2,458 | package com.example.tControl.component;
import java.io.ByteArrayInputStream;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.Query;
import co... | 31.922078 | 305 | 0.79821 |
973ae40f4171aab5ee5123815175e522416c6cc8 | 1,532 | package com.bingstar.bingmall.order.OrderDelete;
import android.support.v4.util.ArrayMap;
import com.bingstar.bingmall.goods.bean.BeanTranslater;
import com.bingstar.bingmall.net.BingstarErrorParser;
import com.bingstar.bingmall.net.ClientCallback;
import com.bingstar.bingmall.order.OrderStates;
import com.bingstar.b... | 30.64 | 111 | 0.697128 |
f2fb34b0876ea8129029dba6af2ff5c10f1142dd | 176 | package com.kafkademo.simpleproducer.service;
public interface DispatcherService {
public void processMessage(String guid, String source, String body, String newField);
}
| 22 | 86 | 0.806818 |
0813d4e1e4c2df4a7666ebfe10dd892cfc5e8d37 | 8,795 | /*
* MIT License
*
* Copyright (c) 2021 Hydrologic Engineering Center
*
* 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
* ... | 53.628049 | 120 | 0.713132 |
d3eb460d4ed64ef8ee5af7a4b1129f421a28820e | 2,298 | package kppk.jpx.version;
import java.text.ParseException;
import java.util.Objects;
/**
* TODO: Document this
*/
public class VersionRange {
public final Version lowerBound;
public final Version upperBound;
private VersionRange(Version lowerBound, Version upperBound) {
this.lowerBound = lowerB... | 32.828571 | 99 | 0.583116 |
1a0db357cad23aee0507504dd0f3d93f67f7638b | 22,131 | package io.github.ibuildthecloud.gdapi.factory.impl;
import io.github.ibuildthecloud.gdapi.annotation.Actions;
import io.github.ibuildthecloud.gdapi.factory.SchemaFactory;
import io.github.ibuildthecloud.gdapi.model.Action;
import io.github.ibuildthecloud.gdapi.model.ApiError;
import io.github.ibuildthecloud.gdapi.mod... | 30.866109 | 134 | 0.573946 |
936380c76a8cd6bc62938bf1da69e69d270b3255 | 1,165 | package org.apereo.cas.impl.token;
import org.apereo.cas.api.PasswordlessTokenRepository;
import org.apereo.cas.impl.BasePasswordlessUserAccountStoreTests;
import lombok.val;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.anno... | 30.657895 | 101 | 0.763948 |
276c9acad1a4226709498b5bac6ec3d5e9374cee | 1,396 | package sachin.com.example;
import java.io.RandomAccessFile;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Iterator;
public class TestPath {
public ... | 30.347826 | 106 | 0.66404 |
d3bc4bb4d3bdaac7647981a4b0c4afee7f0bc996 | 401 | // Java program to find compound interest for
// given values.
import java.io.*;
class interest
{
public static void main(String args[])
{
double principle = 10000, rate = 5, time = 2;
/* Calculate compound interest */
double A = principle *
(Math.pow((1 + rate / 100), time));
double CI = ... | 20.05 | 51 | 0.613466 |
00f9cffda5ffe4e444d7b3c997efa52eb16a5f06 | 9,371 | /*
* 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 ... | 42.789954 | 100 | 0.763739 |
d1bedd99b25b8c56f3bad55c235c4af4454c8cc8 | 2,320 | package com.geepmd.entity;
import java.util.Date;
public class BaselineQ1 {
private int baselineQ1Id;
private int surveyId;
private Date m1;
private int m2;
private int m3;
private int m4;
private int m5;
private int m6;
private int m7;
private int m8;
private String m9;
... | 15.263158 | 51 | 0.508621 |
4b95fb1c6a4ece9e122e73b07071f2f79f73f255 | 1,370 | package nextstep.subway.path.application;
import nextstep.subway.line.application.LineService;
import nextstep.subway.line.domain.Line;
import nextstep.subway.path.domain.Path;
import nextstep.subway.path.domain.PathFinder;
import nextstep.subway.path.dto.PathResponse;
import nextstep.subway.station.application.Statio... | 36.052632 | 103 | 0.772263 |
1c1ecc8c4aa4e81d967199aadedb894c1a6363b5 | 5,144 | /**
*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable
*
* 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... | 21.433333 | 81 | 0.636081 |
19e9eea8de0c18add4e15c819a54f7b8b593b5ad | 66,169 | /*
* Copyright 2021 Marcus Portmann
*
* 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... | 41.773359 | 287 | 0.614155 |
65d19fb9313bb785a37110c96a47e789255e7eb7 | 1,760 | package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.NavXHandler;
import frc.robot.subsystems.SwerveDriveSubsystem;
import frc.robot.util.MathUtil;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.wpilibj.Timer;
public class GoForwardNav extends Comma... | 28.387097 | 123 | 0.670455 |
1982a4062e4309426449552463cbf4bd864ac067 | 3,067 | package com.vaadin.tests.components;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.GridLayout;
import c... | 30.979798 | 78 | 0.574177 |
4056315a4039505bc43e8189b821160d302fbe9f | 4,216 | package org.bitsofinfo.hazelcast.discovery.etcd;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Test;
import com.hazelcast.config.ClasspathXmlConfig;
import com.hazelcast.config.Config;
import com.hazelcast.core.... | 28.680272 | 106 | 0.6824 |
e5a73998a9f0ca1c16d5631e59744016b8737d0e | 12,289 | /*
* Copyright 2020 Srikavin Ramkumar
*
* 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... | 32.170157 | 153 | 0.619497 |
8868fc2588683d96bfd9a00aca4ab14c145165b5 | 5,388 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.communication.networktraversal;
import com.azure.communication.networktraversal.implementation.CommunicationNetworkingClientImpl;
import com.azure.communication.networktraversal.implementation.Communicati... | 44.528926 | 172 | 0.760579 |
6c963152c872059641cbfabf31683d472cd92cc1 | 1,880 | package com.linkedpipes.etl.storage.unpacker.model.executor;
import com.linkedpipes.etl.executor.api.v1.vocabulary.LP_PIPELINE;
import com.linkedpipes.etl.rdf.utils.model.BackendTripleWriter;
import com.linkedpipes.etl.rdf.utils.vocabulary.RDF;
public class ExecutorConnection {
private String iri;
... | 26.478873 | 81 | 0.679255 |
79fc28692a196d5a83649e41f024e9573a3bd470 | 442 | package cz.tacr.elza.service.arrangement;
import cz.tacr.elza.domain.ArrChange;
import cz.tacr.elza.domain.ArrFundVersion;
import cz.tacr.elza.domain.ArrLevel;
/**
* Interface for providing description items for the level
*
* Used when creating new level
*/
public interface DesctItemProvider {
... | 26 | 120 | 0.762443 |
6be76b7f7fe2bd5325add60de250df906b12278f | 12,990 | /*
* Copyright 2021 ConsenSys AG.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 45.261324 | 213 | 0.773749 |
b50327b0f929cb16b4ef49c5cbeea1b4f680f8df | 1,038 | package ch.rmy.android.http_shortcuts.utils;
import android.content.Context;
import android.util.DisplayMetrics;
public class GridLayoutManager extends android.support.v7.widget.GridLayoutManager {
private boolean empty;
public GridLayoutManager(Context context) {
super(context, getNumberOfColumns(c... | 28.054054 | 92 | 0.628131 |
28225b0be5907652ff5ca1a41b004185ebc688f0 | 6,247 | package com.scloudic.jsuite.sysuser.mgr.entity;
import com.scloudic.rabbitframework.jbatis.annontations.Column;
import com.scloudic.rabbitframework.jbatis.annontations.ID;
import com.scloudic.rabbitframework.jbatis.annontations.Table;
import com.scloudic.rabbitframework.jbatis.mapping.GenerationType;
import java.bean... | 21.393836 | 175 | 0.631983 |
2116ecf2ef485532d59df916fd8ae54d72c60351 | 292 | package com.tterrag.k9.mappings.mcp;
import com.tterrag.k9.mappings.Mapping;
public interface IntermediateMapping extends Mapping {
/**
* Only meaningful for methods.
*
* @return If this method is static.
*/
default boolean isStatic() { return false; }
}
| 19.466667 | 54 | 0.664384 |
94db9425a9595cb503783871140582082476c94e | 1,494 | package behavioralDesignPatterns.strategyDesignPattern.projectGameScoreSystem.Main;
import behavioralDesignPatterns.strategyDesignPattern.projectGameScoreSystem.ConcreteStrategy.BlueBalloon;
import behavioralDesignPatterns.strategyDesignPattern.projectGameScoreSystem.ConcreteStrategy.RedBalloon;
import behavioralDesig... | 49.8 | 165 | 0.778447 |
2e7722b89a7e795b5a1e5963cdfe8f27f8bb4c98 | 4,807 | package com.mifish.bloomfilter.center.service;
import com.mifish.bloomfilter.center.BloomFilterLoadService;
import com.mifish.bloomfilter.center.model.BloomFilterTask;
import com.mifish.bloomfilter.center.worker.BloomFilterTaskWorker;
import com.mifish.bloomfilter.center.worker.GroupTaskWorkerManager;
import com.mifis... | 33.381944 | 118 | 0.650926 |
224931d525f76de6f7c13e02565c451b779d3315 | 5,507 | /*
* Copyright (c) 2018. Real Time Genomics Limited.
*
* 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 copyright
* notice... | 34.85443 | 99 | 0.661522 |
be7efea7fd0d11b219df95bc03b5f99e2aa073d9 | 1,212 | package com.harshalworks.fdm.file;
import java.io.Serializable;
public class FilePart implements Comparable<FilePart>,Serializable{
private static final long serialVersionUID = 1L;
String filePartPath;
int partNumber;
long totalSize;
long totalDownloaded;
public FilePart(String filePartPath, int partNumber... | 18.9375 | 67 | 0.740924 |
3c81bfe24816132a7ee827e62268a2d90c7cd471 | 5,710 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
**********************************************... | 35.6875 | 134 | 0.731173 |
7b9c5cf9bbb6f07b0d4e9669f50d4e33a4275416 | 1,587 | /*
* 版权所有:杭州火图科技有限公司
* 地址:浙江省杭州市滨江区西兴街道阡陌路智慧E谷B幢4楼
*
* (c) Copyright Hangzhou Hot Technology Co., Ltd.
* Floor 4,Block B,Wisdom E Valley,Qianmo Road,Binjiang District 2013-2015. All rights reserved.
*/
package com.huotu.hotcms.service.thymeleaf.service.factory;
import com.huotu.hotcms.service.entity.Article;
... | 35.266667 | 100 | 0.691871 |
928a293a13d8da6939cb1e785b68e08948880f8e | 5,166 | /*
* 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 ... | 45.315789 | 136 | 0.754743 |
87bd7c7761da30239b8c43b84c86d18edade3cd5 | 2,074 | /*
* 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 com.github.hiteshlilhare.jcpss.bean;
import com.github.hiteshlilhare.jcpss.util.ReleaseMonitorTimerTask;
import java.util.Cale... | 27.289474 | 79 | 0.62729 |
d6f2262f6c9eb5524072fab4aa85cd9c12d64e97 | 16,382 | /*
* author date comment
* chenweijun@skybility.com 2016/8/3 9:45 Created
* All rights reserved.
*/
package com.cwjcsu.thirdparty.leetcode;
import com.cwjcsu.projecteuler.util.Util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.M... | 26.2112 | 124 | 0.397815 |
e532bc21f0513a350e682cc5e2f921a079127b52 | 801 | package net.devh.springboot.autoconfigure.grpc.client.model;
import java.util.List;
public class HedgingPolicy {
private int maxAttempts;
private String hedgingDelay;
private List<String> nonFatalStatusCodes;
public int getMaxAttempts() {
return maxAttempts;
}
public void setMaxAttem... | 23.558824 | 74 | 0.701623 |
09c38ee42ee556def7b1beb5e1c9469e822e87d3 | 756 | package com.strategyobject.substrateclient.rpc.api.section;
import com.strategyobject.substrateclient.rpc.api.AddressId;
import com.strategyobject.substrateclient.rpc.api.Call;
import com.strategyobject.substrateclient.scale.ScaleType;
import com.strategyobject.substrateclient.scale.annotation.Scale;
import com.strate... | 32.869565 | 71 | 0.835979 |
4c31b2ca1bf859bc5b2ab91b9a4b437fcc4d79d1 | 2,329 | package com.github.nhojpatrick.hamcrest.testing.tests;
import com.github.nhojpatrick.hamcrest.testing.MatcherObjectTester;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.function.Executable;
import static org.hamcrest.Matc... | 34.761194 | 139 | 0.659511 |
90f0d08ca92f61490185fdb523c17fc1c4f74fd4 | 1,041 | package com.android.migrationmanager;
import java.util.ArrayList;
import android.app.Activity;
import android.app.FragmentManager;
import android.os.Bundle;
import android.util.Log;
public class DeviceListDialog extends Activity {
static final String KEY = "DEVICELIST";
static final String TAG = "MIGRATOR DIALO... | 26.025 | 64 | 0.715658 |
a109e6c52341bcafc6f37c23a20ff0fd88a5cbe9 | 281 | package io.github.hexarchtraining.hts.booking.adapter.out.jdbi.record;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TableRecord {
private Long id;
private int maxSeats;
}
| 20.071429 | 70 | 0.807829 |
97aa3ff814ba6af2403f6cb0ca2e6f8f2dc0177e | 1,764 | package eu.neosurance.sdk.tracer;
import android.content.Context;
import eu.neosurance.sdk.data.configuration.ConfigurationRepository;
import eu.neosurance.sdk.tracer.activity.ActivityTracer;
import eu.neosurance.sdk.tracer.activity.ActivityTracerFactory;
import eu.neosurance.sdk.tracer.connection.ConnectionTracer;
i... | 38.347826 | 116 | 0.778912 |
8da50c36a29815dff8b22e8e59f63f6653fd3bc6 | 4,880 | /*
* 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... | 41.008403 | 98 | 0.720492 |
44ec1575820096aee631faad3be7adaacb5c5fef | 8,466 | package domain;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import util.MoneySerializer;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
/**
* 用于返回购物车列表的DTO
* Created by howen on 15/11/24.
*/
public class ... | 27.487013 | 474 | 0.581266 |
44e8dcd46327ca561b5caff73b38455ed64fb084 | 292 | package com.android.commands.monkey.scriptevent;
public class DispatchPress extends IEvent {
private int mCode;
public DispatchPress(int mCode) {
super();
this.mCode = mCode;
}
@Override
public String toString() {
return "DispatchPress(" + mCode + ")";
}
}
| 17.176471 | 49 | 0.657534 |
79b63e2ec1c76f086fa3680c065219dfe9f3d04c | 4,953 | package org.docksidestage.sqlite.dbflute.whitebox.dfprop;
import java.util.ArrayList;
import java.util.List;
import org.dbflute.cbean.result.ListResultBean;
import org.dbflute.hook.CallbackContext;
import org.dbflute.hook.SqlLogHandler;
import org.dbflute.hook.SqlLogInfo;
import org.dbflute.util.Srl;
import... | 40.933884 | 91 | 0.532808 |
665ea1f69ad2901e2390dcad99c9c5fb59a140a5 | 524 | package com.ultimatesoftware.aeon.core.common.exceptions;
import com.ultimatesoftware.aeon.core.common.Resources;
/**
* Class that handles the exception thrown when unable to take a screenshot.
*/
public class UnableToTakeScreenshotException extends RuntimeException {
/**
* Initializes a new instance of t... | 30.823529 | 90 | 0.769084 |
f3ead3f155746e47ac62716c42a717db91e704ff | 1,782 | package book.java.tcpip.program.chapter4;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.logging.Level;
import java.util.logging.Logger;
public class EchoProtocol implements Runnable {
private static final int BUFSIZE = 32; // Size (i... | 34.269231 | 83 | 0.600449 |
8f5ffd8ac844446a295519b2b5fd3de8ec0b258d | 974 | package openperipheral.integration.railcraft;
import openmods.reflection.MethodAccess;
import openmods.reflection.MethodAccess.Function0;
import openmods.reflection.ReflectionHelper;
import openperipheral.api.adapter.IPeripheralAdapter;
import openperipheral.api.adapter.method.ReturnType;
import openperipheral.api.ada... | 31.419355 | 124 | 0.813142 |
85fb6ad851706fdd2b608c6d7e418716c1f03d95 | 324 | package com.sequenceiq.environment.parameter.dto;
public enum ResourceGroupUsagePattern {
USE_MULTIPLE,
USE_SINGLE,
USE_SINGLE_WITH_DEDICATED_STORAGE_ACCOUNT;
public boolean isSingleResourceGroup() {
return USE_SINGLE.equals(this) || USE_SINGLE_WITH_DEDICATED_STORAGE_ACCOUNT.equals(this);
... | 27 | 97 | 0.777778 |
16564ddbd5c479965a443f9730608e9cfa695606 | 662 | package crux.bphc.cms.models.enrol;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import crux.bphc.cms.network.MoodleServices;
/**
* Model class to represent response from
* {@link MoodleServices#searchCourses}.
*
* @author Siddhant Kumar Patel (17-Dec-2016)
*/
public class CourseS... | 20.060606 | 74 | 0.699396 |
5bcaafbc9ff16b62ffb0cc8db2b2f4131b8ef9a2 | 4,919 | /*
See lda-top/LICENCE (or https://raw.github.com/epimorphics/elda/master/LICENCE)
for the licence for this software.
(c) Copyright 2011 Epimorphics Limited
$Id$
*/
/*
(c) Copyright 2010 Epimorphics Limited
[see end of file]
$Id$
*/
package com.epimorphics.lda.support;
import java.io.ByteArra... | 38.429688 | 125 | 0.664566 |
bb4389aed2e12c0fe0d62b5e65e84026f4b8e342 | 2,578 | package de.unihamburg.swk.parsing.antlr4.swift3.test;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Test;
import de.unihamburg.swk.parsing.antlr4.java8.test.ExpectedTermsBuilder;
import de.unihamburg.swk.parsing.antlr4.swift3.test.SwiftTestParser.Type;
import de.unihamburg.swk... | 30.329412 | 94 | 0.74166 |
b80c8f271b448f3f0e2ae4e2349619e055203024 | 1,396 | package Utilities;
import Series.Series;
import Settings.Settings;
import java.util.List;
//import from .txt
//update mit refresh list
public class UpdateManager implements Runnable {
public Thread thread = new Thread(this);
private List<Series> SeriesList;
public UpdateManager(){
}
public v... | 19.661972 | 52 | 0.47063 |
80e07ebeb8e4449545d3aa4d63756f0d1de7911e | 6,845 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.intellij.inspection;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.codeInsight.daemon.impl.quickfix.RemoveUnusedVariableFix;
im... | 40.264706 | 119 | 0.642075 |
ebb845131b30c94cf301cac2fb2e2dd819add03b | 2,596 | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. 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
*
* Un... | 35.081081 | 98 | 0.73074 |
f413a9621b6bac45dfe9b1663e2b97ad38bce9c9 | 26,390 | /*
* Copyright (c) 2019 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA).
* Authors: Daniel Schel
*
* 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
*
* h... | 67.321429 | 200 | 0.739295 |
8fbe7c2f46adfe4509edbed36249d98ec61901ab | 1,285 | package org.artifactory.ui.rest.service.artifacts.search.searchresults;
import org.artifactory.rest.common.service.ArtifactoryRestRequest;
import org.artifactory.rest.common.service.RestResponse;
import org.artifactory.rest.common.service.RestService;
import org.artifactory.ui.utils.RequestUtils;
import org.slf4j.Logg... | 37.794118 | 96 | 0.754864 |
69b92fc9e2168995c1f2bba96ad6f77e16779a43 | 1,141 | package uk.gov.pay.ledger.queue;
import uk.gov.pay.ledger.event.model.Event;
public class EventMessage {
private EventMessageDto eventDto;
private QueueMessage queueMessage;
public EventMessage(EventMessageDto eventDto, QueueMessage queueMessage) {
this.eventDto = eventDto;
this.queueMess... | 27.166667 | 88 | 0.63979 |
46e0c2826b839fbbc6ab2aab5f4778727fcabb21 | 5,377 | package controller_msgs.msg.dds;
import us.ihmc.communication.packets.Packet;
import us.ihmc.euclid.interfaces.Settable;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import java.util.function.Supplier;
import us.ihmc.pubsub.TopicDataType;
/**
* This message is part of the IHMC footstep planning module.
... | 32.98773 | 177 | 0.699461 |
35f1aab48b8c3ed23d4a822b565238bb8cbc215e | 968 | package cn.udslance.leetcode.mainofleetcode3;
/**
* @author H
* @create 2021-08-22 17:49
*/
public class Solution309 {
public int maxProfit(int[] prices) {
//天数
int n = prices.length;
int[][] dp = new int[n][3];
//状态码:
//0 表示当天在股市没有钱,钱在手上
//1 表示钱在股市里,且当天不准备卖出
... | 24.2 | 72 | 0.454545 |
44cb4986835ec156625e7937b3862959c701cf8e | 532 | package me.tomsdevsn.hetznercloud.objects.general;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import me.tomsdevsn.hetznercloud.deserialize.DateDeserializer;
import java.util.Date;
import java.util.List;
import java.util.Map;
@Data
public class PlacementGroup {
private ... | 24.181818 | 65 | 0.774436 |
78d72ad9c4c077378ebcf614e044b40ec8a7a470 | 1,831 |
package es.bsc.dataclay.tool;
import es.bsc.dataclay.commonruntime.ClientManagementLib;
import es.bsc.dataclay.tool.Util.ERRCODE;
import es.bsc.dataclay.util.ids.AccountID;
import es.bsc.dataclay.util.ids.ContractID;
import es.bsc.dataclay.util.management.accountmgr.PasswordCredential;
public class AccessDataclayMod... | 36.62 | 121 | 0.731841 |
fc67dbdaf168e1b48047f99fdfb172538aa6c21b | 267 | package com.ninchat.sdk.events;
public class OnItemFocus {
public int position;
public boolean actionDone;
public OnItemFocus(final int position, final boolean actionDone) {
this.position = position;
this.actionDone = actionDone;
}
}
| 24.272727 | 70 | 0.700375 |
a0e704406429207c46c85f84e40d8c1709436c21 | 5,624 | package riskOfSpire.relics.Rare;
import basemod.abstracts.CustomBottleRelic;
import basemod.abstracts.CustomSavable;
import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.CardGroup;
import com.megacrit.cardcrawl.core... | 32.888889 | 163 | 0.631223 |
0f7f5676b6065a81f9994831ead6b5b5ffbfd6ce | 1,605 | package dev.conlabs.sqlbuilder.dto;
import java.util.ArrayList;
public class SQLTableDto {
private String owner;
private String tablename;
private String comment;
private String tablespace;
private ArrayList<SQLTableColumnDto> columns;
public SQLTableDto() {
super();
}
public SQLTableDto(String owner, S... | 20.844156 | 105 | 0.722118 |
a233dc5a6c7b71b5d5baa322caab174260b6624a | 3,453 | package com.helesto.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.NamedNativeQueries;
import javax.persistence.NamedNativeQuer... | 23.650685 | 108 | 0.598031 |
9dee1065c7356dff2fa92c541448960fcdd85c7c | 1,209 | package at.favre.tools.dice.service.hotbits;
import at.favre.lib.bytes.Bytes;
import at.favre.tools.dice.service.randomorg.RandomOrgServiceHandler;
import org.junit.Test;
import java.net.UnknownHostException;
import static at.favre.tools.dice.service.hotbits.HotbitsServiceHandler.ENTROPY_SEED_LENGTH_BYTE;
import sta... | 34.542857 | 100 | 0.699752 |
6d3032997ad011fe5c9c60175464731767a5edce | 32 | /**
*
*/
package com.oc.auth; | 8 | 20 | 0.5 |
a868b7bb5a41b1db8f84b99c759b89e816cda064 | 9,255 | /*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at zach@tectonica.co.il
*
* 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 L... | 32.36014 | 135 | 0.594165 |
c5cce78e69cc14f0a54a3f029da505eade266e2f | 6,479 | /*
* Copyright 2018 National Library of Norway.
*
* 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 ... | 42.625 | 104 | 0.471215 |
da0c97ae4e744a87ba6daa8b66689a8365e25c36 | 3,341 | package com.findmedecore.activity;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.widget.Toast;
import com.findmedecore.R;
im... | 36.315217 | 136 | 0.675546 |
b4bb2dc25095ca02e72bd4364a1fe4946b4440cf | 311 | package io.renren.modules.WeiYu.mapper;
import io.renren.modules.WeiYu.model.TodaySchedule;
import java.util.List;
public interface TodayScheduleMapper {
int insert(TodaySchedule record);
int insertSelective(TodaySchedule record);
List<TodaySchedule> selectByCidAndDate(TodaySchedule record);
} | 23.923077 | 65 | 0.797428 |
9f94a6b6bc5cc4966fb5ae0356cc1459201085f3 | 398 | package animations;
import java.util.List;
/**
* Created by one on 8/12/16.
*/
public class Vertices {
private String ID;
private List<Input> inputs;
public Vertices(String ID, List<Input> inputs) {
this.ID = ID;
this.inputs = inputs;
}
public String getID() {
return I... | 15.307692 | 52 | 0.582915 |
604a4d05613d18f91eeac4a919044a7efaa5845c | 2,393 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 24.927083 | 75 | 0.727539 |
e3c7a156a75f7bc19a2b0e5acba98f07a64de832 | 369 | package com.qiniu.interfaces;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public interface ITypeConvert<E, T> {
T convertToV(E line) throws IOException;
List<T> convertToVList(List<E> srcList);
int errorSize();
// 消费者方法,调用后现有的错误记录列表转换成 String 并清空列表
default St... | 18.45 | 44 | 0.699187 |
7c2bd38350f316dd9e4160d91c8b6fc3e4b6e505 | 3,907 | package home.smart.fly.animations.customview.bottomsheet;
import android.content.Context;
import android.os.Bundle;
import androidx.annotation.Nullable;
import com.google.android.material.bottomsheet.BottomSheetDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutMan... | 33.973913 | 106 | 0.651651 |
8280c2c6f2364ff8b486b93f2479c69005592bf9 | 1,106 | package com.airlenet.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;
/**
* Created by lig on 16/8/1.
*/
public class FullDisplayGridView extends GridView {
public FullDisplayGridView(Context context) {
super(c... | 29.891892 | 104 | 0.716094 |
b06fad78959d8b9b740f3a38652e03a616ecb2b5 | 38,117 | /*
* 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 ... | 30.789176 | 131 | 0.63389 |
c95feafd6e23fb2c97bc2e3850a74710a4cf104f | 4,233 | package com.musicbeat.web.service.impl;
import com.musicbeat.web.mapper.AlbumMapper;
import com.musicbeat.web.mapper.MusicAlbumMapper;
import com.musicbeat.web.mapper.SingerAlbumMapper;
import com.musicbeat.web.mapper.SingerMapper;
import com.musicbeat.web.model.Album;
import com.musicbeat.web.model.Singer;
import com... | 33.330709 | 142 | 0.665722 |
6a3a3ab6145a4c6942fc3b274f40c41ecf150b70 | 1,460 | /**
* Copyright (c) 2021 TruthBean(Rogar·Q)
* Debbie is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 26.545455 | 204 | 0.662329 |
6219a091d451e4df63046a9d5105d45e61b46853 | 1,271 | package ru.yandex.qatools.camelot.common;
import org.apache.camel.ProducerTemplate;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.yandex.qatools.camelot.api.EventProducer;
import java.util.HashMap;
import java.util.Map;
import static ru.yandex.qatools.camelot.api.Constants.Headers.BODY_CLASS;
im... | 30.261905 | 81 | 0.747443 |
18b67dcf120cffe37e5ffac427af9f0d1aa43050 | 339 | package com.example.search.repository;
import com.example.search.mapping.ProductDocument;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Component;
@Component
public interface ProductDocumentRepository extends ElasticsearchRepository<ProductDoc... | 30.818182 | 101 | 0.867257 |
a137388bf779742067ff6c6d1eb923d3155e97ac | 5,097 | package com.wang.boot.zookeeper.zkchapter3queue;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.CuratorFramework;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.data.Stat;
import org.springframework.util.CollectionUtils;
import java.io.ByteArrayInputStream;
import ... | 26.005102 | 117 | 0.519717 |
a3fc46afbe8bceab30bdd5557478408e10277d65 | 2,714 | package com.api.core.gateway.response;
import java.util.Map;
import com.api.core.gateway.API;
import com.api.core.gateway.APICode;
import com.api.core.gateway.request.APIRequest;
import com.api.core.pojo.message.ResultMessage;
import com.api.utils.APIUtils;
import com.api.utils.DateUtils;
/**
* 抽象响应<br>
* 如果含有请求信息... | 17.623377 | 64 | 0.684967 |
2ead54ef91bbab95ef80530ed58013b88c3f9c36 | 3,709 | package com.hryen.blog.service;
import com.hryen.blog.mapper.ArticleMapper;
import com.hryen.blog.mapper.CommentMapper;
import com.hryen.blog.model.Article;
import com.hryen.blog.model.Comment;
import com.hryen.blog.model.Pagination;
import com.hryen.blog.util.MD5Utils;
import com.hryen.blog.util.Snowflake;
import org... | 29.204724 | 103 | 0.631167 |
85b545a6928ed6ec4cededb68385492791bc282a | 3,023 | /*
* --------------------------------------------------------------------------------
* <copyright company="Aspose" file="VbaTests.java">
* Copyright (c) 2021 Aspose.Tasks Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and a... | 46.507692 | 111 | 0.709891 |
7919d4d5cdc9261ce57ad36d3eae09d664c72ee9 | 4,565 | package fr.umontp.edt;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.time.LocalDate;
import org.junit.jupiter.api.Test;
class PlanningFiltreurTest {
@Test
void test_PlanningFiltreur_par_date() {
PlanningFil... | 44.320388 | 120 | 0.716977 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.