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 |
|---|---|---|---|---|---|
95426f495dc050d7481d52936adf59ac63d6f0e9 | 2,573 | package com.bigdata.downloader.handler;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationE... | 24.980583 | 91 | 0.64555 |
d15bb47ddba5e06c516688c6ada45ef728296f6d | 6,260 | package com.supervisor.billing.impl;
import com.supervisor.billing.CreditCard;
import com.supervisor.billing.PaymentMethod;
import com.supervisor.billing.PaymentReceipt;
import com.supervisor.billing.PaymentReceiptState;
import com.supervisor.billing.PaymentRequest;
import com.supervisor.domain.User;
import com.superv... | 33.121693 | 207 | 0.68738 |
79ac20f4255817aa3e3936bc7f7f1a192c6aafed | 1,479 | package tla.web.mvc;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.support.ServletUriComponentsBuilder;
import org.springframework.web.util.UriComponentsBuilder;
/**
* Utility bean for use in HTML templates.
*/
@Controller
public class TemplateUtils {
/**
* Put t... | 35.214286 | 93 | 0.707911 |
b51e9c587b6778f27df9e5aca23470541e11c452 | 2,448 | package com.example.nanchen.aiyaschoolpush.utils;
import android.text.TextUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 文本处理工具类
*
* @author nanchen
* @fileName AiYaSchoolPush
* @packageName com.example.nanchen.aiyaschoolpush.utils
* @date 2016/09/12 15:25
*/
public class TextUt... | 27.505618 | 121 | 0.573121 |
c7fc7a7bc5ecacce5794d7e726ef5926dfdeebce | 227 | package com.ip2.myapp.backend.repository;
import com.ip2.myapp.backend.entity.Subject;
import org.springframework.data.jpa.repository.JpaRepository;
public interface SubjectRepository extends JpaRepository<Subject, Long> {
}
| 28.375 | 73 | 0.832599 |
6c56f22254c8f0b35850f185dcd593607d8f8dda | 348 | package com.alibaba.rocketmq.namesrv;
public class LeaderElection3Test {
public static void main(String[] args) {
PaxosControllerTest p = new PaxosControllerTest("bin/mqnamesrv", "-c", "../conf/namesrv2.properties");
try {
p.setUp();
p.test();
p.tearDown();
} catch (Exception e) {
e.prin... | 21.75 | 105 | 0.640805 |
024f96d0492c1ff6e6550b7f76a8b48ebf05797a | 10,338 | /*
This software was created by United States Government employees at
The Center for Cybersecurity and Cyber Operations (C3O)
at the Naval Postgraduate School NPS. Please note that within the
United States, copyright protection is not available for any works
created by United States Government employees, pursuant... | 54.125654 | 151 | 0.58551 |
f1b096a3352539aac4d8ab7e96e83f2388d0e82d | 383 | package mercadolivre.mercadolivre.entities;
import mercadolivre.mercadolivre.listeners.PagamentoComSucessoListener;
import org.springframework.stereotype.Component;
@Component
public class EmissorNotaFiscal implements PagamentoComSucessoListener {
@Override
public void executa(Pagamento pagamento, Compra com... | 27.357143 | 71 | 0.814621 |
ca09c8fa4356ee38f28d3f9e5db1b6489e403914 | 431 | package com.ldw.xbase;
import android.os.Bundle;
import com.ldw.xbaselibrary.baseui.XBaseActivity;
public class MainActivity extends XBaseActivity {
@Override
public void initView() {
}
@Override
public void initData(Bundle savedInstanceState) {
}
@Override
public void setList... | 12.676471 | 53 | 0.658933 |
b54e6410124f948a900c38b672f913e0b0c5faba | 137 | package enums;
/**
* @author Celine Murugi
* started 4/8/20
*/
public enum Suit {
CLUBS,
DIAMONDS,
HEARTS,
SPADES
}
| 9.785714 | 24 | 0.583942 |
540ea94b88f83580431fc08f280b4d32a60974ae | 1,795 | package org.ayou.search.util;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
/**
* @category 能压所有包括文件夹但压缩有问题
*/
public class Zip {
pri... | 26.397059 | 110 | 0.657939 |
e0610fa095554231ff3a2e088d654ad994938f80 | 1,644 | package com.koch.ambeth.persistence.update;
/*-
* #%L
* jambeth-test
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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.344828 | 75 | 0.776764 |
615fd9e1c2ff8b6b2295fd6b1f8c4a19767845a7 | 3,047 | // Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.forms;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yugabyte.yw.common.Util;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import j... | 34.235955 | 99 | 0.763046 |
f8426a8d6f6cceadac406512dfb7443e6a2538b3 | 14,925 | package nl.tudelft.tbm.eeni.owl2java.model.xsd;
import com.hp.hpl.jena.datatypes.DatatypeFormatException;
import com.hp.hpl.jena.datatypes.RDFDatatype;
import com.hp.hpl.jena.datatypes.TypeMapper;
import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
import com.hp.hpl.jena.datatypes.xsd.XSDDateTime;
import com.hp.hpl.jena... | 35.451306 | 121 | 0.562211 |
921cbb020e8e96e8c2158c77902b2a5ceb66ca53 | 1,958 | package ru.veeam.hamcrest.collections;
import com.codeborne.selenide.ElementsCollection;
import com.codeborne.selenide.ex.ElementNotFound;
import com.codeborne.selenide.impl.WebElementsCollection;
import org.openqa.selenium.WebElement;
import ru.veeam.hamcrest.matchers.TextsMismatch;
import java.util.List;
i... | 34.350877 | 144 | 0.680797 |
b429459a0acf96ac4d314ca16d3c75cb11304827 | 348 | package orderservice.com.company.order.repository;
import orderservice.com.company.order.entity.PurchaseOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.UUID;
@Repository
public interface PurchaseOrderRepository extends JpaReposit... | 31.636364 | 85 | 0.853448 |
9e10e5589542b4b1d5f00013bcf41da386fef459 | 2,383 | /*
* Copyright 2011-2021 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... | 32.202703 | 92 | 0.741922 |
d2069bff77c70d4cea31dcd82dfb1fd807e6bf02 | 9,205 | /*
* Copyright (c) 2005, 2011, 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 ... | 26.451149 | 88 | 0.598805 |
93a51fb4c94e7dcf6dddf618542fdeceb52deb24 | 2,492 | package com.github.fridujo.glacio.examples.stepdefs;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.request;
import java.io.UnsupportedEncodingException;
import java.util.concurrent.atomic.AtomicReference;
import com.jayway.... | 39.555556 | 143 | 0.735152 |
7ea86286d188acbec5841c0e580a10b248ee82bb | 332 | /**
* Copyright (c) 2000,1,2,3,4,5 syntazo
*
* @author thanos vassilakis
*
*/
package org.visualtrading.gui;
import org.visualtrading.model.Model;
public interface Part {
// -------------------------- OTHER METHODS --------------------------
void getFrom(Model model);
void setOn(Model ... | 17.473684 | 71 | 0.533133 |
7668cd313897a7581cfd0f560a50e20aa22b8543 | 2,524 | /**
*
* 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
* "Lice... | 28.359551 | 64 | 0.662441 |
126bc87a2eb164c027ba3cf71ba6a04e85b4065a | 112 | package jata.Utils;
public interface ForNextLastCall<T> {
void foreach(T t, int index, int last);
}
| 14 | 41 | 0.669643 |
2771b987d115b86e072f186e0f7be619b1b802ad | 10,635 | package com.exiro.buildingList;
import com.exiro.object.Case;
import com.exiro.object.City;
import com.exiro.object.ObjectType;
import com.exiro.object.Resource;
import com.exiro.render.ButtonType;
import com.exiro.render.interfaceList.BuildingInterface;
import com.exiro.render.interfaceList.Interface;
import java.ut... | 35.215232 | 238 | 0.593512 |
c32d47dd95dd85a7dd276f87a4d111a84b529492 | 443 | package serenitycore.net.thucydides.core.pages;
import serenitycore.net.serenitybdd.core.pages.PageObject;
import serenitycore.net.thucydides.core.annotations.DefaultUrl;
import org.openqa.selenium.WebDriver;
@DefaultUrl("classpath:static-site/does-not-exist.html")
public class PageWithInvalidDefaultUrlOnTheClasspath... | 36.916667 | 73 | 0.819413 |
4920c3ee2e0699c8303546c9b76c216b01219bba | 2,293 | package org.zstack.network.service.lb;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIEvent;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.other.APIAuditor;
import org.zstack.he... | 33.231884 | 126 | 0.748801 |
d9f9cfd416f8506e3d88dcb6943af248aa5dabd1 | 5,112 | /*
* Copyright (c) LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.flashback.netty.mapper;
import com.google.common.collect.LinkedHashMultimap;
import com.google.common.collect.Multimap;
import co... | 45.642857 | 114 | 0.755673 |
488af900ef55a87b3ead53bb4af5e514cad1e776 | 1,492 | package com.mrmo.mhttplib;
import android.util.Log;
import com.google.gson.Gson;
import java.lang.reflect.Type;
import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;
/**
* json解析处理。注意:MHttpResultModel是统一处理json实体。根据实际情况自定该类。
* Created by moguangjian on 2017/3/12.
*/
public class HttpR... | 24.459016 | 80 | 0.621984 |
139ff45b3c7214eb4089c9b26c1dc51d75a143ae | 5,403 | package tutorspet.logic.commands.moduleclass;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static tutorspet.commons.core.Messages.MESSAGE_INVALID_MODULE_CLASS_DISPLAYED_INDEX;
import static tutorspet.logic.commands.CommandTestUtil.assertC... | 44.286885 | 114 | 0.773459 |
ca86754c0353296aae7c25e08547f71da6904bd8 | 8,438 | package gov.nist.drmf.interpreter.maple.extension;
import gov.nist.drmf.interpreter.common.cas.ICASEngine;
import gov.nist.drmf.interpreter.common.exceptions.ComputerAlgebraSystemEngineException;
import gov.nist.drmf.interpreter.maple.common.MapleConfig;
import gov.nist.drmf.interpreter.maple.listener.MapleListener;
i... | 36.686957 | 114 | 0.647784 |
3aa96dd0b8e2afdaa603a5dde16a792fe51b969f | 13,489 | package com.communote.server.core.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spr... | 39.673529 | 170 | 0.594781 |
1b77276394f0b60f57177d8ae1869bf4886d5cae | 2,651 | package com.zyb.coolweather;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.animation.AlphaAnimation;
import a... | 27.05102 | 83 | 0.771407 |
844800de8cb42e5aff1f2c81b886ac9c80756c1b | 1,755 | package com.jagex.runescape.audio;
/*
* Some of this file was refactored by 'veer' of http://www.moparscape.org.
*/
import com.jagex.runescape.Buffer;
final class Envelope {
private int phaseCount;
private int[] phaseDuration;
private int[] phasePeak;
int start;
int end;
int form;
private int critical... | 25.071429 | 115 | 0.615954 |
3889529cd87ab98a8bc816d0d286161b3808ea51 | 5,170 | /*
* The MIT License (MIT) Copyright (c) 2020-2021 artipie.com
* https://github.com/nuget-adapter/artipie/LICENSE.txt
*/
package com.artipie.nuget.http.metadata;
import com.artipie.asto.Storage;
import com.artipie.asto.blocking.BlockingStorage;
import com.artipie.asto.memory.InMemoryStorage;
import com.artipie.nuge... | 35.655172 | 100 | 0.555319 |
6f25b851a0bb2733b29560aaf512f7c8d2a63df5 | 3,570 | /**
* Copyright 2014 Netflix, 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... | 34.326923 | 75 | 0.654622 |
dcfca6714484f2d28b31f2b71357473fa6dc0936 | 1,610 | /*
* Copyright 2014 - 2020 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.377358 | 75 | 0.676398 |
12a67a029a599cbee0e41e6f6f6cececfb28c04d | 632 | package com.mjing.reflection.dynamicProxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class IVehicalInvocationHandler implements InvocationHandler{
private final IVehical ivehical ;
public IVehicalInvocationHandler(IVehical ivehical){
this.ivehical = ivehical... | 26.333333 | 85 | 0.675633 |
f9849b58f94d1dd07e85ba93cf7dcdaf6654bf00 | 597 | package com.xuetao.springcloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
/**
* @ClassName OrderFeignMa... | 27.136364 | 72 | 0.78727 |
3b552df3c381355a026e208b04cb5b1febff6c5c | 1,297 | package com.mohsinkd786.controller;
import com.mohsinkd786.service.FanoutService;
import com.mohsinkd786.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springfr... | 33.25641 | 83 | 0.787201 |
2cee82111ea203d3bb7670695c41ee64c2eddbc7 | 2,586 | /*
* Copyright 2020-2021 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... | 43.1 | 119 | 0.801624 |
56845e1a2e8541623d7e425dd5e41224757c6ce0 | 1,122 | package terminal.instruction.impl;
import terminal.SessionState;
import terminal.instruction.IInstruction;
import terminal.model.IpAddressArg;
import terminal.model.Session;
import terminal.parser.IArgumentsParser;
import terminal.parser.impl.IpPortParser;
/**
* @author Bernhard Halbartschlager
*/
public final clas... | 27.365854 | 87 | 0.708556 |
a5cba82cfd5c3027506d607dae9b42975dcf743b | 1,713 | package com.lznby.bigdemo.retrofit.demo10;
import java.lang.annotation.Annotation;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import retrofit2.Call;
import retrofit2.CallAdapter;
import retrofit2.Retrofit;
/**
* [Retrofit 自定义 CallAdapter]源码
*/
public class MyCallAdapter {
publi... | 27.629032 | 99 | 0.642148 |
fb20bd7e768635844e1e72749483acb92c2fbf11 | 2,982 | /*
This file is part of the iText (R) project.
Copyright (c) 1998-2022 iText Group NV
Authors: iText Software.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://itextpdf.com/sales. For AGPL licensing, see below.
AGPL licensi... | 39.76 | 130 | 0.693159 |
c661f9c378f5dfe85407996eedd11b1230bc6f2b | 2,497 | import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JButton;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class Calcul... | 24.722772 | 72 | 0.705647 |
f125d1c659df4d4a52c3e4ba8ab47f5022669fd4 | 191 | package androidx.core.widget;
import android.os.Build;
public interface AutoSizeableTextView {
public static final boolean PLATFORM_SUPPORTS_AUTOSIZE = (Build.VERSION.SDK_INT >= 27);
}
| 23.875 | 91 | 0.790576 |
36994373b064c4884214b63bbcc75f4a0b704a9f | 10,589 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.timeseries;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import javax.time.calendar.LocalDate;
import org.sl... | 55.731579 | 190 | 0.778922 |
b1e44f8670c6eab1db5402f60a963973196365c9 | 1,379 | package wildcard_matching;
public class WildcardMatching {
public class Solution {
private int minLength(String p) {
int len = 0;
for (int i = 0; i < p.length(); i++) {
if (p.charAt(i) != '*') {
len++;
}
}
... | 29.340426 | 82 | 0.294416 |
7448d3d3ce882b7cbf62c2a1322b14d97d5181de | 3,367 | package kaptainwutax.playback.mixin.client.render;
import com.google.common.collect.Iterables;
import kaptainwutax.playback.Playback;
import kaptainwutax.playback.render.RenderQueue;
import kaptainwutax.playback.replay.ReplayView;
import kaptainwutax.playback.replay.capture.PlayRenderers;
import net.minecraft.client.r... | 43.166667 | 235 | 0.77725 |
49957fb1c296927cf5aa72cf24e1b2a2b246b750 | 2,615 | package aQute.www.fsm.util;
import java.util.List;
import java.util.function.Consumer;
import java.util.function.Function;
public class FSM<State extends Enum<State>, Event extends Enum<Event>, Context> {
final Transition[][] transitions;
volatile State state;
@SuppressWarnings("rawtypes")
static class Transi... | 24.669811 | 101 | 0.645889 |
aa73bbdc11d81c200770e8d809a4640426a182b8 | 16,221 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan.video;
import javax.annotation.*;
import java.nio.*;
import org.lwjgl.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.MemoryUtil.*;
import stat... | 47.849558 | 227 | 0.701745 |
bf3435bde7f6c310a7dd04365670949d492268ed | 402 | package io.jmix.security.model;
import java.io.Serializable;
import java.util.function.Predicate;
/**
* Represents row level policy in-memory predicate. The predicate expects an entity instance as an argument. Use {@link
* RowLevelBiPredicate} if you need to use Spring beans inside the function.
*/
@FunctionalInte... | 33.5 | 119 | 0.791045 |
d740a14208e815de983b105bfd86412afbbb3398 | 765 | package com.honyum.elevatorMan.net;
import com.honyum.elevatorMan.net.base.RequestBean;
import java.io.Serializable;
/**
* Created by 李有鬼 on 2017/1/8 0008
*/
public class AllMaintenanceProjectRequest extends RequestBean {
private AllMaintenanceProjectReqBody body;
public AllMaintenanceProjectReqBody ge... | 20.675676 | 71 | 0.686275 |
1407cca35df7e63d180dfcd68449fc9d5ccffcba | 2,090 | /*
* Copyright 2013 Haulmont
*
* 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... | 38.703704 | 166 | 0.667464 |
66841b48cb2a9e380be5f97630436ba234d35126 | 5,474 | /*
* Copyright (c) 2002-2021, Manorrock.com. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, th... | 33.175758 | 102 | 0.633906 |
90d07ac0c830e70ab412b30543eaa2ac2dc70108 | 1,827 | package co.com.bancolombia.task;
import co.com.bancolombia.exceptions.CleanException;
import java.io.File;
import java.io.IOException;
import org.gradle.api.Project;
import org.gradle.testfixtures.ProjectBuilder;
import org.junit.Before;
import org.junit.Test;
public class UpdateProjectTaskTest {
private UpdateProj... | 27.268657 | 78 | 0.711002 |
98f52aab695540c3e68bd2152378352fe052aa20 | 556 | package leetcode.medium;
public class P_255 {
int idx;
int[] preorder;
public boolean helper(int lower, int upper) {
if (idx == preorder.length) {
return true;
}
final int val = preorder[idx];
if (val < lower || val > upper) {
return false;
... | 22.24 | 60 | 0.553957 |
5c39a8d916f2633de6ff17a9908766d3cf8c48e3 | 2,187 | package HPClasses;
import java.io.IOException;
import java.util.ArrayList;
/**
* @author <a href="https://kamla.com.np">Abdhesh Nayak</a>
* This Class Read the String value from String present in csv format
*/
public class stringToCsvReader {
public ArrayList<ArrayList> read() throws IOException {
//Cr... | 32.641791 | 113 | 0.455876 |
78ff94f22a7665126bde195372502a8afa98972e | 947 | package uk.co.mruoc.file.property;
import org.junit.jupiter.api.Test;
import java.util.Properties;
import static org.assertj.core.api.Assertions.assertThat;
class FakePropertyLoaderTest {
private final FakePropertyLoader loader = new FakePropertyLoader();
@Test
void lastLoadedPathShouldBeNullBeforeLoa... | 22.023256 | 71 | 0.681098 |
deea41ac72b6ce390d108c9e5dc62b85868ffd26 | 13,197 | /*
Copyright (c) 2012 Javier Ramirez-Ledesma
Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
*/
package msti.ospfv2.mensaje;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream... | 30.834112 | 209 | 0.710768 |
ee3a078dfd1f51b8529479db3a2e86002ee6bb61 | 388 | package com.zepinos.chat.server.Domain;
import lombok.Data;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@Data
public class User implements Serializable {
@Id
@Column(length = 20)
private String userId;
@Column(nullable = false, length = 30)
private String userName;
... | 17.636364 | 43 | 0.75 |
1e834e6766d4f21d84b94f9b24c964e77c916b5b | 4,711 | package com.ivoryworks.pgma;
import android.app.Activity;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
impor... | 30.590909 | 121 | 0.589471 |
9bc237ff1ccafe9f90dd27eb4762d0e5db75e407 | 2,149 | package net.frostedbytes.android.picklythebest.fragments;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.preference.PreferenceFragmentCompat;
import net.frostedbytes.android.picklythebest.R;
import net.frostedbytes.android.picklythebest.uti... | 30.7 | 133 | 0.759423 |
b5b501e50d50b119115eb8d07e680afc5250d202 | 7,717 | /*
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")... | 34.297778 | 134 | 0.599067 |
4df045ba5e560b7ee8b7c1bd33b9885bebaff91d | 230 | package fr.pds.isintheair.crmtab.ctruong.uc.propsect.suggestion.model.config;
/**
* Created by Truong on 2/10/2016.
*/
public interface ProspectRestConfig {
static final String BASE_URL = "http://192.168.20.3:8082/api/";
}
| 25.555556 | 77 | 0.730435 |
bcf708663c447b425d124556f48b813fc00654de | 1,502 | package com.github.bbodnar;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.SneakyThrows;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
public class JacksonSimpleDataBinding {
@SneakyThrows
public static void main(String[] args) {
var mapper = new ObjectMapper... | 30.04 | 74 | 0.592543 |
f1098afd1baccf3829bd4917711892caa1517929 | 1,899 | /*
* Copyright (c) 2016 Haulmont
*
* 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... | 27.521739 | 75 | 0.7109 |
76213e27c5c791a57f45f292e6e971c1d1a821d2 | 2,472 | package com.meta.model;
import lombok.Data;
@Data
public class FastRunTimeException extends RuntimeException {
private String code;
private String message;
public FastRunTimeException(String message) {
this.message = message;
}
public FastRunTimeException(ErrorEnum errorEnum) {
... | 37.454545 | 129 | 0.67678 |
6fdd63476fa0cb8b857687aff4b3ffc6644af383 | 692 | package javaee.servlet.listener;
import javax.servlet.ServletContext;
/**
* @see javax.servlet.ServletContextEvent
*/
public class ServletContextEvent extends javax.servlet.ServletContextEvent {
/**
* Construct a ServletContextEvent from the given context.
*
* @param source
* - t... | 23.066667 | 76 | 0.663295 |
c4d20cb45c1d4952595167e423a39043f8d65c7b | 5,075 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Server
* Copyright (C) 2008, 2009, 2010, 2011, 2013, 2014, 2016 Synacor, Inc.
*
* This program 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... | 29.33526 | 101 | 0.579507 |
67dabf301a7b3c5735dcf16b244717272863fcd7 | 1,340 | package de.adorsys.ledgers.cleanup.repository;
import org.apache.commons.io.IOUtils;
import org.springframework.core.io.ResourceLoader;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.io.IOException;
import java.io.InputStream;
import ja... | 36.216216 | 107 | 0.770149 |
5509b56aae09d44b09459875575f23f76fd65591 | 1,047 | package arcs.sdk.android.dev.api;
import java.util.function.Consumer;
class Thing<T> {
public final T thing;
Thing(T thing) {
if (thing == null) {
throw new AssertionError("Cannot create a null Thing");
}
this.thing = thing;
}
public T get() {
return this.thing;
}
@Override
publ... | 20.94 | 68 | 0.632283 |
a27acdbcbe865f837c486a7d58f7311ad742fecb | 778 | package com.sap.csc.employeecreationbe.model.employee.information;
import lombok.Builder;
import lombok.Data;
@Data
@Builder
public class CompanyCode {
private String code;
private String name;
private String city;
private String country;
private String currency;
private String language;
... | 25.933333 | 66 | 0.768638 |
a525129850ce2f21bf508a989ad98ca1dd74d7b8 | 8,862 | package net.splatcraft.impl;
import com.google.common.reflect.Reflection;
import com.mojang.brigadier.CommandDispatcher;
import dev.onyxstudios.cca.api.v3.entity.EntityComponentFactoryRegistry;
import dev.onyxstudios.cca.api.v3.entity.EntityComponentInitializer;
import dev.onyxstudios.cca.api.v3.entity.RespawnCo... | 44.532663 | 140 | 0.71722 |
2bae2dee0a6b16e9eb0839b0ccb09b7115dfc83f | 5,913 | /**
* 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... | 27.375 | 104 | 0.676814 |
1cefc26a556b7b89f7ccdf2521123c168ed62f6f | 841 | import java.util.*;
class Composite
{
int m,n,sum ,freq =0;
void input()
{
Scanner kb = new Scanner(System.in);
System.out.println("enter the range");
int a =kb.nextInt();
for(int i=0;i<=a;i++)
{ int z =iscomposite(i);
if(z==1)
{
... | 17.520833 | 49 | 0.359096 |
60a01b1bc6146c418485fa94a5a45b902560cf24 | 892 | package derpatiel.manafluidics.capability.heat;
public class HeatProvider implements IHeatHandler {
private int heatProvided;
private boolean heatProvidedThisTick=true;
public HeatProvider(int heatProvided){
this.heatProvided=heatProvided;
heatProvidedThisTick=true;
}
public Heat... | 20.744186 | 51 | 0.63565 |
1d2e066a571bb8959b6ca07605d141fec9fe6a79 | 1,944 | package com.defano.wyldcard.part.builder;
import com.defano.hypertalk.ast.model.enums.Owner;
import com.defano.hypertalk.ast.model.Value;
import com.defano.wyldcard.part.button.ButtonModel;
import com.defano.wyldcard.part.model.PartModel;
public class ButtonModelBuilder extends PartModelBuilder<ButtonModel, ButtonMod... | 29.454545 | 91 | 0.695988 |
3ddaa5def6769b26349d0e72c1b02fea8e5d1d8d | 4,632 | package com.emistoolbox.common.results.impl;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import com.emistoolbox.common.excelMerge.ExcelMergeConfig;
import com.emistoolbox.common.excelMerge.ExcelReportConfig;
import com.emistoolbox.common.excelMerge.ExcelMergeConfig.CellType;
... | 36.761905 | 130 | 0.707686 |
fa1799fe6ecbbab9f203af6dfa3623d9bdba57c7 | 11,042 | 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... | 17.838449 | 815 | 0.820141 |
8ab5c7b9d248f93211aebeff6dee919ade8c4a07 | 5,252 | // Copyright Eagle Legacy Modernization, 2010-date
// Original author: Steven A. O'Hara, Jul 12, 2011
package com.eagle.programmar.Perl;
import com.eagle.programmar.Perl.Symbols.Perl_Identifier_Reference;
import com.eagle.programmar.Perl.Terminals.Perl_Keyword;
import com.eagle.programmar.Perl.Terminals.Perl_KeywordC... | 34.781457 | 78 | 0.799505 |
3fb9ca5f3590606d45d666bc1b9c84958554530b | 1,723 | package me.Alw7SHxD.EssCore.util;
import me.Alw7SHxD.EssCore.API.EssAPI;
import me.Alw7SHxD.EssCore.Core;
import me.Alw7SHxD.EssCore.util.vars.messages;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.UUID;
/**
* EssCore was created by Alw7SHxD (C) 2017
*/
public class Runnable {
private Core core... | 36.659574 | 128 | 0.538015 |
8dc999e900b068e9c7d90974313d1753926c4b41 | 2,598 | /**
* Copyright (C) 2016 Hurence (support@hurence.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 a... | 27.347368 | 116 | 0.626251 |
1a53062f93ee512069b352ee9a38554a5b65101a | 15,903 | /*
* 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 ... | 39.266667 | 103 | 0.640571 |
556c88d2679b18ced6148232e1db707b20bb6e5f | 2,342 | /*
* Copyright 2015 Odnoklassniki Ltd, Mail.Ru Group
*
* 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.232558 | 87 | 0.644748 |
c648c16a39d6acc2796b59f8a57a129089406ff0 | 2,986 | package com.lframework.xingyun.sc.impl.purchase;
import com.lframework.common.exceptions.impl.DefaultClientException;
import com.lframework.common.utils.Assert;
import com.lframework.common.utils.NumberUtil;
import com.lframework.starter.mybatis.impl.BaseMpServiceImpl;
import com.lframework.xingyun.basedata.dto.produc... | 35.547619 | 100 | 0.730743 |
203fe556d20cefb40fcb28ff944a799552d06f1e | 901 | package algorithms.level5DivideAndConquer;
public class LowestCommonAncestorofaBinaryTree {
/*
* @param root: The root of the binary search tree.
* @param A: A TreeNode in a Binary.
* @param B: A TreeNode in a Binary.
* @return: Return the least common ancestor(LCA) of the two nodes.
*/
... | 29.064516 | 81 | 0.54495 |
6a86e37987e0334e8eb4a2c454b5f9d558a0c58e | 535 | package Decorator;
/**
* Created by Quang on 11/8/15.
*/
/**
* @desc: Creates a pizza and adds the topping dynamically
* prints out its description and its cost
*/
public class PizzaMaker {
public static void main(String[] args){
// Easily modify the Pizza object by adding the topping dynami... | 24.318182 | 75 | 0.656075 |
e373e60f54dbb9f6e8bf5e8994b640b3d0a7d617 | 5,337 | // Copyright 2014 theaigames.com (developers@theaigames.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 req... | 30.152542 | 137 | 0.607083 |
5a473361c2bc9bd27368ddd36c51059d1bcf78d3 | 3,590 | package org.petapico.nanobench;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.eclipse.rdf4j.mode... | 30.683761 | 119 | 0.719777 |
c92c893f171b28e894f116c47efa3a3a8f223e0a | 7,747 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 41.875676 | 96 | 0.743643 |
30caf36c4f79e1235cd938c6cd03436464e88d83 | 5,838 | package top.one.jiemo.controller;
/*商品-商品详情页-购物车-提交-----------前台||后台:发货
* 商品-商品详情页-(购买)确定订单-提交---|
*
* */
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
... | 38.92 | 120 | 0.68962 |
1dc6691738b4cfdb899c09c97d7896a1251162a1 | 1,539 | package ru.job4j.Duck;
public abstract class Duck {
/**
* обьявляем две ссылочные переменные с типами интерфейсоф поведения.
* переменные наследуются всеми субклассами Duck (в том же пакете)
* а не с типом конкретного класса реализации.
* Каждый обьект на стадии выполнения присваивается этим п... | 36.642857 | 122 | 0.703054 |
d3bb71b2d37eb8b7c09c6df1cee81ea9d8a9e797 | 13,483 | /*
* 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 ... | 38.303977 | 102 | 0.754135 |
98197b7ae63adebb042800ac431a413d245c55c5 | 3,616 | /*
* 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 ... | 42.046512 | 161 | 0.753872 |
f58acc9a7a67f6d461006a0a9d37240d677c2e3b | 817 | package com.example.jpain10steps.controller;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.b... | 26.354839 | 63 | 0.773562 |
88373185cda1ef040a73623e4f1c69531adcbfa8 | 4,150 | /*
* 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 ... | 30.970149 | 88 | 0.622892 |
70284afd9eaad216ddd2698faa25df2f547a7a03 | 3,782 | /*
* Copyright (c) 2020, ThatGamerBlue <thatgamerblue@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice... | 33.469027 | 140 | 0.728715 |
c762b4226356a88302a44487595716367535872c | 355 | package es.upm.tfm_sbs.service.vod.service;
import com.aliyuncs.exceptions.ClientException;
import java.io.InputStream;
public interface VideoService {
String uploadVideo(InputStream file, String originalFilename);
void removeVideo(String videoId) throws ClientException;
String getPlayAuth(String videoS... | 27.307692 | 68 | 0.811268 |
970652fcd3649f06618c7d9a9ff88d6422d973d2 | 3,130 | /*******************************************************************************
* Copyright (c) 2015-2017 Uwe Köckemann <uwe.kockemann@oru.se>
*
* 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 ... | 30.990099 | 117 | 0.684984 |
a2fa9cbbbd3f00aa4842c970ab27087570f719b4 | 20,094 | /* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package ca.odell.glazedlists.event;
import ca.odell.glazedlists.EventList;
i... | 44.065789 | 205 | 0.64676 |
ff08db21849aac4cb2cec1dfdd1221d683ba7bd8 | 798 | package com.boliangshenghe.outteam.entity;
public class Menu {
private Integer id;
private String name;
private String url;
private String code;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Stri... | 18.55814 | 55 | 0.527569 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.