text stringlengths 7 1.01M |
|---|
/*
* Copyright (c) 2008-2019, 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 ... |
package sketches.demo;
import static sketches.demo.UtilsKt.showHLLDetails;
import java.util.stream.IntStream;
import java.util.stream.LongStream;
import org.apache.datasketches.hll.HllSketch;
import org.apache.datasketches.hll.Union;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
impo... |
package com.atlassian.jira.plugins.dvcs.pageobjects.common;
import com.atlassian.pageobjects.Page;
public interface PageController<T extends Page>
{
T getPage();
}
|
/*
* 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 cwurbs.demo.docker;
import cwurbs.demo.docker.health.TemplateHealthCheck;
import cwurbs.demo.docker.resources.EstimationResource;
import io.dropwizard.Application;
import io.dropwizard.setup.Bootstrap;
import io.dropwizard.setup.Environment;
public class JobType1Application extends Application<JobType1Configu... |
package com.exmaple.util;
public class Greeting {
private final long id;
private final String content;
public Greeting(long id, String content) {
this.id = id;
this.content = content;
}
public long getId() {
return id;
}
public String getContent() {
return content;
}
}
|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
package com.checktrip.mas.checktrip;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an ... |
package dev.thunderegg;
/**
* Represents the neighbor of a patch
*
* @author Scott Aiton
*/
public class EdgeNeighbor {
/**
* The edge of the patch that the neighbor is on
*/
public Edge edge;
/**
* The type of neighbor
*/
public String type;
/**
* The ids of the neighboring patche... |
/**
* 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... |
package us.tlatoani.tablisknu.skin;
import com.comphenix.protocol.wrappers.WrappedGameProfile;
import com.comphenix.protocol.wrappers.WrappedSignedProperty;
import org.json.simple.JSONObject;
import java.util.Optional;
import java.util.UUID;
/**
* Created by Tlatoani on 8/3/16.
*/
public class Skin {
public st... |
package test.factory;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Factory;
import org.testng.annotations.Test;
@Test(groups = { "x" })
public class FactoryAndTestMethodTest {
@Factory(dataProvider = "data")
public Object[] ohNo(String s) {
return makeNu... |
package tenten0213.entity;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name = "todo")
@NamedQuery(
name = "todo_findAll",
query = "select t from TodoEntity t order by t.updatedTime desc"
)
public class TodoEntity {
@Id @GeneratedValue @Column(name = "id")
private Lon... |
/*
* Copyright 2017 HugeGraph Authors
*
* 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, Ve... |
package net.officefloor.demo;
import net.officefloor.demo.entity.WeavedRequest;
import net.officefloor.demo.entity.WeavedRequestRepository;
import net.officefloor.plugin.section.clazz.Next;
import net.officefloor.plugin.variable.Out;
import net.officefloor.plugin.variable.Val;
/**
* Registers the request.
*
* @au... |
package com.bobocode.basics;
/**
* This demo demonstrates why using Object is not safe. It's not safe because runtime casting can cause runtime
* exceptions. We should always fail as soon as possible. So in this code we should not allow setting String
* value at compile time, if we expect to work with integers.
* ... |
// 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... |
/*
* Copyright 2011 Google 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 agreed to i... |
import Andromeda.GameObject.GameObject;
import Andromeda.GameObject.MouseCaller;
import Andromeda.GameObject.ObjectManipulator;
import Andromeda.GameObject.BoxObject;
import Andromeda.Manager.GameManager;
import Andromeda.Utils.Vector2;
import java.awt.Color;
import java.lang.reflect.InvocationTargetException;
/**... |
package org.hl7.fhir.r5.model.codesystems;
/*
* #%L
* org.hl7.fhir.r5
* %%
* Copyright (C) 2014 - 2019 Health Level 7
* %%
* 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 ar.edu.unlam.recycloud.web.pages.puntoreciclaje.recypoints.home;
import ar.edu.unlam.recycloud.app.recypoints.RecypointService;
import ar.edu.unlam.recycloud.app.usuario.Usuario;
import org.springframework.stereotype.Service;
@Service
public class RecypointsVMService {
private final RecypointService recy... |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.mingcai.edu.modules.oa.entity.eos;
import com.mingcai.edu.modules.oa.entity.wx.OaWxDepartment;
import org.hibernate.validator.constraints.Length;
import com.mingcai.edu.common.persistence.D... |
package com.huxq17.download.core;
import com.huxq17.download.core.task.DownloadTask;
import java.util.List;
public final class RealDownloadChain implements DownloadInterceptor.DownloadChain {
private final int index;
private int calls;
private final List<DownloadInterceptor> interceptors;
private fin... |
/**
*
*/
package za.co.sindi.validations.core.constraint.impl;
import za.co.sindi.validations.core.constraint.StringConstraint;
/**
* @author Buhake Sindi
* @since 16 July 2012
*
*/
public class EndsWithConstraint extends StringConstraint {
private String suffix;
/**
* @param endString
*/
public Ends... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.metricsadvisor.implementation.util;
import com.azure.ai.metricsadvisor.models.FeedbackType;
import com.azure.ai.metricsadvisor.models.MetricFeedback;
import java.time.OffsetDateTime;
/**
* The helpe... |
package json;
/*
Copyright (c) 2002 JSON.org
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... |
package com.puppycrawl.tools.checkstyle.checks.imports;
import static java.io.File.createTempFile;
import static java.awt.Button.ABORT;
import static javax.swing.WindowConstants.*;
import java.awt.Button;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.event.ActionEvent;
/***comment test***/
import jav... |
/*
* Copyright 2002,2004 The Apache Software Foundation.
*
* 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 ap... |
/*
* Copyright 2013-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... |
package com.neeve.ccfd.fraudanalyzer;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.HashSet;
import java.util.Properties;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.rules.TestName;
import com.neeve.server.embedded.Embedd... |
package other;
import java.util.LinkedList;
public class P66 {
public int[] plusOne(int[] digits) {
LinkedList<Integer> linkedList = new LinkedList<>();
boolean is = false;
for (int i = digits.length - 1; i >= 0; i--) {
int num = digits[i];
if (i == digits.length -... |
/*
* Copyright 2017
*
* Paul Rybitskyi, paul.rybitskyi.work@gmail.com
* Arthur Ivanets, arthur.ivanets.l@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... |
package org.hawkular.alerts.netty.handlers;
import static io.netty.handler.codec.http.HttpMethod.DELETE;
import static io.netty.handler.codec.http.HttpMethod.GET;
import static io.netty.handler.codec.http.HttpMethod.POST;
import static io.netty.handler.codec.http.HttpMethod.PUT;
import static io.netty.handler.codec.ht... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package controllers;
import controllers.exceptions.NonexistentEntityException;
import java.io.Serializable;
import javax.persistence.Q... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.securityinsights.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.securityinsights.fluent.model... |
package theDragonkin.cards.Dragonkin;
import basemod.interfaces.CloneablePowerInterface;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster... |
package it.polimi.sr.rsp.csparql.syntax;
import it.polimi.yasper.core.stream.web.WebStream;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.apache.jena.graph.Node;
/**
* Created by Riccardo on 14/08/16.
*/
@AllArgsConstructor
public class StreamNode implements WebStream {
... |
package ltd.chuchen.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @Author chuchen
* @Date 2022/5/4
* @Description 操作日志注解
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RU... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package com.stripe.android.model.wallets;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
public final class SamsungPayWallet extends Wallet {
private SamsungPayWallet(@NonNull Builder ... |
/**
* 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... |
package io.bdeploy.ui.api.impl;
import java.util.Collections;
import java.util.Map;
import jakarta.inject.Inject;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.UriInfo;
import io.bdeploy.common.security.RemoteService;
import io.bdeploy.common.util.VersionHelper;
import io.bdeploy.interfaces.manifest.m... |
/* 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... |
package com.sequenceiq.cloudbreak.service;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.api.endpoint.v4.common.DetailedStackStatus;
import com.sequenceiq.cloudbreak.api.endpoint.v4.common.Status;... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* 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.
*
*... |
package com.culabs.unicomportal.dao;
import com.culabs.unicomportal.model.db.DBSystemProperties;
public interface DBSystemPropertiesMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table system_properties
*
* @mbggenerated Tue May 26 15:5... |
package uk.gov.justice.digital.ndh.api.nomis;
import lombok.Builder;
import lombok.Value;
import java.time.LocalDate;
import java.util.List;
@Value
@Builder
public class Offender {
private String nomsId;
private Long offenderId;
private String firstName;
private String middleNames;
private String... |
package org.tron.core.zen;
import org.tron.core.exception.CipherException;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
i... |
package controllers.learn.numberlearner;
import controllers.LanguageController;
import play.mvc.Controller;
import play.mvc.Result;
import play.twirl.api.Html;
import views.html.numberlearn.numberlearnview;
public class NumberLearn extends Controller {
public static Result get() {
Html content = numberlearnview.r... |
/*
* 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.0. You may not use this file
* ... |
/*
* Copyright 2012 Google 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 agreed to in w... |
package cvv.udacity.popularmovies;
import android.app.Application;
import com.raizlabs.android.dbflow.config.FlowConfig;
import com.raizlabs.android.dbflow.config.FlowManager;
/**
* Created by Caro Vaquero
* Date: 26.06.2016
* Project: PopularMovies
*/
public class PopularMoviesApplication extends Application {
... |
package mage.cards.r;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ForetellAbility;
import mage.cards.CardImpl;
impor... |
/*
* Copyright 2013-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 2014-2016 Intel Corporation
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, s... |
/*
* Copyright 2000-2009 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... |
package com.hedera.hashgraph.sdk;
import com.google.common.base.Splitter;
public final class IdUtil {
private IdUtil() {
}
public static <R> R parseIdString(String id, WithIdNums<R> withIdNums) {
var rawNums = Splitter.on('.')
.split(id)
.iterator();
R newId;
... |
package com.nlf.extend.wechat.semantic.bean;
/**
* 语义识别:航班
*
* @author 6tail
*
*/
public class SemanticResponseFlight extends SemanticResponse{
/** 航空公司 */
private String airline;
/** 出发城市名称 */
private String depCityName;
/** 出发城市简称 */
private String depCityNameSimple;
/** 用户输入的出发城市 */
private St... |
package com.ufreedom.lubanadapter;
/**
* Created by UFreedom on 2019/2/17.
*/
public interface ModelProvider<T> {
T getModel(int position);
}
|
/*
* Copyright 2008, Yahoo! 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 agreed to... |
/*
* Copyright 2014 JBoss 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 agreed to i... |
/**
* Copyright 2016 Google 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 by applicable... |
package dk.ralu.springtutorial.restapi;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class FixedMessageEndpoint {
@RequestMapping("/messages/fixed")
public String index() {
return "Hello World";
... |
package com.pacific.web.controller;
import com.pacific.common.exception.ServiceException;
import com.pacific.common.web.result.AjaxResult;
import com.pacific.domain.entity.Application;
import com.pacific.domain.entity.Machine;
import com.pacific.domain.enums.StateEnums;
import com.pacific.domain.query.MachineQuery;
im... |
/*
* 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 (c) 2013, Anthony Schiochet and Eric Citaire
* 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 retain the above copyright notice, thi... |
package com.eminent.usb.a3d;
import android.graphics.Bitmap;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import com.eminent.common.ImageProcess;
/**
* Created by kentlee on 2017/12/6.
*/
public class A3DControllerAE extends A3DController {
private int currentIntegr... |
/*
* 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... |
import com.hedera.hashgraph.sdk.AccountCreateTransaction;
import com.hedera.hashgraph.sdk.Hbar;
import com.hedera.hashgraph.sdk.PrecheckStatusException;
import com.hedera.hashgraph.sdk.PrivateKey;
import com.hedera.hashgraph.sdk.ReceiptStatusException;
import com.hedera.hashgraph.sdk.Status;
import com.hedera.hashgraph... |
package com.algaworks.algafood.domain.service;
import java.util.Map;
import java.util.Set;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
import lombok.Singular;
public interface EnvioEmailService {
void enviar(Mensagem mensagem);
@Getter
@Builder
class Mensagem {
@Singular
private... |
/*
* Copyright 2016-2021 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... |
package dev.nicklasw.bankid.client.request;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
@Getter
@Builder
public class CollectRequest implements Request {
/**
* The orderRef from the response from authentication or sign.
*/
@NonNull
private final String orderRef;
@Ov... |
public class Process1 extends Template {
public Process1() {
}
@Override
void initialize() {
System.out.println("Process 1 : Initialize");
}
@Override
void start() {
System.out.println("Process 1 : Start");
}
@Override
void end() {
Syste... |
package stevekung.mods.moreplanets.planets.diona.blocks;
import micdoodle8.mods.galacticraft.api.block.IDetectableResource;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.util.BlockRenderLayer;
import net.minecraftf... |
package components;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Genre
public @interface ChildGenre {
java.lang.String value() defaul... |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... |
package org.beetl.core;
import junit.framework.TestCase;
import org.beetl.core.resource.ClasspathResourceLoader;
import java.io.IOException;
import java.io.Reader;
public class BasicTestCase extends TestCase {
// 日志对象
private static ClasspathResourceLoader rs;
public static boolean enableOptimize... |
/*
* 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 helper.entity;
import helper.entity.model.DummySession;
import helper.entity.model.DummyUser;
import net.tokensmith.otter.controller.entity.StatusCode;
import net.tokensmith.otter.dispatch.entity.RestBtwnRequest;
import net.tokensmith.otter.dispatch.entity.RestBtwnResponse;
import net.tokensmith.otter.router.e... |
/*
* Copyright (c) 2017, Kronos <https://github.com/KronosDesign>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notic... |
/**
* 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 (c) 2004-2021, University of Oslo
* 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 retain the above copyright notice, this
* list of cond... |
package utilties;
public class Die {
private static final byte D_4 = 4;
private static final byte D_6 = 6;
private static final byte D_8 = 8;
private static final byte D_10 = 10;
private static final byte D_20 = 20;
public static int rollD4() {
return (int) (Math.random() * D_4) + 1;
}
public static int ... |
package com.azrul.ebanking.depositaccount.config;
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.context.annotation.Bean;
import org.springframework.contex... |
/*
* Licensed to Crate under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership. Crate licenses this file
* to you under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compl... |
/**
* 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... |
/*
* Copyright (C) 2014 Google 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 agree... |
/*
* Copyright 2012-2017 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 2017-2022 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 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... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
package io.proximax.app.recovery;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.reactivex.Observable;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.reactivex.core.Vertx;
import io.vertx.reactivex.... |
package com.jagex;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.ColorModel;
import java.awt.image.DirectColorModel;
import java.awt.image.ImageConsumer;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import sign.signlink;
public class Cla... |
package main.sono.ops;
import java.util.ArrayList;
import java.util.List;
import main.phl.Matrix;
import main.phl.Phone;
import main.sono.Datum;
import main.sono.Interpreter;
import main.sono.Operator;
import main.sono.Scope;
import main.sono.Token;
public class Find extends Binary {
public Find(final Interpreter i... |
package com.tg.tgt.ui;
import android.app.ProgressDialog;
import android.graphics.Color;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import andr... |
package com.github.wkennedy.pubsubly.plugins;
import com.github.wkennedy.pubsubly.api.Processor;
import com.github.wkennedy.pubsubly.api.Tag;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHeaders;
import org.springframework.messaging.handler.annotation.Headers;
import org.s... |
/*
* Copyright 2009 Ronnie Kolehmainen
*
* 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 com.archinamon.libinstantparcelable.parcel.errors;
/**
* TODO: Add destription
*
* @author archinamon on 11/05/16.
*/
public final class NoDefaultConstructorException
extends RuntimeException {
private static final String EXCEPTION_TEXT = "No valid default constructor provided for @Parcelable exte... |
package com.ke.schedule.basic.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.io.Serializable;
import java.util.Map;
public @NoArgsConstructor @Getter @Setter class ClientPath implements Serializable {
private String ip;
private String identification;
priv... |
package controller.admin;
import form.AdminForm;
import io.github.yedaxia.apidocs.ApiDoc;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import result.user.AdminVO;
import java.util.List;
import java.util.Map;
/**
* 演示一些比较特殊的声明方法
*
* @description 管理员接口
* @aut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.