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
package org.motechproject.server.messagecampaign.scheduler; import org.joda.time.LocalDate; import org.motechproject.event.MotechEvent; import org.motechproject.scheduler.MotechSchedulerService; import org.motechproject.scheduler.domain.RunOnceSchedulableJob; import org.motechproject.server.messagecampaign.EventKeys; ...
motech/motech-server-pillreminder
modules/message-campaign/message-campaign/src/main/java/org/motechproject/server/messagecampaign/scheduler/AbsoluteCampaignSchedulerService.java
Java
bsd-3-clause
2,356
package com.sap.research.fiware.ngsi10.test.querycontext; import java.net.HttpURLConnection; import org.junit.Test; import com.sap.research.fiware.ngsi10.test.Constants; import com.sap.research.fiware.ngsi10.test.HttpRequestBuilder; import com.sap.research.fiware.ngsi10.test.TestHelpers; public class TestUnallowedM...
iotsap/ngsi10testserver
TestClientToNGSI10TestServer/src/test/java/com/sap/research/fiware/ngsi10/test/querycontext/TestUnallowedMethodsOnQueryContext.java
Java
bsd-3-clause
1,069
/* * Carrot2 project. * * Copyright (C) 2002-2015, Dawid Weiss, Stanisław Osiński. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the repository checkout or at: * http://www.carrot2.org/carrot2.LICENSE */ package org.carrot2.workbench.core.helpers; import...
MjAbuz/carrot2
workbench/org.carrot2.workbench.core/src/org/carrot2/workbench/core/helpers/DisposeBin.java
Java
bsd-3-clause
6,512
package com.gambasoft.service; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.List; import javax.ws.rs.core.Response; import org.apache.commons.lang3.StringUtils; import org.apache.log4j.Logger; import com.gambasoft.dao.RankSystemDAO; import com.gambasoft.vo.Scor...
marlonpg/EarthDefenders
server/RankSystem/src/com/gambasoft/service/RankSystemService.java
Java
bsd-3-clause
3,753
/* * Copyright (c) 2017, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.network; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; i...
apptentive/apptentive-android
apptentive/src/testCommon/java/com/apptentive/android/sdk/network/MockHttpURLConnection.java
Java
bsd-3-clause
4,005
package ciir.jfoley.chai.collections.util; import ciir.jfoley.chai.lang.Module; import gnu.trove.set.hash.TIntHashSet; import java.util.*; import java.util.concurrent.atomic.AtomicInteger; /** * @author jfoley. */ public class SetFns extends Module { public static <T> Set<T> intersection(List<? extends Collectio...
jjfiv/chai
src/main/java/ciir/jfoley/chai/collections/util/SetFns.java
Java
bsd-3-clause
2,479
package bio.terra.cloudres.google.iam; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; @Tag("unit") public class ServiceAccountNameTest { @Test public void name() { S...
DataBiosphere/terra-cloud-resource-lib
google-iam/src/test/java/bio/terra/cloudres/google/iam/ServiceAccountNameTest.java
Java
bsd-3-clause
982
/*L * Copyright Washington University in St. Louis * Copyright SemanticBits * Copyright Persistent Systems * Copyright Krishagni * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/catissue-security-manager/LICENSE.txt for details. */ package edu.wustl.secu...
NCIP/catissue-security-manager
software/SecurityManager/src/test/java/edu/wustl/securityManager/dbunit/test/TestSecurityManager.java
Java
bsd-3-clause
18,371
package vg.civcraft.mc.civmodcore.command; import org.bukkit.command.CommandSender; import java.util.List; public interface Command { boolean execute(CommandSender sender, String[] args); List<String> tabComplete(CommandSender sender, String[] args); String getName(); String getDescription(); String getUsa...
Civcraft/CivModCore
src/main/java/vg/civcraft/mc/civmodcore/command/Command.java
Java
bsd-3-clause
570
/* * [New BSD License] * Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org> * 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 reta...
x-clone/brackit.brackitdb
brackitdb-server/src/test/java/org/brackit/server/node/el/ElementlessRecordAccessTest.java
Java
bsd-3-clause
2,659
/* Copyright (c) 2013, Groupon, Inc. 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 of conditions and the following disc...
groupon/nakala
src/main/java/com/groupon/nakala/analysis/Analysis.java
Java
bsd-3-clause
1,729
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/longrunning/operations.proto package com.google.longrunning; /** * <pre> * The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations]. * </pre> * * Protobuf type {@code google.longrunning.ListOper...
googleapis/api-client-staging
generated/java/proto-google-common-protos/src/main/java/com/google/longrunning/ListOperationsRequest.java
Java
bsd-3-clause
26,248
/* Copyright (c) 2013, Groupon, Inc. 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 of conditions and the following disc...
groupon/nakala
src/main/java/com/groupon/util/URLUtils.java
Java
bsd-3-clause
1,935
/******************************************************************************* * Copyright Duke Comprehensive Cancer Center and SemanticBits * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/c3pr/LICENSE.txt for details. ***************************************************...
NCIP/c3pr
codebase/projects/ws-client/src/edu/duke/cabig/c3pr/webservice/iso21090/BAGCD.java
Java
bsd-3-clause
2,098
/* * Copyright (c) 2014 Liang Li <ll@lianglee.org>. All rights reserved. * * This program is a free software and released under the BSD license. * https://github.com/lang010/acit * * Solutions for UVa Problem 10018 * UVa link: http://uva.onlinejudge.org/external/100/10018.html * * @Authur Liang Li <ll@li...
lang010/acit
uva/10018/Main.java
Java
bsd-3-clause
1,376
package com.ap.io.text; import com.ap.io.FilePosition; public interface LineIterator { void beforeFirst(); void afterLast(); String next(); String previous(); /** * Returns an object that represents the last retrieved element, by using * {@link next} or {@link previous}. * <p> * Retu...
jeanlazarou/store
src/com/ap/io/text/LineIterator.java
Java
bsd-3-clause
1,051
/* * Copyright (C) 2012-2013 TopCoder Inc., All Rights Reserved. */ package gov.nasa.pds.processors.impl; import gov.nasa.pds.entities.Column; import gov.nasa.pds.entities.MetadataObject; import gov.nasa.pds.entities.Product; import gov.nasa.pds.entities.Property; import gov.nasa.pds.entities.Table; import gov.nasa....
Small-Bodies-Node/ntl_archive_db_demo
import_and_persistence/src/java/main/gov/nasa/pds/processors/impl/Helper.java
Java
bsd-3-clause
22,957
package synergynet3.additionalitems.interfaces; import java.util.logging.Logger; import synergynet3.additionalitems.RadialMenuOption; import com.jme3.math.ColorRGBA; import multiplicity3.csys.items.item.IItem; import multiplicity3.csys.stage.IStage; public interface IRadialMenu extends IItem { public void setRoo...
synergynet/synergynet3
synergynet3-parent/synergynet3-appsystem-core/src/main/java/synergynet3/additionalitems/interfaces/IRadialMenu.java
Java
bsd-3-clause
607
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; /** * * @author Administrator */ public class SetSetPointWithTrigger extends CommandBase { public SetSetPointWithTrigger() { requires(cannon); } ...
FIRSTTeam102/2012-bball-robot
src/edu/wpi/first/wpilibj/templates/commands/SetSetPointWithTrigger.java
Java
bsd-3-clause
964
/*L * Copyright Georgetown University, Washington University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cab2b/LICENSE.txt for details. */ package edu.common.dynamicextensions.domain; import edu.common.dynamicextensions.domaininterface.ObjectTypeInformation...
NCIP/cab2b
software/dependencies/dynamicextensions/caB2B_2009_JUN_02/src/edu/common/dynamicextensions/domain/ObjectAttributeTypeInformation.java
Java
bsd-3-clause
1,051
package org.jbehave.core.embedder; import static java.util.Arrays.asList; import static java.util.Collections.emptyList; import static java.util.Collections.singletonList; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.is; import static org.mockito.ArgumentMatchers.any; import...
valfirst/jbehave-core
jbehave-core/src/test/java/org/jbehave/core/embedder/PerformableTreeConversionBehaviour.java
Java
bsd-3-clause
7,825
package cafe.analysis; public class Autocorrelation { private static double[] x,r; public static double[] get_fr() { return x; } public static double[] get_fi() { return r; } public static void acorr(double[] _x, double[] _r, int l, int np) { double d; int k,i; x = java.util.Arrays.copyOf(_x,...
piciuoka/cafe
Cafe/src/cafe/analysis/Autocorrelation.java
Java
bsd-3-clause
507
/****************************************************************************** * Copyright (c) 2012-2015, Vladimir Kravets * * All rights reserved. * * * ...
vkravets/Fido4Java
binkp/binkp-common/src/main/java/org/fidonet/binkp/common/commands/CramOPTCommand.java
Java
bsd-3-clause
3,368
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. package jodd.db.oom.tst; import jodd.db.oom.meta.DbColumn; import jodd.db.oom.meta.DbId; public class BadGirlBase { @DbColumn("SPECIALITY") public String foospeciality; @DbId("ID") public Integer fooid; }
wsldl123292/jodd
jodd-db/src/test/java/jodd/db/oom/tst/BadGirlBase.java
Java
bsd-3-clause
289
/* * Copyright (c) 2004-2021, University of Oslo * 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 o...
dhis2/dhis2-android-sdk
core/src/main/java/org/hisp/dhis/android/core/trackedentity/TrackedEntityInstanceEventFilter.java
Java
bsd-3-clause
4,204
/* * [New BSD License] * Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org> * 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 reta...
x-clone/brackit.brackitdb
brackitdb-server/src/main/java/org/brackit/server/util/IntList.java
Java
bsd-3-clause
3,717
package ilearnrw.utils; /* * Copyright (c) 2015, iLearnRW. Licensed under Modified BSD Licence. See licence.txt for details. */ public enum LanguageCode { EN, GR; public static byte getEnglishCode(){ return 1; } public static byte getGreekCode(){ return 0; } public static LanguageCode fromString(String la...
mpakarlsson/ilearnrw
src/ilearnrw/utils/LanguageCode.java
Java
bsd-3-clause
724
package org.liquidengine.legui.component.misc.animation.selectbox; import org.joml.Vector2f; import org.liquidengine.legui.animation.Animation; import org.liquidengine.legui.component.SelectBox; import org.liquidengine.legui.component.SelectBox.SelectBoxScrollablePanel; import java.lang.ref.WeakReference; /** * @au...
LiquidEngine/legui
src/main/java/org/liquidengine/legui/component/misc/animation/selectbox/SelectBoxAnimation.java
Java
bsd-3-clause
2,919
package it.unitn.ing.wizard.LCLS2Wizard; import java.util.Vector; public class Cspad { public String name; public boolean enabled = true; public boolean available = false; public Vector<SensorImage> detectors; public Cspad() { detectors = new Vector<SensorImage>(0, 1); } }
luttero/Maud
src/it/unitn/ing/wizard/LCLS2Wizard/Cspad.java
Java
bsd-3-clause
287
// vim:filetype=java:ts=4 /* Copyright (c) 2004-2007 Conor McDermottroe. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notic...
conormcd/exemplar
src/com/mcdermottroe/exemplar/model/XMLDocumentTypeException.java
Java
bsd-3-clause
3,206
/** * Copyright (c) 2011, salesforce.com, inc. * 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 of con...
anandbn/tosho
src/main/java/canvas/SignedRequest.java
Java
bsd-3-clause
6,472
/* * Copyright (c) 2009-2010, Sergey Karakovskiy and Julian Togelius * 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 *...
kavanj/marioai
src/ch/idsia/unittests/LevelGeneratorTest.java
Java
bsd-3-clause
9,162
package com.groupon.novie.internal.engine; /** * This class represent an order/sort constraint. Dimension and information name are stored in upperCase * @author thomas * @since 10/01/2014. */ public class QuerySortConstraint { private OrderByDirection orderByDirection; private String dimensionName; p...
groupon/Novie
novie-core/src/main/java/com/groupon/novie/internal/engine/QuerySortConstraint.java
Java
bsd-3-clause
1,075
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. package jodd.bean; import jodd.util.StringTemplateParser; /** * Bean template is a string template with JSP-alike * macros for injecting context values. * This is a parser for such bean templates. * <p> * Once set, <code>BeanTe...
wsldl123292/jodd
jodd-bean/src/main/java/jodd/bean/BeanTemplateParser.java
Java
bsd-3-clause
1,170
/*================================================================================ Copyright (c) 2009 VMware, Inc. 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 ...
mikem2005/vijava
src/com/vmware/vim25/AlreadyExists.java
Java
bsd-3-clause
1,905
/* $This file is distributed under the terms of the license in /doc/license.txt$ */ package edu.cornell.mannlib.vitro.webapp.searchengine.elasticsearch; import static edu.cornell.mannlib.vitro.webapp.searchengine.elasticsearch.JsonTree.EMPTY_JSON_MAP; import static edu.cornell.mannlib.vitro.webapp.searchengine.elasti...
vivo-project/Vitro
api/src/main/java/edu/cornell/mannlib/vitro/webapp/searchengine/elasticsearch/QueryConverter.java
Java
bsd-3-clause
6,254
/** * Copyright 2011 Ryszard Wiśniewski <brut.alll@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 req...
Sukelluskello/VectorAttackScanner
Android/DependenciesVectorAttackScanner/src/brut/androlib/mod/SmaliMod.java
Java
bsd-3-clause
2,344
package org.basex.server; /** * This class defines the available command-line commands. * * @author BaseX Team 2005-22, BSD License * @author Christian Gruen */ public enum ServerCmd { /** Code for creating a query process: {query}0. */ QUERY(0), /** Code for iterating results (obsolete). */ NEXT(1), /*...
BaseXdb/basex
basex-core/src/main/java/org/basex/server/ServerCmd.java
Java
bsd-3-clause
1,916
package io.compgen.sjq.server; import io.compgen.common.MonitoredThread; import io.compgen.common.StringUtils; import io.compgen.common.TallyValues; import java.io.File; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Date; impo...
compgen-io/sjq
src/java/io/compgen/sjq/server/ThreadedJobQueue.java
Java
bsd-3-clause
10,125
/** * MOTECH PLATFORM OPENSOURCE LICENSE AGREEMENT * * Copyright (c) 2010-11 The Trustees of Columbia University in the City of * New York and Grameen Foundation USA. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
motech/MOTECH-Mobile
motech-mobile-core/src/main/java/org/motechproject/mobile/core/model/GatewayRequestImpl.java
Java
bsd-3-clause
11,499
package edu.utk.phys.fern; // ---------------------------------------------------------------------------------------------------------- // Example class for testing creation of a modally blocking dialog window. // Test by executing java MakeMyDialog. // -----------------------------------------------------------...
jayjaybillings/fern
src/edu.utk.phys.fern/edu/utk/phys/fern/MakeMyDialog.java
Java
bsd-3-clause
7,493
package jahmm.jadetree; /** * * @author kommusoft * @param <TSource> */ public interface DecisionLeaf<TSource> extends DecisionRealNode<TSource> { public void expandThis(); }
KommuSoft/jahmm
jahmm/src/jahmm/jadetree/DecisionLeaf.java
Java
bsd-3-clause
186
package gov.samhsa.acs.pep.sts; import java.io.IOException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.CallbackHandler; import javax.security.auth.callback.UnsupportedCallbackException; import org.apache.wss4j.common.ext.WSPasswordCallback; public class PasswordCallbackHandler...
OBHITA/Consent2Share
DS4P/access-control-service/pep-sts-war/src/main/java/gov/samhsa/acs/pep/sts/PasswordCallbackHandler.java
Java
bsd-3-clause
1,032
package net.jr.jrc.utils; import java.io.*; import java.nio.channels.FileChannel; public final class IOUtils { private static final int DEFAULT_BUF_SIZE = 4096; public static InputStream readResource(String path) { return IOUtils.class.getClassLoader().getResourceAsStream(path); } public static InputS...
jrialland/jrc
src/main/java/net/jr/jrc/utils/IOUtils.java
Java
bsd-3-clause
1,929
/* * Carrot2 project. * * Copyright (C) 2002-2010, Dawid Weiss, Stanisław Osiński. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the repository checkout or at: * http://www.carrot2.org/carrot2.LICENSE */ package org.carrot2.util.attribute; import java.la...
arnaudsj/carrot2
core/carrot2-util-attribute/src-test/org/carrot2/util/attribute/TestProcessing.java
Java
bsd-3-clause
490
/** * Copyright (c) 2013, Sony Mobile Communications Inc * 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 * notic...
sonyxperiadev/logdog
logdog/src/logdog/logdog.java
Java
bsd-3-clause
4,250
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/vision/v1p2beta1/geometry.proto package com.google.cloud.vision.v1p2beta1; /** * <pre> * A 3D position in the image, used primarily for Face detection landmarks. * A valid Position must have both x and y coordinates. * The positio...
pongad/api-client-staging
generated/java/proto-google-cloud-vision-v1p2beta1/src/main/java/com/google/cloud/vision/v1p2beta1/Position.java
Java
bsd-3-clause
18,966
package kr.ac.kaist.jsaf.nodes; import java.lang.Double; import java.lang.String; import java.math.BigInteger; import java.io.Writer; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.ArrayList; import java.util.LinkedList; import kr.ac.kaist.jsaf.nodes_util.*; import kr.ac.ka...
darkrsw/safe
src/main/java/kr/ac/kaist/jsaf/nodes/Expr.java
Java
bsd-3-clause
1,092
/* * Copyright (c) 2017, Apptentive, Inc. All Rights Reserved. * Please refer to the LICENSE file for the terms and conditions * under which redistribution and use of this file is permitted. */ package com.apptentive.android.sdk.storage; import java.io.Serializable; public interface Saveable extends Serializabl...
apptentive/apptentive-android
apptentive/src/main/java/com/apptentive/android/sdk/storage/Saveable.java
Java
bsd-3-clause
413
package gov.nih.nci.cagrid.syncgts.service.globus.resource; public class MetadataConfiguration { private String registrationTemplateFile; private boolean performRegistration; public boolean shouldPerformRegistration() { return performRegistration; } public void setPerformRegistration(boolean performRegistr...
NCIP/cagrid
cagrid/Software/core/caGrid/projects/syncgts/src/gov/nih/nci/cagrid/syncgts/service/globus/resource/MetadataConfiguration.java
Java
bsd-3-clause
615
package de.bwaldvogel.mongo.backend.postgresql; import static de.bwaldvogel.mongo.backend.TestUtils.json; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import java.util.Arrays; import java.util.Collections; import java.util.UUID; import org.bson.Document; import org.junit.jupiter.api.After...
bwaldvogel/mongo-java-server
postgresql-backend/src/test/java/de/bwaldvogel/mongo/backend/postgresql/PostgresqlBackendTest.java
Java
bsd-3-clause
9,876
/** * Copyright (C) 2004-2016, GoodData(R) Corporation. All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE.txt file in the root directory of this source tree. */ package com.gooddata.gdc; import static com.gooddata.util.Validate.notNull; import com.github.sardin...
liry/gooddata-java
src/main/java/com/gooddata/gdc/GdcSardine.java
Java
bsd-3-clause
1,163
/* * Copyright (c) 2016, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
xizi-xu/Argus
ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/DefaultAlertService.java
Java
bsd-3-clause
42,930
/* * @lc app=leetcode id=785 lang=java * * [785] Is Graph Bipartite? * * https://leetcode.com/problems/is-graph-bipartite/description/ * * algorithms * Medium (48.05%) * Total Accepted: 150.2K * Total Submissions: 312.6K * Testcase Example: '[[1,3],[0,2],[1,3],[0,2]]' * * Given an undirected graph, ret...
lang010/acit
leetcode/785.is-graph-bipartite.315117831.ac.java
Java
bsd-3-clause
2,715
/*Copyright (c) 2011, Mathieu Bordas All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1- Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
mbordas/qualify
src/main/java/qualify/doc/DocImage.java
Java
bsd-3-clause
1,767
package apollo.gui.genomemap; import java.awt.Graphics; import java.util.Vector; import apollo.gui.Selection; import apollo.gui.TierManagerI; import apollo.gui.Transformer; public interface FeatureTierManagerI extends TierManagerI { public void synchDrawablesWithTiers(); public String getTierLabel(int tier_num...
genome-vendor/apollo
src/java/apollo/gui/genomemap/FeatureTierManagerI.java
Java
bsd-3-clause
893
package org.pocketcampus.platform.android.ui.labeler; import java.util.Date; /** * Interface to the methods provided by a <code>RichLabeler</code>. A * <code>RichLabeler</code> should have a title, a description, a value and a * <code>Date</code>. * * Defines where the information about an object that is to be ...
ValentinMinder/pocketcampus
platform/android/src/main/java/org/pocketcampus/platform/android/ui/labeler/IRichLabeler.java
Java
bsd-3-clause
1,608
/*================================================================================ Copyright (c) 2012 Steve Jin. 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 re...
xebialabs/vijava
src/com/vmware/vim25/DistributedVirtualSwitchInfo.java
Java
bsd-3-clause
2,520
package org.hisp.dhis.datamart; /* * Copyright (c) 2004-2015, University of Oslo * 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 copyr...
kakada/dhis2
dhis-services/dhis-service-datamart-default/src/main/java/org/hisp/dhis/datamart/DataMartScheduler.java
Java
bsd-3-clause
2,112
package name.falgout.jeffrey.throwing; import java.util.function.Consumer; import java.util.function.DoubleToIntFunction; import java.util.function.Function; import javax.annotation.Nullable; @FunctionalInterface public interface ThrowingDoubleToIntFunction<X extends Throwable> { public int applyAsInt(double value...
JeffreyFalgout/ThrowingStream
throwing-interfaces/src/main/java/name/falgout/jeffrey/throwing/ThrowingDoubleToIntFunction.java
Java
bsd-3-clause
1,457
package com.hunterdavis.easyreptilewhistle; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import com.google.ads.AdRequest; import com.google.ads.Ad...
huntergdavis/Easy_Reptile_Whistle
src/com/hunterdavis/easyreptilewhistle/EasyReptileWhistle.java
Java
bsd-3-clause
3,184
package net.minidev.ovh.api.price.dedicatedcloud._2014v1.rbx2a.enterprise.filer; import com.fasterxml.jackson.annotation.JsonProperty; /** * Enum of Hourlys */ public enum OvhHourlyEnum { @JsonProperty("iscsi-1200-GB") iscsi_1200_GB("iscsi-1200-GB"), @JsonProperty("iscsi-13200g-GB") iscsi_13200g_GB("iscsi-13200...
UrielCh/ovh-java-sdk
ovh-java-sdk-price/src/main/java/net/minidev/ovh/api/price/dedicatedcloud/_2014v1/rbx2a/enterprise/filer/OvhHourlyEnum.java
Java
bsd-3-clause
1,115
/* 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...
iotsap/FiWare-Template-Handler
ExecutionEnvironment/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/ReceiveTaskActivityBehavior.java
Java
bsd-3-clause
1,368
package net.viperfish.bookManager.core; public abstract class TransactionWithResult<T> implements Transaction { private boolean isDone; private T result; protected void setResult(T result) { this.result = result; isDone = true; } /** * check whether this has finished executing * * @return is complet...
shilongdai/bookManager
src/main/java/net/viperfish/bookManager/core/TransactionWithResult.java
Java
bsd-3-clause
719
/* * Copyright (c) OSGi Alliance (2002, 2013). 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 req...
knopflerfish/knopflerfish.org
osgi/bundles/wireadmin/src/org/osgi/service/wireadmin/WireAdmin.java
Java
bsd-3-clause
6,863
package ameba.event; import ameba.core.AddOn; import ameba.core.Application; import ameba.lib.Akka; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author icode */ public class EventTest { private static final Logger logger = LoggerFactory.getLogger(EventTest.class); ...
wangscript/ameba
src/test/java/ameba/event/EventTest.java
Java
mit
4,682
package com.itl_energy.webcore; import java.util.Date; import javax.ejb.EJB; import javax.ejb.Stateless; import javax.ws.rs.core.MultivaluedMap; import javax.ws.rs.core.UriInfo; import com.itl_energy.model.User; import com.itl_energy.repo.UserCollection; /** * Provides a means of authenticating users. * * @author...
itlenergy/server-api
itlenergy-web/src/main/java/com/itl_energy/webcore/AuthenticationService.java
Java
mit
4,476
package com.microsoft.bingads.v10.campaignmanagement; 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.XmlType; /** * <p>Java class for A...
JeffRisberg/BING01
proxies/com/microsoft/bingads/v10/campaignmanagement/ArrayOfMediaRepresentation.java
Java
mit
2,153
package com.plugin.core; import java.io.File; import java.lang.reflect.Method; import com.plugin.content.PluginDescriptor; import com.plugin.util.LogUtil; import com.plugin.util.RefInvoker; import android.app.Application; import android.content.Context; import android.content.res.AssetManager; import android.content...
AronXue/Android-Plugin-Framework
PluginCore/src/com/plugin/core/PluginCreator.java
Java
mit
5,200
package fi.csc.microarray.messaging.message; import java.awt.Color; import java.util.LinkedList; import java.util.List; import javax.jms.JMSException; import javax.jms.MapMessage; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeLi...
chipster/chipster
src/main/java/fi/csc/microarray/messaging/message/ModuleDescriptionMessage.java
Java
mit
5,804
/** * The MIT License * Copyright (c) 2015 Estonian Information System Authority (RIA), Population Register Centre (VRK) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restri...
ria-ee/X-Road
src/common-verifier/src/test/java/ee/ria/xroad/common/conf/globalconfextension/OcspFetchIntervalSchemaValidatorTest.java
Java
mit
2,959
package android.support.annotation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.SOURCE; @Retention(SOURCE) @Target({METHOD, PARAMETER, FIELD, LOCAL_VARIABLE, ANNOTATION_TYPE}) public @i...
LachlanMcKee/gsonpath
sample/src/main/java/android/support/annotation/IntRange.java
Java
mit
517
public class SimpleOrderSystem { public static void main(String[] args) { Input in = new Input(); // The model is responsible for managing the data structure and the operations on it. SimpleOrderSystemModel model = new DataManager(); initialiseExampleData(model); // Create objects to ...
martrik/COMP101
Term2/OOP/Lab3/SimpleOrderSystem/src/SimpleOrderSystem.java
Java
mit
1,774
/* * 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 Control; import Modelo.AdmonSalones; import Vista.InOut; /** * * @author Yair */ public class Ejecutar { publ...
Hades1996/Proyectos-U
NetBeansProjects/Parcial/src/Control/Ejecutar.java
Java
mit
1,053
package com.uphold.uphold_android_sdk.test.integration.service; import com.darylteo.rx.promises.java.Promise; import com.darylteo.rx.promises.java.functions.RepromiseFunction; import junit.framework.Assert; import com.uphold.uphold_android_sdk.client.restadapter.UpholdRestAdapter; import com.uphold.uphold_android_sd...
uphold/uphold-sdk-android
src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/service/ReserveServiceTest.java
Java
mit
5,024
/** */ package gluemodel.CIM.IEC61968.Metering.impl; import gluemodel.CIM.IEC61968.Common.DateTimeInterval; import gluemodel.CIM.IEC61968.Customers.CustomerAgreement; import gluemodel.CIM.IEC61968.Customers.CustomersPackage; import gluemodel.CIM.IEC61968.Metering.DemandResponseProgram; import gluemodel.CIM.IEC61968...
georghinkel/ttc2017smartGrids
solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61968/Metering/impl/EndDeviceControlImpl.java
Java
mit
26,820
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.network.implementation; import com.microsoft.azu...
martinsawicki/azure-sdk-for-java
azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/RouteFiltersInner.java
Java
mit
69,813
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.storage.blob.models; import com.azure.core.http.rest.ResponseBase; /** * This class contains the response information return from the server when querying a blob. */ public final class BlobQueryRespons...
selvasingh/azure-sdk-for-java
sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/models/BlobQueryResponse.java
Java
mit
710
/** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999. * * This program is free software; you can redistribute it and/or modify * it under the terms of the latest version of the GNU Lesser General * Public License as published by the Free Software Foundation; * * This progr...
opendatakraken/openbiwiki
openbiwiki-core/src/main/java/org/jamwiki/utils/Utilities.java
Java
mit
17,621
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal; import static org.mockito.Matchers.*; import static org.mockito.Mockito.*; import org.junit.After; import org.junit.Test; import org.mockito.Mock; import org.mockito.S...
CyanogenMod/android_external_mockito
test/org/mockito/internal/InvalidStateDetectionTest.java
Java
mit
9,109
/* * The MIT License (MIT) * * Copyright (c) 2014 abel533@gmail.com * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
icoding/Mapper
src/main/java/tk/mybatis/mapper/common/rowbounds/SelectRowBoundsMapper.java
Java
mit
1,772
package crafttweaker.mc1120.formatting; import crafttweaker.api.formatting.IFormattedText; import net.minecraft.util.text.TextFormatting; /** * @author Stan */ public class FormattedMarkupString implements IMCFormattedString { private final TextFormatting markup; private final IMCFormattedString contents; ...
AllTheMods/CraftTweaker
CraftTweaker2-MC1120-Main/src/main/java/crafttweaker/mc1120/formatting/FormattedMarkupString.java
Java
mit
1,094
/******************************************************************************* * SAT4J: a SATisfiability library for Java Copyright (C) 2004, 2012 Artois University and CNRS * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0...
SCPTeam/Safe-Component-Provider
Sat4jCore/src/org/sat4j/tools/encoding/Ladder.java
Java
mit
7,433
// (c) Copyright 2016 Hewlett Packard Enterprise Development LP // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,...
hpsa/hp-application-automation-tools-plugin
src/main/java/com/hp/application/automation/tools/model/SvDataModelSelection.java
Java
mit
4,092
package example; import java.util.Collection; public interface SpikeMessageRepository { void add(SpikeMessage message); Collection<SpikeMessage> list(); }
tomcz/zookeeper-example
src/main/java/example/SpikeMessageRepository.java
Java
mit
167
package org.jabref.logic.externalfiles; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Path; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.OpenDatabase; import org.jabref.logic.importer.ParserResult; import org.jabref.logic.impor...
sauliusg/jabref
src/main/java/org/jabref/logic/externalfiles/ExternalFilesContentImporter.java
Java
mit
1,554
package com.alorma.github.sdk.services.orgs; import com.alorma.github.sdk.services.client.GithubListClient; import com.alorma.gitskarios.core.client.UsernameProvider; import core.User; import java.util.List; import retrofit.RestAdapter; public class GetOrgsClient extends GithubListClient<List<User>> { private Strin...
epiphany27/Gitskarios
app/src/main/java/com/alorma/github/sdk/services/orgs/GetOrgsClient.java
Java
mit
1,469
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: Sample.java 63573 2008-05-23 21:43:21Z trent.nelson $ */ package collections.ship.index; import java.io.FileNotFoundException; import java.util.Iterator; import java.util.Map; import co...
mollstam/UnrealPy
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/db-4.7.25.0/examples_java/src/collections/ship/index/Sample.java
Java
mit
9,635
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.graphrbac; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apig...
jianghaolu/azure-sdk-for-java
azure-mgmt-graph-rbac/src/main/java/com/microsoft/azure/management/graphrbac/ActiveDirectoryGroup.java
Java
mit
1,262
package com.vsked.auth.repository; import com.vsked.auth.model.Authority; import org.springframework.data.jpa.repository.JpaRepository; /** * Spring Data JPA repository for the {@link Authority} entity. */ public interface AuthorityRepository extends JpaRepository<Authority, String> { }
brucevsked/vskeddemolist
vskeddemos/mavenproject/springboot2list/springsecurity/3springsecurity/src/main/java/com/vsked/auth/repository/AuthorityRepository.java
Java
mit
293
package nucleus.example.main; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.test.ActivityInstrumentationTestCase2; import android.test.UiThreadTest; import nucleus.example.TestActivity; import nucleus.factory.PresenterFactory; import nucleus.presenter.Presenter;...
hejunbinlan/nucleus
nucleus-example-with-fragments/src/androidTest/java/nucleus/example/main/FragmentStackTest.java
Java
mit
4,143
//////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction Mechanism Generator // // Copyright (c) 2002-2011 Prof. William H. Green (whgreen@mit.edu) and the // RMG Team (rmg_dev@mit.edu) // // Permission is hereby granted, free of charge, to any person obtaining a // ...
faribas/RMG-Java
source/RMG/jing/chem/ReplaceThermoGAValueException.java
Java
mit
2,202
/** * Problem: Find the length of shortest transformation sequence * * Solution: BFS--for words in each level, try each possible letter a-z on each position of the word; * Use queue to store words in a level and use a hashset to mark visited words. */ import java.util.*; public class WordLadder{ public...
wanghaohappy1/coding_problems
leetcode/medium/WordLadder.java
Java
mit
1,427
package com.microsoft.bingads.reporting; /** * This exception is thrown when trying to download the result file for an operation that hasn't completed yet. */ public class ReportingOperationInProgressException extends RuntimeException { private static final long serialVersionUID = 1L; }
JeffRisberg/BING01
src/main/java/com/microsoft/bingads/reporting/ReportingOperationInProgressException.java
Java
mit
291
package April2021PrepLeetcode; public class _0198HouseRobber { public static void main(String[] args) { System.out.println(rob(new int[] { 1, 2, 3, 1 })); System.out.println(rob(new int[] { 2, 7, 9, 3, 1 })); System.out.println(rob(new int[] { 1, 2 })); System.out.println(rob(new int[] { 1 })); } public s...
darshanhs90/Java-Coding
src/April2021PrepLeetcode/_0198HouseRobber.java
Java
mit
355
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.customerinsights.implementation; import retrofit...
martinsawicki/azure-sdk-for-java
azure-mgmt-customerinsights/src/main/java/com/microsoft/azure/management/customerinsights/implementation/AuthorizationPoliciesInner.java
Java
mit
43,999
/** * The MIT License * * Copyright (c) 2019, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, includi...
benas/jPopulator
easy-random-core/src/main/java/org/jeasy/random/randomizers/time/DayRandomizer.java
Java
mit
2,191
/* * Copyright 2011 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...
HenryHarper/Acquire-Reboot
gradle/src/tooling-api/org/gradle/tooling/internal/consumer/loader/DefaultToolingImplementationLoader.java
Java
mit
6,676
package org.hmhb.csv; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.List; import org.hmhb.program.Program; import org.hmhb.user.HmhbUser; /** * A service to generate CSV from our data. */ public interface CsvService { /** * Generates the contents for a CSV from the ...
RyanBard/healthbam
src/main/java/org/hmhb/csv/CsvService.java
Java
mit
1,263
/* * Encog(tm) Core v3.2 - Java Version * http://www.heatonresearch.com/encog/ * https://github.com/encog/encog-java-core * Copyright 2008-2013 Heaton Research, 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 ...
ladygagapowerbot/bachelor-thesis-implementation
lib/Encog/src/main/java/org/encog/ml/prg/extension/FunctionFactory.java
Java
mit
9,864