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 |
|---|---|---|---|---|---|
1c69c232e3c3dd5821f534c8b226ff4206554928 | 8,396 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.connector.postgresql;
import static io.debezium.connector.postgresql.TestHelper.topicName;
import static org.apache.kafka.connect.transforms.u... | 39.980952 | 114 | 0.640662 |
1e6902a4059aef22a13f0b1633fb727be5d3111c | 6,490 | package com.vladmihalcea.book.hpjp.hibernate.fetching;
import com.vladmihalcea.book.hpjp.util.AbstractPostgreSQLIntegrationTest;
import com.vladmihalcea.book.hpjp.util.providers.Database;
import org.hibernate.jpa.QueryHints;
import org.junit.Test;
import javax.persistence.*;
import java.time.LocalDate;
import java.ut... | 28.217391 | 139 | 0.538059 |
bc55d8be60bd435a604e90ea57be5d3293131816 | 3,084 | package boot.model;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.util.Objects;
/**Класс для хранения данных об интернет-баннере.
@author Артемьев Р.А.
@version 13.09.2019 */
public class Banner
{
/*Аннотация @NotNull указывает на обязательность параметра... | 24.283465 | 84 | 0.585927 |
87c0e675c306970766c3fd8e0202575037a6e32e | 6,044 | package cn.innc11.giftcode;
import cn.innc11.giftcode.config.GiftCodesConfig;
import cn.innc11.giftcode.config.GiftsConfig;
import cn.innc11.giftcode.dt.Codes;
import cn.innc11.giftcode.dt.Gift;
import cn.innc11.giftcode.form.MainPanel;
import cn.innc11.giftcode.form.RedeemCodePanel;
import cn.innc11.giftcode.listener... | 26.743363 | 119 | 0.60953 |
ec910f49c542412092a160b5e6bc41bd57515cde | 388 | package fr.simplon.orgamenu.repository;
import fr.simplon.orgamenu.models.ERole;
import fr.simplon.orgamenu.models.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface RoleRepository extends JpaRe... | 27.714286 | 67 | 0.822165 |
406236f2080bf0460c78e897804f06994655dc44 | 479 | package com.adioss.bootstrap.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.List;
@Component
@ConfigurationProperties(prefix = "cors.allowed")
public class CorsAllowedOrigins {
private List<String> origins;
... | 22.809524 | 75 | 0.743215 |
d754b00068d5a53669cc0028967100550b4d4077 | 261 | package net.fabricmc.api;
import java.lang.annotation.*;
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PACKAGE})
public @interface Environment {
EnvType value();
}
| 26.1 | 112 | 0.789272 |
c479b970d3fcd37a8d5ce60e609f626c486b9a30 | 6,922 | package cd4017be.rs_ctr2.tileentity;
import static cd4017be.lib.network.Sync.ALL;
import static cd4017be.lib.part.OrientedPart.port;
import static cd4017be.lib.tick.GateUpdater.GATE_UPDATER;
import static cd4017be.rs_ctr2.Main.SERVER_CFG;
import static net.minecraft.util.Direction.NORTH;
import org.apache.commons.lang... | 30.359649 | 96 | 0.689541 |
13a9ecfcbec0c0bda6b599037e2c5a5f2f2e6209 | 1,359 | package org.springlearning.aop.beanNameAutoProxyCreator;
import java.util.Date;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
import org.springframework.con... | 39.970588 | 98 | 0.730684 |
55fafc900edf5aa8d52626dd72bdf9743cbcb18e | 296 | // Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.exceptions;
public class ApiOtpValidationNeedException extends ApiException {
public ApiOtpValidationNeedException(String message) {
super(3303, "Otp app validation needed", message);
}
}
| 32.888889 | 67 | 0.760135 |
d5adb713aa7236601f9aa7224b39a9fb447013cb | 1,039 | package com.github.msafonov.corporate.bot;
import com.github.msafonov.corporate.bot.controllers.EntityController;
import com.github.msafonov.corporate.bot.entities.AuthorizationCode;
import com.github.msafonov.corporate.bot.entities.Employee;
public class Authorization {
private final EntityController entityContr... | 30.558824 | 82 | 0.729548 |
750a26b5e574191fed4e6e44c247b619b0defb5e | 937 |
/// generated by: genswift.java 'java/lang|java/util|java/sql|java/awt|javax/swing' ///
/// interface javax.swing.event.TableModelListener ///
package org.swiftjava.javax_swing;
@SuppressWarnings("JniMissingFunction")
public class TableModelListenerProxy implements javax.swing.event.TableModelListener {
// add... | 28.393939 | 113 | 0.735326 |
518b3a2e3aa32ed22631c367674def10c6ba1f62 | 3,963 | package com.yunbao.live.custom;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.View;
import com.yunbao.... | 29.139706 | 93 | 0.646985 |
6297c7c52d8822ed68c474ee5e87275bcb6bf0bb | 20,985 | /*
* Copyright (c) 2012 ZES Inc. All rights reserved.
* This software is the confidential and proprietary information of ZES Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with ZES Inc. (http://www.zesinc.... | 19.358856 | 78 | 0.567501 |
82b5a8ffa8f0dafee78628df34d11c5f72b17c1c | 1,309 | package com.asimkilic.mongodbhw3.dto.read;
import java.math.BigDecimal;
import java.util.Date;
public class ProductReadDto {
private String id;
private String name;
private BigDecimal price;
private Date createDate;
private CategoryReadDto category;
public ProductReadDto() {
}
pu... | 19.25 | 112 | 0.620321 |
bd80acea5c28be8684fe8c13f310e5631714d75f | 14,723 | /*******************************************************************************
* PathVisio, a tool for data visualization and analysis using biological pathways
* Copyright 2006-2021 BiGCaT Bioinformatics, WikiPathways
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this fi... | 29.039448 | 118 | 0.7148 |
b042f674d7f2bf5168392ed60c9282bfc7829a67 | 6,107 | package org.benf.cfr.reader.bytecode.analysis.parse.statement;
import org.benf.cfr.reader.bytecode.analysis.loc.BytecodeLoc;
import org.benf.cfr.reader.bytecode.analysis.parse.utils.Pair;
import org.benf.cfr.reader.bytecode.analysis.opgraph.Op04StructuredStatement;
import org.benf.cfr.reader.bytecode.analysis.parse.Ex... | 37.697531 | 172 | 0.70804 |
89f7a5a642680eee0df83395b535c4151b3b0ed9 | 5,295 | // ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' </ _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \_... | 32.090909 | 156 | 0.69594 |
2c5ef44e945dbc331fdf6919e17d884ed414f2f7 | 2,936 | package mvm.rya.indexing.external.tupleSet;
/*
* 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 ... | 26.45045 | 75 | 0.730586 |
8883035bad9571ceaa26bc054da3a9dfc3e8f54e | 7,539 | /*
@testcase definitions for introduced type test cases
--- initial variants
// -------- error "can't emit cast for NotFoundType() to PrimitiveType(int)
//double i = (double) i2() - i1();
//int i = (int) this.someInt();
// -------- compiler RuntimeException: "Unsupported emit on NotFoundType" Type.java:460
//... | 39.678947 | 94 | 0.534686 |
2d3a60b0c8229bb83ed6869a11788d8f437fcae4 | 1,340 | package de.andipopp.poodle.views.editpoll.date;
import java.time.LocalDateTime;
import java.util.Date;
import com.vaadin.flow.data.binder.Result;
import com.vaadin.flow.data.binder.ValueContext;
import com.vaadin.flow.data.converter.Converter;
import com.vaadin.flow.data.converter.LocalDateTimeToDateConverter;
/**
... | 29.777778 | 119 | 0.786567 |
8e5993e494d21e093eae77e8bb3e6aef5f02b822 | 3,975 | package org.nnsoft.guice.autobind.utils;
import java.util.StringTokenizer;
import javax.inject.Inject;
import org.nnsoft.guice.autobind.jsr330.Names;
import com.google.inject.AbstractModule;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Key;
public class VariableResol... | 36.46789 | 236 | 0.574843 |
d703afd0554958c0adde78319ea1e584fed990af | 22,921 | //
// このファイルは、JavaTM Architecture for XML Binding(JAXB) Reference Implementation、v2.2.8-b130911.1802によって生成されました
// <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>を参照してください
// ソース・スキーマの再コンパイル時にこのファイルの変更は失われます。
// 生成日: 2019.07.23 時間 02:14:31 PM JST
//
package jp.go.kishou.xml.jmaxml1.body.me... | 28.05508 | 163 | 0.582872 |
dc641fe5245d178e783504dbdb768a0f2bbcc7f6 | 6,682 | /*
* Copyright 2012 Blue Lotus Software, LLC.
* Copyright 2012 John Yeary
*
* 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... | 45.767123 | 140 | 0.64771 |
aa535ef06606bc505da60323dfbb6c7d4c9856d1 | 4,278 | /*
* 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.925373 | 118 | 0.678121 |
aa45be231f2ea9578c1c58bbcb9bae16ba5b60c3 | 1,512 | /*
* Copyright 2011 Internet Archive
*
* 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 t... | 25.627119 | 95 | 0.674603 |
be5776e778386bbb90ac0831c5f4dc65a5942c1e | 10,588 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 16.214395 | 810 | 0.793257 |
07fa2224e9405c1753403629233236d413349fd0 | 215 | public class Manobrista {
public void estaciona (Veiculo v){
v.vira("Direita");
v.vira("Esquerda");
v.freia();
v.para();
System.out.println("");
}
}
| 15.357143 | 38 | 0.465116 |
b12149b0c81db4caeac72a607cd47154e0ee14e5 | 1,155 | package com.fortify.cli.tools.picocli.command.entity.ScanCentralClient;
import com.fortify.cli.tools.picocli.command.mixin.DownloadPathMixin;
import com.fortify.cli.tools.picocli.command.mixin.InstallPathMixin;
import com.fortify.cli.tools.picocli.command.mixin.PackageVersionMixin;
import com.fortify.cli.tools.toolPac... | 39.827586 | 117 | 0.75671 |
4d9082c8bc7349d352d63745cb40c70bd4cd954a | 370 | package fm.pattern.valex;
import java.util.List;
public class EntityNotFoundException extends ReportableException {
private static final long serialVersionUID = -7099875229824655548L;
public EntityNotFoundException(List<Reportable> errors) {
super(errors);
}
public EntityNotFoundException(R... | 20.555556 | 71 | 0.732432 |
dc9923c63c6a453fe23c48153acdd1eff95ffec2 | 7,286 | package org.onebusaway.io.client.test;
/**
* Unit tests for the Regions Utilities
*/
import org.onebusaway.io.client.elements.ObaRegion;
import org.onebusaway.io.client.mock.MockRegion;
import org.onebusaway.io.client.util.LocationUtil;
import org.onebusaway.io.client.util.RegionUtils;
import org.onebusaway.locatio... | 40.032967 | 116 | 0.724815 |
99159ee5a3b4a2c88b21641979d2093d83a51961 | 28,304 | /*
* Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this f... | 38.613915 | 129 | 0.570591 |
d98bf9f5056ab9dfa7bdd01b6484b302bca2bd03 | 1,716 | package com.diversion.element;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* Content : ElementUpdater代理类, 实现Diversion指定执行
*
* @author liou 2018-01-12.
*/
public class ElementUpdaterProxy implements ElementUpdater {
private Object proxyInstance;
private Method ... | 29.084746 | 104 | 0.589161 |
9703d2d18b5e27ae6f40297ac2cfdb3d1dc0d136 | 3,798 | package com.l000phone.themovietime.payticket;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.LayoutInflater;
import android.view.View;
import android... | 40.404255 | 121 | 0.655345 |
a04662cbb87069f131a5d10e3e3c3b87880be4e0 | 1,844 | /*
* 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... | 34.792453 | 80 | 0.702278 |
a83c739ec421b3d35af7755025ced33ce67bdf4f | 1,340 | package com.muratcelik.springelastic.service.implementation;
import com.muratcelik.springelastic.entity.Customer;
import com.muratcelik.springelastic.repository.CustomerRepository;
import com.muratcelik.springelastic.service.ICustomerService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype... | 29.130435 | 79 | 0.747761 |
e6f633be3880c6fcdd3db11f0799766a783a3bb9 | 1,495 | /*
* 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 use... | 37.375 | 120 | 0.786622 |
60bad822aeae56241f1449ce80bce5d64be071c6 | 3,664 | /*
* Copyright (c) CovertJaguar, 2014 http://railcraft.info
*
* This code is the property of CovertJaguar
* and may only be used with explicit written
* permission unless otherwise specified on the
* license page at http://railcraft.info/wiki/info:license.
*/
package mods.railcraft.client.gui;
import net.mine... | 36.277228 | 140 | 0.674127 |
779dd9f0528ac821b7cc9c259a390a6683184d29 | 868 | package com.roobit.android.restclient;
import java.net.HttpURLConnection;
public class RestResult {
int responseCode;
String response;
Exception exception;
public RestResult() {
responseCode = 0;
response = "";
}
public boolean isSuccess() {
return responseCode < HttpURLConnection.HTTP_BAD_REQUEST &&
... | 17.714286 | 61 | 0.725806 |
e0447e77de03570302826d3a37009e38754ea271 | 2,692 | package com.leisurexi.data.structures.leetcode;
import lombok.extern.slf4j.Slf4j;
import java.util.Arrays;
/**
* leetcode题号 26.删除排序数组中的重复项
*
* @author: leisurexi
* @date: 2020-03-15 22:18
* @since JDK 1.8
*/
@Slf4j
public class RemoveDuplicatesFromSortedArray {
/**
* 题目描述:
* 给定一个排序数组,你需要在 原地 删除重... | 24.252252 | 78 | 0.501486 |
295cd27e644989b3a4484ef817070cff8382bdda | 9,340 | package com.jfrog.ide.idea.ui;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.ui.ScrollP... | 41.327434 | 175 | 0.714454 |
9862bfcc8e8fcca73fea0ed554d26a87c26db627 | 10,501 | package cn.wizzer.app.web.modules.controllers.platform.cms;
import cn.wizzer.app.cms.modules.models.Cms_channel;
import cn.wizzer.app.cms.modules.models.Cms_site;
import cn.wizzer.app.cms.modules.services.CmsChannelService;
import cn.wizzer.app.cms.modules.services.CmsSiteService;
import cn.wizzer.app.web.commons.slog... | 37.237589 | 136 | 0.576612 |
e39b0632e7616186f43ff0ae2341a30160e1e0d9 | 4,381 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.spi;
import java.sql.Connection;
import java.util.Tim... | 22.582474 | 129 | 0.760329 |
18500543407a949662d1b9246eb4cc1a00991b1d | 282 | package com.ewcms.empi.dictionary.repository;
import com.ewcms.common.repository.BaseRepository;
import com.ewcms.empi.dictionary.entity.CountryCode;
/**
*@author zhoudongchu
*/
public interface CountryCodeRepository extends BaseRepository<CountryCode, String> {
}
| 23.5 | 85 | 0.776596 |
80532a0951aa2777e2db75658de7557b4bfbd117 | 1,628 | package jiwoo.openstack.keystone.auth.tokens;
import org.json.JSONObject;
import jiwoo.openstack.rest.APIKey;
import jiwoo.openstack.rest.RestResponse;
abstract public class AbstractAuthTokensResponse extends RestResponse {
abstract public APIKey getAPIKey();
abstract protected JSONObject passwordAuthWithUnscope... | 33.22449 | 81 | 0.860565 |
d4d641acb075c669a6944e3a4f4ecd759121eb98 | 8,166 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.hardware.DistanceSensor;
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit;
import org.firstinspires.ftc.teamcode.drive.Direction;
@Autonomous(name = "🔴SampleFirstFo... | 34.025 | 139 | 0.53784 |
7fbf0dcaac350338278f694d361451be849ee6d7 | 2,792 | /* *****************************************************************************
* Name: 冀全喜
* Coursera User ID: errorfatal89@gmail.com
* Last modified: October 16, 1842
**************************************************************************** */
import edu.princeton.cs.algs4.StdRandom;
imp... | 32.465116 | 117 | 0.536175 |
2f6c22767f36643aa1dc35ffd474c35f2cdbe12f | 2,484 | package com.mercadopago.android.px.internal.features.express.slider;
import androidx.annotation.NonNull;
import com.mercadopago.android.px.internal.base.BasePresenter;
import com.mercadopago.android.px.internal.repository.AmountConfigurationRepository;
import com.mercadopago.android.px.internal.repository.PayerCostSel... | 49.68 | 117 | 0.762882 |
f6230028b6e2c482927c628b2166d7e7102d021c | 1,464 | package com.microsoft.azure.documentdb.changefeedprocessor.internal;
import com.microsoft.azure.documentdb.changefeedprocessor.ChangeFeedObserverContext;
import com.microsoft.azure.documentdb.changefeedprocessor.IChangeFeedObserver;
import java.util.concurrent.Future;
public class WorkerData
{
private Future tas... | 26.142857 | 137 | 0.721311 |
0a4c3e7280e2fde72b80e456162294517df6e66c | 662 | package leetcode;
import java.util.HashSet;
public class IsHappy {
boolean isHappy(int num) {
HashSet<Long> hs = new HashSet<>();
long product;
long n = num;
while (true) {
product = 0;
long next = n;
long temp = n;
while (temp != 0... | 21.354839 | 46 | 0.435045 |
5593c1dbec9bacb21aab566e4225e6b2e24d98ff | 621 | package io.github.ititus.si.quantity.type;
import io.github.ititus.si.dimension.BaseDimension;
import io.github.ititus.si.unit.BaseUnit;
import io.github.ititus.si.unit.Unit;
public final class ThermodynamicTemperature extends AbstractQuantityType<ThermodynamicTemperature> {
public static final ThermodynamicTemp... | 36.529412 | 111 | 0.797101 |
58caf916ad97965069f86ed11b7799915a2218f6 | 645 | /**
*
*/
package org.jretty.util;
import static org.junit.Assert.assertEquals;
import java.lang.reflect.Method;
import org.junit.Test;
/**
*
* @author zollty
* @since 2018年9月30日
*/
public class AnnotationUtilsTest {
@Order(2)
private void test() {
}
@Test
public void testFindAnnotation(... | 20.15625 | 83 | 0.657364 |
c9e52e04f530faa7da74d7324a83e693b6a462b6 | 1,291 | package apoc.algo.pagerank;
import org.neo4j.graphdb.RelationshipType;
public interface PageRank extends PageRankAlgorithm
{
double ALPHA = 0.85;
double ONE_MINUS_ALPHA = 1 - ALPHA;
void compute( int iterations, RelationshipType... relationshipTypes );
double getResult( long node );
long number... | 30.738095 | 204 | 0.684741 |
de4a3d5f0d444fed76d32ce87f671a8ec6083e68 | 2,529 | package cn.droidlover.xdroidmvp.systmc.present;
import com.blankj.utilcode.util.EncryptUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.litesuits.orm.db.assit.QueryBuilder;
import java.util.List;
import cn.droidlover.xdroidmvp.mvp.XPresent;
import cn.droidlover.xdroidmvp.net.ApiSubscriber;
import cn.dro... | 35.125 | 240 | 0.608541 |
2f36c71f74e8299cc16c44e847205e977f6d60ef | 2,822 | package screens.pdf.tocBookmarksGalleryPdf.ios;
import aquality.appium.mobile.application.AqualityServices;
import aquality.appium.mobile.application.PlatformName;
import aquality.appium.mobile.elements.interfaces.IButton;
import aquality.appium.mobile.screens.screenfactory.ScreenType;
import org.openqa.selenium.By;
i... | 36.649351 | 151 | 0.732105 |
92a1446b9778d80185b43adfaeaec70713e27cd7 | 222 | package paulevs.creative;
public interface CreativePlayer {
public boolean isCreative();
public void setCreative(boolean creative);
public boolean isFlying();
public void setFlying(boolean flying);
}
| 18.5 | 44 | 0.734234 |
4e16cfc4078ec681725c078a1a910aa743178dde | 21,876 | package org.openxmlformats.schemas.presentationml.x2006.main.impl;
import java.util.AbstractList;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import org.apache.xmlbeans.SchemaType;
import org.apache.xmlbeans.impl.values.XmlComplexContentImpl;
import org.openxmlformats.schemas.d... | 31.612717 | 135 | 0.608246 |
4f756a329a9c68f8f160f1b24e168e7df8689a47 | 3,927 | package com.example.krzysiek.carmas;
import android.Manifest;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
impor... | 36.027523 | 147 | 0.661319 |
532bb590b9cf9a1dd100729e26e93dd2bf5742bc | 489 | package AtmApp.Service;
import AtmApp.Model.Requests.UserRequest;
import AtmApp.Repositories.UserRequestRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserRequestService {
@Autowir... | 22.227273 | 63 | 0.760736 |
4114d035cf8510a4d202e3fd161dfd95427e0fc2 | 2,426 | /**
* 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... | 29.585366 | 110 | 0.725062 |
6854672a8f522fa0e025c2ace2edfe0a33b783d2 | 154 | package io.quarkiverse.rsocket.runtime;
import reactor.core.publisher.Flux;
public interface RequestStreamHandler<T> {
Flux<T> handle(T payload);
}
| 19.25 | 42 | 0.772727 |
3f9cdc83e025b1cdba363eb15285f48dbae7198c | 1,433 | /*
* Copyright (c) 2016, marlonlom
*
* 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.66 | 78 | 0.66783 |
6b40b559f47f604e897cb60df827e7cd2a5f09a6 | 4,372 | /*
* Copyright 2019 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 41.638095 | 107 | 0.651418 |
d03517b4b17bce91eefc14343a6a4b9e49029544 | 750 | package org.lennan.awsta.premises;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springfra... | 31.25 | 75 | 0.788 |
81241eb9bfad4eba6ef3ae013ecb94a1f836c75b | 1,996 | package org.omg.spec.api4kp._20200801.id;
import static edu.mayo.kmdp.util.DateTimeUtil.parseDateTime;
import static java.lang.Long.parseLong;
import com.github.zafarkhaja.semver.Version;
import edu.mayo.kmdp.comparator.Contrastor;
import edu.mayo.kmdp.util.DateTimeUtil;
import java.util.function.Function;
public cl... | 28.927536 | 84 | 0.678858 |
da05b21b75cddcd6b90e9379b33a3231e8a27ead | 5,608 | package com.example.demo.core.configurer;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter4;
import com.example.demo.core.interceptor.Interceptor... | 41.540741 | 109 | 0.680278 |
b59efe7db8cd8cfe3fec6fe03bb3f5bf84cd86fc | 550 | package com.matyrobbrt.matytech.api.client.screen;
import com.matyrobbrt.matytech.api.container.MachineContainer;
import net.minecraft.entity.player.PlayerInventory;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.ITextComponent;
public class MachineContainerScreen<C extends MachineContain... | 32.352941 | 99 | 0.829091 |
4c6c6b017b9f41d7b06ed35dd89a2b2ec9ba7cbc | 2,694 | /*
* 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... | 30.613636 | 92 | 0.683742 |
90fd12536f2fdd5ad3aed39ae621605789a546a1 | 19,946 | /*
* Copyright Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags and
* the COPYRIGHT.txt file distributed with this work.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... | 36.868762 | 162 | 0.590745 |
e50a9b396aaff0664ad9b5412d2495c38e00584b | 817,455 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 42.843553 | 611 | 0.783516 |
c575744dbab257d50aca2bff3ce9c0936f8f04ab | 6,986 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 27.832669 | 94 | 0.68308 |
6bf66b3983df60900fd8d7bfcec2810b4d6f377c | 169 | package com.amore.designtenet.srp;
//接口拆分:对职责进行解耦
public interface ICourseInfo {
//获取基本信息
String getCourseName();
//获得视屏流
byte[] getCourseVideo();
}
| 13 | 34 | 0.674556 |
2ccb6895ca6a5bcb5390b26ead44bf19913ab275 | 1,881 | /*
* File: ContactRepositoryCustom.java
* Creation Date: Jul 8, 2021
*
* Copyright (c) 2021 T.N.Silverman - all rights reserved
*
* 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 reg... | 36.173077 | 111 | 0.704944 |
f4b75240cd36fee591a16f11b09209a109d68485 | 804 | package org.parctice.app.hackerrank.java.introduction;
import java.util.Scanner;
public class OutputFormating {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
System.out.println("================================");
for(int i=0;i<3;i++){
String s1=sc... | 30.923077 | 68 | 0.570896 |
9cfb1b35fe1cb0b4570af69d2fa8e992f4b3c86c | 21,110 | package pro.taskana.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.apache.ibatis.exceptions.PersistenceException;
import org.apache.ibatis.session.RowBounds;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pro.taskana.ClassificationQuery;
import pro.taska... | 32.830482 | 131 | 0.613501 |
52d3ced87a4088fb19ebe34db6b7eba8603854d0 | 4,029 | package com.alibaba.ydt.portal.web.mvc;
import com.alibaba.ydt.portal.util.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.view.AbstractUrlBasedView;
import org.springframework.web.servlet.view.velocity.VelocityLayoutView;
import ... | 35.973214 | 105 | 0.652271 |
218f0c76a9b98c751fbbc7edd65523a8439ec558 | 5,640 | package tw.com.maxkit.miniweb.business;
import java.util.Arrays;
import java.util.List;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
imp... | 28.923077 | 104 | 0.72234 |
17628fc11c2103877d614d7b0940de8bc7b5af70 | 1,408 | package com.digero.common.util;
import java.awt.Graphics;
import java.awt.Point;
import javax.swing.event.ChangeListener;
import javax.swing.text.Caret;
import javax.swing.text.JTextComponent;
/**
* A Caret implementation that does nothing. Useful for making a TextArea be readonly.
*/
public class Null... | 15.820225 | 87 | 0.673295 |
f7170dc244a9f8395f9f100fc275bc209616e1ec | 2,526 | package camaratransparente.error;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.lang.Nullable;
import ... | 41.409836 | 121 | 0.810768 |
4ca2144ee84cd798f1f159e8a844ac2c88a01fdf | 12,382 | package tilda.generation.helpers;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import ... | 45.355311 | 218 | 0.547004 |
1e052b4bc4f2025031898315878542c4155e9d5b | 2,299 | package demo;
import static org.junit.Assert.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springfram... | 37.080645 | 92 | 0.786429 |
da8aea076a8f076cb05b3f6c60b19be3aea02a74 | 222 | package com.github.dantebarba.aportestruchos.support;
public class Utils {
public static String normalizar(String data) {
if (data == null)
return "";
return data.trim().replace(".", "").replace("-", "");
}
}
| 17.076923 | 55 | 0.653153 |
d865a937066da74fd5e5b2d09dd53d952c4fdb32 | 1,252 | package brainwine.gameserver.msgpack.models;
import brainwine.gameserver.server.requests.DialogRequest;
/**
* For {@link DialogRequest}
* TODO Figure out more about all this.
*/
public class DialogInputData {
private String dialogName;
private int dialogId;
private String[] inputData;
private ... | 21.586207 | 62 | 0.605431 |
7a4e3be708cd0ba6c687d6ab187a0c7fd761a488 | 1,446 | package com.stardust.autojs;
import android.webkit.MimeTypeMap;
import com.stardust.pio.PFiles;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import okhttp3.MediaType;
import okhttp3.MultipartBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
import okh... | 30.765957 | 81 | 0.663209 |
fc37d4a55af7e7481a91153d1057db9d72fd886a | 2,347 | /*
* 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.077778 | 77 | 0.698338 |
343c39df86c0ec13caba74b3d0ba08c7e930c233 | 988 | package io.delta.standalone.expressions;
import io.delta.standalone.types.BooleanType;
import io.delta.standalone.internal.exception.DeltaErrors;
/**
* Evaluates logical {@code expr1} AND {@code expr2} for {@code new And(expr1, expr2)}.
* <p>
* Requires both left and right input expressions evaluate to booleans.
... | 32.933333 | 87 | 0.633603 |
24fd84b26e7f8a95b136898ca7619c4d82e4806b | 1,183 | package filter;
public class PT1 extends ClosedLoopBlock {
/**
* == CodeSys Code ==
*
* IF bReset THEN
* reset();
* END_IF
*
* IF (rT > 0.0) THEN
* rY := rY + (-rY + rK*rX)/MAX(rT,0.001)*RET_COMMON.rDt;
* ELSE
* rY := rX;
* END_IF
*
* == Variabl... | 18.484375 | 63 | 0.481826 |
fb4d3c100b34ed396b568db9169275ded425e79d | 1,150 | package voogasalad_GucciGames.gameplayer.windows.mainwindow.components;
import javafx.scene.Parent;
import voogasalad_GucciGames.gameplayer.controller.GameControllerInterface;
import voogasalad_GucciGames.gameplayer.scenes.GameScene;
public abstract class WindowComponent {
private GameScene myScene;
private GameCo... | 21.296296 | 78 | 0.775652 |
17babc50ddaad773a83a3249aa68c275153c766c | 3,203 | import com.github.liao47.leetcode.P0160IntersectionOfTwoLinkedLists;
import com.github.liao47.leetcode.P0160IntersectionOfTwoLinkedLists.ListNode;
import com.github.liao47.leetcode.P0162FindPeakElement;
import com.github.liao47.leetcode.P0165CompareVersionNumbers;
import org.junit.Assert;
import org.junit.Test;
import... | 48.530303 | 112 | 0.676865 |
694720bbdac11c4a78720e6c102948b0c83ae689 | 3,388 | package org.jboss.errai.ioc.client;
import com.google.gwt.event.logical.shared.HasAttachHandlers;
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.user.client.EventListener;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.HasOneWidget;
import com.google.... | 43.435897 | 201 | 0.817001 |
6e494e7f24a89d8bd45ed7bbb80db296c3cdfda4 | 1,664 | package com.atlassian.jira.plugins.dvcs.spi.bitbucket.message.oldsync;
import com.atlassian.jira.plugins.dvcs.service.message.AbstractMessagePayloadSerializer;
import com.atlassian.jira.plugins.dvcs.service.message.MessagePayloadSerializer;
import com.atlassian.jira.util.json.JSONObject;
import org.springframework.ste... | 33.959184 | 121 | 0.756611 |
6227fdd13d28abf8c424bfe67b5b3d8e016f7c06 | 5,128 | package cn.org.atool.fluent.form.meta;
import cn.org.atool.fluent.common.kits.KeyMap;
import cn.org.atool.fluent.common.kits.SegmentLocks;
import cn.org.atool.fluent.form.annotation.MethodType;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
/**
* ArgNamesK... | 35.365517 | 121 | 0.543877 |
f7366e0861a70d95bb730fb6d6cd69e8722a7de9 | 9,569 | /*
* Copyright (c) 2019, FusionAuth, 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 appli... | 56.958333 | 161 | 0.790992 |
61c092390e4964d598b2d3a41291dc195ec10eb9 | 66,935 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 44.862601 | 168 | 0.674774 |
ff1bcecce7e38046587e0d42d624e04507f7f021 | 1,310 | //package org.asion.sample.common;
//
//import org.apache.commons.lang3.StringUtils;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.util.Sto... | 32.75 | 92 | 0.622901 |
744baa17f5283a28ac1f7ef9720410dd439287c6 | 2,179 | /* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.implementations.reference.content;
import io.annot8.api.data.Content;
import io.annot8.api.data.Item;
import io.annot8.api.exceptions.Annot8RuntimeException;
import io.annot8.api.properties.ImmutableProperties;
import io.annot8.common.data.content... | 32.522388 | 100 | 0.746673 |
b9de73f8c1c337bd871d0d689c8994ce68d96980 | 2,662 | package com.cdyw.swsw.data.common.listener.radar;
import com.cdyw.swsw.common.common.component.CommonPath;
import com.cdyw.swsw.common.domain.ao.enums.TypeEnum;
import com.cdyw.swsw.data.domain.service.radar.RadarPhasedArrayService;
import org.apache.commons.io.monitor.FileAlterationListener;
import org.apache.commons... | 31.690476 | 120 | 0.707363 |
1a52844d46f18c256049c2390cf4ab008f5f2f3d | 2,445 | package org.hswebframework.web.datasource.manager.simple;
import com.alibaba.fastjson.JSON;
import org.hswebframework.web.database.manager.DatabaseManagerService;
import org.hswebframework.web.database.manager.SqlExecuteRequest;
import org.hswebframework.web.database.manager.SqlExecuteResult;
import org.hswebframework... | 34.43662 | 85 | 0.699387 |
48860242eb9216e290a1a1506f6964bd7efc2202 | 17,632 | package org.prebid.server.auction;
import org.apache.commons.lang3.StringUtils;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.junit.MockitoJUnit;
import org.mockito.junit.MockitoRule;
import org.prebid.server.proto.openrtb.ext.request.ExtGranularityRange;
import org.prebid.server.proto.openrtb.ext.r... | 37.198312 | 118 | 0.57804 |
164b71aae04f7d7ac26f8bd5af420b452e8b83e5 | 686 | package com.mock.apimocks.exception;
/**
* This class represents an Internal Server Error Http response.
* <p/>
* It is meant to be thrown whenever a generic error occurs on the server.
*
* @author gabriel.nascimento
* @version 1.0
*/
public class InternalServerErrorException extends RuntimeException implements... | 23.655172 | 89 | 0.695335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.