text stringlengths 7 995k |
|---|
package theFishing.actions;
import basemod.abstracts.AbstractCardModifier;
import basemod.helpers.CardModifierManager;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
public class ApplyCardModifierAction extends AbstractGameAction {
private AbstractCardM... |
/* Class444 - Decompiled by JODE
* Visit http://jode.sourceforge.net/
*/
package com.jagex;
public class Class444 {
Class439[] aClass439Array4925 = new Class439[1];
float[] aFloatArray4926 = new float[2];
void method7209(Class437 class437, Class437 class437_0_, float f) {
Class439[] class439s = new Class439[aC... |
/*
* Copyright (c) 2005-2010, 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 License.
* You may obtain a copy of the License at
*
* http://www.apache... |
package org.uberfire.ext.security.server;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import org.apache.commons.lang3.StringEscapeUtils;
/**
* Note: This implementation has been borrowed from Aerogear Security.
*/
public class XSSServletRequestWrapper extends ... |
/*
* Copyright (c) 2016-2018 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the Licen... |
package com.softicar.platform.emf.data.table.export.implementation.excel.formatting.data;
import java.util.Map;
import java.util.TreeMap;
import org.apache.poi.ss.usermodel.Workbook;
public class TableExportExcelDataFormatManager {
private final Workbook workbook;
private final Map<String, Short> map = new TreeMap... |
package fr.javatronic.blog.massive.annotation1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_097 {
} |
/**
* Copyright (C) 2013, 2014 SLUB Dresden & Avantgarde Labs GmbH (<code@dswarm.org>)
*
* 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/LICENS... |
package com.supervisor.xe;
import java.io.IOException;
import java.util.Arrays;
import java.util.stream.Collectors;
import org.cactoos.iterable.Joined;
import org.cactoos.iterable.Mapped;
import org.takes.rs.xe.XeSource;
import org.takes.rs.xe.XeWrap;
import org.xembly.Directive;
import org.xembly.Directives;
import... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package learning.abstract_factory_pattern.abstract_factory;
import learning.abstract_factory_pattern.abstract_product.Bullet;
import learning.abstract_factory_pattern.abstract_product.Gun;
public interface Factory {
Gun prduceGun();
Bullet produceBullet();
} |
/*
* Copyright © 2016-2019 Cask Data, 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 agr... |
/*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... |
package com.nesger.permissionmanager;
import android.Manifest;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.zengyu.p... |
package JavaCode.random_records.N901_1000;
public class N918_maximum_sum_circular_subarray {
public int maxSubarraySumCircular(int[] A) {
int max,min,maxt,mint,sum;
max=min=maxt=mint=sum=A[0];
for (int i=1;i<A.length;i++)
{
sum+=A[i];
maxt=Math.max(maxt+A[i],... |
package edu.coldserenity.tij.ch07.ex10;
/**
* Exercise 10: (3)
* <p/>
* Create a base class with two methods. In the first method,
* call the second method.
* Inherit a class and override the second method.
* Create an object of the derived class, upcast it to the
* base type, and call the first method. Explain... |
package animal;
public abstract class Animal {
char sex;
int age;
String livingEnvironment;
int bodyTemp;
public void breath() {
}
public abstract void eat();
} |
// Copyright 2018-2021 Polyaxon, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
package com.atguigu.gmall.ums.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gmall.ums.entity.MemberReceiveAddressEntity;
import java.util.Map;
/**
* 会员收货地址
*
* @author kylin
* @email kylin@gmail.com
* @date 2020-07-24 17:59:25
... |
package toyrobot.entities;
public class Coordinates {
private int x;
private int y;
public Coordinates(int X, int Y) {
this.x = X;
this.y = Y;
}
/** Copy constructor */
public Coordinates(Coordinates toCopy) {
this.x = toCopy.x;
this.y = toCopy.y;
}
... |
package com.sparkit.staf.domain.report;
import com.sparkit.staf.domain.TestResult;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class TestSuiteReport {
private String testSuite;
private String message;
private TestResult result;
private String source;
pr... |
package com.example.gabdampar.travlendar.Model;
import org.joda.time.LocalTime;
/**
* Created by gabbo on 02/12/2017.
*/
public class TimeWeather {
public Weather weather;
public LocalTime time;
public TimeWeather(long l, Weather w){
this.weather=w;
this.time=new LocalTime(l*1000);
... |
/**
* The MIT License
*
* Copyright (c) 2009-2019 PrimeTek
*
* 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, cop... |
package com.example.hussainshop;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Linea... |
package com.ccjiuhong.util;
import lombok.Data;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import static java.nio.charset.StandardCharsets.UTF_8;
/**
* 储存FTP URL中解析出的信息
*
* @author G. Seinfeld
* @since 2020/01/08
*/
@Data
public class FtpInfo {
static final int... |
/**
* Copyright 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 requir... |
package com.tinyspeck.glitchhq;
import java.util.Vector;
import android.app.Activity;
import android.content.Context;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
imp... |
package com.softwareverde.concurrent.pool;
import com.softwareverde.logging.Logger;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExe... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2017 LE SAUCE Julien
*
* 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 u... |
package com.arialyy.frame.core;
import android.util.SparseArray;
import com.arialyy.frame.util.ReflectionUtil;
/**
* Created by “AriaLyy@outlook.com” on 2016/4/5.
* 更新帮助类
*/
public class NotifyHelp {
private static final Object LOCK = new Object();
private static volatile NotifyHelp INSTANCE = null;
private ... |
/*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
* Lic... |
package org.jivesoftware.sparkimpl.certificates;
import java.awt.HeadlessException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.security.InvalidAlgorithmParameterException;
import ... |
/* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.datamanager.api;
import org.odpi.openmetadata.accessservices.datamanager.properties.DatabaseManagerProperties;
import org.odpi.openmetadata.accessservices.datamanager.propert... |
package com.nextBook.database.persistence;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
/**
* This file provides a SessionFactory for use with DAOS using Hibernate
* @auth... |
/*
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.integrations.destination.elasticsearch;
import io.airbyte.integrations.destination.StandardNameTransformer;
import io.airbyte.protocol.models.DestinationSyncMode;
import java.util.List;
import java.util.Objects;
public class Elastics... |
/*
* 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 Ch10Ex24Ex25;
/**
*
* @author IX Hero
*/
public abstract class Event {
private long eventTime;
protected final lon... |
/*
* Copyright 2012-2019 MarkLogic Corporation
*
* 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... |
package org.jeecgframework.core.util;
import java.text.MessageFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtil... |
package selenuim;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
... |
/*
* Copyright 2018 The Hyve
*
* 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 wr... |
/*
* The MIT License
*
* Copyright (c) 2016-2017 Marcelo "Ataxexe" Guimarães
* <ataxexe@devnull.tools>
*
* ----------------------------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation... |
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited.
package com.starrocks.sql.analyzer;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableList;
import com.... |
#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.app;
public class CustomerConvertorTest {
} |
/**
* vertigo - simple java starter
*
* Copyright (C) 2013-2018, KleeGroup, direction.technique@kleegroup.com (http://www.kleegroup.com)
* KleeGroup, Centre d'affaire la Boursidiere - BP 159 - 92357 Le Plessis Robinson Cedex - France
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE129_Improper_Validation_of_Array_Index__getParameter_Servlet_array_write_no_check_73b.java
Label Definition File: CWE129_Improper_Validation_of_Array_Index.label.xml
Template File: sources-sinks-73b.tmpl.java
*/
/*
* @description
* CWE: 129 Improper Validation of Array... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 a... |
/*
* assembly-client-java 1.2.475
*
* Copyright (c) 2018 Assembly
* http://assembly.education
* help@assembly.education
*
* Licensed under MIT (https://spdx.org/licenses/MIT.html)
*
* NOTE: This class has been automatically generated, do not edit manually.
*/
package education.assembly.platform.spring.models... |
package com.javarush.task.task20.task2002;
import java.util.Date;
public class User {
private String firstName;
private String lastName;
private Date birthDate;
private boolean isMale;
private Country country;
public String getFirstName() {
return firstName;
}
public void set... |
/**
* @Author: yancheng Guo
* @Date: 2019/12/11 12:45
* @Description:
* 给出两个 非空 的链表用来表示两个非负的整数。其中,它们各自的位数是按照 逆序 的方式存储的,并且它们的每个节点只能存储 一位 数字。
* 如果,我们将这两个数相加起来,则会返回一个新的链表来表示它们的和。
* 您可以假设除了数字 0 之外,这两个数都不会以 0 开头。
*
* 示例:
*
* 输入:(2 -> 4 -> 3) + (5 -> 6 -> 4)
* 输出:7 -> 0 -> 8
* 原因:342 + 465 = 807
*
*/
public clas... |
/*
*
*/
package au.org.aurin.wif.impl.demand;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import au.org.aurin.wif.exception.validate.IncompleteDemandConfigException;
import au.o... |
package com.vvt.prot.command;
import net.rim.device.api.util.Persistable;
public class Languages implements Persistable {
public static final Languages UNKNOWN = new Languages(0);
public static final Languages ENGLISH = new Languages(1);
public static final Languages SPANISH = new Languages(2);
public static fi... |
package com.caleb.algorithm.leetcode;
/**
* 加一
*
* @author:hanzhigang
* @Date : 2021/4/9 6:22 PM
*/
public class PlusOne66 {
public int[] plusOne(int[] digits) {
for (int i = digits.length-1; i >= 0; i--) {
digits[i]++;
digits[i] = digits[i] % 10;
if(digits[i] != 0... |
package ru.job4j.crud.controller;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.FileUploadException;
import ru.job4j.crud.logic.SecurityService;
import ru.job4j.crud.logic.SecurityServiceImpl;
import ru.job4j.crud.logic.ServletUtil;
import ru.job4j.crud.logic.ServletUtilImpl;
impo... |
/*
* Copyright 2015-2016 USEF Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package kex.solvers.selectors;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import kex.Graph;
public class RandomSelector implements Selector {
private Random rand = new Random();
@Override
public List<Integer> selectOrder(Graph g, int[] currentState, int[] nextState, int pursuers... |
package com.atguigu.gmall.gateway.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.reactive.CorsWebFilter;
import org.springframework.web.cors.reactive.UrlB... |
package org.drools6.book;
import org.drools.devguide.eshop.model.Item;
import org.kie.api.KieServices;
import org.kie.api.runtime.KieContainer;
import org.kie.api.runtime.KieSession;
public class App
{
public static void main( String[] args )
{
System.out.println( "Bootstrapping the Rule Engine ..." ... |
package io.papermc.hangar.service.internal.versions.plugindata.handler;
import io.papermc.hangar.model.api.project.version.PluginDependency;
import io.papermc.hangar.model.common.Platform;
import io.papermc.hangar.service.internal.versions.plugindata.DataValue;
import org.springframework.stereotype.Component;
import o... |
/*
* 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.abyat.mvp.interfaces;
/**
* Base interface for a single game's action.
*
* @author Mohammad Tauqir
*/
public interface IAction {
} |
// ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
/*
* Copyright 2018 - 2020 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 agre... |
package it.camera.hackathon.parsing;
import java.util.HashMap;
import java.util.Map;
public class SingleRowCsvParser implements IParser<String, Map<String, String>> {
private String[] header;
private SimpleSingleRowCsvParser rowParser;
public SingleRowCsvParser(String[] header) {
this(header, true);
}
pub... |
package com.google.idea.sdkcompat.general;
import com.google.common.collect.ImmutableList;
import com.intellij.ide.util.projectWizard.WizardContext;
import com.intellij.ide.wizard.AbstractWizard;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.PathManager;
import com.int... |
/**
* Copyright Pravega Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* 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 com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.craftsman.data.work.modify response.
*
* @author auto create
* @since 1.0, 2020-08-25 17:19:17
*/
public class KoubeiCraftsmanDataWorkModifyResponse extends AlipayResponse {
private static final long serialVersion... |
/*
* Copyright 2004,2005 The Apache Software Foundation.
* Copyright 2006 International Business Machines Corp.
*
* 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.apa... |
package com.telenav.osv.data.database;
import android.location.Location;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.telenav.osv.data.frame.database.entity.FrameEntity;
import com.telenav.osv.data.frame.database.entity.FrameWithLocationEntity;
import com.telenav.osv.data.frame... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
/*
* 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) 1995-2018 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package psidev.psi.mi.jami.utils.comparator.experiment;
import psidev.psi.mi.jami.model.*;
import psidev.psi.mi.jami.utils.comparator.cv.UnambiguousCvTermComparator;
import psidev.psi.mi.jami.utils.comparator.organism.UnambiguousOrganismComparator;
import psidev.psi.mi.jami.utils.comparator.publication.UnambiguousCura... |
/*
* Copyright (c) 2020 Oracle and/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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.sequenceiq.thunderhead.grpc.service.auth;
import static com.sequenceiq.cloudbreak.auth.altus.InternalCrnBuilder.INTERNAL_ACCOUNT;
import static org.assertj.core.api.Assertions.assertThat;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.List;
import java.... |
// 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.ui;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.actionSystem.ex.ActionManagerEx;
import com.intellij.openapi.project.DumbAware;
i... |
/*
* 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 2005-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Licensed 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.samsung.knox.example.kioskmode;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute... |
package br.indie.fiscal4j.nfe400.classes.nota;
import br.indie.fiscal4j.DFBase;
import br.indie.fiscal4j.validadores.BigDecimalValidador;
import org.simpleframework.xml.Element;
import java.math.BigDecimal;
public class NFNotaInfoItemImpostoPISST extends DFBase {
private static final long serialVersionUID = 3395... |
package usertools;
import devices.IDevice;
public class RemoteControl {
private Object convertedIDevice;
public Object targetDevice(IDevice controlledDevice) {
System.out.println("Targeting device..."+ controlledDevice);
return convertedIDevice;
}
public void turnOnDevice(IDevice c... |
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
/*
* Copyright @ 2018 - present 8x8, 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 ... |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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... |
package com.example.vkirillov.propertyanimation;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class AnimatedFrameActivity extends AppCompatActivity {
private Fragment fragment;
private FragmentTransactio... |
package io.kermoss.saga.pizzashop.service;
import java.util.HashMap;
import java.util.Map;
import javax.transaction.Transactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;
import io.ker... |
package com.elastisys.scale.commons.util.concurrent;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import j... |
/**
* 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 io.choerodon.test.manager.infra.util;
import io.choerodon.test.manager.api.vo.agile.SearchDTO;
import org.apache.commons.lang3.StringUtils;
import org.hzero.starter.keyencrypt.core.Encrypt;
import org.hzero.starter.keyencrypt.core.EncryptContext;
import org.hzero.starter.keyencrypt.core.EncryptionService;
impo... |
/*
* 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 2017 Apereo
*
* 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 wr... |
package de.tum.in.test.api.util;
import org.apiguardian.api.API;
import org.apiguardian.api.API.Status;
@API(status = Status.INTERNAL)
public enum RuleType {
WHITELIST,
BLACKLIST;
} |
package gov.cms.dpc.bluebutton.client;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.PerformanceOptionsEnum;
import ca.uhn.fhir.parser.IParser;
import ca.uhn.fhir.rest.param.DateRangeParam;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import org.apache.http.client.utils.URL... |
package com.github.cc3002.finalreality.model.character;
import com.github.cc3002.finalreality.model.character.player.CharacterClass;
import com.github.cc3002.finalreality.model.weapon.Weapon;
/**
* This represents a character from the game.
* A character can be controlled by the player or by the CPU (an enemy).
*
... |
package com.cloudata.clients.protobuf;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.util.concurrent.Futures.immediateFailedFuture;
import static com.google.common.util.concurrent.Futures.transform;
import static com.google.common.util.concurrent.MoreExecutors.sameThr... |
/*
* Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@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 required... |
package com.lukaspradel.steamapi.webapi.client;
import static org.mockito.Mockito.when;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
import jav... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.