text stringlengths 7 995k |
|---|
package de.dm.infrastructure.actuator.health.indicator;
import de.dm.infrastructure.actuator.health.endpoint.ExtendedHealthEndpoint;
import org.springframework.boot.actuate.health.HealthIndicator;
/**
* Marker interface for fast health indicators that should be available in /health/alive.
* <p>
* Application Alive... |
/*
* Copyright 2000-2013 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... |
// ***************************************************************************************************************************
// * 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 regardi... |
package fr.bmartel.protocol.google.api.calendar;
import java.util.List;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import fr.bmartel.protocol.google.constants.CalendarConst;
/**
* Calendar objects useful functions
*
* @author Bertrand Martel
*
*/
public class CalendarUtils {
/**
... |
/**
* 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 org.spongepowered.tools.obfuscation;
import java.util.Collection;
import javax.annotation.processing.Messager;
import javax.annotation.processing.ProcessingEnvironment;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
import javax.lang.model.type.TypeMirror;
import javax.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 file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* Copyright (c) 2008-2016, GigaSpaces Technologies, 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
*
* Un... |
package cz.nkp.differ.compare.io;
import cz.nkp.differ.exceptions.ImageDifferException;
import cz.nkp.differ.listener.ProgressListener;
import java.io.File;
/**
*
* @author xrosecky
*/
public abstract class ImageProcessor {
protected ImageProcessorConfig config;
public ImageProcessorConfig getConfig() {
... |
/*
* 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.java2e.martin.common.api.resource;
import com.java2e.martin.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
* @author 狮少
* @version 1.0
* @date 2019/7/30
* @describtion RemoteResource, res... |
/*
* 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 com.sin.orb.security;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.secur... |
package com.sossmc.weatherapk;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void ... |
/*
* The MIT License
* Copyright © 2014-2021 Ilkka Seppä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, copy... |
package com.box.boxjavalibv2.requests;
import com.box.boxjavalibv2.IBoxConfig;
import com.box.boxjavalibv2.jsonparsing.IBoxJSONParser;
import com.box.boxjavalibv2.requests.requestobjects.BoxEventRequestObject;
import com.box.restclientv2.RestMethod;
import com.box.restclientv2.exceptions.BoxRestException;
import com.b... |
package org.charles.learning.base.thread;
public class ThreadDaemon {
public static void main(String[] args) {
DaemonThread daemonThread = new DaemonThread();
Thread threadDaemon = new Thread(daemonThread);
threadDaemon.setDaemon(true);
threadDaemon.start();
UserThread use... |
package org.kyojo.schemaorg.m3n5.core.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n5.core.Clazz;
import org.kyojo.schemaorg.m3n5.core.Container.ActionStatus;
import org.kyojo.schemaorg.m3n5.core.Container.AdditionalType;
import or... |
import com.hazelcast.config.*;
import java.util.Map;
public class ExampleWANReplicationConfiguration {
public static void main(String[] args) throws Exception{
//tag::wrc[]
WanReplicationConfig wrConfig = new WanReplicationConfig()
.setName("my-wan-cluster-batch");
WanBatchPubli... |
/*
* Copyright 2021 DataCanvas
*
* 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... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package androidx.browser;
public final class R {
private R() {}
public static final class attr {
private attr() {}
... |
package io.github.jklingsporn.vertx.jooq.generate.rx.reactive.regular;
import generated.rx.reactive.regular.vertx.tables.pojos.Somethingcomposite;
import io.github.jklingsporn.vertx.jooq.generate.AbstractJsonConversionTest;
import io.vertx.core.json.JsonObject;
import java.util.Random;
/**
* Created by jensklingspo... |
package dev.alef.coloroutofspace.render;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.lwjgl.glfw.GLFW;
import com.mojang.blaze3d.matrix.MatrixS... |
/*
* XML Type: tFaultInfo
* Namespace: http://www.apache.org/ode/pmapi/types/2006/08/02/
* Java type: org.apache.ode.bpel.pmapi.TFaultInfo
*
* Automatically generated - do not modify.
*/
package org.apache.ode.bpel.pmapi.impl;
/**
* An XML tFaultInfo(@http://www.apache.org/ode/pmapi/types/2006/08/02/).
*
* Th... |
package jetbrains.mps.lang.editor.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.menus.substitute.SubstituteMenuBase;
import org.jetbrains.annotations.NotNull;
import java.util.List;
import jetbrains.mps.lang.editor.menus.MenuPart;
import jetbrains.mps.openapi.editor.menus.substitute.SubstituteMenuItem... |
package com.cidic.fontdesign.dao;
import java.util.List;
import com.cidic.fontdesign.model.SpecialDesign;
public interface SpecialDesignDao {
public void insertSpecialDesign(SpecialDesign courseDesign);
public SpecialDesign selectSpecialDesign(int id);
public void updateSpecialDesign(SpecialDesign courseDesi... |
package org.omg.PortableServer.POAPackage;
/**
* org/omg/PortableServer/POAPackage/WrongPolicy.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u151/9699/corba/src/share/classes/org/omg/PortableServer/poa.idl
* Tuesday, September 5, 201... |
/*
* 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... |
public class Solution {
public int numDecodings(String s) {
// Start typing your Java solution below
// DO NOT write main() function
if(s.length()==0) return 0;
int k[] = new int[s.length()+1];
if(s.charAt(0)=='0'){
k[1]=0;
}else{
... |
package org.mightyfish.crypto.tls;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class DigitallySigned
{
protected SignatureAndHashAlgorithm algorithm;
protected byte[] signature;
public DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
... |
package com.fire.common.cock.util;
import com.fire.common.cock.exception.NestedIOException;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URL;
/**
* VFS based {@link Resource} implementation.
* Supports the corresponding VFS API versions on JBoss ... |
package lapr.project.model;
import java.io.Serializable;
import java.util.ArrayList;
/**
* @author Grupo 18_LAPR2 15-16
*/
public class ListaDemonstracoes implements Serializable {
private ArrayList<Demonstracao> listaDemonstracoes;
private Demonstracao demonstracao;
private ListaRecursos listaRecursos... |
package com.eamon.javadesignpatterns.singleton.lazy.inner;
/**
*
* @author eamon.zhang
* @date 2019-09-30 下午2:55
*/
public class LazyInnerClassSingleton {
private LazyInnerClassSingleton() {
}
// 注意关键字final,保证方法不被重写和重载
public static final LazyInnerClassSingleton getInstance() {
return Laz... |
package ggc.products;
import java.io.*;
import java.util.*;
import ggc.exceptions.*;
public class Receipt implements Serializable{
private static final long serialVersionUID = 202110282344L;
private Map<Product, Float> _productPrices = new HashMap<Product, Float>();
private Recipe _recipe;
private i... |
package org.drools.modelcompiler.builder.generator.drlxparse;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.drools.constraint.parser.ast.expr.DrlNameEx... |
/*
* Copyright 2017-2020 original 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 applicable law or agr... |
/*
* Copyright 2008-2015 Hippo B.V. (http://www.onehippo.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 ... |
package com.leery.qCreate.sms.service.impl;
import com.leery.qCreate.sms.dao.HomeSubjectSpuDao;
import com.leery.qCreate.sms.entity.HomeSubjectSpu;
import com.leery.qCreate.sms.service.HomeSubjectSpuService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapp... |
package com.gahzl.bbs.notification;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;
import java.util.List;
/**
* Created by liuyang on 15/4/6.
*/
public class Notification extends Model<Notification> {
public static final Notif... |
/*
* Copyright 1999-2019 Seata.io Group.
*
* 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 gov.va.escreening.formula;
import gov.va.escreening.entity.AssessmentVariable;
import gov.va.escreening.expressionevaluator.ExpressionEvaluatorService;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;... |
package com.gmail.borlandlp.minigamesdtools.arena.localevent;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface ArenaEventHandler {
ArenaEventPriority priority() default ArenaEventPriority.LOWEST;
boolean ignoreCancelled()... |
/**
*
* Copyright 2013
*
* 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 writi... |
/*
* 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 2010-2015 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 "lice... |
// Line count using RegularExpression.......
public class LineCounter
{
public static int getLineCount(String text)
{
return text.split( "[\n|\r]" ).length;
}
public static void main(String... args)
{
String mytext = " line \n input\nCount Number of lines \n Goodluck " ;
System.out.println( mytext );... |
// Copyright 2018 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 writi... |
/*
* This Java source file was auto generated by running 'gradle buildInit --type java-library'
* by 'shanpin' at '17-4-10 上午11:36' with Gradle 2.5
*
* @author shanpin, @date 17-4-10 上午11:36
*/
public class Library {
public boolean someLibraryMethod() {
return true;
}
} |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
*
* 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 ... |
/*
* 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... |
/*
* 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 2019 Perihelios 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 ... |
/*
* Copyright 1999-2011 Alibaba Group.
*
* 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 la... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.ui.base;
/**
* Contains the functionality for interacting with the android permissions system.
*/
public interface AndroidPermissi... |
/*
* 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.af.queues;
import com.af.constants.TimeConstants;
import com.af.consumers.JobConsumer;
import com.af.models.JobInfo;
import com.af.models.JobState;
import com.af.models.JobType;
import com.af.models.PriorityLevel;
import com.af.producers.JobProducer;
import org.junit.Test;
import java.util.concurrent.Exec... |
package com.interview.bits;
import java.util.LinkedList;
import java.util.List;
/**
* Date 03/12/2016
* @author Tushar Roy
*
* Get first n gray code
* Reference
* https://leetcode.com/problems/gray-code/
*/
public class GrayCode {
public List<Integer> grayCode(int n) {
List<Integer> result = new Li... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distr... |
package com.jarvis.cache.script;
import java.lang.reflect.Method;
import java.util.concurrent.ConcurrentHashMap;
import javax.script.Bindings;
import javax.script.Compilable;
import javax.script.CompiledScript;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.SimpleBindin... |
/*
* 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"); you may n... |
/*
* Copyright (c) 2015-2021, www.dibo.ltd (service@dibo.ltd).
* <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 ... |
package com.me.ui.sample.widget.custom;
import android.view.View;
import android.widget.Button;
import com.me.ui.sample.base.BaseFragment;
import com.me.ui.sample.R;
import com.me.ui.widget.custom.GraffitiView;
/**
* @author tangqi on 17-8-3.
*/
public class GraffitiFragment extends BaseFragment {
@Override
... |
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.alidns20150109.models;
import com.aliyun.tea.*;
public class UpdateGtmRecoveryPlanResponse extends TeaModel {
@NameInMap("RequestId")
@Validation(required = true)
public String requestId;
public static UpdateGtmRecoveryPlanResp... |
/**
* Copyright (C) 2012-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
package xyz.bd7xzz.kane.executor;
import com.google.common.collect.Queues;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
/**
* @a... |
/*
* 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 android.support.v4.widget;
import android.os.Build.VERSION;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ListPopupWindow;
public final class ListPopupWindowCompat {
private ListPopupWindowCompat() {
}
@Deprecated
public static OnTouchListener creat... |
package io.github.glenerrands.memorygame;
import static io.github.glenerrands.memorygame.Rating.*;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.io.PrintWriter;
import java... |
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available und... |
package org.cloudfoundry.community.servicebroker.model;
import java.util.Map;
import java.util.Objects;
import org.apache.commons.beanutils.BeanUtils;
import org.hibernate.validator.constraints.NotEmpty;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
... |
/*
* Copyright (c) 2018-present, Jim Kynde Meyer
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.ide.editor;
import com.google.gson.Gson;
import com.intellij.codeHighlightin... |
package com.fantasy.easy.sys;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* Created by fantasy on 2020/4/14.
*/
public class PackageScaner {
private List<Class<?>> classes;
private String packagePath = null;
/*
* 实现,调用fileScanner进行目录扫描和加载
*
* @param String 传... |
package de.juanah.lenasblogdataaccess.Converter;
import android.database.Cursor;
import de.juanah.lenasblogdataaccess.Entities.Article;
import de.juanah.lenasblogdataaccess.Repositories.UserRepository;
/**
* Created by jonas on 15.02.15.
*/
public class ArticleConverter {
public static UserRepository _userRep... |
package org.jboss.resteasy.test.cdi.generic.resource;
import org.jboss.logging.Logger;
import javax.enterprise.context.Dependent;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import java.util.ArrayList;
@Path("concrete")
@Dependent
public class Concre... |
package de.denisthiessen.refactoring.tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import de.denisthiessen.refactoring.Movie;
public class MovieTest
{
@Test
public void testPriceCode()
{
Movie movie1 = new Movie("Test Movie 1", Movie.CHILDRENS);
Movie movie... |
package uk.gov.pay.connector.util;
import java.util.UUID;
public class TransactionId {
public static String randomId() {
return UUID.randomUUID().toString();
}
} |
/*
* 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 java.cn.fjc.threadtutorialtest.char02test;
import cn.fjc.threadtutorial.char02.PublicVar;
import cn.fjc.threadtutorial.char02.PublicVarThreadA;
import junit.framework.TestCase;
/**
* Created by byhieg on 17/1/1.
* Mail to byhieg@gmail.com
*/
public class PublicVarThreadATest extends TestCase {
public v... |
package cn.zhenghongen.android.common;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import cn.zhenghongen.android.common.ui.ToastUtils;
import cn.zhenghongen.android.common.volley.RequestManager;
/**
* Created by ZhengHongEn on 2015/10/29.
*/
publ... |
/*
* Copyright 2014 Kosta Korenkov
*
* 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... |
/*
* 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... |
/* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2022, by David Gilbert and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/index.html
... |
package com.fzd.cloud;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class MicroserviceConsumerMovieApplicationTests {
@Test
... |
package com.nshmura.recyclertablayout.demo;
/**
* Created by Shinichi Nishimura on 2015/07/22.
*/
public class ColorItem {
public String name;
public String hex;
public int color;
} |
package com.example.acer.coolweather;
import android.app.Fragment;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.... |
/*
* 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... |
/*L
* Copyright SAIC.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cagwas/LICENSE.txt for details.
*/
package gov.nih.nci.cagwas.web.filter;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;
import java.util.Enumeration;
import java.uti... |
import java.net.URL;
import javax.persistence.*;
public class JpaConsumer {
public void doIt() {
EntityManager em = null;
System.out.printf( "(JpaConsumer) EntityManager class: `%s`\n", EntityManager.class.getName() );
Helper.sayHi();
// make sure we can find our resource...
final URL resource = getClass()... |
/*
* Copyright 2010-2013 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... |
//
// ========================================================================
// Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
/*
* 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 ir.androidexception.datatable.adapter;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import a... |
package com.slack.api.methods.request.admin.users;
import com.slack.api.methods.SlackApiRequest;
import lombok.Builder;
import lombok.Data;
import java.util.List;
/**
* https://api.slack.com/methods/admin.users.session.getSettings
*/
@Data
@Builder
public class AdminUsersSessionGetSettingsRequest implements SlackA... |
package com.ashish.Swagger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SwaggerApplication {
public static void main(String[] args) {
SpringApplication.run(SwaggerApplication.class, args);
}
} |
package com.chutneytesting.execution.api;
import static com.chutneytesting.tools.ui.ComposableIdUtils.fromFrontId;
import com.chutneytesting.design.domain.scenario.TestCase;
import com.chutneytesting.design.domain.scenario.TestCaseRepository;
import com.chutneytesting.execution.domain.ExecutionRequest;
import com.chu... |
/**
* Copyright © 2016-2018 The Thingsboard Authors
* Modifications © 2017-2018 Hashmap, 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/LIC... |
/*
*
* Copyright 2013 Netflix, 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 ap... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 查询单元
*
* @author auto create
* @since 1.0, 2019-11-01 10:51:48
*/
public class AlipayDataDataserviceAdPlanQueryModel extends AlipayObject {
private static final long serialVersionUID = 5219... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.