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 |
|---|---|---|---|---|---|
b9d2dc3d73458051b60e1edb16e21fded0852ee0 | 4,346 | package com.arbietDiary.arbietdiary.memberproject.model;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import com.arbietDiary.arbietdiary.member.model.UserListInterface;
import com.arbietDiary.arbietdiary.project.model.ProjectListInterfac... | 31.492754 | 144 | 0.744823 |
7910ee10d00460ac8e4a217665afb2eeae8646f3 | 937 | package ccc.mainComponent.UI;
import java.io.File;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
public... | 21.790698 | 82 | 0.719317 |
890f30cc7ea0a45b13a8a5881b50c804fed448ce | 519 | package com.jcute.core.network.net;
import com.jcute.core.network.NetWorkHandler;
import io.netty.channel.ChannelHandlerContext;
public interface NetClientHandler extends NetWorkHandler{
public void onConnect(ChannelHandlerContext context)throws Exception;
public void unConnect(ChannelHandlerContext context)th... | 28.833333 | 88 | 0.843931 |
dff680d0450f41f8cbdbc5009079f2cf8252e6f1 | 2,087 | /**
* Map转xml字符串工具方法
* @param map
* @return
*/
public static String map2Xml(Map<String, Object> map) {
String resultXml = "";
for(String key:map.keySet()){
if(map.get(key) instanceof String || map.get(key) instanceof Number){
resultXml += "... | 36.614035 | 100 | 0.436033 |
65ba1c8d9d1b2a5b1de3ca1708d961356470ca30 | 1,011 | /*
*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://... | 30.636364 | 77 | 0.716123 |
a7827db77006fce5f32ae0150cafdc4ca83e2c1d | 8,851 | package se.martensson.threads;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util... | 34.173745 | 429 | 0.7302 |
a4e035d6307874c9520655b861720b5acbc20552 | 417 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ui.docking;
import org.jdom.Element;
public interface DockContainerFactory {
DockContainer createContainer(DockableContent<?> content);
interface Persi... | 32.076923 | 140 | 0.791367 |
dfa6f2072bd358a7d9e7378b34a67517da3379de | 1,576 | package de.paydirekt.client.reports.model;
import java.time.ZonedDateTime;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import static java.util.Collections.unmodifiableList;
/**
* Encapsulates the query parameters needed for the creation of a {@link TransactionReport}.
*/
public ... | 29.735849 | 140 | 0.687183 |
293a11d222ce593e465e9917b3ac8b7a1e1d3fa1 | 2,275 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.mediaservices.v2018_07_01;
import com.fasterxml.... | 43.75 | 285 | 0.74022 |
a3a91717e5e9d7c6c09a7387cd2c0b57b595b276 | 23,846 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | 58.160976 | 157 | 0.766334 |
9b25e690c4829cf35f4a84cec2fe85dc62bf9c06 | 2,671 | /*
* Copyright (c) 2017 Tran Le Duy
*
* 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... | 26.445545 | 92 | 0.639835 |
2a9e7fe1b367b41cfaf95f2ba03857f04ae75019 | 839 | package com.wzy.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.security.oaut... | 27.966667 | 86 | 0.77354 |
f8d797e85533faf3f1a0bb19be6e51045656b828 | 3,500 | package com.kixeye.chassis.support.metrics.aws;
/*
* #%L
* Chassis Support
* %%
* Copyright (C) 2014 KIXEYE, 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:/... | 38.888889 | 128 | 0.749429 |
bb87b5b331a5ef30024434ddf5f385b72ecafd92 | 722 | package work.icql.ithome.gathering;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import work.icql.ithome.common.util.IdWorker;
/**
... | 24.896552 | 68 | 0.760388 |
4fc0763a8ecf4bc03731e75f713962cbbb1e895c | 3,429 | // Copyright (c) Microsoft. All rights reserved.
package com.microsoft.azure.iotsolutions.devicetelemetry.services.storage.timeSeries;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.... | 38.1 | 107 | 0.655293 |
59330dc7723e0a6cf9c2fe204864e9e006d39650 | 197 | package com.spider.cms.commom.constant;
import com.spider.common.base.BaseConstants;
/**
* cms系统常量类
* Created by shuzheng on 2017/2/19.
*/
public class CmsConstant extends BaseConstants {
}
| 15.153846 | 48 | 0.746193 |
aa85b72490d4cb3fc2d1effc2baae3ca2a3c0400 | 3,159 | /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it *
... | 32.90625 | 133 | 0.639759 |
be809a73a817b1cc9053a31e93e0ce368a9b322c | 2,073 | /*
* 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 ... | 28.791667 | 82 | 0.698505 |
a64a92976f385b1a9beddaac170d2caab9ef11c2 | 12,459 | package lab.pkg2_franciscosantos;
import java.util.ArrayList;
import java.util.Scanner;
public class Lab2_FranciscoSantos {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
String resp = "s";
ArrayList<Maestro> maestros = new ArrayList();
ArrayList... | 55.869955 | 157 | 0.330283 |
2c85e4822b2a8841ab3f7ea5c8c4e8f26f8b8ad2 | 541 | package com.abapi.cloud.pay.model.ali.request;
import lombok.Data;
/**
* @author liu
* @date 2019/2/21 0021 16:33
*/
@Data
public class AliPayTransferRequest {
/**转账编号**/
private String outBizNo;
/**转入账户 账号**/
private String payeeAccount;
/**转入金额**/
private String amount;
/**付款方姓名(最长支持100个英文/50个汉字)。显示在收... | 16.90625 | 74 | 0.720887 |
60f9f768555539dd5965cfb87de7a44d5ba68395 | 2,844 | package lk.ijse.gdse.common.dto;
import java.util.Date;
public class RecordDTO implements SuperDTO{
private String recordID;
private String recordName;
private String recordCategory;
private String incidentLocation;
private Date incidentDate;
private Date incidentTIme;
private String vict... | 26.333333 | 182 | 0.625527 |
60cf10388adbcf1f746b01b2893d956c0702b509 | 1,203 | package org.appenders.log4j2.elasticsearch.failover;
/*-
* #%L
* log4j2-elasticsearch
* %%
* Copyright (C) 2019 Rafal Foltynski
* %%
* 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
* ... | 26.733333 | 81 | 0.720698 |
2d21078d8647dba0b2b5dca64584858686d04d9f | 2,456 | package client;
import server.constants.Roles;
import server.service.BrandService;
import server.service.CustomerService;
import server.service.UserService;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.text.... | 34.591549 | 179 | 0.694218 |
383c317be080c0c49fe56b16b26d5057e23fee38 | 4,024 | package com.horowitz.commons;
import java.awt.Color;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Hashtable;
import java.util.List;
impo... | 25.794872 | 98 | 0.61506 |
4fed6c21d99ef30940fc716e987456963b8f2cb9 | 3,315 | package kaba.defapi.http;
import java.util.stream.Stream;
/**
* HTTP status definitions according to RFC 2616.
*
* @author ryotan
* @since 1.0
*/
public enum HttpStatus {
// Informational 1xx
CONTINUE(100, "Continue"),
SWITCHING_PROTOCOLS(101, "Switching Protocols"),
// Successful 2xx
OK(200... | 30.412844 | 138 | 0.650679 |
b392e2d4eebc97b0268a4d0aad9c429b7eb99b64 | 1,710 | package br.com.lojaonline.converter;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert... | 31.090909 | 103 | 0.746199 |
0aa84cdee43b17da4ca87d6be5a90bd44018b7b4 | 4,182 | /*
* 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 ... | 45.956044 | 164 | 0.65208 |
84883c186961369a0dff461de65c5a996c92ff3e | 29,745 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 53.594595 | 214 | 0.687981 |
a717ae97d22d3d7fd9fa4be19f19f6907a00ce4d | 1,036 | package com.itlize.joole.salesRep;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class SalesRepController {
@Autowired
private SalesRepService salesRepService;
@RequestMapping(method = Reque... | 27.263158 | 85 | 0.725869 |
9c0a68161fef318bc64634a686f27fa96357d6ff | 2,503 | package pl.Vorpack.app.Dto;
import java.math.BigDecimal;
import java.time.LocalDate;
public class OrdersDTO {
private Long order_id;
private String firmName;
private LocalDate order_date;
private LocalDate order_receive_date;
private Long single_orders_completed;
private Long single_orders_unf... | 27.206522 | 123 | 0.697563 |
8820f4dd23ffdaaa8db791ecc2ff0ca55c26469d | 3,361 | // Copyright 2019 The Bazel Authors. 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 appl... | 39.081395 | 92 | 0.681642 |
dc8a96e89ee825f1c7d612d08ece05783a77f597 | 17,547 | package org.janelia.jacs2.asyncservice.common;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.janelia.jacs2.asyncservice.JacsServiceEngine;
import org.janelia.jacs2.asyncservice.ServiceRegistry;
import org.janelia.jacs2.asyncservice.impl.JacsServiceEngineImpl;... | 48.606648 | 186 | 0.665755 |
fff6993c289553fcd9050ca12a74681630fbc02c | 798 | package com.thoughtworks.bootcamp.user.model;
import org.springframework.stereotype.Component;
@Component
public class EmailInfo {
private String from;
private String to;
private String subject;
private String body;
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from =... | 15.647059 | 98 | 0.66792 |
93573b94d50f43e5e0dae8e8854ba37b617d54a6 | 9,433 | // Copyright 2017 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 applicable law... | 39.801688 | 113 | 0.722358 |
fe2aa6b684bea6d7b67f8823aa2aee30fdbc6830 | 3,693 | package org.bubblecloud.vr4java.ui;
import com.jme3.scene.Spatial;
import javazoom.jl.player.Player;
import org.apache.commons.io.IOUtils;
import org.bubblecloud.ilves.util.PropertiesUtil;
import org.bubblecloud.vr4java.util.GoogleSpeechService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.... | 33.880734 | 150 | 0.620363 |
c9aa45157aba32ffe701528b3ccfc54e0aa116e8 | 951 | package com.model.card.effect;
import com.controller.RoundController;
import com.model.card.CardName;
import com.model.game.Round;
import com.model.player.Player;
/**
* Choose next player. The type Choose next effect.
*
* @see com.model.card.effect.Effect
* @see com.model.card.effect.EffectList
*/
public class ... | 25.026316 | 120 | 0.708728 |
555f4196651a3ccdb98e4243fdccadc575b7cd4b | 3,822 | package com.google.sps.servlets;
import static org.junit.Assert.assertEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.atLeast;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static... | 41.096774 | 114 | 0.78022 |
44505fff5755dfa2ebc2151d22eca7c8dd367af8 | 2,809 | package seedu.address.logic.parser;
import java.util.ArrayList;
import seedu.address.logic.commands.CalendarCommand;
import seedu.address.logic.commands.ClearHistoryCommand;
import seedu.address.logic.commands.EmailCommand;
import seedu.address.logic.commands.ExitCommand;
import seedu.address.logic.commands.HelpComma... | 36.012821 | 73 | 0.747241 |
7d56523838e75b8d837dce10cc5f4b94cf8acccd | 3,987 | package no.mnemonic.commons.metrics;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mockito;
import java.time.Clock;
import java.util.concurrent.atomic.AtomicLong;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.SECONDS... | 31.148438 | 84 | 0.736895 |
acbc3e1c5ccb925252ab97f8ec0016963b9a8c4b | 4,423 | package me.senseiwells.essentialclient.mixins.clientScript;
import me.senseiwells.arucas.utils.impl.ArucasList;
import me.senseiwells.arucas.values.NumberValue;
import me.senseiwells.arucas.values.StringValue;
import me.senseiwells.essentialclient.clientscript.events.MinecraftScriptEvents;
import me.senseiwells.essent... | 49.144444 | 269 | 0.792449 |
3f41f2b91cff4d7d7126c8742715506ff3d13d50 | 6,689 | /*
* 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 main;
import gnu.trove.map.hash.THashMap;
import org.apache.commons.math3.distribution.BinomialDistribution;
/**
* Each Node... | 25.726923 | 97 | 0.564808 |
64769295042649b3e67f60e32c67faae3ba1d500 | 1,362 | package com.cpxiao.block1212.mode.extra;
/**
* Extra
*
* @author cpxiao on 2016/8/31
*/
public final class Extra {
// public static final class GameDifficulty {
// public static final int EASY = 1;
// public static final int NORMAL = 2;
// public static final int HARD = 3;
// public ... | 26.192308 | 85 | 0.639501 |
0a6497b8d2a9dc01834a60a4209f6fd792b97e20 | 385 | package com.example.intertstcircle.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;
@Data
@Repository
@NoArgsConstructor
@AllArgsConstructor
public class ArticleMessage {
private Integer un_id;
private Integer user_i... | 21.388889 | 49 | 0.81039 |
76b328a3429334651bb7c00cb24a66dc3eacf96a | 4,318 | /*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 26.169697 | 100 | 0.657712 |
45cff6a1ff7addf3d6e979a1adbd84a57170cad9 | 1,722 | /*
* Copyright 2014 Andrew Romanenco
* www.romanenco.com
* andrew@romanenco.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
*... | 31.309091 | 87 | 0.720674 |
3a51c96766e5978a32bb066edb29da7367b43529 | 1,558 | package com.mycompany.belajarjava02;
public class TipeDataCharacter {
public static void main(String[] args) {
/*
untuk menampilkan sebuah nilai yang sudah kita inisialisasi
yaitu dengan menggunakan sebuah Syestem.out.println setelah itu
variabelnya perhatikan printl... | 28.327273 | 78 | 0.585366 |
655c5fc171920d9c2a3116da8ffb4a0cc8297a58 | 1,162 | /*
* 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.curso.ejemplomicroservicio;
import com.curso.ejemplomicroservicio.modelo.Persona;
import java.util.Random;
import org.spri... | 27.023256 | 90 | 0.728916 |
de239200757ddc28cc3b088860e67ae5554964b0 | 2,029 | /**
* @PlayerSession.java
*
* @author sodaChen E-mail:asframe@qq.com
* @version 1.0
* <br>Copyright (C), 2018 asFrame.com
* <br>This program is protected by copyright laws.
* <br>Program Name:ASFrame
* <br>Date:2018-10-1
*/
package com.asframe.game.session;
import com.asframe.game.protocol.ITcpProtocol;
impo... | 23.321839 | 71 | 0.633317 |
cec515217f0e047eb76520fcfaefa50d20c05bab | 1,029 | package io.github.tong12580.common.annotation;
import java.lang.annotation.*;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
/**
* <p>RpcApi</p>
* <span>Rpc接口</span>
*
* <span>被该标记标标注的将成为Rpc接口, 具有Rpc相关调用能力</span>
* 该注解标记后, 只有在开启了 {@link //EnableRpcSer... | 28.583333 | 108 | 0.730807 |
7f7935c24c5a7f30cc1de436886f578fa2c69e13 | 801 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 券汇总信息
*
* @author auto create
* @since 1.0, 2021-04-30 16:44:34
*/
public class VoucherSummary extends AlipayObject {
private static final long serialVersionUID = 2418286772119... | 18.627907 | 68 | 0.684145 |
53e41403ed3a800dcbeb6aeb8d6a91a6aa200fb1 | 6,117 | /*
* Copyright 2017-2021 EPAM Systems, Inc. (https://www.epam.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 requ... | 41.612245 | 109 | 0.747589 |
802ac1b72fd9d78bbe76718dadc5d9401e1321f3 | 2,540 | /**
* Copyright 2015 Smart Society Services B.V.
*
* 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
*/
package org.opensmartgridplatform.cor... | 40.31746 | 172 | 0.76378 |
b0bf6e50293b5f755667d656e15b8eb5837cf4a9 | 2,713 | /*
* 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 cl.model.dao;
import cl.model.pojos.Usuario;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
... | 29.48913 | 79 | 0.576115 |
d45b1ad82d002b06fb48fdc52bd26231d24b39c7 | 222 | package com.threelambda.btsniffer.bt.exception;
/**
* @author ym
* @date 2019/10/15
*/
public class BtSnifferException extends RuntimeException {
public BtSnifferException(String msg) {
super(msg);
}
}
| 18.5 | 58 | 0.693694 |
34c8d96ccf31ca6e7352a9350cffe9b555fbf572 | 1,137 | package TestProducerConsumer;
import java.util.*;
import java.util.concurrent.*;
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.util.*;
import java.util.Random;
public class Producer extends SharedTextField implements Runnable{
// hold the messages
private int targ;
private int... | 27.071429 | 104 | 0.668426 |
68ad10a6e47aaf7030b31464fec0d5ef06c9a5e7 | 1,771 | /* Copyright 2022 Mohammad Faisal Khatri
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 ... | 29.516667 | 80 | 0.696781 |
68f772cd6cd3c77a8d1aa6beae244c1a2d0af575 | 2,617 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// 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: 2019.06.12 at 09:... | 27.840426 | 110 | 0.700802 |
da6fd1ca507135abc5ff6049552fb08ea6fa3cec | 588 | package com.awasthi027.unittesting.unittesting.business;
import com.awasthi027.unittesting.unittesting.data.SomeDataService;
public class SomeBusinessImpl {
public SomeDataService dataService;
public void setDataService(SomeDataService dataService) {
this.dataService = dataService;
}
public int calculateTh... | 15.891892 | 67 | 0.690476 |
4f34846457accb218aabb43cc450f92f1d900af0 | 844 | package net.gspatace.json.schema.podo.generator.cli.commands;
import net.gspatace.json.schema.podo.generator.services.GeneratorDescription;
import net.gspatace.json.schema.podo.generator.services.GeneratorsService;
import picocli.CommandLine;
import java.util.List;
@CommandLine.Command(name = "list", description = "... | 42.2 | 128 | 0.754739 |
f1405395fc01b715cb6e4b6f7e3b470aed2063b5 | 2,502 | package com.salesforce.grpc.contrib.instancemode;
import com.salesforce.grpc.contrib.GreeterGrpc;
import com.salesforce.grpc.contrib.HelloRequest;
import com.salesforce.grpc.contrib.HelloResponse;
import com.salesforce.grpc.contrib.instancemode.PerCallService;
import io.grpc.stub.StreamObserver;
import io.grpc.testing... | 36.794118 | 136 | 0.710631 |
87a0016f9756d7297c96fc8c06aa4dd941f5ea64 | 84 | package dip;
public interface IPersecuteur {
void attaquer(IVictime ennemi);
}
| 14 | 35 | 0.75 |
6126c462d577ea89733a1ceb78dba85723357f2f | 9,140 | //==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <d.a.parker@cs.bham.ac.uk> (University of Birmingham/Oxford)
//
//------------------------------------------------------------------------------
//
// This file is part of PRISM.
//... | 32.070175 | 121 | 0.665864 |
2422d8c1944e68af5aa0dbf7aa9091d8bdeac433 | 1,074 | package com.jxin.faas.scheduler.domain.container.assembler;
import com.jxin.faas.scheduler.domain.container.dmo.entity.Container;
import com.jxin.faas.scheduler.domain.container.repository.table.ContainerDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import schedulerproto.AcquireContainerReply;
/**
*... | 32.545455 | 77 | 0.708566 |
db76c0be4f369c22bc8aea3abd9a9528964db6a0 | 2,091 | /**********************************************************************************
* $URL:https://source.sakaiproject.org/svn/osp/trunk/jsf/widgets/src/java/org/theospi/jsf/intf/XmlTagHandler.java $
* $Id:XmlTagHandler.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
************************************************... | 40.211538 | 115 | 0.640842 |
173005349def8d937d01d8a2cb91161d3cd099a3 | 603 | package ListenerV2;
import commands.SCP.*;
import core.CommandListener;
public class SCPListener extends CommandListener {
private static final SCPListener self = new SCPListener();
private SCPListener(){
addGuildRestriction("569363224009637920");
//dev server
addGuildRestriction("3... | 21.535714 | 62 | 0.668325 |
05ac9ad11531244e619c38a0384ccbef57e909bb | 12,107 | package com.simple.mrchip.app;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Messa... | 34.200565 | 117 | 0.616172 |
5a98571767ec127865cd6e38cb9048718eb535fa | 557 | package io.github.cottonmc.libam.api;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterial;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Identifier;
public abstract class CustomArmorItem extends ArmorItem {
public CustomArmorItem(A... | 29.315789 | 88 | 0.820467 |
c1e04288fd3041d332439b0a044841331e87e83e | 6,016 | package models.gui;
import java.io.File;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.google.common.base.Strings;
import org.jsoup.Jsoup;
import org.jsoup.safety.Whitelist;
import general.common.MessagesStri... | 27.981395 | 98 | 0.630652 |
06f56db5f667616d398e7fe0594597db182b1d66 | 438 | package ch02.sec01;
import java.util.ArrayList;
public class ReferenceDemo {
public static void main(String[] args) {
ArrayList<String> friends = new ArrayList<>();
// friends는 비어 있다.
friends.add("Peter");
// friends의 크기는 1이다.
ArrayList<String> people = friends;
... | 25.764706 | 54 | 0.589041 |
8032b5ebef0f5f8cd0cba1736d0b9b472d3d1252 | 18,691 | /*
* 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 applicable law o... | 41.35177 | 140 | 0.612059 |
2744a83854b383db1bce06d372063f084c148899 | 2,361 | package mchorse.blockbuster.client.gui.utils;
import mchorse.mclib.client.gui.framework.GuiTooltip;
import mchorse.mclib.client.gui.framework.elements.GuiElement;
import mchorse.mclib.client.gui.utils.GuiUtils;
import mchorse.mclib.client.gui.utils.ScrollArea;
import net.minecraft.client.Minecraft;
import net.minecraf... | 28.107143 | 125 | 0.753918 |
8d7394c87424829e7b82dd357722aec3c4b5010d | 161 | package com.ruoyi.common.echarts.code;
/**
* 坐标系
*
* @author ***
* @since 2016-02-28 10:20
*/
public enum CoordinateSystem {
cartesian2d, polar, geo
}
| 13.416667 | 38 | 0.639752 |
846c2f619b584aaeda5da21402905d90ee6cbe9c | 321 | package cc.ethon.jprocess.process;
import java.io.File;
import cc.ethon.jprocess.common.SystemException;
public interface Process {
public int getPid();
public int getParentPid() throws SystemException;
public String getName() throws SystemException;
public File getExecutablePath() throws SystemException;
}... | 17.833333 | 56 | 0.791277 |
2bc8dad1605743e7635d4f2acd1e07addeab7845 | 2,397 | package org.drg.jdbceptor.hibernate;
import org.drg.jdbceptor.api.InstrumentedConnection;
import org.drg.jdbceptor.hibernate.event.TransactionListener;
import org.drg.jdbceptor.internal.DataSourceMember;
import org.drg.jdbceptor.internal.UserDataStorage;
import org.hibernate.Transaction;
/**
* Interface to be implem... | 37.453125 | 120 | 0.733417 |
7c2a39684e99a8cdf0df35d8ee2335f4494d1a61 | 2,979 | /*****
Given a 2D board and a list of words from the dictionary, find all words in the board.
Each word must be constructed from letters of sequentially adjacent cells which are horizontally or vertically neighboring.
The same letter cell may not be used more than once in a word.
-----------------
Sample Test Cases
... | 22.568182 | 124 | 0.480363 |
94a47346b1b6f2ea4085b87bcac9d7061df78d48 | 1,303 | package alekseybykov.portfolio.springcore.xmlconfig.di.spring;
import alekseybykov.portfolio.springcore.xmlconfig.di.manual.DependencyInjectionWithoutSpringTest;
import alekseybykov.portfolio.springcore.xmlconfig.di.services.ElementSearchService;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springfr... | 36.194444 | 117 | 0.820414 |
279a2a6217f54593c738c9d66866f83a4bfe14fa | 3,479 | /**
* Copyright 2016 Sebastien Pelletier
*
* 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... | 44.602564 | 164 | 0.78672 |
0924557867c9389b74617e2ba06359cdc92903a8 | 3,785 | package com.wlcb.jpower.gateway.dynamic;
import com.alibaba.nacos.common.utils.CollectionUtils;
import com.wlcb.jpower.module.common.utils.Fc;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.gateway.event.RefreshRoutesEvent;
import org.springframework.cloud.gat... | 30.524194 | 128 | 0.654161 |
2e5e1f14b07becc1fc16e39d3743c989e2879edd | 223 | package com.yin.bolgs.blog.vo;/**
* @author 17694
* @date 2021/02/13
**/
import com.yin.bolgs.common.pojo.PageCondition;
/**
* @ClassName : TagVo
* @Description :
*/
public class TagVo extends PageCondition {
}
| 15.928571 | 47 | 0.663677 |
f084064e525fb8fe51bb065e5a0d3416857a799f | 10,995 | package com.jed.state;
import com.jed.actor.AbstractEntity;
import com.jed.actor.Ball;
import com.jed.actor.CircleBoundary;
import com.jed.core.MotherBrainConstants;
import com.jed.core.QuadTree;
import com.jed.util.Rectangle;
import com.jed.util.Vector2f;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impo... | 32.243402 | 91 | 0.552615 |
54b2db2c2c050fb51deaa7b699c67ba49f60c895 | 702 | package blog.classic.javadsl;
import java.io.IOException;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.actor.ActorSystem;
public class HelloWorldApp1 {
public static void main(String[] args) throws IOException {
ActorSystem system = ActorSystem.create("HelloWorld");
try ... | 28.08 | 83 | 0.663818 |
1359a689c648b7ffe16e3ee4d71545ccd58ee221 | 3,189 | package folf;
import java.util.List;
import java.util.Map;
public class Test09
{
static Vocabulary voc;
static Structure rs;
static class Abs extends AbstractFunction
{
public Abs()
{
super(1);
}
// Tylko dla obiektów będących liczbami - bierze i zwraca Do... | 27.491379 | 73 | 0.478833 |
65e8c6d1d54130b8d5ffd54aca20e6b446b7fcaf | 1,177 | package com.pollen.community.UrlConfig;
public class AppConfig {
private static String URL = "http://192.168.43.196";
// Server user login url
public static String URL_LOGIN = URL+"/api/login.php";
// Server user register url
public static String URL_REGISTER = URL+"/api/register.php";
// Server All Restaur... | 28.02381 | 95 | 0.741716 |
4205353636593152206f17a907c893fd5298c227 | 13,867 | /*===========================================================================
Copyright (C) 2013-2014 by the Okapi Framework contributors
-----------------------------------------------------------------------------
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except i... | 32.47541 | 186 | 0.662364 |
db03b29ce705486b81a7f8fd283caa611a1dfbd1 | 533 | package com.bryce.book.core.theSecondChapter.two_two.StringAndSyn;
/**
* @author huff
* @date 2020/3/18 1:40
*/
/**
* 出现此种结果的原因是String的两个值都是AA,两个线程持有相同的锁,所以线程B不能执行;
* 因此在大多数情况下,同步synchronized代码块都不使用String作为锁对象,而改用其他,比如new Object()实例化一个Object对象
*/
public class Run {
public static void main(String[] args) {
... | 23.173913 | 79 | 0.643527 |
008727e64f3dad587850c6fc029d617323406390 | 80 | package world.bentobox.topten.listeners;
public class LeaderboardInteract {
}
| 13.333333 | 40 | 0.8125 |
d234192d3a1cc69437160906e16c30c62616cdb8 | 2,375 | /*
* Copyright 2014 by the Metanome project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 40.254237 | 131 | 0.784842 |
5670f067cdba1ac5a0e633b1cfbeacecf26574c3 | 1,953 | package com.cerner.ccl.j4ccl.impl.util;
import static org.fest.assertions.Assertions.assertThat;
import java.io.OutputStream;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import com.cerner.ccl.j4ccl.enums.Outpu... | 25.363636 | 73 | 0.686636 |
a35aa4f2dfcbd6b0134f496ac52fbd6139ad54b1 | 767 | package com.slimemc.rekindle.materials;
import com.slimemc.rekindle.registery.ModItems;
import net.minecraft.item.ToolMaterial;
import net.minecraft.recipe.Ingredient;
public class BlazingSteelToolMaterial implements ToolMaterial {
public static final BlazingSteelToolMaterial INSTANCE = new BlazingSteelToolMateri... | 21.914286 | 91 | 0.697523 |
5af9e7430b980961b0ab08f4f76ef1c277ea614a | 3,652 | package controller;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXML;
import javafx.scene.control.ListView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import model.Officer;
import model.Team;
import network.APIManager;
import ui.U... | 28.755906 | 122 | 0.58023 |
b2802b3880dc1460805a3978cd297565977b2da5 | 10,485 | /*
* 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 UserInterface.DeliveryManRole;
import EcoSystem.Enterprise.Enterprise;
import EcoSystem.Organization.DeliveryOrganization;
imp... | 44.617021 | 148 | 0.657415 |
2540f5dc12ec83b73ea4e8a274dcc31fa28f8fb9 | 2,497 | /*
* 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 ... | 44.589286 | 107 | 0.747697 |
7b68a6792a670265cdabc2b3c2087a64974b72f0 | 11,198 | package com.batoulapps.QamarDeen.data;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import java.util.List;
public class QamarDbAdapter {
private Context mContext = null;
... | 30.679452 | 77 | 0.634667 |
cbe810508f6554d68089a4471979b78c317aa259 | 966 | package org.unclesniper.json.j8;
import org.unclesniper.json.OMGWereDoomedError;
public class IntBound implements IntP {
private int threshold;
private OrderRelation relation;
public IntBound(int threshold, OrderRelation relation) {
this.threshold = threshold;
this.relation = relation;
}
public int getTh... | 18.941176 | 84 | 0.710145 |
a4020fee43980b4f8fdba824441e5d459bc0fe60 | 15,938 | //
// Decompiled by Procyon v0.5.36
//
package org.mudebug.prapr.reloc.commons.lang3;
import java.util.regex.Pattern;
import java.util.Iterator;
import java.util.Map;
import java.util.Collection;
public class Validate
{
private static final String DEFAULT_NOT_NAN_EX_MESSAGE = "The validated value is not a numb... | 45.667622 | 162 | 0.650207 |
0969e445c0198d86d9de19eb2578a093fa28b774 | 782 | package test;
import java.io.Serializable;
/**
* 单例模式的实现方式
* 该方式可解决反射安全、反序列化安全、指令重排优、延迟加载、线程安全问题
*/
public class Test3_singleton implements Serializable {
private static volatile Test3_singleton instance ;
private Test3_singleton(){
if (instance != null)
throw new RuntimeException("休想... | 21.135135 | 54 | 0.589514 |
848f03befdf4c3ecf6208c44a602a18d0d43d8eb | 1,787 | package util;
import static org.junit.Assert.assertEquals;
import java.util.LinkedList;
import java.util.List;
import org.junit.Test;
import domain.Token;
import tokens.Maestro_A;
import tokens.Orchestra_A;
import tokens.Player_A;
import tokens.Symphony_A;
public class EncodeTest {
@Test
public void encode_ALL_... | 27.075758 | 101 | 0.773923 |
13bc2aca25d09fd240e341945af691d1d2c0971f | 2,603 | package com.redpois0n.gscrot.ui.settings;
import iconlib.IconUtils;
import java.awt.Dimension;
import java.util.ArrayList;
import java.util.List;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import java... | 29.247191 | 96 | 0.724933 |
d2cbe0d74a47260f62de85d81eb88e06f7d0925a | 8,745 | /*
* 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 ... | 28.766447 | 91 | 0.57267 |
40929a7477370d8aa76f748fe524934260ca3f38 | 1,896 | package io.snice.codecs.codec.diameter.avp.api;
import io.snice.buffer.Buffers;
import io.snice.codecs.codec.diameter.DiameterMessage;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class OriginHostTest extends io... | 43.090909 | 115 | 0.709916 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.