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 |
|---|---|---|---|---|---|
2f70472e39266eae1c4bbdf778f274529a2acb9a | 515 |
package shardingsphere.workshop.parser.statement.segment;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import shardingsphere.workshop.parser.statement.ASTNode;
import java.util.Collection;
import java.util.LinkedList;
/**
* Constraint definition segment.
*/
@RequiredArgsConst... | 22.391304 | 83 | 0.821359 |
ac63f583b611feef6a0ce835be04698eb63c51a5 | 77,343 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ZKFCProtocol.proto
package org.apache.hadoop.ha.proto;
public final class ZKFCProtocolProtos {
private ZKFCProtocolProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public inter... | 41.382022 | 190 | 0.703231 |
4d0c14b9eb2cb69e9e2af0d8b45ca82503a970d6 | 1,137 | package biz.uro.CSVDataConverter.swing;
import java.util.ArrayList;
import biz.uro.CSVDataConverter.swing.old.DictionaryFrame;
public enum DataDictionaryKind {
IMPORT ( "Import", "インポート" ) {
@Override
protected DictionaryFrame<?, ?> createWindow( String head ) {
return new ImportWindow( head );
}
},
TY... | 23.204082 | 69 | 0.683377 |
0fd3f7953faa99921c3611e898970adad5c107e8 | 915 | /*
* Copyright (c) 2021 Microsoft Corporation
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
*
* Contributors:
* Micr... | 26.911765 | 84 | 0.718033 |
6699b393db1ec01c5a094d3834a764d275a415fc | 230 | package ch.uzh.ifi.hase.soprafs22.entity;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ValidationResult {
private String wikipediaLink;
private Integer geoNameID;
private Boolean valid;
}
| 17.692308 | 41 | 0.769565 |
190c6445930e5133eb71e239c00e8aef178a92dd | 469 | package io.bdeploy.ui.dto;
import io.bdeploy.interfaces.configuration.pcu.ProcessState;
public class HistoryEntryRuntimeDto {
public final String node;
public final long pid;
public final int exitCode;
public final ProcessState state;
public HistoryEntryRuntimeDto(String node, long pid, int exit... | 23.45 | 92 | 0.692964 |
429d99b68a1b12768ef3fa6df1c8b11bf823cac3 | 852 | package io.slgl.client.jsonlogic;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.Objects;
@JsonDeserialize(as = CustomJsonLogic.class)
public class CustomJsonLogic implements Js... | 25.818182 | 66 | 0.700704 |
31cc1e6f494acc906b73b4bcd4dfee9cc3a4b442 | 521 | package io.github.dlmarion.clowncar;
public enum BloscShuffleType {
NO_SHUFFLE(0), BYTE_SHUFFLE(1), BIT_SHUFFLE(2);
private int shuffle;
private BloscShuffleType(int shuffle) {
this.shuffle = shuffle;
}
public int getShuffleType() {
return this.shuffle;
}
public static BloscShuffleType getShuffleT... | 16.28125 | 55 | 0.68906 |
cb5bae71847356e32790ab5c398ede01bb5070c5 | 4,486 | package uz.neft.entity.action;
import com.google.gson.Gson;
import kong.unirest.HttpResponse;
import kong.unirest.JsonNode;
import kong.unirest.Unirest;
import lombok.*;
import org.hibernate.Hibernate;
import org.hibernate.annotations.CreationTimestamp;
import org.springframework.beans.factory.annotation.Value;
import... | 31.370629 | 106 | 0.568435 |
45244b4b9ec3b32679a66d8d71fa713148b3aab1 | 512 | package org.wx.sdk.statistic.object;
/**
* 累计用户数据实体类
* @author Rocye
* @version 2017-09-25
*/
public class UserCumulate {
/** 数据的日期 */
private String ref_date;
/** 总用户量 */
private Long cumulate_user;
public String getRef_date() {
return ref_date;
}
public void setRef_date(String ref_date) ... | 17.066667 | 51 | 0.6875 |
b9e11469a5bec860414e67ca19159bbe1604534b | 836 | package datawave.ingest.config;
import datawave.ingest.data.RawRecordContainer;
import datawave.ingest.data.Type;
import datawave.ingest.data.config.MarkingsHelper;
import datawave.ingest.data.config.MaskedFieldHelper;
import datawave.ingest.metadata.RawRecordMetadata;
import org.apache.hadoop.conf.Configuration;
imp... | 33.44 | 132 | 0.795455 |
ed8ce7a5d09a7e627934124ebf8ce90da77e6a75 | 87 | package com.google.firebase.firebase.messaging.license;
public final class C1899R {
}
| 17.4 | 55 | 0.804598 |
c2701435b14bbcf2183f98a1d590283558cb143b | 1,810 | package fr.dragorn421.witchtower;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.bukkit.entity.Player;
import fr.dragorn421.witchtower.parameters.WTParameters;
import fr.dragorn421.witchtower.tower.WitchTower;
public class WTManager
{
static private WTManager instance = null;
... | 20.337079 | 96 | 0.704972 |
c0c0d89cefb9d06d1f8d56f8b05589da32e0baa5 | 2,840 | package de.nevini.modules.warframe.commands.drops;
import de.nevini.core.command.Command;
import de.nevini.core.command.CommandDescriptor;
import de.nevini.core.command.CommandEvent;
import de.nevini.core.scope.Node;
import de.nevini.modules.warframe.api.wfs.model.drops.WfsDrop;
import de.nevini.modules.warframe.resol... | 41.764706 | 115 | 0.656338 |
9383980f800d7ff99610c9369077c726e56cb28a | 6,004 | package ru.job4j.srp;
import org.junit.jupiter.api.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
import ru.job4j.calculator.Calculator;
import ru.job4j.calculator.ICalculator;
import ru.job4j.ocp.EngineeringCalculator;
import ru.job4j.tracker.Input;
import ru.job4j.tracker.S... | 34.705202 | 74 | 0.653564 |
e7b98c99d812585a5575b5f6073227f12c555029 | 3,102 | package io.keyko.secretstore.models.secretstore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* DecriptionKeys ... | 24.816 | 108 | 0.643778 |
338de5e8b4579703d853c0c7259980f1343a2684 | 726 |
import java.util.regex.*;
public class RegexUtil
{
public static boolean find(String regexp, String string)
{
Pattern pattern = Pattern.compile(regexp);
Matcher matcher = pattern.matcher(string);
return matcher.find();
}
public static boolean find(String regexp, String... | 17.707317 | 65 | 0.632231 |
6cbbd2d66c1f89b9034afea13a3c161a40624cab | 496 | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JToggleButton;
public class Select extends JToggleButton implements ActionListener{
public Select(){
Icon selectimg = new ImageIcon("img/select.png");
setIcon(select... | 21.565217 | 68 | 0.764113 |
2755caa60c0c61da9331105d53d9ec154082ef94 | 278 | package ru.intertrust.cm.core.gui.impl.client.plugins.navigation;
import ru.intertrust.cm.core.gui.model.counters.CounterKey;
/**
* Created by andrey on 19.03.14.
*/
public interface CounterDecorator {
void decorate(Long counterValue);
CounterKey getCounterKey();
}
| 23.166667 | 65 | 0.755396 |
fcedaff45aed8e8d82370eb51daef006ee02e8fa | 2,412 | package org.scadalts.e2e.page.impl.pages.scripts;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.SelenideElement;
import org.openqa.selenium.support.FindBy;
import org.scadalts.e2e.page.core.components.E2eWebElement;
import org.scadalts.e2e.page.core.criterias.Tag;
import org.scadalts.e2e.page.... | 32.16 | 96 | 0.730929 |
6cefb2123c92950e3161530301b5911460875742 | 1,784 | /*
* Copyright (c) 2022. CMPUT301W22T29
* Subject to MIT License
* See full terms at https://github.com/CMPUT301W22T29/QuiRky/blob/main/LICENSE
*/
package com.example.quirky;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import android.app.Activity;
import android.widget.... | 27.446154 | 89 | 0.717489 |
990cc90802edd1b5e368d9e4d14af0cf35d3cb0d | 1,332 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.userquery.entity;
import com.thinkgem.jeesite.common.persistence.DataEntity;
/**
* 单用户话单查询条件Entity
* @author zhuguangrui
* @version 2017-05-31
*/
public class U... | 18.760563 | 108 | 0.727477 |
16f8b749e6360a8cd3c018338994dce17efca2d4 | 415 | package uk.co.idv.otp.entities.send;
import uk.co.idv.method.entities.otp.OtpConfigMother;
import uk.co.idv.method.entities.otp.delivery.DeliveryMethodMother;
public interface OtpParamsMother {
static OtpParams build() {
return OtpParams.builder()
.otpConfig(OtpConfigMother.build())
... | 25.9375 | 67 | 0.674699 |
14c3bcf0d163ad52d6a6b3c5cee69516bbd1fa2a | 4,563 | package me.asinshabi.runtimehandler.datahandler;
import java.util.ArrayList;
import java.util.List;
public class DataTable {
public static class LogMessages{
public static final String CREATED = "DataTable created successfully";
public static final String MODIFIED = "DataTable modified successful... | 31.253425 | 130 | 0.587114 |
6e314671d541f21ff13020ef0be04c42848eebac | 1,695 | package edu.kit.ipd.pp.prolog.vipr;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import edu.kit.ipd.pp.prolog.vipr.model.ast.CalculateException;
import edu.kit.ipd.pp.prolog.vipr.model.ast.FunctorTerm;
import edu.kit.ipd.pp.prolog.vipr.model.ast.Minus;
import edu.kit.ipd.pp.prolog.vipr.model.a... | 35.3125 | 106 | 0.709735 |
d9a83ab9cb8ae860891f086d87d91369740e35f6 | 1,864 | package architecture.community.tag;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import architecture.community.exception.UnAuthorizedException;
public class TagHelper {
private Logger log = LoggerFactory.getLogger(getClass());... | 29.125 | 95 | 0.707618 |
5afd0b70774951f4026fd65f2755f67bdbcf6f77 | 774 | package edu.sjsu.directexchange.service;
import edu.sjsu.directexchange.dao.AcceptedOfferDao;
import edu.sjsu.directexchange.model.AcceptedOffer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import javax.transaction.Transactiona... | 25.8 | 77 | 0.830749 |
df0ff9c39aae16f6480701f79dea5ed4f61be642 | 15,218 | /*
* Copyright Nicolò Paternoster 2013-2015
* http://botcoin.io
* mailto: leg@lize.it
*/
package io.botcoin.core;
import io.botcoin.UI.DashboardController;
import io.botcoin.task.ConnectionThread;
import static javafx.application.Application.launch;
import io.botcoin.task.ScheduledOperations;
import io.botcoin.UI... | 34.586364 | 177 | 0.602839 |
3542fcc42acb38e2ab0447a31e871f5f0d739568 | 3,265 | /* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any la... | 30.231481 | 82 | 0.639816 |
80374cc6a405e092278c4c4958638ba5e8458a5b | 468 | package my.interest.lang.tamil.bean;
/**
* <p>
* </p>
*
* @author velsubra
*/
public class SingleWordSplit {
private String word;
public String getWord() {
return word;
}
public void setWord(String word) {
this.word = word;
}
public SimpleSplitResult getSplit() {
... | 15.6 | 51 | 0.602564 |
d6916c18f93bc4ca05ab802ce438816132a62c48 | 2,152 | package dominio.dom.tarjeta;
import java.util.Date;
import java.util.List;
import org.apache.isis.applib.AbstractFactoryAndRepository;
import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.annotation.Action;
import org.apache.isis.applib.annotation.ActionLayout;
import org.apache.isis.app... | 34.15873 | 96 | 0.781134 |
7cfa3cc9c453b426e344b97c70dff72f7f92a12a | 2,243 | // Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
package oracle.kubernetes.operator;
import io.kubernetes.client.ApiException;
import io.kubernetes.client.models.V1ObjectMeta;
imp... | 36.770492 | 170 | 0.769505 |
baa87bed370265b274fcc781b7cde77903acb764 | 1,120 | package main.com.chenwan.coding2019.utils.zookeeper;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
/**
* @program: base
* @description: ZKSetData
* @author: cliffcw
* @create: 2019-07-15 15:40
*/
public class ZKSetData {
private static ZooKeeper zk;
private static ... | 22.857143 | 103 | 0.624107 |
9705566b33a1fdcb209850b084acb6984ccb748b | 2,514 | package kr.spring.batch.chapter08.test.restart;
import kr.spring.batch.chapter08.jpa.repositories.ProductRepository;
import kr.spring.batch.chapter08.restart.FilesInDirectoryItemReader;
import kr.spring.batch.chapter08.test.JpaHSqlConfiguration;
import kr.spring.batch.infrastructure.BatchDataSourceConfiguration;
impor... | 34.438356 | 85 | 0.768099 |
bec134264c6507458fd5c9f613101c16e6be0580 | 1,205 |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// third_party/blink/public/mojom/cookie_stor... | 28.023256 | 134 | 0.795851 |
dbc537fce69d48f59e23951c5dbd79ce87138d38 | 716 | package org.jglue.cdiunit.internal.producerconfig;
import org.jglue.cdiunit.internal.ClassLookup;
import org.jglue.cdiunit.internal.DiscoveryExtension;
public class ProducerConfigDiscoveryExtension implements DiscoveryExtension {
private final boolean supportsProducerFactory = ClassLookup.INSTANCE.isPresent("javax.... | 32.545455 | 131 | 0.828212 |
aa2be960b09074c20af9106264af5b8642efd3bf | 265 | package com.kidscademy.atlas.studio.tool;
public enum ImageCompose {
SRCIN("srcin");
private String value;
private ImageCompose(String value) {
this.value = value;
}
public String value() {
return value;
}
} | 17.666667 | 42 | 0.592453 |
332764cee8f9ec94b0c4b43cabde83743e33ffc8 | 613 | package com.moonymango.snare.res.texture;
import com.moonymango.snare.opengl.TextureObj.TextureSize;
import com.moonymango.snare.res.texture.BitmapTextureResource.ITextureChannelSource;
/**
* Channel source which returns a constant value for each pixel.
*/
public class ConstGenerator implements ITextureChannelSourc... | 21.892857 | 84 | 0.698206 |
84327dfc8ffb904728c79c32cf3d09b67c50e248 | 9,563 | package org.folio.innreach.domain.service.impl;
import static java.util.Objects.nonNull;
import java.util.List;
import java.util.UUID;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
impo... | 40.180672 | 175 | 0.782077 |
2f9986849c9039bb8bffebcdd2bcb8336f3cdf1d | 1,124 | package voogasalad_GucciGames.gameplayer.scenes.concrete;
import java.util.Map;
import voogasalad_GucciGames.gameplayer.scenes.GameScene;
import voogasalad_GucciGames.gameplayer.scenes.GameSceneManager;
import voogasalad_GucciGames.gameplayer.windows.GameWindow;
import voogasalad_GucciGames.gameplayer.windows.mainwin... | 26.761905 | 86 | 0.793594 |
5ba2e44b41526c31b42bcc97b90132658503c762 | 432 | package com.ironman.ma.Hackathons.fkp.mc;
import java.util.Set;
public interface BillService {
void registerBill(Bill bill);
String registerGroup(Group group);
String registerUser(String userName);
String getUserName(String userId);
void registerUserToGroup(String userId, String groupId);
... | 21.6 | 67 | 0.759259 |
0bc267876582a3f8174536844c700e61183aab44 | 2,061 | package ca.corefacility.bioinformatics.irida.ria.integration.users;
import org.junit.Test;
import ca.corefacility.bioinformatics.irida.ria.integration.AbstractIridaUIITChromeDriver;
import ca.corefacility.bioinformatics.irida.ria.integration.pages.LoginPage;
import ca.corefacility.bioinformatics.irida.ria.integration... | 40.411765 | 112 | 0.793304 |
2b41f9f769db5852f8d3b49decd852df4967b0ca | 402 | package com.yeyouluo;
/**
* Author: yeyouluo
* Date: 2018/7/11
*/
public class ConcreteBuilder1 extends Builder{
private Product product = new Product();
@Override
public void buildPartA() {
product.add("部件A");
}
@Override
public void buildPartB() {
product.add("部件B");
... | 16.08 | 46 | 0.597015 |
1d02a576c3719ad50123cb41ca1edadc7db3f6ea | 5,569 | /**
Copyright 2014 Jaume Jané
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 33.548193 | 137 | 0.676782 |
b756d4587c3a010e0ca3b8965ee46268548b0058 | 22,096 | /**
* Copyright (c) 2009 - 2011 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org>
*
* This file is part of org.appwork.storage.simplejson.mapper
*
* This software is licensed under the Artistic License 2.0,
* see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php
* for detai... | 40.468864 | 171 | 0.469451 |
04e2f055344b943c116d58746a42adebb908f368 | 3,452 | package com.redescooter.ses.mobile.wh.fr.dm;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import ... | 21.710692 | 71 | 0.65701 |
e475737043ec0f2ed0b4ca9503e5571c79316975 | 25,062 | /*
* Copyright 2013 Netherlands eScience Center
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 40.292605 | 233 | 0.662996 |
b443f082617050adb21f1a5ff46a8afdfa9a130b | 4,438 | /*
* Copyright 2019 Regents of the University of Minnesota.
*
* 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 ... | 32.632353 | 102 | 0.6379 |
2335a0a8910ffdfdf0735d295a8f2083050a4afa | 531 | package com.learnwithted.kidbank.adapter.web;
import com.learnwithted.kidbank.adapter.ScaledDecimals;
import com.learnwithted.kidbank.domain.Account;
import org.springframework.web.bind.annotation.ModelAttribute;
public class TransactionController {
protected final Account account;
public TransactionController(A... | 26.55 | 62 | 0.779661 |
28e5fd8253922e749752b8fdfd86a976918dce83 | 3,049 | package com.example.demo.config;
import org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.... | 46.907692 | 145 | 0.712037 |
5564077b3ee0913cb53290f24f12ac4de53e848f | 1,036 | package io.example.test.fakes;
import io.example.dao.AccessDao;
import io.example.dto.AccessCheckRequest;
import io.example.dto.PrivateData;
import io.example.dto.PrivateDataRequest;
import io.example.dto.PublicData;
import java.util.concurrent.ThreadLocalRandom;
/**
* @author Viktor
* @since 2018-10-27
*/
public... | 25.9 | 65 | 0.686293 |
8182e43b23123e9ad5e6e8d9930b2e0ad7c11a7d | 4,566 | package com.ahrefs.blizzard.viewmodel;
import android.app.Application;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.ahrefs.blizzard.Repository;
import com.ahrefs.blizzard.model.room.Weather;
import com.ahrefs.blizzard.workmanager.OneTimeWorker;
im... | 39.704348 | 144 | 0.736969 |
a1085f938f6a4879d9f071e0063da04c04415088 | 1,408 | package com.dsmp.report.web.repository;
import com.dsmp.report.common.domain.ReportTaskExec;
import com.dsmp.report.common.vo.ReportTaskExecVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springfr... | 46.933333 | 141 | 0.671875 |
b40f618cbfb3475400f7576b3aaef2e563352e4a | 839 | public class Cuadrado {
private int y;
private int x;
private int lado;
static boolean RELLENO;
Cuadrado(int x, int y, int lado) {
this.setX(x);
this.setY(y);
this.setLado(lado);
}
// If lado is not given, generate cuadrado of lado 1
Cuadrado(int x, int y) {
this(x, y, 1);
}
public void setX(int x)... | 14.465517 | 53 | 0.624553 |
488412667093fe10902ff9245e76b23916e132fd | 49,646 | /*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* 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
*
... | 47.462715 | 111 | 0.572372 |
f8c60d0da9f0fc6532a8ddfd760e320dc6bc65b1 | 978 | package org.wso2.custom.outbound.provisioning.connector.compass;
import org.wso2.carbon.identity.application.common.model.Property;
import org.wso2.carbon.identity.provisioning.AbstractOutboundProvisioningConnector;
import org.wso2.carbon.identity.provisioning.IdentityProvisioningException;
import org.wso2.carbon.iden... | 37.615385 | 120 | 0.826176 |
40c1cf095c979ad62881c534b42e788a6995bee2 | 4,289 | package com.cedricziel.idea.typo3.index.extbase;
import com.cedricziel.idea.typo3.extbase.controller.StubControllerAction;
import com.cedricziel.idea.typo3.index.externalizer.ObjectStreamDataExternalizer;
import com.cedricziel.idea.typo3.util.ExtbaseUtility;
import com.cedricziel.idea.typo3.util.ExtensionUtility;
impo... | 33.771654 | 128 | 0.659361 |
2f69c265f141ceeb791b3ae49bc5c32f1857ea41 | 9,440 | /**
* This class was created by <WireSegal>. It's distributed as
* part of the Quark Mod. Get the Source Code in github:
* https://github.com/Vazkii/Quark
* <p>
* Quark is Open Source and distributed under the
* CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB
* <p>
* File C... | 29.5 | 201 | 0.693538 |
123faa542460150d1da01543865412ee6fd65640 | 756 | package nodebox.node;
/**
* A "fuzzy" way of specifying a node version.
* <p/>
* Examples:
* <ul>
* <li>"=2.0" -- only version 2.0, nothing above or below that.</li>
* <!-- <li>"2.0" -- same as above. Used for XML parsing.</li> -->
* <li>">=2.0" -- anything greater or equal then version 2.0</li>
* </ul>
*/... | 22.235294 | 68 | 0.604497 |
882dc2020258c13b270ee0440490621b9896a601 | 390 | package uk.gov.ons.entities;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
@JsonIgnoreProperties(ignoreUnknown = true)
public @Data class CollectionCase {
private String id;
private String caseType;
private String survey;
private InputAddress address;
private boolean handDe... | 21.666667 | 61 | 0.812821 |
10869e232ae79cd9bd29da9578f9de72bbf33519 | 4,672 | package net.coding.program.setting;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Environment;
import android.view.LayoutInflater;
import android.view.View;
import androi... | 35.12782 | 138 | 0.649829 |
a401444f640d485a0fcda99d0b136644b8011fd2 | 9,033 | package com.heaven7.java.game.base.state;
import java.util.ArrayList;
import java.util.List;
/**
* this is a default implements of {@link StateMachine}}.
*
* @param <E> the owner
* @author heaven7
*/
public class DefaultStateMachine<E> implements StateMachine<E> {
/*protected static final int OP_ENTER = ... | 28.40566 | 103 | 0.59338 |
4d9930cf2bc3b9fccefa9fe103d387e984378fc8 | 2,820 | package me.Abhigya.core.util.world;
import org.apache.commons.lang.Validate;
import org.bukkit.metadata.FixedMetadataValue;
import org.bukkit.plugin.Plugin;
import org.bukkit.util.NumberConversions;
/** Class for changing GameRule Metadata values */
public class GameRuleMetadata extends FixedMetadataValue {
prot... | 21.203008 | 98 | 0.561702 |
ac0968b9142936cde0b3b5bd315c46e918dd767f | 1,872 | /*
* Copyright 2019 The Catty 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 applicable law or agreed to i... | 26.366197 | 85 | 0.748397 |
c279de7ac986d465ab8e0f9d2e57730493ff15ed | 2,297 | package me.ykrank.androidlifecycle_demo;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.vi... | 22.742574 | 123 | 0.621245 |
5796f1c19932af8aee856f3aa0cf653cc422a19f | 4,836 | package fr.redfroggy.ilg.client.search;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
@JsonDeserialize(builder = SiteSearchRequest.SiteSearchRequestBuilder.class)
@JsonInclude(Js... | 27.793103 | 111 | 0.599256 |
917ac272b2e5400de1760c9b15588010039071ae | 827 | package org.loomdev.loom.util.transformer;
import net.minecraft.network.protocol.game.ServerboundResourcePackPacket;
import org.loomdev.api.util.ResourcePackStatus;
public final class ResourcePackActionTransformer {
private ResourcePackActionTransformer()
{}
public static ResourcePackStatus to... | 31.807692 | 91 | 0.67231 |
9bbc241d729e39c4fe6b350d4ad020ab175b3531 | 7,608 | package com.ucar.zkdoctor.service.zk;
import com.ucar.zkdoctor.pojo.bo.HostAndPort;
import com.ucar.zkdoctor.pojo.po.InstanceInfo;
import com.ucar.zkdoctor.pojo.vo.ZnodeDetailInfoVO;
import com.ucar.zkdoctor.pojo.vo.ZnodeTreeNodeVO;
import java.util.List;
/**
* Description: zk服务相关接口
* Created on 2018/1/16 10:27
*... | 25.877551 | 129 | 0.603444 |
2983172bbc4f54aaa72ef3f1664e659a911e1921 | 1,665 | /*******************************************************************************
* Copyright 2014 Chaupal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 37 | 82 | 0.71952 |
a8638ffcb373f703f9bcd4abbe359834f02d323b | 11,423 | package com.brein.api;
import com.brein.domain.BreinConfig;
import com.brein.domain.BreinUser;
import com.brein.domain.results.BreinTemporalDataResult;
import com.brein.util.BreinMapUtil;
import com.brein.util.BreinUtil;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Array... | 28.629073 | 117 | 0.527357 |
b12374eb8b94f0d4df59c2e3ac74bc6a10604c10 | 1,996 | package site.kason.klex.nfa;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Set;
import site.kason.klex.CharStream;
/**
*
* @author Kason Yang
*/
public class NFA {
private NFAState startState;
private List<NFAState> acceptedStates;
public NFA(NFAState startSt... | 26.613333 | 86 | 0.711423 |
c17ff0808f8d798283f17c4aa0a4bd55b34bd1ac | 1,715 | /*
* Copyright 2012 - 2013 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... | 33.627451 | 96 | 0.763848 |
6f09cfb55c9a1c1193dadb0720874b3294e9772d | 1,939 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 42.152174 | 81 | 0.730273 |
621c43b5867834bba802df97dada979dded692d0 | 19,640 | /**
* Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.tutorial.datasets;
import java.util.LinkedHashMap;
import org.apache.commons.lang.ArrayUtils;
import org.threeten.bp.LocalDate;
import org.threeten.... | 60.061162 | 186 | 0.775458 |
887d2e27b8e63e2166bab79bd9e6f7e946dac992 | 13,679 | package uk.ac.newcastle.team22.usb.activities;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.annotation.ColorInt;
import android.support.annotati... | 33.775309 | 148 | 0.634038 |
5a65c04de94e72e1819d39fcdfacc6589742b938 | 1,167 | package cn.edu.xmu.g12.g12ooadgoods.model.vo.good;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@Data
@ApiModel("新SKU传值对象")
public class NewSkuVo {
// {
// "sn"... | 20.839286 | 50 | 0.592973 |
a085fda1ce112d32b1a6c30f64e71aa69b655432 | 336 | package com.karumi;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class AdditionTest {
@Test
public void shouldReturnAValidSumWhenReceivedTwoValidArguments() throws Exception{
Addition adition = new Addition();
int add = adition.add(2, 2);
assertEquals(4... | 19.764706 | 86 | 0.696429 |
935893d59c13a1d44d1a28d053a9adfa8c7abd65 | 4,855 | /*******************************************************************************
* Copyright © 2019 by California Community Colleges Chancellor's Office
*
* 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
* o... | 35.181159 | 120 | 0.620391 |
9d0537d008c685abde21c284d4c5d164d1f1d6a8 | 1,402 | import org.hamcrest.core.Is;
import org.junit.Test;
import static org.junit.Assert.assertThat;
/**
* Created with IntelliJ IDEA.
* User: yli1
* Date: 5/16/2020
* Time: 9:27 AM
*/
public class TaxiItineraryTest {
@Test
public void should_create_taxi_itinerary_out_of_text() {
TaxiItinerary taxiItin... | 35.948718 | 89 | 0.700428 |
6482412198a283c141aae0b3fb427641c502bc6d | 2,102 | /**
* Copyright 2010-2016 Boxfuse 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 48.883721 | 133 | 0.766413 |
7fb06e322c2b40a5cd8abf62070140be84df46f6 | 723 | package com.glisco.things.mixin;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.recipe.BrewingRecipeRegistry;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowe... | 36.15 | 95 | 0.795297 |
6f0fb7a64a1ec238ce8eed0b53ab19697fab7dcb | 433 | package ua.training.cruise_company_on_spring.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import ua.training.cruise_company_on_spring.entity.Ship;
import java.util.List;
import java.util.Optional;
public interface ShipRepository extends JpaRepository<Ship,Long> {
List<Ship> findAllBy... | 27.0625 | 66 | 0.803695 |
96c9853032060b0f488b3c826a8e0503b15427c6 | 376 | package se.jiderhamn.classloader.leak.prevention.preinit;
import org.junit.Ignore;
/**
* Test cases for {@link JavaxSecurityLoginConfigurationInitiator}
* @author Mattias Jiderhamn
*/
@Ignore // Fixed in newer versions of Java
public class JavaxSecurityLoginConfigurationInitiatorTest extends PreClassLoaderInitiato... | 31.333333 | 141 | 0.832447 |
73fdc3286785d130fb1afec2100a82b027d50e7a | 7,153 | package com.jiuwu.picboutique.fragment;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import andro... | 33.425234 | 128 | 0.61247 |
224142b7e6a224aa762bb8264ba88b64bc0d1857 | 4,518 | /*
* Copyright (c) 2020 HRZN LTD
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... | 44.294118 | 330 | 0.66888 |
c9a2348687ed9dadac8b1381fa35c279f41381af | 585 | package es.uniovi.apuntesuniovi.random.model;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Dob {
private OffsetDateTime date;
private long age;
@JsonProperty("date")
public OffsetDateTime getDate() {
return date;
}
@JsonProperty... | 19.5 | 53 | 0.644444 |
80b98fa3a97d66add6151116af271baa119bc023 | 6,450 | package net.gini.dropwizard.gelf.logging;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
/**
* Simple factory for a {@link Thread.UncaughtExceptionHandler} which logs the last uncaught exception with a SLF4J {@link
* L... | 38.392857 | 122 | 0.643721 |
980a5083febe3224d8c2c71d58ce6b408222797b | 2,540 | package org.zalando.riptide.autoconfigure;
import org.apiguardian.api.API;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
i... | 38.484848 | 112 | 0.753543 |
7349dba2540208d04ed46181249b386e78a08a23 | 1,582 | package ru.i_novus.ms.rdm.sync.admin.api.utils;
import org.springframework.data.domain.Page;
import ru.i_novus.ms.rdm.sync.admin.api.model.AbstractCriteria;
import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
/**
* Итератор страниц.
*
* @param <T> класс значения на странице
* @p... | 22.6 | 97 | 0.630847 |
d333bb1e827ef075e2813b80d9953647a2a994a4 | 1,097 | package LinkedList;
import DS.ListNode;
import java.util.PriorityQueue;
// R.T O(N * log K) space complexity: O(K)
//solution: using a size ok K head put all heads into the heap, and get the top element, then put
class MergeKSortedList {
public ListNode mergeKLists(ListNode[] lists) {
return helpe... | 25.511628 | 107 | 0.556062 |
a59e823e1dce17731ce9fc3ec2765146c3560096 | 1,379 | package com.nodecollege.test;
import java.util.Stack;
/**
* 设计一个返回最小值的栈
* 定义栈的数据结构,请在该类型中实现一个能够得到栈最小元素的min函数。
*/
public class MinStack {
Stack<Integer> stack = new Stack<>();
Stack<Integer> minStack = new Stack<>();
public void push(int node) {
if (stack.isEmpty()) {
stack.push(nod... | 22.606557 | 46 | 0.500363 |
3fef7b5d960e27876abe012cfe9116f2406776e5 | 4,442 | /*
* (C) Copyright IBM Corp. 2021.
*
* 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 w... | 24.541436 | 122 | 0.617515 |
f4da352b0677f70621073ceef434a539e80c10c8 | 485 | package com.zhujun.dao;
import com.zhujun.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
@Component
public interface UserDao {
@Select("select * from users where username = #{username}")
public User getUse... | 28.529412 | 77 | 0.775258 |
a86a01d826aff6be14d68ff4272613d419b03e0d | 3,062 | /*
* 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 ... | 31.895833 | 83 | 0.712933 |
d71c695dd71193df478bc06038d9891c2853b8bc | 496 | package com.jyusun.origin.core.common.util;
import lombok.experimental.UtilityClass;
/**
* 手机号工具类
*
* @author jyusun at 2022-1-5 22:57:58
*/
@UtilityClass
public class MobileUtil {
/**
* 手机号 四位替换为*号
*
* @param mobile 手机号码
* @return 替换后的号码
*/
public String formatAsterisk(String mo... | 18.37037 | 68 | 0.572581 |
c5c2cc9fe404778b595b734c2a5e56c410856bb0 | 162 | package ru.job4j.models;
/**
* Класс Пациент.
* @author Pavel Priklonsky (votymu@yandex.ru)
* @version $Id$
*/
public class Patient extends Profession {
}
| 13.5 | 46 | 0.685185 |
bea385ba0a69eff0c6fcf6a03b2fab66037b2c97 | 1,256 | package com.sls.security.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
@Entity()
@Table(name="MUKAM_S... | 18.202899 | 82 | 0.747611 |
bf85b13ee140d4754ced7c37595cdc92e9f82574 | 1,618 | package com.zhx.one.mvp.first.presenter;
import android.util.Log;
import com.zhx.one.base.BasePresenter;
import com.zhx.one.bean.HPDetailEntity;
import com.zhx.one.bean.HPIdListEntity;
import com.zhx.one.mvp.first.model.IFirstModel;
import com.zhx.one.mvp.first.model.impl.FirstModelImpl;
import com.zhx.one.mvp.first.... | 31.115385 | 86 | 0.611248 |
2b37bff42d641dd26c9563e8afbe8088158ae734 | 1,613 | package com.openxc.measurements;
import com.openxc.units.Boolean;
/**
* Cruise control command Measurement
* This measurement works essentially the same as sending a state based
* message but instead of setting the state you are setting the command.
*
* The value sent is always true. You could send fals... | 21.797297 | 78 | 0.611283 |
1d73bdc3c87702c81b8b2d752ed108a9a3757810 | 510 | package com.ruiferrao.jin.commons.persistence.hibernate;
import com.ruiferrao.jin.commons.persistence.TransactionManager;
public class HibernateTransactionManager implements TransactionManager {
@Override
public void begin() {
HibernateSessionManager.beginTransaction();
}
@Override
pub... | 18.214286 | 72 | 0.717647 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.