text stringlengths 7 1.01M |
|---|
/*
* Copyright 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/*
* Copyright 2020 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
package com.uzm.common.spigot.entities.beam;
import com.google.common.base.Preconditions;
import com.uzm.common.plugin.Common;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.scheduler.BukkitRunnable;
import java.util.HashSet;
import java.util.Iterator;
import ... |
package org.eclipse.jetty.nosql.key_value.memcached;
import org.eclipse.jetty.server.session.AbstractTestServer;
public class KryoSessionSavingValueTest extends AbstractMemcachedSessionSavingValueTest
{
@Override
public AbstractTestServer createServer(int port, int max, int scavenge)
{
return new ... |
package com.merakianalytics.orianna.types.data.staticdata;
import java.util.List;
import com.merakianalytics.orianna.types.data.CoreData;
public class ItemTree extends CoreData {
private static final long serialVersionUID = 6198799968608387701L;
private String header;
private List<String> tags;
@Ove... |
// This is a mutant program.
// Author : ysma
package davi.mutation.mediana.LOI_4;
import java.awt.image.WritableRaster;
import java.util.Arrays;
import davi.genetic.algorithm.Image;
public class Mediana
{
public static void main( java.lang.String[] args )
throws java.lang.Exception
{
}
... |
/*******************************************************************************
* 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... |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
/*
* Copyright (c) 2010-2014 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/lic... |
package org.easyframe.tutorial.lessonb;
import java.util.Collection;
import org.easyframe.enterprise.spring.GenericDao;
import org.easyframe.tutorial.lesson2.entity.Student;
public interface StudentDao extends GenericDao<Student>{
/**
* 批量升级学生
* @param ids
*/
public void gradeUp(Collection<Integer> ids);
}
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE191_Integer_Underflow__int_getCookies_Servlet_sub_22b.java
Label Definition File: CWE191_Integer_Underflow__int.label.xml
Template File: sources-sinks-22b.tmpl.java
*/
/*
* @description
* CWE: 191 Integer Underflow
* BadSource: getCookies_Servlet Read data fro... |
package microtope.pulser;
import static org.junit.jupiter.api.Assertions.*;
import java.io.IOException;
import javax.jms.ConnectionFactory;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.Session;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.junit.jupiter.api.Tag;
i... |
/*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.sensitivity;
import static com.opengamma.strata.collect.Guavate.toImmutableList;
import java.time.LocalDate;
import java.util.ArrayList;
import j... |
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package com.manev.quislisting.domain;
import com.fasterxml.jackson.annotation.JsonBackReference;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import ... |
/*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Copyright © 2019 Cask Data, 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 agreed t... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Certain versions of software and/or documents ("Material") accessible here may contain branding from
* Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
* the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to ... |
package net.paulek.antylogout.utils;
import net.minecraft.server.v1_12_R1.ChatMessageType;
import net.minecraft.server.v1_12_R1.IChatBaseComponent;
import net.minecraft.server.v1_12_R1.PacketPlayOutChat;
import org.bukkit.craftbukkit.v1_12_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
public class C... |
/*
* 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 ... |
package com.atguigu.gmall.ums.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gmall.ums.entity.MemberCollectSpuEntity;
import com.atguigu.core.bean.PageVo;
import com.atguigu.core.bean.QueryCondition;
/**
* 会员收藏的商品
*
* @author lixianfeng
* @email lxf@atguigu.com
* @date 2... |
package jakemarsden.opengl.engine.light;
import jakemarsden.opengl.engine.math.Color3;
import jakemarsden.opengl.engine.math.Vector3;
import org.checkerframework.checker.nullness.qual.NonNull;
public final class SpotLight extends Light {
/** The apex of the cone of light cast by this spotlight */
private @NonNul... |
/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 4.1 */
/* JavaCCOptions: */
package net.sourceforge.pmd.lang.ast;
/** Token Manager Error. */
public class TokenMgrError extends RuntimeException
{
/*
* Ordinals for various reasons why an Error of this type can be thrown.
*/
/**... |
package smalltalk.compiler;
import org.antlr.symtab.Scope;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.ParseTreeWalker;
import smalltalk.misc.Utils;
import smalltalk.vm.Bytecode;
import java.util.ArrayList;
import java.util.List;
public class Compiler {
protected final STSymbolTable symtab;... |
// 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 2016 Alex Andres
*
* 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... |
/*
* 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.fasterxml.jackson.databind.jsontype.deftyping;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.*;
import com.fasterxml.jackson.databind.node.ObjectNode;
public cl... |
/*
* Copyright 2021 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 applicab... |
package br.com.zupacademy.erivelton.transacao.entidade;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
@Entity
public class Estabelecimento {
@Id
@GeneratedValue(strategy ... |
// Copyright © 2016-2022 Andy Goryachev <andy@goryachev.com>
package goryachev.common.util;
import goryachev.common.log.Log;
import java.io.File;
import java.io.FileNotFoundException;
/**
* File-based Settings Provider.
*/
public class FileSettingsProvider
extends SettingsProviderBase
{
protected ... |
package com.weimin.common.util;
/**
* 2015-11-19 11:43:42 判断格式的正确性
*
* @author TJ
*/
public class ValidateUtil extends Validate {
/**
* 包含有字母数字下划线汉字2到30个字符之间
*/
public static final String REGX_REAL_NAME = "[,\\.#@\\\\\\-\\(\\)\\u0020\\w\\u4e00-\\u9fa5、,。()]{2,128}";
public static final String REGX_PHONE_NU... |
/*
* Copyright 2014 The Error Prone 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 ... |
package org.aksw.rdfunit.model.impl;
import com.google.common.collect.ImmutableSet;
import java.util.Collection;
import java.util.Collections;
import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;
import lombok.ToString;
import org.aksw.rdfunit.model.interfaces.Bindin... |
package br.com.ibnetwork.guara;
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.List;
import org.apache.maven.project.MavenProject;
public class MavenUtils
{
@SuppressWarnings("unchecked")
public static ClassLoader getProjectClassLoader(MavenProject project)
throws Exc... |
package SNAct1.cards.enemyBossCards;
import SNAct1.cards.AbstractSNActCard;
import SNAct1.monsters.BossNinian;
import basemod.AutoAdd;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import static SNAct1... |
package org.torproject.android.sample;
import android.app.Application;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.jrummyapps.android.shell.CommandResult;
import com.jrummyapps.android.shell.Shell;
import org.torprojec... |
package peacefulotter.game;
import peacefulotter.engine.components.Camera;
import peacefulotter.engine.components.GameObject;
import peacefulotter.engine.components.PhysicsObject;
import peacefulotter.engine.components.lights.DirectionalLight;
import peacefulotter.engine.components.lights.PointLight;
import peacefulot... |
/*
* Copyright 2020 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... |
/*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2013 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
... |
package com.jbtits.otus.lecture16.frontend.webSocket.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
public class AuthAction extends Action {
@JsonProperty(required = true)
private String login;
@JsonProperty(required = true)
private String password;
public AuthAction() {
... |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.08.30 at 1... |
/*
* MIT License
*
* Copyright (c) 2022 MASES s.r.l.
*
* 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, cop... |
package com.futurewei.alcor.route;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.doNothing;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.*;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.spr... |
package ddb.io.voxelnet.serial;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
/**
* Base type for all array values
*/
public abstract class SeArrayValue extends SeValue
{
private int length;
protected SeArrayValue() {}
protected SeArrayValue(int length)
{
thi... |
/**
* 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 e.x.b;
public interface p<P1, P2, R> {
R invoke(P1 p1, P2 p2);
}
|
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... |
/*
* Copyright 2012-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... |
package itesm.mx.expediciones_biosfera.behavior.activities;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Handler;
import android.support.design.widget.NavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.Fragmen... |
package com.example.goranminov.popmovies.syncMovie;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
/**
* Created by goranminov on 23/04/2017.
*/
public class MovieSyncUtils {
/**
* Helper method to perform a sync immediately using an IntentServic... |
/*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... |
/*
* Copyright 2013 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... |
package cat.xarxarepublicana.hashtagsxrep.infrastructure.repository.jdbc.mapper;
import cat.xarxarepublicana.hashtagsxrep.domain.extraction.TwitterExtraction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface TwitterExtractionMapper {
void insert(@Para... |
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.raed.drawingview.brushes.androidpathbrushes;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.util.Log;
public class Eraser extends PathBrush {
private static final String TAG = "Eraser";
public Eraser(int minSizePx, int maxSizePx) {
super(m... |
package com.vitor.fp;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class Example04Test {
@Test
public void testHigherOrderFunctionResult6(){
Integer value = 2;
Integer expected = 6;
IFunction<Integer, Integer> addFirst = x -> x + value ;
... |
package org.opensrp.register.service.handler;
import static org.mockito.Mockito.inOrder;
import static org.mockito.MockitoAnnotations.initMocks;
import java.util.List;
import org.joda.time.LocalDate;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Test;
import org.jun... |
package ru.job4j.tracker.actions;
import ru.job4j.tracker.StartUI;
import ru.job4j.tracker.Tracker;
import ru.job4j.tracker.input.Input;
public class ExitProgram extends BaseAction {
public ExitProgram(int key, String info) {
super(key, info);
}
@Override
public void execute(Input input, Tra... |
/*
* Copyright 2014-2020 Sayi
*
* 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... |
/*
* Copyright 2020 Anton Tananaev (anton )
*
* 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... |
/*
* 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 ... |
/* 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
* dist... |
package syntheagecco.openehr.sdk.model.generated.geccoserologischerbefundcomposition.definition;
import java.time.temporal.TemporalAmount;
import javax.annotation.processing.Generated;
import org.ehrbase.client.annotations.Entity;
import org.ehrbase.client.annotations.OptionFor;
import org.ehrbase.client.annotations.P... |
package com.callforcode.greenfarm.consts;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class GreenFarmSwitch {
private static boolean sessionAuthentication;
@Value("${green-farm.session.authentication.enable}")
private void... |
/**
* This file is a component of Quartz Powered, this license makes sure any work
* associated with Quartz Powered, must follow the conditions of the license included.
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Quartz Powered
*
* Permission is hereby granted, free of charge, to any person obtaining a cop... |
/*
* Copyright 1999-2011 Alibaba 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 la... |
package com.sequenceiq.cloudbreak.repository;
import java.util.List;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.api.model.DetailedStackStatus;
import com.sequenceiq.cloudbreak.api.model.Status... |
/*
* Copyright © 2013-2019 camunda services GmbH and various authors (info@camunda.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... |
package com.hubspot.singularity.data.history;
import java.util.Collections;
import java.util.List;
import com.google.common.base.Optional;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.hubspot.mesos.JavaUtils;
import com.hubspot.singularity.OrderDirection;
import com.hubspot.singular... |
package com.x.attendance.assemble.control.jaxrs.attendanceadmin;
import com.x.base.core.exception.PromptException;
class AttendanceAdminDeleteException extends PromptException {
private static final long serialVersionUID = 1859164370743532895L;
AttendanceAdminDeleteException( Throwable e, String id ) {
super("系... |
package cl.agriapp.lite.queryside.party.infraestructure.scheduler;
import cl.agriapp.lite.queryside.party.infraestructure.producer.event.PartyCreatedEvent;
import cl.agriapp.lite.queryside.party.infraestructure.producer.handler.PartyEventHandler;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.fact... |
/*******************************************************************************
* Copyright (c) 1991, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/*
Copyright (C) 2001, 2010 United States Government as represented by
the Administrator of the National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.applications.gos.awt;
import gov.nasa.worldwind.applications.gos.*;
import gov.nasa.worldwind.applications.gos.globe.GlobeMod... |
/*****************************************************************
* 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
* ... |
package com.dji.sample.component.mqtt.service;
import com.dji.sample.component.mqtt.model.CommonTopicResponse;
/**
* @author sean.zhou
* @version 0.1
* @date 2021/11/25
*/
public interface IMessageSenderService {
/**
* Publish a message to a specific topic.
* @param topic target
* @param respo... |
/*
* ====================================================================
* 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
... |
package org.http4k.aws.lambda;
import java.util.Collections;
import java.util.Map;
public class ApiGatewayProxyRequest {
public String path;
public String httpMethod;
public Map<String, String> headers = Collections.emptyMap();
public Map<String, String> queryStringParameters = Collections.emptyMap();... |
/* ====================================================================
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 Y... |
package models;
import java.util.Objects;
public class Users {
private int id;
private String name;
private String position;
private String staff_role;
public Users(String name, String position, String staff_role) {
this.name = name;
this.position = position;
this.staff... |
//////////////////////////////////////
// 15 puzzle solver //
// //
// 2015-04-26 //
// Leonardone @ NEETSDKASU //
//////////////////////////////////////
import java.io.*;
import java.util.*;
class Main
{
static boolean[] flags = new boo... |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package ssh;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
public class WriteFile {
public static void main(String[] args) throws Exception {
File file = new File("/home/zhangjin/share/nohup1.out");
if(!file.exists()){
file.createNewFi... |
/*
* Copyright (c) 2004, 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 Softwa... |
/* 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... |
/*
* Copyright 2019 http://www.hswebframework.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/*
* Copyright 2018 NEOautus Ltd. (http://neoautus.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 required by applicab... |
package net.voxelindustry.voidheart.client.model.portalframe;
import net.minecraft.client.texture.Sprite;
import net.minecraft.client.texture.SpriteAtlasTexture;
import net.minecraft.client.util.SpriteIdentifier;
import net.minecraft.util.Identifier;
import net.voxelindustry.voidheart.common.block.PortalFrameStateProp... |
/*
* Copyright 2015 DECOIT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
package org.keycloak.adapters.wildfly;
import io.undertow.security.api.SecurityContext;
import io.undertow.server.HttpServerExchange;
import org.jboss.logging.Logger;
import org.jboss.security.NestableGroup;
import org.jboss.security.SecurityConstants;
import org.jboss.security.SecurityContextAssociation;
import org.j... |
package CSharp.textGen;
/*Generated by MPS */
import jetbrains.mps.text.rt.TextGenDescriptorBase;
import jetbrains.mps.text.rt.TextGenContext;
import jetbrains.mps.text.impl.TextGenSupport;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdap... |
package com.breadwallet.wallet;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.KeyguardManager;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.media.AudioManager;
import android.media... |
package cn.jpush.b.a.b;
import cn.jpush.a.a.bg;
import cn.jpush.a.a.bi;
import cn.jpush.a.a.bj;
import com.google.gson.jpush.annotations.a;
import com.google.protobuf.jpush.c;
public class v extends q {
public static final String a = v.class.getName();
@a
long b;
@a
String c;
final p a(long j... |
package com.uscexp.util.function;
import java.util.Objects;
@FunctionalInterface
public interface CheckedConsumer<T> {
void accept(T var1) throws Exception;
default CheckedConsumer<T> andThen(CheckedConsumer<? super T> var1) {
Objects.requireNonNull(var1);
return (var2) -> {
this.... |
package springboot.samples.datajpa_postgresql;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DataJpaApplication {
public static void main(String[] args) {
SpringApplication.run(DataJpaApplication... |
package com.chuxin.law.ry.server.response;
/**
* Created by AMing on 16/1/27.
* Company RongCloud
*/
public class AddGroupMemberResponse {
private int code;
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
}
|
package jat.coreNOSA.trajectory;
/* JAT: Java Astrodynamics Toolkit
*
* Copyright (c) 2003 National Aeronautics and Space Administration. All rights reserved.
*
* This file is part of JAT. JAT is free software; you can
* redistribute it and/or modify it under the terms of the
* NASA Open Source Agreement
*
... |
package dal.dao;
import core.config.AppConfig;
import core.exceptions.FatalException;
import dal.dao.interfaces.DocumentDao;
import domaine.dto.ChoixMobiliteDto;
import domaine.dto.DocumentDto;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
pu... |
package persistencia;
import com.thoughtworks.xstream.XStream;
import dominio.Reserva;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.Objects;
public class ReservaBD {
private static String caminho = "C:\\Users\\Wallace\\Documents\\NetBeansProjects\\PI 2ºSemestre\\S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.