text stringlengths 7 1.01M |
|---|
package name.stepin.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
@Configuration
@EnableScheduling
public class EnableSchedulingConfig {
}
|
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package uk.org.wolfpuppy.minecraft.chunkchecker.util;
import java.util.LinkedHashMap;
import java.util.Map;
public class LimitedMap<K, V> extends LinkedHashMap<K, V> {
private int maxSize;
public LimitedMap(int maxSize) {
this.maxSize = maxSize;
}
@Override
protected boolean removeEldest... |
/*
* Copyright 2011 The Closure Compiler 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... |
/*
* Copyright 2018-2019 the Justify 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... |
/*
* Copyright 2015 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
package com.baidu.cloud.push.model;
import com.baidu.cloud.core.annotation.HttpParamKeyName;
import com.baidu.cloud.core.annotation.R;
import com.baidu.cloud.core.annotation.RangeRestrict;
import com.baidu.cloud.push.constants.BaiduPushConstants;
public class QueryTopicRecordsRequest extends PushRequest {
@HttpPara... |
package com.plealog.jgaf.genericapp.ui.common;
/**
* This is an entry for the RadioChooser dialog box. It symbolized an option by way of a radio
* button and a description.
*
* @author Patrick G. Durand
*/
public class RadioChooserEntry {
private int _id;
private String _categoryName;
private String _label;... |
package com.base.spring.config;
import com.base.spring.custom.security.CustomAuthenticationFailureHandler;
import com.base.spring.custom.security.CustomAuthenticationSuccessHandler;
import com.base.spring.service.security.CustomUserDetailsService;
import com.base.spring.utils.BCryptPassWordUtils;
import org.springfram... |
public class EightQueens {
private int[] a;
private boolean[] b;
private int c;
public static void main ( final String[] array ) {
final EightQueens eightQueens;
( eightQueens = new EightQueens ( 5 ) ).a ( 0 );
System.out.println ( "There were " + eightQueens.c + " solutions." );... |
/*
* 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 LQB;
public class NOeight {
static int qian[]={1,6};
static int zhao[]={2,4};
static int sun[]={3,7};
static int li=5;
static int zhou[]={1,4,6};
static int wu[]={2,5};
static int chen[]={3,6,7};
static int total[]=new int[7];
public static boolean f(int a){
for(int i=0;i<tot... |
/*
* Copyright 2015 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.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... |
package toolWindow;
import com.intellij.openapi.ui.SimpleToolWindowPanel;
import com.intellij.openapi.wm.ToolWindow;
import controller.LoggingWebViewController;
import controller.NotesController;
import de.ur.mi.pluginhelper.logger.LogDataType;
import gui.NoteAddingFrame;
import gui.PluginWebViewFXPanel;
import javafx... |
package net.co.java.guild;
public enum GuildRank {
NONE (0),
MEMBER (50),
INTERNMANAGER (60),
DEPUTYMANAGER (70),
BRANCHMANAGER (80),
DEPUTYLEADER (90),
GUILDLEADER (100);
public final int rank;
private GuildRank(int rank) {
this.rank = rank;
}
public static GuildRank valueOf(int ra... |
/**********************************************************************
Copyright (c) 2007 Andy Jefferson and others. 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
h... |
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import modules.Animal;
import modules.Endangered;
import modules.Sighting;
import spark.ModelAndView;
import spark.template.handlebars.HandlebarsTemplateEngine;
import static spark.Spark.*;
public class App {
public... |
package com.yumore.module.contract;
import com.yumore.module.base.BasePresenter;
import com.yumore.module.base.BaseResponse;
import com.yumore.module.base.BaseViewImp;
import com.yumore.module.entity.KnowledgeSysArticle;
public interface KnowledgeSysActivityCon {
interface View extends BaseViewImp {
vo... |
package April2021PrepLeetcode;
import java.util.Arrays;
public class _0735AsteroidCollision {
public static void main(String[] args) {
System.out.println(Arrays.toString(asteroidCollision(new int[] { 5, 10, -5 })));
System.out.println(Arrays.toString(asteroidCollision(new int[] { 10, 2, -5 })));
System.out.pri... |
package ai.fritz.aistudio.activities;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.supp... |
package org.appfuse.webapp.listener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import junit.framework.TestCase;
import org.appfuse.Constants;
import org.springframework.mock.web.MockServletContext;
import org.springframework.web.context.ContextLoader;
import org.springfra... |
package abi39_0_0.expo.modules.barcodescanner;
import android.content.Context;
import java.util.Collections;
import java.util.List;
import abi39_0_0.org.unimodules.core.interfaces.InternalModule;
import abi39_0_0.org.unimodules.interfaces.barcodescanner.BarCodeScanner;
import abi39_0_0.expo.modules.barcodescanner.sc... |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.util.fxdesigner.util;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
imp... |
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: mybank.credit.sceneprod.payment.apply response.
*
* @author auto create
* @since 1.0, 2018-04-08 14:40:00
*/
public class MybankCreditSceneprodPaymentApplyResponse extends A... |
/*******************************************************************************
* Copyright (c) 2015 Development Gateway, Inc and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License (MIT)
* which accompanies this distribution, and is... |
package protocol;
import java.io.Serializable;
public class Message implements Serializable {
protected MessageType msgType;
protected String errorMessage;
public Message(MessageType type) {
msgType = type;
errorMessage = null;
}
public MessageType getMessageType() {
retu... |
package io.ebeaninternal.server.deploy;
import io.ebean.event.BeanPersistController;
import io.ebeaninternal.server.core.bootup.BootupClasses;
import io.ebeaninternal.server.deploy.meta.DeployBeanDescriptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
/**
* Default implementation... |
package org.springframework.data.elasticsearch.entities;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.MultiField;
import org.s... |
package com.salama.service.auth;
import java.util.Properties;
import com.salama.util.ResourceUtil;
import com.salama.util.StringUtil;
/**
*
* @author XingGu Liu
*
*/
public class AuthenticateException extends Exception {
/**
*
*/
private static final long serialVersionUID = 873538759079... |
package com.niluogege.common.constant;
/**
* @Description:
* @Created: with IntelliJ IDEA.
* @author: 夏沫止水
* @createTime: 2020-06-27 10:57
**/
public class AuthServerConstant {
public static final String SMS_CODE_CACHE_PREFIX = "sms:code:";
public static final String LOGIN_USER = "loginUser";
}
|
/*
* Copyright 2021 ISAM
*
* 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... |
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 licen... |
/**
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under ... |
/*
* Report Portal
* Report Portal API documentation
*
* OpenAPI spec version: 4.3.11
* Contact: Support EPMC-TST Report Portal <SupportEPMC-TSTReportPortal@epam.com>
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit... |
/*
* Copyright 2012 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 ap... |
// 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 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* Generic interfaces for all types of data.
**/
@ExportPackage
@PublicApi
package com.yahoo.data;
import com.yahoo.api.annotations.PublicApi;
import com.yahoo.osgi.annotation.ExportPackage;
|
package org.apereo.cas.config;
import org.apereo.cas.CipherExecutor;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.couchdb.core.CouchDbConnectorFactory;
import org.apereo.cas.couchdb.saml.SamlIdPMetadataCouchDbRepository;
import org.apereo.cas.support.saml.idp.metadata.CouchDbSa... |
/**
* 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.volmit.react.xmonitor;
import org.json.JSONArray;
import primal.lang.collection.GList;
public class TitleCollection
{
private GList<TitleHeader> headers;
public TitleCollection()
{
headers = new GList<TitleHeader>();
}
public TitleCollection(JSONArray j)
{
this();
for(int i = 0; i < j.lengt... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2010 Technische Universitaet Berlin
*
* 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 t... |
package com.leone.cloud.hystrix;
import com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springf... |
/*
*
* 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 2013 Canada Health Infoway, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*
Copyright [2020] [Consulting4J]
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, softwar... |
package edu.umich.eecs.featext.util;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class RouletteSelector<T> {
private List<T> items;
private List<Double> probs;
private Random rand = new Random();
private Double normTerm;
public RouletteSelector() {
reset();
}
public v... |
/*
* Copyright 2020-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 ap... |
package com.project.lmx.sdk.widgets;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Paint;
import android... |
/**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.rule.properties;
import java.util.Map;
import net.sourceforge.pmd.PropertyDescriptorFactory;
import net.sourceforge.pmd.lang.rule.properties.factories.BasicPropertyDescriptorFactory;
/**
* Define... |
/*
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.graalvm.compiler.core.common.util;
public final class UnsignedLong {
private final long val... |
/**
* 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 edu.mines.model.config;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Created by Matt on 9/5/2017.
*/
public class IamGroup extends Config {
@JsonProperty("configuration")
private GroupConfiguration configuration;
public GroupConfiguration getConfiguration() {
return confi... |
/*
* Copyright 2015 Adobe Systems Incorporated
*
* 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.timochiang.kitchen.entities;
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 org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.sprin... |
package bms.display;
import bms.building.Building;
import bms.floor.Floor;
import bms.room.Room;
import bms.room.RoomType;
import bms.sensors.OccupancySensor;
import bms.sensors.Sensor;
import bms.util.StudyRoomRecommender;
import javafx.animation.AnimationTimer;
import javafx.beans.property.ReadOnlyDoublePr... |
package org.bsc.wsdldownloader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLDecoder;
import java.util.HashSet;
... |
package com.blackpanda.icemall.member.dao;
import com.blackpanda.icemall.member.entity.MemberCollectSpuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员收藏的商品
*
* @author BlackPanda
* @email black_panda@qq.com
* @date 2020-12-25 09:48:35
*/
@Ma... |
/*
* Copyright 2019. Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package com.bakery.management.dao;
import com.bakery.management.domain.Vehicle;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* Home object for domain model class Vehicle.
*
* @author Hi... |
package com.ahmetkilic.eaframework.ea_progress.preloaders.circular;
import android.animation.ValueAnimator;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;
import android.view.animation.LinearInterpolator;
import com.ahmetkilic.eaframework.R;
import com.ahmetkilic.eaframework.... |
package com.sms.server.api;
public interface IMappingStrategy {
/**
* Map a name to the name of a service.
*
* @param name name to map
* @return The name of the service with the passed name
*/
public String mapServiceName(String name);
/**
* Map a context path to the name of a scope handler.
*... |
package lucid7.routd.extend;
public class SplatParameterElement extends PathElement {
public SplatParameterElement(int index) {
super(RouteHelper.WILDCARD, index);
}
}
|
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.diagnostic;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.execution.... |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... |
/* Copyright (c) 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package org.mockserver.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* @author jamesdbloom
*/
public class HttpClassCallback extends Action<HttpClassCallback> {
private String callbackClass;
private Type actionType;
/**
* Static builder to create a callback.
*/
public st... |
/*
* 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.suntrip.hms.modules.ums.dto;
import com.suntrip.hms.modules.ums.model.UmsMenu;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
/**
* 后台菜单节点封装
* Created by macro on 2020/2/4.
*/
@Getter
@Setter
public class UmsMenuNode extends UmsMenu {... |
package org.carlspring.strongbox.authentication.api.impl.ldap;
import static org.hamcrest.MatcherAssert.assertThat;
import java.io.InputStream;
import java.util.Properties;
import javax.inject.Inject;
import org.carlspring.strongbox.authentication.support.AuthenticationContextInitializer;
import org.carlspring.stro... |
package cz.metacentrum.perun.core.entry;
import com.fasterxml.jackson.databind.ObjectMapper;
import cz.metacentrum.perun.audit.events.AuditEvent;
import cz.metacentrum.perun.audit.events.ExpirationNotifScheduler.SponsorshipExpired;
import cz.metacentrum.perun.audit.events.FacilityManagerEvents.FacilityCreated;
import ... |
/*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... |
/*
* The MIT License
* Copyright © 2014-2019 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 com.github.tzemp.config;
/**
* Enum to declare the type of a Parsing rule
*/
public enum ParsingRuleType {
STRING, REGEX
}
|
/*
* 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 exer01lista05.javateste;
import exer01lista05.Pessoa;
/**
*
* @author ITANU
*/
public class Diretor extends Pessoa {
p... |
/*
* 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 dam.gestionhotelera.controladores;
import dam.gestionhotelera.Util.LimitadorDeCaracteres;
import dam.gestionhotelera.U... |
package ommina.biomediversity.blocks.plug;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.tileentity.TileEntityRenderer;
import net.minecraft.client.renderer.tile... |
package bee.creative.fem;
import bee.creative.lang.Integers;
import bee.creative.util.Comparators;
/** Diese Klasse implementiert eine unveränderliche Dezimalzahl. Intern wird die Dezimalzahl als {@code long} dargestellt.
*
* @author [cc-by] 2015 Sebastian Rostock [http://creativecommons.org/licenses/by/3.0/... |
package org.ovirt.engine.core.bll.hostdev;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.inject.Inject;
import org.ovirt.engine.core.bll.NonTransactiveCommandAttribute;
import org.ovirt.engine.core.bll.RefreshHostInfoComma... |
package com.net.alone.ila.Basic;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* Created by Mari on 2015-12-06.
*/
public class BootBroadCast extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
... |
package com.yinxin.pos.yxpaymentsdk;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an And... |
package com.lollol23.hiyo.common;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class EncryptUtils {
public static String md5(String message) {
String encData="";
try {
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] bytes = message.getBytes();
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package com.coolweather.app.service;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.os.SystemClock;
import android.preference.PreferenceManager;
import com... |
package de.adorsys.xs2a.adapter.service;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.adorsys.xs2a.adapter.service.model.Link;
import java.util.List;
import java.util.Map;
public class PaymentInitiationRequestResponse {
// required
private TransactionStatus transactionStatus;
private S... |
package com.ksoichiro.task.service;
import com.ksoichiro.task.domain.Account;
import com.ksoichiro.task.repository.AccountRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transacti... |
package com.seven.designbox.designpatterns.patterns.state;
import com.ogaclejapan.smarttablayout.SmartTabLayout;
import com.ogaclejapan.smarttablayout.utils.v4.FragmentPagerItemAdapter;
import com.ogaclejapan.smarttablayout.utils.v4.FragmentPagerItems;
import com.seven.designbox.R;
import com.seven.designbox.designpat... |
package net.siisise.abnf.parser5234;
import java.util.List;
import net.siisise.abnf.ABNF;
import net.siisise.abnf.ABNFReg;
import net.siisise.abnf.ABNFbin;
import net.siisise.abnf.ABNFmap;
import net.siisise.abnf.ABNFor;
import net.siisise.abnf.parser.ABNFList;
/**
* or 相当.
* 先頭一致なのでアナログな解釈と異なる場合もあるかもしれない
*/
publi... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------... |
package indi.felix.kw.web.utils;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
public class DateTime extends Date {
private static final long serialVersionUID = 1L;
/**
* 现在的时间
*
* @return 现在的时间
*/
public static DateTime now() {
return new Date... |
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
package com.carr3r.waltsnspiders.lightbox;
import android.app.Dialog;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import a... |
package oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import oasis.names.specification.ubl.schema.xsd.unqualifieddatatypes_2.IdentifierType;
import org.apache... |
package solutions;
import junit.framework.TestCase;
/**
* Component:
* Description:
* Date: 14/11/5
*
* @author Andy Ai
*/
public class SortListTest extends TestCase {
public void test() {
SortList solution = new SortList();
ListNode head = new ListNode(10);
head.next = new ListNode(... |
import java.util.TreeMap;
import java.util.HashMap;
import java.util.Map;
import java.util.LinkedList;
import java.util.List;
import java.util.AbstractMap.SimpleEntry;
import java.security.MessageDigest;
public class Map2D<V>
{
public TreeMap<Long, TreeMap<Long, V> > map;
private V default_value;
protected lon... |
// Template Source: IBaseEntityWithReferenceRequestBuilder.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ---------------... |
package LCTlang.CustomJava;
public class LCTFunctionReturnException extends RuntimeException {
public LCTFunctionReturnException(String errorMsg, Value returnValue) {
super(errorMsg, returnValue);
}
} |
/*
* Copyright 2020-2022 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... |
//| Copyright - The University of Edinburgh 2011 |
//| |
//| Licensed under the Apache License, Version 2.0 (the "License"); |
//| you may not use this file except in compliance with the License. |
//| You ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.