repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
vam-google/google-cloud-java | google-cloud-clients/google-cloud-dns/src/test/java/com/google/cloud/dns/it/ITDnsTest.java | 88484 | /*
* Copyright 2016 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | apache-2.0 |
taegeonum/incubator-reef | lang/java/reef-io/src/main/java/org/apache/reef/io/network/group/impl/driver/TopologyUpdateWaitHandler.java | 4136 | /*
* 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 ... | apache-2.0 |
milg0/onvif-java-lib | src/org/onvif/ver10/media/wsdl/CreateProfile.java | 2297 | //
// Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2 generiert
// Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// �nderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren.
// Generiert: 2014.02.19... | apache-2.0 |
oleg-cherednik/hackerrank | Tutorials/Interview Preparation Kit/Linked Lists/Find Merge Point of Two Lists/Solution.java | 3072 | import java.util.Scanner;
/**
* @author Oleg Cherednik
* @since 04.08.2018
*/
public class Solution {
static class SinglyLinkedListNode {
public int data;
public SinglyLinkedListNode next;
public SinglyLinkedListNode(int nodeData) {
this.data = nodeData;
this.n... | apache-2.0 |
346674058/SuRui | code/myit-server/src/main/java/com/myit/server/service/admin/impl/MenuServiceImpl.java | 4661 | package com.myit.server.service.admin.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.myit.common.beans.PageQueryParam;
impo... | apache-2.0 |
android-art-intel/Nougat | art-extension/opttests/src/OptimizationTests/ShortMethodsInliningNonVirtualInvokes/InvokeSuperAObjectThrowNullGet_001/Test.java | 1106 | /*
* Copyright (C) 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... | apache-2.0 |
kuali/kpme | pm/impl/src/test/java/org/kuali/kpme/pm/position/PositionBoTest.java | 8006 | /**
* Copyright 2004-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | apache-2.0 |
josealmeida/opereffa | Opereffa/src/uk/ac/ucl/chime/web/RandomGroupIdAdapter.java | 2256 | /*******************************************************************************
* Copyright 2012 Sevket Seref Arikan, David Ingram
*
* 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
*
... | apache-2.0 |
Pravian/LALParser | src/test/java/net/pravian/lalparser/LALFileTest.java | 2524 | /*
* Copyright 2015 Jerom van der Sar.
*
* 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 ag... | apache-2.0 |
nengxu/OrientDB | core/src/main/java/com/orientechnologies/orient/core/version/ODistributedVersion.java | 12956 | /*
* Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | apache-2.0 |
xiao125/LatteDamo | latte-ui/src/main/java/com/latte/ui/recycler/MultipleFields.java | 225 | package com.latte.ui.recycler;
/**
* Created by Administrator on 2017/9/18 0018.
*/
public enum MultipleFields {
ITEM_TYPE,
TITLE,
TEXT,
IMAGE_URL,
BANNERS,
SPAN_SIZE,
ID,
NAME,
TAG
}
| apache-2.0 |
x-huihui/x-huihui.github.io | src/main/java/com/xhuihui/app/json/json.java | 100 | package com.xhuihui.app.json;
/**
* Created by lihuiguang on 2017/7/13.
*/
public class json {
}
| apache-2.0 |
floodlight/loxigen-artifacts | openflowj/gen-src/main/java/org/projectfloodlight/openflow/protocol/oxm/OFOxmBsnInPorts128.java | 2170 | // Copyright (c) 2008 The Board of Trustees of The Leland Stanford Junior University
// Copyright (c) 2011, 2012 Open Networking Foundation
// Copyright (c) 2012, 2013 Big Switch Networks, Inc.
// This library was generated by the LoxiGen Compiler.
// See the file LICENSE.txt which should have been included in the sour... | apache-2.0 |
MarchMachao/ZHFS-WEB | src/main/java/com/smates/dbc2/utils/SysConst.java | 573 | package com.smates.dbc2.utils;
/**
* 参数
* @author 刘晓庆
*
*/
public class SysConst {
//md5加密时用到的盐值
public static final String SALTSOURCE = "baijw";
//七牛云外连接域名
public static final String QNIUYUNURL = "http://ohyi4k153.bkt.clouddn.com/";
//七牛云图片处理样式
public static final String QNIUYUNSTYLE = ... | apache-2.0 |
phac-nml/irida | src/main/java/ca/corefacility/bioinformatics/irida/ria/web/services/UIClientService.java | 7213 | package ca.corefacility.bioinformatics.irida.ria.web.services;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolationException;
import org.apache.commons.lang3.RandomStringUtils;
import org.spring... | apache-2.0 |
sarvex/MINA | core/src/main/java/org/apache/mina/common/ThreadModel.java | 1632 | /*
* 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")... | apache-2.0 |
jentfoo/aws-sdk-java | aws-java-sdk-managedblockchain/src/main/java/com/amazonaws/services/managedblockchain/model/transform/DeleteMemberRequestProtocolMarshaller.java | 2674 | /*
* Copyright 2014-2019 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... | apache-2.0 |
triathematician/blaisemath | blaise-graph-theory-ui/src/test/java/com/googlecode/blaisemath/graph/test/DynamicGraphTestFrame.java | 14531 | package com.googlecode.blaisemath.graph.test;
/*
* #%L
* BlaiseGraphTheory
* --
* Copyright (C) 2009 - 2021 Elisha Peterson
* --
* 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
*
* ... | apache-2.0 |
christianfranco/the-clean-code-bay | geo-match/server/core/src/main/java/com/github/christianfranco/geomatch/exception/PhoneNumberRepositoryException.java | 498 | package com.github.christianfranco.geomatch.exception;
import com.github.christianfranco.geomatch.entities.ErrorCode;
/**
* Created by Christian Franco on 12/12/2016 14:03.
*/
public class PhoneNumberRepositoryException extends GeoMathException {
public PhoneNumberRepositoryException(ErrorCode errorCode... | apache-2.0 |
ljcservice/autumnprogram | src/main/java/com/ts/util/doctor/DoctorConst.java | 1159 | package com.ts.util.doctor;
import java.util.HashMap;
import java.util.Map;
public class DoctorConst {
public static Map<String,String> rstypeMap = new HashMap<String,String>();
static{
rstypeMap.put("diaginfo","禁");
rstypeMap.put("dosage","法");
rstypeMap.put("ingredien","重");
rstypeMap.put("int... | apache-2.0 |
xxxllluuu/uavstack | com.creditease.uav.agent.heartbeat/src/main/java/com/creditease/agent/feature/hbagent/HeartBeatQueryListenWorker.java | 1807 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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 r... | apache-2.0 |
learning-layers/LivingDocumentsServer | ld-etherpad/src/main/java/de/hska/ld/etherpad/service/UserEtherpadInfoService.java | 1589 | /*
* Code contributed to the Learning Layers project
* http://www.learning-layers.eu
* Development is partly funded by the FP7 Programme of the European
* Commission under Grant Agreement FP7-ICT-318209.
* Copyright (c) 2016, Karlsruhe University of Applied Sciences.
* For a list of contributors see the AUT... | apache-2.0 |
z123/datacollector | container/src/main/java/com/streamsets/datacollector/config/ModelDefinition.java | 3255 | /*
* Copyright 2017 StreamSets 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... | apache-2.0 |
dmarius99/ImplementationDiscriminator | src/test/java/any/ejbtest/MoviesImplWrapper.java | 826 | package any.ejbtest;
import com.dms.Discriminated;
import java.util.List;
/**
* MoviesImplEjb, 02.03.2015
*
* Copyright (c) 2014 Marius Dinu. All rights reserved.
*
* @author mdinu
* @version $Id$
*/
//@Named
@Discriminated(isResultAggregated = true)
public class MoviesImplWrapper implements Movies {
pri... | apache-2.0 |
statefulj/statefulj | statefulj-persistence/statefulj-persistence-jpa/src/test/java/org/statefulj/persistence/jpa/embedded/EmbeddedJPAPersisterTest.java | 4425 | /***
*
* Copyright 2014 Andrew Hall
*
* 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... | apache-2.0 |
hotpads/datarouter | datarouter-mysql/src/main/java/io/datarouter/client/mysql/ddl/domain/SqlIndex.java | 1493 | /*
* Copyright © 2009 HotPads (admin@hotpads.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | apache-2.0 |
SES-fortiss/SmartGridCoSimulation | core/cim15/src/CIM15/IEC61970/Wires/PerLengthPhaseImpedance.java | 10430 | /**
*/
package CIM15.IEC61970.Wires;
import CIM15.IEC61970.Core.IdentifiedObject;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.em... | apache-2.0 |
OurFriendIrony/MediaNotifier | app/src/main/java/uk/co/ourfriendirony/medianotifier/clients/tmdb/movie/get/MovieGet.java | 11616 | package uk.co.ourfriendirony.medianotifier.clients.tmdb.movie.get;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotatio... | apache-2.0 |
bjorndm/prebake | code/third_party/bdb/examples/je/gettingStarted/ExampleInventoryRead.java | 7325 | // file ExampleInventoryRead
// $Id: ExampleInventoryRead.java,v 1.10 2009/01/09 22:10:13 mark Exp $
package je.gettingStarted;
import java.io.File;
import java.io.IOException;
import com.sleepycat.bind.EntryBinding;
import com.sleepycat.bind.serial.SerialBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import... | apache-2.0 |
markhobson/contacts | client/src/main/java/org/hobsoft/contacts/client/contact/ContactDeleteDriver.java | 2326 | /*
* 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
* distrib... | apache-2.0 |
etirelli/droolsjbpm-integration | kie-server-parent/kie-server-tests/kie-server-integ-tests-optaplanner/src/test/java/org/kie/server/integrationtests/optaplanner/OptaplannerIntegrationTest.java | 30201 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | apache-2.0 |
qweek/rsocket-java | rsocket-transport-local/src/main/java/io/rsocket/transport/local/LocalUriHandler.java | 1377 | /*
* Copyright 2016 Netflix, 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 ... | apache-2.0 |
Hack23/cia | citizen-intelligence-agency/src/test/java/com/hack23/cia/systemintegrationtest/ChartTest.java | 3413 | /*
* Copyright 2010-2021 James Pether Sörling
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | apache-2.0 |
jalmela/BasicMathCalculator | BasicMathCalculator/src/es/josealmela/BasicMathCalculator/client/ConverNumberServiceAsync.java | 335 | package es.josealmela.BasicMathCalculator.client;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
* The async counterpart of <code>convertNumberService</code>.
*/
public interface ConverNumberServiceAsync {
void convertNumbertServer(String input, AsyncCallback<String> callback)
throws IllegalArgume... | apache-2.0 |
Victory/TreasureHuntPWA | backspark/src/main/java/org/dfhu/thpwa/routing/RouteAdder.java | 730 | package org.dfhu.thpwa.routing;
abstract class RouteAdder<T extends Route> {
/**
* Get the url pattern for this route
*/
protected abstract String getPath();
/**
* get the HTTP request method
*/
protected abstract Route.METHOD getMethod();
public void doGet(RouteAdder<T> routeAdder) {
Halti... | apache-2.0 |
takezoe/xlsbeans | src/test/java/com/github/takezoe/xlsbeans/LanguageIDE.java | 665 | package com.github.takezoe.xlsbeans;
import com.github.takezoe.xlsbeans.annotation.Column;
import com.github.takezoe.xlsbeans.annotation.MapColumns;
import java.util.Map;
public class LanguageIDE {
private String name;
private Map<String, String> attributes;
public Map<String, String> getAttribut... | apache-2.0 |
iamironz/binaryprefs | library/src/main/java/com/ironz/binaryprefs/BinaryPreferencesEditor.java | 10537 | package com.ironz.binaryprefs;
import com.ironz.binaryprefs.cache.candidates.CacheCandidateProvider;
import com.ironz.binaryprefs.cache.provider.CacheProvider;
import com.ironz.binaryprefs.event.EventBridge;
import com.ironz.binaryprefs.exception.TransactionInvalidatedException;
import com.ironz.binaryprefs.file.trans... | apache-2.0 |
jrenner/gdx-proto | core/src/org/jrenner/fps/utils/Compression.java | 1974 | package org.jrenner.fps.utils;
import com.badlogic.gdx.utils.Array;
import org.jrenner.fps.Log;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
pub... | apache-2.0 |
haghard/docker-compose-akka-cluster | src/main/scala/demo/hashing/CassandraHash.java | 4268 | package demo.hashing;
import java.nio.ByteBuffer;
public class CassandraHash {
private static long getblock(ByteBuffer key, int offset, int index) {
int i_8 = index << 3;
return ((long) key.get(offset + i_8 + 0) & 0xff) + (((long) key.get(offset + i_8 + 1) & 0xff) << 8) +
(((long) key.get(offset + i_... | apache-2.0 |
OpenGamma/Strata | modules/pricer/src/main/java/com/opengamma/strata/pricer/swaption/NormalSwaptionExpiryStrikeVolatilities.java | 19774 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.pricer.swaption;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.ZonedDateTime;
import java.util.Map;
import java.util.NoSuchEl... | apache-2.0 |
EricssonResearch/scott-eu | lyo-services/domain-pddl/src/main/java/eu/scott/warehouse/domains/pddl/IStep.java | 5144 | // Start of user code Copyright
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclips... | apache-2.0 |
Otaka/mydifferentprojects | nes-java/test/com/nes/processor/SbcTest.java | 1413 | package com.nes.processor;
import com.nes.NesAbstractTst;
import org.junit.Test;
/**
*
* @author Dmitry
*/
public class SbcTest extends NesAbstractTst {
@Test
public void testSbc() {
String[] lines;
lines = new String[]{
"clc",
"lda #$50",
... | apache-2.0 |
LableOrg/java-bitsandbytes | src/main/java/org/lable/oss/bitsandbytes/BitMask.java | 3928 | /*
* Copyright © 2015 Lable (info@lable.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 applicable law o... | apache-2.0 |
lesfurets/dOOv | core/src/main/java/io/doov/core/dsl/DslField.java | 1096 | /*
* Copyright 2017 Courtanet
*
* 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... | apache-2.0 |
scana/ok-gradle | plugin/src/main/java/me/scana/okgradle/internal/dsl/parser/elements/GradleDslLiteral.java | 5565 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 |
lucastheisen/mina-sshd | sshd-fs/src/main/java/org/apache/sftp/protocol/packetdata/ExtendedImplementation.java | 338 | package org.apache.sftp.protocol.packetdata;
import org.apache.sftp.protocol.Response;
public interface ExtendedImplementation<T extends Extended<T, S>, S extends Response<S>>
extends Implementation<T> {
public String getExtendedRequest();
public Implementation<S> getExtendedReplyImpl... | apache-2.0 |
myntra/CoachMarks | coachmarks/src/main/java/com/myntra/coachmarks/builder/CoachMarkPixelInfo.java | 3163 | package com.myntra.coachmarks.builder;
import android.graphics.Rect;
import android.os.Parcelable;
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class CoachMarkPixelInfo implements Parcelable {
public static CoachMarkPixelInfo.Builder create() {
return new AutoValue_CoachMarkPixelIn... | apache-2.0 |
komoot/graphhopper | reader-gtfs/src/main/java/com/graphhopper/reader/gtfs/PtFlagEncoder.java | 3249 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not ... | apache-2.0 |
underclocker/Blob-Game | BlobGame/src/org/siggd/actor/Cannon.java | 10975 | package org.siggd.actor;
import org.siggd.ContactHandler;
import org.siggd.Convert;
import org.siggd.Game;
import org.siggd.Level;
import org.siggd.StableContact;
import org.siggd.Timer;
import org.siggd.view.BodySprite;
import org.siggd.view.CompositeDrawable;
import org.siggd.view.Drawable;
import com.b... | apache-2.0 |
smanvi-pivotal/geode | geode-core/src/test/java/org/apache/geode/internal/logging/LogServiceIntegrationJUnitTest.java | 8584 | /*
* 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 ... | apache-2.0 |
tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/ncku/hpds/hadoop/fedhdfs/shell/DeleteDir.java | 2262 | package ncku.hpds.hadoop.fedhdfs.shell;
import java.io.BufferedOutputStream;
import java.io.ObjectInputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import ncku.hpds.hadoop.fedhdfs.GlobalNamespaceObject;
public class DeleteDir {
private String SNaddress = "127.0.0.1";
private int SNport = ... | apache-2.0 |
quarkusio/quarkus | extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ReflectiveBeanClassesProcessor.java | 1559 | package io.quarkus.arc.deployment;
import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
import org.jboss.jandex.Type;
import io.quarkus.arc.processor.BeanInfo;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.Bu... | apache-2.0 |
diyanfilipov/potlach-client | src/com/android/potlach/cloud/client/UnsafeHttpsClient.java | 4431 | package com.android.potlach.cloud.client;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.sec... | apache-2.0 |
hujiaweibujidao/XSolutions | java/leetcode/BestTimetoBuyandSellStock_121.java | 654 | /**
* hujiawei - 15/3/21.
* <p/>
* 贪心
* <p/>
* https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
*/
public class BestTimetoBuyandSellStock_121 {
public static void main(String[] args) {
System.out.println(new BestTimetoBuyandSellStock_121().maxProfit(new int[]{2, 5, 3, 8, 1, 10}));
}... | apache-2.0 |
songzhw/AndroidTestDemo | IntoJFace/src/cn/six/tutor/table2/Table2Util.java | 1025 | package cn.six.tutor.table2;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import java.net.MalformedURLException;
import java.net.URL;
/**
* Created by songzhw on 2016/3/5.
*/
public class Table2Util {
private static ImageRegistry imgReg;
public stati... | apache-2.0 |
lixwcqs/funny | src/main/java/com.cqs/socket/example/SocketServerEncrypt.java | 2461 | package com.cqs.socket.example;
import javax.net.ServerSocketFactory;
import javax.net.ssl.SSLServerSocketFactory;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util... | apache-2.0 |
lgoldstein/communitychest | chest/gui/swing/src/test/java/net/community/chest/test/gui/ResourcesTester.java | 3969 | package net.community.chest.test.gui;
import java.io.BufferedReader;
import java.io.PrintStream;
import net.community.chest.Triplet;
import net.community.chest.awt.dom.converter.InsetsValueInstantiator;
import net.community.chest.awt.layout.gridbag.ExtendedGridBagConstraints;
import net.community.chest.awt.layout.grid... | apache-2.0 |
antoniocarlon/jummyshapefile | src/main/java/com/jummyshapefile/dbf/model/DBFFieldDescriptor.java | 2717 | /*
* Copyright 2015 ANTONIO CARLON
*
* 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 ag... | apache-2.0 |
HubSpot/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncTableScanException.java | 6339 | /**
* 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... | apache-2.0 |
dagnir/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/transform/WriteSegmentRequestMarshaller.java | 2302 | /*
* Copyright 2012-2017 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... | apache-2.0 |
tanliu/fruit | fruit-core/src/main/java/com/fruit/service/management/QualityService.java | 2193 | package com.fruit.service.management;
import com.fruit.base.BaseService;
import com.fruit.entity.management.Quality;
import java.util.Map;
/**
* 产品质量检测 Service
* @author CSH
*
*/
public interface QualityService extends BaseService<Quality> {
/**返回当前质检人员的质检记录
* @param page
* @param pageSize
* @param ... | apache-2.0 |
d0k1/jitloganalyzer | analyzer/src/main/java/com/focusit/jitloganalyzer/tty/model/WriterEvent.java | 637 | package com.focusit.jitloganalyzer.tty.model;
/**
* Created by doki on 08.11.16.
* <writer thread='139821162608384'/>
*/
public class WriterEvent extends AbstractTTYEvent implements TTYEvent, HasThreadId
{
private final static String START_TOKEN = "<writer";
private long threadId;
@Override
public... | apache-2.0 |
herve-quiroz/autonomous-ships | src/org/tc/autonomous/RetreatCommand3HullMod.java | 163 | package org.tc.autonomous;
public class RetreatCommand3HullMod extends AbstractRetreatCommandHullMod {
public RetreatCommand3HullMod() {
super(3);
}
}
| apache-2.0 |
hazendaz/assertj-core | src/test/java/org/assertj/core/api/biginteger/BigIntegerAssert_isCloseToPercentage_Test.java | 1420 | /*
* 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... | apache-2.0 |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/test/java/com/intuit/payment/services/ChargeServiceTest.java | 19665 | /*******************************************************************************
* Copyright (c) 2019 Intuit
*
* 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/... | apache-2.0 |
pfrank13/spring-cloud-contract | samples/standalone/pact/pact-http-server/src/main/java/com/example/fraud/FraudDetectionController.java | 1348 | package com.example.fraud;
import static org.springframework.web.bind.annotation.RequestMethod.PUT;
import java.math.BigDecimal;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
i... | apache-2.0 |
pony-boy/AdamBradleyThesis | Metatation files/src/annotationInteraction/QueryGenerator.java | 29678 | package annotationInteraction;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
public class QueryGenerator {
private long worksheet_id;
... | apache-2.0 |
SVADemoAPP/Server | model/com/sva/model/LocationModel.java | 1944 | package com.sva.model;
import java.math.BigDecimal;
public class LocationModel
{
private String idType;
private BigDecimal timestamp;
private String dataType;
private BigDecimal x;
private BigDecimal y;
private BigDecimal z;
private String userID;
private String path;
priva... | apache-2.0 |
RobAltena/deeplearning4j | nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/custom/FakeQuantWithMinMaxVars.java | 3062 | package org.nd4j.linalg.api.ops.impl.transforms.custom;
import org.nd4j.autodiff.samediff.SDVariable;
import org.nd4j.autodiff.samediff.SameDiff;
import org.nd4j.base.Preconditions;
import org.nd4j.linalg.api.buffer.DataType;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ops.DynamicCustomOp;
... | apache-2.0 |
ChetnaChaudhari/hadoop | hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientSpi.java | 3772 | /*
* 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 ... | apache-2.0 |
richard-strauss-werke/glyphpicker | src/main/java/de/badw/strauss/glyphpicker/model/DataSourceList.java | 3199 | /**
* Copyright 2015 Alexander Erhard
*
* 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... | apache-2.0 |
Olegas/YandexAPI | src/ru/elifantiev/yandex/oauth/OAuthActivity.java | 4910 | /*
* Copyright 2011 Oleg Elifantiev
*
* 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 ... | apache-2.0 |
shs96c/buck | test/com/facebook/buck/android/MultipleResourcePackageIntegrationTest.java | 2897 | /*
* Copyright 2014-present Facebook, 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... | apache-2.0 |
Gigaspaces/xap-openspaces | src/main/java/org/openspaces/admin/gsa/ElasticServiceManagerOptions.java | 3376 | /*
* Copyright 2006-2007 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... | apache-2.0 |
wsv-accidis/tmeit-android | app/src/main/java/se/tmeit/app/model/ExternalEventAttendee.java | 2147 | package se.tmeit.app.model;
import com.google.auto.value.AutoValue;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Model object for attendees of an external event.
*/
@AutoValue
public abstract class ExternalEventAtten... | apache-2.0 |
codeabovelab/haven-platform | cluster-manager/src/main/java/com/codeabovelab/dm/cluman/cluster/docker/model/swarm/DispatcherConfig.java | 854 | /*
* Copyright 2016 Code Above Lab LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | apache-2.0 |
hortonworks/cloudbreak | integration-test/src/main/java/com/sequenceiq/it/cloudbreak/dto/AzureInstanceTemplateParametersV4TestDto.java | 644 | package com.sequenceiq.it.cloudbreak.dto;
import com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.base.parameter.template.AzureInstanceTemplateV4Parameters;
import com.sequenceiq.it.cloudbreak.Prototype;
import com.sequenceiq.it.cloudbreak.context.TestContext;
@Prototype
public class AzureInstanceTemplateParametersV4... | apache-2.0 |
cbadenes/farolapi | src/main/java/es/upm/oeg/farolapi/model/LightAttribute.java | 410 | package es.upm.oeg.farolapi.model;
import lombok.Data;
import lombok.ToString;
import java.util.Arrays;
import java.util.List;
/**
* Created on 23/05/16:
*
* @author cbadenes
*/
@Data
@ToString (callSuper = true)
public class LightAttribute extends Attribute {
@Override
public List<String> getRange() {
... | apache-2.0 |
ThorbenLindhauer/graphical-models | inference-engine/src/test/java/com/github/thorbenlindhauer/inference/GaussianModelInferencerTest.java | 5129 | /* 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 the L... | apache-2.0 |
googleapis/java-redis | proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java | 3827 | /*
* 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 ... | apache-2.0 |
data-integrations/delta | delta-app/src/main/java/io/cdap/delta/store/DBReplicationOffsetStore.java | 4397 | /*
* Copyright © 2021 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | apache-2.0 |
qjafcunuas/jbromo | jbromo-lib/src/test/java/org/jbromo/common/test/common/EnumTestUtil.java | 2245 | /*-
* Copyright (C) 2013-2014 The JBromo 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 rights
* to use, copy, modify, ... | apache-2.0 |
evandor/skysail-framework | skysail.server.app.um.db/src/io/skysail/server/app/um/db/users/resources/UserResource.java | 972 | package io.skysail.server.app.um.db.users.resources;
import io.skysail.api.links.Link;
import io.skysail.api.responses.SkysailResponse;
import io.skysail.server.app.um.db.UmApplication;
import io.skysail.server.app.um.db.domain.User;
import io.skysail.server.restlet.resources.EntityServerResource;
import java.util.Li... | apache-2.0 |
glassLake/MyVolleyPlus | app/src/main/java/com/hss01248/myvolleyplus/wrapper/CommonHelper.java | 12163 | package com.hss01248.myvolleyplus.wrapper;
import android.text.TextUtils;
import android.util.Log;
import com.hss01248.myvolleyplus.config.BaseNetBean;
import com.hss01248.myvolleyplus.config.ConfigInfo;
import com.hss01248.myvolleyplus.config.NetConfig;
import com.hss01248.myvolleyplus.retrofit.MyRetrofitUti... | apache-2.0 |
dump247/aws-sdk-java | aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/CreateUploadResultJsonUnmarshaller.java | 2813 | /*
* Copyright 2010-2016 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 "l... | apache-2.0 |
android-workloads/gcwfa | GC_workload_android/GCWA/build/generated/source/r/debug/com/intel/crtl/GCWA/R.java | 9238 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.intel.crtl.GCWA;
public final class R {
public static final class attr {
}
public static final class ... | apache-2.0 |
mtendu/cosc603-tendulkar-project2 | Monopoly/Monopoly/src/edu/towson/cis/cosc603/project2/monopoly/gui/UtilCellInfoFormatter.java | 1011 | package edu.towson.cis.cosc603.project2.monopoly.gui;
import edu.towson.cis.cosc603.project2.monopoly.Cell;
import edu.towson.cis.cosc603.project2.monopoly.Player;
import edu.towson.cis.cosc603.project2.monopoly.UtilityCell;
// TODO: Auto-generated Javadoc
/**
* The Class UtilCellInfoFormatter.
*/
public class Util... | apache-2.0 |
meNESS/EasyIntro | library/src/main/java/io/github/meness/easyintro/EasyIntro.java | 9883 | /*
* Copyright 2016 Alireza Eskandarpour Shoferi
*
* 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 ... | apache-2.0 |
apacheignite/ignite | modules/core/src/main/java/org/apache/ignite/internal/portable/streams/PortableMemoryAllocatorChunk.java | 3228 | /*
* 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 ... | apache-2.0 |
aws/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttContext.java | 9309 | /*
* 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... | apache-2.0 |
COBUAnalytics/libRandom | src/test/java/org/cobu/randomsamplers/KMeansSamplerTest.java | 5663 | package org.cobu.randomsamplers;
import org.apache.commons.math3.ml.clustering.CentroidCluster;
import org.apache.commons.math3.ml.clustering.DoublePoint;
import org.apache.commons.math3.ml.distance.EuclideanDistance;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
impo... | apache-2.0 |
ihmcrobotics/ihmc-ros-control | src/main/java/us/ihmc/rosControl/wholeRobot/ForceTorqueSensorHandle.java | 228 | package us.ihmc.rosControl.wholeRobot;
public interface ForceTorqueSensorHandle
{
double getTz();
double getTy();
double getTx();
double getFz();
double getFy();
double getFx();
String getName();
}
| apache-2.0 |
sanlingdd/personalLinkedProfilesIn | linkedin-java/src/main/java/com/linkedin/automation/PeopleYouMayKnow.java | 2429 | package com.linkedin.automation;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class PeopleY... | apache-2.0 |
sismics/play-nativedb | app/helpers/db/filter/column/OrStringFilterColumn.java | 1101 | package helpers.db.filter.column;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Filter on a disjunction of string matches.
* Instead of filtering on "column ~= filter", filters on (columns[0] ~= filter or ... or columns[n - 1] ~= filter).
*
* @author jtremea... | apache-2.0 |
kamransaleem/waltz | waltz-data/src/main/java/com/khartec/waltz/data/complexity/ConnectionComplexityDao.java | 5062 | /*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 ... | apache-2.0 |
Cervator/DestinationSol | main/src/com/miloshpetrov/sol2/common/SolColorUtil.java | 3119 | package com.miloshpetrov.sol2.common;
import com.badlogic.gdx.graphics.Color;
public class SolColorUtil {
public static void fromHSB(float hue, float saturation, float brightness, float a, Color dest) {
float r = 0, g = 0, b = 0;
if (saturation == 0) {
r = g = b = brightness;
} else {
float ... | apache-2.0 |
clarenceV1/MyApp | app/src/main/java/com/wodejia/myapp/data/contacts/ContactsMenuDO.java | 634 | package com.wodejia.myapp.data.contacts;
import java.io.Serializable;
/**
* Created by clarence on 16/9/2.
*/
public class ContactsMenuDO implements Serializable {
private int key;
private String value;
private String title;
public int getKey() {
return key;
}
public void setKey(i... | apache-2.0 |
rycaon/isis-base | amap_base/src/main/java/org/wicketstuff/gmap/geocoder/pojos/GeocoderAddress.java | 2587 | /*
*
* ==============================================================================
* 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
*
*... | apache-2.0 |
echopfcom/ECHO-Android-SDK | src/com/echopf/ECHODate.java | 2110 | /*******
Copyright 2015 NeuroBASE,Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | apache-2.0 |
DSolyom/AndroidDSFramework | FrameworkV4/frameworkv4/src/main/java/ds/framework/v4/widget/LaizyImageFlipAnimationLayout.java | 6588 | /*
Copyright 2014 Dániel Sólyom
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, so... | apache-2.0 |