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 |
|---|---|---|---|---|---|
14cff77cc0c98ddd010c10629805fa074f5255f9 | 2,976 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Lice... | 44.41791 | 106 | 0.739583 |
373c47b60df33aef05246a0bda77a49831a58a0b | 1,943 | package io.gitlab.allenb1.todolist;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.view.View;
import android.view.Window;
import java.... | 38.86 | 140 | 0.602162 |
25b7c227f09f0279f1f29c9c05d09c507a02f656 | 645 | package org.rjava.test;
import org.rjava.restriction.rulesets.RJavaCore;
@RJavaCore
public class RJavaDynamicLoading {
int i;
float f;
static {
String a = "test";
}
public static void main(String[] args) {
double d = 0;
for (int i = 0; i < 5; i++) {
d += i;
}
RJavaDynamicLoading symT... | 20.806452 | 84 | 0.624806 |
4d3a9f1ddf528adf388b2eb04e0d85776ed6986e | 1,012 | package org.ddljen;
public class Column extends AbstractSchemaObject {
private DataType dataType = null;
private boolean nullable = true;
private boolean autoIncrement = false;
private boolean unique = false;
private String description = null;
public Column() {
}
public Column(String name) {
super(name)... | 16.590164 | 54 | 0.721344 |
ddec5ac52245ebb4ef9367818e3592e2142d1a2a | 901 | package com.fun.learning.DynamicProgramming;
import java.math.BigInteger;
import java.util.Scanner;
public class SubStringWithString {
static BigInteger substrings(String balls) {
BigInteger sum = new BigInteger("0");
while (balls.length() > 0) {
int i = balls.length();
wh... | 27.30303 | 65 | 0.563818 |
c8618935588802b22d59c875fb2aef723ac1ad7d | 1,181 | package com.twu.biblioteca;
import com.twu.biblioteca.constants.BibliotecaBooksList;
import com.twu.biblioteca.service.BibliotecaService;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.junit.Assert.assertEqu... | 24.102041 | 93 | 0.723116 |
65d9f7c1342cdd87f0f9f15bf28410635c17c795 | 7,018 | package com.tle.jpfclasspath;
import com.tle.jpfclasspath.model.IPluginModel;
import com.tle.jpfclasspath.model.IResolvedPlugin;
import com.tle.jpfclasspath.model.JPFPluginModelManager;
import com.tle.jpfclasspath.model.JPFProject;
import com.tle.jpfclasspath.model.ResolvedImport;
import com.tle.jpfclasspath.parser.Mo... | 33.740385 | 98 | 0.689228 |
f7769c27cc5d8b5aac7540eca39c64c2e2f82cb9 | 596 | package org.xdef;
import org.xdef.sys.Report;
import org.xdef.sys.SRuntimeException;
import org.xdef.sys.ReportReader;
/** XD input stream/report reader in x-script.
* @author Vaclav Trojan
*/
public interface XDInput extends XDValue {
/** Reset input stream.
* @throws SRuntimeException if an error occurs.
*/... | 18.060606 | 49 | 0.724832 |
8b1809c26410d2eca27603b32a5fab3eae2674b6 | 9,700 | package cn.wizzer.modules.controllers.platform.losys;
import cn.apiclub.captcha.filter.image.TextureFilter;
import cn.wizzer.common.annotation.SLog;
import cn.wizzer.common.base.Result;
import cn.wizzer.common.filter.PrivateFilter;
import cn.wizzer.common.page.DataTableColumn;
import cn.wizzer.common.page.DataTableOrd... | 30.3125 | 110 | 0.573711 |
46b2db2b9c3600a03dc45898d7564280596adaf7 | 53 | package com.tw.parking.boy;
public class Ticket {
}
| 10.6 | 27 | 0.735849 |
cddf224b6963b759f52ac04212c38a506d42a649 | 661 | package com.github.sparkzxl.alarm.annotation;
import com.github.sparkzxl.alarm.constant.enums.MessageTye;
import java.lang.annotation.*;
/**
* description: 告警注解
*
* @author zhouxinlei
* @date 2021-12-28 09:02:31
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @... | 16.121951 | 59 | 0.641452 |
de6b99c5805ac9afc3a69f6e11f59ae823fb2250 | 831 | package gnova.geometry.model.operator;
import gnova.core.annotation.NotNull;
import gnova.geometry.model.Coordinate;
import gnova.geometry.model.Geometry;
/**
* 空间距离操作
*
* Created by Birderyu on 2017/6/22.
*/
public interface ProximityOperator {
/**
* 获取与另一个几何对象的最短距离
*
* @param other
* @r... | 19.785714 | 71 | 0.629362 |
6b89ffb0d8a7cc50b12834b2d6884390b4d9afd0 | 6,609 | package org.aio.activities.skills.mining;
import org.aio.activities.activity.Activity;
import org.aio.activities.activity.ActivityType;
import org.aio.activities.banking.Banking;
import org.aio.util.Executable;
import org.aio.util.ResourceMode;
import org.aio.util.Sleep;
import org.osbot.rs07.api.filter.AreaFilter;
im... | 40.054545 | 205 | 0.594038 |
a784a15c3d2ef61ecf4d0c879c347bd816c545f5 | 160,680 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 59.687964 | 388 | 0.838237 |
c6c93f52a476f688d66b05e859a91467425b4762 | 13,682 | package com.seventh_root.atherna.command;
import com.seventh_root.atherna.Atherna;
import com.seventh_root.atherna.character.AthernaCharacter;
import com.seventh_root.atherna.classes.AthernaClass;
import com.seventh_root.atherna.player.AthernaPlayer;
import org.bukkit.command.Command;
import org.bukkit.command.Command... | 50.117216 | 159 | 0.507967 |
c223fc27cc4f6a829359b18cdb4157a16c32c230 | 4,732 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.squareup.leakcanary.internal;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import com.squa... | 45.5 | 241 | 0.613905 |
9d33c776c42c184499ec4d3e9dfa804c956d961d | 5,052 | package com.paypal.udc.service.impl;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectM... | 33.68 | 115 | 0.735748 |
eb845f61d2e52c96ef39c7a5e180270ad9a79717 | 340 | package site.higgs.limiter.interceptor;
import java.lang.reflect.Method;
import java.util.Collection;
/**
* 定义limiter的来源
*/
public interface LimiterOperationSource {
/**
*
* @param method
* @param clazz
* @return
*/
Collection<LimiterOperation> getLimiterOperations(Method method, ... | 17 | 86 | 0.673529 |
b609ad374a7a724be888d4ec601235255b020e1c | 96 | package com.github.binarywang.wxpay.bean.result;
public class WxPaySendRedpackResultTest {
}
| 13.714286 | 48 | 0.8125 |
26d320c08871baa79aeabb0c48148d0916ca4534 | 13,099 | package bouyomi;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import jav... | 31.188095 | 128 | 0.636232 |
0a3980ccf5387368824f7aca87552bb6139df390 | 49,700 | /*
* Copyright (c) 2011 Google, 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... | 41.694631 | 100 | 0.668994 |
53043f625fbb7fa7d63c611665ae2508bac74d68 | 1,314 | package net.folivo.springframework.security.abac.config;
import org.springframework.aop.support.AbstractPointcutAdvisor;
import org.springframework.aop.support.StaticMethodMatcherPointcut;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Bean;
import org.spr... | 41.0625 | 110 | 0.837139 |
6e7704a24466e378fe6935ad8b67e1815efdfef7 | 1,027 | package fileio.writer;
import exception.FileWriteException;
import model.Wallet;
import storage.IContainer;
public class BankWalletWriter {
protected BankWalletWriter() {
}
/**
* The function returns the file content of bank wallet container
*
* @param bankWallets = bank wallet container
* @return Str... | 27.026316 | 103 | 0.725414 |
c5427accfa9997dd0cae88b8a795a9907881e95e | 389 | package com.kiparo.injection;
import com.kiparo.presentation.screeens.home.HomeActivity;
import com.kiparo.presentation.screeens.home.HomeModule;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class ActivitiesModule {
@ContributesAndroidInjector(modules = { HomeM... | 25.933333 | 63 | 0.820051 |
c45b04d4c579a4995158cbbc7aa6d0d90800f02b | 229 | package gameLogic.Items;
import gameLogic.Tiles.Tile2D;
/**
*
* @author griffiryan
*
* GreenKey is a specialization of the Key class.
*/
public class GreenKey extends Key {
public GreenKey(Tile2D tile) {
super(tile);
}
}
| 12.722222 | 48 | 0.71179 |
ebd8328f7196b1afa04bdd34bc697bd5e9f270f7 | 2,792 | package cn.wizzer.app.msg.modules.models;
import cn.wizzer.app.sys.modules.models.Sys_user;
import cn.wizzer.framework.base.dao.entity.annotation.Ref;
import cn.wizzer.framework.base.model.BaseModel;
import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
@Comment("任务处理意见表")
@Table("msg_option")
public... | 21.643411 | 108 | 0.633954 |
55a127f93ffd8215cb1100bfb0272698923b4638 | 1,966 | package hongwei.leetcode.playground.other.baidu1;
public class BigNumber {
public Node initListA() {
Node node = new Node(1);
node.next = new Node(3);
node.next.next = new Node(6);
node.next.next.next = new Node(6);
return node;
}
public Node initListB() {
N... | 25.868421 | 54 | 0.459817 |
39da89e15a8df5caab01ae7b882733173e05d0da | 356 | package com.jsh.erp.service.materialCategory;
import com.jsh.erp.service.ResourceInfo;
import java.lang.annotation.*;
/**
* @author jishenghua qq752718920 2018-10-7 15:26:27
*/
@ResourceInfo(value = "materialCategory", type = 75)
@Inherited
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @int... | 22.25 | 53 | 0.775281 |
e2b583febbedb404485b2b613bcbdda775a9f443 | 2,599 | package com.ssagroup.ebi_app.services;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.ImageView;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import j... | 28.877778 | 89 | 0.614852 |
1e43cf7e4990b6c25e79ef1a77f2face72a4ba57 | 8,009 | package io.smallrye.reactive.messaging;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import static org.awaitility.Awaitility.await;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.enterprise.inject.se.SeCon... | 48.539394 | 120 | 0.752903 |
b5a6c030e64b5b5baeafbfc381ab1d865a7e8e5e | 1,836 | package com.ck.orangeblogdao.po;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ck.orangeblogdao.pojo.BasePo;
import java.util.Date;
@TableName(value="m_fnd_dictionary")
public class FndDictionaryPo extends BasePo {
/* */
private String dicCode;
/* */
private String dicValue;
/* */
... | 16.247788 | 53 | 0.583333 |
f4162dd63d8680d1719b8e7b5dd616aad0f855db | 1,286 | /**
* Copyright (c) 2011-2030, author jinchao (370696614@qq.com).
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unle... | 28.577778 | 88 | 0.741058 |
f4f39e3c760c01f07ef2a2b6c875cb75ed1130b6 | 2,275 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 27.409639 | 84 | 0.731868 |
bb44865dd4589ffaa6880992beb7bd4d0c4df5ab | 604 | package net.collaud.fablab.manager.data.virtual;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import net.collaud.fablab.manager.data.UserEO;
/**
*
* @author Gaetan Collaud <gaetancollaud@gmail.com>
*/
@Getter
@EqualsAndHashCode(of = {"id"})
public class HistoryEntryUser {
private final Long id;
priva... | 20.133333 | 51 | 0.738411 |
6b2f3666a5ba778bfed200a8420f4a0b80c3e5e3 | 2,557 | package io.subutai.core.environment.api.dto;
import java.util.Set;
import org.codehaus.jackson.annotate.JsonProperty;
import io.subutai.common.host.ContainerHostState;
import io.subutai.common.peer.ContainerSize;
/**
* Trimmed container for REST
*/
public class ContainerDto
{
@JsonProperty( "id" )
priva... | 33.644737 | 119 | 0.620649 |
7864ad6f1e894f584a993dc85e1a3bcb1efed260 | 285 | public class Customer {
int id;
String firsName;
String lastName;
public Customer(){
}
public Customer(int id, String firsName,String lastName){
this.id = id;
this.firsName = firsName;
this.lastName = lastName;
}
}
| 17.8125 | 62 | 0.564912 |
2c5d91dc44c12fa25fa9d8fbe94ba37d72ed8c67 | 2,229 | package br.apolo.data.model;
import java.util.Set;
import javax.persistence.AttributeOverride;
import javax.persistence.CascadeType;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.EntityLi... | 28.948052 | 144 | 0.778825 |
1cad479250510b0f50e352d778479db12b2a2499 | 9,215 | package me.josephzhu.javaconcurrenttest.lock;
import lombok.RequiredArgsConstructor;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import ... | 29.161392 | 125 | 0.568747 |
9d97516a4b872fb539962b29c6ba82e3a5ea0d3c | 2,212 | package org.apache.hadoop.chukwa.datacollection.adaptor.filetailer;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import junit.framework.TestCase;
import org.apache.hadoop.chukwa.Chunk;
import org.apache.hadoop.chukwa.datacollection.agent.ChukwaAgent;
im... | 34.5625 | 115 | 0.695298 |
0e6a9ba8f28401d8f32ee01d66016125b6c5720c | 4,622 | /*
* Copyright 2014 - 2017 Cognizant Technology Solutions
*
* 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 ap... | 28.530864 | 107 | 0.606664 |
6e1573103de402dbe14026d64976859169000481 | 3,500 | package com.englishnary.eridev.android.englishnary;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.IOE... | 37.234043 | 134 | 0.626286 |
2bd9e94a2e07ccfebe7e457f30c93ab7864ca9b7 | 1,613 | package com.xml2j.tutorial.seq4.handlers;
/******************************************************************************
-----------------------------------------------------------------------------
XML2J XSD to Java code generator
-----------------------------------------------------------------------------
... | 26.016129 | 79 | 0.567266 |
bd1e453413fde5a266a1f323c25ee126bb14b149 | 1,542 | /*
* Copyright 2021 OPPO ESA Stack Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 26.135593 | 75 | 0.66537 |
d00d36aaee9df0063175c2f8e04b2c8804f1477d | 1,471 | package net.iexos.musicalarm;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.widget.NumberPicker;
public final class DelayPickerFragment extends DialogFragment {
public DelayPickerFragm... | 35.878049 | 90 | 0.668253 |
cc4e92a4ae27ed1dbcd2587449a5e8b187fbe8d3 | 15,387 | /*
* Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 43.466102 | 141 | 0.67505 |
1a62c795d6dc5af99aea9b8b3ca00d6ee6716841 | 12,914 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 37.216138 | 106 | 0.749264 |
8456198c4b1c76c0f84d3a659822488e301a92c5 | 992 | package cn.vonce.common.bean;
import cn.vonce.common.enumerate.ResultCode;
/**
* 业务方法 执行返回结果(Service Result)
*
* @author Jovi
* @version 1.0
* @email 766255988@qq.com
* @date 2018年1月18日下午5:39:57
*/
public class SResult<T> {
/**
* 结果码
*/
private ResultCode resultCode = ResultCode.OTHERS;
... | 16.533333 | 94 | 0.563508 |
d1cd53930f818b0e73f14a71475a8f8a4a00fb2c | 1,544 | package org.lan.iti.sdk.pay.model.response;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.lan.iti.sdk.pay.model.IResponse;
import java.util.Map;
/**
* @author I'm
* @since 2021/3/26
* description 支付业务统一响应参数
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public... | 13.310345 | 49 | 0.531088 |
08a4cfd01204e68ddf700b38b2da6f0408607756 | 1,059 | package com.sample.web.admin.controller.api.error;
import com.sample.domain.exception.APIException;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import com.sample.web.base.controller.api.AbstractRestController;
@RestController
@RequestMapping(path = "/api/error", produ... | 27.868421 | 81 | 0.711992 |
7ac0b1bd841ea2c8c5d2072fc68197344e141c77 | 38,553 | /*
* Copyright 2013 Gunnar Kappei.
*
* 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... | 41.01383 | 212 | 0.579358 |
ee1a35c8d9b2bdfd65193c97d3f8e05841255b0c | 1,063 | package ru.greg3d.asserts;
import org.testng.SkipException;
public abstract class Assert extends org.testng.Assert {
public static void ignore(String arg0){
throw new SkipException(arg0);
}
public static void ignoreTrue(boolean condition, String arg0){
try{
org.testng.Assert.assertTrue(condition, arg0);
... | 25.309524 | 81 | 0.733772 |
94573ae7f235f1fb3365cfdc0252a61e172a1a1a | 8,992 | /*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.intel.mtwilson.flavor.controller;
import com.intel.mtwilson.flavor.controller.exceptions.NonexistentEntityException;
import com.intel.mtwilson.flavor.data.MwLinkFlavorHost;
import java.io.Serializable;
import... | 38.592275 | 133 | 0.594751 |
9f335142eb5016fc0401ad68199751c55e4ee118 | 325 | package com.reactive.app.common.constants;
public class MailTemplateConstants {
private MailTemplateConstants() {
}
public static final String REGISTRATION_MAIL_TEMPLATE = "userRegistrationTemplate.ftl";
public static final String PASSWORD_MANAGEMENT_MAIL_TEMPLATE = "passwordManagementTemplate.ftl";... | 25 | 98 | 0.790769 |
376eb858fe883a84b2a341619048e422601c84b7 | 90 | package glide.backoffice.locators.fleets.feedbacks;
public class AddCommentFeedback {
}
| 15 | 51 | 0.822222 |
59c120eaecd5a6f9cc07faa2bff307fc16d5497c | 8,589 | /*
* 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 m... | 36.548936 | 78 | 0.684597 |
a31656d075532acf809d07c027e1cbeba64bb61b | 9,796 | /*
* Copyright (c) 1998, 2020, 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 ... | 31.197452 | 79 | 0.513475 |
9787af80d83e92ee07ccfe7553079f5d6d62e4e7 | 512 | package io.sphere.sdk.client;
import io.sphere.sdk.models.SphereException;
import java.util.List;
/**
* Exception thrown by {@link DeprecationExceptionSphereClientDecorator} in case a deprecated feature of the commercetools platform is used.
*/
public class SphereDeprecationException extends SphereException {
... | 30.117647 | 140 | 0.763672 |
9344ebfd6917b53bcd6bbeeaa329c3da847be211 | 4,396 | /**
* 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... | 20.351852 | 75 | 0.583258 |
536dd5d5462c16c801627c108b93c49e22a57b6d | 4,055 | package com.ywh.LoRaWANServer.temp.domain;
import java.lang.reflect.Field;
import java.util.Arrays;
public class InfoLoraModEndForm implements UpInfoForm {
private String time;
private float tmms;
private double tmst;
private float freq;
private int chan;
private int rfch;
private int sta... | 21.684492 | 125 | 0.54254 |
6d005e0316ccda070770fb69b617380fce546c0f | 683 | package net.roxeez.advancement.trigger;
import org.bukkit.Material;
import org.junit.jupiter.api.DisplayName;
@DisplayName("EnterBlocck tests")
public class EnterBlockTest extends TriggerTest<EnterBlock> {
@Override
protected EnterBlock getObject() {
EnterBlock object = new EnterBlock();
obje... | 24.392857 | 84 | 0.666179 |
5798028ea9f3bca42d1d8f5c38ac688e5b052d29 | 7,793 | package org.cocos2d.tests;
import org.cocos2d.actions.UpdateCallback;
import org.cocos2d.actions.base.CCAction;
import org.cocos2d.actions.base.CCRepeatForever;
import org.cocos2d.actions.interval.CCIntervalAction;
import org.cocos2d.actions.interval.CCMoveBy;
import org.cocos2d.actions.interval.CCRotateBy;
import org... | 29.631179 | 102 | 0.615424 |
f5a2f71bdf9352a86abd524cef94709e6bc2cc33 | 16,304 | package net.minecraft.entity.passive.horse;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.CarpetBlock;
import net.minecraft.entity.AgeableEntity;
import net.minecraft.entity.Entity;
import net.min... | 33.825726 | 222 | 0.679036 |
d1b42de7e3d64ff6dd3b8d176b01cb68dc1940e2 | 3,275 | package cloud.xuxiaowei.audit.controller;
import cloud.xuxiaowei.audit.resilience4j.AuthorizationServerResilience4jService;
import cloud.xuxiaowei.oauth2.bo.AuditCodePageBo;
import cloud.xuxiaowei.system.annotation.ControllerAnnotation;
import cloud.xuxiaowei.utils.AssertUtils;
import cloud.xuxiaowei.utils.Response;
i... | 34.473684 | 138 | 0.740458 |
9305497d10ad305d8425d94a97daa0aa27aa6291 | 18,299 | /**
* Items class is used to create items for the money tracking application.
*
* @author Sneha Gupta
*/
package com.company;
import java.util.*;
//import java.time.LocalDate;
//import java.time.format.DateTimeFormatter;
class Items {
private String type;
private String title;
private String month;
... | 36.30754 | 123 | 0.587464 |
ea7056be05c9221badca2b518b96374c9d9af880 | 13,131 | package com.wishhard.h24;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import andr... | 32.583127 | 142 | 0.617927 |
2c641803d87774a632a241323ac1ad2e2f33b2e8 | 1,457 | package com.github.mforoni.jsupport;
import javax.annotation.Nullable;
import org.fluttercode.datafactory.impl.DataFactory;
import org.joda.time.LocalDate;
import com.google.common.base.Function;
/**
* @author Foroni Marco
*/
public class Person {
public enum Gender {
MALE, FEMALE;
public static Gender ra... | 22.415385 | 94 | 0.693205 |
a3e0c8c7f002c2683962a2bcdc6f6a243f9de1e7 | 3,892 | /*
* Copyright 2020 Raffaele Ragni <raffaele.ragni@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 28.617647 | 92 | 0.675745 |
7b293f1d7944a2d6605e585c5e0bcaafac81358a | 4,346 | package com.readonlydev.lib.world.gen.feature;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockVine;
import net.minecraft.block.properties.PropertyBool;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.util.EnumFacing;
impo... | 27.506329 | 150 | 0.636677 |
381e32b0152bc10870282aa87b02ec71b79b64d8 | 2,447 | package cz.muni.fi.gag.web.services.websocket.endpoint.packet.actions;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import org.jboss.logging.Logger;
import javax.websocket.Decoder;
import javax.websocket.EndpointConfig;
import java.io.IOException;
/**
* @au... | 32.197368 | 122 | 0.617491 |
6c336cb83a98896a64fa89777b386b1dae8417a1 | 106 | package audionote;
public class sum{
public static int sum(int a, int b){
return a+b;
}
} | 15.142857 | 40 | 0.603774 |
10731475461837c5fac5d536838d5fe8cf57318f | 1,029 | package joshie.progression.network.core;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;
public class PenguinNetwork {
p... | 30.264706 | 77 | 0.728863 |
46ce148d32e6308b34ef860864f51a5d268db0c8 | 10,323 | package com.sstechcanada.todo.adapters;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Color;
import androidx.annotation.NonNull;
import androidx.constraintl... | 42.657025 | 113 | 0.664729 |
4f670305e0cbb821b24f875a17392391c9cb82cd | 1,487 | /*
* (C) Copyright 2012-2013 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 re... | 29.74 | 78 | 0.722932 |
1af75a7b0dc256f0270045ecc51d8cded0505e97 | 591 | package org.ofdrw.core.text.transform;
import org.junit.jupiter.api.Test;
import org.ofdrw.TestTool;
import org.ofdrw.core.basicType.ST_Array;
import org.ofdrw.core.text.CT_CGTransfrom;
public class CT_CGTransfromTest {
public static CT_CGTransfrom cgTransfromCase(){
return new CT_CGTransfrom()
... | 26.863636 | 61 | 0.656514 |
f61010a7878cd77e88c0053b2908a0ec982d7268 | 594 | package com.longbow.api.user.dto;
import lombok.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* Created by zhangbin on 2019/3/19.
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@To... | 22 | 58 | 0.759259 |
c919550241e1159d8d9e2041dc841576b14b0659 | 47 | package github.chorman0773.pokemonsms.net.test; | 47 | 47 | 0.87234 |
290db5ac4063eab5deece884cc45a72000bb16bd | 10,415 | /******************************************************************/
/* ACM ICPC 2015-2016, NEERC */
/* Northern Subregional Contest */
/* St Petersburg, October 24, 2015 */
/***************************************... | 33.38141 | 128 | 0.412194 |
bc5b9ec5a7693b88d1b63297cb72e239beff5e6e | 4,477 | /*
* Copyright 2019 Ericsson, https://www.ericsson.com/en
*
* 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, modify, m... | 55.9625 | 463 | 0.72973 |
0643ad3bedfde7a9c26de5c174757144714121df | 5,989 | package bptree;
import com.microdb.model.DataBase;
import com.microdb.model.table.DbTable;
import com.microdb.model.row.Row;
import com.microdb.model.table.TableDesc;
import com.microdb.model.table.tablefile.BPTreeTableFile;
import com.microdb.model.field.FieldType;
import com.microdb.model.field.IntField;
import com.... | 28.932367 | 113 | 0.584906 |
97b0d248cdfec72b26fc7de534f70e36fd206f07 | 608 | /**
* Copyright Liaison Technologies, Inc. All rights reserved.
*
* This software is the confidential and proprietary information of
* Liaison Technologies, Inc. ("Confidential Information"). You shall
* not disclose such Confidential Information and shall use it only in
* accordance with the terms of the licens... | 27.636364 | 72 | 0.754934 |
b5ebf2a7a54019a6e8550b675752b0072f1f8ccc | 2,202 | package org.ideaccum.libs.commons.config;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
* プロパティアクセスキーを列挙形式のクラスとして提供します。<br>
* <p>
* プロパティキーのリファクタリング効率を上げるために文字列形式でのアクセスを隠蔽化してクラスフィールドとして提供します。<br>
* このクラスはプロパティアクセスキークラスの上位抽象クラスであり、実際のプロパティキークラスはこれを継承して設置します。<br>
* 継承関... | 24.741573 | 134 | 0.676203 |
79f7138059382d0cea8a0e3d15bc72421a4e14b0 | 2,144 | package com.myplace.myplace;
/**
* Created by jsepr on 2017-05-15.
*/
import android.content.Context;
import com.myplace.myplace.models.Message;
import com.myplace.myplace.models.Room;
import static android.support.test.InstrumentationRegistry.getContext;
import static android.support.test.InstrumentationRegistry... | 29.777778 | 78 | 0.729478 |
43b6ca8eb5ca7c5521ceacd55aaac3b77e1449e6 | 538 | package es.agustruiz.deadpoolcomics.presentation;
import android.os.Handler;
import android.os.Looper;
import javax.inject.Inject;
import javax.inject.Singleton;
import es.agustruiz.deadpoolcomics.domain.executor.PostExecutionThread;
@Singleton
public class UIThread implements PostExecutionThread {
private fin... | 20.692308 | 71 | 0.741636 |
4f2487144c0ff8b46234fc4ee951b585e14af472 | 498 | package GraceJava;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.DataSource;
public class SQLConnection {
private DataSource dataSource;
public DataSource getDataSource() {
return dataSource;
}
public void setDataSource(DataSource dataSource) {
this.dataSource = dataSource;
}
publ... | 19.153846 | 51 | 0.746988 |
cf03030d8e769381f3cb04b331f9356d5a507a5f | 1,642 | package com.thinkbiganalytics.metadata.jpa.sla;
/*-
* #%L
* thinkbig-operational-metadata-jpa
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 Lic... | 26.918033 | 117 | 0.732643 |
9804d8fdf3a905b07409e7e64bf5bfd2e9a0d802 | 4,395 | import java.util.*;
public class findDeepNodesParent {
private class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode left, TreeNode right) {
... | 26.005917 | 69 | 0.495336 |
816178c25aefd8d36c68a08f1204c3fce5049d42 | 1,929 | import java.util.Arrays;
public class Solution {
public int minDistance(String word1, String word2) {
// 由于 word1.charAt(i) 操作会去检查下标是否越界,因此
// 在 Java 里,将字符串转换成字符数组是常见额操作
char[] word1Array = word1.toCharArray();
char[] word2Array = word2.toCharArray();
int len1 = word1Arra... | 28.791045 | 71 | 0.459824 |
de5589a42cc2f8d1e66a5003710b6f193bc623ed | 205 | package il.ac.bgu.cs.bp.bprobot.robot.grovewrappers.set;
/**
* Create a wrapper for all the sensors that have set function
*/
public interface IGroveSensorSetWrapper {
boolean set(boolean value);
}
| 22.777778 | 62 | 0.75122 |
385730dfb1fb93c608b891b225d039504d517092 | 457 | package dao;
import org.json.JSONArray;
import repository.ProductRepository;
import repository.UserRepository;
import javax.inject.Inject;
import java.sql.SQLException;
public class UserDao {
private UserRepository repository;
@Inject
public UserDao(UserRepository repository) {
this.repository =... | 20.772727 | 64 | 0.743982 |
9835cbaced56e67fc897c1a9e86207f0a856151b | 4,257 | /*
* Copyright 2016-2019 The Sponge 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 applicable law... | 33 | 110 | 0.752173 |
e64ddc5cdd33db9f5013d0778943533a376d5e58 | 2,208 | /*
* Copyright (c) 2017 org.hrodberaht
*
* 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 agr... | 41.660377 | 107 | 0.75 |
b48d2c6873c448a1fd96c1a9898661c1f95d4825 | 680 | /*
* 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 de.javahippie.jax2020.checkout;
import javax.ws.rs.core.Response;
import org.eclipse.microprofile.faulttolerance.ExecutionCont... | 28.333333 | 105 | 0.757353 |
4d91e698893b33948f1493af960f4e628b5a92d7 | 728 | package com.bakdata.conquery.models.concepts.conditions;
import java.util.HashSet;
import java.util.Map;
import org.hibernate.validator.constraints.NotEmpty;
import com.bakdata.conquery.io.cps.CPSType;
import com.bakdata.conquery.util.CalculatedValue;
import lombok.Getter;
import lombok.Setter;
/**
* This conditi... | 25.103448 | 84 | 0.784341 |
974e3dcb4f0994feb463dc467d298530429407b6 | 673 | package com.dev.base.utils.bean;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.PropertyUtilsBean;
/**
*
* <p>Title: 重写,对枚举的支持,将枚举反射为string</p>
* <p>Description: 描述(简要描述类的职责、实现方式、使用注意事项等)</p>
* <p>CreateDate: 2015年8月21日下午2:44:52</p>
*/
public class CustPropertyUtilsB... | 25.884615 | 69 | 0.732541 |
07b84478560319d3481859d4744dcd3860404e72 | 910 | import java.util.Scanner;
public class Filepath {
public static void main(String[] args) {
String str, path, fileName, fileType;
Scanner sc = new Scanner(System.in);
System.out.println("Please enter filepath to get the folder path, file name & extension.");
str = sc.next();
/... | 45.5 | 99 | 0.615385 |
2239509990850b97002680ed7764d906999dd8c1 | 763 | package exnihilocreatio.client.models;
import exnihilocreatio.ModBlocks;
import exnihilocreatio.util.Util;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.color.BlockColors;
import net.minecraft.client.renderer.color.IBlockColor;
public class ModColorManager {
private static final Mine... | 34.681818 | 99 | 0.78768 |
123ccab12f1c6aa1bf2efb229548af64de164f47 | 4,481 | /*
* Copyright 2010-2014 Ning, Inc.
* Copyright 2014-2020 Groupon, Inc
* Copyright 2020-2020 Equinix, Inc
* Copyright 2014-2020 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with t... | 39.654867 | 156 | 0.686008 |
2b5e4903bf573354386459dd6a7b201bae80006c | 2,725 | package com.refinitiv.eta.json.converter;
import com.fasterxml.jackson.databind.JsonNode;
import com.refinitiv.eta.codec.*;
import com.refinitiv.eta.json.util.JsonFactory;
class JsonXmlConverter extends AbstractContainerTypeConverter {
JsonXmlConverter(JsonAbstractConverter converter) {
super(converter);... | 33.641975 | 164 | 0.66055 |
9144bd930344cb8246d7d2ba7ed2fa380356a906 | 1,333 | /**
* @authour Akhash Ramamurthy
*/
package modifiedBinarySearch;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* @author Akhash Ramamurthy
*
*/
public class PeakIndexInMountainArray_852 {
public int peakIndexInMountainArray(int[] a) {
int left=0, right=a.length-1;
while(left < r... | 21.852459 | 247 | 0.668417 |
59b91eed3468afa0b7718e4c15dda1e839c48eed | 7,774 | /*
* Copyright 2019 Jonathan West
*
* 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 ... | 23.136905 | 116 | 0.699383 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.