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 |
|---|---|---|---|---|---|
094968a972320af44c455a1cfbcb1bfd210de7e7 | 128 | package com.github.bottlemc.blade;
public interface IScreenInterface {
void openBlankGui();
void closeBlankGui();
}
| 12.8 | 35 | 0.726563 |
9de81b47889971b4411b08198cfc3a09a1c7450a | 9,698 | /*
* Copyright (c) 2020 Tobias Briones. All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* This file is part of Example Project: Factura.
*
* This source code is licensed under the MIT License found in the
* LICENSE file in the root directory of this source tree or at
* https://opensource.org/licenses/M... | 33.909091 | 110 | 0.657043 |
e12928629f9241e0ed97a3bf8e1253152a2dd994 | 2,469 | package cn.enjoyedu.independconsumer;
import cn.enjoyedu.config.KafkaConst;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apac... | 35.782609 | 82 | 0.643175 |
dece01ba24b008878ade96561886d156997f78d9 | 1,580 | /*
* Copyright 2004-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 37.619048 | 113 | 0.752532 |
039b78f2ed60c5034009782e2f451942ad173e13 | 450 | package com.amar.paysense.api_services;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class PixabayService {
public static PixabayApi createPixabayService() {
Retrofit.Builder builder = new Retrofit.Builder()
.addConverterFactory(GsonConverterFact... | 28.125 | 67 | 0.706667 |
07edc5f653af51000d07cc82c24f8af58d36d3f8 | 1,274 | package com.fermedu.iterative.jpa;
import com.fermedu.iterative.entity.FormulaTraitEntity;
import com.fermedu.iterative.util.JsonUtil;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBo... | 27.695652 | 96 | 0.748038 |
003cc9752fdf433bd8d4f40b3d48dacb4d001565 | 1,875 | package com.hfad.todolist;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
impor... | 31.25 | 100 | 0.712533 |
e15c2b1d0ad963fcc3fae0bfa634419a18244ac6 | 1,937 | package org.egov.config;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.config.repository.DefaultRateLimiterErrorHandler;
import com.marcosbarbero.cloud.autoconfigure.zuul.ratelimit.config.rep... | 38.74 | 127 | 0.744966 |
048b9a6704fe528148b3468aa6c603e2ec00ebbb | 303 | package com.jrmcdonald.common.ext.spring.reactive.security.authentication;
import org.springframework.security.core.Authentication;
import reactor.core.publisher.Mono;
public interface ReactiveAuthenticationFacade {
Mono<Authentication> getAuthentication();
Mono<String> getCustomerId();
}
| 23.307692 | 74 | 0.811881 |
15e6386f64f35955513a0d2deb32566814fff741 | 6,754 | package engineio_client;
import engineio_client.transports.PollingTransport;
import engineio_client.transports.WebSocketTransport;
import connection.ConnectingTest;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import java.net.ConnectException;
import java.net.MalformedURLException;... | 33.270936 | 130 | 0.547231 |
46ce3810c144f76cea846afd60aa824bd6c7dba6 | 1,277 | /*
Foilen Infra UI
https://github.com/foilen/foilen-infra-ui
Copyright (c) 2017-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.ui.upgrades.mongodb;
import java.util.List;
import java.util.stream.Collectors;
import org.springframew... | 29.697674 | 160 | 0.758027 |
6b0251133608916bd30ac616ac96b2a4906580d8 | 560 | package net.neoremind.haguard;
/**
* HaGuard抽象实现
*
* @author hexiufeng, zhangxu
*/
public abstract class AbstractHaGuard implements HaGuard {
/**
* 默认超时时间,默认10s,阻塞fountain主进程的时间
*/
private long defaultTimeoutMs = 10000;
@Override
public boolean takeTokenWithDefaultTimeout() {
re... | 20 | 60 | 0.685714 |
5630f063f7fb622501775f34697e2a04ba795b88 | 2,244 | package connect.ui.activity.wallet.adapter;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import connect.db.green.bean.ContactEntity;
import connect.ui.activity.R;
import co... | 27.036145 | 124 | 0.675579 |
87c3f6937921da36c133c71cbfb13351511c86e2 | 986 | package openmods.integration;
import com.google.common.collect.Lists;
import java.util.List;
import openmods.Log;
public class Integration {
private static final List<IIntegrationModule> modules = Lists.newArrayList();
private static boolean alreadyLoaded;
public static void addModule(IIntegrationModule module)... | 25.947368 | 103 | 0.693712 |
c809dd0fe19602ba53c15f30d9fa0ac7a78ac2d8 | 527 | package com.Yuzhen.ExerciseOnline;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
/**
* 统一异常处理
*/
@ControllerAdvice
public class GlobalExceptionHandleController {
@ExceptionHandler(value = Exc... | 27.736842 | 64 | 0.753321 |
7242cc0a100573aae8b62188053768ca14d5090e | 322 | package com.example.demo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author dequan.yu
* @version V1.0
* @description TODO
* @date 2019/11/27
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
private Integer id;
private String source;
... | 16.1 | 33 | 0.736025 |
54408c5c458fcbdf51d32a131c95a424ee66c5f0 | 689 | package gk.defpub.restservice.validation;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* UniqueUsername annotation.
* <p>
* Da... | 23.758621 | 61 | 0.748911 |
542b710678ac07a4c9b13085aeea92df8c99a158 | 972 | package com.datadog.profiling.auxiliary.async;
import com.datadog.profiling.controller.RecordingData;
import com.datadog.profiling.controller.RecordingInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.Instant;
import javax.annotation.Nonnull;
final class ... | 24.3 | 85 | 0.752058 |
1e404a8d3f6942a28f2f4199f6a6f314c9ed60a3 | 4,658 | /*
* Copyright 2018 Crown Copyright
*
* 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... | 33.753623 | 114 | 0.653499 |
1233c1c35076d738d8b10c48858ef39ddc7bd08d | 930 | package no.nav.registre.skd.consumer.command.tpsf;
import java.util.List;
import java.util.concurrent.Callable;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.web.reactive.function.client.WebClient;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class GetMelding... | 29.0625 | 116 | 0.654839 |
63ae6ae5344fa56fc613d9eb0698ec9728ae82f5 | 1,524 | /*
* Copyright (c) 1997, 2019 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: ... | 23.446154 | 85 | 0.655512 |
8f491c917b5d51bcfc966b0884257af3d58ba8b1 | 5,190 | package main1;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.sql... | 31.840491 | 163 | 0.67264 |
bcf91bb9867409dd51a063bc968075e417aea08e | 2,055 | package com.github.galleog.piggymetrics.account.event;
import com.github.galleog.piggymetrics.account.domain.Account;
import com.github.galleog.piggymetrics.account.domain.Saving;
import com.github.galleog.piggymetrics.account.repository.AccountRepository;
import com.github.galleog.piggymetrics.auth.grpc.UserRegistere... | 36.052632 | 94 | 0.722141 |
aab2cba3f89f67ccf3e4d5225d496b56b972573d | 762 | package ch.epfl.vlsc.truffle.cal.nodes.fifo;
import ch.epfl.vlsc.truffle.cal.CALException;
import com.oracle.truffle.api.frame.VirtualFrame;
import ch.epfl.vlsc.truffle.cal.nodes.CALExpressionNode;
import ch.epfl.vlsc.truffle.cal.runtime.CALFifo;
public class CALReadFIFONode extends CALExpressionNode {
@Chil... | 30.48 | 59 | 0.712598 |
25371c3ca80fa6f85b62fa3bac70f30c9a7b9aac | 1,535 | package edu.brown.cs.api;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import edu.brown.cs.catan.MasterReferee;
import edu.brown.cs.catan.Referee;
public class ActionFactoryTest {
@Test
public void testCreateNonexistantAction() {
Referee ref = new MasterReferee();
ActionFactory fac... | 24.758065 | 58 | 0.661889 |
714b3a23021c6a33a8613b7727f1243ee7b2753c | 2,707 | package net.stargraph.test;
/*-
* ==========================License-Start=============================
* stargraph-core
* --------------------------------------------------------------------
* Copyright (C) 2017 Lambda^3
* --------------------------------------------------------------------
* Permission is hereb... | 39.808824 | 98 | 0.666051 |
2bd2d5abe6e287cfa3e91bd2c42934ac47d38cba | 1,010 | package com.aits.kronos.controller.timeline;
import javafx.event.EventHandler;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.input.MouseEvent;
public class LabelTimeMouseEvent extends AbstractTimeLineEvent implements EventHandler<MouseEvent> {
private Label[] times;
p... | 29.705882 | 100 | 0.740594 |
b7edab6404ad10483da9a9286c084b5e85b8f394 | 1,463 | package com.mvp.expediademo.di.module;
import com.mvp.expediademo.constants.APIConstants;
import com.mvp.expediademo.di.scope.ApplicationScope;
import com.mvp.expediademo.http.thingstodo.SearchAPIService;
import dagger.Module;
import dagger.Provides;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInte... | 29.26 | 110 | 0.732741 |
637cc65c1b5a1d1ae1e3abbbbb2fbda8d919a616 | 2,191 | package org.anystub.http;
import org.anystub.AnyStubFileLocator;
import org.anystub.AnyStubId;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
@AnySettingsHttp(headers = "classHeader")
public class AnySettingsHttpExtractorTest {
@Tes... | 37.135593 | 104 | 0.695116 |
c7d5c40b804d0ea204d88b063f8fadbcc26a6f2a | 1,899 | /**
* Based on material from Digital Audio with Java, Craig Lindley
* ftp://ftp.prenhall.com/pub/ptr/professional_computer_science.w-022/digital_audio/
*/
package org.hyperdata.beeps.filters;
// The IIR highpass filter designed here has unity gain
public class IIRHighpassFilterDesign extends IIRFilterDe... | 28.772727 | 85 | 0.671406 |
73196864c23bbd8ca752173f1c6ac7f410eef4d6 | 1,354 | package com.algorand.utils;
import java.util.*;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.isda.cdm.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
impo... | 26.54902 | 120 | 0.762925 |
79def80e252b34e061c595dc862e5d303bb6d1ac | 284 | package net.smackem.jobotwar.gui;
/**
* Alternate entry point for fat jars.
* See https://stackoverflow.com/questions/52653836/maven-shade-javafx-runtime-components-are-missing
*/
public class JarMain {
public static void main(String[] args) {
App.main(args);
}
}
| 23.666667 | 101 | 0.704225 |
854ef5b00db3db5ddd9140302fee1955757e46bc | 2,309 | package com.smile.core.dao;
import com.smile.core.domain.SysRolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface SysRolePermiss... | 33.463768 | 77 | 0.442183 |
02a42507b8d6f055a601153dbd966f24b2ecc74f | 2,904 | package models;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.time.LocalDate;
@Entity
public class Orders
{
@Id
private int orderNumber;
private int productId;
private int memberId;
private int quantity;
private String brand;
privat... | 19.621622 | 185 | 0.631198 |
5e1fae7809cce4e2d076d8dd5689ca56763af02c | 3,432 | /*
* 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 ... | 45.157895 | 155 | 0.770105 |
c316f5e7e4d429db114234f1b172c364c9b83639 | 1,211 | package com.ozipin.filemaster.domain.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.http.HttpStatus;
/**
* 通用返回结果构造器
*
* @author ozipin
* @date 2021/03/31
*/
@ApiModel(value = "通用返回结果构造器")
public class CommonResultVoBuilder<T> {
@ApiMod... | 24.22 | 74 | 0.652353 |
bbecc469b228aab31bdd1a49a3acacb15b9771f2 | 586 | package com.skubit.comics;
import junit.framework.TestCase;
import android.os.Bundle;
public class SeriesFilterTest extends TestCase {
public void testFilter() throws Exception {
SeriesFilter filter = new SeriesFilter();
filter.creator = "a_creator";
filter.publisher = "a_publisher";
... | 29.3 | 90 | 0.709898 |
a40c5914408ed6523953073d9418a8f36287c9ec | 258 | package me.noodles.ss.inv;
import org.bukkit.ChatColor;
public class InvNames {
public static String Main;
static {
InvNames.Main = new StringBuilder().append(ChatColor.RED).append(ChatColor.BOLD).append("FROZEN").toString();
}
}
| 17.2 | 117 | 0.686047 |
217b3a3162cd65ebcabac4b177a5558b77e4e3d2 | 3,475 | package de.polocloud.modules.party;
import de.polocloud.api.PoloCloudAPI;
import de.polocloud.api.common.PoloType;
import de.polocloud.api.config.helper.Config;
import de.polocloud.api.exceptions.PoloTypeUnsupportedActionException;
import de.polocloud.api.module.CloudModule;
import de.polocloud.api.module.ModuleCopyTy... | 35.459184 | 139 | 0.72259 |
97da4315c5434157f8e3b85fc7d2b09d8b935e2b | 690 | package decorator.bverage.condiment.impl;
import decorator.bverage.Beverage;
import decorator.bverage.condiment.CondimentDecorator;
public class Soy extends CondimentDecorator{
Beverage beverage;
public Soy(Beverage beverage) {
this.beverage = beverage;
}
public String getDescription(){
... | 23.793103 | 54 | 0.615942 |
24e30bd72da5c75bbb8c4f1e8b88867198c06123 | 752 | /**
*
* Class PresentationElement.java
*
* Generated by KMFStudio at 14 April 2004 22:36:45
* Visit http://www.cs.ukc.ac.uk/kmf
*
*/
package uk.ac.ukc.cs.kmf.kmfstudio.uml.Foundation.Core;
public interface PresentationElement
extends
uk.ac.ukc.cs.kmf.kmfstudio.uml.UmlElement,
Element
{
/** Get the... | 20.324324 | 55 | 0.680851 |
bf08a598f0be8c951a605e910b0669fc731853bb | 420 | package com.leetcode.service;
import com.leetcode.common.PageReqBody;
import com.leetcode.model.comment.CommentReqBody;
import com.leetcode.model.response.APIResponse;
public interface CommentService {
APIResponse getComments(PageReqBody req);
APIResponse createComment(CommentReqBody request);
APIRespon... | 26.25 | 54 | 0.816667 |
e7418e7b86fa6c992ccec72f96bfdee6013098ff | 912 | package info.smart_tools.smartactors.database.cached_collection.exception;
import info.smart_tools.smartactors.database.cached_collection.ICachedCollection;
/**
* Exception for error in {@link ICachedCollection} getItem method
*/
public class GetCacheItemException extends Exception {
/**
* Empty construct... | 24 | 81 | 0.678728 |
6ab3ee64908f436b480c0c8cbff937f4e9168c3b | 2,448 | package com.nightlycommit.idea.twigextendedplugin.config.component.parser;
import org.jetbrains.annotations.NotNull;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserCo... | 32.210526 | 152 | 0.650735 |
a24d705ed586183b0e8e2d9ecd2fe207717f72a9 | 1,749 | package cap5;
// Classe que representa uma apólice de seguro de automóvel.
public class AutoPolicy {
private int accountNumber; // número da conta da apólice
private String makeAndModel; // carro ao qual a apólice é aplicada
private String state; // abreviatura do estado com duas letras
// construt... | 29.15 | 81 | 0.618067 |
33a92007e1166a4428ee5827860df257c82ad87d | 2,825 | package com.example.androidappcar;
import android.app.Activity;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.widget.Button;
import android.widget.SeekBar;
import android.widget.TextView;
public class SpeedLimit extends Activity {
Button saveButton, exitButton;
SeekBar forward... | 34.036145 | 91 | 0.666549 |
986951deb104173c3968a960ee62ade71ded56e9 | 3,465 | package eu.openminted.registry.core.dao;
import eu.openminted.registry.core.service.ServiceException;
import org.springframework.context.annotation.Scope;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityMana... | 33 | 130 | 0.705916 |
4a04ff87775c561df99568fe47453431522ce390 | 3,414 | package org.estudantinder.Features.Users;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
import io.restassured.http.ContentType;
import static io.restassured.RestAssured.given;
import javax.json.Json;
@QuarkusTest
public class CreateUserTest {
@Test
public void testCreateUs... | 29.431034 | 60 | 0.515231 |
4c0ecde9bb94e3e64cf1cd87e15e3a1ed307b2f2 | 710 | package de.melanx.skyblockbuilder.config;
import de.melanx.skyblockbuilder.template.TemplateInfo;
import io.github.noeppi_noeppi.libx.annotation.config.RegisterConfig;
import io.github.noeppi_noeppi.libx.config.Config;
import net.minecraft.core.BlockPos;
import java.util.List;
import java.util.Map;
@RegisterConfig("... | 32.272727 | 112 | 0.749296 |
c9a575e98f7343f720a71be1dc4ebbcd99488449 | 8,417 | /*
* 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 ... | 26.805732 | 122 | 0.675538 |
f8066764ec82e9fc6bbbbbca0c100f5a723499ff | 1,266 | package com.qypt.just_syn_asis_version1_0.model;
/**
*
* @author Administrator justson
*
*/
public class EventBussMessage {
private int subscriber;
private String message;
private Object data;
private EventBussMessage(Builder builder)
{
this.subscriber=builder.subscriber;
this.message=builder.message;
... | 17.830986 | 48 | 0.703002 |
07ceb85d0bf0785f0fb7924e1f81ea98e416725b | 1,696 | package com.percyvega.lab4sentence.controller;
import java.net.URI;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery... | 29.754386 | 75 | 0.73408 |
4c8c7418b6a9172774ebe06d18c34e319c369f22 | 273 | package com.cloud.tao.net.model.ordermodel.req;
import com.cloud.tao.net.base.BaseReq;
/**
* Created by gezi-pc on 2016/10/23.
*/
public class AddMessage extends BaseReq{
public String parent_order_id;
public String sub_order_id;
public String message;
}
| 18.2 | 47 | 0.732601 |
7611866d8ecebc22de21dba18e11cf8133e0a9a4 | 383 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.data.aiservice.priceoptimizer.config.sync response.
*
* @author auto create
* @since 1.0, 2019-12-11 20:32:24
*/
public class AlipayDataAiservicePriceoptimizerConfigSyncResponse extends AlipayResponse {
private ... | 21.277778 | 89 | 0.775457 |
122a4877cf7daf9d736ad6b7c6c323b0270ccec1 | 3,703 | /*
* Copyright 2017 Marcin Szałomski
*
* 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... | 38.175258 | 149 | 0.749122 |
209ac07ae3bad45ace1ce1cf841e7945eb145f7b | 2,229 | /*
* 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 ... | 39.105263 | 89 | 0.65231 |
0008702c1196847ceb1d33cae038aea0e58e2bff | 1,340 | import java.util.LinkedList;
class Solution {
public int shortestPathLength(int[][] graph) {
int n = graph.length;
int finalState = (1 << n) - 1; // if n = 4; 1 << 4 => 10000; 10000 - 1? = 1111
LinkedList<int[]> q = new LinkedList<>();
// int[0][1101]: 0: current_node, 1101: visited... | 37.222222 | 99 | 0.404478 |
04dcf3e2a1134caae3266c3cf5bf6da06a78f23c | 4,359 | package com.outven.bmtchallange.activities;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
im... | 37.25641 | 128 | 0.665749 |
292bc60d68f3763fb2bcc386ba6192b2503a267c | 2,290 | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.adapters.repositoryservices.graphrepository.repositoryconnector;
import org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryC... | 37.540984 | 134 | 0.58952 |
e07335bcb8bb134c9594fa83d8bb15e0b75ecf66 | 2,343 | package marubinotto.piggydb.ui.page.control;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import marubinotto.piggydb.ui.page.control.CalendarFocus;
import marubinotto.util.time.DateTime;
i... | 27.244186 | 74 | 0.747759 |
fad8dca431591ac4a6c0f99d794020d15c833e90 | 15,119 | package io.flutter.plugin.platform;
import static io.flutter.embedding.engine.systemchannels.PlatformViewsChannel.PlatformViewTouch;
import static org.junit.Assert.*;
import static org.mockito.Matchers.*;
import static org.mockito.Mockito.*;
import android.content.Context;
import android.content.res.AssetManager;
imp... | 40.642473 | 103 | 0.737946 |
4b1a0d9f447460d562badbe6c3f6316916d8eca0 | 221 | package Test.Shildt_G.System_class;
/**
* Created by Антон on 18.05.2017.
*/
public class ShowUserDir {
public static void main(String[] args) {
System.out.println(System.getProperty("user.name"));
}
}
| 20.090909 | 60 | 0.669683 |
94afd0369496be3b4d213b5c6546ea16eb439005 | 4,673 | /**********************************************************\
| |
| hprose |
| |
| Official WebSite: http://www.hprose.com/ |
| ... | 33.378571 | 124 | 0.462016 |
622dd484587058caa5d05d6ed2620e6c3253aca3 | 2,144 | /**
* copyright © Nusino Technologies Inc, 2021, All rights reserved.
* dhuang05@gmail.com
*/
package com.nusino.microservices.service.buscalendar.expr.stdexpr.func.builtin;
import com.nusino.microservices.service.buscalendar.expr.stdexpr.func.AddOnExprHandler;
import com.nusino.microservices.service.buscalendar.ut... | 32 | 93 | 0.602146 |
fbed6d44d703afcf17931cb341fb430e3a5d1aee | 33,596 | TOPIC:-SERIALIZATION
--------
VIDEO NO=3
---------
Customized Serialization(Part -1)(1:24:54)
NUMBER OF PICTURES=NULL
------------------
VIDEO COMPLETED=YES
-----------------
(Just check it once)
IMPORTANT EXAMPLES:-
----------------->START OF EXAMPLES<---------------------------
Example=1
=====... | 21.674839 | 100 | 0.458001 |
9757180fd3cc20ca648e29dd90643583695992ad | 3,656 | package org.cirdles.topsoil;
import org.cirdles.topsoil.plot.PlotType;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Created by sbunce on 6/27/2016.
*/
public enum IsotopeSystem {
//Isotope abbreviation, isotope name, array of default headers as strings
GENERIC("Gen", ... | 25.388889 | 95 | 0.536652 |
88062f20926b787dd7ff6c9d24dff009a3b88fb0 | 133 | package com.jzd.jzshop.entity;
/**
* @author LXB
* @description:
* @date :2019/12/2 17:15
*/
public class SendVertifyEntity {
}
| 13.3 | 32 | 0.661654 |
c9437761e0dd5e16989a84e28c367cb9b6f790d3 | 3,908 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchdefinition.processing;
import com.yahoo.document.DataType;
import com.yahoo.document.Field;
import com.yahoo.document.ReferenceDataType;
import com.yahoo.searchdefinition.DocumentGraphValida... | 42.945055 | 104 | 0.62129 |
c4b36a16917ade6ef849ed00071be32e00a139b0 | 3,181 | package sitevisit.CVSB_3910;
import net.serenitybdd.junit.runners.SerenityRunner;
import net.thucydides.core.annotations.Steps;
import net.thucydides.core.annotations.Title;
import org.junit.Test;
import org.junit.runner.RunWith;
import pages.TestPage;
import steps.*;
import steps.composed.TestTypeCategoryComp;
import... | 34.204301 | 126 | 0.739076 |
3e20a1cc429e77b4e9b5b9889bbb0e35592712a0 | 1,292 | package com.rideaustin.clients.configuration.elements;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import org.springframework.stereotype.Component;
import com.google.common.collect.ImmutableMap;
import com.rideaustin.clients.configuration.ConfigurationElement;
import com.rideaustin.c... | 34.918919 | 109 | 0.816563 |
33b4052cc48f1f049564f7dd5d8544ad9b2e8e29 | 972 | package com.google.zxing.client.result;
public enum ParsedResultType {
ADDRESSBOOK,
EMAIL_ADDRESS,
PRODUCT,
URI,
TEXT,
GEO,
TEL,
SMS,
CALENDAR,
WIFI,
ISBN,
VIN;
static {
ADDRESSBOOK = new ParsedResultType("ADDRESSBOOK", 0);
EMAIL_ADDRESS = new Parsed... | 29.454545 | 125 | 0.608025 |
3e31b278f1e6e2c2e71bc97ac71d57987fcb8c10 | 901 | package com.corkili.pa.common.test.dto;
import static org.junit.Assert.*;
import org.junit.Test;
import com.corkili.pa.common.annotation.Param;
import com.corkili.pa.common.annotation.Params;
import com.corkili.pa.common.dto.Query;
import com.corkili.pa.common.dto.util.Querys;
public class TestQuery {
@Params(... | 28.15625 | 78 | 0.649279 |
1f147a35116d24eec4583793e7b22d27cce9142e | 4,263 | /*
* (c) Copyright 2021 Palantir Technologies 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 ... | 28.804054 | 93 | 0.699507 |
408caf662998ff5f589470c94eb747f5b5f1a1a1 | 2,480 | // **********************************************************************
//
// <copyright>
//
// BBN Technologies
// 10 Moulton Street
// Cambridge, MA 02138
// (617) 873-8000
//
// Copyright (C) BBNT Solutions LLC. All rights reserved.
//
// </copyright>
// ***************************************************... | 27.555556 | 109 | 0.611694 |
0a86a3fef474e83fe327f984f3fd0fbca106d368 | 1,063 | package net.ravendb.client.documents.operations.replication;
public class ReplicationHubAccess {
private String name;
private String certificateBase64;
private String[] allowedHubToSinkPaths;
private String[] allowedSinkToHubPaths;
public String getName() {
return name;
}
public... | 24.72093 | 74 | 0.708373 |
bef639fca0c99f82cbb169109d5807c3cd40e320 | 2,096 | package de.slackspace.openkeepass.api;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import de.slackspace.openkeepass.crypto.Sha256;
import de.slackspace.openkeepass.domain.KeyFileBytes;
import de.slackspace.openkeepass.exception.KeyFileUnreadableE... | 34.360656 | 119 | 0.695134 |
54c051b856b513c43a005c203e8176baf36bdb61 | 728 | package creational.singleton.example2.after.factory;
import creational.singleton.example2.after.director.Converter;
import creational.singleton.example2.after.implementations.JSONConverter;
import creational.singleton.example2.after.implementations.XMLConverter;
import creational.singleton.example2.after.implementatio... | 30.333333 | 73 | 0.674451 |
bd9edad65c17703634d1cb1f6b06d7685d22ffef | 987 | package fr.cg44.plugin.socle.datacontroller;
import com.jalios.jcms.BasicDataController;
import com.jalios.jcms.ControllerStatus;
import com.jalios.jcms.Data;
import com.jalios.jcms.plugin.PluginComponent;
import com.jalios.util.Util;
import generated.FicheArticle;
public class FicheArticleDataController extends Bas... | 32.9 | 96 | 0.765957 |
afbfc84dc19f2df876332e4fdfe1061c0d8d7925 | 1,047 | package io.hfgbarrigas.reactive.dbcontext.context;
import io.hfgbarrigas.reactive.dbcontext.db.Connection;
import java.util.Objects;
public class DefaultTransactionalContext implements TransactionalContext {
private Connection connection;
private DefaultTransactionalContext() {
}
public DefaultTra... | 24.348837 | 75 | 0.659026 |
c7a6533cbbd74d608766d0c6ee3959a0f080c0d5 | 3,603 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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... | 44.481481 | 119 | 0.64363 |
82c101085e94d8b5d22ad574bc4b383da69c57d8 | 2,910 | package com.webcheckers.ui;
import com.google.gson.Gson;
import com.webcheckers.appl.GameCenter;
import com.webcheckers.model.GameView;
import com.webcheckers.model.Player;
import spark.*;
import java.util.HashMap;
import java.util.logging.Logger;
import com.webcheckers.util.Message;
import java.util.Objects;
public... | 28.811881 | 86 | 0.646048 |
579e08107c6e563e325b1f5771b826e4305b5f8e | 495 | package io.undertow.server.handlers.resource;
import java.io.File;
import java.net.URL;
import java.nio.file.Path;
import java.util.Date;
import java.util.List;
public interface Resource {
String getPath();
Date getLastModified();
String getLastModifiedString();
String getName();
boolean isDirectory();
Lis... | 14.558824 | 45 | 0.743434 |
ff4837aa87088a3b0100cb2a1642eaeb01d69592 | 11,446 | package org.bndly.common.antivirus.impl;
/*-
* #%L
* Antivirus Impl
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... | 27.514423 | 157 | 0.687751 |
a528d5c679a8bb422eaa8c1f9fcd011b8a417ba1 | 23,080 | class wDNZsvE3JeSur {
}
class PNlvYbej2NO {
}
class cB1pdzBW5MkqG {
}
class hQ {
}
class McE9p_g3WlZH {
public static void CjL6 (String[] dj) throws E_BYVT4RD {
int wEQvz3x = !new DnN5_Vj8bfW()[ true.nY0nJ0DdjK] = -true.QlZolo();
true[ !!!HjOB0edBAMkT.Zaf];
int lLIZQnr = new boole... | 39.452991 | 309 | 0.494584 |
e73e02dc5e0a0ac4e055c05bd727f91cef3edab7 | 738 | package cn.nbbandxdd.survey.exam.controller.vo;
import lombok.Data;
import java.time.LocalDateTime;
/**
* <p>问卷VO。
*
* @author howcurious
*/
@Data
public class ExamVO {
/**
* <p>问卷编号。
*/
private String examCd;
/**
* <p>问卷类型。
*/
private String typCd;
/**
* <p>重复作答标识... | 12.3 | 47 | 0.48916 |
64aa8833b734aea75df5e95a40a27aaa9b32db96 | 3,227 | /*
* 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.950495 | 123 | 0.657267 |
5f98c771646abc9f96fd446a8cd2dbab88b22ac3 | 2,003 | package br.com.rgb;
import java.io.*;
/**
* Enum com textos de mesnagens utilizadas entre várias classes para facilitar o envio de parâmetros de String,
* diminuindo a necessidade de checar se o parâmetro enviado é inválido ou não.
* Também é utilizada principalmente para comunicar à engine qual foi a ação do usuá... | 27.438356 | 118 | 0.648527 |
e6de819595a4d1ca5b0ce958795ba2b4c127a74b | 489 | package cn.edu.cug.cs.gtl.series.ml.clustering.kmedoids;
import cn.edu.cug.cs.gtl.ml.dataset.DataSet;
import cn.edu.cug.cs.gtl.ml.dataset.Label;
import cn.edu.cug.cs.gtl.ml.distances.DistanceMetric;
import cn.edu.cug.cs.gtl.series.ml.Series;
public class PAMClusterer extends cn.edu.cug.cs.gtl.ml.clustering.kmedoids.P... | 34.928571 | 103 | 0.770961 |
844839fe769c43fc94408a27ec47521219a3a3cc | 6,716 | /*-
* #%L
* anchor-gui-common
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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 wi... | 37.104972 | 100 | 0.641155 |
14bad54b34e0495a71f025fa8da7335c350f01ae | 5,483 | /**
* Copyright 2018 Kais OMRI.
*
* 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... | 41.225564 | 114 | 0.667518 |
aec9a01b631a0009c3b3d073c0a4f46f9186e97a | 738 | package com.lucidworks.apollo.suggester;
import java.util.List;
import junit.framework.TestCase;
public class TestFileQueryCollector extends TestCase {
public void testFileQueryCollector( ) {
MockSuggestionProcessor sugProc = new MockSuggestionProcessor( );
FileQueryCollector fileQC = new FileQueryCol... | 33.545455 | 103 | 0.714092 |
2e781de25eaf32233a94073b005964b8d041d855 | 383 | package com.lfp.zt.javabase.annontation;
import java.lang.annotation.*;
/**
* Project: zt-javabase
* Title:
* Description:
* Date: 2019-01-06
* Copyright: Copyright (c) 2019
* Company:
*
* @author ZhuTao
* @version 2.0
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Inherited... | 16.652174 | 40 | 0.699739 |
4bf553866bf3d3912d3e95092a6103722fa261be | 3,255 | package ecomod.common.blocks;
import ecomod.api.EcomodAPI;
import ecomod.api.EcomodStuff;
import ecomod.api.pollution.PollutionData;
import ecomod.common.pollution.PollutionUtils;
import ecomod.common.pollution.config.PollutionSourcesConfig;
import ecomod.common.utils.EMUtils;
import ecomod.core.EMConsts;
import ecomo... | 38.294118 | 212 | 0.743472 |
e3a240c2404b7aa1c518cad6354ac4687d79be36 | 732 | package com.zensar.Spring.main;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.zensar.Spring.performers.Performer;
import com.zensar.Spring.performers.PoeticJuggler;
public class ZensarIdolMain {
public static void main(S... | 27.111111 | 84 | 0.781421 |
bea30b907e9bc00bb6c19501cb9504aca59da1dc | 851 | package com.myframe.dao.mybatis.dialect;
/**
* Oracle物理分页实现。
*
* @author wyzfzu (wyzfzu@qq.com)
*/
public class OracleDialect extends Dialect {
public String getLimitString(String sql, int offset, int limit) {
sql = sql.trim();
boolean isForUpdate = false;
if (sql.toLowerCase().endsWith(" for upd... | 26.59375 | 78 | 0.607521 |
c90150bccce21b2384f141cbd3f437e7701f9560 | 2,081 | //
// $Id$
package com.threerings.bang.client.bui;
import com.jme.renderer.Renderer;
import com.jmex.bui.BContainer;
import com.jmex.bui.BDecoratedWindow;
import com.jmex.bui.BLabel;
import com.jmex.bui.background.ImageBackground;
import com.jmex.bui.layout.GroupLayout;
import com.threerings.bang.util.BasicContext;... | 30.15942 | 99 | 0.688611 |
7db415b7f410b39ff9f716bb4bf447d1a228f9e4 | 29,426 | package com.gb.istandwithrefugeesapp;
/*
* Copyright (C) 2016 Dev-iL
* 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 r... | 42.708273 | 143 | 0.625433 |
d75eb77b6a422ac1bca920d547b998c716b5bf1e | 1,540 | /*
* Copyright (C) 2015 Brian Dupras
*
* 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... | 37.560976 | 128 | 0.736364 |
b16f6c49889ad726bc95900015acfc23f110d741 | 2,558 | /*
* Copyright (C) 2018-2022 FusionSoft
*
* 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... | 35.041096 | 85 | 0.507819 |
e4ca0faa6c189719cc5beab286c5bbba5eda4bfa | 411 | package baobab.pet.data.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import baobab.pet.data.domain.Book;
import baobab.pet.data.domain.User;
import baobab.pet.data.domain.WriteAccess;
public interface WriteAccessRepository extends JpaRepository<WriteAccess, Long> {
WriteAccess findOne... | 34.25 | 81 | 0.815085 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.