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 |
|---|---|---|---|---|---|
9d69dd2efdde9350bd16db1dc1ee6df973a3fa86 | 1,138 | package at.roteskreuz.covidapp.convert;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import org.apache.commons.lang3.StringUtils;
/**
* Converter class for converting list of ... | 25.288889 | 88 | 0.73638 |
cbd0960d42c161fa8cbd5031a8c056ec46c3e098 | 907 | package pl.automatedplayground.myloader.example;
/*
Created by Adrian Skupień (automatedplayground@gmail.com) on 20.07.15.
Copyright (c) 2015 Automated Playground under Apache 2.0 License
*/
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.v... | 33.592593 | 103 | 0.771775 |
6c47e975c4ba9955d5f1ec17bf4ff495474361f9 | 243 | package no.ssb.useraccess.autocreate.model;
public class Domain {
private final String domain;
public Domain(String domain) {
this.domain = domain;
}
public String getDomain() {
return this.domain;
}
}
| 15.1875 | 43 | 0.63786 |
c6920abe4f6d6794d04606fcc38751eab9ba639c | 442 | package com.css.memento.atricle;
import java.util.Stack;
/**
* 备忘录管理类
*
* 中国软件与技术服务股份有限公司-设计模式培训(Java版)
*
* CSS. WangWeidong
*/
public class ArticleMementoManager {
private final Stack<ArticleMemento> ARTICLE_MEMENTO_STACK = new Stack<>();
public ArticleMemento getMemento() {
return ARTICLE_MEMENTO_STAC... | 17.68 | 75 | 0.748869 |
b6e5f0060203bc09b5018b7dde23ba3a8ee71889 | 1,723 | package com.github.wxiaoqi.security.admin.biz;
import com.github.wxiaoqi.security.admin.mapper.GrowthRecordMapper;
import com.github.wxiaoqi.security.api.entity.Course;
import com.github.wxiaoqi.security.api.entity.GrowthRecord;
import com.github.wxiaoqi.security.api.entity.MLesson;
import com.github.wxiaoqi.security.... | 35.163265 | 115 | 0.766106 |
2be9f8e304a418ea840bc48e117725860cf41a17 | 2,925 | /*
* Copyright 2016-2019 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 a... | 36.5625 | 90 | 0.783932 |
4b57e70552add31cca60a2019a98220cc0edcbfd | 983 | package com.performance.jvm.outofmemoryerror;
import java.util.ArrayList;
import java.util.List;
/**
* -verbose:gc -Xmn10M -Xms20M -Xmx20M -XX:+PrintGC
*
* [GC (Allocation Failure) 2208K->736K(19456K), 0.0181611 secs]
[GC (Allocation Failure) 736K->712K(19456K), 0.0215309 secs]
[Full GC (Allocation Failure) 7... | 30.71875 | 75 | 0.74059 |
e3902e540c5fc47871ddeef80487a05c24a59b46 | 1,629 | /* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed ... | 38.785714 | 102 | 0.754451 |
619e8e5205c637c207a2abae57d57e11cfc60656 | 3,722 | /*
* Copyright 2010 Last.fm
*
* 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... | 41.355556 | 153 | 0.729715 |
06b76e1fb8b6ba1617c4f51a9034bbb488f5e742 | 3,803 | /*
Copyright 2011 Bojan Savric
Revised version of April 6, 2010.
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 ag... | 33.955357 | 90 | 0.63371 |
e39992d4bf74e133bae7cc50dbb4616480cc0e9f | 1,398 | package org.jeecg.modules.wxChatMsg.entity;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.faster... | 26.884615 | 68 | 0.723891 |
bfe0248b5c438c2a6df6bcd67372ea780fa7610a | 107 | package org.lkpnotice.infra.architecture;
/**
* Created by jpliu on 2020/5/22.
*/
public class Main {
}
| 13.375 | 41 | 0.691589 |
f509e525578fd8eb64023996952dd04144566713 | 788 | package com.krishagni.catissueplus.core.exporter.services;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;
import com.krishagni.catissueplus.core.common.events.RequestEvent;
import com.krishagni.catissueplus.core.common.events.ResponseEvent;
import com.krishagni.catissue... | 39.4 | 110 | 0.841371 |
0494c9198f39f8aa16ae576b9ce35630abaf2e00 | 1,056 | package org.jenkinsci.plugins.workflow.flow;
import hudson.ExtensionList;
import hudson.ExtensionPoint;
import hudson.model.Item;
import edu.umd.cs.findbugs.annotations.CheckForNull;
import edu.umd.cs.findbugs.annotations.NonNull;
/**
* Provides a way to indirectly register durability settings to apply to pipelines... | 28.540541 | 94 | 0.661932 |
e3b4c00737dd2fd3d79d085e78205184f1abf24b | 1,541 | package algorithms;
import java.util.ArrayList;
/**
* Determines which number is missing from an unsorted array of values 1-100.
* Iterate through the array and compute the sum of all numbers.
* Now, sum of natural numbers from 1 to N, can be expressed as N(N+1)/2. In your case N=100.
* Subtract the sum of the ... | 20.824324 | 93 | 0.580792 |
699f68d34fabc88aa5c468f0079bc5ccc7703b23 | 235 | package ac.hs.se.model;
public enum ToDoStatus {
TODO("TODO"), DOING("DOING"), DONE("DONE");
private final String status;
ToDoStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
} | 14.6875 | 44 | 0.676596 |
bf9cf809f6192927f324e87cc4465980406a94ec | 1,746 | /**
* Copyright 2017 FIX Protocol Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 26.059701 | 100 | 0.710767 |
417fb804c7bf0a6d23f3cc426148257dc76cb4f8 | 2,678 | package com.qianmi.elasticsearch.index.analysis.tokenizer;
import com.qianmi.elasticsearch.index.analysis.common.Position;
import com.qianmi.elasticsearch.index.analysis.common.SubParseResult;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.lucene.analysis.Tokenize... | 31.505882 | 110 | 0.637043 |
589916da7ac4ce21c87c8ce90a32d982660ffe02 | 733 | package org.baswell.sessioncookie;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* A {@link SessionCookieRequestChain} for {@link javax.servlet.Filter}.
*/
public c... | 27.148148 | 116 | 0.80764 |
18f928862cda272e9b7e83de87e3ca00c43a9111 | 1,008 | package mvc.view.components.shapes;
import java.awt.*;
public class LabelShape implements Shape{
private int x, y;
private Label label;
public LabelShape(int x, int y, Label label) {
this.x = x;
this.y = y;
this.label = label;
}
public void draw(Graphics g) {
// ... | 16.8 | 50 | 0.555556 |
5699390871c50cd7a49f6eb8c66a6cac44ef9566 | 1,045 | package ge.geometry;
import ge.utils.GEBoundingBox;
import ge.utils.GERegularBoundingBox;
public class GELine extends GEGeometry {
private static double[] getLinePoints(GEBoundingBox boundingBox){
double[] buffVertices = new double[4]; // [x, y] 4 times
buffVertices[0] = boundingBox.getPoint1().... | 26.125 | 105 | 0.667943 |
866f4fcd8f9f9ab9915f0778fac6b727b4ab23ec | 3,633 | package org.spleen.example;
import org.spleen.Spleen;
import org.spleen.config.SpleenConfigurator;
import org.spleen.tool.SizeConverter;
import org.spleen.type.CacheObject;
import org.spleen.type.SimpleCacheObject;
public class SpleenExample {
public static void main(String[] args) {
//define new spleen
Sple... | 35.617647 | 129 | 0.737958 |
626e8642414da3d64e48e02c37737cf94b5be769 | 6,230 | /*
* LuceneField.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2021 Apple Inc. and the FoundationDB project 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 obt... | 48.294574 | 183 | 0.683788 |
afba50296680b942f1d1edb82437f1c7049ee469 | 326 | package de.digitalcollections.iiif.demo.config;
import de.digitalcollections.iiif.hymir.config.SpringConfigSecurity;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import(SpringConfigSecurity.class)
public class SpringConfigSecurityDe... | 32.6 | 68 | 0.865031 |
e9772723861503896c3d1bf61ca0637e2e0c808b | 22,565 | package com.dream.common.utils.elasticsearch;
import com.alibaba.fastjson.JSON;
import com.dream.common.utils.reflect.ReflectUtils;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.action.DocWriteResponse;
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
import org.elastics... | 38.638699 | 152 | 0.588123 |
830611fe8a352ecbda3de96533489ef19dbbf75c | 1,861 | package ahc;
import java.io.File;
import java.io.InputStream;
import com.ning.http.client.Realm;
import com.ning.http.client.RequestBuilder;
import com.ning.http.client.PerRequestConfig;
import com.ning.http.client.ProxyServer;
import com.ning.http.client.Cookie;
import com.ning.http.client.generators.InputStreamBodyG... | 37.979592 | 89 | 0.710908 |
679df2393d10c7ac92dbf3cc76f50952bd357a20 | 67 | package compiler.generator;
public abstract class Generator {
}
| 9.571429 | 33 | 0.776119 |
0a84057a71fa90a113a5d594f50ddcf388293f4b | 469 | package org.continuity.idpa.application.config;
import static org.assertj.core.api.Assertions.assertThat;
import org.continuity.api.amqp.AmqpApi;
import org.junit.Test;
public class QueueDeclarationTest {
@Test
public void test() {
assertThat(RabbitMqConfig.WORKLOAD_MODEL_CREATED_QUEUE_NAME).as("The defined que... | 27.588235 | 126 | 0.80597 |
d21ab5e122cad8cd6c6cc032afff98e54cac28c0 | 756 | package ninja.leaping.configurate.objectmapping.serialize;
import com.google.common.reflect.TypeToken;
import net.X7;
import ninja.leaping.configurate.ConfigurationNode;
import ninja.leaping.configurate.objectmapping.serialize.TypeSerializer;
import ninja.leaping.configurate.objectmapping.serialize.TypeSerializers$1;
... | 30.24 | 80 | 0.785714 |
299aa3bd59f2ea2dff5cfae2ea98411164595f17 | 5,923 | /*
* 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")... | 33.089385 | 99 | 0.696775 |
62717e5b5125224c9f2de63d45fea5b6cb261676 | 1,515 | package universalelectricity.api.energy;
import net.minecraftforge.common.ForgeDirection;
import universalelectricity.api.net.IConnectable;
/**
* Applied to all TileEntities that can interact with energy.
*
* @author Calclavia, Inspired by Thermal Expansion
*/
public interface IEnergyInterface extends IConnectab... | 39.868421 | 96 | 0.755116 |
2180fff3e27788af67672a09c23f924e15d14a6a | 807 | package com.suheng.structure.net.request.normal;
import android.util.Log;
import com.suheng.structure.net.request.basic.OkHttpTask;
import org.jetbrains.annotations.NotNull;
import okhttp3.ResponseBody;
public abstract class StringTask<T> extends OkHttpTask<T> {
protected static final String JSON = "{" + "\"co... | 33.625 | 99 | 0.664188 |
ea05453368b22ccaa59bec1c038a8c1c101fdebf | 1,110 | /*
* Copyright (C) 2016 PGS Software SA
* Copyright (C) 2007 The Guava Authors
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*/
package com.pgssoft.gimbus;
import android.support.annotation.NonNull;
/**
* Wraps an event that was p... | 25.813953 | 96 | 0.69009 |
593a227a6ad23c7d447a51f571baf6e880884a64 | 5,372 | /*
* Copyright (c) 2010-2020. Axon Framework
*
* 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 o... | 38.927536 | 120 | 0.711467 |
5d1dd728d6c175291baea2f111aa4a21aef868fb | 502 | public class EndDelCommand extends ModifierCommand{
private Document document;
private String str;
private int n;
public EndDelCommand(Document document,int n){
this.n = n;
this.document = document;
this.str = null;
}
@Override
public void excute() {
str = d... | 18.592593 | 51 | 0.583665 |
4cbe295cd26ab7a42e2773c2dd74fe5ac1c77653 | 3,426 | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class HtmlDemo extends JPanel {
JLabel theLabel;
JTextArea htmlTextArea;
public HtmlDemo() {
String initialText = "<html>\n" +
"Color and font test:\n" +
"<ul>\n" +
"<li><font ... | 36.446809 | 78 | 0.563047 |
b698d973dc48944588eec83058ca3b9d1af57dcd | 738 | import com.github.wxiaoqi.security.movie.MovieBootstrap;
import com.github.wxiaoqi.security.movie.entity.User;
import com.github.wxiaoqi.security.movie.service.IUserService;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.Sprin... | 21.705882 | 62 | 0.749322 |
56ce6cc884d9f8f7336c5334af23ddb2cee0a60e | 5,185 | /*
* The MIT License (MIT)
* Copyright (c) 2019 Hyperwallet Systems Inc.
*
* 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 t... | 41.814516 | 120 | 0.701254 |
617a49966d88436702dcbd1783f39e6d0db6e5b0 | 3,594 | /*
* Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. 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 restriction, including without limitatio... | 32.089286 | 98 | 0.706455 |
64d9ca81a7e9a1c30cffea5ebc8656eaa5c9ae1f | 2,843 | package api;
import dynamics.Compiler;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import codeGenerator.ModelJsonParser;
import codeGener... | 29.010204 | 93 | 0.650369 |
3af5445c5349cd7f97f492e2d3222d8575a93be3 | 3,032 | package io.opensphere.core.hud.awt;
import io.opensphere.core.model.GeographicBoxAnchor;
/** Internal frame to be displayed as a HUD window. */
public class HUDJInternalFrame implements HUDFrame
{
/**
* The geographic position to which the frame is attached. This may be null
* when the frame is not atta... | 24.650407 | 80 | 0.602243 |
429949ad7f26e63d41f4abec8a552209a03ecb72 | 4,467 | /*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 36.024194 | 167 | 0.686367 |
01884f7781334a3e6b20e88d2d1b8a22ed57da1d | 137 | public class MetadataPlayerDeath {
// Failed to decompile, took too long to decompile: net/minecraft/client/stream/MetadataPlayerDeath
} | 45.666667 | 100 | 0.817518 |
e5bb941eb6718806fb4740809958ef1188775b61 | 598 | package top.yzhelp.campus.shiro.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.io.Serializable;
import java.util.List;
/**
* @author <a href="https://github.com/gongsir0630">码之泪殇</a>
* @date 2021/3/29 12:52
* 你的指尖,拥有改变世界的力量
* @descri... | 17.085714 | 60 | 0.704013 |
532bf749b2ff5e65381004683f1a2449f6c17b7e | 518 | package org.ekstep.genieservices.commons.bean.enums;
/**
* Created by swayangjit on 22/5/17.
*/
public enum JWTokenType {
HS256("HS256", "HmacSHA256");
private String algorithmName;
private String tokenType;
JWTokenType(String tokenType, String algorithmName) {
this.algorithmName = algori... | 18.5 | 57 | 0.662162 |
4474d69a38f91cedb7895afe679e50ca3eaa16f6 | 1,682 | package com.ggp.players.continual_resolving.cfrd;
import com.ggp.*;
import java.util.List;
import java.util.Objects;
public class OpponentsTerminalState implements ICompleteInformationState {
private static final long serialVersionUID = 1L;
private double opponentPayoff;
private int opponentId;
publ... | 23.361111 | 74 | 0.64566 |
9300ab40fe3e5b6fbc4b63b20ffa897c0d1ee9e2 | 2,590 | import java.util.ArrayList;
import java.util.List;
/**
* Models the layout of places in vehicle. It can represent multi-floor place layout.
*/
public class PlaceLayout {
// level, posInRow, posInColumn
private List<Place[][]> m_places = new ArrayList<>();
private int m_floors = 0;
/**
... | 25.145631 | 99 | 0.569884 |
34365d7f896352c64e4fbea8cff4ddfe039f75b3 | 1,930 | package uk.nhs.adaptors.pss.translator.service;
import static uk.nhs.adaptors.pss.translator.util.DateFormatUtil.toHl7Format;
import static uk.nhs.adaptors.pss.translator.util.template.TemplateUtil.fillTemplate;
import static uk.nhs.adaptors.pss.translator.util.template.TemplateUtil.loadTemplate;
import org.springfra... | 42.888889 | 117 | 0.780829 |
cb7730e7946cb70bd01d7652b0054e51ae934888 | 370 | package sorcerer.client.data;
import com.google.gwt.core.client.JavaScriptObject;
/**
* @author Kohsuke Kawaguchi
*/
public final class LocalVariableEntry extends JavaScriptObject {
protected LocalVariableEntry() {}
public native String name() /*-{
return this[0];
}-*/;
public native Strin... | 17.619048 | 64 | 0.645946 |
b6f7d8d834deea971b7efc6ce8f1056b862090b4 | 1,985 | package compiling;
import java.util.ArrayList;
import java.util.Hashtable;
public class CompilerLogs {
//Changelog messages are stored here
public static ArrayList<String> changeLogMessagesOutdated= new ArrayList<String>();
public static ArrayList<String> changeLogMessagesDuplicate = new ArrayList<Strin... | 52.236842 | 103 | 0.779849 |
02a0896d71571a74cc97e1a1390301164e34dcaa | 4,654 | package nl.mwensveen.adventofcode.year_2017.day_18;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import com.google.common.primitives.Longs;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ForkJoinPool;
imp... | 38.783333 | 152 | 0.58208 |
b0bdb1db3db3c0b6c36d1b2ebdd322ba5314af57 | 627 | package com.partysys.partymanage.deus.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.partysys.core.service.impl.BaseServiceImpl;
import com.partysys.partymanage.deus.dao.DeusDao;
import com.partysys.partymanage.deus.entity.Deus;
i... | 31.35 | 82 | 0.822967 |
c8c4b7afa3bedb39b535d9c0b4c4b82f475d3fce | 4,759 | package com.ep.eventparticipant.adapter;
import android.app.Activity;
import android.app.ActivityOptions;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.support.annotation.NonNull;
import and... | 37.179688 | 129 | 0.626812 |
62a0784d2d594faf8e43f789b4035777383e8765 | 17,221 | 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.013949 | 810 | 0.799779 |
d186af134a6f6c9bd3ac1664009058e34cc582c0 | 20,417 | package com.flat502.rox.client;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.URL;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListI... | 34.841297 | 151 | 0.675516 |
2faed00e75a345da692c3cab3d898cba7301b9c5 | 565 | package io.walkers.planes.fundhelper.listener;
import io.walkers.planes.fundhelper.entity.model.FundModel;
import org.springframework.context.ApplicationEvent;
/**
* 补偿计算日增长率事件
* 计算为 null 的基金净值
*
* @author planeswalker23
*/
public class RecalculateNullIncreaseRateEvent extends ApplicationEvent {
/**
* ... | 20.178571 | 76 | 0.699115 |
5474858dddeead266ce06a1a97aedf48d9892f3f | 28,651 | class QbkZ1 {
}
class kfP {
public int Ir8IgozDOrk4 () throws iv0Uurp77 {
void[][] yACu = new MyUAcfw2eGp()[ null.bpwjFe6Ws8BE1] = !--!!null[ new SzOV8AfTgozX().qA9H9ADLMa];
boolean[] T6iR0 = null.Ar7;
bkLwaqmtDKIhzw[][][][] klj8D;
f[][] IiWrD0tbyCp;
U.iNJkq1TJ5PX();
... | 41.826277 | 319 | 0.493979 |
7c1c2ea946584464ef6c6d161491849c21d47ce5 | 2,621 | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Creates an explosion by changing images when someone is hit with a bullet and plays a sound
*
* @author Barry Al-Jawari, Betim Goxhuli, Edi Imamovic, James Lay
*
*/
public class Boom extends GifActor
{
int counti... | 25.201923 | 111 | 0.542541 |
5e973c419b82898da55af50483d6fa2977089db3 | 2,453 | package com.tramchester.domain.presentation.DTO;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.Nulls;
import com.tramchester.domain.places.LocationType;
import com.t... | 25.28866 | 99 | 0.648594 |
1023fee069d73bf5aec9222bb77864b61083b25a | 9,966 | /*
Copyright (C) 2013-2021 Expedia 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 wri... | 38.330769 | 128 | 0.681015 |
5c1cf23fae95053b3694583cc00e05d8c1685633 | 585 | package com.gupao.proxy.dynamicproxy.gpproxy.client;
/**
* @ProjectName: DesignPattern
* @ClassName: Test
* @Description: TODO(一句话描述该类的功能)
* @Author: tangqi
* @Date: 2020/4/24 1:12 下午
* @Version v1.0
*/
public class Test {
public static void main(String[] args) {
GPMeiProxy gpMeiProxy = new GPMeiPr... | 23.4 | 65 | 0.641026 |
362f14f9608916550fdfcbcc260d5c54c662a235 | 237 | package com.zjj.jrpc.proxy;
import com.zjj.jrpc.clutter.Clutter;
import com.zjj.jrpc.extension.SPI;
import java.util.List;
@SPI("cglib")
public interface ProxyFactory {
<T> T getProxy(Class<T> clazz, List<Clutter<T>> clutters);
}
| 19.75 | 62 | 0.734177 |
e35152623ee2ab43a508dcb371c74eef17ab28aa | 3,607 | package com.benstatertots.brewerydb.beer.list;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.v7.content.res.AppCompatResources;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | 34.682692 | 115 | 0.680621 |
14d5cca5519d10e0352ab2824d60b212303c55b6 | 2,673 | package com.newrelic.nrvideoproject;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.ui.PlayerView;
import com.newrelic.videoage... | 34.269231 | 98 | 0.66966 |
52885b1268a8c53957127d883d94dff6e430fc90 | 410 | package com.jjh.beans;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@Component
public class BookService {
@PostConstruct
public void setupBookService() {
System.out.println("BookService.setupBookService()");
}
@PreDestroy
publi... | 18.636364 | 55 | 0.77561 |
4543df599cf5353b0cbef6247d479a32dcbf9b05 | 15,594 | package com.commitstrip.commitstripreader.data.source;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.commitstrip.commitstripreader.common.dto.DisplayStripDto;
import com.commitstrip.commitstripreader.data.source.local.StripDaoEntity;
import com.commitstrip.co... | 31.063745 | 111 | 0.593562 |
077bba808c8e4c86a488fea80817fa324ab6ae57 | 2,862 | package com.yunussen.mobilappws;
import java.util.Arrays;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.event.EventListener;
import org.springframework.security.crypto.... | 33.670588 | 120 | 0.809923 |
2b1a40057806b8d1cc96646864cd0b2d9a37c7a0 | 2,770 | package com.google.android.gms.internal;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import com.google.android.gms.location.LocationSettingsResult;
import com.google.android.gms.maps.GoogleMap;
public interface bu extends IInterface {
/* renamed fr... | 37.945205 | 140 | 0.577256 |
ebc49b29063f1ced3338a466ec1ff995944d9e6f | 1,881 | package com.xuecheng.ucenter.service;
import com.xuecheng.framework.domain.ucenter.XcCompanyUser;
import com.xuecheng.framework.domain.ucenter.XcMenu;
import com.xuecheng.framework.domain.ucenter.XcUser;
import com.xuecheng.framework.domain.ucenter.ext.XcUserExt;
import com.xuecheng.ucenter.dao.XcCompanyUserRepository... | 31.881356 | 79 | 0.724083 |
a34673dd2d5c2ae5b882dd9d74c83640788b0775 | 1,446 | package com.austinlm.packetdump.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.LogRecord;
/**
* Custom logging formatter to make things nicer
*
* @author Keenan Thompson
*/
public class CustomFormatter extends Form... | 27.283019 | 109 | 0.639696 |
df9cd671589ec4c762b903c48264ec3ba3523299 | 340 | package com.cay.rockstock.utils;
import com.cay.rockstock.beans.enums.NumberEnum;
import org.junit.jupiter.api.Test;
public class NumberUtilTest {
@Test
public void NumberTest() {
System.out.println(NumberUtil.formatNumber("1.3元"));
System.out.println(NumberUtil.formatNumber("1.33万亿元", Number... | 24.285714 | 79 | 0.714706 |
4bed51816e4f6facc02cc3c752ad2ba56adb0246 | 12,380 | package com.annimon.ownlang.parser;
import com.annimon.ownlang.exceptions.LexerException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author aNNiMON
*/
public final class Lexer {
public static List<Token> tokenize(String... | 33.73297 | 116 | 0.498546 |
9e09a5db7979ee2a811852ce72eaa3c8a55bb9b3 | 12,931 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: SideeffectReportVO.java
package report;
import java.util.Date;
public class SideeffectReportVO
{
public SideeffectReportVO()
... | 21.129085 | 83 | 0.62006 |
b613ac27745955e0781ba25e7ba91e26baf62aa9 | 1,329 | package com.xgimi.dlna.upnp.xml;
import com.xgimi.dlna.upnp.control.QueryListener;
import com.xgimi.dlna.upnp.control.QueryResponse;
/**
* author : joker.peng
* e-mail : joker.peng@xgimi.com
* date : 2020/8/4 9:34
* desc :
*/
public class StateVariableData extends NodeData {
public StateVariableData() {
... | 21.786885 | 63 | 0.496614 |
a35e0e5817f17b837e589e724697d940ad3e89c2 | 1,855 | package com.maxheapsize.jpm;
import org.junit.Before;
import org.junit.Test;
import org.springframework.test.web.servlet.MockMvc;
import java.util.Date;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatche... | 37.857143 | 265 | 0.720216 |
806e09a46d01dee1fbfb453c86f96c030e5c9547 | 656 | package md.mgmt.common;
import md.mgmt.base.md.ClusterNodeInfo;
import java.util.List;
/**
* Created by Mr-yang on 16-1-11.
*/
public interface CommonModule {
/**
* 生成文件编码
*/
public String genFileCode();
/**
* 生成分布编码
*/
public Long genDistrCode();
/**
* 检验分布编码对应的节点能否继... | 17.263158 | 77 | 0.635671 |
3cdef9719f63d3a49277ceeaac4ddaf2696f6fa3 | 2,778 | package net.keabotstudios.superin;
import java.lang.reflect.Field;
import java.util.Arrays;
import net.java.games.input.Component;
import net.java.games.input.Component.Identifier;
public class InputAxis {
public static final int EMPTY = -1;
private final String name;
private int keyCode = EMPTY, m... | 28.9375 | 211 | 0.670266 |
79315caa2d6cb946f3134b54ff284e943e16a5eb | 6,619 | package com.objectcomputing.checkins.services.memberprofile;
import io.micronaut.core.annotation.Introspected;
import io.swagger.v3.oas.annotations.media.Schema;
import io.micronaut.core.annotation.Nullable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.Lo... | 26.582329 | 124 | 0.651458 |
11356c8966fbb5fdf2ff540d81f0604f26782a83 | 7,603 | // ========================================================================
// Copyright 2010-2012 NEXCOM Systems
// ------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... | 34.559091 | 82 | 0.527423 |
22f3159d8468b4da539cf36ddb4dd40bd6b6faaa | 6,476 | package io.elastest.eim.test.e2e;
import java.io.IOException;
import java.util.Collections;
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframew... | 34.817204 | 117 | 0.71958 |
655c6ee309b1965088bebbadb6ff8dd8fccc8050 | 1,234 | package com.bigdatalighter.kafka.offset.monitor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author: Leo Zhang(johnson5211.work@gmail.com)
**/
public class LoggingOffsetStateObserver extends AbsConsumerOffsetStateObserver {
private Logger logger = LoggerFactory.getLogger(LoggingOffsetStateOb... | 45.703704 | 166 | 0.742301 |
cdae8701c416e543ce63192a87d15e66cfdb7cc7 | 1,585 | package de.jpaw.bonaparte.refsc;
import java.util.List;
import de.jpaw.bonaparte.core.BonaPortableRef;
import de.jpaw.bonaparte.pojos.api.DataWithTracking;
import de.jpaw.bonaparte.pojos.api.SearchFilter;
import de.jpaw.bonaparte.pojos.api.SortColumn;
import de.jpaw.bonaparte.pojos.api.TrackingBase;
import de.jpaw.bo... | 44.027778 | 168 | 0.762776 |
bacfa7f01ae1213018ed7ff28434ae65e6729fea | 540 | package com.fghifarr.tarkamleague.models.requests;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.validation.constraints.*;
import java.util.Set;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SeasonReq {
@NotBlank(... | 23.478261 | 79 | 0.746296 |
6bf1ff899dad01b9b2f53bdc17428105498ad23a | 2,905 | /**
* Copyright 2020 Skyscanner 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 applicable law or agree... | 37.727273 | 112 | 0.676764 |
bbd6838309f74d43c8e118bea62d9c9f83c58009 | 3,168 | package com.alfianwibowo.ballonpopper.mainmenu;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.graphics.drawable.GradientDrawable;
import android.media.MediaPlayer;
import android.os.Handler;
import androidx.core.content.res.ResourcesCompat;
import androidx.appcompat.app... | 34.064516 | 98 | 0.643624 |
ad9f931b1bc2126d3a47b8878648bd03edd54692 | 158 | package sec03.exam05;
import java.util.*;
public class HashsetDemo {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
}
| 12.153846 | 41 | 0.702532 |
d2ac076ad4234695adeba8e17dbf2a8615fea1de | 650 | package ooga.utilities;
public class Coordinate {
private int x;
private int y;
/**
* This class encapsulates the x, and y coordinates of an entity.
* Can be extended to have three dimensional coordinate system
* @param x the x location of an entity
* @param y the y location of an en... | 17.567568 | 69 | 0.541538 |
4e10373d655d78d1925b01ba11d0efa9c03545fb | 2,021 | /*
* Copyright 2015 NAVER Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 34.254237 | 86 | 0.666007 |
bbd5ce5914a7abe7142942266475d7e663eaf515 | 4,735 | package com.e.typt.core.config.mybatis;
import com.baomidou.mybatisplus.MybatisConfiguration;
import com.baomidou.mybatisplus.MybatisXMLLanguageDriver;
import com.baomidou.mybatisplus.entity.GlobalConfiguration;
import com.baomidou.mybatisplus.enums.DBType;
import com.baomidou.mybatisplus.enums.IdType;
import com.bao... | 40.470085 | 112 | 0.754593 |
b67915c6a0b5efd7bc8eb18a952bf47d7cf1a471 | 1,712 | /*******************************************************************************
* Copyright 2013 Geoscience Australia
*
* 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://ww... | 26.75 | 100 | 0.689252 |
1b66165630b9e6dc88ba7d9b71570e743c63fa97 | 219 | package lego.ev3.core;
/**
* Created by Andrei Tanas on 14-11-28.
*/
public class ArgumentException extends Throwable {
public ArgumentException(String message, String argument) {
super(message);
}
}
| 19.909091 | 63 | 0.694064 |
595dd6354c48d017fb5419f9c694afb2607f47e1 | 4,906 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.dimm.vsm.fsengine;
import de.dimm.vsm.LogicControl;
import de.dimm.vsm.Main;
import de.dimm.vsm.auth.User;
import de.dimm.vsm.log.Log;
import de.dimm.vsm.net.StoragePoolQry;
import de.dimm.vsm.records.Storag... | 36.61194 | 189 | 0.637383 |
b397ac75d8beacc86aa73c7ca9e8c843d6b5f7e4 | 4,376 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/retail/v2alpha/prediction_service.proto
package com.google.cloud.retail.v2alpha;
public interface PredictResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.retail.v2alpha.PredictResponse)
com.... | 32.176471 | 102 | 0.687614 |
6f342d563554db22bbdd4a51958e715e748fdf4a | 1,661 | package com.example.phone_notes.activity;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import com.example.phone_notes.R;
import com.example... | 26.790323 | 74 | 0.74112 |
dbc5879a9572b7eaf5ebc435adf8bf8808ba824b | 2,610 | /*
* Copyright 2016, Red Hat Inc. and/or its affiliates.
*
* 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... | 39.545455 | 192 | 0.8 |
87fd83fdc33111a32b9b24b628d4cf983b05a910 | 3,999 | /**
* pims-web org.pimslims.data XmlExporter.java
*
* @author pajanne
* @date Jan 12, 2009
*
* Protein Information Management System
* @version: 2.2
*
* Copyright (c) 2009 pajanne The copyright holder has licenced the STFC to redistribute this
* software
*/
package org.pimslims.x... | 33.049587 | 113 | 0.668417 |
6f835ba293f15a061ee0900af9c63fa8a975729c | 353 | package com.xuxianda.thread;
/**
* Created by Xianda Xu on 2017/08/17 11:27.
*/
public class MyThread extends Thread {
private String name;
public MyThread(String name){
this.name = name;
}
@Override
public void run() {
for(int i = 0 ;i<10000;i++){
System.out.printl... | 16.809524 | 44 | 0.558074 |
2f85a986ac3ab2a1c278a320f3b175f8645ac45c | 3,080 | /**
* Copyright (C) 2014 Xillio (support@xillio.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... | 37.108434 | 113 | 0.681494 |
178f549da5f25e768f04703b4ff1c2643ebac14c | 8,140 | // BlockLimiter
//
// Part of DAVE-ML utility suite, written by Bruce Jackson, NASA LaRC
// <bruce.jackson@nasa.gov>
// Visit <http://daveml.org> for more info.
// Latest version can be downloaded from http://dscb.larc.nasa.gov/Products/SW/DAVEtools.html
// Copyright (c) 2011 United States Government as represente... | 28.661972 | 126 | 0.547052 |
17458e45853595d3a9609f6b9bb6ddcaa9cfd15d | 4,145 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.msu.cme.pyro.cluster.io;
import edu.msu.cme.pyro.cluster.io.RDPClustParser.Cutoff;
import edu.msu.cme.pyro.cluster.utils.Cluster;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
... | 35.127119 | 102 | 0.541616 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.