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 |
|---|---|---|---|---|---|
/*
* 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 ... | huahin/huahin-core | src/test/java/org/huahinframework/core/lib/input/creator/LabelValueCreatorTest.java | Java | apache-2.0 | 3,178 |
package com.kian.themovie.ui;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import com.kian.themovie.R;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIn... | kiumars/TheMovie | app/src/main/java/com/kian/themovie/ui/MainActivity.java | Java | apache-2.0 | 1,119 |
/*
* Copyright (C) 2013 Brian Muramatsu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | btmura/rbb | src/com/btmura/android/reddit/util/ThingIds.java | Java | apache-2.0 | 1,202 |
package org.jos.jexplorer;
import javax.swing.*;
import javax.swing.event.*;
import java.awt.*;
import java.awt.event.*;
class FilterWindow extends JDialog{
private JTextField txtFilter = new JTextField(20);
private String selectedFilter;
public FilterWindow(JFrame owner, String filter){
super(own... | datazuul/com.datazuul.apps--datazuul-explorer | src/main/java/org/jos/jexplorer/FilterWindow.java | Java | apache-2.0 | 2,343 |
/*
* Copyright (c) 2008-2016 Haulmont.
*
* 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... | cuba-platform/cuba | modules/gui/src/com/haulmont/cuba/gui/dynamicattributes/FilteringLookupAction.java | Java | apache-2.0 | 7,000 |
/**
* File CostMatrixConstraint.java
*
* This file is part of the jCoCoA project.
*
* Copyright 2016 Anonymous
*
* 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:/... | anonc187/jCoCoA | src/main/java/org/anon/cocoa/constraints/PreferentialEqualityConstraint.java | Java | apache-2.0 | 2,039 |
package com.sap.mlt.xliff12.api.base;
/**
* Basic (tagging) interface extended by all XLIFF attributes.
*
* @author D049314
*/
public interface XliffAttribute extends Attribute {
}
| SAP/xliff-1-2 | com.sap.mlt.xliff12.api/src/main/java/com/sap/mlt/xliff12/api/base/XliffAttribute.java | Java | apache-2.0 | 198 |
package org.gooru.nucleus.entity;
/**
* @author Sachin
*
* HOlds reference types for metadata
*/
public enum MetadataReferenceType {
educational_use("educational_use "), moments_of_learning("moments_of_learning"), depth_of_knowledge("depth_of_knowledge"),
reading_level("reading_level"), audience("audi... | am-gooru/nucleus | nucleus-template/src/main/java/org/gooru/nucleus/entity/MetadataReferenceType.java | Java | apache-2.0 | 542 |
/*
* (c) 2015 CenturyLink. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | CenturyLinkCloud/clc-java-sdk | sdk/src/main/java/com/centurylink/cloud/sdk/policy/services/dsl/AutoscalePolicyService.java | Java | apache-2.0 | 8,024 |
package com.smart.smartchart.http.request;
import com.smart.smartchart.http.OkHttpUtils;
import com.smart.smartchart.http.builder.PostFormBuilder;
import com.smart.smartchart.http.callback.Callback;
import java.io.UnsupportedEncodingException;
import java.net.FileNameMap;
import java.net.URLConnection;
import java.n... | huashengzzz/SmartChart | app/src/main/java/com/smart/smartchart/http/request/PostFormRequest.java | Java | apache-2.0 | 3,749 |
package com.example;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class AppMainTests {
@Test
public void contextLoads() {
}
}
| miklosbarabas/springpolymer | demo-microservice-mainapp/src/test/java/com/example/AppMainTests.java | Java | apache-2.0 | 318 |
/**
* 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... | mattyb149/incubator-drill | exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZKRegistrationHandle.java | Java | apache-2.0 | 1,257 |
package ags.utils.dataStructures.trees.thirdGenKD;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
/**
*
*/
public class KdTree<T> extends KdNode<T> {
private static final long serialVersionUID = -4403464702046042517L;
public KdTree(int dimensions) {
this(dime... | dsarlis/datix | datix/src/main/java/ags/utils/dataStructures/trees/thirdGenKD/KdTree.java | Java | apache-2.0 | 4,679 |
/*
* 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-iot/src/main/java/com/amazonaws/services/iot/model/transform/DescribeCertificateResultJsonUnmarshaller.java | Java | apache-2.0 | 2,912 |
package com.gennitor.system.client.annotation.purpose;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @author Christos Tsakostas - c.tsakostas@gmail.com
*/
@Target({ElementType.TYPE})
@Retention(R... | gennitor/gennitor-annotations | src/main/java/com/gennitor/system/client/annotation/purpose/CollectionRecord.java | Java | apache-2.0 | 667 |
package ethereum.components;
import java.math.BigInteger;
import java.util.ArrayList;
import ethereum.Simulation;
import ethereum.helper.ConsumptionProfiles;
import ethereum.helper.Market;
import ethereum.helper.SolarRadiation;
import ethereum.helper.UnitHelper;
public class Building3 extends Building {
private B... | SES-fortiss/SmartGridCoSimulation | projects/previousProjects/memapEtherium/src/main/java/ethereum/components/Building3.java | Java | apache-2.0 | 8,629 |
/*
* Copyright (c) 2008 Massimiliano Ziccardi
*
* 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 applic... | Mithrandir0x/JNRPE-LIB | src/it/jnrpe/server/config/CPluginDir.java | Java | apache-2.0 | 955 |
package org.lightadmin.core.view.preparer;
import com.google.common.collect.Collections2;
import org.apache.tiles.AttributeContext;
import org.apache.tiles.context.TilesRequestContext;
import org.lightadmin.api.config.utils.ScopeMetadataUtils;
import org.lightadmin.core.config.domain.DomainTypeAdministrationConfigurat... | pramoth/light-admin | lightadmin-core/src/main/java/org/lightadmin/core/view/preparer/ListViewPreparer.java | Java | apache-2.0 | 2,787 |
package com.flipkart.foxtrot.common.query.datetime;
import lombok.Builder;
import lombok.Data;
@Data
public class TimeWindow {
private long startTime = 0L;
private long endTime = 0L;
public TimeWindow() {
}
@Builder
public TimeWindow(long startTime, long endTime) {
this.startTime = s... | Flipkart/foxtrot | foxtrot-common/src/main/java/com/flipkart/foxtrot/common/query/datetime/TimeWindow.java | Java | apache-2.0 | 370 |
package com.pulseenergy.oss.airbrake;
public class AirbrakeUtil {
private AirbrakeUtil() {
}
public static final String DEFAULT_AIRBRAKE_URI = "http://api.airbrake.io/notifier_api/v2/notices";
public static String getAirbrakeUriOrDefault(final String uri) {
if (isNotBlank(uri)) {
return uri;
}
return D... | pulseenergy/airbrake4j | src/main/java/com/pulseenergy/oss/airbrake/AirbrakeUtil.java | Java | apache-2.0 | 518 |
package picocli.examples.git;
import picocli.CommandLine;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
@CommandLine.Command(name = "commit",
sortOptions = false,
headerHeading = "@|bold,underline Usage:|@%n%n",
synopsisHeading =... | remkop/picocli | picocli-examples/src/main/java/picocli/examples/git/GitCommit.java | Java | apache-2.0 | 3,235 |
package net.onrc.onos.core.linkdiscovery.web;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import net.onrc.onos.core.linkdiscovery.ILinkDiscoveryService;
import net.onrc.onos.core.linkdiscovery.Link;
import net.onrc.onos.core.linkdiscovery... | opennetworkinglab/spring-open | src/main/java/net/onrc/onos/core/linkdiscovery/web/LinksResource.java | Java | apache-2.0 | 1,350 |
/**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.myboss.cn.modules.sys.dao;
import java.util.List;
import com.myboss.cn.common.persistence.CrudDao;
import com.myboss.cn.common.persistence.annotation.MyBatisDao;
import com.myboss.cn.module... | ChDiego/myboss | src/main/java/com/myboss/cn/modules/sys/dao/MenuDao.java | Java | apache-2.0 | 651 |
package com.faro.papaya;
import java.util.HashMap;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.Assert;
import org.junit.Test;
import com.faro.papaya.util.LzyMap;
import com.faro.papaya.util.ValueFactory;
public class LzyMapTest {
@Test
public void testLoad() {
LzyMap<String, AtomicIntege... | kevin-faro/papaya | src/test/java/com/faro/papaya/LzyMapTest.java | Java | apache-2.0 | 1,136 |
package com.fsck.k9.ui.messageview;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.pm.PackageManager.NameNotFoundException;
import android.graphics.drawable.Drawable;
import andro... | k9mail/k-9 | app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/MessageCryptoPresenter.java | Java | apache-2.0 | 7,778 |
package ru.job4j.filter;
import java.util.Arrays;
/**
* ArrayFilter.
*
* @author Natasha Panchina (panchinanata25@gmail.com)
* @version 1
* @since 18.01.2019
*/
public class ArrayFilter {
/**
* Method filter
* @param numbers
* @return sum of numbers' squares
*/
public int filter(int[... | NatashaPanchina/npanchina | chapter_004/src/main/java/ru/job4j/filter/ArrayFilter.java | Java | apache-2.0 | 506 |
/**************************************************************************
ResumeEvent.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom 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 o... | CraigAndrew/titanium4j | src/com/emitrom/ti4j/mobile/client/core/events/ResumeEvent.java | Java | apache-2.0 | 1,583 |
package org.deuce.transform.asm.method;
import java.util.HashMap;
import org.deuce.Irrevocable;
import org.deuce.Unsafe;
import org.deuce.objectweb.asm.AnnotationVisitor;
import org.deuce.objectweb.asm.Attribute;
import org.deuce.objectweb.asm.Label;
import org.deuce.objectweb.asm.MethodVisitor;
import org.... | DeuceSTM/DeuceSTM | src/java/org/deuce/transform/asm/method/MethodTransformer.java | Java | apache-2.0 | 8,309 |
/**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.tp.ems.modules.sys.dao;
import java.util.List;
import com.tp.ems.common.persistence.CrudDao;
import com.tp.ems.common.persistence.annotation.MyBatisDao;
import com.tp.ems.modules.sys.entity... | 347184068/gmenergy | src/main/java/com/tp/ems/modules/sys/dao/DictDao.java | Java | apache-2.0 | 510 |
package com.thinkbiganalytics.metadata.jobrepo;
/*-
* #%L
* thinkbig-operational-metadata-integration-service
* %%
* Copyright (C) 2017 ThinkBig Analytics
* %%
* 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 ... | peter-gergely-horvath/kylo | services/operational-metadata-service/operational-metadata-integration-service/src/main/java/com/thinkbiganalytics/metadata/jobrepo/StreamingFeedService.java | Java | apache-2.0 | 3,940 |
/*
* TestDefaultUserAgentGenerator.java
*
* Copyright (C) 2012 Jonathan Moore
*
* 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
* ... | jonm/chaplib | src/test/java/org/chaplib/TestDefaultUserAgentGenerator.java | Java | apache-2.0 | 1,443 |
package org.visallo.web.plugin.adminUserTools;
import org.visallo.webster.Handler;
import org.visallo.core.model.Description;
import org.visallo.core.model.Name;
import org.visallo.web.VisalloCsrfHandler;
import org.visallo.web.WebApp;
import org.visallo.web.WebAppPlugin;
import org.visallo.web.privilegeFilters.AdminP... | visallo/visallo | web/plugins/admin-user-tools/src/main/java/org/visallo/web/plugin/adminUserTools/AdminUserToolsWebAppPlugin.java | Java | apache-2.0 | 1,886 |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.search.query.ranking;
import com.yahoo.fs4.MapEncoder;
import com.yahoo.tensor.Tensor;
import com.yahoo.text.JSON;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.LinkedH... | vespa-engine/vespa | container-search/src/main/java/com/yahoo/search/query/ranking/RankFeatures.java | Java | apache-2.0 | 5,182 |
/*
* 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... | googleapis/google-api-java-client-services | clients/google-api-services-playintegrity/v1/1.31.0/com/google/api/services/playintegrity/v1/PlayIntegrityScopes.java | Java | apache-2.0 | 1,390 |
package com.github.ruediste.rise.testApp.validation;
import org.hibernate.validator.constraints.Length;
import com.github.ruediste1.i18n.lString.AdditionalResourceKeyProvider;
public class AdditionalResourceKeys implements AdditionalResourceKeyProvider {
@Override
public void provideKeys(KeyReceiver receive... | ruediste/rise | test-app/src/main/java/com/github/ruediste/rise/testApp/validation/AdditionalResourceKeys.java | Java | apache-2.0 | 416 |
/*
* TopStack (c) Copyright 2012-2013 Transcend 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 ap... | TranscendComputing/TopStackCore | src/com/msi/tough/model/rds/RdsDbengine.java | Java | apache-2.0 | 3,022 |
/*
* Copyright (C) 2006 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... | kimcy929/NotificationLater | NotificationLater/src/main/java/com/kimcy929/notificationlater/ForegroundLinearLayout.java | Java | apache-2.0 | 6,855 |
package com.seekerr.simulator.robot.env;
/**
*
* @author Wesley Kerr
*/
public class Momentum {
private double[] timeStepMomentum;
private double[] totalMomentum;
private double timeSteps;
/** Creates a new instance of Momentum */
public Momentum() {
timeStepMomentum = ne... | wesleykerr/robot-simulator | src/main/java/com/seekerr/simulator/robot/env/Momentum.java | Java | apache-2.0 | 1,093 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/scheduler/v1beta1/cloudscheduler.proto
package com.google.cloud.scheduler.v1beta1;
/**
*
*
* <pre>
* Request message for deleting a job using
* [DeleteJob][google.cloud.scheduler.v1beta1.CloudScheduler.DeleteJob].
* </pre>
*
*... | vam-google/google-cloud-java | google-api-grpc/proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/DeleteJobRequest.java | Java | apache-2.0 | 19,921 |
/**
* Copyright © 2013-2018 shadowhunt (dev@shadowhunt.de)
*
* 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 a... | thrawn-sh/subversion | src/test/java/de/shadowhunt/subversion/internal/httpv1/v1_4/RepositoryResolveIT.java | Java | apache-2.0 | 981 |
/*
* $Id: TestMessageTag1.java 54929 2004-10-16 16:38:42Z germuska $
*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | codelibs/cl-struts | src/test/org/apache/struts/taglib/bean/TestMessageTag1.java | Java | apache-2.0 | 12,716 |
/*
* Copyright 2012-2013 inBloom, Inc. and 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 appli... | inbloom/secure-data-service | sli/data-access/dal/src/main/java/org/slc/sli/ingestion/model/NewBatchJob.java | Java | apache-2.0 | 9,720 |
package com.leroymerlin.pandroid.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
@Target(ElementType.FIELD)
public @interface BindLifeCycleDelegate {
String BINDER_PREFIX = "_LifecycleAutoBinder";
}
| MobileTribe/pandroid | pandroid-annotations/src/main/java/com/leroymerlin/pandroid/annotations/BindLifeCycleDelegate.java | Java | apache-2.0 | 249 |
/*
* 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 ... | nickpan47/samza | samza-kafka/src/test/java/org/apache/samza/system/kafka/TestKafkaSystemAdminJava.java | Java | apache-2.0 | 5,993 |
package com.wisedu.scc.love.widget.audio;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
/**
* Interface containing media management methods.
*/
public interface IMediaManager {
/**
* Records a file.
*/
void recordGreeting(String fileName);
/**
* Plays saved greeting.
*/
void pl... | ccliu2015/love | app/src/main/java/com/wisedu/scc/love/widget/audio/IMediaManager.java | Java | apache-2.0 | 1,441 |
/*
* Copyright 2014 Mikael Beyene
*
* 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... | mbe24/jcurry | src/main/java/org/beyene/jcurry/function/Function4.java | Java | apache-2.0 | 1,358 |
package de.st_ddt.crazyplugin.comparator;
import de.st_ddt.crazyplugin.CrazyPluginInterface;
public class CrazyPluginNameComparator implements CrazyPluginComparator
{
@Override
public int compare(final CrazyPluginInterface o1, final CrazyPluginInterface o2)
{
return o1.getName().compareTo(o2.getName());
}
}
| ST-DDT/CrazyCore | src/main/java/de/st_ddt/crazyplugin/comparator/CrazyPluginNameComparator.java | Java | apache-2.0 | 318 |
package com.niomongo.conversion.json2bson;
import com.niomongo.conversion.custom.ClassMeta;
import com.niomongo.conversion.custom.Meta;
import com.niomongo.conversion.custom.Size;
import com.niomongo.conversion.custom.Strict;
import com.niomongo.conversion.json.NameLiteralValue;
import com.niomongo.conversion.json.Nam... | bushuyev/niomongo | src/test/java/com/niomongo/conversion/json2bson/Catalog.java | Java | apache-2.0 | 987 |
package org.crazycake.jdbcTemplateTool.exception;
public class NoDefinedGetterException extends Exception {
private String fieldName;
public NoDefinedGetterException(String fieldName){
super(fieldName + " should have an getter method.");
this.fieldName = fieldName;
}
public String getFieldName() {
retur... | alexxiyang/jdbctemplatetool | src/main/java/org/crazycake/jdbcTemplateTool/exception/NoDefinedGetterException.java | Java | apache-2.0 | 420 |
package com.me.harris.socketio;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;... | Haldir65/AndroidRepo | _001_socket_transportation/app/src/main/java/com/me/harris/socketio/MainActivity.java | Java | apache-2.0 | 2,736 |
package com.ftfl.triplist.database;
import java.util.ArrayList;
import com.ftfl.triplist.modelclass.*;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
p... | kanta12937/mywork | TripList/src/com/ftfl/triplist/database/PlaceListDataSource.java | Java | apache-2.0 | 6,221 |
/*
* Copyright 2013 Red Hat Inc. and/or its affiliates and other 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/licenses/LICENSE-2.0
* Unless req... | igarashitm/switchyard | core/admin/src/main/java/org/switchyard/admin/base/SwitchYardBuilder.java | Java | apache-2.0 | 6,206 |
/*
* Copyright 2013 greenbird Integration Technology
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | greenbird/mule-access-log | src/main/java/com/greenbird/mule/http/log/converter/AbstractAccessLogConverter.java | Java | apache-2.0 | 3,832 |
/*
* 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 ... | torakiki/sambox | src/main/java/org/sejda/sambox/pdmodel/graphics/image/JPEGFactory.java | Java | apache-2.0 | 11,619 |
package com.markwatson.machine_learning;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import java.util.Set;
public class HelloTest extends TestCase {
/**
* Create the test case
*
* @param testName name of the test case
*/
public HelloTes... | mark-watson/power-java | machine_learning_spark/src/test/java/com/markwatson/machine_learning/HelloTest.java | Java | apache-2.0 | 711 |
/**
* 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... | mattyb149/incubator-drill | common/src/main/java/org/apache/drill/common/config/CommonConstants.java | Java | apache-2.0 | 1,490 |
package com.bakulin.spotify.client.testing;
import org.sikuli.script.App;
import org.sikuli.script.FindFailed;
import org.sikuli.script.Key;
import org.sikuli.script.Match;
import org.sikuli.script.Pattern;
import org.sikuli.script.Region;
import org.sikuli.script.Screen;
/**
* Page-Object Model represent... | eugenebakulin/spotify | src/main/java/com/bakulin/spotify/client/testing/HomePage.java | Java | apache-2.0 | 3,510 |
package net.fengni.jdbc.query;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
/**
* Created by fengni on 2015/11/3.
*/
public class SQLBuilder {
private List<Condition> conditionList = new LinkedList<Condition>();
private List<Order> orderList = new Linke... | nifeng1989/myjdbc | jdbc/src/main/java/net/fengni/jdbc/query/SQLBuilder.java | Java | apache-2.0 | 4,115 |
/*
* 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 ma... | avthart/mina-sshd | sshd-core/src/main/java/org/apache/sshd/client/scp/ScpClient.java | Java | apache-2.0 | 4,005 |
package com.capgemini.resilience.employer.rest;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.core.MediaType;
import com.capgemini.resilience.employer.model.Employer;
import com.capgemini.resilience.employer.service.EmployerSearchCriteria;
import com.capgemini.resilience.employer.service.Emplo... | microservices-summit-2016/resilience-demo | employer-service/src/main/java/com/capgemini/resilience/employer/rest/EmployerRestService.java | Java | apache-2.0 | 2,031 |
/*
* Copyright 2016 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 applic... | leapframework/framework | base/core/src/test/java/tested/base/instrument/InstrumentParent.java | Java | apache-2.0 | 852 |
package org.apache.maven.plugins.dependency.analyze;
/*
* 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 th... | hgschmie/apache-maven-plugins | maven-dependency-plugin/src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java | Java | apache-2.0 | 16,864 |
package com.epam.rft.atsy.web.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
/**
* Controller for the position managing pag... | epam-debrecen-rft-2015/atsy | web/src/main/java/com/epam/rft/atsy/web/controllers/ManagePositionsController.java | Java | apache-2.0 | 717 |
package com.hashnot.u.random;
import com.hashnot.u.range.OverlappingRangeComparator;
import com.hashnot.u.range.Range;
import com.hashnot.u.range.RangeOfComparables;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
import java.util.TreeMap;
import java.util.function.Function;
public class Wei... | rafalkrupinski/micro | micro-random/src/main/java/com/hashnot/u/random/WeightedRandom.java | Java | apache-2.0 | 2,505 |
/**
* Copyright 2015 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 to i... | sasrin/Hystrix | hystrix-core/src/test/java/com/netflix/hystrix/HystrixCommandTest.java | Java | apache-2.0 | 181,225 |
package com.vmware.vim25;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment ... | jdgwartney/vsphere-ws | java/JAXWS/samples/com/vmware/vim25/CreateGroupResponse.java | Java | apache-2.0 | 768 |
/*
* 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-polly/src/main/java/com/amazonaws/services/polly/model/InvalidLexiconException.java | Java | apache-2.0 | 1,284 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundatio... | HuangLS/neo4j | community/kernel/src/main/java/org/neo4j/kernel/impl/transaction/state/RelationshipDeleter.java | Java | apache-2.0 | 11,277 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.09.... | cmhdave/xliff-gradle-plugin | src/main/java/org/oasisopen/xliff/StateQualifierValueList.java | Java | apache-2.0 | 4,767 |
/*******************************************************************************
* Copyright 2011
* Ubiquitous Knowledge Processing (UKP) Lab
* Technische Universität Darmstadt
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | dkpro/dkpro-lab | dkpro-lab-core/src/main/java/org/dkpro/lab/engine/ExecutionException.java | Java | apache-2.0 | 1,388 |
package com.xmldatamodifier.core;
import com.google.common.base.Strings;
import static java.util.Objects.requireNonNull;
public class ContentReplaceRule extends ContentRule {
private final String regex;
private final String replacement;
public ContentReplaceRule(String regex, String replacement) {
... | onegambler/XML-Data-Modifier | src/main/java/com/xmldatamodifier/core/ContentReplaceRule.java | Java | apache-2.0 | 1,602 |
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.jps.builders.java.dependencyView;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.Ref... | leafclick/intellij-community | jps/jps-builders/src/org/jetbrains/jps/builders/java/dependencyView/Mappings.java | Java | apache-2.0 | 127,337 |
package ru.siksmfp.spring.annotation.security.config;
import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;
import org.springframework.stereotype.Component;
/**
* @author Artem Karnov @date 4/17/2018.
* @email artem.karnov@t-systems.com
*/
@Component
public class SecurityWebApp... | parkito/RooMMateGeneralGUI | src/main/java/ru/siksmfp/spring/annotation/security/config/SecurityWebApplicationInitializer.java | Java | apache-2.0 | 395 |
/****************************************************************
* Licensed to the AOS Community (AOS) under one or more *
* contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The AOS licenses this... | XClouded/t4f-core | java/concurrent/src/main/java/io/aos/concurrent/scale/LoopHandler.java | Java | apache-2.0 | 2,551 |
/*
* Copyright 2015 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 applicab... | azusa/hatunatu | hatunatu/src/test/java/jp/fieldnotes/hatunatu/dao/impl/bean/Employee9.java | Java | apache-2.0 | 1,472 |
//============================================================================
//
// Copyright (C) 2006-2022 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receive... | Talend/components | components/components-jdbc/components-jdbc-runtime/src/main/java/org/talend/components/jdbc/avro/FloatToStringConverter.java | Java | apache-2.0 | 1,288 |
package com.uiguard.entity.proxy;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import com.google.common.base.Joi... | uiguard/uiguard | UIGuard/src/com/uiguard/entity/proxy/UGProxy.java | Java | apache-2.0 | 3,581 |
/**
*
* 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"); ... | gouravshenoy/airavata | modules/workflow/workflow-core/src/main/java/org/apache/airavata/workflow/core/WorkflowFactory.java | Java | apache-2.0 | 2,215 |
/*
* IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
*
* http://izpack.org/ http://izpack.codehaus.org/
*
* Copyright 2002 Elmar Grom
*
* 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 th... | codehaus/izpack | izpack-gui/src/main/java/com/izforge/izpack/gui/TwoColumnLayout.java | Java | apache-2.0 | 37,184 |
/*
* Copyright Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the authors tag. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License vers... | gijsleussink/ceylon | compiler-java/test/src/com/redhat/ceylon/compiler/java/test/ConcurrentTestsNoRuntime.java | Java | apache-2.0 | 5,604 |
/*
* 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... | consulo/consulo | modules/base/lang-impl/src/main/java/com/intellij/codeInsight/actions/ShowReformatFileDialog.java | Java | apache-2.0 | 2,785 |
/**
Copyright (c) 2016 Rory Hool
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... | hoolrory/VideoInfoViewer | app/src/main/java/com/roryhool/videoinfoviewer/CreditsFragment.java | Java | apache-2.0 | 3,332 |
/*
* SessionResource.java
*
* Copyright (C) 2016, Tozny, LLC.
* All Rights Reserved.
*
* Released under the Apache license. See the file "LICENSE"
* for more information.
*/
package com.tozny.sdk.example.secretmessage;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tozny.sdk.RealmApi;
import ... | tozny/sdk-java | examples/secretmessage/src/main/java/com/tozny/sdk/example/secretmessage/SessionResource.java | Java | apache-2.0 | 3,980 |
/* See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Esri 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
*
... | Esri/geoportal-server | geoportal/src/com/esri/gpt/framework/mail/MailRequest.java | Java | apache-2.0 | 6,432 |
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.updateSettings.impl;
import com.intellij.icons.AllIcons;
import com.intellij.ide.FileIconProvider;
import com.intellij.openapi.fileEditor.impl.HTMLEd... | dahlstrom-g/intellij-community | platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/WhatsNewFileIconProvider.java | Java | apache-2.0 | 889 |
package com.testfabrik.webmate.javasdk.mailtest;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.testfabrik.webmate.javasdk.JacksonMapper;
import com.testfabrik.webmate.javasdk.WebmateApiClientException;
import com.testfabrik.webmate.javasdk.testmgmt.Artif... | webmate-io/webmate-sdk-java | src/main/java/com/testfabrik/webmate/javasdk/mailtest/TestMail.java | Java | apache-2.0 | 2,269 |
package userServiceExercise;
public class UserServiceFactory {
public static UserServiceImp getLocalService() {
return new UserServiceImp();
}
//for this exercise i only configured local service.
}
| kev9318/java-bootcamp | Topic 4/src/userServiceExercise/UserServiceFactory.java | Java | apache-2.0 | 208 |
/*
* 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-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/ModifyReservedInstancesResultStaxUnmarshaller.java | Java | apache-2.0 | 2,609 |
/*
* Copyright 2015-2016 Red Hat, Inc, and individual 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | hpehl/hal.next | app/src/main/java/org/jboss/hal/client/deployment/ServerGroupDeploymentColumn.java | Java | apache-2.0 | 22,927 |
/*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | googleapis/java-os-config | google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/package-info.java | Java | apache-2.0 | 2,665 |
package ru.chedmitriy.monitor.ex1105;
import org.junit.Before;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* ru.chedmitriy.multithreading.threads.monitor.ex1105.
*
* @author cheDmitry
* @version 1.0
* @since 29.10.2017
* тестируем класс LinkedListThread... | CheRut/chedmitry | chapter_006/src/test/java/ru/chedmitriy/monitor/ex1105/LinkedListThreadTest.java | Java | apache-2.0 | 2,604 |
package com.tvd12.ezyfox.tool;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTi... | youngmonkeys/ezyfox | ezyfox-tools/src/main/java/com/tvd12/ezyfox/tool/EzyObjectInstanceRandom.java | Java | apache-2.0 | 15,956 |
/*
* 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-transfer/src/main/java/com/amazonaws/services/transfer/model/transform/IdentityProviderDetailsJsonUnmarshaller.java | Java | apache-2.0 | 3,082 |
package jetbrains.mps.samples.VoiceMenu.editor;
/*Generated by MPS */
import jetbrains.mps.nodeEditor.DefaultNodeEditor;
import jetbrains.mps.openapi.editor.cells.EditorCell;
import jetbrains.mps.openapi.editor.EditorContext;
import org.jetbrains.mps.openapi.model.SNode;
public class HangUp_Editor extends DefaultNod... | vaclav/voicemenu | languages/jetbrains.mps.samples.VoiceMenu/source_gen/jetbrains/mps/samples/VoiceMenu/editor/HangUp_Editor.java | Java | apache-2.0 | 489 |
/*
* Copyright (c) 2007-2009, Osmorc Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this list... | consulo/consulo-java | java-manifest/src/main/java/org/osmorc/manifest/lang/headerparser/HeaderAnnotator.java | Java | apache-2.0 | 2,436 |
package ch.dissem.bitmessage.repository;
import ch.dissem.bitmessage.entity.valueobject.NetworkAddress;
import ch.dissem.bitmessage.exception.ApplicationException;
import ch.dissem.bitmessage.ports.NodeRegistry;
import ch.dissem.bitmessage.utils.Collections;
import ch.dissem.bitmessage.utils.SqlStrings;
import ch.diss... | Dissem/Jabit | repositories/src/main/java/ch/dissem/bitmessage/repository/JdbcNodeRegistry.java | Java | apache-2.0 | 6,054 |
/*
* 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-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/AWSOpsWorksCMAsync.java | Java | apache-2.0 | 56,942 |
/*
* 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-forecast/src/main/java/com/amazonaws/services/forecast/model/transform/MetricsJsonUnmarshaller.java | Java | apache-2.0 | 3,538 |
package com.ilivoo.memcached;
import java.net.InetSocketAddress;
import com.thimbleware.jmemcached.CacheImpl;
import com.thimbleware.jmemcached.Key;
import com.thimbleware.jmemcached.LocalCacheElement;
import com.thimbleware.jmemcached.MemCacheDaemon;
import com.thimbleware.jmemcached.storage.CacheStorage;
i... | ilivoo/ilivoo | memcached/src/main/java/com/ilivoo/memcached/MemcachedManager.java | Java | apache-2.0 | 1,923 |
package com.lukaszpiskadlo.Repository;
import com.lukaszpiskadlo.Model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Long> {
}
| LukaszPiskadlo/Pat2017_Lukasz_Piskadlo-Backend | src/main/java/com/lukaszpiskadlo/Repository/UserRepository.java | Java | apache-2.0 | 211 |