text stringlengths 7 995k |
|---|
package org.usfirst.frc5588.Feodora;
import edu.wpi.cscore.UsbCamera;
import edu.wpi.first.wpilibj.CameraServer;
import edu.wpi.first.wpilibj.CounterBase.EncodingType;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.w... |
/*
* Copyright DataStax, 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 wri... |
package org.apache.lucene.search;
/*
* 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, Versi... |
/*
* 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 swordfish.views.panel;
//import com.sun.jna.Native;
//import com.sun.jna.NativeLibrary;
//import java.awt.BorderLayout;
//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 ... |
package collections;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class MapAggregateExample {
static class Department{
String name;
Employee chief;
public Department(String n,Employee e){
name = n;
chief = e;
}
public Department(String n... |
package com.techlad.colorstrings_example;
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.*;
/**
* Instrumented test, which will execute on a... |
package org.suifeng.baseframework.api.common.exception;
import org.suifeng.baseframework.api.common.enums.BaseExceptionEnum;
import lombok.Getter;
import lombok.Setter;
/**
* 业务异常
* @createTime 2019/5/24 12:43
* @author luoxc
*/
@Setter
@Getter
public class BizException extends BaseException {
public BizExc... |
/*****************************************************************************
* Copyright 2011-2012 INRIA
* Copyright 2011-2012 Universidade Nova de Lisboa
*
* 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 cop... |
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.xmlui.aspect.artifactbrowser;
import java.io.IOException;
import java.io.Serial... |
package chap14;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
public class DungeonTest
{
public static void main(String[] args) {
DungeonGame d = new DungeonGame();
System.out.print... |
/* Copyright (c) 2017 Stash
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.bitcoinj.core.bip47;
import java.math.BigInteger;
import java.security.In... |
package br.com.centralit.citcorpore.bean;
import br.com.citframework.dto.IDto;
public class RelacionamentoProdutoDTO implements IDto {
private Integer idTipoProduto;
private Integer idTipoProdutoRelacionado;
private String tipoRelacionamento;
public Integer getIdTipoProduto() {
return idTipoProduto;
... |
/*
*TO PRINT ALL VOTER LIST IN PDF
*/
package PrintAction;
import com.myapp.struts.hbm.ElectionManagerDAO;
import com.myapp.struts.utility.AppPath;
import com.myapp.struts.utility.LoggerUtils;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import javax.servlet.ServletOutputStream;
import java... |
/*
* Copyright 2012-2017 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 2021 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
// Copyright (c) 2019, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.desugar;
import com.android.tools.r8.CompilationFailedException;
import com.... |
package com.javayh.heartbeat.server;
import com.javayh.heartbeat.config.HeartBeatProperties;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelOption;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.ch... |
/*
* 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 org.eustrosoft.servlets;
import org.eustrosoft.providers.LogProvider;
import java.net.URLEncoder;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;... |
package org.apache.velocity.runtime.parser.node;
/*
* 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 ... |
class Shit {
void method(){
if (vv+ 1 < n && hh > 0)
while (hh > 0) {
if (a[vv+ 1] + hh <= l)
break;
hh--;
}
zz= p.length - hh;
}
} |
/*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a c... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/**
* AllTestRunner.java Copyright UCAR (c) 2014. University Corporation for Atmospheric Research (UCAR), National Center for Atmospheric Research (NCAR), Research
* Applications Laboratory (RAL), P.O. Box 3000, Boulder, Colorado, 80307-3000, USA.Copyright UCAR (c) 2014.
*/
package edu.ucar.metviewer.test;
import ... |
package com.thinkgem.jeesite.modules.wlpt.entity.card;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;
public class UserMetrocardImport {
private String billnumber;
private String paidmoney; // 实付金额
public UserMetrocardImport() {
}
public UserMetrocardImport(String billnumber,String pai... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.spring.webflux.client;
import static io.opentelemetry.instrumentation.spring.webflux.client.HttpHeadersInjectAdapter.SETTER;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.ap... |
//
// Decompiled by Procyon v0.5.36
//
package org.apache.maven.artifact.repository.metadata;
import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.artifact.Artifact;
public class SnapshotArtifactRepositoryMetadata extends AbstractRepositoryMetadata
{
private Artifact artifact... |
package info.smart_tools.smartactors.statistics.sensors.scheduled_query_sensor;
import info.smart_tools.smartactors.scheduler.interfaces.ISchedulerEntry;
import info.smart_tools.smartactors.scheduler.interfaces.exceptions.EntryScheduleException;
import info.smart_tools.smartactors.scheduler.interfaces.exceptions.Entry... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated... |
package org.genesis.javacollector.spring.aop.introduce;
import org.aopalliance.intercept.MethodInvocation;
import org.springframework.aop.support.DelegatingIntroductionInterceptor;
public class ControllablePerformaceMonitor
extends
DelegatingIntroductionInterceptor implements Monitorable, Testable {
private Thre... |
/**
* Copyright 2006-2021 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
*
* Unle... |
package com.atguigu.gulimall.oms.vo;
import lombok.Data;
/**
* 订单提交时返回的响应
*
* @author 10017
*/
@Data
public class OrderSubmitResponseVo {
private String msg;
private Integer code;
} |
/*
* Copyright 2012-2017 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.lynchli.pagination.domain;
/**
* @author Lynch
* @since 2015-04-24
*/
public interface Page {
int getPage();
int getSize();
int getTotalCount();
int getTotalPages();
int getStartRow();
int getEndRow();
} |
package cn.huanzi.qch.commonspider.util;
import org.apache.commons.lang.RandomStringUtils;
/**
* 随机数工具类
*/
public class RandomUtil {
/**
* 返回一个最小值-最大值的随机数
*/
public static Integer randomNumber(Integer min, Integer max) {
//(最小值+Math.randomNumber()*(最大值-最小值+1))
return (int) (min + ... |
package com.mvidalgarcia.pinmap;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
... |
package com.oneandone.cdi.weld;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import org.junit.Test;
/**
* @author aschoerk
*/
public class SuperclassTest ... |
module PrepCode {
} |
package com.smb.erp.entity;
import java.io.Serializable;
import javax.persistence.*;
import java.math.BigInteger;
/**
* The persistent class for the dimensionmapvalue database table.
*
*/
@Entity
@NamedQuery(name="DimensionMapValue.findAll", query="SELECT d FROM DimensionMapValue d")
public class DimensionMapVal... |
/*
* Copyright (c) 2019 STMicroelectronics – All rights reserved
* The STMicroelectronics corporate logo is a trademark of STMicroelectronics
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions... |
package webdriver;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.... |
package org.hisp.dhis.reporting.orgunitdistribution.action;
/*
* Copyright (c) 2004-2018, 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... |
/*
* Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
package p;
class A implements I {
public void m() {
}
public void m1() {
}
void test() {
A a0 = new A();
A a1;
a1 = a0;
a1.m1();
}
} |
package stackAndQueue;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Random;
/**
* @Description 寻找第K大
* @Author Zhang Qihang
* @Date 2022/3/11 21:02
*/
public class _offer76findKthLargest {
// 利用堆的方法
public int findKthLargest(int[] nums, int k) {
... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... |
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
* 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 player.project.com.musicplayer.controllers;
import android.content.Context;
import android.content.SharedPreferences;
import player.project.com.musicplayer.ultilities.Constant;
/**
* Created by Cuong on 2/4/2018.
*/
public class SettingManager {
private Context context;
private SharedPreferences s... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
package cn.netdiscovery.core;
import cn.netdiscovery.core.config.Constant;
import cn.netdiscovery.core.config.SpiderConfig;
import cn.netdiscovery.core.domain.Page;
import cn.netdiscovery.core.domain.Request;
import cn.netdiscovery.core.domain.Response;
import cn.netdiscovery.core.downloader.Downloader;
import cn.netd... |
package serwisPaczek.model.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAddressDto {
private Long id;
private String username;
private String name;
private String surname;
private String ci... |
package com.exasol.hadoop.hcat;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* All table metadata obtained from HCatalog table which are relevant for the Hadoop ETL UDFs.
*/
public class HCatTableMetadata {
private String hdfsLocation = ... |
package org.broadinstitute.hellbender.engine;
import htsjdk.samtools.SAMFileHeader;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.broadinstitute.hellbender.engine.spark.AssemblyRegionArgumentCollection;
import org.broadinstitute.hellbender.utils.IntervalUtils;
import or... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.07.... |
/*
* Copyright 2017 Brian Pellin, Jeremy Jamet / Kunzisoft.
*
* This file is part of KeePass DX.
*
* KeePass DX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.github.dakusui.pcond.ut;
import com.github.dakusui.pcond.Postconditions;
import com.github.dakusui.pcond.provider.AssertionProvider;
import com.github.dakusui.pcond.functions.Predicates;
import com.github.dakusui.pcond.provider.PostconditionViolationException;
import com.github.dakusui.pcond.utils.ut.TestB... |
package com.dbriglio.ostheme;
import android.content.res.Configuration;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONObject;
public class OsTheme extends CordovaPlugin {
@Override
public boolean execute(final String action, fina... |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package exception;
public class MissingObjectException extends Exception{
private String name;
public MissingObjectException() {
}
public MissingObjectException(String string) {
this.name = new String(string);
}
public String GetName() {
return new String(this.name);
}
} |
package com.xinshang.modular.biz.service.impl;
import com.xinshang.modular.biz.model.AppSet;
import com.xinshang.modular.biz.dao.AppSetMapper;
import com.xinshang.modular.biz.service.IAppSetService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* ... |
package ua.in.quireg.foursquareapp.ui.fragments;
import android.app.Fragment;
import android.os.Bundle;
import com.arellomobile.mvp.MvpDelegate;
import butterknife.Unbinder;
/**
* Date: 19-Dec-15
* Time: 13:25
*
* @author Yuri Shmakov
* @author Alexander Blinov
* @author Konstantin Tckhovrebov
*/
public cla... |
package com.oprow.bo;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Time;
public class Schedules {
protected Time morningOpeningTime;
protected Time morningClosingTime;
protected Time afternoonOpeningTime;
protected Time afternoonClosingTi... |
/*
* 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 suwu.daopuerp.entity.account;
import suwu.daopuerp.entity.Entity;
import suwu.daopuerp.entity.annotation.*;
@Table(name = "User")
public class User extends Entity {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private int id;
@Column(name = "username")
priva... |
package simulation;
import utils.ClientType;
public class ClientsDesc {
public int number;
public ClientType personality;
public ClientsDesc(int number, ClientType personality) {
assert personality != null;
this.number = number;
this.personality = personality;
}
} |
package discordInteraction.card;
public enum Rarity {
basic(1),
common(2),
uncommon(3),
rare(4),
legendary(5),
mythic(6);
private final int cost;
public static String getRarityForCost(int cost) {
for (Rarity rarity : Rarity.values())
if (rarity.cost == cost)
... |
package io.github.versatilevelociraptors.ld32.weapons;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
public class NyanGun extends Weapon {
public NyanGun() {
super(100, 20, 10, 1, 500,
new Texture("assets/images/nyancat.png"), new Sprite(new Texture("assets/images/nyan... |
/*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.orm.property;
import java.io.IOException;
import java.util.UUID;
import org.lealone.db.value.Value;
import org.lealone.db.value.ValueUuid;
import org.lealone.orm.Model;
imp... |
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE
package org.bytedeco.tensorflow;
import org.bytedeco.tensorflow.Allocator;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import static org.bytedeco.tensorfl... |
/*
* Copyright 2019 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.atguigu.gmall.oms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.sdk.metrics;
import io.opentelemetry.api.common.Labels;
import io.opentelemetry.api.metrics.BoundDoubleCounter;
import io.opentelemetry.api.metrics.DoubleCounter;
import io.opentelemetry.api.metrics.DoubleCou... |
package fi.aalto.ekanban.models;
import java.util.Map;
public class CFDDailyValue {
private Integer day;
private Integer enteredBoard;
// phase id -> daily value
private Map<String, Integer> phaseValues;
public Integer getDay() {
return day;
}
public void setDay(Integer day) {
... |
package com.alorma.github.sdk.bean.dto.response;
public class GitCommitVerification {
public boolean verified;
public String reason;
public String signature;
public String payload;
} |
package seedu.ultistudent.logic.commands;
import static java.util.Objects.requireNonNull;
import static seedu.ultistudent.logic.parser.CliSyntax.PREFIX_DEADLINE;
import static seedu.ultistudent.logic.parser.CliSyntax.PREFIX_HOMEWORK;
import static seedu.ultistudent.logic.parser.CliSyntax.PREFIX_MODULECODE;
import se... |
/*
* 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 ... |
/*
* (c) Copyright 2018 Palantir Technologies 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 ... |
package org.hzero.report.domain.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hzero.boot.platform.lov.annotation.LovValue;
import org.hzero.report.domain.repository.ReportTemplateRepository;
import org.hze... |
package de.soderer.utilities;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
public class DateUtilities {
public static final String DD_MM_YYYY_HH_MM_SS = "dd.MM.yyyy HH:mm:ss";
public static final String ... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package android.support.swiperefreshlayout;
public final class R {
private R() {}
public static final class attr {
pri... |
package org.basex.util.ft;
import org.basex.util.options.*;
/**
* Full-text scope options.
*
* @author BaseX Team 2005-18, BSD License
* @author Christian Gruen
*/
public final class FTScopeOptions extends Options {
/** Option: same. */
public static final BooleanOption SAME = new BooleanOption("same", true)... |
package test.cdi.beans_c;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
public class AppScopedBean {
} |
// Targeted by JavaCPP version 1.5: DO NOT EDIT THIS FILE
package org.bytedeco.hdf5;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.hdf5.global.hdf5.*;
/* Prototype for H5Literate/H5Literate_by_name() operator */
@Properties(inherit = org.byte... |
package mage.cards.m;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ColoredManaCost;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.keyword.ChangelingAbility;
import mage.abilities.keywor... |
package com.yx.database.mybatis.conditions.query;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.AbstractLambdaWrapper;
import com.baomidou.mybatisplus.core.conditions.SharedString;
import com.baomidou.mybatisplus.core.conditions.query.Query;... |
//给定一个排序数组,你需要在原地删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。
//
// 不要使用额外的数组空间,你必须在原地修改输入数组并在使用 O(1) 额外空间的条件下完成。
//
// 示例 1:
//
// 给定数组 nums = [1,1,2],
//
//函数应该返回新的长度 2, 并且原数组 nums 的前两个元素被修改为 1, 2。
//
//你不需要考虑数组中超出新长度后面的元素。
//
// 示例 2:
//
// 给定 nums = [0,0,1,1,1,2,2,3,3,4],
//
//函数应该返回新的长度 5, 并且原数组 nums 的前五个元素被修改为 0, 1,... |
package ezvcard.property;
import static ezvcard.property.PropertySensei.assertCopy;
import static ezvcard.property.PropertySensei.assertEqualsMethod;
import static ezvcard.property.PropertySensei.assertNothingIsEqual;
import static ezvcard.property.PropertySensei.assertValidate;
import static org.junit.Assert.assertEq... |
package de.can.sockenschach;
import de.can.sockenschach.game.GameBoard;
import de.can.sockenschach.gui.GameFrame;
import de.can.sockenschach.game.Match;
import de.can.sockenschach.gui.render.Font;
import de.can.sockenschach.gui.render.RenderHandler;
import de.can.sockenschach.gui.sprite.SpriteHandler;
import de.can.so... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE369_Divide_by_Zero__float_connect_tcp_modulo_21.java
Label Definition File: CWE369_Divide_by_Zero__float.label.xml
Template File: sources-sinks-21.tmpl.java
*/
/*
* @description
* CWE: 369 Divide by zero
* BadSource: connect_tcp Read data using an outbound tcp connect... |
/*
* 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 ... |
/*
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... |
import java.util.*;
public class hcf_lcm
{
int x,y;
int lcm(int x,int y)
{
return x*y/hcf(x,y);
}
int hcf(int x,int y)
{
int h=0;
int min=x<y?x:y;
for(int i=1;i<=min;i++)
if(x%i==0&&y%i==0)
h=... |
package org.springframework.data.jpa.datatables.qrepository;
import com.querydsl.core.BooleanBuilder;
import com.querydsl.core.types.EntityPath;
import com.querydsl.core.types.Ops;
import com.querydsl.core.types.Predicate;
import com.querydsl.core.types.dsl.PathBuilder;
import org.springframework.data.domain.Page;
imp... |
@DependsUpon(packagesOf = {
com.github.t1.kubee.control.Controller.class,
com.github.t1.kubee.entity.Cluster.class,
com.github.t1.kubee.tools.html.Html.class,
})
package com.github.t1.kubee.boundary.rest.html;
import com.github.t1.testtools.DependsUpon; |
/*
* Copyright 2017-2018 Aljoscha Grebe
*
* 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... |
/*
* (C) Copyright IBM Corp. 2016,2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.whc.deid.jsonpath.component;
import com.fasterxml.jackson.databind.JsonNode;
import com.ibm.whc.deid.jsonpath.JSONPathException;
public class FieldComponent implements JSONPathComponent {
/**
*
*/
private... |
/**
* Project: com.dianping.zebra.zebra-client-0.1.0
*
* File Created at 2011-6-14
* $Id$
*
* Copyright 2010 dianping.com.
* All rights reserved.
*
* This software is the confidential and proprietary information of
* Dianping Company. ("Confidential Information"). You shall not
* disclose such Confidentia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.