text
stringlengths
7
995k
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/* * Copyright 2015 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 applicable l...
package ee.eerikmagi.testtasks.arvato.invoice_system.logic; import java.math.BigDecimal; import java.math.RoundingMode; import java.time.LocalDateTime; import java.time.YearMonth; import java.util.List; import ee.eerikmagi.testtasks.arvato.invoice_system.model.Customer; import ee.eerikmagi.testtasks.arvato.invoice_sy...
package org.snomed.snowstorm.fhir.services; import org.hl7.fhir.r4.model.*; import org.junit.Test; import org.junit.runner.RunWith; import org.snomed.snowstorm.TestConfig; import org.snomed.snowstorm.core.data.domain.Concepts; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.http...
/* * 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 ...
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * gradle plugin from the resource data it found. It * should not be modified by hand. */ package com.kakao.util; public final class R { public static final class array { public static final int com_kakao_accounts...
package com.github.dactiv.framework.mybatis.plus.wildcard; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.github.dactiv.framework.spring.web.query.Property; import com.github.dactiv.framework.spring.web.query.generator.WildcardParser; import org.apache.commons.lang3.BooleanUtils; /** ...
/* * Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
// Copyright 2015 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. package org.chromium.chrome.browser.preferences.website; import org.chromium.chrome.browser.ContentSettingsType; import org.chromium.chrome.browser.util....
package org.apereo.cas.adaptors.x509.authentication.principal; import lombok.val; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import org.springframework.core.io.ClassPathResource; import java.io.FileInput...
package uk.gov.hmcts.reform.divorce.model; import lombok.Builder; import lombok.Data; @Builder @Data public class CreateUserRequest { private String email; private String password; private String forename; private String surname; private UserCode[] roles; }
package datastructure.stack; import java.util.Arrays; import java.util.EmptyStackException; /** * @author roseduan[roseduan520@gmail.com] * @time 2019/10/27 15:13 * @description 使用数组实现简单的栈 */ public class ArrayStack<T> { private static final int DEFAULT_CAPACITY = 10; private Object[] data; private ...
/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.lang.java.rule.design; import net.sourceforge.pmd.testframework.PmdRuleTst; public class SignatureDeclareThrowsExceptionTest extends PmdRuleTst { // no additional unit tests }
package edu.cmu.graphchi.util; /** * Container class carrying a vertex id and a float value. * @author Aapo Kyrola */ public class IdFloat { int vertexId; float value; public IdFloat(int vertexId, float value) { this.vertexId = vertexId; this.value = value; } public int getVer...
package com.codepath.apps.restclienttemplate; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerVi...
package com.hjz.config.DBConfig.mybatis; /** * Description: TODO * Author: hujingzheng * Date: 2021/4/30 14:07 */ import com.hjz.interceptor.mybtis.MybatisPlusLogInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import java.util.Properti...
package com.wwxyh.gulimall.coupon.controller; import java.util.Arrays; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annot...
package org.bhavaya.util; import junit.framework.TestCase; import org.bhavaya.util.Task; import org.bhavaya.util.TaskQueue; import org.bhavaya.util.TaskExecutor; import org.bhavaya.util.PriorityTaskQueue; /** * Description * * @author James Langley * @version $Revision: 1.1 $ */ public class TaskQueueTest extend...
package utils; import javafx.scene.control.Alert; import javafx.scene.control.Alert.AlertType; /** * cette class permet de cr�e des alert de type INFORMATION ou ERROR * * @author REMILA Yanis * @version 1.1 */ public class BoiteModale { /** * permet de cr�e une alert INFORMATION * * @param titre * ...
package io.github.adorableskullmaster.nozomi.features.commands.fun; import com.jagrosh.jdautilities.command.CommandEvent; import io.github.adorableskullmaster.nozomi.Bot; import io.github.adorableskullmaster.nozomi.features.commands.FunCommand; public class EchoCommand extends FunCommand { public EchoCommand() { ...
package mc.ajneb97.mysql; import java.sql.Date; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.text.SimpleDateFormat; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.UUID; import org.bukkit.Bukkit; import org.bukkit.ChatC...
/* Copyright 2017 Zutubi Pty Ltd * * 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...
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
// Copyright 2016 The Bazel Authors. 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 appl...
package io.github.hulang1024.chess.room.ws; import io.github.hulang1024.chess.ws.ServerMessage; import io.github.hulang1024.chess.room.Room; import lombok.Data; @Data public class LobbyRoomRemoveServerMsg extends ServerMessage { private long roomId; public LobbyRoomRemoveServerMsg(Room room) { super(...
package mezz.jei.ingredients; import mezz.jei.api.ingredients.IIngredientHelper; import mezz.jei.api.ingredients.IIngredientRenderer; import mezz.jei.api.ingredients.IIngredientType; import mezz.jei.api.ingredients.subtypes.UidContext; import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Unmodi...
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class MyWorld here. * * @author (your name) * @version (a version number or a date) */ public class MundoCangrejo extends World { private Lobster lobster; private Crab crab; private Greenfoot...
package de.d3adspace.rebekah.commons.handler; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import de.d3adspace.rebekah.commons.context.MessageContext; import de.d3adsp...
package comjgabrielfreitas.easygcmdemo; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.widget.TextView; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; ...
/*================================================================================ Copyright (c) 2013 Steve Jin. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must re...
package seedu.club.model.email; //@@author yash-chowdhary import static java.util.Objects.requireNonNull; /** * Refers to the email client chosen by the member to send the email. */ public class Client { public static final String VALID_CLIENT_GMAIL = "gmail"; public static final String VALID_CLIENT_OUTLOO...
/* * Copyright 2018 ConsenSys AG. * * 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 wr...
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.updateSettings.impl; import com.intellij.CommonBundle; import com.intellij.ide.IdeBundle; import com.intellij.ide.plugins.IdeaPluginDescriptor; impor...
package com.planet_ink.coffee_mud.Abilities.Common; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill.CraftParms; import com.planet_ink.coffee_mud.Abilities.Com...
/* * Copyright (c) 2012, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
/* * 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 ...
package uk.ac.ox.ndph.mts.site_service.repository; import ca.uhn.fhir.rest.client.exceptions.FhirClientConnectionException; import ca.uhn.fhir.rest.gclient.ICriterion; import ca.uhn.fhir.rest.gclient.IQuery; import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException; import org.hl7.fhir.r4.model.Bundle; impor...
/* * Copyright 2000-2020 Vaadin Ltd. * * 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...
package a.a.g.b.g; static class k$a { public static final /* synthetic */ int[] sr; static { k$a.sr = new int[k.b.values().length]; try { k$a.sr[k.b.ss.ordinal()] = 1; } catch (NoSuchFieldError noSuchFieldError) {} try { k$a.sr[k.b.st.ordinal...
package io.github.jiezhi.lcof; /** * CREATED AT: 2021/10/16 * https://github.com/Jiezhi/LCOF-Java * <p> * Difficulty: Easy * <p> * <p> * 剑指 Offer 03. 数组中重复的数字 * 找出数组中重复的数字。 * <p> * <p> * 在一个长度为 n 的数组 nums 里的所有数字都在 0~n-1 的范围内。数组中某些数字是重复的,但不知道有几个数字重复了,也不知道每个数字重复了几次。请找出数组中任意一个重复的数字。 * <p> * 来源:力扣(LeetCode) ...
package genepi.io.plink; import java.io.IOException; public class Snp { private int chromosome; private String id; private float geneticPosition; private int physicalPosition; public Snp(String line) throws IOException { // parse line String[] tiles = line.split("\\s{1}(?!\\s)"); if (tiles.length == ...
package com.alibaba.alink.operator.batch.dataproc.vector; import org.apache.flink.types.Row; import com.alibaba.alink.common.linalg.VectorUtil; import com.alibaba.alink.operator.batch.BatchOperator; import com.alibaba.alink.operator.batch.source.MemSourceBatchOp; import com.alibaba.alink.testutil.AlinkTestBase; impor...
/** * Modified MIT License * * Copyright 2017 OneSignal * * 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, ...
package com.publiccms.views.directive.cms; // Generated 2015-5-10 17:54:56 by SourceMaker import static org.apache.commons.lang3.ArrayUtils.isNotEmpty; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; im...
package com.rki.essenAufRaedern.backend.service; import com.rki.essenAufRaedern.backend.entity.OrderInformation; import com.rki.essenAufRaedern.backend.repository.OrderInformationRepository; import com.rki.essenAufRaedern.backend.utility.Status; import org.springframework.stereotype.Service; import java.util.Calendar...
/* * Copyright (C) 2019 The Turms Project * https://github.com/turms-im/turms * * 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 * *...
/******************************************************************************* * Copyright 2018 UIA * * 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. ...
/* * Copyright The Hypertrace 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 agre...
package lab.moea.problem; import java.util.Properties; import org.moeaframework.core.Problem; import org.moeaframework.problem.CEC2009.CF1; import org.moeaframework.problem.CEC2009.CF10; import org.moeaframework.problem.CEC2009.CF2; import org.moeaframework.problem.CEC2009.CF3; import org.moeaframework.problem.CEC200...
/* * Copyright 2004-2010 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
package com.documents4j.ws.application; import com.documents4j.api.IConverter; import com.documents4j.conversion.IExternalConverter; import com.documents4j.job.LocalConverter; import org.glassfish.jersey.server.spi.Container; import org.glassfish.jersey.server.spi.ContainerLifecycleListener; import org.slf4j.Logger; i...
package app.eeui.framework.extend.integration.xutils.http; import android.text.TextUtils; import app.eeui.framework.extend.integration.xutils.common.Callback; import app.eeui.framework.extend.integration.xutils.common.task.AbsTask; import app.eeui.framework.extend.integration.xutils.common.task.Priority; import app.e...
/* * MigrationLoader.java * Copyright 2013 (C) James Dempsey <jdempsey@users.equipforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, ...
package org.pcollections; import java.util.AbstractSequentialList; import java.util.Collection; import java.util.Iterator; import java.util.ListIterator; /** * * A simple persistent stack of non-null values. * <p> * This implementation is thread-safe (assuming Java's AbstractSequentialList is thread-safe), * ...
/******************************************************************************* * Copyright 2021 Data In Motion Consulting 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 * * ...
package spelling; import java.util.List; /** * @author UC San Diego Intermediate MOOC team */ public interface WordPath { /** * Return a path from word1 to word2 through dictionary words with * the restriction that each step in the path can involve only a * single character mutation * ...
/* * Copyright (c) 2014. Escalon System-Entwicklung, Dietrich Schulten * * 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...
/* * Copyright 2012-2019 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...
/* * Copyright 2000-2015 JetBrains s.r.o. * * 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 agre...
import java.util.Scanner; public class E17_LeastDistanceBetweenTwoNumber { static int count = 0; static int[] ans = new int[1000]; public static void main(String[] args) { System.out.println("E17. 兩數間最小距離 "); findDistance(); } public static void findDistance() { Scanner scanner = new Scanner...
/** * JBoss, Home of Professional Open Source. * Copyright 2017 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Lice...
/* * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
/* * 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 ...
package beginner; import com.sandwich.koan.Koan; import static com.sandwich.koan.constant.KoanConstants.__; import static com.sandwich.util.Assert.assertEquals; public class AboutEnums { enum Colors { Red, Blue, Green, Yellow // what happens if you add a ; here? // What happens if you type Red(...
package us.kbase.megahittest; import com.fasterxml.jackson.core.type.TypeReference; import java.io.File; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.List; import us.kbase.auth.AuthToken; import us.kbase.common.service.JsonClientCaller; import us.kbase.common.service.Js...
package me.kp.moon.moonlogin.mysql; import me.kp.moon.moonlogin.auth.AuthAPI; import me.kp.moon.moonlogin.data.PlayerData; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import java.sql.*; import java.util.UUID; public class MySQL { public static Connection connection; public static String host,...
import java.util.ArrayList; public class CommonList { public static void main(String[] args){ ArrayList<Integer> c = new ArrayList<Integer>(); c.add(4); c.add(2); c.add(9); c.add(1); c.add(7); printList(c); } public static void printList(ArrayList<Integer> e){ for(int i : e){ ...
/* * * Copyright (c) 2018, 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://...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Copyright 2019 Red Hat, Inc. and/or its affiliates. * * 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 a...
/** * Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith...
package io.itcast.cfc.dto.in; import lombok.Getter; import lombok.Setter; @Getter @Setter public class CustomerSetStatusInDTO { private Integer customerId; private Byte status; }
package frc.robot; public enum SwerveMode { SNAKE, CAR, TANK, CRAB, SPIN, SNAKE_X, CAR_X, TANK_X, CRAB_X, ULTIMATESWERVE, BALL_TRACK, HUB_TRACK, ROBOTCENTRICSWERVE, ULTIMATEDEFENCE }
/** * 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...
/* * JwIUtils - Java utilities library <https://github.com/JonathanxD/JwIUtils> * * The MIT License (MIT) * * Copyright (c) 2021 TheRealBuggy/JonathanxD (https://github.com/JonathanxD/) <jonathan.scripter@programmer.net> * Copyright (c) contributors * * * Permission is hereby grante...
/* * Copyright 2018-present Facebook, Inc. * * 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...
package xin.cymall.service; import xin.cymall.entity.SysOss; import java.util.List; import java.util.Map; /** * oss配置 * * @author chenyi * @email 228112142@qq.com * @date 2017-12-13 10:07:04 */ public interface SysOssService { SysOss get(String bucket); List<SysOss> getList(Map<String, Object> map); ...
package com.marverenic.music.ui.library.artist.contents; import android.content.Context; import android.content.Intent; import android.os.Bundle; import androidx.fragment.app.Fragment; import com.marverenic.music.model.Artist; import com.marverenic.music.ui.BaseLibraryActivity; public class ArtistActivity extends Ba...
package com.onnoa.spring.configuration.metadata.config.annotations; import java.util.ArrayList; public class TypeParameterAndTypeUseAnnotation<@NotEmpty T> { //使用TYPE_PARAMETER类型,会编译不通过 // public @NotEmpty T test(@NotEmpty T a){ // new ArrayList<@NotEmpty String>().add(a); // return a; // ...
package org.anderes.edu.checksum; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.hamcrest.CoreMatchers.nullValue; import static org.junit.Assert.assertThat; import java.nio.file.Path; import java.nio.file.Paths; import org.anderes.edu.checksum.ResultData; i...
package com.laegler.openbanking.model; import com.laegler.openbanking.model.OBQualifiedTrustServiceProviders; import java.util.ArrayList; import java.util.List; import io.swagger.annotations.ApiModelProperty; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xm...
/* * Copyright 2019 Arcus 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 ...
public class Bucket { static int[] sort(int[] sequence, int maxValue) { int[] Bucket = new int[maxValue + 1]; int[] sorted_sequence = new int[sequence.length]; for (int i = 0; i < sequence.length; i++) { Bucket[sequence[i]]++; } int outPos = 0; for (int...
/* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "licen...
/* * Copyright 2020 NAVER Corp. * * 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 ...
package nl.inl.util; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipInputStream; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveInputStream; import org.apache.commons.compress.compressors.gzip.GzipCompres...
/* * [LERandomAccessFile.java] * * Summary: Little-endian version of RandomAccessFile. * * Copyright: (c) 1998-2014 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html ...
package com.pluralsight.dockerproductionaws.quotegenerator; import com.pluralsight.dockerproductionaws.common.MicroserviceVerticle; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import io.vertx.core.DeploymentOptions; import io.vertx.core.json.JsonArray; import io.vertx.core.json.JsonObj...
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
package mc.alk.arena.executors; import mc.alk.arena.objects.ArenaPlayer; import mc.alk.arena.objects.MatchParams; import org.bukkit.command.CommandSender; public class DuelExecutor extends BAExecutor{ @Override @MCCommand(cmds = {}, min=1, helpOrder = 10) public boolean duel(ArenaPlayer player, MatchParams mp, ...
package net.dovemq.samples.rpc; import java.util.HashMap; import java.util.Map; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; import net.dovemq.api.ConnectionFactory; import net.dovemq.api.Consumer; import net.dovemq.api.DoveMQMessage...
/********************************************************************** Copyright (c) 2009 Andy Jefferson and others. 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://...
package com.atguigu.gulimall.coupon.dao; import com.atguigu.gulimall.coupon.entity.HomeSubjectSpuEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 专题商品 * * @author qkj * @email 413661554@qq.com * @date 2021-01-15 22:26:27 */ @Mapper public interf...
/** * 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...
/* * Copyright 2022 Adrian Herscu * * 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...
/* * Copyright (C) 2011 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...
/* * Copyright (c) 2003, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package io.materialize.util; import java.util.ArrayList; import java.util.List; /** * This class is used to tokenize the text output of org.postgres. It's mainly used by the geometric ...
package com.orasi.bluesource; import org.testng.Assert; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import com.orasi.DriverManager; import com.orasi.DriverManagerFactory; import com.orasi.DriverType; import com.orasi.web.WebBaseTest; publ...