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 |
|---|---|---|---|---|---|
f48c1b2dadfcd329a92fe615632a7e6adfe896d9 | 5,823 | package com.simonalong.neo.core;
import com.simonalong.neo.Columns;
import com.simonalong.neo.NeoMap;
import com.simonalong.neo.express.SearchQuery;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
/**
* @author shizi
* @since 2020/6/11 3:02 PM
*/
public ... | 44.113636 | 131 | 0.785849 |
ef771ce6aabd2a6d161a0138a3e5a81bfff35038 | 751 | package org.sedgewick.algorithms.part_one.week_three.question_five;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class SelectionInTwoSortedArraysWithDuplicatesTest {
@Test
void select() {
int[] nums1 = new int[]{1, 1, 2, 3, 3};
int[] nums2 =... | 31.291667 | 92 | 0.637816 |
2ce71ca5d2d26bfe5ad7546df8ef36cef55b6a12 | 874 | package com.likya.tlossw.model;
public class MetaDataType {
public final static int GLOBAL = 1;
public final static int LOCAL = 2;
private String documentId;
private String documentType;
private int scope = GLOBAL;
public MetaDataType() {
}
public MetaDataType(String documentId, String doc... | 18.595745 | 74 | 0.689931 |
857a2856d94148e37f5bad45d73256d0c17f0050 | 923 | package dev.vality.cm.converter;
import dev.vality.cm.model.LegalAgreementModel;
import dev.vality.damsel.domain.LegalAgreement;
import dev.vality.geck.common.util.TypeUtil;
import org.springframework.stereotype.Component;
@Component
public class LegalAgreementToLegalAgreementModelConverter
implements ClaimCo... | 38.458333 | 104 | 0.785482 |
e8af8548d9677d44d978b91d85783e4b84f79d55 | 1,610 | package org.mutabilitydetector.benchmarks.settermethod;
/*
* #%L
* MutabilityDetector
* %%
* Copyright (C) 2008 - 2014 Graham Allan
* %%
* 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... | 31.568627 | 111 | 0.734783 |
3ca38111ac42242bb88b6010faf804f0d9b7c762 | 7,360 | package YMY.dto;
import YMY.entities.Customer;
import YMY.entities.User;
import YMY.repositories.CompanyRepository;
import YMY.repositories.CustomerRepository;
import YMY.services.CacheService;
import YMY.services.UserService;
import YMY.utils.Check;
import YMY.utils.Util;
import org.springframework.stereotype.Service... | 41.117318 | 152 | 0.597826 |
32c1892e9987d4d2fb27b0780b404a7e99761fed | 269 | package pes6j.datablocks;
public class MessageBlockZero extends MessageBlock {
static final byte[] MSG_DATA = { (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00 };
public MessageBlockZero(int qId) {
super();
header.setQuery(qId);
setData(MSG_DATA);
}
}
| 20.692308 | 72 | 0.698885 |
bf79531e159a967091c7ac7c7b83220d7d6a5cb9 | 460 | package org.esupportail.opi.web.utils.listener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class Coerce2zero implements ServletContextListener {
@Override
public void contextInitialized(ServletContextEvent event) {
System.setProperty("org.apache.el.p... | 25.555556 | 75 | 0.752174 |
2926834e15771e39ff27d1ca8ba97c2b1b2a4f93 | 787 | import com.datastax.oss.driver.api.core.CqlIdentifier;
import com.datastax.oss.driver.api.core.CqlSession;
import java.util.UUID;
public class Main{
public static void main(String args[]){
try(CqlSession session = CqlSession.builder().build()){
InventoryMapper inventoryMapper = new InventoryMapperBuilder(... | 31.48 | 86 | 0.689962 |
215715ca1d98ccb7a6ff219acb4d17e5208ab28c | 622 | package com.sampullara.cli;
import junit.framework.*;
public class EnumTest extends TestCase {
public void testCanUseAnEnumValue() {
CommandCLI cli = new CommandCLI();
String[] args = new String[] {"-command", "START"};
Args.parse(cli, args);
assertNotNull("Commands enum value not built", cli.getCommand... | 23.037037 | 98 | 0.709003 |
a389cb92727b5097f21a3e5b33c157c6f4ff2318 | 389 | package com.rahul.udacity.cs2.ui.home;
import com.rahul.udacity.cs2.ui.common.CommonView;
/**
* Created by rahulgupta on 11/11/16.
*/
public interface HomeView extends CommonView {
/**
* Called when an item in the navigation drawer is selected.
*
* @param navDrawerEnum Enum selected
*/
... | 21.611111 | 69 | 0.712082 |
a18d1a7cf070a81d7dc1060e27252b41214dc1e7 | 2,606 | package bob.eve.walle.ui.activity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget... | 35.69863 | 99 | 0.602456 |
35e3fac8b555a8152c30c61a271bc04ef4b66a3a | 3,220 | package ee.ristoseene.raytracer.eyebased.shading.common.compiled;
import ee.ristoseene.raytracer.eyebased.core.compilation.CompilationCache;
import ee.ristoseene.raytracer.eyebased.core.configuration.SampleValueFactory;
import ee.ristoseene.raytracer.eyebased.core.constants.Vectors;
import ee.ristoseene.raytracer.eyeb... | 46 | 126 | 0.802174 |
cac9ff1ea19e1221ea2b3de0576096350e39f4ff | 2,259 | /**
* Copyright (C) 2006 Dragos Balan (dragos.balan@gmail.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
*
* Unl... | 23.53125 | 76 | 0.689686 |
0b16a7268b2c6d6c8a3ba33e510d681a9d5b3889 | 14,199 | /*
* Copyright 2004 Cordys R&D B.V.
*
* This file is part of the Cordys Script Connector.
*
* 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/lice... | 30.082627 | 114 | 0.581379 |
06f5fd1a1ac351f8fe252387110cc00ccce070ab | 58,252 | package it.unibz.inf.ontop.iq.executor;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import it.unibz.inf.ontop.dbschema.*;
import it.unibz.inf.ontop.dbschema.impl.OfflineMetadataProviderBuilder;
import it.unibz.inf.ontop.i... | 58.01992 | 150 | 0.720834 |
0779e50d35d87dd0073fc138ebc28b084b068a5a | 2,876 | /*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 34.238095 | 97 | 0.761474 |
173c120c566fcbc8c7ee219576fd88bd2c1de7fd | 2,129 | package com.jzoom.zoom.token.hex;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.concurrent.TimeUnit;
/**
* 思路:
* 1、在用户需要登录的时候,向服务器端申请客户端token
* 客户端token与服务端token配对
*
* 客户端token含如下内容:
* (1) id: 根据设备号生成的随机数,本随机数用于索引服务端token
* (2) pub: 离2017年1月1日到现在的秒数
* (3) exp: 超时时间,秒数... | 20.084906 | 88 | 0.68201 |
c7ae75422ca76dc71b52439c768090f704fadad6 | 2,518 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_package
DECL|package|org.jabref.gui
package|package
name|org
operator|.
name|jabref
operator|.
name|gui
package|;
end_package
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|Collection
import|;
end_import
begin_import
import|... | 14.067039 | 122 | 0.807387 |
604d12696a22ee9fd0adaf3a37ba3a6b83111a4f | 123 | package codeholic.domain;
import lombok.Data;
@Data
public class SocketStatusMessage {
private String accessToken;
}
| 13.666667 | 34 | 0.780488 |
0f636cc2a9661e2e0dd15e0440f068374f5ccf33 | 1,481 | package com.teamwizardry.inhumanresources.common.items;
import java.util.List;
import com.teamwizardry.inhumanresources.common.utils.IUpgradable;
import com.teamwizardry.librarianlib.features.base.item.ItemModTool;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import ... | 20.013514 | 139 | 0.779203 |
be7237c6aba1018d54254b67627c71a25233743d | 539 | package ee.pri.rl.indexer.mass.data.cache;
import java.util.Map;
/**
* Sõnade vahemälu liides.
*
* @author raivo
*/
public interface WordCache extends Cache {
/**
* Sõna identifikaatori saamine.
*/
public int getId(String word);
/**
* Sõnade hoidla saamine.
*/
public Map<String, Integer> getWords();
... | 19.25 | 63 | 0.692022 |
d7383bbdcf286a7e51a3aeab8d662250f5b01a65 | 6,781 | package ServerHawk;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.chart.CategoryAxis;
import javafx.scene... | 31.686916 | 129 | 0.647102 |
283810fa7388c95a95f39554e9b38cfb911da907 | 6,299 | /*
* JBoss, Home of Professional Open Source
* Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Vers... | 38.408537 | 116 | 0.750278 |
549c86e9e5bfd58296e76b418200aff7324313ad | 1,425 | package com.example.unit.testing;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class BankAccountTest {
private BankAccount bankAccount;
@BeforeEach
void setup() {
bankAccount = new BankAccount("Vlad", "Kondratuk", ... | 25.446429 | 89 | 0.647018 |
e282c41578d341e46cf4a0d32bb55a96f96ef419 | 17,520 | /**
* 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... | 35.609756 | 80 | 0.542694 |
e38c1f42edea3ed2681275cb3cac02cb2678bc6e | 3,872 | package com.faforever.client.game;
import com.faforever.client.i18n.I18n;
import com.faforever.client.notification.ImmediateNotification;
import com.faforever.client.notification.NotificationService;
import com.faforever.client.notification.Severity;
import com.faforever.client.preferences.PreferencesService;
import c... | 39.510204 | 165 | 0.755682 |
899c2340a0f22cf6b272684e06ac6a1417baa827 | 2,332 | /*
* Copyright 2018 Akashic 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 32.84507 | 97 | 0.728988 |
bbd5ab5b41a02a0713a59569a1a1312afd61b3e9 | 250 | package ocp.bad;
public class Rectangle {
final double height;
final double width;
Rectangle(double height, double width) {
this.height = height;
this.width = width;
}
public double area() {
return height * width;
}
}
| 14.705882 | 42 | 0.644 |
6412c63f6ae514c8758cb143dff7470012bb8129 | 1,354 | package org.tests.delete;
import io.ebean.xtest.BaseTestCase;
import io.ebean.DB;
import io.ebean.test.LoggedSql;
import org.junit.jupiter.api.Test;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
public class TestDeleteCascadeWithListener extends BaseTestCase {
@Test
public vo... | 26.038462 | 89 | 0.677991 |
718120a6952c93a862530d5ee416b465564ba3df | 3,073 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 42.680556 | 186 | 0.728604 |
760f6b099b9073d52674bd6e203860d1dfd90c1d | 6,626 | /*
* Copyright 2016 - 2020 Anton Tananaev (anton@traccar.org)
*
* 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... | 37.01676 | 112 | 0.624962 |
0971e732f08e6dfd6d2b8f463436dbac5ebff93d | 2,460 | package com.neueda.jetbrains.plugin.graphdb.jetbrains.ui.console.table.renderer;
import com.intellij.ui.treeStructure.Tree;
import com.neueda.jetbrains.plugin.graphdb.jetbrains.ui.helpers.SerialisationHelper;
import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellRe... | 42.413793 | 140 | 0.70935 |
5592f5160f1d21c35b9bae7a1073a419eb1ff8db | 1,068 | package by.homesite.gator.service;
import by.homesite.gator.service.dto.RateDTO;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing {@link by.homesite.gator.domain.Rate}.
*/
public interface RateService {
/**
* Save a rate.
*
* @param rateDTO the entity to save... | 20.150943 | 72 | 0.594569 |
ba9a244dca408ce863ae971545b795a243d7d87a | 311 | package com.datasaver.api.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.datasaver.api.domains.DeviceBatteryLog;
@Repository
public interface DeviceBatteryLogRepository extends JpaRepository<DeviceBatteryLog, Long> {
} | 31.1 | 91 | 0.858521 |
626c516966bec6dd759912a90a009fb2d1684a91 | 703 | package org.reflections.serializers;
import com.google.common.collect.*;
import java.lang.reflect.*;
import com.google.gson.*;
class JsonSerializer$2 implements JsonSerializer<Multimap> {
final /* synthetic */ JsonSerializer this$0;
JsonSerializer$2(final JsonSerializer a1) {
this.this$0 = a1;
... | 29.291667 | 113 | 0.679943 |
432f3dc0c81b472357169f2272a9d997303d1214 | 779 | package dao;
import db.DB;
import org.junit.rules.ExternalResource;
import org.sql2o.*;
public class DatabaseRule extends ExternalResource{
@Override
public void before(){
DB.sql2o = new Sql2o("jdbc:postgresql://localhost:5432/news_portal_test", "sitati", "Access");
}
@Override
public voi... | 31.16 | 102 | 0.662388 |
398bfd75e5abb823651e3608246a38ffd3f58153 | 929 | package com.sparta.eng82.stepdefs;
import com.sparta.eng82.components.pages.HomePageImpl;
import com.sparta.eng82.stepdefs.utility.Pages;
import com.sparta.eng82.stepdefs.utility.WebDriverManager;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.junit.jupit... | 30.966667 | 83 | 0.735199 |
05670f4a7aeeb7b6a08a11acc02f21eff2faf698 | 909 | package me.ele.jarch.athena.util;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
public class JacksonObjectMappers {
// fix about parnew gc cost long time to scan string table
private final static J... | 30.3 | 89 | 0.742574 |
fc0dc7a3e96efca87da5e9f2e65dfaa1f1cb40a8 | 4,849 | package com.example.schedulemanager.CustomElements;
import static android.graphics.Paint.Style.FILL;
import static android.graphics.PorterDuff.Mode.CLEAR;
import static androidx.core.content.ContextCompat.getColor;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;... | 34.390071 | 97 | 0.673541 |
9123cb23d7aa8c0a8e99671ee56bb77827519dc7 | 492 | package com.tahn.quizapplicationv3.objectClass;
public class WordNote {
private String word;
private String desc;
public WordNote(String word, String desc) {
this.word = word;
this.desc = desc;
}
public String getWord() {
return word;
}
public void setWord(String ... | 17.571429 | 47 | 0.587398 |
c7d4322c3182c32a1a1a18c1ca67e7145334041a | 1,851 | package com.aptoide.amethyst.ui;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.widget.Toast;
import com.aptoide.amethyst.R;
import com.aptoide.amethyst.preferences.SecurePreferences;
import com.aptoide.amethyst.utils.AptoideUtils;
import com.aptoide.amethyst.webservices.v2.AddApkCom... | 35.596154 | 120 | 0.732577 |
b40b3159d1226b3d8e83696f1baf450e5196efb7 | 2,235 | package am.jsl.listings.domain.reminder;
import java.io.Serializable;
/**
* The transfer details domain object.
*
* @author hamlet
*/
public class ReminderTransfer implements Serializable {
/**
* The internal identifier
*/
private long id;
/**
* The reminder id
*/
private long... | 17.738095 | 86 | 0.550783 |
00731b00aa218639b9e82c7e877a6f1f182a5c37 | 6,471 | /**
* Copyright © 2012-2013 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
*/
package com.thinkgem.jeesite.common.utils;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.... | 25.678571 | 119 | 0.637769 |
7fda3409c762161f3d9da6c638ca87ec2dc99c3e | 4,945 | package com.jn.kiku.net;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.jn.kiku.net.retrofit.body.RetrofitBodyHelp;
import com.jn.kiku.net.retrofit.callback.ProgressListener;
import com.jn.kiku.net.retrofit.manager.IRetrofitManage;
import com.jn.kiku.net.retrofit.manager.RetrofitM... | 29.789157 | 155 | 0.644489 |
1c61ee416811917db91a363f8a45620cf4bfae38 | 414 | package com.shpun.mall.common.service;
import com.shpun.mall.common.model.MallAdmin;
/**
* @Description:
* @Author: sun
* @Date: 2020/8/22 10:36
*/
public interface MallAdminService {
void deleteByPrimaryKey(Integer adminId);
void insertSelective(MallAdmin record);
MallAdmin selectBy... | 19.714286 | 56 | 0.707729 |
ccaf2eb232fa1efd84a251285bd9632558ee8954 | 663 | package net.dodogang.plume.ash;
import dev.architectury.injectables.annotations.ExpectPlatform;
import java.nio.file.Path;
public final class Environment {
private Environment() {}
@ExpectPlatform
public static boolean isDevelopmentEnvironment() {
throw new AssertionError();
}
/**
... | 21.387097 | 63 | 0.666667 |
45e6fad766e230a32939b88b1c17a34ce2fafdd2 | 10,195 | package com.github.sulir.vcmapper.home;
import com.github.sulir.vcmapper.base.CommandExecutor;
import com.github.sulir.vcmapper.base.VoiceControlTest;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import static org.mockito.Mockito.mock;
i... | 29.212034 | 110 | 0.665522 |
35141f5c6deb28e73c96d2684f952269d712fb4f | 3,197 | /*
* Copyright (c) 2010, 2020 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: ... | 34.75 | 89 | 0.686268 |
70db9a465c42c902537bae065cc2c70d9f993053 | 3,637 | /*
* This software is in the public domain under CC0 1.0 Universal plus a
* Grant of Patent License.
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software to the
* public domain worldwide. This software is distributed without any
* ... | 36.37 | 149 | 0.665109 |
3b1b6a77dfef1ea232d0a31ec0b8cedb23ab2ec6 | 159 | package im.access;
public class AnInputAuthorization extends AMessage<String> {
public AnInputAuthorization(String theUserName) {
super(theUserName);
}
}
| 19.875 | 60 | 0.792453 |
aad3759ee9d8dfeadabd0910a48eb78965eb1acb | 1,642 | package org.nutz.dao.test.normal.psql;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.nutz.dao.test.DaoCase;
import org.nutz.lang.Lang;
public class PsqlArrayTest extends DaoCase {
@Override
... | 34.93617 | 80 | 0.670524 |
572d24a32ce12a40236f85fb7e2c16d3c8e31c75 | 1,281 | package org.javers.spring.boot.mongo;
import org.javers.spring.auditable.CommitPropertiesProvider;
import org.javers.spring.auditable.CommitPropertiesProviderContext;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.co... | 32.846154 | 112 | 0.724434 |
c64d8cdcc3eeb067d8eec8a22c88405845f7373a | 3,200 | package com.example.servemesystem;
import java.sql.Date;
public class ServiceRequest {
private int serviceId;
private int customerId;
private int vendorId;
private ServiceCategory category;
private String serviceTime;
private String location;
private String title;
private String descr... | 20.382166 | 56 | 0.640938 |
9d2c551a407fc07485f032a1cd0b87ad015d3ea1 | 523 | package com.mit.campus.rest.modular.poverty.service;
import com.baomidou.mybatisplus.service.IService;
import com.mit.campus.rest.modular.poverty.model.ShowPoorArea;
import java.util.List;
/**
*
* 学院平均消费
* @author shuyy
* @date 2018年9月6日
*/
public interface IShowPoorAreaService extends IService<ShowPoorArea> {
... | 19.37037 | 70 | 0.734226 |
90259b5ecbc31887c744cd6f098975bf13b2bf2e | 322 | package com.gtnewhorizon.structurelib.structure;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public interface IStructureElementNoPlacement<T> extends IStructureElement<T> {
@Override
default boolean placeBlock(T t, World world, int x, int y, int z, ItemStack trigger) {
return false;
}
... | 26.833333 | 87 | 0.78882 |
1e8b99ca825cd24bd153ba1d8c207f2a8ceb783b | 4,649 | package com.AdvancedProgramming.Menus;
import com.AdvancedProgramming.MiniNet;
import com.AdvancedProgramming.States;
import com.AdvancedProgramming.Users.User;
import java.util.Objects;
import java.util.Optional;
import java.util.Scanner;
/**
* MainMenu is the initial user interface that is displayed when MiniNet ... | 28.697531 | 107 | 0.521618 |
9d7c9d724d387a3c1f79737abcc92fa81b334688 | 5,594 | // Copyright (c) 2007-2020 VMware, Inc. or its affiliates. All rights reserved.
//
// This software, the RabbitMQ Java client library, is triple-licensed under the
// Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2
// ("GPL") and the Apache License version 2 ("ASL"). For the MPL, please se... | 36.802632 | 96 | 0.724169 |
d6df2c8e925f5ce461ce3ea41b1db3c4272445e8 | 162 | package beans;
import org.springframework.stereotype.Component;
@Component
public class UserDao {
public void printName() {
System.out.println("张三");
}
}
| 12.461538 | 48 | 0.734568 |
c947853bc9e19db33a1b27065162d91da61e4a61 | 43,247 | /*
* Copyright 2010-2013 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 58.919619 | 209 | 0.669295 |
6712df232c6f530e57397eb4394d4ff417647445 | 505 | package org.kushtrimhajrizi.rpalace.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR)
public class AccessTokenException extends RuntimeException {
public AccessTokenException() {
}
... | 25.25 | 66 | 0.760396 |
b05a366196d32098704b45da3731d1070b768006 | 231 | package com.demo.security.securitycore.validate.core.sms;
/**
* @author : luofeng
* @date : Created in 2019/4/16 11:17
* @description : 短信验证码
*/
public interface SmsCodeSender {
void send(String mobile,String code);
}
| 17.769231 | 57 | 0.692641 |
d5e82ace4a7c907837857d2aa8f54e00253c24f5 | 207 | package yuk.model.multi;
import yuk.model.AbsFake;
public abstract class AbsContainer extends AbsFake{
public String name = "";
public String command = "";
public abstract long getSize();
}
| 18.818182 | 52 | 0.705314 |
c2fe937fa72e809e831087327b3a44e55ad0fe55 | 4,047 | /*
* Copyright (c) 2019 Shane Funk - Javaseeds Consulting
* All rights reserved.
* 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 limitat... | 42.6 | 115 | 0.729676 |
a8d4901dd9a566d3c4a52dafaf9dcc8a9a2266ae | 4,253 | /*
* The MIT License
*
* Copyright 2015 Adam Kowalewski.
*
* 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,... | 30.818841 | 114 | 0.687515 |
77334d1b7ab6c1f5a36bd401cc5ee5cd8581a138 | 333 | package com.fermich.nolfix.fix.msg;
import com.fermich.nolfix.broker.ApiSettings;
abstract public class FixmlRequest extends FixmlMessage {
public Fixml pack() {
return new Fixml()
.setV(ApiSettings.FIXML_V)
.setR(ApiSettings.FIXML_R)
.setS(ApiSettings.FIXML... | 25.615385 | 57 | 0.63964 |
71ad1df059ef77fdbf7fd5cc6a22285b019f0529 | 814 | package cn.solwind.excel.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author chfenix
* @version 创建时间:2019-05-09
*
* 表格行尾注解
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType... | 13.129032 | 44 | 0.632678 |
2f3739cbd50fb1c492409ce74f5e41a93535cdb7 | 726 | package io.lumify.mapping.xform;
import java.util.Arrays;
import org.junit.runners.Parameterized.Parameters;
public class StringValueTransformerTest extends AbstractValueTransformerTest<String> {
@Parameters(name="{index}: {0}->{0}")
public static Iterable<Object[]> getTestValues() {
return Arrays.asL... | 30.25 | 86 | 0.570248 |
e7851ea343b83f2f60ce44124a1b6dcd0432d72a | 5,375 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 34.455128 | 99 | 0.694512 |
bd57a6d8722732ba58069c5bb8416fcfd9dfae7e | 23,977 | /*
* 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 ... | 30.543949 | 119 | 0.595904 |
218fd8afd0aa480154f9f3cc6b4aa4b1c460ca77 | 363 | package br.com.zupacademy.vitor.casadocodigo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import br.com.zupacademy.vitor.casadocodigo.modelo.Categoria;
@Repository
public interface CategoriaRepository extends JpaRepository<Categoria, Long... | 25.928571 | 76 | 0.842975 |
60f6287078e1b3d48f54836e7bd2cab853b47e53 | 3,765 | /*
* 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 ... | 36.911765 | 121 | 0.745817 |
a978f8631a8d1f4d721841017f7d5aff96b1349a | 965 | package com.alibaba.tesla.tkgone.server.services.sreworks;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.tesla.tkgone.server.services.config.BaseConfigService;
import lombok.extern.log4j.Log4j;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* @auth... | 29.242424 | 105 | 0.716062 |
bd5a407aae5edaa19f1626ea42233b8ba313e60a | 1,295 | //给定一个字符串,你需要反转字符串中每个单词的字符顺序,同时仍保留空格和单词的初始顺序。
//
//
//
// 示例:
//
// 输入:"Let's take LeetCode contest"
//输出:"s'teL ekat edoCteeL tsetnoc"
//
//
//
//
// 提示:
//
//
// 在字符串中,每个单词由单个空格分隔,并且字符串中不会有任何额外的空格。
//
// Related Topics 字符串
// 👍 268 👎 0
package me.bob.leetcode.editor.cn;
/**
* 557 反转字符串中的单词 III
* 2021... | 21.949153 | 74 | 0.504247 |
68a60f92c6ec4a7f6d2442116ab6497c366c3f5b | 2,188 | /**
*
*/
package com.gfi.chequera.entity;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import ja... | 17.09375 | 116 | 0.723492 |
6b935a0cf4ff537e098c6cf158e0dcef1a65de24 | 9,605 | /*
* 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 not ... | 35.574074 | 100 | 0.710984 |
e68f145df513dce6e423c79c8a3303310402e54e | 864 | package edu.rice.cs.hpcviewer.ui.experiment;
import java.io.File;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import edu.rice.cs.hpcbase.map.ProcedureAliasMap;
import edu.rice.cs.hpcdata.e... | 20.093023 | 72 | 0.746528 |
4013049dfe3cf7f59a544b2c31f0dec1b7fa7239 | 970 | package se.mickelus.tetra.effect.potion;
import net.minecraft.entity.LivingEntity;
import net.minecraft.potion.Effect;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.EffectType;
import net.minecraft.util.DamageSource;
public class BleedingPotionEffect extends Effect {
public static Bleedi... | 24.871795 | 67 | 0.712371 |
a9867e3b06ebc8c2405b9fb00d46c1fd1b63a679 | 2,002 | package org.python.core;
import org.python.annotations.ExposedMethod;
import org.python.annotations.ExposedSlot;
import org.python.annotations.ExposedType;
import org.python.annotations.SlotFunc;
@ExposedType(name = "callable_iterator")
public class PyCallIter extends PyIterator {
//note: Already implements Trave... | 29.880597 | 108 | 0.625375 |
bc7a66b5066270514f8a7d3260e816e709c1bac4 | 6,598 | package org.evomaster.client.java.instrumentation.coverage.methodreplacement.classes;
import org.evomaster.client.java.instrumentation.coverage.methodreplacement.DateTimeParsingUtils;
import org.evomaster.client.java.instrumentation.coverage.methodreplacement.DistanceHelper;
import org.evomaster.client.java.instrument... | 38.811765 | 111 | 0.670658 |
02ef6d1bd76f2fdda79ee1b3cdf5fcb1036e0f5c | 4,369 | package salesTaxes.impl;
import salesTaxes.exc.UnclosedBasketException;
public class Basket {
private int basketNumber;
private StringBuilder basketItems;
private double total;
private double basketSalesTaxes;
// LinkedList<Item> itemBasketList;
private boolean closed;
/**
* Create a Basket instance without... | 30.131034 | 129 | 0.706798 |
e15a6b11fecfcf37ff57f529b71e915de1f7d2bb | 2,897 | class IndeksertListe <T> extends Lenkeliste<T> {
//Setter inn x i listen i posisjon pos der 0<=pos<=stoerrelse().
public void leggTil (int pos, T x) {
if (pos < 0 || pos > antiBruk) //hvis gitt pos er større enn 0 eller større enn antiBruk
throw new UgyldigListeindeks(pos);
Nod... | 24.760684 | 103 | 0.512599 |
f8ba834aaed79092cce873127b955689e1fd3e44 | 297 | package com.car.modules.car.dao;
import com.car.modules.car.entity.CategoryEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
*
*
* @author lzp
* @email sunlightcs@gmail.com
* @date 2019-01-23 00:54:45
*/
public interface CategoryDao extends BaseMapper<CategoryEntity> {
}
| 18.5625 | 65 | 0.737374 |
4cb713c99f4eeca8ec7a4d3f8fa8ab769727fb0f | 2,107 | package com.hoster.data;
import java.util.LinkedHashMap;
import java.util.Map;
public class Directory
{
private String path;
private String require;
private String allowOverride;
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = p... | 22.655914 | 106 | 0.532511 |
46d9f61a9b48a9fdbb8649e779dddb8ba9149d41 | 241 | package com.hss01248.net.util;
import com.hss01248.net.wrapper.MyNetListener;
/**
* Created by Administrator on 2017/4/10 0010.
*/
public abstract class LoginManager {
public abstract void autoLogin(MyNetListener listener);
}
| 13.388889 | 59 | 0.742739 |
c84d3845bf23ddeb6667bf0a6ea8d6a694972cc0 | 14,028 | package de.gurkenlabs.litiengine.attributes;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
/**
* The Class AttributeTests.
*/
public class AttributeTests {
@Test
public void testAddModification() {
final Attribute<Byte> testAttributeByte = new Attribute<>(... | 56.112 | 109 | 0.772598 |
3ea3cf50aff95ba9ce8167dba62de9cb5172231b | 747 | package cmc.ps.dao;
import org.springframework.stereotype.Repository;
import cmc.ps.model.PhysicalPerson;
/*
* This is the implementation of the PhysicalPerson DAO. You can see that we don't
* actually have to implement anything, it is all inherited from GenericDAOImpl
* through BaseDAO. We just specif... | 31.125 | 107 | 0.75502 |
7855b5d7877461711639fd3ebb49e2a1d5b5f280 | 5,011 | /*
* Copyright (c) 2020-2030 Leryn
*
* 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, publish,... | 38.844961 | 109 | 0.743963 |
814aca1018581ccdbb21e2844872031c51526f9b | 9,969 | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Random;
/**
* The main driver of the Connect4Game, as well as the visualization of it.
*
* You should not modify this class, and your agent should not need to access the methods within
* it directly.
*/
public class Con... | 36.650735 | 130 | 0.576487 |
dc97bcc95100c924d8c4bc131a1d8edf7f0fff55 | 3,606 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2019 Adobe Systems Incorporated and others
~
~ 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
~... | 33.388889 | 135 | 0.638103 |
88673c9ac470ce0354e7ff947e2dab501077ccee | 35,959 | package com.ref.parser.activityDiagram;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ref.exceptions.ParsingException;
import com.ref.interfaces.activityDiagram.IAction;
import com.ref.interfaces.activityDiagram.IActivity;
import com.ref.interfaces.activ... | 41.764228 | 193 | 0.553325 |
068b5f36e15ece1bcd0bbd2f9586ab743b496b15 | 2,432 | import java.util.HashSet;
import java.util.Set;
public class nextClosestTimePermutation {
public Set<String> getAllPermutations(String s) {
Set<String> permutations = new HashSet<String>();
if (s == null || s.length() == 0) {
permutations.add("");
return permutations;
}
char firstChar = s.charAt(0);
S... | 31.179487 | 69 | 0.629112 |
7c998769afef5f0ab00be361a668f38c9fbc2bb7 | 7,442 | package nyla.solutions.core.patterns.workthread;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
/**
* <b>Boss</b> work thread controls
* <p>
* Sample code
* MemorizedQueue queue = new MemorizedQueue();
* Runnable task1 = new Runnable()
... | 25.662069 | 135 | 0.48401 |
0b6f15cf9c7f7af3e95fe06c0de60d5727a26971 | 359 | package com.xkcoding.orm.mybatis.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author hwx
* @date 2020/4/14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher implements Serializable {
//主键
private Inte... | 15.608696 | 46 | 0.743733 |
221239f8882ba0e1a6d057bda9ea22b68fe04290 | 2,364 | /*
* The WhiteText project
*
* Copyright (c) 2012 University of British Columbia
*
* 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.... | 30.701299 | 77 | 0.655668 |
4683c153027382970e4a458147a9da8fc814c1c5 | 8,701 | package com.atlassian.db.replica.internal.state;
import com.atlassian.db.replica.api.DualConnection;
import com.atlassian.db.replica.api.mocks.CircularConsistency;
import com.atlassian.db.replica.api.mocks.ConnectionProviderMock;
import com.atlassian.db.replica.spi.state.StateListener;
import com.google.common.collect... | 36.558824 | 106 | 0.711642 |
e80ea47bed7d66615e0a6ad269f2f71e2f9a4cb3 | 491 | package com.virjar.thanos.api.test.defaultbean;
import com.virjar.thanos.api.GrabLogger;
import com.virjar.thanos.api.bean.Seed;
import com.virjar.thanos.api.services.TaskPushService;
import com.virjar.thanos.api.test.TestBean;
@TestBean
public class TestTaskPushService implements TaskPushService {
@Override
... | 28.882353 | 65 | 0.763747 |
2fa0b4a51112736f993f6d0083e9ea45d0c5ce4e | 10,557 | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and others
*
* 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/LICE... | 35.19 | 145 | 0.645259 |
745f3b363793e75f7cccc2828b1b2fb77a20c2b7 | 3,611 | package assets;
import com.google.gson.Gson;
import java.util.Random;
public class Company {
/**
* Company's name.
*/
private final String name;
/**
* All possible values this share's companies can assume.
*/
private final int[] values;
/**
* Possible flutuation values... | 23.756579 | 81 | 0.55414 |
e2a135684fa80aab29a9d9acd29a0a097d6b783c | 102 | package be.stip.soundboard.services;
public enum AssetServiceResultCodes {
CannotGetAsset
}
| 17 | 38 | 0.764706 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.