code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
/*
* 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... | LableOrg/java-bitsandbytes | src/main/java/org/lable/oss/bitsandbytes/BitMask.java | Java | apache-2.0 | 3,928 |
/*
* 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... | lesfurets/dOOv | core/src/main/java/io/doov/core/dsl/DslField.java | Java | apache-2.0 | 1,096 |
/*
* 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... | scana/ok-gradle | plugin/src/main/java/me/scana/okgradle/internal/dsl/parser/elements/GradleDslLiteral.java | Java | apache-2.0 | 5,565 |
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... | lucastheisen/mina-sshd | sshd-fs/src/main/java/org/apache/sftp/protocol/packetdata/ExtendedImplementation.java | Java | apache-2.0 | 338 |
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... | myntra/CoachMarks | coachmarks/src/main/java/com/myntra/coachmarks/builder/CoachMarkPixelInfo.java | Java | apache-2.0 | 3,163 |
/*
* 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 ... | komoot/graphhopper | reader-gtfs/src/main/java/com/graphhopper/reader/gtfs/PtFlagEncoder.java | Java | apache-2.0 | 3,249 |
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... | underclocker/Blob-Game | BlobGame/src/org/siggd/actor/Cannon.java | Java | apache-2.0 | 10,975 |
/*
* 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 ... | smanvi-pivotal/geode | geode-core/src/test/java/org/apache/geode/internal/logging/LogServiceIntegrationJUnitTest.java | Java | apache-2.0 | 8,584 |
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 = ... | tseen/Federated-HDFS | tseenliu/FedHDFS-hadoop-src/hadoop-hdfs-project/hadoop-hdfs/src/main/java/ncku/hpds/hadoop/fedhdfs/shell/DeleteDir.java | Java | apache-2.0 | 2,262 |
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... | quarkusio/quarkus | extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ReflectiveBeanClassesProcessor.java | Java | apache-2.0 | 1,559 |
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... | diyanfilipov/potlach-client | src/com/android/potlach/cloud/client/UnsafeHttpsClient.java | Java | apache-2.0 | 4,431 |
/**
* 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}));
}... | hujiaweibujidao/XSolutions | java/leetcode/BestTimetoBuyandSellStock_121.java | Java | apache-2.0 | 654 |
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... | songzhw/AndroidTestDemo | IntoJFace/src/cn/six/tutor/table2/Table2Util.java | Java | apache-2.0 | 1,025 |
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... | lixwcqs/funny | src/main/java/com.cqs/socket/example/SocketServerEncrypt.java | Java | apache-2.0 | 2,461 |
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... | lgoldstein/communitychest | chest/gui/swing/src/test/java/net/community/chest/test/gui/ResourcesTester.java | Java | apache-2.0 | 3,969 |
/*
* 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... | antoniocarlon/jummyshapefile | src/main/java/com/jummyshapefile/dbf/model/DBFFieldDescriptor.java | Java | apache-2.0 | 2,717 |
/**
* 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... | HubSpot/hbase | hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestAsyncTableScanException.java | Java | apache-2.0 | 6,339 |
/*
* 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... | dagnir/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/transform/WriteSegmentRequestMarshaller.java | Java | apache-2.0 | 2,302 |
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 ... | tanliu/fruit | fruit-core/src/main/java/com/fruit/service/management/QualityService.java | Java | apache-2.0 | 2,193 |
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... | d0k1/jitloganalyzer | analyzer/src/main/java/com/focusit/jitloganalyzer/tty/model/WriterEvent.java | Java | apache-2.0 | 637 |
package org.tc.autonomous;
public class RetreatCommand3HullMod extends AbstractRetreatCommandHullMod {
public RetreatCommand3HullMod() {
super(3);
}
}
| herve-quiroz/autonomous-ships | src/org/tc/autonomous/RetreatCommand3HullMod.java | Java | apache-2.0 | 163 |
/*
* 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... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/biginteger/BigIntegerAssert_isCloseToPercentage_Test.java | Java | apache-2.0 | 1,420 |
/*******************************************************************************
* 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/... | intuit/QuickBooks-V3-Java-SDK | payments-api/src/test/java/com/intuit/payment/services/ChargeServiceTest.java | Java | apache-2.0 | 19,665 |
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... | pfrank13/spring-cloud-contract | samples/standalone/pact/pact-http-server/src/main/java/com/example/fraud/FraudDetectionController.java | Java | apache-2.0 | 1,348 |
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;
... | pony-boy/AdamBradleyThesis | Metatation files/src/annotationInteraction/QueryGenerator.java | Java | apache-2.0 | 29,678 |
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... | SVADemoAPP/Server | model/com/sva/model/LocationModel.java | Java | apache-2.0 | 1,944 |
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;
... | RobAltena/deeplearning4j | nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/custom/FakeQuantWithMinMaxVars.java | Java | apache-2.0 | 3,062 |
/*
* 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 ... | ChetnaChaudhari/hadoop | hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/scm/XceiverClientSpi.java | Java | apache-2.0 | 3,772 |
/**
* 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... | richard-strauss-werke/glyphpicker | src/main/java/de/badw/strauss/glyphpicker/model/DataSourceList.java | Java | apache-2.0 | 3,199 |
/*
* 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 ... | Olegas/YandexAPI | src/ru/elifantiev/yandex/oauth/OAuthActivity.java | Java | apache-2.0 | 4,910 |
/*
* 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... | shs96c/buck | test/com/facebook/buck/android/MultipleResourcePackageIntegrationTest.java | Java | apache-2.0 | 2,897 |
/*
* 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... | Gigaspaces/xap-openspaces | src/main/java/org/openspaces/admin/gsa/ElasticServiceManagerOptions.java | Java | apache-2.0 | 3,376 |
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... | wsv-accidis/tmeit-android | app/src/main/java/se/tmeit/app/model/ExternalEventAttendee.java | Java | apache-2.0 | 2,147 |
/*
* 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... | codeabovelab/haven-platform | cluster-manager/src/main/java/com/codeabovelab/dm/cluman/cluster/docker/model/swarm/DispatcherConfig.java | Java | apache-2.0 | 854 |
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... | hortonworks/cloudbreak | integration-test/src/main/java/com/sequenceiq/it/cloudbreak/dto/AzureInstanceTemplateParametersV4TestDto.java | Java | apache-2.0 | 644 |
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() {
... | cbadenes/farolapi | src/main/java/es/upm/oeg/farolapi/model/LightAttribute.java | Java | apache-2.0 | 410 |
/* 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... | ThorbenLindhauer/graphical-models | inference-engine/src/test/java/com/github/thorbenlindhauer/inference/GaussianModelInferencerTest.java | Java | apache-2.0 | 5,129 |
/*
* 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 ... | googleapis/java-redis | proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/CreateInstanceRequestOrBuilder.java | Java | apache-2.0 | 3,827 |
/*
* 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... | data-integrations/delta | delta-app/src/main/java/io/cdap/delta/store/DBReplicationOffsetStore.java | Java | apache-2.0 | 4,397 |
/*-
* 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, ... | qjafcunuas/jbromo | jbromo-lib/src/test/java/org/jbromo/common/test/common/EnumTestUtil.java | Java | apache-2.0 | 2,245 |
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... | evandor/skysail-framework | skysail.server.app.um.db/src/io/skysail/server/app/um/db/users/resources/UserResource.java | Java | apache-2.0 | 972 |
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... | glassLake/MyVolleyPlus | app/src/main/java/com/hss01248/myvolleyplus/wrapper/CommonHelper.java | Java | apache-2.0 | 12,163 |
/*
* 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... | dump247/aws-sdk-java | aws-java-sdk-devicefarm/src/main/java/com/amazonaws/services/devicefarm/model/transform/CreateUploadResultJsonUnmarshaller.java | Java | apache-2.0 | 2,813 |
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... | mtendu/cosc603-tendulkar-project2 | Monopoly/Monopoly/src/edu/towson/cis/cosc603/project2/monopoly/gui/UtilCellInfoFormatter.java | Java | apache-2.0 | 1,011 |
/*
* 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 ... | meNESS/EasyIntro | library/src/main/java/io/github/meness/easyintro/EasyIntro.java | Java | apache-2.0 | 9,883 |
/*
* 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 ... | apacheignite/ignite | modules/core/src/main/java/org/apache/ignite/internal/portable/streams/PortableMemoryAllocatorChunk.java | Java | apache-2.0 | 3,228 |
/*
* 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... | aws/aws-sdk-java | aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/MqttContext.java | Java | apache-2.0 | 9,309 |
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... | COBUAnalytics/libRandom | src/test/java/org/cobu/randomsamplers/KMeansSamplerTest.java | Java | apache-2.0 | 5,663 |
package us.ihmc.rosControl.wholeRobot;
public interface ForceTorqueSensorHandle
{
double getTz();
double getTy();
double getTx();
double getFz();
double getFy();
double getFx();
String getName();
}
| ihmcrobotics/ihmc-ros-control | src/main/java/us/ihmc/rosControl/wholeRobot/ForceTorqueSensorHandle.java | Java | apache-2.0 | 228 |
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... | sanlingdd/personalLinkedProfilesIn | linkedin-java/src/main/java/com/linkedin/automation/PeopleYouMayKnow.java | Java | apache-2.0 | 2,429 |
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... | sismics/play-nativedb | app/helpers/db/filter/column/OrStringFilterColumn.java | Java | apache-2.0 | 1,101 |
/*
* 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 ... | kamransaleem/waltz | waltz-data/src/main/java/com/khartec/waltz/data/complexity/ConnectionComplexityDao.java | Java | apache-2.0 | 5,062 |
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 ... | Cervator/DestinationSol | main/src/com/miloshpetrov/sol2/common/SolColorUtil.java | Java | apache-2.0 | 3,119 |
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... | clarenceV1/MyApp | app/src/main/java/com/wodejia/myapp/data/contacts/ContactsMenuDO.java | Java | apache-2.0 | 634 |
/*
*
* ==============================================================================
* 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
*
*... | rycaon/isis-base | amap_base/src/main/java/org/wicketstuff/gmap/geocoder/pojos/GeocoderAddress.java | Java | apache-2.0 | 2,587 |
/*******
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... | echopfcom/ECHO-Android-SDK | src/com/echopf/ECHODate.java | Java | apache-2.0 | 2,110 |
/*
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... | DSolyom/AndroidDSFramework | FrameworkV4/frameworkv4/src/main/java/ds/framework/v4/widget/LaizyImageFlipAnimationLayout.java | Java | apache-2.0 | 6,588 |
/*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | ernestp/consulo | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/breakpoints/XExpressionImpl.java | Java | apache-2.0 | 3,535 |
package com.simplegame.server.bus.client.io.action;
import javax.annotation.Resource;
import com.simplegame.core.action.annotation.ActionMapping;
import com.simplegame.core.action.annotation.ActionWorker;
import com.simplegame.core.message.Message;
import com.simplegame.server.bus.client.io.command.ClientIoCommands;
... | zuesgooogle/game-server | src/main/java/com/simplegame/server/bus/client/io/action/BusOutAction.java | Java | apache-2.0 | 640 |
/*
* 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 ... | badlogicmanpreet/aura | aura-impl/src/main/java/org/auraframework/impl/system/DefinitionImpl.java | Java | apache-2.0 | 11,852 |
package com.planet_ink.fakedb;
import java.io.InputStream;
import java.io.Reader;
import java.sql.NClob;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.util.Map;
/*
Copyright 2001 Thomas Neumann
Licensed under the Apache License, Version 2.0 (the "License")... | robjcaskey/Unofficial-Coffee-Mud-Upstream | com/planet_ink/fakedb/ResultSet.java | Java | apache-2.0 | 30,543 |
/**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the Smart Developer Hub Project:
* http://www.smartdeveloperhub.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | SmartDeveloperHub/sdh-scm-harvester | frontend/src/test/java/org/smartdeveloperhub/harvesters/scm/frontend/core/util/AbstractCappedContainerHandlerTestHelper.java | Java | apache-2.0 | 4,942 |
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | cbeams-archive/spring-framework-2.5.x | src/org/springframework/beans/TypeMismatchException.java | Java | apache-2.0 | 3,697 |
/*Copyright (c) 2004,University of Illinois at Urbana-Champaign. All rights reserved.
*
* Created on Jun 14, 2006
*
* Developed by: CCT, Center for Computation and Technology,
* NCSA, University of Illinois at Urbana-Champaign
* OSC, Ohio Supercomputing Center
* TACC, Texas Advanced Computing Cen... | SciGaP/SEAGrid-Desktop-GUI | src/main/java/org/gridchem/client/gui/filebrowser/FileBrowser.java | Java | apache-2.0 | 2,787 |
package io.vertx.ext.auth.test.jwt;
import io.vertx.core.AbstractVerticle;
import io.vertx.ext.auth.KeyStoreOptions;
import io.vertx.ext.auth.jwt.JWTAuth;
import io.vertx.ext.auth.jwt.JWTAuthOptions;
public class DummyVerticle extends AbstractVerticle {
private static final JWTAuthOptions config = new JWTAuthOpt... | nevenr/vertx-auth | vertx-auth-jwt/src/test/java/io/vertx/ext/auth/test/jwt/DummyVerticle.java | Java | apache-2.0 | 544 |
/*
* Copyright 2012 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 applic... | Ariah-Group/Finance | af_webapp/src/main/java/org/kuali/kfs/sys/businessobject/format/ExplicitKualiDecimalFormatter.java | Java | apache-2.0 | 1,889 |
/*
* Copyright (C) Lightbend Inc. <https://www.lightbend.com>
*/
package com.lightbend.lagom.serialization;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.lightbend.lagom.javadsl.immutable.ImmutableStyle;
import org.immutables.value.Value;
import org.immutables.value.Value.Parameter;
... | lagom/lagom | jackson/src/test/java/com/lightbend/lagom/serialization/AbstractEvent2.java | Java | apache-2.0 | 559 |
package eu.darken.myolib.processor.classifier;
import eu.darken.myolib.processor.BaseDataPacket;
import eu.darken.myolib.tools.ByteHelper;
public class WarmUpResultClassifierEvent extends ClassifierEvent {
/**
* Possible warm-up results for Myo.
*/
public enum WarmUpResult {
UNKNOWN((byte) 0... | d4rken/myolib | myolib/src/main/java/eu/darken/myolib/processor/classifier/WarmUpResultClassifierEvent.java | Java | apache-2.0 | 1,487 |
package org.aisen.download;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import org.aisen.download.core.DownloadInfo;
import org.aisen.download.utils.Constants;
import org.aisen.download.utils.DLogger;
import java.util.Vector;
/**
* 用于刷新UI
*
* Created by wangdan on 16/6/14.
*/... | wangdan/DownloadManager | downloader/src/main/java/org/aisen/download/DownloadController.java | Java | apache-2.0 | 2,163 |
/*
* 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 use... | t0nyren/spatedb | src/main/java/com/ricemap/spateDB/core/RTree.java | Java | apache-2.0 | 57,963 |
/*
* Copyright 2016 Greg Whitaker
*
* 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 ... | gregwhitaker/catnap | catnap-springboot/src/main/java/com/github/gregwhitaker/catnap/springboot/annotation/EnableCatnap.java | Java | apache-2.0 | 1,203 |
package pl.dzielins42.dmtools.generator.religion;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import pl.dzielins42.dmtools.model.enumeration.Alignment;
import pl.dzielins42.dmtools.model.enumeration.Gender;
import pl.dzielins42.dmtools.model.religion.Deity;
import pl.dzielins42.dmtools... | dzielins42/urban-bear | src/main/java/pl/dzielins42/dmtools/generator/religion/BasicPantheonGenerator.java | Java | apache-2.0 | 5,109 |
/**
* Copyright (c) 2005-2011 Juan F. Codagnone <http://juan.zaubersoftware.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
*
... | jcodagnone/jiolsucker | iolsucker/src/test/java/ar/com/leak/iolsucker/view/common/FSRepositoryTest.java | Java | apache-2.0 | 8,278 |
package jp.co.thcomp.bluetoothhelper;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
public class BleReceiveDataProvider extends BleDataProvider {
public static final int AddPacketResultSuccess = -1;
public sta... | thcomp/Android_BluetoothHelper | app/src/main/java/jp/co/thcomp/bluetoothhelper/BleReceiveDataProvider.java | Java | apache-2.0 | 7,875 |
/*
* 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 ... | WhiteBearSolutions/WBSAirback | packages/wbsairback-tomcat/wbsairback-tomcat-7.0.22/test/org/apache/el/TestMethodExpressionImpl.java | Java | apache-2.0 | 15,575 |
/*
* Copyright 2021 Solace Corporation. 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 ... | SolaceSamples/solace-samples-java | src/main/java/com/solace/samples/java/snippets/HowToConsumeDirectMessage.java | Java | apache-2.0 | 11,744 |
/**
* Copyright (c) 2008-2011, 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 require... | AssafMashiah/assafmashiah-yaml | src/test/java/org/yaml/snakeyaml/util/UriEncoderTest.java | Java | apache-2.0 | 1,781 |
/*
* 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
*
* Un... | delebash/orientdb-parent | enterprise/src/main/java/com/orientechnologies/orient/enterprise/channel/binary/OAsynchChannelServiceThread.java | Java | apache-2.0 | 2,656 |
package project2.jdbc.bean;
import org.json.JSONObject;
public class OrderSingleBean {
private int qty;
private double unit_price;
private int movie_id;
private String title;
public int getQty() {
return qty;
}
public void setQty(int qty) {
this.qty = qty;
}
public double getUnit_pri... | CS122B-CWP/cs122b | project2/src/main/java/project2/jdbc/bean/OrderSingleBean.java | Java | apache-2.0 | 1,033 |
/*
* 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 ... | don-philipe/graphhopper | core/src/main/java/com/graphhopper/util/gpx/GpxFromInstructions.java | Java | apache-2.0 | 10,232 |
package com.coolweather.app.receiver;
import com.coolweather.app.service.AutoUpdateService;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class AutoUpdateReceiver extends BroadcastReceiver{
@Override
public void onReceive(Context context,Intent i... | lpff/coolweather | src/com/coolweather/app/receiver/AutoUpdateReceiver.java | Java | apache-2.0 | 419 |
package com.google.ratel.deps.jackson.databind.jsonschema;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import com.google.ratel.deps.jackson.annotation.JacksonAnnotation;
/**
* Annotation that can be ... | sabob/ratel | ratel/src/com/google/ratel/deps/jackson/databind/jsonschema/JsonSerializableSchema.java | Java | apache-2.0 | 2,431 |
import java.util.Random;
public class _0382LinkedListRandomNode {
ListNode head;
Random r;
public _0382LinkedListRandomNode(ListNode head) {
this.head = head;
r = new Random();
}
public int getRandom() {
ListNode thisN = head;
ListNode result = null;
for (int n = 1; ... | im-sure/LeetCode | src/_0382LinkedListRandomNode.java | Java | apache-2.0 | 550 |
package org.wildfly.swarm.webservices.runtime;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.wildfly.swarm.container.Interface;
import org.wildfly.swarm.spi.api.Customizer;
import org.wildfly.swarm.spi.runtime.annotations.Post;
import org.wildfly.swarm.webservices.WebServic... | christian-posta/wildfly-swarm | fractions/javaee/webservices/src/main/java/org/wildfly/swarm/webservices/runtime/WSDLHostCustomizer.java | Java | apache-2.0 | 693 |
package com.thilinamb.mqtt.client.sub;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import java.util.logging.Logger;
/**
* Subscriber callback
* Author: Thilina
* Date: 7/19/14
*/
public class Subs... | thilinamb/mqtt-client-example | src/main/java/com/thilinamb/mqtt/client/sub/SubscriberCallback.java | Java | apache-2.0 | 882 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.matrix;
import java.util.Arrays;
import org.apache.commons.lang.Validate;
/**
* A minimal implementation of a vector (in the mathematical sen... | McLeodMoores/starling | projects/analytics/src/main/java/com/opengamma/analytics/math/matrix/DoubleMatrix1D.java | Java | apache-2.0 | 3,045 |
/*****************************************************************************
* *
* This file is part of the tna framework distribution. *
* Documentation and updates may be get from biaoping.yin the author of *
* ... | shufudong/bboss | bboss-persistent/src/com/frameworkset/common/poolman/sql/PrimaryKeyCache.java | Java | apache-2.0 | 5,515 |
package ru.stqa.pft.mantis.appmanager;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.Ht... | mynewyear/java_pft | mantis-tests/src/test/java/ru/stqa/pft/mantis/appmanager/HttpSession.java | Java | apache-2.0 | 2,406 |
/**
* Copyright (C) 2013 Julian Atienza Herrero <j.atienza at har.mrc.ac.uk>
*
* MEDICAL RESEARCH COUNCIL UK MRC
*
* Harwell Mammalian Genetics Unit
*
* http://www.har.mrc.ac.uk
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the Licens... | mpi2/exportlibrary | exportlibrary.xmlvalidationresourcescollection/src/test/java/org/mousephenotype/dcc/exportlibrary/xmlvalidationresourcescollection/impress/utils/InstantiatorTest.java | Java | apache-2.0 | 3,784 |
package edu.colostate.cs.storm.util;
import java.util.HashSet;
import java.util.Set;
/**
* Author: Thilina
* Date: 12/6/14
*/
public class OutlierTracker {
private Set<String> completeSet = new HashSet<String>();
private Set<String> outlierSet = new HashSet<String>();
public void addMember(String key)... | thilinamb/debs14-grand-challenge | src/main/java/edu/colostate/cs/storm/util/OutlierTracker.java | Java | apache-2.0 | 810 |
/**
* 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... | CesarPantoja/jena | jena-arq/src/main/java/org/apache/jena/riot/system/StreamRDFLib.java | Java | apache-2.0 | 7,950 |
/*
* Copyright (C) 2012-2015 DataStax 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 app... | mike-tr-adamson/java-driver | driver-core/src/test/java/com/datastax/driver/core/PreparedStatementTest.java | Java | apache-2.0 | 19,674 |
/*
* Copyright 1999-2020 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... | alibaba/nacos | api/src/main/java/com/alibaba/nacos/api/remote/response/ResponseCode.java | Java | apache-2.0 | 1,875 |
package cn.springmvc.service;
public interface ShopService {
}
| JoshEliYang/PriceTag | src/main/java/cn/springmvc/service/ShopService.java | Java | apache-2.0 | 65 |
/**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | is-apps/NotificationPortlet | notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/jpa/action/CompleteOnRedirectAction.java | Java | apache-2.0 | 2,861 |
/**
* Copyright 2008-2017 Qualogy Solutions B.V.
*
* 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... | qafedev/qafe-platform | qafe-business/src/test/java/test/com/qualogy/qafe/business/integration/adapter/DummyPersonMoreComplexObject.java | Java | apache-2.0 | 1,065 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | TatsianaKasiankova/pentaho-kettle | engine/src/main/java/org/pentaho/di/job/entries/deletefolders/JobEntryDeleteFolders.java | Java | apache-2.0 | 15,930 |
/*
* Copyright 2019 EPAM Systems
*
* 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 ... | reportportal/service-api | src/main/java/com/epam/ta/reportportal/ws/controller/FileStorageController.java | Java | apache-2.0 | 5,705 |
package org.flysnow.cloud.buildmeta.ui.resteasy.exception;
import java.io.Serializable;
public class BuildMetadataServiceException extends RuntimeException implements Serializable {
private static final long serialVersionUID = 7786141544419367058L;
public BuildMetadataServiceException(){
super();
}
public B... | shensiduanxing/devops-metadata-svc | src/main/java/org/flysnow/cloud/buildmeta/ui/resteasy/exception/BuildMetadataServiceException.java | Java | apache-2.0 | 557 |
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2021 DBeaver Corp and 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/LICE... | Sargul/dbeaver | plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/tasks/MySQLToolTableCheckSettings.java | Java | apache-2.0 | 2,432 |