text
stringlengths
7
995k
package com.github.wxiaoqi.security.admin.mapper; import com.github.wxiaoqi.security.admin.entity.User; import org.apache.ibatis.annotations.Param; import tk.mybatis.mapper.common.Mapper; import java.util.List; public interface UserMapper extends Mapper<User> { public List<User> selectMemberByGroupId(@Param("groupI...
package org.onetwo.ext.ons.producer; import org.onetwo.common.spring.context.BaseImportRegistrar; import org.onetwo.common.utils.LangUtils; import org.onetwo.ext.ons.ONSProperties; import org.onetwo.ext.ons.annotation.EnableONSClient; import org.onetwo.ext.ons.producer.ONSTransactionProducerServiceImpl.FakeProducerSer...
/*- * #%L * Genome Damage and Stability Centre SMLM ImageJ Plugins * * Software for single molecule localisation microscopy (SMLM) * %% * Copyright (C) 2011 - 2020 Alex Herbert * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
package model; import java.sql.*; public class jdbc { public static void main(String[] args) throws ClassNotFoundException, SQLException { // TODO Auto-generated method stub Class.forName("com.mysql.jdbc.Driver"); Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/jsp","root",""); Sta...
/* * 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 2006 The Closure Compiler Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
package pt.ipp.estg.apigateway.filters.pre; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; public class SimpleFilter extends ZuulFilter { private static Logger log = Logger...
/* Copyright 2017 Digital Learning Sciences (DLS) at the University Corporation for Atmospheric Research (UCAR), P.O. Box 3000, Boulder, CO 80307 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 a...
package hudson.plugins.git; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import hudson.model.Cause; import hudson.model.FreeStyleProject; import hudson.model.FreeStyleBuild; import hudson.model.Result; import hudson.model.TaskListener; import hudson.plug...
/* * 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 entities; public class Retangulo { public double base; public double altura; public double area(){ return (base * altura)/2; } public double perimetro(){ return (base + altura) * 2; } public double diagonal(){ return Math.sqrt( bas...
package io.subutai.core.environment.rest.ui; import java.io.File; import java.security.AccessControlException; import java.util.ArrayList; import java.util.Collection; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; i...
/* Copyright Soramitsu Co., Ltd. 2016 All Rights Reserved. http://soramitsu.co.jp 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.connor.vanish; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.EntityDamageByBlockEvent; import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityTargetEvent; import org.bukkit.even...
package CompositeMode; public class DivideLeaf implements ArithmeticComponent { @Override public String generateArithmetic(String arithmatic) { return arithmatic + " / "; } @Override public boolean isBracket() { return false; } }
/* * 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 ...
/****************************************************************************** * Compilation: javac TowersOfHanoi.java * Execution: java TowersOfHanoi n * * Solves the Towers of Hanoi problem on n discs. The discs are labeled * in increasing order of size from 1 to n. * * % java TowersOfHanoi 3 * ...
/* * Copyright 2009-2017 PrimeTek. * * 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 us.ihmc.quadrupedRobotics.planning; import us.ihmc.euclid.referenceFrame.FramePoint3D; import us.ihmc.euclid.referenceFrame.ReferenceFrame; import us.ihmc.robotics.time.TimeInterval; import us.ihmc.robotics.time.TimeIntervalProvider; import us.ihmc.robotics.robotSide.QuadrantDependentList; import us.ihmc.robot...
/* * 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 not ...
/** * Copyright 2005-2019 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...
// This is a mutant program. // Author : ysma package com.beust.jcommander.converters; import com.beust.jcommander.ParameterException; public class BooleanConverter extends com.beust.jcommander.converters.BaseConverter<Boolean> { public BooleanConverter( java.lang.String optionName ) { super( opti...
package com.fsck.k9.preferences; /* * TODO: * - use the default values defined in GlobalSettings and AccountSettings when creating new * accounts * - think of a better way to validate enums than to use the resource arrays (i.e. get rid of * ResourceArrayValidator); maybe even use the settings description for...
//,temp,SnapshotDataStoreDaoImpl.java,164,219,temp,TemplateDataStoreDaoImpl.java,165,223 //,3 public class xxx { @Override public boolean updateState(State currentState, Event event, State nextState, DataObjectInStore vo, Object data) { TemplateDataStoreVO dataObj = (TemplateDataStoreVO)vo; Long...
package com.github.ardenliu.common.jdom2; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.jdom2.Document; import org.jdom2.input.SAXBuilder; import org.springframework.core.io.ClassPathResource; import org.springframework.util.StringUtils; public class JdomUtils { pr...
/* * Copyright 2019 The gRPC 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 agree...
package old.ui; import javafx.application.Platform; import javafx.scene.Cursor; import javafx.scene.control.Button; import javafx.scene.control.Hyperlink; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.scene.shape.Li...
package com.hanyu.cnba.precenters; import android.content.Context; import com.hanyu.cnba.models.IMatchModel; import com.hanyu.cnba.models.MatchInfoModel; import com.hanyu.cnba.models.MatchListModel; import com.hanyu.cnba.models.MatchListModelImpl; import com.hanyu.cnba.views.IMatchListView; import com.hanyu.cnba.view...
/* * Copyright (c) 2008-2016 Haulmont. * * 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 ...
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.robotcore.external.ClassFactory; import org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix; import org.firstinspires.ftc...
/* * Copyright 2016, 2017 DTCC, Fujitsu Australia Software Technology, IBM - 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...
/* * Copyright 2010 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...
// Copyright 2008-2010 Victor Iacoban // // 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 impl.utils; import cn.edu.sustech.cs307.database.SQLDataSource; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Objects; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; public class BatchedStatem...
package com.challenge.transfer.exchange.rate; import com.challenge.transfer.util.Currency; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDate; import java.util.Map; import java.util.Objects; class ExchangeRatesExternalDto implements Serializable { private static final long seria...
package com.devadmin.vicky.config; import org.springframework.beans.factory.config.PropertiesFactoryBean; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.ClassPathResource; @Configuration public class FormatConfig { ...
/** * package-info: * * @author: <a href="mailto:chengjs_minipa@outlook.com">chengjs_minipa</a>, * @version 0.0.1 @date: 2020-09-04 */ package redis;
/* * Copyright 2017 LINE Corporation * * LINE Corporation 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: * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
/* * Copyright 2019 liaochong * * 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 writin...
/** */ package org.eclipse.epf.uma.impl; import org.eclipse.emf.ecore.EClass; import org.eclipse.epf.uma.Phase; import org.eclipse.epf.uma.UmaPackage; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Phase</b></em>'. * <!-- end-user-doc --> * * @generated */ public class PhaseImpl...
/* Copyright 2011-2016 Google 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 by applicable law or agreed t...
package net.ninjacat.cql.shell; import net.ninjacat.cql.ShellContext; import net.ninjacat.cql.parser.Token; import org.fusesource.jansi.Ansi; import java.util.List; import static org.fusesource.jansi.Ansi.ansi; /** * Base interface for a shell command. */ @FunctionalInterface public interface ShellCommand { ...
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package vista; import com.itextpdf.text.Document; import com.itextpdf.text.PageSize; import com.itextpdf.text.pdf.PdfContentByte; import com.itextpdf.text.pdf.PdfWriter; import java.awt.BorderLayout; import java.awt.Gra...
/* * 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 org.zstack.storage.volume; import org.springframework.beans.factory.annotation.Autowired; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.cloudbus.CloudBusCallBack; import org.zstack.core.db.DatabaseFacade; import org.zstack.core.db.SimpleQuery; import org.zstack.core.db.SimpleQuery.Od; import...
/* * Copyright (C) 2011 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 ...
/*- * #%L * Elastic APM Java agent * %% * Copyright (C) 2018 - 2020 Elastic and contributors * %% * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. ...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
package cz.ak.odorak; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Locale; public class TimerHelper { HashMap<String, Long> mStartTime; HashMap<String, Long> mEndTime; HashMap<String, Long> mIntervalMs; SimpleDateFormat mDateFormat; public TimerHelper() { ...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.core.security.action.role; import org.elastic...
package com.ve.locker.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 角色枚举 * * @author yezhiqiu * @date 2021/07/28 */ @Getter @AllArgsConstructor public enum RoleEnum { /** * 管理员 */ ADMIN(1, "管理员", "admin"), /** * 普通用户 */ USER(2, "用户", "user"), /** ...
// 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.programmers.heavenpay.account.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import com.programmers.heavenpay.common.entity.BaseEntity; import com.programmers.heavenpay.finance.entity.Finance; import com.programmers.heavenpay.member.entity.Member; import javax.persistence.*; @Entity public c...
package org.pikater.shared.util; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; /** * Utility class for sending emails. * * @a...
package br.com.centralit.citcorpore.integracao; import java.util.ArrayList; import java.util.Collection; import java.util.List; import br.com.centralit.citcorpore.bean.ImagemHistoricoDTO; import br.com.citframework.dto.IDto; import br.com.citframework.excecao.PersistenceException; import br.com.citframework.integraca...
import java.util.*; class RearrangeArray{ public static void main(String[] args) { int[] n = {3, 2, 0, 1}; new RearrangeArray().rearrangeArr(n); } public void rearrangeArr(int[] n){ int z = getZ(n); enrichArr(n, z); getNewValues(n,z); printMe(n); } private vo...
package com.tjq.triple.common; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.util.concurrent.Future; /** * 存储引用变量 * * @author tjq * @since 2020/1/3 */ @Setter @Getter @NoArgsConstructor public class FutureStore<T> { private boolean success; private T data; ...
import com.google.gson.Gson; import com.instructure.canvasapi.model.Enrollment; import com.instructure.canvasapi.utilities.CanvasRestAdapter; import junit.framework.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.annotation.Config; @Config(emulateSdk = 17) @RunWith(RobolectricGra...
package org.mapfish.print.processor.http; import org.springframework.http.HttpMethod; import org.springframework.http.client.ClientHttpRequest; import org.springframework.test.context.ContextConfiguration; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import javax.annotation.Nul...
package fastjson.test; public class NNull { private String t; public String getT() { return t; } public void setT(String t) { this.t = t; } }
/* Jameleon - An automation testing tool.. Copyright (C) 2003 Christian W. Hargraves (engrean@hotmail.com) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either ve...
package fr.aumgn.diamondrush.listeners; import java.util.HashSet; import java.util.Set; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.entity.Entity; import org.bukkit.entity.HumanEntity; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPr...
/* * 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 ...
/* * 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 2016-2021 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...
package com.acgist.esceurekaconfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.config.server.EnableConfigServer; @EnableConfigServer @E...
/* * Copyright 2002-2016 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 net.glowstone.entity.projectile; import com.flowpowered.network.Message; import jline.internal.Nullable; import lombok.Getter; import lombok.Setter; import net.glowstone.EventFactory; import net.glowstone.entity.GlowEntity; import net.glowstone.net.message.play.entity.EntityMetadataMessage; import net.glowston...
package seedu.address.logic.parser; import static java.util.Objects.requireNonNull; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.logic.parser.CliSyntax.PREFIX_ADDRESS; import static seedu.address.logic.parser.CliSyntax.PREFIX_BLOODTYPE; import static see...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 1997-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution Licens...
package com.morrisz.tools.samples; import com.morrisz.tools.samples.dao.SysUserDAO; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.tes...
package com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.nodes; import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.animals.desert.*; import com.zipcode.justcode.clamfortress.ClamFortress.models.game.models.nodes.biomes.*; import com.zipcode.justcode.clamfortress.ClamFortress.mod...
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_6432 { }
package com.oath.oak; import org.junit.Test; import java.nio.ByteBuffer; import java.util.Iterator; import java.util.Map; import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.fail; public class UnsafeUtilsTest { @Test public ...
/* * Copyright 2000-2010 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.apache.velocity.util; /* * 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, V...
package com.qiriver.spring.user; import lombok.Data; @Data public class User { private String name; private Long age; public User() { } public User(String name, Long age) { this.name = name; this.age = age; } }
package com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.headeramqp; import com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.codes.AMQPType; import com.mobius.software.android.iotbroker.main.iot_protocols.amqp.classes.codes.HeaderCodes; import com.mobius.software.android.iotbr...
// // Este arquivo foi gerado pela Arquitetura JavaTM para Implementação de Referência (JAXB) de Bind XML, v2.2.8-b130911.1802 // Consulte <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Todas as modificações neste arquivo serão perdidas após a recompilação do esquema de origem. // Gerado ...
/** * 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 (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software;Designed and Developed mainly by many Chinese * opensource volunteers. you can redistribute it and/or modify it under the * terms ...
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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 ru.stqa.project.sandbox; public class Rectangle { public double a; public double b; public Rectangle(double a, double b) { this.a = a; this.b = b; } public double area() { return this.a * this.b; } }
package com.algorand.algosdk.transaction; import com.algorand.algosdk.crypto.Address; import com.algorand.algosdk.crypto.Digest; import com.algorand.algosdk.util.Digester; import com.algorand.algosdk.util.Encoder; import com.fasterxml.jackson.annotation.*; import java.io.IOException; import java.io.Serializable; imp...
package com.interview.sort; /** * http://en.wikipedia.org/wiki/Merge_sort * Test cases * 1 element * 2 element * negative numbers * already sorted * reverse sorted */ public class MergeSort { public void sort(int input[]){ sort(input, 0, input.length-1); } private void sort(int input[...
/* * Copyright (c) 2009-2016, b3log.org & hacpai.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 required by applica...
/* * Copyright © 2016 David Sargent * 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, merge, publish, dis...
// Copyright (c) 2003-present, Jodd Team (http://jodd.org) // 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 de.skuzzle.stringz; import de.skuzzle.stringz.annotation.ResourceMapping; import de.skuzzle.stringz.strategy.FieldMapper; import de.skuzzle.stringz.strategy.FieldMapperFactory; import de.skuzzle.stringz.strategy.FieldMapperException; /** * Factory implementation which creates {@link DefaultFieldMapper} insta...
/****************************************************************************** * Copyright (c) 2011 IBM Corporation. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at ...
package module953packageJava0; import java.lang.Integer; public class Foo206 { Integer int0; Integer int1; Integer int2; public void foo0() { new module953packageJava0.Foo205().foo4(); } public void foo1() { foo0(); } public void foo2() { foo1(); } public void foo3() { foo2()...
/* * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.io; /** * Signals that an end of file or end of stream has been reached * unexpectedly ...
package final_project_evanliu_v3; import javafx.scene.image.Image; import javafx.scene.image.ImageView; public abstract class Unit extends ImageView { protected double deltaX, deltaY; public Unit() { } public Unit(String imgName) { setImage(new Image(imgName)); } ...
/* * MIT License * * Copyright (c) 2019 Adrien Belminksy and other contributors * * 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 ...
/* * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * */ package org.graalvm.compiler.core.test; import java.io.Serializable; import org.graalvm.compiler.test.Subp...
package cfs; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.Random; public class Classifier { static char[] alphabet = { '0', '1', '#' }; char[] condition; char[] action; double strength; double specifity; ...
package com.alibaba.com.caucho.hessian.io.java8; import com.alibaba.com.caucho.hessian.io.HessianHandle; import java.io.Serializable; import java.lang.reflect.Method; @SuppressWarnings("unchecked") public class LocalDateTimeHandle implements HessianHandle, Serializable { private static final long serialVersionUI...
package org.broadinstitute.ddp.housekeeping.message; import java.util.Collection; import java.util.Collections; import java.util.Optional; import com.google.gson.annotations.SerializedName; import org.broadinstitute.ddp.db.dto.NotificationTemplateSubstitutionDto; import org.broadinstitute.ddp.model.event.Notification...