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 |
|---|---|---|---|---|---|
18d6105adce296a1e03ca675b8341d3000ae324a | 2,943 | /**
* Copyright (c) 2019-2030 panguBpm All rights reserved.
* <p>
* http://www.pangubpm.com/
* <p>
* (盘古BPM工作流平台)
*/
package com.pangubpm.bpm.dmn.feel.impl.juel.el;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.el.ELException;
import com.pangubpm.bpm.dmn.feel.impl.juel.FeelEngineLogger;... | 24.525 | 72 | 0.665987 |
4e483c514af9ed8759be867fe5e8fb2398a616ea | 6,923 | /*
* Copyright 2019 The Simple File Server 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 30.632743 | 108 | 0.530261 |
4f27c2251a225195cbb5d8f9dc48c7dc0bb04699 | 294 | package cn.org.atool.fluent.processor.mybatis.base;
import javax.annotation.processing.Messager;
/**
* 编译器相关类
*
* @author darui.wu
*/
@SuppressWarnings({"unused"})
public interface IProcessor {
/**
* 返回Messager
*
* @return Messager
*/
Messager getMessager();
} | 16.333333 | 51 | 0.64966 |
b59d9f84c83a79875f2a74349bc01d3bb0e40f19 | 28,483 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan.video;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
import stat... | 63.863229 | 217 | 0.72373 |
59549ccaaa6a944533a7d22c0014e9fcaee73c8c | 872 | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//101. Symmetric Tree
//Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
//For example, this binary tree ... | 24.222222 | 96 | 0.606651 |
b67c4e1cf3f5c0182063f8d9b070344a00cefdce | 13,889 | package de.gsi.chart.ui;
import java.security.InvalidParameterException;
import de.gsi.chart.ui.geometry.Side;
import javafx.animation.Animation.Status;
import javafx.animation.KeyFrame;
import javafx.animation.KeyValue;
import javafx.animation.Timeline;
import javafx.beans.InvalidationListener;
import javafx.beans.p... | 42.215805 | 119 | 0.599323 |
39c55f4eb545061c7efc7e9f0e17674f08a55494 | 153 | package com.ruc.anapodoton.paxos.core;
public interface PaxosCallback {
/**
* 执行器,用于执行确定的状态
* @param msg
*/
public void callback(byte[] msg);
}
| 15.3 | 38 | 0.686275 |
29d23e82e914ba05ec05d6fa59a8034d64118538 | 11,185 | /*
* 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.ibm.drl.hbcp.predictor.crossvalid;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import j... | 43.862745 | 158 | 0.674296 |
74f0bcec2f8910c26ab2ce749b4ef0471f55d20a | 2,620 | package com.moemoe.lalala.view.adapter;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.moemoe.lalala.R;
import com.moemoe.lalala.model.entity.UserTopEntity;
import com.moemoe.lalala.utils.StringUtils;
import com.moemoe.lalala.view... | 38.529412 | 239 | 0.651908 |
314e2fe180e58c4da21a90509b42cae6cf7bf3a4 | 264 | package be.kuleuven.ses.factory;
import be.kuleuven.ses.factory.tickets.Ticket;
public class AgeBasedTicketSeller implements TicketSeller {
@Override
public Ticket buyTicketFor(Person person) {
throw new UnsupportedOperationException();
}
}
| 22 | 59 | 0.757576 |
944f5373a130a66e915c06e47f21691e9a9e4ca5 | 1,239 | package com.github.wz2cool.elasticsearch.repository.support;
import org.springframework.data.elasticsearch.core.ElasticsearchOperations;
import org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.spring... | 39.967742 | 106 | 0.803067 |
a0b8af922052ba6a24e654a234675598a9e150f1 | 182 | package com.youlongnet.lulu.ui.event;
public class GiftPageEvent {
public int pageIndex;
public GiftPageEvent(int pageIndex) {
this.pageIndex = pageIndex;
}
}
| 16.545455 | 41 | 0.692308 |
9cc3bdeece8b26348ad1db475e4b46b6a7577739 | 2,519 | package com.smaato.soma.p239c.p246f;
import android.view.View;
import com.smaato.soma.C12408ia;
import com.smaato.soma.p238b.C12143a;
import com.smaato.soma.p238b.C12146d;
import com.smaato.soma.p238b.C12147e;
import com.smaato.soma.p256e.C12331a;
import com.smaato.soma.p256e.C12345k.C12346a;
/* renamed from: com.sma... | 37.044118 | 139 | 0.590314 |
22a3387cdb4c19f6ca151b6493292ffbf183a08c | 782 | package com.example.android.quakereport;
import android.content.AsyncTaskLoader;
import android.content.Context;
import android.text.TextUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import java.util.List;
public class EarthquakeLoader extends AsyncTaskLoader<List<Earthq... | 21.135135 | 74 | 0.66624 |
5b6c4ca589419171bd49241291eb09bb42de02e5 | 8,005 | package org.jiucai.appframework.common.excel;
import java.io.FileInputStream;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.FilenameUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.... | 31.89243 | 91 | 0.523173 |
8095f14bed801311600427867852ef545f3a6f00 | 626 | package com.example.demo;
import java.util.function.Consumer;
import java.util.function.Function;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import lombok.extern.slf4j.Slf4j;
@SpringBootA... | 23.185185 | 70 | 0.790735 |
043ecbf82ed2d49a7cd5a19dd1c7e7a562bffc32 | 3,691 | package com.smartgwt.sample.showcase.client.data;
import java.util.Date;
import com.smartgwt.client.widgets.grid.ListGridRecord;
public class ItemRecord extends ListGridRecord {
public ItemRecord() {
}
public ItemRecord(int itemID, String item, String sku, String description, String category, String un... | 19.529101 | 164 | 0.557302 |
aef36e7933919e477e5a7f7449ea943648e807f6 | 1,211 | package excx.entities;
import java.awt.Graphics2D;
import java.awt.geom.AffineTransform;
import java.awt.geom.NoninvertibleTransformException;
import excx.movement.Movement;
public abstract class Bullet extends Entity{
//private Image picture;
public Bullet(double x, double y, Movement type){
s... | 28.833333 | 171 | 0.689513 |
c62ff42710cd55cc92b92ada2ebb6b550afc9c65 | 839 | package com.nullfish.lib.vfs.exception;
/**
* 想定されてない実装があった場合に投げられる例外クラス。
* 存在しないファイルタイプが指定された、等。
*
* @author shunji
*/
public class VFSSystemException extends VFSException {
public static final String NAME = "system_error";
public VFSSystemException() {
super();
}
public VFSSystemException(String mess... | 18.644444 | 75 | 0.699642 |
df18628da9bb7c6b12b542ff90db30cfc8ef8722 | 1,002 | package edu.sgl.samples.restaurant.domain;
import java.time.LocalDateTime;
import java.util.List;
public class RestaurantOrdered {
private String id;
private String tableId;
private List<RestaurantOrderedItem> items;
private LocalDateTime startTime;
private LocalDateTime endTime;
public String getId... | 16.7 | 59 | 0.701597 |
65a1f8f7049f6c4d0425da9b90f7faaa970162af | 2,317 | package clockIn;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* 820. 单词的压缩编码
* 给定一个单词列表,我们将这个列表编码成一个索引字符串 S 与一个索引列表 A。
* <p>
* 例如,如果这个列表是 ["time", "me", "bell"],我们就可以将其表示为 S = "time#bell#" 和 indexes = [0, 2, 5]。
* <p>
* 对于每一个索引,我们可以通过从字符串 S 中索引的位置开始读取字符串,直到 "#" 结束,来恢复我们之前的单词列表。
... | 23.40404 | 87 | 0.480363 |
0a67e811d9df5891eb1add296b3c7d772b58b951 | 5,800 | /*
* MIT License
*
* Copyright (c) 2018 rmbar
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 38.410596 | 119 | 0.672414 |
61b7b9041ad3a48a95682c4282fe0fb5ffd70228 | 63 | package enumtests;
public enum Colours {
Red, Green, Blue;
}
| 10.5 | 21 | 0.714286 |
cd377b4cb69d6bb1c91176a73f1a8621965c1e81 | 3,498 | /*
* 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 co.edu.uniandes.csw.foros.resources;
import co.edu.uniandes.csw.foros.dtos.DiaDTO;
import co.edu.uniandes.csw.foros.ej... | 33.961165 | 107 | 0.628073 |
354dce980b4905ee5e936aeed159806c88de7f42 | 1,052 | package com.lhr.jiandou.utils;
import android.graphics.Bitmap;
import android.support.v7.graphics.Palette;
import com.lhr.jiandou.MyApplication;
import com.lhr.jiandou.R;
/**
* Created by ChinaLHR on 2016/12/19.
* Email:13435500980@163.com
*/
public class ImageUtils {
/**
* 根据bitmap提取颜色
*
* @... | 25.658537 | 94 | 0.553232 |
2e593d6063aaa7214f22f91cca073180075b70e5 | 2,272 | package no.deichman.services.entity.repository;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
public class UniqueURIGeneratorTest {
public static final String PERSON_IDENTIFIER_REGEX = "h[0-9]+";
public static final S... | 33.910448 | 97 | 0.658891 |
71a84e143ffe3a47fad7c348790522d7ee4c0066 | 6,478 | package org.intermine.web.struts;
/*
* Copyright (C) 2002-2021 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/lesser.h... | 40.742138 | 96 | 0.645878 |
1f252ea6fabce50f8c29d053d8232be8fb5d2d7c | 2,649 | package co.schemati.trevor.api.network.payload;
import co.schemati.trevor.api.network.event.EventProcessor;
import co.schemati.trevor.api.network.event.NetworkConnectEvent;
import java.util.UUID;
/**
* Represents the payload for a {@link co.schemati.trevor.api.data.User} connecting to the network.
*/
public class ... | 25.228571 | 99 | 0.679124 |
73e36cf14b4120840b5608f506605a11a584ef75 | 1,975 | package org.oxcart.streams;
import java.io.IOException;
import java.io.InputStream;
import java.util.Stack;
/**
* InputStream that merges multiple other InputStreams.
*
* @author ox.to.a.cart /at/ gmail.com
*
*/
public class MergedInputStream extends InputStream {
private Stack<InputStream> allStreams = ne... | 29.477612 | 117 | 0.601519 |
967c0283b547e2c7f6b1c811769ffbf757d17d7f | 1,360 | package ex1;
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;
// 서블릿을 상속받는다.
public class Ex1_F... | 26.153846 | 113 | 0.735294 |
5c992275de76b163a0ca4fb6d8d3d4c9dcf961b9 | 544 | package nlp.floschne.thumbnailAnnotator.db.mapper;
import nlp.floschne.thumbnailAnnotator.core.domain.DomainObject;
import nlp.floschne.thumbnailAnnotator.db.entity.Entity;
import org.mapstruct.factory.Mappers;
import java.util.List;
public interface IMapper<E extends Entity, D extends DomainObject> {
// IMapper... | 25.904762 | 68 | 0.777574 |
2b929633233e7f617a2cdd7fdf0b488806bdf443 | 2,564 | package net.jplugin.extension.reqrecoder.impl;
import java.util.Random;
import net.jplugin.common.kits.filter.FilterChain;
import net.jplugin.core.kernel.api.RefAnnotationSupport;
import net.jplugin.core.log.api.Logger;
import net.jplugin.ext.webasic.api.HttpFilterContext;
import net.jplugin.ext.webasic.api.I... | 26.989474 | 111 | 0.710608 |
a4a299b5a469ae81ff93a6a376c7a76dc8e72239 | 6,647 | package us.ihmc.mecano.multiBodySystem;
import java.util.Collections;
import java.util.List;
import us.ihmc.euclid.referenceFrame.ReferenceFrame;
import us.ihmc.euclid.transform.RigidBodyTransform;
import us.ihmc.euclid.transform.interfaces.RigidBodyTransformReadOnly;
import us.ihmc.mecano.frames.MovingReferenceFrame... | 30.351598 | 156 | 0.681059 |
0d254ad512cafa805dee7b0c7f25d6840693ae8b | 9,384 | package com.sciome.bmdexpress2.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.StreamCorru... | 21.182844 | 91 | 0.661871 |
b1f51819b1a702342ff980f4561d7a1eec9c923a | 4,290 | package net.csongradyp.badger.domain.achievement.trigger;
import net.csongradyp.badger.domain.AchievementType;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class ScoreTriggerTest {
@Test
public void testFireReturnsTrueWhenFiredWithTrigg... | 40.857143 | 120 | 0.7331 |
13b0dcaf387a5d1ccd088a971dcad03e5a5ed154 | 1,428 | package com.stonks.android.utility;
import com.github.mikephil.charting.data.Entry;
import com.stonks.android.model.BarData;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
public class SimpleMovingAverage {
final List<Entry> movingAverage;
final LinkedList<BarData> chartData;
... | 24.62069 | 83 | 0.596639 |
da0198e3ef8c5f3b624c132fd5f9f8941620f72a | 2,649 | package com.github.braisdom.objsql;
import com.github.braisdom.objsql.transition.ColumnTransition;
import java.sql.Statement;
import java.util.Optional;
/**
* Describes the Java Bean which maps a row in the table, and behaviors
* for Java Bean mapping.<br/>
*
* By default, a row of table will be adapted into an ... | 30.102273 | 97 | 0.711212 |
258f1da40d54d40e20884bad826b4e4c47d72dd1 | 2,416 | /*
* This file is part of ilo. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of ilo,
* including this file, may be copied, modified, propagated, or distributed except according to the te... | 33.09589 | 115 | 0.698675 |
4014a64ab9ef4024d15132c0ee35321b7d60c2cb | 2,976 | package edu.cmu.minorthird;
import edu.cmu.minorthird.ui.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
/**
* A launch bar for Minorthird applications.
*/
public class Minorthird extends JFrame
{
static final long serialVersionUID=20071015;
private String[] de... | 25.878261 | 86 | 0.712366 |
e35d6c2a6e447e093bf33bbe80cd88de74a7a430 | 502 | package org.vibioh.ioc.impl;
import org.vibioh.ioc.Writer;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.StandardCharsets;
public class SquareWriter implements Writer<Object> {
private OutputStream out;
public SquareWriter(final OutputStream out) {
this.out = out;
... | 25.1 | 96 | 0.733068 |
97e7601b67ca46b117b1e5ea57fb506b57258687 | 12,060 | package com.github.technus.tectech.thing.metaTileEntity.single.gui;
import com.github.technus.tectech.Util;
import com.github.technus.tectech.thing.metaTileEntity.single.GT_MetaTileEntity_DataReader;
import gregtech.api.gui.GT_GUIContainerMetaTile_Machine;
import gregtech.api.gui.GT_Slot_Holo;
import gregtech.api.inte... | 45.338346 | 247 | 0.580348 |
42321729e7e1d22e81af7833368f07943cb36083 | 300 | package io.github.yexiaoxiaogo.DAOSelect;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
WebsitesDao websitesDao = new WebsitesDaoLmpl();
Websites websites =websitesDao.getWebsites(1);
System.out.println(websites.getName());
}
}
| 18.75 | 53 | 0.666667 |
a2b6e67becb7abd69bd562dbc7512fd518167e9c | 30,973 | package eu.larkc.csparql.core.imis.tests;
import eu.larkc.csparql.core.imis.models.*;
import com.hp.hpl.jena.graph.Node;
import com.hp.hpl.jena.query.Query;
import com.hp.hpl.jena.query.QueryFactory;
import com.hp.hpl.jena.sparql.core.Var;
import org.mapdb.DB;
import org.mapdb.DBMaker;
import org.mapdb.Serializer;
im... | 35.276765 | 210 | 0.618313 |
fb2e140a769e5ce790c5baaee7f77628dba3a985 | 1,854 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.packageDependencies;
import com.intellij.icons.AllIcons;
import com.intellij.ide.util.treeView.WeighedItem;
import com.intellij.openapi.vcs.changes.ChangeLis... | 33.107143 | 140 | 0.737864 |
09d45741cdd2f69b3805bcd62be5f99472135158 | 1,275 | package com.svea.webpay.paymentgw.entity;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
public class Row {
private String id;
private String name;
private String description;
private Long amount;
private Long vat;
private Double quantity;
private String SKU;
priv... | 17.708333 | 49 | 0.697255 |
0658aaa9b8ad1ea4d045c06499f69261bd59a036 | 2,237 | /*
##################################################################################
# License: MIT
# Copyright 2018 Agile Data 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 withou... | 32.42029 | 87 | 0.654448 |
d70557e2dc7e8e1586931a3d1f2dbab487c08771 | 2,690 | package com.xiaojukeji.kafka.manager.common.entity.vo.normal.consumer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* @author zengqiao
* @date 19/4/3
*/
@ApiModel(value = "消费组的消费详情")
public class ConsumerGroupDetailVO {
@ApiModelProperty(value = "topic名称")
pri... | 23.596491 | 70 | 0.613383 |
efd3ef1d5ce0c6767f7f5ebbb2074661187de5fd | 297 | package com.qa.TDL.persistence.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.qa.TDL.persistence.domain.TaskItem;
@Repository
public interface TaskItemRepository extends JpaRepository<TaskItem, Long> {
}
| 24.75 | 76 | 0.835017 |
35cace31b1cbc5a888857e3fe89399cfc344c87f | 1,561 | package org.cice.jesh.filters;
import java.io.IOException;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.ws.rs.NameBinding;
import javax.ws.rs.container.ContainerRequestContext;
import javax.... | 31.22 | 92 | 0.755285 |
3d1388ca9da2b587d928652dbe9eba3251ab6189 | 1,588 | package com.jonki.popcorn.common.dto.movie;
import com.jonki.popcorn.common.dto.movie.type.LanguageType;
import com.jonki.popcorn.test.category.UnitTest;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
import org.junit.experimental.categories.Category;
/**
* Tests for the Language DTO.
... | 27.37931 | 88 | 0.656801 |
1a831d32b1d23f869f3a9f291fd44f4dce9d5516 | 1,768 | /*
* ChessJApplet.java
* Created on October 22, 2006, 8:44 AM
* Written 11/04-5/05
* @author mhenry
*/
package com.burcumirza.HenryChess.Logic;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class ChessJApplet extends JApplet {
private ... | 27.625 | 92 | 0.591063 |
094caa8d8d1da5b8961c4572e1c335a6d3023c7e | 240 | package no.fint.springfox;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackageClasses = Config.class)
public class Config {
}
| 24 | 60 | 0.841667 |
b0ae12ebfb680554617e73018aeb1df09ee6594f | 2,306 | /*
* CompressorInterface.java
*
* Created on 22. august 2001, 17:20
*/
package neqsim.processSimulation.processEquipment.compressor;
import neqsim.processSimulation.processEquipment.ProcessEquipmentInterface;
import neqsim.processSimulation.processEquipment.stream.StreamInterface;
/**
* <p>
* CompressorInterfac... | 19.709402 | 100 | 0.589332 |
d114b62c9a6c4ea64cd914e12228ad1f7e1d3a92 | 1,657 | /*
* 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 ... | 30.127273 | 105 | 0.749547 |
fcae65a792a912067d971fe7db55b355e1e2c627 | 2,133 | /*
* Copyright 2011-2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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... | 27.346154 | 98 | 0.747773 |
b83a2863a9973ca585776b46474584879bf38321 | 2,394 | /*
* Copyright 2017 mk
*
* 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 writin... | 32.351351 | 129 | 0.680451 |
3420ee2ee33876beb182f9aef94a37b7dbd85a46 | 1,620 | package dc.longshot.system;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
public final class ScreenManager {
private final List<Screen> screens = new ArrayList<Screen>();
private final List<Screen> screensToAdd = new ArrayList<Screen>()... | 23.478261 | 105 | 0.674074 |
4d00d1e3786f0331be881e80e85dedd4e98e05f0 | 218 | package com.slydm.thinking.in.spring.dependency.inject.classloader;
/**
* @author wangcymy@gmail.com(wangcong) 2021/2/18 15:25
*/
public class A {
@Override
public String toString() {
return "I'm A";
}
}
| 16.769231 | 67 | 0.678899 |
1258f69f66f406c456d346ae177e49469f998458 | 288 | package net.pladema.clinichistory.documents.service.generalstate;
import net.pladema.clinichistory.documents.service.generalstate.EncounterGeneralState;
public interface EncounterGeneralStateBuilder {
EncounterGeneralState getInternmentGeneralState(Integer internmentEpisodeId);
}
| 32 | 86 | 0.871528 |
d1d8b365b8f7d7a362750dd9310f628050369b25 | 2,294 | package it.dfa.unict;
import java.util.List;
/**
*
* @author mario
*/
public class AppInput {
// Application inputs
private String inputFileName; // Filename for application input file
private String jobLabel; // User' given job identifier
// Each inputSandobox file must be declared below
// This variable c... | 20.300885 | 69 | 0.697472 |
f72384a7f67303e902667ade3002471efd8779a6 | 25,569 | package jetbrains.mps.lang.core.plugin;
/*Generated by MPS */
import jetbrains.mps.make.facet.IFacet;
import java.util.List;
import jetbrains.mps.make.facet.ITarget;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import java.util.ArrayList;
import jetbrains.mps.internal.collections.runtime.Sequence;
... | 44.390625 | 236 | 0.660096 |
50b3f3eecf0f90d55d9ce7453d61528324ba223c | 3,268 | /**
* TLS-Attacker - Anonymous submission
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package anonymous.tlsattacker.tls.protocol.handshake;
import anonymous.tlsattacker.modifiablevariable.ModifiableVariable;
import anonymous.tlsattacker.modifiablevariable.ModifiableVariab... | 36.311111 | 134 | 0.820379 |
46f559456dd7279276ee5a06ad59835209c4a5a5 | 394 | package io.jentz.winter.compilertest;
import javax.inject.Inject;
public class OuterClass {
static public class InnerClassWithInjectConstructorAndInjectedFields {
@Inject
NoArgumentInjectConstructor field0;
@Inject
OneArgumentInjectConstructor field1;
@Inject
publ... | 21.888889 | 74 | 0.71066 |
d3f1960430a8b19611daaf82d43b7ae3c43acc0a | 16,968 | /**
* 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... | 48.48 | 157 | 0.648161 |
1e4425ccfd43cc37aa026bd2ded1503b13cfde47 | 3,655 | /*
* Copyright 2012-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Modifications copyright (C) 2017 Uber Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License is
* loc... | 30.206612 | 99 | 0.729959 |
bc4c9d0eac75afbed63cc9672113f71be15037f0 | 761 | package sparkengine.plan.model.plan.visitor;
import lombok.Value;
import sparkengine.plan.model.plan.Plan;
import sparkengine.plan.model.plan.mapper.PlanMapper;
import sparkengine.plan.model.plan.mapper.PlanMapperException;
import javax.annotation.Nonnull;
import java.util.Arrays;
import java.util.List;
@Value
publi... | 24.548387 | 77 | 0.738502 |
359567d83a063eb734cae3f71396e338a9f80e88 | 2,755 | package com.kaleido.kaptureclient.domain;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.time.ZonedDateTime;
import java.util.Objects;
/**
* Chemistry Notebook
*/
public class Notebook implements Serializable {
private static final long serialVersionUID = 1L;
private Long... | 22.768595 | 109 | 0.581488 |
d0bfe3288b19fdee91ded0103c06f5412db9ead9 | 1,131 | package uk.co.idv.method.entities.push;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import uk.co.idv.method.entities.eligibility.Eligibility;
import uk.co.idv.method.entities.eligibility.Eligible;
import uk.co.idv.method.entities.method.Method;
import uk.co.idv.method.en... | 25.704545 | 82 | 0.735632 |
f95d4bb90d874922800611ec6c564baed2197c23 | 760 | package com.puntoslash.dipandroid;
import android.database.ContentObserver;
import android.database.Cursor;
import android.net.Uri;
import android.os.Handler;
import android.support.v4.content.Loader;
/**
* Created by antonio on 10/29/15.
*/
public class JobPostContentObserver extends ContentObserver {
private ... | 27.142857 | 81 | 0.707895 |
7080157b45c8877bd18afe2453a341545d2aede6 | 320 | package com.tpxt.utils;
import java.util.regex.Pattern;
/**
* 数字工具类
* @author zhoush
*/
public class NumberUtil {
private static final Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
public static boolean isNumber(String str) {
return pattern.matcher(str).matches();
}
}
| 18.823529 | 79 | 0.6125 |
b80d55fc62227991d1faa649496d3d1eaad6d129 | 1,959 | package com.github.stefvanschie.quickskript.bukkit.psi.condition;
import com.github.stefvanschie.quickskript.core.context.Context;
import com.github.stefvanschie.quickskript.core.psi.PsiElement;
import com.github.stefvanschie.quickskript.core.psi.condition.PsiIsBurningCondition;
import com.github.stefvanschie.quickskr... | 36.277778 | 119 | 0.726901 |
2f11310e31e4e7f2eeca779cd1eba08167a31694 | 1,394 | package com.mobilepolice.officeMobile.utils;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
public... | 30.977778 | 100 | 0.65495 |
f73fee8647c2a114209574071d52dc2ec671993b | 1,924 | // Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
package org.bytedeco.liquidfun;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.liquidfun.global.liquidfun.*;
/** The features th... | 40.083333 | 98 | 0.724012 |
96b96c0d7ac6a32e574b08932a96db5043a86f79 | 3,539 | package com.readmill.api;
import org.apache.http.client.methods.HttpGet;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.io.IOException;
import static org.hamcrest.MatcherAssert.assertThat;
i... | 38.053763 | 121 | 0.708392 |
0d65bcd870bab27ea59b2a3c6acec30816c90ebb | 969 | package com.twu.biblioteca.service;
import com.twu.biblioteca.controller.Request;
import com.twu.biblioteca.dao.impl.BooksDao;
import com.twu.biblioteca.service.impl.BookListService;
import org.junit.Before;
import org.junit.Test;
import java.io.PrintStream;
import static org.mockito.Mockito.mock;
import static org.... | 27.685714 | 105 | 0.731682 |
d5fbc6cbefc34d9383bc0d612ecf96002967b027 | 1,076 | package com.spacegame.game.item;
import com.spacegame.game.SolGame;
import java.util.List;
public class TradeContainer {
private static final float MAX_AWAIT = 180f;
private final TradeConfig myConfig;
private final ItemContainer myItems;
private float myAwait;
public TradeContainer(TradeConfig config) ... | 21.098039 | 56 | 0.633829 |
d76ceb43c779ff611a47382fae0c5425ae17ffdd | 473 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.reactornetty.v1_0;
public final class ReactorContextKeys {
public static final String CLIENT_PARENT_CONTEXT_KEY =
ReactorContextKeys.class.getName() + ".client-parent-contex... | 27.823529 | 69 | 0.767442 |
42fc0e24155f100b4865a10a41917e7b17d7cfd2 | 895 | package cn.neyzoter.designpattern.factory;
/**
* 简单工厂模式<br/>
* 简单工厂模式通常就是这样,<br/>
* 一个工厂类 XxxFactory,里面有一个静态方法,<br/>
* 根据我们不同的参数,返回不同的派生自同一个父类<br/>
* (或实现同一接口)的实例对象。
* @author Charles Song
* @date 2020-6-12
*/
public class SimpleFactory {
public static void main (String[] args) {
Food food = FoodFa... | 19.888889 | 61 | 0.573184 |
3e05ffca1832a13f5e8727cda540a59cf2661de7 | 3,212 | /* LCM type definition class file
* This file was automatically generated by lcm-gen
* DO NOT MODIFY BY HAND!!!!
*/
package lcmtypes;
import java.io.*;
import java.util.*;
import lcm.lcm.*;
public final class control_parameter_respones_lcmt implements lcm.lcm.LCMEncodable
{
public byte name[];
public lo... | 27.452991 | 116 | 0.655978 |
3019bb9289f181cb6608b9ea891b1f3960b021e8 | 1,743 | /*
* Copyright (C) 2012 Google, Inc.
* Copyright (C) 2021 The LineageOS 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
*
... | 29.05 | 80 | 0.659208 |
283d366106e82ab95b2a96d1432c0624ef02e603 | 7,243 | class QuickSort {
public static void main(String[] a) {
QS mtTmp2;
int mtTmp3;
int mtTmp1;
mtTmp2 = new QS();
mtTmp3 = 10;
mtTmp1 = mtTmp2.Start(mtTmp3);
System.out.println(mtTmp1);
}
}
class QS {
int[] number;
int size;
public int Start(int sz... | 25.59364 | 50 | 0.408809 |
55bf6aabdc0d5b304113758b455872639f99bdc0 | 2,517 | /*
* Copyright 2009 Inspire-Software.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 appl... | 35.450704 | 97 | 0.655542 |
15ce182221ee5666349707b28e4f136145875d64 | 2,441 | /*
* 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 ... | 39.370968 | 158 | 0.697665 |
869d7ff9639d7f788bf67dee8b64f3d1ee722dad | 701 | package com.jetbrains.python.debugger.pydev;
public abstract class AbstractThreadCommand<T> extends AbstractCommand<T>
{
private final String myThreadId;
protected AbstractThreadCommand(final RemoteDebugger debugger, final int commandCode, final String threadId)
{
super(debugger, commandCode);
myThreadId = th... | 20.617647 | 109 | 0.743224 |
22b1bb682342a9763f738b4609809f2b7bf14509 | 2,118 | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 27.868421 | 77 | 0.706799 |
2f30d7ae512d517dfbaeeffc5dc31d1eb0e1405d | 16,868 | /**
* Copyright (c) Microsoft Corporation
*
* All rights reserved.
*
* MIT License
*
* 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 limitati... | 40.066508 | 154 | 0.63908 |
2db246bd39251fb972fedee8cf07083247849371 | 2,080 | package com.chain.utils;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.slf4j.Logger;
import com.chain.logging.ChainUtilsLoggerFactory;
/**
* Number类的工具类
*
* @author Chain
* @version 1.0
*/
public class NumberUtils {
private static Logger logger = ChainUtilsLoggerFactory.getLogger(Numb... | 24.761905 | 110 | 0.669231 |
2a235dcd4a7941ea85783bb66e5b2bd7f0966999 | 107 | package org.nasa.posicion;
/**
* @author fcardozo
* @version 1.0
*
*/
public interface IPosicion {
}
| 9.727273 | 28 | 0.64486 |
1153bcf7140c9361f55600a8d11cf6196d6b8f8f | 1,735 | package com.jadebyte.imagewatermark;
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.os.Environment;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import java.lang.ref.WeakReference;
/**
* Created ... | 35.408163 | 107 | 0.723919 |
bd4c1b806c150d5e5a52ec89ff0655785935e273 | 351 | package io.github.wanggit.antrpc.commons.config;
import io.github.wanggit.antrpc.commons.codec.serialize.kryo.KryoSerializer;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
@Data
public class SerializeConfig {
private String type = KryoSerializer.class.getName();
private Map<String, St... | 21.9375 | 76 | 0.766382 |
f15e00555b0fc11ea88b2fcc7fc36953f23a7ee0 | 5,718 | package weixin.popular.api;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpUriRequest;
import org.apache.http.client.methods.RequestBuilder;
import org.apache.http.entity.StringEntity;
import weixin.popular.bean.BaseResult;
import weixin.popular.bean.wxaapi.*;
... | 41.737226 | 167 | 0.631515 |
3fae54b48acacab16aa4e6b4a8e56e8e4de250b0 | 4,848 | package com.github.chaosfirebolt.chess.service.impl;
import com.github.chaosfirebolt.chess.dto.ChangePasswordModel;
import com.github.chaosfirebolt.chess.entity.Account;
import com.github.chaosfirebolt.chess.entity.Confirmation;
import com.github.chaosfirebolt.chess.entity.Password;
import com.github.chaosfirebolt.che... | 49.979381 | 176 | 0.760314 |
ce13deed11781c12eb8a95eabce6c56f30f92200 | 3,974 | package io.github.gusandrianos.foxforreddit.ui.fragments;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
import androidx.navigation.NavContr... | 43.67033 | 122 | 0.714142 |
1691c3ab516ecd10d9756ed1a505979e623f42e0 | 872 | package it.smartcommunitylab.riciclo.riapp.importer.model;
public class RiappIstruzioni {
private String frazione;
private String comeConferire;
private String prestaAttenzione;
private String si;
private String no;
public String getFrazione() {
return frazione;
}
public void setFrazione(String frazione) {... | 21.268293 | 59 | 0.744266 |
d45c3ad9d76af2a87216dfcf619e124b911bb766 | 490 | package com.bugsnag.mazerunner.scenarios;
import com.bugsnag.Bugsnag;
import com.bugsnag.Report;
import com.bugsnag.callbacks.Callback;
/**
* Sends a handled exception to Bugsnag, which overrides the default user via a callback
*/
public class ThreadsScenario extends Scenario {
public ThreadsScenario(Bugsnag b... | 22.272727 | 88 | 0.712245 |
e367ce765f98d75ffaaeada7da97968f7726da4b | 2,250 | /*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 32.142857 | 122 | 0.764444 |
87973a1970959f3930e41c729c1e392c21f51a1b | 742 | package xyy.java.note.dm.observer.webObserverPattern;
/**
* @author xyy
* @version 1.0 2017/3/10.
* @since 1.0
*/
public class Client {
public static void main(String[] args) {
// 创建一个目标
ConcreteWeatherSubject subject = new ConcreteWeatherSubject();
// 创建观察者
ConcreateObserver g... | 23.935484 | 70 | 0.61186 |
01a384978ecb8b1a010ede2d81d73e14844eb0b0 | 4,283 | package com.brins.lightmusic.ui.base.adapter;
import android.content.Context;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.... | 29.335616 | 110 | 0.646509 |
a30f18d5972cb0f79941d407c544e658412bf756 | 1,445 | package models;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class EndangeredAnimalsTest {
// @Before
// public void setUp() throws Exception {
// }
//
// @After
// public void tearDown() throws Exception {
// }
@Test
publ... | 27.788462 | 72 | 0.697578 |
cc718d330f220f183d28fdd5f294a0f69c684be4 | 4,689 | package com.sellit.controller.sale;
import java.io.IOException;
import org.springframework.stereotype.Component;
import com.sellit.controller.Controller;
import com.sellit.persistence.Payment;
import com.sellit.persistence.Ticket;
import com.sellit.util.AppUtil;
import com.sellit.util.DoubleUtil;
import javafx.fxml... | 22.117925 | 111 | 0.744295 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.