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 |
|---|---|---|---|---|---|
b49f01880035604033311d0224a9918ac7fcdf87 | 2,708 | package io.github.xuyao5.dkl.eskits.helper;
/**
* @author Thomas.XU(xuyao)
* @version 5/07/20 18:55
*/
public final class SnowflakeHelper {
/**
* 起始的时间戳
*/
private final static long START_STAMP = 1480166465631L;
/**
* 每一部分占用的位数
*/
private final static long SEQUENCE_BIT = 12; //序... | 32.626506 | 119 | 0.601182 |
4c2c4677da86204994b171187607c819b10d244d | 7,541 | /**
* Copyright (C) 2011-2015 The XDocReport Team <xdocreport@googlegroups.com>
*
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restrictio... | 39.072539 | 145 | 0.680679 |
c2a031711d99c2d3a52b73420ce4e0a57bc73eec | 4,632 | /*
* 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... | 33.085714 | 119 | 0.731434 |
5b2bb9a77142d6cc2be1acea250a4c93f3f0ef45 | 412 | package com.surgical.decision3.panel;
import android.support.v7.app.AppCompatActivity;
/**
* Created by Nattapon on 23/5/2560.
*/
public class UnityCommActivity extends AppCompatActivity
{
// @Override
// protected void onCreate(Bundle savedInstanceState)
// {
// super.onCreate( savedInstanceState ... | 22.888889 | 78 | 0.713592 |
7e06db63dc597f66c386d8dc82910b68f4bde1a0 | 2,182 | package com.github.wglanzer.annosave.impl.structure;
import com.github.wglanzer.annosave.api.*;
import com.github.wglanzer.annosave.impl.util.TypeFactory;
import org.jetbrains.annotations.NotNull;
import java.util.*;
/**
* @author W.Glanzer, 13.09.2017
*/
public class SAnnotationParameter implements IAnnotationPar... | 22.968421 | 116 | 0.653071 |
b2939e11a5923ab837de1815014e7a02281a6b9f | 9,302 | package sylvartore;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
public class AI {
private int[] visited;
public AI() {
visited = new int[9];
}
public int[] getBestMove(GameState state, int[][] cardAttributes) {
int max = -5;
int bestMoveCar... | 42.281818 | 138 | 0.563105 |
9fe4102565352c55fea6b7a7ca798eb9a4dbd30e | 1,603 | package org.interledger.codecs.ilp;
/*-
* ========================LICENSE_START=================================
* Interledger Core Codecs
* %%
* Copyright (C) 2017 - 2019 Hyperledger and its contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | 28.625 | 75 | 0.67748 |
0091d02e4072dfda613510de56bc1dccdb6ddeb5 | 2,317 | package seedu.weme.testutil;
import java.util.HashSet;
import java.util.Set;
import seedu.weme.model.meme.Description;
import seedu.weme.model.meme.Meme;
import seedu.weme.model.path.ImagePath;
import seedu.weme.model.tag.Tag;
import seedu.weme.model.util.SampleDataUtil;
/**
* A utility class to help with building ... | 27.258824 | 107 | 0.648684 |
119e139adcfd7340aa5679fb5f914a724798b3cb | 792 | package de.tum.in.www1.jenkins.notifications.model;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlValue;
import org.kohsuke.stapler.export.ExportedBean;
@ExportedBean(defaultVisibility = 4)
@XmlRootElement(name = "successInfo")
pub... | 20.842105 | 51 | 0.712121 |
707485c92bcd680828513fd08a1cb9e5a67d0b69 | 1,236 | package org.batfish.representation.arista;
import java.util.List;
import java.util.Set;
import org.batfish.common.Warnings;
import org.batfish.datamodel.Configuration;
import org.batfish.datamodel.routing_policy.expr.BooleanExpr;
import org.batfish.datamodel.routing_policy.expr.DestinationNetwork;
import org.batfish.d... | 31.692308 | 93 | 0.7589 |
11166c5f0096a5a75b21695ebdafcd387ebcc436 | 7,096 | /**
* Copyright © 2013-2021 The OpenNTF Domino API Team
*
* 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 require... | 24.638889 | 121 | 0.660513 |
f695152b36b1a4627c237288a348a9521d2c2328 | 12,660 | /**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.sesame.marketdata.scenarios;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import org.joda.beans.Bean;
import org.joda.... | 29.858491 | 115 | 0.619668 |
316fa5f663ea44e9975497a1be4725a3f77f45d8 | 1,145 | package com.javocode.autodeployer.deployment.domain.upload;
public class Application {
private String fullPathOfFile;
private String name;
private String ext;
private String dir;
public Application(String fullFilePath) {
this.fullPathOfFile = fullFilePath;
setUpFields();
}
... | 24.361702 | 69 | 0.572926 |
abaabf1f49ed39c3972f29fa04a7597c6ca97046 | 2,736 | package com.hfm.blocking;
import org.junit.jupiter.api.Test;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import jav... | 31.448276 | 140 | 0.54057 |
716c1597140311979824aabfe25f47ca7fb31182 | 81 | package xyz.dengjunbo.chapter2.controller;
public class CustomerEditServlet {
}
| 16.2 | 42 | 0.82716 |
52cfa20472a4c52f5d7d7a7f34f06a77cb8b1160 | 3,466 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.document;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import ... | 32.092593 | 114 | 0.684074 |
1949e124f4e6ca5934701ff3aa0207b4a6e76e83 | 4,462 | package org.xtuml.bp.model.compare.providers.custom;
//=====================================================================
//
//File: $RCSfile: AssociationComparable.java,v $
//Version: $Revision: 1.2 $
//Modified: $Date: 2013/01/17 03:35:46 $
//
//(c) Copyright 2013-2014 by Mentor Graphics Corp. All r... | 38.8 | 87 | 0.715598 |
5663ed9ac46898c858d05b0540f802f1b19d797d | 1,816 | package org.springframework.lock;
public class DefaultLockInstance implements LockInstance {
private static final long serialVersionUID = -6163953506521564197L;
private final Object identifier;
private final String key;
public DefaultLockInstance(final String key, final Object identifier) {
... | 24.213333 | 119 | 0.534692 |
b75c596744c3f0745c830e2f1b826e9a52143f54 | 502 |
package pd_observer;
import java.util.ArrayList;
import java.util.List;
abstract public class Sujeto {
protected List<Observador> observadores = new ArrayList<>();
public void agrega(Observador observador) {
observadores.add(observador);
}
public void suprime(Observador observador){... | 20.916667 | 64 | 0.643426 |
1ccb73e891eda6638d058b96d276e63ad63e8713 | 973 | package com.cute.xiaoy.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class UserDB extends SQLiteOpenHelper{
public UserDB(Context context) {
super(con... | 32.433333 | 135 | 0.735868 |
c33f9a4aee4ade2964d71d7778734bb307d8b70f | 1,653 | package io.mateo.googleapisdemo.controller;
import com.google.api.client.googleapis.json.GoogleJsonResponseException;
import com.google.api.services.drive.model.File;
import io.mateo.googleapisdemo.advice.GoogleApiClientExceptionHandler;
import io.mateo.googleapisdemo.service.GoogleDriveService;
import java.io.IOExcep... | 35.934783 | 95 | 0.736237 |
de5664960f949203dc57335635a5a0bf27028831 | 4,260 | package com.zj.musicplayer.view;
import java.awt.Dimension;
import java.awt.Toolkit;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.ecl... | 30.647482 | 108 | 0.699531 |
c879ad0eee90dcbc21810040814aa442c11bb361 | 2,246 | package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class Add extends AppCompatActivity {
TasksDatab... | 30.351351 | 139 | 0.619323 |
7f9b694d36d7e0bc82a71978932267b1f129f752 | 2,467 | package com.marnixbarendregt.gamelib.main;
import org.joml.Matrix4f;
import org.joml.Vector3f;
/**
* Created by marnixbarendregt on 20/09/2017.
*/
public class Camera {
private final float FOV, NEAR, FAR;
private Matrix4f projectionMatrix;
private Matrix4f worldMatrix;
private Vector3f position;
... | 26.244681 | 90 | 0.625051 |
8ab8a9ff664df829428c16223a55de886ac0b9f6 | 1,979 | package com.ngt.window;
import org.apache.flink.api.common.functions.ReduceFunction;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apach... | 44.977273 | 106 | 0.746337 |
800ed9593ef77cd96699c86504e558d5d90077af | 829 |
package org.apache.tomcat.util.buf;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
import org.apache.tomcat.util.buf.UEncoder.SafeCharsSet;
/**
* Test cases for {@link UEncoder}.
*/
public class TestUEncoder {
@Test
public void testEncodeURLWithSlashInit() throws IOExceptio... | 25.90625 | 76 | 0.628468 |
b13a7a0cf7f7f18b2d51b4302974d160cd670281 | 24,672 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 15.220234 | 810 | 0.800786 |
9c82611e319002982b4211ba6b805b69dd0787b6 | 917 | package org.objectstyle.japp;
import java.util.Collection;
import java.util.Collections;
import org.apache.maven.artifact.Artifact;
class ArtifactMatchPattern {
private Collection<String> strings;
ArtifactMatchPattern(Collection<String> patterns) {
strings = (patterns != null) ? patterns : Collecti... | 20.840909 | 83 | 0.59542 |
af34ad1c4551499881862106df9042a28f423c8f | 11,716 | /*
* Assurance
*
* Created by Mark Johnson
*
* Copyright (c) 2015 Digital Generalists, LLC.
*
*/
/*
* Copyright 2015 Digital Generalists, 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 ... | 32.544444 | 152 | 0.776033 |
a2f2930f43d6eb6ffcb2968661b39de3e0b0f292 | 803 | package com.kkensu.www.imagepager.util;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
/**
* 서비스 실행을 쉽게 하기 위한 Builder 패턴
*/
@SuppressWarnings("unused")
public class ServiceBuilder<T extends Service> {
private final Context context;
privat... | 22.305556 | 60 | 0.673724 |
4f4494b50bb5f7939a9b510c2298859660b4bf61 | 334 | package com.loserico.lambda;
public class ActionLambda {
@FunctionalInterface
interface Action {
void run(String s);
}
public void action(Action action) {
action.run("Hello!");
}
public static void main(String[] args) {
new ActionLambda().action((String s) -> System.out.print("*" + s + "*"... | 17.578947 | 76 | 0.628743 |
8d717acc553660cf9df6036a8fd64b56a25b2cbc | 3,914 | package com.chenbing.rapidm.util.menu;
import com.alibaba.fastjson.JSONObject;
import com.chenbing.rapidm.config.HttpUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component... | 36.579439 | 236 | 0.722534 |
ee1fb973f35f29c09923dad974938833c93da32e | 2,385 | package org.exiledkingcc.java.cfgs;
import org.exiledkingcc.java.cfgs.ann.ConfigItem;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
public enum ConfigManager {
INSTANCE;
private String defaultSource = "cp://";
private HashMap<String, Object> configItems = new HashMap<>();
... | 37.857143 | 85 | 0.642348 |
7a0ab2fdd11687f88419534abee5ff234b59a3f9 | 950 | package com.hearthsim.card.classic.minion.rare;
import com.hearthsim.card.CharacterIndex;
import com.hearthsim.card.minion.Minion;
import com.hearthsim.card.minion.MinionBattlecryInterface;
import com.hearthsim.event.effect.EffectCharacter;
import com.hearthsim.model.PlayerSide;
import com.hearthsim.util.tree.HearthTr... | 33.928571 | 106 | 0.725263 |
a0ea751216fa9da0d00c95576281f062714fd187 | 67,333 | // BuildTreeTable.java
package mit.cadlab.dome3.gui.guiutils.treetable;
import com.sun.java.ObjectTreeTable;
import mit.cadlab.dome3.gui.guiutils.msg.OneButton1Msg;
import mit.cadlab.dome3.gui.guiutils.table.DomeTable;
import mit.cadlab.dome3.gui.guiutils.table.DomeTableObject;
import mit.cadlab.dome3.gui.guiut... | 41.66646 | 226 | 0.622666 |
9b83e0af3e493f61a030bb1966d530b86bfd7557 | 237 | package com.fnl.caesar.sso.dao;
import com.fnl.caesar.sso.model.UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author dengcheng
*/
public interface UserInfoDao extends JpaRepository<UserInfo,Long> {
}
| 21.545455 | 67 | 0.78481 |
8f055f66906538ebc239246daca81cc8d0aef6cd | 248 | package com.java.tech.delegate;
/**
* created by Jason on 2020/2/23
*/
public class SimpleExecutor extends BaseExecutor {
@Override
public String query(String request) {
return "Simple Executor is executing:" + request;
}
}
| 19.076923 | 57 | 0.681452 |
e30fdaa6cc496036bbbc70bc0cfcdbf8e185ed98 | 6,724 | package ch.rweiss.terminal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import ch.rweiss.check.Check;
public class StyledText
{
public static final StyledText EMPTY = new StyledT... | 23.186207 | 96 | 0.565586 |
87110c73c5fde892ffd5e4cee44e22b202099bf3 | 4,970 | package quickdocs.storage;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import quickdocs.commons.exceptions.IllegalValueException;
import quickdocs.model.patient.Address;
import quickdocs.model.patient.Contact;
import... | 45.59633 | 111 | 0.726559 |
26e931d2fd19e4a3df85af500f4c1fbbf0b41c67 | 6,949 | package back_end;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Collection;
import java.util.function.Consumer;
import Grids.Grid;
import Grids.HexagonalGrids.*;
import Grids.RectangleGrids.*;
import Grids.TriangularGrid.*;
import utilities.GridLocation;
/**... | 28.133603 | 136 | 0.714203 |
8aae1e698f97f9342ddc8f26a70744010f14a2db | 1,112 | package entity;
import javax.persistence.*;
/**
* Created by ymcvalu on 2017/5/6.
*/
@Entity
@Table(name="clerk_client")
public class Clerk_Client {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Integer id;
private int clerk; //clerk外键
private int client; //client外键
public Inte... | 16.848485 | 55 | 0.563849 |
2adcb533fd7d32be03c06d3185eab02b0cfade90 | 334 | package com.sai.Multithreading;
/*
Cannot start the same thread twice
*/
public class Example4 extends Thread{
public void run() {
System.out.println("Running");
}
public static void main(String[] args) {
Example4 thread1 = new Example4();
thread1.start();
thread1.sta... | 18.555556 | 44 | 0.610778 |
7f0286635d449a3a872a4e5aa1e56cad636ad179 | 3,620 | package com.wayne.gestureverify.view;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.wayne.gestureverify.GestureCallback;
import com.wayne.gestureverify.R;
import com.wayne.gestureverify.model.GesturePoint;
import com.wayne.gesturev... | 39.347826 | 104 | 0.673757 |
c710d885fca962c7f8b8bafdd2e5b4f0156ec9a2 | 1,673 | package student.controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servle... | 24.970149 | 121 | 0.696952 |
921fffefbe581acfe5744f6c50e9804060c84a33 | 2,795 | package net.mcft.copy.betterstorage.inventory;
import net.mcft.copy.betterstorage.tile.entity.TileEntityContainer;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
/** An inventory that is connected to a TileEntityInventoy. */
public clas... | 34.9375 | 123 | 0.786047 |
982951432032cd7274ae2bdfd9ce085696c60ce7 | 19,098 | package org.apache.turbine.om.security;
/*
* 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 Lice... | 25.162055 | 130 | 0.598911 |
7a584a3fba0fb0a5e1d155375b37c22f8def5a01 | 6,111 | package technion.prime.eclipse.actions;
import java.io.File;
import java.util.Collection;
import java.util.LinkedList;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.Se... | 26.004255 | 108 | 0.719686 |
b8fe7ee73386e7c671ab9a3f800fff4199a4c379 | 4,051 | /*
* This file is part of creative, licensed under the MIT license
*
* Copyright (c) 2021-2022 Unnamed Team
*
* 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, inclu... | 38.216981 | 116 | 0.690694 |
718e22f3dd34add32ce81ebdee52c967fcec4f9e | 9,650 | package com.chequer.axboot.core.config;
import ch.qos.logback.classic.Level;
import com.chequer.axboot.core.code.AXBootTypes;
import com.chequer.axboot.core.context.AppContextManager;
import com.chequer.axboot.core.mybatis.typehandler.*;
import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;
import lombo... | 32.823129 | 152 | 0.587668 |
72b85846447a1f8e58b775ec082bf54e318b4825 | 425 | package com.mrkirby153.bfs.query;
import java.util.concurrent.ThreadFactory;
/**
* Thread pool factory for query threads
*/
class QueryThreadPoolFactory implements ThreadFactory {
private int threadNumber = 1;
@Override
public Thread newThread(Runnable r) {
Thread thread = new Thread(r, String... | 22.368421 | 85 | 0.691765 |
4ca6689bfb583060881140ac23c96ff73e0e547d | 5,072 | package com.huyunit.rxbus2.event;
import com.huyunit.rxbus2.thread.EventThread;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import io.reactivex.BackpressureStrategy;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Consumer;
import io.reactivex.subjects.... | 29.660819 | 141 | 0.59306 |
a390bdb55c76c2e1d33652a8d94dc63913888e17 | 255 | package com.fanap.podchat.model;
public class OutPutInfoThread {
private ResultThread result;
public ResultThread getResult() {
return result;
}
public void setResult(ResultThread result) {
this.result = result;
}
}
| 18.214286 | 48 | 0.670588 |
9ef0e0fac98d641af142a893d1b79a77514da39e | 184 | package com.qstarter.core.enums.convert2db;
/**
* @param <DB> : 保存到数据库的数据类型
* @author peter
* date: 2019-09-12 09:19
**/
public interface PersistEnum2DB<DB> {
DB getData();
}
| 16.727273 | 43 | 0.663043 |
a9f6e0216c9fc1a6e6c313d9e33e03bf524d7433 | 729 | /**
*
*/
package demo;
/**
* @author Arockia
*
*/
public class Pojo {
private String type = null;
private static String[] types = new String[8];
public Pojo() {
types[0] = "byte";
types[1] = "short";
types[2] = "int";
types[3] = "long";
types[4] = "float";
types[5] = "double"... | 15.847826 | 55 | 0.559671 |
f816d8f80e9427eea2703b72c9fc5d05e34f428f | 6,302 | package ru.mk.pump.commons.utils;
import com.google.common.collect.Sets;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import javax.annotation.Nullable;
import lombok.No... | 35.806818 | 139 | 0.664868 |
4f5eacb939439c63bd3fe5b6b0a74134aff0b037 | 3,455 | /**
* 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... | 36.368421 | 103 | 0.621129 |
32bad0ac4d6cc19087e147fcf478ee899b72e15f | 496 | package io.mycat.util.dataMigrator;
import io.mycat.util.dataMigrator.dataIOImpl.MysqlDataIO;
import io.mycat.util.exception.DataMigratorException;
public class DataIOFactory {
public static final String MYSQL = "mysql";
public static final String ORACLE = "oracle";
public static DataIO createDataIO(String dbTy... | 24.8 | 87 | 0.754032 |
963a5f7230d15e5269d58eb13a4c572fc4ba2ea0 | 868 | package com.jeffdisher.laminar.types.payload;
import java.nio.ByteBuffer;
/**
* Contains nothing - used for message types which require no payload.
*/
public final class Payload_Empty implements IPayload {
public static Payload_Empty create() {
return new Payload_Empty();
}
public static Payload_Empty deseri... | 17.36 | 75 | 0.6947 |
b6e5b8ae7998e444959e36c9e26e81dca2bd539f | 1,894 | package cn.shu.test;
import cn.shu.dealwithdata.ParseData;
import cn.shu.helper.DatabaseHelper;
import cn.shu.model.Customer;
import cn.shu.service.CustomerService;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* C... | 26.676056 | 69 | 0.657339 |
839f123a930008a8f35efde9e86a75bbd81a3bf8 | 4,346 | package com.socialapp.services.internal.callback.custom;
import java.util.Collections;
import java.util.List;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import com.socialapp.services.IResultProcessor;
import com.socialapp.services.dao.Member;
import com.social... | 33.953125 | 150 | 0.743442 |
27e6e85cacf6da420f07c7a33ac175dbb64cef26 | 4,289 | //JungleJuice: Johnny Wong, Qian Zhou, Victor Lin
//APCS2 pd01
//Lab02 All Hands on Deque!
import java.util.Iterator;
public class QQKachoo<T> implements Deque<T> {
private DLLNode<T> _front, _end;
private int _size;
public QQKachoo(){
_front = _end = null;
_size = 0;
}
... | 23.309783 | 79 | 0.564467 |
a337d9f088b8d87b5428dee282bdfb4475f55ea7 | 823 | package cn.apisium.nekoguard.fabric.callback;
import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.block.Block;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import org.jetbrains.annotations.NotNull;
public interface BlockForm... | 31.653846 | 92 | 0.669502 |
4fa13b4dc12865e35bf09555814056c36bdb8e50 | 6,001 | package org.huber.keytool.action;
import java.awt.Component;
import java.awt.Dialog;
import java.io.File;
import java.text.MessageFormat;
import javax.swing.JComponent;
import org.huber.keytool.KeyStoreBeanHistory;
import org.huber.keytool.KeyStoreTopComponent;
import org.huber.keytool.model.ConstantsHelp... | 40.006667 | 114 | 0.636394 |
0ad79dc5946254b03a6c0b3f358e54d153f3730f | 6,544 | package wangchen.java.com.cnews;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import and... | 32.078431 | 96 | 0.619499 |
885e7b5fca50f33a17ca0e164152337e35144bbf | 3,342 | /*
* Copyright (C) 2018 the original author or authors.
*
* 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 ap... | 38.413793 | 104 | 0.812986 |
9f0a3c0ad75e339fc42cc970eb0f67748dcd070c | 2,615 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 28.11828 | 80 | 0.617973 |
ff98948363f149f85e209ccda9ab2c4238316d90 | 92 | /** Package location for Pure Fabrication util classes tests. */
package lapr.project.utils; | 46 | 64 | 0.782609 |
c10c55be2c42c8a1079b8c2c978dc6d622c9ff04 | 3,104 | package me.neznamy.tab.api;
import java.util.UUID;
public interface TabPlayer {
/**
* Changes the requested property of a player temporarily (until next restart, reload or /tab reload)
* @param type Type of property
* @param value The value to be used
* @since 2.8.3
*/
public void setValueTemporarily(Enu... | 21.406897 | 102 | 0.685889 |
c0f35c6f0c887620653128782e15674b12ebdef9 | 1,547 | package dixx.game;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import io.realm.Realm;
import io.realm.RealmConfiguration;
public class StartActivity extends AppCompatActivity {
private MediaPlayer mp;
... | 23.8 | 92 | 0.515837 |
628b10b015a799fcc1ad4f54e37b9c54821699e1 | 1,220 | /*
* ExponentialDistribution.java
*
* Created on August 9, 2005, 3:24 PM
*
* author: Stephen A. Smith
*/
package jade.math;
import java.util.*;
/**
*
* @author stephensmith
*/
public class ExponentialDistribution implements ProbDistribution{
/** Creates a new instance of ExponentialDistribution */
... | 24.897959 | 129 | 0.633607 |
c9af9d5da5c43c183b7f334138ae9100e735d40b | 3,987 | package c.a.l.a;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.Region;
import android.graphics.drawable.Drawable;
import androidx.core.graphics.drawable.a;
public... | 24.018072 | 81 | 0.638826 |
52eab14055096f87841e956a9745223c724f89a5 | 8,952 | package com.jerryjin.kit.img.view;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import and... | 33.27881 | 142 | 0.600871 |
9350e128918a629ef5c4ed8f7846ebad6b893dc7 | 1,748 | /*
* Copyright (C) 2020 ActiveJ 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 32.981132 | 115 | 0.730549 |
cead699e9d5f3c0f5e0ebe7198aa413d39d28757 | 7,830 | /**
* ============LICENSE_START=======================================================
* org.onap.aai
* ================================================================================
* Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
* Copyright © 2017-2018 European Software Marketing Ltd.
... | 43.5 | 120 | 0.66986 |
4f6c5c61b86d8a54431b6063f1b761c3f0ed9c90 | 8,194 | package gov.med.va.innovations.ui.action;
import gov.med.va.innovations.Constants;
import gov.med.va.innovations.domain.Component;
import gov.med.va.innovations.domain.Template;
import gov.med.va.innovations.domain.VistaLocation;
import gov.med.va.innovations.service.PagingLookupManager;
import gov.med.va.innov... | 28.65035 | 109 | 0.664267 |
b07ccc09145c653a24075a30ced7b7ed3ae0a89f | 3,236 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 38.52381 | 101 | 0.720952 |
0290784e72c15b8fcee2eb633746f4030fbbb32b | 2,739 | /* Copyright 2022 G. Matthew Heitker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 26.852941 | 80 | 0.633078 |
e962c2a37cdd32676174ce508bf62a0d63686f02 | 2,520 | package org.interledger.core.asn.codecs;
import static java.lang.String.format;
import org.interledger.core.InterledgerFulfillPacket;
import org.interledger.core.InterledgerPacket;
import org.interledger.core.InterledgerPreparePacket;
import org.interledger.core.InterledgerRejectPacket;
import org.interledger.encodin... | 31.111111 | 97 | 0.734921 |
8399e80812b97beaec41552910d544a28e21edda | 3,678 | //
// $Id: MailTemplate.java 5677 2004-12-09 14:59:48Z anunez $
//
package edu.gemini.shared.mail;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* An email template, which can be used to substitute variables of the form
* <code>@VARIABLE_NAME@</code> for their corr... | 35.365385 | 97 | 0.629146 |
20b01e00c27085da114b4fb0cffaec6a072131c9 | 1,318 | package org.lvgo.octopus.core;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.lvgo.octopus.bean.OctopusPage;
import org.lvgo.silent.TaskHandler;
/**
* 数据提取
*
* @author lvgorice@gmail.com
* @version 1.0
* @date 2019/12/12 10:21
*/
public interface Extractor {
/**
* 多线程解析时,... | 21.966667 | 75 | 0.603187 |
64ba09e29acc8a7e87c2fda739a8753f13fbe045 | 2,492 | package com.msd.gin.examples.mapreduce;
import java.io.File;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop... | 38.338462 | 122 | 0.696629 |
41caf996e8c35d8fc891fcfb48f27797e1488835 | 434 | package com.ekain06.neopi.item;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterial;
public class UnbreakableArmorItem extends ArmorItem {
public UnbreakableArmorItem(ArmorMaterial material, EquipmentSlot slot, Settings settings) {
super(... | 25.529412 | 96 | 0.748848 |
aaf5be846ab06614e60886f41075b9ee31edff03 | 596 | package cn.tswine.jdbc.plus.conditions.update;
import cn.tswine.jdbc.plus.conditions.AbstractWrapper;
/**
* @Author: silly
* @Date: 2019/9/18 20:37
* @Version 1.0
* @Desc
*/
public class UpdateWrapper extends AbstractWrapper<UpdateWrapper> implements Update<UpdateWrapper> {
String[] excludeColumns;
@Ove... | 20.551724 | 100 | 0.657718 |
c4df21129aa8901c6658460e40c6219b5255c9f2 | 1,161 | package com.vucao;
import java.util.Arrays;
public class MyStack
{
private String[] stack;
private int currentIndex;
public MyStack()
{
this.stack = new String[1000];
this.currentIndex = 0;
}
public void push(String s)
{
if (currentIndex == 1000)
{
... | 18.725806 | 68 | 0.495263 |
e9aa2e57d320b670e0f5285087b6dfa08bb91e12 | 11,638 | /*
* Copyright 2012 DTO Labs, Inc. (http://dtolabs.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... | 47.502041 | 126 | 0.628458 |
1ad0f26239383af0ed55eb16c60f90e20ede7bfd | 453 | package g0901_1000.s0984_string_without_aaa_or_bbb;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.jupiter.api.Test;
class SolutionTest {
@Test
void strWithout3a3b() {
assertThat(new Solution().strWithout3a3b(1, 2), equalTo("bba"... | 23.842105 | 74 | 0.710817 |
baf94aa61f2ae098106bf42749b6513cb85b3707 | 4,182 | package pl.lodz.p.it.inz.sgruda.multiStore.entities.mop;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import pl.lodz.p.it.inz.sgruda.multiStore.utils.enums.ProductType;
import pl.lodz.p.it.inz.sgruda.multiStore.utils.interfaces.VersionGetter;
import javax.persistence.*;
import javax.validation.... | 41.82 | 135 | 0.594213 |
cc65476623725a4bcb5faf04c26b09688580ebac | 73,382 | package top.atstudy.advistory.advistory.dao.dto;
import top.atstudy.component.enums.EnumAdvistoryCategory;
import top.atstudy.component.enums.EnumAdvistoryLevel;
import top.atstudy.component.enums.EnumAdvistoryType;
import top.atstudy.component.enums.EnumDeleted;
import java.util.ArrayList;
import java.util.Date;
impo... | 34.993801 | 116 | 0.608187 |
cfa2b91735430c83a0e9f53242d715e9a148d94b | 1,021 | package com.crashlytics.android.answers;
import java.util.HashSet;
import java.util.Set;
class SamplingEventFilter
implements EventFilter
{
static final Set<SessionEvent.Type> EVENTS_TYPE_TO_SAMPLE = new HashSet() {};
final int samplingRate;
public SamplingEventFilter(int paramInt)
{
this.samplingRat... | 23.204545 | 110 | 0.644466 |
0a83bfa354d68299a05e58407b02651723a973e9 | 1,799 | package com.example.reportproblems;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.view.View.OnClickListener;
import android.view.View;
import android.widget.TextView;
import android.widget.EditText;
import java.util.concurrent.atomic.AtomicInteg... | 33.943396 | 123 | 0.605892 |
10ed71e1bacdd79853bccc628f476d3243106d92 | 896 | package com.liyulin.demo.common.business.dto;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lomb... | 24.216216 | 72 | 0.780134 |
cfe48b9cc44750213c5799ee9d1a9888ec888a9f | 3,282 | package com.cjm721.overloaded.util;
import net.minecraft.entity.Entity;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
import java.util.List;
public class WorldUtil {... | 43.76 | 188 | 0.617916 |
15b125d94862249acaa1c7031afbc7d1a9619d37 | 3,886 | public class Banking {
public static void main(String[] args) {
Bank bank = new Bank();
char ch;
do {
printMenu();
ch = getOperation();
try {
switch (ch) {
case 'a':
createAccount(bank);
break;
case 'e':
deposit(bank);
break;
case 'b':
withdraw(bank);
brea... | 26.080537 | 123 | 0.64385 |
2dd2a36377c313a5d4aa07a8bc2dbf12838906a8 | 3,545 | package cn.mcmod.tofucraft.inventory.slot;
import cn.mcmod.tofucraft.advancements.TofuAdvancements;
import cn.mcmod.tofucraft.item.ItemLoader;
import net.minecraft.entity.item.EntityXPOrb;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
i... | 30.042373 | 168 | 0.605642 |
7ccef010c1c3054d6c62e80c9c40ba253135e25e | 311 | public class book {
public static void main(String[] args)
{
String head1="a";
String head2="a^2";
String head3="a^3";
System.out.printf("%-8s%-8s%-8s%n",head1,head2,head3);
for(int i=1;i<5;i++)
System.out.printf("%-8d%-8d%-8d%n",i,i*i,i*i*i);
}
} | 28.272727 | 62 | 0.511254 |
6fe4913d0742fcafdfc3780bca7a182250e3891d | 51,809 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 67.197147 | 140 | 0.811288 |
e87b6a88bd4223a27cecd3de997e851b0584987e | 2,107 | package de.adito.propertly.core.common;
import de.adito.propertly.core.spi.IHierarchy;
import de.adito.propertly.core.spi.IProperty;
import de.adito.propertly.core.spi.IPropertyPitProvider;
/**
* Little helper class for debugging.
*
* @author j.boesl, 14.01.15
*/
public class PropertlyDebug
{
/**
* Transfor... | 27.723684 | 108 | 0.680589 |
b4afae360de15b0f4cefb92aa38e6e7f44b44314 | 2,159 | package dingo;
/**Contains all messages to permit communication among components
*
* @author marco
*
*/
public class CommandProtocol
{
public static final String MESSAGE_HI = "HI";
public static final String MESSAGE_BYE = "BYE";
public static final String MESSAGE_OK = "OK";
public static final St... | 46.934783 | 77 | 0.782307 |
1bc3f71ecbbe4ec87e4c7dc9a34192fc75c7b120 | 131 | package model.dto;
public interface PageInfo {
static final int ROW_PER_PAGE = 5;
static final int PAGE_PER_NEXT = 3;
}
| 16.375 | 37 | 0.709924 |
31e691b94d6d773794e3509f9e6874ecad87db8e | 4,609 | /*
* Copyright 2005 Joe Walker
*
* 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... | 34.654135 | 167 | 0.699067 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.