text stringlengths 7 995k |
|---|
/*
* Copyright 2015-2020 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 2010 Daniel Guermeur and Amy Unruh
*
* 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... |
/*
* Copyright (C) 2012-2021 DuyHai DOAN
*
* 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... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.cognitiveservices;
import java.util.Collection;
... |
import java.util.Arrays;
/*
* This test case violates an assertion in the compiler.
* It does not depend on the Fenum Checker, it breaks for any checker.
*/
public class IdentityArrayList {
public <T> T[] toArray(T[] a) {
// Warnings only with -Alint=cast:strict.
//TODO:: warning: (cast.unsafe)
... |
package com.bright.mvc.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Model {
String name();
} |
/**
* 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 (c) 2004 Composent, Inc. and others. All rights reserved. This
* program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is
* a... |
/*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
*
* Unless required by applicable law or a... |
/*
* 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... |
import com.chin.entity.User;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @ClassName: AnnotationTest
* @Description: TODO 类描述
* @Author: LQH
* @Date: 2020/07/17
* @Version: 1.0
**/
public class Annot... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* jkl
*/
package com.microsoft.azure.management.apimanagement.v2019_01_01.implementation;
... |
package edu.cmu.cs.mvelezce.instrument.region.utils.propagation.intra.down.idta;
import edu.cmu.cs.mvelezce.explorer.idta.partition.Partitioning;
import edu.cmu.cs.mvelezce.instrument.region.utils.blockRegionMatcher.BlockRegionMatcher;
import edu.cmu.cs.mvelezce.instrument.region.utils.propagation.intra.down.BaseDownI... |
package org.antlr.symtab;
import org.antlr.v4.runtime.ParserRuleContext;
/** This symbol represents a function ala C, not a method ala Java.
* You can associate a node in the parse tree that is responsible
* for defining this symbol.
*/
public class FunctionSymbol extends SymbolWithScope implements TypedSymbol {... |
package org.opensrp.core.service;
import java.util.List;
import java.util.Map;
import javax.transaction.Transactional;
import org.apache.log4j.Logger;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.opensrp.common.interfaces.DatabaseRepository;
import org.opensrp.core.entity.UsersCatchm... |
/*
* Copyright (C) 2017-2018 Dremio Corporation
*
* 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 l... |
/*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* 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 F... |
package collections;// collections/AdapterMethodIdiom.java
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// The "Adapter Method" idiom uses for-in
// with additional kinds of Iterables
import java.util.*;... |
package command;
import main.RouteCollectionManager;
import exception.InvalidArgumentException;
/**
* Класс-команда, реализующая удаление элемента на определенной позиции
*/
public class RemoveAtCommand implements Command{
RouteCollectionManager routeManager;
String[] args;
RemoveAtCommand(RouteCollect... |
/**
*
*/
package com.aldb.gateway.core;
import java.io.Serializable;
import java.util.Map;
import java.util.Properties;
/**
* @author Administrator
*
*/
public class OpenApiRouteBean implements Serializable{
private String traceId; // 内部定义的请求id
private String requestUrl;
private String targetU... |
package stsjorbsmod.patches;
import com.evacipated.cardcrawl.modthespire.lib.SpireField;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
@SpirePatch(
clz = AbstractMonster.class,
method = SpirePatch.CLASS
)
public class MonsterLastDam... |
package org.egorlitvinenko.testdisruptor.byteStreamParsing.disruptor;
import org.egorlitvinenko.testdisruptor.byteStreamParsing.ByteStreamParsingConstants;
import org.egorlitvinenko.testdisruptor.byteStreamParsing.event.ParseTableRowEvent;
import org.egorlitvinenko.testdisruptor.byteStreamParsing.handler.splittedByCol... |
/*
* Copyright 2014 Sebastiano Poggi and Francesco Pontillo
*
* 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 ... |
package net.chocomint.more_ores.util.effect;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectCategory;
import net.minecraft.util.math.Vec3d;
public class FreezeEffect extends StatusEffect {
public FreezeEffect(StatusEffectCateg... |
package com.learn.java.leetcode.lc0056;
import com.learn.java.leetcode.base.CallBack;
import com.learn.java.leetcode.base.Utilitys;
public class Main extends CallBack {
public static void main(String[] args) {
Utilitys.test(Main.class);
}
} |
package com.example.application.views;
import java.util.Map;
import com.example.application.backend.service.CompanyService;
import com.example.application.backend.service.ContactService;
import com.example.application.views.main.MainView;
import com.vaadin.flow.component.Component;
import com.vaadin.flow.component.ch... |
package state;
public class State1 extends State {
public State1(Drill drill) {
super(drill);
}
@Override
public void pressButton() {
super.drill.setRpm(2000);
super.drill.setHasPower(true);
super.drill.setState(new State2(super.drill));
}
} |
package com.stylefeng.gunSelf.modular.TS.service;
import com.stylefeng.gunSelf.modular.system.model.People;
import com.baomidou.mybatisplus.service.IService;
/**
* <p>
* 服务类
* </p>
*
* @author stylezhang123
* @since 2018-07-25
*/
public interface IPeopleService extends IService<People> {
} |
package com.ceiba.dominio;
import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.ceiba.dominio.excepcion.ExcepcionLongitudValor;
import com.ceiba.dominio.excepcion.ExcepcionValorInvalido;
im... |
package org.vaadin.addon;
import com.vaadin.server.*;
import com.vaadin.shared.JsonConstants;
import com.vaadin.util.CurrentInstance;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.... |
package org.eighthengine.persephone.listener;
import org.eighthengine.persephone.model.ChatMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.messaging.simp.Si... |
package chi.bean;
import java.util.HashSet;
/**
* @author yiding
*/
public class CHITextBean {
private String path;
private HashSet<String> wordset;
private String category;
public String getPath() {
return path;
}
public String getCategory() {
return category;
}
... |
/**
* 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 (c) 2011-2020, hubin (jobob@qq.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 applicable ... |
/*
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.currency;
import static com.opengamma.strata.basics.currency.Currency.AUD;
import static com.opengamma.strata.basics.currency.Currency.BHD;
import... |
/*================================================================================
Copyright (c) 2013 Steve Jin. 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 re... |
/*
* ****************************************************************************
* Cloud Foundry
* Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except... |
package br.ifcibirama.dell_pc.javaisfun;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
public class Veto... |
package org.hl7.fhir.convertors.conv10_30;
import org.hl7.fhir.convertors.VersionConvertor_10_30;
import org.hl7.fhir.exceptions.FHIRException;
public class TestScript10_30 {
static public org.hl7.fhir.dstu2.model.Enumeration<org.hl7.fhir.dstu2.model.TestScript.AssertionDirectionType> convertAssertionDirectionTy... |
package io.github.waterfallmc.waterfall.utils;
import java.util.UUID;
import com.google.common.base.Preconditions;
import com.google.common.primitives.Longs;
public class UUIDUtils {
private UUIDUtils() {}
public static String toMojangString(UUID id) {
Preconditions.checkNotNull(id, "Null id");
... |
/*******************************************************************************
* Copyright 2019 Fabrizio Pastore, Leonardo Mariani
*
* 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 L... |
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.ha... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package by.jackraidenph.dragonsurvival.nest;
import net.minecraft.util.math.BlockPos;
public class DismantleNest {
public DismantleNest() {
}
public DismantleNest(BlockPos nestPos) {
this.nestPos = nestPos;
;
}
public BlockPos nestPos;
} |
package com.whde.os.joke;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
public class JokeListAdapter extends ArrayAdapter {
private final int r... |
package org.janelia.colormipsearch.cmd;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import java.net.URI;
import java.nio.channels.Channels;
import java.nio.file.Files;
import java.nio.file.Path;
import ... |
package com.lesson5;
import java.util.Objects;
public class Dog {
private String name;
private String description;
public Dog(String name, String description) {
this.name = name;
this.description = description;
}
@Override
public boolean equals(Object o) {
if (this ==... |
/*
* Copyright (c) 2005-2021 Xceptance Software Technologies 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.0
*
* Unless requir... |
package webscraper;
import java.io.IOException;
import java.util.Scanner;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class webmain {
public static void main(String[] args) {
int i = 1;
int z = 1;
int ans = 0;
Scanner s =... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;
import javax.swing.*;
import university.*;
/**
*
* @author Mavrov
*/
public cl... |
package self.edu.shopbiz.service.impl;
import org.aspectj.lang.annotation.Before;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import ... |
package com.simon.design.pattern.proxy;
import java.util.HashMap;
public class YouTubeCacheProxy implements ThirdPartyYouTubeLib {
private ThirdPartyYouTubeLib youtubeService;
private HashMap<String, Video> cachePopular = new HashMap<>();
private HashMap<String, Video> cacheAll = new HashMap<>();
pu... |
package example;
import io.micronaut.context.BeanContext;
import io.micronaut.context.annotation.Property;
import io.micronaut.data.annotation.Query;
import io.micronaut.data.model.Page;
import io.micronaut.data.model.Pageable;
import io.micronaut.data.model.Slice;
import io.micronaut.test.extensions.junit5.annotation... |
/*
* tuProlog - Copyright (C) 2001-2004 aliCE team at deis.unibo.it
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any l... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
package com.sk.webtry.springmvcdata;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
impo... |
package org.drools.model.constraints;
import org.drools.model.Variable;
import org.drools.model.functions.LambdaPrinter;
import org.drools.model.functions.Predicate5;
import org.drools.model.functions.PredicateN;
import org.drools.model.impl.ModelComponent;
import org.drools.model.view.Expr5ViewItemImpl;
public class... |
package java8.training.completeablefuture.model;
public class Car {
int id;
int manufacturerId;
String model;
int year;
float rating;
public Car(int id, int manufacturerId, String model, int year) {
this.id = id;
this.manufacturerId = manufacturerId;
this.model = model;
this.year = year;
... |
/*
* 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... |
/*
* This file is part of Dependency-Track.
*
* 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 ... |
package com.example.phonehometest.example;
import org.apache.http.Header;
import org.apache.http.message.BasicHeader;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Build... |
package com.Ejdzyn.Shop.entity;
import com.Ejdzyn.Shop.enums.Currency;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
@Data
@Entity
@Table(name = "products")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Product implements Serializable {
@Id
@GeneratedValue(strategy... |
/*
*
* Copyright 2012-2014 Eurocommercial Properties NV
*
*
* 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 req... |
/*
* Copyright © 2020 Treblereel
*
* 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 block_party.utils.sorters;
public interface ISortableItem {
int getSortOrder();
} |
/*
* Copyright 2022 Deep Learning on Flink 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 applicabl... |
package uk.gov.hmcts.reform.fpl.handlers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import uk.gov.hmcts.reform.fpl.events.CaseDataChanged;
import uk.gov.hmcts.reform.f... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.spinyowl.legui.component;
import com.spinyowl.legui.component.misc.listener.layercontainer.LayerContainerWindowSizeEventListener;
import com.spinyowl.legui.event.WindowSizeEvent;
import com.spinyowl.legui.style.color.ColorConstants;
import com.spinyowl.legui.theme.Themes;
/**
* Layer one of base structur... |
package ninja.hassie.android.apps.glaze.model.owm.current;
import com.google.gson.annotations.SerializedName;
import ninja.hassie.android.apps.glaze.model.owm.common.Clouds;
import ninja.hassie.android.apps.glaze.model.owm.common.Main;
import ninja.hassie.android.apps.glaze.model.owm.common.Rain;
import ninja.hassie.... |
/**
* RelativeVerticalPositionType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.fedex.ship.stub;
public class RelativeVerticalPositionType implements java.io.Serializable {
private java.lang.String _value_;
private ... |
package org.jabref.logic.importer.fileformat;
import java.io.IOException;
import java.net.URISyntaxException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.HashMap;
import java.util.List;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.stream.Str... |
package practice_02;
public class Practice1 {
public static void main(String[] args) {
Practice2 p1 = new Practice2("가재", 15);
Practice2 p2 = new Practice2("암탉", 20);
Practice2 p3 = new Practice2("들개", 18);
Practice2 p4 = new Practice2("숫소", 16);
p1.setIsVisible(false);
p2.setTemperature(35.9);
p3... |
package com.dev.crm.core.repository.jdbc;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.SqlOutParameter;
import ... |
/*
* Copyright 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 applica... |
package com.st.academy.pomanager.models.entities;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import... |
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespatest;
import com.yahoo.search.Searcher;
import com.yahoo.search.Query;
import com.yahoo.search.Result;
import com.yahoo.search.result.Hit;
import com.yahoo.search.searchchain.Executio... |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.yitong.weixin.common.persistence.dialect.db;
import com.yitong.weixin.common.persistence.dialect.Dialect;
/**
* A dialect compatible with the H2 database.
*
* @author poplar.yfyang
* @v... |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: simple.proto
public final class SimpleOuterClass {
private SimpleOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.go... |
/*
* Copyright (C) 2020 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... |
/*
* Copyright (c) 2012, JInterval Project.
* 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 o... |
package model;
import java.util.*;
import java.io.File;
class Algorithm {
final private ArrayList<String> left;
final private ArrayList<String> right;
private LongestCommonSubseq<String> lcs;
private ArrayList<Integer> lMatch;
private ArrayList<Integer> rMatch;
private ArrayList<IdxPair> lChange;
private Ar... |
package org.dozer.migration;
import org.dozer.migration.jaxb.Project;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import java.io.File;
import java.net.URL;
/**
* @author Dmitry Buzdin
*/
public class Reader {
public static void main(String[] args) throws Exception {
URL resource =... |
package im.actor.core.modules.events;
import im.actor.core.entity.Peer;
import im.actor.runtime.eventbus.Event;
public class PeerInfoOpened extends Event {
public static final String EVENT = "peer_info_opened";
private Peer peer;
public PeerInfoOpened(Peer peer) {
this.peer = peer;
}
p... |
package org.randomcoder.taglibs.input;
import org.randomcoder.taglibs.test.base.AbstractTagTestCase;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
@SuppressWarnings("javadoc") public class SelectTagTest
extends AbstractTagTestCase {
private SelectTag tag;
@Override protected void ... |
package org.egordorichev.lasttry.core.io;
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* A wrapper for DataOutputStream.
*/
public class FileWriter implements AutoCloseable {
private DataOutputStream stream;
public FileWrit... |
package com.stylefeng.guns.common.validator;
import com.stylefeng.guns.common.exception.ServiceException;
/**
* @Description //TODO
* @Author 罗华
* @Date 2018/12/20 10:49
* @Version 1.0
*/
public interface BussValidator {
/**
* 校验
*
* @throws ServiceException
*/
void doValidate() throw... |
/**
* Copyright (c) 2015-2017, Chill Zhuang 庄骞 (smallchill@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 re... |
package com.checkout.payments;
import com.checkout.ApiTestFixture;
import com.checkout.TestHelper;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
public class CardVerificationTests extends ApiTestFixture {
@Test
public void can_verify_card() throws Exception {
PaymentRequest<... |
package GlassBR_program;
import java.util.Arrays;
import java.util.BitSet;
import java.util.Scanner;
import java.io.PrintWriter;
import java.io.File;
import java.util.Vector;
public class Calculations {
public static double calc_B(double k, double a, double b, double m, double E, double h, double LDF, double... |
public class Main {
interface Account {}
public static void main(String[] args) {
java.util.List list;
for (int i = 0; i < list.size(); i++) {
Object o = (Acco<caret>list.get(i);
System.out.println(o);
}
}
} |
package tradeapi;
import ctp.thosttraderapi.*;;
class TraderSpiImpl extends CThostFtdcTraderSpi{
//final static String m_BrokerId = "9999";
//final static String m_UserId = "070624";
final static String m_BrokerId = "8000";
final static String m_UserId = "8000_admin";
final static String m_PassWord = "1";
fi... |
/* ====================================================================
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 Y... |
/*
* Copyright © 2020 Treblereel
*
* 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.adempiere.warehouse.qrcode.v1;
import lombok.Builder;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
@Value
@Builder
@Jacksonized
public class JsonLocatorQRCodePayloadV1
{
int warehouseId;
int locatorId;
String caption;
} |
/**
* AspectRatioImageCreative.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.v201302;
/**
* A {@code Creative} intended for mobile platforms that displays
* an image,
* whose {@link LineIte... |
package gov.cms.dpc.api.resources.v1;
import com.codahale.metrics.annotation.ExceptionMetered;
import com.codahale.metrics.annotation.Timed;
import gov.cms.dpc.api.auth.OrganizationPrincipal;
import gov.cms.dpc.api.auth.annotations.Authorizer;
import gov.cms.dpc.api.core.FileManager;
import gov.cms.dpc.api.models.Rang... |
package org.hisp.dhis.jphes.hierarchy.action.national;
import org.hisp.dhis.dataelement.DataElementCategoryService;
import org.hisp.dhis.jphes.hierarchy.national.NationalUnit;
import org.hisp.dhis.jphes.hierarchy.national.NationalUnitService;
import org.hisp.dhis.paging.ActionPagingSupport;
import org.hisp.dhis.user.U... |
/*
* Copyright 2016 - 2018 Anton Tananaev (anton@traccar.org)
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.