text
stringlengths
7
1.01M
/* 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 use this f...
/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights r...
// Copyright 2018-2020 Polyaxon, 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 agre...
package io.onee.framework.log.dubbo; import com.alibaba.dubbo.rpc.*; import com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation; import io.onee.framework.log.util.IdUtil; import org.slf4j.MDC; /** * Dubbo 日志跟踪过滤器 * 在 consumer和 provider中配置此过滤器,会自动提取 invocation的中的 traceId并传递下去 * 过滤器会提取请求方的 ip,无需手动处理 * * @...
package com.example.demo.biz.service.impl; import com.example.demo.biz.service.DemoService; import com.example.demo.dao.entity.BookInfo; import com.example.demo.dao.mapper.BookInfoMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; /** * @program: demo * @description: service接口...
/* * Copyright 2013-2018 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 mage.cards.t; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.DrawCardControllerTriggeredAbility; import mage.abilities.common.LeavesBattlefieldTriggeredAbility; import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.effects.Effect; import...
/** * Copyright 2010 The Apache Software Foundation * * 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...
/* * 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...
package fogaiht.ajudeajoice; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.ImageButton; /** * Created by thiag on 05/10/2016. */ public cla...
package org.iproduct.spring.rabbitmq.web; import org.iproduct.spring.rabbitmq.config.DestinationsConfig; import org.iproduct.spring.rabbitmq.rabbitmq.MessageListenerContainerFactory; import org.springframework.amqp.core.*; import org.springframework.amqp.rabbit.listener.MessageListenerContainer; import org.springframe...
/* * Copyright 2016-present Open Networking Foundation * * 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 appli...
package ve.com.abicelis.cryptomaster.data.remote; /** * Created by abicelis on 24/5/2018. */ public interface CryptoCompareApi { }
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
package io.crnk.core.engine.filter; import io.crnk.core.engine.http.HttpMethod; import io.crnk.core.engine.information.resource.ResourceField; import io.crnk.core.engine.information.resource.ResourceInformation; import io.crnk.core.engine.query.QueryContext; public interface ResourceFilterDirectory { /** * Checks...
package com.planet_ink.coffee_mud.Abilities.Songs; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import ...
/* * 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...
package com.mapr.monitoring.properties; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; @ConfigurationProperties("monitoring") @Data public class MonitoringPluginProperties { private String[] streams; private String clusterHost; }
package org.antonakospanos.movierama.dao.model; import org.hibernate.annotations.CacheConcurrencyStrategy; import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicUpdate; import javax.persistence.*; import java.io.Serializable; import java.time.ZonedDateTime; import java.util.HashSet;...
package com.redhat.demo.robotservice.rest; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; import com.redhat.demo.robotservice.model.Cmd; import javax.enterprise.context.RequestScoped; import javax.ws.rs.Consumes; import javax.ws.rs.POST; import javax.ws.rs.core.MediaType; @RegisterRestClient ...
/** SearchSortingTest.java */ public class SearchSortingTest { /** Question: Searching a sorted array * Given a sorted array of integers and a target value, write a function that finds the index of the target value in the array. * Time: O(n log n) * Space: O(1) */ public static int findValueIndex(int[] s...
package br.com.fadam.ads.poo.castings; public class B extends 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 may ...
double[][] transpose(double[][] d) { double[][] r = new double[d[0].length][d.length]; for (int i = 0; i < d.length; i++) for (int j = 0; j < d[0].length; j++) r[j][i] = d[i][j]; return r; }
// // 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: 2018.02....
/* * Copyright (C) 2018 CyberAgent, 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 agree...
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
/* * Copyright (C) 2013-2015 RoboVM AB * * 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 net.wukl.cacofony.http2.frame; import net.wukl.cacofony.http2.ErrorCode; import java.util.Collections; import java.util.Set; /** * A GOAWAY frame. * * Initiates the shutdown of a connection and signals serious error conditions. * * @see <a href="https://tools.ietf.org/html/rfc7540#section-6.8">RFC 7540 ...
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2014 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package ti.modules.titanium.analytics; import java.util.HashMap; import java.util...
package seedu.address.logic.parser; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.logic.parser.CommandParserTestUtil.assertParseFailure; import static seedu.address.logic.parser.CommandParserTestUtil.assertParseSuccess; import static seedu.address.testuti...
package misc.treeview; import java.util.*; import static org.junit.Assert.*; import org.junit.*; public class SolutionTest { Solution sol; @Before public void setup() { sol = new Solution(1); sol.add(1, 2, 3); sol.add(2, 0, 4); sol.add(3, 5, 6); sol.add(6, 0, 7); ...
package com.skytala.eCommerce.domain.order.relations.requirement.event.status; import com.skytala.eCommerce.framework.pubsub.Event; import com.skytala.eCommerce.domain.order.relations.requirement.model.status.RequirementStatus; public class RequirementStatusAdded implements Event{ private RequirementStatus addedReq...
package com.fluttercandies.flutter_qweather; /// 调试打印 public class DebugPrint { private static boolean _debug = false; public static void setDebug(boolean debug) { if (_debug != debug){ System.out.println("com.fluttercandies.qweather: 设置调试模式:" + debug); _debug = debug; ...
package org.kie.trusty.xai.explainer.local.saliency; import org.kie.trusty.xai.explainer.local.LocalExplanationProvider; import org.kie.trusty.xai.model.Prediction; import org.kie.trusty.xai.model.Saliency; public interface SaliencyLocalExplanationProvider extends LocalExplanationProvider<Saliency> { Saliency ex...
package structuralAnalysis; import java.io.File; import java.util.ArrayList; import java.util.List; /** * Created by neilwalkinshaw on 24/10/2017. */ public class ClassDiagram { /** * Given a package name and a directory returns all classes within that directory * @param directory * @param pkgn...
/* * Copyright 2017-2022 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...
// Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.bullet.BulletCollision; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import org.bytedeco.bullet.LinearMath.*; import static or...
/******************************************************************************* * Copyright (c) 2021 Mountainminds GmbH & Co. KG * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PUR...
package org.codehaus.enunciate; /** * Assembles the whole Enunciate app, with CXF and Spring support, without compilation or packaging of the war. * For use with the "war" packaging. * * @goal assemble * @extendsPlugin enunciate * @phase process-sources * @requiresDependencyResolution test * * @author Ryan He...
//Deobfuscated with https://github.com/PetoPetko/Minecraft-Deobfuscator3000 using mappings "1.12 stable mappings"! /* * Decompiled with CFR 0.150. * * Could not load the following classes: * net.minecraft.block.BlockLiquid * net.minecraft.entity.Entity * net.minecraft.entity.item.EntityBoat * net.minecraft...
/* * Copyright 2019 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 "license" fil...
/******************************************************************************* * Copyright (c) 2014 SAP AG or an SAP affiliate 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 a copy ...
package gregtech.common.covers; import gregtech.api.GregTech_API; import gregtech.api.interfaces.tileentity.ICoverable; public class GT_Cover_RedstoneTransmitterInternal extends GT_Cover_RedstoneWirelessBase { public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariabl...
/* * 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...
/* * 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 lab5; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.Comparator; import java.util.Random; import java.util.Arrays; public class Matrix { private int defaultSize = 200; private double[][] _Matrix = new double[defaultSize][defaultSize]; private...
package com.lib.java.observer; /** * @author :huangguofeng * date :2021/7/19 * package :com.lib.java.observer * desc : */ public abstract class Observer { protected Game game; public abstract void update(); }
package javaselast.lessons.lesson06; import java.io.File; import java.io.*; public class FileRead { public static void main(String[] args) { File file = new File("e:/s.csv"); try (BufferedReader bufferedReader = new BufferedReader(new FileReader(file)) ) { // in...
/* * The MIT License * * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Olivier Lamy * * 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, inclu...
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. package com.oracle.wls.exporter; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.net.InetAddress; import java.net.UnknownHos...
/* * This file is part of Noise, licensed under the MIT License (MIT). * * Copyright (c) Flow Powered <https://github.com/flow> * Copyright (c) SpongePowered <https://github.com/SpongePowered> * Copyright (c) contributors * * Original libnoise C++ library by Jason Bevins <http://libnoise.sourceforge.net> * jlib...
package org.pantsbuild.example.lib; public class ExampleLib { public static String hello() { return "Hello, World!"; } }
package pt.rfernandes.bubbletweet.model; import android.net.Uri; import androidx.room.Entity; import androidx.room.PrimaryKey; @Entity public class CustomUser { @PrimaryKey(autoGenerate = true) private long id; private String userSecret; private String name; private String email; private String photoUrl;...
package com.qingchi.server.service; import com.qingchi.base.config.AppConfigConst; import com.qingchi.base.common.ResultVO; import com.qingchi.base.constant.CommonStatus; import com.qingchi.base.constant.PayType; import com.qingchi.base.constant.status.UserStatus; import com.qingchi.base.model.user.UserDO; import com....
package light.dataprovider.xlsx; import light.dataprovider.exceptions.CellNotFoundException; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellType; import java.nio.charset.Charset; public class CellParser { private Cell cell; publ...
package com.udacity.jdnd.course3.critter.entity; import org.hibernate.annotations.Nationalized; import org.hibernate.annotations.Type; import javax.persistence.*; import java.util.List; import java.util.Set; @Entity public class Customer extends User{ @Type(type = "nstring") @Column(length = 500) priva...
package hm.binkley.layers.dnd.item; import hm.binkley.layers.Layer; import hm.binkley.layers.Layers; import hm.binkley.layers.ScratchLayer; import hm.binkley.layers.rules.BaseRule; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static hm.binkley.layers.Layers.firstLayer; import sta...
package com.els.baiwei.mapper; import com.els.baiwei.model.MsgContent; public interface MsgContentMapper { int deleteByPrimaryKey(Integer id); int insert(MsgContent record); int insertSelective(MsgContent record); MsgContent selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(MsgCo...
package com.siiconcatel.taskling.core.infrastructurecontracts.criticalsections; public enum CriticalSectionType { User(0), Client(1); private int numVal; CriticalSectionType(int numVal) { this.numVal = numVal; } public int getNumVal() { return numVal; } }
/* * 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 it_fr.sap_un.osg.estimator; public interface IEstimator { public void newSample(int value, long latency); public long getAverageLatency(int value); }
/* * 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 il.ac.technion.ie.utils; import il.ac.technion.ie.data.structure.BitMatrix; import il.ac.technion.ie.data.structure.DBRecord; import il.ac.technion.ie.data.structure.SetPairIF; import il.ac.technion.ie.model.RecordSet; import org.enerj.core.SparseBitSet.Iterator; import org.hyperic.sigar.Mem; import org.hyperi...
// Copyright 2014 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 ...
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: SimpleAddressIncheon.java package address; // Referenced classes of package address: // Address public class SimpleAddres...
/* * 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 ma...
class Solution { public String pushDominoes(String dominoes) { //Converting string to character array so that we can traverse and process each character individually char[] domino_char= dominoes.toCharArray(); //Calculating size of our array int size= domino_char.length; //De...
package ac.soton.xeventb.xcontext.ide.contentassist.antlr.internal; import java.io.InputStream; import org.eclipse.xtext.*; import org.eclipse.xtext.parser.*; import org.eclipse.xtext.parser.impl.*; import org.eclipse.emf.ecore.util.EcoreUtil; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.parser.antlr...
/* * Licensed to Metamarkets Group Inc. (Metamarkets) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. Metamarkets licenses this file * to you under the Apache License, Version 2.0 (the * "License"); yo...
package com.dfsek.tectonic.api.config.template.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Specifies that this field has been assigned a default value, and not to throw an exception...
/* * 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.sofl.soptorshi.client; import com.vaadin.flow.component.UI; import com.vaadin.flow.component.page.History; public class ViewUtil { }
/* * Copyright 2017-2022 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. See License in the project root for license information. // ------------------------------------------------------------------------------ pa...
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
package com.platform.entity; import java.io.Serializable; public class RevisionVo implements Serializable { private static final long serialVersionUID = 1L; private Integer oId; private Integer revisionDataType; private Integer revisionDataId; private String revisionData; private Integer revi...
package com.jsh.action.basic; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.sql.Timestamp; import java.util.HashMap; import java.util.List; impo...
/* * Copyright 2010-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.zupcat.property; import com.zupcat.dao.SerializationHelper; import com.zupcat.model.DataObject; import com.zupcat.model.DatastoreEntity; import com.zupcat.model.config.PropertyMeta; import org.apache.commons.codec.binary.Base64; import java.io.Serializable; public final class ComplexAnyProperty<T> extend...
/* * eGov SmartCity eGovernance suite aims to improve the internal efficiency,transparency, * accountability and the service delivery of the government organizations. * * Copyright (C) 2017 eGovernments Foundation * * The updated version of eGov suite of products as by eGovernments Foundation * ...
package tk.gushizone.distributed.stream.api.topic; import tk.gushizone.distributed.stream.api.topic.input.DelayedInput; import tk.gushizone.distributed.stream.api.topic.output.DelayedOutput; /** * @author gushizone@gmail.com * @date 2021/9/7 2:19 下午 */ public interface DelayedTopic extends DelayedInput, DelayedOu...
/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2003 The Apache Software Foundation. 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...
// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.maintenance; import com.yahoo.component.AbstractComponent; import com.yahoo.jdisc.Metric; import com.yahoo.vespa.hosted.controller.Controller; import com.yaho...
/* * Copyright 2009 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 org.iii.simulatedata.utils.probabilityDistribution; import org.apache.commons.math3.distribution.HypergeometricDistribution; import org.apache.commons.math3.exception.NotPositiveException; import org.apache.commons.math3.exception.NotStrictlyPositiveException; import org.apache.commons.math3.exception.NumberIs...
package cn.itechyou.blog.ueditor.upload; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.springframework.web.multipar...
/* * Copyright (C) 2018, Sasa Zivkov <sasa.zivkov@sap.com> * Copyright (C) 2016, Mark Ingram <markdingram@gmail.com> * Copyright (C) 2009, Constantine Plotnikov <constantine.plotnikov@gmail.com> * Copyright (C) 2008-2009, Google Inc. * Copyright (C) 2009, Google, Inc. * Copyright (C) 2009, JetBrains s.r.o. * Cop...
package com.example.android.popularmovies; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4...
package com.swone.visor.api.services; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.util.Optional; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.BDDMockito; import org.mockito.Mockito; import org.springframew...
package com.codepoetics.spinoza.utils; import static com.codepoetics.spinoza.conversion.StringConversion.toCharArray; import com.codepoetics.spinoza.api.Lens; import com.codepoetics.spinoza.collections.ArrayLens; import com.codepoetics.spinoza.conversion.TypeConverters; public class StringLenses { public stati...
/* * Copyright (c) 2014-2017 Kumuluz and/or its affiliates * and other contributors as indicated by the @author tags and * the contributor list. * * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
package net.qiujuer.web.italker.push.bean.db; import com.gs.imsdk.data.CommonInfo; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.UpdateTimestamp; import javax.persistence.*; import java.time.LocalDateTime; /** * 区别 Message, Me...
package io.github.elkan1788.mpsdk4j.vo.message; import java.util.Map; import io.github.elkan1788.mpsdk4j.vo.event.BasicEvent; /** * 消息基础类 * * @author 凡梦星尘(elkan1788@gmail.com) * @since 2.0 */ public class BasicMsg { /** * 微信公众号Id/OpenId */ protected String toUserName; /** * OpenId/微...
/* * 02/06/2010 * * CompletionXMLParser.java - Parses XML representing code completion for a * C-like language. * Copyright (C) 2010 Robert Futrell * robert_futrell at users.sourceforge.net * http://fifesoft.com/rsyntaxtextarea * * This library is free software; you can redistribute it and/or * modify it unde...
package org.sagebionetworks.repo.model.file; import java.util.List; import java.util.Set; import org.sagebionetworks.repo.model.ObjectType; /** * Abstraction for all of the different type of FileHandleAssociationsProviders. * This switch will simply defer all calls to the correct provider for each * typ...
/* * << * 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...
/* * Copyright 2015-2020 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...
/* * Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made * available under the terms of the MIT License. See the LICENSE file in the project root for more information. */ package com.microsoft.sqlserver.jdbc; import java.nio.ByteBuffer; import j...
package io.github.hapjava.characteristics.impl.common; import io.github.hapjava.characteristics.CharacteristicEnum; import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; /** * 0 ”No Programs Scheduled” 1 ”Program Scheduled” 2 ”Program Scheduled, currently overriden to * manual mode” */...