text stringlengths 7 995k |
|---|
package com.xniax.common.algorithm;
public class SnowFlakeIns {
private static SnowFlake snowFlake;
public static void init(long datacenterId, long machineId) {
snowFlake = new SnowFlake(datacenterId, machineId);
}
public static SnowFlake getSnowFlake() {
return snowFlake;
}
} |
/**
*
* 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"); ... |
/****************************************************************
* 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... |
/**
* 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 techreborn.compat.nei.recipes;
import java.awt.Rectangle;
import java.util.List;
import codechicken.lib.gui.GuiDraw;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.TemplateRecipeHandler;
import net.minecraft.client.gui.inventory.GuiContainer;
import reborncore.common.util.ItemUtils;
imp... |
package fmi.informatics.extending;
/**
*
* @author Konstantin Rusev
*
*/
public abstract class PureAbstractClass { // пример за чист абстрактен клас
public abstract void test();
} |
package pereberge.sumproject.utils;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class SecurityUtils {
public static String convertPassMd5(String pass) {
String password = null;
MessageDigest mdEnc;
try {
... |
/*
* Library for use with the LSM6DS33 3D Accelerometer and Gyro as used on the Polulo #2736 carrier.
*
* After initialization, the driver will keep reading the device with a callback and integrate
* the Z axis values for use as a heading.
*/
package org.firstinspires.ftc.teamcode.helpers;
import com.qualcomm.ro... |
package com.beimi.util.server.handler;
import com.corundumstudio.socketio.SocketIOClient;
import java.util.Map;
public class BeiMiClient{
private String token ;
/** 玩的方式 ?*/
private String playway ;
/**
* 开放服务网关倡议(OSGi,Open Service Gateway Initiative)?
* [data: beimi]
**/
private String orgi ;
private S... |
package org.basex.query.func.fn;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.func.*;
import org.basex.query.func.update.*;
import org.basex.query.iter.*;
import org.basex.query.util.*;
import org.basex.query.value.*;
import org.basex.query.value.item.*;
import org.basex.query.value.... |
package com.closer.prophet.handler;
import com.aliyun.datahub.DatahubClient;
import com.aliyun.datahub.common.data.RecordSchema;
import com.aliyun.datahub.model.RecordEntry;
import com.closer.prophet.datahub.DatahubClientBuilder;
import com.closer.prophet.datahub.Sender;
import com.closer.prophet.entity.BrowsingHistor... |
package p005cm.aptoide.p006pt.editorialList;
import p005cm.aptoide.p006pt.presenter.View.LifecycleEvent;
import p026rx.p027b.C0132p;
/* renamed from: cm.aptoide.pt.editorialList.ba */
/* compiled from: lambda */
public final /* synthetic */ class C3279ba implements C0132p {
/* renamed from: a */
private fina... |
package com.msas.MSAS.mqtt;
import com.msas.MSAS.DomainModel.Authentification.Materiel;
public enum MsasMqttTopicsDictionary {
MSAS_GENERAL_PURPOSES_ERROR_TOPIC("general_purposes/error"),
// Data: [0] => ID Materiel
MSAS_MATERIEL_DISCOVERY_TOPIC("hardware/discovery/webservice"),
MSAS_MATERIEL_ERROR_TOPIC("hard... |
/*
* Copyright 2012-2021 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... |
package com.raet.guild.myfirstapp;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... |
package wherehows.common.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Field;
import java.util.ArrayList;
/**
* Created by thomas young on 4/20/17.
*/
public class ProcessUtils {
protected static final L... |
// Copyright 2016 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.download.ui;
import android.content.Context;
import androidx.annotation.Nullable;
import androidx.drawerlayout.widget... |
/**
* Copyright 2010 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 ... |
/*******************************************************************************
* 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... |
package xworker.ai.statemachine;
import java.util.HashMap;
import java.util.Map;
import org.xmeta.ActionContext;
import org.xmeta.Thing;
public class SimpleStateMachine extends AbstractStateMachine{
State current;
Thing thing;
ActionContext actionContext;
/** 状态的缓存 */
Map<String, State> states = new HashMap<S... |
package org.ednovo.gooru.client.mvp.play.error;
import org.ednovo.gooru.application.shared.i18n.MessageProperties;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.us... |
/******************************************************************************
* Compilation: javac IndexMultiwayMinPQ.java
* Execution:
*
* An inde multiway heap.
*
******************************************************************************/
package edu.princeton.cs.algs4;
import java.util.Comparator;
... |
/*
* eXtended Objects - Tinkerpop Blueprints Binding
*
* Copyright (C) 2014 SMB 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... |
package com.usdj.currency;
/**
* @author gerrydeng
* @date 2019-07-29 15:49
* @Description: 对象锁实例1,代码块形式
*/
public class SynchronizedObjectCodeBlock2 implements Runnable{
static SynchronizedObjectCodeBlock2 instance = new SynchronizedObjectCodeBlock2();
public static void main(String[] args) throws Interrupted... |
package com.example.sandwind.coolweather.db;
import org.litepal.crud.DataSupport;
/**
* Created by sandwind on 2017/8/22.
*/
public class Country extends DataSupport {
private int id;
private String countryName;
private String weatherId;
private int cityId;
public int getId() {
return... |
/*
* 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")... |
/**
* Copyright (c) 2014,
* Charles Prud'homme (TASC, INRIA Rennes, LINA CNRS UMR 6241),
* Jean-Guillaume Fages (COSLING S.A.S.).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... |
/*
* 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, software
* distribut... |
/*
* 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, software
* distribut... |
package cn.com.nwdc.unify.db.index.common.spring;
import cn.com.nwdc.unify.db.index.common.spring.proxy.IndexMapperRegistry;
import com.baomidou.mybatisplus.MybatisConfiguration;
import com.baomidou.mybatisplus.MybatisXMLLanguageDriver;
import com.baomidou.mybatisplus.entity.GlobalConfiguration;
import org.apache.ibat... |
/****************************************************************
* 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... |
/*
* 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")... |
package link.infra.ecmacraft.proxy;
import link.infra.ecmacraft.EcmaCraft;
import link.infra.ecmacraft.ModBlocks;
import link.infra.ecmacraft.blocks.TestBlock;
import link.infra.ecmacraft.blocks.TestBlockTile;
import link.infra.ecmacraft.items.Screwdriver;
import link.infra.ecmacraft.network.PacketHandler;
import link... |
package org.adorsys.adcatal.rest;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.metamodel.SingularAttribute;
import org.adorsys.adcatal.jpa.CatalArt2ProductFamily;
import org.adorsys.adcatal.jpa.CatalFamilyFeatMaping;
import org.adorsys.adcatal.repo.CatalFami... |
package io.microvibe.booster.txn.alipay.impl;
import com.alipay.api.AlipayClient;
import com.alipay.api.request.AlipayOpenAuthTokenAppQueryRequest;
import com.alipay.api.response.AlipayOpenAuthTokenAppQueryResponse;
import io.microvibe.booster.commons.utils.StringUtils;
import io.microvibe.booster.core.api.ApiExceptio... |
package com.elvin.model;
public class Count {
private int bookCount;
private int bookCategoryCount;
private int userCount;
public Count() {
super();
}
public Count(int bookCount, int bookCategoryCount, int userCount) {
super();
this.bookCount = bookCount;
this.bookCategoryCount = bookCategoryCount;
t... |
package com.blamejared.crafttweaker.api.data;
import com.blamejared.crafttweaker.api.annotation.ZenRegister;
import com.blamejared.crafttweaker.api.data.base.ICollectionData;
import com.blamejared.crafttweaker.api.data.base.IData;
import com.blamejared.crafttweaker.api.data.base.INumberData;
import com.blamejared.craf... |
package com.example.myapplication.ui.adapter;
import android.graphics.Paint;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.PopupMenu;
import androidx.annotation.NonNull;
import androidx.databinding.DataBindingUtil;
import androidx.recyclerview.widget.DiffUtil;
import android... |
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
// DO NOT EDIT THIS CLASS, AUTOMATICALLY GENERATED BY io.deephaven.engine.table.impl.by.typed.TypedHasherFactory
// Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
//
package io.deephaven.engine.table.impl.by.typed.incagg.gen;
imp... |
package hr.fer.zemris.java.hw11.jnotepadpp.local;
import java.util.Objects;
/**
* Models a localization provider which is able to connect to and disconnect from an existing localization provider.
*
* @author Marko Lazarić
*/
public class LocalizationProviderBridge extends AbstractLocalizationProvider {
/**
... |
/*
* Copyright (c) 2008-2010, Intel Corporation.
* Copyright (c) 2006-2007, The Trustees of Stanford University.
* All rights reserved.
* Licensed under the terms of the New BSD License.
*/
package chord.program.visitors;
import joeq.Compiler.Quad.Quad;
/**
* Visitor over all method invocation statements in all... |
package com.suelake.habbo.communication.requests;
import com.suelake.habbo.HabboHotel;
import com.suelake.habbo.communication.ClientMessage;
import com.suelake.habbo.communication.ClientRequestHandler;
import com.suelake.habbo.communication.CommunicationHandler;
import com.suelake.habbo.spaces.Space;
import com.suelak... |
package eu.ramich.baking.database;
import net.simonvt.schematic.annotation.AutoIncrement;
import net.simonvt.schematic.annotation.DataType;
import net.simonvt.schematic.annotation.NotNull;
import net.simonvt.schematic.annotation.PrimaryKey;
import net.simonvt.schematic.annotation.References;
import static net.simonvt... |
/**
* Copyright © 2016-2018 The Thingsboard 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 applicab... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* 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, cop... |
/*
* 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, software
* distributed u... |
package com.mypurecloud.sdk.v2.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.... |
// Copyright 2017 The Nomulus 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 a... |
/**
* Copyright 2016 Antony Holmes
*
* 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 ... |
package seedu.module.testutil;
import java.util.ArrayList;
import java.util.List;
import seedu.module.model.module.ArchivedModule;
import seedu.module.model.module.ArchivedModuleList;
/**
* A utility class to help with building ArchivedModuleList objects.
*
* Defaults to empty list.
*/
public class ArchivedModul... |
package com.hitomi.tilibrary.transfer;
import android.app.Activity;
import android.app.Application;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.KeyEvent;
import android.widget.ImageView;
import androidx.appcompat.app.AlertDialog;
import com.g... |
/*
* Copyright 2015-2020 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 hyweb.jo.ff;
import hyweb.jo.JOProcObject;
import hyweb.jo.org.json.JSONObject;
import java.io.Serializable;
import org.mvel2.MVEL;
/**
*
* @author william
*/
public class mvel<E> extends JOFFBase<E> {
protected Serializable compileExpression;
public mvel() {
}
@Override
public void... |
package com.example.androidjokelibrary;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class JokeActivity extends AppCompatActivity {
public static final String EXTRA_JOKE = "extra_joke";
@Override
protecte... |
package mekanism.client.gui.qio;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import javax.annotation.Nonnull;
import mekanism.api.text.EnumColor;
import mekanism.client.gui.GuiMekanism;
import mekanism.client.gui.element.GuiConfirmationDialog;
import mekanism.client.gui.element.GuiConfirm... |
package io.syslogic.sqlite.database.legacy;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteException;
import android.da... |
/**
* Copyright 2018 Ricoh Company, 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 agree... |
package com.planet_ink.coffee_mud.Abilities.Druid;
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.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.pl... |
package servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dao.AccountantDao;
import dao.StudentDao;
@WebServ... |
/*
* 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 com.google.codeu.servlets;
import com.google.codeu.data.Datastore;
import com.google.codeu.data.Review;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
im... |
package com.github.faucamp.simplertmp.io;
import android.util.Log;
import com.github.faucamp.simplertmp.RtmpPublisher;
import com.github.faucamp.simplertmp.Util;
import com.github.faucamp.simplertmp.amf.AmfMap;
import com.github.faucamp.simplertmp.amf.AmfNull;
import com.github.faucamp.simplertmp.amf.AmfNumber;
impor... |
package org.knowm.xchange.luno.dto.trade;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
public class LunoUserTrades {
private final UserTrade[] trades;
public LunoUserTrades(@JsonProperty(value = "trades", required = true) Use... |
/*
* This class was auto-generated from the API references found at
* https://epayments-api.developer-ingenico.com/s2sapi/v1/
*/
package com.ingenico.connect.gateway.sdk.java.merchant.mandates;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import com.ingenico.connect.gateway.... |
package com.imjustdoom.pluginsite.util;
import java.util.HashMap;
public class RequestUtil {
public static HashMap<String, String> getParams(String request){
HashMap<String, String> params = new HashMap<>();
String[] pairs = request.split("&");
for (String pair : pairs) {
Strin... |
package com.mcoding.base.product.service.productPrice;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import com.mcoding.base.core.BaseService;
import com.mcoding.base.product.bean.productPrice.ProductPrice;
import com.mcoding.base.product.bean.productPrice.ProductPriceExample;
public int... |
package limbus.showcase.plugin;
import org.apache.log4j.Logger;
import com.remondis.limbus.api.Initializable;
import com.remondis.limbus.api.LimbusPlugin;
public class TestLimbusPlugin extends Initializable<Exception> implements LimbusPlugin {
private static final Logger log = Logger.getLogger(TestLimbusPlugin.cl... |
/**
* Copyright 2005-2011 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... |
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Date;
import java.util.StringT... |
package com.gentics.mesh.cache;
import com.gentics.mesh.core.data.Branch;
import com.gentics.mesh.core.data.Project;
import com.gentics.mesh.core.rest.common.ContainerType;
import com.gentics.mesh.path.Path;
public interface WebrootPathCache extends MeshCache<String, Path> {
/**
* Store a path in the cache.
*
... |
package cn.appsys.pojo;
import java.util.Date;
public class DevUser {
private Integer id;//主键id
private String devCode;//开发者帐号(系统登录账号)
private String devName;//开发者名称
private String devPassword;//开发者密码
private String devEmail;//开发者邮箱
private String devInfo; //开发者简介
private Integer createdBy;//创建者
private Date ... |
package tundra;
// -----( IS Java Code Template v1.2
// -----( CREATED: 2021-08-18 10:54:58 AEST
// -----( ON-HOST: -
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
// --- <<IS-START-IMPORTS>> ---
import java.io.IOException;
import... |
// created by jay 1.0.2 (c) 2002-2004 ats@cs.rit.edu
// skeleton Java 1.0 (c) 2002 ats@cs.rit.edu
// line 2 "Ruby18Parser.y"
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.0 (the "License"); you may not us... |
package com.java110.web.smo.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.PrivilegeCodeConstant;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.constant.ServiceConstant;
import com.java110.utils.exception.SMOException;
import com.java110.utils.util.Assert... |
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... |
package org.czw.flight.controller;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.an... |
package org.aksw.rdfunit.statistics;
import java.util.HashMap;
import java.util.Map;
import org.aksw.jena_sparql_api.core.QueryExecutionFactory;
import org.apache.jena.query.QueryExecution;
/**
* Generates property and class statistics for a QEF
*
* @author Dimitris Kontokostas
* @version $Id : $Id
* @since 6 /1... |
package com.atguigu.gmall.sms.controller;
import java.util.List;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.Req... |
// Copyright (C) 2015 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 applicable ... |
/*
* Copyright (C) 2017 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... |
package com.soccer.ws.dto;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* Created by u0090265 on 11/06/16.
*/
@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode
public class MultipleChoiceVoteDTO<T> {
private T answer;
private AccountDT... |
/*
* Copyright (C) 2015 Twitter, 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 agr... |
/* 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, software
* distribut... |
/*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
package com.kobakei.modellogger;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
} |
package sorts.merge;
import main.ArrayVisualizer;
import sorts.templates.Sort;
/*
*
MIT License
Copyright (c) 2020 Gaming32
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... |
/*
* Copyright 2004-2006 Stefan Reuter
*
* 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 ... |
/**
* 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... |
import ru.spbstu.pipeline.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.ArrayList;
import java.util.logging.Logger;
public class ManagerParser extends BaseParser {
private final String input_file_token = "INPUT_FILE";
pr... |
package org.apache.ibatis.mapping;
import java.util.Collections;
import java.util.Map;
import org.apache.ibatis.session.Configuration;
/**
* @author Clinton Begin
*/
public class Discriminator {
private ResultMapping resultMapping;
private Map<String, String> discriminatorMap;
Discriminator() {
}... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
package com.starrocks.sql.ast;
import com.starrocks.analysis.AlterViewStmt;
import com.starrocks.analysis.AlterWorkGroupStmt;
import com.starrocks.analysis.AnalyticExpr;
import com.starrocks.analysis.AnalyzeStmt;
import ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.mmkt.data;
import erp.data.SDataConstants;
import erp.data.SDataConstantsSys;
import erp.lib.SLibConstants;
import erp.lib.SLibUtilities;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.l.
*
* 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, cop... |
package burp;
/*
* @(#)IIntruderPayloadGeneratorFactory.java
*
* Copyright PortSwigger Ltd. All rights reserved.
*
* This code may be used to extend the functionality of Burp Suite Community Edition
* and Burp Suite Professional, provided that this usage does not violate the
* license terms for those products.
... |
package org.jboss.resteasy.resteasy1161;
import javax.validation.Valid;
import javax.validation.constraints.Max;
import javax.validation.constraints.Size;
import javax.ws.rs.BeanParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
public class TestSubResource
{
@Max(3) private int ... |
// ASM: a very small and fast Java bytecode manipulation framework
// Copyright (c) 2000-2011 INRIA, France Telecom
// 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 ... |
java io exception ioexception java util list java util list string string io exception ioexception |
package com.universeCraft.handler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ChatComponentText;
import net.minecraft.world.World;
public class IonEnergyStored {
public void showStatus(EntityPlayer player, World world, int energyStored, int energ... |
package org.dstadler.commons.collections;
import java.util.*;
/**
* Default implementation of a {@link MappedCounter}.
*
* @param <T> The type of the key for the mapped counter, often this
* will be String, but any type that can be used as key for
* a HashMap will work here.
*
* @author dom... |
package controllers;
import java.util.ArrayList;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.Assert;
import org.springframework.validation.BindingResult;
import org.springframework.web.bi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.