text stringlengths 7 1.01M |
|---|
package notused;
import static org.junit.Assert.*;
import java.util.Map;
import org.junit.Test;
import java.io.StringReader;
import java.util.*;
import javax.json.*;
public class ServletControllerTest {
private ServletController controller = new ServletController();
private Map <String, String[]> map = new Has... |
package com.ranli.fallenleavesweather.application;
import android.app.Application;
import android.content.Context;
//import im.fir.sdk.FIR;
/**
* Created by Administrator on 2016/9/10.
*/
public class app extends Application {
private static Context context;
public static Context getContext() {
r... |
/*
* Copyright 2017 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 app... |
package com.lxk.animandview.drawapi.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.View;
import com.lxk.animandview.utils.DensityUtils;
/**
* @author https://github.com/103style
* ... |
/*
* (C) Copyright 2017 Nuxeo SA (http://nuxeo.com/) and 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 require... |
package com.treutec.kaypher.ddl.commands;
import static com.treutec.kaypher.metastore.model.MetaStoreMatchers.KeyFieldMatchers.hasName;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.when;
import com.tre... |
/*
* Copyright (c) 2002-2008 LWJGL Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
package com.bookstore.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
@Entity
public class ShippingAddress {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
priva... |
package ooga.configuration;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* This class is a factory class that is intended to create a map that maps available
* chance/community cards (Strings) to an array of relevant ints to be used in a future method cal... |
package io.moonman.emergingtechnology.providers.loaders;
import java.io.FileNotFoundException;
import java.io.IOException;
import io.moonman.emergingtechnology.EmergingTechnology;
import io.moonman.emergingtechnology.providers.classes.ModFluid;
import io.moonman.emergingtechnology.providers.ModFluidProvider;
import i... |
package de.adorsys.opba.consent.embedded.rest.api.domain;
import java.util.List;
import de.adorsys.opba.consent.embedded.rest.api.domain.account.AccountDetailsTO;
import de.adorsys.opba.consent.embedded.rest.api.domain.account.AisConsentTO;
public class ConsentAuthorizeResponse extends AuthorizeResponse {
private ... |
package org.rdemirkoparan.forum.model;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Joi... |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ===================================================================... |
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2017 Board of Regents of the University of
* Wisconsin-Madison, University of Konstanz and Brian Northan.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
/*
* (C) Copyright IBM Corp. 2019, 2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.path.function;
import static com.ibm.fhir.model.util.FHIRUtil.REFERENCE_PATTERN;
import static com.ibm.fhir.model.util.ModelSupport.isResourceType;
import java.util.ArrayList;
import java.util.Collection;
impo... |
/*
* 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 io.ipfs.api;
import io.ipfs.cid.*;
import io.ipfs.multihash.Multihash;
import io.ipfs.multiaddr.MultiAddress;
import java.io.*;
import java.net.*;
import java.nio.file.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.*;
import java.util.stream.*;
public class IPFS {
public... |
package com.roily.designpatterns.dpmain.decorator.simple;
import org.junit.Test;
/**
* @version 1.0.0
* @Description
* @ClassName Client.java
* @author: RoilyFish
* @date: 2022/6/7 13:20
*/
public class Client {
/**
* 简单装饰器模式测试
*/
@Test
public void test(){
BaseCar byd = new BaseCa... |
package com.acgist.esceurekaadmin;
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 EscEurekaAdminApplicationTests {
@Test
publi... |
/*
* Copyright (c) 2011-Present VMware, 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2... |
/*
* Copyright (C) 2012-2018 DuyHai DOAN
*
* 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... |
/*******************************************************************************
* Copyright 2009 OpenSHA.org in partnership with
* the Southern California Earthquake Center (SCEC, http://www.scec.org)
* at the University of Southern California and the UnitedStates Geological
* Survey (USGS; http://www.usgs.gov)
*... |
package org.protege.editor.owl.ui.view;
import org.protege.editor.owl.model.entity.OWLEntityCreationSet;
import org.protege.editor.owl.model.find.OWLEntityFinder;
import org.protege.editor.owl.model.selection.OWLSelectionModel;
import org.protege.editor.owl.ui.action.AbstractDeleteEntityAction;
import org.protege.edit... |
package cl.uchile.dcc.scrabble.gui.Scrabble_types;
import cl.uchile.dcc.scrabble.gui.Itypes;
import cl.uchile.dcc.scrabble.gui.Scrabble_types.typeFactories.*;
import org.apache.commons.lang3.RandomStringUtils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Random;
import... |
package com.lcp.blog.dao;
import com.lcp.blog.common.dao.BaseDao;
import com.lcp.blog.entity.BlogUser;
import com.lcp.blog.mapper.BlogUserMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper... |
// This file was generated by Mendix Modeler.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the next time yo... |
/*
* Copyright 2013-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.hfad.mymessenger;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an... |
package p03WildFarm;
import static p03WildFarm.Main.DECIMAL_FORMAT;
public abstract class Mammal extends Animal {
private String livingRegion;
protected Mammal(String animalType, String animalName, double animalWeight, String livingRegion) {
super(animalType, animalName, animalWeight);
... |
package org.squiddev.plethora.integration.vanilla.method;
import dan200.computercraft.api.lua.LuaException;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.init.Items;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import org.squiddev.plethora.api.Injec... |
package org.noear.solon.cloud.extend.mqtt;
import org.noear.solon.SolonApp;
import org.noear.solon.Utils;
import org.noear.solon.cloud.CloudManager;
import org.noear.solon.cloud.extend.mqtt.service.CloudEventServiceMqttImp;
import org.noear.solon.core.Aop;
import org.noear.solon.core.Plugin;
/**
* @author noear
* @... |
/**
* Internal codec classes. Only intended for use within the framework.
*/
package org.springframework.security.crypto.codec;
|
/**
* 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 2019 Mahmoud Romeh
*
* 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 com.shuai.appupdater.demo;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import andro... |
package PRAC1_ex1;
public class Team{
private String shortName, longName, imageSrc, president, sponsor;
private int members, budget, founded;
public Team() throws Exception{
this("Default", "Team Default", "./", "Dummy", "UOC",1000,1000000,2019);
}
public Team(String shortName, String longNam... |
package com.hyweather.android;
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
public void ... |
package com.meal.sys.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* <p>
* 系统用户角色表
* </p>
*
* @author 米虫先生/mebugs.com
* @since 2020-10-19
*/
@Data
@EqualsAndHa... |
// 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 appl... |
package com.example.secnote;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import androi... |
package org.innovateuk.ifs.organisation.controller;
import org.innovateuk.ifs.BaseControllerMockMVCTest;
import org.innovateuk.ifs.documentation.AddressDocs;
import org.innovateuk.ifs.documentation.AddressTypeResourceDocs;
import org.innovateuk.ifs.documentation.OrganisationAddressDocs;
import org.innovateuk.ifs.organ... |
/* This file is part of VoltDB.
* Copyright (C) 2008-2020 VoltDB Inc.
*
* This file contains original code and/or modifications of original code.
* Any modifications made by VoltDB Inc. are licensed under the following
* terms and conditions:
*
* Permission is hereby granted, free of charge, to any person obtain... |
// Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.optimize.instanceofremoval;
import static org.junit.Assert.assertEquals;
... |
package com.demo.api.controllers;
import com.demo.api.models.Item;
import com.demo.api.services.ItemServiceImpl;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.... |
package com.smrobot;
import com.smrobot.shape.Circle;
import com.smrobot.shape.Rectangular;
import com.smrobot.shape.Shape;
import com.smrobot.shape.Trapezoidal;
/**
* 模拟前端和后端的控制接口
* 接口前端的数据数据
* 将数据处理之后返回给前端
* @author smrobot
*/
public class Contoller {
/**
* 根据类别创建对象并返回
* @param line
* @retu... |
/*
* Copyright Terracotta, 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 ... |
/*
* 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... |
package com.imooc.oa.entity;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
public class DealRecord {
private Integer id;
private Integer claimVoucherId;
private Integer dealSn;
@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm")
private Date dealTime;
private S... |
/*
* Copyright (C) 2010 Moduad Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is... |
package org.paasta.container.platform.web.user.security;
import org.paasta.container.platform.web.user.common.AuthService;
import org.paasta.container.platform.web.user.common.CommonUtils;
import org.paasta.container.platform.web.user.common.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import or... |
/**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.engine.depgraph;
import java.util.Collection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.opengamma.engine.function.ParameterizedFun... |
/*
*
* Software in the Sustain Ecosystem are Released Under Terms of Apache Software License
*
* This research has been supported by funding from the US National Science Foundation's CSSI program through awards 1931363, 1931324, 1931335, and 1931283. The project is a joint effort involving Colorado State Universit... |
package com.bonuswallet.app.viewmodel;
import androidx.annotation.NonNull;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import com.bonuswallet.app.interact.FetchWalletsInteract;
import com.bonuswallet.app.interact.GenericWalletInteract;
import com.bonuswallet.app.repository.Curren... |
package org.jboss.resteasy.test.finegrain.client;
import org.jboss.resteasy.client.ProxyFactory;
import org.jboss.resteasy.core.Dispatcher;
import org.jboss.resteasy.test.EmbeddedContainer;
import org.junit.Assert;
import org.junit.Test;
import javax.ws.rs.FormParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
... |
package com.java3y.austin.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
/**
* 微信应用消息/钉钉/服务号均有多种的消息类型下发
*
* @author 3y
*/
@Getter
@ToString
@AllArgsConstructor
public enum SendMessageType {
TEXT("10", "文本", "text", "text"),
VOICE("20", "语音", null, "voice"),
... |
/*
* 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.fibonacci;
/**
* @author fibonacci
* @date 2021-04-28 22:13
*/
public class HelloWorld {
public static void main(String[] args) {
System.out.println("hello world");
}
}
|
package org.ihtsdo.buildcloud.core.service.build.transform;
import org.junit.Assert;
import org.junit.Test;
public class ReplaceValueLineTransformationTest {
private ReplaceValueLineTransformation subject;
@Test
public void testReplaceWhenNotAbsent() {
subject = new ReplaceValueLineTransformation(1, "20140731"... |
package br.com.example.microservice.product.domain;
import java.math.BigDecimal;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.ValidatorFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtil... |
/*
* 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 cn.geekhall.server.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotati... |
package com.amyliascarlet.jsontest.bvt.parser.taobao;
import org.junit.Assert;
import com.amyliascarlet.lib.json.JSON;
import junit.framework.TestCase;
public class IntAsStringTest extends TestCase {
public void test_0 () throws Exception {
VO vo = JSON.parseObject("{\"value\":\"1001\"}", VO.class);
... |
package io.onedev.server.web.page.project.blob.render.renderers.folder;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Nullable;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.wicket.request.cycle.RequestCycle;
import org.apache.wicket.requ... |
/*
* This file is part of OpenTSDB.
* Copyright (C) 2021 Yahoo.
*
* 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 re... |
package module0885_public_tests_unittests.a;
import java.rmi.*;
import java.nio.file.*;
import java.sql.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores ... |
/*
* Copyright (C) 2012 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
/*
* RuleConstants.java
* Copyright 2005 (C) Greg Bingleman <byngl@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
* version 2.1 of the License, or (at your o... |
package de.wacodis.observer.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import de.wacodis.observer.model.AbstractDataEnvelope;
import de.wacodis.observer.model.AbstractData... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.language;
import com.yahoo.language.detect.Detector;
import com.yahoo.language.process.CharacterClasses;
import com.yahoo.language.process.GramSplitter;
import com.yahoo.language.process.Normalize... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package main.redanda.core;
import java.util.Arrays;
import java.util.List;
/**
* @author robin
*/
public class Log {
public static int LEVEL = 50;
static {
// System.out.println("is testing: " + isJU... |
/*
* 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.github.alexanderwe.bananaj.exceptions;
/**
* Created by alexanderweiss on 11.02.16.
*/
public class FileFormatException extends Exception {
public FileFormatException() {
super("Invalid file format. Only use: .xls, .xlxs, .csv or .txt");
}
public FileFormatException(String message) ... |
// This file is made available under Elastic License 2.0.
// This file is based on code available under the Apache license here:
// https://github.com/apache/incubator-doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/backup/BackupJobInfo.java
// Licensed to the Apache Software Foundation (ASF) under one
/... |
package com.jinyframework.core.utils;
import lombok.experimental.UtilityClass;
import java.nio.ByteBuffer;
/**
* The type Message codec.
*/
@UtilityClass
public final class MessageCodec {
/**
* Encode byte buffer.
*
* @param msg the msg
* @return the byte buffer
*/
public ByteBuffe... |
/*
* PersonListManager
*
* Manager that enables you to obtain and control various data relating to personList.
* Used in this situation mainly to save the SizeBook entries using SharedPreferences.
*
* Feb 5 2017
*
* The design of this class was built using concepts from online tutorials and
* the Student Picke... |
package scalaExec.gui;
import scalaExec.gui.MathDialogs.ExpressionDialogPlot3D_Grid;
import scalaExec.gui.MathDialogs.ExpressionDialogPlot2D_Line;
import scalaExec.Interpreter.GlobalValues;
import scalaExec.gui.MathDialogs.ExpressionDialogPlot2D_Histo;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;... |
/*
* 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... |
/**
* Copyright 2006-2015 handu.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 agree... |
package com.slack.api.methods.request.users;
import com.slack.api.methods.SlackApiRequest;
import lombok.Builder;
import lombok.Data;
/**
* https://api.slack.com/methods/users.setActive
*/
@Data
@Builder
public class UsersSetActiveRequest implements SlackApiRequest {
/**
* Authentication token. Requires s... |
package io.github.jhoneagle.algorithm.patfinding;
public class AStarTest {
} |
package org.apereo.cas.config;
import org.apereo.cas.adaptors.swivel.SwivelAuthenticationHandler;
import org.apereo.cas.adaptors.swivel.SwivelMultifactorAuthenticationProvider;
import org.apereo.cas.adaptors.swivel.SwivelTokenCredential;
import org.apereo.cas.authentication.AuthenticationEventExecutionPlanConfigurer;
... |
package com.github.seratch.jslack.api.methods.request.conversations;
import com.github.seratch.jslack.api.methods.SlackApiRequest;
public class ConversationsJoinRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `channels:write`
*/
private String token;
/**
*... |
/**
*/
package CIM15.IEC61970.Informative.InfAssets;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Substation Function Kind</b></em>',
* and u... |
package com.infobip.spring.data.jdbc.annotation.processor;
import com.querydsl.apt.Configuration;
import com.querydsl.codegen.Property;
import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.ElementFilter;
import java.lang.annotation.Annotation;
import java.... |
package de.julielab.jsyncc.readbooks;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.codec.digest.DigestUtils;
import de.julielab.jsyncc.tools.LanguageTools;
public class BookReaderReportsEmergency {
p... |
package cn.dennishucd.anim;
import android.graphics.Camera;
import android.graphics.Matrix;
import android.util.Log;
import android.view.animation.Animation;
import android.view.animation.Transformation;
/**
*
*/
public class RotateScrollAnimation extends Animation {
private final String TAG = RotateS... |
/**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package gui;
import javafx.embed.swing.SwingFXUtils;
import javafx.scene.SnapshotParameters;
import javafx.scene.image.WritableImage;
import javafx.scene.layout.Pane;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.time.LocalDate;
import ... |
package aima.core.search.framework.problem;
import java.util.Objects;
import java.util.function.Predicate;
/**
* Artificial Intelligence A Modern Approach (3rd Edition): page 67.<br>
* <br>
* The goal test, which determines whether a given state is a goal state.
*
* @param <S> The type used to represen... |
//,temp,sample_7343.java,2,9,temp,sample_7500.java,2,10
//,3
public class xxx {
private void doChangeDirectory(String path) {
if (path == null || ".".equals(path) || ObjectHelper.isEmpty(path)) {
return;
}
log.info("changing directory");
}
}; |
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE
package org.bytedeco.pytorch;
import org.bytedeco.pytorch.Allocator;
import org.bytedeco.pytorch.Function;
import org.bytedeco.pytorch.Module;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.byte... |
package net.alexandroid.utils.indicators;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.graphics... |
package com.github.arielcarrera.quarkus.spring.data.jpa.deployment.test.utils;
import com.github.arielcarrera.quarkus.spring.data.jpa.deployment.test.model.Page;
public class PageUtil {
public static <T> com.github.arielcarrera.quarkus.spring.data.jpa.deployment.test.model.Page<T>
of(org.springframework.... |
package org.codehaus.xfire.fault;
public interface AuthService
{
public String authenticate( String username, String password ) throws AuthenticationFault_Exception;
}
|
/*
* Copyright 2000-2016 Vaadin Ltd.
*
* 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... |
// Copyright 2012,2013 Vaughn Vernon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
* Licensed 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.