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 |
|---|---|---|---|---|---|
22fea87c54e65a59016da0d60e2fa0350b654e92 | 3,456 | package com.phui.my.shop.web.admin.web.controller;
import com.phui.my.shop.commons.dto.BaseResult;
import com.phui.my.shop.commons.dto.PageInfo;
import com.phui.my.shop.domain.TbUser;
import com.phui.my.shop.web.admin.service.TbUserService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.... | 33.230769 | 90 | 0.679688 |
fc8bf28dd175419e5ce91da0bb6b64823bceb7ad | 1,735 | package com.shanjupay.test.freemarker.controller;
import com.shanjupay.test.freemarker.model.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import jav... | 29.40678 | 84 | 0.595389 |
4d3b92409c5a392566dbbd550f9b99262b2f857f | 10,465 | /*==============================================================================
name: HttpResponse - core compatible HttpResponse
purpose: GWT compatible HttpResponse
history: Fri Nov 09, 2018 10:30:00 (Giavaneers - LBM) created
COPYRIGHT (c) BY GIAVANEERS, INC.
T... | 38.054545 | 80 | 0.31075 |
8328ff3296162870a1ec0fcc09a6e7793ac5211b | 368 | package host.furszy.zerocoinj.store;
import com.zerocoinj.core.CoinDenomination;
import com.zerocoinj.core.accumulators.Accumulator;
import java.math.BigInteger;
public interface AccStore {
void put(int height, Accumulator acc) throws AccStoreException;
BigInteger get(int height, CoinDenomination denom) th... | 23 | 80 | 0.793478 |
5461014023b8aa7d58d879969adf116224bfddab | 2,103 | package gr.hua.it219151.profile;
import gr.hua.it219151.actions.CreateContract;
import gr.hua.it219151.actions.DeleteContract;
import gr.hua.it219151.actions.GeneralContractInformation;
import gr.hua.it219151.users.User;
import java.util.Scanner;
public class UserProfile {
public void userActions(Use... | 38.236364 | 153 | 0.585354 |
82bf3febe0b1606559d1edf8bf595204c405da16 | 856 | package com.twitter.finatra.example;
import java.util.Collections;
import com.google.inject.Stage;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
import com.twitter.inject.server.EmbeddedTwitterServer;
public class ExampleTwitterServerFeatureTest extends ... | 22.526316 | 80 | 0.747664 |
7dbfdcfd9fc2f43102481dfd83b42f751965c6f8 | 424 | package com.example;
import java.lang.reflect.MalformedParameterizedTypeException;
import java.util.HashMap;
import java.util.Map;
/**
* Created by James on 2018/7/21.
*/
public class HashMapRead
{
public static void main(String[] args) {
HashMap<Integer,String> map = new HashMap<>();
map.put(1... | 20.190476 | 61 | 0.629717 |
22c233a5b9d077036fd118a278154cc214d32296 | 256 | package com.github.jolice.bot.telegram;
import com.github.jolice.bot.Bot;
import com.github.jolice.bot.type.BotType;
public class TelegramBotContext implements Bot {
@Override
public BotType getType() {
return BotType.TELEGRAM;
}
}
| 18.285714 | 48 | 0.726563 |
59bc4e735844e2793db2eeadd50df6d4a31d23cd | 1,936 | /**
* Copyright © 2015 Christian Wulf, Nelson Tavares de Sousa (http://teetime-framework.github.io)
*
* 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/licens... | 32.266667 | 143 | 0.741736 |
9ee6e62d409f5c8610403c92a337ab24c8c34313 | 570 | package io.github.t73liu.exchange.bitfinex;
import io.github.t73liu.exchange.bitfinex.websocket.BitfinexSocket;
import org.eclipse.jetty.websocket.client.WebSocketClient;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
import java.net.URI;
@Service
public class BitfinexExchange ... | 30 | 85 | 0.759649 |
5efe61a1a5d888dd203cbb2079673de695e0a45b | 1,067 | package net.sourceforge.kolmafia.swingui.menu;
import net.sourceforge.kolmafia.RequestThread;
import net.sourceforge.kolmafia.request.ClanRumpusRequest;
import net.sourceforge.kolmafia.request.ClanRumpusRequest.RequestType;
import net.sourceforge.kolmafia.swingui.listener.ThreadedListener;
import net.sourceforge.kolma... | 34.419355 | 85 | 0.772259 |
988a59a8d7b05fcb332d48cb75f4603d76e31b1a | 117 | package sonar.core.api.upgrades;
public interface IUpgradableTile {
IUpgradeInventory getUpgradeInventory();
}
| 16.714286 | 44 | 0.794872 |
021936fe6e8e61f87f77d0da44349ab4844cd52d | 4,452 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("fe")
@Implements("WorldMapIcon_1")
public class WorldMapIcon_1 extends AbstractWorldMap... | 26.035088 | 108 | 0.684412 |
e1d3c1216f5133351b5fad94ed5c3e0a6fdd7cb4 | 464 | package com.hit.secondhouse.dao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface OrderformDao {
@Insert("Insert INTO orderform(id,uid,hid,price) VALUES(#{id}... | 30.933333 | 113 | 0.730603 |
4648f5c092d277582ab97cec9958518d16e4e347 | 188 | package com.spbstu.edu.advertisement.service;
import com.spbstu.edu.advertisement.dto.MetroDto;
import java.util.List;
public interface MetroService {
List<MetroDto> getMetros();
}
| 18.8 | 49 | 0.781915 |
ee5ee7e08e93f20497cf85004167de859d653ccc | 4,955 |
package com.iclnbi.iclnbi_v2_00;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ServiceCharacteristicValue complex ... | 33.47973 | 153 | 0.651463 |
1469632914111a4431cd86e8d74129fda32e962b | 606,878 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.quickblox.sample.user;
public final class R {
public static final class anim {
public static final int abc_fade_i... | 57.101807 | 189 | 0.655092 |
08518788758a4a39cae474d3b448d1cb750e6a8d | 4,911 | /*
Part of the G4P library for Processing
http://www.lagers.org.uk/g4p/index.html
http://sourceforge.net/projects/g4p/files/?source=navbar
Copyright (c) 2012 Peter Lager
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as p... | 28.719298 | 112 | 0.688454 |
fe2c15416a7f7e386f10732996b9ceb04358d877 | 1,953 | package org.isisaddons.module.security.shiro;
import org.apache.shiro.authz.Permission;
import org.apache.isis.core.metamodel.services.appfeat.ApplicationFeatureId;
import org.isisaddons.module.security.dom.permission.ApplicationPermissionMode;
/**
* As created by {@link org.isisaddons.module.security.shiro.Permis... | 31 | 150 | 0.656938 |
e14aee2005bbed4b8cadacde87c28b3295958596 | 666 | import java.util.Random;
public class WhileExercise04d1 {
public static void main(String[] args) {
Random rand = new Random();
int i = 0;
while (i < 100) {
int diceA = (int) (Math.random() * 6 + 1);
int diceB = rand.nextInt(6) + 1;
if (di... | 24.666667 | 69 | 0.430931 |
421088929f13763d68a620c6f34c53b4acb0993e | 2,554 | package com.actuate.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.Resource;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import jav... | 30.047059 | 98 | 0.578309 |
fbb56d87c46b3c1b26f16cf20d185bc9cbbe1365 | 582 | package com.sherlocky.springboot2.applicationevent.service;
import com.sherlocky.springboot2.applicationevent.event.MyBlogEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
/**
* @author: zhangcx
... | 27.714286 | 83 | 0.761168 |
6d263669e518b50709ffac63b7af07473362456b | 6,498 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.model.volatility.smile.fitting.interpolation;
import com.opengamma.analytics.financial.model.volatility.BlackFormulaRepository;
import com.... | 40.6125 | 159 | 0.661896 |
0b1edb2803d1046791afd9abfc55d83d4f656cda | 8,997 | package eapearsongroupedparameterstest;
import java.io.File;
import java.util.LinkedHashMap;
import java.util.Map;
import us.kbase.auth.AuthToken;
import us.kbase.common.service.JsonServerMethod;
import us.kbase.common.service.JsonServerServlet;
import us.kbase.common.service.JsonServerSyslog;
import us.kbase.common.s... | 43.047847 | 140 | 0.688896 |
7337385f48c291ab9971cafa59fea62fa6288c3e | 1,642 | package edu.coldserenity.tij.ch02.ex09;
import java.util.LinkedList;
import java.util.List;
/**
* Exercise 9: (4)
* <p/>
* A Fibonacci sequence is the sequence of numbers
* 1, 1, 2, 3, 5, 8, 13, 21, 34, and so on,
* where each number (from the third on) is the sum of the previous two.
* <p/>
* Create a method ... | 29.854545 | 111 | 0.559683 |
9dd70d97b41a504b5ea5ca04f85d19d976ee9cb0 | 3,672 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009-10, Red Hat and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU ... | 41.258427 | 93 | 0.717593 |
07cd7414d840715487057313f59bdc80f9351c9b | 4,998 | package com.liferay.raybia.headless.dealer.dto.v1_0;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.liferay.petra.function.UnsafeSupplier;
import com.liferay.petra.string.StringBundler;
import com... | 21.088608 | 77 | 0.677471 |
93ad476855e09ca9880ee4129649669076bcb080 | 2,276 | package com.example.aboutfragment.activity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.examp... | 32.056338 | 124 | 0.667399 |
1dd21eae84f7e5f7e5f3d47b019bf60265fa3824 | 13,646 | package stest.tron.wallet.newaddinterface2;
import com.google.protobuf.ByteString;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import java.math.BigInteger;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringU... | 37.284153 | 100 | 0.721017 |
29cd4463eca249736435836cb4da6e8e0a58101f | 21,496 | /*
Copyright (c) 2011, Regents of the University of California
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 c... | 41.259117 | 144 | 0.64719 |
435b779dabd4fec5fec386011c64a53b0cd9a6cf | 2,634 | package com.fodesaf.scheduledtask.module.model;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import... | 23.517857 | 113 | 0.731207 |
6c8d6be40677eae242cae2433cc405fda9a8792a | 3,286 | /*
* Copyright 2017-2019 Axway Software
*
* 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 l... | 28.824561 | 94 | 0.57395 |
422b84ee3f00351d62d6a85356c15d06b945012c | 1,052 | package com.contoso.api.entities;
import com.contoso.api.model.Auditable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Type;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import java... | 27.684211 | 81 | 0.76616 |
8d63dcf303fa1c5cafc9316577190aae27789f32 | 355 | package dentakun.elements.evaluables.functions;
import dentakun.elements.evaluables.Value;
import dentakun.elements.evaluables.value.Real;
// 常用対数関数
public class Log10 extends Function1 {
// 評価する
public Value evaluate () {
return new Real(Math.log10(a.evaluate().toReal().getX()));
}
// 表記を取得
public String toS... | 19.722222 | 60 | 0.726761 |
c0c8e5185ffa7c9239cbe4337782e2b5be0eb5b6 | 1,875 |
package com.CMS.CentralParam.KKBSK.model.response;
import java.util.List;
import com.CMS.CentralParam.KKBSK.model.data.BiayaFidusia;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(Json... | 24.350649 | 106 | 0.687467 |
9fc263beffb373f95c73c3a77e1eff325a8636e8 | 385 | package DietManager.Model;
/**
* ICSVable is implemented by objects that are indented to be written to a file and have their data represented as CSV data.
*/
public interface ICSVable {
/**
* Returns a CSV formatted representation of the data contained in the object.
*
* @return A CSV formatted representati... | 24.0625 | 124 | 0.732468 |
3cbaf46765f230f58239cd6ea360f377051e99c9 | 3,426 | /*
* Copyright © 2010 www.myctu.cn. All rights reserved.
*/
package com.sirius.upns.server.node.engine.apns;
import javapns.notification.AppleNotificationServer;
import javapns.notification.PushNotificationManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.vibur.objectpool.ConcurrentHolde... | 34.606061 | 104 | 0.658494 |
061df7c38348539b923dad0272ed7ad0ececac6d | 1,588 | package com.enation.pangu.api;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.enation.pangu.mapper.MachineMapper;
import com.enation.pangu.model.Machine;
import com.en... | 29.962264 | 137 | 0.678841 |
174dac9145a8ee3c400b75dcfa6438e222990878 | 1,006 | // Generated code from Butter Knife. Do not modify!
package com.tama.chat.ui.fragments.search;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.ViewBinder;
public class LocalSearchFragment$$ViewBinder<T extends com.tama.chat.ui.fragments.search.LocalSearchFragment> imple... | 35.928571 | 136 | 0.719682 |
c61255dc546048c17a5701f6e05c3ef9b841bd6b | 389 | package de.daxu.swamp.scheduling.command.containerinstance.event;
import de.daxu.swamp.scheduling.command.containerinstance.ContainerInstanceStatus;
public interface ContainerInstanceCreatedEvent
extends ContainerInstanceStatusChangedEvent {
@Override
default ContainerInstanceStatus getContainerInsta... | 29.923077 | 82 | 0.81491 |
c6c3d7719123bd2198a545633cb474b09d338bc6 | 2,018 | package br.com.flaviogf.alura.controllers;
import br.com.flaviogf.alura.models.Course;
import br.com.flaviogf.alura.repository.CourseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.spring... | 31.046154 | 107 | 0.722498 |
06f90fff5f8672df670c8ee8e07fd29af3ca5c05 | 2,511 | package org.jetax.testcontainers.consul;
import com.google.gson.Gson;
import org.junit.Test;
import java.util.UUID;
import static org.junit.Assert.*;
public class ConsulConfigurationTest {
private final Gson gson = new Gson();
@Test
public void testNullsAreNotSerializedWithDefaultGsonConfiguration() {... | 32.61039 | 85 | 0.618877 |
513cb866c6df55f29e4e77fea50ad11e4c6fbb2c | 762 | import java.util.Iterator;
import java.util.NoSuchElementException;
class VariableIterator implements Iterator<String> {
private Variable variable;
private int currentValue;
public VariableIterator(Variable variable) {
this.variable = variable;
currentValue = -1;
}
public String current() {
r... | 23.8125 | 74 | 0.695538 |
4f40aecc80e188e789255c1709534b842f6e20a0 | 3,507 | /* Copyright 2015-2020 Norconex 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 o... | 39.404494 | 81 | 0.663245 |
af9a89deea6a948ba907b0a749db244a39131f66 | 457 | package com.lmgy.qrcodelogin.service;
import com.lmgy.qrcodelogin.entity.Message;
import javax.servlet.http.HttpServletRequest;
/**
* @author lmgy
* @date 2019/11/15
*/
public interface IAuthService {
Message addAuthInfo(HttpServletRequest request);
Message getAuthInfo(String authToken, String userId, b... | 20.772727 | 73 | 0.763676 |
7e4a0a6395268aaa60d2806cf37a151b6131c811 | 2,843 | package id.ac.tazkia.akademik.aplikasiakademik.dao;
import id.ac.tazkia.akademik.aplikasiakademik.dto.ApiMahasiswaDto;
import id.ac.tazkia.akademik.aplikasiakademik.entity.*;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Que... | 64.613636 | 225 | 0.838551 |
33fcf53ad40b20e3afa5f4552dd0e8cc621fff7c | 4,231 | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 34.680328 | 159 | 0.669109 |
4f536410b2510f19a8f72c16956e0e801670d1c5 | 8,521 | package org.codingmatters.poom.paged.collection.generation.generators.source;
import com.squareup.javapoet.*;
import org.codingmatters.poom.generic.resource.domain.EntityCreator;
import org.codingmatters.poom.generic.resource.domain.EntityDeleter;
import org.codingmatters.poom.generic.resource.domain.exceptions.*;
imp... | 66.054264 | 183 | 0.634081 |
ac9b70a987eb82b007aea05b9b875da0b656d554 | 9,212 | package com.example.huangshan.admin.adapter;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Lo... | 37.6 | 122 | 0.651433 |
d7dc0af61d597fc84e1a280df9e38877150f18eb | 2,890 | package com.mobiquity.packer.parser;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
impo... | 36.125 | 170 | 0.754325 |
114be87f220c8e00f7ae711b5793e8569ff68d12 | 13,958 | /****************************************************************
* 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... | 46.218543 | 148 | 0.719301 |
152e95ff9f3e956646963141e2ade5f15b1a1324 | 5,527 | package gay.nyako.infinitech.block;
import gay.nyako.infinitech.storage.energy.MachineEnergyStorage;
import net.fabricmc.fabric.api.transfer.v1.item.InventoryStorage;
import net.fabricmc.fabric.api.transfer.v1.item.ItemStorage;
import net.fabricmc.fabric.api.transfer.v1.item.ItemVariant;
import net.fabricmc.fabric.api... | 50.706422 | 133 | 0.706713 |
738cc3035989f5c19a56375c1c2b355089d3e368 | 285 | package com.example.demo.helper;
public class Constants {
/* Routing Constants */
public static final String KEY_LOCATION = "location";
public static final int LOCATION_HOME = 0;
public static final int LOCATION_REGISTRATION = 1;
public static final int LOCATION_USERS = 2;
}
| 23.75 | 54 | 0.761404 |
a8593eba7458b473ef24be5101968b80ef54dac4 | 1,724 | package com.hong.swing;
import java.awt.Color;
import java.awt.Font;
import java.awt.GraphicsEnvironment;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public c... | 26.523077 | 120 | 0.696636 |
ce74e99b2531b9567a195577661c7e432e5868f4 | 3,153 | /**
* Copyright (c) 2009, Signavio GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 33.189474 | 109 | 0.780844 |
975ab4b3a10544173088188eb7c6cb012786060b | 3,079 | package views;
import models.StateModel.PauseMenuModel;
import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
/**
* Created by Andy on 4/16/2016.
*/
public class PauseMenuView extends View {
// Constants
private final String TITLE = "Pause Menu";
private BufferedIm... | 28.775701 | 149 | 0.620656 |
3cd15efe993d226ad5b045ead893f2afe963fe9c | 516 | package com.nainai.user;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
@SpringBootApplication
@MapperScan("com.nainai.user.mapper... | 30.352941 | 68 | 0.806202 |
a13c1a78d1987975d4691beca2128e402a22346e | 4,875 | package com.recepinanc.sahibinden.model;
import android.util.Log;
/**
* Created by recepinanc on 10.12.2017.with <3
*/
public class User {
private boolean guessedBitcoin;
private boolean guessedScoin;
private boolean bitcoinRaises;
private boolean scoinRaises;
private int totalBitcoinGuessCount... | 30.660377 | 120 | 0.601641 |
1e7cf2680490f5e80ccc11c8bea0705d0dadf6a7 | 1,391 | package com.weiit.web.admin.init.mapper;
import java.util.List;
import com.weiit.core.entity.E;
import com.weiit.core.entity.FormMap;
import com.weiit.core.mapper.BaseMapper;
/**
* 收费服务项目Mapper
* @author hzy
* @date:2017-8-15 下午3:52:46
* @version 1.0
* @company http://www.wei-it.com
*/
public interface Servi... | 15.455556 | 51 | 0.654925 |
402ee20433fddd8f7e375acb968372bf1b872bd6 | 1,243 | package com.messaging.api.handler;
import static com.messaging.api.constant.Constants.RESPONSE_FAILED;
import static com.messaging.api.util.JsonUtil.encode;
import static com.messaging.api.util.ResponseUtil.toApiResponse;
import com.messaging.api.exception.ExceptionMapper;
import com.messaging.api.exception.RestExcep... | 31.871795 | 111 | 0.798069 |
998f53c30699bbf65709ddd2bf3738c0b8e58e8d | 899 | import java.io.*;
public class Rot13 {
public static void main(String[] args) throws IOException {
if (args.length >= 1) {
for (String file : args) {
try (InputStream in = new BufferedInputStream(new FileInputStream(file))) {
rot13(in, System.out);
... | 26.441176 | 91 | 0.444939 |
8d67ac1f217266142fc0f80e36d8fd806097bfbf | 3,523 | /*
* 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 n... | 45.166667 | 134 | 0.729492 |
c505f5f07c883ac18e6367502c3ddfa91070ec37 | 1,894 | package com.atguigu.gmall.item.pojo;
import com.atguigu.gmall.pms.entity.CategoryEntity;
import com.atguigu.gmall.pms.entity.SkuImagesEntity;
import com.atguigu.gmall.pms.vo.ItemGroupVo;
import com.atguigu.gmall.pms.vo.SaleAttrValueVo;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import lombok.Data;
import java.math.B... | 27.057143 | 75 | 0.621436 |
9afb820f27c987cca218e24861fffdefe1285ea6 | 2,007 | /*
* Copyright (C) 2015-2017 RWTH Aachen University - Information Systems - Intelligent Distributed Systems Group.
* 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... | 29.955224 | 112 | 0.673642 |
6a239509b756e42baa33c95abdca25abab855e01 | 4,593 | /**
* 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... | 44.592233 | 126 | 0.704115 |
aaaa26f3c36058fb12f1b11bf93a0ff7f3df2ec1 | 747 | package com.schneide.abas.billard.inner.domain.model.composite;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.schneide.abas.billard.inner.domain.model.basic.Ball;
public class BallSet implements Iterable<Ball> {
public static final int size = 16;
private fin... | 20.189189 | 64 | 0.666667 |
1973f24c6b67f1ad0bd8c7ba68e65305343f1c39 | 2,052 | package com.ruoyi.system.service.impl;
import com.ruoyi.system.domain.SysDaily;
import com.ruoyi.system.mapper.SysDailyMapper;
import com.ruoyi.system.service.SysDailyService;
import com.ruoyi.system.service.SysDailyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowire... | 31.569231 | 88 | 0.745614 |
ff67e0ff259db15578bfe6f62b44eeb2fdd80adf | 423 | package io.sunshower.test.ws.cfg;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name = "test")
public class TestEntity {
@XmlAttribute String name;
protected TestEntity() {}
public TestEntity(String name) {
setName(name);
}
public Str... | 16.92 | 48 | 0.704492 |
306224a10a897344bd8fe55dd4c6f0062193364c | 6,155 | package com.botongsoft.rfid.hodler;
import android.app.Activity;
import android.content.Intent;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.Ed... | 37.530488 | 101 | 0.595126 |
300c58afaa1da1fed796a59003e3daee5ccd3261 | 2,706 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, softw... | 41 | 134 | 0.786401 |
d902de130f93f9ee9b056d3405c3c38afb1f4cde | 2,212 | package br.com.zupacademy.frederico.microservice_transacoes.api;
import br.com.zupacademy.frederico.microservice_transacoes.dominio.cartao.AvisoViagem;
import br.com.zupacademy.frederico.microservice_transacoes.dominio.cartao.Cartao;
import br.com.zupacademy.frederico.microservice_transacoes.dominio.cartao.dto.AvisoVi... | 38.137931 | 107 | 0.729656 |
305ccb3ff78eda35a984efb8b554e555756454ee | 1,372 | /* $This file is distributed under the terms of the license in LICENSE$ */
package edu.cornell.mannlib.vitro.webapp.searchengine.base;
import java.util.ArrayList;
import java.util.List;
import edu.cornell.mannlib.vitro.webapp.modules.searchEngine.SearchFacetField;
/**
* A foundation class for implementing SearchFa... | 20.787879 | 78 | 0.706268 |
94850a780258097eb36803bd8ff3dfcabaaf7283 | 1,537 | package workshop.microservices.weblog.resource;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* Detailed representation of an existing article.
*/
public class ArticleResponse {
private String articleId;
private String title;
private String content;
private String ... | 21.347222 | 126 | 0.615485 |
60b69e36e4d109cbe855e57ee2f2d8b70d9b7412 | 25,128 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | 32.847059 | 139 | 0.702563 |
7266c1051444f7575fb8055a062b8e64902b725d | 2,630 | package com.qianfeng.smsplatform.webmaster.controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.qianfeng.smsplatform.common.constants.RabbitMqConsants;
import com.qianfeng.smsplatform.common.model.Standard_Submit;
import com.qianfeng.sms... | 36.527778 | 103 | 0.722433 |
85350f1cd1f898b8e9584080e748a7cb24bee66f | 1,790 | /*!
* Copyright 2010 - 2017 Hitachi Vantara. 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 ... | 37.291667 | 119 | 0.736872 |
8deabc79dcb790c1e589833b54c23f1d8c65f66a | 1,465 | package org.testingisdocumenting.znai.client.upload;
import org.testingisdocumenting.znai.console.ConsoleOutputs;
import org.testingisdocumenting.znai.console.ansi.Color;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public class UploadPathValidator {
private static final lon... | 34.069767 | 167 | 0.632765 |
3e4358964bd3ac19374602dc111cef6e955322d0 | 3,810 | /*
* Copyright (c) 2009-2011 Clark & Parsia, LLC. <http://www.clarkparsia.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 ... | 29.534884 | 153 | 0.735696 |
d69a8c1f25d8174b76f985ded6b2584808a072fd | 3,841 | /*
*******************************************************************
*
* Copyright 2016 Samsung Electronics All Rights Reserved.
*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 36.235849 | 90 | 0.655819 |
3da6e9bb6d63b292b4eeb29b0531d89cc8be32a5 | 2,332 | package com.github.alexishuf.fastersparql.client;
import com.github.alexishuf.fastersparql.client.model.SparqlConfiguration;
import com.github.alexishuf.fastersparql.client.model.SparqlEndpoint;
import com.github.alexishuf.fastersparql.client.parser.fragment.ByteArrayFragmentParser;
import com.github.alexishuf.fasters... | 44 | 100 | 0.703259 |
fa39e61e5f42bb8c3274218242c7793b478de508 | 180 | package com.xiaoping.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoping.entity.TUser;
public interface UserMapper extends BaseMapper<TUser> {
}
| 20 | 55 | 0.816667 |
eb2752ce97432cf3862f8045119ac4366dce4d7e | 2,817 | package jp.edainc.androidsamplesjava;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import an... | 30.290323 | 127 | 0.643947 |
71ad91cc61ae1e52e9e4bde70fd322c871aa457f | 660 | package in.discvr.android.models.transactions;
import in.discvr.android.models.Address;
import in.discvr.android.models.PersistentObject;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
/**
* Its <code>id</code> will serve as ORDER ID.
* @author shuklaalok7
* @since 7/4/15 13:18
*/
@G... | 24.444444 | 85 | 0.733333 |
667bcba57b5ecb1aea2466ba44a96d2ec07806fa | 462 | package com.spring.test;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import com.spring.beans.MyAction;
import com.spring.util.SpringUtil;
public class TestLayer {
ApplicationContext ac;
@Before
public void init() {
ac = SpringUtil.getAppl... | 18.48 | 55 | 0.707792 |
6278844ad11fc97a42c03c59d92d02f6d6399c62 | 1,468 | /*
* Copyright (c) 2009-2019, b3log.org & hacpai.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 applica... | 25.754386 | 75 | 0.679837 |
e96a438b44b7c8383c8350fc4e3a812f0f0e2637 | 444 | package me.anchore.draft.util;
public class StackUtil {
public static StackTraceElement getCaller() {
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
return stackTrace[stackTrace.length - 2];
}
static StackTraceElement getCaller(int depth) {
StackTraceEleme... | 31.714286 | 80 | 0.702703 |
bfb7208eaf3e5c2c3b4f9ee47d3c4540f7541c6f | 3,687 | package oop.focus.diary.model;
import javafx.collections.FXCollections;
import javafx.collections.ObservableSet;
import oop.focus.db.Dao;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
... | 32.06087 | 117 | 0.579062 |
f858de41ebef8f45a2b953bac5be02c4f35a9b9b | 2,012 | /*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
*/
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 35.298246 | 75 | 0.727137 |
3f5a226e0befc4701abd8bbc6d715a3661d050b6 | 148 | package com.sensiblemetrics.api.alpenidos.pattern.fsm3.state;
public class CancelledOrderState extends OrderStateAdapter implements OrderState {
}
| 29.6 | 82 | 0.858108 |
37c726990930e89329d3956d512457a23911525e | 4,420 | /*
* Licensed to Jasig under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Jasig licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in com... | 41.308411 | 117 | 0.768326 |
8f02102aa66c450c5d8928759dd6201670d9c29c | 1,043 | package com.wkc.gc;
/**
* Created on 2022/2/7.
*
* @author Weikaichen
*/
public class JDKForGCOptimization_10 {
/*
* Jdk 8u20 字符串去重
* 优点:节省大量内存
* 缺点:略微多占用了cpu时间,新生代回收时间略微增加
*
* -XX:+UseStringDeduplication
* 将所有新分配的字符串放入一个队列
* 当新生代回收时,G1并发检查是否有字符串重复
* 如果它们值一样,让他们引用同一个char... | 20.057692 | 54 | 0.624161 |
a89880f534a9e590c3ee9d4cf730d50904ede433 | 2,284 | package com.skytala.eCommerce.domain.humanres.relations.perfReview.model;
import java.util.Map;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Map;
import java.io.Serializable;
import com.skytala.eCommerce.domain.humanres.relations.perfReview.mapper.PerfReviewMapper;
public class PerfReview ... | 20.954128 | 90 | 0.808669 |
f4e4ad7a9e7b107d3c44cec8402365bf705bbd6a | 3,286 | package trees.binary;
import annotation.Platform;
import annotation.Quality;
import annotation.Site;
import annotation.Stage;
import data.TreeNode;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
/**
* @author g1patil
* 687. Longest Univalue Path
*/
@Platform(Site.LEETCODE)
@Quality(va... | 27.383333 | 71 | 0.586427 |
3870e4609662349376a2478dd0dbd59c79f04258 | 2,757 | package maze;
import java.util.ArrayList;
import java.io.File;
import java.util.Scanner;
import static maze.Maze.printMaze;
/**
*
* @author A221137
*/
public class Maze {
private static char [][] maze;
private static int startrow,startcol,endrow,endcol;
private static ArrayList<String> mazeBuffer;... | 21.372093 | 62 | 0.451578 |
0eb7a5e7e42978efc298832f76e82471403bcf22 | 6,423 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project 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:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 38.692771 | 110 | 0.642223 |
b36a76438ab8cb60057c0e34f5b6ff9b4c215f73 | 25,559 | /*
* Copyright 2018-present MongoDB, 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 ag... | 42.386401 | 99 | 0.712234 |
ceff0fcaf1eccf6fc545925c0756cd451eaa85fa | 4,206 | /*
* Copyright (c) 2003 The Visigoth Software Society. 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,... | 37.553571 | 86 | 0.722064 |
8ed7accec37142a699722b49fff700075d5ed511 | 1,037 | package uk.gov.hmcts.dm.service.thumbnail;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.rendering.ImageType;
import org.apache.pdfbox.rendering.PDFRenderer;
import uk.gov.hmcts.dm.exception.CantCreateThumbnailException;
import uk.gov.hmcts.dm.service.BlobStorageReadService;
import java.awt.im... | 35.758621 | 96 | 0.747348 |
4812ad1dbee597734161bfd56f535807336d9c1d | 3,775 | package com.daasuu.camerarecorder;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
/**
* Created by sudamasayuki on 2018/03/13.
*/
public class CameraHandler extends Handler {
private static final boolean DEBUG = false; // TODO set false on release
p... | 29.960317 | 92 | 0.541722 |
9ee36c637e0d6a76a99742a01a83513c2f3dd4b4 | 7,793 | /*
* 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 projeto_n05;
/**
*
* @author slodd
*/
public class fr_MenuPrincipal extends javax.swing.JFrame {
/**
* Creates ne... | 42.584699 | 145 | 0.616579 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.