text stringlengths 7 995k |
|---|
/*
* 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.otb.firebasechat.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.text.InputFilter;
import android.widget.EditText;
/**
* Created by Mohit Rajput on 4/7/17.
* This class provides common utility methods to use in app
*/
publi... |
/*
* 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.amazonaws.blox.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* @see <a href="http://docs.aws.amazon.com/goto/WebAPI/joufu8ief9-v2017-07-11/Environment" target="_top">AW... |
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.organization;
import com.yahoo.config.provision.ApplicationId;
/**
* @author olaa
*/
public interface Billing {
void handleBilling(Applicati... |
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... |
/*
* Copyright 2015 Autoware Foundation. 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 b... |
/*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
package com.anotherdev.firebase.auth.rest.api;
import com.anotherdev.firebase.auth.SignInResponse;
import com.anotherdev.firebase.auth.UserProfileChangeRequest;
import com.anotherdev.firebase.auth.UserProfileChangeResponse;
import com.anotherdev.firebase.auth.rest.api.model.GetAccountInfoRequest;
import com.anotherdev... |
/*
* Copyright © 2021 Daniel Nordhoff-Vergien (dve@vergien.net)
*
* 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... |
package com.suntion.common.base;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
imp... |
package io.kyberorg.yalsee.test.pageobjects.external;
/**
* Page object for page http://кто.рф .
*
* @since 2.5
*/
public final class KtoRf {
public static final String DIV_REG = "div#block_reg";
private KtoRf() {
throw new UnsupportedOperationException("Utility class");
}
} |
package timeline.lizimumu.com.util;
import android.os.Environment;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
impor... |
package com.mtcarpenter.mall.portal.service;
import com.mtcarpenter.mall.domain.SmsCouponHistoryDetail;
import com.mtcarpenter.mall.model.SmsCoupon;
import com.mtcarpenter.mall.model.SmsCouponHistory;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* 用户优惠券管理Service
* Cre... |
/*
* 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... |
// typeinfo/toys/ToyTest.java
// Testing class Class
// {java typeinfo.toys.ToyTest}
package typeinfo.toys;
interface HasBatteries {
}
interface Waterproof {
}
interface Shoots {
}
class Toy {
// Comment out the following no-arg constructor to see NoSuchMethodError
Toy() {
}
Toy(int i) {
}
}
... |
//
// 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 ... |
package mage.cards.m;
import mage.MageInt;
import mage.Mana;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.condition.common.RaidCondition;
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
import mage.abilities.effects.mana.AddManaToManaPoolSourceControll... |
package cn.elvea.platform.core.security;
import cn.elvea.platform.BaseTests;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
/**
* SecurityUtilsTest
*
* @author elvea
* @since 0.0.1
*/
public cl... |
package com.shure.surdes.common.utils;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.OutputStream;
import java.secur... |
/*
* Copyright 2000-2017 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... |
import java.time.Duration;
import java.time.Instant;
abstract class AbstractSorter {
protected static boolean LOGGING_ON = false;
private String name = "";
AbstractSorter(String name) {
this.name = name;
}
/*
* Sorts an array of numbers in-place and prints the time consumed in nano s... |
package com.laputa.coolweather.util;
import android.text.TextUtils;
import android.util.Log;
import com.google.gson.Gson;
import com.laputa.coolweather.db.City;
import com.laputa.coolweather.db.County;
import com.laputa.coolweather.db.Province;
import com.laputa.coolweather.gson.Weather;
import org.json.JSONArray;
i... |
package gov.dwp.carers.xml.validation;
import gov.dwp.carers.xml.XmlTestBase;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
/**
* Unit tests of {@link gov.dwp.carers.xml.validation.CaLegacyXmlValida... |
package seedu.flashcard.commons.core.index;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.flashcard.testutil.Assert.assertThrows;
import org.junit.jupiter.api.Test;... |
/*
* Copyright 2004-2010 the Seasar Foundation and the Others.
*
* 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 ... |
package com.teamb.view;
import com.teamb.model.Availability;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.HPos;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.*;
import javafx.scene.layout.*;
import javafx.scene.text.... |
package org.endeavourhealth.imapi.dataaccess.repository;
import org.endeavourhealth.imapi.dataaccess.ConnectionPool;
import org.endeavourhealth.imapi.dataaccess.entity.Tpl;
import org.endeavourhealth.imapi.dataaccess.helpers.DALHelper;
import org.endeavourhealth.imapi.model.Namespace;
import org.endeavourhealth.imapi.... |
package com.mall.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.annotation.Reque... |
// This file was generated by Mendix Modeler.
//
// WARNING: Code you write here will be lost the next time you deploy the project.
package testsuite.proxies;
public class Verzorger
{
private final com.mendix.systemwideinterfaces.core.IMendixObject verzorgerMendixObject;
private final com.mendix.systemwideinterfac... |
package io.quarkus.hibernate.orm.envers.config;
import static org.hamcrest.Matchers.is;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import io.quarkus.hibernate.orm.envers.AbstractEnversResource;
import io.quarkus.hibernate.orm.envers.MyAuditedEntity;
import io.quarkus... |
/*
* 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 lab_juanguevara;
import java.io.Serializable;
/**
*
* @author HP
*/
public class Persona implements Serializable {
pr... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE89_SQL_Injection__getQueryString_Servlet_executeUpdate_08.java
Label Definition File: CWE89_SQL_Injection.label.xml
Template File: sources-sinks-08.tmpl.java
*/
/*
* @description
* CWE: 89 SQL Injection
* BadSource: getQueryString_Servlet Parse id param out of the URL qu... |
import org.sql2o.*;
public class DB {
public static Sql2o sql2o = new Sql2o("jdbc:postgresql://localhost:5432/cooking", null, null);
} |
package geektime.spring.springbucks.customer.integration;
import geektime.spring.springbucks.customer.model.Coffee;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import java.util.Collections;
import java.util.List;
@Slf4j
@Component
public class FallbackCoffeeService implements C... |
/*
* 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 2014-2015, Andrew Lindesay
* Distributed under the terms of the MIT License.
*/
package org.haiku.haikudepotserver.job;
import org.haiku.haikudepotserver.job.model.JobRunner;
import org.haiku.haikudepotserver.job.model.JobRunnerException;
import org.haiku.haikudepotserver.job.model.JobService;
impor... |
package cn.riversky.yanmo.actiontype.observer.e4;
/**
* 观察者模式的java工具的实现
* newspaper,继承observable 同时具有推模型拉模型两种
* reader实现observer,同时具有推模型和拉模型
* @author riversky E-mail:riversky@126.com
* @version 创建时间 : 2017/12/28.
*/
public class Client {
public static void main(String[] args) {
NewsPaper subject=new... |
/*
* 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... |
/*
* Copyright (c) 2011-2019 Contributors to the Eclipse Foundation
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
* which is available at https:... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2009-2011 Google, All Rights reserved
// Copyright 2011-2019 MIT, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.google.appinventor.buildserver;
import com.google.appinventor.buildse... |
package com.lj.app.core.common.exception;
/**
*
* 模板异常
*
*/
public class FreemarkerTemplateException extends CoreBaseRunTimeException {
public FreemarkerTemplateException() {
super();
}
public FreemarkerTemplateException(String message) {
super(message);
}
public FreemarkerTemplateException(T... |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package com.itjing.webservice;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class WebserviceApplicationTests {
@Test
void contextLoads() {
}
} |
package com.javarush.task.task38.task3810;
public @interface Revision {
//напиши свой код
int revision();
Date date();
String comment() default "";
Author[] authors() default {};
} |
/*
* 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 ... |
package br.com.thaisrezendeb.pontointeligente.api.services;
import br.com.thaisrezendeb.pontointeligente.api.entities.Lancamento;
import br.com.thaisrezendeb.pontointeligente.api.repositories.LancamentoRepository;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupite... |
/*
* lakeFS API
* lakeFS HTTP API
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.lakefs.clients.api.model;
import java.util.Objec... |
/*
* Copyright 2011-2012 Blazebit
*
* 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... |
package com.linkedin.common.urn;
import java.net.URISyntaxException;
import javax.annotation.Nonnull;
/**
* Static utilities for {@link Urn}.
*/
public final class Urns {
private Urns() {
}
/**
* Create a Urn from an entity type and an encoded String key. The key is converted to a Tuple by parsing using ... |
/*
* Copyright 2016 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.google.api.ads.dfp.jaxws.v201403;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ProposalActionError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType ... |
package io.github.arnabmaji19.libera.desktop.controller;
import io.github.arnabmaji19.libera.desktop.App;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.layout.AnchorPane;
import java.io.IOException;
import java.net.U... |
/*******************************************************************************
* Copyright (c) 2012, 2012 Andrew Gvozdev and others.
* 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... |
package com.rahul.BMS.server.dao;
import java.util.ArrayList;
import com.google.appengine.api.datastore.QueryResultIterator;
import com.googlecode.objectify.Objectify;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Query;
import com.rahul.BMS.shared.dto.CustomerDTO;
public class C... |
package io.github.codingspeedup.toolbox.resources.filesystem;
public class FolderResource extends FileOrFolderResource {
public FolderResource(String description) {
super(description);
}
@Override
public String toString() {
return "(D) " + super.toString();
}
} |
/*
*
* 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"); ... |
package me.banbeucmas.oregen3.data.permission;
import org.bukkit.OfflinePlayer;
public interface PermissionManager {
/**
* Check if the (offline) player has the provided permission or not
*
* @param world the world to check (can be ignored), can be null
* @param player the (offline) p... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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... |
// Template Source: BaseEntityCollectionResponse.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------... |
package com.abbsolute.ma_livu.Customize;
import java.util.HashMap;
import java.util.Map;
public class UnityItem {
private int id;
private String name;
private int type;
private int isPossessed;
public static final int SkinTone = 0;
public static final int Face = 1;
public static final int... |
/*
* Copyright 2020 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... |
public class JLS_5_1_7_BoxingConversion_5 {
public static void main(String[] args) {
Object o = new Boolean(true);
boolean b = !((Boolean)o);
System.out.println(b);
}
} |
/*
* The MIT License
*
* Copyright 2015 Simon Berndt.
*
* 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, mo... |
/*
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... |
package commandline;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
import java.nio.charset.Charset;
import java.util.Scanner;
import java.util.logging.Level;
import java.util.logging.Logger... |
/*
* 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... |
package com.construction.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.construction.entity.Role;
@Repository
public interface RoleRepository extends CrudRepository<Role, Long> {
public Role findByName(String name);
public Role... |
package seedu.address.model.person;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
/**
* Represents a Tag in the address book.
* Guarantees: immutable; name is valid as declared in {@link #isValidTagName(String)}
*/
public class Tag {
public sta... |
package com.imooc.ad.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
*
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreativeUnitResponse {
private List<Long> ids;
} |
package os.daada.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import org.junit.BeforeClass;
import org.junit.Test;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import os.daada.core.crypt.AsymmetricEccWithAesCipher;
import os.daada... |
/**
* Copyright (C) 2010-2015 Morgner UG (haftungsbeschränkt)
*
* This file is part of Structr <http://structr.org>.
*
* Structr is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 o... |
/*
* Copyright 1999-2019 Seata.io Group.
*
* 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... |
package com.skullmangames.darksouls.common.item;
public class FireKeeperSoulItem extends SoulContainerItem
{
public FireKeeperSoulItem(Properties properties)
{
super(properties);
}
@Override
public int getAmount()
{
return 5;
}
} |
package ca.uhn.fhir.jpa.dao.r4;
/*-
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2019 University Health Network
* %%
* 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
*
* ... |
/*
* Copyright 2014-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 "licen... |
package br.com.zup.casacodigo.bookpurchase;
import br.com.zup.casacodigo.country.Country;
import br.com.zup.casacodigo.shared.customannotation.ExistsInDatabase;
import br.com.zup.casacodigo.state.State;
import org.hibernate.validator.constraints.br.CNPJ;
import org.hibernate.validator.constraints.br.CPF;
import org.hi... |
/*
* dk.brics.automaton
*
* Copyright (c) 2001-2017 Anders Moeller
* 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
*... |
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.12.2
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class... |
/*
* Copyright 2018 JDCLOUD.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 applicable law or agreed to in... |
/**
* Copyright (C) 2018 Mike Hummel (mh@mhus.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/LICENSE-2.0
*
* Unless required by applic... |
/*
* Copyright 2017 ~ 2025 the original author or authors. <wanglsir@gmail.com, 983708408@qq.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/license... |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.bmw.news.modules.sys.dao;
import com.bmw.news.common.persistence.TreeDao;
import com.bmw.news.common.persistence.annotation.MyBatisDao;
import com.bmw.news.modules.sys.entity.Area;
/**
* 区... |
package org.nd4j.autodiff.samediff.ops;
import lombok.NonNull;
import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.autodiff.samediff.SameDiff;
import org.nd4j.linalg.api.ops.impl.image.CropAndResize;
import org.nd4j.linalg.api.ops.impl.image.ExtractImagePatches;
import org.nd4j.linalg.api.ops.impl.image.NonM... |
/*
* 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... |
/*
* Copyright (c) 2020, codebb.gr and/or its affiliates.
* Copyright (c) 2015, 2016, 2017 Gluon and/or its affiliates.
* Copyright (c) 2012, 2014, Oracle and/or its affiliates
* Check license.txt for license
*/
package com.oracle.javafx.scenebuilder.app.about;
import com.oracle.javafx.scenebuilder.app.SceneBuild... |
package com.wimbli.WorldBorder.cmd;
import com.wimbli.WorldBorder.Config;
import com.wimbli.WorldBorder.WorldBorder;
import com.wimbli.WorldBorder.forge.Log;
import com.wimbli.WorldBorder.forge.Profiles;
import com.wimbli.WorldBorder.forge.Util;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.... |
package io.wttech.markuply.engine.renderer.missing;
import io.wttech.markuply.engine.pipeline.context.PageContext;
import reactor.core.publisher.Mono;
/**
* <p>
* Defines what should happen if a requested component does not exist.
* </p>
*/
public interface MissingComponentHandler {
/**
* @param componentId... |
/*
* Copyright (C) 2012 Google Inc.
* Modifications copyright (C) 2016 Andrey Mogilev
*
* 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... |
package org.wso2.carbon.identity.authenticator.saml2.sso.common.util;
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 Licens... |
//package ghost.framework.beans.execute.annotation;
//
//import ghost.framework.beans.enums.Action;
//
//import java.lang.annotation.*;
//
///**
// * @Author: 郭树灿{guoshucan-pc}
// * @link: 手机:13715848993, QQ 27048384
// * @Description:绑定动作注释
// * @Date: 17:42 2019-07-28
// */
//@Target({ElementType.METHOD, ElementType.... |
package friend;
/**
* InkPen class that works as "Adaptee".
*
* By comparing the signatures of ink() method and the Pen.write() method, we
* can find that this class and the Pen are independent or incompatible systems.
*
* @author Ziang Lu
*/
public class InkPen {
/**
* Inks the given text.
* @pa... |
/*
* Copyright 2012 - 2015 Anton Tananaev (anton.tananaev@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 req... |
package com.linda.rpc.webui.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
public class ServletUtils {
private static Logger logger = Logger.getLogger(ServletUtils.class);
public static void write(String content,H... |
/*
* 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 br.senac.tads.dsw.exemplosspring;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.st... |
package util;
import java.util.Arrays;
import java.util.List;
public class MathUtil {
public static double getAverageL(List<Long> list) {
if (list.isEmpty()) {
return -1;
}
return list.stream().mapToLong(x -> x).average().getAsDouble();
}
public static double getAverageD(List<Double> list) {
return 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 shadowmaster435.noxiouslands.block;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.util.mat... |
/**
* \file QryWznmMdlList.java
* Java API code for job QryWznmMdlList
* \copyright (C) 2018-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 5 Dec 2020
*/
// IP header --- ABOVE
package apiwznm;
import java.util.*;
import org.w3c.dom.*;
import sbecore.*;
public... |
package com.anatawa12.protobuf;
import java.util.Arrays;
public class Bytes {
private final byte[] bytes;
private Bytes(byte[] bytes) {
this.bytes = bytes;
}
public static Bytes copyOf(byte[] bytes) {
return new Bytes(Arrays.copyOf(bytes, bytes.length));
}
public static Byte... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.