text
stringlengths
7
995k
package com.book.chapter5_file_browser; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an ...
package org.spongycastle.util.encoders.test; import java.io.IOException; import org.spongycastle.util.Arrays; import org.spongycastle.util.Strings; import org.spongycastle.util.encoders.Base64; import org.spongycastle.util.encoders.Base64Encoder; import org.spongycastle.util.encoders.DecoderException; import org.spon...
/******************************************************************************* * 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...
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
/** * */ package org.activiti.engine.extend.persistence.entity; import java.util.HashMap; import java.util.Map; import org.activiti.engine.extend.biz.Biz; import org.activiti.engine.impl.db.BulkDeleteable; import org.activiti.engine.impl.db.PersistentObject; /** * <p> * <h3>niutal框架 * <h3>说明:BizEntity * <p> ...
/* ** ** Copyright 2018, 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 appl...
package fr.miage.m2; import fr.miage.m2.job.Dice; import fr.miage.m2.job.Game; import fr.miage.m2.job.Player; import fr.miage.m2.job.Points; import javafx.application.Application; import javafx.application.Platform; import javafx.fxml.FXMLLoader; import javafx.geometry.Insets; import javafx.scene.Parent; import javafx...
package com.purbon.kafka.topology; import static com.purbon.kafka.topology.CommandLineInterface.*; import static com.purbon.kafka.topology.Constants.*; import static com.purbon.kafka.topology.model.SubjectNameStrategy.TOPIC_NAME_STRATEGY; import static com.purbon.kafka.topology.model.SubjectNameStrategy.TOPIC_RECORD_N...
package net.scapeemulator.game.dispatcher.grounditem; import net.scapeemulator.game.model.Option; import net.scapeemulator.game.model.Position; import net.scapeemulator.game.model.player.Player; import net.scapeemulator.game.model.player.action.PickupItemAction; import net.scapeemulator.game.util.HandlerContext; publ...
package com.github.shoothzj.javatool.util; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; class HexUtilTest { @Test public void testHexStr2ByteArray() { byte[] bytes = HexUtil.hexStrToByteArray("st"); byte[] expected = new byte[]{-17}; Assertions.assertEqu...
package com.linkedin.databus.core.util; /* * * Copyright 2013 LinkedIn Corp. 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/L...
package dukecooks.testutil.profile; import java.util.Set; import java.util.stream.Collectors; import java.util.stream.Stream; import dukecooks.logic.commands.profile.EditProfileCommand; import dukecooks.model.common.Name; import dukecooks.model.profile.medical.MedicalHistory; import dukecooks.model.profile.person.Per...
package org.firstinspires.ftc.teamcode.opmodes.autonomous; enum StartPosition { CRATER, DEPOT }
/* * Copyright (C) 2011-2016 Markus Junginger, greenrobot (http://greenrobot.org) * * This file is part of greenDAO Generator. * * greenDAO Generator 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, eith...
/** * Copyright 2020 Tianshu AI Platform. 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 a...
package ninckblokje.ping.pong.openliberty.resource; import javax.servlet.http.HttpServletRequest; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.Context; import java.net.InetAddress; import java.net.UnknownHostException; import java.time.OffsetDateTime; import ja...
package Feb2021Leetcode; import java.util.HashMap; public class _0325MaximumSizeSubarraySumEqualsk { public static void main(String[] args) { System.out.println(maxSubArrayLen(new int[] { 1, -1, 5, -2, 3 }, 3)); System.out.println(maxSubArrayLen(new int[] { -2, -1, 2, 1 }, 1)); } public static int maxSubArra...
// This is mutant program. // Author : ysma public class QuickSort { public static void quickSort( int[] list ) { quickSort( list, 0, list.length - 1 ); } private static void quickSort( int[] list, int first, int last ) { if (last > first) { int pivotIndex = partition(...
/* Copyright 2013 Nationale-Nederlanden 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 (C) 2014 barreiro. All Rights Reserved. */ package net.projecteuler.barreiro.problem; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Take the number 192 and multiply it by each of 1, 2, and 3: * 192 × 1 = 192 * 192 × 2 = 384 * 192 × 3 = 576 * By concatenating each produc...
package com.crowdin.cli.properties; import com.crowdin.cli.commands.Outputter; import com.crowdin.cli.utils.file.FileUtils; import org.apache.commons.lang3.StringUtils; import java.io.File; import java.util.Map; import static com.crowdin.cli.properties.PropertiesBuilder.CONFIG_FILE_PATH; public class PropertiesBuil...
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.lang.parser.coercers; public class BytePHighPriorityCoercer extends BasePHighPriorityCoercer { private static final BytePHighPriorityCoercer INSTANCE = new BytePHighPriorityCoercer(); public BytePHighPriorityCoercer() { super( BasePrimitiveCoerce...
package net.sunxu.mybatis.automapper.processor.mapper.mapper; import com.google.inject.Inject; import net.sunxu.mybatis.automapper.processor.environment.EnvironmentHelper; import net.sunxu.mybatis.automapper.processor.environment.MessageHelper; import net.sunxu.mybatis.automapper.processor.mapper.entity.EntityIndex; i...
package net.twasi.obsremotejava.requests.GetVersion; import com.google.gson.annotations.SerializedName; import net.twasi.obsremotejava.requests.ResponseBase; public class GetVersionResponse extends ResponseBase { @SerializedName("obs-websocket-version") private String obsWebsocketVersion; @SerializedName(...
package org.cemrc.correlator.controllers; import java.awt.image.BufferedImage; import java.awt.image.ColorModel; import java.awt.image.WritableRaster; import javafx.embed.swing.SwingFXUtils; import javafx.scene.effect.ColorAdjust; import javafx.scene.image.Image; /** * JavaFX ColorAdjust causes issues when aligning...
/* * * Copyright 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...
/* * 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 (c) 2017 m2049r * * 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...
/* 204. Count Primes Count the number of prime numbers less than a non-negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than 10, they are 2, 3, 5, 7. */ class Solution { public int countPrimes(int n) { int count = 0; for (int i = 0; i < n; i++) { ...
/******************************************************************************* * Copyright 2012 Apigee Corporation * * 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....
package ma.vi.base.collections; import java.util.Iterator; /** * An iterator over characters in character sequence. * * @author Vikash Madhow (vikash.madhow@gmail.com) */ public class CharIterator implements Iterator<Character> { /** * Creates an iterator that will iterate over the provided items */ pub...
package fr.itris.glips.extension.jwidget.combo.runtime.actions; import java.util.*; import javax.swing.*; import org.w3c.dom.*; import fr.itris.glips.rtda.*; import fr.itris.glips.rtda.action.*; import fr.itris.glips.rtda.animaction.*; import fr.itris.glips.rtda.components.picture.*; import fr.itris.glips.rtda.jwidget...
package Db; import java.util.ArrayList; import Mdl.*; public interface IFDBpartOrder { public ArrayList<partOrder> getAllpartOrders(); public partOrder getPartOrder(int id); public ArrayList<partOrder> findAllPartOrdersByOrder(int orderId); //insert a new customer public partOrder ...
package org.incendo.serverlib.util; import java.util.logging.Level; import java.util.logging.Logger; import java.util.regex.Matcher; import java.util.regex.Pattern; public class JavaVersionCheck { private final static java.util.logging.Logger logger = Logger.getLogger(JavaVersionCheck.class.getName()); priv...
package local.alfonso.gdp; import local.alfonso.gdp.model.GDP; import java.util.Comparator; public class GDPComp implements Comparator<GDP>{ @Override public int compare(GDP o1, GDP o2) { return Long.compare(o2.getGdp(), o1.getGdp()); } }
package uk.ac.cam.cares.jps.bio; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.ht...
package com.pingr.Accounts.Accounts; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import java.util.HashMap; import java.util.Map; @JsonSerialize public class AccountCreatedEvent { @JsonProperty private final String eventType; @Json...
/* * Vertex Platform API * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes ab...
package com.tvd12.ezymq.kafka.testing; public class KafkaBaseTest { public final static String BOOTSTRAP_SERVERS = "localhost:9092"; public final static String TOPIC = "my-example-topic"; }
package com.lion.manage.service.build.impl; import com.lion.common.constants.RedisConstants; import com.lion.core.common.dto.DeleteDto; import com.lion.core.service.impl.BaseServiceImpl; import com.lion.exception.BusinessException; import com.lion.manage.dao.build.BuildFloorDao; import com.lion.manage.dao.region.Regio...
/** * Copyright © 2016 Agro-Know, Deutsches Forschungszentrum für Künstliche Intelligenz, iMinds, * Institut für Angewandte Informatik e. V. an der Universität Leipzig, * Istituto Superiore Mario Boella, Tilde, Vistatec, WRIPL (http://freme-project.eu) * * Licensed under the Apache License, Version 2.0 (the "Licen...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. The ASF 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 * * ...
package org.eop.expreval.kpi.builder.node; import java.util.ArrayList; import java.util.List; import org.eop.expreval.kpi.Expression; import org.eop.expreval.kpi.builder.Node; /** * 实现函数参数 * @author lixinjie * @since 2018-06-15 */ public class StandardParam extends AbstractNode implements Param { private List<...
package uk.ac.soton.ecs.jsh2.ml101; import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; import java.io.IOException; import jav...
package com.ruoyi.file; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class EasyFsApplication { public static void main(String[] args) { SpringApplication.run(EasyFsApplication.class, args); } }
/* * 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...
/** * Copyright 2010-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...
package main.java.me.creepsterlgc.core.commands; import java.util.ArrayList; import java.util.List; import java.util.Optional; import main.java.me.creepsterlgc.core.customized.CoreDatabase; import main.java.me.creepsterlgc.core.customized.CoreMute; import main.java.me.creepsterlgc.core.customized.CorePlayer; import m...
package benchmarks.CLEVER.is_prime1.Eq; public class newV { int NUMPRIMES = 8; int[] primes = { 2, 3, 5, 7, 11, 13, 17, 19 }; private boolean lib(int x, int b) { if (b == 0) { return false; } else { for (int i = 0; i < NUMPRIMES; i++) { int mod = x % primes[i]; if (mod == 0) return x == primes[...
/* * Copyright 2016 Carlos Ballesteros Velasco * * 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...
/* * 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 sanzol.se.web.controllers; import static sanzol.app.config.I18nPreference.getI18nString; import java.io.IOException; import java.io.Serializable; import javax.inject.Named; import org.omnifaces.cdi.ViewScoped; import sanzol.se.commons.FacesUtils; import sanzol.se.context.RequestContext; import sanzol.se.mo...
package com.fanweilin.coordinatemap.computing; import android.app.Activity; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * Created by AndreBTS on 25/09/2015. */ public class CheckNetwork { public static boolean isConnected(Context context){ ...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/** * Copyright 2013 Cloudera 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 2018 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 writi...
package uk.gov.hmcts.reform.em.npa.config.audit; /** * Enum for the different audit actions */ public enum EntityAuditAction { CREATE("CREATE"), UPDATE("UPDATE"), DELETE("DELETE"); private String value; EntityAuditAction(final String value) { this.value = value; } public String...
/* * The MIT License * * Copyright 2016 njacinto. * * 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, modify...
package pl.straburzynski.packt.ebook.controller; import org.apache.commons.lang.CharEncoding; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.http.MediaType; import org.springframework.test.web.se...
/* * 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 n...
package com.baqw.gulimall.product.controller; import java.util.Arrays; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annot...
package com.mytube; public class SqlVideoDatabase implements VideoDatabase { @Override public void store(Video video) { System.out.println("Storing video metadata in a SQL database..."); System.out.println("Title: " + video.getTitle()); System.out.println("File Name: " + video.getFileNa...
/** * */ /** * @author superman * */ package dai.hris.service.login;
package cn.lee.hackerrank.tutorials.satistics10day.Day05.Normal_Distribution_I; import org.apache.commons.math3.special.Gamma; /** * https://www.hackerrank.com/challenges/s10-normal-distribution-1/problem * <pre> * Objective * In this challenge, we learn about normal distributions. Check out the Tutorial tab ...
package com.hsun.mango; /** * @author hsun * @version 1.0 * @since 2017/6/23 下午3:28 */ public class MangoField { private String name; private String type; private String column; private String comment; private String sql; public String getName() { return name; } publi...
package org.batfish.datamodel.flow; import static com.google.common.base.Preconditions.checkArgument; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.batfi...
package hellos; /** * A simple Java program used to demonstrate merge conflicts when * multiple people edit the same piece of code. */ public class Hellos { public static void main(String[] args) { Hellos helloRunner = new Hellos(); helloRunner.run(); } public void run() { String output = genera...
/* * << * Davinci * == * Copyright (C) 2016 - 2019 EDP * == * 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 requi...
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2018 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 ...
package com.capitalone.dashboard.config.monitor; import java.net.Authenticator; import java.net.InetSocketAddress; import java.net.PasswordAuthentication; import java.net.Proxy; import java.util.Locale; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import o...
/* * Copyright (c) 2016. All rights reserved. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS". * IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES. * * Author: Florin Bogdan Balint...
package io.ray.streaming.python.stream; /** * A marker interface used to identify all python streams. */ public interface PythonStream { }
/* * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ package com.microsoft.azure.servicebus.primitives; import java.util.Iterator; final class IteratorUtil { private IteratorUtil() { } public static <T> boole...
package com.github.booknara.nioexample; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; /** * Created by Daehee Han(@daniel_booknara) on 2/12/16. */ public class SocketChannelExample { public static final String URL_ADDRESS = "ht...
package apolang.instructions.statement.arithmetic; import apolang.exceptions.LanguageException; import apolang.exceptions.arithmetic.DivisionByZeroException; import apolang.instructions.ArgumentType; import apolang.instructions.statement.Statement; import apolang.instructions.statement.StatementName; import apolang.in...
/** * Copyright (C) 2016 - 2030 youtongluan. * * 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...
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.caffeine.load; import java.net.URISyntaxException; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.apache.camel.spi.EndpointUriFacto...
package com.mapswithme.maps.bookmarks; import android.app.DownloadManager; import android.content.Context; import android.net.Uri; import android.text.TextUtils; import android.util.Pair; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.mapswithme.maps.Framework; import com.mapswith...
/* The MIT License Copyright (c) 2010-2021 Paul R. Holser, Jr. 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, mod...
/** * Copyright (C) 2015 Fernando Cejas Open Source Project * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless requ...
package edu.isi.karma.controller.command.worksheet; import javax.servlet.http.HttpServletRequest; import org.json.JSONArray; import org.json.JSONException; import edu.isi.karma.controller.command.Command; import edu.isi.karma.controller.command.JSONInputCommandFactory; import edu.isi.karma.controller.history.History...
package no.nav.foreldrepenger.web.app.tjenester.behandling.beregningsgrunnlag; import static no.nav.vedtak.sikkerhet.abac.BeskyttetRessursActionAttributt.READ; import static no.nav.vedtak.sikkerhet.abac.BeskyttetRessursResourceAttributt.FAGSAK; import javax.enterprise.context.RequestScoped; import javax.inject.Inject...
/** * Copyright Pravega 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...
/*** * Cloudstreetmarket.com is a Spring MVC showcase application developed * with the book Spring MVC Cookbook [PACKT] (2015). * Copyright (C) 2015 Alex Bretet * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published...
package com.som.android.mynewcustomlistview; import android.content.res.Resources; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ListView; import android.widget.Toast; import java.util.ArrayList; public class MainActivity extends AppCompatActivity { ListView ...
/* * Copyright 2017 Exorath * * 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 DAO; import DAO.Util.Conexion; import DAO.Util.CredencialesInexistentesException; import Domain.Util.TipoUser; import Domain.Util.Usuario; import javax.persistence.EntityManager; import javax.persistence.NoResultException; public class DAOBdUsuario implements UsuarioDAO { private EntityManager manager; ...
package org.deeplearning4j.nn.conf.layers; import lombok.*; import org.deeplearning4j.nn.api.Layer; import org.deeplearning4j.nn.api.ParamInitializer; import org.deeplearning4j.nn.conf.CacheMode; import org.deeplearning4j.nn.conf.InputPreProcessor; import org.deeplearning4j.nn.conf.NeuralNetConfiguration; import org.d...
package com.epam.jdi.uitests.core.initialization; /** * Created by Roman Iovlev on 14.02.2018 * Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev */ import com.epam.jdi.tools.map.MapArray; import static com.epam.jdi.uitests.core.settings.JDISettings.exception; public final class MapInterfaceToElement { ...
package _01_Interfaces_EXEC._09_Collection_Hierarchy; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); AddCollection addCollection = new AddCollectionImpl(); RemoveCollection removeCollection = new RemoveCollection...
package org.hl7.fhir.dstu3.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 co...
// // Initial version // public class Solution { // /** // * @param matrix: a matrix of 0 an 1 // * @return: an integer // */ // public int maxSquare2(int[][] matrix) { // if (matrix == null || matrix.length == 0 || // matrix[0] == null || matrix[0].length == 0) { // ...
package org.bouncycastle.crypto.agreement.jpake; import java.math.BigInteger; /** * A pre-computed prime order group for use during a J-PAKE exchange. * <p> * Typically a Schnorr group is used. In general, J-PAKE can use any prime order group * that is suitable for public key cryptography, including elliptic cur...
package com.example.instagramido; import android.app.Application; import com.parse.Parse; import com.parse.ParseObject; public class ParseApplication extends Application { @Override public void onCreate() { super.onCreate(); ParseObject.registerSubclass(Post.class); // set applicatio...
package in.jaxer.sdbms; import in.jaxer.core.constants.DbDriverClassNames; import in.jaxer.core.utilities.JValidator; import java.io.File; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /** * * @author Shakir Ansari */ public class DbConnectionHelper { public static Conn...
/* * Encog(tm) Core v3.4 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2017 Heaton Research, 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...
package hu.szeba.hades.main.io; import java.io.File; import java.io.IOException; public class SingleDataFile extends DataFile { public SingleDataFile(File file) throws IOException { super(file, "\t"); } public SingleDataFile(SingleDataFile file) { super(file); } }
package com.simibubi.create.content.contraptions.components.press; import java.util.ArrayList; import java.util.List; import java.util.Optional; import com.simibubi.create.AllRecipeTypes; import com.simibubi.create.AllSoundEvents; import com.simibubi.create.content.contraptions.processing.BasinOperatingTileEntity; im...
package com.scalar.db.storage.dynamo; import com.scalar.db.api.Operation; import com.scalar.db.api.TableMetadata; import com.scalar.db.io.Value; import com.scalar.db.storage.cosmos.ConcatenationVisitor; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Optional; import javax...
package edu.berkeley.kaiju.service.request.handler; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import edu.berkeley.kaiju.data.DataItem; import edu.berkeley.kaiju.exception.HandlerException; import edu.berkeley.kaiju.service.request.RequestDispatcher; import edu.berkeley.kaiju.servic...