text stringlengths 7 995k |
|---|
/**
*
*/
package be.one.test.ui.views.orderedit;
import com.vaadin.flow.component.ClickEvent;
import com.vaadin.flow.component.ComponentEventListener;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.HtmlImport;
import com.vaadin.flow.c... |
package org.packt.Spring.chapter7.springmvc.controller;
import java.io.IOException;
import org.packt.Spring.chapter7.springmvc.exception.GenericException;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org... |
package co.teebly.signature;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Objects;
import javax.xml.bind.annotation.XmlEnumValue;
import org.bson.Document;
import org.bson.convers... |
package com.github.pinchflat.tomcat.util;
import java.io.PrintWriter;
import java.io.StringWriter;
public class StackTraceDumper {
public String dump(final Throwable throwable) {
final StringWriter sw = new StringWriter();
final PrintWriter pw = new IndentingPrintWriter(sw);
throwable.pri... |
package tqs.airquality.model;
import lombok.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class CityAirQuality implements Serializable {
@JsonProperty("city_name")
private String cityName;
private Strin... |
/*
* Copyright (c) 2019 MachineMuse, Lehjr
* 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 c... |
/*
* 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 com.ctrip.xpipe.simpleserver;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
/**
* @author wench... |
package com.sl.permissionbrowser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PermissionBrowserApplication {
public static void main(String[] args) {
SpringApplication.run(PermissionBrowserAppl... |
package br.com.panificadora.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import br.com.panificadora.model.Produto;
import br.com.panificadora.factory.ConnectionFactory;
public class ProdutoDAO {
public vo... |
/*
* (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and others.
*
* 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 require... |
package com.service.impl;
import com.dao.PicturesDao;
import com.service.PicturesService;
public class PicturesServiceImpl extends BaseServiceImpl implements
PicturesService {
private PicturesDao picturesDao;
public void setPicturesDao(PicturesDao picturesDao) {
this.picturesDao = picturesDao;
}
} |
//-----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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... |
/*
* Copyright (c) 2008 ThingMagic, Inc.
*
* 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, pu... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sonarzero;
import java.io.File;
import javax.swing.JOptionPane;
import sonarzero.api.sound.player.Music;
import sonarzero.api.... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 图文消息子消息
*
* @author auto create
* @since 1.0, 2017-07-04 11:09:05
*/
public class Article extends AlipayObject {
private static final long serialVersionUID = 6851167186883826511L;
/**
*... |
package com.halildurmus.hotdeals.category;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.ArgumentMatchers.any;
import static org.... |
/*
* 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 transformer;
import network.*;
public class LinkPageRankVertexPriors implements org.apache.commons.collections15.Transformer<Long, Double> {
DiffusionNetwork dn = null;
DiffusionNetwork dnPattern = null;
public LinkPageRankVertexPriors(DiffusionNetwork dn,
DiffusionNetwork dnPattern) {
super();
th... |
package layout;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import galab.example.com.interviewbyte.R;
public class Quick_Sort extends Fragment {
... |
package net.dubboclub.cache.remote;
import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.utils.StringUtils;
import net.dubboclub.cache.config.CacheConfig;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import redis.clients.jedis.JedisShardInfo;
import redis.clients.jedis.ShardedJed... |
/*
* Copyright 2013 Hippo B.V. (http://www.onehippo.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... |
/*
* Copyright 2017 Florida Institute for Human and Machine Cognition (IHMC)
*
* 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 ru.framework2d.graphics.draw.shadows;
import ru.framework2d.core.Property;
import ru.framework2d.data.Bool;
import ru.framework2d.data.Fractional;
import ru.framework2d.data.Numeral;
import ru.framework2d.graphics.OutputGraphicalInterface;
import android.graphics.Color;
import android.graphics.ColorFilter;
imp... |
package com.adv.flinkjobs.jobs.models;
public class RandomIntOutput {
private Integer ret;
private Long ts;
public RandomIntOutput(Integer ret, Long t) {
this.ret = ret;
this.ts = t;
}
public Integer getRet() {
return ret;
}
public void setRet(Integer ret) {
... |
/*
* Copyright © 2017 camunda services GmbH (info@camunda.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 ... |
/*
* Copyright 2018 LINE Corporation
*
* LINE Corporation licenses this file to you 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 r... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
package arrays;
import java.util.*;
public class Jumps {
/*Naive Recursive approach
*
* function(arr, l, h) if(l == h) return 0 int min ... for(i = l+1; i<=h ; i++){ ...
*
* */
public static void main(String args[]) {
}
} |
/**
* Copyright (c) 2004-2005, Regents of the University of California
* 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 ... |
package com.gos.outreach2016.robot.subsystems;
import edu.wpi.first.wpilibj.motorcontrol.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
import com.gos.outreach2016.robot.RobotMap;
/**
*
*/
public class AccessoryMotors extends Subsystem {
private final Victor m_accessoryLeft;
private final Victor m_... |
package org.infernalstudios.infernalexp.client.entity.render;
import com.mojang.blaze3d.matrix.MatrixStack;
import org.infernalstudios.infernalexp.InfernalExpansion;
import org.infernalstudios.infernalexp.client.entity.model.ShroomloinModel;
import org.infernalstudios.infernalexp.entities.ShroomloinEntity;
import net.... |
/**
* BSD 3-Clause License
*
* Copyright (C) 2018 Steven Atkinson <steven@nowucca.com>
* 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... |
/*
* Copyright 2013 The Error Prone Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Copyright (c) pakoito 2016
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorian... |
package aQute.bnd.classfile;
import java.io.DataInput;
import java.io.IOException;
public class RuntimeInvisibleTypeAnnotationsAttribute extends TypeAnnotationsAttribute {
public static final String NAME = "RuntimeInvisibleTypeAnnotations";
RuntimeInvisibleTypeAnnotationsAttribute(TypeAnnotationInfo[] type_annotat... |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 MVC;
// Create a student view
public class StudentView {
public void printStudentDetails(String studentName, String studentRollNo) {
System.out.println("Student Information");
System.out.println("Student Name: " + studentName);
System.out.println("Student Roll No: " + studentRollNo);
}
} |
package com.jadyer.sdk.weixin.model.menu;
/**
* 封装CLICK类型的子菜单项
* @see 1.这一类菜单有三个固定值name/type/key
* @see 2.这里的子菜单指的是没有子菜单的菜单项
* @see 其可能是二级菜单项(微信菜单最多两级),也有能是不含二级菜单的一级菜单(即进入微信第一眼看到的)
* @create Oct 18, 2015 8:55:19 PM
* @author 玄玉<http://blog.csdn.net/jadyer>
*/
public class WeixinSubClickButton extends WeixinBu... |
/*
* Copyright 2002-2015 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 com.ocdsoft.bacta.swg.shared.terrain.generator;
/**
* Created by crush on 4/22/2016.
*/
public class FastList {
} |
/**
* 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.datafactory.v2018_06_01;
import com.fasterxml.ja... |
package module0067.a;
import javax.rmi.ssl.*;
import java.awt.datatransfer.*;
import java.beans.beancontext.*;
/**
* Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
* labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolo... |
/*
* 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... |
/*
* Copyright 2014 Avanza Bank AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
package flow;
import android.support.annotation.NonNull;
/**
* An object to which gets a chance to scrub the current {@link History} before
* it is persisted.
*/
public interface HistoryFilter {
@NonNull History scrubHistory(@NonNull History history);
} |
package cn.jmessage.api;
import com.google.gson.JsonParser;
public class BaseTest {
protected static final String APP_KEY ="c12bb0902ad1c069ffb67667";
protected static final String CROSS_APP_KEY = "4f7aef34fb361292c566a1cd";
protected static final String MASTER_SECRET = "bcf206e4dde5d40875c16a51";
... |
package com.ellison.springdemo.common.service.mq;
import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.listener.api.ChannelAwareMessageListener;
import org.springframework.stereotype.Component;
/**
* <p>TODO</p>
*
* @author Ellison Pei
* @date 20... |
/**
* The MIT License (MIT)
* Copyright (c) 2018 Microsoft Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... |
package info.izumin.android.droidux.example.todoswithdagger.module.main;
import android.view.View;
import android.widget.AdapterView;
/**
* Created by izumin on 12/5/15.
*/
public interface MainEventHandlers {
void onClickAddTodo(View view);
void onItemClick(AdapterView<?> parent, View view, int position, l... |
package it.unibo.pensilina14.bullet.ballet.save;
import it.unibo.pensilina14.bullet.ballet.logging.AppLogger;
import org.apache.commons.lang3.tuple.MutablePair;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
... |
package de.eorg.cumulusgenius.shared.cloudmapping.model.mapping;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class Component implements Serializable {
/**
*
*/
private static final long serialVersionUID = -7424511072280849957L;
/**
* @uml.property name="name"
* @um... |
package io.quarkiverse.jberet.deployment;
import java.util.HashMap;
import java.util.Map;
import javax.batch.runtime.Metric;
public class BatchTestUtils {
static Map<Metric.MetricType, Long> getMetricsMap(Metric[] metrics) {
Map<Metric.MetricType, Long> metricsMap = new HashMap<>();
for (Metric m... |
//
// Decompiled by Procyon v0.5.36
//
package groovy.ui.text;
import javax.swing.text.BadLocationException;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.JRootPane;
import java.awt.Container;
import javax.swing.BoxLayout;
import java.awt.event.KeyListener;
import java.awt... |
/*
* 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 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 com.java110.user.listener.owner;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.ResponseConstant;
import com.java110.utils.constant.StatusConstant;
import com.java110.utils.exception.ListenerExecuteException;
import com.java110.entity.center.Business;
import com.java110.core.event.se... |
package de.ysl3000.chunkguard.lib.visualisation;
import org.bukkit.plugin.java.*;
import org.bukkit.event.player.*;
import java.util.*;
import org.bukkit.event.*;
public class CommandListener implements Listener
{
private ChunkLookup ls;
public CommandListener(final JavaPlugin plugin) {
this.ls =... |
/*
* 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 de.metas.rfq.impl;
import java.util.concurrent.CopyOnWriteArrayList;
import org.slf4j.Logger;
import de.metas.logging.LogManager;
import de.metas.rfq.IRfQResponseProducer;
import de.metas.rfq.IRfQResponseProducerFactory;
import de.metas.rfq.model.I_C_RfQ;
import de.metas.util.Check;
/*
* #%L
* de.metas.rf... |
/**
* 行为型模式(Behavioral Patterns)
* <ol>
* <li>责任链式(Chain of Responsibility Pattern)</li>
* <li>命令模式(The Command Pattern)</li>
* <li>解释器模式(The Interpreter Pattern)</li>
* <li>迭代器模式(The Iterator Pattern)</li>
* <li>中介者模式(The Mediator Pattern)</li>
* <li>观察者模式(The Observer Pattern)</li>
* <li>状态模式(The State Patte... |
package com.sevenmindev.middach.ui;
import android.view.LayoutInflater;
import com.sevenmindev.middach.R;
import com.sevenmindev.middach.core.CheckIn;
import java.util.List;
public class CheckInsListAdapter extends AlternatingColorListAdapter<CheckIn> {
/**
* @param inflater
* @param items
* @pa... |
package com.learn.email;
import com.learn.email.domain.EmailDTO;
import com.learn.email.domain.MimeEmailDTO;
import com.learn.email.service.EmailService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.io.FileSystemResource;
import org.spr... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2009 - 2020 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... |
/*
* Copyright (C) 2020 Dremio
*
* 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 wr... |
package com.taoswork.tallybook.module.elevator.datadomain.sheetfills;
/**
* Created by Gao Yuan on 2016/3/9.
*/
public class SemiAnnualMaintenanceFill extends BaseMaintenanceFill {
} |
package com.atguigu.gmall.sms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.sms.entity.CouponEntity;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
/**
* 优惠券信息
*
* @author lixianfeng
* @email lxf@atguigu.com
* @date 2020-06-04 22... |
/*
* 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 adoctor.application.ast.visitor;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.Block;
import org.eclipse.jdt.core.dom.SimpleName;
import java.util.ArrayList;
public class SimpleNameVisitor extends ASTVisitor {
private ArrayList<SimpleName> simpleNames;
public SimpleNam... |
/*
* Copyright 2002-2017 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 org.timconrad.vmstats.netty;
/*
* Copyright 2012 Tim Conrad - tim@timconrad.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/LICE... |
/*
* Copyright (c) 2019. PKLite - All Rights Reserved
* Unauthorized modification, distribution, or possession of this source file, via any medium is strictly prohibited.
* Proprietary and confidential. Refer to PKLite License file for more information on
* full terms of this copyright and to determine what consti... |
package org.onvif.ver10.display.wsdl;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.Xm... |
package be.makingidea.androidboilerplate;
import android.content.Intent;
import android.support.test.InstrumentationRegistry;
import android.support.test.espresso.contrib.RecyclerViewActions;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Rule;
im... |
package com.mapswithme.maps.location;
import android.location.Location;
import androidx.annotation.NonNull;
interface LocationFixChecker
{
boolean isLocationBetterThanLast(@NonNull Location newLocation);
boolean isAccuracySatisfied(@NonNull Location location);
} |
package org.nutz.aop.asm;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.List;
import org.nutz.aop.AbstractClassAgent;
import org.nutz.aop.ClassDefiner;
import org.nutz.aop.MethodInterceptor;
import org.nutz.lang.Lang;
import org.nutz.lang.Mirror;
import org.nutz.log.Logs;
impo... |
/*
* 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 cn.wizzer.common.view.beetl;
import org.beetl.core.Format;
import org.nutz.lang.Strings;
public class HtmlEscapeFormat implements Format {
public Object format(Object data, String pattern) {
return Strings.escapeHtml(String.valueOf(data==null?"":data));
}
} |
package com.imjustdoom.pluginsite.util;
import com.imjustdoom.pluginsite.config.custom.SiteConfig;
import org.springframework.stereotype.Component;
import java.util.regex.Pattern;
@Component
public class UrlUtil {
private final String domainRedirect;
public UrlUtil(SiteConfig siteConfig) {
String do... |
package org.nutz.filepool;
import org.nutz.lang.Files;
import org.nutz.lang.Lang;
import org.nutz.lang.random.R;
import java.io.File;
public class UU32FilePool implements FilePool {
protected File root;
public UU32FilePool(String path) {
this.root = Files.createDirIfNoExists(path);
}
@Override
public ... |
/*
* Copyright 2011-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package bbejeck.chapter_6;
import bbejeck.chapter_6.transformer.StockPerformanceTransformer;
import bbejeck.clients.producer.MockDataProducer;
import bbejeck.model.StockPerformance;
import bbejeck.model.StockTransaction;
import bbejeck.util.serde.StreamsSerdes;
import org.apache.kafka.clients.consumer.ConsumerConfig;... |
/*
* 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 playground.ee.rest;
import javax.xml.bind.annotation.XmlElement;
import java.util.List;
/**
* @author jhirschbeck
*/
public class IsbnNumberList {
@XmlElement(name = "isbn-number")
private List<IsbnNumber> numbers;
public IsbnNumberList() {
}
public IsbnNumberList(List<IsbnNumber> nu... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package org.team639.commands.Drive;
import org.team639.RobotContainer;
import org.team639.controlboard.ControllerWrapp... |
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.completion.test;
import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners;... |
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.serv... |
package core.framework.internal.validate;
import core.framework.api.validate.Digits;
import core.framework.api.validate.Min;
import core.framework.api.validate.Size;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatThr... |
package io.github.asharapov.logtrace.log4j;
import java.util.Map;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.io.SegmentedStringWriter;
import io.github.asharapov.logtrace.LogSpan;
import io.github.asharapov.logtrace.LogTracer;
impo... |
package org.jboss.pnc.okra.entity.okr;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import org.jboss.pnc.okra.entity.t... |
package com.cyc.cycjava.cycl;
import com.cyc.tool.subl.util.SubLFiles;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.Sort;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.Sequences;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.Mapping;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.Numbers;
import com.cyc.to... |
package com.morethanheroic.swords.combat.service.calc.drop;
import com.morethanheroic.swords.combat.domain.Drop;
import com.morethanheroic.swords.loot.domain.DropAmountDefinition;
import com.morethanheroic.swords.loot.domain.DropDefinition;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.S... |
package ru.job4j.profession;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
/**
* Profession.
* @author Aleksandr Shigin
* @version $Id$
* @since 0.1
*/
public class ProfessionTest {
/**
* Doctor heal patient.
*/
@Test
public void whe... |
package com.google.sample.audio_device;
/*
* Copyright 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/LICE... |
package android.support.v4.app;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.os.Build.VERSION;
import android.os.IBinder;
import android.os.RemoteException;
import android.support.v4.app.INotificationSideChannel.Stub;
public abstract class NotificationComp... |
package com.Da_Technomancer.crossroads.blocks.heat;
import com.Da_Technomancer.crossroads.API.Capabilities;
import com.Da_Technomancer.crossroads.API.heat.IHeatHandler;
import com.Da_Technomancer.crossroads.CRConfig;
import com.Da_Technomancer.crossroads.blocks.CRBlocks;
import com.Da_Technomancer.crossroads.tileentit... |
/**
* Derby - Class org.apache.derbyTesting.functionTests.tests.memory.ConnectionHandlingJunit
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.