text
stringlengths
7
995k
/* * 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 app...
package ru.job4j.calculate; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test. * * @author Mikhail Gurfinkel (mailto:geraltsx@gmail.com) * @version $Id$ * @since 0.1 */ public class CalculateTest { /** * Test echo. */ @Test public void whenTakeNameThen...
package ca.firstvoices.editors.synchronizers; import static ca.firstvoices.editors.synchronizers.SynchronizerUtilities.handleListMapProperty; public class FVPortalSynchronizer extends AbstractSynchronizer { /** * @param typeName * @param propertyPath */ public void synchronizeFV(String typeNam...
package io.renren.modules.epi.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import io.renren....
package application.enums; public enum SlideTicket { SLIDE_A, SLIDE_B, SLIDE_C, }
package com.spoon.backgroundFileUpload; import android.content.Context; import android.util.Log; import com.sromku.simple.storage.SimpleStorage; import com.sromku.simple.storage.Storage; import com.sromku.simple.storage.helpers.OrderType; import net.gotev.uploadservice.MultipartUploadRequest; import net.gotev.upload...
/* * 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...
/*L * Copyright Ekagra Software Technologies Ltd. * Copyright SAIC, SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cacore-sdk/LICENSE.txt for details. */ package test.gov.nih.nci.cacoresdk.domain.other.differentpackage.associations; import g...
import java.util.HashSet; import java.util.Set; import java.util.concurrent.ExecutorService; import java.util.concurrent.TimeUnit; public class Util { public static void printArray(int[] a) { for(int i=0; i<a.length; ++i) { System.out.print(a[i]); System.out.print(' '); } ...
/** * ************************************************************************ * * The contents of this file are subject to the MRPL 1.2 * * (the "License"), being the Mozilla Public License * * Version 1.1 with a permitted attribution clause; you may not use this * * file except in compliance with the L...
// Modified by SignalFx package datadog.trace.instrumentation.http_url_connection; import static datadog.trace.agent.tooling.ByteBuddyElementMatchers.safeHasSuperType; import static datadog.trace.instrumentation.api.AgentTracer.activateSpan; import static datadog.trace.instrumentation.api.AgentTracer.propagate; import...
package com.common.gspc; import java.util.Date; import androidx.annotation.NonNull; public class PriceDataPoint { public final float Price; public final Date Date; public PriceDataPoint(float price, @NonNull Date date){ Price = price; Date = date; } }
/* * 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...
package com.github.starter.app.security; import javax.crypto.*; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.SecretKeySpec; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.nio.charset.StandardCharsets; import j...
package com.insoul.rental.vo.request; public class RenterCreateRequest { private String name; private String mobile; private String idCard; private String comment; public String getName() { return name; } public void setName(String name) { this.name = name; } ...
package com.moriarty.morimvpandroid.configuration; import com.moriarty.morimvpandroid.util.IDEBuildUtils; import javax.inject.Named; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; @Module public class ConfigurationModule { @Singleton @Provides static AppConfiguration prov...
/* * Copyright (C) 2013 salesforce.com, inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
package com.eddmash.form.faker.provider; /* * This file is part of the androidcomponents package. * * (c) Eddilbert Macharia (http://eddmash.com)<edd.cowan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import android.view.V...
package com.ls.ui.view; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.RectF; import android.text.style.LineHeightSpan; import android.text.style.ReplacementSpan; import com.ls.utils.L; public class RoundedBackgroundSpan extends ReplacementSpan { private static int CORNE...
// Targeted by JavaCPP version 1.5.4-SNAPSHOT: 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.*; /** @see llvm::PassR...
/* * 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 (c) 2004, 2010 IBM Corporation. * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.a11y.utils.accprobe.core.loggin...
package com.leoren.liehu.Function.Food.MyBody.ThreeMeal; /** * @Author Leoren * @Date 2018/6/23 20:13 */ public class FoodKind { private String foodKindName; public String getFoodKindName() { return foodKindName; } public void setFoodKindName(String foodKindName) { this.foodKindNa...
package com.mossle.user.web; import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.OutputStream; import javax.annotation.Resource; import javax.imageio.ImageIO; import com.mossle.api.store.StoreConnector; import com.mossle.api.store.StoreDTO;...
package org.hotpoor.pyq.sqlite2; 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 voi...
package fp4g.data.expresion; import java.util.Map.Entry; import java.util.Set; import java.util.TreeSet; import org.antlr.v4.misc.Utils; import com.esotericsoftware.reflectasm.ConstructorAccess; import com.esotericsoftware.reflectasm.MethodAccess; import fp4g.core.IValue; import fp4g.data.expresion.literals.BoolLit...
package ru.asemenov; import org.junit.Assert; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.hamcrest.core.Is.is; public class NodeTest { @Test public void reverse() { Node node = null; node = new Node(node, 3); no...
package cn.jho.jvm.chapter02; import java.io.FileNotFoundException; /** * @author JHO xu-jihong@qq.com * @date 2022-03-01 7:37 */ public class CustomClassLoader extends ClassLoader { @Override protected Class<?> findClass(String name) throws ClassNotFoundException { try { byte[] result...
package parser.classfile.constantpool; import parser.ClassFileReader; import parser.classfile.adt.u1; import parser.classfile.adt.u2; import parser.classfile.constant.ConstantPoolTags; import java.io.IOException; public class ConstantClassInfo extends AbstractConstantPool { public static final u1 tag = new u1(C...
package com.cyc.baseclient.inference.params; //// Internal Imports import com.cyc.base.CycAccess; import com.cyc.base.CycConnectionException; import com.cyc.base.CycApiException; import com.cyc.baseclient.CycObjectFactory; import static com.cyc.baseclient.CycObjectFactory.makeCycSymbol; import com.cyc.baseclient.api.D...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.compute; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.jackson.an...
package pl.java.scalatech.web; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.validation.BindingResult; import org.springframework.validation.Errors; import ...
/* * 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 ...
package p04_froggy; import java.util.Iterator; public class Lake implements Iterable<Integer> { private int[] elements; @SafeVarargs public Lake(int... elements) { this.elements = elements; } @Override public Iterator<Integer> iterator() { return new Frog(); } priva...
package org.wickedsource.budgeteer.service.project; import de.adesso.budgeteer.persistence.budget.BudgetRepository; import de.adesso.budgeteer.persistence.contract.ContractRepository; import de.adesso.budgeteer.persistence.imports.ImportRepository; import de.adesso.budgeteer.persistence.invoice.InvoiceRepository; impo...
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.compiler.options; import com.intellij.ide.util.ElementsChooser; import com.intellij.openapi.compiler.CompilerManager; import com.intellij.openapi.compiler.Ja...
/* * Copyright 2020 Confluent Inc. * * Licensed under the Confluent Community License (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.confluent.io/confluent-community-license * * Unless required by applicable law or a...
package hosptal; import java.sql.*; import javax.swing.JOptionPane; import javax.swing.table.*; public class Show_Patients extends javax.swing.JInternalFrame { /** Creates new form Show_Patients */ public Show_Patients() { initComponents(); query(); } private void query() { Def...
/* * 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.webcheckers.ui.CheckersReplay; import static com.webcheckers.util.Checkers.clearMoves; import static com.webcheckers.util.Checkers.getMoves; import static org.mockito.ArgumentMatchers.any; import static org.mockito.Mockito.*; import com.google.gson.Gson; import com.webcheckers.appl.Player; import com.webch...
/**************************************************************** * 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 org.apache.lucene.search.spans; /** * Copyright 2004 The Apache Software Foundation * * 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) 2017 Dell Inc., or its subsidiaries. All Rights Reserved. * <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> * http://www.apache.org/licenses/LICENSE-2.0 */...
/* 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 android.support.design; public final class R { public static final class anim { public static final int abc_fade_in...
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild package io.kaitai.struct.testformats; import io.kaitai.struct.ByteBufferKaitaiStream; import io.kaitai.struct.KaitaiStruct; import io.kaitai.struct.KaitaiStream; import java.io.IOException; import java.util.ArrayList; ...
package com.jd.blockchain.utils.http; import java.io.IOException; import java.io.OutputStream; /** * 标注了 {@link RequestBody} 的参数的转换器; * * <br> * 定义了如何将某个参数从特定类型转换为用于发送 http 请求体的输入流; * * <br> * 如果将多个参数都标注了 {@link RequestBody} ,则会按顺序对每一个参数调用其对应的转换器; * * <br> * 注:任何时候,实现者都应避免在完成一个参数写入之后主动关闭输出流; * * @aut...
package pom.equipo2.test; import org.junit.Test; import pom.equipo2.base.TestBase; import pom.equipo2.pages.VFBusquedaTrasladoPage; import pom.equipo2.pages.VFHomePage; import pom.equipo2.pages.VFTrasladoPage; public class atc09_busquedaSinResultado extends TestBase { protected VFHomePage paginaHome = 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 com.segmentify.segmentifyandroid; import android.view.View; public interface ItemOnClick { void onItemClicked(View v, int position); }
/* * Copyright (c) 2008-2020, Hazelcast, 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 * * Unless required ...
package org.springframework.samples.petclinic.hibernate; import java.util.List; import org.springframework.dao.DataAccessException; import org.springframework.orm.hibernate.support.HibernateDaoSupport; import org.springframework.samples.petclinic.Clinic; import org.springframework.samples.petclinic.Owner; import org....
/** * Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith...
// 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.exoplayer2.analytics; // Referenced classes of package com.google.android.exoplayer2.analytics: // AnalyticsCollector priva...
/* * 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...
package optifine; public class RangeListInt { private RangeInt[] ranges = new RangeInt[0]; public void addRange(RangeInt p_addRange_1_) { this.ranges = (RangeInt[])((RangeInt[])Config.addObjectToArray(this.ranges, p_addRange_1_)); } public boolean isInRange(int p_isInRange_1_) { ...
package com.wz.member.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.wz.common.util...
package com.example.hamster.mapper; import com.example.hamster.entity.AutoFeed; import com.example.hamster.entity.AutoFeedExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface AutoFeedMapper { long countByExample(AutoFeedExample example); int deleteByExample(AutoFeedExa...
// PARSER_WEEDER public class J1_BigInt { public J1_BigInt(){} public static int test() { return 2147483647 - 2147483524; } }
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.lang.psi.stubs.elements; import com.intellij.psi.stubs.EmptyStub; import com.intellij.psi.stubs.EmptyStubElementType; import org.jetbrains.an...
/* * MIT License * * Copyright (c) 2018 Kapralov Sergey * * 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.atlassian.maven.plugins.jgitflow.extension.command; import java.util.List; import com.atlassian.jgitflow.core.BranchType; import com.atlassian.jgitflow.core.GitFlowConfiguration; import com.atlassian.jgitflow.core.command.JGitFlowCommand; import com.atlassian.jgitflow.core.exception.JGitFlowExtensionExcep...
package com.mercadopago.core; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.mercadopago.MercadoPago; import com.mercadopago.core.annotations.rest.PayloadType; import com.mercadopago.exceptions.MPException; import com.mercadopago.net.HttpMethod; import com.mercadopago.net.MPRestClien...
package org.apache.spark.sql.kafka010; public class KafkaRecordToRowConverter$ { /** * Static reference to the singleton instance of this Scala object. */ public static final KafkaRecordToRowConverter$ MODULE$ = null; public KafkaRecordToRowConverter$ () { throw new RuntimeException(); } public org.a...
/* * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILI...
package org.drools.core.util; public interface Predicate<T> { boolean apply(T item); public static class PassAll implements Predicate<Object> { public static final PassAll INSTANCE = new PassAll(); public boolean apply(Object item) { return true; } } }
/** * Person. * PhoneDictionary. * PriorityQueue. * Task. * ConvertList. * User. * UserConvert. Конвертирует List User в Map. * @author Vladimir Yamnikov (Androedge@gmail.com). * @version $2$. * @since 04.04.2018. */ package ru.job4j.search;
/***************************************************************************** * This file is part of the Prolog Development Tool (PDT) * * Author: Andreas Becker, Ilshat Aliev * WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start * Mail: pdt@lists.iai.uni-bonn.de * Copyright (C): 2013, CS Dept. III, Universit...
public class MyMath { }
/** * Copyright 2005-2019 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...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. /** Package containing the implementations for PhoneNumberAdminClient. Azure Communication Phone Number Service. */ package com.azure.communication.administration....
package com.yy.util; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.TransportAddress; import org.elasticsearch.transport.client.PreBuiltTransportClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
package com.oc.hawk.kubernetes.runtime.application.runtime.spec.deployment; public class NormalRuntimeComponent implements ConfigurableRuntimeComponent { @Override public void config(RuntimeComponent runtimeComponent) { } }
package headfirst.strategy.strategy.quackimpl; import headfirst.strategy.strategy.base.QuackBehavior; /** * Created by Gavin on 2017/2/10. */ public class Quack implements QuackBehavior { @Override public void quack() { System.out.println("Quack"); } }
package com.virtualpairprogrammers.streaming; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; public class LoggingServer { public static void main(String[] args) throws IOException, InterruptedException { ServerSocket echoSocket = new ServerSocket...
package com.adsdk.sdk.customevents; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import android.content.Context; import android.view.View; public class FacebookNative extends CustomEventNative { private Object fac...
package org.kyojo.schemaorg.m3n3.doma.core.clazz; import org.seasar.doma.ExternalDomain; import org.seasar.doma.jdbc.domain.DomainConverter; import org.kyojo.schemaorg.m3n3.core.impl.SUBSCRIBE_ACTION; import org.kyojo.schemaorg.m3n3.core.Clazz.SubscribeAction; @ExternalDomain public class SubscribeActionConverter im...
package com.styx.data.core.terminal; import com.styx.data.core.ProtocolConstants; import java.util.*; /** * @author TontoZhou * @since 2021/4/20 */ public class VariableContainer { private long version; private List<Variable> variableList; private List<Variable> alarmVariableList; private Map<Int...
/* * Copyright 2013 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...
package org.infinispan.api; import static org.infinispan.test.TestingUtil.extractComponent; import static org.infinispan.test.TestingUtil.wrapInboundInvocationHandler; import static org.mockito.ArgumentMatchers.anyInt; import static org.mockito.Matchers.any; import static org.mockito.Matchers.anyBoolean; import static...
/* * @Description: a part of Task 5 * @Version: 1.0.3.20210306 * @Author: Arvin Zhao * @Date: 2021-02-03 08:21:08 * @Last Editors: Arvin Zhao * @LastEditTime: 2021-03-06 22:12:24 */ package labs.l6.t5; class Main { public static void main(String[] args) { FireMonster fireMonster = new FireMonst...
package com.ora.jsp.tags.xmp; import java.io.*; import java.util.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; import com.ora.jsp.util.StringFormat; /** * This class is a custom action for conditionally inserting HTML links in a * navigation menu. * <p> * If the ...
/* * 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 ...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package erp.mfin.data; /** * * @author Sergio Flores */ public class SDataYearPeriodRow extends erp.lib.table.STableRow { public SDataYearPeriodRow(java.lang.Object data) { moData = data; } @Ov...
package org.zxcv.functions.main; public interface Runnable extends java.lang.Runnable { static void doNothing() { } }
//https://leetcode.com/problems/maximum-depth-of-binary-tree/ //problem no 104 //My solution /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val; } * TreeNode(int val, Tree...
/* * aca-py client * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v0.7.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do ...
package com.brightdairy.personal.brightdairy.adapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.brightdairy.personal.api.GlobalHttpConfig; import com.bright...
package com.baeldung.restassured; import com.github.tomakehurst.wiremock.WireMockServer; import io.restassured.RestAssured; import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; import static com.github.tomakehurst.wi...
package dialight.teams.captain.utils; import dialight.misc.player.UuidPlayer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.*; public class CaptainMap implements Iterable<CaptainEntry> { private final List<CaptainEntry> list = new ArrayList<>(); privat...
package classes; public class Map { //array of names of the regions private static String[] regionNames = {"Alpha", "Beta", "Charlie", "Delta", "Echo", "Foxtrot", "Golf", "Hotel", "India", "Juliett"}; private Region[] regions = new Region[regionNames.length]; private int winningRegion = (int)...
package science.atlarge.opencraft.opencraft.i18n; import java.text.Format; import java.util.ResourceBundle; import java.util.logging.Level; import java.util.logging.Logger; import science.atlarge.opencraft.opencraft.GlowServer; class LoggableLocalizedStringImpl extends LocalizedStringImpl implements LoggableLocal...
/* * Copyright 2002-2006 Peter Lin & RuleML. * * 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://ruleml-dev.sourceforge.net/ * * Unless required by applicable law or agreed ...
package com.company; import com.company.Operations.IDateConverter; import com.company.Utilities.Temporals; import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.temporal.TemporalAccessor; import java.time.temporal.TemporalUnit; public class DateConverter implements...
/** * Copyright 2018 The 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
/* * 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 app...
package edu.ucsb.cs56.pconrad.m18_labxx; public class Assignment { public int myNumber; public Assignment() { myNumber = -42; } public Assignment(int n) { myNumber = n; } public String hello() { return "WRONG STRING world!"; } public int add(int x) { return myNumber - x; } }
package com.hfad.nablusmunicipality1; import android.Manifest; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import an...