text
stringlengths
7
995k
package com.netshoes.springframework.cloud.sleuth.test.boot.instrument.amqp.mock; import org.mockito.Mockito; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.amqp.AmqpException; import org.springframework.amqp.core.Message; import org.springframework.amqp.core.MessagePostProcessor; ...
package com.dranawhite.study.springcloud.eureka.lesson3; import com.dranawhite.study.springcloud.eureka.lesson1.ApplicationEureka1; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryC...
package cn.zzrfdsn.cloudlandShop.util; import java.util.Random; /** * 各种id生成策略 * <p>Title: IDUtils</p> * <p>Description: </p> * @date 2015年7月22日下午2:32:10 * @version 1.0 */ public class IDUtils { /** * 图片名生成 */ public static String genImageName() { //取当前时间的长整形值包含毫秒 long millis = System.currentTimeMill...
package org.testng.internal; import org.testng.ITestClass; import org.testng.ITestNGMethod; import org.testng.xml.XmlClass; import org.testng.xml.XmlTest; public class NoOpTestClass implements ITestClass { protected Class<?> m_testClass = null; // Test methods protected ITestNGMethod[] m_beforeClassMethods = ...
/* Copyright (C) GridGain Systems. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017-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...
package Exceptions; public class DBAppException extends Exception{ public DBAppException(){ } public DBAppException(String m){ super(m); } }
package com.example.instagram.MainActivity.Fragments; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView;...
package model.entities; import controller.MenuController; import io.ebean.Model; import javax.persistence.*; import java.math.BigDecimal; import java.math.RoundingMode; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.List; import io.ebean.Finder...
/* * Copyright (C) 2008 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 service.impl; import entity.Goods; import factory.DAOFactory; import service.GoodsService; import javax.naming.NamingException; import java.sql.SQLException; import java.util.List; /** * All rights Reserved, Designed by Popping Lim * * @Author: Popping Lim * @Date: 2019/1/1 * @Todo: */ public class Goo...
/* * Copyright 2002-2018 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.xwbing.service.mall; import org.springframework.stereotype.Service; import com.xwbing.service.domain.entity.rest.Order; import com.xwbing.service.mall.dto.PayOrderReqDTO; import com.xwbing.service.mall.dto.TradeReqDTO; import com.xwbing.service.mall.dto.TradeRespDTO; import com.xwbing.service.mall.strateg...
/** * This file is part of Eclipse Steady. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
package org.jabref.logic.importer; import java.util.Collection; import java.util.HashSet; import java.util.Set; import java.util.stream.Collectors; import org.jabref.logic.importer.fetcher.ACMPortalFetcher; import org.jabref.logic.importer.fetcher.AbstractIsbnFetcher; import org.jabref.logic.importer.fetcher.GrobidCi...
package com.didi.carmate.dreambox.core; 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 pub...
package controller.servlet; 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 java.io.IOException; import java.util.Enumeration; /** * @author: H...
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/******************************************************************************* * Copyright (c) 2011, 2015 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 com.github.angrycellophane.foobar.l3; import java.math.BigInteger; /** * Problem: Fuel Injection Perfection ========================= Commander Lambda has asked for your help to refine the automatic quantum antimatter fuel injection system for her LAMBCHOP doomsday device. It's a great chance for you to ...
/* * Copyright 2005-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/** * 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.appplatform.v2020_11_01_preview; import java.uti...
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.marketing.data.enterprise.staffinfo.upload response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class KoubeiMarketingDataEnterpriseStaffinfoU...
import java.util.ArrayList; import java.util.List; /* * @lc app=leetcode.cn id=54 lang=java * * [54] 螺旋矩阵 */ // @lc code=start class Solution { public List<Integer> spiralOrder(int[][] matrix) { // 确定边界 螺旋打印 List<Integer> res = new ArrayList<>(); if(matrix.length == 0){ retu...
package com.company; import com.company.habilidades.Habilidad; import java.util.ArrayList; import java.util.List; public class Personaje { private String nombre; private List<Habilidad> habilidades; public Personaje(String nombre) { this.nombre = nombre; habilidades = new ArrayList<>(); ...
/* * Copyright 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/* * FastReport Cloud * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do n...
package rml.model.vo; import java.util.List; /** * datagrid model for easyui * */ public class DataGrid implements java.io.Serializable { private Long total;// total number of records private List rows;// each records private List footer; public Long getTotal() { return total; } public void setTotal(Lo...
package com.iaaa.sensorlib; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class SensorActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sensor); } @Override...
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * Copyright 2015 Open Networking Laboratory * * 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 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
/** * Copyright [2016] [Christian Loehnert] * * 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 ag...
/** * 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 not use...
package com.laioffer.job.servlet; import com.laioffer.job.entity.ExampleJob; import com.laioffer.job.entity.ExampleCoordinates; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.*; import java.io.IOException; import com.fasterxml.jackson.databind.ObjectMapper; @WebServlet(name = "Ex...
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.flags.json; import com.yahoo.vespa.flags.FetchVector; import com.yahoo.vespa.flags.json.wire.WireCondition; import java.util.List; import java.util.Objects; import java.util.Optiona...
package my.lang.lexer; import com.intellij.lexer.FlexAdapter; import my.lang.parser._MyLanguageLexer; /** * @author yanchangyou */ public class MyLanguageLexerAdapter extends FlexAdapter { public MyLanguageLexerAdapter() { super(new _MyLanguageLexer(null)); } }
/** * 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 org.metaborg.core.processing; import javax.annotation.Nullable; import org.apache.commons.vfs2.FileObject; import org.metaborg.core.analysis.IAnalyzeUnit; import org.metaborg.core.analysis.IAnalyzeUnitUpdate; import org.metaborg.core.build.BuildInput; import org.metaborg.core.build.CleanInput; import org.meta...
package wpos.http.request; import wpos.http.HttpRequestUnit; public class RetrieveNCouponCodeC extends HttpRequestUnit { @Override public EnumRequestType getEnumRequestType() { return HttpRequestUnit.EnumRequestType.ERT_CouponCode_RetrieveNC; } }
/* * Cleandroid Framework * @author: Douraid Arfaoui <douraid.arfaoui@gmail.com> * * Copyright (c) 2015, Douraid Arfaoui, or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. * * This copyrighted material is made available to ...
package com.salesmanager.shop.store.facade.product; import com.salesmanager.shop.model.entity.ReadableEntityList; import org.apache.commons.lang3.Validate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Profile; import org.springframework.data.domain.Page; ...
package com.xzjie.cms.model; import lombok.Data; import org.hibernate.annotations.DynamicInsert; import javax.persistence.*; import java.time.LocalDateTime; @Data @Entity @DynamicInsert @Table(name = "sys_system_log") public class SystemLog { /** * 主键 */ @Id @GeneratedValue(strategy = Generatio...
package com.juny.cashiersystem.bluetooh; import com.juny.cashiersystem.bean.OrderBean; /** * <br> ClassName: PrintEvent * <br> Description: * <br> Author: Juny * <br> Date: 2018/5/28 23:07 */ public class PrintEvent { private OrderBean orderBean; public PrintEvent(OrderBean orderBean) { this.o...
package com.stylefeng.guns.common.exception; /** * @Description 所有业务异常的枚举 * @author fengshuonan * @date 2016年11月12日 下午5:04:51 */ public enum BizExceptionEnum { /** * 字典 */ DICT_EXISTED(400,"字典已经存在"), ERROR_CREATE_DICT(500,"创建字典失败"), ERROR_WRAPPER_FIELD(500,"包装字典属性失败"), /** * 文件上传 */ FILE_READING_E...
package mekanism.common.item.block.transmitter; import java.util.List; import javax.annotation.Nonnull; import mekanism.api.text.EnumColor; import mekanism.client.key.MekKeyHandler; import mekanism.client.key.MekanismKeyHandler; import mekanism.common.MekanismLang; import mekanism.common.block.transmitter.BlockRestric...
/* * Copyright (C) 2017 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
package cn.micro.biz.pubsrv.cache; import cn.micro.biz.commons.auth.MicroAuthContext; import cn.micro.biz.commons.exception.support.MicroErrorException; import cn.micro.biz.pubsrv.cache.support.MicroCacheProperties; import cn.micro.biz.pubsrv.cache.support.MicroCacheRuleProperties; import cn.micro.biz.pubsrv.cache.ser...
/* * Copyright 2018 airhacks.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 required by applicable law or agreed ...
/* * Copyright (c) 2021 Daimler TSS GmbH * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0 * * SPDX-License-Identifier: Apache-2.0 * * Contributors: * Daimler T...
/** * 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 2005-2014 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...
package facade.service; import facade.domain.Task; /** * @Author: Jeremy * @Date: 2020/8/26 22:52 */ public interface TaskService { Task create(Long id, String command); void config(Task task, String config); void deploy(Task task); }
/**************************************************************** * 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...
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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...
package hudson.util; import hudson.Util; import hudson.model.TaskListener; import org.apache.tools.ant.DirectoryScanner; import org.apache.tools.ant.types.FileSet; import java.io.File; import java.io.FileFilter; import java.io.IOException; import java.io.InterruptedIOException; import java.io.Serializable; import st...
/* * eZmax API Definition (Full) * This API expose all the functionnalities for the eZmax and eZsign applications. * * The version of the OpenAPI document: 1.1.7 * Contact: support-api@ezmax.ca * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-genera...
package run.serverstatus.app.controller; import run.serverstatus.app.entities.info.StaticInfo; import run.serverstatus.app.entities.info.LineChartInfo; import run.serverstatus.app.entities.info.TimedInfo; import run.serverstatus.app.service.Impl.MoreDetailsServiceImpl; import org.springframework.beans.factory.annotati...
package com.niit.AncestorQuery; import javax.servlet.annotation.WebFilter; import com.googlecode.objectify.ObjectifyFilter; @WebFilter(urlPatterns = {"/*"}) public class ObjectifyWebFilter extends ObjectifyFilter {}
package edu.upenn.cbil.magetab.model; import java.util.Comparator; /** * Comparator for Factor Values based upon position within the original Excel spreadsheet. * @author crisl * */ public class FactorValueComparator implements Comparator<FactorValue> { /** * Factor Value comparison - insures comparison ba...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
// Copyright 2019 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
/* * Copyright 2021 Shulie Technology, Co.Ltd * Email: shulie@shulie.io * 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 r...
package ui.yinwen; import java.util.LinkedList; import java.util.Queue; public class ThreadSafeQueue<T> { private Queue<T> safeQueue; public Object lock = new Object(); public ThreadSafeQueue() { this.safeQueue = new LinkedList<>(); } public void add(T data){ synchronized (lock){...
package factoryMethod; /** * Created by zhengwenzhan on 2019-01-28 */ public class OrcWeapon implements Weapon { private WeaponType weaponType; public OrcWeapon(WeaponType weaponType) { this.weaponType = weaponType; } @Override public WeaponType getWeaponType() { return weaponTy...
/****************************************************************************** Copyright (c) 2016, Cormac Flanagan (University of California, Santa Cruz) and Stephen Freund (Williams College) All rights reserved. Redistribution and use in source and binary forms, with or without modification,...
package yang.project.nsd.rev170228.nsr.nsd.constituent.vnfd; import com.google.common.base.MoreObjects; import java.lang.Override; import java.lang.String; import java.util.Objects; import org.opendaylight.yangtools.yang.binding.CodeHelpers; import org.opendaylight.yangtools.yang.binding.Identifier; public class Const...
/* * Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* * Copyright 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 by applica...
package pro.haichuang.framework.sdk.huaweicloudsms.config.properties; import org.springframework.boot.context.properties.ConfigurationProperties; /** * 华为云短信配置文件 * * <p>该类为 {@code hc-sdk-huaweicloudsms} SDK模块配置文件类 * <hr> * Example: * <pre> * # ========================= Haichuang Setting ===================...
// Targeted by JavaCPP version 1.5.5-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.opencv.opencv_dnn; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.openblas.global.openblas_nolapack.*...
/* * Copyright (C) 2017-2018 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * 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 * * ...
public class Solution { public int shortestDistance(String[] words, String word1, String word2) { String pre = null; int preidx = 0; int res = words.length; for (int i = 0; i < words.length; i++) { String word = words[i]; if (word.equals(word1) || word.equals...
/** * */ package com.cts.android.pbmaid.xml; import java.util.ArrayList; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import com.cts.android.pbmaid.data.InsurancePlanData; import com.cts.android.pbmaid.data.PatientData; /** * @author Arindam * */ p...
package com.atguigu.gmall.sms.service; import com.baomidou.mybatisplus.extension.service.IService; import com.atguigu.gmall.sms.entity.CouponEntity; import com.atguigu.core.bean.PageVo; import com.atguigu.core.bean.QueryCondition; /** * 优惠券信息 * * @author huigege * @email 574059694@qq.com * @date 2019-10-28 23:2...
package com.activitystream.core.sdk.aspects; import com.activitystream.sdk.ASEntity; import com.activitystream.sdk.ASService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.junit.Test; import org.testng.Assert; import java.util.TimeZone; public class MetricsAspectTest { private static fina...
import static java.util.stream.Collectors.toList; import java.util.List; interface findList { static List<String> findChildren(List<String> santasList, List<String> children) { return santasList.stream().filter(children::contains).distinct().sorted().collect(toList()); } }
/** * Copyright 2002-2017 SCOOP Software 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.0 * * Unless required by applicable la...
// Copyright (C) 2014 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 ...
package com.orangeforms.webadmin.upms.service.impl; import com.orangeforms.common.core.base.service.BaseService; import com.orangeforms.common.sequence.wrapper.IdGeneratorWrapper; import com.orangeforms.common.core.base.dao.BaseDaoMapper; import com.orangeforms.common.core.constant.GlobalDeletedFlag; import com.orange...
/** * 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.gourd.erwa.design.alias.producer.base; import com.gourd.erwa.design.alias.AliasCenterKey; import java.util.List; /** * 支持别名替换生产者接口. * * @author wei.Li by 2018/10/23 */ public interface AliasProducer { /** * 生产者指定 KEY. * * @return the alias producer enum */ AliasProducerKe...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2022 DBeaver Corp and others * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICE...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.labservices.generated; import com.azure.core.util.Context; /** Samples for VirtualMachines Stop. */ public final class VirtualM...
package com.scaleunlimited.cascading.cuke; import static org.junit.Assert.assertEquals; import java.io.IOException; import org.junit.Test; public class WorkflowContextTest { @Test public void testMakePathSafe() throws IOException { // Trim leading & trailing spaces // Get rid of |, ?, etc. ...
package com.ss.rlib.common.util.dictionary; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** * The fast read-only implementation of {@link LongDictionary} without threadsafe supporting. * * @param <V> the value's type. * @author JavaSaBr */ public class ReadOnlyFastLongDic...
package app.outlay.di.module; /** * Created by Bogdan Melnychuk on 12/17/15. */ public class DaoModule { private static final String DATABASE_NAME = "outlay_db"; // @Provides // @Singleton // public DaoMaster.DevOpenHelper provideDatabaseHelper(Context application) { // return new DaoMaster.DevO...
package com.flowci.core.test.agent; import com.flowci.core.agent.dao.AgentDao; import com.flowci.core.agent.domain.Agent; import com.flowci.core.test.SpringScenario; import com.google.common.collect.Sets; import org.junit.Assert; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; im...
/* * Copyright (C) 2010 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 leetcode; import java.util.*; public class MinimumHeightTrees210 { public static List<Integer> findMinHeightTrees(int n, int[][] edges) { int min=n; List<Integer> res=new ArrayList<>(); int[] visit=new int[n]; Map<Integer,List<Integer>> graph=new HashMap<>(); Map<In...
/* * The MIT License * * Copyright (c) 2015-2018 Todd Kulesza <todd@dropline.net> * * This file is part of Hola. * * 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...
package hello; import org.apache.log4j.Logger; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.servlet.mvc.method.annotati...
package info.smart_tools.smartactors.feature_loader_plugins.filesystem_facade_plugin; import info.smart_tools.smartactors.base.exception.invalid_argument_exception.InvalidArgumentException; import info.smart_tools.smartactors.base.interfaces.iaction.exception.ActionExecutionException; import info.smart_tools.smartacto...
/* * Copyright (c) 2009, tamacat.org * All rights reserved. */ package org.tamacat.httpd.handler; import org.apache.http.protocol.HttpRequestHandler; import org.tamacat.httpd.config.ServiceUrl; import org.tamacat.httpd.filter.HttpFilter; import org.tamacat.httpd.filter.RequestFilter; /** * <p>{@code HttpHandler} ...
package org.checkerframework.framework.util.typeinference; import com.sun.source.tree.AssignmentTree; import com.sun.source.tree.CompoundAssignmentTree; import com.sun.source.tree.ConditionalExpressionTree; import com.sun.source.tree.ExpressionTree; import com.sun.source.tree.LambdaExpressionTree; import com.sun.sourc...
/* * 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 ...