text stringlengths 7 995k |
|---|
/*
* 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 ... |
/**
* Copyright (c) 2013-Now http://jeesite.com All rights reserved.
*/
package com.jeesite.modules.test.dao;
import com.jeesite.common.dao.TreeDao;
import com.jeesite.common.mybatis.annotation.MyBatisDao;
import com.jeesite.modules.test.entity.TestTree;
/**
* 测试树表DAO接口
* @author ThinkGem
* @version 2018-12-04
... |
package cn.xiaofangwei.onlinesurvey.controller;
import cn.xiaofangwei.onlinesurvey.entity.*;
import cn.xiaofangwei.onlinesurvey.entity.vo.AnswerVo;
import cn.xiaofangwei.onlinesurvey.entity.vo.DataAnalysis;
import cn.xiaofangwei.onlinesurvey.service.*;
import cn.xiaofangwei.onlinesurvey.utils.ExcelUtil;
import com.ba... |
/*
* Copyright (C) 2019 xuexiangjys(xuexiangjys@163.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 a... |
package org.coolWeather.app.service;
import org.coolWeather.app.receiver.AutoUpdateReceiver;
import org.coolWeather.app.util.HttpCallbackListener;
import org.coolWeather.app.util.HttpUtil;
import org.coolWeather.app.util.Utility;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Se... |
package by.chemerisuk.cordova.advertising;
import android.content.Context;
import by.chemerisuk.cordova.support.CordovaMethod;
import by.chemerisuk.cordova.support.ReflectiveCordovaPlugin;
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
import org.apache.cordova.CallbackContext;
import org.json.JS... |
package com.bigboss.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializab... |
package ro.ase.csie.cts.g1088.laborator3.faza3;
import java.util.ArrayList;
import ro.ase.csie.cts.g1088.laborator3.exceptii.ExceptiePretInvalid;
import ro.ase.csie.cts.g1088.laborator3.exceptii.ExceptieVechimeClient;
import ro.ase.csie.cts.g1088.laborator3.faza3.servicii.InterfataMarketing;
import ro.ase.csie.cts.g1... |
/*
* Copyright 2011 The OpenIEC61850 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 agre... |
package com.juja.patterns.immutable.hashMapError;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Map<Key, Object> map = new HashMap<>();
System.out.println("добавим в нее два объекта под разными ключами 'key1' и 'key2'");
Key ke... |
/*
* Copyright 2015 Hannes Dorfmann.
*
* 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 ag... |
/*
* Copyright 2021-2022 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
*
* Unles... |
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is 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 may... |
package seedu.address.storage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import seedu.address.commons.exceptions.DataConversionException;
import seedu.address.model.ReadOnlyJobAddressBook;
import seedu.address.model.ReadOnlyPersonAddressBook;
import seedu.address.model.ReadOnly... |
/*
* Copyright 2012-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.callor.jc.exec;
import org.jasypt.encryption.pbe.StandardPBEStringEncryptor;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Map;
import java.util.Scanner;
public class MakeDBConnection {
public static void main(String[] args) throws FileNotFoundException {
... |
/*
* Copyright (C) 2018 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... |
package com.teamide.ide.service.impl;
import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.io.FileUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fa... |
package de.fraunhofer.iosb.maypadbackend.util.datastructures;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import static org.assertj.core.api.Assertions.assertThat;
public class ExpiringElementTest {
@Test
public void isElementExpired() thr... |
package jp.chang.myclinic.shujii.drawerpreview;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.... |
/*
* Copyright 2011-2016 David Karnok
*
* 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.github.lambdabuilder;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Supplier;
import static com.github.lambdabuilder.Node.node;
public class Builder<T> implements Supplier<T> {
protected Node root;
protected Node currentNode;
public Bu... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* 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
*... |
package world.worlds;
import java.awt.Graphics;
import world.Handler;
import world.entities.EntityManager;
import world.entities.creatures.Player;
import world.entities.statics.SpriteCapacitor;
import world.entities.statics.SpriteNPC;
import world.tiles.Tile;
import world.utils.Utils;
public class World {
private ... |
package jetbrains.mps.console.ideCommands.editor;
/*Generated by MPS */
import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.editor.c... |
/**
* Copyright (C) 2001 Peter Murray-Rust (pm286@cam.ac.uk)
*
* 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... |
/**
* Copyright (c) 2009-2011, The HATS Consortium. All rights reserved.
* This file is licensed under the terms of the Modified BSD License.
*/
package org.abs_models.backend.java.lib.runtime;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.util.R... |
package com.anjilang.util;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
/**
* 对HTTP客户端请求获得的响应的封装. <BR>
*/
public class Response {
public static final String DEF_ENCODING = "ISO8859-1";
private String requestURL;
private String actualPath;
... |
package org.bouncycastle.openpgp;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.bounc... |
/*
Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
package org.robolectric.shadows;
import android.app.ISearchManager;
import android.content.Context;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;
import android.os.ServiceManager;
import java.util.HashMap;
import org.robolectric.annotation.Impleme... |
/*
* Copyright (c) 2008-2020, Hazelcast, Inc. 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 ... |
/*
* JPPF.
* Copyright (C) 2005-2019 JPPF Team.
* http://www.jppf.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/LICENSE-2.0
*
* Unless re... |
package org.androidannotations.internal.x2c.xml;
/**
* @author chengwei 2018/8/25
*/
public class Func {
public String name;
public boolean isView;
public String paramsType;
public Func(String toFunc) {
String[] ss = toFunc.split("\\.");
if (ss.length == 2) {
isView = ss[0].equalsIgnoreCase("view");
... |
package cn.org.autumn.modules.job.controller;
import cn.org.autumn.annotation.SysLog;
import cn.org.autumn.modules.job.entity.ScheduleJobEntity;
import cn.org.autumn.utils.R;
import cn.org.autumn.validator.ValidatorUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... |
package de.init.backend.datatable.search;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class SearchQueryParseException extends RuntimeException {
private static final long serialVersionUID = 1L;
pu... |
package org.github.dtsopensource.core.dao;
/**
* @author ligaofeng 2016年12月17日 下午12:00:42
*/
public class ActivityRuleSqlConstance {
private ActivityRuleSqlConstance() {
}
public static final String select_dts_activity_by_biztype = "select * from dts_activity_rule where biz_type=? and is_deleted='N'";
} |
/*
* Copyright 2016 Google 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 w... |
/*
* Copyright 2020, OpenTelemetry 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... |
/*
* 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 2015-2017 Alexandr Evstigneev
*
* 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 a... |
package com.binggr.glmall.auth.vo;
/**
* @author: bing
* @date: 2020/12/5 14:31
*/
/**
* Copyright 2020 bejson.com
*/
import lombok.Data;
/**
* Auto-generated: 2020-12-05 14:30:21
*
* @author bejson.com (i@bejson.com)
* @website http://www.bejson.com/java2pojo/
*/
@Data
public class SocialUser {
privat... |
package com.moby.service;
import com.moby.entiry.AuthUser;
import com.moby.entiry.DeviceServer;
import com.moby.entiry.DeviceStorage;
import java.util.List;
/**
* Created by Moby on 16/6/13.
*/
public interface DeviceStorageService {
/**
* 根据ID获取Device
* @param deviceID
* @return
*/
D... |
package com.ruoyi.calendar.service.impl;
import com.ruoyi.calendar.domain.OssSchedule;
import com.ruoyi.calendar.mapper.OssScheduleMapper;
import com.ruoyi.calendar.service.IOssScheduleService;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.cor... |
package com.bookshop.pojo;
import java.util.Date;
public class Cart {
private Integer id;
private Integer userId;
private Integer productId;
private Integer quantity;
private Integer checked;
private Date createTime;
private Date updateTime;
public Integer getId() {
retu... |
/*
* Copyright 2008-present MongoDB, 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 ag... |
package com.power4j.sequence.example;
import com.power4j.kit.seq.core.SeqFormatter;
import com.power4j.kit.seq.core.Sequence;
import com.power4j.kit.seq.ext.SequenceRegistry;
import com.power4j.kit.seq.persistent.Partitions;
import com.power4j.kit.seq.persistent.SeqHolder;
import com.power4j.kit.seq.persistent.SeqSync... |
/*
* Copyright 2013-2019 the original author or authors. Copyright 2019 The OpenTracing 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... |
package com.design.patterns.creational.factory.simplefactory;
public class XMLParser extends Parser {
@Override
public void parse() {
System.out.println("XML parsing is successful");
}
} |
// Copyright 2021 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
/*
* 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 springbook.user.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public interface StatementStrategy {
PreparedStatement makePreparedStatement(Connection c) throws SQLException;
} |
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
// Copyright (C) 2017 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 applicable ... |
/**
* Copyright (c) 2001-2014 Mathew A. Nelson and Robocode contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://robocode.sourceforge.net/license/ep... |
/*
* Copyright 2017 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 org.agoncal.fascicle.beanvalidation.advanced.ex02;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
/**
* @author Antonio Goncalves
* http://www.antoniogoncalves.org
* --
*/
public class ChronologicalDatesValidator implements ConstraintValidator<Chronologica... |
/**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... |
package de.deadlocker8.budgetmaster.unit.helpers;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.read.ListAppender;
import org.slf4j.LoggerFactory;
public class LoggerTestUtil
{
public static ListAppender<ILoggingEvent> getListAppenderForClass(Class ... |
package net.minecraft.item;
import com.mojang.authlib.GameProfile;
import java.util.List;
import java.util.UUID;
import net.minecraft.block.Block;
import net.minecraft.block.BlockSkull;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.Entit... |
package us.kbase.cs.orm.dumpers;
import us.kbase.cs.orm.Column;
import us.kbase.cs.orm.ColumnType;
import us.kbase.cs.orm.Dumper;
import java.io.IOException;
public class Involves extends Dumper {
@Column(name="from_link", type=ColumnType.STRING)
private String fromLink;
@Column(name=... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
/*
* Copyright 2018-2021 Jonathan Jogenfors, jonathan@jogenfors.se
*
* 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
* ... |
package com.hust.baseweb.applications.tms.repo;
import com.hust.baseweb.applications.tms.entity.PartyDriver;
import org.springframework.data.repository.PagingAndSortingRepository;
import java.util.UUID;
public interface PPartyDriverRepo extends PagingAndSortingRepository<PartyDriver, UUID> {
} |
package com.davenonymous.bonsaitrees3.setup;
import com.davenonymous.bonsaitrees3.BonsaiTrees3;
import com.davenonymous.bonsaitrees3.client.BonsaiPotModelLoader;
import com.davenonymous.bonsaitrees3.client.BonsaiPotRenderer;
import com.davenonymous.bonsaitrees3.client.BonsaiPotScreen;
import com.davenonymous.bonsaitre... |
package com.learn.demomarket.product.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.learn.common.utils.PageUtils;
import com.learn.demomarket.product.entity.SkuInfoEntity;
import com.learn.demomarket.product.vo.SkuItemVo;
import java.util.List;
import java.util.Map;
import java.util.c... |
public class Main {
public static void main(String[] args) {
//pluralize test
System.out.println(pluralize("dog", 3));
System.out.println(pluralize("cat", 1));
System.out.println(pluralize("turtle", 5));
//flipNHeads test
System.out.println(flipNHeads(3));
System.out.println(flipNHeads(5)... |
package com.levislv.statistics.fully;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import com.levislv.statistics.R;
import com.levislv.statistics.fully.navigationbar.view.NavigationBarActivity;... |
/**
* Copyright (c) 2017 Dell Inc., or its subsidiaries. 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
*/
pac... |
package pw.robertlewicki.coinwatcher;
import android.app.Activity;
import android.app.Application;
import javax.inject.Inject;
import dagger.android.AndroidInjector;
import dagger.android.DispatchingAndroidInjector;
import dagger.android.HasActivityInjector;
public class CoinWatcherApplication extends Application i... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.glass.sample.waveform;
public final class R {
public static final class dimen {
public static final int fo... |
package com.arvato.baboci.jsfBean;
import org.springframework.stereotype.Component;
@Component(value = "basicView")
public class BasicBean {
private String text = "test";
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
} |
/*
* Copyright (C) 2007 Júlio Vilmar Gesser.
*
* This file is part of Java 1.5 parser and Abstract Syntax Tree.
*
* Java 1.5 parser and Abstract Syntax Tree 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 F... |
package org.springrain.weixin.service;
import org.springrain.system.service.IBaseSpringrainService;
import org.springrain.weixin.entity.WxMpConfig;
public interface IWxMpServletService extends IBaseSpringrainService{
void saveWxMpConfig(WxMpConfig wxMpConfig) throws Exception;
void updateWxMpConfig(WxMpConfig wxM... |
package com.myproject.test.numbers;
public class GenerateCheckDigit {
public static void main(String[] args) {
String pArticleID = "3MZ00000030100061080";
for (int i = 0; i < pArticleID.length(); i++) {
if (pArticleID.substring(i, i + 1).matches("[a-zA-Z]+")) {
// get the ASCII of the ith Character if i... |
package com.learn.java.leetcode.tms0501;
import com.learn.java.leetcode.base.CallBack;
import com.learn.java.leetcode.base.Utilitys;
public class Main extends CallBack {
public static void main(String[] args) {
Utilitys.test(Main.class);
}
} |
package org.ovirt.engine.ui.common.view.popup.numa;
import java.util.ArrayList;
import java.util.List;
import org.ovirt.engine.core.common.businessentities.VdsNumaNode;
import org.ovirt.engine.ui.common.CommonApplicationResources;
import org.ovirt.engine.ui.common.view.CollapsiblePanelView;
import org.ovirt.engine.ui... |
/*
* 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 (C) 2016 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.collect.result;
import static com.opengamma.strata.collect.Guavate.toImmutableList;
import static com.opengamma.strata.collect.TestHelper.assertSerializa... |
/*
* 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, OpenTelemetry 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... |
package chinapex.com.wallet.executor.runnable;
import android.text.TextUtils;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import chinapex.com.wallet.bean.AssetBean;
import chinapex.com.wallet.bean.BalanceBean;
import chinapex.... |
package com.rideaustin.rest.model;
import static org.junit.Assert.*;
import java.util.Set;
import org.junit.Test;
import com.google.common.collect.ImmutableSet;
public class HeadingDirectionTest {
@Test
public void testFromNorth() throws Exception {
doTest(ImmutableSet.of(355.1, 0.0, 10.0), HeadingDirectio... |
/*
* 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 md.vmacari.sensors;
import md.vmacari.sensors.data.BuzzerData;
import md.vmacari.messages.MessagePresentationSubtypes;
import ... |
package uk.co.thomasc.steamkit.util.logging;
public class Debug {
public static void Assert(boolean condition) {
Debug.Assert(condition, "A condition was not met!");
}
public static void Assert(boolean condition, String comment) {
if (!condition) {
System.out.println(comment);... |
/*
* Copyright 2011 John Sample
* Copyright 2014 Andreas Schildbach
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
/*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... |
package org.motechproject.scheduler.service.impl;
import org.motechproject.event.MotechEvent;
import org.motechproject.scheduler.service.MotechSchedulerService;
import org.motechproject.scheduler.contract.CronJobId;
import org.motechproject.scheduler.contract.CronSchedulableJob;
import org.slf4j.Logger;
import org.slf... |
package kaptainwutax.featureutils.structure.device;
public class ParentInfo {
public final ParentInfo parent;
public final int x;
public final int z;
public final boolean present;
public ParentInfo(ParentInfo parent, int x, int z, boolean present) {
this.parent = parent;
this.x = ... |
package featurescomparison.workingwithbookmarks.addbookmark.java;
import com.aspose.words.Bookmark;
import com.aspose.words.Document;
import com.aspose.words.DocumentBuilder;
import com.aspose.words.SaveFormat;
public class AsposeBookmarks
{
// See more @ http://www.aspose.com/docs/display/wordsjava/Bookmarks+in+Asp... |
/*
* 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 ca.uhn.fhir.jpa.dao.r4;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.empty;
import static org.junit.Assert.assertThat;
import java.util.List;
import org.hl7.fhir.r4.model.Organization;
import org.hl7.fhir.r4.model.Patient;
import org.junit.AfterClass;
import org... |
/**
* Copyright (C) 2011 SEDICI (alira@sedici.unlp.edu.ar)
*
* 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 mahorad.com.android_dagger.di.module;
import dagger.Module;
import dagger.Provides;
import mahorad.com.android_dagger.di.scope.PerService;
import mahorad.com.android_dagger.util.O;
/**
* Created by Mahan Rad on 2017-08-30.
*/
@Module
public class BaseServiceModule {
@PerService
@Provides
publi... |
package org.vraptor.webapp;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.vraptor.view.OverridableViewManager;
import org.vraptor.view.ViewManager;
/**
* Reads a view properties file and gives back a new ViewManager based on the
* cu... |
package com.checkmarx.flow.service;
import com.checkmarx.flow.config.GitLabProperties;
import com.checkmarx.flow.config.ScmConfigOverrider;
import com.checkmarx.flow.constants.FlowConstants;
import com.checkmarx.flow.dto.RepoComment;
import com.checkmarx.flow.dto.RepoIssue;
import com.checkmarx.flow.dto.ScanRequest;
i... |
package nl.lab.roy.iotbase.handlers.request;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
public class Consumer implements Runnable {
private BlockingQueue<String[]> queue;
public Consumer(Bloc... |
package com.ixuea.android.downloader;
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 execu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.