text stringlengths 7 1.01M |
|---|
/*
* 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) 2011 LinkedIn, 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 agree... |
/*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 2012, Google Inc.
* 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 conditio... |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
package qouteall.imm_ptl.peripheral.altius_world;
import qouteall.q_misc_util.Helper;
import qouteall.imm_ptl.core.IPGlobal;
import net.minecraft.world.GameRules;
import qouteall.q_misc_util.MiscHelper;
public class AltiusGameRule {
public static GameRules.Key<GameRules.BooleanRule> dimensionStackKey;
... |
package com.ittianyu.mvvm.application.d_state_lcee.common.bean;
/**
* Created by 86839 on 2017/10/12.
*/
public class Lcee<T> {
public final Status status;
public final T data;
public final Throwable error;
public Lcee(Status status, T data, Throwable error) {
this.status = status;
... |
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 licenses ... |
package seedu.address.model.module;
import static seedu.address.commons.util.AppUtil.checkArgument;
/**
* Represents the semester a module was taken.
* Guarantees: immutable; is valid as declared in {@link #isValidSemester(String)}
*/
public class Semester {
public static final String MESSAGE_CONSTRAINTS =
... |
/* Copyright 2002-2022 CS GROUP
* Licensed to CS GROUP (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
package com.blamejared.crafttweaker.api.managers;
import com.blamejared.crafttweaker.CraftTweaker;
import com.blamejared.crafttweaker.api.CraftTweakerAPI;
import com.blamejared.crafttweaker.api.annotations.ZenRegister;
import com.blamejared.crafttweaker.api.brackets.CommandStringDisplayable;
import com.blamejared.craf... |
/*
* Copyright 2013-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... |
package com.supergreenowl.blobables.framework;
/**
* User input event for a key being pressed.
* @author luke
*
*/
public class KeyEvent {
public static final byte KEY_UP = 0;
public static final byte KEY_DOWN = 1;
// Providing public members for performance over getter/setter methods
public int keyCode;
... |
/*
* Copyright 2015, Google Inc.
* 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... |
package com.thingple.library.view;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
/**
*
* Created by lism on 2017/8/18.
*/
public class ViewUtil {
public static void openViewForResponse(Activity contex... |
package cn.codethink.xiaoming.exception;
import cn.codethink.xiaoming.Bot;
import cn.codethink.xiaoming.code.Code;
import lombok.Data;
/**
* 找不到行会时抛出的异常
*
* @author Chuanwise
*/
@Data
@SuppressWarnings("all")
public class NoSuchGuildException
extends NoSuchMassException {
public NoSuchGuildException(... |
package com.cibernet.splatcraft.client.model;// Made with Blockbench 3.5.4
// Exported for Minecraft version 1.15
// Paste this class into your mod and generate all required imports
import net.minecraft.client.renderer.model.ModelRenderer;
import java.util.ArrayList;
public class ClassicInkTankModel extends Abstrac... |
package OOP_05_Inheritance.P4RandomArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
RandomArrayList randomArrayList = new RandomArrayList();
randomArrayList.add("1");
randomArrayList.add("2"... |
package org.spongycastle.jce.provider;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.cert.Certificate;
import java.security.cert.CertificateParsingException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.sp... |
/*
* Copyright 2016 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 com.xwintop.xTransfer.messaging;
import java.util.List;
import java.util.Map;
/**
* @ClassName: IContext
* @Description: 信息流传递上下文
* @author: xufeng
* @date: 2018/6/15 15:16
*/
public interface IContext {
void setMessage(IMessage iMessage);
void addMessage(IMessage iMessage);
void setMessa... |
package xworker.html.design;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.xmeta.ActionContext;
import org.xmeta.Bindings;
import or... |
/*******************************************************************************
*
* Copyright 2019 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* ... |
/*
* Copyright (c) 2010, 2012, 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.vmware.vim25;
/**
* Copyright 2015 Michael Rice <michael@michaelrice.org>
* <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/... |
/*
* 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... |
import java.util.*;
public class FourSum {
static class Pair {
int first, second;
Pair(int first, int second) {
this.first = first;
this.second = second;
}
}
/*
* Returns a list containing 4 numbers present at different indexes which sum to target. If... |
package org.thoughtcrime.securesms.linkpreview;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.thoughtcrime.securesms.attachments.Attachment;
import org.thoughtcrime.securesm... |
package cinema.infrastructure;
import cinema.events.Event;
import java.util.List;
import java.util.UUID;
public interface PlannedScreeningRepository {
List<Event> loadPlannedScreeningEvents(UUID id);
void persistPlannedScreeningEvents(List<Event> eventList);
}
|
package softuni.residentevil.config;
import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ApplicationBeanConfiguration {
@Bean
public ModelMapper modelMapper() {
return new ModelMapper()... |
package com.rogeop.lambda.core.data;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.time.Duration;
import java.time.Instant;
public class FileReader {
public static void main(String[] args) {
new FileReader()... |
//package com.wemirr.platform.stp.controller;
//
//import cn.dev33.satoken.annotation.SaCheckPermission;
//import cn.dev33.satoken.stp.StpUtil;
//import cn.dev33.satoken.util.SaResult;
//import com.ejlchina.okhttps.OkHttps;
//import com.wemirr.platform.stp.config.UserInfoTokenServices;
//import com.wemirr.platform.stp.... |
package com.ruoyi.common.exception.user;
/**
* 用户错误最大次数异常类
*
* @author ever
*/
public class UserPasswordRetryLimitExceedException extends UserException
{
private static final long serialVersionUID = 1L;
public UserPasswordRetryLimitExceedException(int retryLimitCount)
{
super("user.password.r... |
/*
* Copyright 2019 Alexey Andreev.
*
* 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 com.mystrawberry.baikedonotstarve.adapter;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import com.mystrawberry.baikedonotstarve.fragment.MainItemFragment;
import com.mystrawberry.baikedonotstarve.info.Biomes;
impor... |
package net.runelite.client.plugins.chatexporter;
import com.google.gson.JsonObject;
import javafx.util.Pair;
import net.runelite.api.Client;
import net.runelite.api.widgets.Widget;
import net.runelite.api.widgets.WidgetInfo;
import javax.swing.tree.DefaultMutableTreeNode;
import java.nio.charset.StandardCharsets;
im... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018-2020 Donn S. Terry
* Copyright (c) 2015-2017 Marcin Simonides
*
* 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, ... |
// Copyright 2007 The Bazel Authors. 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 appl... |
package net.minecraft.world.entity.ai.goal.target;
import java.util.EnumSet;
import java.util.List;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.ai.goal.Goal;
import net.minecraft.world.entity.ai.targeting.TargetingConditions;
import net.minecraft.world.entity.animal.IronGolem;
imp... |
/*
* 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 ... |
exception override exception javadoc override exception todo auto generated method stub javadoc override exception todo auto generated method stub |
//
// 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 je.techtribes.web.controller;
import com.structurizr.annotation.UsedByPerson;
import je.techtribes.component.newsfeedentry.NewsFeedEntryComponent;
import je.techtribes.component.talk.TalkComponent;
import je.techtribes.component.tweet.TweetComponent;
import je.techtribes.domain.ContentSource;
import je.techtri... |
/*
* Copyright (c) 2004-2016, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of cond... |
package org.aicoder.bizdelegate;
import java.util.List;
import org.archcorner.chartreuse.dal.dao.ContestDAO;
import org.archcorner.chartreuse.pojo.Contest;
public class ContestBusinessDelegate{
private ContestDAO contestDAO ;
public int getHighestId()
{
contestDAO = new ContestDAO();
int id=contestDAO.getHig... |
/*
Copyright 2015 DataArt Apps, 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 to in writin... |
package cz.vhromada.catalog.web.song.controller;
import cz.vhromada.catalog.web.event.PanelData;
import cz.vhromada.catalog.web.event.PanelEvent;
import cz.vhromada.catalog.web.flow.CatalogFlow;
import cz.vhromada.catalog.web.panel.AbstractFormPanel;
import cz.vhromada.catalog.web.song.mo.SongMO;
import cz.vhromada.ca... |
package com.cosmos.workflow.activities;
import java.io.Serializable;
public abstract class Activity implements Serializable{
private static final long serialVersionUID = 0L;
private String activityId;
public String getActivityId() {
return activityId;
}
public void setActivityId(String activityId) {
t... |
package com.lunchtime.controllers;
import com.lunchtime.security.JwtUtil;
import com.lunchtime.service.PersonService;
import com.lunchtime.service.dto.PersonDto;
import com.lunchtime.service.dto.PersonPassDto;
import com.lunchtime.service.dto.RegisterPerson;
import lombok.RequiredArgsConstructor;
import org.springfram... |
package Lection4;
import java.util.Scanner;
public class L15_traveling {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double money = Double.parseDouble(scanner.nextLine());
String season = scanner.nextLine();
double sum = 0;
if (money... |
package edu.pdx.cs410J.sytov;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
/**
* Unit tests for the {@link TextDumper} class.
*/
public class XmlDumperTest {
@Test
public void ... |
package org.ansj.test;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.List;
import love.cq.util.IOUtil;
import org.ansj.domain.Term;
import org.ansj.splitWord.analysis.BaseAnalysis;
public class NatrueFileTest {
public static void main(String[] args) throws IOException {
StringBuilde... |
/*
* RED5 Open Source Media Server - https://github.com/Red5/ Copyright 2006-2016 by respective authors (see below). 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://ww... |
/*
* Copyright (c) 2009, University of Bristol
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1) Redistributions of source code must retain the above copyright notice,
* this list ... |
package com.mapbox.services.android.navigation.v5.navigation;
import android.location.Location;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.mapbox.services.android.navigation.v5.milestone.MilestoneEventListener;
import com.mapbox.services.android.navigation.v5.off... |
package erp.entity.dto.req;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
/**
* @author Yhaobo
* @date 2020/3/28
*/
@Data
public class StatisticsQueryConditionDTO implements Serializable {
@DateTimeFormat(iso = DateTimeForm... |
package exercise;
/**
* @Author ZhangGJ
* @Date 2019/03/17
*/
public class E05_DataOnly2 {
public static void main(String[] args) {
E04_DataOnly d = new E04_DataOnly();
d.i = 47;
System.out.println("d.i = " + d.i);
d.d = 1.1;
System.out.println("d.d = " + d.d);
d.... |
package com.tuffy.fasdemo;
import org.springframework.stereotype.Service;
@Service
public class DemoService {
public String hello() {
return "hello";
}
}
|
/*
* Copyright 2002-2008 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... |
package org.tuxdevelop.spring.batch.lightmin.api.resource.batch;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @author Marcel Becker
* @Since 0.3
*/
@Data
public class StepExecution implements Serializable {
private static final long serialVersionUID = 1... |
package com.iconectiv.rest;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEnti... |
package datawave.query.iterator;
import java.util.Collection;
import java.util.Queue;
import org.apache.accumulo.core.data.Range;
import org.apache.log4j.Logger;
import com.google.common.collect.Queues;
import datawave.query.attributes.Document;
/**
* Allows an arbitrary nesting of nested iterators
*
* @param <... |
package chart;
import models.ViewableUser;
import services.UserViewService;
import java.util.*;
public final class UserRegisteredData extends ChartData {
public UserRegisteredData(UserViewService userViewService) {
List<ViewableUser> users = userViewService.fetchViewableUsers();
List<Date> dates = new ArrayLi... |
package com.yuzeduan.util;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
/**
* 暂时堵塞主线程,进... |
package com.baz.app.lc.medium;
import com.baz.app.Interface.Facebook.Facebook;
import com.baz.app.util.TreeNode;
import java.util.*;
public class BinaryTreeZigzagLevelOrderTraversal implements Facebook {
/**
* Given a binary tree, return the zigzag level order traversal of its nodes' values.
* (ie, fr... |
/**
* 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.android.iam.exemplosimplesretrofit;
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... |
class tester {
public static void main(String[] args) {
System.out.println(6+6+"999"+6+6);
}
} |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.animation.bitmap.wrapper;
import android.graphics.Bitmap;
import android.graphics.Rect;
import com.fac... |
/**
* 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.android.coolweather.util;
import okhttp3.OkHttpClient;
import okhttp3.Request;
/**
* 和服务器交互的工具类
*/
public class HttpUtil {
public static void sendOkHttpRequest(String address,okhttp3.Callback callback){
OkHttpClient client=new OkHttpClient();
//传入请求地址
Request request=new Requ... |
/*
* Copyright 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 writing... |
/*
* Copyright (c) 2003, 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 ... |
/*******************************************************************************
* 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... |
package com.lambdaschool.crudyorders;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CrudyordersApplication {
public static void main(String[] args) {
SpringApplication.run(CrudyordersApplication.... |
package org.apache.commons.csv.printer;
import org.apache.commons.csv.format.CSVFormat;
import org.apache.commons.csv.format.CSVFormatPredefinedFormats;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.io.StringWriter;
import static org.junit.jupiter.api.Assertions.assertEquals;
public cla... |
package badgamesinc.hypnotic.utils.render.shader.shaders;
import badgamesinc.hypnotic.utils.render.shader.Shader;
import badgamesinc.hypnotic.utils.render.shader.ShaderUniform;
import badgamesinc.hypnotic.utils.render.shader.ShaderUtils;
public class PosColorShader extends Shader {
private ShaderUniform projecti... |
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/**
* Licensed 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) 2001, Eric D. Friedman All Rights Reserved.
// Copyright (c) 2009, Rob Eden All Rights Reserved.
// Copyright (c) 2009, Jeff Randall All Rights Reserved.
//
// This library is free software; you can redistribute it and/or
/... |
// BEGIN_COPYRIGHT
//
// Copyright 2009-2021 CRS4.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
// of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
/*
* MIT License
*
* Copyright (c) 2021 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 Assignment1;
import java.util.Scanner;
//Purpose: Convert decimal numbers to binary numbers
//Main idea: The remainder divided by 2 is arranged in reverse order, and then the last quotient is placed first
public class DecToBin {
public static void main(String[] args) {
//1. Enter decimal number
... |
package com.fasterxml.jackson.databind.jsontype;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.BaseMapTest;
import com.fasterxml.jackson.databind.ObjectMapper;
public c... |
package network;
import java.util.Arrays;
public class NeuralLayer {
Neuron[] neurons;
int inputSize;
double hashid = 0;
/** CONSTRUCTORES*/
NeuralLayer(int n, double[] weights, double bias) {
inputSize = weights.length;
neurons = new Neuron[n];// explicit declaration
for (int i = 0; i < n; i++) {
n... |
package org.apache.maven.index.artifact;
/*
* 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 Lic... |
/*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppä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, copy... |
/*
* Copyright 2017-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 api.requests;
import static java.net.HttpURLConnection.HTTP_OK;
import static java.util.stream.Collectors.joining;
import static org.folio.circulation.support.JsonPropertyFetcher.getDateTimeProperty;
import static org.folio.circulation.support.JsonPropertyFetcher.getNestedStringProperty;
import static org.hamc... |
package net.minecraft.command.server;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nullable;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommand;
import net.minecraft.command.ICommandSender;
import net.minecraft.... |
package org.jeecf.gen.model.config;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jeecf.gen.model.rule.StrategyEntity;
import org.springframework.core.io.Resource;
/**
* config module 参数体
*
* @author jianyiming
* @since 1.0
*/
public class ModuleEntity {
/**
* 名称
... |
package ml.puredark.hviewer.dataholders;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import com.google.gson.Gson;
import java.util.ArrayList;
import java.util.List;
import ml.puredark.hviewer.beans.Collection;
import ml.puredark.hviewer.beans.LocalCollection... |
package ru.job4j.orderBook;
import java.util.HashMap;
import java.util.Map;
public class Book {
private String name;
private HashMap<String, Item> itemsToBuy;
private HashMap<String, Item> itemsToSell;
public Book(String name) {
this.name = name;
this.itemsToBuy = new HashMap<>();
... |
package co.ohalo.repository;
import co.ohalo.domain.Department;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data SQL repository for the Department entity.
*/
@SuppressWarnings("unused")
@Repository
public interface DepartmentRepository extends Jpa... |
package org.onvif.ver10.media.wsdl;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment sp... |
/*
* Copyright 2017-2022 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... |
/*
* 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 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... |
package com.irina.reactnativefirebasetest;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import io.invertase.firebase.RNFirebasePackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
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
* distributed u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.