text stringlengths 7 995k |
|---|
/*
* Copyright (c) 2005 - 2007, Travis B. Meisenheimer
* 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
*
* ... |
package com.thundersharp.cadmin.core.notes.callbacks;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
import com.thundersharp.cadmin.R;
public abstract class MainActionModeCallback implements ActionMode.Callback {
private ActionMode action;
private MenuItem countItem;... |
/*
* 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
... |
package com.example.namitagram;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
... |
package core.aws.local.elb.v2;
import core.aws.env.Environment;
import core.aws.local.DependencyResolvers;
import core.aws.local.LocalResourceLoader;
import core.aws.local.ResourceNode;
import core.aws.resource.Resources;
import core.aws.resource.elb.v2.TargetGroup;
public class TargetGroupLoader implements LocalReso... |
package se.mickelus.tetra.util;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import java.util.Optional;
public class TileEntityOptional {
public static <T> Optional<T> from(World world, BlockPos pos, Class<T> tileEntityClass) {
return CastOptional.cast(world.getTileEntity(po... |
package io.deephaven.db.v2.by;
import io.deephaven.db.tables.utils.TableToolsShowControl;
import org.jetbrains.annotations.NotNull;
@TableToolsShowControl(getWidth = 40)
class VarStateWithNan extends VarState {
protected long nanCount;
VarStateWithNan(boolean previous) {
super(previous);
}
@... |
/*
* Copyright 2011-2017 B2i Healthcare Pte Ltd, http://b2i.sg
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.datafactory.v2018_06_01.implementation;
import c... |
package com.packt.modern.api.service;
import com.packt.modern.api.entity.AddressEntity;
import com.packt.modern.api.model.AddAddressReq;
import com.packt.modern.api.repository.AddressRepository;
import java.util.Optional;
import java.util.UUID;
import org.springframework.stereotype.Service;
/**
* @author : github.co... |
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.12.2
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class... |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "Licen... |
package link.anyauto.smartkey.demo.fillform;
import java.util.ArrayList;
import link.anyauto.smartkey.demo.R;
import link.anyauto.smartkey.demo.adapter.OneTypeItemSource;
import link.anyauto.smartkey.demo.adapter.SomethingClicked;
import link.anyauto.smartkey.demo.base.BaseVMAdapter;
import link.anyauto.smartkey.demo... |
/*
* Copyright (c) 2002-2022 Manorrock.com. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of... |
package com.vinsguru.grpcserver;
import com.vinsguru.calculator.CalculatorServiceGrpc;
import com.vinsguru.calculator.Input;
import com.vinsguru.calculator.Output;
import io.grpc.stub.StreamObserver;
public class UnaryCalculatorService extends CalculatorServiceGrpc.CalculatorServiceImplBase {
@Override
publi... |
/*
* Copyright 2017 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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/... |
/*
* Copyright (c) 2008-2022, 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 ... |
/*
* 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 nl.hsleiden.componentsinfo;
import nl.hsleiden.utils.Constants;
import nl.hsleiden.utils.Constants.WidgetConstants;
import org.hippoecm.hst.core.parameters.FieldGroup;
import org.hippoecm.hst.core.parameters.FieldGroupList;
import org.hippoecm.hst.core.parameters.Parameter;
@FieldGroupList({
@FieldGr... |
package com.fzjk.guanwang.service;
import com.fzjk.guanwang.pojo.SubType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
public interface SubTypeService {
SubType save(SubType subType);
SubType findByName(String name);
SubType findB... |
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
package example;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.stream.IntStream;
import javax.swing... |
/*
* The MIT License
*
* Copyright (c) 2017 aoju.org All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
package com.enremmeta.rtb.jersey;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.anyLong;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.times;
import static org.... |
/*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... |
package com.byandev.trackadmin.Models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class UpdateLocationModel {
@SerializedName("api_status")
@Expose
private Integer apiStatus;
@SerializedName("api_message")
@Expose
private String apiMessage;
@Seri... |
package cz.cuni.mff.perestroika.perestroika_problem_20_3_0_3_0_5_0;
import cz.cuni.mff.jpddl.PDDLGoal;
import cz.cuni.mff.jpddl.PDDLState;
import cz.cuni.mff.perestroika.domain.State;
public class Goal extends PDDLGoal {
@Override
public String toPDDL() {
return "(:goal (and (alive)\n"
+ " (tak... |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
package com.bubble.bubblereader;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Environment;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import com.bubble.breader.chapter.... |
// Targeted by JavaCPP version 1.5.2: DO NOT EDIT THIS FILE
package org.bytedeco.gsl;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.openblas.global.openblas_nolapack.*;
import static org.bytedeco.openblas.global.openblas.*;
import static org.b... |
package com.twu.biblioteca.entities;
/**
* @author: Blank
* @description: com.twu.biblioteca.entities
* @date: 8/1/20
* @version: 1.0
*/
public class Movie {
private Integer id;
private String name;
private Boolean state = true;
public Movie(Integer id, String name) {
this.id = id;
... |
/*
* Copyright 2017-2020 original 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 applicable law or agr... |
/*
* Copyright 2012-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... |
/*
* 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 ... |
/*
* Project: Java Trials
* Outline: Common Java programming practices
*
* File: SecondInvocationException.xml
* Folder: /src/main/java/com/ilyagubarev/javatrials/resources/errors
* Revision: 1.01, 13 January 2015
* Created: 13 January 2015
* Authors: Ilya Gubarev
*
* Copyright (c) 2015 Ilya Gubarev... |
/**
* 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 mb.pie.lang.test.binary.lor.lorFalseFalse;
import dagger.Component;
import mb.pie.dagger.PieComponent;
import mb.pie.dagger.PieModule;
import javax.inject.Singleton;
@mb.pie.dagger.PieScope
@Component(modules = {PieModule.class, PieTestModule.class}, dependencies = {mb.log.dagger.LoggerComponent.class, mb.re... |
package com.pacoapp.paco.shared.model2;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ExperimentDAOCore extends ModelBase implements Validatable, Serializable {
public static final int APP_USAGE_BROWSER_HISTORY_DATA_COLLECTION = 1;
public stat... |
/*
* Copyright (c) 2015 The Jupiter 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 applicable law or... |
package com.alibaba.jstorm.task.execute.spout;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.apache.log4j.Logger;
import backtype.storm.Config;
import backtype.storm.spout.ISpoutOutputCollector;
import backtype.storm.task.TopologyContext;
import backtype... |
package io.contek.invoker.hbdmlinear.api.rest.common;
import javax.annotation.concurrent.NotThreadSafe;
@NotThreadSafe
public abstract class RestDataResponse<T> extends RestResponse {
public T data;
} |
package org.apache.lucene.codecs.lucene40;
/*
* 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 Licen... |
/*
* Copyright 2018 Zhenjie Yan.
*
* 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 t... |
/**
* 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 main.interfaces.callback;
import java.util.Comparator;
public class LengthComparator implements Comparator<String> {
@Override
public int compare(String s1, String s2) {
return s1.length() - s2.length();
}
} |
package com.amitupadhyay.getlocationfast;
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
p... |
// ContextBuilder.java
package mit.cadlab.dome3.objectmodel.modelobject.context;
import mit.cadlab.dome3.gui.objectmodel.ShiftSupport;
import mit.cadlab.dome3.objectmodel.modelobject.ModelObject;
import java.util.Collection;
public interface ContextBuilder extends Context, ShiftSupport
{
public void addNewModelObj... |
package graphing;
//CECS 277 Project 4:
// Mystery Graphing
//By Ruben Baerga ID #010366978
import java.util.Random;
import java.util.Scanner;
public class Graphing {
/** TABLE OF CONTENTS.
- Slots
Inner classes
- Node
CTOR for Graphing, public
The Node Cycle Generation MDs:
- shuffleNodes() priva... |
package com.dogsong.rpc.common.codec;
import com.dogsong.rpc.util.ProtostuffSerialization;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToByteEncoder;
/**
* 转码器
*
* @author <a href="mailto:dogsong99@gmail.com">dogsong</a>
* @since 2021/8/3
*/... |
/*
* 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 de.uros.citlab.errorrate;
import de.uros.citlab.errorrate.htr.ErrorModuleBagOfTokens;
import de.uros.citlab.errorrate.htr.Erro... |
/*-
* #%L
* OfficeFrame
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* 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.... |
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.caches.def;
import com.maxifier.mxcache.caches.*;
import com.maxifier.mxcache.impl.DependencyNodes;
import com.maxifier.mxcache.impl.MutableStatistics;
import com.maxifier.mxcache.impl.resource.DependencyNode;
import... |
@@ -0,0 +1,178 @@
/*
* GoBees
* Copyright (c) 2016 - 2017 David Miguel Lozano
*
* 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 Free Software Foundation, either version 3 of the License, or
* any later version.
*... |
package de.metas.ui.web.window.model;
import de.metas.ui.web.window.datatypes.json.JSONNullValue;
import de.metas.ui.web.window.datatypes.json.JSONOptions;
import de.metas.util.Check;
import lombok.Builder;
import lombok.NonNull;
import lombok.ToString;
import lombok.Value;
import javax.annotation.Nullable;
import ja... |
/*
Copyright [2020] [https://www.xiaonuo.vip]
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... |
package com.teamerror.capstoneprojectdbs.models;
public interface CustodianWiseStats {
String getCustodianId();
Double getTotalBuy();
Double getTotalSell();
} |
package com.yore.easy;
import com.yore.base.ListNode;
/**
* @author Yore
* @date 2021/10/8 10:35
* @description 快慢指针解决链表中点问题
*/
public class Number876 {
public ListNode middleNode(ListNode head) {
ListNode slow = head;
ListNode fast = head;
while (fast != null && fast.next != null) {
... |
/*
* 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.comic_demo.app.utils;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
/**
* author: 小川
* Date: 2019/8/14
* Description:
*/
public class PermissionUtils {
public static fina... |
/*
* 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 no... |
/**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... |
/*
* 作成日: 2003/10/27
*
*/
package com.nullfish.lib.vfs.impl.commons_http;
import org.apache.commons.httpclient.HostConfiguration;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
import com.nullfish.lib.vfs.FileName;
import com.nullfish.lib.... |
package com.appcnd.potato.util;
import java.util.HashSet;
import java.util.Set;
/**
* @author nihao 2021/07/08
*/
public class SqlStringBuilder {
private StringBuilder builder;
private Set<String> hasAppend;
public SqlStringBuilder() {
this.builder = new StringBuilder();
}
public SqlSt... |
/*
* 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... |
/*
* Copyright (C) 2014 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... |
package com.iwayee.activity.define;
public enum ErrCode implements IErrorCode {
SUCCESS(0, "成功"),
ERR_PARAM(-100, "参数错误!"),
ERR_DATA(-101, "数据错误!"),
ERR_OP(-102, "操作失败!"),
ERR_AUTH(-103, "登录验证失败,请重新登录!"),
ERR_REGISTER(-104, "注册失败!"),
ERR_USER_DATA(-105, "获取用户数据失败!"),
ERR_USER_UPDATE_DATA(-106, "更新用户数据... |
/*
* Copyright (c) 2011-2016, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... |
package com.ruoyi.system.service.impl;
import java.util.Date;
import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.time.DateFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.m... |
/*
* Copyright (c) 2020 MarkLogic Corporation
*
* 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 2014 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 applicable l... |
package reactor.queue.spec;
import net.openhft.chronicle.ChronicleConfig;
import reactor.function.Supplier;
import reactor.io.Buffer;
import reactor.io.encoding.Codec;
import reactor.queue.IndexedChronicleQueuePersistor;
import reactor.queue.PersistentQueue;
import java.io.IOException;
/**
* Helper spec to create a... |
/**
* Copyright © 2016-2021 The Thingsboard 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 applicab... |
/*
* Copyright 2011-2016 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... |
/**
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors.
*
* 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... |
/*
* 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.github.superkoh.mvc.exception;
import lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
public class BizRuntimeException extends RuntimeException {
private int errorCode = -1;
public BizRuntimeException(int errorCode, String message) {
super(message);
t... |
/*
* The MIT License (MIT) Copyright (c) 2020-2021 artipie.com
* https://github.com/artipie/docker-adapter/LICENSE.txt
*/
package com.artipie.docker.misc;
import com.artipie.asto.Content;
import com.artipie.docker.Tag;
import java.util.stream.Collectors;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matche... |
/*
* 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... |
/*
* Copyright 2020. Huawei Technologies Co., Ltd. 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 2019 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.authserver.life.security;
import com.authserver.life.security.handler.password.PasswordSuccessHandle;
import com.authserver.life.security.service.RedisOAuth2AuthorizationConsentService;
import com.authserver.life.security.service.RedisOAuth2AuthorizationService;
import com.authserver.life.security.service.... |
package jetbrains.mps.lang.typesystem.editor;
/*Generated by MPS */
import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.editor.cells... |
package com.yunionyun.mcp.mcclient.managers.impl;
import com.yunionyun.mcp.mcclient.EndpointType;
import com.yunionyun.mcp.mcclient.managers.KeystoneManager;
public class RoleManager extends KeystoneManager {
public RoleManager() {
this(EndpointType.AdminURL);
}
public RoleManager(EndpointType endpointType) {
... |
package com.twelvemonkeys.servlet;
import com.twelvemonkeys.util.MapAbstractTestCase;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import static org.mockito.Mockito.when;
/**
* Servl... |
package com.generalmobi.smart.finder.core;
import retrofit.RequestInterceptor;
import static com.generalmobi.smart.finder.core.Constants.Http.HEADER_PARSE_APP_ID;
import static com.generalmobi.smart.finder.core.Constants.Http.PARSE_APP_ID;
public class RestAdapterRequestInterceptor implements RequestInterceptor {
... |
/** Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.game.twoplayer.go.board.analysis;
import com.barrybecker4.game.common.board.BoardPosition;
import com.barrybecker4.game.twoplayer.go.board.GoBoard;
import com.barrybecker4.game.t... |
package com.practice.template.freemarker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PracticeTemplateFreemarkerApplication {
public static void main(String[] args) {
SpringApplication.run(Prac... |
package edu.fiuba.algo3.modelo;
public class BloqueMoverDerecha implements Bloque{
@Override
public void ejecutar(Personaje unPersonaje){
unPersonaje.moverDerecha();
}
public void ejecutarBloqueInverso(Personaje unPersonaje) {
unPersonaje.moverIzquierda();
}
} |
/*-
*
* * Copyright 2015 Skymind,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
* *
* * ... |
package forgedhallpass.httpcomponents.parser.model.common;
import java.util.stream.Stream;
public enum HttpProtocol {
HTTP_1_1("HTTP/1.1"), HTTP_1_0("HTTP/1.0");
private final String value;
HttpProtocol(final String value) {
this.value = value;
}
public String getValue() {
return... |
package _05BarracksWarsReturnOfTheDependencies.data;
import _05BarracksWarsReturnOfTheDependencies.contracts.Repository;
import _05BarracksWarsReturnOfTheDependencies.contracts.Unit;
import java.util.Map;
import java.util.TreeMap;
public class UnitRepository implements Repository {
private static final String ... |
package repositories;
import entity.User;
import helper.EntityHelper;
import javax.persistence.EntityManager;
public class UserRepository {
//EntityManager entityManager = EntityHelper.getEntityManager();
public static void save(User user) {
EntityManager entityManager = EntityHelper.getEntityMana... |
/*
* 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 org.infinispan.query.blackbox;
import static org.infinispan.distribution.Ownership.BACKUP;
import static org.infinispan.distribution.Ownership.NON_OWNER;
import static org.infinispan.distribution.Ownership.PRIMARY;
import static org.infinispan.query.helper.TestQueryHelperFactory.createQueryParser;
import stati... |
package com.shadow;
import com.shadow.test.OrderService;
import com.shadow.test.TestDemo;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.AbstractBeanDefinition;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public cl... |
package com.amazonaws.samples;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatAppDefaultResponseBody {
private String result;
private String error;
public String getResult() { return result; }
public void setResult(String va... |
package befaster.solutions.checkout.offers.multi_item;
public class Offer_2B_For_45 extends MultiItemOffer {
public Offer_2B_For_45() {
super("B", 2, 15);
}
} |
package com.ksonni.footballdb.players.services;
import com.ksonni.footballdb.players.domain.Player;
import com.ksonni.footballdb.players.domain.Position;
import com.ksonni.footballdb.players.domain.Side;
import com.ksonni.footballdb.players.domain.WorkRate;
import com.ksonni.footballdb.queryparser.DefaultQueryParser;
... |
/*
* Copyright (c) 2013 Jiří Praus
*/
package com.praus.chars.character.behavior;
import com.praus.chars.Being;
/**
*
* @author Jiří Praus <jpraus@kerio.com>
*/
public interface Behavior {
public void onTargeted(Being source);
public void onHit(Being source);
public void onSight(Being... |
package uk.gov.ons.ctp.response.casesvc.message.sampleunitnotification;
import javax.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@AllArgsConstructor
@NoArgsConstructor(a... |
package ir.ac.iust.dml.kg.search.logic;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;
import java.util.function.Predicate;
/**
* Created by ali on 4/16/17.
*/
public class Util {
public static boolean textIsPersian(String s) {
for (int i = 0; i ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.