text stringlengths 7 995k |
|---|
package io.github.zero88.repl;
import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.Objects;
import java.util.function.Predicate;
/**
* @see AnnotatedElement
* @see Class
*/
@SuppressWarnings({"rawtypes", "un... |
package com.exasol.sql.dml.merge;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.... |
/*
* Copyright 2015-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
package org.noear.weed.generator.utils;
import java.util.regex.Pattern;
public class NamingUtils {
private static Pattern LOWER_CASE = Pattern.compile("[a-z]");
/**
* 如果全是大写字母, 则转换为小写字母
*
* @param name 待转换的名称
* @return 转换后的名称
*/
public static String toLowerCaseIfAllUpperCase(Stri... |
/*
* Copyright © 2021-present Arcade Data Ltd (info@arcadedata.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
package com.luoruiyong.weblog.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**网络帮助类
* Created by Administrator on 2017/9/9.
*/
public class NetworkUtil {
private static final String CLASS_NAME = NetworkUtil.class.getSimpleName() + "-->";
priv... |
/*
* $HeadURL: http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/MethodNotSupportedException.java $
* $Revision: 618017 $
* $Date: 2008-02-03 08:42:22 -0800 (Sun, 03 Feb 2008) $
*
* ====================================================================
* License... |
/*
* 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 aulaexemplo.pkg05;
import java.util.HashSet;
import java.util.Set;
/**
*
* @author Prisc
*/
public class AulaExemplo05 {
... |
package com.github.yassine.soxychains.subsystem.docker.client;
import com.github.dockerjava.api.async.ResultCallback;
import com.github.dockerjava.api.command.AsyncDockerCmd;
import com.github.yassine.soxychains.subsystem.docker.config.DockerHostConfiguration;
import com.google.common.base.Preconditions;
import io.rea... |
/*-
* #%L
* Elastic APM Java agent
* %%
* Copyright (C) 2018 - 2021 Elastic and contributors
* %%
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. ... |
package org.springframework.cloud;
import org.springframework.cloud.CloudTestUtil.StubServiceInfo;
import org.springframework.cloud.service.AbstractServiceConnectorCreator;
import org.springframework.cloud.service.ServiceConnectorConfig;
/**
*
* @author Ramnivas Laddad
*
*/
public class StubServiceConnectorCreat... |
package com.jamasoftware.relationshipCreator;
import org.apache.http.auth.UsernamePasswordCredentials;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
impor... |
package com.cinher.github.esperantodict;
import android.content.res.Configuration;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppC... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference
// Implementation, v2.3.0
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.08.06 ... |
/**
* ************************************************************************
* * The contents of this file are subject to the MRPL 1.2
* * (the "License"), being the Mozilla Public License
* * Version 1.1 with a permitted attribution clause; you may not use this
* * file except in compliance with the L... |
package de.fhg.iais.roberta.syntax.lang.expr;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import de.fhg.iais.roberta.blockly.generated.Block;
import de.fhg.iais.roberta.blockly.generated.Mutation;
import de.fhg.iais.roberta.blockly.generated.Value;
import de.fhg.iais.roberta.syntax.Blo... |
/*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2020 Amaz... |
/*
* Sonargraph Integration Access
* Copyright (C) 2016-2021 hello2morrow GmbH
* mailto: support AT hello2morrow DOT com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://ww... |
package ru.job4j.threads;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author Medoev Ruslan (mr.r.m3@icloud.com)
* @version $Id$
* @since 0.1
*/
public class BaseStore {
private ConcurrentHashMap<Integer, Base> store;
public BaseStore() {
this.store = new ConcurrentHashMap<>();
}
... |
package simulator.recorder.adapter.input;
public class DTFKeyLockCommand
implements IDTFCommand {
int iKeyLockPos = 0;
public DTFKeyLockCommand(int pos) {
iKeyLockPos = pos;
}
@Override
public String getXml() {
return "<keylock><pos>" + iKeyLockPos + "</pos></keylock>\n";
}
} |
package org.maera.plugin.webresource;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class DefaultWebResourceFilterTest {
@Test
public void testMatches() {
assertTrue(DefaultWebResourceFilter.INSTANCE.matches("foo.css"));
... |
package webapp.dso.db2;
import webapp.dso.LKOBJ;
import webapp.models.bcf.ResourceLinkedModel;
import webapp.models.bcf.ResourceModel;
import webapp.utils.TextUtils;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;
/**
* BCF 资源接口
* */
public class DbResourceApi extends DbApiBase {
... |
package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.view.View;
import andro... |
package additionalTasks.regEx;
public class Test {
public static void main(String[] args) {
// RegEx.checkNumberA();
RegEx.checkNumberB();
RegEx.checkNumberC();
// 123-45-67
// 8 (025) 123-45-67
// +375(25)123-45-67
}
} |
package com.packtpub.springrest.booking.init;
import com.packtpub.springrest.DateRange;
import com.packtpub.springrest.booking.BookingRequest;
import com.packtpub.springrest.booking.BookingService;
import com.packtpub.springrest.booking.CreditCardDetails;
import com.packtpub.springrest.model.Booking;
import java.util... |
/*
* Copyright (c) 2008-2015, 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.lsw.demo.puzzle.straight;
import android.graphics.Path;
import android.graphics.PointF;
import android.graphics.RectF;
import com.lsw.demo.puzzle.Area;
import com.lsw.demo.puzzle.Line;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
/**
* @author wupanjie
*/
class StraightAr... |
package deltix.luminary;
public class LiteralType extends Literal {
private final Type value;
public LiteralType(Type value) {
super(LiteralKind.TYPE);
this.value = value;
}
public Type getValue() {
return value;
}
@Override
public String toString() {
retu... |
package febb.properties.exception;
public class UnsupportedMethodException extends RuntimeException {
public UnsupportedMethodException(Class klass) {
super("Method unsupported by " + klass.toString());
}
public UnsupportedMethodException(Class klass, String operation) {
super(operation + ... |
/**
* 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 2007 The Apache Software Foundation
*
* 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... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.BodyParam;
import com.azure.core.annotation.Delete;
import com.azure.core.annot... |
// Copyright 2020 Courville Software
//
// 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.forest.project.web;
import com.forest.core.BaseController;
import com.forest.core.Result;
import com.forest.core.ResultGenerator;
import com.forest.project.model.VDepart;
import com.forest.project.service.VDepartService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.... |
package com.bstek.urule.console.servlet.decisiontable;
import com.bstek.urule.console.servlet.CellContent;
import java.util.List;
/**
* @program: xygl
* @description:
* @author: xujiannong
* @create: 2019-06-05 10:40
**/
public class ContentRow
{
private List<CellContent> a;
public List<CellContent> g... |
/**
* 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 servlets;
import props.Blog;
import utils.DBUtil;
import utils.Util;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSer... |
package org.zstack.header.message;
import java.util.List;
public interface MessageHandlerExtensionPoint<T extends Object> {
List<String> getMessageNameTheExtensionServed();
void handleMessage(Message msg, T context);
} |
package cays.spring.exception;
import cays.spring.vo.ResultVO;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* 全局错误处理类
*
* @author Chai yansheng
* @create 2019-07-25... |
package com.marshio.redisdemo.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.marshio.redisdemo.pojo.Goods;
import com.marshio.redisdemo.vo.GoodsVo;
import java.util.List;
/**
* <p>
* 服务类
* </p>
*
* @author masuo
* @since 2022-03-11
*/
public interface GoodsService extends ISe... |
package com.virjar.thanos.api.util;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
public class Md5Utils {
public static String md5(File file) {
try {
return md5(new FileInputStream(file));
} catch (IOException e) {
throw ne... |
/**
*
* Copyright (C) 2012-2013 DuyHai DOAN
*
* 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... |
package br.com.zupacademy.diego.proposta.models;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@Entity
@Table(name = "tb_carteira_cartao")
public clas... |
package com.thoughtworks.bootcamp.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
@Configuration... |
/*
* Copyright 2018 ConsenSys AG.
*
* 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 wr... |
package org.firstinspires.ftc.teamcode.autonomous;
import org.firstinspires.ftc.teamcode.game.Alliance;
@com.qualcomm.robotcore.eventloop.opmode.Autonomous(name="Blue WobbleNav", group="Phoebe")
//@Disabled
public class BlueWobbleNavigate extends AutonomousHelper {
@Override
public void init() {
supe... |
/*
* Copyright 2014 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 (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.cloud.feature.manager.targeting;
import java.util.List;
public class TargetingContext implements ITargetingContext {
private String userId;
private List<String> groups;
public String... |
package com.song.deviceinfo.ui.oneline;
import com.song.deviceinfo.ui.base.BaseViewModel;
import java.util.List;
/**
* Created by chensongsong on 2021/9/10.
*/
public abstract class OneLineViewModel extends BaseViewModel {
protected abstract List<String> getOneLineInfo();
} |
package com.rossos.cryptography;
import java.util.Scanner;
/**
* @author Daniel Rossos
*
*/
public abstract class Driver {
// TODO fix vernam
public final String ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
boolean... |
/*
*
* 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"); y... |
package servlet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import parameters.Project;
/**
* https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/#environment-variables
* @author cossin
*
*
* sudo docker run -d --name BlazegraphDB lyrasis/blazegraph:2.1.4
* sudo dock... |
/*
* Copyright (c) 2008-2013, Matthias Mann
*
* 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... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE89_SQL_Injection__File_executeUpdate_04.java
Label Definition File: CWE89_SQL_Injection.label.xml
Template File: sources-sinks-04.tmpl.java
*/
/*
* @description
* CWE: 89 SQL Injection
* BadSource: File Read data from file (named c:\data.txt)
* GoodSource: A hardcoded st... |
/*
* 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.kbhit.orangebox.users;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@ActiveProfiles("dev")
@SpringBootTest(clas... |
package com.example.myoriginalmalapp;
import android.content.Context;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.ViewModel;
import androidx.paging.LivePagedListBuilder;
import androidx.paging.PageKeyedDataSource;
import androidx.paging.PagedList;
import com.example.myoriginalmalapp.animeobject.Ani... |
package org.arquillian.smart.testing.strategies.categorized.project.categories;
import org.junit.Test;
public class NonCategorizedClass {
@Test
public void test() {
}
} |
/*
* Copyright 2017 Huawei Technologies Co., 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 l... |
/*
* Copyright (c) 2013 DataTorrent, 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 by... |
package com.djcerdas.fbloginlayout;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.acti... |
/**
* MIT License
*
* Copyright (c) 2017 TRIOLOGY GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... |
/*
* 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 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... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/pubsub/v1/pubsub.proto
package com.google.pubsub.v1;
/**
*
*
* <pre>
* A topic resource.
* </pre>
*
* Protobuf type {@code google.pubsub.v1.Topic}
*/
public final class Topic extends com.google.protobuf.GeneratedMessageV3
implem... |
package com.firefoody.VendorActivities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;
import com.firefoody.R;
import com.firefoody.Utils.FirebaseInstances;
import com.google.android.gms.tasks... |
package com.bignerdranch.android.nerdzoo.util;
import android.os.Build;
public class BuildUtils {
public static boolean isLollipopEnabled() {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
}
} |
/*******************************************************************************
* Copyright (c) 2013 The University of Reading
* 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. Redis... |
/*
* 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 org.solent.com504.factoryandfacade.impl.dao.spring.test;
import java.util.List;
import org.apache.logging.log4j.LogManager;
im... |
/*
* Route.java
*
* $Id: Route.java,v 1.3 2008/02/27 14:55:48 marco Exp $
*
* 03/gen/08
*
* Copyright notice
*/
package org.mmarini.atc.sim;
/**
* @author marco.marini@mmarini.org
* @version $Id: Route.java,v 1.3 2008/02/27 14:55:48 marco Exp $
*
*/
public class Route {
private Location location0;
priva... |
/*
* Copyright (C) 2015-2017, C. Ramakrishnan / Illposed Software.
* All rights reserved.
*
* This code is licensed under the BSD 3-Clause license.
* See file LICENSE (or LICENSE.html) for more information.
*/
package com.illposed.osc.argument;
import java.io.Serializable;
/**
* Represents an OSC compliant sy... |
package integration;
import com.codeborne.selenide.WebDriverRunner;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.WebDriver;
import ... |
package com.freak.dashboard.preference;
import com.freak.dashboard.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.Preference;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import andr... |
package Test1.operations;
import Test1.javaBean.Student;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
public class Crud {
private static List<Student> listStu;
private static Map<String, String> mapStu;
public Crud(List<Student> listStu, Map<String,String> mapStu) {
th... |
/*
* 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.kyojo.schemaorg.m3n5.core.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n5.core.Container;
import org.kyojo.schemaorg.m3n5.core.DataType.Time;
import org.seasar.doma.Transient;
public class OPENS implements Container.O... |
/*
* Copyright (c) Facebook, Inc. and 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 applic... |
package com.atguigu.gmall.sms.service.impl;
import com.atguigu.gmall.sms.entity.SkuFullReductionEntity;
import com.atguigu.gmall.sms.entity.SkuLadderEntity;
import com.atguigu.gmall.sms.mapper.SkuFullReductionMapper;
import com.atguigu.gmall.sms.mapper.SkuLadderMapper;
import org.springframework.beans.factory.annotati... |
// Copyright (c) 2017, 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.code;
import com.android.tools.r8.cf.CfPrinter;
import com.android.tools.r... |
package com.baeldung.jhipster.gateway.config;
import io.github.jhipster.config.JHipsterConstants;
import io.github.jhipster.config.JHipsterProperties;
import com.hazelcast.config.*;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.Hazelcast;
import org.slf4j.Logger;
import org.slf4j.LoggerFacto... |
package com.leetcode.math.medium;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.ArgumentsProvider;
import org.junit.jupiter.params.provider.ArgumentsSource;
import... |
/*
* #!
* Ontopia Engine
* #-
* Copyright (C) 2001 - 2013 The Ontopia 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... |
package com.app.repository;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
/**
* Select PreparedStatement JDBC Example
*
* @author Ramesh Fadatare
*
*/
public class DeleteStatementExample {
private static final String QUERY = "delete from users where id=? ";
... |
package com.shenhua.comlib.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.su... |
// Copyright 2020 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 in ... |
package org.mozilla.jmarionette.app;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
s... |
package msteamsnotifications.teamcity;
import jetbrains.buildServer.serverSide.PropertiesProcessor;
import jetbrains.buildServer.serverSide.RunType;
import java.util.Map;
public class MockRunType extends RunType {
private String description = "Runner for Ant build.xml files";
private String name = "Ant";
private... |
/*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package com.github.zhangyingwei.solid.exception;
/**
* @author zhangyw
* @date 2018/7/3
*/
public class SolidException extends Exception {
public SolidException() {
super();
}
public SolidException(String message) {
super(message);
}
public SolidException(String message, Throwa... |
package cz.metacentrum.perun.core.blImpl;
import cz.metacentrum.perun.core.api.Attribute;
import cz.metacentrum.perun.core.api.AttributeDefinition;
import cz.metacentrum.perun.core.api.AttributesManager;
import cz.metacentrum.perun.core.api.Facility;
import cz.metacentrum.perun.core.api.Group;
import cz.metacentrum.pe... |
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
/**
* Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com)
* 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/license... |
package com.Whodundid.core.windowLibrary.windowTypes;
import com.Whodundid.core.windowLibrary.windowTypes.interfaces.IActionObject;
import com.Whodundid.core.windowLibrary.windowTypes.interfaces.IWindowObject;
import net.minecraft.client.gui.ScaledResolution;
//Author: Hunter Bragg
public abstract class ActionWindow... |
/*
Copyright 2021 JD Project Authors. Licensed under Apache-2.0.
Copyright 2019 The Vitess 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
... |
package cn.com.wewin.modules.system.model;
import lombok.Data;
/**
* 包含 SysUser 和 SysDepart 的 Model
*
* @author sunjianlei
*/
@Data
public class SysUserSysDepartModel {
private String id;
private String realname;
private String workNo;
private String post;
private String telephone;
privat... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.2
//
// <auto-generated>
//
// Generated from file `userpost.ice'
//
// Warning: do not edit this file.
//
// </auto-generated>
//
package com.github.aloxc.user.post;
public interface Userpost extends com.zeroc.Ice.Object
{
String value... |
package net.sadovnikov.mbf4j;
public class Address {
protected String id;
protected String name;
public Address(String id, String name) {
this.id = id;
this.name = name;
}
public String name() {
return name;
}
public String id() {
return id;
}
@O... |
package org.uma.jmetal.algorithm.multiobjective.nsgav;
//import org.moeaframework.core.Population;
import org.uma.jmetal.algorithm.impl.AbstractGeneticAlgorithm;
import org.uma.jmetal.algorithm.multiobjective.nsgav.NSGAVBuilder;
import org.uma.jmetal.operator.CrossoverOperator;
import org.uma.jmetal.operator.MutationO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.