text
stringlengths
7
995k
// Targeted by JavaCPP version 1.5.6: DO NOT EDIT THIS FILE package org.bytedeco.gsl; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.openblas.global.openblas_nolapack.*; import static org.byt...
package com.example.nctai_trading.basefex; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class basefexActiveOrderListOrder { @SerializedName("liquidateUserId") @Expose private Object liquidateUserId; @SerializedName("ts") @Expose private ...
package com.liuzhenlin.simrv; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * 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 pu...
/* * Copyright (c) 2002-2018 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This product is licensed to you under the Apache License, Version 2.0 (the "License"). * You may not use this product except in compliance with the License. * * This product may include a number ...
package com.f.btarduino; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.DefaultItemAnimator; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevi...
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2020 DBeaver Corp and others * * 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...
package com.example.medtek.model.pasien; import android.os.Parcel; import android.os.Parcelable; public class SearchModel implements Parcelable { private String nama, detail,image_url, city; private int id; public SearchModel(int id, String nama, String detail, String image_url, String city) { t...
/* * Copyright 2019, OpenTelemetry 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 or...
package com.purbon.kafka.topology; import static org.mockito.Mockito.*; import com.purbon.kafka.topology.model.Impl.ProjectImpl; import com.purbon.kafka.topology.model.Impl.TopicImpl; import com.purbon.kafka.topology.model.Impl.TopologyImpl; import com.purbon.kafka.topology.model.Project; import com.purbon.kafka.topo...
package com.jstarcraft.rns.utility; import java.util.Iterator; import java.util.concurrent.Semaphore; import com.jstarcraft.ai.environment.EnvironmentContext; import com.jstarcraft.ai.math.structure.DefaultScalar; import com.jstarcraft.ai.math.structure.MathCalculator; import com.jstarcraft.ai.math.structure.MathScal...
/* * Marketing API * Marketing API * * OpenAPI spec version: 1.3 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.tencent.ads.model; import com.google.gson.Gson; import com.go...
/* * Copyright (c) 2016, 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.org/l...
import android.content.Context; import android.content.Intent; import android.content.res.AssetManager; import android.graphics.Bitmap; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.Gravity; import android.view.KeyE...
//,temp,AddBaremetalDhcpCmd.java,79,91,temp,ListUcsBladeCmd.java,62,74 //,3 public class xxx { @Override public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException, NetworkRuleConflictException {...
/* * Copyright (C) 2015 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...
class Solution { public List<List<Integer>> threeSum(int[] nums) { List<List<Integer>> results = new ArrayList<>(); Arrays.sort(nums); for (int i = 0; i < nums.length - 2; i++) { if (i > 0 && nums[i - 1] == nums[i]) continue; twoSum(nums, -nums[i], i + 1, results); ...
package ru.stqa.pft.sandbox; import org.testng.Assert; import org.testng.annotations.Test; public class EquationTest { @Test public void test0() { Equation e = new Equation(1,1,1); Assert.assertEquals(e.rootNumber(), 0); } @Test public void test1() { Equation e = new Equation(1, 2, 1); Ass...
package handler; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.io.OutputFormat; import org.dom4j.io.SAXReader; import org.dom4j.io.XMLWriter; import java.io.File; import java.io.FileOutputStream; import java.io.FileWriter; im...
package com.breakersoft.plow.test.dao; import static org.junit.Assert.*; import javax.annotation.Resource; import org.junit.Test; import com.breakersoft.plow.Folder; import com.breakersoft.plow.dao.FolderDao; import com.breakersoft.plow.dao.ProjectDao; import com.breakersoft.plow.test.AbstractTest; public class Fo...
package com.mercury.platform.ui.components.datatable.data; import lombok.AllArgsConstructor; import lombok.Data; @Data @AllArgsConstructor public class LazyLoadParams { private int skip; private int top; }
package com.medusa.gruul.platform.web.controller; import cn.binarywang.wx.miniapp.api.WxMaSubscribeService; import cn.binarywang.wx.miniapp.bean.template.WxMaPubTemplateTitleListResult; import cn.hutool.core.util.StrUtil; import com.medusa.gruul.common.core.annotation.EscapeLogin; import com.medusa.gruul.common.core....
package com.tracelink.prodsec.plugin.veracode.sca.util.model; import com.google.gson.annotations.SerializedName; /** * Abstract class to hold page metadata for all paged resources. */ public abstract class AbstractPagedResources { @SerializedName("page") private PageMetadata page = null; public PageMetadata ge...
package com.example.springbootquartz.job; import org.quartz.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import java.io.Serializable; import java.util.Date; /** * Job 的实例要到该执行它们的时候才会实例化出来。每次 Job 被执行,一个新的 Job 实例会被创建。 * 其中暗含的意思就是你的 Job 不必担...
package com.hapramp.utils; import android.content.Context; import android.content.pm.PackageInfo; import android.support.annotation.NonNull; import android.util.Log; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.FirebaseDatabas...
package com.laegler.openbanking.model; import com.laegler.openbanking.model.OBRisk1DeliveryAddress; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.Xml...
package com.anzt.avcode.views; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.PixelFormat; import android.graphic...
// Copyright 2002, 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 i...
// Copyright 2000-2019 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.application.options.colors; import com.intellij.ide.DataManager; import com.intellij.ide.util.scopeChooser.EditScopesDialog; import com.intellij.ide.util.sc...
package json.chao.com.wanandroid.utils; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.os.Build; import android.support.annotation.FloatRange; import android.support.annotation.RequiresApi; import android.util.Log; import android.util.TypedValue; impor...
/* * Copyright 2021 Apollo 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 or agreed to i...
package net.minecraft.client.renderer.model; import java.util.Locale; import net.minecraft.util.ResourceLocation; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; public class ModelResourceLocation extends ResourceLocation { private final String variant; protected...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. * * Oracle and Java are registered trademarks of Oracle and/or its affiliates. * Other names may be trademarks of their respective owners. * * The contents of this file are su...
package aula11; public class Professor extends Pessoa{ private String especialidade; private double salario; public Professor(String especialidade, double salario, int idade, String nome, char sexo) { super(idade, nome, sexo); this.especialidade = especialidade; this.salario = sala...
/* * Copyright 2012-2014 eBay Software Foundation and selendroid committers. * * 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...
package org.deeplearning4j.text.documentiterator; import lombok.NonNull; import lombok.Setter; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicLong; /** * This class is used to manage labels/documents syncronization over iterators * * @autho...
/* * * * 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"); ...
/** * */ package com.tui.proof.ws.models.web; import java.util.List; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.Size; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude;...
/* * aTalk, android VoIP and Instant Messaging client * Copyright 2014 Eng Chong Meng * * 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 *...
/* * Copyright 2016 web4enterprise. * * 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 ...
/* * Copyright (c) 2016 Couchbase, 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...
package com.senior.cyber.tv.dao.entity; import javax.persistence.metamodel.MapAttribute; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; @StaticMetamodel(Group.class) public abstract class Group_ { public static volatile SingularAttribute<Group, Long> id;...
package com.alipay.api.domain; import java.util.Date; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; /** * 芝麻信用风险记录详情 * * @author auto create * @since 1.0, 2015-08-18 17:43:26 */ public class ZhimaRiskDetail extends AlipayObject { private static final long serialVersionUI...
/* * Copyright 2019-2022 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...
package com.celeste.library.spigot.util.item.enchantments; import com.celeste.library.core.util.Reflection; import com.celeste.library.spigot.error.ServerStartError; import java.lang.reflect.Field; import org.bukkit.enchantments.Enchantment; import org.bukkit.enchantments.EnchantmentTarget; import org.bukkit.inventory...
package us.eunoians.mcrpg.types; import lombok.Getter; import java.util.Arrays; import java.util.stream.Collectors; public enum LevelCommandType{ ARCHERY("Archery"), AXES("Axes"), EXCAVATION("Excavation"), FISHING("Fishing"), FITNESS("Fitness"), HERBALISM("Herbalism"), MINING("Mining"), POWER("Power"...
package seedu.knowitall.logic.commands; import static java.util.Objects.requireNonNull; import seedu.knowitall.commons.core.Messages; import seedu.knowitall.logic.CommandHistory; import seedu.knowitall.logic.commands.exceptions.CommandException; import seedu.knowitall.model.CardFolder; import seedu.knowitall.model.Mo...
package kdp.limelib; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.EnumHand; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.registries.ForgeRegistryE...
package Disk; import java.util.*; public class Table { private List<Tuple> data; private int tuples_per_block, last_block_ind; private String table_name; private Disk disk;//This object stores the disk parameters public Table(String table_name, Schema schemaPtr, Disk d){ this.table_name = table_name; ...
package chap03; public class Point { public int x = 2; public int y; public Point(int y) { this.y = y; } public static void main(String[] args) { Point p = new Point(22); } }
/* 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...
package org.n52.wps.extension; import java.lang.Thread.UncaughtExceptionHandler; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; import java.util.Collections; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java....
package io.onedev.server.git.signature; import org.bouncycastle.openpgp.PGPPublicKey; public interface SignatureVerificationKey { boolean shouldVerifyDataWriter(); PGPPublicKey getPublicKey(); }
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * 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/LICENSE-2.0. * *...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.subsystems; import edu.wpi.first.wpilibj2.command.SubsystemBase; import frc.robot.Constants; import c...
/* * Licensed to Crate under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. Crate licenses this file * to you under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compl...
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
package pd.log; import java.util.Properties; public class LogManager { private static class Config { private static final String KEY_PREFIX = LogManager.class.getPackage().getName(); private static final String KEY_LOGGERCLASS = KEY_PREFIX + ".loggerClass"; private static final String KE...
package org.bougainvillea.java.designpattern.pattern.behavior.template; /** * 抽象类,豆浆 */ public abstract class SoyaMilk { /** * 模板方法 final 修饰,防止子类重写模板方法 */ final void make(){ select(); if(hook()){ addCondiments(); } soak(); beat(); } /** ...
package segmentedfilesystem; import java.net.*; import java.net.InetAddress; import java.util.ArrayList; import java.util.Arrays; import java.io.*; import java.util.Collections; public class Main { static dataFile file1 = new dataFile(); static dataFile file2 = new dataFile(); static dataFile file3 = new ...
/* * Password Management Servlets (PWM) * http://www.pwm-project.org * * Copyright (c) 2006-2009 Novell, Inc. * Copyright (c) 2009-2019 The PWM 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 ...
/* * Copyright 2021 OPS4J. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
package org.or5e.hm.ws.message.mu; public class DeviceSwitch { public String switchID; public Integer switchStatus; public String switchName; public String getSwitchID() { return switchID; } public void setSwitchID(String switchID) { this.switchID = switchID; } public Integer getSwitchStatus() { return s...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE191_Integer_Underflow__long_console_readLine_predec_12.java Label Definition File: CWE191_Integer_Underflow.label.xml Template File: sources-sinks-12.tmpl.java */ /* * @description * CWE: 191 Integer Underflow * BadSource: console_readLine Read data from the console usin...
package nature.common.tabs; import nature.common.registries.NatureItems; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.CreativeModeTab; public class TabBotanic extends CreativeModeTab { public TabBotanic() { super("tab_botanic"); } @Override public ItemStack m...
package es.cic.curso06.stillUseful.service.admin; import static org.junit.Assert.*; import java.util.List; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; impo...
package gov.nara.opa.api.system; public class OpaErrorCodeConstants { public static final String EMAIL_EXISTS = "EMAIL_EXISTS"; public static final String USER_EXISTS = "USER_EXISTS"; public static final String USER_DOES_NOT_EXIST = "USER_DOES_NOT_EXIST"; public static final String ACCOUNT_REASON_ID_DOES_NOT_...
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.opensource.org/licenses/ecl2.php * * Unless required by a...
/** * */ package com.ai.cloud.util; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.L...
/** * */ package uk.co.jemos.podam.test.unit.pdm43; import junit.framework.Assert; import org.junit.Test; import uk.co.jemos.podam.api.PodamFactory; import uk.co.jemos.podam.api.PodamFactoryImpl; import uk.co.jemos.podam.test.dto.pdm43.ConcreteBusinessObject; /** * Unit tests for <a href="http://www.jemos.eu/ji...
package com.btb.exchange.shared.dto; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.json.JSONException; import org.junit.ju...
package io.vertx.servicediscovery.types.impl; import io.vertx.core.Vertx; import io.vertx.core.json.JsonObject; import io.vertx.ext.mongo.MongoClient; import io.vertx.servicediscovery.Record; import io.vertx.servicediscovery.ServiceDiscovery; import io.vertx.servicediscovery.ServiceReference; import io.vertx.servicedi...
package it.polimi.dima.mediatracker.controllers; import android.support.test.InstrumentationRegistry; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Iterator; import java.util.List; import it...
package com.github.nduyhai.effective.methodcommon; import java.util.Comparator; /** * Item 14: Consider implementing Comparable * * - Reflexive * * - Symmetric * * - Transitive * * Note: * * - Use of the relational operators < and > in compareTo methods is verbose and error-prone and no * longer recommend...
package edu.cmu.hcii.whyline.ui.views; /** * @author Andrew J. Ko * */ public interface ScrollableView { public int getHorizontalSize(); public int getHorizontalVisible(); public int getHorizontalPosition(); public int getVerticalSize(); public int getVerticalVisible(); public int getVerticalPosition(); p...
package com.mylove.launcher.mvp.ui; import android.graphics.Rect; import android.support.v7.widget.RecyclerView; import android.view.View; /** * Created by Administrator on 2018/8/31. */ public class SpaceItemDecoration extends RecyclerView.ItemDecoration { private int space; public SpaceItemDecoration(i...
package houtbecke.rs.le; public enum LeDeviceState { OFF, ON, }
package com.reactnativenavigation.viewcontrollers; import android.app.Activity; import android.view.View; import android.view.ViewGroup; import android.view.ViewManager; import android.view.ViewTreeObserver; import com.reactnativenavigation.interfaces.ScrollEventListener; import com.reactnativenavigation.parse.Option...
/* * Copyright 2012-2017 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 (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.applicationinsights.fluent; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import ...
package org.LeetcodeSolution.String; /** * Problem * 748.Shortest Completing Word * https://leetcode.com/problems/shortest-completing-word/ * https://leetcode-cn.com/problems/shortest-completing-word/ * Grade of difficulty * Easy * Related topics * @author cartoon * @version 1.0 */ public cla...
package jbl.assertion.generator; import java.io.File; import com.intellij.openapi.Disposable; import com.intellij.openapi.module.Module; import com.intellij.openapi.vfs.newvfs.impl.VfsRootAccess; import com.intellij.testFramework.PsiTestUtil; import com.intellij.testFramework.fixtures.LightJavaCodeInsightFixtureTestC...
/** * Copyright 2016 Neeve Research, LLC * * This product includes software developed at Neeve Research, LLC * (http://www.neeveresearch.com/) as well as software licenced to * Neeve Research, LLC under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional inf...
/* * Copyright (C) 2016 Simon Norberg * * 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 com.zyf.ivanmall.product.controller; import com.zyf.common.utils.R; import com.zyf.ivanmall.product.entity.CategoryEntity; import com.zyf.ivanmall.product.service.CategoryService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util....
/** * Copyright 2009-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 * * Unle...
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
/* * Copyright 2020 Krzysztof Slusarski * * 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.example.wheelview; import java.io.BufferedReader; import java.io.Closeable; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.nio.charset.Ch...
/* * Copyright (c) 2012, Isaiah van der Elst (isaiah.v@comcast.net) * 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 no...
/* * Copyright 2016 Red Hat 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 com.lomoye.common.util; import com.google.common.base.Preconditions; import java.util.HashMap; import java.util.Map; /** * Created by tommy on 2016/8/28. */ public class GeneratorUtil { //包含start,不包含end,defaultValue不能够为空 public static <T> Map<Integer, T> getSequentialMap(int start, int end, T defa...
public class Box<T> { private T t; public void add(T t) { this.t = t; } public T get() { return t; } public static void main(String [] args) { Box<String> stringBox = new Box<String>(); stringBox.add(new String("Hello World")); System.out.printf("Stri...
package com.xandone.wcdog.pojo; import com.fasterxml.jackson.annotation.JsonFormat; import java.util.Date; /** * @author :xandone * created on :2019/7/1 17:51 * description: */ public class PlankTalkBean { private String plankId; private String content; private Date sendTime; private String send...
/*FreeMind - A Program for creating and viewing Mindmaps *Copyright (C) 2000-2004 Joerg Mueller, Daniel Polansky, Christian Foltin and others. * *See COPYING for Details * *This program is free software; you can redistribute it and/or *modify it under the terms of the GNU General Public License *as published by...
/* * Copyright (C) 2014 lingdongdong * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distr...
package test.com.sap.dirigible.runtime.java; import static org.junit.Assert.assertEquals; import org.junit.Test; public class TwoServicesJavaExecutorTest extends AbstractJavaExecutorTest { private static final String EXPECTED_OUTPUT_FOR_SERVICE1 = "Hello from Service 1!"; //$NON-NLS-1$ private static final String ...
package co.hodlwallet.tools.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInput; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import java.io.StreamCorrupt...
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
package com.xianyue; import java.math.BigInteger; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.StringTokenizer; public class SimHash { private String tokens; private BigInteger intSimHash; private String strSimHash; private int hashbits = 64; public SimHash(S...
/** */ package openapi2; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>JSON Schema Subset</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{...