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 2014 Philip Cronje
*
* 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 i... | slyfoxza/minecraft | nbt-api/src/test/java/net/za/slyfox/minecraft/nbt/stream/BigTestNbtParserTest.java | Java | apache-2.0 | 9,062 |
/*
* Copyright (C) 2014 Steelkiwi Development, Julia Zudikova
*
* 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 ... | steelkiwi/SketchView | sample/src/com/skd/sketchview/sketch/SketchManager.java | Java | apache-2.0 | 2,013 |
/*
* Copyright 2013 by Maxim Kalina
*
* 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 ... | fangchi/netty-servlet-bridge | src/main/java/net/javaforge/netty/servlet/bridge/impl/HttpServletResponseImpl.java | Java | apache-2.0 | 7,177 |
/* 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... | sibok666/flowable-engine | modules/flowable-bpmn-model/src/main/java/org/flowable/bpmn/model/ServiceTask.java | Java | apache-2.0 | 4,114 |
/*
* Copyright 2012-2019 MarkLogic 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... | marklogic/data-hub-in-a-box | marklogic-data-hub/src/main/java/com/marklogic/hub/impl/MasteringManagerImpl.java | Java | apache-2.0 | 5,623 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-lakeformation/src/main/java/com/amazonaws/services/lakeformation/model/EntityNotFoundException.java | Java | apache-2.0 | 1,216 |
package works.weave.socks.orders.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
import org.apache.servicecomb.provider.rest.common.Rest... | huawei-microservice-demo/sockshop-demo | orders/src/main/java/works/weave/socks/orders/controllers/HealthCheckController.java | Java | apache-2.0 | 1,529 |
//package com.cloudata.objectstore.jclouds;
//
//class SwiftPath {
// final String container;
// final String name;
//
// public SwiftPath(String container, String name) {
// this.container = container;
// this.name = name;
// }
//
// static SwiftPath split(String path) {
// while (p... | justinsb/cloudata | cloudata-server-shared/src/main/java/com/cloudata/objectstore/jclouds/SwiftPath.java | Java | apache-2.0 | 663 |
import java.io.*;
public class Lookfor {
public static void main(String[] args) {
if(args.length != 2) {
System.out.println("Usage: <filename> <keyword>");
System.exit(0);
}
String filename = args[0];
String keyword = args[1];
InputStream in;
... | kenpu/2014-01-csci2020u | tutorial-for-assignment1/java/Lookfor.java | Java | apache-2.0 | 1,177 |
/*
* 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 "lice... | trasa/aws-sdk-java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/transform/AddInstanceGroupsResultJsonUnmarshaller.java | Java | apache-2.0 | 3,282 |
/*
* Copyright (c) 2016 PocketHub
*
* 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... | hufsm/PocketHub | app/src/main/java/com/github/pockethub/accounts/StoreCredentials.java | Java | apache-2.0 | 2,133 |
/*
* Copyright 2016 Erik Wramner.
*
* 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... | erik-wramner/JmsTools | JmsCommon/src/test/java/name/wramner/util/AutoCloserTest.java | Java | apache-2.0 | 2,497 |
package appdevzhang.com.androidvolleydemo.net;
import com.android.volley.NetworkResponse;
import com.android.volley.ParseError;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley... | appdevzhang/AndroidVolleyDemo | app/src/main/java/appdevzhang/com/androidvolleydemo/net/GsonRequest.java | Java | apache-2.0 | 1,697 |
package baylandtag.ag_dummy_person_table;
public class DatabaseException extends RuntimeException {
private static final long serialVersionUID = 7974621277508998411L;
public DatabaseException(String message, Throwable cause) {
super(message, cause);
}
}
| eggeral/javafx-examples | src/main/java/baylandtag/ag_dummy_person_table/DatabaseException.java | Java | apache-2.0 | 276 |
/******************************************************************************************************/
/* */
/* Infinidat Ltd. - Proprietary and Confidential Material */
/* ... | alexradzin/Mestor | entity-manager/src/test/java/org/mestor/em/CriteriaBuilderTest.java | Java | apache-2.0 | 18,708 |
package edu.skku.selab.blp.testsuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import edu.skku.selab.blp.db.dao.BugDAOTest;
import edu.skku.selab.blp.db.dao.CommitDAOTest;
import edu.skku.selab.blp.db.dao.ExperimentResultDAOTest;
import edu... | irblsensitivity/irblsensitivity | techniques/BLIA/test/edu/skku/selab/blp/testsuite/DAOAllTests.java | Java | apache-2.0 | 638 |
package org.ow2.chameleon.fuchsia.exporter.jsonrpc;
/*
* #%L
* OW2 Chameleon - Fuchsia Exporter JSON-RPC
* %%
* Copyright (C) 2009 - 2014 OW2 Chameleon
* %%
* 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 co... | ow2-chameleon/fuchsia | exporters/json-rpc/src/main/java/org/ow2/chameleon/fuchsia/exporter/jsonrpc/JSONRPCExporter.java | Java | apache-2.0 | 6,699 |
/*
* 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 ... | seeburger-ag/commons-vfs | commons-vfs2/src/test/java/org/apache/commons/vfs2/impl/DefaultFileSystemManagerTest.java | Java | apache-2.0 | 1,694 |
/*
* Copyright 2012 Roman Kashitsyn
*
* 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... | roman-kashitsyn/rules-dsl | src/main/java/org/rulesdsl/predicates/StatelessSelectors.java | Java | apache-2.0 | 1,449 |
/*
* Copyright 2019 Playtika
*
* 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 wri... | spinnaker/kayenta | kayenta-integration-tests/src/test/java/com/netflix/kayenta/tests/ManagementTest.java | Java | apache-2.0 | 2,159 |
package gov.va.med.srcalc.web.view.admin;
import static org.junit.Assert.*;
import gov.va.med.srcalc.domain.model.DiscreteNumericalVariable.Category;
import gov.va.med.srcalc.domain.model.MultiSelectOption;
import org.junit.Test;
/**
* Tests the {@link CategoryBuilder} class.
*/
public class CategoryBuilderTest
{
... | VHAINNOVATIONS/ASRCM | srcalc/src/test/java/gov/va/med/srcalc/web/view/admin/CategoryBuilderTest.java | Java | apache-2.0 | 1,758 |
package it.unibz.krdb.obda.model.impl;
/*
* #%L
* ontop-obdalib-core
* %%
* Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano
* %%
* 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... | clarkparsia/ontop | obdalib-core/src/main/java/it/unibz/krdb/obda/model/impl/BooleanOperationPredicateImpl.java | Java | apache-2.0 | 1,326 |
/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
package org.appcelerator.titanium.util;
import android.content.res.Configuration... | arnaudsj/titanium_mobile | android/titanium/src/org/appcelerator/titanium/util/TiOrientationHelper.java | Java | apache-2.0 | 1,249 |
/**
* SdtncAuthDtoTest.java
* (C) 2013,2015, Hitachi, Ltd.
*/
package org.o3project.mlo.server.rpc.dto;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.o3project.mlo.server.impl.rpc.service.SdtncSerdesImpl;
import org.o3project.mlo.server.impl.rp... | o3project/mlo-net | mlo-srv/src/test/java/org/o3project/mlo/server/rpc/dto/SdtncAuthDtoTest.java | Java | apache-2.0 | 1,920 |
/* First created by JCasGen Sat Apr 11 19:49:33 EDT 2015 */
package edu.cmu.lti.oaqa.type.nlp;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apach... | oaqa/baseqa | src/main/java/edu/cmu/lti/oaqa/type/nlp/Focus_Type.java | Java | apache-2.0 | 4,029 |
/**
* Copyright 2013-2019 Gaurav Gupta
*
* 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... | jGauravGupta/nbmodeler | modeler-impl/src/main/java/org/netbeans/modeler/widget/node/vmd/internal/AbstractPNodeWidget.java | Java | apache-2.0 | 16,106 |
package tr.com.muzo.application.singleton;
import java.io.Serializable;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import tr.com.muzo.db.entity.Kullanici;
@Controller
@Scope("singleton")
public class SingletonController implements Serializable{
private s... | muzafferorun/Projects | EGYS/src/tr/com/muzo/application/singleton/SingletonController.java | Java | apache-2.0 | 556 |
/*
* Copyright 2014 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 applica... | FinishX/coolweather | gradle/gradle-2.8/src/language-java/org/gradle/language/java/internal/JavaLanguagePluginServiceRegistry.java | Java | apache-2.0 | 1,912 |
package com.palantir.atlasdb.todo.generated;
import java.util.Arrays;
import java.util.Collection;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.Optional;
import java.uti... | EvilMcJerkface/atlasdb | atlasdb-ete-test-utils/src/main/java/com/palantir/atlasdb/todo/generated/SnapshotsStreamHashAidxTable.java | Java | apache-2.0 | 31,748 |
/*
Copyright 2012 Harri Smatt
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 wri... | harism/android_wallpaper_flier | src/fi/harism/wallpaper/flier/FlierService.java | Java | apache-2.0 | 3,883 |
/*-
* #%L
* excella-reports
* %%
* Copyright (C) 2009 - 2019 bBreak Systems and contributors
* %%
* 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/licen... | excella-core/excella-reports | src/main/java/org/bbreak/excella/reports/tag/ReportsTagParser.java | Java | apache-2.0 | 2,374 |
/*
* 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 ... | boneman1231/org.apache.felix | trunk/gogo/shell/src/main/java/org/apache/felix/gogo/shell/Activator.java | Java | apache-2.0 | 5,273 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | pymjer/pentaho-kettle | ui/src/org/pentaho/di/ui/job/entries/job/JobEntryJobDialog.java | Java | apache-2.0 | 63,700 |
/*
* Copyright (c) 2005 - 2014, WSO2 Inc. (http://www.wso2.org) 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 ... | sacjaya/siddhi-3 | modules/siddhi-core/src/main/java/org/wso2/siddhi/core/executor/condition/compare/less_than/LessThanCompareConditionExecutorLongInt.java | Java | apache-2.0 | 1,269 |
package bnfc.abs.Absyn; // Java Package generated by the BNF Converter.
public class SIf extends Stm {
public final PureExp pureexp_;
public final Stm stm_;
public SIf(PureExp p1, Stm p2) { pureexp_ = p1; stm_ = p2; }
public <R,A> R accept(bnfc.abs.Absyn.Stm.Visitor<R,A> v, A arg) { return v.visit(this... | peteryhwong/jabsc | src/main/java/bnfc/abs/Absyn/SIf.java | Java | apache-2.0 | 712 |
package com.alsash.reciper.ui.fragment.dialog;
import android.content.Intent;
import com.alsash.reciper.R;
import com.alsash.reciper.app.ReciperApp;
import com.alsash.reciper.logic.NavigationLogic;
import com.alsash.reciper.mvp.model.entity.Author;
import com.alsash.reciper.mvp.presenter.RecipeDialogAuthorPresenter;
... | alsash/reciper | app/src/main/java/com/alsash/reciper/ui/fragment/dialog/RecipeDialogAuthorFragment.java | Java | apache-2.0 | 1,455 |
/*
* Copyright 2014-2022 Web Firm Framework
*
* 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... | webfirmframework/wff | wffweb/src/main/java/com/webfirmframework/wffweb/tag/html/ModifiedParentData.java | Java | apache-2.0 | 1,614 |
package hr.fer.zemris.jcms.caching.impl;
import hr.fer.zemris.jcms.JCMSSettings;
import hr.fer.zemris.jcms.beans.cached.CourseScoreTable;
import hr.fer.zemris.jcms.beans.cached.Dependencies;
import hr.fer.zemris.jcms.caching.IJCMSCache;
import java.io.File;
import java.io.IOException;
import java.util.Properties;
im... | KarloKnezevic/Ferko | src/java/hr/fer/zemris/jcms/caching/impl/JCMSCacheOSImpl.java | Java | apache-2.0 | 3,489 |
package jeffaschenk.commons.parsers;
import javassist.*;
import javassist.bytecode.AnnotationsAttribute;
import jeffaschenk.commons.parsers.objects.ClassAnnotationData;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.lang.reflect.Method;
import java.util.HashMap;
impor... | jaschenk/jeffaschenk-commons | src/main/java/jeffaschenk/commons/parsers/AnnotationParser.java | Java | apache-2.0 | 19,352 |
/*
* Copyright 2000-2017 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... | signed/intellij-community | platform/util/src/com/intellij/icons/AllIcons.java | Java | apache-2.0 | 117,536 |
/*
* Copyright 2015 Air Computing Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | sharmaabhishek523/baseline | service/src/main/java/com/aerofs/baseline/logging/MinimalLayout.java | Java | apache-2.0 | 1,202 |
package me.anchore.snippet.algorithm;
import me.anchore.test.DataSetUtil;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import java.util.Arrays;
import static org.junit.Assert.assertTrue;
public class FinderTest {
private int[] a;
private Finder f;
@Before
public void bef... | rofinily/code-fragment | base/src/test/java/me/anchore/snippet/algorithm/FinderTest.java | Java | apache-2.0 | 1,059 |
/*
* Copyright 2005-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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable... | blackcathacker/kc.preclean | coeus-code/src/main/java/org/kuali/coeus/common/framework/unit/Unit.java | Java | apache-2.0 | 7,274 |
package com.jamesgiang.aussnowcam;
import com.loopj.android.http.*;
public class BOMClient {
private static final String BASE_URL = "http://reg.bom.gov.au/fwo/";
private static AsyncHttpClient client = new AsyncHttpClient();
public static void get(String url, RequestParams params, AsyncHttpResponseHandler responseH... | jamesgiang/AusSnowCam | src/com/jamesgiang/aussnowcam/BOMClient.java | Java | apache-2.0 | 491 |
/*
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 copy of the License at
*
* http://www.apach... | wso2/andes | modules/andes-core/broker/src/main/java/org/wso2/andes/server/exchange/DirectExchange.java | Java | apache-2.0 | 6,144 |
/*
* Copyright 2017-2020 FIX Protocol 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 applicable law or agreed ... | FIXTradingCommunity/fix-orchestra | message-model/src/main/java/io/fixprotocol/orchestra/message/Validator.java | Java | apache-2.0 | 1,218 |
/**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.masterdb.security.hibernate.option;
import com.opengamma.financial.security.option.AssetOrNothingPayoffStyle;
import com.opengamma.financial.security.option.As... | McLeodMoores/starling | projects/master-db/src/main/java/com/opengamma/masterdb/security/hibernate/option/OptionPayoffStyleUserType.java | Java | apache-2.0 | 4,696 |
/*
* Copyright 2016 Shredder121.
*
* 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... | johnktims/gh-event-api | src/main/java/com/github/shredder121/gh_event_api/filter/package-info.java | Java | apache-2.0 | 710 |
package org.gradle.test.performance.mediummonolithicjavaproject.p84;
import org.junit.Test;
import static org.junit.Assert.*;
public class Test1695 {
Production1695 objectUnderTest = new Production1695();
@Test
public void testProperty0() {
Production1692 value = new Production1692();
... | oehme/analysing-gradle-performance | my-app/src/test/java/org/gradle/test/performance/mediummonolithicjavaproject/p84/Test1695.java | Java | apache-2.0 | 2,173 |
/*
* Project Sc2gears
*
* Copyright (c) 2010 Andras Belicza <iczaaa@gmail.com>
*
* This software is the property of Andras Belicza.
* Copying, modifying, distributing, refactoring without the authors permission
* is prohibited and protected by Law.
*/
package hu.belicza.andras.sc2gears.services.plugi... | icza/sc2gears | src/hu/belicza/andras/sc2gears/services/plugins/PluginServicesImpl.java | Java | apache-2.0 | 2,489 |
package com.ajapps.climatecars.slidingtabscolors;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
public class ContentFragment extends Fragment {
private static final S... | Aj-Apps/SlidingTabsColors | Application/src/main/java/com/ajapps/climatecars/slidingtabscolors/ContentFragment.java | Java | apache-2.0 | 1,901 |
/*
* 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 m... | cdegroot/river | src/com/sun/jini/jeri/internal/http/HttpServerManager.java | Java | apache-2.0 | 3,584 |
// cyNeo4j - Cytoscape app connecting to Neo4j
//
// Copyright 2014-2021
//
// 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 re... | gsummer/cyNeo4j | src/main/java/nl/maastrichtuniversity/networklibrary/cyneo4j/internal/utils/CyUtils.java | Java | apache-2.0 | 11,588 |
package org.jbpm.compiler.xml.processes;
import java.util.ArrayList;
import java.util.HashSet;
import org.kie.api.definition.process.Process;
import org.drools.core.xml.BaseAbstractHandler;
import org.drools.core.xml.ExtensibleXmlParser;
import org.drools.core.xml.Handler;
import org.jbpm.workflow.core.impl.WorkflowP... | hxf0801/jbpm | jbpm-flow-builder/src/main/java/org/jbpm/compiler/xml/processes/ImportHandler.java | Java | apache-2.0 | 2,025 |
/*
* Copyright 2016 Basho Technologies 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 o... | basho/riak-java-client | src/main/java/com/basho/riak/client/core/query/crdt/ops/GSetOp.java | Java | apache-2.0 | 1,249 |
/***
* A sample program to demonstrate how to use servlet to
* load an image file from the client disk via a web browser
* and insert the image into a table in Oracle DB.
*
* Copyright 2005 COMPUT 391 Team, CS, UofA
* Author: Fan Deng
* ... | JCE-Group/Cmput391-JCE | proj1/WEB-INF/classes/UploadImage.java | Java | apache-2.0 | 6,314 |
package uk.ac.ebi.subs.arrayexpress.repo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import uk.ac.ebi.subs.arrayexpress.model.SampleDataRelati... | EMBL-EBI-SUBS/subs | subs-aeagent/src/main/java/uk/ac/ebi/subs/arrayexpress/repo/SampleDataRelatioshipRepository.java | Java | apache-2.0 | 787 |
/*
* Copyright © 2014 Stefan Niederhauser (nidin@gmx.ch)
*
* 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... | nidi3/maven-tools | tools-maven-plugin/src/main/java/guru/nidi/maven/tools/dependency/IoUtil.java | Java | apache-2.0 | 1,189 |
package io.joynr.messaging.datatypes;
/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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/li... | clive-jevons/joynr | java/messaging/messaging-common/src/main/java/io/joynr/messaging/datatypes/package-info.java | Java | apache-2.0 | 676 |
package se.anyro.tgbotapi.types.inline;
/**
* @see <a href="https://core.telegram.org/bots/api#inputvenuemessagecontent">Official documentation of
* InputVenueMessageContent</a>
*/
public class InputVenueMessageContent extends InputMessageContent {
public float latitude;
public float longitude;
pu... | nadam/tg-bot-api | src/main/java/se/anyro/tgbotapi/types/inline/InputVenueMessageContent.java | Java | apache-2.0 | 673 |
/*
* 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 | sample/example/src/main/java/io/doov/sample/validation/RulesOld.java | Java | apache-2.0 | 1,921 |
package fr.tse.lt2c.satin.matrix.extraction.linkedmatrix.refactored;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.imageio.ImageIO;
import org.apache.log4j.Level;
import org.apache.log4j.L... | jsubercaze/wsrm | src/main/java/fr/tse/lt2c/satin/matrix/extraction/linkedmatrix/refactored/WSMRDecomposer.java | Java | apache-2.0 | 34,036 |
package eu.knux.passmanager.helper;
/**
* Copyright 2015 Nathan, Knux14, J.
* 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 requir... | Knux14/PassManager | src/eu/knux/passmanager/helper/EncryptionHelper.java | Java | apache-2.0 | 858 |
/*
* Copyright 2015 Adaptris 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 applicable law or agree... | adaptris/interlok | interlok-core/src/main/java/com/adaptris/jdbc/StoredProcedureParameter.java | Java | apache-2.0 | 2,112 |
package org.apache.maven.execution;
/*
* 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,... | trajano/maven | maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequest.java | Java | apache-2.0 | 30,788 |
package org.davidmoten.rx.jdbc.internal;
import java.sql.Array;
import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.NClob;
import java.sql.PreparedStatement;
import java.sql.SQLClientInfoException;
import java.sql.... | davidmoten/rxjava2-jdbc | rxjava2-jdbc/src/main/java/org/davidmoten/rx/jdbc/internal/DelegatedConnection.java | Java | apache-2.0 | 7,611 |
/**
* Copyright (C) 2008 Atlassian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | joewalnes/idea-community | plugins/tasks/jira-connector/src/atlassian/java/com/atlassian/theplugin/jira/api/JIRAActionFieldBean.java | Java | apache-2.0 | 1,281 |
/*
* Copyright 2017-2019 University of Hildesheim, Software Systems Engineering
*
* 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
*
... | KernelHaven/FeatureEffectAnalysis | src/net/ssehub/kernel_haven/fe_analysis/fes/ThreadedFeatureEffectFinder.java | Java | apache-2.0 | 3,319 |
/*
* 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 ... | iemejia/incubator-beam | runners/flink/src/test/java/org/apache/beam/runners/flink/FlinkSavepointTest.java | Java | apache-2.0 | 16,347 |
package com.jettdurham.jinteg;
/**
* Thrown when a method designed to be run as a test is not static.
*
* @author jettdurham
*
*/
public class MethodNotStaticException extends Exception {
private static final long serialVersionUID = -6889136974544927532L;
public MethodNotStaticException(String message) {
... | thejettdurham/jinteg | src/main/java/com/jettdurham/jinteg/MethodNotStaticException.java | Java | apache-2.0 | 351 |
package com.gwtjs.icustom.autoconfiguration;
import java.io.Serializable;
/**
* 应用程序凭证,含应用名、权限Scope、当前环境等信息
*/
public interface IApplicationPrincipal extends Serializable {
/**
* 获得日志表格名称
*
* @since 2013-6-7
* @return
*/
int getLogsTableIndex();
/**
* 获取应用名
*
* @return
*/
String getAppName... | flash8627/icustom-boot | icustom.core/src/main/java/com/gwtjs/icustom/autoconfiguration/IApplicationPrincipal.java | Java | apache-2.0 | 1,251 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/common/bidding.proto
package com.google.ads.googleads.v9.common;
/**
* <pre>
* An automated bid strategy that sets your bids to help get as many clicks
* as possible within your budget.
* </pre>
*
* Protobuf type {@co... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/common/TargetSpend.java | Java | apache-2.0 | 25,132 |
/*
* 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... | jentfoo/aws-sdk-java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/AddRoleToInstanceProfileResultStaxUnmarshaller.java | Java | apache-2.0 | 2,365 |
package org.xmly.thrall.core.protocol;
public enum WebResponseStatus {
SUCCESS(200, "success"),
AUTH(401,"auth"),
FAIL(400, "fail");
WebResponseStatus(int code, String desc) {
this.code = code;
this.desc = desc;
}
private int code;
private String desc;
public int getCode() {
retu... | gexiao01/thrall | thrall-core/src/main/java/org/xmly/thrall/core/protocol/WebResponseStatus.java | Java | apache-2.0 | 388 |
package com.usst.app.store.promote.action;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang.StringUtils;
import org.apache.log4j.Logger;
imp... | shenzeyu/recommend | src/main/java/com/usst/app/store/promote/action/PromoteAction.java | Java | apache-2.0 | 7,493 |
/*
* 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-aiplatform | proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/BatchCreateTensorboardTimeSeriesResponse.java | Java | apache-2.0 | 36,500 |
package com.tlongdev.bktf.component;
import com.tlongdev.bktf.interactor.BackpackTfPriceHistoryInteractor;
import com.tlongdev.bktf.interactor.GetCurrencyExchangeRatesInteractor;
import com.tlongdev.bktf.interactor.GetSearchedUserDataInteractor;
import com.tlongdev.bktf.interactor.GetUserDataInteractor;
import com.tlo... | Longi94/bptf | app/src/main/java/com/tlongdev/bktf/component/InteractorComponent.java | Java | apache-2.0 | 2,788 |
/* 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... | motorina0/flowable-engine | modules/flowable-dmn-spring/src/main/java/org/flowable/dmn/spring/DmnEngineFactoryBean.java | Java | apache-2.0 | 2,656 |
/*
* 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 ... | nextreports/nextreports-designer | src/ro/nextreports/designer/ReportLayoutPanel.java | Java | apache-2.0 | 14,424 |
package org.web3j.abi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.web3j.abi.datatypes.Array;
import org.web3j.abi.datatypes.Bytes;
import org.web3j.abi.datatypes.BytesType;
import org.web3j.abi.datatypes.DynamicArray;
import org.web3j.abi.datatypes.DynamicBytes;
import... | saulbein/web3j | core/src/main/java/org/web3j/abi/FunctionReturnDecoder.java | Java | apache-2.0 | 5,139 |
/*******************************************************************************
* Copyright 2015, 2016 Junichi Tatemura
*
* 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://... | tatemura/strudel | workload/src/main/java/com/nec/strudel/workload/worker/WorkGroup.java | Java | apache-2.0 | 12,867 |
package com.treasurehunter.server.persistence.dao;
import com.google.appengine.api.datastore.Key;
import com.treasurehunter.server.persistence.PersistenceManagerFactoryUtil;
import com.treasurehunter.server.persistence.model.DataStoreModel;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFacto... | danielkocsis/playground | src/main/java/com/treasurehunter/server/persistence/dao/BaseDAO.java | Java | apache-2.0 | 2,205 |
package com.weblyzard.api.client.integration;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
import java.util.... | weblyzard/weblyzard_api | src/java/test/com/weblyzard/api/client/integration/RecognyzeClientIT.java | Java | apache-2.0 | 3,440 |
// Copyright 2021 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 in writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202108/AdExchangeCreative.java | Java | apache-2.0 | 3,680 |
package uk.nhs.kch.rassyeyanie.framework;
import ca.uhn.hl7v2.HL7Exception;
import ca.uhn.hl7v2.model.AbstractMessage;
import ca.uhn.hl7v2.model.v24.datatype.ST;
import ca.uhn.hl7v2.model.v24.segment.MSH;
public class CommonAlternateEncoding extends AbstractProcessor {
private static void insertEncodingCharacter... | KingsCollegeHospital/rassyeyanie | rassyeyanie-framework/src/main/java/uk/nhs/kch/rassyeyanie/framework/CommonAlternateEncoding.java | Java | apache-2.0 | 780 |
/*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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 copy of the License at
*
* http://www.apache.or... | lasanthafdo/carbon-analytics-common | components/event-receiver/org.wso2.carbon.event.receiver.core/src/main/java/org/wso2/carbon/event/receiver/core/internal/type/wso2event/WSO2EventInputMapper.java | Java | apache-2.0 | 22,192 |
/*
* Copyright(C) 2014 tAsktoys. All rights reserved.
*/
package com.tasktoys.archelon.data.dao.mongodb;
import com.mongodb.WriteResult;
import com.tasktoys.archelon.data.dao.DiscussionContentDao;
import com.tasktoys.archelon.data.entity.DiscussionContent;
import java.util.logging.Level;
import java.util.logging.Log... | tAsktoys/Archelon | src/main/java/com/tasktoys/archelon/data/dao/mongodb/MongoDbDiscussionContentDao.java | Java | apache-2.0 | 2,151 |
/*
* 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")... | darranl/directory-shared | ldap/extras/codec/src/test/java/org/apache/directory/api/ldap/extras/extended/ads_impl/whoAmI/WhoAmIResponseTest.java | Java | apache-2.0 | 6,926 |
package com.fig.block.procedure;
import com.fig.annotations.ThreadSafe;
import com.fig.domain.TaskDependency;
import com.fig.manager.Neo4jTaskAdapter;
import com.google.common.annotations.VisibleForTesting;
import com.gs.collections.api.block.procedure.Procedure;
import java.util.Collection;
/**
* Re-usable procedu... | fizalihsan/Fig | src/main/java/com/fig/block/procedure/TaskDependencyCreator.java | Java | apache-2.0 | 985 |
package com.hubspot.singularity;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
public class SingularityRequestBuilder {
private String id;
private RequestType requestType;
... | HubSpot/Singularity | SingularityBase/src/main/java/com/hubspot/singularity/SingularityRequestBuilder.java | Java | apache-2.0 | 21,354 |
package com.ufpb.questao9;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
public class RetangulosTest {
Retangulos r;
double base, altura;
@Before
public void setUp() throws Exception {
base = 4;
altura = 2;
r = new Retangulos(base, altura);
}
@Test
public void ... | gabrielalvesc/POO | Lista I - POO/src/com/ufpb/questao9/RetangulosTest.java | Java | apache-2.0 | 483 |
/*
* Copyright 2016 Gurupad Mamadapur
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Protino/Fad-Flicks | app/src/main/java/com/calgen/prodek/fadflicks/Activity/DetailActivity.java | Java | apache-2.0 | 7,418 |
package com.salesmanager.shop.store.api.v1.product;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Contro... | shopizer-ecommerce/shopizer | sm-shop/src/main/java/com/salesmanager/shop/store/api/v1/product/ProductGroupApi.java | Java | apache-2.0 | 9,060 |
/*
* 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-nimblestudio/src/main/java/com/amazonaws/services/nimblestudio/model/StreamingSessionStreamStatusCode.java | Java | apache-2.0 | 2,130 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package TableModel;
/**
*
* @author megalexandre
*/
public class ContaHidrometroTableModel {
}
| AlexandrebQueiroz/acal | src/TableModel/ContaHidrometroTableModel.java | Java | apache-2.0 | 305 |
package com.bibabo.framework.utils;
import com.bibabo.framework.config.ConstantUtils;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
/**
* @author hao.xiong
* @version 1.... | chengzijian/Bibabo | Framework/src/main/java/com/bibabo/framework/utils/SecurityUtils.java | Java | apache-2.0 | 17,239 |
package com.juanan.pocs.companies.web.controller;
import javax.servlet.http.HttpSession;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.b... | JuananIBM/WebCompanies | src/main/java/com/juanan/pocs/companies/web/controller/InicioController.java | Java | apache-2.0 | 2,702 |
package com.cloud.legacymodel.to;
import com.cloud.legacymodel.InternalIdentity;
import com.cloud.legacymodel.network.vpc.NetworkACLItem;
import com.cloud.legacymodel.network.vpc.NetworkACLItem.TrafficType;
import java.util.ArrayList;
import java.util.List;
public class PublicIpACLTO implements InternalIdentity {
... | MissionCriticalCloud/cosmic | cosmic-model/src/main/java/com/cloud/legacymodel/to/PublicIpACLTO.java | Java | apache-2.0 | 3,620 |
/*
* 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.model/src/org/jkiss/dbeaver/model/access/DBASession.java | Java | apache-2.0 | 1,359 |
/*
* Copyright 2017 David Karnok
*
* 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... | akarnokd/Reactive4JavaFlow | src/test/java/hu/akarnokd/reactive4javaflow/impl/operators/FolyamMapWhenTest.java | Java | apache-2.0 | 10,364 |