text stringlengths 7 995k |
|---|
package org.robolectric.shadows;
import static android.os.Build.VERSION_CODES.LOLLIPOP;
import static android.os.Build.VERSION_CODES.M;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.robolectric.Shadows... |
package net.minecraft.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiPageButtonList$GuiResponder;
import net.minecraft.client.resources.I18n;
public class GuiListButton extends GuiButton {
private boolean field_175216_o;
private S... |
import java.util.Set;
import dev.iafrate.data.ReimbursementPostgres;
import dev.iafrate.data.UserPostgres;
import dev.iafrate.model.Reimbursement;
import dev.iafrate.model.ReimbursementStatus;
import dev.iafrate.model.Role;
import dev.iafrate.model.User;
public class testDao {
public static void main(String[] args)... |
/*
* 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... |
/*
* Copyright 2018 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 applicab... |
// .result=COMPILE_FAIL
public class Test {
public interface TestInterface {
public int functMethod();
}
public static void main(String[] args) {
int a;
if(args[0].length() == 1)
a = 4;
TestInterface t = () -> a + 4;
}
} |
/*
* 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... |
/**
* Copyright (C) 2015 Red Hat, 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... |
package com.irvil.textclassifier.dao.jdbc;
import com.irvil.textclassifier.dao.CharacteristicDAOTest;
import com.irvil.textclassifier.dao.jdbc.connectors.JDBCConnector;
import com.irvil.textclassifier.dao.jdbc.connectors.JDBCSQLiteConnector;
public class JDBCCharacteristicDAOTest extends CharacteristicDAOTest {
@Ov... |
package com.github.huifer.full.shiro.rest;
import com.github.huifer.full.shiro.model.req.post.PostCreateParam;
import com.github.huifer.full.shiro.model.res.ResultVO;
import com.github.huifer.full.shiro.service.PostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.b... |
package me.devsaki.hentoid.fragments.downloads;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import an... |
package org.opentreeoflife.taxa;
import java.util.regex.Pattern;
public class QualifiedId {
public String prefix;
public String id;
private static Pattern colonPattern = Pattern.compile(":");
public QualifiedId(String prefix, String id) {
if (prefix == null)
throw new IllegalArgumentExcepti... |
package com.salesmanager.core.business.utils;
import java.math.BigDecimal;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Currency;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
... |
/*
* Copyright (C) 2017-2018 Dremio 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 l... |
package com.newnius.streamspider.util;
import java.net.URL;
import java.nio.charset.Charset;
/**
* Created by newnius on 4/28/17.
*
*/
public class StringUtils {
/*
*
* handle urls with white space and Chinese characters
* From: http://www.jianshu.com/p/9be694c8fee2
* */
public static Str... |
package com.weiit.web.admin.file.service.impl;
import javax.annotation.Resource;
import com.weiit.core.entity.E;
import org.springframework.stereotype.Service;
import com.weiit.core.entity.FormMap;
import com.weiit.core.mapper.BaseMapper;
import com.weiit.core.service.impl.AbstractService;
import com.weiit.web.... |
/*
* $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/realm/MemoryRuleSet.java,v 1.2 2002/02/08 16:19:57 craigmcc Exp $
* $Revision: 1.2 $
* $Date: 2002/02/08 16:19:57 $
*
* ====================================================================
*
* The Apache Software License, Version 1... |
/*
* The MIT License
*
* Copyright 2018 Intuit Inc.
*
* 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, modi... |
/**
* DSL implementation and translation to internal intermediary representation based on a JPQL syntax subset.
*
* @author anistor@redhat.com
* @since 6.0
*
* @private
*/
package org.infinispan.query.dsl.impl; |
/**
* Copyright (c) 2008, http://www.snakeyaml.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 applicabl... |
package com.cognixia.jump.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.cognixia.jump.connection.ConnectionManager;
import com.cognixia.jump.model.Libraria... |
package com.lkl.algorithm.mazeGeneralization.RandomMazeB.MoreAboutRandomMazeGenWithMazeSolver;
import java.util.LinkedList;
public class RandomQueue<E> {
private LinkedList<E> queue;
public RandomQueue() {
queue = new LinkedList<E>();
}
public void add(E e) {
if (Math.random() < 0.5... |
/**
* 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) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot;
import java.util.HashMap;
import java.util.Map;
import edu.wpi.first.math.trajectory.Trajectory;
im... |
package io.github.hotspacode.neeza.agent.adapter;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.commons.AdviceAdapter;
public class VoidMethodAdapter extends AdviceAdapter {
private int argumentTypeSize;
public VoidMethodAdapter(MethodVisitor mv, int access... |
/*
* 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 not ... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
package com.bunq.sdk.model.generated.endpoint;
import com.bunq.sdk.http.ApiClient;
import com.bunq.sdk.http.BunqResponse;
import com.bunq.sdk.http.BunqResponseRaw;
import com.bunq.sdk.model.core.BunqModel;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.google.g... |
/*
* Copyright (C) 2013 salesforce.com, 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 ... |
package com.idugalic.common.command;
import com.idugalic.common.model.AuditEntry;
public class AuditableAbstractCommand {
private AuditEntry auditEntry;
public AuditableAbstractCommand(AuditEntry auditEntry) {
this.setAuditEntry(auditEntry);
}
public AuditableAbstractCommand() {
}
... |
/*
* 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 under t... |
/**
*
*/
package com.vip.saturn.job.console.domain;
import java.io.Serializable;
/**
* @author chembo.huang
*
*/
public class ZkStatistics implements Serializable {
private static final long serialVersionUID = 1L;
private int count;
private int error;
public ZkStatistics() {
}
public ZkStatistics(int ... |
/*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014-2016 Groupon, Inc
* Copyright 2014-2016 The Billing Project, LLC
*
* The Billing Project licenses this file 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 cop... |
package com.jemmy.services.user.model.dto.user;
import com.jemmy.apis.user.vo.MenuVo;
import com.jemmy.common.base.dto.LoginAuthDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* The class Login r... |
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved.
*/
package com.huawei.recordconsole;
import com.huawei.recordconsole.consumer.RecordConsoleConsumer;
import com.huawei.recordconsole.elasticsearch.ElasticSearchIndexCreator;
import org.elasticsearch.client.RestHighLevelClient;
import ... |
package io.gomint.inventory.item;
import io.gomint.GoMint;
/**
* @author geNAZt
* @version 1.0
* @stability 3
*/
public interface ItemWoodenShovel extends ItemShovel<ItemWoodenShovel>, ItemBurnable {
/**
* Create a new item stack with given class and amount
*
* @param amount which is used for ... |
package com.onlyu.thesis.service.layer.data.remng.repositories;
import com.onlyu.thesis.service.domain.remng.embeddables.Floor;
import com.onlyu.thesis.service.domain.remng.models.*;
import com.onlyu.thesis.service.layer.data.remng.configs.EntityManagerFactoryConfiguration;
import lombok.extern.slf4j.Slf4j;
import ja... |
// 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... |
package org.springframework.cloud.deployer.spi.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Utility class for dealing with parseable byte sizes, such as memory and disk limits.
*
* @author Eric Bottard
*/
public class ByteSizeUtils {
private ByteSizeUtils() {
}
private static ... |
/**
* Copyright © 2020 SUNCORPORATION All rights reserved.
*
* Creation Date : July 14th, 2020
*/
package com.sun.m2m.okudakelinkdemoapp.view;
/**
* ListViewに表示するセンサー名とセンサー値を格納
*/
public class SensorValue {
/** ListViewに表示するセンサー名) */
public String title;
/** ListViewに表示するセンサー値 */
public String v... |
package com.smt.web.controller.system;
import java.awt.image.BufferedImage;
import java.io.IOException;
import javax.annotation.Resource;
import javax.imageio.ImageIO;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ser... |
package uk.gov.pay.api.service;
import org.apache.http.HttpStatus;
import uk.gov.pay.api.exception.ConnectorResponseErrorException;
import uk.gov.pay.api.model.links.directdebit.DirectDebitEvent;
import uk.gov.pay.api.model.links.directdebit.DirectDebitEventsResponse;
import javax.inject.Inject;
import javax.ws.rs.cl... |
package com.cmclinnovations.ontochem.model.parser.ctml.phase;
import org.xml.sax.Attributes;
public interface IStateParser {
public void parse(String qName, Attributes attributes);
} |
package com.stormphoenix.ogit.mvp.ui.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TextInputEditText;
import android.support.v7.widget.A... |
@RestrictTo(LIBRARY)
package com.airbnb.android.react.lottie.animation.content;
import android.support.annotation.RestrictTo;
import static android.support.annotation.RestrictTo.Scope.LIBRARY; |
package org.javainaction.sort;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* Implement Raddix sort
*
* Idea is that if we know some key information about our input array such as maximum number then we can improve sort
* time complexity better than ... |
package org.gradle.test.performance.mediummonolithicjavaproject.p104;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test2094 {
Production2094 objectUnderTest = new Production2094();
@Test
public void testProperty0() {
String value = "value";
objectUnderTest.... |
/*******************************************************************************
* SAT4J: a SATisfiability library for Java Copyright (C) 2004, 2013 Artois University and CNRS
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: addressbookv3.proto
package com.example.tutorial;
public final class AddressBookProtos {
private AddressBookProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static ... |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.completion;
import com.intellij.codeInsight.CodeInsightBundle;
import com.intellij.codeInsight.CodeInsightSettings;
import com.intellij.codeInsi... |
/**
* Wrapper to put together all the cli commands used by the application.
*
* @author donlaiq
*/
package com.donlaiq.command;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import com.donlaiq.command.factory.ReturnSingleOutputProcessHandler;
import com.donlaiq.command.factory.... |
package org.hotuganda.collect.android.location.client;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.android.gms.common.Connec... |
import java.net.Socket;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.XMLConstants;
import javax.xml.transform.sax.SAXSource;
import javax.xml.transform.stream.StreamSource;
import org.xml.sax.InputSource;
class DocumentBuilderTests {
public void unconfi... |
package com.alphawallet.app.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
imp... |
package octoteam.tahiti.performance;
import octoteam.tahiti.performance.recorder.MeasurementRecorder;
import octoteam.tahiti.performance.reporter.LogReporter;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledThreadPoolExecut... |
/*
* Copyright 2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
package org.hisp.dhis.dxf2.dataset;
/*
* Copyright (c) 2004-2020, 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 c... |
package com.infotrends.in.tictactoe.ui.home;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CompoundButton;
import android.widget.ToggleButton;
import androidx.an... |
package com.acme;
/**
* Classe conta corrente com construcoes basicas em Java
* @author Marco Mendes
* @since 2017
*
* Pontos para analise:
* - Uso de enums
*
*/
public class ContaCorrente {
private double saldo;
private double limiteCredito;
private StatusConta status;
public ContaCorrente(double sa... |
/*
* L2jFrozen Project - www.l2jfrozen.com
*
* 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 2, or (at your option)
* any later version.
*
* This program is distributed ... |
package net.hyper_pigeon.eldritch_mobs.mod_components.modifiers;
import me.shedaniel.autoconfig.AutoConfig;
import net.hyper_pigeon.eldritch_mobs.EldritchMobsMod;
import net.hyper_pigeon.eldritch_mobs.config.EldritchMobsConfig;
import net.hyper_pigeon.eldritch_mobs.mod_components.interfaces.ModifierInterface;
import n... |
// ***************************************************************************************************************************
// * 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 regardi... |
package com.linkedbear.architecture.h_decorator.utils;
import java.util.Arrays;
public class LogUtils {
public static void printLog(String className, String methodName, Object... args) {
System.out.println(className + " " + methodName + " ...");
System.out.println("参数列表: " + Arrays.toString(a... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* 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 ri... |
/*
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")... |
/*
* Copyright 1999-2018 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... |
public class InsufficientFundsException extends Exception {
public InsufficientFundsException(String message){
super(message);
}
} |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... |
/*
* 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 ... |
package behsaman.storytellerandroid.videoplayer;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.Menu;
import behsaman.storytellerandroid.R;
public class BaseActivity extends Activity {
private Context context;
@Override
protected void onCreate(Bundle... |
/*
* 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 file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
package com.w3engineers.unicef.telemesh.data.helper;
/*
============================================================================
Copyright (C) 2019 W3 Engineers Ltd. - All Rights Reserved.
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
=======================... |
package com.productorder.Controler;
import java.io.IOException;
import java.util.Collections;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import jav... |
package dev.jlibra;
import static java.util.Arrays.asList;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import java.security.Security;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.junit.Before;
import org.junit.Test;
public class MultisignaturePublicKey... |
package matthew.shannon.jamfam.feature.adapter.item;
import android.databinding.DataBindingUtil;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import com.google.auto.factory.AutoFactory;
import mat... |
package fr.javatronic.blog.massive.annotation1.sub1;
import fr.javatronic.blog.processor.Annotation_001;
@Annotation_001
public class Class_7112 {
} |
package com.xceptance.loadtest.api.configuration;
import java.text.MessageFormat;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.xceptance.xlt.api.util.XltRandom;
/**
* A range of integers.
*
* @author Rene Schwietzke
*/
public class ConfigRange
{
/**
* The raw value read for... |
package wu;
import com.danubetech.keyformats.JWK_to_PrivateKey;
import com.danubetech.keyformats.jose.JWK;
import org.bitcoinj.core.ECKey;
import org.bouncycastle.util.encoders.Hex;
import java.io.IOException;
import java.net.URI;
import java.util.HashMap;
public class CredentialsUtil {
/*
static Str... |
/*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS... |
/*
* 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... |
/**
* Copyright © 2010-2020 Nokia
*
* 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 ... |
/*
* MIT License
*
* Copyright (c) 2017 Barracks Inc.
*
* 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, mo... |
package ch.ethz.ssh2.crypto.digest;
/**
* SHA-1 implementation based on FIPS PUB 180-1.
* Highly optimized.
* <p>
* (http://www.itl.nist.gov/fipspubs/fip180-1.htm)
*
* @author Christian Plattner
* @version 2.50, 03/15/10
*/
public final class SHA1 implements Digest
{
private int H0, H1, H2, H3, H4;
private... |
/*
* 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) 2008-2016, 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 ... |
/*
* 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 pl.edu.agh.marims.lib.convert;
import android.graphics.Bitmap;
import android.util.Base64;
import java.io.ByteArrayOutputStream;
public class BitmapToBase64Converter extends BitmapConverter<String> {
private static final float MAX_DIMENSION = 700.0f;
@Override
public String convert(Bitmap bitma... |
package com.or.lang.core.stub.type;
import com.intellij.lang.ASTNode;
import com.intellij.psi.stubs.IndexSink;
import com.intellij.psi.stubs.StubElement;
import com.intellij.psi.stubs.StubInputStream;
import com.intellij.psi.stubs.StubOutputStream;
import com.intellij.util.io.StringRef;
import com.or.ide.search.index.... |
package com.mojang.mario.level;
import com.mojang.mario.LevelScene;
import com.mojang.mario.sprites.*;
public class SpriteTemplate
{
public int lastVisibleTick = -1;
public Sprite sprite;
public boolean isDead = false;
private boolean winged;
private int type;
public SpriteTemplate(i... |
/*
* Copyright 2011 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 applicab... |
package Section_5;
import Section_4.DoublyLinkedList;
import Section_2.LinkedList;
import Section_3.BinarySearchTree;
import Section_3.RedBlackTree;
import Section_2.BinaryTree;
public class AdjacencyListGraphWithSparseVertex<V,E> implements Graph<V,E> {
boolean undirected;
public AdjacencyListGraphWithSparseVert... |
//
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under
// the terms of the Eclipse Public License 2.0 which is available at
// https://www.eclipse.org/leg... |
package hudson.slaves;
import hudson.DescriptorExtensionList;
import hudson.model.Descriptor;
import jenkins.model.Jenkins;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core... |
package com.hacknife.demo.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.hacknife.briefness.BindClick;
import com.hacknife.briefness.BindView;... |
/*
* 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... |
/*
* (C) Copyright IBM Corp. 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.model.constraint.spi;
/**
* An interface that extends {@link ConstraintProvider} with a method that determines whether this constraint provider applies to a specific model class
*/
public interface ModelConstraintP... |
/*
* Copyright (c) 2002-2020, City of Paris
* 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
* and the f... |
package com.dbumama.market.web.admin.product.validator;
import com.dbumama.market.web.core.validator.BaseJsonRenderValidator;
import com.jfinal.core.Controller;
public class ProductValidator extends BaseJsonRenderValidator{
@Override
protected void validate(Controller c) {
validateRequiredString("product_name", ... |
/*
* */
package com.synectiks.process.server.bootstrap;
import static com.google.common.base.Strings.nullToEmpty;
import java.lang.management.ManagementFactory;
import java.nio.file.AccessDeniedException;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.