text stringlengths 7 1.01M |
|---|
/*
* 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 rtp.demo.domain.account;
import java.util.Objects;
import io.swagger.annotations.ApiModel;
import com.fasterxml.jackson.annotation.JsonValue;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
import com.fasterxml.jackson.annotatio... |
/*
* 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 retrospector.fxml.achievements.accumulators;
import java.time.LocalDate;
import java.util.HashMap;
import java.util.List;
impo... |
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.runners.JUnit4;
public class DuplicateEncoderTest {
@Test
public void test() {
assertEquals(")()())()(()()(",
DuplicateEncoder.encode("Prespecialized"));
assertEquals("))))())))",DuplicateEncod... |
package sample;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Collections;
public class CreateArrayOfWays {
public int[][] diagonalNull(int[][] matrix){
int size = matrix.length;
int[][] matrdiagnull = new int[size][size];
for(int i = 0; i < size; i++){
... |
package lab2;
import java.util.Arrays;
import java.util.Scanner;
public class lab2_4 {
public static void main(String[] args) {
System.out.println("Enter the number of Element");
Scanner sc = new Scanner(System.in);
int len = sc.nextInt();
int[] array = new int[len];
System.out.println("Enter the elements... |
// Copyright (C) 2021 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 ... |
package uk.co.cwspencer.ideagdb.debug;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.util.PlatformIcons;
import com.intellij.xdebugger.frame.XCompositeNode;
import com.intellij.xdebugger.frame.XValue;
import com.intellij.xdebugger.frame.XValueChildrenList;
import com.intellij.xdebugger.frame.XValu... |
/*
* Copyright 2000-2014 Vaadin Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
package ro.ase.csie.cts.g1084;
import ro.ase.csie.cts.g1084.TipClient;
import ro.ase.csie.cts.g1084.exceptii.ExceptieTipClient;
import ro.ase.csie.cts.g1084.marketing.Promotie;
import ro.ase.csie.cts.g1084.marketing.PromotieAbstracta;
public class Client {
PromotieAbstracta promo;
public void setPromo(PromotieAb... |
package com.shoon.javatodos;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ToDosApplication {
public static void main(String[] args) {
SpringApplication.run(ToDosApplication.class, args);
}
... |
package aQute.bnd.osgi;
import java.io.*;
import java.util.*;
import java.util.Map.Entry;
import java.util.jar.*;
import java.util.regex.*;
import aQute.bnd.header.*;
import aQute.bnd.osgi.Descriptors.PackageRef;
import aQute.bnd.osgi.Descriptors.TypeRef;
import aQute.bnd.version.*;
import aQute.lib.base64.*;
import ... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... |
package se.l4.otter.operations.combined;
import se.l4.otter.operations.Operation;
import se.l4.otter.operations.internal.combined.DefaultCombinedDelta;
/**
* Delta builder for combined operations.
*
* @author Andreas Holstenson
*
* @param <ReturnPath>
*/
public interface CombinedDelta<ReturnPath>
{
/**
* Upd... |
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* 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... |
// Copyright 2018 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... |
package org.apache.spark;
/**
* An identifier for a partition in an RDD.
*/
public interface Partition extends scala.Serializable {
public boolean equals (Object other) ;
public int hashCode () ;
/**
* Get the partition's index within its parent RDD
* @return (undocumented)
*/
public int index ... |
/*
* $RCSfile: ColorQuantizerType.java,v $
*
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision: 1.1 $
* $Date: 2005/02/11 04:57:31 $
* $State: Exp $
*/
package com.lightcrafts.mediax.jai.operator;
import com.lightcrafts.mediax.jai.EnumeratedPa... |
package cl.populus.api.entities;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ListaEstadisticas {
private List<Estadistica> estadisticas;
/**
* @return the estadisticas
*/
public List<Estadistica> getEstadisticas() {
return es... |
package org.checkerframework.dataflow.cfg.node;
import com.sun.source.tree.NewClassTree;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import javax.lang.model.element.ExecutableElement;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.ch... |
package com.refactor.nullobject.introduce;
public class SiteClient {
public static void main(String[] args) {
Site site = new Site();
Customer customer = site.getCustomer();
BillingPlan plan = customer.getPlan();
String customerName = customer.getName();
int weeksDelinquent... |
/**
* @file printSBML.java
* @brief Prints some information about the top-level model
* @author Nicolas Rodriguez (translated from libSBML C++ examples)
* @author Ben Bornstein
* @author Michael Hucka
*
* $Id: printSBML.java 13594 2011-04-11 01:28:15Z mhucka $
* $HeadURL: https://sbml.svn.sourceforge.ne... |
package com.bluroc.cloud.microservicescloudconsulmiya;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@EnableDiscoveryClient
public class Microservic... |
package org.openstreetmap.atlas.checks.validation.intersections;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.function.Predicate;
import java.util.stream.Collectors;
... |
package xyz.guqing.app.bean.dictmap;
import xyz.guqing.app.bean.dictmap.base.AbstractDictMap;
/**
* 角色的字典
*
* @author fengshuonan
* @date 2017-05-06 15:01
*/
public class RoleDict extends AbstractDictMap {
@Override
public void init() {
put("roleId","角色名称");
put("num","角色排序");
pu... |
package com.dsmhack.igniter;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
public class TestBatchRunner extends SpringContextConfigur... |
package com.atguigu.gmall.pms.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 商品评价
*
* @author wpf
* @email 764545780@qq.com
* @date 2021-06-22 19:41:22
*/
@Data
@Tab... |
package manifold.ij.extensions;
import com.intellij.codeInsight.daemon.impl.analysis.JavaGenericsUtil;
import com.intellij.openapi.util.RecursionManager;
import com.intellij.psi.PsiArrayInitializerExpression;
import com.intellij.psi.PsiConditionalExpression;
import com.intellij.psi.PsiDiamondType;
import com.intellij.... |
/*
* 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 (C) 2016 Baidu, Inc. All Rights Reserved.
*/
package com.baidu.hsb.util;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* @author brucexx
*
*/
public class ThreadPool {
public static String COMMON = "comm... |
// Copyright (C) 2019 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 ... |
package seedu.address.logic.parser;
import static java.util.Objects.isNull;
import static java.util.Objects.requireNonNull;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import seedu.address.commons.core.index.Index;
import seedu.address.commons.util.StringUtil;
import seedu.address.lo... |
package cn.njiuyag.springboot.blog.dto;
import cn.njiuyag.springboot.blog.framework.ErrorCode;
/**
* @author hjx
* @date 2020/12/31
*/
public class ResultDTO<T extends Object> {
private String code;
private String tips;
private T data;
public ResultDTO(String code, String tips) {
this.code... |
/*
* Copyright (c) 2008-2019, 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 ... |
/**
* Copyright 2013 Joan Zapata
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable law o... |
package org.nutz.plugins.profiler;
import org.nutz.lang.util.Node;
public class PrContext {
public Node<PrSpan> current;
}
|
/*
* Copyright (C) Habib Rehman (git.io/HR) 2018
*/
package co.sahr.android.picturesque.fragments.main;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import co.sahr.android.picturesque.adapters.WallAdapter;
import co.sahr.android.picturesque.data.models.It... |
/*
Copyright 2021 Raffaele Florio
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 com.alibaba.excel.write.metadata.fill;
import java.util.List;
import com.alibaba.excel.enums.WriteTemplateAnalysisCellTypeEnum;
/**
* Read the cells of the template while populating the data.
*
* @author Jiaju Zhuang
**/
public class AnalysisCell {
private int columnIndex;
private int rowIndex;
... |
/*
* Copyright (c) 2021 The lambda4j 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... |
/*
* 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 gr.sublime.block;
import gr.sublime.Main;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.IProperty;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockFaceShape... |
package no.nordicsemi.android.meshprovisioner.transport;
import androidx.annotation.NonNull;
import android.util.Log;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import no.nordicsemi.android.meshprovisioner.opcodes.ApplicationMessageOpCodes;
import no.nordicsemi.android.meshprovisioner.utils.SecureUtils;
... |
package net.minecraft.entity.ai;
import net.minecraft.entity.EntityCreature;
import net.minecraft.util.Vec3;
public class EntityAIPanic extends EntityAIBase
{
private EntityCreature theEntityCreature;
protected double speed;
private double randPosX;
private double randPosY;
private double randPosZ... |
/*
* 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... |
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright 2018-2019 The Feast 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
*... |
/*
* Copyright (c) 2018-2020 Baidu.com, 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 ap... |
/*
* GeoTools - The Open Source Java GIS Toolkit
* http://geotools.org
*
* (C) 2004-2008, Open Source Geospatial Foundation (OSGeo)
*
* 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 ... |
package com.taozi.day06.entity;
/**
* @author ZhaoTaoSheng
* @since 2021/1/7 21:36
*/
public class Person {
private int id;
private String name;
private Email email;
private Address address;
public Person() {
}
public Person(int id, String name, Email email, Address address) {
this.id = id;
this.name =... |
package App.View;
import App.Handler.SQLCommands;
import App.Handler.SQLHandler;
import javafx.application.Platform;
import javafx.concurrent.Task;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.Pa... |
package org.ultramine.server.chunk.alloc.unsafe;
import sun.misc.Unsafe;
//LSB
//MSB#META
//BLOCK#SKY
public final class Unsafe7MemSlot extends AbstractUnsafeMemSlot {
private static final long BYTE_ARRAY_OFFSET = Unsafe.ARRAY_BYTE_BASE_OFFSET;
private static final int OFFSET_MSB = 4096;
private static final int O... |
/*
* Copyright 2004-2009 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 co.solinx.kafka.monitor.core.service;
import org.jolokia.jvmagent.JolokiaServer;
import org.jolokia.jvmagent.JvmAgentConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
/**
*
*
* @author linxin
* @version v1.0
* Copyright (c) 2015 by solinx
* @date 2016... |
package com.nokia.springboot.training.d02.s05.service;
import com.nokia.springboot.training.d02.s05.repository.ProductRepository;
import com.nokia.springboot.training.d02.s05.model.Product;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springfr... |
package com.paladin.common.mapper.org;
import com.paladin.common.core.security.Menu;
import com.paladin.common.model.org.OrgMenu;
import com.paladin.framework.service.mybatis.CommonMapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface OrgMenuMapper extends CommonMapper<OrgMenu>... |
/*
* 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 under t... |
package com.highjet.common.modules.common.enums;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
//@JSONType(serializeEnumAsJavaBean = true)
public enum GenderEnum {
all("","","全部"),
... |
//,temp,NetscalerResource.java,2786,2812,temp,NetscalerResource.java,2764,2784
//,3
public class xxx {
private void bindServiceToMonitor(final String nsServiceName, final String nsMonitorName) throws ExecutionException {
try {
com.citrix.netscaler.nitro.resource.config.basic.service serviceObje... |
package com.oms.model;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
*
* @author sdrahnea
*/
@Entity
@Table(name = "unit_industry")
public class UnitIndustry extends CoreEntity {
}
|
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import com.ctre.phoenix.motorcontrol.SupplyCurrentLimitConfiguration;
import com.ctre.phoenix.motorc... |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... |
/*
* The MIT License (MIT)
*
* Copyright (C) 2018 Fabrício Barros Cabral
*
* 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 xyz.zzyitj.qbremote.activity;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import xyz.zzyitj.qbremote.R;
/**
* @author intent
* @version 1.0
* @date 2020/2/11 7:06 下午
* @email zzy.main@gmail.com
*/
public class DonationActivity extends Ap... |
open module org.jabref {
// Swing
requires java.desktop;
// SQL
requires java.sql;
// JavaFX
requires javafx.graphics;
requires javafx.swing;
requires javafx.controls;
requires javafx.web;
requires javafx.fxml;
requires afterburner.fx;
requires com.jfoenix;
requires... |
import java.util.*;
class BankAccount
{
String account_holder;
String account_no;
int balance_amount;
boolean flag=false;
BankAccount(String ah,String an,int amt)
{
account_holder=ah;
account_no=an;
balance_amount=amt;
}
synchronized void moneyDeposit(int n)
{
while(flag)
{
try
{
wait();
... |
package com.vondear.rxtools.interfaces;
/**
* Created by Administrator on 2017/3/10.
*/
public interface onRequestPermissionsListener {
void onRequestBefore();
void onRequestLater();
}
|
package com.codi.superman.base.domain;
import com.codi.base.domain.BaseDomain;
import java.util.Date;
/**
* 用户权限
*
* @author shi.pengyan
* @date 2016-12-22 15:10
*/
public class SysUserRole extends BaseDomain {
private Long roleId;
private Long userId;
private String state;
private Date createD... |
import java.util.List; // import just the List interface
import java.util.ArrayList; // import just the ArrayList class
// "static void main" must be defined in a public class.
class MyQueue {
// store elements
private List<Integer> data;
// a pointer to indicate the start position
private int ... |
package com.j256.ormlite.android.apptools;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.j256.ormlite.logger.Logger;
import com.j256.ormlite.logger.LoggerFactory;
import com.j256.ormlite.support.ConnectionSource;
/**... |
/*
* Copyright 2016 Crown Copyright
*
* 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... |
package com.sequenceiq.cloudbreak.orchestrator.model;
import com.sequenceiq.cloudbreak.common.type.TemporaryStorage;
public class Node {
private final String privateIp;
private final String publicIp;
private final String instanceId;
private final String instanceType;
private String hostname;
... |
package net.minecraft.client.renderer.debug;
import com.google.common.collect.Maps;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.platform.GlStateManager;
import com.mojang.blaze3d.systems.RenderSystem;
import java.util.Map;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.m... |
/*
* Copyright 2012-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package liquibase.snapshot.jvm;
import liquibase.database.Database;
import liquibase.database.structure.Column;
import liquibase.database.structure.Table;
import liquibase.database.core.H2Database;
import liquibase.exception.DatabaseException;
import liquibase.statement.DatabaseFunction;
import java.sql.Resu... |
package io.zero88.jooqx;
import org.jooq.Table;
import org.jooq.TableLike;
import org.jooq.TableRecord;
import io.vertx.core.json.JsonObject;
import lombok.NonNull;
/**
* Represents for an intermediate record between Vertx ResultSet and actual jOOQ Record and does support serialize to
* {@code JsonObject}
*
* @... |
package com.i2n.spyfall.views.main;
import java.util.Optional;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ComponentUtil;
import com.vaadin.flow.component.applayout.AppLayout;
import com.vaadin.flow.component.dependency.CssImport;
import com.vaadin.flow.component.dependency.JsModule;
... |
/*-
* <<
* DBus
* ==
* Copyright (C) 2016 - 2019 Bridata
* ==
* 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... |
//
// Decompiled by Procyon v0.5.36
//
package org.mudebug.prapr.reloc.commons.collections.buffer;
import java.util.Collection;
import org.mudebug.prapr.reloc.commons.collections.Transformer;
import org.mudebug.prapr.reloc.commons.collections.Buffer;
import org.mudebug.prapr.reloc.commons.collections.collection.Tra... |
package fwlib32;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool written by <a href="http://ochafik.com/">Olivier Chafik<... |
/**
* Copyright 2015 StreamSets Inc.
*
* Licensed under 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 Lice... |
package org.chocosolver.graphsolver.cstrs.connectivity;
import org.chocosolver.graphsolver.util.ConnectivityFinder;
import org.chocosolver.graphsolver.variables.GraphEventType;
import org.chocosolver.graphsolver.variables.UndirectedGraphVar;
import org.chocosolver.solver.constraints.Propagator;
import org.chocosolver.... |
package com.dgv.slotcounter.repository;
import com.dgv.slotcounter.entity.Lap;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface LapRepository extends Jpa... |
/**
* 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 io.github.madmaxlab.echocore.dao;
import io.github.madmaxlab.echocore.entity.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.jdbc.Sql;
import java.util.U... |
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package com.xchb.gulimall.admin.modules.sys.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xchb.gulimall.admin.modules.sys.entity.SysUserRoleEntity;
import java.util.List;
/**... |
/*
* 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.hr.framework.repo;
import com.hr.framework.po.business.crm.meeting.Meeting;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import java.util.List;
@RepositoryRestResource(collectionResourceRel = "... |
package com.learnbyalok.dsone.linklist;
public class CustomLinkList<T> {
private Node<T> head , tail = null;
private int length = 0;
public T getHead() {
if (head != null) {
return head.getValue();
}else {
return null;
}
}
public T getTail() {
if (tail != null) {
return tail.getValue();
}el... |
package daw;
import java.util.ArrayList;
public class Main {
public static ArrayList<Channel> Channels = new ArrayList<Channel>(StaticData.MAX_CHANNELS);
public static int TempoBPM = 120; // Beats Per Minute
public static boolean Playing = false;
public static Thread GuiThread = null;
public static Thre... |
package org.vivecraft.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.NoSuchAlgorithmException;
import java.util.Random;
public class MenuWorldDownloader {
private static final String baseUrl = "https://cache.techjargaming.com/v... |
package solution;
import java.util.HashMap;
import java.util.Map;
/**
* 判断两个单词是否互为变位词。
* 变位词:如果两个单词中出现的字母相同,并且每个字母出现的次数也相同,那么这两个单词互为变位词。
* 例子:silent和listen,evil和live
*/
public class Anagram {
public boolean isAnagram(String str1, String str2) {
if (str1 == null || str2 == null) {
return ... |
package net.aegistudio.mcinject;
import net.aegistudio.reflect.clazz.Instance;
import net.aegistudio.reflect.clazz.SamePackageClass;
import net.aegistudio.reflect.method.AbstractExecutor;
import net.aegistudio.reflect.method.NamedExecutor;
public class IChatBaseComponent extends Instance<IChatBaseComponent.Class> {
... |
package org.ado.biblio.resources;
import org.slf4j.Logger;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
/**
* @author Andoni del Olmo
* @since 21.09.15
*/
public class GeneralResource {
protected void formatAndThrow(Logger logger, Response.Status status, String message) {
... |
package swise.visualization;
import java.awt.BasicStroke;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import sim.portrayal.DrawInfo2D;
import sim.portrayal.network.SimpleEdgePortrayal2D;
/**
* A simple portrayal to draw the edges of a network whose nodes a... |
///////////////////////////////////////////////////////////////////////////
// __ _ _ ________ //
// / / ____ ____ _(_)____/ | / / ____/ //
// / / / __ \/ __ `/ / ___/ |/ / / __ //
// ... |
package net.gini.android.vision.onboarding;
import android.os.Bundle;
import android.support.annotation.NonNull;
import net.gini.android.vision.internal.ui.FragmentImplCallback;
final class OnboardingPageFragmentHelper {
private static final String ARGS_PAGE = "GV_PAGE";
static Bundle createArguments(@NonN... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
MIT License
Copyright (c) 2021 Armin Reichert
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish,... |
package sample.entity;
/** */
@javax.annotation.Generated(value = { "Doma", "2.49.0" }, date = "2021-11-02T11:35:04.152-0300")
public final class BannerData_ implements org.seasar.doma.jdbc.criteria.metamodel.EntityMetamodel<sample.entity.BannerData> {
static {
org.seasar.doma.internal.Artifact.validateVe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.