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 com.cookpad.puree.async;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
@RunWith(AndroidJUnit4.class)
public class AsyncResultTest {
@Test
public void get() t... | KeithYokoma/Puree | puree/src/androidTest/java/com/cookpad/puree/async/AsyncResultTest.java | Java | mit | 685 |
package br.com.cwidevs.config;
import org.springframework.boot.SpringApplication;
import org.springframework.core.env.Environment;
import java.util.*;
/**
* Utility class to load a Spring profile to be used as default
* when there is no <code>spring.profiles.active</code> set in the environment or as command line ... | murillocg/goleador | src/main/java/br/com/cwidevs/config/DefaultProfileUtil.java | Java | mit | 1,227 |
//platform !eclipse: Requires a 'full' eclipse with intialized workspace, and we don't (yet) have that set up properly in the test run.
//skip compare content
import lombok.experimental.Delegate;
import lombok.Getter;
class DelegateOnStatic {
@Delegate private static final java.lang.Runnable staticField = null;
}
cl... | rzwitserloot/lombok | test/transform/resource/before/DelegateOnStatic.java | Java | mit | 438 |
package org.robolectric.shadows;
import android.content.ClipboardManager;
import android.content.Context;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.Robolectric;
import org.robolectric.TestRunners;
import static org.fest.assertions.api.Assertions.assertThat... | ecgreb/robolectric | src/test/java/org/robolectric/shadows/ClipboardManagerTest.java | Java | mit | 1,509 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | lukegb/SpongeCommon | src/main/java/org/spongepowered/common/mixin/core/entity/explosive/MixinEntityTNTPrimed.java | Java | mit | 3,262 |
//
//Copyright (C) 2005 United States Government as represented by the
//Administrator of the National Aeronautics and Space Administration
//(NASA). All Rights Reserved.
//
//This software is distributed under the NASA Open Source Agreement
//(NOSA), version 1.3. The NOSA has been approved by the Open Source
//Initi... | kaituo/sedge | trunk/src-kaituo/gov/nasa/jpf/symbc/numeric/MathRealExpression.java | Java | mit | 5,227 |
/**
*/
package gluemodel.CIM.IEC61970.LoadModel;
import gluemodel.CIM.IEC61970.Core.RegularIntervalSchedule;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Season Day Type Schedule</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
... | georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/LoadModel/SeasonDayTypeSchedule.java | Java | mit | 4,311 |
package org.jabref.logic.integrity;
import java.util.Optional;
import org.jabref.model.database.BibDatabaseContext;
import org.jabref.model.database.BibDatabaseMode;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class... | zellerdev/jabref | src/test/java/org/jabref/logic/integrity/PersonNamesCheckerTest.java | Java | mit | 2,136 |
package com.opencredo.concursus.demos.game.engine;
import com.opencredo.concursus.demos.game.domain.*;
import java.util.Optional;
@FunctionalInterface
public interface Engine {
default Deal deal() {
return Deal.from(Card.values());
}
TurnLog applyTurn(PlayerIndex playerIndex, BoardState boardSt... | opencredo/concourse | concursus-game-demo/src/main/java/com/opencredo/concursus/demos/game/engine/Engine.java | Java | mit | 371 |
package com.microsoft.bingads.campaignmanagement;
import java.util.Collection;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import... | JeffRisberg/BING01 | proxies/com/microsoft/bingads/campaignmanagement/AdGroup.java | Java | mit | 13,541 |
package cn.edu.gdut.zaoying.Option.series.candlestick;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface CoordinateSystemString... | zaoying/EChartsAnnotation | src/cn/edu/gdut/zaoying/Option/series/candlestick/CoordinateSystemString.java | Java | mit | 355 |
package com.sinch.messagingtutorialskeleton;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.example.messagingtutorialskeleton.R;
import com.parse.LogInCallback;
import com.parse.ParseException;
import com.parse.ParseUser;
import com.parse.SignUpCallback;
import andro... | ferdowssaeed/Android_IM_App | MessagingTutorialSkeleton/src/main/java/com/sinch/messagingtutorialskeleton/LoginActivity.java | Java | mit | 3,572 |
/**
* 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.batch.interceptor;
import com.microsoft.azure.batch.BatchClientBehavior;
/**
* Stores options that configure the operati... | pomortaz/azure-sdk-for-java | azure-batch/src/main/java/com/microsoft/azure/batch/interceptor/BatchClientParallelOptions.java | Java | mit | 1,946 |
/**
* 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.v2019_02_01;
import java.util.Collection... | navalev/azure-sdk-for-java | sdk/network/mgmt-v2019_02_01/src/main/java/com/microsoft/azure/management/network/v2019_02_01/IpsecEncryption.java | Java | mit | 2,164 |
/*
* 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 ... | tbepler/seq-svm | src/org/apache/commons/math3/stat/interval/IntervalUtils.java | Java | mit | 8,817 |
package util.timeline;
import form.events.IEvent;
import form.time.Time;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Iterator;
import java.util.Spliterator;
import java.util.TreeMap;
import java.util.stream.Stream;
/**
* <p> <b>Interface Overview:</b>
* The... | MusicExMachina/MxM | mxm-core/src/main/java/util/timeline/SerialTimeline.java | Java | mit | 2,762 |
package barcode.cloud.aspose.com.barcodeexample.generatingSaving.cloudStorage;
import java.io.File;
import java.io.InputStream;
import com.aspose.barcode.api.BarcodeApi;
import com.aspose.barcode.model.SaaSposeResponse;
import com.aspose.storage.api.StorageApi;
import barcode.cloud.aspose.com.barcodeexample... | asposebarcode/Aspose_BarCode_Cloud | Examples/Android/app/src/main/java/barcode/cloud/aspose/com/barcodeexample/generatingSaving/cloudStorage/SpecifyCodetextAndSymbologyForBarcode.java | Java | mit | 3,474 |
/**
* 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.sql.v2018_06_01_preview.implementation;
import c... | selvasingh/azure-sdk-for-java | sdk/sql/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/sql/v2018_06_01_preview/implementation/SqlManager.java | Java | mit | 4,870 |
package wordcloud;
/**
* Created by kenny on 6/29/14.
*/
public class WordFrequency implements Comparable<WordFrequency> {
private final String word;
private final int frequency;
public WordFrequency(String word, int frequency) {
this.word = word;
this.frequency = frequency;
}
... | satishsaley/kumo | src/main/java/wordcloud/WordFrequency.java | Java | mit | 571 |
/**
* The MIT License (MIT)
*
* Copyright (c) 2014 VIDAL France
*
* 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... | softwarevidal/vidal-api.java | src/main/java/com/vidal/rest/sdk/converters/AtomConverter.java | Java | mit | 2,132 |
package core.adapt;
import core.adapt.iterator.PartitionIterator;
import core.adapt.opt.Optimizer;
import core.adapt.spark.SparkQueryConf;
import core.common.globals.Globals;
import core.common.globals.TableInfo;
import core.common.index.RobustTree;
import core.common.key.RawIndexKey;
import core.utils.HDFSUtils;
/**... | mitdbg/mdindex | src/main/java/core/adapt/AccessMethod.java | Java | mit | 2,834 |
package LeetcodeTemplate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class _0399EvaluateDivision {
public static void main(String[] args) {
List<List<String>> equations = new ArrayList<List<String>>();
equations.add(new ArrayList<String>(Arrays.asList("a", "b")));
equat... | darshanhs90/Java-Coding | src/LeetcodeTemplate/_0399EvaluateDivision.java | Java | mit | 2,127 |
/*
* PhoneGap is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2005-2010, Nitobi Software Inc.
* Copyright (c) 2010, IBM Corporation
*/
package com.phonegap.accelerometer;
import net.... | charlieroberts/Control | BlackBerry/Widget/framework/ext/src/com/phonegap/accelerometer/Accelerometer.java | Java | mit | 6,713 |
package com.ack.adventureandconquer.game.creature.npc.humanoid;
import com.ack.adventureandconquer.game.creature.npc.Npc;
import com.ack.adventureandconquer.game.creature.npc.animal.BrownBear;
import com.ack.adventureandconquer.game.creature.npc.animal.WarDog;
import com.ack.adventureandconquer.game.dice.D12;
import c... | saeschdivara/Adventurer-Conqueror-King-Mobile | lib/src/main/java/com/ack/adventureandconquer/game/creature/npc/humanoid/Dwarf.java | Java | mit | 3,944 |
package cs201.gui.transit;
import java.awt.Color;
import java.awt.Graphics2D;
import cs201.agents.transit.CarAgent;
import cs201.agents.transit.VehicleAgent;
import cs201.gui.ArtManager;
import cs201.gui.CityPanel;
import cs201.helper.Constants;
/**
*
* @author Brandon
*
*/
public class CarGui extends VehicleGu... | brandonsbarber/CS201-Course-Work | src/cs201/gui/transit/CarGui.java | Java | mit | 1,932 |
package moe.banana.jsonapi2;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.JsonReader;
import com.squareup.moshi.JsonWriter;
import com.squareup.moshi.Moshi;
import java.io.IOException;
import java.io.Serializable;
import static moe.banana.jsonapi2.MoshiHelper.nextNullableObject;
import static moe... | kamikat/moshi-jsonapi | core/src/main/java/moe/banana/jsonapi2/HasOne.java | Java | mit | 3,971 |
package be.ecam.ecalendar;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v4.app.NavUtils;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widge... | charlesvdv/ECAlendar | app/src/main/java/be/ecam/ecalendar/SearchActivity.java | Java | mit | 4,224 |
/*
* Copyright (c) 2015 EXILANT Technologies Private Limited (www.exilant.com)
* Copyright (c) 2016 simplity.org
*
* 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, i... | raghu-bhandi/simplity | java/org/simplity/kernel/comp/MissingComponentError.java | Java | mit | 1,717 |
package com.sourcegraph.toolchain.php.composer.schema;
import javax.annotation.Generated;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* This is a hash of package name (keys) and version (values) that will be used to mock the platform packages on this machine.
*
*/
@Generated("org.jso... | alexsaveliev/srclib-basic | toolchain-php/src/main/java/com/sourcegraph/toolchain/php/composer/schema/Platform.java | Java | mit | 482 |
package wang.gnim.netty.server.core.log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import wang.gnim.netty.server.core.log.LogbackFactory;
/**
* 只会读取logback.xml文件配置并生成相应的日志文件
*
* @author wangming
*
*/
public class Slf4jServer {
public static void main(String[] args) {
LogbackFactory.SERVER.i... | tomdev2008/NettyServer | java/src/test/server/wang/gnim/netty/server/core/log/Slf4jServer.java | Java | mit | 483 |
/**
* 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.
* abc
*/
package com.microsoft.azure.management.apimanagement.v2019_01_01.implementation;
... | selvasingh/azure-sdk-for-java | sdk/apimanagement/mgmt-v2019_01_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_01_01/implementation/DelegationSettingsImpl.java | Java | mit | 2,750 |
package com.errorpoint.externaldatabase.storage;
public class DB_TABLE {
public static final String APP_INFO_TABLE = "app_info";
public static final String APP_INFO_APP_NAME = "app_name";
public static final String APP_INFO_APP_DEV = "app_dev";
}
| pengzhao001/android-apps | ExternalDataBase/src/com/errorpoint/externaldatabase/storage/DB_TABLE.java | Java | mit | 251 |
package de.tu_dortmund.ub.util.output;
/**
* Created by cihabe on 06.05.2015.
*/
public class TransformationException extends Exception {
public TransformationException() {
}
public TransformationException(String message) {
super(message);
}
public TransformationException(String messag... | UB-Dortmund/ServiceCatalogPlus | src/main/java/de/tu_dortmund/ub/util/output/TransformationException.java | Java | mit | 381 |
/*******************************************************************************
* Copyright (c) 2015
*
* 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 withou... | andreas-eberle/settlers-remake | jsettlers.network/src/main/java/jsettlers/network/server/listeners/StartFinishedSignalListener.java | Java | mit | 2,332 |
/**
* 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 com.fast... | martinsawicki/azure-sdk-for-java | azure-mgmt-customerinsights/src/main/java/com/microsoft/azure/management/customerinsights/implementation/GetImageUploadUrlInputInner.java | Java | mit | 2,348 |
package June2021AppleLeetcode;
public class _0404SumOfLeftLeaves {
static public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode left, TreeNode right) {
this.val = val;
this.left = left;
this.right... | darshanhs90/Java-InterviewPrep | src/June2021AppleLeetcode/_0404SumOfLeftLeaves.java | Java | mit | 650 |
package io.socket.parseqs;
import io.socket.global.Global;
import java.util.HashMap;
import java.util.Map;
public class ParseQS {
private ParseQS() {}
public static String encode(Map<String, String> obj) {
StringBuilder str = new StringBuilder();
for (Map.Entry<String, String> entry : obj.... | visualarts/engine.io-client-java | src/main/java/io/socket/parseqs/ParseQS.java | Java | mit | 1,005 |
/**
* 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.cognitiveservices.language.luis.authoring.models;
import co... | navalev/azure-sdk-for-java | sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelUpdateObject.java | Java | mit | 1,577 |
package com.geth1b.coding.skills.cc150.ood.CallCenter;
/**
* @author geth1b
*/
public class Manager extends Employee {
public Manager(String name, Director director) {
level = 2;
super.name = name;
approver = director;
}
}
| geth1b/h1b-coding-interview | src/main/java/com/geth1b/coding/skills/cc150/ood/CallCenter/Manager.java | Java | mit | 245 |
/**
* 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.eventgrid.v2018_09_15_preview;
import com.micros... | selvasingh/azure-sdk-for-java | sdk/eventgrid/mgmt-v2018_09_15_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2018_09_15_preview/EventType.java | Java | mit | 1,181 |
/*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockitousage.annotation;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static... | lukasz-szewc/mockito | src/test/java/org/mockitousage/annotation/MockInjectionUsingConstructorTest.java | Java | mit | 6,848 |
package com.offbytwo.jenkins.model;
import java.util.List;
/**
* @author Karl Heinz Marbaise
*/
public class PluginManager extends BaseModel
{
private List<Plugin> plugins;
public List<Plugin> getPlugins()
{
return plugins;
}
public void setPlugins(List<Plugin> plugins) {
t... | liuz7/java-client-api | jenkins-client/src/main/java/com/offbytwo/jenkins/model/PluginManager.java | Java | mit | 1,081 |
package dta.commerce.dao;
import java.util.List;
import dta.commerce.persistance.Admin;
public interface IAdminDAO {
public abstract void addAdmin(Admin admin);
public abstract void deleteAdmin(int idAdmin);
public abstract void updateAdmin(Admin admin);
public abstract List<Admin> listerAdmin(... | DTAFormation/ecommerce-backend | src/main/java/dta/commerce/dao/IAdminDAO.java | Java | mit | 378 |
/**
* 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.v2019_06_01.implementation;
import com.m... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/network/v2019_06_01/implementation/PublicIPAddressImpl.java | Java | mit | 6,135 |
/*
*
*/
package au.org.aurin.wif.model.demand.info;
import au.org.aurin.wif.model.allocation.AllocationLU;
import au.org.aurin.wif.model.demand.DemandScenario;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* <b>DemandInfo.java</b> : Holds the configu... | tosseto/online-whatif | src/main/java/au/org/aurin/wif/model/demand/info/DemandInfo.java | Java | mit | 2,324 |
/*
* Copyright 2015-2017 Hewlett Packard Enterprise Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.find.idol.search;
import com.autonomy.aci.client.services.AciErrorException;
import co... | hpe-idol/find | webapp/idol/src/test/java/com/hp/autonomy/frontend/find/idol/search/IdolDocumentsControllerTest.java | Java | mit | 7,249 |
package _1_motivation;
import java.util.ArrayList;
import java.util.List;
public class WithGenerics
{
public static void main(String[] args)
{
List<String> list = new ArrayList<>();
list.add("a");
list.add("b");
list.add("c");
for (final String string : list)
{... | RichardWarburton/generics-examples | src/main/java/_1_motivation/WithGenerics.java | Java | mit | 379 |
package com.bbn.kbp.events2014;
import com.bbn.bue.common.collections.ShufflingIterable;
import com.bbn.bue.common.files.FileUtils;
import com.bbn.bue.common.parameters.Parameters;
import com.bbn.bue.common.symbols.Symbol;
import com.bbn.kbp.events.ontology.EREToKBPEventOntologyMapper;
import com.bbn.kbp.events2014.i... | BBN-E/tac-kbp-eal | tac-kbp-eal/src/main/java/com/bbn/kbp/events2014/QueryResponseFromERE.java | Java | mit | 10,234 |
/**
*
*/
package com.example.crystalgame.library.events;
import static org.junit.Assert.assertNotNull;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import com.example.crystalgame.library.data.Artifact;
import com.example.crystalgame.library.data.Artifact.ArtifactType;
/**
* @author Al... | balazspete/crystal-game | crystal-game-library/test/com/example/crystalgame/library/events/ProximityEventTest.java | Java | mit | 1,616 |
/*
* Copyright (c) 2008, Swedish Institute of Computer Science.
* 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
* n... | jcook/crazyIoT | src/contiki-sensinode-cc-ports/tools/cooja/java/se/sics/cooja/contikimote/ContikiProcess.java | Java | mit | 2,089 |
package pl.java.scalatech.domain;
import java.math.BigDecimal;
import javax.persistence.Entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Builder;
/**
* @author Sławomir Borowiec
* Module name : bootSetting
* Creating time : 17 wrz 2014 09:49:34
... | przodownikR1/jpaMetaModel | src/main/java/pl/java/scalatech/domain/User.java | Java | mit | 788 |
/**
* This class is generated by jOOQ
*/
package de.piratenpartei.berlin.ldadmin.dbaccess.generated.tables;
/**
* This class is generated by jOOQ.
*/
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.4" },
comments = "This class is generated by jOOQ")
@java.lang.Suppr... | plattformbrandenburg/ldadmin | src/main/java/de/piratenpartei/berlin/ldadmin/dbaccess/generated/tables/Membership.java | Java | mit | 4,186 |
package summea.kanjoto.activity;
import java.io.File;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import summea.kanjoto.adapter.BookmarkAdapter;
import summea.kanjoto.data.BookmarksDataSource;
i... | datanets/otashu | kanjoto-android/src/summea/kanjoto/activity/ViewAllBookmarksActivity.java | Java | mit | 10,407 |
package mat.client.shared;
import mat.model.CQLValueSetTransferObject;
public class ValueSetNameInputValidator {
public String validate(CQLValueSetTransferObject matValueSetTransferObject){
String valuesetName = matValueSetTransferObject.getUserDefinedText();
if(valuesetName == null || valuesetName.isEmpty())... | MeasureAuthoringTool/MeasureAuthoringTool_Release | mat/src/main/java/mat/client/shared/ValueSetNameInputValidator.java | Java | cc0-1.0 | 570 |
/*******************************************************************************
* Copyright (c) 2019, 2021 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | OpenLiberty/open-liberty | dev/com.ibm.ws.security.social_fat.commonTest.LibertyOP/fat/src/com/ibm/ws/security/social/fat/LibertyOP/LibertyOP_ErrorConfigTests_oidc_usingSocialDiscoveryConfig.java | Java | epl-1.0 | 7,006 |
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/impl/indexes/LinkTypeFilter.java | Java | epl-1.0 | 1,996 |
/**
* Copyright (c) 2015-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | lewie/openhab | bundles/api/org.openhab.core1/src/main/java/org/openhab/io/net/exec/ExecUtil.java | Java | epl-1.0 | 5,285 |
/*******************************************************************************
* Copyright (c) 2008, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | kgibm/open-liberty | dev/com.ibm.ws.sipcontainer/src/jain/protocol/ip/sip/header/RecordRouteHeader.java | Java | epl-1.0 | 2,366 |
/*******************************************************************************
* Copyright (c) 2016 UT-Battelle, LLC.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | eclipse/eavp | org.eclipse.eavp.viz.modeling/src/org/eclipse/eavp/viz/modeling/factory/BasicControllerProviderFactory.java | Java | epl-1.0 | 1,935 |
package school.util;
import org.eclipse.incquery.runtime.api.IMatchProcessor;
import school.Course;
import school.SomeCourseMatch;
/**
* A match processor tailored for the school.SomeCourse pattern.
*
* Clients should derive an (anonymous) class that implements the abstract process().
*
*/
@SuppressWarnings("a... | tht-krisztian/EMF-IncQuery-Examples | school/school.incquery/src-gen/school/util/SomeCourseProcessor.java | Java | epl-1.0 | 724 |
/*
* Copyright 2012 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.classloader;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.LazyLoader;
import org.jboss.forge.cla... | koentsje/forge-furnace | proxy-tests/src/test/java/org/jboss/forge/classloader/ClassLoaderAdapterProxiedTest.java | Java | epl-1.0 | 5,842 |
/*-
*******************************************************************************
* Copyright (c) 2011, 2016 Diamond Light Source Ltd.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, ... | jacobfilik/scanning | org.eclipse.scanning.api/src/org/eclipse/scanning/api/points/models/ArrayModel.java | Java | epl-1.0 | 1,812 |
/*******************************************************************************
* Copyright (c) 2016, 2017 Inria and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | SiriusLab/SiriusAnimator | framework/execution_framework/plugins/org.eclipse.gemoc.executionframework.ui/src/org/eclipse/gemoc/executionframework/ui/views/engine/actions/DisposeStoppedEngineAction.java | Java | epl-1.0 | 2,104 |
/**
* Copyright (c) 2010-2020 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.... | openhab/openhab2 | bundles/org.openhab.binding.gardena/src/main/java/org/openhab/binding/gardena/internal/model/command/WateringManualOverrideCommand.java | Java | epl-1.0 | 912 |
/* Alloy Analyzer 4 -- Copyright (c) 2006-2009, Felix Chang
*
* 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, modif... | ModelWriter/WP3 | Source/eu.modelwriter.alloyanalyzer/src/edu/mit/csail/sdg/alloy4/OurSyntaxUndoableDocument.java | Java | epl-1.0 | 6,629 |
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Mi... | ControlSystemStudio/cs-studio | thirdparty/plugins/org.csstudio.platform.libs.hibernate/project/envers/src/test/java/org/hibernate/envers/test/integration/onetomany/detached/BasicJoinColumnSet.java | Java | epl-1.0 | 4,990 |
/*******************************************************************************
* Copyright (c) 2017, 2020 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | OpenLiberty/open-liberty | dev/com.ibm.ws.transaction.core_fat.1/test-applications/transactional/src/com/ibm/ws/transactional/web/ClassAnnotatedNotSupportedTestBean.java | Java | epl-1.0 | 958 |
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/runtime/impl/Producer.java | Java | epl-1.0 | 2,716 |
/*******************************************************************************
* Copyright (c) 2012-2016 Codenvy, S.A.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available ... | codenvy/che-plugins | plugin-git/che-plugin-git-ext-git/src/main/java/org/eclipse/che/ide/ext/git/client/checkout/CheckoutReferencePresenter.java | Java | epl-1.0 | 9,099 |
/*******************************************************************************
* Copyright (c) 2014, 2021 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | kgibm/open-liberty | dev/com.ibm.ws.security.jaspic/src/com/ibm/ws/security/jaspi/JaspiCallbackHandler.java | Java | epl-1.0 | 18,225 |
/*******************************************************************************
* Copyright (c) 1997, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | OpenLiberty/open-liberty | dev/com.ibm.ws.jsp/src/com/ibm/ws/jsp/translator/visitor/validator/ValidateJspResult.java | Java | epl-1.0 | 4,157 |
/*******************************************************************************
* Copyright (c) 2015, 2020 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | OpenLiberty/open-liberty | dev/com.ibm.ws.security.authorization.jacc.ejb/test/com/ibm/ws/security/authorization/jacc/ejb/impl/EJBSecurityValidatorImplWithTraceTest.java | Java | epl-1.0 | 1,124 |
/*******************************************************************************
* Copyright (c) 2011, 2020 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | OpenLiberty/open-liberty | dev/com.ibm.ws.webcontainer.security/src/com/ibm/ws/webcontainer/security/SSOCookieHelperImpl.java | Java | epl-1.0 | 25,269 |
/*******************************************************************************
* Copyright (c) 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/JMFEnumType.java | Java | epl-1.0 | 1,774 |
// -----BEGIN DISCLAIMER-----
/*******************************************************************************
* Copyright (c) 2020, 2021 JCrypTool Team and Contributors
*
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which... | jcryptool/crypto | org.jcryptool.visual.sphincsplus/src/org/jcryptool/visual/sphincsplus/ui/SphincsPlusTreeView.java | Java | epl-1.0 | 19,697 |
/*******************************************************************************
* Copyright (c) 2016 UT-Battelle, LLC. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is... | SmithRWORNL/january | org.eclipse.january.geometry/src/org/eclipse/january/geometry/validation/CylinderValidator.java | Java | epl-1.0 | 1,136 |
/*******************************************************************************
* Copyright (c) 2016, 2021 Eurotech and/or its affiliates and others
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.or... | stzilli/kapua | service/datastore/internal/src/main/java/org/eclipse/kapua/service/datastore/internal/model/query/predicate/MetricPredicateImpl.java | Java | epl-1.0 | 3,216 |
/*
* Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | 522986491/yangtools | code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/ContainerNodeCodecContext.java | Java | epl-1.0 | 1,280 |
package com.intuit.tank.api.model.v1.datafile;
/*
* #%L
* Datafile Rest API
* %%
* Copyright (C) 2011 - 2015 Intuit Inc.
* %%
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ... | rkadle/Tank | rest/api/datafile/src/test/java/com/intuit/tank/api/model/v1/datafile/NamespaceTest.java | Java | epl-1.0 | 689 |
/**
* Copyright (c) 2013. All rights reserved.
* <p/>
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* <p/>
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. ... | neomatrix369/RESTAPIUnifier | java/src/test/java/org/neomatrix369/apiworld/APIReaderTest.java | Java | gpl-2.0 | 11,518 |
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for AD_Task_Access
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_AD_Task_Access extends org.compiere.model.PO implements I_AD_Task_Access,... | klst-com/metasfresh | de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_AD_Task_Access.java | Java | gpl-2.0 | 3,955 |
package edu.stanford.nlp.hcoref;
import java.io.FileNotFoundException;
import java.text.DecimalFormat;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Deque;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import ... | hbbpb/stanford-corenlp-gv | src/edu/stanford/nlp/hcoref/CorefPrinter.java | Java | gpl-2.0 | 28,120 |
/*
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | jbachorik/btrace | btrace-instr/src/main/java/org/openjdk/btrace/instr/BTraceProbeFactory.java | Java | gpl-2.0 | 5,000 |
/***************************************************************************
* (C) Copyright 2003-2018 - Faiumoni e.V. *
***************************************************************************
***************************************************************************
* ... | markuskeunecke/stendhal | src/games/stendhal/tools/DuplicateTileFinder.java | Java | gpl-2.0 | 6,240 |
/*
* Cobertura - http://cobertura.sourceforge.net/
*
* This file was taken from JavaNCSS
* http://www.kclee.com/clemens/java/javancss/
* Copyright (C) 2000 Chr. Clemens Lee <clemens a.t kclee d.o.t com>
*
* Cobertura is free software; you can redistribute it and/or modify
* it under the terms of the GNU General... | hsun/cobertura-fork | src/net/sourceforge/cobertura/javancss/parser/java15/JavaCharStream.java | Java | gpl-2.0 | 17,221 |
/*******************************************************************************
* Copyright (c) 2017 David Becker.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Public License v2.0
* which accompanies this distribution, and is available at
... | davidbecker/taloonerrl | core/src/main/java/de/brainstormsoftworks/taloonerrl/ai/IAI.java | Java | gpl-2.0 | 669 |
package games.stendhal.server.core.engine;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Collection;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import games.stendhal.serve... | AntumDeluge/arianne-stendhal | tests/games/stendhal/server/core/engine/StendhalRPZoneTest.java | Java | gpl-2.0 | 1,614 |
package com.nightscout.android.medtronic;
import java.util.Date;
public class DataLog {
int numEntries;
Date[] dateField = new Date [4096];
char[] entryType = new char [4096];
int[] glucose = new int [4096];
int[] calFactor = new int [4096];
}
| wright-david/MedtronicUploader | src/com/nightscout/android/medtronic/DataLog.java | Java | gpl-2.0 | 260 |
package org.g4studio.core.net.telnet;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InterruptedIOException;
/***
*
* <p>
*
* <p>
* <p>
*
* @author Daniel F. Savarese
* @author Bruno D'Avanzo
***/
final class TelnetInputStream extends BufferedIn... | jreadstone/zsyproject | src/org/g4studio/core/net/telnet/TelnetInputStream.java | Java | gpl-2.0 | 12,508 |
/*
* Copyright (C) 2014 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... | DigitalLabApp/Gramy | Telegram-master/TMessagesProj/src/main/java/org/telegram/messenger/support/widget/OpReorderer.java | Java | gpl-2.0 | 8,964 |
/*
* Copyright (C) 2012-2017 52°North Initiative for Geospatial Open Source
* Software GmbH
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* If the program is linked with... | EHJ-52n/OX-Framework | 52n-oxf-xmlbeans/src/main/java/org/n52/oxf/xmlbeans/parser/sosexample/ExceptionCode.java | Java | gpl-2.0 | 1,576 |
/*
* 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 ... | HarmonyEnterpriseSolutions/harmony-platform | java/src/org/apache/commons/io/filefilter/IOFileFilter.java | Java | gpl-2.0 | 1,859 |
/*
* Copyright (C) 2012-2021 52°North Spatial Information Research GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* If the program is linked with libraries which are l... | EHJ-52n/SOS | core/api/src/main/java/org/n52/sos/event/events/SensorModification.java | Java | gpl-2.0 | 1,788 |
/***************************************************************************
* (C) Copyright 2012-2022 Faiumoni e. V. *
***************************************************************************
***************************************************************************
* ... | AntumDeluge/arianne-stendhal | src/games/stendhal/client/sprite/DataLoader.java | Java | gpl-2.0 | 4,621 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2003-2014 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2014 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | jeffgdotorg/opennms | opennms-dao-api/src/main/java/org/opennms/netmgt/dao/api/InterfaceToNodeCache.java | Java | gpl-2.0 | 1,774 |
/*
* 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")... | skyHALud/codenameone | Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/swing/src/main/java/common/javax/swing/undo/AbstractUndoableEdit.java | Java | gpl-2.0 | 3,444 |
package com.gd.controller;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.ExcessiveAttemptsException;
import org.apache.shiro.authc.IncorrectCredentialsException;
import org.apache.shiro.authc.LockedAccountException;
import org.apache.shiro.a... | panhainan/gd | src/main/java/com/gd/controller/TestController.java | Java | gpl-2.0 | 2,289 |
/*
* Copyright 2001-2009 Terracotta, 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 applicabl... | dumptruckman/MC-Server-GUI--multi- | lib/quartz-2.0.1/quartz/src/main/java/org/quartz/impl/jdbcjobstore/DB2v7Delegate.java | Java | gpl-2.0 | 2,829 |
/*
* Copyright (C) 2012-2021 52°North Spatial Information Research GmbH
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*
* If the program is linked with libraries which are l... | EHJ-52n/SOS | hibernate/feature/src/main/java/org/n52/sos/ds/hibernate/InsertFeatureVisitor.java | Java | gpl-2.0 | 2,127 |
/*
* ADTPro - Apple Disk Transfer ProDOS
* Copyright (C) 2007 - 2010 by David Schmidt
* david__schmidt at users.sourceforge.net
*
* This program 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 Foundation; either ... | RasppleII/adtpro | org/adtpro/transport/audio/CaptureThread.java | Java | gpl-2.0 | 8,397 |