text stringlengths 7 995k |
|---|
/*
* Copyright 2000-2013 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 net.minecraft.world.level.levelgen.placement;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import net.minecraft.world.level.levelgen.feature.configurations.DecoratorConfiguration;
public class DecoratedDecoratorConfiguration implements DecoratorConfiguratio... |
/**
Copyright 2015 Gusterwoei
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
... |
/*
* LinShare is an open source filesharing software, part of the LinPKI software
* suite, developed by Linagora.
*
* Copyright (C) 2015 LINAGORA
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* So... |
package com.vladsch.flexmark.core.test.util.parser;
import com.vladsch.flexmark.html.HtmlRenderer;
import com.vladsch.flexmark.parser.Parser;
import com.vladsch.flexmark.test.specs.TestSpecLocator;
import com.vladsch.flexmark.test.util.spec.SpecReader;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.j... |
package Feb2021Leetcode;
public class _1184DistanceBetweenBusStops {
public static void main(String[] args) {
System.out.println(distanceBetweenBusStops(new int[] { 1, 2, 3, 4 }, 0, 1));
System.out.println(distanceBetweenBusStops(new int[] { 1, 2, 3, 4 }, 0, 2));
System.out.println(distanceBetweenBusStops(new i... |
package org.uberfire.annotations.processors;
import org.uberfire.client.annotations.WorkbenchPartTitle;
import org.uberfire.client.annotations.WorkbenchScreen;
@WorkbenchScreen(identifier = "test4")
public class WorkbenchScreenTest4 {
@WorkbenchPartTitle
public String getTitle() {
return "title";
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/**
*
* Copyright 2004 The Apache Software 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 a... |
package com.xuebusi.cms.base.modules.sys.entity;
import com.xuebusi.cms.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import j... |
package com.blog.stream.pagination;
import org.assertj.core.api.JUnitSoftAssertions;
import org.junit.Rule;
import org.junit.Test;
import java.util.Spliterator;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
public class PageSpliteratorTest {
@Rule
public JUnitSoftAssertions soft =... |
/*
* Copyright 2014-2019 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.eduardocode.app.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="Perfiles")
public class Perfil {
@Id
@GeneratedValue(strategy=GenerationType.IDENTIT... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Ordinastie
*
* 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, c... |
package com.dmd.weixin.qy.media.bean;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonUnwrapped;
import java.util.Date;
import java.util.List;
/**
* Created by exizhai on 10/2/2015.
*/
public class MaterialPagination {
@JsonProperty("total_count")
private ... |
package com.r4intellij.psi.references;
import com.intellij.codeInsight.completion.util.ParenthesesInsertHandler;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.lang.ASTNode;
import com.intellij.lang.Language;
import com.intellij.op... |
package com.ajlopez.blockchain.processors;
import com.ajlopez.blockchain.core.Transaction;
/**
* Created by ajlopez on 01/07/2020.
*/
public class TransactionValidator {
public boolean isValid(Transaction transaction) {
if (transaction.isRichTransaction()) {
if (transaction.getData() == null... |
//
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package ro.sapientia2015.story.service;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.transaction.annotation.Transactional;
import ro.sapientia2015.story.exception.NotFoundException;
import ro.sapientia2015.story.dto.UserDTO;
import ro.sapientia2015.story.model.User;
import ro.... |
/*
* 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... |
/*
* 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
* distribut... |
package com.dcits.dcwlt.pay.api.domain.dcep.gwf008;
public interface CommonBody {
} |
package org.infinispan.rest.configuration;
import static org.infinispan.rest.configuration.RestServerConfiguration.COMPRESSION_LEVEL;
import static org.infinispan.rest.configuration.RestServerConfiguration.CONTEXT_PATH;
import static org.infinispan.rest.configuration.RestServerConfiguration.EXTENDED_HEADERS;
import st... |
package com.example.coolweather.db;
import org.litepal.crud.LitePalSupport;
public class City extends LitePalSupport {
private int id; //每一个实体类都有一个id
private String cityName; //记录市名称
private int cityCode; //几率市的代码
private int provinceCode; //记录该市的上级省级代码
public int getId() {
return id... |
package org.instantlogic.designer.codegenerator.jvmbytecode;
import java.net.URL;
import org.instantlogic.designer.codegenerator.classmodel.EntityClassModel;
import org.instantlogic.designer.codegenerator.classmodel.EventClassModel;
import org.instantlogic.designer.codegenerator.classmodel.FlowClassModel;
import org.... |
package com.outbina.dbgo;
import com.intellij.openapi.util.IconLoader;
import javax.swing.*;
public class DbgoIcons {
public static final Icon POGO = IconLoader.findIcon("/icons/pogo.svg");
public static final Icon KEY = IconLoader.findIcon("/icons/key.svg");
public static final Icon DATABASE = IconLoade... |
/*
* Copyright 2000-2009 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... |
/*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 - 2019 Elastic and contributors
* %%
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. ... |
package net.minecraft.network;
import com.google.common.base.Charsets;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import java.net.InetSocketAddress;
... |
/*
* Copyright 2010-2021 Australian Signals Directorate
*
* 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... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.google.android.gms.drive;
public final class R {
public static final class attr {
public static final int adSize = 0x7f0100... |
/*
* $Id$
*/
package lrgs.ldds;
import java.io.OutputStream;
import java.io.IOException;
import ilex.util.ArrayUtil;
import lrgs.common.*;
/**
Base class for all server request commands.
*/
public abstract class LddsCommand
{
/**
* @return the command type as a string.
*/
public abstract String cmdType();
... |
package com.ddlab.rnd.executorservice;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
public class CallableTask implements Callable<String> {
private String taskName;
private int timeInSecs;
public CallableTask(String taskName, int timeInSecs) {
this.taskName = taskName;
th... |
package com.tvd12.ezyhttp.core.util;
import com.tvd12.ezyhttp.core.annotation.BodyConvert;
public final class BodyConvertAnnotations {
private BodyConvertAnnotations() {
}
public static String getContentType(BodyConvert annotation) {
return annotation.value();
}
public static String get... |
/*
* Copyright 2019 ThoughtWorks, 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 agr... |
package eatyourbeets.cards.animator.series.Elsword;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import eatyourbeets.cards.animator.special.OrbCore;
import eatyourbeets.cards.base.AnimatorCard;
import ... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class ferrari2 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class ferrari2 extends Actor
{
private int speed;
public ferrari2(int v){
speed = v;
... |
/*
* Copyright (c) 2018, Lotto <https://github.com/devLotto>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, th... |
package module84packageJava0;
import java.lang.Integer;
public class Foo22 {
Integer int0;
Integer int1;
public void foo0() {
new module84packageJava0.Foo21().foo3();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
}
} |
package controllers;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import connections.MySQLConnection;
import helpers.ResponseFactory;
import helpers.Utils;
import play.Play;
import play.mvc.Controller;
import play.mvc.Result;
import java.sql.PreparedStatement;
im... |
/*
* 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... |
/*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc;
import java.time.Duration;
import java.util.... |
/*
* Copyright (C) 2016 The Dagger Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/*
* Copyright (c) 2019, Oracle and/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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
// $Id: Groestl256.java 198 2010-05-27 16:45:04Z tp $
// Author : Vlad Cristian
// Contact : vcris@gmx.com
package wallet.kernel.x34;
/**
* <p>This class implements the Groestl-256 digest algorithm under the
* {@link Digest} API.</p>
*
* <pre>
* ==========================(LICENSE BEGIN)=========================... |
/*
* Copyright 2018 Red Hat, 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 t... |
package com.java110.front.components.demo;
import com.java110.core.context.IPageData;
import com.java110.front.smo.IDemoServiceSMO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;
/**
* 添加小区楼组件
*/
@Compon... |
package features;
import demo3011.WebApp;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.noear.solon.test.HttpTestBase;
import org.noear.solon.test.SolonJUnit4ClassRunner;
import org.noear.solon.test.SolonTest;
@RunWith(SolonJUnit4ClassRunner.class)
@SolonTest(WebApp.class)
public class CacheTest ... |
/*
* Copyright (C) 2018-2022 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.akka.persistence.typed;
import akka.Done;
import akka.actor.typed.ActorRef;
import akka.persistence.typed.PersistenceId;
import akka.persistence.typed.javadsl.*;
import java.util.Optional;
public class OptionalBlogState {
... |
/*******************************************************************************
* Copyright 2020 See AUTHORS file
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apac... |
/*
* Copyright 2017
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* 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... |
/*
* Copyright 2016 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.o... |
package com.atguigu.gulimall.sms.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;
imp... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 金融数据接入
*
* @author auto create
* @since 1.0, 2021-04-09 11:02:05
*/
public class AlipayFinanceQuotationFindataSendModel extends AlipayObject {
private static final long serialVersionUID = 1... |
package com.outlook.bigkun.factory;
import java.util.ArrayList;
/**
* 元素容器,可以包含多个元素
*
* @author zhanghk
* @since 2019/7/10
*/
public abstract class Tray extends Item {
/**
* 元素容器集合
*/
protected ArrayList tray = new ArrayList();
public Tray(String caption) {
super(caption);
}
... |
package org.hl7.fhir.dstu3.model;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
@DatatypeDef(name = "uuid")
public class AnnotatedUuidType extends UuidType {
private static final long serialVersionUID = 3L;
} |
package com.agentdid127.resourcepack.library.pack;
import com.agentdid127.resourcepack.library.PackConverter;
import com.agentdid127.resourcepack.library.Util;
import net.lingala.zip4j.ZipFile;
import net.lingala.zip4j.exception.ZipException;
import net.lingala.zip4j.model.ZipParameters;
import java.io.IOException;
i... |
/*
* Copyright © 2016 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... |
/*
* Copyright (c) 2008-2021, 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 ... |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2021 ImageJ developers.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of s... |
package seedu.address.model.schedule.exceptions;
/**
* Signals that the operation will result in duplicate Schedules (Schedules are considered duplicates if they have the
* same identity).
*/
public class DuplicateScheduleException extends RuntimeException {
public DuplicateScheduleException() {
super("... |
package F_notify;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
public class Algorithm2 implements Runnable {
private CountDownLatch startSignal;
private CountDownLatch doneSignal;
public Algorithm2(CountDownLatch startSignal, CountDownLatch doneSignal) {
this... |
package com.programmer74.GradientDescent;
import java.util.List;
import java.util.function.DoubleBinaryOperator;
import java.util.function.DoubleUnaryOperator;
import com.programmer74.util.Pair;
public class BasicGradientDescentCalculator implements GradientDescentCalculator {
private double alpha;
private ... |
package com.github.fujiyamakazan.zabuton.util.text;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package cgeo.geocaching;
import static org.assertj.core.api.Assertions.assertThat;
import cgeo.geocaching.connector.gc.GCConstants;
import cgeo.geocaching.list.StoredList;
import org.apache.commons.lang3.StringUtils;
import junit.framework.TestCase;
public class PersonalNoteTest extends TestCase {
public stat... |
package com.google.swarm.istio.model;
import lombok.Data;
@Data
public class Registration {
private String registrationId;
private String studentId;
private String courseId;
} |
package com.manager.common.tools;
import java.text.DateFormat;
import java.text.FieldPosition;
import java.text.ParseException;
import java.text.ParsePosition;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util... |
/*
* 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... |
import java.io.*;
import java.text.DecimalFormat;
class Disks{
int n;
double boxLength;
Disk[] arr;
public Disks(int num){
boxLength = 0;
n = num;
arr = new Disk[n];
}
class Disk{
double radius; //радиус
double X; //коорди... |
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package com.example.arguments_complex;
import com.apollographql.apollo.api.Input;
import com.apollographql.apollo.api.InputFieldMarsha... |
/**
* Copyright 2009-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
/*
* Copyright 2017-2020 original 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 applicable law or agr... |
package com.scalar.db.storage.cosmos;
import com.azure.cosmos.CosmosClient;
import com.azure.cosmos.CosmosContainer;
import com.azure.cosmos.CosmosDatabase;
import com.azure.cosmos.CosmosException;
import com.azure.cosmos.models.CosmosItemResponse;
import com.azure.cosmos.models.CosmosQueryRequestOptions;
import com.a... |
package org.openwebflow.cfg;
import org.activiti.engine.form.AbstractFormType;
public class DummyFormType extends AbstractFormType {
String _name;
public DummyFormType(String name) {
super();
_name = name;
}
@Override
public Object convertFormValueToModelValue(String propertyValu... |
package com.salesforce.apollo.stereotomy.specification;
import static com.salesforce.apollo.stereotomy.event.SigningThreshold.group;
import static com.salesforce.apollo.stereotomy.event.SigningThreshold.thresholdMet;
import static com.salesforce.apollo.stereotomy.event.SigningThreshold.unweighted;
import static com.sa... |
package com.hyomee.streamedu.dto;
public class SchoolSubjectDTO {
private int schoolNo;
private String schoolId;
private String schoolName;
private String userId;
private String subjectId;
private String subjectName;
private int score;
public SchoolSubjectDTO() {}
public SchoolSubjectDTO(int schoo... |
// Copyright 2017 The Nomulus 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 fuzzy.model.comunicacao.deserializador;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import fuzzy.model.assets.ImagemFuzzy;
import fuzzy.model.assets.Postagem;
import fuzzy.model.assets.Usuario;
import java.time.LocalDateTime;
import java.util.ArrayLis... |
package graphql.schema;
import graphql.AssertException;
import graphql.Internal;
import graphql.PublicApi;
import graphql.language.InterfaceTypeDefinition;
import graphql.language.InterfaceTypeExtensionDefinition;
import graphql.util.TraversalControl;
import graphql.util.TraverserContext;
import java.util.ArrayList;
... |
package com.chasinglemons.empeg;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.client.HttpClient;
import org.apache.http.client.ResponseHandler;
import org.apache.http.client.methods.HttpGet;
import org.apache.... |
/*
* 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 sbsml.presentation;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.EventObject;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
i... |
package com.mkuzmin.srfmidihelper;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
public class UtilsTest {
@Test
void bytesToMessageLength() {
final int messageLength = 66;
byte[] messageLengthBytes = ByteBuff... |
package com.oneandone.iocunit.analyzer.specializing.testsamples;
import javax.inject.Inject;
import com.oneandone.iocunit.analyzer.annotations.SutClasspaths;
import com.oneandone.iocunit.analyzer.specializing.sutsamples.BaseClass;
import com.oneandone.iocunit.analyzer.specializing.sutsamples.SpecializingClass;
/**
... |
/*
* Copyright (C) 2018 The DNA Authors
* This file is part of The DNA library.
*
* The DNA is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opti... |
package me.retrodaredevil.solarthing.solar.outback.mx.event;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import me.retrodaredevil.solarthing.annotations.NotNull;
import me.retrodaredevil.solarthing.annotations.Nullable;
import me.retrodaredevil.solarthing.... |
package org.zstack.header.vm;
/**
* Created by frank on 11/20/2015.
*/
public enum VmBootDevice {
HardDisk,
CdRom,
Network
} |
/*
* 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 burlap.domain.singleagent.blockdude.state;
import burlap.mdp.core.oo.state.OOStateUtilities;
import burlap.mdp.core.oo.state.ObjectInstance;
import burlap.mdp.core.state.annotations.DeepCopyState;
import java.util.Arrays;
import java.util.List;
import static burlap.domain.singleagent.blockdude.BlockDude.*;
... |
package br.com.sigdata.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import javax.persistence.Table;
import ... |
package com.study.chat.common.message;
public class Message {
private final long timestamp;
private final String userId;
public Message(long timestamp, String userId) {
this.timestamp = timestamp;
this.userId = userId;
}
public long getTimestamp() {
return timestamp;
}... |
package edu.pdx.cs410J;
import java.io.Serializable;
import java.util.Collection;
/**
* This class represents an airline. Each airline has a name and
* consists of multiple flights.
*/
public abstract class AbstractAirline<T extends AbstractFlight> implements Serializable
{
/**
* Returns the name of this ai... |
package org.github.bobobot.services.impl;
import org.github.bobobot.entities.Board;
import org.github.bobobot.entities.Thread;
import org.github.bobobot.entities.User;
import org.github.bobobot.services.IThreadService;
import org.github.bobobot.services.IUserService;
import org.junit.jupiter.api.Test;
import org.sprin... |
package eu.newsreader.eventcoreference.util;
/**
* Created by piek on 9/19/14.
*/
public class EventTypes {
static public final String [] CONTEXTUAL = {"other", "contextual", "contextualEvent"};
static public final String [] COMMUNICATION = {"sourceEvent","speech", "communication", "cognition", "source"};
... |
package de.jcm.discordgamesdk.user;
import de.jcm.discordgamesdk.user.Relationship;
/**
* The type of a {@link Relationship} between two users.
* @see <a href="https://discordapp.com/developers/docs/game-sdk/relationships#data-models-relationshiptype-enum">
* https://discordapp.com/developers/docs/game-sdk/rel... |
package com.jpmorgan.cakeshop.manager.controller;
import com.jpmorgan.cakeshop.client.model.Node;
import com.jpmorgan.cakeshop.client.model.req.NodeUpdateCommand;
import com.jpmorgan.cakeshop.client.model.res.APIData;
import com.jpmorgan.cakeshop.client.model.res.APIResponse;
import com.jpmorgan.cakeshop.client.model.... |
/*
*
* Copyright 2017 Robert Winkler, Mahmoud Romeh
*
* 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 b... |
/**
* 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.