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 |
|---|---|---|---|---|---|
fc6b0ce2a21c7324dc926cdf74e47c9fa6cae8b1 | 565 |
package org.springframework.jms.listener.adapter;
import java.io.Serializable;
import java.util.Map;
import javax.jms.BytesMessage;
import javax.jms.MapMessage;
import javax.jms.ObjectMessage;
import javax.jms.TextMessage;
/**
* See the MessageListenerAdapterTests class for usage.
*
* @author Rick Evans
*/
publ... | 20.178571 | 55 | 0.79646 |
18650c8165853c6db8bc82cf2cf3f3fa234e5459 | 538 | package cn.org.hentai.simulator.web.entity;
import org.springframework.stereotype.Component;
import java.lang.annotation.*;
/**
* Created by matrixy when 2018-04-23.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Component
public @interface Mapper
{
/**
* The value may indic... | 22.416667 | 76 | 0.719331 |
909cba3789341acd137f7a8644cfb441e737cab2 | 1,596 | /**
* 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... | 26.163934 | 75 | 0.68985 |
49493bc894af1fc1de87dee4fdffea0aa0131d2f | 4,538 | package com.sgcc.web.controller.sql;
import com.sgcc.common.annotation.Log;
import com.sgcc.common.core.controller.BaseController;
import com.sgcc.common.core.domain.AjaxResult;
import com.sgcc.common.core.page.TableDataInfo;
import com.sgcc.common.enums.BusinessType;
import com.sgcc.common.utils.poi.ExcelUtil;
import... | 34.641221 | 130 | 0.710004 |
d140d8ab41dc7959445c0813d7bd46b56929033e | 3,188 | // Copyright 2010 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 20.701299 | 94 | 0.595358 |
10fff7599af482dc0d72d546f695ec8bcb7f09b1 | 1,814 | package com.loror.lororUtil.http.api.chain;
import com.loror.lororUtil.http.api.Observable;
/**
* Date: 2020/6/4 8:58
* Description: Create By Loror
*/
public class ObserverChain {
private ObserverChain.Builder builder;
public interface OnErrorCollection {
void onError(Throwable throwable);
}... | 25.194444 | 92 | 0.612459 |
59f542c1ad28d6f98a6e74c0e751e175989413d2 | 652 | package de.peteral.softplc.model;
import javafx.collections.ObservableList;
/**
* This interface defines a symbol table of a CPU.
* <p>
* A symbol table translates symbolic names to physical addresses.
*
* @author peteral
*
*/
public interface SymbolTable {
/**
*
* @return observable list o... | 21.733333 | 76 | 0.65184 |
27c0d7b0d5de5b4af465e6ba552255429c2c3b30 | 3,743 | package com.thedeanda.util.convert;
import com.thedeanda.util.convert.fileinfo.*;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutEx... | 29.944 | 96 | 0.753139 |
d6ecd2e08d901603063af1dec7aa5d8ebec8e31f | 3,329 | package cn.miozus.gulimall.product.controller;
import cn.miozus.gulimall.common.utils.R;
import cn.miozus.gulimall.product.entity.BrandEntity;
import cn.miozus.gulimall.product.entity.CategoryBrandRelationEntity;
import cn.miozus.gulimall.product.service.CategoryBrandRelationService;
import cn.miozus.gulimall.product.... | 29.201754 | 101 | 0.649444 |
350769dd77388a868791a8fc72d8bde265a64c3d | 955 |
/******************************************************************************
* Copyright (C) 2019 Eric Pogue.
*
* This file and the Thunderbird application is licensed under the
* BSD-3-Clause.
*
* You may use any part of the file as long as you give credit in your
* source code.
*
* This application ... | 29.84375 | 81 | 0.559162 |
56567eae6da9402705c2fa6ef72799dbc41e88a6 | 470 | package utils.suites;
import com.google.inject.Inject;
import org.testng.TestNG;
import java.util.ArrayList;
import java.util.List;
public class Runner {
private final TestNG runner = new TestNG();
private final List<String> suiteFiles = new ArrayList<>();
@Inject
public Runner() {
}
public... | 20.434783 | 62 | 0.680851 |
47450042e00c588c910ad0371a3bf963ae49299e | 3,538 | package main;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.*;
import org.apache.cassandra.hadoop.ConfigHelper;
import org.apache.cassandra.hadoop.cql3.CqlConfigHelper;
import org.apache.cassandra.hadoop.cql3.CqlOutputFormat;
import org.apache.cassandra.hadoop.cql3.CqlPagingInputFormat;
imp... | 41.623529 | 102 | 0.689373 |
d3fbf8f3645daff82595b3242a47b823669d0981 | 1,527 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.fastsearch.test.fs4mock;
import com.yahoo.fs4.mplex.Backend;
import com.yahoo.fs4.mplex.FS4Channel;
/**
* @author bratseth
*/
public class MockBackend extends Backend {
... | 28.277778 | 118 | 0.671906 |
6d57285d02ce3ecb4c76448c3b56607ef20015cb | 1,499 | package com.woshidaniu.socket.code;
import java.nio.charset.Charset;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.CumulativeProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolDecoderOutput;
public class DataDecoder extends Cu... | 26.767857 | 84 | 0.621081 |
24d3e30ed0cc997896669be15ac764b6b8e8ff0c | 888 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See the LICENSE file in the project root for full license information.
package com.microsoft.store.partnercenter.customers.servicecosts;
import com.microsoft.store.partnercenter.IPartnerComponent;
import com.microsoft.stor... | 38.608696 | 105 | 0.788288 |
bf039e2ce4993a2ddebe84bd4cfb61d21d2f6447 | 10,960 | package com.cy.controller;
import com.cy.bean.*;
import com.cy.biz.AlarmService;
import com.cy.biz.PhamacyService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
im... | 40.14652 | 119 | 0.628558 |
6d1bd87fb8226f666777356de805c2bf43c7bcfc | 4,334 | package tests.service;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import helper.Compressio... | 33.083969 | 100 | 0.637517 |
9ae31336a04b8bdbf54ceb956fbbf6e23de92a83 | 14,221 | package com.kiyasul.android.fiftyx;
import android.os.Handler;
import android.util.Log;
import com.google.android.things.pio.I2cDevice;
import com.google.android.things.pio.PeripheralManagerService;
import java.io.IOException;
/**
* Created by kiyasul on 02/01/18.
*/
public class I2cRpi3ToPic implements Runnable{... | 27.560078 | 116 | 0.601786 |
2b4006257303c44b2183b2a561089493c50044ee | 418 | package cn.iflyapi.design.pattern.factory.entity;
/**
* @author: flyhero
* @date: 2018-07-28 上午10:24
*/
public class XiaoMiPhone extends Phone {
public XiaoMiPhone() {
name = "小米";
price = 1599d;
}
@Override
public void brand() {
System.out.println("品牌:" + name + " 价格:" + p... | 17.416667 | 58 | 0.562201 |
faff9fbe5816608ba1be89b5a5eafac20a5892d8 | 545 | package org.kyojo.schemaorg.m3n3.doma.core.clazz;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaorg.m3n3.core.impl.CITY_HALL;
import org.kyojo.schemaorg.m3n3.core.Clazz.CityHall;
@ExternalDomain
public class CityHallConverter implements DomainConver... | 23.695652 | 77 | 0.801835 |
5249077540fe0b657fc97a7da59c4b827243548f | 1,931 | /*
* Copyright 2012-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 37.134615 | 97 | 0.733817 |
b97d88a7465247ff3f6ce9c49e5d659792b4ab2a | 2,511 | /*
* 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 ... | 43.293103 | 106 | 0.704898 |
7fce7ef420afb9ebc36e1f5547fde89b6cd4e3d0 | 1,430 | package me.yokeyword.sample.demo_zhihu.ui.fragment.second;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import me.yokeyword.sample.R;
import me.yokeyword.sample.demo_zhihu.base.BaseLazyMainFragment;
i... | 31.086957 | 123 | 0.741259 |
f8692b5c7d90f83e05bbb98853024b637516c67e | 3,050 | /** Challenge Activity 3 - Simple English to Yoda translator.
*
* This activity will translate an English sentence (of up to 4 words) into
* Yoda-Speak https://en.wikipedia.org/wiki/Yoda
*
* The rules behind Yoda-Speak are complicated so in this version we've
* simplified them to these 4 cases:
* 1 word sent... | 33.152174 | 104 | 0.624262 |
42e8073dc30239c21ad618da3955b77c4fc4a78b | 1,218 | package fun.liwudi.graduatedesignuserinfomanage.service.impl;
import fun.liwudi.graduatedesignuserinfomanage.domain.UserInfo;
import fun.liwudi.graduatedesignuserinfomanage.mapper.UserManageMapper;
import fun.liwudi.graduatedesignuserinfomanage.service.UserManageService;
import org.springframework.beans.factory.annota... | 27.066667 | 73 | 0.766831 |
8040d9693db85fb92d594ad106bc8a2eafe7e879 | 1,806 | package pw.kaboom.weapons.commands;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.I... | 38.425532 | 115 | 0.770764 |
6f13a4e0a5bde5c546e0ffce5b7ad12bc0c1f676 | 5,907 | /*
* Copyright (c) 2016 Paysafe
*
* 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, merge, publish, dist... | 25.571429 | 100 | 0.619265 |
153a8d33a78e0379d82ee545928ee6f314b343dc | 11,604 | package com.zarbosoft.coroutines;
import com.zarbosoft.coroutinescore.SuspendExecution;
import com.zarbosoft.rendaw.common.Common;
import org.junit.Test;
import java.util.*;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.greaterThan;
i... | 27.432624 | 80 | 0.684247 |
cb227b8e5e12bbf42d18fd3d4d15b2bbb8ec972a | 3,468 | /*
* Copyright (c) 2012-2020, Peter Abeles. All Rights Reserved.
*
* This file is part of DDogleg (http://ddogleg.org).
*
* 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://w... | 28.9 | 88 | 0.70271 |
4cb1085ab5ca4a0d03af6e3e758bfbe7c65a1274 | 699 | //Hierarchical Inheritance example
class A
{
public void methodA()
{
System.out.println("method of Class A");
}
}
class B extends A
{
public void methodB()
{
System.out.println("method of Class B");
}
}
class C extends A
{
public void methodC()
{
System.out.println("method of Clas... | 16.642857 | 51 | 0.600858 |
c61b932c46b48c84ff84fc3a6221f071ac777a79 | 6,417 | package cn;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CLabel;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.... | 25.066406 | 100 | 0.717781 |
096fb9e2ba696b67a098facf0315a26ba61d812a | 2,412 | package de.youtclubstage.virtualyouthclub.controller;
import de.youtclubstage.virtualyouthclub.controller.model.StateDto;
import de.youtclubstage.virtualyouthclub.entity.Agreement;
import de.youtclubstage.virtualyouthclub.service.AgreementService;
import de.youtclubstage.virtualyouthclub.service.CheckService;
import d... | 36.545455 | 111 | 0.737562 |
253b8d1a46886a7cce93448dd434bf0a8d8cd907 | 2,695 | package com.bitshares.bitshareswallet;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Window;
import android.view.WindowManager;
import com.akexorcist.localizationactivity.ui.LocalizationActivity;
import com.good.code.sta... | 42.777778 | 96 | 0.709833 |
cfc6cf84cef19c10a3ce77670a24cb1af8b49397 | 152 | package com.datapath.kg.risks.api.dto;
import lombok.Data;
@Data
public class SortingOptionDTO {
private String field;
private String type;
}
| 15.2 | 38 | 0.743421 |
a1283611a84cf9d6c2eba490c8411ce64d9d9d81 | 1,934 | // This file is auto-generated, don't edit it. Thanks.
package com.antgroup.antchain.openapi.goodschain.models;
import com.aliyun.tea.*;
public class TraceInfoDTO extends TeaModel {
// 操作描述
@NameInMap("operate_type_desc")
@Validation(required = true)
public String operateTypeDesc;
// 操作时间,时间戳
... | 24.794872 | 85 | 0.658738 |
875d4c4ff437e7fca95525ae42b8cab8590687e2 | 3,802 | /*
* 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 Networks.ChatApplication;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.MouseEvent;
import java.awt... | 29.703125 | 95 | 0.580221 |
54461e118e9ab34754ee23c1734a57179a0b305e | 7,838 | package com.lumivote.lumivote.ui;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app... | 33.353191 | 126 | 0.666114 |
d98a5df04ed28dba88fc6b5b13a4e9a499a4aca8 | 2,841 | package js.web.dom;
import js.lang.Promise;
import js.util.collections.Array;
import js.util.collections.ReadonlyArray;
import js.util.function.JsConsumer;
import js.util.iterable.JsIterable;
import js.web.beacon.NavigatorBeacon;
import js.web.credentialmanagement.CredentialsContainer;
import js.web.gamepad.Gamepad;
i... | 30.223404 | 239 | 0.778951 |
f51433328cca6c268a16c8346d2175fccb4c71ab | 1,201 | package com.tehang.common.utility;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import java.util.function.Function;
import java.util.function.Supplier;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class NullUtils {
/**
* @param getMet... | 25.020833 | 120 | 0.666944 |
24c798df7153c42270ef985a57d15fcdbed41b94 | 2,218 | package com.noahcharlton.wgpuj.jni;
import com.noahcharlton.wgpuj.util.WgpuJavaStruct;
import jnr.ffi.Runtime;
import jnr.ffi.Struct;
/** NOTE: THIS FILE WAS PRE-GENERATED BY JNR_GEN! */
public class WgpuSwapChainDescriptor extends WgpuJavaStruct {
private final Struct.Unsigned32 usage = new Struct.Unsigned32();... | 25.790698 | 102 | 0.665464 |
8544fbe72f0c26513ab70afa92fc4be715660db9 | 1,202 | package vg.civcraft.mc.namelayer.events;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import vg.civcraft.mc.namelayer.group.Group;
public class GroupDeleteEvent extends Event implements Cancellable{
private static final HandlerList handlers = new HandlerLis... | 20.372881 | 67 | 0.727121 |
0d309e387541dc30a8abf1d85690b3021d22306b | 3,069 | package com.faforever.moderatorclient.ui;
import com.faforever.moderatorclient.api.domain.PermissionService;
import com.faforever.moderatorclient.ui.data_cells.StringListCell;
import com.faforever.moderatorclient.ui.domain.UserGroupFX;
import javafx.fxml.FXML;
import javafx.scene.control.ListView;
import javafx.scene.... | 33 | 126 | 0.714239 |
1cde25a1733bfb2b4bc361cc16140ff802081dac | 1,377 |
package org.usfirst.frc2337.TalonSRXwithMagEncoder.subsystems;
import org.usfirst.frc2337.TalonSRXwithMagEncoder.RobotMap;
import org.usfirst.frc2337.TalonSRXwithMagEncoder.commands.*;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.command.Subsystem;
/**
*
*/
public class Retractor extends S... | 21.184615 | 74 | 0.681191 |
40daf278e687a7b53e044771bab181d6ba494179 | 1,557 | package ichttt.mods.mcpaint.client.gui.button;
import com.mojang.blaze3d.matrix.MatrixStack;
import ichttt.mods.mcpaint.MCPaint;
import ichttt.mods.mcpaint.client.gui.drawutil.EnumDrawType;
import net.minecraft.client.gui.widget.button.Button;
import net.minecraft.client.resources.I18n;
import net.minecraft.util.text.... | 40.973684 | 151 | 0.668593 |
f4acb2819a814c37ffc9e1db2ff9e03a22a80808 | 4,940 | package com.hedera.hashgraph.sdk;
import com.google.protobuf.InvalidProtocolBufferException;
import com.hedera.hashgraph.sdk.proto.ContractDeleteTransactionBody;
import com.hedera.hashgraph.sdk.proto.SchedulableTransactionBody;
import com.hedera.hashgraph.sdk.proto.SmartContractServiceGrpc;
import com.hedera.hashgraph... | 31.069182 | 173 | 0.689676 |
475cd0994d8667f487bf418e1fe6017b84c6ad80 | 2,395 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.287879 | 93 | 0.683925 |
8c5ff7b87e6638c598bf37b8c9136aec1a59ab5d | 605 | package de.zalando.zally.configuration;
import de.zalando.zally.rule.ApiValidator;
import de.zalando.zally.rule.CompositeRulesValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import... | 27.5 | 62 | 0.808264 |
1b662fd570dbf5852a99f9b0139de346d2b8bdc4 | 811 | package modelo.edificios.plazacentral;
import modelo.juego.Oro;
import modelo.edificios.Edificio;
import modelo.unidades.aldeano.Aldeano;
public class EstadoPlazaCentralCreada implements EstadoPlazaCentral{
private static final String NOMBRE_ESTADO = "Disponible";
@Override
public Aldeano crearAldeano(O... | 22.527778 | 68 | 0.696671 |
11fdc01d72c4c8f280611c432ebe331b297b6f98 | 3,749 | package gg.projecteden.nexus.features.commands;
import gg.projecteden.nexus.features.minigames.Minigames;
import gg.projecteden.nexus.framework.commands.models.CustomCommand;
import gg.projecteden.nexus.framework.commands.models.annotations.Aliases;
import gg.projecteden.nexus.framework.commands.models.annotations.Arg... | 35.367925 | 112 | 0.727127 |
794daf1b6c960161fa1bc19a9ea2fedeb41b3980 | 797 | package br.com.arbo.org.springframework.boot.builder;
import java.util.stream.Stream;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;
class SingletonsPrepar... | 25.709677 | 80 | 0.814304 |
b1fd1a349bcf35dd8f5c1ee5e00d91327d72cfbb | 3,918 | /**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either vers... | 35.297297 | 173 | 0.713374 |
9fb30dd6bee348010b97c7d886f7b717ee6065db | 2,081 | package tinyapps.apptemplate.base.util.wip;
/**
* Created by TheFinestArtist on 2014. 9. 2..
*/
public class LanguageDetector {
// public static boolean isEnglish(CharSequence charSequence) {
// boolean isEnglish = true;
// for (char c : charSequence.toString().toCharArray()) {
// if (Ch... | 39.264151 | 110 | 0.586257 |
992d50e56192ad2ffa1be7c7828a7183c9474701 | 1,487 | package chapter2.section2;
/**
* Created by Rene Argento on 19/02/17.
*/
//This implementation uses the third mergesort improvement:
//Improvement #3 - Avoid array copy during merge by switching arguments
public class Exercise23_Improvements3_AvoidCopy {
public static void mergeSort(Comparable[] array) {
... | 30.346939 | 100 | 0.562878 |
1e588df0ea71a527cbfa3b75ff15a38f804fcfcb | 21,212 | package org.carlspring.strongbox.providers.io;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.nio.channels.FileChannel;
import java.nio.channels.SeekableByteChannel;
import java.nio.file.AccessMode;
import java.nio.file.CopyOption;
import java.nio.... | 32.090772 | 201 | 0.554309 |
391df6494e6890bfbba1bb216d63d55496cbaf09 | 499 | /*
* 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.ostrichemulators.jfxhacc.mapper;
import com.ostrichemulators.jfxhacc.model.IDable;
import org.openrdf.model.URI;
/**
*
... | 20.791667 | 79 | 0.723447 |
00a3eaff587065cca4838987b3f76246fc042316 | 1,205 | package com.binance.dex.api.client.domain.ws;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class OutboundAccountInfo {
@JsonProperty("e")
private String eventType;
... | 23.627451 | 61 | 0.635685 |
2d298aebc2cd235d7f31879f8f8518749ddcb5b9 | 243 | package com.jackz314.colorpicker.renderer;
import android.graphics.Canvas;
public class ColorWheelRenderOption {
public int density;
public float maxRadius;
public float cSize, strokeWidth, alpha, lightness;
public Canvas targetCanvas;
} | 24.3 | 51 | 0.814815 |
61b37ffc56f0bd25a3516e7af87cd79e4aeb8507 | 3,733 | package cn.felord.wepay.ali.sdk.api.domain;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField;
/**
* 个体工商户经营者信息
*
* @author auto create
* @version $Id: $Id
*/
public class OperatorInfo extends AlipayObject {
private static final long serialVersionUID ... | 24.083871 | 71 | 0.705599 |
a23384edf959f5b79ee312a1df386a6a5ee70921 | 2,255 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package programmingcontest.MICS2008Data;
import java.io.File;
import java.util.Scanner;
import java.util.*;
//import zhstructures.ZHTreeMap;
/**
*
* @author awzurn
*/
public class Problem8 {
private ArrayList<St... | 32.214286 | 98 | 0.527716 |
0d0bc3e583d6eb756caef1152811c2758c28bc59 | 4,788 | package com.nickli.scheduleapp.emailStaff;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import andr... | 34.695652 | 96 | 0.675856 |
ee57cf4905fc32944d4eb3486fd46d44e427abb2 | 208 | package com.github.yusufcanb.micromamba4j;
import lombok.Data;
@Data
public class MambaPackage {
private String name;
private String version;
private String build;
private String channel;
}
| 17.333333 | 42 | 0.745192 |
d53ef2d937f776f0c59386b2257eeab6f7798783 | 926 | class Person
{
String name;
int grade_test1;
int grade_test2;
int grade_test3;
public Person(String studentName, int grade1, int grade2, int grade3)
{
this.name = studentName;
this.grade_test1 = grade1;
this.grade_test2 = grade2;
this.grade_test3 = grade3;
}
... | 27.235294 | 112 | 0.595032 |
dc583dea2e83277669a9d723cc9d1df09bc98ae8 | 195 | package org.ada.school.user.config;
public interface Constants
{
String CLAIMS_ROLES_KEY = "claims_roles_key";
int TOKEN_DURATION_MINUTES = 60;
String COOKIE_NAME = "cookie_name";
}
| 21.666667 | 49 | 0.748718 |
e37f4208c28ee99a1f087c4773c6870c8a8679e7 | 848 | /*
* 30-ago-2016: I18nManager.java
*/
package com.borjapintos.timezzz.util;
import java.util.Locale;
import java.util.ResourceBundle;
/**
* The Class I18nManager.
*
* @author Borja Pintos
*/
public class I18nManager {
private static Locale currentLocale = null;
private static Resource... | 21.74359 | 68 | 0.659198 |
f4b8a3663b42552dcb84813b0e92b32666ffcb6b | 3,198 | package com.sldlt.navps.resource;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
imp... | 43.216216 | 135 | 0.749844 |
aa19a5d36908fe9432f476f9af6876e96cd83890 | 9,860 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses ... | 15.030488 | 810 | 0.810142 |
ce8e931e7a1b396c8e68a5ac65793d359f218edc | 12,999 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 31.938575 | 100 | 0.672129 |
7616f7266b4dbcdaff52d2966d7c60c7c6e70d7a | 730 | package net.frozenorb;
public class ReusableByteArray {
private final ThreadLocal<byte[]> arrays;
public ReusableByteArray(final int initialSize) {
arrays = new ThreadLocal<byte[]>() {
@Override
protected byte[] initialValue() {
return new byte[initialSize];
... | 24.333333 | 62 | 0.554795 |
762acff12e01203ee4e000afa92255a2e9271135 | 7,741 | /*
* Copyright 2012-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 38.899497 | 156 | 0.684279 |
2b5a34affb7250eb4443c41d6abc54c438103369 | 1,704 | package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.HashMap;
/***
* normal user class
* limited privileges
*/
public class Borrower extends User {
private String name;
private String email;
private int phone;
//private ArrayList<Item> itemsLoaned;
private UserMenu menu;
... | 27.047619 | 115 | 0.576291 |
9eba9d0f8ac478166adf873cd5034fa4091565a7 | 2,623 | /*
* Copyright (c) 2012, 2015, 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 ... | 47.690909 | 130 | 0.715974 |
40bfe2ce6150e730a1a8736117858090ece84431 | 3,818 | package dDCF.runtime;
import dDCF.lib.Work;
import dDCF.lib.internal.Config;
import dDCF.lib.internal.InterConnects.InterConnects;
import dDCF.lib.internal.JarByteClassLoader;
import dDCF.lib.internal.Utils;
import dDCF.lib.internal.Worker;
import dDCF.runtime.Utils.CmdLineParser;
import dDCF.runtime.Utils.Reflection;... | 25.118421 | 83 | 0.641959 |
31b1a4ca171b0401737ec4a0b42584dcc4337bb9 | 1,764 | import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class FicherosTexto1 {
public static void escribirFichero(String[] lista) {
// Escribir en un fichero.
try {
// 1. Crear Fichero.
File fichero = new File("Fic... | 22.329114 | 58 | 0.643424 |
09f52d0363fc8e6949c8a17c65ed2b5d05e739b3 | 15,846 | package org.dew.oauth2;
import java.lang.reflect.Array;
import java.net.URLEncoder;
import java.util.*;
/**
* Utilities.
*/
public
class Utils
{
public static
String encode(Object value)
{
if(value == null) return "";
String sValue = toString(value, "");
try {
return URLEncoder.encode(sVal... | 26.322259 | 101 | 0.521015 |
93857537d845d0839eec53af25244e65b97d1c87 | 7,331 | /*******************************************************************************
* ENdoSnipe 5.0 - (https://github.com/endosnipe)
*
* The MIT License (MIT)
*
* Copyright (c) 2012 Acroquest Technology Co.,Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... | 36.655 | 101 | 0.678898 |
410e0329b58db42299b2aa11d4f3423b54d9228c | 781 | package nortantis.editor;
import java.awt.Color;
import java.io.Serializable;
@SuppressWarnings("serial")
public class RegionEdit implements Serializable
{
public Color color;
public int regionId;
public RegionEdit( int regionId, Color color)
{
this.color = color;
this.regionId = regionId;
}
@Override
p... | 16.978261 | 47 | 0.674776 |
96f249a07da3cf020e40edf480c693a4aed8641d | 144 | package com.heyongrui.module;
import com.heyongrui.base.app.BaseApplication;
public class ModuleLaunchApplication extends BaseApplication {
}
| 20.571429 | 62 | 0.840278 |
6f13676d64b240fff1a44b0f3a2028182fc9f1ce | 1,059 | /**
* <html>
* <body>
* <P> Copyright 1994-2018. JasonInternational.</p>
* <p> All rights reserved.</p>
* <p> Created by Jason</p>
* </body>
* </html>
*/
package cn.ucaner.fastdfs.test;
import static org.junit.Assert.assertEquals;
import org.apache.commons.configuration.ConfigurationException... | 26.475 | 101 | 0.705382 |
12b656dcb0837a67b33beda5743d303786a92581 | 3,077 | package com.e16din.handyholder.settings;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.e16din.handyholder.listeners.click.OnClickListener;
import com.e16din.handyholder.listeners.click.OnViewsClickListener;
import java.util.List;
public class ClickBox<ADAPTER extends RecyclerVi... | 31.080808 | 107 | 0.657459 |
45f24909371d11dee8a9c911bcef47074e439f8f | 3,084 | package il.org.spartan.spartanizer.tippers;
import static il.org.spartan.Utils.*;
import static il.org.spartan.lisp.*;
import static il.org.spartan.spartanizer.ast.factory.make.*;
import static org.eclipse.jdt.core.dom.InfixExpression.Operator.*;
import java.util.*;
import org.eclipse.jdt.core.dom.*;
import org.ecli... | 27.783784 | 133 | 0.649157 |
9069f319672567216050361d0c6123a2418f1359 | 4,578 | /*******************************************************************************
* Copyright 2012 Yuriy Lagodiuk
*
* 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.apac... | 27.914634 | 110 | 0.709043 |
76f3cd344c2ea718f39d10fe190fd522179014c2 | 1,584 | package net.boomerangplatform.repository.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Issues {
@JsonProperty("total")
private Integer total;
@JsonProperty("blocker")
private... | 17.6 | 61 | 0.693813 |
f97bf9ae9c65db8af7f643ca59c7a6555def9215 | 728 | package ru.job4j.list.linkedlist.stack;
import ru.job4j.list.linkedlist.PlainLinkedList;
public class SimpleStack<E> {
private PlainLinkedList<E> linkedStore = new PlainLinkedList<>();
/**
* poll last element.
* @return - element.
*/
public E poll() {
E result = linkedStore.get(l... | 20.8 | 72 | 0.597527 |
762e633645838873340102265c6196fcc98848a7 | 4,029 | package seedu.address.logic.commands.person;
import static java.util.Objects.requireNonNull;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import seedu.address.commons.core.Messages;
import seedu.address.commons.core.index.Index;
import seedu.address.logic.EditTaskDescriptor;
import seedu.ad... | 42.410526 | 105 | 0.712087 |
1a0a3cfa26a15bcda4daa39c3569a987478a4ed9 | 890 | package Linked_List1_07;
public class TestSLinkedList {
public static void main(String[] args) {
SLinkedList newLinkedList = new SLinkedList();
System.out.println(newLinkedList.listSize); // 0
newLinkedList.insertFront("Milk");
newLinkedList.insertFront("Orange juice");
ne... | 40.454545 | 87 | 0.631461 |
3c79035a6fe0cf2609af388ebf9d3688fb35902b | 293 | package distrubition;
import java.util.HashMap;
import java.util.concurrent.ThreadPoolExecutor;
/**
* @author zero
* @created 2019/10/25
*/
public class Test {
public static void main(String[] args) {
System.out.format("二进制输出=%s\n", Integer.toBinaryString(1 << 31));
}
}
| 18.3125 | 73 | 0.675768 |
17045750bbfae553d2cbf103b5c3b4c1461708cb | 2,844 | package com.tourcool.ui.kitchen;
import android.os.Bundle;
import android.widget.TextView;
import com.frame.library.core.widget.titlebar.TitleBarView;
import com.tourcool.core.widget.HtmlWebView;
import com.tourcool.smartcity.R;
import com.tourcool.ui.base.BaseCommonTitleActivity;
/**
* @author :JenkinsZhou
* @des... | 40.056338 | 153 | 0.657876 |
390bb766ab810009508fa031314f9876ee25b196 | 2,923 | /*
* Copyright (C) 2019 The Android Open Source 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 app... | 37.474359 | 94 | 0.66507 |
e04feffce22309bb6f526f3ff092541feb5c6aa4 | 2,772 | package com.mosi.jpa.entity;
import java.time.ZonedDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
/**
* Feedback Entity class which represen... | 20.842105 | 110 | 0.670274 |
46ad50cecb22077ea7bef11e5dd78bd1ba4c0f52 | 401 | package com.clean.architecture.domain.entities;
public class OrderItem {
public String idItem;
public double price;
public int quantity;
public OrderItem(String idItem, double price, int quantity){
this.idItem = idItem;
this.price = price;
this.quantity = quantity;
}
... | 21.105263 | 64 | 0.645885 |
4a27931698951e732d10f92031c6af51aa172195 | 7,416 | /*
* Copyright © 2016 Cask Data, 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 t... | 38.42487 | 118 | 0.740291 |
6c94e977cefa2fbfa97dd9ee66dc25c875cacbd1 | 1,801 | /*******************************************************************************
* Copyright 2012-2014 Analog Devices, 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
*
* h... | 36.755102 | 110 | 0.678512 |
2cb2d0125007b1c426df5e76134ca7094055e825 | 653 | package com.javaalgorithms.sorts;
public class SortingUtils {
/**
* Helper method for swapping places in array
*
* @param array The array which elements we want to swap
* @param idx index of the first element
* @param idy index of the second element
*/
static <T> boolean swap(T[] ... | 28.391304 | 77 | 0.569678 |
eddc61c5f9f5df38c19c46ac02489bd4a608d6fe | 1,267 | // 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.irobot.home.model.rest;
public class RegisterCustomer
{
public RegisterCustomer(String s, boolean flag, String s1, String s2, String s3)
{... | 28.795455 | 81 | 0.5588 |
81708a73809d0a3b9e930dfc1a12f8f5b2cdd0fe | 1,531 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. 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
*
* Un... | 34.795455 | 116 | 0.760941 |
b28a1e2c8599bbd954765136fa884ae12ef00349 | 2,723 | /*
* Copyright 2013 Google Inc. 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
*
* Unless required by applica... | 27.785714 | 77 | 0.695189 |
032ae473bc94935cac560c1ba49d4dea6dbb94da | 1,670 | /*
* Copyright 2021 Christopher Sieh (stelzo@steado.de)
*
* 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 applicab... | 30.363636 | 81 | 0.722754 |
0b95c555c28e3c53afead04586856c83ebadbc93 | 10,613 | package org.vaadin.touchmenu.client;
import com.google.gwt.dom.client.Style;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.... | 39.018382 | 95 | 0.649958 |
1b65c0a0fee17028824e9ae9f29eee1854635b70 | 23,083 | package com.serenegiant.screenrecordingsample;
/*
* ScreenRecordingSample
* Sample project to cature and save audio from internal and video from screen as MPEG4 file.
*
* Copyright (c) 2015 saki t_saki@serenegiant.com
*
* File name: MainActivity.java
*
* Licensed under the Apache License, Version 2.0 (the "Lice... | 34.400894 | 145 | 0.747823 |
ae34d570167e57be01604f16b5e8188b496e26f1 | 467 | package com.skyl.commons.model.pojo;
import com.skyl.commons.model.base.BaseModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class DinerPoints extends BaseModel {
@ApiModelProperty("关联DinerId")
private Integer fkDinerId;
@ApiModelPr... | 24.578947 | 76 | 0.753747 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.