text stringlengths 7 1.01M |
|---|
package soot.shimple;
/*-
* #%L
* Soot - a J*va Optimization Framework
* %%
* Copyright (C) 2003 Navindra Umanee <navindra@cs.mcgill.ca>
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software ... |
/* Canto Compiler and Runtime Engine
*
* CantoBlock.java
*
* Copyright (c) 2018 by cantolang.org
* All rights reserved.
*/
package canto.lang;
import canto.runtime.Context;
/**
* A CantoBlock is a container whose children are Canto statements.
*
* @author Michael St. Hippolyte
*/
public class CantoBlock... |
/*
* Copyright 2016-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
package com.littlenb.snowflake.worker;
import com.littlenb.snowflake.sequence.IdGenerator;
/**
* Represents a worker id assigner for {@link IdGenerator}
*
* @author sway.li
*/
public interface WorkerIdAssigner {
/**
* Assign worker id for {@link IdGenerator}
*
* @return assigned worker id
... |
/*
* 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.xy.chat.auth;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;
/**
* Created by XiuYang on 2016/10/13.
*/
public class Worker ... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.vijani.donuts;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.servlet.ServletCon... |
package com.android.tools.checker.agent;
class TestClassLoader extends ClassLoader {
TestClassLoader(ClassLoader parent) {
super(parent);
}
public Class<?> defineClass(String name, byte[] buffer) {
return defineClass(name, buffer, 0, buffer.length);
}
}
|
/**
* Copyright 2017 The jetcd authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
package com.example.demo15.qualifier;
import javax.inject.Qualifier;
/**
*/
@Qualifier
public @interface QualifierCarA {
}
|
/*
* 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 ... |
/*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... |
/*
* 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 me.wcy.music.activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.PreferenceFragment;
import me.wcy.music.BuildConfig;
import me.wcy.music.R;
public class AboutActivity extends BaseActivity {
@Override
... |
/*
* Copyright 2010-2013 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... |
/*
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.natj.documents.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public class NotFoundException extends RuntimeException {
public NotFoundException() {
}
public NotFoundExcepti... |
package com.loeyae.cloud.demo.service.impl;
import com.loeyae.cloud.demo.entity.Test;
import com.loeyae.cloud.demo.mapper.TestMapper;
import com.loeyae.cloud.demo.service.ITestService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实... |
/*
* Copyright 2019 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 hypelabs.com.hypepubsub;
import android.content.Context;
import android.widget.ArrayAdapter;
import java.util.ArrayList;
/**
* This class holds the data structures required to control the UI. These data structure were not defined as members
* of the MainActivity to avoid complications due to the Android a... |
// Copyright 2017 JanusGraph Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
/*
* 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 2019 Am... |
package br.com.zupacademy.luiz.mercadolivre.produto.opiniao;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import javax.validation.Valid;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.annotation.A... |
/* Copyright © 2015 Matthew Champion
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 conditions and the follow... |
package io.ona.kujaku.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.util.Log;
import java.net.InetAddress;
/**
* Created by Ephraim Kigamba - ekigamba@ona.io on 03/10/2018
*/
public abstract class NetworkUtil {
public static final String TAG = NetworkUtil.class... |
try {
System.out.println("Parte 1");
} finally {
System.out.println("Parte 2");
}
return false;
//Já
try {
System.out.println("Parte 1");
return false;
} finally {
System.out.println("Parte 2");
return true;
}
//Será transformado em:
try {
System.out.println("Parte 1");
} finally {
S... |
package com.github.yoojia.inputs.verifiers;
import org.junit.Assert;
import org.junit.Test;
/**
* @author Yoojia Chen (yoojiachen@gmail.com)
* @since 1.7
*/
public class MACTestCase {
@Test
public void testPassed() throws Exception {
MACAddressVerifier verifier = new MACAddressVerifier();
... |
/*
* Copyright © 2015 - 2021 ReSys (info@dialob.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
package team.uptech.motionviews.widget.entity;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.PointF;
import android.support.annotation.IntRange;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import team.u... |
package com.mobimentum.liveedgedetection.activity;
import android.Manifest;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.ContentResolver;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.graphics.B... |
/*
* (C) Copyright IBM Corp. 2020.
*
* 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 w... |
package exo.main;
import exo.ticket.Ticket;
import exo.article.nonAlimentaire.NonAlimentaire;
import exo.article.alimentaire.Alimentaire;
import exo.exceptions.negatifException.NegatifException;
public class Main
{
public static void main(){
try{
Ticket t=new Ticket();
NonAlimentai... |
/*
* Copyright (c) 2013-2014. Powered by http://oakhole.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 ... |
package com.codecraftsmen.midgard;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class MidgardApplicationTests {
@Test
public void ... |
import com.hazelcast.core.ExecutionCallback;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IExecutorService;
//tag::mmc[]
public class MasterMemberCallback {
public static void main(String[] args) {
HazelcastInstance hz = Hazelcast.new... |
/**
*/
package petstore.implementation;
import retrofit2.Retrofit;
import com.google.common.reflect.TypeToken;
import com.microsoft.azure.AzureServiceResponseBuilder;
import com.microsoft.azure.CloudException;
import com.microsoft.rest.ServiceCall;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest... |
package io.javaoperatorsdk.operator.config.runtime;
import io.fabric8.kubernetes.client.CustomResource;
class TestCustomResource extends CustomResource {}
|
/*
* Copyright 2016 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package cn.pandacoder.common.constant;
public class ProductConstant {
public enum AttrEnum {
ATTR_Type_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性");
AttrEnum(int code, String msg) {
this.code = code;
this.msg = msg;
}
private int code;
private String ... |
/*
* Copyright 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 applica... |
/*
* Copyright 2019 is-land
*
* 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 w... |
package com.nirvanaxp.types.entities.checkmate;
import java.io.Serializable;
import java.util.List;
public class ImportMenu implements Serializable{
private List<MenuSections>menuSections;
private String name;
private String id;
public List<MenuSections> getMenuSections() {
return menuSections;
}
public void setMen... |
package samy.comptecafet.systeme;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Date;
/**
* Created by samy on 17/04/17.
*/
public abstract class Operation implements Parcelable {
private Date date;
private TypeOperation typeOperation;
private double montant;
public ... |
// SPDX-License-Identifier: Apache-2.0
// YAPION
// Copyright (C) 2019,2020 yoyosource
package yapion.hierarchy.types;
import yapion.annotations.deserialize.YAPIONLoad;
import yapion.annotations.serialize.YAPIONSave;
import yapion.exceptions.YAPIONException;
import yapion.hierarchy.typegroups.YAPIONAnyType;
import ya... |
package com.spring.cloud.sleuth.zuul.main;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
public class ServletInitializer extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder co... |
package com.template.contracts;
import net.corda.testing.node.MockServices;
import org.junit.Test;
public class ContractTests {
private final MockServices ledgerServices = new MockServices();
@Test
public void dummyTest() {
}
} |
package PBExam.ProgrammingBasicsOnlineExam27and28July2019;
import java.util.Scanner;
public class LuggageTax {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
//Първи ред – ширина на куфара – цяло число в интервала от [1… 10]
//2. Втори ред – височина на ... |
/**
*
*/
package org.pjay.springcore.singleton.prototype.app2;
/**
* @author Vijay
*
*/
public abstract class Foo2 {
public abstract Bar2 buildBean();
}
|
package models.tarot;
public class MajorArcanaCard extends TarotCard<MajorArcanaNumeral, MajorArcana> {
public MajorArcanaCard(MajorArcana arcana) {
super(arcana.getRank(), arcana);
}
public String getMeaning() {
return this.getSuit().getMeaning();
}
public String toString() {
return this.getR... |
// Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.models;
import static com.yugabyte.yw.common.ModelFactory.createAlertDefinitionGroup;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamc... |
/*
* 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 (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import frc.robot.Constants;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com... |
package com.spotify.sdk.android.authentication.sample;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import java.net.URI;
public class SkipLoginActivity extends AppCompatActivity {
static String bestOfUR... |
package org.apache.hadoop.hbase;
import java.io.DataInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.KeyValue.KVComparator;
import org.apac... |
/*
* Copyright 2015-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.cursedcauldron.unvotedandshelved.client.entity;
import com.cursedcauldron.unvotedandshelved.client.entity.animation.Animation;
import com.cursedcauldron.unvotedandshelved.client.entity.animation.AnimationHelper;
import com.cursedcauldron.unvotedandshelved.client.entity.animation.Keyframe;
import com.cursed... |
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH 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 without restriction, including without limitation the r... |
/*
* 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... |
/*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2015
*/
package com.ibm.streamsx.topology.test.messaging.mqtt;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeTrue;
import java.io.File;
import java.text.SimpleDateFormat;
i... |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Mi... |
package com.jakeesveld.flashstudyguide;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
pub... |
package com.java.lifelog_backend;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TimePicker;
import android.os.Bundle;
import androidx.annotation.Nullable;
import android.widget.TimePicker.OnTimeCha... |
package com.lei.spring4.aop;
import com.lei.spring4.aop.base.CglibProxy;
import com.lei.spring4.aop.base.ForumService;
import com.lei.spring4.aop.base.ForumServiceImpl;
import com.lei.spring4.aop.base.PerformaceHandler;
import org.junit.Test;
import java.lang.reflect.Proxy;
public class TestFromService {
@Test
... |
/*
* This file is part of JGAP.
*
* JGAP offers a dual license model containing the LGPL as well as the MPL.
*
* For licensing information please see the file license.txt included with JGAP
* or have a look at the top of class org.jgap.Chromosome which representatively
* includes the JGAP license policy applicab... |
package com.taoyuanx.sso.client.token;
import com.taoyuanx.sso.client.dto.SSOUser;
import com.taoyuanx.sso.client.ex.SSOTokenException;
/**
* @author dushitaoyuan
* @desc sso token 校验接口
* @date 2021/1/5
*/
public abstract class AbstractSSOTokenVerify {
public abstract SSOUser parseToken(String token) throws... |
package com.navercorp.pinpoint.plugin.cxf.interceptor;
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
import com.navercorp.pinpoint.bootstrap.context.MethodDescriptor;
import com.navercorp.pinpoint.bootstrap.context.SpanEventRecorder;
import com.navercorp.pinpoint.bootstrap.context.Trace;
import com.na... |
/*
* 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.rock.reliantdispatch.Constants;
import com.rock.reliantdispatch.R;
public class VehiclesConfig {
public static final int[] VEHICLE_LISTING_TYPE_COLOR_ARRAY = {R.color.newState, R.color.pickupState, R.color.deliveredState,
R.color.card... |
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package org.apache.hadoop.hive.metastore.api;
import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;... |
package com.ruoyi.common.constant;
/**
* 通用常量信息
*
* @author ruoyi
*/
public class CommonConstant
{
/**
* 通用成功标识
*/
public static final String SUCCESS = "0";
/**
* 通用失败标识
*/
public static final String FAIL = "1";
/**
* 登录成功
*/
public static final String LOGI... |
/*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General Public... |
// Copyright 2012 Google 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 applicable... |
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2018 Adobe
~
~ 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/li... |
package com.atguigu.gulimall.member.dao;
import com.atguigu.gulimall.member.entity.MemberStatisticsInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员统计信息
*
* @author guoyuhang
* @email 15512702732@163.com
* @date 2021-01-26 19:57:22
*/
@Map... |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... |
package org.cipango.ims;
import java.net.InetAddress;
import org.cipango.diameter.AVP;
import org.cipango.diameter.ApplicationId;
import org.cipango.diameter.api.DiameterFactory;
import org.cipango.diameter.base.Common;
import org.cipango.diameter.node.DiameterRequest;
import org.cipango.diameter.node.Node;
import or... |
/*
* Copyright (c) 2015 SDL, Radagio & R. Oudshoorn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
package no.cantara.docsite.web;
import io.undertow.server.HttpServerExchange;
import no.cantara.docsite.cache.CacheStore;
import no.ssb.config.DynamicConfiguration;
public interface WebHandler {
boolean handleRequest(DynamicConfiguration configuration, CacheStore cacheStore, ResourceContext resourceContext, WebC... |
package net.optionfactory.spring.context.conditionals;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.Map;
import java.util.stream.Stream;
import or... |
/**
* Copyright (c) 2014 xTradesoft Gmbh. All rights reserved.
*/
package com.xtradesoft.dlp.base.tablemvc;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionListener;
import java.util.Set;
import javax.swing.DefaultCellEditor... |
package io.github.ihelin.demo.other.jsoup;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import java.io.IOException;
/**
* JsoupTest
*
* @author iHelin
* @since 2017/8/12 23:02
*/
public class JsoupTest1 {
public static void main(String[] args) throws IOException {
Document doc1 = Jsoup.... |
/**
* Copyright (C) 2012-2020 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 b... |
/**
* Copyright 2007-2014 Ensift Pty Ltd as trustee for the Avaz Trust and other 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/LICENS... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import javax.annotation.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl... |
/**
* Mule Development Kit
* Copyright 2010-2011 (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.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.a... |
package xyz.eazyfree.common.demo.verifycode;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Created by ZhaoZhi qiang
*
* @Date 2018/4/19.
*/
@org.springframewo... |
package com.bn.Sample6_2;
public class Vector3f
{
float x;
float y;
float z;
public Vector3f(float x,float y,float z)
{
this.x=x;
this.y=y;
this.z=z;
}
public void add(Vector3f temp)
{
this.x+=temp.x;
this.y+=temp.y;
this.z+=temp.z;
}
}
|
package net.minecraft.entity.monster;
import java.util.List;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.ai.attributes.AttributeModifierMap;
import net.minecraft.entity.ai.attributes.Attributes;
import net.minecraft.entity.player.ServerPlayerEntity;
import net.minecraft.network.play.server.SCha... |
package com.example.administrator.weathertest.activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
impo... |
/**
* 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... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.adapters.repositoryservices.igc.clientlibrary.model.generated.v11501;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.odpi.openmetadata.adapters.repositoryservices.i... |
/*
* 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 WebService;
import GrafoDirigido.Grafo;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.P... |
package club.minnced.discord.rpc;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
public class DiscordUser extends Structure {
private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("userId", "username... |
package org.globus.cog.abstraction.impl.scheduler.slurm;
import java.io.IOException;
import java.io.Writer;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Date;
import org.apache.log4j.Logger;
import org.globus.cog.abstraction.impl.common.execution.WallTime;
import org.globus.cog.abst... |
/*
* Copyright 2021 VMware, Inc.
* SPDX-License-Identifier: Apache License 2.0
*/
package com.vmware.avi.sdk.model;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
/**
* Th... |
package AlgoExSolutions.Hard.FourNumberSum;
import java.util.*;
/**
* * Four Number Sum
*/
class Program {
static class Pair {
int first;
int second;
public Pair(int first, int second) {
this.first = first;
this.second = second;
}
}
/**
* * TC: O(n^2) Average, O(n^3) Worst
... |
package com.crime_mapping.electrothon.sos;
import com.sinch.android.rtc.SinchClient;
import com.sinch.android.rtc.SinchError;
import com.sinch.android.rtc.calling.Call;
import com.sinch.android.rtc.calling.CallClient;
public class SinchStatus {
public static class SinchConnected{
public SinchClient client... |
/*
* This file is part of ViaBackwards - https://github.com/ViaVersion/ViaBackwards
* Copyright (C) 2016-2022 ViaVersion and contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, ... |
/*
* Copyright (C) 2017 The Guava Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
package parser.action;
public class ShiftAction extends Action {
public ShiftAction(int number) {
super(number);
}
@Override
public String toString() {
return "s" + getNumber();
}
@Override
public String getActionType() {
return "shift";
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.