text stringlengths 7 995k |
|---|
package com.mapswithme.maps.location;
import android.content.Context;
import androidx.annotation.NonNull;
public class LocationProviderFactory
{
public static boolean isGoogleLocationAvailable(@NonNull @SuppressWarnings("unused") Context context)
{
return false;
}
public static BaseLocationProvider getP... |
package edu.first.team2903.robot.subsystems;
import edu.first.team2903.robot.RobotMap;
import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.Victor;
import edu.wpi.first.wpilibj.command.Subsystem;
public class Shooter extends Subsystem {
public Victor shooterWheel = new Victor(RobotMap.shooterWheel);
... |
package org.rumbledb.runtime.typing;
import org.rumbledb.api.Item;
import org.rumbledb.context.DynamicContext;
import org.rumbledb.exceptions.ExceptionMetadata;
import org.rumbledb.exceptions.MoreThanOneItemException;
import org.rumbledb.exceptions.OurBadException;
import org.rumbledb.exceptions.UnexpectedTypeExceptio... |
package com.soulostar.sqlite;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.util.Properties;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import or... |
package com.radish.master.service;
import com.cnpc.framework.base.pojo.Result;
import com.cnpc.framework.base.service.BaseService;
import com.radish.master.entity.Project;
import com.radish.master.entity.*;
import com.radish.master.pojo.Options;
import java.util.List;
public interface StockService extends BaseServ... |
/*
* This file was automatically generated by EvoSuite
* Wed Dec 16 17:01:02 GMT 2015
*/
package org.jsecurity.authc;
import static org.junit.Assert.*;
import org.junit.Test;
import java.net.Inet4Address;
import java.net.InetAddress;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParam... |
package org.qi4j.lib.swing.binding.example;
import org.qi4j.api.value.ValueComposite;
public interface CountryValue extends Country, ValueComposite
{
} |
/*
* Copyright 2013-2018 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... |
package lazecoding.unique.service;
import lazecoding.unique.exception.IllegalParamException;
import lazecoding.unique.exception.NilNameSpaceException;
import lazecoding.unique.mapper.UniqueRecordMapper;
import lazecoding.unique.model.NameSpace;
import lazecoding.unique.model.UniqueRecord;
import org.slf4j.Logger;
impo... |
package com.teamproject.plastikproject.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.teamproject.plastikproject.R;
import com.teamproject.plastikproje... |
/*
* Copyright 2016 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, softw... |
import java.io.Serializable;
/**
* Created by Radu on 3/25/16.
*/
public class Person implements Serializable {
private String firstName;
private String lastName;
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName... |
/*
* 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 pokecube.core.ai.tasks.misc;
import com.google.common.collect.ImmutableMap;
import net.minecraft.entity.MobEntity;
import net.minecraft.tags.FluidTags;
import net.minecraft.world.server.ServerWorld;
import pokecube.core.ai.brain.RootTask;
import pokecube.core.interfaces.IPokemob;
public class SwimTask extend... |
package cz.dsw.actuator_examples.example04;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.B... |
package br.org.mcord.alpr4j;
import java.util.Arrays;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializ... |
/*
* Copyright 2014 Devmil Solutions
*
* 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.github.scribejava.apis;
import com.github.scribejava.apis.facebook.FacebookAccessTokenJsonExtractor;
import com.github.scribejava.core.builder.api.DefaultApi20;
import com.github.scribejava.core.extractors.TokenExtractor;
import com.github.scribejava.core.model.OAuth2AccessToken;
import com.github.scribeja... |
/*
* Copyright 2019 Martin Conrad
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or ... |
package io.github.pureza.happynews.command;
import io.github.pureza.happynews.newsgroup.Newsgroup;
import io.github.pureza.happynews.server.NNTPServer;
import io.github.pureza.happynews.user.User;
import java.io.IOException;
/**
* GROUP Command
*
* Allows the user to enter a newsgroup
* The output looks like thi... |
package com.speryans.saldobus.framework.classes;
import com.speryans.saldobus.framework.rpc.json.me.JSONException;
import com.speryans.saldobus.framework.rpc.json.me.JSONObject;
import com.speryans.saldobus.framework.tools.Log;
public class KeySaver {
KeySaver() {}
public static void setKey( String key, String ... |
/**
* Copyright 2013 52°North Initiative for Geospatial Open Source Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
/*
* 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 com.riftrunners.fancyhangmanweb.controller;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
/... |
package pokecube.core.handlers.events;
import java.util.List;
import java.util.Map;
import com.google.common.collect.Maps;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.FarmlandBlock;
import net.minecraft.block.FlowingFluidBlock... |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.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/licenses/LICENSE-2.0
*
* Unless requ... |
package xzf.community.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.sp... |
package com.cisco.axl.api._8;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for GetInterClusterServiceProfileRes complex type.
*
* <p>The following schema... |
/*
* 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 ... |
import java.io.*;
/**
This program uses the RandomAccessFile class to open
the file Letters.dat and randomly read letters from
different locations.
*/
public class ReadRandomLetters
{
public static void main(String[] args) throws IOException
{
final int CHAR_SIZE = 2;// 2 byte characters
lo... |
/*
* This file was autogenerated by the GPUdb schema processor.
*
* DO NOT EDIT DIRECTLY.
*/
package com.gpudb.protocol;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.avro.Schema;
import org.apache.avro.SchemaBuilder;
import org.apache.avro.generic.GenericData;
import org.apache.avro.g... |
package com.udacity.stage2.popularmoviess2.fragment;
import android.content.Context;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.view.LayoutInflater;
import... |
/**
* Code to validate basic elements of Pending Listings.
*/
package gov.healthit.chpl.validation.pendingListing.reviewer; |
package com.flicklib.service.movie.imdb;
import com.google.gson.annotations.SerializedName;
class ImdbApiMovie{
@SerializedName("ID")
public String id;
@SerializedName("Title")
public String title;
@SerializedName("Rating")
public String rating;
@SerializedName("Votes")
public Integer votes;
@Seria... |
package stringalore.fun;
import com.google.common.base.Optional;
public interface FunMap<K,V> {
/**
* A functional implementation of a map from K to Optional<V>
*
* It can be implemented with a simple Map<K,V> which does not return but Absent.
*
* @param key
* @return an Option(value) or Absent
*/... |
/*
* 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")... |
/*
* Copyright 2015 Henrik Olsson
*
* 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... |
/**
* Provides classes for querying mail related DNS records.
*/
package mireka.transmission.immediate.dns; |
package org.firstinspires.ftc.teamcode.old;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.util.ElapsedTime;
public class AutoMovement {
private final LinearOpMode op... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
//,temp,TestIntegration.java,140,156,temp,TestIntegration.java,94,109
//,3
public class xxx {
private void caseSingleFileMissingTarget(boolean sync) {
try {
addEntries(listFile, "singlefile1/file1");
createFiles("singlefile1/file1");
runTest(listFile, target, false, sync);
checkResult(t... |
package elaborato_ing_sw.view;
import java.util.ArrayList;
import java.util.function.Predicate;
import elaborato_ing_sw.dataManager.FidelityCardDaoImpl;
import elaborato_ing_sw.dataManager.ProductDaoImpl;
import elaborato_ing_sw.dataManager.ShoppingCartDaoImpl;
import elaborato_ing_sw.dataManager.UserDaoImpl;
import ... |
/*
* Translator Knowledge Beacon Aggregator API
* This is the Translator Knowledge Beacon Aggregator web service application programming interface (API) that provides integrated access to a pool of knowledge sources publishing concepts and relations through the Translator Knowledge Beacon API. This API is similar to ... |
/*
* Copyright 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 com.zavod.streams.sink;
import com.google.common.util.concurrent.AtomicLongMap;
import com.zavod.streams.SourceType;
import com.zavod.streams.entitity.StreamEntity;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.kafka.streams.KeyValue;
import org.apache.kafka.streams.kst... |
package org.javaturk.oofp.ch03.math.calculator2;
public interface MathFunction {
public String getName();
public double calculate(double arg);
} |
package com.ctrip.xpipe.redis.integratedtest.keeper.manul;
import com.ctrip.xpipe.api.cluster.LeaderElectorManager;
import com.ctrip.xpipe.redis.core.entity.KeeperMeta;
import com.ctrip.xpipe.redis.core.store.ReplicationStore;
import com.ctrip.xpipe.redis.integratedtest.keeper.AbstractKeeperIntegratedSingleDc;
import ... |
package com.industrial.common.core.domain.entity;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.*;
import com.industrial.common.annotation.Excel;
import com.industrial.common.annotation.Excels;
import com.industrial.common.xss.Xss;
import org.apache.commons.lang3.builder.ToStringBu... |
package binary;
import java.util.Scanner;
/**
* Demonstration of integer -> binary conversion.
* Constraints: 0 < n && n < 256.
*/
public class IntToBinary {
public static void main(String[] args)
{
final int[] table = {128, 64, 32, 16, 8, 4, 2, 1};
System.out.println("Enter integer below"... |
package ru.stqa.training.selenium.pageObjects.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
... |
/*
* 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 2016-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.brmuncey.shortcutcalculator.Helper;
import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import java.io.IOException;
import java.io.InputStream;
public class StateFetcher extends AppCompatActivity{
public String loadStateFromJson(Context context) {
try {
... |
package io.quarkus.kubernetes.deployment;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import io.dekorate.kubernetes.annotation.ImagePullPolicy;
import io.dekorate.kubernetes.annotation.ServiceType;
public interface PlatformConfiguration extends EnvVarHolder {
Optional<String> getPart... |
package com.crossoverjie.cim.client.init;
import com.crossoverjie.cim.client.handle.CIMClientHandle;
import com.crossoverjie.cim.common.protocol.CIMResponseProto;
import com.crossoverjie.cim.common.ssl.SecureChatSslContextFactory;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.n... |
package com.atguigu.gulimall.coupon.dao;
import com.atguigu.gulimall.coupon.entity.CouponEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 优惠券信息
*
* @author buelev
* @email 172319516@qq.com
* @date 2020-07-02 01:33:08
*/
@Mapper
public interface ... |
package com.example.crud_mvp.view;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.crud_mvp.R;
/**
* A simple {@link Fragment} s... |
package by.thmihnea.prophecymining.block;
import by.thmihnea.prophecymining.Settings;
import lombok.Getter;
import org.bukkit.Material;
import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Optional;
@Getter
public enum BlockExperience {
COAL(Material.COAL_ORE, Settings.COAL_START, Settings.... |
package net.epictimes.reddit.data.model.image.source;
public class Source {
private final String url;
public Source(String url) {
this.url = url;
}
public String getUrl() {
return url;
}
} |
/*******************************************************************************
* Copyright (c) 2020. Bytedance Inc.
*
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
**************************************************************************... |
package org.apache.archiva.consumers.core.repository;
/*
* 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 t... |
/*
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, 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/licenses/LICE... |
package com.zero.a;
public class DMyThread3Test {
public static void main(String[] args) {
MyThread3 t1 = new MyThread3("good!");
MyThread3 t2 = new MyThread3("nice!");
new Thread(t1).start();
new Thread(t2).start();
}
}
class MyThread3 implements Runnable {
priva... |
/*
* 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 2012,2013 Vaughn Vernon
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
* MIT License
*
* Copyright (c) 2021 MASES s.r.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, cop... |
/*
* Copyright (c) 2008-2019, 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 com.abdulfatir.jcomplexnumber;
/**
* <code>ComplexNumber</code> is a class which implements complex numbers in Java.
* It includes basic operations that can be performed on complex numbers such as,
* addition, subtraction, multiplication, conjugate, modulus and squaring.
* The data type for Complex Numbe... |
// Copyright 2018 The Bazel Authors. 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 by appl... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/tasks/v2beta2/cloudtasks.proto
package com.google.cloud.tasks.v2beta2;
/**
* <pre>
* Request message for forcing a task to run now using
* [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask].
* </pre>
*
* Protobuf type {@co... |
/* Copyright 2008, 2009, 2010 by the Oxford University Computing Laboratory
This file is part of HermiT.
HermiT is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License,... |
/*
* Copyright 2011 Stefan C. Mueller.
*
* 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 ag... |
package pl.sdacademy.domain.verification;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import pl.sdacademy.domain.authorization.AuthorizationFacade;
import pl.sdacademy.domain.shared.exceptions.NotFound404Exception;
import pl.sdacademy.domain.v... |
/*
* Copyright 1999-2021 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... |
/*
* Copyright (c) 2002-2017 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 jycessing.mode.export;
/**
*
* The architecture of the platform we're exporting to.
* (The "bits" field is necessary because the processing Library API uses magic integers for architecture.)
*
*/
public enum Arch {
X86(32), AMD64(64);
public final int bits;
Arch(int bits) {
this.bits = bits;
... |
package com.hustler.quote.ui.activities;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
i... |
/*
* This class was automatically generated with
* <a href="http://www.castor.org">Castor 1.4.1</a>, using an XML
* Schema.
* $Id$
*/
package org.springframework.oxm.castor;
/**
*
*
* @version $Revision$ $Date$
*/
@SuppressWarnings("serial")
public class Order implements java.io.Serializable {
privat... |
package no.nordli.eventadapter.example;
import no.nordli.eventadapter.Event;
import no.nordli.eventadapter.EventBus;
/**
* GitHubber
* Test class
* Created by Brynje Nordli on 06/09/16.
*/
class GitHubber implements Comparable<GitHubber>, Event {
private String email;
private Fanaticism githHubLevel;
... |
package com.exadel.etoolbox.backpack.core.services;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
public interface SessionService {
/**
* Gets the {@code Session} instance with required rights for package manipulation
*
* @param userId User ID per the effective {@code ResourceRes... |
/**
* Copyright 2015 David Karnok
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/**
* Copyright 2016 Pinterest, 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... |
package com.phantomsaber.common.utils;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.phantomsaber.common.core.text.StrFormatter;
/**
* 字符串工具类
*
* @author phantomsaber
*/
public class StringUtils exte... |
package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccessGeneral;
import static seedu.address.testutil.TypicalPersons.ALICE;
import static seedu.address.testutil.TypicalPersons.A... |
/**
* 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.samjakob.askama.parser;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import com.intellij.lang.ParserDefinition;
import com.intellij.lang.PsiParser;
import com.intellij.lexer.Lexer;
import com.intellij.openapi.project.Project;
import com.intellij.psi.FileViewProvide... |
/*
* 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... |
package com.jktb.app.service;
import com.jktb.common.constant.Constants;
import com.jktb.common.core.domain.model.LoginUser;
import com.jktb.common.core.redis.RedisCache;
import com.jktb.common.exception.CustomException;
import com.jktb.common.exception.user.CaptchaException;
import com.jktb.common.exception.user.Capt... |
package org.usergrid.vx.server.operations;
import org.usergrid.vx.experimental.multiprocessor.FactoryProvider;
import org.usergrid.vx.experimental.multiprocessor.MultiProcessor;
import org.usergrid.vx.experimental.multiprocessor.MultiProcessorFactory;
import org.vertx.java.core.Handler;
import org.vertx.java.core.eve... |
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* MIT License
*
* Copyright (c) 2018-2019 Yoann CAPLAIN
*
* 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, cop... |
package com.shenjiahuan.util;
public enum StatusCode {
OK(0),
NOT_LEADER(1),
NOT_BELONG_TO(2),
CONNECTION_LOST(3),
NOT_FOUND(4);
private int code;
StatusCode(int code) {
this.code = code;
}
public int getCode() {
return code;
}
public static StatusCode convert(int code) {
StatusCo... |
/**
* Copyright (C) 2018 Jan Schäfer (jansch@users.sourceforge.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 requ... |
package com.sparrow.collect.store.check;
import com.sparrow.collect.orm.session.DefaultAbstractSession;
import com.sparrow.collect.utils.PropertyUtils;
import org.apache.commons.lang3.StringUtils;
/**
* Project Name: sparrow-egg
* Package Name: com.sparrow.collect.store.check
* Author : YZC
* Date: 2016/12/12
* ... |
/*
* 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 xyz.zionjo.littlemall.member.service;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zionjo.common.utils.PageUtils;
import xyz.zionjo.littlemall.member.entity.MemberEntity;
import xyz.zionjo.littlemall.member.exception.PhoneExistException;
import xyz.zionjo.littlemall.member.exception.U... |
package com.atguigu.gulimall.product.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* spu信息
*
* @author Vegedog
* @email vegedog@qq.com
* @... |
package module694packageJava0;
import java.lang.Integer;
public class Foo71 {
Integer int0;
Integer int1;
Integer int2;
public void foo0() {
new module694packageJava0.Foo70().foo9();
}
public void foo1() {
foo0();
}
public void foo2() {
foo1();
}
public void foo3() {
foo2();
... |
/*
* This file is part of DiscordSRV, licensed under the GPLv3 License
* Copyright (c) 2016-2022 Austin "Scarsz" Shapiro, Henri "Vankka" Schubin and DiscordSRV contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... |
package org.bndly.common.service.cache.api;
/*-
* #%L
* Service Cache API
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
package controllers;
import play.*;
import play.mvc.*;
import play.data.*;
import play.data.Form.*;
import play.mvc.Http.Context;
import java.util.ArrayList;
import java.util.List;
import views.html.*;
// Import models
import models.*;
import models.users.*;
import models.products.*;
// Import security controllers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.