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 (c) 2011-2018, Meituan Dianping. All Rights Reserved. * * 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 Y...
dianping/cat
cat-home/src/main/java/com/dianping/cat/report/page/dependency/ExternalInfoBuilder.java
Java
apache-2.0
3,984
/** * 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...
icoding/sqoop
src/test/org/apache/sqoop/TestSqoopOptions.java
Java
apache-2.0
1,896
package fr.openwide.maven.artifact.notifier.core.business.artifact.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Pattern; import org.apache.maven.artifact.versioning.ComparableVersion; import fr.openwide.core.commons.util.CloneUtils; import fr...
openwide-java/artifact-listener
maven-artifact-notifier-core/src/main/java/fr/openwide/maven/artifact/notifier/core/business/artifact/util/MavenCentralComparableVersion.java
Java
apache-2.0
2,164
/** * */ package uk.co.quidos.gdsap.evaluation.wsclient; /** * @author shipeng */ public class ResponseObject { private ResponseStatus responseStatus; private ResponseMessage responseMessage; private String successContent; public String getSuccessContent() { return successContent; } ...
ZhangPeng1990/crm
gdsap-framework/src/main/java/uk/co/quidos/gdsap/evaluation/wsclient/ResponseObject.java
Java
apache-2.0
928
/* Derby - Class com.pivotal.gemfirexd.internal.client.net.NetStatementRequest 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 th...
gemxd/gemfirexd-oss
gemfirexd/client/src/main/java/com/pivotal/gemfirexd/internal/client/net/NetStatementRequest.java
Java
apache-2.0
93,063
package org.metaborg.util.log; import org.slf4j.Logger; import org.slf4j.helpers.MessageFormatter; import javax.annotation.Nullable; public class MetaborgLogger extends AbstractLogger { private final Logger logger; public MetaborgLogger(Logger logger) { this.logger = logger; } @Override pu...
metaborg/mb-exec
org.metaborg.util/src/main/java/org/metaborg/util/log/MetaborgLogger.java
Java
apache-2.0
1,866
/* * 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 sd.samples.akka.slacktojirabot.Jira; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import ja...
SergeyDz/SlackToJiraBot
src/main/java/sd/samples/akka/slacktojirabot/Jira/JiraSprintCallback.java
Java
apache-2.0
1,810
package li.tengfei.apng.opt.optimizer; import java.awt.*; /** * Common functions for color operating * * @author ltf * @since 17/1/3, 上午10:30 */ public class ColorUtils { /** * color distance */ public static int distance(Color a, Color b) { int dist = 0; int delta = a.getRed()...
litengfei/apng-opt
src/main/java/li/tengfei/apng/opt/optimizer/ColorUtils.java
Java
apache-2.0
1,545
/* +-------------------------------------------------------------------------- | Mblog [#RELEASE_VERSION#] | ======================================== | Copyright (c) 2014, 2015 mtons. All Rights Reserved | http://www.mtons.com | +--------------------------------------------------------------------------- */ pac...
DarrickAZ/DBLog
mblog-web/src/main/java/mblog/web/listener/StartupListener.java
Java
apache-2.0
3,797
/* * 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 ...
forcedotcom/aura
aura-impl/src/main/java/org/auraframework/impl/util/BrowserInfo.java
Java
apache-2.0
23,198
/* * Spreadsheet by Madhawa */ package serializables; import java.io.Serializable; import java.util.HashMap; /** * * @author Madhawa */ /* A lightweight cell which can be serialized for saving purposes */ public class SerializableCell implements Serializable { private String expression = ""; //the ex...
CordPRO/sigma
src/serializables/SerializableCell.java
Java
apache-2.0
1,380
package com.sustech.flightbooking.domainmodel; public enum OrderStatus { UNPAID, PAID, EXPIRED, CANCELLED }
Henrycobaltech/SUSTechSpring2017Java
src/main/java/com/sustech/flightbooking/domainmodel/OrderStatus.java
Java
apache-2.0
121
package net.alaarc.vm.instructions; import net.alaarc.ast.AstNode; import net.alaarc.vm.VmGlobalVar; import net.alaarc.vm.VmGlobalVarDef; import net.alaarc.vm.VmInstruction; import net.alaarc.vm.IVmInstructionVisitor; import java.util.Objects; /** * <code>( --> | 'var' is released, this may cause object release )</...
abreslav/alaarc
src/main/java/net/alaarc/vm/instructions/ReleaseGlobal.java
Java
apache-2.0
917
/* * Copyright 2016 Roberto C. Benitez. * * 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...
rbenitez22/pdwriter
pdwriter/src/com/baseprogramming/pdwriter/Utils.java
Java
apache-2.0
5,846
/* * Copyright 2006-2008 Web Cohesion * * 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...
garyhodgson/enunciate
spring-jaxws-rt/src/main/java/org/codehaus/enunciate/modules/jaxws_ri/WSSpringServlet.java
Java
apache-2.0
3,496
/* * Copyright 2016 Google 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 ...
denyska/stackdriver-zipkin
storage/src/main/java/com/google/cloud/trace/zipkin/StackdriverStorageComponent.java
Java
apache-2.0
3,536
package nl.joshuaslik.tudelft.SEM.control.viewController; import javafx.fxml.FXML; import javafx.scene.control.Button; import javafx.scene.control.PopupControl; import nl.joshuaslik.tudelft.SEM.Launcher; import nl.joshuaslik.tudelft.SEM.utility.GameLog; /** * The controller class of the view which is shown after win...
JoshCode/SEM
src/main/java/nl/joshuaslik/tudelft/SEM/control/viewController/CongratsViewController.java
Java
apache-2.0
1,784
package com.example.daniel.agendasms; import android.app.AlarmManager; import android.app.PendingIntent; import android.app.Service; import android.content.Intent; import android.os.IBinder; import android.support.annotation.Nullable; import android.util.Log; /** * Created by Daniel on 28/12/2015. */ public class T...
Danikashi/TimeSMS
app/src/main/java/com/example/daniel/agendasms/TimeSmsService.java
Java
apache-2.0
1,786
/** * Copyright (C) 2015 Valkyrie RCP * * 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...
lievendoclo/Valkyrie-RCP
valkyrie-rcp-core/src/main/java/org/valkyriercp/form/builder/OverlayValidationInterceptorFactory.java
Java
apache-2.0
8,032
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_3893 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_3893.java
Java
apache-2.0
151
package com.huawei.esdk.fusionmanager.local.model.net; /** * 查询私有IP请求。 * <p> * @since eSDK Cloud V100R003C30 */ public class QueryPrivateIPReq { /** * VPC ID。 */ private String vpcID; /** * 路由网络ID。 */ private String networkID; /** * IP所在网络是否关联router。 */ ...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R5/esdk_fm_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/model/net/QueryPrivateIPReq.java
Java
apache-2.0
2,461
package com.huawei.esdk.fusionmanager.local.impl.autogen.net; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CreateLBReq complex type. * * <p>Th...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R3/esdk_fm_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/impl/autogen/net/CreateLBReq.java
Java
apache-2.0
5,142
/* * 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-rds/src/main/java/com/amazonaws/services/rds/model/Endpoint.java
Java
apache-2.0
7,301
/* * 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-kinesis/src/main/java/com/amazonaws/services/kinesis/model/transform/UpdateShardCountRequestProtocolMarshaller.java
Java
apache-2.0
2,710
/* * 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 ...
heriram/incubator-asterixdb
hyracks-fullstack/hyracks/hyracks-storage-am-bloomfilter/src/main/java/org/apache/hyracks/storage/am/bloomfilter/impls/BloomFilter.java
Java
apache-2.0
11,248
/** * 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"); yo...
everttigchelaar/camel-svn
components/camel-flatpack/src/test/java/org/apache/camel/component/flatpack/FlatpackFixedLengthWithHeaderAndTrailerDataFormatTest.java
Java
apache-2.0
3,380
/******************************************************************************* * Copyright 2016 Antoine Nicolas SAMAHA * * 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 * * ...
FOC-framework/framework
foc/src/com/foc/gui/dateInterval/StartEndDate.java
Java
apache-2.0
4,101
/* * Copyright 2003-2012 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 app...
Selventa/model-builder
tools/groovy/src/subprojects/groovy-json/src/main/java/groovy/json/JsonLexer.java
Java
apache-2.0
9,155
/* * 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-appstream/src/main/java/com/amazonaws/services/appstream/model/transform/FleetMarshaller.java
Java
apache-2.0
8,962
/* * */ package net.community.chest.ui.components.panel; import java.awt.Component; import java.awt.FlowLayout; import javax.swing.Icon; import javax.swing.JLabel; import net.community.chest.awt.TypedComponentAssignment; import net.community.chest.awt.attributes.Iconable; import net.community.chest.awt.attributes....
lgoldstein/communitychest
chest/gui/components/src/main/java/net/community/chest/ui/components/panel/LRLabeledComponent.java
Java
apache-2.0
8,840
package de.hub.emffrag.mongodb; import de.hub.emffrag.datastore.DataStore; import de.hub.emffrag.fragmentation.CrossReferenceTests; public class MongodbCrossReferenceTests extends CrossReferenceTests { @Override protected DataStore createTestDataStore() { EmfFragMongoDBActivator.standalone(); return new Mongo...
srirammails/emf-fragments
de.hub.emffrag.mongodb.tests/src/de/hub/emffrag/mongodb/MongodbCrossReferenceTests.java
Java
apache-2.0
370
// Copyright 2017 The Nomulus Authors. 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 a...
google/nomulus
core/src/test/java/google/registry/tools/ResaveEntitiesCommandTest.java
Java
apache-2.0
3,900
/* * 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-eventbridge/src/main/java/com/amazonaws/services/eventbridge/model/PutPartnerEventsRequest.java
Java
apache-2.0
4,787
/* * Copyright 2015-2016 EMBL - European Bioinformatics Institute * * 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 requi...
EBIvariation/eva-pipeline
src/main/java/uk/ac/ebi/eva/pipeline/jobs/steps/tasklets/CalculateStatisticsTasklet.java
Java
apache-2.0
6,286
/* * 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 ...
igor-sfdc/aura
aura-integration-test/src/test/java/org/auraframework/test/java/provider/JavaThemeProviderDefTest.java
Java
apache-2.0
7,873
package com.ms.square.android.etsyblurdemo.ui.activity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import...
Manabu-GT/EtsyBlur
sample/src/main/java/com/ms/square/android/etsyblurdemo/ui/activity/ViewPagerActivity.java
Java
apache-2.0
2,497
import java.util.*; public class ListProblems { public static void simpleList () { LinkedList<String> ls = new LinkedList<String>(); ls.add("Hello!"); ls.add("I"); ls.add("am"); ls.add("Sameer"); for(String s: ls) { System.out.print(s + " "); } System.out.println(); } public static void...
tri2sing/Random
src/main/java/ListProblems.java
Java
apache-2.0
1,815
/* * Copyright 2009 Red Hat, Inc. * * Red Hat 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.org/licenses/LICENSE-2.0 * * Unless required by ...
aperepel/netty
src/main/java/org/jboss/netty/handler/execution/ChannelEventRunnable.java
Java
apache-2.0
2,242
/* * * Paros and its related class files. * * Paros is an HTTP/HTTPS proxy for assessing web application security. * Copyright (C) 2003-2004 Chinotec Technologies Company * * This program is free software; you can redistribute it and/or * modify it under the terms of the Clarified Artistic License * a...
zapbot/zaproxy
src/org/zaproxy/zap/extension/ascan/PolicyCategoryPanel.java
Java
apache-2.0
6,286
/** * Copyright (C) 2009-2014 Dell, Inc. * See annotations for authorship 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 co...
daniellemayne/dasein-cloud-test_old
src/main/java/org/dasein/cloud/test/network/StatefulVLANTests.java
Java
apache-2.0
53,094
/* * Copyright 2017 Axway Software * * 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...
Axway/ats-framework
agent/core/src/main/java/com/axway/ats/agent/core/templateactions/model/objects/ActionParser.java
Java
apache-2.0
4,084
/* * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
emre-aydin/hazelcast
hazelcast/src/test/java/com/hazelcast/sql/impl/schema/map/PartitionedMapTableResolverTest.java
Java
apache-2.0
15,952
/** * 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...
kingargyle/turmeric-bot
components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpConsumerDoneFileNameTest.java
Java
apache-2.0
2,540
package it.jaschke.alexandria.fragments; import android.os.Bundle; import android.preference.PreferenceFragment; import it.jaschke.alexandria.R; /** * Created by Amrendra Kumar on 24/01/16. */ public class SettingsFragment extends PreferenceFragment { @Override public void onCreate(final Bundle savedInsta...
thecodegame/udacity-p3
alexandria/app/src/main/java/it/jaschke/alexandria/fragments/SettingsFragment.java
Java
apache-2.0
439
package com.google.sps.Objects.response; /** * Contains information for the response sent by LoginServlet. */ public class LoginResponse { public final String loginUrl; public final String logoutUrl; public final String email; public final boolean loggedIn; /** * Constructs a LoginResponse object. ...
googleinterns/step100-2020
capstone/src/main/java/com/google/sps/Objects/response/LoginResponse.java
Java
apache-2.0
818
/* * Copyright (c) 2016, 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 * * Unles...
omindu/carbon-identity-framework
components/claim-mgt/org.wso2.carbon.identity.claim.metadata.mgt/src/main/java/org/wso2/carbon/identity/claim/metadata/mgt/DefaultClaimMetadataStore.java
Java
apache-2.0
25,467
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.mycompany.diplom.profile.authorizationpanel; /** * * @author valik */ public class AuthorizationProfileDate { private static Integer id; private static String name; private static String passw...
nortrix/cursovik
src/main/java/com/mycompany/diplom/profile/authorizationpanel/AuthorizationProfileDate.java
Java
apache-2.0
917
/* * Copyright 2014 Pedro Gandola <pedro.gandola@gmail.com>. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
gandola/creg
src/main/java/com/pg/creg/PatternUtils.java
Java
apache-2.0
12,670
/** * */ package ecologylab.bigsemantics.actions; import ecologylab.collections.Scope; /** * Optional class that exposes the Java application instances to XML * @author amathur * */ public class SemanticActionParameters { private Scope<Object> standardObjectInstanceMap; public SemanticAct...
ecologylab/BigSemanticsJava
BigSemanticsCore/src/ecologylab/bigsemantics/actions/SemanticActionParameters.java
Java
apache-2.0
1,132
package com.bxtel; import org.springframework.context.ApplicationEvent; import org.springframework.context.ApplicationListener; import org.springframework.context.event.ContextRefreshedEvent; import org.springframework.stereotype.Service; @Service public class MyApplicationListener implements ApplicationListener { @...
zzsoszz/codegen3
src/main/java/com/bxtel/MyApplicationListener.java
Java
apache-2.0
1,773
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Kamapcuc/elasticsearch
core/src/test/java/org/elasticsearch/script/MockScriptEngine.java
Java
apache-2.0
3,224
package org.anvard.introtojava.resources; import java.io.IOException; import java.util.Properties; public class PropertiesLoader { public static void main(String[] args) throws IOException { Properties p = new Properties(); p.load(PropertiesLoader.class.getResourceAsStream("sample.properties")); System...
AlanHohn/java-intro-course
src/main/java/org/anvard/introtojava/resources/PropertiesLoader.java
Java
apache-2.0
556
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer 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://w...
kbabioch/arx
src/main/org/deidentifier/arx/DataType.java
Java
apache-2.0
56,548
// (c) Copyright 2017 Cloudera, 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...
cloudera/director-aws-plugin
provider/src/main/java/com/cloudera/director/aws/ec2/EC2TagHelper.java
Java
apache-2.0
2,268
/* ### * IP: GHIDRA * * 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 writin...
NationalSecurityAgency/ghidra
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/equate/ConvertToBinaryAction.java
Java
apache-2.0
1,536
/* * * * Copyright 2012-2015 Viant. * * * * 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...
viant/CacheStore
core/src/main/java/com/sm/store/hessian/PhpTokenizer.java
Java
apache-2.0
15,336
package org.jumaland; import com.github.fakemongo.Fongo; import com.mongodb.MongoClient; public class BasicAPIUsingFongoTest extends AbstractBasicAPITest { protected MongoClient client() throws Exception { return new Fongo(null).getMongo(); } }
jumal/spring-data-mongodb-demo
src/test/java/org/jumaland/BasicAPIUsingFongoTest.java
Java
apache-2.0
264
/** * 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...
vergilchiu/hive
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/StreamingDelegator.java
Java
apache-2.0
3,625
package com.spacetimecat.relational.jdbc2.sync; public final class JdbcColumn { private final JdbcMethod method; public JdbcColumn (JdbcMethod method) { if (!method.describesColumn()) { throw new IllegalArgumentException("!method.describesColumn()"); } this.meth...
edom/web
relational/src/main/java/com/spacetimecat/relational/jdbc2/sync/JdbcColumn.java
Java
apache-2.0
1,228
package osky.web.beetl.func; import org.beetl.core.Context; import org.beetl.core.Function; public class TimestampFunc implements Function { public String call(Object[] paras, Context ctx) { return String.valueOf(System.currentTimeMillis()); } }
lnyu/osky
common/src/main/java/osky/web/beetl/func/TimestampFunc.java
Java
apache-2.0
266
package tomy.array; import com.google.common.base.Preconditions; public class RadixSort { private static final int NUM_BITS_INT = 32; public static void radixMsb(int[] a) { Preconditions.checkArgument(a != null); radixMsbHelper(a, 0, a.length, 1 << (NUM_BITS_INT - 1)); } private static void radixM...
tomytsai1/talgo
src/main/java/tomy/array/RadixSort.java
Java
apache-2.0
2,475
package ru.job4j.jsp; import java.util.Date; public class User { private int id; private String login; private Role role; private String email; private String password; private String address; private Date createDate; public User(int id, String login, String password, Role role, Strin...
Mrsananabos/ashveytser
chapter_006/src/main/java/ru/job4j/jsp/User.java
Java
apache-2.0
3,186
/* * 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...
asual/summer
modules/el/src/main/java/org/jboss/el/parser/AstLessThanEqual.java
Java
apache-2.0
1,384
/******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * ...
opetrovski/development
oscm-rest-api-common-unittests/javasrc/org/oscm/rest/common/unittests/GsonMessageProviderTest.java
Java
apache-2.0
5,098
/** * Copyright 2012-2013 The Regents of the University of California * * 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...
mahaucsb/pss
src/main/java/edu/ucsb/cs/lsh/projection/ProjectionLshDriver.java
Java
apache-2.0
3,310
/* * 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 ...
mufaddalq/cloudstack-datera-driver
framework/ipc/test/org/apache/cloudstack/messagebus/TestMessageBus.java
Java
apache-2.0
4,379
package com.google.api.ads.adwords.jaxws.v201402.o; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * * A {@link SearchParameter} for a query of {@code St...
nafae/developer
modules/adwords_appengine/src/main/java/com/google/api/ads/adwords/jaxws/v201402/o/RelatedToQuerySearchParameter.java
Java
apache-2.0
2,385
package org.jboss.resteasy.plugins.guice; import static org.jboss.resteasy.test.TestPortProvider.generateBaseUrl; import com.google.inject.Binder; import com.google.inject.Guice; import com.google.inject.Module; import org.jboss.resteasy.client.ProxyFactory; import org.jboss.resteasy.core.Dispatcher; import org.jbos...
raphaelning/resteasy-client-android
jaxrs/resteasy-guice/src/test/java/org/jboss/resteasy/plugins/guice/GuiceProviderTest.java
Java
apache-2.0
2,303
/* * Copyright 2010 Tom Gibara * * 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 ...
tomgibara/streams
src/main/java/com/tomgibara/streams/WriteStream.java
Java
apache-2.0
18,411
package com.huawei.esdk.fusionmanager.local.impl.autogen.storage; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for AddDataStorageReq complex type. * * <p>The following schema fragment specifies the...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R3/esdk_fm_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/impl/autogen/storage/AddDataStorageReq.java
Java
apache-2.0
6,531
package com.socialsearch.search.model; import com.socialsearch.core.model.Callback; import com.socialsearch.entity.SocialData; import com.socialsearch.history.usecase.GetSocialDataUseCase; import java.util.ArrayList; import java.util.List; import javax.inject.Inject; import rx.Subscriber; import rx.Subscription; impor...
thebestpol/SocialSearchDemo
app/src/main/java/com/socialsearch/search/model/SocialDataSearchModel.java
Java
apache-2.0
1,555
/** * Copyright 2015 David Karnok and 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 l...
akarnokd/rxjava2-backport
src/test/java/hu/akarnokd/rxjava2/internal/operators/nbp/NbpOperatorLastTest.java
Java
apache-2.0
8,769
package com.example.servicetest; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.graphics.BitmapFactory; import android.os.IBinder; im...
DossShi/AndroidStudy
chapter10/ServiceTest/app/src/main/java/com/example/servicetest/MainActivity.java
Java
apache-2.0
3,036
package com.oliver.easy.push; /** * Created by wangdong on 16-1-5. */ public class PushTest { }
mazouri/EasyAndroidDev
app/src/main/java/com/oliver/easy/push/PushTest.java
Java
apache-2.0
99
package com.libvirus.okhttplib.request; import java.util.Map; import org.json.JSONObject; import okhttp3.MediaType; import okhttp3.MultipartBody; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; /** * Created by psu on 2016/4/16. */ public class PostJsonRequest extends OkHttpReques...
psuwgipgf/BaseAndroid
BaseAndroid/src/main/java/com/libvirus/okhttplib/request/PostJsonRequest.java
Java
apache-2.0
1,639
// Copyright 2018 The Bazel Authors. 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 applica...
ulfjack/bazel
src/main/java/com/google/devtools/build/lib/dynamic/DynamicSpawnStrategy.java
Java
apache-2.0
21,487
package com.abraham.handler; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.MessageToByteEncoder; import org.msgpack.MessagePack; /** * Created by Abraham on 2017/3/1. */ public class MsgpackEncoder extends MessageToByteEncoder<Object>{ @Override ...
LionKingzlq/NettyDemo
ServerDemo/src/main/java/com/abraham/handler/MsgpackEncoder.java
Java
apache-2.0
579
/* * Copyright(C) 2014 * NEC Corporation All rights reserved. * * No permission to use, copy, modify and distribute this software * and its documentation for any purpose is granted. * This software is provided under applicable license agreement only. */ package com.nec.harvest.model; import java.util.ArrayList...
dangokuson/Harvest-JP
harvest/src/main/java/com/nec/harvest/model/Vendor.java
Java
apache-2.0
3,984
/* * 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 ...
ecarm002/incubator-asterixdb
asterixdb/asterix-runtime/src/main/java/org/apache/asterix/runtime/evaluators/functions/RandomWithSeedDescriptor.java
Java
apache-2.0
4,146
package com.monet.transdata.util; import android.content.Context; import android.util.Log; /** * Created by Monet on 2015/3/20. */ public class SwitchNetworkUtil { public static void handleSwitch(final Context context, final String failType, final int mobileSignalVale, final SwitchCallbackListener switchListene...
zhlinh/transdata
app/src/main/java/com/monet/transdata/util/SwitchNetworkUtil.java
Java
apache-2.0
2,635
package com.huawei.esdk.fusionmanager.local.model.net; import com.huawei.esdk.fusionmanager.local.model.FMSDKResponse; /** * 操作路由器(指定IP地址ping)返回信息。 * <p> * @since eSDK Cloud V100R003C30 */ public class OperateRouterResp extends FMSDKResponse { /** * 创建ping返回信息。 */ private CreatePingResp createR...
eSDK/esdk_cloud_fm_r3_native_java
source/FM/V1R5/esdk_fm_neadp_1.5_native_java/src/main/java/com/huawei/esdk/fusionmanager/local/model/net/OperateRouterResp.java
Java
apache-2.0
849
package com.ppcxy.common.student.repository; import com.ppcxy.common.entity.search.Searchable; import com.ppcxy.common.repository.jpa.BaseRepository; import com.ppcxy.common.student.entity.BaseInfo; import com.ppcxy.common.student.entity.SchoolInfo; import com.ppcxy.common.student.entity.Student; import org.springfram...
ppcxy/cyfm
ppcxy-common/src/test/java/com/ppcxy/common/student/repository/StudentRepository2.java
Java
apache-2.0
1,083
package ru.mbogomolov.tracker; import org.junit.Before; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; /** * Tests for all method by Tracker class. * @author Michael Bogomolov (mybogomolov@gmail.com) */ public class TrackerTest { /** * pre-created data f...
MichaelBog/java-courses-a-z
chapter_002/src/test/java/ru/mbogomolov/tracker/TrackerTest.java
Java
apache-2.0
3,696
package com.ajjpj.asysmon.impl; import com.ajjpj.asysmon.ASysMonApi; import com.ajjpj.asysmon.datasink.ADataSink; import com.ajjpj.asysmon.measure.environment.AEnvironmentMeasurer; import com.ajjpj.asysmon.measure.scalar.AScalarMeasurer; /** * This class can change the configuration of an existing ASysMon instance....
arnohaase/a-sysmon
a-sysmon-core/src/main/java/com/ajjpj/asysmon/impl/ASysMonConfigurer.java
Java
apache-2.0
1,131
// // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 generiert // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. // Generiert: 201...
thlaegler/stubbr
com.laegler.stubbr.lang/src/com/laegler/stubbr/lang/ext/model/maven/v4_0_0/Site.java
Java
apache-2.0
2,839
/** * 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...
chicagozer/rheosoft
components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfSimpleRouterTest.java
Java
apache-2.0
3,920
/* * 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 u...
apigee-labs/apibaas-monitoring
service/src/main/java/org/apache/usergrid/apm/service/util/Mailer.java
Java
apache-2.0
3,520
package com.google.api.ads.dfp.jaxws.v201306; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation....
nafae/developer
modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201306/Creative.java
Java
apache-2.0
7,983
/* * * 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"); y...
bbcarchdev/qpid-proton
proton-j/proton/src/main/java/org/apache/qpid/proton/engine/impl/EndpointImpl.java
Java
apache-2.0
4,322
/* * Copyright (C) 2016 Dominik Schadow, dominikschadow@gmail.com * * This file is part of the Application Intrusion Detection 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 ...
dschadow/ApplicationIntrusionDetection
duke-encounters/src/main/java/de/dominikschadow/dukeencounters/user/UserService.java
Java
apache-2.0
4,126
// This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it wi...
tarunchhabra26/fss16dst
project/jMetal/jmetal-exec/src/main/java/org/uma/jmetal/experiment/ZDTStudy2.java
Java
apache-2.0
6,327
package org.zstack.storage.primary.local; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.cloudbus.CloudBusCallBack; import org.zstack.core.db.DatabaseFacade; import org.zsta...
hhjuliet/zstack
plugin/localstorage/src/main/java/org/zstack/storage/primary/local/LocalStorageKvmFactory.java
Java
apache-2.0
5,655
package com.jivesoftware.example.team.events; import com.jivesoftware.example.github.dao.User; /** * Created by mark.schisler on 10/20/14. */ public class TeamCollaboratorPressed { public final User user; public TeamCollaboratorPressed(User user) { this.user = user; } }
jivesoftware/jive-android-core-sdk-example
jive-android-sdk-example/src/main/java/com/jivesoftware/example/team/events/TeamCollaboratorPressed.java
Java
apache-2.0
295
package org.hl7.v3; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /...
KRMAssociatesInc/eHMP
lib/mvi/org/hl7/v3/COCTMT260003UVConsumable.java
Java
apache-2.0
6,298
/* * 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...
gbif/checklistbank
checklistbank-nub/src/main/java/org/gbif/nub/utils/RsGbifOrg.java
Java
apache-2.0
2,387
package nam.model._import; import java.io.Serializable; import javax.enterprise.context.SessionScoped; import javax.inject.Inject; import javax.inject.Named; import nam.model.Import; import nam.ui.design.AbstractEventManager; import nam.ui.design.SelectionContext; @SessionScoped @Named("importEventManager") public...
tfisher1226/ARIES
nam/nam-view/src/main/java/nam/model/_import/ImportEventManager.java
Java
apache-2.0
664
/* * Copyright (C) 2014-2015 LinkedIn Corp. 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 appl...
jordancheah/gobblin
gobblin-data-management/src/main/java/gobblin/data/management/trash/MockTrash.java
Java
apache-2.0
2,092
package io.pravega.shared.health.bindings.generated.api; import javax.xml.bind.annotation.XmlTransient; @javax.xml.bind.annotation.XmlRootElement public class ApiResponseMessage { public static final int ERROR = 1; public static final int WARNING = 2; public static final int INFO = 3; public static f...
pravega/pravega
shared/health-bindings/src/main/java/io/pravega/shared/health/bindings/generated/api/ApiResponseMessage.java
Java
apache-2.0
1,457
package org.example.casintegdemo.componentsinfo; import org.hippoecm.hst.core.parameters.FieldGroup; import org.hippoecm.hst.core.parameters.FieldGroupList; import org.hippoecm.hst.core.parameters.Parameter; @FieldGroupList({ @FieldGroup( titleKey = "group.content", value = {"p...
woonsanko/hippo-cas-integration-demo
site/src/main/java/org/example/casintegdemo/componentsinfo/PageableListInfo.java
Java
apache-2.0
528
/* Copyright 2009 Marc G. Bellemare * 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...
jmodayil/rlai-critterbot
sim/src/org/rlcommunity/critterbot/simulator/ObjectStateBumpSensor.java
Java
apache-2.0
5,834