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 net.megaroid.expr;
import java.util.Scanner;
import net.megaroid.collections.Stack;
import net.megaroid.math.Rational;
public class PostfixCalculator {
private Stack<Rational> stack = new Stack<>();
private static boolean isOperator(char op) {
return op == '+' || op == '-' || op == '*' || op == '/';
... | xmenta/megaroid | Java/src/net/megaroid/expr/PostfixCalculator.java | Java | mit | 1,953 |
package com.microsoft.bingads.v10.campaignmanagement;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for Network.
*
* <p>The following schema fragment specifies the expected content contained within this clas... | JeffRisberg/BING01 | proxies/com/microsoft/bingads/v10/campaignmanagement/Network.java | Java | mit | 1,446 |
package crossword.model;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arr... | maniekstasz/CrosswordGenerator | src/crossword/model/FileService.java | Java | mit | 4,471 |
package net.ontrack.extension.github.service;
import com.google.common.base.Function;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import net.ontrack.core.model.BranchSummary;
import net.ontrack.core.model.ProjectSummary;
import net.on... | joansmith/ontrack | ontrack-extension/ontrack-extension-github/src/main/java/net/ontrack/extension/github/service/DefaultGitHubService.java | Java | mit | 6,041 |
/**
* 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_07_01;
import java.util.Collection... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/network/v2019_07_01/VirtualNetworkGatewaySkuName.java | Java | mit | 3,836 |
/*****************************************************************************
* This file is part of the Prolog Development Tool (PDT)
*
* WWW: http://sewiki.iai.uni-bonn.de/research/pdt/start
* Mail: pdt@lists.iai.uni-bonn.de
* Copyright (C): 2004-2012, CS Dept. III, University of Bonn
*
* All rights reserve... | TeamSPoon/logicmoo_base | prolog/logicmoo/pdt_server/pdt.graphicalviews/src/org/cs3/pdt/graphicalviews/model/realizer/groups/PrologGroupNodeRealizer.java | Java | mit | 3,283 |
/**
* 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.monitor.v2016_03_01.implementation;
import retro... | selvasingh/azure-sdk-for-java | sdk/monitor/mgmt-v2016_03_01/src/main/java/com/microsoft/azure/management/monitor/v2016_03_01/implementation/MetricDefinitionsInner.java | Java | mit | 12,677 |
package asia.malware.urlsniffer;
import android.content.Intent;
import java.io.File;
import java.net.URL;
import java.net.URLStreamHandler;
import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import de.robv.android.xposed.call... | vaginessa/URLSniffer | app/src/main/java/asia/malware/urlsniffer/URLSniffer.java | Java | mit | 3,470 |
/*
* Copyright (c) 2012 Socialize Inc.
*
* 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, merge, pub... | dylanmaryk/InsanityRadio-Android | socialize/src/com/socialize/api/DeviceRegistrationSystem.java | Java | mit | 1,726 |
package be.ehb.servlets;
import be.ehb.configuration.IAppConfig;
import be.ehb.factories.ResponseFactory;
import be.ehb.i18n.Messages;
import be.ehb.model.responses.ErrorResponse;
import be.ehb.security.ISecurityContext;
import be.ehb.security.JWTValidation;
import org.jose4j.jwt.JwtClaims;
import org.jose4j.jwt.Malfo... | Switch2IT/timeskip-api | timeskip-web/src/main/java/be/ehb/servlets/RequestFilter.java | Java | mit | 4,136 |
package fi.csc.microarray.client.visualisation.methods.gbrowser.gui;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import net.miginfocom.swing.MigLayout;
import fi.csc.microarray.client.visualisation.methods.gbrowser.track.Selectable;
/**
* A Simple panel for showing some textual information about the se... | chipster/chipster | src/main/java/fi/csc/microarray/client/visualisation/methods/gbrowser/gui/SelectionPanel.java | Java | mit | 964 |
package us.csbu.cs546.algorithm;
public class HashTableTest {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashTable sample = new HashTable();
int defaultStoreValue_1 = sample.hashFunction(14);
int defaultStoreValue_2 = sample.hashFunction(15);
int defaultStoreValue_... | DrkCoater/CS_Problems | schoolworks/src/us/csbu/cs546/algorithm/HashTableTest.java | Java | mit | 2,385 |
package com.lody.legend;
import com.lody.legend.art.ArtMethod;
import com.lody.legend.art.ArtMethodStructV19;
import com.lody.legend.dalvik.DalvikMethodStruct;
import com.lody.legend.io.SizeOf;
import com.lody.legend.utility.Logger;
import com.lody.legend.utility.Memory;
import com.lody.legend.utility.Runtime;
import ... | shoyu666/RocooFix | rocoo/src/main/java/com/lody/legend/HookManager.java | Java | mit | 17,876 |
package com.webfluxclient.client;
import org.springframework.http.codec.ClientCodecConfigurer;
import org.springframework.http.codec.HttpMessageReader;
import org.springframework.http.codec.HttpMessageWriter;
import org.springframework.web.reactive.function.client.ExchangeStrategies;
import java.util.List;
import st... | jbrixhe/spring-webflux-client | src/main/java/com/webfluxclient/client/ExtendedExchangeStrategies.java | Java | mit | 1,259 |
package June2021AppleLeetcode;
public class _0019RemoveNthNodeFromEndOfList {
static public class ListNode {
int val;
ListNode next;
ListNode() {
}
ListNode(int val) {
this.val = val;
}
ListNode(int val, ListNode next) {
this.val = val;
this.next = next;
}
}
public static void main(Stri... | darshanhs90/Java-InterviewPrep | src/June2021AppleLeetcode/_0019RemoveNthNodeFromEndOfList.java | Java | mit | 1,066 |
package com.faforever.api.email;
public interface EmailSender {
void sendMail(String fromEmail, String fromName, String toEmail, String subject, String content);
}
| FAForever/faf-java-api | src/main/java/com/faforever/api/email/EmailSender.java | Java | mit | 167 |
/**
* Manage devices which interact with the world like LCD & Sound.
*/
package ev3dev.actuators; | ev3dev-lang-java/ev3dev-lang-java | src/main/java/ev3dev/actuators/package-info.java | Java | mit | 106 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.ossrs.yasea.rtmp.packets;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.HashMap;
import java.util.Map;
import android.uti... | Pratyum/cast.us_android | app/src/main/java/net/ossrs/yasea/rtmp/packets/RtmpHeader.java | Java | mit | 17,863 |
package June2021GoogLeetcode;
import java.util.Stack;
public class _0084LargestRectangleInHistogram {
public static void main(String[] args) {
System.out.println(largestRectangleArea(new int[] { 2, 1, 5, 6, 2, 3 }));
}
public static int largestRectangleArea(int[] heights) {
Stack<Integer> stack = new Stack<I... | darshanhs90/Java-InterviewPrep | src/June2021GoogLeetcode/_0084LargestRectangleInHistogram.java | Java | mit | 805 |
package com.zsiegel.rxandroid.persistence;
import android.app.Application;
import android.test.ApplicationTestCase;
/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest()... | ganfra/rxandroid-architecture-sample | rxandroid/persistence/src/androidTest/java/com/zsiegel/rxandroid/persistence/ApplicationTest.java | Java | mit | 364 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.blob.changefeed;
import com.azure.core.util.FluxUtil;
import com.azure.core.util.logging.ClientLogger;
import com.azure.storage.blob.BlobContainerAsyncClient;
import com.azure.storage.blob.changef... | selvasingh/azure-sdk-for-java | sdk/storage/azure-storage-blob-changefeed/src/main/java/com/azure/storage/blob/changefeed/Changefeed.java | Java | mit | 7,462 |
/*!
* mifmi-commons4j
* https://github.com/mifmi/mifmi-commons4j
*
* Copyright (c) 2015 mifmi.org and other contributors
* Released under the MIT license
* https://opensource.org/licenses/MIT
*/
package org.mifmi.commons4j.valuefilter;
public class InvalidValueException extends ValueFilterException {
private s... | mifmi/mifmi-commons-java | src/main/java/org/mifmi/commons4j/valuefilter/InvalidValueException.java | Java | mit | 1,444 |
package models;
import java.util.List;
import org.bson.types.ObjectId;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Reference;
import com.google.code.morphia.query.Query;
import java.util.ArrayList;
import java.util.Date;
import static models.BaseModel.ds;
import org.co... | ericlink/adnat-server | app/models/Person.java | Java | mit | 2,925 |
package week1.ex3;// For week 1
// sestoft@itu.dk * 2014-08-25
import java.io.IOException;
public class TestMutableInteger {
public static void main(String[] args) throws IOException {
final MutableInteger mi = new MutableInteger();
Thread t = new Thread(() -> {
while (mi.get() == 0) // Loop ... | tavaresdong/courses | pcpp/exercises/src/week1/ex3/TestMutableInteger.java | Java | mit | 1,050 |
/**
* Copyright 2011 multibit.org
*
* Licensed under the MIT license (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.php
*
* Unless required by applicable law or agreed to in writing,... | PaulSnow/multibit | src/main/java/org/multibit/viewsystem/swing/view/panels/SendBitcoinConfirmPanel.java | Java | mit | 30,786 |
package cc.seeed.iot.util;
import android.text.TextUtils;
import android.util.Log;
/**
* Logcat management class
*/
public class MLog {
private MLog() {
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
public static boolean isShowLog = t... | awong1900/WiFi_Iot_Node_App | app/src/main/java/cc/seeed/iot/util/MLog.java | Java | mit | 2,584 |
package de.weichert.multitenancy.datasource;
import de.weichert.multitenancy.model.TenantDataSourceConfigEntity;
import javax.sql.DataSource;
/**
* Created by Jannik on 22.03.15.
*/
public interface TenantDataSourceInitializer {
DataSource initializeDataSource(TenantDataSourceConfigEntity dataSourceConfig);
}
| jannikweichert/multitenancy | src/main/java/de/weichert/multitenancy/datasource/TenantDataSourceInitializer.java | Java | mit | 320 |
package net.buycraft.plugin.data;
import com.google.gson.annotations.SerializedName;
import lombok.Value;
import java.util.Map;
@Value
public class QueuedCommand {
private final int id;
@SerializedName("payment")
private final int paymentId;
@SerializedName("package")
private final int packageId;... | ghacproductions/BuycraftX | common/src/main/java/net/buycraft/plugin/data/QueuedCommand.java | Java | mit | 447 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* 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... | GotoFinal/diorite-configs-java8 | src/main/java/org/diorite/config/exceptions/ConfigLoadException.java | Java | mit | 3,081 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.spring.data.cosmos.core.mapping;
import org.springframework.context.annotation.Import;
import org.springframework.data.auditing.DateTimeProvider;
import org.springframework.data.domain.AuditorAware;
impo... | selvasingh/azure-sdk-for-java | sdk/cosmos/azure-spring-data-cosmos/src/main/java/com/azure/spring/data/cosmos/core/mapping/EnableCosmosAuditing.java | Java | mit | 1,825 |
package org.elkoserver.foundation.net;
class WebSocketHandshake {
private int myVersion;
private byte[] myBytes;
WebSocketHandshake(int version, byte[] bytes) {
myVersion = version;
myBytes = bytes;
}
int version() {
return myVersion;
}
byte[] bytes() {
re... | frandallfarmer/Elko | ServerCore/java/org/elkoserver/foundation/net/WebSocketHandshake.java | Java | mit | 342 |
/**
* 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.devtestlab;
import com.fasterxml.jackson.annotat... | martinsawicki/azure-sdk-for-java | azure-mgmt-devtestlab/src/main/java/com/microsoft/azure/management/devtestlab/Event.java | Java | mit | 1,119 |
package org.testcontainers.containers;
import org.influxdb.InfluxDB;
import org.junit.ClassRule;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
public class InfluxDBContainerTest {
@ClassRule
... | testcontainers/testcontainers-java | modules/influxdb/src/test/java/org/testcontainers/containers/InfluxDBContainerTest.java | Java | mit | 1,106 |
package pl.java.scalatech.generator;
import pl.java.scalatech.domain.generator.TableGeneratorEntity;
public class TableGeneratorTest extends AbstractGeneratorTest {
@Override
String getEntityName() {
return TableGeneratorEntity.class.getSimpleName();
}
@Override
Object createEntity(int i... | przodownikR1/springJpaKata | src/test/java/pl/java/scalatech/generator/TableGeneratorTest.java | Java | mit | 384 |
/**
Author: Turkdogan Tasdelen
Email: ttasdelen@gmail.com
*/
public class AbstractFactoryExample {
public static void main(String[] args) {
producePlatformComputers("Apple");
producePlatformComputers("Microsoft");
}
private static void producePlatformComputers(final String platform) ... | turkdogan/B-Plus-Tree | abstract_factory/AbstractFactoryExample.java | Java | mit | 2,445 |
package test;
import java.io.File;
import java.io.FileInputStream;
import java.io.StringWriter;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.cert.X509Certificate;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transfo... | Door3Dev/HRI-Umbraco | packages/ComponentSpace SAML v2.0 for .NET/Examples/Java/src/test/SignSAML.java | Java | mit | 6,752 |
package design_patterns.behavioral.memento;
import java.util.ArrayList;
import org.junit.*;
public class MementoTest {
@Test
public void designPatternTest() {
ArrayList<Memento> savedStates = new ArrayList<Memento>();
Originator origin = new Originator();
origin.setState("first");
Assert.assertE... | alexprut/design-patterns-java | src/test/java/design_patterns/behavioral/memento/MementoTest.java | Java | mit | 596 |
package com.mwronski.ncache;
/**
* Generic cache wrapper with name-spacing capability.
* Each create namespace in cache is a separate region.
*
* @author Michal Wronski
* @date 24.10.14.
*/
public final class NCache implements Cache {
private final Cache cache;
@Override
public String getName() {
... | m-wrona/namespace-cache | src/main/java/com/mwronski/ncache/NCache.java | Java | mit | 1,439 |
package org.teamone.core;
import org.junit.Before;
import org.junit.Test;
import org.teamone.core.SQL.HspSQL;
import org.teamone.core.baseclasstests.TestStrings;
import org.teamone.core.users.Patient;
import java.util.Random;
import static org.junit.Assert.assertTrue;
/**
* Created by system on 10/22/15.
* This o... | vinnybod/CSE360-IPIMS | core/src/test/java/org/teamone/core/AAPreloadRegisterTest.java | Java | cc0-1.0 | 2,562 |
/*******************************************************************************
* 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/io.openliberty.microprofile41.internal_fat/fat/src/io/openliberty/microprofile41/internal/test/helloworld/config/ConfiguredHelloWorldBean.java | Java | epl-1.0 | 1,079 |
package com.coverity.ws.v9;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ldapConfigurationDataObj complex type.
*
* <p>The following schema fragment specifies the expected content contained wit... | christ66/coverity-plugin | src/main/java/com/coverity/ws/v9/LdapConfigurationDataObj.java | Java | epl-1.0 | 14,211 |
/*******************************************************************************
* Copyright (c) 2011, 2016 Eurotech and/or its affiliates
*
* 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 distributi... | cdealti/kura | kura/test/org.eclipse.kura.core.test/src/main/java/org/eclipse/kura/core/test/CloudDeploymentHandlerTest.java | Java | epl-1.0 | 12,882 |
/**
* 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.... | openhab/openhab | bundles/io/org.openhab.io.multimedia.tts.speechdispatcher/src/main/java/org/openhab/io/multimedia/internal/tts/TTSServiceSpeechDispatcher.java | Java | epl-1.0 | 4,616 |
/*******************************************************************************
* Copyright (c) 2012, 2014 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.app.manager/src/com/ibm/ws/app/manager/internal/statemachine/ResourceCallback.java | Java | epl-1.0 | 1,168 |
/**
* Copyright (c) 2010-2021 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.... | MikeJMajor/openhab2-addons-dlinksmarthome | bundles/org.openhab.binding.boschshc/src/main/java/org/openhab/binding/boschshc/internal/services/temperaturelevel/TemperatureLevelService.java | Java | epl-1.0 | 1,004 |
/**
* 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/openhab | bundles/binding/org.openhab.binding.plugwise/src/main/java/org/openhab/binding/plugwise/protocol/NodeAvailableResponseMessage.java | Java | epl-1.0 | 1,218 |
/**
*/
package org.emfjson.sample.model.presentation;
import org.eclipse.emf.common.EMFPlugin;
import org.eclipse.emf.common.ui.EclipseUIPlugin;
import org.eclipse.emf.common.util.ResourceLocator;
/**
* This is the central singleton for the Model editor plugin.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
... | ghillairet/emfjson-samples | eclipse/org.emfjson.sample.xcore.editor/src-gen/org/emfjson/sample/model/presentation/ModelEditorPlugin.java | Java | epl-1.0 | 1,839 |
package fr.jabbytechs.hackathon.galaxygop.model;
import java.util.ArrayList;
import java.util.List;
public class Galaxy {
private List<Planet> planets = new ArrayList<>();
private List<Fleet> fleets = new ArrayList<>();
private Config config;
public List<Planet> getPlanets() {
return planets;
}
public void... | jabby/galaxy-gop | src/main/java/fr/jabbytechs/hackathon/galaxygop/model/Galaxy.java | Java | epl-1.0 | 633 |
/*******************************************************************************
* Copyright (c) 2014-2015-2016 Oak Ridge National Laboratory.
* 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 distribut... | ESSICS/org.csstudio.display.builder | org.csstudio.javafx.rtplot/src/org/csstudio/javafx/rtplot/TraceType.java | Java | epl-1.0 | 1,986 |
package seg.jUCMNav.aourn.matcher.exceptions;
public class ContradictoryMappingException extends Exception {
/**
*
*/
private static final long serialVersionUID = -9205867254770630236L;
}
| McGill-DP-Group/seg.jUCMNav | src/seg/jUCMNav/aourn/matcher/exceptions/ContradictoryMappingException.java | Java | epl-1.0 | 198 |
package kr.jroad.touchout.fragment;
import com.facebook.Session;
import com.facebook.SessionState;
import com.facebook.Session.StatusCallback;
import com.facebook.widget.LoginButton;
import kr.jroad.touchout.activity.AgreementActivity;
import kr.jroad.touchout.activity.R;
import kr.jroad.touchout.data.CartResult;
imp... | HansolJang/touchout | TouchOut/src/kr/jroad/touchout/fragment/TutorialFinalContentFragment.java | Java | epl-1.0 | 5,292 |
package com.example.wbe04.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HomController {
@RequestMapping("/")
public String main(Model model){
model.addAttribute("message", ... | braverokmc79/macaronics-spring-one | web04/src/main/java/com/example/wbe04/controller/HomController.java | Java | epl-1.0 | 397 |
/**
* 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/openhab | bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/impl/TFInterruptListenerConfigurationImpl.java | Java | epl-1.0 | 5,313 |
package junit.tests.runner;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import junit.framework.TestCase;
import junit.framework.TestResult;
import junit.framework.TestSuite;
public class TextRunnerTest extends TestC... | UnimibSoftEngCourse1516/lab2-es3-m.polonioli | src/test/java/junit/tests/runner/TextRunnerTest.java | Java | epl-1.0 | 1,970 |
/*******************************************************************************
* Copyright (c) 2000, 2015 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... | css-iter/org.csstudio.iter | plugins/org.eclipse.jface/src/org/eclipse/jface/preference/ColorFieldEditor.java | Java | epl-1.0 | 4,398 |
/*******************************************************************************
* Copyright (c) 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, and is a... | OpenLiberty/open-liberty | dev/com.ibm.ws.security.client_fat/test-applications/JavaColonInjectionAppEJB.jar/src/com/ibm/ws/security/client/fat/view/MyComponentInjectionBeanRemote.java | Java | epl-1.0 | 773 |
/**
* 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/openhab | bundles/persistence/org.openhab.persistence.exec/src/main/java/org/openhab/persistence/exec/internal/ExecPersistenceServiceActivator.java | Java | epl-1.0 | 1,372 |
package org.eclipse.scanning.test.event.queues.spooler;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import... | AnthonyHullDiamond/scanning | org.eclipse.scanning.test/src/org/eclipse/scanning/test/event/queues/spooler/ScanAtomAssemblerTest.java | Java | epl-1.0 | 14,838 |
/*******************************************************************************
* Copyright (c) 2017, 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 | console/module/api/src/main/java/org/eclipse/kapua/app/console/module/api/server/GwtSecurityTokenServiceImpl.java | Java | epl-1.0 | 2,405 |
/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 6.0 */
/* JavaCCOptions:KEEP_LINE_COL=null */
package preprocessor;
/**
* This exception is thrown when parse errors are encountered.
* You can explicitly create objects of this exception type by
* calling the method generateParseException i... | person594/cs153 | assignment6/code/preprocessor/ParseException.java | Java | gpl-2.0 | 6,170 |
/*
* 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/nio_char/src/main/java/org/apache/harmony/niochar/charset/additional/x_IBM1097.java | Java | gpl-2.0 | 25,025 |
/*
* Copyright (c) 2011, 2015, 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 ... | teamfx/openjfx-10-dev-rt | modules/javafx.graphics/src/test/java/test/com/sun/scenario/animation/shared/FiniteClipEnvelopeTest.java | Java | gpl-2.0 | 24,073 |
/*
* BEValue - Holds different types that a bencoded byte array can represent.
* Copyright (C) 2003 Mark J. Wielaard
*
* This file is part of Snark.
*
* 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
... | pyronicide/snark-maven | src/main/java/org/klomp/snark/bencode/BEValue.java | Java | gpl-2.0 | 5,318 |
package common;
public class Ball {
private Position position;
private double speedX, speedY;
public Ball() {
this.position = new Position(0.0, 0.0);
this.speedX = 0.0;
this.speedY = 0.0;
}
public Ball(Position p) {
this.position = p;
}
public Position getPosition() {
return this.position;
}
... | eckucukoglu/cengball | branches/runtime compiling/CengBall/src/common/Ball.java | Java | gpl-2.0 | 322 |
public interface MailInter {
public boolean sendeMail(String to,String subj,String body);
}
| OOP-BPGC-201415/Project | Submissions-2/E_Wallet/Group-13/MailInter.java | Java | gpl-2.0 | 96 |
package jp.primecloud.auto.api.component;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import jp.primecloud.auto.api.ApiSupport;
import jp.primecloud.auto.api.ApiValidate;
import jp.primecloud.au... | ymstmsys/primecloud-controller | auto-project/auto-api/src/main/java/jp/primecloud/auto/api/component/GetAttachableComponent.java | Java | gpl-2.0 | 2,542 |
/*
* Copyright (c) 2010, 2012, 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 ... | arodchen/MaxSim | maxine/com.oracle.max.vm.ext.vma/src/com/oracle/max/vm/ext/vma/store/VMAStoreFactory.java | Java | gpl-2.0 | 2,566 |
/*
* Message.java
*
* Created on September 6, 2005, 2:38 PM
*
*/
package eunomia.messages;
import eunomia.util.oo.Versioned;
import java.io.Externalizable;
/**
*
* @author Mikhail Sosonkin
*/
public interface Message extends Externalizable, Versioned {
}
| nologic/nabs | client/trunk/shared/messages/src/eunomia/messages/Message.java | Java | gpl-2.0 | 266 |
package br.ifes.leds.reuse.endereco.cgd;
import br.ifes.leds.reuse.endereco.cdp.Cidade;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
/**
* CidadeReposi... | asleao/sincap-entities | src/main/java/br/ifes/leds/reuse/endereco/cgd/CidadeRepository.java | Java | gpl-2.0 | 667 |
package omoikane.repository;
import omoikane.entities.Cancelacion;
import omoikane.entities.LegacyVenta;
import org.synyx.hades.dao.GenericDao;
/**
* Created with IntelliJ IDEA.
* User: octavioruizcastillo
* Date: 07/12/12
* Time: 21:25
* To change this template use File | Settings | File Templates.
*/
public i... | miganbec/Omoikane | main/src/omoikane/repository/CancelacionRepo.java | Java | gpl-2.0 | 388 |
/**
* OWASP Benchmark Project v1.2beta
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The OWASP Benchmark is free software: you can redistribu... | andresriancho/Benchmark | src/main/java/org/owasp/benchmark/testcode/BenchmarkTest01658.java | Java | gpl-2.0 | 3,042 |
/*
* (c) Copyright 2010-2011 by Volker Bergmann. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted under the terms of the
* GNU General Public License (GPL).
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* W... | raphaelfeng/benerator | src/org/databene/model/data/ArrayTypeDescriptor.java | Java | gpl-2.0 | 3,607 |
/**
* Copyright (C) 2010-14 pvmanager developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.epics.pvmanager.formula;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.epics.pvmanager.PVDirector;
import org.epics.... | diirt/pvmanager | pvmanager-extra/src/main/java/org/epics/pvmanager/formula/FormulaReadFunction.java | Java | gpl-2.0 | 3,440 |
/*
* $Id$
*
* Copyright 1996-2008 Sun Microsystems, Inc. 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 S... | Distrotech/icedtea6-1.12 | src/jtreg/com/sun/javatest/cof/COFTestAttributes.java | Java | gpl-2.0 | 3,678 |
package com.mseeworld.qzh.model;
// Generated Sep 6, 2014 9:23:12 PM by Hibernate Tools 3.2.1.GA
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.T... | archord/qzh | src/main/java/com/mseeworld/qzh/model/AUser.java | Java | gpl-2.0 | 3,150 |
package org.skierz.blocks;
import org.lwjgl.input.Mouse;
import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.state.StateBasedGame;
import org.skierz.gui.Component;
import org.skierz.states.Game;
public class Block implements Com... | Skierz/Game | org/skierz/blocks/Block.java | Java | gpl-2.0 | 3,190 |
package com.numhero.client.widget.combobox;
import com.numhero.shared.enums.CurrencyEnum;
public class CurrencyEnumComboBox extends EnumComboBox<CurrencyEnum> {
public CurrencyEnumComboBox() {
super(CurrencyEnum.class);
}
}
| midaboghetich/netnumero | src/com/numhero/client/widget/combobox/CurrencyEnumComboBox.java | Java | gpl-2.0 | 253 |
package com.citypedia.app.providers;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.os.... | ranjeetDT/androidcodes | CityPediaV2/src/com/citypedia/app/providers/CityPediaProvider.java | Java | gpl-2.0 | 4,079 |
/*
* Copyright (c) 2012, 2012, 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 ... | arodchen/MaxSim | graal/graal/com.oracle.truffle.api.dsl.test/src/com/oracle/truffle/api/dsl/test/GuardsTest.java | Java | gpl-2.0 | 8,373 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package bc;
import be.ClientePotencial;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
*
* @author argos
*/
@Stateless
public class ClientePoten... | jchalco/Ate | sistema/sistema-ejb/src/java/bc/ClientePotencialFacade.java | Java | gpl-2.0 | 657 |
package replicatorg.drivers.gen3;
import replicatorg.app.tools.IButtonCrc;
public class PacketBuilder implements PacketConstants {
final static int MAX_PACKET_LENGTH = 256;
/**
* A class for building a new packet to send down the wire to the
* Sanguino3G.
*/
byte[] data = new byte[MAX_PACKET_LENGTH];
// c... | natetrue/ReplicatorG | src/replicatorg/drivers/gen3/PacketBuilder.java | Java | gpl-2.0 | 1,779 |
/*
* #%L
* Fork of Apache Jakarta POI.
* %%
* Copyright (C) 2008 - 2016 Open Microscopy Environment:
* - Board of Regents of the University of Wisconsin-Madison
* - Glencoe Software, Inc.
* - University of Dundee
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... | imunro/bioformats | components/forks/poi/src/loci/poi/hssf/record/AbstractEscherHolderRecord.java | Java | gpl-2.0 | 9,686 |
package org.aksw.limes.core.measures.measure.pointsets.sumofmin;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import org.aksw.limes.core.datastrutures.Point;
import org.aksw.limes.core.measures.mapper.pointsets.Polygon;
import org.junit.Test;
/**
* @author Mohamed Sherif (sherif@informa... | AKSW/LIMES-CORE | limes-core/src/test/java/org/aksw/limes/core/measures/measure/pointsets/sumofmin/NaiveSumOfMinTest.java | Java | gpl-2.0 | 3,179 |
package me.joshua.arsenal4j.spring.event;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.core.IsEqual.equalTo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
public class CounterEventPublisherTests extends AbstractSpringEventTests {
@Autowired... | home4j/arsenal4j | spring/event/src/test/java/me/joshua/arsenal4j/spring/event/CounterEventPublisherTests.java | Java | gpl-2.0 | 496 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2010-2012 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2012 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | rfdrake/opennms | opennms-web-api/src/main/java/org/opennms/web/category/RTCPostSubscriber.java | Java | gpl-2.0 | 10,754 |
/**
* OpenKM, Open Document Management System (http://www.openkm.com)
* Copyright (c) 2006-2017 Paco Avila & Josep Llort
* <p>
* No bytes were intentionally harmed during the development of this application.
* <p>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the ... | Beau-M/document-management-system | src/main/java/com/openkm/kea/tree/TermComparator.java | Java | gpl-2.0 | 1,332 |
/*
* Copyright (c) 2017, 2019, 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 ... | md-5/jdk10 | test/hotspot/jtreg/vmTestbase/jit/graph/cgt10.java | Java | gpl-2.0 | 1,441 |
/*
* Copyright (c) 2012 Denis Solonenko.
* 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
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
package ru.... | liquidmetal/financisto | src/ru/orangesoftware/financisto/blotter/AccountTotalCalculationTask.java | Java | gpl-2.0 | 1,556 |
/*
* 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/drlvm/src/test/regression/H3784/Test.java | Java | gpl-2.0 | 1,852 |
package org.mt4jx.components.visibleComponents.layout.test;
import org.mt4j.MTApplication;
public class StartLayoutTest extends MTApplication {
private static final long serialVersionUID = 1L;
public static void main(String[] args) {
initialize();
}
@Override
public void startUp() {
addScene(ne... | hkaj/CoFITS | mt4j/MT4j Commons/src/org/mt4jx/components/visibleComponents/layout/test/StartLayoutTest.java | Java | gpl-2.0 | 386 |
/*
* @test /nodynamiccopyright/
* @bug 4607420
* @summary A bug in the original JSR14 generics specification
* created a loophole in the type system.
*
* @compile/fail/ref=Nonlinear.out -XDrawDiagnostics Nonlinear.java
*/
public class Nonlinear {
// This is an example of lack of type safety for
... | universsky/openjdk | langtools/test/tools/javac/generics/Nonlinear.java | Java | gpl-2.0 | 2,606 |
/**
Copyright (C) SYSTAP, LLC 2006-2015. All rights reserved.
Contact:
SYSTAP, LLC
2501 Calvert ST NW #106
Washington, DC 20008
licenses@systap.com
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 S... | smalyshev/blazegraph | bigdata/src/java/com/bigdata/io/SerializerUtil.java | Java | gpl-2.0 | 7,527 |
package generated.gio20.gio;
/**
* Opaque type
*
*/
public interface GIOModuleClass {
}
| gstreamer-java/gir2java | generated-src/generated/gio20/gio/GIOModuleClass.java | Java | gpl-3.0 | 98 |
package org.kontalk.xmppserver.registration.cognalys;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class CognalysVerifyClientTest {
private static final String APP_ID = "your-app-id";
private static final String TOKEN = "your-token";
// insert a value here t... | cgvarela/tigase-extension | src/test/java/org/kontalk/xmppserver/registration/cognalys/CognalysVerifyClientTest.java | Java | gpl-3.0 | 1,285 |
package com.github.bordertech.wcomponents;
import java.io.Serializable;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.fileupload.FileItem;
/**
* The interface that the Web framework needs to see from the HttpServletRequest. The support for "session scope"
* ... | marksreeves/wcomponents | wcomponents-core/src/main/java/com/github/bordertech/wcomponents/Request.java | Java | gpl-3.0 | 10,859 |
package com.encens.khipus.model.employees;
import com.encens.khipus.model.UpperCaseStringListener;
import com.encens.khipus.util.Constants;
import javax.persistence.*;
/**
* Entity for TeacherEvaluation
*
* @author Ariel Siles
*/
@NamedQueries(
{
@NamedQuery(name = "TeachersForCarrer.fin... | arielsiles/sisk1 | src/main/com/encens/khipus/model/employees/TeachersForCareer.java | Java | gpl-3.0 | 2,938 |
/*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2014 Dirk Beyer
* 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... | nishanttotla/predator | cpachecker/src/org/sosy_lab/cpachecker/cpa/invariants/formula/variablerelations/VariableLEQ.java | Java | gpl-3.0 | 4,983 |
package com.encens.khipus.action.employees;
import com.encens.khipus.framework.action.QueryDataModel;
import com.encens.khipus.model.employees.EvaluationCriteria;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
... | arielsiles/sisk1 | src/main/com/encens/khipus/action/employees/EvaluationCriteriaDataModel.java | Java | gpl-3.0 | 1,199 |
package net.webservicex;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para anonymous complex type.
*
* ... | jmanday/Informatica | DSD/Seminario/ClienteWeb/build/generated/jax-wsCache/CurrencyConvertor/net/webservicex/ConversionRate.java | Java | gpl-3.0 | 2,224 |
package in.shick.diode.reddits;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.apache.http.HttpEntity;
import org.apache.http.HttpException;
import org.apache.http.HttpResponse;
import org.apache.http.NameVal... | Protuhj/diode | app/src/main/java/in/shick/diode/reddits/UnsubscribeTask.java | Java | gpl-3.0 | 4,708 |