text stringlengths 7 995k |
|---|
/*
* Copyright 2014 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 "license" ... |
/* Copyright (C) 2013-2014 Computer Sciences Corporation
*
* 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 co.edu.icesi.nextfruit.mvc.interfaces;
public interface Attachable {
public void attach(Updateable updateable);
public void detach(Updateable updateable);
} |
/*
* Copyright 2017-2019 original 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 agre... |
package moon.rpc;
import moon.common.URL;
import moon.core.Request;
import moon.core.Response;
import java.lang.reflect.Method;
/**
* @author Ricky Fung
*/
public abstract class AbstractProvider<T> implements Provider<T> {
protected Class<T> clz;
protected URL url;
protected boolean available = false;
... |
/*******************************************************************************
*
* Copyright (C) 2015-2018 the BBoxDB 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 Licens... |
/*
* The MIT License (MIT)
*
* Copyright (c) Open Application Platform Authors
*
* 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... |
package com.example.websocketdemo.controller;
import com.example.websocketdemo.model.ChatMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.messaging.simp.Sim... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net;
import android.os.RemoteException;
import android.util.Log;
/**
* Provides a remoted implementation of AndroidKeyStore where ... |
package com.ppdai.dockeryard.admin;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.C... |
/*#######################################################
*
* Maintained by Gregor Santner, 2017-
* https://gsantner.net/
*
* License of this file: Apache 2.0 (Commercial upon request)
* https://www.apache.org/licenses/LICENSE-2.0
*
#########################################################*/
package ne... |
class ConcurrentHashMapV7<K, V> extends AbstractMap<K, V> implements ConcurrentMap<K, V>, Serializable {
/**
* Sets the ith element of given table, with volatile write
* semantics. (See above about use of putOrderedObject.)
*/
static final <K, V> void setEntryAt(HashEntry&... |
/*
* Copyright 1999-2017 Alibaba Group Holding 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 applica... |
import static org.junit.Assert.assertArrayEquals;
public class MergeSortedArray {
public static void merge(int[] nums1, int m, int[] nums2, int n) {
int i=m-1;
int j=n-1;
int end=m+n-1;
while(i>=0 && j>=0) {
if(nums1[i]>nums2[j]) {
nums1[end]=nums1[i];
end--;
i--;
}
else {
nums1[e... |
package dataobjects;
public class Vector2 {
private float x;
private float y;
public Vector2(){}
public Vector2 (float x, float y) {
this.x = x;
this.y = y;
}
public Vector2 (float x) {
this.x = x;
this.y = x;
}
public float getX() {
return x;
}
public void setX(float x) {
this.x = x;
}
... |
/*
Copyright 2014-2016 Intel Corporation
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, s... |
package seedu.address.model.task;
import java.util.Comparator;
public class TaskComparator implements Comparator<Task> {
@Override
public int compare(Task a, Task b) {
if (a.getDate().isBefore(b.getDate())) {
return -1;
} else {
return 1;
}
}
} |
/*
* Copyright 2004-2011 the Seasar Foundation and the Others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
/** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.s_expensetype;
import javax.annotation.Generated;
import org.compiere.model.X_S_ExpenseType;
/** Generated assertion class for S_ExpenseType
* @author idempiere-test model assertion generator
* @version Release 6... |
package org.benf.cfr.reader.bytecode.analysis.opgraph.op3rewriters;
import org.benf.cfr.reader.bytecode.analysis.opgraph.Op03SimpleStatement;
import org.benf.cfr.reader.bytecode.analysis.parse.Expression;
import org.benf.cfr.reader.bytecode.analysis.parse.LValue;
import org.benf.cfr.reader.bytecode.analysis.parse.Stat... |
package za.co.entelect.web.controllers.web.user;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.web... |
/*
* Units of Measurement Reference Implementation
* Copyright (c) 2005-2019, Units of Measurement project.
*
* 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 sou... |
package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.eco.mycar.promo.ticket.push response.
*
* @author auto create
* @since 1.0, 2020-12-31 11:37:53
*/
public class AlipayEcoMycarPromoTicketPushResponse extends AlipayRe... |
package ru.textanalysis.tawt.sp.api;
import lombok.extern.slf4j.Slf4j;
import ru.textanalysis.tawt.awf.AmbiguityWordsFilter;
import ru.textanalysis.tawt.awf.AmbiguityWordsFilterImpl;
import ru.textanalysis.tawt.gama.GamaImpl;
import ru.textanalysis.tawt.ms.convector.GamaToSpConvector;
import ru.textanalysis.tawt.ms.gr... |
package obj;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Tweet {
private Coordinates location;
private Date dateTime;
private String message;
public Tweet() {}
public Tweet(Coordinates location, Date dateTime, String message) {
this.location = location;
... |
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content_public.common;
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
/**
... |
/* Copyright 2018 The TensorFlow 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 applicable law or a... |
/*
* 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 test;
import java.util.ArrayList;
import java.util.List;
import mcts.*;
public class TicTacToe implements Game<TState, Integer> {
public TState initialState() { return new TState(); }
public TState clone(TState state) { return state.clone(); }
public int player(TState state) { return state.player; }
... |
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.cdp.openstack.connectors;
import static org.junit.Assert.assertFalse... |
package org.mJeliot.model.predict;
import org.mJeliot.model.User;
/**
* @author Moritz Rogalli
* A ParameterPrediction saves the value a user has predicted plus the value itself.
*/
public class ParameterPrediction {
private String predictedValue = null;
private User user = null;
public ParameterPrediction(Us... |
package it.tredi.ecm.dao.repository;
import java.util.Set;
import org.springframework.data.repository.CrudRepository;
import it.tredi.ecm.dao.entity.AccreditamentoStatoHistory;
public interface AccreditamentoStatoHistoryRepository extends CrudRepository<AccreditamentoStatoHistory, Long> {
public Set<Accreditamento... |
package de.dieklaut.camtool;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class RawTherapeeParserTest {
@Test
public void testIsDeleted() {
assertFalse(RawTherapeeParser.isDeleted(TestFileHelper.getTestResource("neutral.pp3")));
assertTrue... |
/*
* 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 Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.core.Settings;
public class MonsterSpawnHelper {
private static final float MARGIN = 40F;
private static final float DEFAULT_MONSTER_SIZE = 140F;
private static float margin;
private static float defaultMonsterSize;... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
package com.microsoft.alm.plugin.idea.tfvc.actions;
import com.google.common.annotations.VisibleForTesting;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.proje... |
/**
* Appia: Group communication and protocol composition framework library
* Copyright 2006 University of Lisbon
*
* 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... |
/*******************************************************************************
* Copyright 2021 spancer
*
* 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... |
package pokecube.nbtedit.nbt;
public class ParseHelper
{
public static byte parseByte(String s) throws NumberFormatException
{
try
{
return Byte.parseByte(s);
}
catch (final NumberFormatException e)
{
throw new NumberFormatException("Not a valid ... |
/*
* 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) 2018, Seth <http://github.com/sethtroll>
* 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, thi... |
/*
* Copyright 1999-2012 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 org.kyojo.schemaorg.m3n4.core.impl;
import java.util.ArrayList;
import java.util.List;
import org.kyojo.schemaorg.SimpleJsonBuilder;
import org.kyojo.schemaorg.m3n4.core.Clazz.Accommodation;
import org.kyojo.schemaorg.m3n4.core.Clazz.AccountingService;
import org.kyojo.schemaorg.m3n4.core.Clazz.Administrative... |
package com.cvgenerator.cvgenerator.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Interest {
private String name;
} |
/*
* Javalin - https://javalin.io
* Copyright 2017 David Åse
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin;
import org.junit.Test;
import io.javalin.core.HandlerType;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.core.Is.is;
impor... |
/*
* Copyright 2017 Information and Computational Sciences,
* The James Hutton Institute.
*
* 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.github.freeacs.web.app.input;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
import java.util.ArrayList;
import java.util.List;
/**
* This class enables ignoring specific request parameters.
*
* Since this class extends an HttpServletRequestWrapper ... |
package org.gooru.nucleus.utils.processors.command.executor;
import org.gooru.nucleus.utils.processors.messageProcessor.MessageContext;
public interface Executor {
MessageResponse execute(MessageContext messageContext);
} |
package com.puttysoftware.dungeondiver4.resourcemanagers;
public class StatImageConstants {
public static final int STAT_IMAGE_ACTIONS = 0;
public static final int STAT_IMAGE_ATTACK = 1;
public static final int STAT_IMAGE_ATTACKS = 2;
public static final int STAT_IMAGE_DEFENSE = 3;
public static fi... |
package com.kriptops.n98pos.cardlib.kernel;
import com.kriptops.n98pos.cardlib.tools.Util;
public class Tag {
private String name;
private String value;
public Tag(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;... |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.network.v2019_09_01;
import com.microsoft.azure.... |
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
class Main {
public static void main(String[] args) throws IOException {
URL url = new URL("https://cmdb.litop.local/webservices/rest.php");
... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
package org.purl.ontology.bibo.domain.impl;
import com.xmlns.foaf.domain.Agent;
import java.lang.String;
import java.util.List;
import nl.wur.ssb.RDFSimpleCon.api.Domain;
import org.apache.jena.rdf.model.Resource;
import org.purl.ontology.bibo.domain.Document;
import org.purl.ontology.bibo.domain.Hearing;
/**
* Code... |
/**
* Licensed to the Austrian Association for Software Tool Integration (AASTI)
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. The AASTI licenses this file to you under the Apache License,
* Version 2... |
package net.liquidlang.compiler.model;
import lombok.Getter;
import lombok.Setter;
import net.liquidlang.compiler.ast.FParser;
import net.liquidlang.compiler.semantics.SemanticAnalyzer;
import net.liquidlang.compiler.util.Modules;
import net.liquidlang.compiler.util.SymbolUtils;
import org.jetbrains.annotations.Contra... |
package org.knowm.xchange.lakebtc.service.polling;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.dto.trade.MarketOrder;
import org.knowm.xchange.exceptions.ExchangeException;
import org.knowm.xchange.lakebtc.LakeBTCUtil;
import o... |
package com.web.mapper;
import com.web.model.SCFX;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 市场分析
*/
public interface SCFXdao {
/**
* 新增市场分析
* @param fxzt
* @param fxnr
* @param fxr
* @param fxsj
* @param fxfj
* @throws Exception
*/
voi... |
/*
* Copyright 2015 E.Hooijmeijer / www.ctrl-alt-dev.nl
*
* 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... |
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2019 wcm.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 ap... |
package org.springframework.security.acls.model;
import java.util.List;
import org.springframework.security.core.Authentication;
/**
* Strategy interface that provides an ability to determine the {@link Sid} instances
* applicable for an {@link Authentication}.
*
* @author Ben Alex
*/
public interface SidRetrie... |
/*
* This file is part of Cubic Chunks Mod, licensed under the MIT License (MIT).
*
* Copyright (c) 2015-2021 OpenCubicChunks
* Copyright (c) 2015-2021 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "So... |
/**
* Copyright (c) 2022 Enaium
* <p>
* 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, modify, merge, publish... |
package OneWireBus;
import com.dalsemi.onewire.OneWireException;
import com.dalsemi.onewire.adapter.OneWireIOException;
import com.dalsemi.onewire.container.OneWireContainer3A;
public class DS2408_Output extends DeviceBase
{
private OutputChannel ch0;
private OutputChannel ch1;
private OutputChannel ch2;
private ... |
package systems.conduit.main.mixins.level;
import net.minecraft.world.level.storage.DerivedLevelData;
import net.minecraft.world.level.storage.PrimaryLevelData;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spo... |
package com.auto.test.controller;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j... |
package com.houarizegai.calculator;
import java.awt.Cursor;
import javax.swing.JButton;
public class BtnMul implements Create_Button{
JButton btn = new JButton("*");
BtnMul(){
btn.setBounds(x[3],y[2],wBtn,hBtn);
btn.setFont(btnFont);
btn.setCursor(new Cursor(Cursor.HAND_CURSOR));
}
} |
/*
* Copyright (C) 2015 Federico Paolinelli
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
package com.xiaochen.gulimall.search.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.xiaochen.common.to.es.SkuEsModel;
import com.xiaochen.common.utils.R;
import com.xiaochen.gulimall.search.config.GulimallElasticSearchConfiguration;
import com.xiaochen.gulimall.s... |
package net.clarenceho.util;
/**
* Representation of an edge in graph
*/
public class Edge {
private Pair<? extends Node> nodePair;
private int cost;
public Edge(Node u, Node v, int cost) {
this.nodePair = new Pair<>(u, v);
this.cost = cost;
}
public Pair<? extends Node> getNode... |
package de.metas.ui.web.view;
import com.google.common.base.Stopwatch;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Streams;
import de.metas.elasticsearch.model.I_T_ES_FTS_Search_Result;
import de.metas.logging.LogManager;
import de.met... |
/*
* Copyright 2019 StreamThoughts.
*
* 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, Vers... |
package com.wxmp.racingapi.vo.form;
import com.wxmp.racingapi.vo.vo.UserPayDetailForm;
import java.util.List;
/**
* @author xunbo.xu
* @desc 用户下注对象<br/>
* {"accountUuid":"accountUuid", "amount":100, "matchUuid":"matchUuid", "wins":"winsId"}
* @date 18/7/9
*/
public class UserPayForm {
/** 账户uuid */
... |
/**
* Put your copyright and license info here.
*/
package at.mkaran.thesis;
import java.io.IOException;
import javax.validation.ConstraintViolationException;
import org.junit.Assert;
import org.apache.hadoop.conf.Configuration;
import org.junit.Test;
import com.datatorrent.api.LocalMode;
/**
* Test the DAG de... |
package MDSplus;
/**
* Array description for DTYPE_QU
*
* Constructors:Uint64Array(long[])
* @author manduchi
* @version 1.0
* @updated 30-mar-2009 13.44.52
*/
public class Uint64Array extends Array
{
long [] datum;
public Uint64Array(long[] inDatum)
{
help = null;
units = null;
... |
package com.tools;
import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.Pattern;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.l... |
package dk.alexandra.fresco.framework.util;
import java.math.BigInteger;
/**
* Interface for Deterministic Random Number Generators.
*/
public interface Drng {
/**
* Gets the next integer of this DRNG in a given range
* @param limit a limit on the value returned
* @return an integer in the range <i>0,..... |
package gomedic.logic.commands.addcommand;
import static gomedic.testutil.TypicalPersons.getTypicalAddressBook;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import gomedic.logic.commands.CommandTestUtil;
import gomedic.model.Model;
import gomedic.model.ModelManager;
import gomedic.mode... |
package com.crowdin.parameters;
/**
*
* @author ihor <ihor.popyk@crowdin.com>
*/
public final class CrowdinApiParameters {
public static final String AUTO_APPROVE_IMPORTED = "auto_approve_imported";
public static final String AUTO_TRANSLATE_DIALECTS = "auto_translate_dialects";
public static final St... |
////////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction Mechanism Generator
//
// Copyright (c) 2002-2011 Prof. William H. Green (whgreen@mit.edu) and the
// RMG Team (rmg_dev@mit.edu)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of ... |
package com.excel;
import java.util.ArrayList;
import java.util.List;
/**
* 给定一个正整数,返回它在 Excel 表中相对应的列名称。
*
* 例如,
*
* 1 -> A
* 2 -> B
* 3 -> C
* ...
* 26 -> Z
* 27 -> AA
* 28 -> AB
* ...
* 示例 1:
*
* 输入: 1
* 输出: "A"
* 示例 2:
*
* 输入: 28
* 输出: "AB"
* 示例 3:
*
* 输入: 70... |
package com.mayhsupaing.news.dialogs;
import android.app.Dialog;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.mayhsupaing.news.R;
import com.mayhsupai... |
/*
* 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 guru.springframework;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
public class MoneyTest {
@Test
void testMultiplication() {
Money five = Money.dollar(5);
assertEquals(M... |
/**
* Copyright 2020-9999 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requir... |
/*
* Copyright (C) 2012 Jason Gedge <http://www.gedge.ca>
*
* This file is part of the OpGraph project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... |
package com.boot.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.boot.constant.SeckillState;
import com.boot.dao.SeckillMapper;
import com.boot.pojo.Seckill;
import com.boot.pojo.SeckillSuccess;
import com.boot.service.SeckillService;
import com.boot.utils.SnowId;
import io.seata.spring.annotation.Glo... |
/*******************************************************************************
* Copyright (c) 2011, Daniel Murphy
* 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 ... |
package org.noear.solon.sessionstate.jwt;
import io.jsonwebtoken.*;
import io.jsonwebtoken.io.Decoders;
import io.jsonwebtoken.io.Encoders;
import io.jsonwebtoken.security.Keys;
import org.noear.solon.Solon;
import org.noear.solon.Utils;
import org.noear.solon.core.event.EventBus;
import java.security.Key;
import jav... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
import ca.uhn.fhir.interceptor.api.Hook;
import ca.uhn.fhir.interceptor.api.Interceptor;
import ca.uhn.fhir.interceptor.api.Pointcut;
import ca.uhn.fhir.util.StopWatch;
@Interceptor
public class IClientInterceptor {
private StopWatch stop_watch;
public IClientInterceptor() {
this.stop_watch = new StopWatch();
... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package impresionXML.impresion.xml.diseno.operaciones;
import impresionXML.impresion.xml.IVisitorOperacion;
import impresionXML.impresion.xml.JxmlBanda;
import impresionXML.impresion.xml.JxmlCuadrado;
import impresionXM... |
package com.binance.client.model.enums;
public enum CrossMarginTransferType {
SUPER_MARGIN_TO_SPOT,
SPOT_TO_SUPER_MARGIN;
} |
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
/*
* Copyright 2013-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... |
package com.aspose.note.examples.load;
import com.aspose.note.*;
import com.aspose.note.examples.Utils;
import java.io.IOException;
public class SaveToBinaryImageUsingOtsuMethod {
public static void main(String... args) throws IOException {
// ExStart:SaveToBinaryImageUsingOtsuMethod
// ExFor:Doc... |
package com.atsebak.ui5.util;
import com.atsebak.ui5.FileType;
import com.atsebak.ui5.autogeneration.*;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.module.ModuleUtilCore;
import com.intellij.psi.PsiDirectory;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.util.r... |
package com.reactnativetencentylhad.view;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.uima... |
package org.insightech.er.editor.model.settings;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.swt.widgets.Display;
public class PageSetting implements Serializable {
private static final long serialVersionUID = 7520875865783223474L;
private static final int D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.