text stringlengths 7 995k |
|---|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson... |
package com.boge.update.utils;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
public class PackageUtils {
public static int getVersionCode(Context context) {
PackageManager manager = context.getPackageManager();
try {
Pa... |
package ch.unisg.tapasexecutorrobot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = { "ch.unisg.tapasexecutorrobot", "ch.unisg.tapa... |
/**
* Copyright 2013 Linagora, Université Joseph Fourier
*
* 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 org.linlinjava.litemall.db.service;
import com.github.pagehelper.PageHelper;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.linlinjava.litemall.db.dao.GoodsProductExtraInfoMapper;
import org.linlinjava.litemall.db.dao.LitemallGoodsExtraInfoMapper;
import org.linlinjava.lit... |
/*
* 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... |
package com.xiaomi.infra.galaxy.fds.client;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import jav... |
//
// Copyright (C) 2010-2011 Pavel Jančík
// Copyright (C) 2016 Petr Hudeček
//
// 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
//
// ... |
package requious.tile;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public interface ITargetable {
void setTarget(World world, BlockPos pos, EnumFacing facing);
} |
package com.alipay.api.request;
import com.alipay.api.domain.KoubeiMarketingCampaignAssetDetailQueryModel;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.KoubeiMarketingCampaignAssetDetailQueryResponse;
import com.alipay.ap... |
/**
Q4. Misha and Candies
Solved
character backgroundcharacter
Stuck somewhere?
Ask for help from a TA & get it resolved
Get help from TA
Problem Description
Misha loves eating candies. She has given N boxes of Candies.
She decides, every time she will choose a box having the minimum number of candies, eat half of th... |
/*
* Copyright 2019 ConsenSys AG.
*
* 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... |
/*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
package com.pg85.otg.forge.events.server;
import java.io.File;
import net.minecraft.world.World;
import net.minecraft.world.storage.ISaveHandler;
import net.minecraft.world.storage.WorldInfo;
import net.minecraftforge.common.DimensionManager;
import net.minecraftforge.fml.common.event.FMLServerAboutToStartEvent;
impor... |
/*
* Minecraft Forge
* Copyright (c) 2016.
*
* 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 version 2.1
* of the License.
*
* This library is distributed in the hope that it will... |
/*
* Copyright 2017 Realm 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 in... |
package org.hisp.dhis.api.mobile.model;
/*
* Copyright (c) 2004-2019, University of Oslo
* 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 abo... |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Yo... |
/*
*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.org/licenses/LI... |
package com.multi.thread.chapter7.section1.example1;
/**
* @Description
* @Author dongzonglei
* @Date 2018/12/23 上午11:46
*/
public class Run {
public static void main(String[] args) throws Exception {
try {
MyThread t = new MyThread();
System.out.println("main方法中的状态1:" + t.getS... |
/** Automatically generated file. DO NOT MODIFY */
package com.example.mirrors;
public final class BuildConfig {
public final static boolean DEBUG = true;
} |
/*
* Copyright (C) 2014 The Android Open Source Project
*
* 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... |
/**
* 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.lichkin.application.apis.api50401.L.n00;
import com.lichkin.framework.beans.impl.LKRequestBean;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class I extends LKRequestBean {
private String orderId;
/** 是否查看 */
private Boolean isView = false;
} |
package com.library.validations;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.library.businessMode... |
package com.nblanh.litemall.db.dao;
import java.util.List;
import com.nblanh.litemall.db.domain.LitemallGroupon;
import com.nblanh.litemall.db.domain.LitemallGrouponExample;
import org.apache.ibatis.annotations.Param;
public interface LitemallGrouponMapper {
/**
* This method was generated by MyBatis Genera... |
/*
* (C) Copyright 2006-2018 Nuxeo (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 requi... |
package mp.jprime.parsers.base;
import mp.jprime.parsers.TypeParser;
import org.springframework.stereotype.Service;
import java.util.UUID;
/**
* UUID -> String
*/
@Service
public class UUIDToStringParser implements TypeParser<UUID, String> {
/**
* Форматирование значения
*
* @param value Данные во входн... |
/*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa... |
/**
* og-node-core - The core resources of an Open Groups node
* Copyright (C) 2020 Adrian Cristian Ionescu - https://github.com/acionescu
*
* 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 ... |
/*
* 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 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... |
package mdl.sinlov.android.demo.kotlintest.view;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.junit.MockitoJUnit;
import org.m... |
package br.inatel.cdg.algebra.reta;
public class Reta {
Ponto p1;
Ponto p2;
public Reta(String p1x,String p1y,String p2x,String p2y) {
double p1xd = Double.parseDouble(p1x);
double p2xd = Double.parseDouble(p2x);
double p1yd = Double.parseDouble(p1y);
double p2yd = Double.p... |
package com.mabl.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
public class GetEnvironmentsResult implements ApiResult {
public List<Environment> environments;
@JsonCreator
public GetEnvironmentsResult(
... |
package org.robolectric.shadows;
import android.net.wifi.ScanResult;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.TestRunners;
import static junit.framework.Assert.assertNotNull;
import static org.assertj.core.api.Assertions.assertThat;
import static org.robolectric.Shadows.shadowOf;... |
package org.ovirt.engine.core.common.vdscommands;
import org.ovirt.engine.core.compat.Guid;
public class HostDevChangeNumVfsVDSParameters extends VdsIdVDSCommandParametersBase {
private String deviceName;
private int numOfVfs;
public HostDevChangeNumVfsVDSParameters(Guid vdsId, String deviceName, int nu... |
package org.col.db.mapper;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import org.col.api.TestEntityGenerator;
import org.col.api.model.Page;
import org.col.api.model.Verbati... |
/*
* Copyright 2013 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 applica... |
package dk.jonaslindstrom.boids.rules;
import dk.jonaslindstrom.boids.boid.Boid;
/**
* A rule on how to a boid should act depending on the other boids on the flock.
*/
public interface Rule<V, S, B extends Boid<V, ?>> {
/**
* This rule is re-used for all boids in the flock and is reset before each iteration u... |
package premiumtravel.cache;
import premiumtravel.trip.Trip;
import javax.ejb.ConcurrencyManagement;
import javax.ejb.ConcurrencyManagementType;
import javax.ejb.Singleton;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Model;
import javax.inject.Named;
@Named
@Model
@Singleton
@Ap... |
package src.coin_toss;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class CoinTossProblem {
public static void main(String[] args ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int mod3 = Integer.parseInt(br.readLine()) % ... |
package org.batfish.datamodel;
import static com.google.common.base.MoreObjects.firstNonNull;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.Objects.requireNonNull;
import com.fasterxml.jackson.annotation.JsonC... |
/*******************************************************************************
* Copyright (c) 2020
* AG Embedded Systems, University of Münster
* SESE Software and Embedded Systems Engineering, TU Berlin
*
* Authors:
* Paula Herber
* Sabine Glesner
* Timm Liebrenz
*
* Permission is hereby granted, fre... |
/*
* Copyright 2014 Space Dynamics Laboratory - Utah State University Research 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/LICEN... |
package org.nybatis.core.xml.nullNode;
import org.nybatis.core.xml.NXml;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.UserDataHandler;
public class NullNode implements Node {
public NullNod... |
package org.jee8ng.comments;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
/**
* Configures a JAX-RS endpoint.
*
* @author prashantp.org
*/
@ApplicationPath("resources")
public class JAXRSActivator extends Application {
} |
package net.coreprotect.command;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
impo... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
package blue.technicallygems.item;
public class Wrench {
} |
package guru.springframework.sfgpetclinic.fauxspring;
import java.util.HashMap;
import java.util.Map;
public class ModelMapImpl implements Model {
private Map<String, Object> map = new HashMap<>();
@Override
public void addAttribute(String key, Object o) {
map.put(key, o);
}
@Override
... |
/* DSAParams.java -- Digital Signature Algorithm parameter access
Copyright (C) 1998 Free Software Foundation, Inc.
This file is part of GNU Classpath.
GNU Classpath 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 Founda... |
package tech.iooo.boot.spring.endpoint;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.DeploymentOptions;
import io.vertx.core.Vertx;
import java.time.LocalDateTime;
import java.util.List;... |
/*
* This file is part of choco-solver, http://choco-solver.org/
*
* Copyright (c) 2019, IMT Atlantique. All rights reserved.
*
* Licensed under the BSD 4-clause license.
*
* See LICENSE file in the project root for full license information.
*/
package org.chocosolver.solver.constraints.nary.lex;
import org.ch... |
/**
* **** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.eclipse.org/legal/... |
package training.ExamplePageObjects.tests;
import com.tngtech.java.junit.dataprovider.DataProvider;
import training.ExamplePageObjects.model.Customer;
public class DataProviders {
@DataProvider
public static Object[][] validCustomers() {
return new Object[][] {
{ Customer.newEntity()
... |
package com.moemoe.lalala.view.adapter;
import com.moemoe.lalala.R;
import com.moemoe.lalala.model.entity.BagMyShowEntity;
import com.moemoe.lalala.view.widget.adapter.BaseRecyclerViewAdapter;
/**
*
* Created by yi on 2017/6/26.
*/
public class BagMyAdapter extends BaseRecyclerViewAdapter<BagMyShowEntity,BagMyVie... |
/*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... |
/**
* Copyright (C) 2017 Alibaba Group Holding Limited
*/
package com.alibaba.sdk.android.photostore_samples.event;
public class OnGetTagsPhotosEvent extends BaseEvent {
public Long tagId;
public OnGetTagsPhotosEvent(int code, String msg, Long tagId) {
this.code = code;
this.msg = msg;
... |
package com.example.firstdemo;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.List;
p... |
/*
* Autopsy
*
* Copyright 2020 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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/lice... |
/*
* 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 n... |
package com.pvpmanager.springboot.app.model.service;
import java.util.List;
import com.pvpmanager.springboot.app.model.entitys.Price;
import com.pvpmanager.springboot.app.model.entitys.PvpResponse;
public interface IPriceService {
public PvpResponse getPvp(Integer brandId, Integer productId, String date);
publi... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQDeviceRetrieveOutputModelDeviceInstanceAnalysis;
import org.bian.dto.BQDeviceRet... |
package com.general_hello.commands.commands.DefaultCommands;
import com.general_hello.commands.commands.CommandContext;
import com.general_hello.commands.commands.CommandType;
import com.general_hello.commands.commands.ICommand;
import com.general_hello.commands.commands.Info.InfoUserCommand;
import net.dv8tion.jda.ap... |
/*
* ASM: a very small and fast Java bytecode manipulation framework
* Copyright (c) 2000-2007 INRIA, France Telecom
* 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 ... |
/*
* Copyright 2010-2013 Ning, Inc.
*
* Ning 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 required by a... |
/*-
* #%L
* Slice - Persistence
* %%
* Copyright (C) 2012 Wunderman Thompson Technology
* %%
* 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/LI... |
public class ClassroomTester
{
public static void main (String[] args)
{
Classroom c = new Classroom(2);
Student ada = new Student("Ada", "Lovelace", 12);
ada.addExamScore(44);
ada.addExamScore(77);
ada.addExamScore(65);
Student alan = new Stud... |
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.eclipse.org/legal/cpl-v... |
/**
* Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.extensions.barrage.chunk.vector;
import io.deephaven.chunk.Chunk;
import io.deephaven.chunk.ChunkType;
import io.deephaven.chunk.IntChunk;
import io.deephaven.chunk.ObjectChunk;
import io.deephaven.chunk.WritableChunk;
impor... |
package com.yjl.javabase.thinkinjava.holding;//: holding/SetOfInteger.java
import java.util.*;
public class SetOfInteger {
public static void main(String[] args) {
Random rand = new Random(47);
Set<Integer> intset = new HashSet<Integer>();
for(int i = 0; i < 10000; i++)
intset.add(rand.nextInt(30))... |
package org.hzero.platform.domain.repository;
import io.choerodon.core.domain.Page;
import io.choerodon.mybatis.pagehelper.domain.PageRequest;
import org.hzero.mybatis.base.BaseRepository;
import org.hzero.platform.domain.entity.TemplateConfig;
import org.hzero.platform.domain.vo.TemplateConfigVO;
import java.util.Li... |
package org.ssu.entity.jooq;
import org.jooq.Record;
import org.jooq.TableField;
import org.jooq.UniqueKey;
import org.jooq.impl.Internal;
import org.jooq.impl.SQLDataType;
import org.jooq.impl.TableImpl;
import java.util.Collections;
import java.util.List;
public class GeneralStatistics extends TableImpl<Record> {
... |
/*
* Copyright 2017 Axway Software
*
* 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 t... |
package org.dynmap.fabric_1_17.command;
import org.dynmap.fabric_1_17.DynmapPlugin;
public class DmapCommand extends DynmapCommandExecutor {
public DmapCommand(DynmapPlugin p) {
super("dmap", p);
}
} |
package com.tngtech.archunit.example.layers.service;
import java.util.Map;
import java.util.Set;
import com.tngtech.archunit.example.layers.controller.SomeUtility;
import com.tngtech.archunit.example.layers.controller.one.SomeEnum;
import com.tngtech.archunit.example.layers.security.Secured;
/**
* Well modelled cod... |
/*
* Copyright 2002-2013 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... |
package com.blooms.kingsite.common.utils.excel.fieldtype;
import com.blooms.kingsite.common.utils.StringUtils;
import com.blooms.kingsite.modules.sys.entity.Office;
import com.blooms.kingsite.modules.sys.utils.UserUtils;
/**
* 字段类型转换
* @author Blooms
* @version 2013-03-10
*/
public class OfficeType {
/**
* 获取... |
package cc.jscode.biz.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by zhangxihui@hujiang.com
* 2017/4/28
*/
@RestController
public class TestCont... |
package seedu.address.model.bug;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import seedu.address.testutil.BugBuilder;
public c... |
// compile commands: javac piggybank/*.java
// jar cvfe piggybank.jar piggybank.Main piggybank/*.class
// java -jar piggybank.jar
package piggybank;
import java.util.*;
import java.text.DecimalFormat;
public class Main
{
public static void main(String[] args)
{
De... |
package com.gojek.beast.exception;
/**
* Class models all exceptions that are generated from the handler while processing errors to DLQ.
*/
public class ErrorWriterFailedException extends RuntimeException {
public ErrorWriterFailedException(Throwable cause) {
super(cause);
}
public ErrorWriterFai... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0-SNAPSHOT
// See <a href="https://jaxb.java.net/">https://jaxb.java.net/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: ... |
package com.dobon.projectm7.ui.slideshow;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class SlideshowViewModel extends ViewModel {
private MutableLiveData<String> mText;
public SlideshowViewModel() {
mText = new MutableLi... |
/*
* Copyright 2019 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 org.edx.mobile.view;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import org.edx.mobile.base.MainApplication;
import org.edx.mobile.core.IEdxEnvironment;
import org.edx.mobile.logger.Logger;
import org.edx.mobile.util.Config;
import org.edx.mobile.util.NetworkUtil;
imp... |
package com.joymain.jecs.sys.webapp.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.servlet.ModelAndView;
import org.springfr... |
/**
* 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 2016-2017 Seznam.cz, a.s.
*
* 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 ... |
/**
* Precisely APIs
* Enhance & enrich your data, applications, business processes, and workflows with rich location, information, and identify APIs.
*
* OpenAPI spec version: 11.8.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codege... |
/*
* Copyright 2002-2018 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... |
/*
* 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 Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... |
/*
* Copyright (c) 2018. Xiong Raorao. All rights reserved.
* Project Name: book-notes
* File Name: Singleton2.java
* Date: 18-3-17 下午7:08
* Author: Xiong Raorao
*/
package top.xraorao.sword.t2;
/**
* 2. 懒汉式(线程安全)
*
* @author Xiong Raorao
* @since 2018-03-17-19:08
*/
public class Singleton2 {
private st... |
/*
* Copyright 2014-2017 See AUTHORS file.
*
* 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... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... |
package cn.edu.gdut.zaoying.Option.series.line.itemStyle.normal;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface BorderColorH... |
package org.magic.api.exports.impl;
import java.io.File;
import java.io.IOException;
import java.util.List;
import javax.swing.Icon;
import org.apache.commons.lang3.NotImplementedException;
import org.magic.api.beans.MagicCardStock;
import org.magic.api.beans.MagicDeck;
import org.magic.api.beans.enums.MTGExportCate... |
/**
* 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
* distrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.