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 |
|---|---|---|---|---|---|
a14af8d817cfe6da915a20253e5c2e57ba2009a2 | 10,767 | /*
* Copyright @ 2015 Atlassian Pty 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 ag... | 28.484127 | 80 | 0.647534 |
ec99ad78b259ca0712ee6b1eda71c0d286367fc6 | 3,850 | package hu.unideb.inf.notebookservice.service.impl;
import hu.unideb.inf.notebookservice.commons.exeptions.AlreadyExistsException;
import hu.unideb.inf.notebookservice.commons.exeptions.NotFoundException;
import hu.unideb.inf.notebookservice.commons.request.BrandRequest;
import hu.unideb.inf.notebookservice.persistenc... | 39.690722 | 110 | 0.717922 |
95d121c53570258102be3b22102e0eb97ebfa175 | 218 | package com.tvd12.ezyfoxserver.setting;
import com.tvd12.ezyfox.util.EzyToMap;
public interface EzyHttpSetting extends EzyToMap {
int getPort();
boolean isActive();
int getMaxThreads();
}
| 15.571429 | 50 | 0.692661 |
5aa3d757da2c990f74d4b471fa3dc2d59503a0fa | 147 | package com.conem.app.assignment2.model;
/**
* Created by mj on 9/28/2017.
*/
public enum Difficulty {
BEGINNER, INTERMEDIATE, ADVANCED
}
| 13.363636 | 40 | 0.693878 |
64893c427f9bc6df6cb832a89a23093d99a1d7ac | 1,451 | package com.ocypode.application.component.view.dialog;
import android.app.AlertDialog;
import android.content.Context;
import com.ocypode.application.R;
public class AlertDialogBuilder {
private final Context mContext;
public AlertDialogBuilder(Context context) {
mContext = context;
}
public void showAle... | 26.87037 | 74 | 0.733287 |
c473b8086976041f2ead35afc16ea9d5acd9227e | 312 | package it.at7.gemini.core;
import it.at7.gemini.exceptions.GeminiException;
import it.at7.gemini.schema.Entity;
public interface EntityManagerInit {
EntityRecord createOneRecordEntityRecord(Entity entity, EntityOperationContext entityOperationContext, Transaction transaction) throws GeminiException;
}
| 28.363636 | 155 | 0.842949 |
eadf42978ab1d740063e003b1df9d20d6e309631 | 657 | package lu.kremi151.algebraparser.component;
import lu.kremi151.algebraparser.annotation.FunctionMeta;
import lu.kremi151.algebraparser.interfaces.AObject;
@FunctionMeta(argsLength=1,argsMinimum=1)
public abstract class AFunction extends ABasicObject{
AObject[] args;
public AFunction(AObject[] args){
this.args ... | 18.771429 | 75 | 0.726027 |
164642c0ca42515f6b8767947f7827bf1da674c1 | 2,241 | package com.flyingcats.vacation.util;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.services.translate.Translate;
import com.google.api.services.translate.model.Tr... | 42.283019 | 121 | 0.715306 |
4f3333c69411e23d9ac63172a227237955bfdd2e | 391 | package io.zrz.graphql.zulu.doc;
import io.zrz.zulu.types.ZType;
/**
* provides a mechanism for the runtime to resolve type.
*
*
* @author theo
*
*/
public interface GQLTypeResolver {
/**
* given a type name, returns the type definition for it.
*
* @param typeName
* The type name to r... | 15.038462 | 59 | 0.621483 |
8df20595329ce04c106e15f500de23fc9449fb63 | 68 | package model.game;
public enum GameType {
MATCH, ANALYSIS
}
| 8.5 | 22 | 0.691176 |
9270368302a509cf251fe474de784aa8d33421f5 | 3,344 | package info.openmods.calc.types.multi;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import info.openmods.calc.executable.BinaryOperator;
import info.openmods.calc.executable.IExecutable;
import info.openmods.calc.executable.SymbolCall;
import info.openmods.calc.executab... | 44.586667 | 180 | 0.784091 |
9963be27c64b94b60b01d6062cbcfbede9e56190 | 1,049 | package com.adnuntius.android.sdk;
/**
* @see AdRequest
*/
@Deprecated
public class AdConfig extends AdRequest {
public AdConfig(String auId) {
super(auId);
}
@Deprecated
public AdConfig setWidth(String auW) {
super.setWidth(auW);
return this;
}
@Deprecated
publi... | 19.792453 | 59 | 0.611058 |
c4562e26b7ca9e5c0a1be0a595883be7d5f5c4cb | 3,295 | import static util.ModuleChecker.CEYLON_MODULE_NAME_PATTERN;
import org.junit.Test;
import play.test.UnitTest;
import util.Util;
public class BasicTest extends UnitTest {
@Test
public void versionComparisonTests() {
assertEquals(0, Util.compareVersions("", ""));
assertE... | 34.684211 | 128 | 0.493475 |
6f583afab4f9237a467e7ab2d70871b425ffc4b0 | 1,455 | package graph;
import graph.implementation.Vertex;
import java.util.List;
public interface MatrixGraph {
boolean addVertex();
// removes vertex, if it is there
boolean removeVertex(int vertexToRemove);
// adds the edge from the vertex x to the vertex y, if it is not there
boolean addEdge(int v... | 33.068182 | 118 | 0.712715 |
3e4b20b284c0909c17388b110c86dac02107eee3 | 140 | package me.philcali.rss.api.ompl;
public interface IDocument extends IOutlineContainer {
String getTitle();
String getVersion();
}
| 20 | 54 | 0.75 |
2a72e20fbc0f5d1f63f298cdb13204692a9e6d40 | 2,191 | package com.aigestudio.wheelpicker.demo;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.aigestudio.wheelpicker.WheelPicker;
/**
* @author AigeStudio 2015-12-06
* @author AigeStudio 2016-07-08
*/
public class Pr... | 31.753623 | 115 | 0.667275 |
eb414dfd6fcb609c58328965dc7829fcf4550cd1 | 173 | package com.gfive.jasdipc.loopandroid.Interfaces;
/**
* Created by JasdipC on 2016-10-29.
*/
public interface ServerAction {
void response(boolean isSuccessful);
}
| 15.727273 | 49 | 0.734104 |
85e4e82750f7902a7e9b7eaf57ab9648977336f7 | 328 | package com.example.rguktadda;
import android.support.annotation.NonNull;
import com.google.firebase.firestore.Exclude;
public class BlogPostId {
@Exclude
public String BlogPostId;
public <T extends BlogPostId> T withId(@NonNull final String id) {
this.BlogPostId = id;
return (T) this;
... | 19.294118 | 70 | 0.70122 |
f533c7acd3e8dda5a2bd5bffdb95b6be21759d76 | 10,074 | package com.unnamed.b.atv.sample;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.os.Message;
import android.support.annotation.... | 36.632727 | 143 | 0.61892 |
a35b11a7f3c62748e1ee5c8dc29fe5fba2bcd413 | 6,965 | package com.sflpro.notifier.services.system.event.impl;
import com.sflpro.notifier.db.repositories.utility.PersistenceUtilityService;
import com.sflpro.notifier.services.system.event.ApplicationEventDistributionService;
import com.sflpro.notifier.services.system.event.model.ApplicationEvent;
import com.sflpro.notifier... | 37.648649 | 143 | 0.727207 |
103db20f88a75de221fdf9f876fbf5b7bc5226f8 | 6,275 | package biweekly.property;
import static biweekly.property.PropertySensei.assertCopy;
import static biweekly.property.PropertySensei.assertEqualsMethod;
import static biweekly.property.PropertySensei.assertNothingIsEqual;
import static biweekly.util.TestUtils.assertValidate;
import static org.junit.Assert.assertEquals... | 30.91133 | 111 | 0.74502 |
9e924d9e663c47b1f62a92cf442ab394b8ddfb73 | 252 | package jade.stone.designpattern.decorator.qinydemo;
/**
* @author : qinyang
* @date : 2018/11/6 下午2:00
*/
public interface Walk {
/** 默认方法. */
default void decurate() {
System.out.println("接口默认方法装饰walk");
}
/** 走 */
void walk();
}
| 14.823529 | 52 | 0.611111 |
4ab09e40f980100975273a2d9b50b35dc90b5ee0 | 4,646 | /**
* 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... | 41.482143 | 125 | 0.712656 |
ab1bc8f015e8857ba7dd282a6dd6719d8aa99cf3 | 2,702 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020... | 27.292929 | 123 | 0.607698 |
69b89e151c12bf5c5b9656668ce07830e3572368 | 16,328 |
import java.awt.Color;
import java.awt.event.KeyEvent;
import javax.swing.table.TableColumn;
/*
* 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.
*/
/**
*
* @author mnc
*/
public class ... | 48.740299 | 177 | 0.658378 |
e928316c0574ba6f97dea67364a95a208f667405 | 15,343 |
package org.srs.datacat.rest.resources;
import com.google.common.base.Optional;
import java.io.IOException;
import java.lang.reflect.Array;
import java.nio.file.AccessDeniedException;
import java.nio.file.DirectoryStream;
import java.nio.file.NoSuchFileException;
import java.nio.file.NotDirectoryException;
import j... | 47.501548 | 153 | 0.56195 |
608631ffde5cd46afe9eca72f32f43d852a49609 | 8,101 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.flattened.mapper;
import org.apache.lucene.i... | 32.146825 | 99 | 0.574127 |
f6e305522566335327200bf7c3051912fbe9b79f | 1,925 | package com.softsquared.template.src.main.More.Login;
import com.softsquared.template.src.main.More.Login.interfaces.LoginActivityView;
import com.softsquared.template.src.main.More.Login.interfaces.LoginRetrofitInterface;
import com.softsquared.template.src.main.More.Login.models.LoginResponse;
import com.softsquared... | 38.5 | 112 | 0.694026 |
4ef1c9db60710d4466fefb032b64077a864ac989 | 3,552 | /*
* Copyright (c) 2012-2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.security.authentication;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.emc.storageos.security.authenticati... | 37.787234 | 116 | 0.679617 |
9dc628ab0f3cf6a9f50bb893e43d276fe63aab03 | 8,119 | package io.github.vmzakharov.ecdataframe.dataframe;
import io.github.vmzakharov.ecdataframe.ExpressionTestUtil;
import io.github.vmzakharov.ecdataframe.dsl.AnonymousScript;
import io.github.vmzakharov.ecdataframe.dsl.SimpleEvalContext;
import io.github.vmzakharov.ecdataframe.dsl.value.LongValue;
import io.github.vmzak... | 36.408072 | 146 | 0.591206 |
825e0bf7e0077d8068838ec2d65edc05728835af | 623 | /*
* This file is part of http-client-adapter. 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 http-client-adapter,
* including this file, may be copied, modified, propagated, or distri... | 32.789474 | 123 | 0.76244 |
1b91431a43f7b64c95fd63ff1a1c19d94c1ef443 | 1,410 | package com.sergivb01.hcf.utils;
import org.bukkit.Bukkit;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.text.DecimalFormat;
public class Reflection{
private final String name = Bukkit.getServer().getClass().getPackage().getName();
private final String version = na... | 30.652174 | 157 | 0.731915 |
ccc4403aa40fc98f31c5b7cfc1bfc65ede7daa46 | 9,669 | package eu.neclab.ngsildbroker.registryhandler.controller;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;... | 41.320513 | 111 | 0.724687 |
717b8d420afe36afb9360bcbfede3d825d1af3b9 | 1,487 | package org.ohdsi.webapi.check.checker.ir.helper;
import org.ohdsi.analysis.Utils;
import org.ohdsi.webapi.check.builder.NotNullNotEmptyValidatorBuilder;
import org.ohdsi.webapi.check.builder.ValidatorGroupBuilder;
import org.ohdsi.webapi.ircalc.IncidenceRateAnalysisExpression;
import org.ohdsi.webapi.service.dto.IRAn... | 46.46875 | 163 | 0.710155 |
548128aec11f997ab987216e574e699be5d06285 | 727 | package com.sip.light.server.auth;
import javax.sip.*;
public class AuthorizationServer implements SipListener {
@Override
public void processRequest(RequestEvent requestEvent) {
}
@Override
public void processResponse(ResponseEvent responseEvent) {
}
@Override
publ... | 19.648649 | 102 | 0.702889 |
32941da13c97736b44611703623ed364f29833bc | 4,225 | package be.rommens.hades.command;
import be.rommens.hades.core.CommandResult;
import be.rommens.hades.model.IssueAssemblyContextTestObjectFactory;
import net.lingala.zip4j.ZipFile;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import java.io.File;
... | 40.625 | 152 | 0.695148 |
edf95753bce5f8fb3144b16c979b8177fc8e420d | 2,482 | package org.shoukaiseki.servlet;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import java.io.*;
import java.util.HashMap;
import java.util.Map... | 31.820513 | 120 | 0.611604 |
2f4c9966f14af757ecfe76076674a8e2a1bb60ee | 657 | package com.api.mercadeando.domain.data;
import com.api.mercadeando.domain.dto.PagoRequest;
import com.api.mercadeando.domain.dto.PagoResponse;
import com.api.mercadeando.domain.exception.BadRequestException;
import com.api.mercadeando.domain.exception.ResourceNotFoundException;
/**
* @author cristianmarint
* @Date... | 34.578947 | 100 | 0.826484 |
d90c3bea4bcd20a38ad452eef41f2832dbc0ff94 | 691 | package amu.zhcet.data.department;
import amu.zhcet.common.model.BaseEntity;
import lombok.*;
import org.hibernate.envers.Audited;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
impo... | 21.59375 | 68 | 0.767004 |
08262cea7906916e412e11a80489c7f09b34d50f | 9,960 | package com.ms.silverking.cloud.dht.management;
import java.util.logging.Level;
import com.ms.silverking.cloud.dht.client.Compression;
import com.ms.silverking.cloud.dht.common.DHTConstants;
import com.ms.silverking.cloud.dht.daemon.DHTNode;
import com.ms.silverking.cloud.dht.daemon.DHTNodeOptions;
import com.ms.silv... | 39.367589 | 118 | 0.720181 |
7ac8b396c76c4a4e341740156fc322c58b477db9 | 775 | package cn.xuexuan.newui.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.Toolbar;
import me.yokeyword.fragmentation.SupportActivity;
/**
* Created by Jant on 2017/5/3.
*/
public abstract class SimpleActivity extends SupportActivity {
@Override
... | 19.375 | 66 | 0.726452 |
215680c56b2e317468b18ef50705454bb491b815 | 1,867 | /**
* Copyright 2018 人人开源 http://www.renren.io
* <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>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by appli... | 30.112903 | 80 | 0.763257 |
ee711907bebfa61fd5c48bba239206c30a0896c2 | 8,471 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 31.490706 | 102 | 0.553772 |
6b6cc823b9c5b4aef15fa7fab282e00e7b1827fa | 5,562 | /*
*
* Copyright 2017-2018 Nitrite 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 34.333333 | 102 | 0.64635 |
85795167b4bf1b4d34cd883295d4d74af6f5fdc3 | 4,278 | /*
* Copyright 2004-2006 Stefan Reuter
*
* 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 ... | 27.075949 | 94 | 0.642824 |
57e8902ad5352c2988e938e393799b4fa2e7c8b6 | 2,623 | package com.secuxtech.paymentdevicekit;
import android.util.Log;
import static com.secuxtech.paymentdevicekit.BLEManager.TAG;
/**
* Created by maochuns.sun@gmail.com on 2020-03-02
*/
public class SecuXPaymentUtility {
public static String dataToHexString(byte[] bytes) {
StringBuilder stringBuilder = ne... | 28.204301 | 110 | 0.542509 |
90ea5578dfdbde223f8a0decc1ac26b045e1d0b4 | 1,284 | package hackerrank.challenges.insertionsort1;
import java.util.*;
/**
* https://www.hackerrank.com/challenges/insertionsort1
* @author bxj62
*
*/
public class Solution {
public static void insertIntoSorted(int[] ar) {
// Fill up this function
int last = ar[ar.length-1];... | 21.762712 | 56 | 0.438474 |
635c69ab479e69d22512caaf9c2eb32e44bd30ce | 3,515 | package com.app.planner;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.stream.JsonReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class DailyIntake {
private Array... | 40.402299 | 98 | 0.647795 |
705ce2f3897e976ef3750a687ed4670814a6e140 | 3,404 | package com.example.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
/**
* 联赛实体类
*/
@Entity
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class Lea... | 17.82199 | 71 | 0.552879 |
0085c452a5ba6b9dbaa1a9cebb075f4b123360a6 | 2,529 | package com.tfd.ffcsez.fragments.landscape;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.LiveData;
import com.tfd.f... | 38.318182 | 133 | 0.570977 |
8673e69b68c139b4156d854b8f1a80a848a9d2fa | 2,722 | package com.dexode.util;
import android.os.Bundle;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import okhttp3.Headers;
import okhttp3.Request;
import okhttp3.Response;
import okio.Buffer;
/**
* Created by Dawid Drozd aka Gelldur on 9/15/1... | 28.652632 | 104 | 0.688097 |
d3dbee919fe0e7b85c67accba4d70a157706698c | 6,074 | package org.pokemonrun;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConf... | 41.319728 | 88 | 0.602898 |
2013de20424bbcc5233aabc2865c55ab51552706 | 5,765 | package ut.com.degustudios.bitbucket.mergechecks;
import com.atlassian.bitbucket.hook.repository.PreRepositoryHookContext;
import com.atlassian.bitbucket.hook.repository.PullRequestMergeHookRequest;
import com.atlassian.bitbucket.hook.repository.RepositoryHookResult;
import com.atlassian.bitbucket.hook.repository.Repo... | 38.178808 | 114 | 0.730269 |
6c674377fa3146c354aad9ddd29f1d48dd692212 | 3,376 | /* ###
* IP: GHIDRA
*
* 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... | 31.259259 | 167 | 0.755332 |
5d192e7f22af3b5211923f02942e51ae0e427d41 | 2,856 | /*
* AsTeRICS - Assistive Technology Rapid Integration and Construction Set
*
*
* d8888 88888888888 8888888b. 8888888 .d8888b. .d8888b.
* d88888 888 888 Y88b 888 d88P Y88b d88P Y88b
* d88P888 888 888 888 888 888 888 Y88b. ... | 25.5 | 97 | 0.629202 |
672c64b38f0dd4239f59859c0e7e077c4c80fff0 | 5,472 | package cn.mulanbay.pms.web.controller;
import cn.mulanbay.common.exception.ApplicationException;
import cn.mulanbay.common.exception.ErrorCode;
import cn.mulanbay.common.util.BeanCopy;
import cn.mulanbay.persistent.query.PageRequest;
import cn.mulanbay.persistent.query.PageResult;
import cn.mulanbay.persistent.query.... | 33.777778 | 101 | 0.691703 |
bee4a63ac7b7f8ae5109c5ddc5f62dc474ba5aa2 | 1,126 | package com.demo.websocket.controller;
import com.demo.websocket.service.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.spr... | 32.171429 | 76 | 0.773535 |
27f707389e3b5bd5d135a2995a546393d0a38155 | 1,311 | import javafx.scene.paint.Color;
public class SlimeCell extends GridCell {
private double currentCamp;
private double campDiff;
private double campEvap;
private double prevCamp = 0;
public SlimeCell(String state, Color color, int x, int y, double diffuse, double evap) {
super(state, color, x, y);
campDiff ... | 18.208333 | 89 | 0.668192 |
82f5a5013f32250c459c85dee1750ab8ea35e7c5 | 37,867 | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | 49.759527 | 316 | 0.636834 |
09198cc0c8c0a16c4349dda4fb1f2b56aa339511 | 2,129 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 32.753846 | 114 | 0.709253 |
cadf2a38c6ff94892815a5806702997fe7ad12c6 | 1,639 | package com.avereon.xenon;
import com.avereon.xenon.task.Task;
import com.avereon.xenon.task.TaskManager;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Fail.fail;
public class ToolManagerTest ex... | 26.868852 | 102 | 0.733984 |
a70283a20b935000fa2d9db1847b44cd28452db7 | 526 | package com.c2b.coin.sanchain.constant;
public class SanChainConstant {
public static String CURRENCY_SANCHAIN="SANC";
/**
* 为审核
*/
public static String UNAPPROVE = "0";
/**
* 已审核
*/
public static String APPROVE = "1";
/**
* 已发送
*/
public static String SEND = "2";
/**... | 15.470588 | 47 | 0.534221 |
bfe17befc18ed8cbe95ac6faf63761533e076317 | 273 | package org.javacs.debug.proto;
/**
* Event message for 'breakpoint' event type. The event indicates that some information about a breakpoint has changed.
*/
public class BreakpointEvent extends Event {
// event: 'breakpoint';
public BreakpointEventBody body;
}
| 27.3 | 119 | 0.747253 |
f40296e30c6588e1631a6a12392bed92d9419bdb | 1,859 | package in.ac.siesgst.arena.epicentre.repository;
import androidx.lifecycle.LiveData;
import java.util.List;
import in.ac.siesgst.arena.epicentre.AppExecutors;
import in.ac.siesgst.arena.epicentre.database.dao.TravisDao;
import in.ac.siesgst.arena.epicentre.database.entity.Travis;
/**
* Created by SIESGSTarena on ... | 26.942029 | 88 | 0.629371 |
1487ed4f8e5232eb24fe117aa5a17b30ada072d4 | 4,155 | /*
* 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 ... | 38.831776 | 91 | 0.708785 |
05d5700b7a26470abfabbb3383b36de47951c551 | 822 | import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
TelematicsImpl telematics = new TelematicsImpl();
VehicleInfo vehicleInfo = new VehicleInfo();
vehicleInfo.setEngineSize("3");
vehicleInfo.setGasUsed(14.2);
vehicleI... | 26.516129 | 63 | 0.63747 |
80a881afa383b48f509edcd62fdb1f3ed193fccb | 1,589 | package com.hbm.tileentity.machine;
import java.util.ArrayList;
import java.util.List;
import com.hbm.lib.HBMSoundHandler;
import com.hbm.saveddata.RadiationSavedData;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ITickable;
import net.minecraft.util.SoundCategory;
public class TileEntityGei... | 23.028986 | 155 | 0.628068 |
26e5091c49e135b2708d9fcdd1d65fede6de711f | 437 | package com.example.demo.uac.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
/**
* @author kezhijie@wuhandsj.com
* @date 2021/10/25 10:41
*/
@Data
public class SysPermission implements Serializable {
private static final long serialVersionUID = 8785181546... | 19.863636 | 70 | 0.743707 |
75305f8c714f0c979a0c0dc99533f6332545111b | 1,204 | /**
* Copyright 2010 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 32.540541 | 136 | 0.737542 |
84c970f7ff09a69295e12c7f50e007d5e65096d1 | 3,075 | package one.block.eosiojava.models.rpcProvider.request;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import org.jetbrains.annotations.NotNull;
/**
* The request of PushTransactionRequest RPC call.
*/
public class PushTransactionRequest extends SendTransactionRequest {
/**
* In... | 30.147059 | 103 | 0.673496 |
d26d7456a36383c569be88ef8142dfb3518ba686 | 4,324 | package reporter;
import java.awt.GridLayout;
import javax.swing.JCheckBox;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
public class GlobalSettingsPanel extends JPanel {
private static final long serialVersionUID = 1L;
private JCheckBox showModuleId = null;
priva... | 26.365854 | 188 | 0.724561 |
cafa6eac3b123e9f264a19f0108c86d386cb26a8 | 704 | package com.rn_advanced_video_player;
public class TimeHelper {
public static String pad(int num) {
String temp = String.valueOf(num);
if (temp.length() < 2) {
return "0" + temp;
}
return temp;
}
public static String getSeconds(double secs) {
int minute... | 26.074074 | 68 | 0.568182 |
651ae844dddd3b39c4d32e9cbe955505fbd5d09a | 2,240 | package business.logic;
public class Address {
private String deliveryPoint;
private String city;
private String administrativeArea;
private String postalCode;
private String country;
private String email;
private String hoursOfService;
private String contactInstructions;
public vo... | 24.615385 | 182 | 0.669643 |
4e1cd244cacebb4cc0fc83e8634cd619298384bb | 6,905 | package com.sharpen.common.util;
import com.sharpen.common.consts.SignConst;
import org.apache.commons.lang3.StringUtils;
import java.math.BigDecimal;
import static com.sharpen.common.consts.SignConst.STR_ZERO;
import static com.sharpen.common.consts.SymbolConst.BLANK;
import static com.sharpen.common.consts.Symbol... | 28.770833 | 114 | 0.611441 |
2817dae40f3571e91d761890fcee1357a68ee581 | 442 | package br.gov.df.emater.negocio.sistema.usuario;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import br.com.frazao.cadeiaresponsabilidade.impl.CadeiaSequencial;
@Component
public class UsuarioAbrirCdSq extends CadeiaSequencial {
@Autowired
Usuari... | 26 | 101 | 0.821267 |
99260d9d7d8a4717d8e8ec942633b43813a11bc9 | 476 | package dev.sheldan.abstracto.core.service.management;
import dev.sheldan.abstracto.core.command.model.database.CoolDownChannelGroup;
import dev.sheldan.abstracto.core.models.database.AChannelGroup;
public interface CoolDownChannelGroupManagementService {
CoolDownChannelGroup createCoolDownChannelGroup(AChannelGr... | 43.272727 | 81 | 0.861345 |
daedbc266dfaaf951e0bda98b8025ec4feb778ad | 929 | package com.google.gson;
import com.google.gson.p192b.p193a.C10114j;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import java.io.IOException;
/* renamed from: com.google.gson.C */
/* compiled from: TypeAdapter */
public abstract class C10054C<T> {
/* renamed from: a */
p... | 28.151515 | 81 | 0.649085 |
7c7e6d512fd830f3b068bea57be8e99f0cfd85fd | 816 | package wisematches.playground.tracking;
import wisematches.core.Player;
import java.util.Set;
/**
* {@code PlayerStatisticListener} notifies clients that player statistic was changed.
*
* @author <a href="mailto:smklimenko@gmail.com">Sergey Klimenko</a>
*/
public interface StatisticsListener {
/**
* Indicate... | 32.64 | 97 | 0.740196 |
844a8bacc63454bd363113c486b173aef7c9cda0 | 663 | package com.junkumar.cassava.expression;
import static org.junit.jupiter.api.Assertions.*;
class AddressTest {
@org.junit.jupiter.api.Test
void Address() {
assertEquals("B2", new Address("2", "B").toString());
assertEquals("B2", new Address(2,2).toString());
// reverse row... | 31.571429 | 85 | 0.59276 |
4feb8d5588099353903a985de9b71e9d93db1925 | 2,916 | package seedu.volant.home.logic.commands;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.volant.commons.core.Messages.MESSAGE_TRIPS_LISTED_OVERVIEW;
import static see... | 41.070423 | 105 | 0.753086 |
fccee9f567bc87e646b50f8d5398496b5ea9af53 | 7,178 | /*
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2020 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark Hi... | 28.14902 | 131 | 0.660769 |
0672fde34cb0120afc38a4acb907b787dd08c7e5 | 465 | package com.capgemini.mrchecker.webapi.core;
/**
* The instances of BasePageWebAPIAutoRegistration class are added to the test execution observer automatically in
* constructor.
* Although this operation is unsafe, it's been added to support migration from MrChecker Junit4 to Junit5.
*/
@Deprecated
public abstract... | 31 | 114 | 0.806452 |
808247a7b4171a5898b0b52d35ce73586895b6dd | 199 | package com.chessix.sepa.pain;
/**
* Transactions for debtors who have have NO successful direct debits with the creditor yet (FRST)
*/
public class FirstTransactions extends TransactionBatch {
}
| 24.875 | 98 | 0.778894 |
77940647903273587ffd67ca7f43c23a6dab0a6a | 327 | package pps_week02;
public class BirthDay extends Card {
private int age;
public BirthDay(String recipent, int age) {
super(recipent, "BirthDay");
this.age=age;
}
public void greeting() {
System.out.println("Dear " + getRecipent());
super.greeting();
System.out.println("Happy "+ age+ "Birthday ");... | 17.210526 | 49 | 0.669725 |
1a62dd6fe3b8ce56b6108c697ef637a11d8318e4 | 452 | package com.thinkgem.jeesite.modules.WeChat.entity;
public class CheckinMsgResponse extends MsgResponse{
private static final long serialVersionUID = -4154816708672985619L;
private Integer id;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
@Override
public String... | 20.545455 | 111 | 0.70354 |
970064e24caabe52deb2e67924fcf0be2bc69a62 | 1,702 | package com.vtence.hamcrest.dom;
import org.hamcrest.FeatureMatcher;
import org.hamcrest.Matcher;
import org.w3c.dom.Element;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.startsWith;
i... | 33.372549 | 117 | 0.686251 |
809f0fdf6c0bd2b41dd422dc5f002267e7d1b1db | 1,177 | package org.smartregister.reveal.model;
import org.smartregister.reveal.R;
/**
* @author Vincent Karuri
*/
public class CardDetails {
protected String status;
private int statusMessage;
private int statusColor = R.color.task_not_done;
private String reason;
private String comments;
public ... | 19.616667 | 53 | 0.639762 |
40e33a6ae9ec22f7659141c4d0ce3c5484f82e81 | 793 | package org.elypia.webservertestbed.junit5;
import okhttp3.mockwebserver.MockWebServer;
import org.junit.jupiter.api.extension.*;
import java.lang.annotation.*;
/**
* <p>
* Acts as an injection point for {@link MockWebServer} instance
* if the {@link WebServerExtension} is registered to the test instance.
* ... | 25.580645 | 75 | 0.697352 |
f8ee19bb2f34117bc5b00435263d302c0fc72df1 | 1,184 |
package com.linkedin.restli.examples.greetings.api;
import javax.annotation.Generated;
import com.linkedin.data.schema.TyperefDataSchema;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.TyperefInfo;
/**
*
*
*/
@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil... | 45.538462 | 518 | 0.679899 |
2deddef16c3352804f0b6f770cb993000734aa33 | 1,863 | package ru.eternalkaif.soundsofnature.handler;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.os.ResultReceiver;
import android.util.Log;
import ru.eternalkaif.soundsofnature.BaseApplication;... | 27 | 95 | 0.698873 |
aa1c6ecd7003f2ffe779ec35cb19bc4e322b5570 | 438 | package io.dreamstudio.architecture.user.enums;
/**
* @author Ricky Fung
*/
public enum ClientTypeEnum {
APP(1, "App端"),
PC(2, "网站"),
H5(3, "H5"),
;
private int value;
private String desc;
ClientTypeEnum(int value, String desc) {
this.value = value;
this.desc = desc;
}... | 16.846154 | 47 | 0.559361 |
a85d2acffeb94c154dd56e367570374bc1b62086 | 5,349 | package com.prupe.mcpatcher.basemod.ext18;
import com.prupe.mcpatcher.FieldRef;
import com.prupe.mcpatcher.MethodRef;
import com.prupe.mcpatcher.Mod;
import com.prupe.mcpatcher.PatchComponent;
import javassist.bytecode.AccessFlag;
import static com.prupe.mcpatcher.BytecodeMatcher.captureReference;
import static com.p... | 37.145833 | 100 | 0.616377 |
a3ee45220ccf4a4c0c7a734d4e3cce9b4cbf7687 | 275 | package ro.webdata.parser.xml.lido.core.leaf.rightsResource;
import org.w3c.dom.Node;
public interface RightsResourceDAO {
/**
*
* @param node <b>lido:rightsResource</b> node type.
* @return <b>RightsResource</b>
*/
RightsResource getRightsResource(Node node);
}
| 21.153846 | 60 | 0.727273 |
7a70ed2a039a70012712c89acdb0ef7a5fcfac8e | 1,182 | package dev.fastgql.db;
import io.vertx.core.json.JsonObject;
public class DebeziumConfig {
private final boolean active;
private final boolean embedded;
private final String bootstrapServers;
private final String serverName;
private DebeziumConfig() {
this.active = false;
this.embedded = false;
... | 22.730769 | 88 | 0.690355 |
dda3a9563a7afe3aaf1a7753ffbc2b396d47f97d | 2,432 | package com.hengyi.mvp.ui.base;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.MotionEvent;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;
import me.yokeyword.fragmentation.ExtraTransaction;
import me.yokeyword.fragmentation.ISupportActivity;
import ... | 27.325843 | 86 | 0.733141 |
0693339a18ddb11175f50b8daf77467731cf1afa | 1,746 | package com.acuteksolutions.uhotel.annotation;
import android.support.annotation.IntDef;
import com.acuteksolutions.uhotel.R;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Toan.IT
* Created by vantoan on 3/26/17.
* Email: Huynhvantoan.itc@gmail.com
*/
public class TabM... | 23.28 | 65 | 0.671249 |
8851c0b93809633d4f472ad17d32bd3e3a373caa | 12,677 | package algorithms.imageProcessing;
import algorithms.util.PairIntArray;
import algorithms.util.PairIntArrayWithColor;
import java.util.ArrayList;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author nichole
*/
public class... | 28.360179 | 83 | 0.504615 |
909a650d024748021de5761c37a4b4e7f31256d8 | 2,148 | /*
* Copyright 2000-2011 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... | 36.40678 | 116 | 0.764432 |
02403126932bb3e25086e0804439e664e14edaee | 1,086 | package com.mwiesner.pto.backend;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org... | 27.846154 | 115 | 0.80663 |
459dfdce5376f75738792184c42bcca990260f3f | 59 | package net.foreworld.plugins.log;
public class Test {
}
| 9.833333 | 34 | 0.745763 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.