text stringlengths 7 1.01M |
|---|
package de.qaware.esh.netatmo.handler;
import de.qaware.esh.netatmo.NetatmoBindingConstants;
import de.qaware.esh.netatmo.NetatmoWebservice;
import de.qaware.esh.netatmo.model.DashboardData;
import de.qaware.esh.netatmo.model.Device;
import de.qaware.esh.netatmo.model.StationData;
import org.eclipse.smarthome.core.lib... |
/*
* Copyright 2013-2018 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 ap... |
/*
* Copyright (c) 2002, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
... |
package com.lyz.textinputlayoutdemo.widget;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import android... |
package com.cds.iot.data.entity;
/**
* Created by Administrator Chengzj
*
* @date 2018/10/11 12:26
*/
public class CarPosition {
/**
* place_memo :
* device_id : 22
* latitude :
* speed :
* longitude :
* device_time :
*/
private String place_memo;
private String devi... |
package com.longbow.security.core.core.otherway;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.security.access.AccessDecisionManager;
import org.springframework.security.access.SecurityMetadataSource;
import org.springframework.security.access.intercept.AbstractSecurityInter... |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... |
package mb.jsglr.pie;
import mb.common.result.Result;
import mb.jsglr.common.JSGLRTokens;
import mb.jsglr.common.JsglrParseException;
import mb.jsglr.common.JsglrParseOutput;
class TokensFunction extends MapperFunction<Result<JsglrParseOutput, JsglrParseException>, Result<JSGLRTokens, JsglrParseException>> {
publ... |
/*
* Copyright (c) 2013, SRI International
* All rights reserved.
* Licensed under the The BSD 3-Clause License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Redistribution and use in... |
package com.example.skinet.core.entity;
import lombok.Data;
import javax.persistence.*;
@Entity
@Data
@Table(name = "product_types")
public class ProductType {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String name;
}
|
package org.cloudburstmc.protocol.bedrock.packet;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import it.unimi.dsi.fastutil.longs.LongList;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.cloudburstmc.protocol.bedrock.da... |
/*******************************************************************************
* Copyright (c) 2000, 2012 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... |
package alien4cloud.it.setup;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import alien4cloud.git.RepositoryManager;
import alien4cloud.utils.FileUtil;
/**
* Simple class that package the test archives as zip.
*/
@Slf4j
public class PrepareTestData ... |
package com.fasterxml.jackson.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Locale;
import java.util.TimeZone;
/**
* General-purpose annotation used for configuring details ... |
package com.test.es.service.impl;
import com.alibaba.fastjson.JSON;
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
import com.test.es.model.EsPage;
import com.test.es.model.MappingFieldInfo;
import com.test.es.service.IEsService;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpStatus;... |
/**
* 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.compute.v2019_11_01;
import org.joda.time.DateTi... |
/*************************GO-LICENSE-START*********************************
* Copyright 2014 ThoughtWorks, 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... |
package com.notnoop.apns;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.util.Date;
import java.util.Map;
import java.util.Map.Entry;
import java.util.concurrent.ExecutorService;
import javax.net.ssl.SSLContext;
/**
* Represents the Apple Feedback server. This allow... |
/*
* Copyright 2017 Republic of Reinvention bvba. 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 r... |
package net.teamfruit.projectrtm.rtm.entity.ai;
import net.minecraft.entity.ai.EntityAIBase;
import net.teamfruit.projectrtm.rtm.electric.SignalLevel;
import net.teamfruit.projectrtm.rtm.entity.npc.EntityMotorman;
import net.teamfruit.projectrtm.rtm.entity.train.EntityTrainBase;
import net.teamfruit.projectrtm.r... |
/*
* 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 ... |
/** Read class attribute.
*/
void readClassAttr(ClassSymbol c, Name attrName, int attrLen) {
DEBUG.P(this,"readClassAttr(3)");
DEBUG.P("c="+c);
DEBUG.P("attrName="+attrName);
DEBUG.P("attrLen="+attrLen);
if (attrName == names.SourceFile) {
Name n = readName(nextChar());
... |
package com.arangodb.intellij.aql.ui.actions;
import com.arangodb.intellij.aql.util.Icons;
import com.arangodb.intellij.aql.util.log;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.intellij.ui.treeStructure.Tree;
public class EditQueryAction extends Bas... |
package shade.cards;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.ca... |
package com.doctor.practice01;
/**
* @author sdcuike
*
* Created on 2016年4月11日 下午11:33:17
*/
@TestAnnotation
public interface ITestAnnotation {
@TestAnnotation
void test();
}
|
package org.pipecraft.pipes.sync.inter;
import org.pipecraft.pipes.sync.Pipe;
import org.pipecraft.infra.concurrent.FailableFunction;
import org.pipecraft.pipes.serialization.CodecFactory;
import org.pipecraft.pipes.sync.inter.reduct.HashReductorPipe;
import org.pipecraft.pipes.sync.inter.reduct.ReductorConfig;
import... |
/**
* The MIT License
* Copyright (c) 2014-2016 Ilkka Seppälä
* <p>
* 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 us... |
////////////////////////////////////////////////////////////
//
// Anime Warfare
// Copyright (C) 2016 TiWinDeTea - contact@tiwindetea.org
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this softwar... |
package be.intecbrussel.testy.views.component;
import com.github.appreciated.apexcharts.ApexCharts;
import com.github.appreciated.apexcharts.ApexChartsBuilder;
import com.github.appreciated.apexcharts.config.builder.ChartBuilder;
import com.github.appreciated.apexcharts.config.builder.LegendBuilder;
import com.github.... |
/*
* 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 (c) Lambda Innovation, 2013-2016
* This file is part of LambdaLib modding library.
* https://github.com/LambdaInnovation/LambdaLib
* Licensed under MIT, see project root for more information.
*/
package cn.lambdalib.util.key;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retentio... |
package bastion.settings;
import bastion.utils.FileManager;
import java.util.List;
public class BastionConfig {
public String discordToken;
public String chatBridgePrefix;
public long chatChannelID;
public boolean isRunning;
public boolean adminLog;
public long adminChatID;
p... |
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
/*
* MIT License
*
* Copyright (c) 2020 Liu Yamin
*
* 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... |
package com.google.commerce.tapandpay.merchantapp.validation;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonToken;
import com.google.gson.stream.JsonWriter;
import java.io.IOExceptio... |
package com.liueq.keyper.ui.main;
import com.liueq.keyper.base.Presenter;
import com.liueq.keyper.data.model.Account;
import com.liueq.keyper.data.model.Tag;
import com.liueq.keyper.domain.interactor.AddTagUC;
import com.liueq.keyper.domain.interactor.GetAccountListUC;
import com.liueq.keyper.domain.interactor.GetStar... |
package com.mail.member.controller;
import java.util.Arrays;
import java.util.Map;
//import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.... |
package ch15generics.coffee;
public class Cappuccino extends Coffee {
} |
package com.sandrowinkler.example_apps.splashscreen;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which wil... |
package fr.orsys.ama.tp2;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an And... |
package com.github.stephanelemaire.simpleDI.parentObject;
import com.github.stephanelemaire.simpleDI.AutoInject;
import com.github.stephanelemaire.simpleDI.basicObject.BasicObject;
public class ParentObjectWithConstructorError {
@AutoInject
public ParentObjectWithConstructorError(BasicObject basicObject){
int[] ... |
/*
* 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.business;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import java.security.SecureRandom;
import java.util.Base64;
public class PasswordHash {
private static Integer saltSize = 0X10;
private static Integer hashSize = 0X14;
private st... |
/*
* Copyright 2015 Laukviks Bedrifter.
*
* 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 a... |
/*
Derby - Class org.apache.derbyTesting.functionTests.harness.procedure
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 fil... |
//
// ========================================================================
// Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... |
package ru.amalnev.jnms.common.model.repositories;
import ru.amalnev.jnms.common.model.entities.AbstractEntity;
import java.lang.annotation.*;
/**
* Данная аннотация применяется к Spring Data репозиториям, для того, чтобы
* во время выполнения с помощью рефлексии можно было определить за какую
* сущность отвечает... |
/*
* Copyright 2015 Adaptris 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 applicable law or agree... |
package com.hyperledger.export.models;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import com.archimatetool.model.IArchimateConcept;
import com.archimatetool.model.IProperty;
/**
* Класс модели asset hyperledger composer
*/
public class Asset extends HLModel {
//Ранг модели... |
/**
* Copyright (C) 2012, Rapid7 LLC, Boston, MA, USA.
* 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, t... |
package seedu.address.model;
import static seedu.address.testutil.Assert.assertThrows;
import org.junit.jupiter.api.Test;
public class UserPrefsTest {
@Test
public void setGuiSettings_nullGuiSettings_throwsNullPointerException() {
UserPrefs userPref = new UserPrefs();
assertThrows(NullPointe... |
/*
Portions of this file are copyright by the authors of Jackson under the Apache 2.0 or LGPL license.
*/
package com.bazaarvoice.jackson.rison;
import com.fasterxml.jackson.core.JsonEncoding;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jac... |
package org.ovirt.engine.core.common.businessentities;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.ovirt.engine.core.common.businessentities.comparators.BusinessEntityComparator;
import org.ovirt.engine.... |
package uk.dangrew.dinosaurs.game.model.dinosaur;
import static java.util.Collections.unmodifiableCollection;
import java.util.Collection;
import java.util.HashSet;
import uk.dangrew.dinosaurs.game.world.World;
import uk.dangrew.dinosaurs.game.world.WorldLocation;
/**
* Represents the area around the dinosaur tha... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
/**
* Native bindings to the <a target="_blank" h... |
/*
* This code is subject to the HIEOS License, Version 1.0
*
* Copyright(c) 2008-2009 Vangent, Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, ei... |
/*
MIT License
Copyright (c) 2017 Wolfgang Almeida
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... |
package de.thetaphi.forbiddenapis;
/*
* (C) Copyright 2013 Uwe Schindler (Generics Policeman) and others.
* Parts of this work are licensed to the Apache Software Foundation (ASF)
* under one or more contributor license agreements.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not... |
package com.egoveris.sharedorganismo.base.service;
import com.egoveris.sharedorganismo.base.exception.ReparticionGenericDAOException;
import com.egoveris.sharedorganismo.base.model.ReparticionBean;
import java.util.List;
/**
*
* @author agambina
*
*/
public interface ReparticionServ {
/**
* Este método ... |
/*
* 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.genohm.jeno.app;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* HasLogger is a feature interface that provides Logging capability for anyone
* implementing it where logger needs to operate in serializable environment
* without being static.
*/
public interface HasLogger {
default Log... |
package org.mule.tooling.lang.dw.migrator;
import com.intellij.codeInsight.editorActions.CopyPastePostProcessor;
import com.intellij.codeInsight.editorActions.TextBlockTransferableData;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.Ra... |
package com.litianyi.supermall.coupon.controller;
import java.util.Arrays;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.a... |
package se.mickelus.tetra.data;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import net.minecraft.advancements.criterion.ItemPredicate;
import net.minecraft.block.Block;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.item.It... |
package de.unidue.ltl.ctest.difficulty.experiments;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.uima.analysis_engine.AnalysisEngineDescription;
import org.dkpro.lab.reporting.BatchReportBase;
import org.dkpro.tc.api.features.TcFeatureSet;
public class Experiment {
p... |
/*
* Copyright 2012 Vaadin Community.
*
* 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 agr... |
/*
* This file was automatically generated by EvoSuite
* Sat Nov 07 23:19:07 GMT 2020
*/
package com.densebrain.rif.client;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.densebrain.rif.client.RIFClassLoader;
import org.evosuite.runtime.EvoRu... |
package org.arnolds.agileappproject.agileappmodule.ui.frags;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import andro... |
package org.infinispan.cli.interpreter.logging;
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.MessageBundle;
/**
* Informational CLI messages. These start from 19500 so as not to overlap with the logging messages defined in {@link Log}
* Messages.
*
* @author Tristan Tarrant
... |
package org.bndly.common.service.decorator.api;
/*-
* #%L
* Service Decorator 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
*... |
/*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
*/
/*
* 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 th... |
/*
* This file is part of QuickStart Module Loader, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package uk.co.drnaylor.quickstart;
import uk.co.drnaylor.quickstart.config.AbstractConfigAdapter;
import uk.co.drnaylor.quickstart.exceptions.MissingD... |
/*
* 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... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.instrumentation.jaxrs.v3_0;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.javaagent.instrumentation.jaxrs.HandlerData;
import io.opentelemetry.javaag... |
/*
* Copyright 2013 serso aka se.solovyev
*
* 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 a... |
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.micrometer1shim;
import static io.opentelemetry.micrometer1shim.OpenTelemetryMeterRegistryBuilder.INSTRUMENTATION_NAME;
import static io.opentelemetry.sdk.testing.assertj.MetricAssertions.assertThat;
import s... |
/*
* 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... |
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
/**
* @author Vivant Sakore on 1/29/2020
*/
public class BuggyIntDListTest {
private BuggyIntDList l, m;
/**
* Test mergeIntDList
*/
@Test
public void testMergeIntDList() {
... |
package com.navercorp.pinpoint.common;
public final class Version {
public static final String VERSION = "1.6.1-SNAPSHOT";
} |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package org.sunbird.portal.department.repo;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.sunbird.portal.department.dto.Role;
public interface RoleRepository extends CrudRepository<Role, Integer> {
Role findRoleByRoleName(String roleName);
List<Role> findAllByRoleName... |
package com.atguigu.gmall.pms.service.impl;
import com.atguigu.gmall.pms.entity.AttrEntity;
import com.atguigu.gmall.pms.mapper.AttrMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
import com.baomidou.myb... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file is autogenerated by:
// mojo/public/tools/bindings/mojom_bindings_generator.py
// For:
// services/service_manager/public/mojom/serv... |
package org.aksw.commons.converters;
import com.google.common.base.Converter;
public class CastConverter<I, O>
extends Converter<I, O>
{
@SuppressWarnings("unchecked")
@Override
protected O doForward(I a) {
return (O)a;
}
@SuppressWarnings("unchecked")
@Override
protected I doBackward(O b) {
return (I)b;... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF license... |
package com.lglab.goutam.simple_cms.connection;
/**
* This class in charge to fill the status updater
*/
public class StatusUpdater implements Runnable {
private volatile boolean cancelled;
private LGConnectionManager lgConnectionManager;
StatusUpdater(LGConnectionManager lgConnectionManager) {
... |
package com.raizlabs.android.dbflow;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.PrimaryKey;
import com.raizlabs.android.dbflow.annotation.Table;
import com.raizlabs.android.dbflow.structure.BaseModel;
/**
* Description:
*/
@Table(databaseName = "SecondApp")
p... |
/*
* Copyright (c) 2016 André Mion
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*
* Copyright (C) 2011 Thomas Akehurst
*
* 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... |
/*
* This file is part of spiget-java-client, licensed under the MIT License (MIT).
*
* Copyright (c) 2022 Pasqual K. and contributors
*
* 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... |
/*
* 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 sm.net.calc.model;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
impo... |
package org.apache.maven.wagon;
/*
* 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, Ver... |
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.cf;
import com.android.tools.r8.NeverInline;
import com.android.tools.r8.NoMe... |
package test;
import cz.mg.collections.Collection;
import cz.mg.collections.array.Array;
import cz.mg.toolkit.component.controls.spinners.IntegerSpinner;
import cz.mg.toolkit.event.events.*;
import cz.mg.toolkit.graphics.designer.Designer;
import cz.mg.toolkit.graphics.designer.StructuredDesigner;
import cz.mg.toolkit... |
/*
* Copyright (c) 2004-2012, University of Oslo
* 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 ... |
/*
* 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... |
/*
* Copyright 2019 Uriah Shaul Mandel
*
* 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 agr... |
package com.example.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ReimbDbConnection {
private final String URL = "jdbc:postgresql://rev-can-training.cevrrymkkbmb.us-east-2.rds.amazonaws.com:5432/project1db";
private final String USERNAME="project1user";
... |
package com.sequenceiq.it.cloudbreak.newway;
import com.sequenceiq.cloudbreak.api.model.DirectoryType;
import com.sequenceiq.cloudbreak.api.model.ldap.LdapConfigRequest;
import javax.annotation.Nonnull;
import javax.validation.constraints.NotEmpty;
import java.util.Optional;
import static com.sequenceiq.it.cloudbrea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.