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 |
|---|---|---|---|---|---|
25ffb2af10b9f19787906fab7b2b7ccabc5703b7 | 6,337 | package com.senzing.api.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.senzing.api.model.impl.SzWhyPerspectiveImpl;
import com.senzing.util.JsonUtilities;
import javax.json.JsonArray;
import javax.json.JsonObject;
import java.ut... | 31.371287 | 80 | 0.694335 |
fa1bf72a2c90727109633ed3ea3f0351994b4d0b | 3,024 | package br.livro.restapi.resources;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.... | 34.363636 | 99 | 0.725198 |
ab350edc392f3b8e4c77438eb1ab4a8b56d646bd | 247 | package io.github.anantharajuc;
public class ForEachLoop
{
public static void main(String[] args)
{
int[] i = {23, 7, 64, 20, 3};
for ( int j : i )
{
System.out.println( "value :: " + j );
}
}
}
| 15.4375 | 52 | 0.489879 |
c8e0c3cdb16bb56875a46d90055d0ce14de5809a | 9,654 | package com.hhbgk.webservice.discovery.more;
//----------------------------------------------------
//
// Generated by www.easywsdl.com
// Version: 5.0.8.0
//
// Created by Quasar Development at 04/04/2017
//
//---------------------------------------------------
import org.ksoap2.serialization.AttributeContainer;
im... | 34.478571 | 140 | 0.482701 |
a7eece4235854bca3efda562d639ba605be12d96 | 9,055 | /*
* Copyright @ 2017 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 33.66171 | 117 | 0.63048 |
ee7ec350c617262d5f74c3c4b2465b64e8d4d83f | 1,869 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 35.264151 | 79 | 0.777956 |
0317c142523a9b31261ff4f8de321ead2dc5d061 | 187 | package fr.exalow.main;
import fr.exalow.main.core.MonsterHunter;
public class Main {
public static void main(String[] args) {
new MonsterHunter().run();
}
}
| 17 | 45 | 0.631016 |
48d139fe89344bbd58911e526a9cc08170fe1861 | 480 | package com.QASystem.LightQA.questionClassifier.patternbased;
public enum QuestionPattern {
//1、直接和【问题】匹配,如:APDPlat的发起人是谁?
Question,
//2、和问题分词及词性标注之后的【词和词性序列】进行匹配,如:apdplat/en 的/uj 发起人/n 是/v 谁/RW.RWPersonSingle
TermWithNatures,
//3、和问题分词及词性标注之后的【词性序列】进行匹配,如:en/uj/n/v/RW.RWPersonSingle
Natures,
... | 32 | 81 | 0.720833 |
e8a28f120dc88df97eb61d3ee3007d032f69ef12 | 415 | package it.vige.businesscomponents.injection.interceptor;
import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;
import it.vige.businesscomponents.injection.interceptor.service.SimpleStatelessBean;
public class DefaultInterceptor {
@AroundInvoke
public Object aroundInvoke(InvocationCon... | 25.9375 | 84 | 0.831325 |
bd006f3efa4c111aa6aad0ec1b51eb79a398b963 | 1,227 | package io.oz.albumtier;
import android.content.SharedPreferences;
import android.content.res.Resources;
/**
* The contract between string.xml items and app constants.
*
* <h3>How is it working</h3>
* 1. App main Activity load Prefkeys' members from string.xml;<br>
* 2. AlbumContext, the singlton, use these keys... | 35.057143 | 93 | 0.740016 |
42e0eef73c286ae07515c9381b86617d1a7a73b6 | 1,488 | /**
* Copyright 2014 Microsoft Open Technologies, 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 applicabl... | 34.604651 | 97 | 0.772177 |
b67dbea7b9caf6f0dd0c021b83fee3c580da10af | 1,508 | package com.sdl.ecommerce.api.model;
import java.util.List;
/**
* Facet
*
* @author nic
*/
public interface Facet {
// TODO: Have sub classes to this one for Ranges etc???
// RangeFacet, ValueFacet, LessThan, GreaterThan -> Do enums instead
// getType(), getValues()
// TODO: Move this out a sepa... | 19.584416 | 90 | 0.572281 |
90e2a8968bf48de61bc3cd837824fcba494fd955 | 18,526 | /* Copyright 2002-2021 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... | 54.169591 | 112 | 0.606607 |
dd1cedbf284d701e0f56f43a4f9c5e381b3c7356 | 164 | package ncatt.behaviour.touch;
public interface TouchConstants
{
public static final int ANY_TOUCH = Integer.MIN_VALUE;
public static final int NO_TOUCH = -1;
}
| 20.5 | 55 | 0.786585 |
449c934410bf9ea5f1a5dee8316c4cffc7fb464f | 2,680 | package datasec.domain.service;
import com.google.common.hash.Hashing;
import datasec.domain.LoggedUser;
import datasec.domain.NewQuestion;
import datasec.domain.Question;
import datasec.exception.ApplicationException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype... | 30.804598 | 97 | 0.653731 |
f61683f22f8fce555cbba3676f7bea2c25dde8c0 | 1,947 | package io.b1n4ry.editorconfig.io;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeDiagnosingMatcher;
import org.junit.jupiter.api.Test;
import static org.... | 29.953846 | 83 | 0.742681 |
9a562343f9cb78c58871b1ad228de66463cb41f5 | 4,017 | /*
* Copyright 2021 Sourcesense Spa
*
* 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... | 40.989796 | 105 | 0.768733 |
84e13d6fa4f9bb353281cd393bcd30a6a1a82f7c | 9,025 | package net.ja731j.twitter.autoreply.command;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.... | 37.920168 | 163 | 0.600776 |
8151edb9494204dabdbdfb803f524d0815d7f733 | 1,842 | /**
* Copyright 2014 CMBI (contact: <Coos.Baakman@radboudumc.nl>)
*
* 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 b... | 31.758621 | 76 | 0.751357 |
77d30058ed959849ad4086ed5a3ba0effa8d7fee | 700 | package net.ros.common.block;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.ros.common.tile.machine.TileKeypunch;
public class BlockKeypunch extends BlockMultiModularMachine<TileKeypunch... | 29.166667 | 86 | 0.725714 |
fdbcf538be131085ef0cfd48af81d898c3ebfa4a | 3,447 | package com.dodo.xinyue.conan.module.message.adapter;
import android.text.Html;
import android.text.TextUtils;
import android.widget.TextView;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.blankj.utilcode.util.TimeUtils;
import com.dodo.xinyue.conan.R;
import com.dodo.... | 34.128713 | 146 | 0.657673 |
2f5dcaad91431d7a4148f28c4dc8cbc0aed4acb1 | 3,700 | /* ************************************************************************
#
# designCraft.io
#
# http://designcraft.io/
#
# Copyright:
# Copyright 2012 eTimeline, LLC. All rights reserved.
#
# License:
# See the license.txt file in the project's top-level directory for details.
#
# Authors:
# ... | 28.244275 | 110 | 0.564054 |
fab5a1103fc5825de3850d54d062881ee98e4dc8 | 290 | package com.zph.tutorials.designpatterns.singleton;
/**
* Created by hujie on 17/2/21.
*/
public class SingletonPattern {
public static void main(String[] args) {
HungerSinleton.getInstance();
LazySingleton.getInstance();
SyncSingleton.getInstance();
}
}
| 22.307692 | 51 | 0.675862 |
d5b1ba9e47ae579dde99f02d199bb03a3fb35aae | 549 | package micooc.representation;
import java.util.ArrayList;
import java.util.List;
public class UploadScreenshotResponseRepresentation {
private int code;
private List<String> receivedImages = new ArrayList<>();
public int getCode() {
return code;
}
public void setCode(int code) {
... | 21.115385 | 64 | 0.677596 |
d4fbedb05736bd5657458809282280df790cd508 | 153 | package liuyang.nlp.lda.conf;
public class ConstantConfig {
public static String LDAPARAMETERFILE = "data/LdaParameter/LdaParameters.txt";
}
| 19.125 | 80 | 0.751634 |
362c90fe1dc2fb53ce9f3ff852551f4754d3fb4c | 7,653 | /*
Copyright (c) 2013, Fivium Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... | 37.886139 | 164 | 0.731739 |
467c3a7cf70bf7defebaa04f4f35d903f79a0315 | 3,227 | /*
* This file is part of Map Explorer.
*
* Copyright 2005-2007 Christoph Breitkopf
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
*
* Permission is granted to anyone to use ... | 28.06087 | 89 | 0.683917 |
bd16b187971bfdfa3d70fd997420d06e72a19d59 | 98 | package painting;
public class ActorLayer extends PaintLayer implements PaintLayerInterface
{
}
| 14 | 73 | 0.836735 |
53d3e5a2a816aa36430c4a7c0e82578af0a68f87 | 180 | package com.github.marcindabrowski.example.roomsbooking.domain.model;
import java.math.BigDecimal;
public record RoomNightOccupancy(int bookedRooms, BigDecimal bookingAmount) {}
| 30 | 78 | 0.844444 |
8eed291fa6dcdce4d7ac64256e04a78deab55c66 | 2,980 | package si.majeric.smarthouse.client;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.util.Calendar;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
i... | 38.205128 | 137 | 0.770134 |
27fb8421860ff85f53a628d4290b9c17f1cafa53 | 1,438 | package com.baomidou.plugin.idea.mybatisx.smartjpa.operate.generate;
import com.baomidou.plugin.idea.mybatisx.smartjpa.common.MapperClassGenerateFactory;
import com.baomidou.plugin.idea.mybatisx.smartjpa.common.iftest.ConditionFieldWrapper;
import com.baomidou.plugin.idea.mybatisx.smartjpa.component.TxField;
import co... | 23.966667 | 148 | 0.679416 |
207060b9601f29990f8046e362c90a23bea766ed | 893 | package main.flowstoneenergy.tileentities.recipes;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
public class FluidRecipe2_1 {
private ItemStack input1;
private ItemStack input2;
private FluidStack output;
private int amount;
private int time;
public FluidR... | 21.780488 | 104 | 0.640538 |
1a9accb5e16b22eada99e86fec8ab51366d4d482 | 760 | package Patterns.Decorator;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class WaterBottlingProcessDecorationTest {
@Test
void watterBottlingTest(){
// non decorated
oldGoodLiquidProducer simpleWater = new oldGoodLiquidProducer();
Assertions.assertEquals(... | 40 | 128 | 0.721053 |
7091253ecc6d482b8eda1c5add4736ea4075d474 | 1,625 | package com.cjsheehan.jrace.racing;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany... | 17.857143 | 95 | 0.622769 |
2ebd998ebb0279c28702e09e80716e33e99ddc37 | 421 | package com.example.dataloader.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import com.example.dataloader.entity.Publisher;
public interface PublisherRepository extends JpaRepository<Publisher, Integer> {
... | 28.066667 | 80 | 0.812352 |
30f0d9ba958e9dbf4ef9d00cc6e9a80bc8350be1 | 1,151 | package zyx.old.mega.geometry;
import zyx.old.mega.targeting.VShot;
import java.awt.Graphics2D;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
public class Rectangle extends Point {
public double width_;
public double height_;
public Rectangle() {}
public Rectangle(double x, d... | 26.767442 | 90 | 0.601216 |
706e396164c5168a864d0604cc46859741ae4af2 | 18,949 | /*
* Copyright (c) 2010, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 35.485019 | 116 | 0.491213 |
530b622a356d1fc72567e2898848cd3a7a13f436 | 547 | package com.sfengine.core.rendering;
/**
* Class for representing color format, and color space.
*
* @author Cezary Chodun
* @since 26.09.2019
*/
public class ColorFormatAndSpace {
/** Color format. */
public int colorFormat;
/** Color space. */
public int colorSpace;
/**
* @param color... | 21.88 | 65 | 0.650823 |
d2cf8ba84c1c09178155840cca6b64548dda5860 | 2,077 | package stonering.entity.item;
import stonering.entity.Aspect;
import stonering.entity.Entity;
import stonering.enums.items.ItemTagEnum;
import stonering.enums.items.type.ItemType;
import stonering.util.geometry.Position;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Ma... | 31.469697 | 169 | 0.68753 |
fbbedd8a95a046bd7df223bc561edc887243e4c8 | 4,006 | /*
* Dyspatch API
* # Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.i... | 28.211268 | 830 | 0.700449 |
b65a0fa1620127c1bc7801b363c483676a4910d7 | 1,777 | package org.hyperfit.net;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hyperfit.utils.StringUtils;
import java.util.*;
import java.util.Map.Entry;
/**
* Represents a request message sent by the hyper client to a service
*/
@ToString
@EqualsAndHashCode
public class Request {
private fin... | 24.013514 | 99 | 0.666292 |
18e1552642b3a35c2de2fc1c464f251f0c67d421 | 9,198 | package net.floodlightcontroller.debugcounter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import javax.annotation.Nonnul... | 33.692308 | 114 | 0.611111 |
f7d7566ba2bbc3063a996d35299a42e2b8e7183c | 122 | package out_of_order_execution_iterator;
@FunctionalInterface
public interface Executer<T> {
public T execute(T arg);
}
| 17.428571 | 40 | 0.811475 |
096d5f85ac020985fdff016cf9ea739ee632ce4d | 662 | package ocp.concurrent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Arrays;
import java.util.concurrent.ForkJoinPool;
public class ForkJoinExample {
static final Logger log = LogManager.getRootLogger();
public static void main(String[] args) {
Fork... | 25.461538 | 65 | 0.712991 |
c741ef70298d95a6d079ae081d700e3612c9c14d | 249 | package classe;
public class DataTeste {
public static void main(String[] args) {
Data d1 = new Data();
Data d2 = new Data(31, 12, 2020);
System.out.printf(d1.DataFormatada());
System.out.printf(d2.DataFormatada());
}
}
| 16.6 | 42 | 0.630522 |
7a67fff7fcc53e1498de1215b1f64f63db0d046f | 2,397 | package com.sequenceiq.cloudbreak.service.resource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.... | 35.25 | 105 | 0.749687 |
641b9309041f9d1b0da2832e22d6ecdecb26c8e4 | 1,006 | package com.ajoshow;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;
import org.springframework.batch.core.StepContribution;
import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
import org.springframework.batch.core.configuration.annotation.JobBui... | 41.916667 | 85 | 0.858847 |
8336745e545b50feb11d4fcc2ecae8cd37970fd6 | 4,732 | /*
* 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 ... | 50.88172 | 138 | 0.738166 |
abad8b53ef86c959b9d9e7f18be1b844365e611b | 872 | package foo;
public class Foo {
public String compute(int input) {
String decInput = Integer.toString(input);
StringBuilder output = new StringBuilder();
boolean isfbq = false;
if (input % 3 == 0) {
output.append("Foo");
isfbq = true;
}
if (input % 5 == 0) {
output.append("Bar");
isfbq = true... | 19.818182 | 45 | 0.536697 |
b13547685b8f57c0916df5e8bf13c404d6684342 | 51,776 | /*
* RelationshipBuilder.java
*
* Pattern matching relationship builder currently supporting
* email addresses and dates.
*
* Created on January 11, 2003, 2:38 PM
*/
package simpleimap;
import java.util.*;
import java.text.*;
import java.util.regex.*;
/**
*
* @author hassan
*/
public class RelationshipBu... | 38.667662 | 449 | 0.515451 |
f935027ea2a73e254d04785fe44824dac9f3702f | 49,208 | /*
* Copyright 2015 Didichuxing.com, Inc. or its affiliates. All Rights Reserved.
*/
package com.xiaoju.ecom.common.beanstalkd.client;
import com.surftools.BeanstalkClient.BeanstalkException;
import com.surftools.BeanstalkClient.BeanstalkExceptionType;
import com.surftools.BeanstalkClient.Job;
import com.surftools.B... | 37.592055 | 161 | 0.583076 |
a9f125ae4a603bb722b9c5accaf13ba9273f31e6 | 356 | import org.voltdb.*;
// https://docs.voltdb.com/tutorial/Part5.php
public class SetName extends VoltProcedure {
public final SQLStmt sql = new SQLStmt("UPDATE inodes SET name = ? WHERE id = ?;");
public long run(final long id, final String name) throws VoltAbortException {
voltQueueSQL(sql, name, id);
vo... | 25.428571 | 85 | 0.699438 |
621c97c78a38459c52d1a69d79a1ddbe2aaf5089 | 1,633 | package org.kuali.ole.describe.form;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Created with IntelliJ IDEA.
* User: rajeshbabuk
* Date: 3/3/14
* Time: 8:14 PM
* To change this template use File | Settings | File Templates.
*/
public class AnalyticsForm extends BoundwithForm {
... | 26.33871 | 80 | 0.711574 |
0c367b92967dcdfb91f7a00d4852f2582c32247b | 573 | package be.vbgn.gradle.cidetect;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.gradle.api.Project;
import org.gradle.testfixtures.ProjectBuilder;
import org.junit.Test;
public class CiDetectPluginTest {
@Test
public void apply() {
Project project... | 27.285714 | 110 | 0.732984 |
205be4a7a66920e3b130b5faba72775038676a58 | 3,284 | /*
* 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 SampleGames.Galiga.Enemies;
import Framework.Audio.SoundEffect;
import Framework.Coordinate;
import Framework.DCoordi... | 30.12844 | 120 | 0.607186 |
67d0c4b73bdfe2a36caf14e689fe46f4b45a9f99 | 5,914 | package co.zhenxi.modules.applets;
import co.zhenxi.annotation.AnonymousAccess;
import co.zhenxi.dozer.service.IGenerator;
import co.zhenxi.logging.aop.log.Log;
import co.zhenxi.modules.shop.domain.ZbCate;
import co.zhenxi.modules.shop.domain.ZbGoods;
import co.zhenxi.modules.shop.domain.ZbShop;
import co.zhenxi.modu... | 34.184971 | 108 | 0.72489 |
be5ca8d51ce291d33ca98ef58d146a1cb6925779 | 1,486 | package services.service.impl;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import org.springframework.transaction.annotation.Transactional;
import models.TransactionInfo;
import models.bean.TransactionInfoBean;
import play.exceptions.BaseException;
import play.exc... | 33.022222 | 114 | 0.805518 |
9340e876af98e81405187f1d2a136bc971e1e779 | 83 | package archive;
import static java.lang.System.out;
public class ImportTest {
}
| 11.857143 | 35 | 0.771084 |
0b1b6a018bc1b95a3d4d8168e213d0a00d4e4877 | 595,624 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/bigquery/storage/v1beta1/storage.proto
package com.google.cloud.bigquery.storage.v1beta1;
public final class Storage {
private Storage() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite ... | 38.611695 | 284 | 0.65361 |
5cd17511e664fcbabb292e17fe2dcee837767366 | 467 | package com.myshop.order.infra.paygate;
import com.myshop.order.command.application.RefundService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class ExternalRefundService implements RefundService {
private Logger logger = LoggerFactor... | 27.470588 | 64 | 0.770878 |
3f46544b8780617e159a66fc2a54c59bbbad05c6 | 624 | package ru.job4j.io;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
public class ConfigTest {
private Config conf;
@Before
public void setUp() {
conf = new Config(System.getProperty("user.dir") + "/src/main/resources/app.... | 21.517241 | 97 | 0.653846 |
1d28d84ea5652b48d4eafa7cdf802ff1255cca41 | 3,466 | package com.cpucode.netty.chat.group;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;
... | 28.644628 | 105 | 0.631564 |
3e1926ce282144b3d941f3bfa5561da7c05a82a7 | 2,338 | package jtrade.io;
import java.io.File;
import java.io.IOException;
import java.util.NavigableMap;
import java.util.TreeMap;
import jtrade.marketfeed.Bar;
import jtrade.marketfeed.Tick;
import jtrade.util.Util;
import org.joda.time.DateTime;
import org.joda.time.Duration;
public class BarTickFileReader implements B... | 24.354167 | 92 | 0.65355 |
b3c1a00d68f6fc08a5130ee1564a699a09cbb941 | 1,093 | package net.will_co21.format.json;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Optional;
public interface IJsonValue extends IJsonSource, IJsonSerializable, IJsonSerializableOptional {
public int getInt();
public Optional<Integer> getOptionalInt();
public long getLong();
p... | 36.433333 | 96 | 0.778591 |
66cc904697d707c59ff3743193586f55c89498d0 | 2,575 | package com.example.network_check;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.Network;
impor... | 37.867647 | 110 | 0.617476 |
b25723a3112a2bc562e23aac1399e34a614da5b3 | 222 | package ru.atott.combiq.web.security;
import org.springframework.security.core.Authentication;
public interface AuthService {
CombiqUser getUser();
Authentication getAuthentication();
String getUserId();
}
| 18.5 | 56 | 0.765766 |
54e89d1d320192aa90e7c97f0156a3bd7ad8768f | 669 | package org.smileframework.ioc.bean;
/**
* @Package: pig.boot.bean
* @Description: bean工厂定义
* 在BeanFactory里只对IOC容器的基本行为作了定义,根本不关心你的bean是如何定义怎样加载的。
* 正如我们只关心工厂里得到什么的产品对象,至于工厂是怎么生产这些对象的,这个基本的接口不关心。
* @author: liuxin
* @date: 2017/9/15 下午2:05
*/
public interface SmileBeanFactory {
//根据bean的名字,获取在IOC容器中得到bean实例... | 24.777778 | 55 | 0.751868 |
f5b08ed2bc799e01c024a2debd544f595eeda222 | 2,787 | /*
* Copyright 2015 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... | 36.671053 | 110 | 0.634733 |
bc97821b5e608d735503f03f066f0ec89c51438b | 24,148 | /*
Priha - A JSR-170 implementation library.
Copyright (C) 2007-2009 Janne Jalkanen (Janne.Jalkanen@iki.fi)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://w... | 33.307586 | 197 | 0.53317 |
b5d5d1eb882f3ac036d57c7152158a3c333964d9 | 203 | package club.mrxiao.amap.bean.weather;
/**
* <pre>
* 高德天气信息响应对象
* </pre>
* @author <a href="https://github.com/mr-xiaoyu">xiaoyu</a>
* @since 2021-01-12
*/
public class AmapWeatherInfoResult {
}
| 16.916667 | 60 | 0.655172 |
9bbfcb1ca5cecb8fc85e350d9917239584ff3990 | 3,776 | package com.xaeport.cinsight.ui.data.api.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* ContactDetail
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.S... | 23.748428 | 116 | 0.664989 |
c4b421685109f61f161e6a309e7f9778de301311 | 1,222 | /**
* XOR, empowering Model Driven Architecture in J2EE applications
*
* Copyright (c) 2012, Dilip Dalton
*
* 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/l... | 37.030303 | 84 | 0.723404 |
55fac1c96edff3a459f6bf0ff764d6d7c991873a | 2,258 | package jaxb.utility;
import org.apache.log4j.Logger;
import javax.xml.bind.ValidationEvent;
import javax.xml.bind.ValidationEventHandler;
/**
* Implementation of JAXB's ValidationHandler interface. A ValidationHandler can
* be registered with a JAXBContext object. When registered, and when a XML
* sche... | 50.177778 | 125 | 0.712135 |
a3e4987c56b94c9766dd656d91af769fd47d0e4e | 1,342 | package gov.usgs.cida.wqp.exception;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class WqpExceptionId {
private static final Logger LOG = LoggerFactory.getLogger(WqpExceptionId.class);
private final Long exceptionId;
private String name;
private WqpExceptionId( String name, int id ) {
LO... | 31.952381 | 108 | 0.71386 |
1d398ddc735480964979e805d8ad4d77a1d4d950 | 10,196 | package com.atguigu.gmall.search.service.impl;
import com.alibaba.fastjson.JSON;
import com.atguigu.gmall.search.pojo.Goods;
import com.atguigu.gmall.search.response.SearchResponseVo;
import com.atguigu.gmall.search.service.SearchParamService;
import com.atguigu.gmall.search.vo.SearchParamVo;
import com.atguigu.gmall.... | 37.076364 | 146 | 0.744998 |
82311600b32c8452026171066914efac1ef810e3 | 1,472 |
public class Card {
private char suit;
private int value;
/*
* Constructor
*/
public Card(char cardSuit, int cardValue)
{
suit = cardSuit;
value = cardValue;
}
//Used if the cardValue is not 2-10.
public Card(String card)
{
char cardSuit = card.substring(0,1).charAt(0);
String c... | 14.153846 | 54 | 0.487772 |
a76910c194bada9d37d001258f42076693737dc3 | 7,237 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL")... | 40.657303 | 225 | 0.668233 |
8311b721400f29dd2c6b7e3d9102e64493214948 | 7,878 | package cn.stylefeng.guns.modular.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
/**
* <p>
* 原告信息表
* </p>
*
* @author jinbo
* @since 2022-01-19
*/
@TableName("accuser")
public class Accuser implements Serializable {
private static final long seri... | 21.822715 | 66 | 0.57413 |
6cc68cbf7b7c595844167be263bf4d094bda8ef9 | 2,218 | package fr.catcore.translated.server.resource.language;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.gson.JsonObject;
import net.minecraft.util.Language;
import org.apache.logging.l... | 36.966667 | 141 | 0.738052 |
25d52a6f8b62577e820b4f93c130f8d01ee85953 | 27,009 | /*
Copyright 2015 Team3ScandalouStopwatch
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 writing,... | 33.845865 | 121 | 0.676885 |
7bd1701f78efb804823cbd8608dff209e71e2e68 | 23,783 | // The MIT License (MIT)
//
// Copyright (c) 2017 Smart&Soft
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... | 35.71021 | 234 | 0.68242 |
a51fd77fd65c698a2480f2c881c6a8e189f1dfce | 138 | package com.cardpay.pccredit.manager.constant;
public class ManageLederPeriod {
public final static String period="lederPeriod";
}
| 23 | 50 | 0.782609 |
2c1918418060bdd905a38b70f668739b7bba0fad | 1,176 | package com.flj.latte.ec.main.index.search;
import android.support.v7.widget.AppCompatImageView;
import android.support.v7.widget.AppCompatTextView;
import com.flj.latte.ec.R;
import com.latte.ui.recycler.MultipleFields;
import com.latte.ui.recycler.MultipleItemEntity;
import com.latte.ui.recycler.MultipleRecyclerAda... | 25.021277 | 87 | 0.704082 |
6385ceef4e16b888c2c8dc96f2ef2c91548b0b9e | 3,222 | /*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2015, 2016
*/
package quarks.providers.direct;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import quarks.topology.TStream;
import quarks.topolog... | 27.538462 | 116 | 0.530416 |
8e49bf77ea9190a44f7bd775080124f7616283df | 1,744 | package at.uibk.dps.ee.io.afcl;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Map;
import java.util.Set;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import at.uibk.dps.afcl.Workflow;
class WhileInputReadTest {
Workflow multiLevelInput;
String functionName = "... | 34.196078 | 100 | 0.736812 |
9ab05cbe1ea429148c977571d6bde5d1537291d3 | 7,070 | package com.example.boffinchat;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.DragStartHelper;
import android.graphics.Color;
import android.os.Bundle;
import android.text.Sp... | 31.704036 | 123 | 0.648232 |
f6c1c7c73db9e8167c7b7728e18ce9f032c86802 | 1,122 | package com.xiaochen.mobilesafe.activity;
import com.xiaochen.mobilesafe.R;
import com.xiaochen.mobilesafe.utlis.SystemBarTintManager;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
pub... | 29.526316 | 72 | 0.78164 |
87ae425b180f4449e3d7691c4c9193e564fdb840 | 2,721 | /*
* Copyright (c) 2005-2021 Radiance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* th... | 45.35 | 92 | 0.718118 |
02f2d3f3e78a8dbf18669aa8cd48019e48df2fd6 | 1,706 | /**
* Copyright (C) 2012 52°North Initiative for Geospatial Open Source Software GmbH
*
* 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... | 33.45098 | 138 | 0.702814 |
b50662eeaf7019160b9abc9b915ef5226b20111e | 5,629 | package maqetta.server.orion;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URI;
import java.util.Collection;
import java.util.Vector;
import maqetta.core.server.util.VResourceUtils;
import org.eclipse.core.filesystem.EFS;
import org.eclipse.core.filesystem.IFil... | 24.688596 | 118 | 0.692841 |
23a5369f527cb840b63831091ec60eb40bb44875 | 1,882 | package org.springframework.beans;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.*;
/**
* @author chl
* @date 2018/12/12 19:02
*/
public class PropertyComparator implements Comparator {
protected final Log logger = LogFactory.getLog(getClass());
... | 24.441558 | 105 | 0.574389 |
12e49ed6601e20a252139913a819a8475d585370 | 857 | package com.moon.content.center.module.domain.dto.user;
import com.moon.content.center.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @description:
* @author: 无忧
* @date: 2020-04-06 18:30
*/
@Data
... | 14.04918 | 55 | 0.585764 |
a0fb97cfde03d561d2efa43972318a86027bf02b | 1,336 | package core.framework.impl.web.bean;
import core.framework.api.json.Property;
import core.framework.api.validate.NotNull;
import core.framework.api.web.service.QueryParam;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
/**
* @author neo
*/
... | 23.438596 | 49 | 0.70509 |
365b0c555aa05b1ca5c8668e311d6186b3becfc0 | 187 | package com.mygdx.game;
public class StarfishGame extends BaseGame
{
public void create()
{
super.create();
setActiveScreen( new MenuScreen() );
}
} | 17 | 44 | 0.59893 |
5616dd66acd862bc1d3b5cc67f69ce4cea31eaa7 | 2,141 | /*
* Copyright 2021 DataStax, 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 i... | 40.396226 | 119 | 0.731901 |
6df475ed80ae9d4b00e7b31e91cc51d0a85a2166 | 820 | package org.guideme.guideme.writers;
import java.io.StringWriter;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.runtime.RuntimeConstants;
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
import org.guideme.guideme.model.Guide... | 30.37037 | 99 | 0.782927 |
eb0a15b7ba66c25cadf307a1bbf5b90fd7634fac | 367 | package org.cleancode;
import java.util.Iterator;
// TODO: Will be implemented
public class StringArrayArgumentMarshaler implements ArgumentMarshaler {
@Override
public void set(Iterator<String> currentArgument) throws ArgsException {
}
public static String[] getValue(ArgumentMarshaler argumentMars... | 21.588235 | 76 | 0.743869 |
c9fa2104db226009469b8fa4a804e3a396ea11b0 | 189 | package com.fangyuzhong.intelliJ.hadoop.core;
/**
* Created by fangyuzhong on 17-7-14.
*/
public interface Referenceable<R extends Reference>
{
R getRef();
String getName();
} | 17.181818 | 51 | 0.693122 |
1b426ebd98ea91ad19a980429f7ad26af87ef197 | 193 | package com.yang.easyhttprx.converter;
/**
* Created by yangyang on 2017/3/15.
*/
public interface RxEasyConverter<T> {
T convert(String body) throws Exception;
void doNothing();
}
| 17.545455 | 44 | 0.704663 |
aadb29c01bcfd45727402ef1548842afbe54beae | 1,641 | package javase.extension.system.process;
import java.time.Duration;
import java.time.Instant;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Stream;
/**
* ProcessHandle identifies and provides control of native processes. Each
* individual process can be monitored ... | 34.1875 | 108 | 0.731261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.