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 |
|---|---|---|---|---|---|
7d93ffd0feef923df1f9dc8f7cda6710d475abac | 4,522 | package com.beimi.web.handler.api.rest.user;
import com.beimi.core.BMDataContext;
import com.beimi.util.cache.CacheHelper;
import com.beimi.web.model.*;
import com.beimi.web.service.repository.es.PcddPeriodsESRepository;
import com.beimi.web.service.repository.es.TokenESRepository;
import com.beimi.web.service.reposit... | 40.738739 | 151 | 0.634675 |
cf50ab03bcdc76d5324542013d2a14f4b2682315 | 3,433 | //
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2015.11.18 时间 11:24:52 PM CST
//
package com.leonoss.jgeotag.gpx;
import java.math.BigDecimal;
import javax.xml.bi... | 22.585526 | 110 | 0.56656 |
29b1afad56306fb51eddf1f2b3aefe320586eaf6 | 333 | package com.lukatu.agenerator.label;
/**
* Created by vberegovoy on 14.12.16.
*/
public class LabelRaw extends Label {
public enum Type {
string;
}
public final String name;
public final Type type;
public LabelRaw(String name, Type type) {
this.name = name;
this.type = t... | 17.526316 | 45 | 0.615616 |
972ba9586f0db8c13074a87a1274901bec9d3a95 | 3,762 | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 40.451613 | 122 | 0.736045 |
1184649020258b3c16c89c5058eb627a19839e1f | 265 | public class PapagaioInterface extends AveInterface{
@Override
public void emitirSom(){
System.out.println("piu piu piu");
}
@Override
public void voar(){
System.out.println("O papagaio esta voando");
}
}
| 13.947368 | 53 | 0.588679 |
6819e4d79aea33654608821de985131abc18b00b | 1,029 | package com.sunzequn.sdfs.socket.client;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.net.Socket;
/**
* Created by Sloriac on 2016/12/16.
*/
public class ReceiveHandler extends Thread {
private Socket socket;
private SockClient client;
public ReceiveHandler(Socket socket, ... | 24.5 | 70 | 0.511176 |
fa79f5b9427f7a3a5a8001f22c991d25453d749c | 1,513 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
package com.microsoft.commondatamodel.objectmodel.cdm.cdmtraitdefinition;
import com.microsoft.commondatamodel.objectmodel.cdm.CdmTraitDefinition;
import com.mic... | 52.172414 | 126 | 0.787839 |
3560e2161ebf025b16840f95065910ebc51a31d4 | 604 | package com.imooc.file;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class FileInputDemo1 {
public static void main(String[] args) {
try {
FileInputStream fis = new FileInputStream("E:\\my_JavaIO\\imooc.txt");
// int n=fis.read();
int n=0;
// whi... | 20.133333 | 73 | 0.630795 |
b7f53b54859a76ead9ea02d0f1e51666fc2527d6 | 1,954 | /*
* 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 edu.pse.beast.codearea.ErrorHandling;
import java.util.ArrayList;
import javax.swing.JTextPane;
/**
* This class facillitat... | 27.521127 | 79 | 0.683214 |
d2fbfd9bcf1120e34ee53724708597d1405c2919 | 2,303 | /*
* Copyright 2018-2020 The Code Department.
*
* 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 applic... | 23.742268 | 110 | 0.616153 |
fd76efedea7c02d1ee615ec6ea831e135174553a | 34,999 | 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... | 18.726057 | 986 | 0.782051 |
a430a294f868d85a6e29d1453edab4f1d0248b97 | 531 | package mazes.svg;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public final class SVGComment implements SVGElement {
private final List<String> content;
public SVGComment(List<String> content) {
this.content = content;
}
public SVGComment(String content) {
this.content = Ar... | 19.666667 | 53 | 0.691149 |
6bcb9a39f6a52fa1af449ab1e23a8843fe1dfa78 | 955 | package com.yiie.utils;
/**
* Time:2020-1-4 1:39
* Email: yiie315@163.com
* Desc:
*
* @author: yiie
* @version:1.0.0
*/
public class CodeUtil {
private static final String DEPT_TPYE="YXD";
private static final String PERMISSION_TPYE="YXP";
/**
*右补位,左对齐
* @param oriStr 原字符串
* @param ... | 20.76087 | 72 | 0.553927 |
820e41bf7c393b59b9daf1ad28b7361916783471 | 4,337 | package br.usp.ime.retrobreaker.forms;
import android.util.Log;
import br.usp.ime.retrobreaker.game.Game.State;
public class MobileBrick extends Brick {
private int mFramesToWait; //number of frames update to wait until the brick move again.
private int mToWait; //countdown (which starts with mFramesToWait) that... | 37.713043 | 171 | 0.66267 |
c790f57d737415c51fa213aeed8a5bb030804f22 | 7,069 | package mx.ipn.escom.prueba.coffeeapp.viewmodel;
import android.app.Application;
import android.util.Log;
import java.lang.reflect.Field;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.util.concurrent.ExecutionException;
import androidx.lifecycle.LiveData;
import androidx.lifec... | 42.329341 | 99 | 0.677889 |
0926969cda7d3efcbbf9b6bc886e093db181ba6a | 15,901 | package ru.kontur.vostok.hercules.gate.client;
import org.apache.http.HttpEntity;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http... | 40.563776 | 121 | 0.667442 |
c0227a89f36c0eeb2bf604ebcc193897aa576d70 | 3,391 | /*
* 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.maserven.dao;
import com.maserven.utils.ConexionConfig;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
impo... | 36.858696 | 126 | 0.565615 |
afd7094578fbd4bfbbbf8e478e22ef77c7bf19ec | 1,321 | public class Solution {
public List<Integer> topKFrequent(int[] nums, int k) {
/*
Use a map to store the integer with its corresponding appearance times.
Convert the map to a sequence of buckets to store the integers.
the appearence times of an int is same as (the index of a bucket i... | 35.702703 | 96 | 0.492051 |
a8c1568b9297bab02299267519dc039a45d5247d | 3,103 | /**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundati... | 36.081395 | 110 | 0.673219 |
21c8663f8a704f15a49206c2008d2ea983f83360 | 3,271 | package seedu.addressbook.ui;
import java.util.List;
import static seedu.addressbook.common.Messages.*;
public class Formatter {
/** A decorative prefix added to the beginning of lines printed by AddressBook */
public static final String LINE_PREFIX = "|| ";
/** A platform independent line separator. *... | 34.431579 | 103 | 0.65454 |
56188ee18b9c9b5248f154b6ac4a06f820b37fc3 | 4,080 | /*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.netease.hearttouch.hthotfix;
import com.netease.hearttouch.hthotfix.inject.HackInjector;
import org.apache.commons.io.IOUtils;
import org.gradle.api.Project;
import org... | 35.789474 | 112 | 0.614216 |
08af01e993130046b8250e4072430a5b17e7991b | 7,587 | /*
* Copyright (c) 2011-2016, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.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://www... | 28.309701 | 103 | 0.600764 |
bd5dd6996ea8249fb73265b251ddc2c4d7be46b3 | 5,837 | package br.com.mesttra.mcs.orcamento.service.impl;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.LinkedList;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Objects;
import java.util.stream.Collectors;
import org.springframework.data.domain.Example;
imp... | 31.047872 | 152 | 0.770087 |
faa949d8e26a4fcdc9a2787076d00cefd1fa9497 | 1,214 | package com.aegean.icsd.mciobjects.common.daos;
import java.util.List;
import com.aegean.icsd.engine.common.beans.BaseGameObject;
import com.aegean.icsd.engine.rules.beans.EntityProperty;
import com.aegean.icsd.mciobjects.common.beans.ProviderException;
public interface IObjectsDao {
<T extends BaseGameObject> Li... | 46.692308 | 160 | 0.832784 |
93201ba42810b923e0c75f79b1e801d5633ea736 | 953 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package keno.widgets;
/**
*
* @author mark
*/
public class PayTable {
// PICKS, PICK_COUNT, PAY, PAYOUT
public final static int[][] pay = {
{ 2 ... | 35.296296 | 68 | 0.303253 |
c628367a6fc472568f82fa3d375fb45abed45a63 | 225 | package io.github.jonarzz.kata.fizz.buzz;
class InvertedNestedModuloBasedFizzBuzzTest extends BaseFizzBuzzTest {
InvertedNestedModuloBasedFizzBuzzTest() {
super(new InvertedNestedModuloBasedFizzBuzz());
}
} | 25 | 70 | 0.786667 |
841794108fb8b633d4777645b8accd295cec9c55 | 1,155 | /*
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31.216216 | 133 | 0.74632 |
0c1ff2c1a2d480b8070f6116c6fd9ec3f5a32a48 | 3,401 | /*
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
/*
* This class represents the Bean object for code coverage computation for source c... | 24.644928 | 112 | 0.768009 |
6ae984ed96fac7b9a1b73b8f1dc783f548353698 | 1,008 | package com.leemon.wushiwan.entity;
import com.leemon.wushiwan.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints... | 17.684211 | 55 | 0.681548 |
22e6af0cffa1cf9a51661c2343ee90144877b008 | 33,180 | import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Rectangle;
import org.dvb.ui.DVBBufferedImage;
/**
* Класс реализует отображение игрового процесса
* @author Igor Maznitsa
* @version 1.03
*/
public class GameView
{
private static final String IMAGE_BRDRLEFT = "gfx/brdrlft... | 37.155655 | 145 | 0.584027 |
f25d33b149dc0ba296fd465e103abb9197e13d29 | 3,128 | package org.gt;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.gt.pipeline.ReaderWriterConfig;
import org.gt.pipeline.TransformConfig;
import java.util.List;
public class Configuration {
private static final Logger logger = LogManager.getLogger();
private sta... | 26.735043 | 95 | 0.685742 |
426b7c9d47171345e31b34952e8116f4c1064d32 | 2,850 | /*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 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/lic... | 41.911765 | 125 | 0.664912 |
e872c425ec7b74a1802a648f8b1725217a59f62b | 21,762 | package com.juchao.upg.android.net;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import com.juchao.upg.android.entity.AccountEquipment;
import com.juchao.upg.android.entity.BaseEquipmentAttachment;
import com.juchao.upg.android.entity.BaseImage;
import com.juchao.upg.android... | 30.436364 | 356 | 0.676546 |
42802aff03435482d7e83aa0015f34b9cfee30d5 | 1,012 | package slimeknights.tconstruct.tables.item;
import slimeknights.mantle.item.RetexturedBlockItem;
import java.util.function.BooleanSupplier;
import net.minecraft.core.NonNullList;
import net.minecraft.tags.Tag;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft... | 36.142857 | 114 | 0.797431 |
74526afa09eff28573e6ffa22f58aa8a45b5b4b1 | 1,010 | package javacore.Yserializacao.test;
import javacore.Yserializacao.classes.Aluno;
import javacore.Yserializacao.classes.Turma;
import java.io.*;
public class SerializacaoTest {
public static void main(String[] args) {
gravadorObjeto();
leitorObjeto();
}
private static void gravadorObjeto(... | 29.705882 | 97 | 0.629703 |
852774fad18df58c7d4667487386e21891d97f0d | 5,751 | package io.invertase.firebase;
import android.app.ActivityManager;
import android.content.Context;
import android.util.Log;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import co... | 33.631579 | 142 | 0.668753 |
6c967fd084bf5a552181baf8ed972257f7cf59f9 | 1,256 | package com.eshop.ordering.api.application.commands;
import an.awesome.pipelinr.Command;
import com.eshop.ordering.domain.aggregatesmodel.order.OrderId;
import com.eshop.ordering.domain.aggregatesmodel.order.OrderRepository;
import com.eshop.ordering.shared.CommandHandler;
import lombok.RequiredArgsConstructor;
import... | 33.052632 | 130 | 0.757962 |
1fd539a6c54b083cde179d947a158f6d625bcade | 850 | package org.onap.ccsdk.apps.services;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.annotation.JsonValue;
@JsonRootName(value = "error")
public class RestTransportError extends RestError {
public RestTransportError() {
... | 27.419355 | 82 | 0.708235 |
44df5c1e898d9547bc4c6a21e4c805e3a6e30c7c | 6,497 | /*
* Copyright (C) 2020 ActiveJ 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 40.861635 | 143 | 0.789595 |
7c3570944e982a2c14133467ad94f2fac459087b | 4,188 | /*
* 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.422018 | 93 | 0.723973 |
e052b64532c753f31b57a48dc781d205bb3edc44 | 5,940 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 32.108108 | 143 | 0.658081 |
9a8f749c498611fe847a5f91200d4adc3fb532b3 | 3,864 | package com.alibaba.jvm.sandbox.api.resource;
import com.alibaba.jvm.sandbox.api.Information;
import java.net.InetSocketAddress;
/**
* 沙箱配置信息
*
* @author luanjia@taobao.com
*/
public interface ConfigInfo {
/**
* 获取沙箱的命名空间
*
* @return 沙箱的命名空间
* @since {@code sandbox-common-api:1.0.2}
... | 20.020725 | 85 | 0.582039 |
5c320acea266bdad93d07006ed8bc20949341a54 | 471 | /*******************************************************************************
* Copyright 2012 Josh Attenberg. Not for re-use or redistribution.
******************************************************************************/
package com.dsi.parallax.optimization.linesearch;
import com.dsi.parallax.ml.vector.Linea... | 39.25 | 80 | 0.515924 |
ccab15aa1b765b2c58d4c72d617569533bc0931e | 6,134 | /**
* blackduck-installer
*
* Copyright (c) 2021 Synopsys, Inc.
*
* 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 y... | 57.867925 | 147 | 0.830942 |
ae0e2ec93401a7036aa18675f5950955acb49aac | 3,382 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | 32.209524 | 126 | 0.63838 |
ceb6a0549f4601093440de107f82765fd2942cfc | 2,346 | package com.github.unidbg;
import capstone.api.Disassembler;
import capstone.api.DisassemblerFactory;
import capstone.api.Instruction;
import capstone.api.RegsAccess;
import com.github.unidbg.arm.ARM;
import com.github.unidbg.utils.Inspector;
import junit.framework.TestCase;
import org.apache.commons.codec.binary.Hex;... | 39.762712 | 174 | 0.719949 |
5ab1b1a7f4e84a4399e995f7522499748fb4e139 | 16,224 | /******************************************************************
* Copyright (c) 2017 Nhi Vu, Victor Diego, Tyler Wood *
* Zachary Pfister-Shanders, Derek Keeton, Chris Norton *
* Please see the file COPYRIGHT in the source *
* distribution of this software for furthe... | 47.026087 | 161 | 0.613104 |
6596298a107da355bc9c2a9d53a92f909d49ec33 | 148 | package pl.dzielins42.dmtools.model.enumeration;
public enum Size {
FINE, DIMINUTIVE, TINY, SMALL, MEDIUM, LARGE, HUGE, GARGANTUAN, COLOSSAL;
} | 29.6 | 77 | 0.756757 |
60499d5e7f51f04dd1845bae1545f1a9bb1e6a92 | 6,449 | /* Copyright (c) 2013-2014, Imperial College London
* All rights reserved.
*
* Distributed Algorithms, CO347
*
* Partially based on R. Sedgewick's and K. Wayne's implementation
* Algorithms, 4th edition
*/
import java.io.*;
import java.util.*;
public class RoutingOracle {
/* cost[u][v] is the length of the ... | 22.950178 | 87 | 0.556675 |
869c1a696f69eefe9ca5a4519a08c9a7cc81e8d7 | 709 | package br.com.pokemon.dtos.pokemon;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(descr... | 25.321429 | 71 | 0.802539 |
96936fbf98883d5a9ed9d9455a16eea4b0d3e6fd | 1,864 | /*
* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
package org.chromium.arc.testapp.arcstandardizedtouchscreentest;
import android.app.Activity;
import android.os.Bundle;
import android.widget.B... | 32.701754 | 96 | 0.682403 |
7624c9f6c2878ab5e4f2e15e718f003ba523754a | 921 | package org.kodejava.example.commons.beanutils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Recording {
private Long id;
private String title;
private List<Track> tracks = new ArrayList<>();
private Map<String, Track> mapTracks = new ... | 20.021739 | 60 | 0.619978 |
e322e21063ea06ce5855ddd490a44285ef2b4bf8 | 1,814 | package helpers;
/**
* Created by xjpz on 2021/8/9.
*/
import java.util.LinkedList;
import java.util.List;
/**
* 参考 https://github.com/andyzty/sensitivewd-filter
*/
public class WordNode {
private int value; // 节点名称
private List<WordNode> subNodes; // 子节点
private boolean isLast;// 默认false
pub... | 20.613636 | 73 | 0.542999 |
8c8fa811d02b70e9e173e8892455fef48a43ab33 | 94 | package me.yifeiyuan.fantasy;
/**
* Created by 程序亦非猿 on 2019-07-01.
*/
public class H {
}
| 10.444444 | 34 | 0.648936 |
3b04ec91b0467e7bb1007da916ffc0558a482505 | 2,594 | package com.iut.as.controller.facade;
import static com.iut.as.enumerations.EPersistance.MYSQL;
import static com.iut.as.factory.dao.DaoFactory.getDaoFactory;
import java.util.List;
import org.apache.log4j.Logger;
import com.iut.as.exceptions.BankBusinessException;
import com.iut.as.factory.dao.DaoFactory;
import c... | 27.892473 | 89 | 0.701234 |
184c48d8f3ee1d87bb3e8d22f9409f6a4cff5f4a | 8,934 | /*
* Copyright 2013-2014 S. Webber
*
* 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 ... | 32.487273 | 117 | 0.629281 |
0423f926ef1bd068fb0b049a4d98daaa0bb68cdd | 14,893 | package com.deleidos.rtws.tools.devconsole;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Array... | 38.483204 | 122 | 0.635466 |
579881b831ff4f4f254e9200bea5a74fc555b767 | 993 | package com.gochinatv.cdn.api.basic.logger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LogLevelTest {
/**
* 这里使用 this.getClass() 那么子类调用,打印的则是子类的类名称
*/
Logger logger = LoggerFactory.getLogger(this.getClass());
Logger sysout = LoggerFactory.getLogger("System.out");
L... | 27.583333 | 93 | 0.632427 |
241da4112c1d5225d10a60ee58b2562a6e79505e | 407 | package com.youhualife.modules.topprod.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youhualife.modules.topprod.entity.OCCEntity;
import java.util.List;
public interface OCCService extends IService<OCCEntity> {
List<OCCEntity> getInfos();
/**
* 根据occ01返回客户信息
* @pa... | 22.611111 | 59 | 0.727273 |
897284bc233cf047bcfcef74ab9ef50bf03c4678 | 2,867 | package cool.happycoding.code.mybatis;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import java.util.Date;
/**
* description
*
* @author lanlanhappy 2020/12/06 11:25 上午
*/
public class HappyMybatisMetaObjec... | 36.75641 | 131 | 0.728636 |
a9aa9355070b5c08bf7c0280ff62c7f4c0a6e916 | 125 | package com.alibaba.sreworks.job.taskhandler;
public enum ApiContentMethod {
GET,
POST,
PUT,
DELETE;
}
| 8.928571 | 45 | 0.648 |
88c476b456a78933a30ce5f989be34ae46900533 | 394 | package com.homw.test.bean;
/**
* @description 常量定义
* @author Hom
* @version 1.0
* @since 2020-04-03
*/
public class Constants
{
public static final int REDIS_TIME_OUT = 500;
public static final String REDIS_NULL_VALUE = "null";
public static final String REDIS_EMPTY_KEY = "empty:key:";
public st... | 24.625 | 80 | 0.708122 |
079b3d57b33ca61da86b0c6f1614e94d4e885788 | 1,903 | package me.peridot.premiumlogintest.storage;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.j... | 31.716667 | 137 | 0.607987 |
6a3449914e0b61befa29c371e1e2cca6d32b1846 | 1,465 | /*
* Copyright © 2014 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... | 30.520833 | 80 | 0.719454 |
ca4317482f87009f51c16045c4a3114c6a93ff09 | 1,503 | package com.stream.stumanager.control;
import java.util.List;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.stream.stumanager.R;
import com.stream.stumanager.m... | 26.839286 | 78 | 0.749168 |
9393eb663a96033dcb6115bcf4adacd04455c60d | 356 | /*
* Copyright 2018, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.iot.service.base;
import io.fabric8.kubernetes.client.KubernetesClient;
@FunctionalInterface
public interface KubernetesOperation<T> {
T run(Kubernet... | 27.384615 | 101 | 0.769663 |
43868da2581a9caf524853e4f1e90bde01ad7106 | 3,357 | /*
* Copyright 2016 higherfrequencytrading.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 25.240602 | 75 | 0.642836 |
01196071bbfe9f728f945088fe6385e66698c88a | 2,073 | package net.mobz.Entity;
import net.mobz.glomod;
import net.minecraft.entity.mob.PillagerEntity;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.math.BlockPos;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.attribute.EntityAttributes;
impor... | 30.485294 | 114 | 0.714906 |
4679890fd3cbc7091ea747a883311ef03d2c0b3a | 13,535 | /*
* Copyright 2013 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 applica... | 37.082192 | 123 | 0.637237 |
f486b4315f69ce5679080bc164fb7eb1c7fd599d | 3,061 | /*
* Copyright 2019 Ramon.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 21.256944 | 76 | 0.582816 |
0d237da64e38bda473692e1e91349b845fa3c4d9 | 678 | package com.liumapp.convert.cell;
import junit.framework.TestCase;
import org.junit.Test;
import java.io.FileNotFoundException;
/**
* @author liumapp
* @file CellToPDFTest.java
* @email liumapp.com@gmail.com
* @homepage http://www.liumapp.com
* @date 4/26/18
*/
public class CellToPDFTest extends TestCase {
... | 23.37931 | 96 | 0.718289 |
952ae042c2e082ed2bfba028c8b30b47ba88390f | 1,695 | /*
* Copyright 2021 pi.
*
* 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 writ... | 28.728814 | 103 | 0.637168 |
742d2add0fab254558f0f1cff72430ba7822a071 | 996 | /* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import stubs.javax.servlet.http.HttpServletRequestStub;
import edu.cornell.mannlib.vitro.webapp.controller.... | 26.918919 | 81 | 0.677711 |
0c51b7bb935691de6e581609ee197f7c9de344ca | 1,786 | package net.sourceforge.mayfly.evaluation.from;
import junit.framework.TestCase;
import net.sourceforge.mayfly.MayflyException;
import net.sourceforge.mayfly.Options;
import net.sourceforge.mayfly.datastore.DataStore;
import net.sourceforge.mayfly.datastore.Schema;
import net.sourceforge.mayfly.evaluation.ResultRow;
... | 36.44898 | 72 | 0.638858 |
766400dbfe966ea21c40fa727337dd315a9e502b | 454 | package category.thread.ch03.ThreadLocal11.test;
public class Run {
public static ThreadLocal tl = new ThreadLocal();
public static void main(String[] args) {
System.out.println(tl.get());
if (tl.get() == null) {
System.out.println("从未放过值");
tl.set("我的值");
}
System.out.println(tl.get());
System.out.... | 22.7 | 58 | 0.662996 |
1718032bb93a228035d97ec5d72a762a94915c00 | 233 | /**
*
*/
package com.model;
/**
* @author Ashwin
*
*/
public class Conditional {
private String ans;
public String getAns() {
return ans;
}
public void setAns(String ans) {
this.ans = ans;
}
}
| 10.590909 | 34 | 0.545064 |
9dfc74763c35a11770b8b342fef911083f94327d | 1,671 | package org.drools.rule.builder.dialect.java.parser;
import java.util.ArrayList;
import java.util.List;
import org.drools.rule.builder.dialect.java.parser.JavaBlockDescr.BlockType;
public class JavaTryBlockDescr extends AbstractJavaContainerBlockDescr
implements
JavaBlockDescr,
JavaContainerBlockDescr {
... | 21.986842 | 89 | 0.635548 |
d695a9d6672a274c010cd3d5066f4a212d544407 | 2,761 | package ch.virt.trayutils.modules;
import ch.virt.trayutils.event.MainEventBus;
import ch.virt.trayutils.event.InputBus;
import ch.virt.trayutils.settings.ModuleSettings;
import javax.swing.*;
import java.util.HashMap;
/**
* Loads and handles the modules
* @author VirtCode
* @version 1.0
*/
public class ModuleLo... | 28.173469 | 109 | 0.614632 |
519c7899b102b4911d74b41b9974cc5264f6f068 | 714 | package com.gitee.myclouds.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import com.gitee.myclouds.gateway.filter... | 23.032258 | 69 | 0.761905 |
959c1f0941e9b422bbd831ecc538ff5ea170bc8d | 5,035 | package com.example.nidhisingh.todo.adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... | 36.223022 | 103 | 0.631778 |
1c191857fc94c29d08a1f00056cb9edcb7661648 | 239 | package org.gentar.biology.plan.attempt.crispr.mutagenesis_strategy;
import org.springframework.data.repository.CrudRepository;
public interface MutagenesisStrategyTypeRepository extends CrudRepository<MutagenesisStrategyType, Long> {
}
| 34.142857 | 106 | 0.870293 |
643562480891cef5054ac977d89a53c963a6a4de | 2,681 | package com.theodinspire.codeadvent.WeekOne;
import java.security.*;
/**
* Created by ecormack on 12/16/2016.
*/
public class DoorHasher {
public static void main(String[] args) {
String doorID = "ugkcyxxp";
//System.out.println("First door: " + firstDoor(doorID));
System.out.println(s... | 28.221053 | 77 | 0.51809 |
6d722f3278e6a8684654b59d12df6cc36baf6765 | 2,699 | package net.coding.program.common;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.text.Html;
import android.util.Log;
import net.coding.program.R;
import java.lang.reflect.Field;
/**
* Created by chaochen on 14-9-15.
*/
public class MyImageGetter implements Html.ImageGet... | 25.704762 | 81 | 0.530937 |
237436b69e43b7b86ba41cae1b8506e3751c6eb9 | 215 | package team.fjut.cf.mapper;
import team.fjut.cf.pojo.po.SystemInfo;
import tk.mybatis.mapper.common.Mapper;
/**
* @author axiang [2019/10/30]
*/
public interface SystemInfoMapper extends Mapper<SystemInfo> {
}
| 19.545455 | 62 | 0.753488 |
66bd53f577731fa71b6ffb47bd4793b734777c8f | 541 | package techdomotica.objs.comps;
public class ACondicionado extends Componente {
private double temperatura = 23.0;
public ACondicionado(String nombre, String marca, double uso) {
super(nombre, marca, uso);
}
public ACondicionado(String nombre, String marca) {
... | 22.541667 | 68 | 0.600739 |
9da4f374ba2c154a10647262491d84dcfe527ddd | 2,405 | package com.mcxtzhang.reflect;
import java.lang.reflect.Field;
/**
* Intro:
* Author: zhangxutong
* E-mail: mcxtzhang@163.com
* Home Page: http://blog.csdn.net/zxt0601
* Created: 2017/8/12.
* History:
*/
public class ReplaceFieldTest {
public static void main(String[] args){
Work programmer = new... | 22.904762 | 70 | 0.474012 |
a1b800ddea9b059bf477effd4944ffaa4a36c976 | 1,089 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 33 | 80 | 0.550046 |
89b8b57dddbb18a92a09b378b98297f9b7fd31c8 | 955 | package Model;
/**
* @author John Wayne Carreon
*/
public class Feedback {
private String name;
private double grade;
private String comment;
public Feedback(String name, double grade, String comment) {
this.name = name;
this.grade = grade;
this.comment = comment;
}
... | 17.685185 | 65 | 0.581152 |
a539ffd1ff194c675ddecff5eaa0b794acf7450c | 12,512 | package jp.co.sony.csl.dcoes.apis.main.app.mediator;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonObject;
import io.vertx.core.logging.Logger;
import io.vertx.core.lo... | 37.238095 | 186 | 0.6879 |
f444cdfcadb529a54963bae4472eb3b2e3112dcd | 1,690 | package org.apache.maven.index.treeview;
/*
* 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 Lic... | 23.472222 | 63 | 0.698225 |
b6fc2d28e7de14ec226122f91db0238817033c63 | 1,774 | package com.rapps.utility.learning.lms.persistence.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.rapps.utility.learning.lms.exception.LmsExceptio... | 22.175 | 79 | 0.719842 |
8f8bd8d044c5ebf4b14c9a558390efc425599872 | 1,655 | package org.innovateuk.ifs.competitionsetup.completionstage.populator;
import org.innovateuk.ifs.competition.resource.CompetitionCompletionStage;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.competition.resource.CompetitionSetupSection;
import org.innovateuk.ifs.competi... | 41.375 | 123 | 0.781269 |
229d3b0aaa17bfa2b81e54534bc30a6511739b96 | 2,946 | package com.kunlun.basedata.controller;
import com.kunlun.basedata.model.DepartmentModel;
import com.kunlun.basedata.service.IDepartmentService;
import com.kunlun.common.model.Page;
import com.kunlun.common.utils.ResponseUtil;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import o... | 39.28 | 123 | 0.7074 |
42ca72b218c01930f610498f64830e9f581ebec2 | 584 | package com.hzy.nofity;
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
public class MyBroadCast extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent int... | 32.444444 | 125 | 0.782534 |
f6e4e9d6b952683b62f325704ca198f3fad0ca01 | 3,750 | package com.simibubi.create.content.logistics.block.redstone;
import static net.minecraft.state.properties.BlockStateProperties.POWERED;
import java.util.List;
import org.apache.commons.lang3.tuple.Pair;
import com.simibubi.create.AllBlocks;
import com.simibubi.create.foundation.tileEntity.SmartTileEntity;
import c... | 28.846154 | 87 | 0.770667 |
d8c078ad8de871606c63058f28d3cfa6990285f4 | 3,661 | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | 42.08046 | 97 | 0.699536 |
2978f5909088fdceff480a6341cf99de2ca49eed | 223 | package tech.jhipster.lite.generator.client.common.domain;
import tech.jhipster.lite.generator.project.domain.Project;
public interface ClientCommonService {
void excludeInTsconfigJson(Project project, String value);
}
| 27.875 | 60 | 0.829596 |
f0f60da2a1563aa3b53c9620f9bf0f936d5fc76e | 672 | package org.folio.service.finance.transaction;
import org.folio.service.orders.OrderWorkflowType;
import java.util.EnumMap;
import java.util.Map;
import java.util.Set;
public class EncumbranceWorkflowStrategyFactory {
private final Map<OrderWorkflowType, EncumbranceWorkflowStrategy> strategyMap = new EnumMap<>... | 30.545455 | 124 | 0.787202 |
e8a943f2449eaa2353b2dc0cfc5013e96c6a34df | 6,086 | /*
* Copyright 2019 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... | 35.383721 | 136 | 0.714427 |
3e3be6d4ce6368a1e63f2a19e0f2ca42ef79570f | 2,594 | /*
*
* * Copyright (c) 2022 - Manifold Systems 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
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * ... | 24.242991 | 100 | 0.735929 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.