text stringlengths 7 1.01M |
|---|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.12
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* -----------------------------... |
package com.atguigu.gmall.order.feign;
import com.atguigu.gmall.oms.api.GmallOmsApi;
public interface GmallOmsClient extends GmallOmsApi {
}
|
package com.savor.savorphone.interfaces;
public interface HotspotNotifiImp {
public void onNotify();
}
|
package com.trilead.ssh2.signature;
import com.trilead.ssh2.crypto.PEMDecoder;
import org.apache.commons.io.IOUtils;
import org.junit.Test;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.security.GeneralSecurityException;
import java.security.KeyPair;
import java.security.SecureRand... |
/*
* Copyright © 2014 - 2018 Leipzig University (Database Research Group)
*
* 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
*
* Unles... |
package pers.huangyuhui.mediator_pattern.mediator_pattern_2;
/**
* @project: design-patterns
* @description: 抽象中介者类
* @author: 黄宇辉
* @date: 10/10/2019-12:49 PM
* @version: 1.0
* @website: https://yubuntu0109.github.io/
*/
public abstract class Mediator {
public abstract void componentChanged(Component compo... |
package org.pac4j.core.util;
import org.apache.shiro.subject.SimplePrincipalCollection;
import org.junit.Test;
import org.pac4j.core.exception.TechnicalException;
import org.pac4j.core.profile.CommonProfile;
import java.util.ArrayList;
import static org.junit.Assert.*;
/**
* Tests {@link JavaSerializationHelper}.
... |
package com.baeldung.hibernate.onetoone;
import com.baeldung.hibernate.onetoone.sharedkeybased.Address;
import com.baeldung.hibernate.onetoone.sharedkeybased.User;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org... |
/*
* Copyright 2018-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
package com.alipay.api.request;
import com.alipay.api.domain.AntMerchantExpandShopConsultModel;
import java.util.Map;
import com.alipay.api.AlipayRequest;
import com.alipay.api.internal.util.AlipayHashMap;
import com.alipay.api.response.AntMerchantExpandShopConsultResponse;
import com.alipay.api.AlipayObject;... |
/*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... |
/*
* Copyright 2014-2015 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... |
package labyrinth;
import org.junit.Assert;
import org.junit.Test;
public class MazeGeneratorTest {
private static final int ALMOST_NO_WALLS_RATIO = Integer.MAX_VALUE;
private static final int ONLY_WALL_RATIO = 1;
private static final int DUMMY_RATIO = 2;
private static final int INVALID_RATIO = 0;
pri... |
package eus.urbieta.datamanagement;
public class Word {
private long _id;
private String _word;
private String _definition;
public Word(long _id, String _word, String _definition) {
this._id = _id;
this._word = _word;
this._definition = _definition;
}
public long get... |
/*
* Copyright © 2019, Ashish Bailkeri. All rights reserved.
*
* 1. Redistribution in source and in binary forms is permitted
* under the condition that credit is given to the creator of the software.
*
* 2. Any person(s) who have use this code must have this
* license present in their code.
*
* 3. The name of... |
/**********************************************************************
Copyright (c) 2003 Mike Martin 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
http... |
/*
* Copyright 2018 prasenjit-net
*
* 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 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
/*
* 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... |
/**
*/
package br.unicamp.ic.mo631.Graphql.model.Graphql.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
/**
* This is the item provi... |
package com.company.Models;
import com.company.Services.Shopping_list;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class Cart implements Shopping_list {
// Instance Variables
private double total;
private final List<Items> items;
... |
package com.sap.mlt.xliff12.api.element.inline;
import com.sap.mlt.xliff12.api.attribute.Clone;
import com.sap.mlt.xliff12.api.attribute.CtypeDelim;
import com.sap.mlt.xliff12.api.attribute.EquivText;
import com.sap.mlt.xliff12.api.attribute.Id;
import com.sap.mlt.xliff12.api.attribute.Rid;
import com.sap.mlt.x... |
package fun.bookish.blueberry.sip.utils;
import fun.bookish.blueberry.sip.digest.MessageDigestTypeEnum;
import javax.sip.SipFactory;
import javax.sip.header.WWWAuthenticateHeader;
import java.util.Date;
import java.util.Random;
/**
* sip header工具类
*/
public class SipHeaderUtils {
private SipHeaderUtils() {
... |
package com.reactnativenavigation.controllers;
import android.app.Activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.KeyEvent;
public class ActivityCallbacks {
public void onActivityCreated(Activity activity, Bundle savedInstan... |
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.startapp.android.publish.ads.video.tracking;
import com.startapp.android.publish.ads.video.c.a.a.c;
import com.startapp.android.publish.ads.vi... |
package com.github.afezeria.freedao.runtime.classic;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 标记值自动生成的字段
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface A... |
package com.shtaigaway.moodmuse.tracking;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.util.Log;
import com.shtaigaway.moodmuse.Constants;... |
/**
* Copyright 2016 Nikita Koksharov
*
* 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 basicGame;
public class Processor {
char[] word; //The word to be played with.
boolean[] guessed; //Auxiliary array that keeps track of the letters guessed so far
int remainingLetters; //Counter for the remaining characters to be guessed
int wrongGuesses = 0; //Counter for the guesses
boolean isInWord;... |
/*
* 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 (c) 2000, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... |
/*
* Copyright 2013, Google Inc.
* 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 conditio... |
package com.qc.security.account.service;
import com.qc.base.PaginationResponse;
import com.qc.security.account.dto.Account;
import com.qc.security.account.exception.AccountExistException;
public interface AccountService {
Account getAccountByMobile(String mobile);
Account getAccountByToken(String token);
... |
package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* fetchPaymentCredentials接口风控信息。 Fraud data provided by Apple as outlined in separate Fraud SIA document, if applicable.
*
* @author auto create
* @since 1.0, 2020-02-20 19:41:04
*/
... |
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/*
* Copyright 2010-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... |
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
package io.spotnext.core.infrastructure.interceptor;
import io.spotnext.core.infrastructure.exception.ModelCreationException;
import io.spotnext.infrastructure.type.Item;
/**
* <p>ItemCreateInterceptor interface.</p>
*
* @author mojo2012
* @version 1.0
* @since 1.0
*/
public interface ItemCreateInterceptor<T ex... |
package lumien.randomthings.Items;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraftforge.common.util.EnumHelper;
import lumien.randomthings.RandomThings;
import lumien.randomthings.Configuration.ConfigItems;
public class ModItems
{
public stati... |
package org.basex.query.expr.constr;
import static org.basex.query.QueryText.*;
import org.basex.query.*;
import org.basex.query.expr.*;
import org.basex.query.iter.*;
import org.basex.query.value.item.*;
import org.basex.query.value.node.*;
import org.basex.query.value.seq.*;
import org.basex.query.value.type.*;
imp... |
/*
* Copyright (C) 2018 The Sylph 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 or ... |
/*
* 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.example.lwd18.pictureselecotor.textsearch;
import android.content.Intent;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.Im... |
/**
* Copyright (C) 2006-2021 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* Copyright 2014 PubNative GmbH
*
* 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, publish... |
/**
* Copyright 2014
* SMEdit https://github.com/StarMade/SMEdit
* SMTools https://github.com/StarMade/SMTools
*
* 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.... |
package com.microsoft.kiota.serialization;
import javax.annotation.Nonnull;
/** Defines the contract for a factory that creates SerializationWriter instances. */
public interface SerializationWriterFactory {
/**
* Gets the content type this factory creates serialization writers for.
* @return the content... |
/*
* 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.tomaschlapek.portfolio;
import android.app.Application;
import com.squareup.leakcanary.LeakCanary;
import timber.log.Timber;
import timber.log.Timber.DebugTree;
public class AndroidApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// initiate... |
package game.item;
import util.BmpRes;
import game.entity.Entity;
public class DefendBullet extends Bullet{
private static final long serialVersionUID=1844677L;
static BmpRes bmp=new BmpRes("Item/DefendBullet");
public BmpRes getBmp(){return bmp;}
public int maxAmount(){return 999;}
@Override
public double atta... |
/*
* 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 applica... |
package enginecrafter77.survivalinc.season;
import net.minecraft.client.Minecraft;
import net.minecraft.client.multiplayer.WorldClient;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.world.DimensionType;
impor... |
package io.mercury.transport.zmq.exception;
public final class ZmqBindException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -4110788670578471831L;
public ZmqBindException(String addr) {
super("Unable to bind -> " + addr);
}
}
|
//
// Decompiled by Procyon v0.5.36
//
package pro.streem.ar.schemas.sceneform;
import pro.streem.flatbuffers.FlatBufferBuilder;
import java.nio.ByteOrder;
import java.nio.ByteBuffer;
import pro.streem.flatbuffers.Table;
public final class MaterialDef extends Table
{
public static MaterialDef getRootAsMaterial... |
/*
* This source file is part of Cube.
*
* The MIT License (MIT)
*
* Copyright (c) 2020-2021 Shixin Cube Team.
*
* 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, ... |
/*
* Copyright 2017-present Open Networking Foundation
*
* 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... |
package eosio.java;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import ... |
/**
* Copyright 2010 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 ... |
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... |
package com.cryptobuddy.ryanbridges.cryptobuddy;
import android.view.View;
/**
* Created by Ryan on 8/13/2017.
*/
public interface CustomItemClickListener {
void onItemClick(int position, View v);
}
|
package me.piebridge.brevent.ui;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.AsyncTask;
/**
* Created by thom on 2017/1/25.
*/
public class AppsIconTask extends AsyncTask<Object, Void, AppsItemViewHolder> {
@Override
protected AppsItemViewHolder doInBackground... |
package demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
... |
/*******************************************************************************
* Copyright 2011 See AUTHORS file.
*
* 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.a... |
/*
* Copyright 2010-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 "lice... |
import java.util.Scanner;
public class Subsequences_Iteratively {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
String str=s.next();
System.out.println(str);
for(int i=0;i<str.length();i++) {
for(int j=i+1;j<=str.length();j++) {
System.out.println(str.substr... |
/**
* Copyright © 2019 Apache IoTDB(incubating) (dev@iotdb.apache.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
... |
package com.codepath.apps.restclienttemplate.models;
import androidx.room.Embedded;
import java.util.ArrayList;
import java.util.List;
public class TweetWithUser {
@Embedded
User user;
@Embedded(prefix = "tweet_")
Tweet tweet;
public static List<Tweet> getTweetList(List<TweetWithUser> tweetWit... |
package mekanism.common.recipe.serializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
import javax.annotation.Nonnull;
import mekanism.api.JsonConstants;
import mekanism.api.SerializerHelper;
import mekanism.api.chemical.gas.GasStack;
import mekan... |
package de.lukweb.timetablebot.telegram.communication;
import de.lukweb.timetablebot.BotModule;
import de.lukweb.timetablebot.telegram.callbacks.CallbackQueryHandler;
import de.lukweb.timetablebot.telegram.commands.TelegramCommand;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public ... |
package com.plushnode.atlacore.command;
import com.plushnode.atlacore.game.Game;
import com.plushnode.atlacore.game.ability.AbilityDescription;
import com.plushnode.atlacore.platform.Player;
import com.plushnode.atlacore.util.ChatColor;
public class PresetCommand implements CoreCommand {
private String[] aliases ... |
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class Challenge2Test {
@Test
void filterByPrimeNumbers_given_an_empty_array() {
Integer[] given = new Integer[0];
Integer[] shouldReturn = new Integer[0];
Integer[] result = Challenge2.filterByPrimeN... |
/*
* Copyright (c) 2014 Kevin Sawicki <kevinsawicki@gmail.com>
*
* 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, c... |
package com.atguigu.gulimall.ware.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.UndoLogEntity;
import java.util.Map;
/**
*
*
* @author hh
* @email 55333@qq.com
* @date 2022-04-08 20:19:11
*/
public interf... |
package com.learning.spring.workshop.boot.mvc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class WebMVCRequestMappingApplication {
public static void main(String[] args) {
SpringApplication.run(WebMV... |
package stroom.config.global.impl;
import com.google.inject.AbstractModule;
import stroom.config.global.api.FetchGlobalConfigAction;
import stroom.config.global.api.ListGlobalConfigAction;
import stroom.config.global.api.UpdateGlobalConfigAction;
import stroom.task.api.TaskHandlerBinder;
public class GlobalConfigModu... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security;
import com.azure.core.util.Context;
/** Samples for RegulatoryComplianceStandards Get. */
public final class Regulato... |
package org.pudding.listeners;
import net.dv8tion.jda.api.events.message.priv.PrivateMessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import javax.annotation.Nonnull;
public class PrivateMessageReceived extends ListenerAdapter {
@Override
public void onPrivateMessageReceived(@Nonnull P... |
/**
* 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.camunda.ui.TaskList;
import org.apache.ibatis.logging.LogFactory;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.camunda.bpm.extension.process_test_coverage.junit.rules.TestCoverageProcessEngineRuleBuilder;
import org.camunda.bpm.engi... |
// Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
package com.liquidlabs.vso;
import static org.junit.Assert.*;
import java.util.concurrent.Executors;
import com.liquidlabs.common.NetworkUtils;
import org.jmock.Expectations;
import org.jmock.Mockery;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.liquidlabs.orm.Id;
import com.li... |
package de.dosmike.sponge.lockette;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.Base64;
import java.util.HashMap;
import java.util.List;
import j... |
package com.sodino.titlebar.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.sodino.titlebar.R;
import com.sodino.titlebar.activity.BaseActivity;
/**
* Created by Administrator on 2017/4/6.
*/
public class ContactFragment e... |
package algorithm;
import com.jme3.math.Quaternion;
import javafx.geometry.Point3D;
import org.apache.commons.math3.stat.descriptive.rank.Percentile;
import java.util.Collections;
import java.util.List;
/**
* This class provides the methods for processing the measurements.
*/
public class DataProcessor {
/**
... |
package com.server.session;
import java.nio.ByteBuffer;
public interface BasicSession {
void init(int bufferSize, long timeout, int port);
boolean hasData();
void writeWithFlip(ByteBuffer buffer);
String getBufferAsString();
void flashTo(ByteBuffer target);
int getPort();
}
|
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... |
package module0514_public.a;
import java.awt.datatransfer.*;
import java.beans.beancontext.*;
import java.io.*;
/**
* 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 dol... |
package com.java110.web.smo.app.impl;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.constant.PrivilegeCodeConstant;
import com.java110.common.constant.ServiceConstant;
import com.java110.common.util.Assert;
import org.springframework.web.client.RestTemplate;
import com.java110.core.context.IPageDat... |
// Copyright 2018 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
//... |
/*
* 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 a... |
/*
* Copyright (C) 2018 AlexMofer
*
* 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 ... |
// Write a method to replace all spaces in a string with a "%20"
import java.io.*;
import java.util.*;
public class Solution
{
public static String replaceString(String input)
{
String edited = input.replaceAll(" ","%20");
return edited;
}
public static void main(String[] args)
{
input = "Hi there"
Str... |
package com.plaid.client.response.paymentinitiation;
import com.plaid.client.model.paymentinitiation.Amount;
import com.plaid.client.model.paymentinitiation.Bacs;
import com.plaid.client.model.paymentinitiation.RefundDetails;
import com.plaid.client.model.paymentinitiation.Schedule;
import com.plaid.client.response.Ba... |
/*
* Copyright 2014 NAVER Corp.
*
* 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 com.carson.commands.main.tic;
public class Tac {
//0 is blank
//1 is user
//2 is AI
private Board b = new Board();
public Tac() {
}
public String start(int turn) {
if(turn == -1) {
move();
}
return b.printBoard();
}
public String moveNext(int turn) {
if(b... |
//
// 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: 2015.12.... |
package sqltoregex.controller;
import org.jgrapht.graph.DefaultWeightedEdge;
import org.jgrapht.graph.SimpleGraph;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.xml.sax.SAXException;
import sqltoregex.settings.SettingsManager;
import sqltoregex.settings.SettingsOption;
import s... |
/* 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
* di... |
package com.blockvader.wtimprovements.init;
import com.blockvader.wtimprovements.WTImprovements;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Effects;
import net.minecraft.potion.Potion;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.RegistryEvent;
import net.mi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.