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 |
|---|---|---|---|---|---|
705444caa8401f195f4a65ec8a62cf5e588f7547 | 371 | package event.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* @author Claudio E. de Oliveira on 28/02/16.
*/
@Data
@EqualsAndHashCode(of = {"id"})
public abstract class Game<T> implements GameWithResult<T> {
protected String id;
protected LocalDateTime t... | 16.863636 | 60 | 0.735849 |
c324da4f92849acea1747b64bfdc8d488e327a15 | 529 | package com.spring.LifeCycleMethodsAnnotations;
import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App
{
public static void main( String[] args )
{
AbstractApplicationContext context = new Clas... | 29.388889 | 94 | 0.729679 |
f80ae64c04085cc18dbd225e8e08219709aa6905 | 6,686 | package com.livae.util.math;
/**
* Vector with 3 floats
*/
public class Vector3f implements Vector {
public float x;
public float y;
public float z;
public Vector3f() {
this.x = 0;
this.y = 0;
this.z = 0;
}
public Vector3f(final float[] coordinates) {
this.x = coordinates[0];
this.y = coordinate... | 26.219608 | 80 | 0.59662 |
b3ca415539b967914d0388f19d3362f569309b34 | 19,424 | /*
* Copyright (c) 2019 Nike, 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... | 48.318408 | 153 | 0.691722 |
c7fb0ec9f7f3e7832848477153ac9c0b7d60f517 | 15,001 | /*
* 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 ... | 47.172956 | 140 | 0.689154 |
1f46c6035b279857e3b61476f39deeba8ede8e4f | 3,223 | package com.mfinance.everjoy.app.content;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mfinance.everjoy.R;
import com.mfinance.everjoy.app.util.Util... | 29.3 | 122 | 0.707105 |
58b355a650b388d2fa70911400af167eadf6372d | 45,217 | /*
* 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 ... | 33.946697 | 100 | 0.664507 |
26994f7798ac39c8b5abdd8935c621eef08bf976 | 487 | package com.negativeion.espsmartconfig.protocol;
import com.negativeion.espsmartconfig.util.ByteUtil;
public class TouchData {
private final byte[] mData;
public TouchData(String string) {
mData = ByteUtil.getBytesByString(string);
}
public TouchData(byte[] data) {
if (data == null) ... | 21.173913 | 65 | 0.62423 |
ed8f23b76b36986b9a1014bd95c55708200eaa22 | 1,394 | /*-
* #%L
* Bobcat
* %%
* Copyright (C) 2016 Cognifide 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 requi... | 27.88 | 111 | 0.721664 |
f03a1bf8b18a7d53866cd33afe41fb7f0c77d16c | 1,286 | package edu.upc.eetac.dsa.javaexercices.Ex7_NetworkTCP;
import edu.upc.eetac.dsa.javaexercices.Main;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Ser... | 27.956522 | 87 | 0.647745 |
4d4689cf3d8e708ed3ed00af8132465b3c52759f | 4,124 | /*
* BSD 3-Clause License
* Copyright (c) 2017, Leland McInnes, 2019 Tag.bio (Java port).
* See LICENSE.txt.
*/
package tagbio.umap;
import java.util.List;
import java.util.Random;
import tagbio.umap.metric.Metric;
/**
* Nearest neighbor descent for a specified distance metric.
* @author Leland McInnes (Python... | 32.730159 | 212 | 0.593841 |
b374acb428d2f2f676ec161f8d9a1e62899708b5 | 283 | package com.microsoft.xrm;
import java.util.UUID;
public final class EntityReference {
public final String LogicalName;
public final UUID Id;
public EntityReference(String logicalName, UUID id) {
this.LogicalName = logicalName;
this.Id = id;
}
}
| 17.6875 | 57 | 0.685512 |
60f6e8bdea4b040c49ab471e7e6e139ac67cb2e6 | 4,208 | /**
* 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... | 31.639098 | 95 | 0.676331 |
68d333d9a3cda223ea0bb268a54f0a3a96e498ba | 182 | package learning.springboot.web.app.jpa.manytoone;
import org.springframework.data.jpa.repository.JpaRepository;
interface PersonRepository extends JpaRepository<Person, Long> {
} | 26 | 64 | 0.835165 |
a324ba613548afae252340df307a1dfbad4b129b | 437 | package org.w3c.ppl.xslt.ext.fop;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.URI;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.apache.fop.apps.FopFactory;
/**
*
* @author arvedhs
*/
class FopFactoryFactory... | 20.809524 | 61 | 0.736842 |
999a7ee6aebba930ca95aa67d526135a2c7354da | 1,374 | package pl.allegro.tech.hermes.tracker.consumers;
import java.time.Clock;
import java.util.List;
class SendingMessageTracker implements SendingTracker {
private final List<LogRepository> repositories;
private final Clock clock;
SendingMessageTracker(List<LogRepository> repositories, Clock clock) {
... | 30.533333 | 90 | 0.694323 |
8dab26d017d1b8cd15722ffb6b65dc49e47e23be | 1,551 | // This is a generated file. Not intended for manual editing.
package com.tang.intellij.lua.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
import com.tang.intellij.lua.stubs.LuaIndexExprStub;
import com.intellij.psi.PsiNameIdentifierOwner;
import com.intellij.psi.St... | 20.142857 | 152 | 0.767247 |
0d3ca443bf50acc1f231a67f176574e59bdac37a | 10,183 | package havis.transport.common;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.net.URI;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ConcurrentHashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.net.SocketFacto... | 32.326984 | 156 | 0.700972 |
28659b79064583e21460ee779478cadf5dcc2e6a | 3,928 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 artipie.com
*
* 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, ... | 35.709091 | 90 | 0.590886 |
5677f26d5c0a0af4299ed7946d9f7119672d5ce6 | 1,411 | package scorpio.core;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;
import org.sql2o.Connection;
import scorpio.BaseUtils;
/**
* @author <p>fishlikewater@126.com</p>
* @date 2019年04月17日 15:50
* @since 1.6
**/
@Slf4j
@EqualsAndHashCode(callSuper=false)
public abstract class BaseModel<T extends... | 23.131148 | 120 | 0.583983 |
7282f93de232df22d2c6eaded11669e062bdddc9 | 455 | /*
* Copyright (c) 2020. edu_project.
*
* 作者:何彬.
*
* 版权所有,侵权必究.
*/
package com.hebin.homeworkservice.VO;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
public class ImportHomeworkVO implements Serializable {
private static final long serialVersionUID =... | 15.689655 | 55 | 0.720879 |
cc6ee48a1f96af6f7bc8f67bee30ae9ad1880aa8 | 3,510 | package org.pmiops.workbench.institution;
import java.util.List;
import java.util.Set;
import org.mapstruct.AfterMapping;
import org.mapstruct.Context;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValueMappingStrategy;
import org.pmiops.workben... | 39.438202 | 97 | 0.785185 |
338a48f8037c6b9f19efc3bd0b74a123fcea94ba | 181 | package org.egov.user.domain.exception;
public class UserNameNotValidException extends RuntimeException {
private static final long serialVersionUID = -1167635504342863559L;
}
| 30.166667 | 71 | 0.828729 |
d7381682de9d48ec8ed9532846e1b2e1d3f6370e | 1,801 | /**
*/
package context.tests;
import context.ContextFactory;
import context.Validity;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Validity</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public cl... | 20.011111 | 64 | 0.580788 |
f753f22cbd94ab7555f1ecbc208d255f72e4c540 | 592 | package com.devonfw.quarkus.general.service.json;
import javax.inject.Singleton;
import org.springframework.data.domain.Page;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import io.quarkus.jackson.ObjectMapperCustomizer;
@Singleton
public class Cust... | 24.666667 | 67 | 0.805743 |
16199dd4028ba5584e3a88cf609ec70bf19423fe | 5,412 | /*
* Copyright 2020 Google LLC
*
* 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 following discl... | 36.08 | 87 | 0.688655 |
87d4c7dadc9d47076de1719bf76505a188b316b8 | 2,392 | package org.iism.test;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.HashSet;
import org.iism.measure.RollupData;
import org.iism.measure.TimeMeasure;
import org.junit.jupiter.api.Test;
class TestMeasure {
@Test
void testTry() throws InterruptedException {
try (TimeMeasure timeMe... | 26 | 101 | 0.745401 |
c05e25101c33a61e2032bc29e7603b0814828f27 | 4,709 | package psidev.psi.mi.jami.factory;
import junit.framework.Assert;
import org.junit.Test;
import psidev.psi.mi.jami.model.BioactiveEntity;
import psidev.psi.mi.jami.model.impl.*;
import psidev.psi.mi.jami.utils.CvTermUtils;
import psidev.psi.mi.jami.utils.XrefUtils;
import java.util.Arrays;
/**
* Unit tester for De... | 39.571429 | 205 | 0.742408 |
4a4ded9c4c23139114c87c1893d91e257913e34e | 223 | package com.slangsoftware.mediasync.networkservice;
public interface IRegisterServiceInfo {
public String getServiceType();
public String getServiceName();
public String getServiceDescription();
public int getPort();
} | 27.875 | 51 | 0.816143 |
ff7dc22a60c79d0fbacac8683cc7b75bdfa23f13 | 5,996 | package nsit.app.com.nsitapp;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.util.Log;... | 36.560976 | 169 | 0.579887 |
5be986441834ae6d9406e69815378bee9ac09703 | 6,339 | package naveen.hackathon.hackathon.reports_charts.charts;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.anychart.anychart.AnyChart;
import com.anychart.anychart.AnyChartView;
import com.anychart.anychart.Cartesian;
import com.anychart.anychart.CartesianSeriesArea;
import com.an... | 42.543624 | 109 | 0.639691 |
3ecbb705bb01b5f950c6cec9c9c442c5b0d0ec90 | 13,079 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package spaceracegame;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.*;
/**
*
* @author Terekhov F.V. <fterekhov@gmail.com>... | 44.486395 | 191 | 0.592935 |
7c7594dbbdd480dc8247ebb19e86499ee5af31d0 | 352 | package cn.openwatch.demo.web_socket.dto.response_action;
public class TickingAction {
public static final String START_TICKING = "startTicking";
public static final String UPDATE_TICKING = "updateTicking";
public static final String FINISH_TICKING = "finishTicking";
public static final String CANCE... | 27.076923 | 64 | 0.772727 |
a57bc51b6dbabc116894579bb06e5376ebfafcc1 | 6,807 | /*
* 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")... | 44.201299 | 101 | 0.608785 |
39c98b73f21144064e13cae301cb10d487f26692 | 1,726 | /*
* Copyright 2015 Johannes Homeier
*
* 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... | 29.254237 | 122 | 0.701043 |
94165869fbacabccfc7ba5fc2438f943402a02b1 | 279 | package com.github.sejoung.codetest.general;
// 코드 61-3 기이하게 동작하는 프로그램 - 결과를 맞혀보자! (360쪽)
public class Unbelievable {
// static Integer i;
static int i;
public static void main(String[] args) {
if (i == 42)
System.out.println("믿을 수 없군!");
}
} | 23.25 | 44 | 0.605735 |
90a0146a609e5e035bb1d3ab21b7578ec1caadf3 | 11,344 | package ch.ethz.mc.ui.components.basics;
/* ##LICENSE## */
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URL;
import org.apache.commons.io.FileUtils;
import org.bson.types.ObjectId;
import com.vaadi... | 27.872236 | 79 | 0.725846 |
acc92b3e7d13750bf9ab003cf3be136c329b8faa | 8,957 | package com.karas.wftoolkit;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.IBinder;
import android.support.annotation.Nullable;
import and... | 33.297398 | 94 | 0.585464 |
e50120254302fa3ff7101f5f1f0bd5b74326dc46 | 1,666 | package com.sollace.coppergolem;
import net.minecraft.block.Block;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.tag.TagKey;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
public interface GItems {
... | 46.277778 | 155 | 0.783914 |
2b482035d663dce6eb0a66a2cecf5fad43f3473d | 5,523 | package by.dragonsurvivalteam.dragonsurvival.network;
import by.dragonsurvivalteam.dragonsurvival.DragonSurvivalMod;
import by.dragonsurvivalteam.dragonsurvival.network.claw.DragonClawsMenuToggle;
import by.dragonsurvivalteam.dragonsurvival.network.claw.SyncDragonClawRender;
import by.dragonsurvivalteam.dragonsurvival... | 52.103774 | 209 | 0.83107 |
efe6b059684e2f541d5c3506e5a3ba938ed3497e | 5,172 | package cn.springcloud.book.config.jwt.config;
import cn.springcloud.book.config.jwt.dto.LoginRequest;
import cn.springcloud.book.config.jwt.dto.Token;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | 33.803922 | 158 | 0.720031 |
7980391735853a33243552fc2ee488513d9c7cdb | 3,027 | /*
* 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 co.edu.uniandes.csw.galeriaarte.entities;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.pers... | 25.225 | 89 | 0.633631 |
17fadfee6f9262654e589df13e00ad1ca9683252 | 269 | package com.bluebrim.layout.impl.shared;
import com.bluebrim.layout.shared.*;
/**
* This type was created in VisualAge.
*/
public interface CoImmutableCenterLocationIF extends CoImmutableLocationSpecIF
{
public static String CENTER_LOCATION = "center_location";
}
| 22.416667 | 78 | 0.795539 |
1ea1f60f135aca6063c5ff9b1e5b96d7cbcf9626 | 1,538 | package com.braintreepayments.api;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.mock;
public class MockPayPalClientBuilder {
private Exception browserSwitc... | 34.954545 | 130 | 0.696359 |
60045a46e47ecfc7cec5357db0352463a906af87 | 648 | package link.infra.funkyforcefields.util;
import net.minecraft.util.StringIdentifiable;
import net.minecraft.util.math.Direction;
public enum CursedPointingDirection implements StringIdentifiable {
UP("up"),
DOWN("down"),
SIDEWAYS("sideways");
private final String name;
CursedPointingDirection(String name) {
... | 20.25 | 67 | 0.748457 |
91f201a5177ec7364b69f3ed39d1ed3b6cae516c | 740 | package net.rmelick.hanabi.backend;
/**
*
*/
public class Tile {
private final Color _color;
private final Rank _rank;
private final String _id;
private final String _publicId;
public Tile(Color color, Rank rank, int number) {
_color = color;
_rank = rank;
_id = String.format("... | 17.209302 | 59 | 0.567568 |
910b5e6e59b86c648bebb67398b9565bc4ea9dc1 | 2,222 | /**
* Copyright (C) 2010-2013 Andrei Pozolotin <Andrei.Pozolotin@gmail.com>
*
* All rights reserved. Licensed under the OSI BSD License.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package temp;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import j... | 20.766355 | 74 | 0.662916 |
8177ad5c6c95573f521a4bdecfa324f54717abfb | 298 | package spring.boot._2.by.zhuyu1991.rabbitmq;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
@SpringBootTest
@Import({QpidProperties.class, EmbeddedAmqpBroker.class})
public class _2_RabbitMQTest extends _1_RabbitMQManulTest {}
| 33.111111 | 60 | 0.848993 |
acee7a0c69ce3bb141d607b252c124977841f40e | 3,413 | /*******************************************************************************
* Copyright 2017 Bstek
*
* 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... | 33.792079 | 80 | 0.704366 |
0b3a746fee6fd79cdadd9f9f8b0579b8e0b4d600 | 2,558 | package org.mcupdater.ravenbot.features;
import org.mcupdater.ravenbot.AbstractListener;
import org.mcupdater.ravenbot.RavenBot;
import org.pircbotx.User;
import org.pircbotx.hooks.events.MessageEvent;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class WatcherHandler extends AbstractListener
... | 33.657895 | 133 | 0.575841 |
fcece8b114113834cab6e366f662794d2eb98669 | 3,145 | package com.ss.editor.scene;
import static com.ss.editor.util.GeomUtils.getDirection;
import com.jme3.light.DirectionalLight;
import com.jme3.light.Light;
import com.jme3.light.PointLight;
import com.jme3.light.SpotLight;
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.renderer.Camera;... | 25.778689 | 99 | 0.63911 |
48c2be253ffb68cafafe8c448a2ef03b5a7aabce | 6,774 | /*******************************************************************************
* BSD License
*
* Copyright (c) 2017, AT&T Intellectual Property. All other rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the foll... | 41.304878 | 107 | 0.741955 |
0c9e32cdcb04b2fac1be8c8b5f0a1041c02f5b58 | 418 | package com.ttulka.blog.samples.solid;
public class Paycheck {
private final PayedEmployee employee;
/**
* @param employee the employee the paycheck is for
*/
public Paycheck(PayedEmployee employee) {
this.employee = employee;
}
/**
* Returns the amount to be paid.
* ... | 19 | 55 | 0.61244 |
1652db0a9eede3b1c14ffab7bdde8f4786372b55 | 1,074 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.runelite.mapping.ObfuscatedName
* net.runelite.mapping.ObfuscatedSignature
*/
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName(value="pt")
final class class362
implements... | 27.538462 | 94 | 0.698324 |
f45e07599272f0448adf711e2ebb92d7d2062e88 | 7,211 | /****************************************************************
* 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 ... | 42.169591 | 206 | 0.622105 |
08a0990e5b75210defa7727c4030c7af5332fdf5 | 1,565 | package com.ixuea.courses.mymusic.adapter;
import android.content.Context;
import android.view.View;
import com.ixuea.courses.mymusic.R;
import com.ixuea.courses.mymusic.domain.Song;
/**
* 播放列表adapter
* Created by smile on 2018/5/26.
*/
public class PlayListAdapter extends BaseQuickRecyclerViewAdapter<Song> {
... | 27.45614 | 101 | 0.670288 |
d2ed47b07e7c20f7b47bed2e8deda4294359a23b | 2,325 | /*
* Copyright 2019 Vrije Universiteit Amsterdam
* Netherlands eScience Center
*
* 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/L... | 33.695652 | 114 | 0.677849 |
96b5bb265fbe2cb16ddc08e07a77de496904e19e | 630 | package com.rkele.yxhshop.user.vo;
import com.rkele.yxhshop.user.po.Admin;
public class LoginAdminResultVO {
private String token;
private Admin userInfo;
public LoginAdminResultVO() {
}
public LoginAdminResultVO(String token, Admin userInfo) {
this.token = token;
this.userInf... | 17.5 | 61 | 0.630159 |
22530cedbbbba20aa9e6f240ab60dde4e153f32c | 4,224 | package com.slack.api.util.json;
import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.slack.api.SlackConfig;
import com.slack.api.audit.response.LogsResponse;
import com.slack.api.model.block.ContextBlockElement;
import com.slack.api.model.block.LayoutBl... | 52.148148 | 123 | 0.719697 |
f8765d6a3d3b7011564a7d4a72fbb60e78dd6c5a | 373 | package com.github.underscorenico.listenbpm;
import com.github.underscorenico.listenbpm.connectors.bpm.ActivitiConnector;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class StatusTest {
@Test
public void EmptyStatusTest() {
Status<String> ... | 23.3125 | 76 | 0.788204 |
d86779053d008150b2b74cba8f4234dd8d4f8595 | 15,458 | /*
* 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 ma... | 33.314655 | 104 | 0.735994 |
b5ccb16a039367abd7e4d85b234f0921b0d00cbb | 3,868 | /*
* Copyright (c) 2010, 2019, 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 ... | 27.628571 | 80 | 0.665719 |
dbcdc1e0ab72608e864bc89dc35b0efb6e852969 | 815 | package com.greengrocer.freshmarket.domain;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 购物车条目类
*
*/
public class CartItem implements Serializable{ //实现序列化是因为设置了session钝化
private Commodity commodity; //商品
private int count; //数目
/**
* 计算一个购物项的条目价格之和
* 小计分法
* 处理二进制运算的误差问题
* @retur... | 15.980392 | 69 | 0.694479 |
af5e6d6ae9d7da9f6485fbcf50f498e3373ff4cd | 2,264 | package net.sunxu.mybatis.automapper.processor.mapper.mapper;
import net.sunxu.mybatis.automapper.processor.mapper.entity.EntityIndex;
import net.sunxu.mybatis.automapper.processor.mapper.template.SelectTemplate;
import net.sunxu.mybatis.automapper.processor.mapper.template.SqlBuilder;
import net.sunxu.mybatis.automap... | 42.716981 | 117 | 0.701855 |
6a4107c70b4646ac6c3ef8d551cbbca3196aa4a3 | 862 | package org.bitbucket.nightsir.zuuladvanced.model.npc.types.returntypes;
import org.bitbucket.nightsir.zuuladvanced.model.item.Item;
import org.bitbucket.nightsir.zuuladvanced.script.AllowedScriptClass;
/**
* Class for {@link Item} that a trader sells/buys from the player.
*
* @author Christian Sami
*/
@AllowedS... | 19.155556 | 72 | 0.683295 |
47fc67e21f52df3830558e82f49aa29437d82b02 | 430 | package io.renren.modules.bj.service;
import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.bj.entity.UserRfidEntity;
import java.util.Map;
/**
* 用户和RFID关系表
*
* @author afeng
* @email chenbin824@163.com
* @date 2018-08-09 08:54:25
*/
public interfac... | 20.47619 | 67 | 0.75814 |
1a0c29a130d099cb15067e1a1bcf255bab0b892e | 2,404 | package com.merchantsafeunipay.sdk.request.apiv2.paymentsystem;
import com.merchantsafeunipay.sdk.authentication.Authentication;
import com.merchantsafeunipay.sdk.request.base.ApiRequest;
import com.merchantsafeunipay.sdk.request.enumerated.ApiAction;
import com.merchantsafeunipay.sdk.request.enumerated.Param;
import ... | 34.342857 | 101 | 0.735441 |
45613c07f795468ed3dcc872ac6fec307746fc78 | 481 | //
// Decompiled by Procyon v0.5.36
//
package org.apache.maven.scm.provider.hg.command.tag;
import org.apache.maven.scm.ScmFileStatus;
import org.apache.maven.scm.log.ScmLogger;
import org.apache.maven.scm.provider.hg.command.HgConsumer;
public class HgTagConsumer extends HgConsumer
{
public HgTagConsumer(fin... | 22.904762 | 81 | 0.733888 |
8a341a79f78d82519e6d128c444d320ea2138a9b | 1,365 | package com.zhuhao.design_mode.proxy.cglib;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
/**
* @Author halk
* @Date 2020/11/19 15:40
*/
public class ProxyFactory implements MethodInterceptor {
/**
... | 22.016129 | 111 | 0.609524 |
7ac4e263ff23a2c94d339940e9d10e9036794001 | 2,764 | package io.crnk.core.engine.internal.repository;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import io.crnk.core.CoreTestModule;
impor... | 33.707317 | 120 | 0.819103 |
c19a9ea57c97ddf8d07b3f4bba4f3197be9d2306 | 1,063 |
/*
Copyright 2015 Joseph Tranquillo {name of copyright owner}
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 require... | 31.264706 | 106 | 0.73095 |
4b794a2e6e74521454726f5ddb99769f21b1517d | 5,438 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissio... | 26.144231 | 83 | 0.563994 |
3f4ffb0c922939f9f509d620a65005bd992bdc19 | 790 | package com.sparkystudios.traklibrary.game.service.dto;
import lombok.Data;
import org.springframework.hateoas.server.core.Relation;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;
@Data
@Relation(collectionRelation = "data", itemRelation = "gam... | 23.235294 | 77 | 0.758228 |
eb0930fc2be97fef214aa1fa784544665287e0d6 | 340 | package cn.com.nwdc.db;
import cn.com.nwdc.db.condition.DbCondition;
import javax.sql.DataSource;
import java.util.List;
/**
* @author coffee
* @Classname IRdbOperator
* @Description TODO
* @Date 2019/11/5 10:14
*/
public interface IRdbOperator<ELEM> extends IDbOperator<ELEM, DbCondition<String>>,IDbConnector<D... | 16.190476 | 109 | 0.741176 |
e31564775a3fad4eb7bd1dd6f732198643825fee | 4,821 | package DataStructures.Caches;
import java.util.HashMap;
import java.util.Map;
/**
* Most recently used (MRU)
* <p>
* In contrast to Least Recently Used (LRU), MRU discards the most recently used items first.
* https://en.wikipedia.org/wiki/Cache_replacement_policies#Most_recently_used_(MRU)
*
* @param <K> key ... | 26.783333 | 93 | 0.535159 |
15a6e6289301eafea0846bf357cc5c1219cac547 | 546 | package org.wycliffeassociates.usfmtools.models.markers;
import java.util.*;
/**
* Poetry Selah Marker (I know weird but it is in the spec)
*/
public class QSMarker extends Marker {
public String text;
@Override
public String getIdentifier() {
return "qs";
}
@Override
public String... | 21 | 78 | 0.664835 |
5f7e43a7daa38e9bf4a0c282cc174813da49e4c1 | 3,088 | package org.jetbrains.research.ddtm.ide.ui;
import com.intellij.openapi.progress.ProgressManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.popup.PopupStep;
import com.intellij.openapi.ui.popup.util.BaseListPopupStep;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiType... | 44.114286 | 110 | 0.723122 |
1a5b4322e33ec32012b2fa3e106bd12c5086080e | 5,298 | /*
* 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, software
* d... | 27.884211 | 133 | 0.620612 |
c527b92cfbf78b323d1ee6854df9864a34fe5476 | 666 | package ca.gc.aafc.collection.api.service;
import java.util.UUID;
import org.springframework.stereotype.Service;
import org.springframework.validation.SmartValidator;
import ca.gc.aafc.collection.api.entities.AcquisitionEvent;
import ca.gc.aafc.dina.jpa.BaseDAO;
import ca.gc.aafc.dina.service.DefaultDinaService;
imp... | 26.64 | 88 | 0.797297 |
679d353c44b7ece814b61d7213bad869c3fb5c85 | 1,297 | package com.charles445.simpledifficulty.util;
import javax.annotation.Nonnull;
import com.charles445.simpledifficulty.debug.DebugUtil;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import net.minecraftforge.oredict.OreDictionary;
public class OreDictUtil
{
public static final NonNullL... | 30.880952 | 114 | 0.773323 |
a033849b5b248246263740fe1d4dca31516ffb4f | 346 | package com.goreckia.game.level.obstacles;
import com.goreckia.game.utils.Textures;
import static com.goreckia.game.main.Constants.*;
public class Base extends Obstacle {
public Base(Textures textures) {
super((MAP_HALF_CELLS - 2) / 2, MAP_HALF_CELLS - 2, textures);
isDestroyable = true;
... | 24.714286 | 70 | 0.693642 |
4ce77355cced66d80bd72534891e2ea60a1033f9 | 1,751 | package agentIO;
import java.io.IOException;
import controllers.PlayAgent;
import games.Arena;
import tools.Types;
/**
* A class to load a specific agent from disk.
* <p>
* After construction, the agent is available with {@link #getAgent()}. If something goes
* wrong with loading, then {@link #getAgent()} re... | 29.183333 | 121 | 0.69446 |
27d2d0e9e26a47d2b1a7c86782f75e060b98dd75 | 394 | /*
* Copyright (c) 2013 Nu Echo Inc. All rights reserved.
*/
package com.nuecho.rivr.voicexml.servlet;
import javax.servlet.http.*;
import org.w3c.dom.*;
import com.nuecho.rivr.voicexml.rendering.voicexml.*;
/**
* @author Nu Echo Inc.
*/
public interface VoiceXmlRootDocumentFactory {
Document getDocument(... | 18.761905 | 95 | 0.753807 |
863abbad9575dd81adf04af22ce9353d44a9e173 | 616 | package joana.test.swapimaster.data.network;
import joana.test.swapimaster.data.model.Film;
import joana.test.swapimaster.data.model.People;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface SwapiEndpoints {
@GET("people")
Call<People>... | 22 | 48 | 0.647727 |
cbdfdde5d84307b792390de60105152f3959d574 | 341 | package site.morn.log;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
/**
* 操作上下文
*
* @author timely-rain
* @since 1.2.2, 2021/7/12
*/
@Getter
@RequiredArgsConstructor
public class OperationContext {
/**
* 日志元数据
*/
private final OperateMeta meta;
/**
* 操作实例
*/
private final Op... | 13.115385 | 38 | 0.671554 |
f848dd32732b5b5c3ad0a87aa1b8c8ef932b6fb2 | 1,997 | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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... | 28.126761 | 75 | 0.715073 |
d94917460da69ae6f28166f792fb28c6d43d892f | 866 | package net.n2oapp.framework.api.metadata.meta.region;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import net.n2oapp.framework.api.metadata.Itemable;
import java.util.List;
/**
* Клиентская модель региона в виде вкладок.
*/
@Getter
@Setter
public class TabsRegi... | 22.205128 | 76 | 0.720554 |
853354657142081a695b907f45f1f344789ed712 | 7,566 | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 32.612069 | 105 | 0.640497 |
38f0a662d57079b896e2b5b74f802d9f7630757b | 6,917 | package de.grafelhaft.winespray.app;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.NavUtils;
import android.view.MenuItem;
import android.view.View;
import android.view.WindowManager;
import com.luseen.spacenavigation.... | 39.982659 | 201 | 0.69134 |
99c09bc9741583605f172bacc86343694dc06a86 | 449 | package com.demo.config;
import com.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.annotation.RequestScope;
@Configuration
public class BeanConfig {
@Bean
@RequestScope
public User cr... | 24.944444 | 63 | 0.739421 |
d0a77c76679afc32cead6c2cbe9d69bf1e77a23c | 276 | package com.tronxincloud.bmobtest.bmob.model;
import com.tronxincloud.bmobtest.bean.UserBean;
/**
* Created by Jzhson Davis on 8/2/2018.
*/
public interface UserLoginModel {
UserBean getUserInfo(String username);
void doLogin(String username,String password);
}
| 19.714286 | 50 | 0.757246 |
17cbe9a10118d2116d25f8dc9ca8cbc318ffc000 | 1,076 | package com.voxelgameslib.voxelgameslib.components.world;
import com.google.gson.annotations.Expose;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nonnull;
import com.voxelgameslib.voxelgameslib.components.map.MapInfo;
import com.voxelgameslib.voxelgameslib.internal.config.Config;
/**
... | 22.893617 | 63 | 0.702602 |
1788743e77d8a4e6a02f988bb7180b344945ce59 | 219 | package com.twu.biblioteca;
public class View {
Route route;
public View(Route r){
route = r;
}
public void display(){
}
public View execute(String in){
return this;
}
}
| 12.166667 | 35 | 0.557078 |
da43354b4d97cad38f8915262d5798eaeb4b980c | 336 | import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
public class ReportMaker {
public static void makeReportPDF(String str, String path) throws IOException{
PrintWriter pw = new PrintWriter("Z:/1.txt");
pw.println(str);
pw.close(... | 25.846154 | 82 | 0.645833 |
3d7466ce0114ee60e77ab077ddcab5da10e32527 | 319 | package com.ryansiu1995.sonar.rules.refactor;
import org.sonar.check.Rule;
import com.ryansiu1995.sonar.rules.ElixirRule;
@Rule(key = "Credo.Check.Refactor.VariableRebinding")
public class VariableRebinding extends ElixirRule {
@Override
public String credoKey() {
return "VariableRebinding";
}
}
| 24.538462 | 53 | 0.752351 |
23dcca95e51be84027fe4c4c69768f094b2d7b26 | 1,933 | package trader.common;
import static org.junit.Assert.assertTrue;
import java.util.Properties;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import com.google.gson.JsonObject;
import trader.common.util.JsonUtil;
import trader.common.util.StringUtil;
public class TestString... | 31.688525 | 87 | 0.653389 |
ea6401d0aa0bb0a979e5a4b4b69c0ce1a1ae6fec | 154 | @org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.elasticsearch.backend.elasticsearch7.query;
| 38.5 | 76 | 0.876623 |
03d23c80a817e4d50c86cc1e765933bf50970343 | 1,457 | package com.germaniumhq.drivers.platform;
public class PlatformDetector {
public static Platform detectPlatform() {
BitArchitecture bitArchitecture = BitArchitecture.BIT_32;
if (System.getProperty("os.name").contains("Windows")) {
if (System.getenv("ProgramFiles(x86)") != null) {
... | 33.883721 | 94 | 0.607412 |
67cb17865dcb9a12a18752defd2931fb7fb1819f | 924 | package com.cezarykluczynski.stapi.server.comic_series.mapper;
import com.cezarykluczynski.stapi.client.v1.rest.model.ComicSeriesBase;
import com.cezarykluczynski.stapi.model.comic_series.dto.ComicSeriesRequestDTO;
import com.cezarykluczynski.stapi.model.comic_series.entity.ComicSeries;
import com.cezarykluczynski.sta... | 40.173913 | 84 | 0.862554 |
5227a50c63682eb21f5cbdb79177e417d33c2456 | 3,434 | package seedu.address.model.appointment;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.testutil.Assert.assertThrows;
import java.time.LocalDate;
import org... | 32.704762 | 100 | 0.638905 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.