text stringlengths 7 995k |
|---|
package cn.dev33.satoken.servlet.model;
import jakarta.servlet.http.HttpServletRequest;
import cn.dev33.satoken.context.model.SaStorage;
/**
* Storage for Servlet
* @author kong
*
*/
public class SaStorageForServlet implements SaStorage {
/**
* 底层Request对象
*/
protected HttpServletRequest request;
/**
... |
/*
* Copyright (c) 2002-2019 Gargoyle Software 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 ... |
package com.melancholiclabs.eleganterowid;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.SearchView;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import... |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2015-present Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/*
* Copyright 2018 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... |
package com.team.finance.controller;
import com.team.finance.entity.FmShareholderPayment;
import com.team.finance.service.FmShareholderPaymentService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... |
/*
* CTS2 based Terminology Server and Terminology Browser
* Copyright (C) 2014 FH Dortmund: Peter Haas, Robert Muetzner
*
* 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... |
package com.epam.brest.courses.web_app;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.requ... |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... |
package com.yffd.easy.bcap.workflow.service;
import org.activiti.engine.runtime.ProcessInstance;
/**
* @Description 简单描述该类的功能(可选).
* @Date 2018年7月24日 下午2:40:37 <br/>
* @author zhangST
* @version 1.0
* @since JDK 1.7+
* @see
*/
public class WfTaskService extends WfBaseService {
public String s... |
/*
* ====================================================================
* 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
... |
package edu.iu.sahad.rotation3;
import edu.iu.harp.partition.Partition;
import edu.iu.harp.partition.Table;
import edu.iu.harp.resource.IntArray;
import edu.iu.harp.schdynamic.Task;
import java.util.HashMap;
import java.util.Map;
/*
* 20160525
* change a little big.
* From going through graphdata to going through... |
package com.stivenramireza.bank;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class UserMicroserviceApplicationTests {
@Test
void contextLoads() {
}
} |
/*
* Copyright (C) Red Gate Software Ltd 2010-2022
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/*******************************************************************************
* Copyright: (c) 2013 Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Except as contained in the ... |
/**
* Copyright © 2015 Christian Wulf, Nelson Tavares de Sousa (http://teetime-framework.github.io)
*
* 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/licens... |
/**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 营销位内容
*
* @author auto create
* @since 1.0, 2017-12-06 11:22:08
*/
public class TopicItem extends AlipayObject {
private static final long serialVersionUID = 7683153794612497839L;
/**
*... |
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2017 iText Group NV
Authors: Bruno Lowagie, Paulo Soares, et al.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free... |
package com.kotlinreactnativeapp;
import com.facebook.react.ReactActivity;
public class MainActivity extends ReactActivity {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
protected String getMainComponentNam... |
package us.ihmc.utilities.ros;
import test_rosmaster.AddTwoIntsRequest;
import test_rosmaster.AddTwoInts;
import test_rosmaster.AddTwoIntsResponse;
public class AddTwoIntsClient extends RosServiceClient<AddTwoIntsRequest, AddTwoIntsResponse>
{
public AddTwoIntsClient()
{
super(AddTwoInts._TYPE);
}
... |
/*
* UWGraph.java
* Author: Nicholas Kawwas
* Completed: November, 2018
* Purpose: Unweighted Graph Implementation
*/
import java.util.Stack;
public class UWGraph {
protected int nVerts;
protected int[][] adjMat;
protected Vertex[] vertexList;
protected Stack<Integer> stacked;
protected final int MAX_VERTS =... |
/*
* 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 controllers.example;
//
//import play.mvc.*;
//
//import views.html.*;
//
///**
// * This controller contains an action to handle HTTP requests
// * to the application's home page.
// */
//public class HomeController extends Controller {
//
// /**
// * An action that renders an HTML page with a welcome... |
package org.aoju.bus.gitlab.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.aoju.bus.gitlab.utils.JacksonJson;
import java.util.Date;
public class SshKey {
private Integer id;
private String title;
private String key;
private Date createdAt;
private Integer userId;
p... |
package io.deephaven.db.v2.tuples.generated;
import io.deephaven.datastructures.util.SmartKey;
import io.deephaven.db.util.BooleanUtils;
import io.deephaven.db.util.tuples.generated.LongByteCharTuple;
import io.deephaven.db.v2.sources.ColumnSource;
import io.deephaven.db.v2.sources.WritableSource;
import io.deephaven.... |
/**
* 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 seedu.address.commons.util;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
public class MD5UtilTest {
public static final String TEST_STRING = "MY_WAY_OR_THE HIGHWAY>>>>> ?4";
public static final String HEX_OF_TEST_STRING = "4d595f5741595f4f525f544845... |
package com.smsince2019.lottopicker;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public... |
package org.easydto;
import org.easydto.domain.Person;
import org.easydto.proxy.Dto;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
public class ConversionTest {
@Test
public void testSimpleStringProperty(){
Person person = new Person();
person.name("John Doe");
... |
/*
*
* * Copyright (C) 2018 Wanghaobin<463540703@qq.com>
*
* * AG-Enterprise 企业版源码
* * 郑重声明:
* * 如果你从其他途径获取到,请告知老A传播人,奖励1000。
* * 老A将追究授予人和传播人的法律责任!
*
* * This program is free software; you can redistribute it and/or modify
* * it under the terms of the GNU General Public License as published b... |
/**
* 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... |
/*
* blackduck-common
*
* Copyright (c) 2021 Synopsys, Inc.
*
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
*/
package com.synopsys.integration.blackduck.codelocation.signaturescanner;
import com.synopsys.integration.... |
/*
* Copyright 2007-2008 Dave Griffith
*
* 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 ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import... |
/*
* Copyright (C) 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
// Catalano Math Library
// The Catalano Framework
//
// Copyright © Diego Catalano, 2012-2016
// diego.catalano at live.com
//
//
// 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 Foundati... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.05.... |
package com.intellij.remoteServer.util;
/**
* @author michael.golubev
*/
public interface DeploymentNameConfiguration {
boolean isDefaultDeploymentName();
String getDeploymentName();
void setDefaultDeploymentName(boolean defaultContextRoot);
void setDeploymentName(String contextRoot);
} |
/*
* Copyright © 2011-2012 Philipp Eichhorn
*
* 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,... |
/*
* 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 student;
import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;
import java.... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.0... |
package com.actuate.restapi.commons;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java... |
package org.neonsis.picshare.rest.erromapper;
import org.neonsis.picshare.exception.AccessForbiddenException;
import org.neonsis.picshare.rest.model.ErrorMessageREST;
import javax.enterprise.context.ApplicationScoped;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.Exceptio... |
/*
* Copyright 2016 jeasonlzy(廖子尧)
*
* 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 dev.dougman.springflash.templates;
import dev.dougman.springflash.enums.Search;
import java.util.Map;
public class RepositoryTemplate implements Template {
@Override
public String get(Map<Search, String> map) {
return """
package %1$s;
import org.springframework.data.jpa.repository.JpaReposi... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.example.reactnativewashim;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient... |
package com.google.sitebricks.stat;
import com.google.common.base.Objects;
/**
* A {@link StatDescriptor} encapsulates the information required to publish
* a stat.
*
* @author dhanji@gmail.com (Dhanji R. Prasanna)
*/
public final class StatDescriptor {
private final String name;
private final String descrip... |
package com.wix.pagedcontacts.contacts;
import android.content.Context;
import android.database.Cursor;
import android.provider.ContactsContract;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableArray;
import com.wix.pagedcontacts.contacts.Items.Contact;
import com.wix.pagedcontact... |
package cc.mrbird.febs.upload.entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
/**
* @author lizf
* @date 2018-12-27
*/
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RStatus implements EnumMessage {
SUCCESS(200, "请求成功"),
INTERNAL_SERVER_ERROR(500, "服务器异... |
import java.util.*;
import java.io.*;
import java.math.BigInteger;
import java.text.*;
public class gcjq2 {
static long mod = (long)1e9 + 7;
static long mod1 = 998244353;
static boolean fileIO = true;
static FastScanner f;
static PrintWriter pw = new PrintWriter(System.out);
static Scanner S = n... |
package com.ibm.watson.apis.conversation_with_discovery.discovery;
import java.io.IOException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com.ibm.watson.apis.conversation_with_discovery.rest.ProxyResource;
import okhttp3.Interceptor;
import okhttp3.Request;
import okh... |
/*
* Copyright (c) 2013 Menny Even-Danan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
package com.stylefeng.guns.rest.modular.cinema;
import com.alibaba.dubbo.config.annotation.Reference;
import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.api.cinema.CinemaAPI;
import com.stylefeng.guns.api.cinema.CinemaRqVo;
import com.stylefeng.guns.api.cinema.ConditionRqVo;
import com.stylefeng.g... |
/*
* Created on Oct 25, 2006
*
*/
package org.openqa.selenium.server.browserlaunchers;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.browserlaunchers.BrowserLauncher;
import org.openqa.selenium.server.DefaultRemoteCommand;
import org.openqa.selenium.server.RemoteCommand;
import org.openqa.sele... |
package com.github.seratch.jslack.api.methods.response.channels;
import com.github.seratch.jslack.api.methods.SlackApiResponse;
public class ChannelsSetTopicResponse implements SlackApiResponse {
private boolean ok;
private String warning;
private String error;
private String needed;
private Stri... |
/*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... |
package com.freddy.sample.mpesa;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;... |
/**
* 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 m... |
/*
* Copyright (c) 2010-2017 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.web.component.wf;
import com.evolveum.midpoint.gui.api.component.BasePanel;
import com.evolveum.mi... |
/*
* 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 2018-present Red Brick Lane Marketing Solutions Pvt. 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... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
package org.apidb.eupathsitecommon.watar.pages;
import org.openqa.selenium.WebDriver;
public abstract class AjaxPage extends Page {
public AjaxPage(WebDriver driver) {
super(driver);
}
public abstract void waitForPageToLoad();
} |
package boxrenderer.xhtml;
import java.awt.Paint;
import boxrenderer.Box;
public class BackgroundColorCssStyle extends AbstractCssStyle {
@Override
public void style(Box box) {
Paint paint = Colors.getPaint(this.getProperty().getValue());
box.setBackground(paint);
}
} |
/**
* 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.eventgrid.v2019_06_01.implementation;
import com... |
/*
* Copyright 2012-2013 E.Hooijmeijer
*
* 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 (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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/li... |
package org.soaringforecast.rasp.dagger;
import org.soaringforecast.rasp.about.AboutActivity;
import org.soaringforecast.rasp.about.AboutFragment;
import org.soaringforecast.rasp.airport.AirportActivity;
import org.soaringforecast.rasp.airport.airportweather.AirportMetarTafFragment;
import org.soaringforecast.rasp.air... |
package com.thebuyback.eve.repository;
import java.util.List;
import java.util.Set;
import com.thebuyback.eve.domain.ItemBuybackRate;
import com.thebuyback.eve.domain.TypeBuybackRate;
import com.thebuyback.eve.domain.TypeIngredients;
import com.thebuyback.eve.domain.enumeration.TypeCategory;
import org.springframewo... |
package org.firstinspires.ftc.teamcode.subsystems;
import android.util.Log;
import com.ftc12835.library.hardware.management.Subsystem;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import java.util.ArrayList;
import java.util.List;
public class Robot {
public static final String TAG = "Robot";
priv... |
package com.mafgwo.common.distributed.lock.core.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author chenxiaoqi
* @since 2019/07/29
*/
@Target(value = {ElementType.PARAMETER, Elemen... |
package com.example.oc.coolweather;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void o... |
/*
* 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 me.monaparty.api;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
public class GetBroadcastsResult {
private Long tx_index;
private String tx_hash;
private Long block_index;
private String source;
private Long timestamp;
private Double value;
private Long fee_fracti... |
import javax.jms.*;
/**
* @author Kir
* Created on 03.01.2021
*/
public class Producer {
private final MessageProducer producer;
private final Session session;
private final Connection con;
public Producer() throws JMSException {
ConnectionFactory factory = JmsProvider.getConnectionFactory... |
/**
* 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.ydky.network.http;
import com.ydky.module.recommand.BaseRecommandModel;
import com.ydky.constant.HttpConstants;
import com.ydky.vuandroidadsdk.okhttp.CommonOkHttpClient;
import com.ydky.vuandroidadsdk.okhttp.listener.DisposeDataHandle;
import com.ydky.vuandroidadsdk.okhttp.listener.DisposeDataListener;
imp... |
/* -----------------------------------------------------------------------------
* XmlDisplayer.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.2
* Produced : Thu Jan 05 18:57:59 CET 2017
*
* ------------------------------------------... |
package com.example.suche.travelify.Loaders;
import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;
import com.example.suche.travelify.Model.Details;
import com.example.suche.travelify.Networking.QueryUtils;
import com.example.suche.travelify.Networking.UrlUtils;
import java.util.List;
/... |
/*
* Copyright 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 "license" ... |
// Copyright 2000-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 file.
package com.intellij.openapi.wm.impl;
import java.awt.*;
import java.awt.event.ContainerEvent;
import java.awt.event.ContainerListener;
/**
* @author Anton Katilin
* @author V... |
/**
* **************************************************************
* 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 *... |
/*
* Copyright 2015 zua.
*
* 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 wri... |
/*
* BufferSaveRequest.java - I/O request
* :tabSize=8:indentSize=8:noTabs=false:
* :folding=explicit:collapseFolds=1:
*
* Copyright (C) 2000, 2005 Slava Pestov
*
* 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 ... |
package com.intellij.plugins.thrift;
import org.jetbrains.annotations.PropertyKey;
import com.intellij.AbstractBundle;
/**
* Created by fkorotkov.
*/
public class ThriftBundle extends AbstractBundle
{
private static final String BUNDLE = "com.intellij.plugins.thrift.ThriftBundle";
private static final ThriftBund... |
/*
* 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 n... |
/*
* Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
class Solution {
public String XXX(String a, String b) {
int val = 0;
StringBuilder sum = new StringBuilder();
int i = a.length()-1, j = b.length()-1;
while(i>=0 || j>=0 || val!=0){
val += i >= 0 ? a.charAt(i--) - '0' : 0;
val += j >= 0 ? b.charAt(j--) - '0' :... |
package net.corda.training.flow;
import co.paralleluniverse.fibers.Suspendable;
import net.corda.core.contracts.Amount;
import net.corda.core.flows.*;
import net.corda.core.identity.Party;
import net.corda.core.transactions.SignedTransaction;
import net.corda.core.utilities.OpaqueBytes;
import net.corda.finance.contra... |
package de.uni_hildesheim.sse.monitoring.runtime.recordingStrategiesElements;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import de.uni_hildesheim.sse.codeEraser.annotations.Variability;
import de.uni_hildesheim.sse.monitoring.runtime.AnnotationConstants;
import de.uni... |
package fallk.tuples;
import java.util.Iterator;
import java.util.Arrays;
import java.util.stream.Stream;
import fallk.tuples.values.IValue0;
import fallk.tuples.values.IValue1;
import fallk.tuples.values.IValue2;
import fallk.tuples.values.IValue3;
import fallk.tuples.values.IValue4;
import fallk.tuples.values.IValu... |
package com.aamatucci.sortvisualizerfx.sorting;
public class SortingAlgorithmFactory {
public static SortAlgorithm getAlgorithm(Algorithm algorithm){
SortAlgorithm sortAlgorithm = null;
switch (algorithm){
case quickSort:
sortAlgorithm = new QuickSort();
... |
package com.alibaba.tdata.aisp.server.controller.param;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.tdata.aisp.server.common.constant.AnalyseTaskStatusEnum;
import com.alibaba.tdata.aisp.server.common.constant.AnalyseTaskTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.D... |
package com.splitter.eurekaserver;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class EurekaServerApplicationTests {
@Test
void contextLoads() {
}
} |
package com.payne.leetCode.contest;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class DW_18 {
/**
* 双周赛18
*/
public int[] arrayRankTransform(int[] arr) {
int[] copy = new int[arr.length];
for (int i = 0; i < arr.length; i++) {
copy[i]... |
package org.infinispan.hibernate.search.sharedIndex;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.hibernate.search.annotations.Analyze;
import org.hibernate.search.annotations.Field;
@Entity
public abstract class De... |
package com.modinfodesigns.pipeline.search;
import com.modinfodesigns.app.ApplicationManager;
import com.modinfodesigns.pipeline.source.IDataObjectSource;
import com.modinfodesigns.pipeline.process.IDataObjectProcessor;
import com.modinfodesigns.search.IFinderIndexFeeder;
import com.modinfodesigns.pipeline.process.Da... |
package com.scheduler.TaskScheduler.Util;
import com.scheduler.TaskScheduler.Model.Task;
import java.util.Comparator;
public class TaskIdComparator implements Comparator<Task> {
@Override
public int compare(Task o1, Task o2) {
return (int)(o1.getId() - o2.getId());
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.