text stringlengths 7 995k |
|---|
/*
* Copyright (C) 2010 JFrog 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 to i... |
// Copyright 2018 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 appl... |
/*
* Copyright (C) 2011 University of Washington
*
* 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) 2010 - 2021 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* 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... |
package org.sourceheads.jfx.controls;
import java.util.Iterator;
import javafx.beans.InvalidationListener;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.colle... |
package tests.screenShotTrainer;
import app.appmanager.ApplicationManager;
import app.testbase.TestBase;
import core.general.RunTestAgain;
import java.awt.AWTException;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
import org.openqa.selenium.By;
import org.testng.Assert;
import org.testng... |
package com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger;
import hudson.Extension;
import hudson.model.TaskListener;
import hudson.model.Result;
import hudson.plugins.git.IGitAPI;
import hudson.plugins.git.GitAPI;
import hudson.plugins.git.GitException;
import hudson.plugins.git.Revision;
import hudson.pl... |
package com.example.java_db_09_exercise.repositories;
import com.example.java_db_09_exercise.model.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
pu... |
package io.quarkiverse.jsonrpc.deployment;
import org.jboss.jandex.DotName;
import io.quarkus.builder.item.MultiBuildItem;
public final class RpcServiceItem extends MultiBuildItem {
private final DotName serviceName;
private final String serviceUrl;
public RpcServiceItem(DotName serviceName, String ser... |
import java.awt.geom.Rectangle2D;
public class Comuna {
private Individuo person; // solo contiene a 1 persona ¿Como hacer para tener a 2 personas?
// opcion 1: usar listas
private Rectangle2D territory; // Alternatively: double width, length;
public Comuna(){
territory = new Rectangle2D.Doubl... |
/* This file was generated by SableCC's ObjectMacro. */
package org.sablecc.sablecc.core.errormessage;
public class MImpossibleNaturalReference {
private final String pRefName;
private final String pRefLine;
private final String pRefChar;
private final String pTransfLine;
private final String... |
/****************************************************************************************************/
/* */
/* File: ShowDeadlocks.java */
/* Descript... |
package play.cache;
import org.junit.Test;
import static org.fest.assertions.Assertions.assertThat;
public class EhCacheImplTest {
@Test
public void verifyThatTTLSurvivesIncrDecr() throws Exception {
final EhCacheImpl cache = EhCacheImpl.getInstance();
cache.clear();
final String key... |
/*
* Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com>
*/
package play.cache;
import akka.Done;
import play.libs.Scala;
import scala.concurrent.duration.Duration;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.concurrent.Callable;
import java.util.concurrent.CompletionS... |
package com.adnagu.common.ml;
import android.content.Context;
import android.util.Log;
import com.adnagu.common.R;
import com.adnagu.common.model.Activity;
import com.adnagu.common.model.Feature;
import com.adnagu.common.model.SensorType;
import java.util.ArrayList;
import java.util.List;
import weka.classifiers.Cl... |
package cn.torna.sdk.param;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.List;
/**
* @author tanghc
*/
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DocParamReq implements IParam... |
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 licenses ... |
package cn.wizzer.app.sys.modules.services.impl;
import cn.wizzer.app.sys.modules.models.Sys_app_list;
import cn.wizzer.app.sys.modules.services.SysAppListService;
import cn.wizzer.framework.base.service.BaseServiceImpl;
import com.alibaba.dubbo.config.annotation.Service;
import org.nutz.dao.Dao;
import org.nutz.ioc.l... |
package com.pomodoro.web.rest.util;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import org.springframework.data.domain.Page;
import org.springframework.d... |
/*
* Copyright (C) 2018 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 clase_7_10_6;
import java.util.Scanner;
public class Clase_7_10_6 {
//Objeto Scanner.
private static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
Ejecutar(); //Llama al metodo que contiene el procedimiento.
}//End Main... |
/*
* Copyright 2015 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 ... |
/*
* Copyright 2016 Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
package com.fi0x.deepmagic.blocks.mana.tile;
import com.fi0x.deepmagic.util.IManaTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class ManaHelper
{
private static boolean isManaTargetValid(World world, BlockPos targetPos, Ti... |
package fr.w3blog.zpl.barcode;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
* 图片转斑马打印指令
* 注意这里再重复下打印出来的效果不一样;导致的原因有可能:
* 1 : 斑马打印机型号问题
* 2 : 斑马打印机的参数设置问题
* 3 : 图片自身的类... |
/*
* 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 no... |
package com.vince.mvc.Model;
import com.google.gson.annotations.SerializedName;
/**
* Created by Administrator on 2017/2/20.
*/
public class Suggestion {
@SerializedName("comf")
public Comfort comfort;
@SerializedName("cw")
public CarWash carWash;
public Sport sport;
@SerializedName("drsg... |
package org.knowm.xchange.examples.therock.trade;
import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.Order.OrderType;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.examples.th... |
/*
* Copyright 2000-2017 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... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.util.Objects;
import javax.swing.*;
import javax.swing.plaf.TextUI;
import javax.swing.text.BadLocationException;
import javax.swing.text.Caret;
import java... |
package com.thinkbiganalytics.nifi.v2.savepoint;
/*-
* #%L
* kylo-nifi-core-processors
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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
... |
package mapreduce;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
public class MyMap extends Mapper<LongWritable, Text, Text, LongWritable> {
@Override
protected void m... |
package jsettlers.logic.movable.civilian;
import jsettlers.common.action.EMoveToType;
import jsettlers.common.movable.EDirection;
import jsettlers.common.movable.EMovableAction;
import jsettlers.common.movable.EMovableType;
import jsettlers.common.position.ShortPoint2D;
import jsettlers.logic.map.grid.partition.manage... |
/*
* Constellation - An open source and standard compliant SDI
* http://www.constellation-sdi.org
*
* Copyright 2014 Geomatys.
*
* 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
*... |
/*
* This project is licensed as below.
*
* **************************************************************************
*
* Copyright 2020-2022 Intel Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
package com.teamproject.drinkit.controller;
import com.teamproject.drinkit.domain.Cafe;
import com.teamproject.drinkit.domain.Menu;
import com.teamproject.drinkit.dto.MenuDto;
import com.teamproject.drinkit.dto.ReviewDto;
import com.teamproject.drinkit.service.AdminService;
import org.slf4j.Logger;
import org.slf4j.Lo... |
package ru.pudgy.vertex.rest.security;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
public interface PasswordEncoder {
String encode(@NotBlank @NotNull String rawPassword);
boolean matches(@NotBlank @NotNull String rawPassword, @NotBlank @NotNull String encodedPas... |
package com.atguigu.gulimall.order.dao;
import com.atguigu.gulimall.order.entity.OrderReturnReasonEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 退货原因
*
* @author heling
* @email 929926540@qq.com
* @date 2021-10-21 10:46:34
*/
@Mapper
public in... |
public RealMatrix getR() {
if (cachedR == null) {
final int n = qrt.length;
final int m = qrt[0].length;
double[][] ra = new double[m][n];
for (int row = FastMath.min(m, n) - 1; row >= 0; row--) {
ra[row][row] = rDiag[row];
for (int... |
// © LLC "Altuera", 2019
package com.altuera.gms_antivirus_service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;
import java.lang.invoke.MethodHandles;
import java.nio.file.Files;
import java.nio.file.Paths;
imp... |
/*
* Copyright 2020 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... |
/* Copyright 2004 - 2007 Kasper Nielsen <kasper@codehaus.org> Licensed under
* the Apache 2.0 License, see http://coconut.codehaus.org/license.
*/
package org.coconut.attribute.common;
import java.util.Arrays;
import org.coconut.attribute.spi.AbstractValueTest;
public class CostAttributeTest extends AbstractValue... |
package com.transamerica.research.spring.boot.jasypt.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class Application {
public static void main(String... args) throws Exception {
System.setProperty("jas... |
package net.coding.program.maopao;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.Gravity;
import android.view.Menu;
import andr... |
import java.awt.Color;
import java.awt.image.BufferedImage;
public class Interface {
private static Interface window = null;
StartStation t1;
TrainStations t2;
TrainStations t3;
EndStation t4;
ControlBar cB;
boolean semaphoreMode;
/* Graphical Info:
left start: 356, 430
right start: 420, -130
left St... |
package metalrain.com.shared.state;
/**
* Created by Adam on 4/28/2016.
*/
public class Vector2 {
public double x;
public double y;
public void setX(double x) {
this.x = x;
}
public void setY(double y) {
this.y = y;
}
public double getX() {
return x;
}
... |
/*
* Copyright 2010-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 "lice... |
/*
* Copyright (C) 2017 优客服-多渠道客服系统
* Modifications copyright (C) 2018 Chatopera Inc, <https://www.chatopera.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... |
package uk.co.gresearch.siembol.configeditor.configinfo;
import uk.co.gresearch.siembol.configeditor.common.ConfigInfoProvider;
public class JsonRuleConfigInfoProvider {
private static final String AUTHOR_FIELD = "rule_author";
private static final String NAME_FIELD = "rule_name";
private static final Str... |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package com.xgames178.EletricFloor.Database;
import com.xgames178.EletricFloor.Player.ProfileData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.UUID;
/**
* Created by jpdante on 02/05/2017.
*/
public class DataProvider {
private Database database;
pri... |
package rbmwsimulator.protocol.metric;
import java.util.*;
/**
* <p>Title: Role-based Middleware Simulator (RBMW Simulator)</p>
*
* <p>Description: A simulator to test several role functionalities such as
* role-assignment, role-monitoring, role-repair, role-execution scheduling,
* role state machine, and role loa... |
package org.progressify.spring;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class ProcessorTest
{
/**
* Rigorous Test :-)
*/
@Test
public void shouldAnswerWithTrue()
{
assertTrue( true );
}
} |
package uk.nhs.adaptors.gp2gp.ehr.mapper.diagnosticreport;
import static uk.nhs.adaptors.gp2gp.ehr.mapper.diagnosticreport.DiagnosticReportMapper.DUMMY_OBSERVATION_ID_PREFIX;
import static uk.nhs.adaptors.gp2gp.ehr.mapper.diagnosticreport.DiagnosticReportMapper.DUMMY_SPECIMEN_ID_PREFIX;
import static uk.nhs.adaptors.g... |
/**
* Copyright 2016 Toni Kocjan
*
* 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... |
package com.egzosn.pay.yiji.api;
import com.egzosn.pay.common.api.BasePayConfigStorage;
/**
* 易极付配置存储
* @author egan
*
* <pre>
* email egzosn@gmail.com
* date 2019/04/15 22:50
* </pre>
*/
public class YiJiPayConfigStorage extends BasePayConfigStorage{
/**
* 易极付分配的商户号 合作者id
*/
private St... |
package com.regitiny.catiny.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.regitiny.catiny.GeneratedByJHipster;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import javax.persistence.*;
import... |
/*
* Copyright (c) 2006 Hyperic, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.ui;
import com.intellij.CommonBundle;
import com.intellij.icons.AllIcons;
import com.intellij.ide.actions.ActionsCollector;
import com.intellij.ide.u... |
package com.mahogano.core.magento.entity;
import java.math.BigDecimal;
public class CataloginventoryStockStatusTmp {
private Integer productId;
private Integer websiteId;
private Integer stockId;
private BigDecimal qty;
private Integer stockStatus;
public Integer getProductId() {
... |
package com.hqc.util;
import com.hqc.entity.SysAdminEntity;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;
/**
* Shiro工具类
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2016年11月12日 上午9:49:19
*/
public class ShiroUtils {
... |
package pxf.extsweb.fileonlinepreview;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletReq... |
/*
* Copyright 2017-2022 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.zzboot.system.service;
import com.zzboot.framework.core.db.base.service.BaseService;
import com.zzboot.system.bo.TsDepBO;
/**
* 部门 Service
* @author Administrator
* @date 2019-4-10 11:08:55
*/
public interface TsDepService extends BaseService<TsDepBO , String> {
} |
/*
* Copyright (C) 2011 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.ares.eureka;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class DemoApplicationTests {
@Test
void contextLoads() {
}
} |
package com.imooc.aop.demo5;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;
public class MyAroundAdvice implements MethodInterceptor {
@Override
public Object invoke(MethodInvocation invocation) throws Throwable{
System.out.println("环绕前增强======... |
package com.tyrfing.games.tyrlib3.view.graphics.renderer;
import com.tyrfing.games.tyrlib3.model.graphics.scene.SceneObject;
import com.tyrfing.games.tyrlib3.view.graphics.renderables.IRenderable;
public abstract class RenderableSceneObject extends SceneObject implements IRenderable {
} |
package es.deusto.deustock.services.auth.exceptions;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class RegisterExceptionTest {
@Test
void testConstructorNotNull(){
// Given
// When
RegisterException exception = new RegisterException("Test Exc... |
package io.objects.tl.api.request;
import static io.objects.tl.StreamUtils.*;
import static io.objects.tl.TLObjectUtils.*;
import io.objects.tl.TLContext;
import io.objects.tl.api.TLAbsInputPeer;
import io.objects.tl.api.TLAbsReportReason;
import io.objects.tl.core.TLBool;
import io.objects.tl.core.TLMethod;
import i... |
/*
* Copyright 2000-2012 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... |
package graphql.execution;
import graphql.GraphQLException;
import graphql.language.Definition;
import graphql.language.Document;
import graphql.language.FragmentDefinition;
import graphql.language.OperationDefinition;
import graphql.schema.GraphQLSchema;
import java.util.LinkedHashMap;
import java.util.Map;
import ... |
package com.cyc.cycjava.cycl;
import com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory;
import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.*;
import com.cyc.tool.subl.util.SubLFiles;
import com.cyc.tool.subl.jrtl.translatedCode.sublisp.conses_high;
import com.cyc.tool.subl.jrtl.nat... |
package com.education.common.config.base;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework... |
package com.github.caijh.supermarket.product.repository;
import com.github.caijh.framework.data.jpa.BaseRepository;
import com.github.caijh.supermarket.product.model.Brand;
public interface BrandRepository extends BaseRepository<Brand, String> {
} |
/*
* (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 slimeknights.tconstruct.smeltery.tileentity;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.it... |
/*
* 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")... |
/*
* Copyright 2017-2022 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 2018 The TensorFlow 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 applicable law or a... |
package org.joht.livecoding.eventdriven.eventnotification;
import java.util.Objects;
public class AddressChangedEvent {
private final String id;
public AddressChangedEvent(String id) {
this.id = id;
}
public String getId() {
return id;
}
@Override
public int hashCode() {
return Objects.hash(id);
}
... |
package com.artemis;
/**
* Plugin for artemis-odb.
*
* @author Daan van Yperen
*/
public interface ArtemisPlugin {
/**
* Register your plugin.
*
* Set up all your dependencies here.
* - systems
* - field resolvers
* - other plugins
*
* Always prefer to use {@link WorldConfigurationBuilder#depends... |
/*
* Copyright the original author or authors.
*
* This program 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, or
* (at your option) any later version.
*
* This progra... |
package com.stylefeng.guns.modular.system.dao;
import com.stylefeng.guns.modular.system.model.Accessory;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* 配件表 Mapper 接口
* </p>
*
* @author stylefeng
* @since 2018-10-24
*/
public interface AccessoryMapper extends BaseMapper<Accessory> {
} |
package be.roelgo.camsucks.application;
import be.roelgo.camsucks.service.model.*;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@Component
@Profile("!test")
public class Orchestrator {
private f... |
/*
* Encog(tm) Core v3.4 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2017 Heaton Research, 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... |
package com.thinkaurelius.titan.diskstorage.keycolumnvalue.keyvalue;
import com.thinkaurelius.titan.diskstorage.BackendException;
import com.thinkaurelius.titan.diskstorage.StaticBuffer;
import com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction;
import com.thinkaurelius.titan.diskstorage.util.RecordIt... |
/*
Copyright 2012 - 2014 Jerome Leleu
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... |
package org.cloudfoundry.client.lib.rest;
import com.google.protobuf.InvalidProtocolBufferException;
import org.cloudfoundry.client.lib.ApplicationLogListener;
import javax.websocket.MessageHandler;
public class LoggregatorMessageHandler implements MessageHandler.Whole<byte[]> {
private final ApplicationLogList... |
/*******************************************************************************
* Copyright (C) 2013 Snowdream Mobile
*
* 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.a... |
// PARSER_WEEDER
// JOOS1: PARSER_EXCEPTION
// JOOS2: PARSER_EXCEPTION
// JAVAC:
/**
* Parser/weeder:
* - Instance initializers not allowed.
*/
public class Je_1_InstanceInitializers {
public Je_1_InstanceInitializers() {}
public int x;
{
x = 123;
}
public static int test() {
return 123;
... |
package io.github.portlek.fakeplayer.nms.v1_16_R1;
import io.github.portlek.fakeplayer.api.FakeCreated;
import io.github.portlek.fakeplayer.api.INPC;
import org.bukkit.Bukkit;
import org.bukkit.World;
import org.bukkit.craftbukkit.v1_16_R1.CraftWorld;
import org.jetbrains.annotations.NotNull;
public final class FakeC... |
/**
* Copyright 2015 Netflix, Inc.
* <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... |
package localsearch.domainspecific.vehiclerouting.vrp.online.app.ominmaxvrp;
import localsearch.domainspecific.vehiclerouting.vrp.entities.Point;
import localsearch.domainspecific.vehiclerouting.vrp.entities.Request;
public class DeliveryRequest extends Request{
public Point delivery;
public int demand;
public D... |
package com.flashtalking.reportmanager.services;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.flashtalking.reportmanager.domain.Build;
import com.flashtalking.reportmanager.domain.BuildRepor... |
//In an array A of 0s and 1s, how many non-empty subarrays have sum S?
// Input: A = [1,0,1,0,1], S = 2
// Output: 4
// Explanation:
// The 4 subarrays are bolded below:
// [1,0,1,0,1]
// [1,0,1,0,1]
// [1,0,1,0,1]
// [1,0,1,0,1]
//Approach
// Using sliding window technique
class Solution {
public int numSuba... |
/* Copyright (c) 2001-2009, The HSQL Development Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list... |
/*******************************************************************************
* Copyright (c) 1991, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2010.0... |
/**
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.