text stringlengths 7 1.01M |
|---|
package com.otaliastudios.cameraview.engine.action;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.CaptureResult;
import android.hardware.camera2.TotalCaptureResult;
import and... |
package com.wangli.gulimall.order.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... |
/*
* Copyright 2006-2021 Prowide
*
* 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... |
import java.awt.Polygon;
/*
* @author Kashif Sayeed
*/
public class SpaceCraft extends Sprite {
public SpaceCraft() {
active = true;
shape = new Polygon();
shape.addPoint(0, 35);
shape.addPoint(10, 0);
shape.addPoint(15, -25);
shape.addPoint(30, -35);
sha... |
package com.balram.locker.main;
/**
* Created by redcarpet on 12/28/16.
*/
public class PatternLockImpl {
}
|
import java.lang.Math;
class AntiAliasedCircle extends Kernel
{
AntiAliasedCircle(int radius,double falloff)
{
// double f = radius * (1-falloff);
if (falloff >= radius)
falloff = radius - 1;
double f = radius - falloff;
width = 2*radius;
height = 2*radius;
origin... |
package pt.unl.fct.miei.usmanagement.manager.dtos.mapper;
import org.mapstruct.Builder;
import org.mapstruct.Context;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.IterableMapping;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueMappingStrategy;
import org.mapstruct.factory.Mappers;... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 abel533@gmail.com
*
* 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
... |
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
*/
package rocks.imsofa.net.simplesocket;
/**
*
* @author lendle
*/
public class Test1 {
/**
* @param args the... |
/*
* Copyright 2011 Google Inc.
* Copyright 2014 Andreas Schildbach
*
* 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 requ... |
/*
* Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THI... |
package mekanism.client.jei.machine;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import mekanism.api.annotations.NonNull;
import mekanism.api.chemical.gas.GasStack;
import mekanism.api.providers.IBlockProvider;
import mekanism.api.recipes.ItemSta... |
package ru.job4j.threads;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
/**
* Class <Name class>.
*
* @author Alexey Rastorguev (rastorguev00@gmail.com)
* @version 0.1
* @since 26.01.2018
*/
public class StopThredTest {
@Test
public void whenTwoThread... |
package com.github.capitansissy.database;
import java.io.Serializable;
public class Inquiries implements Serializable {
public static final String GET_CURRENT_DATABASE = "SELECT DATABASE() FROM DUAL";
public static final String INITIALIZE_DEFAULT_DATABASE = "SELECT COUNT(*) FROM DUAL";
public static final Strin... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package MySQL_Testes;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.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 ... |
package com.Huohuo.Huohuo;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;... |
package com.example.user;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class UserApplicationTests {
@Test
public void contex... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.recoveryservicesbackup.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.az... |
package com.pkj.wow.paginationviewsample;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
p... |
package io.jexxa.tutorials.timeservice.infrastructure.drivenadapter.messaging;
import java.time.LocalTime;
import java.util.Properties;
import io.jexxa.infrastructure.drivenadapterstrategy.messaging.MessageSender;
import io.jexxa.infrastructure.drivenadapterstrategy.messaging.MessageSenderManager;
import io.jexxa.tut... |
package com.guonl.handle;
import com.guonl.enums.ResultEnum;
import com.guonl.utils.ResultUtil;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
package com.microsoft.tfs.client.common.commands.vc;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.IProgressMonitor;
import ... |
/*
* 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) 2020 Logical Clocks 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 agre... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.CRContactCenterManagementPlanExchangeInputModelContactCenterManagementPlanExchange... |
package com.github.ocraft.s2client.api.vertx;
/*-
* #%L
* ocraft-s2client-api
* %%
* Copyright (C) 2017 - 2018 Ocraft Project
* %%
* 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 wit... |
package main;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import bench.chengTxn.ChengTxnConstants;
public class Logger {
private static boolean isInit = false;
private static FileWriter fwriter = null;
// local log:... |
package com.example.android.quakereport.Models;
import android.content.AsyncTaskLoader;
import android.content.Context;
import com.example.android.quakereport.Utilities.QueryUtils;
import java.util.List;
public class BookLoader extends AsyncTaskLoader<List<Book>> {
/**
* Tag for log messages
*/
p... |
package kg.ash.javavi.actions;
import kg.ash.javavi.output.OutputClassPackages;
import kg.ash.javavi.searchers.PackagesLoader;
import kg.ash.javavi.cache.Cache;
public class GetClassPackagesAction extends ActionWithTarget {
@Override
public String perform(String[] args) {
return new OutputClassPackag... |
/*
* Weblounge: Web Content Management System
* Copyright (c) 2003 - 2011 The Weblounge Team
* http://entwinemedia.com/weblounge
*
* This program 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 Foundat... |
/*
* IdentifierNotFoundException.java 1.0 $Revision: 243 $
*
*
* Copyright (C) 2005 Roozbeh Farahbod
*
* Last modified by $Author: rfarahbod $ on $Date: 2011-03-29 02:05:21 +0200 (Di, 29 Mrz 2011) $.
*
* Licensed under the Academic Free License version 3.0
* http://www.opensource.org/licenses/afl-3.0.php
... |
package fi.aalto.trafficsense.trafficsense.backend.rest.types;
import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.google.gson.annotations.SerializedName;
import fi.aalto.trafficsense.trafficsense.backend.uploader.... |
import java.util.*;
public class MethodSignature{
public static void main(String[] args){
}
public String getName(String name){
return null;
}
//the return type is not part of the signature
public List<String> getName(String name){
return null;
}
// the parameter name is not part of the signature
p... |
/*
* Copyright 2016 Elvis Hew
*
* 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... |
/* Copyright (C) 2013-2018 TU Dortmund
* This file is part of LearnLib, http://www.learnlib.de/.
*
* 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/... |
package org.batfish.datamodel.routing_policy.expr;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.io.Serializable;
import java.util.List;
import org.batfish.datamodel.routing_policy.Environment;
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "class")
public abstract class AsPathListExpr impl... |
package com.github.vladislavgoltjajev.personalcode.locale.latvia;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.EmptySource;
import org.junit.jupiter.params.provider.NullSource;
import org.junit.jupiter.params.provider.ValueSource;
... |
/*
* File: PrintLogger.java
* Author: Kyle A. Roberson kylerob@uab.edu
* Assignment: kylerob-P3 - EE333 Spring 2019
* Vers: 1.1.0 02/19/2019 KAR - finalizing
* Vers: 1.0.0 02/18/2019 KAR - initial coding
*/
package p5;
/**
* An I/O class PrintLogger implements the Logger interface and conditionally
* outputs... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview;
import java.util.... |
package org.batfish.datamodel.answers;
import java.util.SortedMap;
import org.batfish.common.ParseTreeSentences;
public interface ParseAnswerElement extends InitStepAnswerElement {
SortedMap<String, ParseStatus> getParseStatus();
SortedMap<String, ParseTreeSentences> getParseTrees();
void setParseStatus(Sort... |
package DoordashPrep;
public class _0200NumberOfIslands {
public static void main(String[] args) {
System.out.println(numIslands(
new char[][] { new char[] { '1', '1', '1', '1', '0' }, new char[] { '1', '1', '0', '1', '0' },
new char[] { '1', '1', '0', '0', '0' }, new char[] { '0', '0', '0', '0', '0' } }... |
package com.github.qzagarese.dockerunit.exception;
public class ConfigException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 8021806700322024225L;
public ConfigException(String message) {
super(message);
}
}
|
/*******************************************************************************
* Copyright (c) 1998, 2012 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... |
package org.protobeans.core.util;
public class SnowFlakeIdGenerator {
//Если под timestamp выделить 41 бит, да еще и отнимать значения, которые уже прошли, то данный алгоритм будет работать до 2080 года
//Максимальное число помещающееся в 41 бит - 2199023255551
//Кол-во миллисекунд которые уже давно прошли... |
/*
* 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 ... |
/*
***** BEGIN LICENSE BLOCK *****
* Version: EPL 2.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Eclipse Public
* 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.eclipse.org/legal/e... |
/*
* Copyright 2015 Hippo B.V. (http://www.onehippo.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 applic... |
package cn.hutool.cron.pattern;
import java.util.Date;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import cn.hutool.core.date.DateUtil;
public class CronPatternUtilTest {
@Test
public void matchedDatesTest() {
//测试每30秒执行
List<Date> matchedDates = CronPatternUtil.matchedDates("0/30... |
/*
* Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license
* distributed with this file and available online at
* http://www.ja-sig.org/products/cas/overview/license/
*/
package org.jasig.cas.adaptors.radius;
import java.net.InetAddress;
import java.net.UnknownHostException;
import net.jradius... |
package com.taotao.cloud.netty.support;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpHeaders;
import org.springframework.core.MethodParameter;
public class HttpHeadersMethodArgumentResolver implements MethodArgumentResolver {
@Override
... |
/*
* Copyright (c) 2020
* Author: xiaoweixiang
*/
package finished.程序员面试宝典.cxy0408;
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
this.val = x;
}
} |
// Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... |
package com.a.b.a.a.d;
import com.a.b.a.a.a.GameParatemers;
import com.a.b.a.a.b.e.class_81;
import com.a.b.a.a.c.class_138;
import com.codeforces.commons.io.FileUtil;
import com.codeforces.commons.io.http.HttpMethod;
import com.codeforces.commons.io.http.HttpRequest;
import com.codeforces.commons.io.http.HttpResponse... |
package com.example.paging;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
import com.example.paging.entity.Commit;
import com.example.paging.repository.CommitRepository;
@Component
public class PagingDemoData ... |
/*
* Copyright 2010-2019 James Pether Sörling
*
* 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 o... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.batch.protocol.models;
import com.fasterxml.jackson.annotat... |
package com.letv.android.client.fragment;
import android.widget.BaseAdapter;
import com.letv.android.client.commonlib.fragement.LetvBaseFragment;
import com.letv.hackdex.VerifyLoad;
import com.letv.hotfixlib.HotFix;
public abstract class MyBaseFragment extends LetvBaseFragment {
public abstract BaseAdapter getAda... |
package com.bizzan.bitrade.config;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurerSupport;
i... |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2016 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... |
package org.infinispan.persistence.spi;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.CompletionStage;
import org.infinispan.commons.api.Lifecycle;
import org.infinispan.marshall.core.MarshalledEntry;
import org.reactivestreams.Publisher;
import io.reactivex.Flowable;
import net.jcip.ann... |
/*
* Copyright (c) 2018-present, Jim Kynde Meyer
* All rights reserved.
* <p>
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.intellij.lang.jsgraphql.psi;
import com.intellij.lang.jsgraphql.GraphQLLanguage;
import com.inte... |
package com.synuwxy.sample.redis.common;
/**
* @author wxy
* create by 2019.08.17
* <p>
* desc:
* 默认的返回码模板
*/
public class ResultCode {
// 成功
public static String SUCCESS = "0";
// 失败
public static String ERROR = "-1";
}
|
package Model.Statements;
import Model.ADT.IMyStack;
import Model.ADT.MyStack;
import Model.PrgState;
public class ForkStmt implements IStmt{
private IStmt stmt;
public ForkStmt(IStmt stmt){this.stmt = stmt;}
@Override
public PrgState execute(PrgState state){
PrgState forkProgram = new PrgStat... |
/*
* 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.cxy7.data.fense.security;
import com.cxy7.data.fense.dao.RoleDao;
import com.cxy7.data.fense.dao.UserDao;
import com.cxy7.data.fense.model.Role;
import com.cxy7.data.fense.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
i... |
/**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... |
/*
* Copyright 2016-2021 Pnoker. 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 ... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * Copyright (C) 2006 The Guava 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... |
package uk.dangrew.nuts.graphics.goal;
import org.junit.Test;
public class GoalManagerPaneTest {
@Test public void untested() {
System.out.println( "WARNING: UNTESTED - " + getClass().getName() );
}//End Method
}
|
// 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.voxela.gov.events;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import com.mewin.WGRegionEvents.events.RegionLeaveEvent;
import com.voxela.gov.Main;
import com.voxela.gov.players.primeminister.PrimeMinisterPlayer;
import net.md_5.bungee.api.ChatColor;
public class LeaveRegionE... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package pe.gob.mimp.gis.entity;
import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
/**
*
* @author Hariki
*/
public class Cancha implements Serializabl... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.indexing.snapshot;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.io.ByteAr... |
/*
* 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
* dis... |
package com.ls.drupalcon.model.managers;
import com.ls.drupal.AbstractBaseDrupalEntity;
import com.ls.drupal.DrupalClient;
import com.ls.drupalcon.app.App;
import com.ls.drupalcon.model.dao.EventDao;
import com.ls.drupalcon.model.data.Event;
import com.ls.drupalcon.model.data.EventDetailsEvent;
import com.ls.drupalcon... |
/*
* 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")... |
// The MIT License (MIT)
//
// Copyright (c) 2018 - Present Onshape Inc.
//
// 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
//... |
/*
* 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 org.gavin.search.hawkeye.result;
import java.util.List;
/**
* ---------------------------------------------------
* File: PagingQueryResult
* Package: org.gavin.search.hawkeye.result
* Project: hawkeye
* ---------------------------------------------------
* Created by gavinguan on 2018/1/23 13:04.
*... |
package seedu.modulink.model.person;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.modulink.testutil.Assert.assertThrows;
import org.junit.jupiter.api.Test;
public class GitHubUsernameTest {
@Test
public void constr... |
package org.egorlitvinenko.certification.oca.book1.chapter4;
/**
* @author Egor Litvinenko
*/
public class Q12 {
}
class RopeSwing {
private static Rope rope1 = new Rope();
private static Rope rope2 = new Rope();
{
System.out.println(rope1.length);
}
public static void main(String[] arg... |
/*
* Copyright (c) 2012, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... |
package com.vmware.avi.vro.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.vmware.o11n.plugin.sdk.a... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2012 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.components.annotations;
/**
* Categories for Simp... |
package com.planet_ink.coffee_mud.Locales;
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 com.plan... |
/*
* Copyright (c) 2020, Jaisel Rahman <jaiselrahman@gmail.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 requ... |
package service;
import po.User;
import java.util.List;
/**
* Created by Administrator on 2017/7/11.
*/
public interface SysService {
List<User> findAll();
User getUser(String name, String password);
}
|
package com.github.zhgxun.leetcode.tree;
import com.github.zhgxun.leetcode.TreeNode;
/**
* 面试题 04.10. 检查子树
* <p>
* https://leetcode-cn.com/problems/check-subtree-lcci/
* <p>
* 检查子树。你有两棵非常大的二叉树:T1,有几万个节点;T2,有几万个节点。设计一个算法,判断 T2 是否为 T1 的子树。
* <p>
* 如果 T1 有这么一个节点 n,其子树与 T2 一模一样,则 T2 为 T1 的子树,也就是说,从节点 n 处把树砍断,得到的树与... |
package uk.gov.ida.integrationtest.hub.samlsoapproxy.apprule.support;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.google.common.collect.ImmutableList;
import httpstub.HttpStubRule;
import uk.gov.ida.hub.samlsoapproxy.Urls;
import uk.gov.ida.hub.samlsoapproxy.builders.CertificateDtoBuilder;
im... |
/*
* Copyright 2017 StreamSets 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... |
package edu.mum.mpp.util;
import edu.mum.mpp.service.AsyncService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* Created by Luk... |
package com.haxademic.core.debug;
import processing.core.PApplet;
import com.haxademic.core.app.P;
public class Stats {
protected PApplet p;
protected int _frames = 0;
protected int _time, _timeLastFrame, _timeLastSecond;
protected int _fps = 0;
protected int _fpsMin = 1000;
protected int _fpsMax = 0;
pro... |
package chapter3.section1;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
import edu.princeton.cs.algs4.Stopwatch;
import util.ArrayGenerator;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Rene Argento on 28/04/17.
*/
public class Exercise33_DriverSelfOrganizingSe... |
package com.mikelau.countrypickerx;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
import java.util.Locale;
public c... |
package uk.nhs.careconnect.nosql.providers;
import ca.uhn.fhir.rest.api.MethodOutcome;
import org.hl7.fhir.dstu3.model.Bundle;
import org.hl7.fhir.dstu3.model.IdType;
import org.hl7.fhir.dstu3.model.OperationOutcome;
import org.hl7.fhir.instance.model.api.IIdType;
import org.junit.Test;
import org.junit.runner.RunWith... |
package com.celerysoft.imagepager.view.indicator;
import android.content.Context;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.celerysoft.imagepager.R;
import com.celerysoft.imagepager.util.DensityUtil;... |
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package neighbors.handler;
import lombok.RequiredArgsConstructor;
import neighbors.enums.CategoryCommand;
import neighbors.enums.MainCommand;
import neighbors.enums.bot.State;
import neighbors.enums.bot.Text;
import neighbors.utils.TelegramUtils;
import org.springframework.stereotype.Component;
import org.telegram.tel... |
// Targeted by JavaCPP version 1.5.5: DO NOT EDIT THIS FILE
package org.bytedeco.tensorflow;
import org.bytedeco.tensorflow.Allocator;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.tensorfl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.