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 |
|---|---|---|---|---|---|
1e97e9d0af17bdf9305986969f927339e1068e65 | 6,506 | package study.huhao.demo.domain.contexts.blogcontext.blog;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.mockito.InOrder;
import study.huhao.demo.domain.core.common.excpetions.EntityNotFoundException;
import java.util.Optional;
import java.... | 35.358696 | 113 | 0.637412 |
983e341dd11648d92dd0653604133918c9a35bf9 | 17,222 | // Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 29.091216 | 140 | 0.705609 |
bc9227e21a7da026d4ca4de1aebbdc25f7c00e7b | 1,290 | package com.penglecode.xmodule.rabbitmq.examples.example1;
import com.penglecode.xmodule.rabbitmq.examples.AbstractSpringAmqpExample;
import org.junit.jupiter.api.Test;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotati... | 34.864865 | 116 | 0.683721 |
82e30f02ed5fe88a4d489498f4a16fca108d89b4 | 2,489 | package io.smallrye.mutiny.operators.uni.builders;
import static io.smallrye.mutiny.helpers.EmptyUniSubscription.propagateFailureEvent;
import java.util.concurrent.CompletionException;
import java.util.concurrent.CompletionStage;
import java.util.function.Supplier;
import io.smallrye.mutiny.operators.AbstractUni;
im... | 33.186667 | 114 | 0.62274 |
4210f4e5e5b947729c80e4635ffb616781b9cd25 | 756 | package jp.co.tis.logic;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import javax.annotation.Resource;
import oscana.s2n.seasar.framework.beans.util.BeanMap;
import javax.inject.Inject;
import java.io.Serializable;
import oscana.s2n.struts.GenericsUtil;
import nablarch.... | 23.625 | 101 | 0.784392 |
ca67213192bae158655b3d507075cb9938f398b3 | 4,045 | package xyz.gupton.nickolas.beepsky;
import discord4j.core.DiscordClient;
import discord4j.core.GatewayDiscordClient;
import discord4j.core.object.entity.User;
import discord4j.core.object.entity.channel.Channel.Type;
import discord4j.core.object.entity.channel.GuildChannel;
import discord4j.core.object.entity.channel... | 32.620968 | 91 | 0.670952 |
fa2b872c479903196c097cc0a880c9384ba597e7 | 11,445 | package net.smackem.jobotwar.lang;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.EmptyStackException;
import java.util.List;
import java.util.Objects;
/**
* Executes a compiled {@link Program}.
*/
public final class Interpreter {
private static final Logg... | 36.449045 | 105 | 0.517868 |
81fdd2e400c3bee1d2fae9dfe66ff127a693bff6 | 1,560 | /*******************************************************************************
* Copyright (c) 2016 Royal Bank of Scotland
*
* 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
*
* htt... | 35.454545 | 88 | 0.677564 |
1e72580f82692cf6d77c27e54e1315da4552e9d6 | 2,244 | /*
* MIT License (MIT)
* Copyright © 2016 WISEKIDDO.com - https://github.com/wisekiddo/
*
* 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 limitati... | 39.368421 | 84 | 0.688503 |
d9a3b48a5b4fbf9960e4ff98be9dc3495a9b0f68 | 4,110 | /*
* Copyright (C) 2011 Everit Kft. (http://www.everit.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... | 41.515152 | 129 | 0.741363 |
ecd86f8e59bccfd1748815900cd9e7ec30eb1356 | 5,841 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.5-b02-fcs
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2007.08.13 at... | 23.457831 | 117 | 0.557952 |
e05fb1ad9688dcc538926d7f9829283c046869dc | 3,982 | package com.atexpose.dispatcher.channels;
import com.atexpose.ProjectProperties;
import com.atexpose.errors.RuntimeError;
import com.atexpose.util.ByteStorage;
import com.atexpose.util.FileRW;
import io.schinzel.basicutils.Checker;
import io.schinzel.basicutils.UTF8;
import io.schinzel.basicutils.state.State;
import ... | 30.166667 | 96 | 0.571823 |
cc6cebfc1bc5b88705f69950e91fc87ad0379aa5 | 130 | import java.lang.*;
class future
{
public static void main(String args[])
{
System.out.println("Yaswanth Marries Soundarya");
}
}
| 14.444444 | 49 | 0.730769 |
95e44e2f736d232a2adea0037c2fd132df5d5e1f | 7,065 | package com.jadaptive.app.role;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Se... | 24.616725 | 106 | 0.724416 |
c9cabe7b086c22b7b9de0f81584df9ed7d39a818 | 318 | package space.devport.wertik.tracker.system.struct;
import lombok.Getter;
import space.devport.wertik.tracker.ClientVersion;
public class VersionEntry extends TrackEntry {
@Getter
private final ClientVersion version;
public VersionEntry(ClientVersion version) {
this.version = version;
}
}
| 21.2 | 51 | 0.754717 |
fd439c476607d2a8b4ae20fe496534e20f8b4c0f | 4,690 | package org.usfirst.frc.team1746.auton;
import org.usfirst.frc.team1746.robot.Conveyor;
import org.usfirst.frc.team1746.robot.Drivetrain;
import org.usfirst.frc.team1746.robot.GearIntake;
import org.usfirst.frc.team1746.robot.Loader;
import org.usfirst.frc.team1746.robot.Shooter;
import org.usfirst.frc.team1746.robot.... | 30.064103 | 138 | 0.744136 |
29ad3c816e10888613f26100d3011be345cabe7b | 6,201 | /*
* Copyright (c) 2015 Washington State Department of Transportation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later ver... | 25.623967 | 85 | 0.563619 |
022a4fb64b1933ed59e078cfb14079deefea5cfe | 1,845 | package com.firetower.data_generator.common.models;
import com.firetower.data_generator.common.enums.MetricType;
import com.firetower.data_generator.common.enums.OperatingSystemType;
import javax.persistence.*;
import java.util.Date;
public class Metric {
private Long id;
private Date date;
priva... | 19.83871 | 124 | 0.659079 |
3184267e3f965cf10deccac14baedcdb4eb699df | 3,350 | /*------------------------------------------------------------------------------
* COPYRIGHT Ericsson 2013
*
* The copyright to the computer program(s) herein is the property of
* Ericsson Inc. The programs may be used and/or copied only with written
* permission from Ericsson Inc. or in accordance with the terms ... | 27.235772 | 105 | 0.571642 |
e31718471673fe5a67717b31f5ee87e676e28eae | 3,347 | package book.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
impor... | 28.12605 | 87 | 0.714969 |
a59735fcfba15c8f151cf0939ea79c0a92fc7a6f | 2,558 | /*
* Copyright 2017 The Mochalog Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 32.794872 | 91 | 0.678264 |
f621542f13d60cd45cdc9971c4ed520fef7df68d | 3,053 | package org.motechproject.scheduletracking.api.domain.search;
import org.junit.Test;
import org.motechproject.scheduletracking.api.domain.Enrollment;
import org.motechproject.scheduletracking.api.domain.Schedule;
import org.motechproject.scheduletracking.api.repository.AllEnrollments;
import java.util.ArrayList;
impo... | 52.637931 | 231 | 0.75172 |
f23676cbdf7b5515d82d659e875c49bb7cd463d7 | 6,943 | import java.io.*;
import java.util.*;
public class DataParser {
File file;
String filepath = "C:/Users/JonFrankline/Desktop/cs445data";
BufferedReader br;
FileReader fr;
BufferedWriter bw;
FileWriter fw;
String readpath;
String writepath;
public DataParser(String readname, String writename){
readpath = fil... | 19.668555 | 90 | 0.563589 |
5c24784870f6454987768fed10e029f354fefc44 | 247 | public class IgneousRock extends Rock
{
public IgneousRock(int num, double grams)
{
super(num, grams);
setDescription("Igneous rocks are crystalline solids " +
"\nwhich form directly from the cooling of magma.");
}
}
| 24.7 | 62 | 0.668016 |
b6110affc2fbd6450a0234cd0995c6328615b866 | 681 | package ru.yandex.qatools.allure.data.providers;
import ru.yandex.qatools.allure.data.AllureXUnit;
/**
* @author Dmitry Baev charlie@yandex-team.ru
* Date: 06.12.13
*/
public class XUnitDataProvider extends AbstractDataProvider {
private static final String TEST_RUN_TO_XUNIT_XSL = "xsl/testrun-to-xuni... | 22.7 | 83 | 0.684288 |
2ec0e6a2897c5b76dee761cae8ff14e7e82f69e5 | 722 | package com.template.springboot.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.template.springboot.dao.IEmployeeDAO;
import com.template.springboot.model.Employee;
import com.template.springboot.model.Employees;
@Service
public class ... | 24.066667 | 74 | 0.785319 |
14e60a459fe9e512cab97fbe88625472ca71692b | 2,595 | package com.lvshandian.lemeng.adapter.mine;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.lvshandian.lemeng.R;
import com.lvshandian.lemeng.adapter.CommonAdapter;
import com.lvshandian.lemeng.adapter.ViewHolder;
import com.lvshand... | 35.547945 | 139 | 0.700193 |
0173ff3873a92b003145798b2eef3d02c5371a36 | 287 | /**
* Open-source Game Boy inspired game.
*
* Created by tom_mai78101. Hobby game programming only.
*
* All rights copyrighted to The Pokémon Company and Nintendo.
*/
package common;
public interface Tileable {
public static int WIDTH = 16;
public static int HEIGHT = 16;
}
| 19.133333 | 63 | 0.714286 |
948ddda52e2d5255b722894310e6b441737f0a2c | 1,189 | package com.ruoyi.ware.service;
import com.ruoyi.ware.domain.WareOrderTask;
import java.util.List;
/**
* 库存工作单Service接口
*
* @author xuxing
* @date 2021-08-23
*/
public interface IWareOrderTaskService
{
/**
* 查询库存工作单
*
* @param id 库存工作单主键
* @return 库存工作单
*/
public WareOrderTask s... | 18.292308 | 84 | 0.617325 |
2e7d5d2b9a9e2a44054548ff304ca56912a11965 | 2,371 | package nl.saalks.springbootvuejs.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import static org.springframework.test.util.AssertionErrors.assertTrue;
class Day2Test implements Advent... | 29.6375 | 88 | 0.647828 |
b3f6f17b9e1d7e2fe749eb8b1bc31fe0b623ba3f | 5,020 | package com.jagex;
public class Class18 implements Interface12, Interface5 {
Object[][] anObjectArrayArray184;
Class454[][] aClass454ArrayArray185;
void method627(RSByteBuffer var1, int var2) {
if(var2 == 3) {
int var3 = var1.readUnsignedByte(520834722);
if(null == this.anObj... | 33.245033 | 127 | 0.574303 |
14a2a49728402dee2e317d949f10aebb865fa311 | 1,879 | package com.github.wz2cool.elasticsearch.operator;
import com.github.wz2cool.elasticsearch.model.FilterMode;
import org.elasticsearch.index.query.MatchQueryBuilder;
import org.elasticsearch.index.query.Operator;
import org.elasticsearch.index.query.QueryBuilder;
import java.util.Objects;
public class MatchOperator i... | 26.464789 | 93 | 0.659393 |
fe5e894d1f6529a2dde11ae4f4820988956d8814 | 5,849 | package org.firstinspires.ftc.teamcode.Movement;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.hardware.DcMotor;
import org.firstinspires.ftc.teamcode.util.Constants;
import org.firstinspires.ftc.teamcode.util.Angle;
import org.firstinspires.ftc.teamcode.util.Hardware;
import org.firstin... | 33.232955 | 145 | 0.674474 |
c1e13e1feea5a0bae692724ee625799115ebd369 | 1,872 | /**
* Copyright 2016 StreamSets Inc.
* <p>
* Licensed under 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 ... | 40.695652 | 107 | 0.740385 |
dbb619176fb3f4edbab8995a57e319af834f175c | 783 | package net.arctics.clonk.c4script.typing;
import java.util.Iterator;
import net.arctics.clonk.Core;
public class ErroneousType implements IRefinedPrimitiveType {
private static final long serialVersionUID = Core.SERIAL_VERSION_UID;
private final String erroneousTypeString;
public ErroneousType(final String erron... | 34.043478 | 115 | 0.795658 |
67f2e0b60487e3cb62b0f80bccfe17ff6a0f09df | 1,519 | package co.edu.javeriana.negocio;
import java.math.BigDecimal;
import java.util.Date;
public class Candidato extends Persona {
@SuppressWarnings("compatibility:3633362395647490550")
private static final long serialVersionUID = 1L;
private BigDecimal codigo;
private String nombreCompleto;
pri... | 29.211538 | 127 | 0.666228 |
1036cbae5228f82bc991c997b130d2f1e661f074 | 473 | package com.me.diankun.drawdemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
/**
* Created by diankun on 2016/3/14.
*
* http://blog.csdn.net/stevenhu_223/article/details/9229337
*/
public class QuadLineActivity extends AppCompatActivity {
@Override
protected vo... | 23.65 | 61 | 0.712474 |
a972dd94395a8a13f436bb166d0763f1cf72837b | 13,352 | /**Copyright 2016, University of Messina.
*
* 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... | 47.516014 | 259 | 0.625674 |
fa7a7dcb68dda4be373adb5f7cd0b7ae933546f8 | 3,420 | /*
* Copyright (C) 2018 Black Duck Software Inc.
* http://www.blackducksoftware.com/
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Black Duck Software ("Confidential Information"). You shall not
* disclose such Confidential Information and shall use it only in
* a... | 36.774194 | 117 | 0.660819 |
6c697a4323b93f84a2f23ced0adb8026146e8fb2 | 10,624 | /**
* 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... | 37.146853 | 115 | 0.637895 |
f21fbefc977faf1119f38015b6ea3e95feb8f9aa | 3,497 | package rs.ac.ni.pmf.web.config;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springf... | 36.427083 | 101 | 0.725193 |
c65c948a3da06676c76d78bb4e9407b629bea832 | 1,487 | package com.alibaba.rocketmq.common.admin;
/**
* 按时间回溯消费进度
*
* @author: manhong.yqd<jodie.yqd@gmail.com>
* @since: 13-9-12
*/
public class RollbackStats {
private String brokerName;
private long queueId;
private long brokerOffset;
private long consumerOffset;
private long timestam... | 19.311688 | 59 | 0.623403 |
4d8a5052251c1b8c06d7244899202ec87b90dc00 | 393 | package org.patientview.api.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation to exclude methods from swagger documentation
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Re... | 26.2 | 59 | 0.80916 |
c14e3cff53c4c1018fa485e5e983dbb46c7d9361 | 1,932 | /*
* Copyright (c) 2021 dzikoysk
*
* 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... | 28.411765 | 100 | 0.637681 |
fa1b7c7b9702e7a72c0d4a3f28766e231bf7142d | 460 | package presentacion.vistaPrincipal;
import java.awt.Component;
import javax.swing.JPanel;
public abstract class VistaPrincipal {
private static VistaPrincipal vistasPrincipal;
public static VistaPrincipal getInstance() {
if (vistasPrincipal == null)
vistasPrincipal = new VistaPrincipalImp();
return vistas... | 20.909091 | 51 | 0.786957 |
c485376fd5814cf94a02fb94919c274b4094e179 | 5,792 | package org.lagonette.app.app.widget.performer.portrait;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomSheetBehavior;
import org.lagonette.app.BuildConfig;
import org.lagonette.app.R;
import org.lagonette.app.app.activity.PresenterActivity;
import org.lagonette.app.app.widget.p... | 35.317073 | 120 | 0.732044 |
8ca3ed5e04ed6481c6ad30a267256e17bf20ca5c | 825 | package edata.web.controller.nasa;
import edata.service.InformationService;
import edata.service.nasa.PowerPressureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@Reque... | 34.375 | 113 | 0.82303 |
17bfe362819700b490e66d7ef4ca24b2bd5817c4 | 8,305 | package com.ms.meizinewsapplication.features.base.view.iview;
import android.app.Activity;
import android.content.Intent;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.NavigationView;
import android.support.design.widget.TabLayout;
import android.support.v4.view.GravityCo... | 34.460581 | 87 | 0.639494 |
854a4d59195b289afb2f98d411bd19d6fe71fcd3 | 2,708 | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... | 33.85 | 98 | 0.629985 |
76814f9647ebc26de6093cc82acb6ee6a76d1a07 | 8,514 | package com.baomidou.plugin.idea.mybatisx.smartjpa.operate.dialect.oracle;
import com.baomidou.plugin.idea.mybatisx.smartjpa.common.SyntaxAppender;
import com.baomidou.plugin.idea.mybatisx.smartjpa.common.appender.AreaSequence;
import com.baomidou.plugin.idea.mybatisx.smartjpa.common.appender.JdbcTypeUtils;
import com... | 42.57 | 209 | 0.642824 |
d07438531499fc2c22eb87fc8fd826290227d1cf | 1,798 | package disaster.com.disastermanagement;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.BaseAdapter;
im... | 28.539683 | 116 | 0.720245 |
5e7091dff80a101b0fe841fee9bcf549ed8c8820 | 7,940 | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
* Unless r... | 37.45283 | 100 | 0.632997 |
c9be5ca55cdf6d0315d4306f916e7d7b2fbb1015 | 41,986 | /*
* 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.or... | 49.805457 | 120 | 0.628852 |
1e5289503cc89b06bdaf2a5de423c5f9bff2adf8 | 21,388 | /*
* Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech)
*
* 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
... | 38.261181 | 132 | 0.618711 |
5351f94303424eef314baf53e7b1b9b1f9771006 | 77 | package com.gof.builder.vers3;
public enum Transmission {
MANUAL, AUTO;
}
| 12.833333 | 30 | 0.74026 |
e2c09235d32656253c524c5452fbb668d28bd3bf | 1,427 | // tag::sample[]
package giis.demo.descuento;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.*;
/**
* Clientes de la entidad bancaria, mapeados directamente a la tabla Cliente.
* A usar Spring Data define los atributos que seran usados para autogenerar l... | 47.566667 | 126 | 0.757533 |
e334dde0efa475c7a203f67d8a5c7311eb0228dd | 218 | package io.corbel.iam.service;
import io.corbel.iam.model.User;
public interface MailService {
void sendMailResetPassword(String clientId, User user);
void sendMailValidation(String clientId, User user);
}
| 19.818182 | 59 | 0.770642 |
7c2d0acc7f9e382d19c363cec28e1241614e9fca | 26,504 | /*
* Copyright (C) 2017-2018 Jakob Nixdorf
*
* 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, ... | 37.172511 | 135 | 0.613492 |
f4f8f21ffdd301383a90854de75d8ac3bd79e59d | 491 | package net.openid.conformance.fapi1advancedfinal;
/**
* This class finished the test after the token endpoint call
*
* i.e. it does not go on to call the resource endpoint.
*/
public abstract class AbstractFAPI1AdvancedFinalPerformTokenEndpoint extends AbstractFAPI1AdvancedFinalServerTestModule {
@Override
pro... | 23.380952 | 121 | 0.792261 |
c231418c5713bee7f2c5a24bb662983c0012ebb3 | 896 | // Copyright (c) 2015-2020 Vladimir Schneider <vladimir.schneider@gmail.com> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.parser.cache.data.dependency;
/**
* Versioned dependency
* <p>
* NOTE: equals and hashCode for two versioned i... | 40.727273 | 177 | 0.748884 |
431a9612cb6a2c7bc5198948ba1afd2693ec7749 | 180 | package modelo.jugador;
import modelo.herramientas.Herramienta;
public interface Orientacion {
boolean golpear(Herramienta herramientaActual);
String obtenerImagen();
}
| 18 | 51 | 0.788889 |
8db9289cd6b89795dc5792acb5233239437c6af2 | 469 | package com.booking.replication.replicant;
import java.sql.SQLException;
/**
* Created by edmitriev on 8/2/17.
*/
public class DummyReplicantPool implements ReplicantPool {
@Override
public String getReplicantDBActiveHost() {
return "localhost";
}
@Override
public int getReplicantDBActi... | 19.541667 | 64 | 0.680171 |
feca54008da4b506b4462f38eba9b5ef1e6f3f26 | 310 | package com.uece.questions.templateMethod;
public class Inverte extends ImprimiNaTelaTemplate {
@Override
protected String tratarString(String string) {
return new StringBuilder(string).reverse().toString();
}
@Override
protected void printarNaTela(String string) {
System.out.println(string);
}
} | 22.142857 | 56 | 0.777419 |
b0ecf4e3c85d667f8bbfa13740fe3c5c35217dec | 1,305 | /**
* For copyright information see the LICENSE document.
*/
package realityshard.container;
import java.util.concurrent.ScheduledExecutorService;
/**
* This class provides access to the global executor object (a thread pool manager)
* you can trust the host application to set the executor at startup.
*
* An... | 25.588235 | 108 | 0.642146 |
f501d704b0cf2d89fb85a3514f201d5c4c817b5b | 1,220 | import java.util.Scanner;
class BinSearch {
static int search(int arr[], int left, int right, int valToSearch) {
if (right >= left) {
int mid = left + (right - left) / 2;
if (arr[mid] == valToSearch) return mid;
if (arr[mid] > valToSearch) return search(
arr,
left,
mid - 1,
valToSearch
... | 16.266667 | 74 | 0.531148 |
5f1797f0eb9356b889df315efa901740bde81f2e | 888 | package leetCode.day47;
/**
* @author liqiqi_tql
* @date 2021/4/17 -16:31
*/
public class T81 {
public boolean search(int[] nums,int target){
int n = nums.length;
if (n==0){
return true;
}
if (n==1){
return nums[0]==target?true:false;
}
int... | 22.769231 | 57 | 0.358108 |
eebd5e952098e945e87ae648f522ad73c02bcc59 | 6,300 | /*
* Copyright 2011-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31.188119 | 117 | 0.751587 |
9027a47c97f43231f8ef636a574a4cf3ca3f3cc7 | 4,460 | package com.andcreations.ae.studio.plugins.ui.main.view.dialogs;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.andcreations.ae.studio.plugins.ui.common.UIColors;
import com.andcreations.ae.studio.plugins.ui.common.quickopen.QuickOpenDialog;
import com.andcreations.... | 34.84375 | 89 | 0.587892 |
e5fa224a08acfcd6566ce76adf61dc0b6cb76c77 | 2,110 | package com.xixi.sdk.utils.file;
import java.util.HashSet;
import java.util.Set;
import com.xixi.sdk.parser.LLGsonUtils;
public class LLDoorSafeUserUtils {
private final String FILENAME = "USER_DATA_FILE";
public String getFILENAME() {
return FILENAME;
}
final Set<String> subscribers = new HashSet<String>();... | 27.051282 | 97 | 0.716588 |
83e59127b55242da9375ac8cd7ed0128dd2b5ed5 | 391 | package none.engine.component.common.uuid;
import com.google.inject.Singleton;
import java.util.UUID;
/**
* Creates random UUID's.
*/
@Singleton
public class RandomUUID implements UUIDFactory {
@Override
public UUID createUUID() {
return UUID.randomUUID();
}
@Override
public UUID from... | 16.291667 | 48 | 0.677749 |
144362644afff7baec5ffbfff5f3b0a5eca96d75 | 856 | package controllers;
import java.io.InputStream;
import apimodels.ModelApiResponse;
import apimodels.Pet;
import play.mvc.Http;
import java.util.List;
import java.util.ArrayList;
import java.util.HashMap;
@SuppressWarnings("RedundantThrows")
public interface PetApiControllerImpInterface {
void addPet(Pet body) ... | 26.75 | 126 | 0.787383 |
d8a0cb05b102bd9593802f0c27a8e31609159724 | 5,225 | /*
* 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 warsztatsamochodowy.controllers;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.... | 27.941176 | 168 | 0.599426 |
f3729bfcc93667413ee922c7f9035a1f845a86de | 1,181 | package com.jurabek.restaurant.order.api.mappers;
import java.util.Date;
import java.util.UUID;
import java.util.stream.Collectors;
import com.jurabek.restaurant.order.api.dtos.CustomerBasketDto;
import com.jurabek.restaurant.order.api.models.Order;
import com.jurabek.restaurant.order.api.models.OrderItems;
import o... | 30.282051 | 115 | 0.719729 |
dbbae5664fdc329f83674ebcd0dc9f0ee1b0971f | 4,429 | /*
* Copyright 2013 Jin Kwon <onacit at 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
*
* Unless required b... | 28.210191 | 80 | 0.654324 |
9b9c5e6bfece13cb4fa36b01a2722262dcc671f8 | 618 | package seedu.address.ui;
import java.util.logging.Logger;
import javafx.scene.layout.Region;
import seedu.address.commons.core.LogsCenter;
//@@author snajef
/**
* A blank panel. The default view to show when the app starts up.
*/
public class BlankPanel extends UiPart<Region> implements Swappable {
private st... | 24.72 | 76 | 0.694175 |
b8b96d21f811c515fbffd7d4d7ba2bd628c4a814 | 256 | package taru.easyrecruit.api.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import taru.easyrecruit.api.dao.entity.RoleEntity;
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity> {
}
| 25.6 | 57 | 0.828125 |
8fec3b7dad185bd4cf649a2dfa746c0f8d455652 | 1,058 | package pl.beda.hibernateManyToMany.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "department")
public class Department {
... | 20.346154 | 83 | 0.666352 |
e3308b45f2fc57a8147a5ff596c4330a1aeb8e40 | 198 | package org.mindtrails.persistence;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ParticipantExportRepository extends JpaRepository<ParticipantExportDAO, Long> {}
| 33 | 97 | 0.863636 |
24e9ae2c41f549e5c9c241ca7427cf909e4ac042 | 1,578 | package com.joaodartora.springcore.calculator;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotati... | 28.690909 | 70 | 0.784537 |
b5bc9d35fa6b085bf24c17ce73878173891e7df6 | 1,539 | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class HelloJava3 extends JComponent implements MouseMotionListener, ActionListener{
int messageX = 125, messageY = 95;
String theMessage;
JButton theButton;
int colorIndex;
static Color[] someColors = { Color.black, Color.red,
... | 24.428571 | 91 | 0.676413 |
142af1ede6c2bc374be86b3f44260f073fb13022 | 10,716 | package com.github.marchenkoprojects.prettyjdbc.query;
import com.github.marchenkoprojects.prettyjdbc.mapper.ResultMapper;
import java.math.BigDecimal;
import java.sql.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Collections;
i... | 25.037383 | 117 | 0.606943 |
29d09e66db124f43578b6f70e9c54b0d423ed291 | 7,130 | /* DO NOT EDIT */
/* This file was generated from files.stone */
package com.dropbox.core.v2.files;
import com.dropbox.core.stone.StoneSerializers;
import com.dropbox.core.stone.StructSerializer;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fa... | 35.29703 | 139 | 0.589481 |
de4445a8abe56862992b74ee286dee0ae161aa61 | 465 | package solutions;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class MagicSquaresInGridTests {
@Test
public void testExample() {
// arrange
var solution = new MagicSquaresInGrid();
// act
var result = solution.numMagicSquaresInside(new int[][] ... | 19.375 | 65 | 0.546237 |
9149994de546e93a4cb5d8ad3c54df85598bc53e | 3,972 | package maze;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Random;
/**
* Implements a randomized version of Kruskal's algorithm. It is essentially
* Kruskal's algorithm with random edge weights so its result is a minimum
* spanning tree for an equally weighted graph.
*/
public class Rand... | 28.57554 | 80 | 0.492951 |
70054695760d6395f32392044e3fe1f4c3067979 | 2,935 | /**
* Java WordNet Library (JWNL)
* See the documentation for copyright information.
*
* @version 1.1
*/
package net.didion.jwnl.princeton.file;
import net.didion.jwnl.JWNLRuntimeException;
import net.didion.jwnl.data.POS;
import net.didion.jwnl.dictionary.file.DictionaryFile;
import net.didion.jwnl.dictionary.fi... | 26.926606 | 122 | 0.702555 |
bd415527a761e8fc68db6059ce935384aa759fcc | 1,338 | package com.xiaojukeji.kafka.manager.web.api.versionone.op;
import com.xiaojukeji.kafka.manager.common.entity.Result;
import com.xiaojukeji.kafka.manager.common.entity.ResultStatus;
import com.xiaojukeji.kafka.manager.common.utils.ValidateUtils;
import com.xiaojukeji.kafka.manager.openapi.common.dto.TopicAuthorityDTO;... | 37.166667 | 111 | 0.77429 |
6c74e895cb3b7ad6de10fb6a0afc53af72a8a381 | 2,222 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 44.44 | 203 | 0.782628 |
0c4e5fe13ae4de017ed37fb1f03d094e36cf360a | 634 | package net.younic.core.api;
public class ResourceRenderingFailedException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public ResourceRenderingFailedException(String message) {
super(message);
}
public ResourceRenderingFailedException(Throwable cause) {
super(cause);... | 21.862069 | 100 | 0.780757 |
4ed1d6ac617695a05b35b198d423a33dff005700 | 4,163 | package org.bdgas.webproxy.services;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class EndPointService {
@Value("${endpoint.adminserver.protocol}")
private String protocol;
@Value("${e... | 27.569536 | 71 | 0.659861 |
f1d47dadb4c836fda87c3448eb03ba60dd57c057 | 1,254 | package jp.co.lib.tkato.tktask;
import android.support.annotation.NonNull;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import jp.co.lib.tkato.tktask.latch.AbortableCountDownLatch;
abstract class AbstractTask {
// region count down latc... | 26.125 | 86 | 0.697767 |
160deec5f1fbb25b1fbc37ff5c19e40028680c86 | 1,850 | package jjcard.text.game.util;
import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;
import java.util.List;
import org.junit.jupiter.api.Test;
public class IListMapTest {
@Test
public void addTest_listHashMap() {
IListMap<String, String> map = IListMap.newListHashMap();
assertNull(map... | 25.694444 | 59 | 0.693514 |
f36ee64cb54b91baacf5da92f849702458d250b7 | 10,527 | /*
* Copyright (c) 2011, 2018 Purdue University.
* 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 ... | 25.366265 | 85 | 0.658687 |
8cf84a04f8b16b48f846ae93b2a76cfbbea28a14 | 1,355 | package com.ecommerce.customer.comment;
import com.ecommerce.general.comment.CommentDaoImpl;
import com.ecommerce.general.helper.Helper;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.htt... | 37.638889 | 99 | 0.714391 |
a8765cdcf2834c3ee8a04679d9633a161a8bb3f5 | 993 | package com.seeini.stack.controller.rest;
import com.seeini.common.response.ResponseData;
import com.seeini.common.response.ResponseUtil;
import com.seeini.stack.entity.GuidelinesDetail;
import com.seeini.stack.service.GuidelinesDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory... | 31.03125 | 82 | 0.811682 |
ca2590528e0e69ddcac9369c9c717de5bb34f7b7 | 8,795 | /**
* Copyright 2007-2015, Kaazing Corporation. 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 require... | 42.283654 | 127 | 0.685617 |
2ff0cc7445964c7ffff37e24777cf707668bbaf5 | 3,257 | /*
* Copyright 2005 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... | 40.7125 | 159 | 0.750384 |
da1df6f4fc5ddb45cec29e114272ca862a229f70 | 1,376 | package de.bmoth.parser;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.CommonToken;
import org.antlr.v4.runtime.Parser;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
import org.antlr.v4.runtime.atn.ATNConfigSet;
import org.antlr.v4.runtime.dfa.DF... | 34.4 | 114 | 0.736919 |
ca3ea424e41586ae474fc9e84f82fd3e12b1b4e1 | 6,096 | package com.misterpemodder.shulkerboxtooltip.impl.renderer;
import java.util.Arrays;
import com.misterpemodder.shulkerboxtooltip.api.PreviewType;
import com.misterpemodder.shulkerboxtooltip.api.provider.PreviewProvider;
import com.misterpemodder.shulkerboxtooltip.impl.ShulkerBoxTooltip;
import com.misterpemodder.shulk... | 36.285714 | 100 | 0.666995 |
e7893cce62dea1365c09ffb77c0e0cd1eea4107b | 1,983 | /*
* Copyright 2017 Idaho State Police.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 32.508197 | 142 | 0.726677 |
5eaf1e28acbbf9e6c30c48e1b79b8c551299c2c2 | 2,715 | package org.skroll.reactor.pool;
import java.util.concurrent.TimeUnit;
import java.util.function.BiFunction;
import reactor.core.Disposable;
import reactor.core.Exceptions;
import reactor.util.Logger;
import reactor.util.Loggers;
import reactor.util.annotation.Nullable;
final class DecoratingMember<T> implements Mem... | 23.405172 | 94 | 0.671455 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.