text stringlengths 7 995k |
|---|
/*
* Copyright 2015 Delft University of Technology
*
* 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 appli... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/**
*
*/
package com.gojek.jpa.entity;
import java.util.Map;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import com.gojek.util.serializer.DefaultJsonSerializer;
import com.gojek.util.serializer.Serializer;
/**
* @author ganeshs
*
*/
@Converter
@SuppressWarnings("rawtypes")
... |
/* */ package org.springframework.validation;
/* */
/* */ import org.springframework.beans.PropertyAccessException;
/* */ import org.springframework.context.support.DefaultMessageSourceResolvable;
/* */ import org.springframework.util.Assert;
/* */ import org.springframework.util.ObjectUtils;
/* *... |
package com.morgan.server.util.soy;
import org.junit.Before;
import org.junit.Test;
import com.google.common.base.Optional;
import com.google.common.truth.Truth;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.inject.Guice;
import com.google.injec... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (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.gridgain.com/products/software/community-edition... |
package io.github.srizzo.rspector.referencecontributor;
import com.intellij.openapi.util.TextRange;
import com.intellij.psi.PsiElement;
import io.github.srizzo.rspector.util.FindLetDeclarationsUtil;
import io.github.srizzo.rspector.util.LetDeclarationPsiUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbra... |
package jetbrains.mps.baseLanguage.behavior;
/*Generated by MPS */
import jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.core.aspects.behaviour.api.SMethod;
import... |
package dssl.interpret.element.value.primitive;
import java.util.Objects;
import org.apache.commons.text.StringEscapeUtils;
import org.eclipse.jdt.annotation.NonNull;
import dssl.interpret.element.Element;
import dssl.interpret.value.StringValue;
public class StringElement extends PrimitiveElement<@NonNull String> ... |
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 kr.pravusid.configuration;
import kr.pravusid.dto.exception.CustomValidationException;
import org.springframework.boot.autoconfigure.web.DefaultErrorAttributes;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.context.annotation.Bean;
import org.springframework.cont... |
package com.example.duy.calculator.geom2d.conic;
import com.example.duy.calculator.geom2d.line.StraightLine2D;
import static com.example.duy.calculator.R.string.dx;
import static com.example.duy.calculator.R.string.dy;
public class ConicStraightLine2D extends StraightLine2D implements Conic2D {
double[] coefs =... |
/*
* Copyright 2019-2020 Zheng Jie
*
* 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 agree... |
package io.github.edmm.model.relation;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import io.github.edmm.core.parser.MappingEntity;
import io.github.edmm.model.Operation;
import io.github.edmm.model.support.Attribute;
import io.github.edmm.model.support.ModelEntity;
import io.github.edm... |
package org.firebears.commands.grabber;
import org.firebears.Robot;
import edu.wpi.first.wpilibj.command.Command;
/**
*
*/
public class ReverseGrabberWheelsCommand extends Command {
boolean shouldSpin;
public ReverseGrabberWheelsCommand(boolean shouldSpin) {
requires(Robot.chassis);
this.sh... |
/*
* 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 ... |
/*
* The MIT License
* Copyright © 2014-2021 Ilkka Seppälä
*
* 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... |
package models;
public class CardsName {
private static CardsName SharedInstance;
private CardsName() {
}
public static CardsName getInstance() {
if (SharedInstance == null) {
SharedInstance = new CardsName();
}
return SharedInstance;
}
} |
package com.dgut.common.web.session.cache;
import java.io.Serializable;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.spy.memcached.MemcachedClient;
import org.springframework.beans.factory.DisposableBean;
import org.s... |
package org.mybatis.generator.internal.types;
import org.mybatis.generator.api.IntrospectedColumn;
import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import java.sql.Types;
/**
* 修改类型解析器的默认实现
*/
public class JavaTypeResolverDefaultImplEx extends JavaTypeResolverDefaultImpl {
@Override
public... |
/**
* personium.io
* Copyright 2019 FUJITSU LIMITED
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Copyright 2015-2019 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* 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... |
/*
* 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 org.mapfish.print.processor.map;
import com.google.common.base.Predicate;
import com.google.common.io.Files;
import org.junit.Test;
import org.mapfish.print.AbstractMapfishSpringTest;
import org.mapfish.print.TestHttpClientFactory;
import org.mapfish.print.config.Configuration;
import org.mapfish.print.config... |
/* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... |
// --------------------------------------------------------------------------------
// Copyright 2002-2021 Echo Three, 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:/... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright 2002-2016 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 mn.data.pg.controllers;
import java.util.List;
import java.security.Principal;
import javax.annotation.Nullable;
import io.reactivex.Single;
import io.micronaut.http.HttpResponse;
import io.micronaut.security.annotation.Secured;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotati... |
package edu.washington.cs.conf.mutation;
import java.io.File;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import edu.washington.cs.conf.mutation.ConfValueTypeInferrer.ConfTyp... |
/**
* Copyright 2009-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
package com.imooc.miaosha.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.MethodParameter;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.support.WebDataBinderFactory;
import org.springframework.web.context.request.NativeWebRequ... |
package com.apexmob.casus;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
//TODO docs
/**
* Behavior represents the basic interface for applying custom functionality to an object in the engine.
*
* @author Chris Kirk
* @since 1.0
*/
@JsonTypeInfo(
use = JsonTypeInfo.Id.CLASS,
include = Jso... |
package cn.raysonblog.hotdog.module.tag.mapper;
import cn.raysonblog.hotdog.module.tag.entity.TagEntity;
import cn.raysonblog.hotdog.base.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 站点标签信息表
*
* @author rayson
* @email 793514387@qq.com
* @date 2019-08-20 10:57:31
*/
@Mapper
public int... |
/**********************************************************************************
* $URL: $
* $Id: $
***********************************************************************************
*
* Copyright (c) 2006, 2007 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "Lice... |
/**
* Created by G-Canvas Open Source Team.
* Copyright (c) 2017, Alibaba, Inc. All rights reserved.
* <p>
* This source code is licensed under the Apache Licence 2.0.
* For the full copyright and license information, please view
* the LICENSE file in the root directory of this source tree.
*/
package com.taob... |
package ru.job4j.shapes;
/**
* Paint.
* @author Valeriy Labunets (vavilonw@gmail.com)
* @version $Id$
* @since 0.1
*/
public class Paint {
private Shape shape;
public Paint(Shape shape) {
this.shape = shape;
}
public Paint() {
}
public void draw(Shape shape) {
System.out.p... |
package com.hedera.services.ledger.properties;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, 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
... |
/*
* 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 2022 Pavel Kastornyy.
*
* 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 gumdrop.test.fake;
import gumdrop.web.controller.Controller;
import gumdrop.web.controller.PathBuilder;
import gumdrop.web.controller.Idx;
public class FakeIdx implements Idx {
@Override
public PathBuilder getPathBuilder(Class<? extends Controller> klass) {
return new PathBuilder(klass.toString());
... |
/*
* Copyright (c) 2004-2022, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
/**
* 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 Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.assetcatalog.publishers;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.odpi.openmetadata.repository... |
/*
* 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 ... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package ru.job4j.condition;
public class Triangle {
private Point a;
private Point b;
private Point c;
public Triangle(Point a, Point b, Point c) {
this.a = a;
this.b = b;
this.c = c;
}
public double distance(Point a, Point b) {
return Math.sqrt(Math.pow(b.getX... |
package com.google.common.graph;
import java.util.Map;
import org.checkerframework.checker.nullness.compatqual.NullableDecl;
/**
* A {@link MapIteratorCache} that adds additional caching. In addition to the caching provided by
* {@link MapIteratorCache}, this structure caches values for the two most recently retrie... |
package com.planet_ink.coffee_mud.Items.Basic;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet... |
/**
* The MIT License
* Copyright © 2017 WebFolder OÜ
*
* 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, mod... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2019 Serge Rider (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@gmail.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 ob... |
package top.yulegou.zeus.task.quartz;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.quartz.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import top.yulegou.zeus.constant.Constants;
import top.yulegou.zeus.d... |
package com.changgou;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication(exclu... |
/*
* Copyright (c) 2016, Codename One
*
* 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, publis... |
package edu.rpi.rocs.server.objectmodel;
import org.hibernate.Session;
import edu.rpi.rocs.client.objectmodel.Schedule;
import edu.rpi.rocs.client.objectmodel.Section;
public class ScheduleWriter implements DatabaseWriterVisitor<Schedule> {
private Session theSession=null;
public void save(Schedule object, Sess... |
package br.ufrn.imd.app.service;
import br.ufrn.imd.app.dao.DaoI;
import br.ufrn.imd.app.dao.ServiceDao;
import br.ufrn.imd.app.exception.BusinessException;
import br.ufrn.imd.app.exception.DaoException;
import br.ufrn.imd.app.model.Service;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ej... |
package com.github.lihongjie.solrj.domain.support;
public class ProductQueryRequest {
private String query;
private String cat;
private int start;
private int rows;
public String getQuery() {
return query;
}
public void setQuery(String query) {
this.query = query;
... |
package datadog.trace.bootstrap.instrumentation.java.concurrent;
import datadog.trace.bootstrap.instrumentation.java.concurrent.ExcludeFilter.ExcludeType;
import lombok.extern.slf4j.Slf4j;
/**
* This is used to wrap lambda runnables since currently we cannot instrument them
*
* <p>FIXME: We should remove this once... |
package com.atguigu.gulimall.sms.dao;
import com.atguigu.gulimall.sms.entity.SkuFullReductionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品满减信息
*
* @author ygx12130
* @email lfy@atguigu.com
* @date 2019-09-04 17:59:26
*/
@Mapper
public inte... |
package com.muskopf.tacotuesday.domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.*;
@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper = true)
public abstract class Order extends DomainObject {
@Column
private Float total;
@Column(name = "barbacoa")
private Int... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2019 iText Group NV
Authors: iText Software.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation ... |
package org.tpc.abi.datatypes.generated;
import java.math.BigInteger;
import org.tpc.abi.datatypes.Int;
/**
* Auto generated code.
* <p><strong>Do not modifiy!</strong>
* <p>Please use org.web3j.codegen.AbiTypesGenerator in the
* <a href="https://github.com/web3j/web3j/tree/master/codegen">codegen module</a> to ... |
/*
* Copyright Cypress Semiconductor Corporation, 2014-2018 All rights reserved.
*
* This software, associated documentation and materials ("Software") is
* owned by Cypress Semiconductor Corporation ("Cypress") and is
* protected by and subject to worldwide patent protection (UnitedStates and foreign), United Sta... |
package edu.ucla.cs.grafter.coverage;
import static org.junit.Assert.*;
import java.io.IOException;
import java.util.HashSet;
import org.junit.Ignore;
import org.junit.Test;
public class LogParserTest {
final static String log = "/home/troy/SysAssure/dataset/java-apns-1.0.0.Beta3/test_log.txt";
@Test
@Ignore
... |
package com.ptsmods.morecommands.util;
import com.google.common.collect.ImmutableList;
import com.ptsmods.morecommands.mixin.common.accessor.MixinTextColorAccessor;
import net.minecraft.text.TextColor;
import net.minecraft.util.Formatting;
import org.apache.logging.log4j.LogManager;
import java.awt.Color;
import java... |
package org.jugbd.mnet.interceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.con... |
package org.elasticsoftware.elasticactors.rabbitmq;
import com.rabbitmq.client.ShutdownListener;
import com.rabbitmq.client.ShutdownSignalException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class LoggingShutdownListener implements ShutdownListener {
private LoggingShutdownListener() ... |
package vision;
import java.util.HashSet;
import java.util.Set;
import listeners.ChangeCaseListener;
import map.Map;
import map.objets.Objet;
import exceptions.HorsLimiteException;
public class RevelateurObjets implements ChangeCaseListener {
private final Map map;
private Set<Objet> visibles;
public Revelateur... |
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... |
package com.vaadin.flow.component.charts.events;
/*-
* #%L
* Vaadin Charts for Flow
* %%
* Copyright (C) 2014 - 2019 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file licensing.txt distributed with this software for more
* information about l... |
/*
* Copyright (c) 2015, Florent Hedin, Markus Meuwly, and the University of Basel
* All rights reserved.
*
* The 3-clause BSD license is applied to this software.
* see LICENSE.txt
*
*/
package ch.unibas.fittingwizard.application.scripts.base;
/**
* User: mhelmer
* Date: 28.11.13
* Time: 14:30
*/
public in... |
package com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sequenceiq.common.model.JsonEntity;
import com.sequenceiq.cloudbreak.doc.ModelDescriptions.Database;
import io.swagger.annotations.ApiModel;
imp... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... |
/*
* Copyright (c) 2013, OpenCloudDB/MyCAT and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software;Designed and Developed mainly by many Chinese
* opensource volunteers. you can redistribute it and/or modify it under the
* terms ... |
package dam.gestionhotelera.modelo.Pojos;
// Generated 02-dic-2017 19:12:02 by Hibernate Tools 4.3.1
import java.util.HashSet;
import java.util.Set;
/**
* Contrato generated by hbm2java
*/
public class Contrato implements java.io.Serializable {
private Integer idContrato;
private Empleado empleado;
... |
package com.sensiblemetrics.api.alpenidos.pattern.examples.synchronizers;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
/**
* Semaphores controls the number of activities that can access a resource or
* perform a certain action;
*
* - First you... |
/*
*
* 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"); y... |
/*
* Copyright 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 applica... |
package kr.ac.kaist.se.model.strc;
import kr.ac.kaist.se.model.abst.cap._SimAction_;
import kr.ac.kaist.se.model.abst.comm._SimMessage_;
import kr.ac.kaist.se.model.abst.sys._SimObject_;
import kr.ac.kaist.se.model.behv.Role;
import kr.ac.kaist.se.model.behv.Task;
import kr.ac.kaist.se.simdata.output.intermediate.RunR... |
/*-
*
* Clockwork
*
* Copyright (C) 2019 - 2020 adx
*
* 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... |
package src.ValidParentheses;
import java.util.Stack;
/**
* author: mingqiao
* Date: 2018/12/5
*/
//题解:经典题了,括号匹配,用栈实现括号先进后出就行
public class ValidParentheses {
public static boolean isValid(String s) {
Stack stack = new Stack();
for (int i = 0; i < s.length(); i++) {
char c = s.charA... |
/*
* Copyright (c) 2005-2018 Substance Kirill Grouchnikov. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* t... |
package com.other;
import java.util.Scanner;
public class FibonacciSeries3
{
public static void main(String[] args)
{
int count, num1 = 0, num2 = 1;
System.out.println("How many numbers you want in the sequence:");
Scanner scanner = new Scanner(System.in);
count = scanner.ne... |
package com.sankuai.inf.leaf.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class LeafServerApplication {
public static void main(String[] args) {
SpringApplication.run(LeafServerApplication.class,args);... |
package protogui;
import java.io.IOException;
/**
*
* @author Thomas
*/
public class Division
{
Padding paddingObj = new Padding();
Division()
{
}
public String generateLongDivision(String dividend, int divisor)
{
//needs to be a string for account of interal 0s such as 2... |
//
// 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: 2015.0... |
/*
* FieldElement.java
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2015-2019 Apple Inc. and the FoundationDB project 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 ob... |
/*
* Copyright (c) 2008-2013, 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 ... |
package com.thinkbiganalytics.search.rest.model;
/*-
* #%L
* kylo-search-rest-model
* %%
* 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 rbasamoyai.industrialwarfare.client.screen.taskscroll;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.audio.SoundHandler;
import net.minecraft.client.gui.widget.Widget;
import net.minecraft.util.text.StringTextComponent;
public class RowIndexWidget extends Widget {
private final ... |
package br.uece.eesdevops.introducaospringboot;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MyConfiguration {
@Bean
public BeanClass beanClass() {
return new BeanClass();
}
@Bean
public BeanC... |
package au.net.electronichealth.ns.tplt.svc.gettemplate._1;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.FaultAction;
import javax.xml.ws.Holder;
import... |
/*
* Copyright (C) 2010, Google Inc.
* and other copyright owners as documented in the project's IP log.
*
* This program and the accompanying materials are made available
* under the terms of the Eclipse Distribution License v1.0 which
* accompanies this distribution, is reproduced below, and is
* available at ... |
// Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.controllers;
import java.util.List;
import java.util.UUID;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import com.yugabyte.yw.commissioner.Commissioner;
import com.yugabyte.yw.commissioner.Common;
import com.yugabyte.yw.commis... |
package graphics.renderer;
import graphics.Primitive;
import graphics.ShaderDatatype;
import org.joml.Vector4f;
import util.debug.DebugLine;
import java.util.ArrayList;
import java.util.List;
public class DebugRenderBatch extends RenderBatch {
private final List<DebugLine> lines;
/**
* @param maxBatchS... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.core.ssl.action;
import org.elasti... |
package org.cmucreatelab.android.flutterprek.ble.squeeze;
import android.bluetooth.BluetoothDevice;
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.Log;
import org.cmucreatelab.android.flutterprek.Constants;
import org.cmucreatelab.android.flutterprek.ble.bluetooth_birdb... |
/*
* Copyright (C) 2014 Balys Valentukevicius
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.