text
stringlengths
7
995k
package com.hazelcast.cache.eviction; import com.hazelcast.cache.impl.CacheContext; import com.hazelcast.cache.impl.ICacheService; import com.hazelcast.internal.eviction.Evictable; import com.hazelcast.internal.eviction.EvictionCandidate; import com.hazelcast.internal.eviction.EvictionChecker; import com.hazelcast.int...
package com.google.android.gms.internal.ads; import java.util.concurrent.Callable; import java.util.concurrent.Executor; /* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */ public final class zzdyv<V> { private final boolean zzhsj; private final zzdwp<zzdzc<? extends V>> zzhtg; private ...
package com.thomaskim.koorweather.util; import android.text.TextUtils; import android.util.Log; import com.google.gson.Gson; import com.thomaskim.koorweather.db.City; import com.thomaskim.koorweather.db.County; import com.thomaskim.koorweather.db.Province; import com.thomaskim.koorweather.gson.Weather; import org.js...
/* * Copyright 2017 Guillaume Bailleul. * * 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 may ...
package ca.uhn.fhir.rest.server; import static org.hamcrest.Matchers.containsString; import static org.hamcrest.Matchers.endsWith; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.startsWith; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertThat; import stat...
// Copyright 2017 Archos SA // // 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...
package me.retrodaredevil.solarthing.config.options; public interface AnalyticsOption extends ProgramOptions { boolean isAnalyticsOptionEnabled(); default boolean isAnalyticsEnabled() { return isAnalyticsOptionEnabled() && System.getenv("ANALYTICS_DISABLED") == null; } boolean DEFAULT_IS_ANALYTICS_ENABLED = tr...
/* * Copyright (C) 2016 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 cn.lu.hipster.model; import com.alibaba.fastjson.annotation.JSONField; import lombok.Data; import org.hibernate.validator.constraints.NotBlank; import javax.validation.constraints.NotNull; /** * 项目信息 * * @author lutiehua * @date 2017/09/26 */ @Data public class ProjectInfo { @NotBlank private S...
/** * 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...
/* * 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 org.thespheres.betula.tag; import org.thespheres.betula.Tag; /** * * @author boris.heithecker * @param <S> The actual subt...
/* * 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 under t...
@ParametersAreNonnullByDefault @MethodsReturnNonnullByDefault package slimeknights.mantle.util.sync; import mcp.MethodsReturnNonnullByDefault; import javax.annotation.ParametersAreNonnullByDefault;
/* * Created on Mar 8, 2005 * */ /* * Copyright 2002-2010 The Rector and Visitors of the * University of Virginia. 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 obtai...
/* * 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 contable; import java.awt.Image; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.sql.ResultSet; ...
/******************************************************************************* * Copyright (c) 2015 Low Latency Trading Limited : Author Richard Rose * 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 L...
/* Java program for Merge Sort */ class MergeSort { // Merges two subarrays of arr[]. // First subarray is arr[l..m] // Second subarray is arr[m+1..r] void merge(int arr[], int l, int m, int r) { // Find sizes of two subarrays to be merged int n1 = m - l + 1; int n2 = r - m; /* Create temp array...
/* * 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...
/* * 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...
/* * 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...
/* * 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 ...
/** * 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 myPackage; public interface DieIntf { int getDieImage(); void setImage(int i); void setValue(int v); int getValue(); }
package solutions.digamma.damas.content; import java.io.InputStream; /** * Document's binary content. * * @author Ahmad Shahwan */ public interface DocumentPayload { /** * Content size in bytes. * * @return */ long getSize(); /** * Binary content as stream. * * @re...
package io.swagger.codegen.languages; import com.google.common.base.Predicate; import com.google.common.collect.Iterators; import com.google.common.collect.Lists; import io.swagger.codegen.*; import io.swagger.models.Swagger; import io.swagger.models.Model; import io.swagger.models.Operation; import io.swagger.models...
package net.minecraftforge.event.terraingen; import java.util.Random; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; public class PopulateChunkEvent extends ChunkProviderEvent { public final World world; public final Random rand; public final int chunkX; public fin...
/* * Copyright 2016-2017 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...
package kr.msleague.bcsp.bukkit; import kr.msleague.bcsp.bukkit.event.connection.BCSPConnectedEvent; import kr.msleague.bcsp.internal.GlobalProperties; import kr.msleague.bcsp.internal.ServerType; import kr.msleague.bcsp.internal.logger.BCSPLogManager; import kr.msleague.bcsp.internal.logger.JavaUtilLogger; import kr....
package org.apache.commons.jcs.utils.struct; /* * 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...
/* * Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com> */ package akka.http.javadsl.server.examples.simple; import akka.NotUsed; import static akka.http.javadsl.server.PathMatchers.segment; import akka.actor.ActorSystem; import akka.http.javadsl.ConnectHttp; import akka.http.javadsl.ConnectionCont...
/* * JBoss, Home of Professional Open Source. * Copyright 2016 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
/** * Licensed to DigitalPebble Ltd under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * DigitalPebble licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this...
package edu.neu.madcourse.team_j_sport.EventList; import android.content.SharedPreferences; import java.util.HashMap; public class LocationUtils { public static final String getDistanceTo(String current_latitude, String current_longitude ,String latitude, String longitude){ //base case ...
/* * Copyright 2004 The Closure Compiler 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...
/* * 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.ydmmocoo.androidinterview.ui.adapter; import android.support.annotation.Nullable; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com....
package Day2; import java.util.Scanner; public class Min { public static void main(String[] args) { int number1, number2, number3; Scanner scanner = new Scanner(System.in); System.out.println("Enter number 1:"); number1 = scanner.nextInt(); System.out.println("Enter number 2:...
package com.jiyuan.test.plugins; import org.apache.ibatis.executor.Executor; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.plugin.Interceptor; import org.apache.ibatis.plugin.Intercepts; import org.apache.ibatis.plugin.Invocation; import org.apache.ibatis.plugin.Signature; import org.apach...
package com.qa.controller; import java.util.ArrayList; import java.util.List; import org.apache.log4j.Logger; import com.qa.domain.Item; import com.qa.domain.Order; import com.qa.services.CrudServices; import com.qa.services.ItemServices; import com.qa.dao.MysqlItemDao; import com.qa.utils.Utilities; /** * This cl...
package cn.libery.analysis.sample; /** * @author shizhiqiang on 2019/1/15. * @description */ public class Test { @org.junit.Test public void test() { String url = "/Users/shizhiqiang/Github/Analysis/app/build/intermediates/javac/devDebug/compileDevDebugJavaWithJavac/classes/cn/libery/analysis/sample...
/* * Copyright 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.camurphy.wallpapers.mario.actor; import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; // TODO - This should be a state machine. States will be assigned by at 'Director' or 'Script' class and they will // consume elapsed milliseconds as necessa...
/* * Copyright 2002-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 ap...
package rest.koios.client.backend.api.asset.model; import com.fasterxml.jackson.databind.PropertyNamingStrategies; import com.fasterxml.jackson.databind.annotation.JsonNaming; import lombok.*; import java.util.ArrayList; /** * Asset Names */ @Getter @Setter @ToString @NoArgsConstructor @JsonNaming(PropertyNamingSt...
/* * 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.hubspot.jinjava.lib.filter; import static org.assertj.core.api.Assertions.assertThat; import com.hubspot.jinjava.Jinjava; import java.util.HashMap; import java.util.Map; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.junit.Before; import org.junit.Test; public class XmlAttrFilterTest...
package ch.heig.dil; import ch.heig.dil.commands.*; import java.net.URL; import java.util.Properties; import java.util.concurrent.Callable; import picocli.CommandLine; /** * Classe principale du projet Boomshot * * @author Jonathan Friedli */ @CommandLine.Command( mixinStandardHelpOptions = true, ...
/* * Copyright (C) 2012-2015 DataStax 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 app...
package com.iszhouhua.blog.common.util; import com.iszhouhua.blog.common.constant.CodeEnum; import lombok.Data; import lombok.experimental.Accessors; /** * 返回结果 * * @author ZhouHua */ @Data @Accessors(chain = true) public class Result { /** * 状态码 */ private int code; /** * 描述 */ ...
package leetcode; public class ListNode { public int val; public ListNode next; public ListNode() {} public ListNode(int val) { this.val = val; } public ListNode(int val, ListNode next) { this.val = val; this.next = next; } public ListNode(int[] vals) { ListNode head = null; for (int i=vals.length...
package org.hl7.fhir.r4.model.codesystems; /* Copyright (c) 2011+, HL7, 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 copyr...
/* * The MIT License (MIT) * * Copyright (c) 2018-2022 Patrick Reinhart * * 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 t...
package com.atlassian.jira.plugins.dvcs.spi.github.parsers; import com.atlassian.jira.plugins.dvcs.model.Changeset; import com.atlassian.jira.plugins.dvcs.model.ChangesetFile; import com.atlassian.jira.plugins.dvcs.model.ChangesetFileDetail; import com.atlassian.jira.plugins.dvcs.util.CustomStringUtils; import com.goo...
package com.example.simpleinsta; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; impo...
/* * Copyright 2020 ConsenSys AG. * * 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...
/** @file WelcomePanel.java */ package Presentation.MainScreen; /** @class WelcomePanel */ import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SpringLayout; @SuppressWarnings("serial") public ...
/* * Copyright 2017-present Open Networking 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/LICENSE-2.0 * * Unless required by appli...
package org.stellar.sdk.responses.effects; /** * Represents offer_created effect response. * @see <a href="https://developers.stellar.org/api/resources/effects/" target="_blank">Effect documentation</a> * @see org.stellar.sdk.requests.EffectsRequestBuilder * @see org.stellar.sdk.Server#effects() */ public class O...
package org.basex.query.func.validate; import org.basex.query.*; import org.basex.query.value.*; /** * Function implementation. * * @author BaseX Team 2005-21, BSD License * @author Christian Gruen */ public final class ValidateXsdReport extends ValidateXsd { @Override public Value value(final QueryContext q...
/* Copyright 2018 The TensorFlow 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 applicable law or a...
// 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; import android.os.Handler; import android.util.Log; import com.google.android.gms.common.ConnectionResult; import...
package com.ibq2d.engine.physics; import com.ibq2d.engine.geometry.Rect; import com.ibq2d.engine.geometry.Vector2; public class BoxCollider extends Collider { public BoxCollider(float width, float height, Vector2 position, boolean isTrigger, ContactListener contactListener) { super(new Rect(width, height...
package com.ldbc.driver.client; import com.ldbc.driver.ClientException; import com.ldbc.driver.Db; import com.ldbc.driver.DbException; import com.ldbc.driver.Operation; import com.ldbc.driver.Workload; import com.ldbc.driver.WorkloadException; import com.ldbc.driver.WorkloadStreams; import com.ldbc.driver.control.Cont...
package by.jackraidenph.dragonsurvival.config; import by.jackraidenph.dragonsurvival.util.DragonLevel; import net.minecraftforge.common.ForgeConfigSpec; import java.util.Arrays; import java.util.Collections; import java.util.List; public class ServerConfig { // General public final ForgeConfigSpec.DoubleValue max...
package com.gos.steam_works.robot; import edu.wpi.first.wpilibj.vision.VisionRunner; import org.opencv.core.MatOfPoint; import org.opencv.core.Rect; import org.opencv.imgproc.Imgproc; import java.util.List; public class GripPipelineListener implements VisionRunner.Listener<GripPipeline> { private static final Ob...
package cmuoh.ticketService.dataAccess; import cmuoh.ticketService.util.HoldTimeStampProvider; import org.junit.Before; import org.junit.Test; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import static org.junit.Assert.*; /** * Unit test for Re...
// Copyright © 2016-2019 Esko Luontola // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 package fi.luontola.cqrshotel.framework.eventstore; import fi.luontola.cqrshotel.framework.Envelope; import fi.luontola.cqrshotel.framework.Event; impo...
package com.wilutions.joa.gson; import com.google.gson.GsonBuilder; import com.wilutions.mslib.office.MsoCTPDockPosition; public class GsonBuilderJoa { public static GsonBuilder create() { GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(MsoCTPDockPosition.class, new SerializerComEnum...
package ru.aserdyuchenko.tracker.start; import java.sql.SQLException; public abstract class BaseAction implements UserAction { String nameAction; public BaseAction(String nameAction) { this.nameAction = nameAction; } public abstract int key(); public abstract void execute(Input input, Tracker tracker) throws...
package org.nd4j.linalg.lossfunctions; import org.nd4j.linalg.api.activation.ActivationFunction; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.ops.transforms.Transforms; import static org.nd4j.linalg.ops.transforms.Transforms.*; /** * Central class for l...
/* Copyright 2015, Strategic Gains, 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 law or agreed to in writ...
package com.lambdaschool.solution; public class RugbyCourtInjector implements CourtInjector { @Override public Processor getProcess() { return new MyApplication( new RugbyCourtCreator()); } }
// 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...
package niu.study.test; public class StaticTest { public static void main(String[] args) { staticFunction(); } static StaticTest st = new StaticTest(); static { System.out.println("1"); } { System.out.println("2"); } StaticTest(){ System.out.println("3")...
package com.behsazan.view.tabs; import com.behsazan.model.DataUtils; import com.behsazan.model.adapters.TableModelFlows; import com.behsazan.model.entity.Flow; import com.behsazan.view.UIUtils; import com.behsazan.view.abstracts.AbstractTab; import com.behsazan.view.dialogs.DialogFlowEdit; import com.behsazan.view.dia...
package com.mall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import com.mall.common.utils.PageUtils; import com.mall.coupon.entity.WmsWareOrderTaskDetailEntity; import java.util.Map; /** * 库存工作单 * * @author yolanda * @email yolanda@gmail.com * @date 2021-05-09 20:55:53 */ public...
package fr.miage.sid.bibliothequeCharlesYacia.bibliothequeCharlesYacia; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App. */ public class AppTest extends TestCase { /** * Create the test case * * @param testName na...
package com.site.blog.service.impl; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.site.blog.constants.SysConfigConstants; import com.site.blog.dao.BlogCate...
/* * Copyright (c) 2019-2021 GeyserMC. http://geysermc.org * * 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.github.randomcodeorg.ppplugin.data; import java.util.List; public interface BuildDataSource { BuildLog getLog(); String getProjectBuildDir(); String getCompiledClassesDir(); ProjectData getProject(); List<String> getDeclaredProcessors(); }
package petclinic.modules.pets.integtests.tests; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.springframework.transaction.annotation.Transactional; import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.a...
package com.example.android.quakereport; /** * Created by himadri on 22/7/16. */ public class Earthquake { /** Magnitude of the earthquake */ private double mMagnitude; /** Location of the earthquake */ private String mLocation; /** Time of the earthquake */ private long mTimeInMillisecond...
// 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.openapi.module.impl.scopes; import com.intellij.openapi.module.Module; import com.intellij.openapi.project.Project; import com.intellij.openapi.projectRoots....
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
/* * Java - Guia do Programador - 3a Ed. * Autor: Peter Jandl Junior * (c) 2015, Novatec Editora Ltda. * * Exemplo 10.8 */ import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.Socket; public class ClienteMulti { public static void main(String a[]) { ...
package com.feihua.framework.base.test; import com.feihua.framework.base.modules.area.api.ApiBaseAreaPoService; import com.feihua.framework.base.modules.area.po.BaseAreaPo; import org.apache.commons.lang3.StringUtils; import org.htmlparser.Node; import org.htmlparser.Parser; import org.htmlparser.filters.CssSelectorN...
// ASM: a very small and fast Java bytecode manipulation framework // Copyright (c) 2000-2011 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. Redistributions of ...
package com.refinedmods.refinedstorage.apiimpl.network.node; import com.refinedmods.refinedstorage.RS; import com.refinedmods.refinedstorage.RSBlocks; import com.refinedmods.refinedstorage.api.network.INetwork; import com.refinedmods.refinedstorage.api.util.IComparer; import com.refinedmods.refinedstorage.block.Detect...
/* * Copyright 2012 The Netty Project * * The Netty Project 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 ...
package mage.cards.a; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.common.SkipUntapOptionalAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.commo...
package com.example.news; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class NewsAdapter extends ArrayAdapter< News > { private int r...
package project3; public class ElectricVehicle { private String make; private String model; private String color; private double kilometersPerKilowattHour; private double maxKilowattHoursInBattery; private double currentKilowattHoursInBattery; public String getMake(){ ...
package com.github.redhatqe.polarizer.reporter; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.File; /** * Represents the JSON request for an XUnit Import */ public class XUnitImporterReq { @JsonProperty private String url; @JsonProperty private String user; @JsonProperty ...
/* * Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) 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 * * Unles...
licensed apache software foundation asf contributor license agreements notice file distributed work additional copyright ownership asf licenses file apache license version license file compliance license copy license http apache org licenses license required applicable law agreed writing software distributed license di...
package com.binarysnow.natty.frame.server; import java.nio.charset.StandardCharsets; public interface Command { int INF = 4804166; int _ER = 2966866; int O_ = 20256; int R_ = 21024; int G = 71; int MSG = 5067591; int OK = 2838347; int PIN = 5261646; int PON = 5263182; byte[] ...
package cn.axg.study.mq.rabbitmq.hello_world; import cn.axg.study.mq.rabbitmq.common.RabbitMQUtils; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; import com.rabbitmq.client.MessageProperties; import org.junit.jupiter.api.Test; import java.io.IOException; /** * 生成者发送消息(Hello World 模型) *...
/******************************************************************************* * Copyright 2011, 2012 Chris Banes. * * 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.apac...
import java.util.Arrays; /** * FileName: NonoverlappingIntervals * Description: 无重叠区间 * Author: @VirtualChen * Date: 2019/3/5 0005 下午 3:14 */ public class NonoverlappingIntervals { public int eraseOverlapIntervals(Interval[] intervals) { if(intervals.length<=1){ return 0; } ...