text
stringlengths
7
995k
/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
package team.unnamed.hephaestus.view; import org.bukkit.Color; import org.bukkit.Location; import org.bukkit.entity.Player; import team.unnamed.hephaestus.Model; import team.unnamed.hephaestus.ModelBone; import team.unnamed.hephaestus.animation.AnimationQueue; import team.unnamed.hephaestus.animation.ModelAnimation; i...
package org.basex.query.var; import static org.basex.query.QueryText.*; import org.basex.data.*; import org.basex.query.*; import org.basex.query.expr.*; import org.basex.query.iter.*; import org.basex.query.util.*; import org.basex.query.value.*; import org.basex.query.value.item.*; import org.basex.query.value.node...
package com.morgan.stockaccount.activity; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.ProgressDialog; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.widg...
/* * Copyright 2017 LINE Corporation * * LINE Corporation licenses this file to you 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 re...
import greenfoot.*; // (World, Actor, GreenfootImage, and Greenfoot) import java.util.Calendar; /** * The ScoreBoard is used to display results on the screen. It can display some * text and several numbers. * * @author M Kölling * @version 1.1 */ public class ScoreBoard extends Actor { public static final ...
package trywithkids.domain; import java.util.ArrayList; import java.util.List; import org.bson.types.ObjectId; import xyz.morphia.annotations.Entity; import xyz.morphia.annotations.Field; import xyz.morphia.annotations.Id; import xyz.morphia.annotations.Index; import xyz.morphia.annotations.Indexes; import xyz.morphia...
package info.openmods.calc.math; public class Complex { public static final Complex ZERO = new Complex(0, 0); public static final Complex ONE = new Complex(1, 0); public static final Complex I = new Complex(0, 1); public final double re; public final double im; private Complex(double real, double imaginary) ...
package vn.eazy.studio.core.utils; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * String Utils * * @author <a href="http://www.trinea.cn" target="_blank">Trinea</a> 2011-7-22 */ public class StringUtils { private...
package com.app.mysantinis.starprnt; import android.app.Dialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; import androidx.fragment.app.DialogFragment; import androidx.fragment.app.Frag...
/* * * * ****************************************************************************** * * * Copyright (c) 2015-2019 Skymind Inc. * * * Copyright (c) 2019 Konduit AI. * * * * * * This program and the accompanying materials are made available under the * * * terms of the Apache License, Version 2.0 wh...
/* * Copyright 2016 nekocode * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/* * Copyright 2013 Google Inc. * Copyright 2014 Andreas Schildbach * * 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 requ...
/* Copyright 2013-2015 www.snakerflow.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 ...
/** * Module intended to management of Java Bytecode for Stubs, Prototypes, ... */ package es.bsc.dataclay.logic.classmgr.bytecode.java;
package com.atguigu.gmall.sms.service; import com.baomidou.mybatisplus.extension.service.IService; import com.atguigu.gmall.sms.entity.HomeAdvEntity; import com.atguigu.core.bean.PageVo; import com.atguigu.core.bean.QueryCondition; /** * 首页轮播广告 * * @author ck * @email 1103700768@qq.com * @date 2020-07-28 21:09:...
import java.util.*; public class Operations { public static String Add(String left, String right) { return "Add(" + left + " " + right + ")"; //Add(a b) } public static String Sub(String left, String right) { return "Sub(" + left + " " + right + ")"; //Sub(a b) } publ...
/* file: TanhLayerDenseBatch.java */ /******************************************************************************* * Copyright 2014-2017 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, infor...
/* * 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.cy.core.activityPrize.entity; import com.cy.base.entity.DataEntity; import com.cy.system.Global; import org.apache.commons.lang3.StringUtils; /** * 奖品实体类 * * @author niu * @create 2017-06-06 上午 10:44 **/ public class ActivityPrize extends DataEntity { private static final long serialVersionUID =...
package com.j256.ormlite.field.types; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.sql.SQLException; import java.text.DateFormat; import java.text.SimpleDateFormat; import j...
package com.exasol.utils; public final class StringUtils { private StringUtils() { // prevent instanciation } // Original solution provided by user 'leorleor' on Stackoverflow // https://stackoverflow.com/questions/1143951/what-is-the-simplest-way-to-convert-a-java-string-from-all-caps-words-s...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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.or...
/* Copyright 2002-2021 CS GROUP * Licensed to CS GROUP (CS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * CS licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
public final class ReadWriteLock { private int readingReaders = 0; // (A)…实际正在读取中的线程个数 private int waitingWriters = 0; // (B)…正在等待写入的线程个数 private int writingWriters = 0; // (C)…实际正在写入中的线程个数 private boolean preferWriter = true; // 若写入优先,则为true public synchronized void readLock() throws InterruptedEx...
package primeiro; public class Pessoa { private String nome; private String sobrenome; public Pessoa(String nome, String sobrenome) { this.nome = nome; this.sobrenome = sobrenome; } public void setNome(String valNome) { if(!valNome.isEmpty()) nome = val...
/** * */ package com.example.model.user; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import lombok.ToString; /** * @author Govin * */ @ToString @Entity @Table(name = "USER_TBL") p...
/* * ****************************************************************************** * * Copyright (c) 2020 Konduit K.K. * * * * 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/LICE...
/* * 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 2002-2016 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 © 2020 ForgeRock AS (obst@forgerock.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 app...
package org.coreasm.compiler.plugins.forall; import org.coreasm.compiler.exception.CompilerException; import org.coreasm.engine.plugin.Plugin; import org.coreasm.engine.plugins.forallrule.ForallRulePlugin; import org.coreasm.compiler.CodeType; import org.coreasm.compiler.CompilerEngine; import org.coreasm.compiler.int...
import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created by ilya on Aug, 2020 */ public class Test { private final int MAX = 10; private int number = 0; private boolean isIncrement = true; private boolean isNeedCalculate = true; private String lastThreadName = "Thread-2"; ...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
/* * Copyright 2019 Christian Seifert * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
package binarytree; import datastruct.TreeNode; public class IsValidBST { public boolean isValidBST(TreeNode root) { return recur(root); } private TreeNode pre; private boolean recur(TreeNode node){ if(node == null) return true; if(recur(node.left)){ if(pre != nu...
/* * Copyright (c) 2020 WildFireChat. All rights reserved. */ package cn.wildfirechat.message.core; /** * Created by heavyrain lee on 2017/12/6. */ //Content Type. 1000以下为系统内置类型,自定义消息需要使用1000以上 public interface MessageContentType { //基本消息类型 int ContentType_Unknown = 0; int ContentType_Text = 1; ...
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.internal.clearcut; import java.io.IOException; // Referenced classes of package com.google.android.gms.internal.clearcut: ...
public class Test { void method(Integer... p) { int i = p[0].intValue(); } public void doSmth() { m(123); } }
package ru.betterend.mixin.common; import java.util.Collection; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; import or...
package exercises.o2_executors; import java.util.concurrent.ThreadLocalRandom; public class Problem2_1 { public static void main(String[] args) { String value = "Hello Metropolia"; System.out.println("Hashcode of >>Hello Metropolia<< : " + value.hashCode() ); long startTime = System.curr...
// Note: only +, - operations // Parameters: // Variables: 20 // Baselines: 200 // If-Branches: 4 public void reduce(Text prefix, Iterator<IntWritable> iter, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException { int a000 = 0; int a001 = 0; int a002 = 0; int a003 = 0; int...
/* * Copyright [2013-2021], Alibaba Group Holding 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package org.luaj.plugin.launch; import java.lang.reflect.InvocationTargetException; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.d...
package com.dtflys.test.interceptor; import com.dtflys.forest.exceptions.ForestRuntimeException; import com.dtflys.forest.http.ForestRequest; import com.dtflys.forest.http.ForestResponse; import com.dtflys.forest.interceptor.Interceptor; public class AddQueryInterceptor implements Interceptor { @Override pub...
package com.annimon.stream.longstreamtests; import com.annimon.stream.LongStream; import com.annimon.stream.function.LongUnaryOperator; import org.junit.Test; import static com.annimon.stream.test.hamcrest.LongStreamMatcher.assertElements; import static com.annimon.stream.test.hamcrest.LongStreamMatcher.assertIsEmpty;...
/* * Copyright 2015, Yahoo Inc. * Licensed under the Apache License, Version 2.0 * See LICENSE file in project root for terms. */ package com.yahoo.elide.core.dictionary; import com.yahoo.elide.core.type.Type; import lombok.Value; /** * Argument Type wraps an argument to the type of value it accepts. */ @Value...
/* * Copyright (c) 2008-2019 Haulmont. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
// automatically generated by the FlatBuffers compiler, do not modify package nd4j.graph; import java.nio.*; import java.lang.*; import java.util.*; import com.google.flatbuffers.*; @SuppressWarnings("unused") public final class FlatNode extends Table { public static FlatNode getRootAsFlatNode(ByteBuffer _bb) { re...
/******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this...
package jetbrains.mps.samples.Physics.editor; /*Generated by MPS */ import jetbrains.mps.nodeEditor.menus.transformation.TransformationMenuBase; import java.util.Set; import jetbrains.mps.internal.collections.runtime.SetSequence; import java.util.HashSet; import jetbrains.mps.lang.editor.menus.transformation.MenuLoca...
package javeriana.edu.co; import javeriana.edu.co.*; import java.net.InetAddress; import java.util.Vector; import javafx.util.Pair; import java.io.FileOutputStream; import java.io.ObjectOutputStream; import java.io.IOException; import java.io.Serializable; class Gestor implements Serializable { private Vector<Cli...
package io.basestar.mapper.internal; /*- * #%L * basestar-mapper * %% * Copyright (C) 2019 - 2020 Basestar.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://ww...
/* * Copyright 2015 - 2021 TU Dortmund * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
package org.coreasm.engine.test.plugins.list; import java.io.File; import java.net.URISyntaxException; import java.net.URL; import java.util.LinkedList; import org.junit.BeforeClass; import org.coreasm.engine.test.TestAllCasm; public class TestList6_cons extends TestAllCasm { @BeforeClass public static void onlyO...
/* * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.runtime.async; import java.util.concurrent.Callable; import java.util.concurren...
/* * 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.yueny.rapid.email.config; import com.yueny.rapid.email.util.MailSmtpType; import com.yueny.rapid.lang.mask.annotation.Mask; import com.yueny.rapid.lang.mask.pojo.instance.AbstractMaskBo; import lombok.Builder; import lombok.Getter; /** * email配置类 * * @author yueny09 <yueny09@163.com> * * @...
import java.awt.Button; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; class BestFitLine{ BestFitLine(){ prepareGUI(); } private int numberOfPoints = 0; private JTextField ...
/* * Copyright (c) 2015, 2016 Oracle and/or its affiliates. All rights reserved. This * code is released under a tri EPL/GPL/LGPL license. You can use it, * redistribute it and/or modify it under the terms of the: * * Eclipse Public License version 1.0 * GNU General Public License version 2 * GNU Lesser General ...
package org.jruby.ir.instructions; import org.jruby.RubyModule; import org.jruby.ir.IRVisitor; import org.jruby.ir.Operation; import org.jruby.ir.operands.Label; import org.jruby.ir.operands.Operand; import org.jruby.ir.transformations.inlining.InlinerInfo; import org.jruby.runtime.DynamicScope; import org.jruby.runti...
/* * 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 ...
/* * This code is subject to the HIEOS License, Version 1.0 * * Copyright(c) 2008-2009 Vangent, Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, ei...
package com.alipay.api.domain; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 签章位置描述信息 * * @author auto create * @since 1.0, 2017-12-20 15:24:35 */ public class SealPosition extends AlipayObject { private static final long serialVersionUID = 1129412792447247652L; /...
package com.taskie.api; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.MoreObjects; import javax.annotation.concurrent.Immutable; import java.util.Objects; /** * JSON API definition of an id. */ @Immutable public final class ...
/* * Copyright 2017 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
package betterwithmods.common.entity; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.monster.EntitySpider; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.init.Blocks; import net.minecraft.util.math.BlockPos; import n...
package at.unterhuber.test_runner.metric; import at.unterhuber.test_runner.git.Apriori; import at.unterhuber.test_runner.git.GitStats; import at.unterhuber.test_runner.util.Config; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import static at.unterhuber.test_run...
/* * 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 a...
/************************************************************************** * Copyright (c) 2003 by Acunia N.V. All rights reserved. * * * * This software is copyrighted by and is the sole property of Acunia N.V. * * and its licens...
/** * Copyright 2013-2015 Pierre Merienne * * 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...
package com.gdetotut.libs.jundo_droid_common; import com.gdetotut.libs.jundo_droid_common.aux.NonTrivialClass; import com.gdetotut.libs.jundo_droid_common.aux.SimpleUndoWatcher; import org.junit.Test; import static org.junit.Assert.assertEquals; public class TestUndoManager extends BaseTest{ /** * Illust...
package org.unicauca.dlnamobile.util; public interface Constants { static final String HEADER_SLDEVICEID = "SLDeviceID"; /** * URI para el establecimiento de la conexion con al PC */ static final String CONNECTION_PATH = "/reproductor"; /** * URI para el envio de mensajes al PC */ static final String Q...
/* * 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 (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
package hudson.plugins.performance.parsers; import hudson.plugins.performance.reports.PerformanceReport; import org.junit.Test; import java.io.File; import java.util.Map; import static org.junit.Assert.*; public class AbstractParserTest { @Test public void testDeserialized() throws Exception { File...
package com.android.capstone.gcm; import java.util.ArrayList; import com.android.capstone.data.Checkin; import com.android.capstone.data.Medications; import com.android.capstone.data.VDoctor; import com.android.capstone.utils.CommonUtils; import com.android.capstone.utils.RetrofitUtils; import com.android.capstone.ut...
/** * Copyright (c), Cadalys, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of ...
package org.fisco.bcos.web3j.crypto.gm.sm2.crypto.asymmetric; import java.math.BigInteger; import java.security.PublicKey; import org.bouncycastle.math.ec.ECPoint; import org.fisco.bcos.web3j.crypto.gm.sm2.util.KeyUtils; public class SM2PublicKey implements PublicKey { private static final long serialVersionUID ...
package com.xenon.glfw; import com.xenon.glfw.abstraction.App; import org.joml.Matrix4f; import org.lwjgl.system.MemoryStack; import java.io.IOException; import java.nio.FloatBuffer; import java.nio.file.Files; import java.nio.file.Paths; import java.util.Random; import static org.lwjgl.opengl.GL40.*; import static ...
package b.o; public class e0 { public boolean a; /* renamed from: b reason: collision with root package name */ public boolean f6082b; public boolean c; public boolean d; public boolean a() { return !this.a || this.f6082b || this.c || this.d; } }
package com.jive.sip.processor.rfc3261; import java.nio.charset.StandardCharsets; import java.util.Collection; import java.util.Map; import java.util.Map.Entry; import java.util.Optional; import com.google.common.collect.Maps; import com.google.common.primitives.UnsignedInteger; import com.jive.sip.base.api.RawHeader...
package com.example.commons.quartz.batch; import org.quartz.*; import org.springframework.batch.core.JobExecution; import org.springframework.batch.core.JobParameters; import org.springframework.batch.core.configuration.JobLocator; import org.springframework.batch.core.launch.JobLauncher; import org.springframework.s...
// // MIT License // // Copyright (c) 2020 Alexander Söderberg & Contributors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the right...
/* * 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...
public static int bfs(ArrayList<ArrayList<Integer>> al, int s, boolean x) { int count = 0; LinkedList<Integer> q = new LinkedList<>(); q.add(s); HashSet<Integer> visited = new HashSet<>(); visited.add(s); while (q.size() > 0) { int val = q.removeFirst(); // System.out.println(gap...
package com.blind_list_75.linkedlist; import com.leetcode.ListNode; public class IsCyclePresentInLinkedList { public boolean hasCycle(ListNode head) { ListNode slow = head; ListNode fast = head; while (fast != null && fast.next != null) { slow = slow.next; fast ...
package fr.icam.emit.services.callbacks.types; import java.io.IOException; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Timestamp; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.github.jer...
package com.lvmoney.frame.config.client.constant;/** * 描述: * 包名:com.lvmoney.frame.handler.client.constant * 版本信息: 版本1.0 * 日期:2019/11/25 * Copyright 四川******科技有限公司 */ /** * @describe: * @author: lvmoney/四川******科技有限公司 * @version:v1.0 2019/11/25 16:45 */ public class ConfigConstant { public static final S...
package org.folio.builder.service; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.notNullValue; import java.util.List; import org.folio.rest.jaxrs.model.LogRecord; import org.junit.jupi...
package com.johnson.pablo.popularmovies.models; import android.content.ContentValues; import android.os.Parcel; import android.os.Parcelable; import com.johnson.pablo.popularmovies.models.data.ReviewColumns; import com.johnson.pablo.popularmovies.models.data.VideoColumns; /** * Created by Pablo on 11/01/16. */ pub...
/* * Copyright 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 "license" fil...
package com.test.designpattern.appearancefactory; public class JIjinClass { // 股票 public void sell() { System.out.println("卖基金"); } public void buy() { System.out.println("买基金"); } }
/* * 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...
/** * Copyright 2007-2016, Kaazing Corporation. 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 require...
package com.hbird.common.refreshLayout; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RadialGradient; import android.graphics.Shader; impo...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
package com.applozic.mobicomkit.uiwidgets.conversation.fragment; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.app.NotificationManager; import android.app.ProgressDialog; import android.content.Context; import android.content.DialogInterface; import android.conte...
package org.artsicleprojects.textadventure.Commands; import org.artsicleprojects.textadventure.AreaCreatables.InventoryItem; import org.artsicleprojects.textadventure.Enums.ItemClasses; import org.artsicleprojects.textadventure.Items.ItemHandler; import org.artsicleprojects.textadventure.Main; import org.artsicleproje...
package oguzhan.spotify.webapi.android.models; import android.os.Parcel; import android.os.Parcelable; import java.util.ArrayList; import java.util.List; public class TracksToRemove implements Parcelable { public List<TrackToRemove> tracks; @Override public int describeContents() { return 0; ...