text
stringlengths
7
995k
public static final Object clone(Object ary) { final int size = Array.getLength(ary); final Object dst = Array.newInstance(ary.getClass().getComponentType(), size); System.arraycopy(ary, 0, dst, 0, size); return dst; }
package ru.stqa.pft.addressbook.lessons_53.model; public class ContactData { private final String firstname; private final String secondname; private String group; public ContactData(String firstname, String secondname, String group) { this.firstname = firstname; this.secondname = secondname; th...
package com.example.fourthhomework.service; import com.example.fourthhomework.dto.CollectionDTO; import com.example.fourthhomework.entity.Collection; import java.math.BigDecimal; import java.util.Date; import java.util.List; public interface CollectionService { CollectionDTO save(CollectionDTO collectionDTO); ...
/* * Copyright (c) 1999, 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.sap.olingo.jpa.processor.core.processor; import static com.sap.olingo.jpa.processor.core.converter.JPAExpandResult.ROOT_RESULT_KEY; import static com.sap.olingo.jpa.processor.core.exception.ODataJPAProcessorException.MessageKeys.ODATA_MAXPAGESIZE_NOT_A_NUMBER; import static com.sap.olingo.jpa.processor.cor...
package com.stackroute.cachemanagerservice.repository; import com.stackroute.cachemanagerservice.domain.Relationship; import org.springframework.data.neo4j.annotation.Query; import org.springframework.data.neo4j.repository.Neo4jRepository; import java.util.List; public interface RelationshipRepository extends Neo4jR...
/* */ package com.hundsun.network.gates.genshan.biz.domain.query; /* */ /* */ import com.hundsun.network.gates.genshan.biz.domain.auction.AuctionBidRecordHis; /* */ import com.hundsun.network.gates.luosi.common.page.Pagination; /* */ /* */ public class AuctionBidRecordHisQuery extends Pagination<Auc...
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with *...
/* * Copyright 2014 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 applic...
package com.zjzy.morebit.goods.shopping.contract; import com.zjzy.morebit.Activity.GoodsDetailActivity; import com.zjzy.morebit.Module.common.Activity.BaseActivity; import com.zjzy.morebit.mvp.base.base.BasePresenter; import com.zjzy.morebit.mvp.base.base.BaseView; import com.zjzy.morebit.pojo.ImageInfo; import com.zj...
package io.github.klimenko.videouploader.utils; import okhttp3.*; import java.io.IOException; /** * Simple methods hiding the logic in making HTTP GETs and POSTs */ public class HttpOperations { private static final OkHttpClient client = new OkHttpClient(); /** * Performs a HTTP GET request on the gi...
/* * Copyright 2000-2013 JetBrains s.r.o. * * 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 agre...
package com.restbase.application.config; import org.springframework.boot.web.servlet.FilterRegistrationBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.restbase.application.rest.controller.interceptor.MDCInterceptor; @Configuration publ...
package com.trigyn.jws.resourcebundle.dao; public final class QueryStore { public static final String JPA_QUERY_TO_GET_MESSAGE_DETAILS_BY_RESOURCE_KEY = (" SELECT new com.trigyn.jws.resourcebundle.vo.ResourceBundleVO ") + (" (rb.id.languageId AS languageId, rb.id.resourceKey AS resourceKey, rb.text AS text) ") ...
package com.demo.quotes; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; @RestController @RequiredArgsConstructor public class QuoteController {...
public class Matrix { public static int dotProduct(int[][] a, int[][] b) { if(a.length != b.length || a[0].length != b[0].length) { throw new IllegalArgumentException(); } int dotProduct = 0; for(int i = 0; i < a.length; i++) { for(int j = 0; j < a[0].length; j++) { dotProduct += a[i][j] * b[i]...
/* 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 agr...
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
package com.dragon.user.server.service.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.dragon.pojo.DragonUser; import com.dragon.user.client....
package openperipheral.api.meta; import java.util.Set; public interface IPartialMetaBuilder<T> { public Set<String> getKeys(T target); }
/* * MIT License * * Copyright (c) 2021 MASES s.r.l. * * 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, cop...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__int_URLConnection_postinc_67b.java Label Definition File: CWE190_Integer_Overflow__int.label.xml Template File: sources-sinks-67b.tmpl.java */ /* * @description * CWE: 190 Integer Overflow * BadSource: URLConnection Read data from a web server wi...
/** * 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.casper.sdk.service.json.serialize; import com.casper.sdk.types.CLValue; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.SerializerProvider; import java.io.IOException; /** * Custom JSON serializer for {@link CLV...
package com.cydeo.step_definitions; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; public class EatStepDef { // Alice @Given("Alice is hungry") public void alice_is_hungry() { // Write code here that turns the phrase above into concrete actions ...
package water.bindings.examples; import com.google.gson.*; import retrofit2.Response; import retrofit2.Retrofit; import retrofit2.converter.gson.GsonConverterFactory; import water.bindings.pojos.*; import water.bindings.proxies.retrofit.*; import java.io.IOException; import java.lang.reflect.Type; import java.util.Ar...
package com.samsung.android.sdk.iap.lib.activity; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.text.TextUtils; import plugin.samsung.iap.R; import com.samsung.android.sdk.iap.lib.dialog.Ba...
/** * ProductCustomAttribute.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter. */ package com.google.api.ads.adwords.axis.v201605.cm; /** * A custom attribute value. As a product can have multiple custom * attributes, the user must specify ...
/* Tencent is pleased to support the open source community by making Hippy available. * Copyright (C) 2018 THL A29 Limited, a Tencent company. 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...
package uk.ac.ox.well.cortexjdk.commands.discover.call; import htsjdk.samtools.reference.FastaSequenceFile; import htsjdk.samtools.reference.ReferenceSequence; import org.jgrapht.graph.DirectedWeightedPseudograph; import uk.ac.ox.well.cortexjdk.commands.Module; import uk.ac.ox.well.cortexjdk.utils.arguments.Argument; ...
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2017 Adobe Systems Incorporated ~ ~ 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 ~ ~ htt...
package crazypants.enderio.machine.ranged; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.RenderEntity; import net.minecraft.entity.Entity; import org.lwjgl.opengl.GL11; import crazypants.render.BoundingBox; import crazypants.render.CubeRenderer; import crazypants.rende...
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // 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: 2016.09....
package com.javarush.task.task33.task3313; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; /* Сериализация даты в JSON */ public class Solution { public static void main(String[] args) throws JsonProcessingException { Event event = new Event...
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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 agre...
package org.apereo.cas.gua.config; import org.apache.commons.lang3.StringUtils; import org.apereo.cas.configuration.CasConfigurationProperties; import org.apereo.cas.configuration.model.support.gua.GraphicalUserAuthenticationProperties; import org.apereo.cas.gua.api.UserGraphicalAuthenticationRepository; import org.ap...
package foo.bar; public class HelloService { public String hello(String name) { return "Hello, " + name + "!"; } }
package com.marshalchen.common.uimodule.multi_image_selector.utils; import android.content.Context; import android.os.Environment; import java.io.File; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; /** * 文件操作类 * Created by Nereo on 2015/4/8. */ public class FileUtils { pu...
package com.kennycason.kumo.nlp.normalize; /** * Created by kenny on 7/1/14. */ public class StringToHexNormalizer implements Normalizer { public StringToHexNormalizer() {} @Override public String normalize(final String text) { final StringBuilder stringBuilder = new StringBuilder(); fo...
package lmbrd.io; import sun.misc.Cleaner; import java.lang.reflect.Field; import java.nio.ByteBuffer; import java.util.concurrent.atomic.AtomicInteger; /** * User: light * Date: 14/01/14 * Time: 11:00 */ public class JVMReservedMemory { public static AtomicInteger openedBuffers = new AtomicInteger(0); ...
/** * Copyright 2009-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 * * Unle...
package unit.com.bitdubai.desktop.sub_app_manager.SubAppDesktopFragment; import com.bitdubai.desktop.sub_app_manager.util.CbpSubAppListGenerator; import com.bitdubai.fermat_api.layer.dmp_engine.sub_app_runtime.enums.SubApps; import com.bitdubai.fermat_api.layer.dmp_module.wallet_manager.InstalledSubApp; import org.ju...
package org.zerock.controller; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.PostMapping; import org.springfr...
package com.beautiful.ui.core.model; /** * @description: ${description} * @author: zhuyuping * @create: 2018-05-16 18:26 **/ public enum DataNodeType { START, NEXT,//下一步 CONDITION,//条件阻塞 JOIN,//聚合节点 REPEAT,//重复节点 FORK,//分散 ROUTER,//转发 SUBSCRIBE,//发布订阅 同一份数据消费多次 END; }
package github.tornaco.xposedmoduletest.ui.adapter.common; import android.content.Context; import android.graphics.Color; import android.support.annotation.ColorInt; import android.support.annotation.LayoutRes; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.suppor...
package com.example; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class OktaAngular8SpringBoot2BackendApplicationTests { @Test void contextLoads() { } }
package com.dream.plmm.crash; /** * 自定义的回传闪退日志到远程服务器 * <p/> * Created by Clock on 2016/1/27. */ public class SimpleCrashReporter implements CrashExceptionHandler.CrashExceptionRemoteReport { @Override public void onCrash(Throwable ex) { //接下来要在此处加入将闪退日志回传到服务器的功能 } }
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // 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: 2014.09.08 at 02:15:2...
/** * Copyright(c) 2018 * Ulord core developers */ package one.ulord.upaas.uxtoken.wallet; import one.ulord.upaas.uxtoken.wallet.address.AddressTarget; import one.ulord.upaas.uxtoken.wallet.address.ImportExcel; import one.ulord.upaas.uxtoken.wallet.components.*; import one.ulord.upaas.uxtoken.wallet.contract.Transa...
package me.dm7.barcodescanner.zxing.sample; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; import android.os.Bundle; import androidx.fragment.app.DialogFragment; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.core.view....
package com.example.controller; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.example.entity.Goods; import com.example.service.IGoodsService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io....
package co.mitoo.sashimi.views.widgets; /** * Created by david on 15-04-30. */ import android.content.Context; import android.util.AttributeSet; import android.widget.ScrollView; import co.mitoo.sashimi.views.Listener.ScrollViewListener; public class ObservableScrollView extends ScrollView { private ScrollVie...
package io.quarkus.spring.web.test; import static io.restassured.RestAssured.when; import static org.hamcrest.Matchers.is; import org.jboss.shrinkwrap.api.ShrinkWrap; import org.jboss.shrinkwrap.api.spec.JavaArchive; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import ...
/* * Copyright 2005 JBoss 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...
package seedu.address.testutil; import java.util.Arrays; import javafx.collections.ObservableList; import seedu.address.model.common.Description; import seedu.address.model.common.Name; import seedu.address.model.group.Group; import seedu.address.model.person.Person; import seedu.address.model.person.UniquePersonList...
package org.generation.projeto; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest class ProjetoIntegradorApplicationTests { @Test void contextLoads() { } }
/*- * #%L * excella-trans * %% * Copyright (C) 2009 - 2019 bBreak Systems and contributors * %% * 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/license...
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.bmw.news.modules.news.service; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.bmw.news.co...
package com.sparrow.core.utils; import java.beans.BeanInfo; import java.beans.IndexedPropertyDescriptor; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Array; import java.lang.reflect.InvocationTargetException; import java.lang.r...
/* * 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 de.hu.berlin.wbi.process; /** Copyright 2010, 2011 Philippe Thomas This file is part of snp-normalizer. snp-normalizer 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 a...
/* * Copyright (c) 2008-2017, 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 ...
/* * 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...
import java.util.Arrays; import java.util.Comparator; public class SeekAndInsertArray { public static void main(String [] args) { int i, j, p, q, s, n; Integer a[] = new Integer[11]; a[0] = 127; a[1] = 3; a[2] = 6; a[3] = 28; a[4] = 54; a[5] = 68; a[6] = 87; a[7] = 105; a[8] = 162; a[9] = 18...
package org.sagebionetworks.table.worker; import static org.junit.jupiter.api.Assertions.assertEquals; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Disabled; import org.junit.j...
package habuma; import org.springframework.boot.actuate.endpoint.annotation.Endpoint; import org.springframework.boot.actuate.endpoint.annotation.ReadOperation; import org.springframework.stereotype.Component; @Component @Endpoint(id="goodbye") public class GoodbyeEndpoint { @ReadOperation public String goodbye() ...
package org.gbif.pipelines.parsers.config; import java.nio.file.Path; import java.util.Properties; import com.google.common.base.Preconditions; import com.google.common.base.Strings; import lombok.AccessLevel; import lombok.NoArgsConstructor; import lombok.NonNull; /** * Creates the configuration to use a specific ...
// // ======================================================================== // Copyright (c) 1995-2018 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
/** * Autogenerated by Thrift Compiler (0.12.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package org.apache.hadoop.hbase.thrift2.generated; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) @javax.annotation.Generated(value = "Autogenerated by Th...
package it.davidenastri.persistence.controller; import com.fasterxml.jackson.annotation.JsonView; import it.davidenastri.persistence.entity.Plant; import it.davidenastri.persistence.entity.PlantDTO; import it.davidenastri.persistence.entity.Views; import it.davidenastri.persistence.service.PlantService; import org.spr...
package com.example.android.dessertclicker.databinding; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullabl...
/* * 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 br.com.biot.integracaopagarmeapi.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; @Co...
// FCMOD package net.minecraft.src; import java.util.List; public class FCBlockVanillaCauldron extends BlockCauldron { public FCBlockVanillaCauldron( int iBlockID ) { super( iBlockID ); InitBlockBounds( 0F, 0F, 0F, 1F, 1F, 1F ); } @Override public void addCollisionBo...
/* * 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 befaster.solutions.CHK; import befaster.solutions.CHK.pricing.PriceCalculator; import org.junit.Test; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; public class Price...
package net.imagej.ops.create.kernelLog; /* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2014 - 2021 ImageJ developers. * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
package org.perfcake.pc4idea.impl.editor.actions; import org.perfcake.pc4idea.api.editor.editor.ContextProvider; import org.perfcake.pc4idea.api.manager.ScenarioManager; import org.perfcake.pc4idea.api.util.PerfCakeScenarioUtil; import javax.swing.*; import java.awt.event.ActionEvent; /** * Created with IntelliJ I...
nls string odd odd
/* * Copyright 2019-present HiveMQ GmbH * * 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 datadog.trace.instrumentation.ratpack; import com.google.common.net.HostAndPort; import datadog.trace.agent.decorator.HttpServerDecorator; import datadog.trace.api.DDTags; import datadog.trace.instrumentation.api.AgentSpan; import java.net.URI; import lombok.extern.slf4j.Slf4j; import ratpack.handling.Context;...
/* Copyright 2006 Benjamin Livshits 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 2014-2018 Groupon, Inc * Copyright 2014-2018 The Billing Project, LLC * * The Billing 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...
/* * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/* * 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...
/** * PhotoEditorSample.java * @author Wooram Seo * @email rareboy0112@facebook.com */ package com.github.svieffect.sample; import java.io.InputStream; import java.util.Vector; import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.graphics.Bitmap; ...
package org.knowm.xchange.coincheck.service; import org.knowm.xchange.Exchange; import org.knowm.xchange.service.BaseExchangeService; import org.knowm.xchange.service.BaseService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CoincheckBaseService extends BaseExchangeService implements BaseServ...
package org.reveno.atp.utils; public abstract class MeasureUtils { public static int kb(int number) { return 1024 * number; } public static int mb(int number) { return 1024 * kb(number); } public static long gb(int number) { return 1024L * mb(number); } public st...
package de.materna.dmn.tester.helpers; import org.apache.commons.lang3.ArrayUtils; import org.bouncycastle.jcajce.provider.digest.SHA3; import java.nio.charset.StandardCharsets; import java.security.SecureRandom; public class HashingHelper { private static HashingHelper instance; private SHA3.Digest512 messageDige...
/* * 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 org.codelikethewind.embedded.util; import javax.annotation.PostConstruct; import javax.ejb.Singleton; import javax.ejb.Startup; @Singleton @Startup public class StartupBean { public static final String DEPLOYMENT_ID = "org.codelikethewind:simple-process:0.0.1-SNAPSHOT"; @PostConstruct public ...
package com.zendesk.maxwell.row; import com.zendesk.maxwell.producer.MaxwellOutputConfig; import com.zendesk.maxwell.replication.BinlogPosition; import com.zendesk.maxwell.replication.Position; import java.io.IOException; import java.util.ArrayList; /** * Created by ben on 9/7/16. */ public class HeartbeatRowMap e...
/* * 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...
package com.team.zhuoke.masterhelper.net.cookie; import android.content.Context; import android.content.SharedPreferences; import android.text.TextUtils; import android.util.Log; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; im...
package com.github.zhuyizhuo.jackson.sample.model; import com.github.zhuyizhuo.jackson.sample.constants.BaseConstant; /** * @author zhuo */ public class BaseResponse<T> { private String code; private String message; private T data; public BaseResponse() { } public BaseResponse(String code,...
package com.silentmatt.dss.evaluator; import java.io.IOException; import java.io.InputStream; import java.net.URL; /** * Gets input streams for resources given a URL. * * @author Matthew Crumley */ public interface ResourceLocator { InputStream openResource(URL url) throws IOException; }
package com.beginner.micromaster.contactlist; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; public class DetailActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS...
/* * Copyright 2016 Ratha Long * * 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 entitites; public final class Gift { private String productName; private Double price; private String category; public Gift(final String productName, final Double price, final String category) { this.productName = productName; this.price = price; this.category = catego...
// This is a generated file. Not intended for manual editing. package com.github.kumaraman21.intellijbehave.psi; import java.util.List; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElement; public interface JBehaveUri extends PsiElement { @NotNull List<JBehaveIpAddress> getIpAddressList(); @...