text stringlengths 7 1.01M |
|---|
/*
* Copyright 2022 Javaxcel
*
* 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 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.psi.search;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.fileTypes.FileTypeRegistry;
import com.intellij.openapi.util.Comparin... |
package com.zyyoona7.heartview.viewpager3d;
/**
* Created by tangshuai on 2017/9/17.
*/
public class LinearLocationTransformer implements LocationTransformer {
private float transLationX = 0;
public LinearLocationTransformer(float transLationX) {
this.transLationX = transLationX;
}
@Overr... |
package it.pagopa.pagopa.apiconfig.model.psp;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import it.pagopa.pagopa.apiconfig.model.creditorinsti... |
package com.websystique.springmvc.service;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.atomic.AtomicLong;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Rep... |
/* This is free and unencumbered software released into the public domain. */
package dry;
import java.util.Objects;
import org.jetbrains.annotations.NotNull;
/**
* 128-bit vector with two ``float64`` lanes.
*
* @see <a href="https://drylib.org/base/simd/float64x2">[1]</a>
*/
public final strictfp class Float64... |
/*
* 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... |
//| Copyright - The University of Edinburgh 2011 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... |
package com.mcgowan.trades.consumer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ConsumerApplication {
public static void main(String[] args) {
SpringApplication.run(ConsumerApplication.class);
}
}
|
package com.yc.httpserver;
import android.os.Build;
import android.util.Log;
import java.io.IOException;
import java.util.Objects;
import okhttp3.Headers;
import okhttp3.Interceptor;
import okhttp3.MediaType;
import okhttp3.Request;
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
im... |
package com.nyfaria.dogitems.items;
import net.minecraft.entity.TntEntity;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraf... |
package nz.co.appelation.offlinepasswordmanager;
import android.content.SharedPreferences;
import android.content.res.Resources;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import javax.inject.Named;
import dagger.... |
/**
* Copyright (c) 2013-2019 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... |
package com.st.preload.sourcestorage;
import com.st.preload.bean.SourceInfo;
/**
* {@link SourceInfoStorage} that does nothing.
*
* @author Alexey Danilov (danikula@gmail.com).
*/
public class NoSourceInfoStorage implements SourceInfoStorage {
@Override
public SourceInfo get(String url) {
return... |
///////////////////////////////////////////////////////////////////////////////
// Filename: $RCSfile: BasicHybridisationTyper.java,v $
// Purpose: Atom typer.
// Language: Java
// Compiler: JDK 1.4
// Authors: Joerg Kurt Wegner
// Version: $Revision: 1.5 $
// $Date: 2005/02/17 16:48:29 $
// ... |
/*
* 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 com.yaluzb.guns.generator.engine.config;
import com.yaluzb.guns.core.util.ToolUtil;
/**
* 全局配置
*
* @author yaluzb
* @date 2017-05-08 20:21
*/
public class ContextConfig {
private String templatePrefixPath = "gunsTemplate/advanced";
private String projectPath = "D:\\ideaSpace\\guns";//模板输出的项目目录
... |
/*
* 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 ... |
/*
*
* 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 edu.ucr.colormesilly;
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 Android... |
package SGPA;
import java.util.Scanner;
public class SGPA {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println(
"Enter sub1 gradepoint & credit(in separate lines)"
+ "\n"
+ "Note: If asked for more than the subjects u have, enter... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
/*
* Copyright 1999-2017 Alibaba Group Holding 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 b... |
package fi.laverca.jaxb.xmldsigcore;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlM... |
package cn.zetark.oauth2.service;
import cn.zetark.oauth2.entity.User;
import org.apache.shiro.crypto.RandomNumberGenerator;
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;
import org.springframework.beans.factory.anno... |
/*
* 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 cn.xcom.banjing.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import java.util.ArrayList;
import cn.xcom.banjing.R;
import... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storagecache.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com... |
package test.gov.nih.nci.cacoresdk.domain.other.primarykey;
import gov.nih.nci.cacoresdk.domain.other.primarykey.StringPrimitiveKey;
import org.jdom.Document;
import test.gov.nih.nci.cacoresdk.SDKXSDTestBase;
public class StringPrimitiveKeyXSDTest extends SDKXSDTestBase
{
private Document doc = null;
... |
/*
* Copyright (c) 2019 bartimaeusnek
*
* 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, publi... |
/*
* 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... |
// Modifications copyright (C) 2017, Baidu.com, Inc.
// Copyright 2017 The Apache Software Foundation
// 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 (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... |
package ru.stqa.pft.mantis.tests;
import org.testng.Assert;
import org.testng.annotations.Test;
import ru.stqa.pft.mantis.model.Issue;
import ru.stqa.pft.mantis.model.Project;
import javax.xml.rpc.ServiceException;
import java.net.MalformedURLException;
import java.rmi.RemoteException;
import java.util.Set;
import s... |
package ckafka.demo;
import java.util.Properties;
public class CKafkaConfigurer {
private static Properties properties;
public static void configureSaslPlain() {
//如果用-D或者其它方式设置过,这里不再设置。
if (null == System.getProperty("java.security.auth.login.config")) {
//请注意将XXX修改为自己的路径。
... |
package ru.evgeniyosipov.facshop.shipment.session;
import ru.evgeniyosipov.facshop.entity.Customer;
import ru.evgeniyosipov.facshop.entity.Person;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
@Stateless
public class Us... |
package ch.epfl.cs107.play.game.areagame;
import ch.epfl.cs107.play.window.Window;
import ch.epfl.cs107.play.game.Game;
import ch.epfl.cs107.play.io.FileSystem;
import java.util.*;
/**
* AreaGame: concept of Game displayed in a (MxN) Grid called Area
* An AreaGame has multiple Areas
*/
abstract public class Area... |
package edu.pdx.cs410J.dbawale;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertEquals;
public class Projec... |
package org.im97mori.ble.characteristic.u2a2b;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import org.im97mori.ble.BLEUtils;
import org.im97mori.ble.ByteArrayInterface;
import androidx.annotation.NonNull;
/**
* Current Time (Characteristics UUID: 0x2A2B)
*/
public class CurrentTime implements ByteArray... |
/*
* Copyright (c) 2010-2019. Axon Framework
*
* 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 ... |
package com.hatsukoi.eshopblvd.coupon.service.impl;
import com.hatsukoi.eshopblvd.coupon.dao.SkuFullReductionMapper;
import com.hatsukoi.eshopblvd.coupon.entity.SkuFullReduction;
import com.hatsukoi.eshopblvd.coupon.entity.SkuLadder;
import com.hatsukoi.eshopblvd.coupon.service.MemberPriceService;
import com.hatsukoi.... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;
import java.util.... |
package me.philcali.aoc.day13;
import java.util.Objects;
import java.util.stream.Collectors;
import com.google.auto.service.AutoService;
import me.philcali.aoc.common.AnnotatedDailyEvent;
import me.philcali.aoc.common.DailyEvent;
import me.philcali.aoc.common.DailyInputEvent;
import me.philcali.aoc.common.Day;
impor... |
package com.tangcheng.learning.web.dto.req.group;
/**
* 请求中的group,
* 在新增场景,方便分辨那些校验是需要生效的
*
* @author: tangcheng
* @description:
* @since: Created in 2018/12/07 11:23
*/
public interface CreateGroup {
}
|
/*
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
/*
* 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... |
/*
* This file is part of dependency-check-core.
*
* 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 com.example.android.miwok;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class PhrasesActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Set the content of the ... |
/*
* 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... |
package switchtwentytwenty.project.usecaseservices.applicationservices.implappservices;
import org.junit.jupiter.api.Test;
import org.springframework.hateoas.Link;
import switchtwentytwenty.project.dto.OptionsDTO;
import switchtwentytwenty.project.dto.person.AddEmailDTO;
import switchtwentytwenty.project.interfaceadap... |
package fi.fmi.geoserver.apikey;
import java.net.URL;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.geoserver.ows.URLMangler;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.spring... |
/*
* Copyright (C) 2016 Jared Rummler <jared.rummler@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.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
package pt.ulisboa.ewp.node.client.ewp.operation.request.body;
import java.io.Serializable;
import pt.ulisboa.ewp.node.utils.XmlUtils;
public class EwpRequestSerializableBody extends EwpRequestBody {
private final Serializable serializable;
public EwpRequestSerializableBody(Serializable serializable) {
this... |
package admob.plugin.ads;
import androidx.annotation.NonNull;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.rewarded.RewardedAd;
impor... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ucar/nc2/grib/grib2/grib2Index.proto
package ucar.nc2.grib.grib2;
public final class Grib2IndexProto {
private Grib2IndexProto() {}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
public stati... |
package com.bumptech.glide.test;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.annotation.CheckResult;
import android.support.annotation.DrawableRes;
import android.support.annotation.FloatRange;
import android.support.annotation... |
package com.example.abclandia.graphics;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import com.example.abclandia.Card;
public class LetterWordRenderer extends Renderer {
public LetterWordRenderer(Context context) {
super(contex... |
/*
* Copyright 2014 Harald Wellmann.
*
* 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 2016 HomeAdvisor, 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 t... |
package com.zgeorg03.crawlers;
import com.zgeorg03.NewsArticleManager;
import com.zgeorg03.exceptions.ArticleAlreadyExistsException;
import com.zgeorg03.models.MissingContentRecord;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.http.impl.client.CloseableHttpClient;
import org.jsoup.Jsoup;
impor... |
// Copyright 2020 Google LLC
//
// 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 com.dtolabs.rundeck.plugins.scm;
/**
* Get source and UUID form a renamed Job
*/
public interface JobRenamed {
/**
* get the job the UUID
*
* @return uuid
*/
String getUuid();
/**
* get the job the SourceID
*
* @return sourceID
*/
String getSourceId();... |
package server.events;
import interfaces.EventManager;
import interfaces.ServerEvent;
public class ServerClosed implements ServerEvent {
public ServerClosed() {
}
@Override
public void accept(EventManager processor) {
processor.process(this);
}
}
|
package io.subutai.core.tracker.impl;
import java.sql.Timestamp;
import java.util.Date;
import java.util.UUID;
import org.apache.commons.lang3.StringUtils;
import com.google.common.base.Preconditions;
import io.subutai.common.tracker.OperationState;
import io.subutai.common.tracker.TrackerOperation;
import io.subu... |
/*******************************************************************************
* Copyright 2012 The Regents of the University of California
*
* 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 Licens... |
package com.nymph.annotation;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Http协议的Post请求方式
* @author LiuYang
* @author LiangTianDong
* @date 2017年10月22日下午3:18:25
... |
/*********************************************************************************
* *
* The MIT License (MIT) *
* ... |
/*
* 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 main.teacher;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.stage.Stage;
import java.io.IOException;
import java.net.URL;
import java.util.R... |
package org.osmdroid.tileprovider.tilesource;
import android.content.Context;
import org.osmdroid.tileprovider.util.ManifestUtil;
import org.osmdroid.util.MapTileIndex;
/**
* Thunderforest Maps including OpenCycleMap
*/
public class ThunderforestTileSource extends OnlineTileSourceBase {
/**
* the meta da... |
package trackitnus.ui;
/**
* Represents a command as well as the action it executes
*/
public class HelpCard {
private final String command;
private final String action;
/**
* Constructor for a HelpCard
*
* @param action is what results from the command
* @param command is what to i... |
package jp.co.yahoo.adssearchapi.v6.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
impo... |
/**
* Copyright 2018 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
package com.linkedin.transport.presto.data;
import com.facebook.presto.spi.PrestoException;
import com.facebook.presto.spi.block.Block;
import com... |
package com.bugjc.ea.server.job.core.util;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import ... |
package phiviz;
import java.io.*;
import java.util.*;
import javax.imageio.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
/**
* <p>Title: PhiViz</p>
* <p>Description: Phi Visualization</p>
* <p>Copyright: Copyr... |
package net.petrikainulainen.spring.jooq.todo.service;
import net.petrikainulainen.spring.jooq.common.TestDateUtil;
import net.petrikainulainen.spring.jooq.config.ServiceTestContext;
import net.petrikainulainen.spring.jooq.todo.dto.TodoDTO;
import net.petrikainulainen.spring.jooq.todo.dto.TodoDTOBuilder;
import net.pe... |
/*
* Copyright © 2015-2016 Cask Data, 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... |
package top.bitqian;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@MapperScan("top.bitqian.mapper")
@SpringBootApplication
public class MinProgramCommentApplication {
public static void mai... |
/**
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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... |
/*
* 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.github.cf.baselibrary.utils;
import android.content.Context;
import android.widget.Toast;
public class ToastUtil {
private static Toast sToast;
public static void showLongToast(Context context, String msg) {
if(sToast == null){
sToast = Toast.makeText(context, msg, Toast.LENGTH_LONG);
}else{
s... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... |
package com.threedr3am.learn.server.boot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class LearnDubboServerBootApplication {
public static void main(String[] args) {
SpringApplication.run(LearnDubboServer... |
package io.reactiverse.pgclient.data;
import io.reactiverse.pgclient.PgClient;
import io.reactiverse.pgclient.Row;
import io.reactiverse.pgclient.Tuple;
import io.vertx.ext.unit.Async;
import io.vertx.ext.unit.TestContext;
import org.junit.Test;
import java.util.UUID;
public class UUIDTypeExtendedCodecTest extends E... |
package com.is4ii4s.controlepontoacesso.service;
import com.is4ii4s.controlepontoacesso.model.CategoriaUsuario;
import com.is4ii4s.controlepontoacesso.repository.CategoriaUsuarioRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.L... |
package io.renren.modules.us.controller;
import java.util.Arrays;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotati... |
/*
* Copyright 2012-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.example.rps.beans;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class PaperMaster {
private String type;
private String quality;
private int qoh;
public int getQoh() {
return qoh;
}
public void setQoh(int qoh) {
this.qoh = q... |
/**
* Copyright 2017 Pivotal Software, Inc.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applica... |
package lt.tokenmill.crawling.adminui.view.imports;
import com.google.common.base.Charsets;
import com.opencsv.CSVReader;
import com.opencsv.CSVWriter;
import com.vaadin.server.FileDownloader;
import com.vaadin.server.StreamResource;
import com.vaadin.ui.*;
import com.vaadin.ui.themes.ValoTheme;
import lt.tokenmill.cr... |
package com.mobilleon.smswrapper.activity;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.actionbarsherlock.view.MenuItem;
import com.mobilleon.smswrapper.adapters.AboutViewPager;
import com.mobilleon.smswrapper.root.R;
import com.mobilleon.smswrapper.service.SMSWrapperLifecycleService;
import ... |
package com.faforever.client.player;
import com.faforever.client.audio.AudioService;
import com.faforever.client.i18n.I18n;
import com.faforever.client.notification.NotificationService;
import com.faforever.client.notification.TransientNotification;
import com.faforever.client.preferences.NotificationsPrefs;
import co... |
/*
* Copyright 1999-2002 Carnegie Mellon University.
* Portions Copyright 2002 Sun Microsystems, Inc.
* Portions Copyright 2002 Mitsubishi Electric Research Laboratories.
* All Rights Reserved. Use is subject to license terms.
*
* See the file "license.terms" for information on usage and
* redistribution o... |
/*
* Copyright 2017 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 app... |
/*
* 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 com.bor.gulimall.coupon.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 商品会员价格
*
* @author bor
* @email zhangbyby@outlook.com
* @date 2021-10-12 17:42:30
... |
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
package com.twilio.rest.api.v2010.account.sip;
import com.twilio.base.Updater;
import com.twilio.converter.Promoter;
import com.twilio.exception.ApiConnectionException;
import com.twilio.exception.ApiEx... |
package io.rxmicro.examples.rest.client.headers;
import io.rxmicro.examples.rest.client.headers.model.$$ListHeaderResponseModelReader;
import io.rxmicro.examples.rest.client.headers.model.ListHeaderResponse;
import io.rxmicro.rest.client.RestClientConfig;
import io.rxmicro.rest.client.detail.AbstractRestClient;
import... |
/**
*
*/
package com.isaacbrodsky.freeze2;
import java.util.concurrent.TimeUnit;
/**
* @author isaac
*
*/
public class Timer {
/**
* This number may not be <=0
*/
private double timeStep;
public Timer() {
this(100);
}
public Timer(double n) {
setTimeStep(n);
}
/**
* Time in milliseconds.
... |
/**
*
* 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"); ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.