text stringlengths 7 995k |
|---|
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/*
* Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
*
* 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 abov... |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2020 DBeaver Corp and others
*
* 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/LICE... |
/*
* Copyright 2002-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
// ============================================================================
//
// Copyright (C) 2006-2019 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... |
package pl.kuglin.algorithm;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class MaxSubarrayTest {
@Test
public void findMaximumSubarray() {
Double[] arr = {2.0, 5.0, -3.0, -2.0, 4.0, 3.0, -8.0, 1.0};
MaxSubarray.Result maximumSubarray = MaxSubarray.findMaximumSu... |
package network;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.rmi.Naming;
import main.Log;
/**
* @author Sebastian Reith
*/
public class Client {
private InetAddress ip;
public Client(InetAddress ip){
this.ip = ip;
}
public void declareWar(int idOfOtherVillage){
try{... |
package demo.service.interfaces.bs;
/**
* 用户角色数据接口
*
* @author 苟治国
**/
public interface UserRoleService {
} |
package com.interview.string;
/**
* Date 07/08/2015
* @author tushar_v_roy
*
* Given a string like heads print all combination of abbreviation
* Output should be
* h1ads
* h2ds
* h3s
* he1ds
* he2s
* hea1s
*/
public class WordAbbreviationCombination {
public void shorten(char input[]){
for(int... |
/*
* 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.
*/
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distribute... |
package de.snaggly.bossmodellerfx;
import java.io.*;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
/**
* Configuration structure for BOSSModellerFX.
* This class is a true pure singleton.
* @author Omar Emshani
*/
public class BOSS_Config {
//List of currently changeable settings.
... |
/**
* This package and any and all sub-packages contains strictly internal classes for this Chronicle library.
* Internal classes shall <em>never</em> be used directly.
* <p>
* Specifically, the following actions (including, but not limited to) are not allowed
* on internal classes and packages:
* <ul>
* ... |
// Copyright 2021 The Apache Software 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 applicable law o... |
package org.smoothbuild.util;
import static com.google.common.truth.Truth.assertThat;
import static org.smoothbuild.util.Lists.list;
import java.util.List;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
@SuppressWarnings("ClassCanBeStatic")
public class CollectionsTest {
@Nested
class 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 com.mythtrad.proj3.stack_2;
/**
* @Author:Yerik Xiang
* @Date:2020/9/25 10:55
* @Desc:
*/
public class Run {
public static void main(String[] args) {
MyStack myStack = new MyStack();
P p = new P(myStack);
C r1 = new C(myStack);
C r2 = new C(myStack);
C r3 = new C... |
package net.minecraft.core;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
public class ItemBlock extends Item
{
public ItemBlock(int i)
{
super(i);
field_272_a = i + 256;
... |
package org.kyojo.schemaOrg.m3n3.doma.core.container;
import org.seasar.doma.ExternalDomain;
import org.seasar.doma.jdbc.domain.DomainConverter;
import org.kyojo.schemaOrg.m3n3.core.impl.ITEM_LIST_ORDER;
import org.kyojo.schemaOrg.m3n3.core.Container.ItemListOrder;
@ExternalDomain
public class ItemListOrderConverter... |
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.imgproc;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.Mat;
import org.opencv.core.MatOfFloat;
import org.opencv.core.MatOfInt;
import org.opencv.core.MatOfInt4;
import org.opencv.core.MatOfPoint;
import org.op... |
package com.ren.teamall.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.annotat... |
//
// Getdown - application installer, patcher and launcher
// Copyright (C) 2004-2016 Getdown authors
// https://github.com/threerings/getdown/blob/master/LICENSE
package com.threerings.getdown.data;
import java.awt.Color;
import java.awt.Rectangle;
import java.io.*;
import java.lang.reflect.Method;
import java.net.... |
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... |
package cn.pengitong.sunshine.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import ... |
package com.github.florent37.glidepalette;
import android.graphics.Bitmap;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.TransitionDrawable;
import android.os.Build;
import android.support.annotation.IntDef;
import android.support.annotation... |
package com.jkyeo.toolkits;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
/**
* <b>类名称:</b> ShellUtils <br/>
* <b>类描述:</b> Shell命令执行工具<br/>
* <b>创建人:</b> 林肯 <br/>
* <b>修改人:</b> 编辑人 <br/>
* <b>修改时间:</b> 2015年07月... |
package cat.nyaa.rpgitems.minion.database;
import cat.nyaa.nyaacore.configuration.FileConfigure;
import cat.nyaa.nyaacore.orm.DatabaseUtils;
import cat.nyaa.nyaacore.orm.WhereClause;
import cat.nyaa.nyaacore.orm.backends.BackendConfig;
import cat.nyaa.nyaacore.orm.backends.IConnectedDatabase;
import cat.nyaa.nyaacore.... |
package main;
import java.util.*;
public class CFG {
private char startSymbol;
/* A list of all terminal symbols */
private List<Character> terminals;
/* A HashMap of all non-terminals in the CFG, where the key is each non-terminal's symbol */
private HashMap<Character, NonTerminal> nonTerminal... |
package com.nephelo.common.util;
import com.alibaba.fastjson.JSONObject;
import com.github.nkzawa.socketio.client.IO;
import com.github.nkzawa.socketio.client.Socket;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import java.util.Map;
/**
* WebSocket
*/
public class WssClientUtil {
private s... |
package com.insightfullogic.java8.examples.chapter8.lambdabehave.example;
import java.util.Stack;
import static com.insightfullogic.java8.examples.chapter8.lambdabehave.Lets.describe;
// BEGIN StackSpec
public class StackSpec {{
describe("a stack", it -> {
it.should("be empty when created", expect -> {... |
package com.sequenceiq.it.cloudbreak.action.v4.connector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.sequenceiq.it.cloudbreak.CloudbreakClient;
import com.sequenceiq.it.cloudbreak.action.Action;
import com.sequenceiq.it.cloudbreak.context.TestContext;
import com.sequenceiq.it.cloudbreak.dto.c... |
package LeetCode0024_Swap_Nodes_in_Pairs;
public class Solution {
public ListNode swapPairs(ListNode head) {
if (head == null || head.next == null) return head;
ListNode pre1 = null;
ListNode pre2 = head;
ListNode cur = head.next;
ListNode h = cur;
while (pre2 != nul... |
/*
* 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 Tiles.Interior.HouseWall.Blue;
import Graphics.Assets;
import Tiles.Tile;
public class HouseWallMiddleLeftBlue extends Tile {
public HouseWallMiddleLeftBlue(int id) {
super(Assets.houseWallMiddleLeftBlue, id, true);
}
} |
package com.danielcsant.gitlab.model;
import java.sql.Date;
public class ProjectMetric {
private Date metricDate;
// CFD
private int open;
private int toDo;
private int doing;
private int desplegadoEnTest;
private int desplieguePendiente;
private int desplegado;
private int clos... |
/*
* Copyright (C) 2017 Nick Travers
*
* 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 com.tinify;
public class ClientException extends Exception {
public ClientException() {
super();
}
public ClientException(final Throwable t) {
super(t);
}
public ClientException(final String message, final String type, final int status) {
super(message, type, statu... |
/*
* The MIT License
*
* Copyright 2014-2017 TweetWallFX
*
* 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,... |
package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* SDCustomerPortfolioActivateInputModelServiceDomainServiceCon... |
package io.github.angrylid.mall.jwt;
public enum UserRole {
ADMIN,
STAFF
} |
package edu.princeton.cs.exercise.chapter3_2;
import edu.princeton.cs.algs4.BST;
import edu.princeton.cs.algs4.StdDraw;
/**
* 3.2.38 Tree drawing. Add a method draw() to BST that draws BST figures in the style
* of the text. Hint : Use instance variables to hold node coordinates, and use a recursive
* method to se... |
package br.com.hexacta.desafio.contabilone.server.socket;
import br.com.hexacta.desafio.contabilone.server.domains.MovieDTO;
import br.com.hexacta.desafio.contabilone.server.services.ApiImdbMovieService;
import br.com.hexacta.desafio.contabilone.server.services.CropperMovieService;
import br.com.hexacta.desafio.contab... |
package baekjoon;
import java.io.*;
import java.util.StringTokenizer;
// @author : blog.naver.com/kerochuu
// @date : 2021. 1. 23.
public class 나는야포켓몬마스터 {
private static class Node {
int num;
String name;
Node(int num, String name) {
this.num = num;
this.name = name;
}
}
pri... |
/*
* 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 ... |
/*
* Copyright (c) 2002-2020 Gargoyle Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
package com.larkmt.cn.admin.tool.flinkx.reader;
import java.util.Map;
/**
* oracle reader 构建类
*
* @author zhouhongfa@gz-yibo.com
* @version 1.0
* @since 2019/8/2
*/
public class OracleReader extends BaseReaderPlugin implements FlinkxReaderInterface {
@Override
public String getName() {
return "o... |
/*
* 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.cloud.order;
import com.cloud.common.config.FeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import o... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE190_Integer_Overflow__int_getQueryString_Servlet_multiply_67a.java
Label Definition File: CWE190_Integer_Overflow__int.label.xml
Template File: sources-sinks-67a.tmpl.java
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: getQueryString_Servlet Parse id pa... |
package kuanweitw.github.io.ananas.editimage.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
import java.uti... |
package cn.stylefeng.roses.system.modular.mapper;
import cn.stylefeng.roses.system.modular.entity.ExamProblemBank;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 考试题库表 Mapper 接口
* </p>
*
* @author Hyer
* @since 2019-11-26
*/
public interface ExamProblemBankMapper extends BaseMapper<ExamPro... |
package com.example.recyclerview.activity;
import android.content.Intent;
import android.os.Bundle;
import android.speech.RecognizerIntent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import android.widget.Toast;
import com.example.recyclerview.R;
import com.example.recycle... |
package com.oculussoftware.api.ui.html;
import com.oculussoftware.util.StringEnum;
import com.oculussoftware.api.sysi.OculusException;
/*
* $Workfile: AlignKind.java $
* Description: String Enumeration of HTML AlignKinds.
*
* Copyright 1-31-2000 productmarketing.c... |
package tech.xuanwu.northstar.integrated;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.c... |
/*
* Copyright 2018-2019 adorsys GmbH & Co KG
*
* 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 water.api;
import hex.SplitFrame;
import water.Key;
import water.api.KeyV3.FrameKeyV3;
public class SplitFrameV3 extends RequestSchema<SplitFrame, SplitFrameV3> {
@API(help="Job Key")
public KeyV3.JobKeyV3 key;
@API(help="Dataset")
public FrameKeyV3 dataset;
@API(help="Split ratios - resulting num... |
/**
* 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 m... |
package org.springframework.http.client.support;
import java.io.IOException;
import java.nio.charset.Charset;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpRequest;
import org.springframework.http.client.ClientHttpRequestExecution;
import org.springframework.http.client.ClientHttpRe... |
// Copyright 2019 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 ... |
/*
* 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.thingsboard.server.common.data.parcel;
import lombok.EqualsAndHashCode;
import org.thingsboard.server.common.data.HasName;... |
package seedu.address.logic.commands;
import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.address.testutil.TypicalMeetings.getTypicalMeetingBook;
import static seedu.address.testutil.TypicalPersons.getTypicalAddressBook;
import org.junit.jupiter.api.Test;
import seedu... |
/************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
* Use is subject to license terms.
*
* Licensed under the Apache License, Version 2.0 (the "Lic... |
package cli.Sequence_Analysis;
import picocli.CommandLine.ArgGroup;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;
import picocli.CommandLine.Parameters;
import java.util.concurrent.Callable;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.psi.impl;
import com.intellij.openapi.util.RecursionGuard;
import com.intellij.openapi.util.RecursionManager;
import com.intellij.openapi.util.text.StringUti... |
/*
* Copyright 2012-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/**
* Copyright 2013 Douglas Campos, 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/licenses/LICENSE-2.0
*
* Unless requi... |
/*
* Copyright 2017 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package statico;
public class Persona {
// variabile di classe
public static String variabileStatica;
// variabili d'istanza
private String nome;
private String cognome;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getCognome() {
retu... |
/*
* Copyright 2018-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 applicabl... |
/**
* Copyright 2019-2999 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requir... |
/**
* CloudMapping - Sistema de Extração de Dados de Mapeamento dos Experimentos em Computação em Nuvem
*
* Copyright (c) AssertLab.
*
* Este software é confidencial e propriedade da AssertLab. Não é permitida sua distribuição ou divulgação
* do seu conteúdo sem expressa autorização do AssertLab. Este arquivo ... |
package com.denizenscript.denizen.events.item;
import com.denizenscript.denizen.objects.EntityTag;
import com.denizenscript.denizen.objects.ItemTag;
import com.denizenscript.denizen.objects.LocationTag;
import com.denizenscript.denizen.events.BukkitScriptEvent;
import com.denizenscript.denizencore.objects.ObjectTag;
i... |
package com.example.Concurrent;
import java.util.concurrent.CountDownLatch;
public class LocalCacheTest {
public static void main(String[] args) throws InterruptedException {
long start = System.currentTimeMillis();
LocalCache localCache = new LocalCache();
int n = 500; //线程数
int m... |
/**
* Copyright 2018-2028 Akaxin Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.app.aqoong.smsreport;
public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f010... |
package br.com.fernando.chapter02_networkingAndPersistenceStorage.part08_creatingVolume;
public class Part02 {
// Another option to share the volume between containers is the -volumes-from switch.
// If one of your containers has volumes mounted already, by using this option we can instruct Docker to use the ... |
package pl.zankowski.iextrading4j.client.rest.request.stocks.v1;
import pl.zankowski.iextrading4j.api.stocks.v1.KeyStats;
import pl.zankowski.iextrading4j.client.rest.manager.RestRequest;
import pl.zankowski.iextrading4j.client.rest.manager.RestRequestBuilder;
import pl.zankowski.iextrading4j.client.rest.request.IEXCl... |
package mezz.jei.gui.ghost;
import com.mojang.blaze3d.vertex.DefaultVertexFormat;
import com.mojang.blaze3d.vertex.PoseStack;
import javax.annotation.Nullable;
import java.util.List;
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.VertexFormat;
import mezz.jei.input.UserInput;
import... |
package org.jproggy.snippetory.toolyng.test;
import static java.util.Collections.emptySet;
import java.io.IOException;
import java.io.PrintStream;
import java.io.Writer;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.jproggy.snippetory.Template;
public class TestRecorder implements... |
/*
The MIT License
Copyright (c) 2004-2015 Paul R. Holser, Jr.
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, mod... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... |
package pl.edu.pjatk.pamo.skrawek.rest.config;
import org.junit.Test;
import okhttp3.OkHttpClient;
import static org.junit.Assert.assertNotNull;
public class UnsafeOkHttpClientTest {
@Test
public void Should_CreateOkHttpClient() {
//Given
//When
OkHttpClient result = UnsafeOkHttpCl... |
/*
* Copyright 2000-2012 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... |
public class TestThread {
public static Object Lock1 = new Object();
public static Object Lock2 = new Object();
public static void main(String args[]) {
ThreadDemo1 T1 = new ThreadDemo1();
ThreadDemo2 T2 = new ThreadDemo2();
T1.start();
T2.start();
}
private static class T... |
package org.endeavourhealth.sftpreader.implementations.tpp;
import org.endeavourhealth.sftpreader.implementations.SftpBatchDateDetector;
import org.endeavourhealth.sftpreader.implementations.tpp.utility.ManifestRecord;
import org.endeavourhealth.sftpreader.implementations.vision.VisionFilenameParser;
import org.endeav... |
/*
* 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 ... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... |
package br.com.siecola.messageprovider.controller;
import br.com.siecola.messageprovider.exception.UserAlreadyExistsException;
import br.com.siecola.messageprovider.exception.UserNotFoundException;
import br.com.siecola.messageprovider.model.User;
import br.com.siecola.messageprovider.repository.UserRepository;
import... |
/*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... |
/*
* Copyright 2012-2014 eBay Software Foundation and selendroid committers.
*
* 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 re... |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3... |
package top.naccl.entity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;
/**
* @Description: 友链
* @Author: Naccl
* @Date: 2020-09-08
*/
@NoArgsConstructor
@Getter
@Setter
@ToString
public class Friend {
private Long id;
private String... |
package ru.mail.polis.dmitreemaximenko;
import jdk.incubator.foreign.MemoryAccess;
import jdk.incubator.foreign.MemorySegment;
import ru.mail.polis.BaseEntry;
import ru.mail.polis.Entry;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.NavigableMap;
import java.util.NoSu... |
/*
* 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.dhbw.rahmlab.nativelibloader.impl.nativelibproviding;
import de.dhbw.rahmlab.nativelibloader.impl.nativeparsing.NativeLibsD... |
/*
* Copyright (c) 2007, 2018, 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 ... |
package com.wu.admin.pojo.quartz.dto;
import java.io.Serializable;
/**
* Description : 返回dto
* Time : 2017 10 30 下午2:58
*
* @author : wubo
* @version : 1.0.0
*/
public class JobResponseDTO implements Serializable {
private String reqSequence;
/**
* 任务名称代码
*/
private String jobNameCode;... |
/*
* Copyright (c) 2016, WebientSoft and/or its affiliates. All rights reserved
* WebientSoft PROPRIETARY/CONFIDENTIAL.Use is subject to license terms.
*/
package com.webientsoft.esykart.product.repository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import com.webientsoft.esykart... |
/*
* 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
* (at your option) any later version.
*
* This program is distributed in the hope that it w... |
package edu.uiowa.kind2;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.Optional;
public class Kind2Element
{
/**
* Kind2 json output for this object
*/
private final String json;
private final JsonElement jsonElement;
private... |
package com.example.graphtutorial;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class CalendarFragment extends Fragment {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.