text stringlengths 7 995k |
|---|
/*
* Copyright 1999-2020 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 com.hongtu.utils.config;
import org.junit.Test;
public class TestPath {
@Test
public void TestgetCurrentPath() {
System.out.println(Path.getCurrentPath());
}
@Test
public void testGetCurrentPath() {
System.out.println(Path.getCurrentPath(this.getClass()));
}
} |
package core.time.period;
import org.junit.Test;
import java.time.Period;
import static org.junit.Assert.assertEquals;
public class PeriodTest {
@Test
public void createCustomPeriod() {
// Use static methods to create new period object
Period p1 = Period.ofYears(10);
checkPeriod(p1, 10, 0, 0);
Period p2... |
package wb.t20190208;
import java.util.ArrayList;
import java.util.List;
import charlotte.tools.FileTools;
import charlotte.tools.SecurityTools;
import charlotte.tools.StringTools;
public class Test0001 {
public static void main(String[] args) {
try {
test01();
System.out.println("OK!");
}
catch(Throwa... |
/*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2020, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver.search.strategy.decision;
import o... |
package com.baiyi.opscloud.facade.user.impl;
import com.baiyi.opscloud.domain.vo.sys.MenuVO;
import com.baiyi.opscloud.domain.vo.user.UserUIVO;
import com.baiyi.opscloud.facade.sys.MenuFacade;
import com.baiyi.opscloud.facade.user.UserUIFacade;
import com.baiyi.opscloud.service.auth.AuthResourceService;
import org.spr... |
package dp._31_intercepting_filter_pattern;
public class Client {
FilterManager filterManager;
public void setFilterManager(FilterManager filterManager){
this.filterManager = filterManager;
}
public void sendRequest(String request){
filterManager.filterRequest(request);
}
} |
package br.edu.cesar.philippe.accesscontrol.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.List;
@Entity
@Data
@ToString(exclude = "roles"... |
/*
* 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.eure.demo.domain.metrics;
import com.eure.demo.domain.user.UserProfile;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
/**
* Sub Metric, 一个主度量(MainMetric)可以有一个或者多个子度量(SubMetric)组成的。
*
* @author Frank Zhang
* @date 2018-08-27 6:44 PM... |
// Copyright (c) 2015 firsh.ME
package fuck.gfw.rudp.message;
import fuck.gfw.utils.ByteShortConvert;
import fuck.gfw.utils.ByteIntConvert;
import java.net.DatagramPacket;
public class PingMessage2 extends Message {
public short sType= MessageType.sType_PingMessage2;
byte[] dpData=new byte[16];
int pingId;
... |
package com.nacre;
import java.util.Scanner;
//decimal to octal conversion
public class DecimalConversion {
int decimalToOctal(int num) {
int i=1,sum=0;
while (num != 0) {
sum = sum+(num % 8)*i;
num=num/10;
i=i*10;
}
return sum;
}
public static void main(String[] args) {
System.out.println... |
package io.surisoft.demo.ws.config;
import io.micrometer.core.instrument.composite.CompositeMeterRegistry;
import io.surisoft.demo.ws.data.Message;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.dataformat.JsonLibrary;
im... |
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* Copyright 2013-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 by ap... |
// Copyright (c) Committed Software 2018, opensource@committed.io
package uk.gov.dstl.baleen.annotators.events;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Iterator;
import org.apache.uima.analysis_engine.AnalysisEngine... |
package org.drools.jsr94.rules;
/*
* $Id: ExampleRuleEngineFacade.java,v 1.5 2004/11/17 03:09:50 dbarnett Exp $
*
* Copyright 2002-2004 (C) The Werken Company. All Rights Reserved.
*
* Redistribution and use of this software and associated documentation
* ("Software"), with or without modification, are permitted... |
/*
* 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.coder.finals;
public class FinalReferenceDemo {
final int[] arrays;
private FinalReferenceDemo finalReferenceDemo;
public FinalReferenceDemo() {
arrays = new int[1]; //1
arrays[0] = 1; //2
}
/**
* 线程A
*/
public void writerOne() {
finalRefe... |
package com.liyafeng.algorithm.sword2offer;
import java.util.Comparator;
public class N21_ContainMinFuncInStack {
/**
* 设计一个栈,用O(1)时间完成 push() ,pop() ,min()操作
*
* 最小值用一个辅助栈,记录每次入栈时当前的最小值
*
* 这里其实是用空间换时间的 典型例子
*
* 如何题中对时间有特殊要求,那么我们应该考虑 使用 辅助空间
*
* =====================... |
/*
* 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 ... |
// The purpose of this program is conversion lbs to kilograms
// Author: John Doan
// 05/14/2021
package jvd.com.company;
import java.text.DecimalFormat;
import java.util.*;
public class lbs_kilogramc_conversion {
public static void main(String[] args){
//User Input
Scanner input = new Scanner(Syst... |
/*
* Copyright (C) 2015 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
package org.rookit.parser.tag.processor;
import com.google.common.base.MoreObjects;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.Logger;
import org.rookit.api.dm.artist.Artist;
import org.rookit.api.dm.artist.factory.ArtistFactory;
import org.rookit.api.dm.artist.key.ArtistKey;
import 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 agreed to in writing, software
* distribut... |
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE
package org.bytedeco.llvm.LLVM;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.llvm.global.LLVM.*;
/**
* Represents an LLVM Met... |
/*******************************************************************************
* * Copyright 2012 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
*... |
package com.huobi.constant.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public enum SubUserManagementActionEnum {
LOCK("lock"),
UNLOCK("unlock"),
;
private String action;
} |
/*
* Copyright 2015 Cognitive Medical Systems, Inc (http://www.cognitivemedicine.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-... |
import java.util.*;
import java.io.*;
public class floyd_warshall {
public static void main(String[] args) throws Exception {
/*
// Graph in Figure 4.20
5 9
0 1 2
0 2 1
0 4 3
1 3 4
2 1 1
2 4 1
3 0 1
3 2 3
3 4 5
*/
Scanner sc = new Scanner(new File("floyd_warsh... |
package com.stripe.android.model.wallets;
import java.lang.System;
/**
* Details of the card wallet.
*
* [card.wallet](https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-wallet)
*/
@kotlin.Metadata(mv = {1, 5, 1}, k = 1, d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u... |
/*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.runner.loader;
import jsystem.framework.FrameworkOptions;
import jsystem.framework.JSystemProperties;
public class LoadersManager {
private static LoadersManager manager;
private boolean dynamicLoading = true;
public sta... |
/*
*
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2007 INRIA, France Telecom
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1.... |
package presentacion.controlador.command.CommandDepartamento;
import negocio.departamento.SADepartamento;
import negocio.departamento.TransferDepartamento;
import negocio.factorias.FactoriaSAImp;
import presentacion.contexto.Contexto;
import presentacion.controlador.command.Command;
import presentacion.eventos.Eventos... |
package com.alibaba.druid.bvt.pool;
import java.sql.Connection;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.druid.pool.DruidDataSource;
public class DruidDataSourceTest_initSqls extends TestCase {
private DruidDataSource dataSource;
protected void setUp() throws Exception... |
package com.lnssh;
import android.app.Activity;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.lnssh.ImagePic... |
package cn.hippo4j.common.toolkit;
import java.util.Iterator;
import java.util.Map;
/**
* Collection util.
*
* @author chen.ma
* @date 2021/12/22 20:43
*/
public class CollectionUtil {
/**
* Get first.
*
* @param iterable
* @param <T>
* @return
*/
public static <T> T getFir... |
/*
* Copyright 2006-2014 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 app... |
package org.apache.spark.scheduler;
private class FIFOSchedulableBuilder implements org.apache.spark.scheduler.SchedulableBuilder, org.apache.spark.Logging {
public org.apache.spark.scheduler.Pool rootPool () { throw new RuntimeException(); }
// not preceding
public FIFOSchedulableBuilder (org.apache.spark.sc... |
package com.lambdaschool.bookstore.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.securi... |
package com.fteams.sstrain.android;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.fteams.sstrain.SSTrain;
impor... |
/*******************************************************************************
* Copyright (c) 1998, 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... |
/*
* Copyright (c) 2016 Capita plc
*/
package com.pay360.sdk.library.exception;
/**
* A transaction is suspended waiting for 3D Secure input from the user - wait for completion
*/
public class TransactionSuspendedFor3DSException extends Exception {
} |
package com.pi4j.io.exception;
/*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: LIBRARY :: Java Library (CORE)
* FILENAME : IOAlreadyExistsException.java
*
* This file is part of the Pi4J project. More information about
... |
/*
* Copyright 2012 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... |
package nl.uu.cs.ape.sat.models;
import java.util.SortedSet;
import java.util.TreeSet;
import org.json.JSONException;
import org.json.JSONObject;
import nl.uu.cs.ape.sat.models.enums.LogicOperation;
import nl.uu.cs.ape.sat.models.enums.NodeType;
import nl.uu.cs.ape.sat.models.logic.constructs.CustomLabel;
import nl.... |
/**
* Some instructions are perniticky enough that its simpler
* to write them separately instead of smushing them with
* all the rest. the multiarray instruction is one of them.
* @author $Author: kbs $
* @version $Revision: 1.2 $
*/
package jas;
import java.io.*;
public class MultiarrayInsn extends Insn impl... |
package com.affinda.api.sample;
import com.affinda.api.client.AffindaAPI;
import com.affinda.api.client.AffindaAPIBuilder;
import com.affinda.api.client.AffindaTokenCredential;
import com.azure.core.credential.TokenCredential;
import com.azure.core.exception.HttpResponseException;
public class run {
public stati... |
package Day4;
public class ForLoop {
public static void main(String[] args) {
System.out.println("Printing numbers from 0 to 50: ");
for(int i=1;i<=50;i++){
System.out.print(i);
System.out.print("\t");
}
System.out.println("\n\nPrinting alphabets from A to Z:... |
/* ###
* IP: GHIDRA
*
* 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 writin... |
package com.zark.easyframe.biz.common.bo.impl;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.Assert;
import com.zark.easyframe.biz.common.bo.MessageBo;
import com.zark.easyframe.biz.common.bo.Mess... |
/*
* 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.udemy.jmc.section6;
public class Calculator {
private Floor floor;
private Carpet carpet;
public Calculator(Floor floor, Carpet carpet) {
this.floor = floor;
this.carpet = carpet;
}
public double getTotalCost(){
return floor.getArea() * carpet.getCost();
}
... |
package javacodetest;
import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.widget.TextView;
import com.leui.notification... |
package persistenceSQL;
import init.Init;
import org.junit.*;
import persistenceSQL.ControlSQL;
import persistenceSQL.PZNInfo;
import persistenceSQL.SectionInfo;
import static org.junit.Assert.*;
public class SQLTest {
private static ControlSQL csql;
@BeforeClass
public static void createDB(){
... |
package com.cube.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author tututu
* @email 289911401@qq.com
* @date 2019-11-20 17:42:17... |
package com.example.liberex.util;
import org.joda.time.DateTime;
import com.example.liberex.xdo.AbstractRequest;
import com.example.liberex.xdo.SchemaProperties;
import com.example.liberex.xdo.SystemRef;
public class RequestBuilder<T extends AbstractRequest> {
T rq;
static public <T extends AbstractRequest>... |
package com.yiliao.timer;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.TimerTask;
import org.slf4j.Logger;
import com.yiliao.service.PersonalCenterService;
import com.yiliao.util.SpringConfig;
import com.yiliao.util.VidelSingUtil;
/**
* 视频... |
//
// Copyright (c) 2008-2011, Kenneth Bell
//
// 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, ... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.example.admin.coolweather0.db;
import org.litepal.crud.DataSupport;
/**
* Created by admin on 2018/7/24.
*/
public class Province extends DataSupport {
private int id;
private String provinceName;
private int provinceCode;
public int getId(){
return id;
}
public voi... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License");... |
/*
* Copyright 1999-2018 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... |
/**
* Copyright 2005-2015 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 com.len.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.len.base.impl.BaseServiceImpl;
import com.len.entity.SysRoleMenu;
import com.len.mapper.SysRoleMenuMapper;
import com.len.service.RoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
... |
package cn.edu.ruc.db;
import java.io.IOException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
public class OkHttpTest {
private static final OkHttpClient clien... |
package org.snobot.coordinate_gui.model;
/**
* Represents a positioning coordinate in feet.
* @author Rich
*/
public class Coordinate
{
/** The (x, y) position. */
public Position2dDistance mPosition;
/** The angle of the coordinate, in degrees. */
public double mAngle;
/**
* Constructor.... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.accesodatos.AD04;
import com.accesodatos.AD04.utilities.ManageJson;
import com.accesodatos.AD04.utilities.DB;
import com.a... |
package sun.util.resources.es;
import java.util.ListResourceBundle;
public final class LocaleNames_es extends sun.util.resources.LocaleNamesBundle {
protected final Object[][] getContents() {
return new Object[][] {
{ "001", "Mundo" },
{ "002", "\u00C1frica" },
{ "003",... |
/*
* Copyright (C) 2018
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in th... |
package it.unibo.alchemist.loader.variables;
import java.util.stream.DoubleStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* This class represents a linear variable, namely a variable whose values span
* linearly between minimum and maximum.
*/
public class LinearVariable extends PrintableVar... |
package com.bumptech.glide.manager;
import com.bumptech.glide.request.Request;
import com.bumptech.glide.util.Util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.WeakHashMap;
/**
* A class for tracking, canceling, and restarting in progress, c... |
package mono.androidx.recyclerview.widget;
public class RecyclerView_ItemAnimator_ItemAnimatorFinishedListenerImplementor
extends java.lang.Object
implements
mono.android.IGCUserPeer,
androidx.recyclerview.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener
{
/** @hide */
public static final String _... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... |
/*
* Copyright 2015 Adobe Systems Incorporated
*
* 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... |
/*=========================================================================
Program: OpenIGTLink Library
Module: $HeadURL: http://osfe.org/OpenIGTLink/Source/org/medcare/igtl/messages/ImageMessage.java $
Language: java
Date: $Date: 2010-18-14 10:37:44 +0200 (ven., 13 nov. 2009) $
Version: $Revis... |
/*
* Copyright (c) 2008-2011 Ivan Khalopik.
*
* 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 cz.podlesh.demo.calculator.api;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.util.Arrays;
/**
* Result of full operation: contains whole request, too.
*/
pu... |
/**
* Copyright 2009-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
/*
Java solution to LeetCode 2: Add Two Numbers.
Level: Medium
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do ... |
package com.opencloud.admin.configuration;
import com.opencloud.common.constants.CommonConstants;
import com.opencloud.common.exception.BaseAccessDeniedHandler;
import com.opencloud.common.exception.BaseAuthenticationEntryPoint;
import com.opencloud.common.security.BaseUserDetails;
import com.opencloud.common.security... |
/*
* 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... |
/*
* 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 wr... |
package org.thinking.two.pointers.hard;
/**
* @author thinking_fioa 2021/7/6
*/
public class Sample {
} |
package com.core.openapi;
import java.util.HashMap;
import java.util.Map;
/**
* OpenApi参数辅助类.
*
* @author bin.teng
*/
public class OpenApiParamHelper {
private OpenApiParamHelper() {
}
/**
* 调用前进行参数处理
*
* @param paramObj
* @return 处理后参数
*/
public static HashMap<String, ... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/videointelligence/v1p3beta1/video_intelligence.proto
package com.google.cloud.videointelligence.v1p3beta1;
/**
* <pre>
* Provides "hints" to the speech recognizer to favor specific words and phrases
* in the results.
* </pre>
*
... |
package br.senac.tads.pi3.exception;
import java.sql.SQLException;
/**
*
* @author Cruiser
*/
public class FiliaisException extends SQLException {
public FiliaisException(String msg, Throwable e) {
super(msg, e);
}
} |
package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... |
package com.google.android.gms.location.sample.locationupdates;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class GPXData extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... |
package com.ggar.gdrive.javafx;
import com.ggar.gdrive.framework.model.GoogleDriveService;
import com.ggar.gdrive.framework.model.Project;
import com.google.api.client.googleapis.javanet.GoogleNetHttpTransport;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.json.JsonFactory;
import com.g... |
/*
* Copyright 2011-2016 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 "li... |
package mage.cards.t;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.TapTargetEffect;
import mage.abi... |
/*
* FirstAid
* Copyright (C) 2017-2020
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... |
package org.dbflute.erflute.editor.view.action.outline;
import java.util.List;
import org.dbflute.erflute.editor.controller.command.ermodel.DeleteVirtualDiagramCommand;
import org.dbflute.erflute.editor.model.ERDiagram;
import org.dbflute.erflute.editor.model.diagram_contents.element.node.ermodel.ERVirtualDiagram;
im... |
package com.unicom.common.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* 自定义ID生成器配置
* @author LYD
* @date 2018/7/29
*/
@ConfigurationProperties(prefix = "opencloud.id")
public class OpenIdGenProperties {
/**
* 工作ID (0~31)
*/
private long workId =... |
package br.com.zupacademy.jpcsik.mercadolivre.produto.opiniao;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.Max;
im... |
/*
* 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 ... |
/*
* NiFi Rest Api
* The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ... |
package org.nakedobjects.metamodel.config;
public interface ConfigurationBuilderAware {
void setConfigurationBuilder(ConfigurationBuilder configurationLoader);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.