text
stringlengths
7
995k
package org.unichain.common.storage; import com.google.common.primitives.Longs; import com.google.protobuf.ByteString; import lombok.extern.slf4j.Slf4j; import org.spongycastle.util.Strings; import org.spongycastle.util.encoders.Hex; import org.unichain.common.crypto.Hash; import org.unichain.common.runtime.config.VMC...
package com.light.hexo.business.admin.service.impl; import com.light.hexo.business.admin.constant.HexoExceptionEnum; import com.light.hexo.business.admin.mapper.CategoryMapper; import com.light.hexo.business.admin.model.Category; import com.light.hexo.business.admin.service.CategoryService; import com.light.hexo.busin...
/* * Copyright 2017 Google LLC. 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 applica...
package com.dockerx.reactive.rxjava; import com.google.common.collect.ImmutableList; import io.reactivex.Observable; import io.reactivex.ObservableOperator; import io.reactivex.ObservableTransformer; import io.reactivex.functions.Action; import io.reactivex.observers.DisposableObserver; import io.reactivex.subjects.Pu...
/* * Copyright 2022 KCodeYT * * 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 (c) 2008 Andy Jefferson and others. 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://...
/** * Copyright © 2016 Guillaume Lederrey (guillaume.lederrey@gmail.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...
/* * Copyright 2015 Open Networking Laboratory * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
package com.m4gik.config; import org.springframework.web.filter.CharacterEncodingFilter; import org.springframework.web.filter.DelegatingFilterProxy; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; import javax.servlet.*; public class WebAppInitializer extends Abs...
package com.zizhizhan.legacies.scan.resource.uri; import java.io.FilterInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.net.URL; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import com.zizhizhan.legacies.scan.resource.JarFileScanner; imp...
package com.dp.bigdata.taurus.restlet.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.URI; import java.util.Properties; import org.apache.hadoop.conf.Configuration...
/* * eGov suite of products aim to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2016 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * is available at http://...
package com.stan.gamepedia.model; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import java.util.HashMap; import java.util.Map; @Table(name = "zelda_shield") public class ZeldaShield extends ZeldaItem { @Id @Gen...
package advanced; import com.sandwich.koan.Koan; import static com.sandwich.util.Assert.fail; public class AboutMocks { static interface Collaborator { public void doBusinessStuff(); } static class ExplosiveCollaborator implements Collaborator { public void doBusinessStuff() { ...
package org.siouan.frontendgradleplugin.infrastructure.gradle; import static org.siouan.frontendgradleplugin.test.util.GradleBuildAssertions.assertTaskIgnored; import static org.siouan.frontendgradleplugin.test.util.GradleBuildAssertions.assertTaskSkipped; import static org.siouan.frontendgradleplugin.test.util.Gradle...
// Test case for issue #1248: // https://github.com/typetools/checker-framework/issues/1248 import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; import java.util.function.Predicate; public class RefinedLocalInLambda { public static void main(Stri...
/* * 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 br.com.accenture.wallet.onboarding.controller; import br.com.accenture.wallet.onboarding.domain.CustomerModel; import br.com.accenture.wallet.onboarding.service.OnboardingService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframewo...
package com.codepath.apps.restclienttemplate.network; import android.content.Context; import com.codepath.apps.restclienttemplate.BuildConfig; import com.codepath.apps.restclienttemplate.R; import com.codepath.asynchttpclient.RequestParams; import com.codepath.asynchttpclient.callback.JsonHttpResponseHandler; import ...
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ /** * Provides the base implementation of the content-type API. <a name="documentation"></a> * <h2>Content-Type Base</h2> This package holds the base implementation of the {@link net.sf.mmm...
package gerrymandering.repository; import gerrymandering.model.MonteCarloSeats; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import java.util.List; /** * Created by yisuo on 12/6/17. */ @Repository...
public static MMissing load(URL url) throws IOException { MMissing ret = new MMissing(); InputStream is = url.openStream(); try { Reader r = new InputStreamReader(is); BufferedReader br = new BufferedReader(r); String line; while ((line = br.readLi...
package by.bsu.command.impl; import by.bsu.command.Command; import by.bsu.controller.JspPageName; import by.bsu.exception.service.AccountServiceException; import by.bsu.exception.IllegalEmailValidationException; import by.bsu.exception.IllegalPasswordValidationException; import by.bsu.service.impl.AccountServiceImpl; ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/image_annotator.proto package com.google.cloud.vision.v1p2beta1; public interface WebDetectionParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.WebDetectionParams)...
package com.classicmodels.service; import com.classicmodels.repository.ClassicModelsRepository; import org.springframework.stereotype.Service; @Service public class ClassicModelsService { private final ClassicModelsRepository classicModelsRepository; public ClassicModelsService(ClassicModelsRepository class...
package io.gomint.server.world.block; import io.gomint.world.block.BlockType; import io.gomint.server.registry.RegisterInfo; /** * @author geNAZt * @version 1.0 */ @RegisterInfo( sId = "minecraft:double_plant" ) public class Sunflower extends Block implements io.gomint.world.block.BlockSunflower { @Override ...
/** * Scaffolding file used to store all the setups needed to run * tests automatically generated by EvoSuite * Sat Nov 07 12:11:42 GMT 2020 */ package org.dom4j.io; import org.evosuite.runtime.annotation.EvoSuiteClassExclude; import org.junit.BeforeClass; import org.junit.Before; import org.junit.After; import ...
package dgm.degraphmalizr.recompute; import dgm.configuration.TypeConfig; import dgm.degraphmalizr.VID; public class RecomputeRequest { public final VID root; public final TypeConfig config; public final int distance; /** * Indicate that the document <i>root</i> has to be * recomputed bec...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: proto/clarifai/api/service.proto package com.clarifai.grpc.api; /** * Protobuf type {@code clarifai.api.PostWorkflowResultsSimilarityResponse} */ public final class PostWorkflowResultsSimilarityResponse extends com.google.protobuf.Generated...
package yajdr.util; public final class StringUtil { private static final long MILLISECONDS_SECOND = 1000; private static final long MILLISECONDS_MINUTE = StringUtil.MILLISECONDS_SECOND * 60; private static final long MILLISECONDS_HOUR = StringUtil.MILLISECONDS_MINUTE * 60; private static final long MILLISE...
package us.eunoians.mcrpg.skills; import us.eunoians.mcrpg.abilities.BaseAbility; import us.eunoians.mcrpg.players.McRPGPlayer; import us.eunoians.mcrpg.types.GenericAbility; import us.eunoians.mcrpg.types.Skills; import java.util.Map; public class Taming extends Skill{ public Taming(int currentLevel, int curre...
package svenhjol.charm.block; import net.minecraft.block.AbstractBlock; import net.minecraft.block.WallBlock; import svenhjol.charm.base.CharmModule; import svenhjol.charm.base.block.ICharmBlock; import svenhjol.charm.module.RefinedObsidian; public class RefinedObsidianWallBlock extends WallBlock implements ICharmBlo...
package com.kushtrimh.tomorr.api.v1.request; import javax.validation.constraints.NotBlank; import java.util.Objects; /** * @author Kushtrim Hajrizi */ public class ArtistSearchRequest { @NotBlank private String name; private boolean external; public String getName() { return name; } ...
// WARNING: This file is autogenerated. DO NOT EDIT! // Generated 2020-09-03 01:00:49 +0200 package jnr.constants.platform.linux; public enum ErrnoAddressInfo implements jnr.constants.Constant { EAI_ADDRFAMILY(-9L), EAI_AGAIN(-3L), EAI_BADFLAGS(-1L), EAI_FAIL(-4L), EAI_FAMILY(-6L), EAI_MEMORY(-10L), EAI_NODATA(-5L), EA...
/* * 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...
package org.nem.peer; import org.nem.core.crypto.*; import org.nem.core.model.HashUtils; import org.nem.core.node.NodeIdentity; import org.nem.core.serialization.*; import org.nem.peer.node.ImpersonatingPeerException; /** * Secure serializable entity that can be used to authenticate the sender. * * @param <T> The ...
package com.wilshion.headlinenews.view; import android.content.Context; import android.support.annotation.AttrRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.view.MotionEvent; import android.widget.ScrollView; /** * Created ...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * Copyright 2014 Nicolas Morel * * 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 eyesimo.bankmanager.io; import eyesimo.bankmanager.tools.ImageManipulator; import eyesimo.processor.filters.ClearColorFilter; import javax.imageio.ImageIO; import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arr...
package top.chenqwwq.leetcode.week._190._2; import java.util.HashSet; import java.util.Set; /** * 5417. 定长子串中元音的最大数目 * 给你字符串 s 和整数 k 。 * <p> * 请返回字符串 s 中长度为 k 的单个子字符串中可能包含的最大元音字母数。 * <p> * 英文中的 元音字母 为(a, e, i, o, u) * <p> * 提示: * <p> * 1 <= s.length <= 10^5 * s 由小写英文字母组成 * 1 <= k <= s.length * * @author...
/** * 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 2004-2005 Alexey Efimov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
// Copyright 2014 The Bazel Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appl...
/* * 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.wpdo.sendsms; 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 java.util.ArrayList; import java.util.Co...
package com.pecuyu.designpattern.FactoryMethod; /** * author pecuyu * date 2018/4/21 * TODO concrete product : ProductA */ public class ProductA extends AbsProduct { @Override public String whereFrom() { return "guangdong"; } @Override public String description() { retur...
package nl.avans.sagrada.view.interfaces; public interface ViewInterface { /** * Renders the view with all the information */ public void render(); }
/** * Copyright (c) 2009-2015, Data Geekery GmbH (http://www.datageekery.com) * All rights reserved. * * This work is dual-licensed * - under the Apache Software License 2.0 (the "ASL") * - under the jOOQ License and Maintenance Agreement (the "jOOQ License") * ===================================================...
package com.icfolson.aem.harbor.api.lists.construction.search; import com.day.cq.search.Predicate; import com.google.common.base.Optional; public interface ConstructionPredicate { Optional<Predicate> asPredicate(); }
/* * Copyright 2019-2020 Zheng Jie * * 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 agree...
/** * Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.analytics.financial.interestrate.cash.derivative; import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; import ...
/* * Copyright 2022 ThoughtWorks, 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 agr...
/* * 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 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...
package cn.woniu.db; public class DBException extends Exception { /** * serialVersionUID:TODO */ private static final long serialVersionUID = 2938065489568246178L; private int code = -1; public DBException(int code, String message) { super(message); this.code = code; } public int getCode() { ...
/* * Copyright (c) 2018 Abex * 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 source code must retain the above copyright notice, this * list of conditions and ...
package com.parser.driver; import com.fasterxml.jackson.databind.ObjectMapper; import com.parser.utilities.Builder; import java.io.FileWriter; import java.io.IOException; import java.util.HashMap; public class JSONBuilder extends Builder { public JSONBuilder(String output_path){ super(output_path); ...
/* * Copyright 2017 Apereo * * 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...
/* Copyright (C) 2002-2004 MySQL AB This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. There are special exceptions to the terms and conditions of the GPL as it is applied to this...
/** * Copyright 2007-2015, 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.mafei.laboratory.system.entity; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; /** * 角色和菜单关联表 * @author wts */ @Entity @Data @Table(name = "sys_role_menu") public class SysR...
package co.helmethair.currencylayer; import com.fasterxml.jackson.databind.ObjectMapper; import com.github.kittinunf.fuel.core.Response; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.nio.charset.StandardCharsets; import java.util.HashMap;...
/** * Created by Aleksey on 14.07.2017. */ package isaac.bastion.storage; import isaac.bastion.BastionType; import vg.civcraft.mc.civmodcore.dao.ManagedDatasource; public class Database { public static void registerMigrations(ManagedDatasource db) { db.registerMigration(0, false, "create table if not exists...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.04.18 at 02:04...
/*** * Java TelnetD library (embeddable telnet daemon) * Copyright (c) Dieter Wimberger * 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 a...
package com.fmall.vo; import com.fmall.pojo.OrderItem; import java.math.BigDecimal; import java.util.List; /** * Created by 冯晓 on 2017/9/18. */ public class OrderProductVo { private List<OrderItem> orderItemList; private BigDecimal productTotalPrice; private String imageHost; public List<OrderI...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* Copyright (c) 2011 Danish Maritime Authority. * * 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...
/* * Copyright 2007 Google, 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...
package eip.smart.client.minimap.example.simulation; import eip.smart.cscommons.model.geometry.Point3D; public class SimulatedAgentMoveable extends SimulatedAgent { public SimulatedAgentMoveable() { super("AgentMoveable", new Point3D(0, 0, 0)); } @Override protected void onDestinationReached() { this.orders...
package dorkbox.util.jna.windows; import com.sun.jna.IntegerType; import com.sun.jna.Native; public class Parameter extends IntegerType { public Parameter() { this(0); } public Parameter(long value) { super(Native.POINTER_SIZE, value); } }
/* * 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 (C) 2009 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
/* * Copyright 2002-2015 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 j2ee.group9.shop.controller; import java.io.BufferedReader; import java.text.SimpleDateFormat; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Properties; import java.util.ResourceBundle; import java.io.FileInputStream; import java.io.Fi...
/* * 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,...
/* * Copyright (c) 2018, Lotto <https://github.com/devLotto> * 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 source code must retain the above copyright notice, th...
package com.microsoft.appcenter.distribute; import android.annotation.SuppressLint; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DownloadManager; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager...
/** * 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 uy.kohesive.iac.model.aws.utils; /* * JBoss DNA (http://www.jboss.org/dna) * See the COPYRIGHT.txt file distributed with this work for information * regarding copyright ownership. Some portions may be licensed * to Red Hat, Inc. under one or more contributor license agreements. * See the AUTHORS.txt file...
package org.cytoscape.cyndex2.internal.rest.endpoints.impl; import javax.ws.rs.core.Response.Status; import org.cytoscape.ci.CIWrapping; import org.cytoscape.cyndex2.external.SaveParameters; import org.cytoscape.cyndex2.internal.CyServiceModule; import org.cytoscape.cyndex2.internal.rest.endpoints.NdexStatusResource;...
/* * Copyright 2007 Manuel Carrasco Moñino. (manolo at apache/org) * http://code.google.com/p/gwtupload * * 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/licen...
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.data.dataservice.property.businessproperty.modify response. * * @author auto create * @since 1.0, 2019-10-16 21:36:01 */ public class AlipayDataDataservicePropertyBus...
package com.example; import java.io.IOException; import java.io.Serializable; import com.example.lib.Store; public class Foo implements Serializable { private final String value; public Foo(final String value) { this.value = value; } @Override public String toString() { return ...
package is.kul.learningandengine.scene; import org.andengine.util.debug.Debug; import is.kul.learningandengine.ResourceManager; import is.kul.learningandengine.entity.CollidableEntity; import is.kul.learningandengine.entity.Enemy; import is.kul.learningandengine.entity.Platform; import is.kul.learningandengine.entity...
package io.uiza.test.model.category; import java.util.HashMap; import java.util.Map; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.Po...
/* * Company * Copyright (C) 2014-2021 All Rights Reserved. */ package com.cwenao.leetcode.algs.second; /** * TODO : Statement the class description * * @author cwenao * @version $Id MaxProfitII.java, v1.0.0 2021-03-22 20:34 cwenao Exp $$ */ public class MaxProfitII { public int maxProfit(int[] prices) { ...
package adsbrecorder.receiver.kafka; import java.util.Map; import org.apache.kafka.common.serialization.Serializer; import com.fasterxml.jackson.databind.ObjectMapper; import adsbrecorder.receiver.entity.TrackingRecord; public class TrackingRecordSerializer implements Serializer<TrackingRecord> { public Track...
/** * 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.example.springbootjwt; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(...
/* * 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 cn.coderoom.thread.advance * @author lim * @email coderoom.cn@gmail.com * @date 2020/1/10 17:14 */ package cn.coderoom.thread.advance;
package com.example.shellweather.gson; import com.google.gson.annotations.SerializedName; /** * Created by DELL on 2019/4/23. */ public class Suggestion { @SerializedName("comf") public Comfort comfort; @SerializedName("cw") public CarWash carWash; // @SerializedName("sport") public Sport sp...
/* * Copyright 2002-2018 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
// "Transform body to single exit-point form" "true" class Test { String<caret> process(String s, int x) { if (x > 0) { if (x == 2) { return s.trim(); } System.out.println(s.substring(0)); } return s.substring(1); } }
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 2012, UCAR/Unidata. * See the LICENSE file for more information. */ package dap4.core.dmr; import dap4.core.ce.CEConstraint; import dap4.core.util.*; import java.util.*; /** * This class defines a non-Gridd Grid: * i.e. one with an atomic type. */ public class DapDataset extends DapGroup { /...
package com.demon.baseui.scroll; import android.content.Context; import android.view.MotionEvent; public abstract class BaseGestureDetector { protected boolean mGestureInProgress; protected MotionEvent mPreMotionEvent; protected MotionEvent mCurrentMotionEvent; protected Context mContext; pub...