repo_name stringlengths 5 108 | path stringlengths 6 333 | size stringlengths 1 6 | content stringlengths 4 977k | license stringclasses 15
values |
|---|---|---|---|---|
Bysmyyr/chromium-crosswalk | chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpUploadService.java | 16460 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.crash;
import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import androi... | bsd-3-clause |
CraftSpider/RecycleRush2015-340-cRIO | NetBeansProjects/RecycleRush2015-340-Backdate/src/edu/wpi/first/wpilibj/templates/commands/StackerGrabTote.java | 3489 | package edu.wpi.first.wpilibj.templates.commands;
import edu.wpi.first.wpilibj.templates.RobotMap;
/**
* Command to send the stacker arm to a specific position
* @author Jakob W.
*/
public class StackerGrabTote extends CommandBase {
private int target;
private int tolerance;
private int initDelta;
private ... | bsd-3-clause |
codehaus/jbehave-git | jbehave-maven-plugin/src/main/java/org/jbehave/mojo/StepdocMojo.java | 550 | package org.jbehave.mojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.jbehave.core.StoryEmbedder;
/**
* Mojo to generate stepdocs
*
* @author Mauro Talevi
* @goal stepdoc
*/
public class StepdocMojo extends AbstractStoryMojo {
publi... | bsd-3-clause |
segengine/segeng | src/Seg.java | 111408 | package SegEngine.seg;
/**
* @file Seg.java
* @author SegEngine
* @date Sunday April 15 19:00:00 CST 2009
* @version 1.0.0
* @brief
*
**/
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.*;
import org.ap... | bsd-3-clause |
psh/Refuctoring | src/main/java/com/refuctor/example/HGetter.java | 166 | package com.refuctor.example;
public class HGetter extends AbstractGetter {
@Override
public String getStr() {
return getSpringProperty();
}
}
| bsd-3-clause |
bdezonia/zorbage | src/main/java/nom/bdezonia/zorbage/procedure/impl/AcoshL.java | 2529 | /*
* Zorbage: an algebraic data hierarchy for use in numeric processing.
*
* Copyright (c) 2016-2021 Barry DeZonia 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 so... | bsd-3-clause |
backesj/jkind | jkind/src/jkind/translation/compound/FlattenCompoundVariables.java | 4988 | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.Equation;
import jkind.lustre.Expr;
... | bsd-3-clause |
dcpang/fatline-libjingle | app/webrtc/java/android/org/webrtc/CameraEnumerationAndroid.java | 9079 | /*
* libjingle
* Copyright 2015 Google Inc.
*
* 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 fo... | bsd-3-clause |
NUBIC/psc-mirror | core/src/main/java/edu/northwestern/bioinformatics/studycalendar/xml/writers/StudyXmlSerializer.java | 8164 | package edu.northwestern.bioinformatics.studycalendar.xml.writers;
import edu.northwestern.bioinformatics.studycalendar.StudyCalendarValidationException;
import edu.northwestern.bioinformatics.studycalendar.domain.PlannedCalendar;
import edu.northwestern.bioinformatics.studycalendar.domain.Study;
import edu.northweste... | bsd-3-clause |
motech-implementations/bbc-nms | masterdata/src/main/java/org/motechproject/nms/masterdata/repository/CircleDataService.java | 612 | package org.motechproject.nms.masterdata.repository;
import org.motechproject.mds.annotations.Lookup;
import org.motechproject.mds.annotations.LookupField;
import org.motechproject.mds.service.MotechDataService;
import org.motechproject.nms.masterdata.domain.Circle;
/**
* This interface is used to operate on Circle ... | bsd-3-clause |
mhems/jhelp | src/com/binghamton/jhelp/JHelp.java | 1215 | package com.binghamton.jhelp;
import com.binghamton.jhelp.util.Logger;
import com.binghamton.jhelp.validators.*;
/**
* JHelp application entry point
*/
public class JHelp {
public static final String VERSION = "1.0.1";
/**
* Construct a new JHelp instance
*/
private JHelp() {
// prev... | bsd-3-clause |
jrialland/jrc | src/main/java/net/jr/jrc/qvm/syscalls/BasicIO.java | 838 | package net.jr.jrc.qvm.syscalls;
import java.io.IOException;
import java.io.Reader;
import java.io.Writer;
import net.jr.jrc.qvm.QvmInterpreter;
/**
* Created by julien on 10/10/16.
*/
public class BasicIO {
private Reader in;
private Writer out;
public BasicIO(Reader in, Writer out) {
this.... | bsd-3-clause |
DevilTech/RobotObserverer | src/edu/wpi/first/wpilibj/templates/JoyButton.java | 1400 |
package edu.wpi.first.wpilibj.templates;
import edu.wpi.first.wpilibj.Joystick;
public class JoyButton {
boolean[] buttonstates = new boolean[10];
final int a = 1;
final int b = 2;
final int x = 3;
final int y = 4;
final int lb = 5;
final int rb = 6;
final int ... | bsd-3-clause |
mikem2005/vijava | src/com/vmware/vim25/VmfsAmbiguousMount.java | 1773 | /*================================================================================
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 ... | bsd-3-clause |
tmr1/JavaGcUtils | src/tmr/utils/GcUtils.java | 7779 | /*
Copyright 2017 tmr
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 disclaimer.
2. Redistributions in... | bsd-3-clause |
exponentjs/exponent | android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/notifications/notifications/channels/AndroidXNotificationsChannelsProvider.java | 1844 | package abi44_0_0.expo.modules.notifications.notifications.channels;
import android.content.Context;
import abi44_0_0.expo.modules.notifications.notifications.channels.managers.AndroidXNotificationsChannelGroupManager;
import abi44_0_0.expo.modules.notifications.notifications.channels.managers.AndroidXNotificationsCh... | bsd-3-clause |
Griffins-1884/RobotCode2012 | WPILibJ/src/edu/wpi/first/wpilibj/Resource.java | 4624 | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | bsd-3-clause |
mhems/jhelp | src/com/binghamton/jhelp/types/NilType.java | 1256 | package com.binghamton.jhelp.types;
import java.util.Map;
import com.binghamton.jhelp.symbols.ClassSymbol;
/**
* A singleton class to represent the type of a null reference
*/
public final class NilType extends Type {
public static final NilType TYPE = new NilType();
/**
* Constructs a new NilType
... | bsd-3-clause |
patrickm/chromium.src | content/public/android/javatests/src/org/chromium/content/browser/ContentViewScrollingTest.java | 8069 | // Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.browser;
import android.content.res.Configuration;
import android.graphics.Canvas;
import android.os.SystemClock;
import and... | bsd-3-clause |
NCIP/i-spy | src/gov/nih/nci/ispy/web/helper/P53Retriever.java | 1969 | /*L
* Copyright SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/i-spy/LICENSE.txt for details.
*/
package gov.nih.nci.ispy.web.helper;
import gov.nih.nci.ispy.util.ispyConstants;
import java.util.ArrayList;
import java.util.Collection;
import java.u... | bsd-3-clause |
messagebird/java-rest-api | examples/src/main/java/ExampleReadBalance.java | 1414 | import com.messagebird.MessageBirdClient;
import com.messagebird.MessageBirdService;
import com.messagebird.MessageBirdServiceImpl;
import com.messagebird.exceptions.GeneralException;
import com.messagebird.exceptions.NotFoundException;
import com.messagebird.exceptions.UnauthorizedException;
import com.messagebird.obj... | bsd-3-clause |
thelateperseus/ant-ivy | src/java/fr/jayasoft/ivy/report/DownloadStatus.java | 699 | /*
* This file is subject to the license found in LICENCE.TXT in the root directory of the project.
*
* #SNAPSHOT#
*/
package fr.jayasoft.ivy.report;
/**
* @author x.hanin
*
*/
public class DownloadStatus {
private String _name;
private DownloadStatus(String name) {
_name = name;
... | bsd-3-clause |
NCIP/national-biomedical-image-archive | docs/analysis_and_design/5.1/CedaraAIMMapingTo3_0/code/com/mapforce/MappingConsole.java | 4099 | /*L
* Copyright SAIC, Ellumen and RSNA (CTP)
*
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
*/
/**
* MappingConsole.java
*
* This file was generated by MapForce 2011r2sp1.
*
* YOU SHOULD NOT MODIFY THI... | bsd-3-clause |
wysekm/DistributedSystemMonitoring | DSM-common/src/main/java/pl/edu/agh/dsm/common/repository/MeasurementRepositoryImpl.java | 1556 | package pl.edu.agh.dsm.common.repository;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import pl.edu.agh.dsm.common.dto.Measurement... | bsd-3-clause |
googleapis/api-client-staging | generated/java/proto-google-common-protos/src/main/java/com/google/api/ControlOrBuilder.java | 787 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/control.proto
package com.google.api;
public interface ControlOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.Control)
com.google.protobuf.MessageOrBuilder {
/**
* <pre>
* The service control ... | bsd-3-clause |
wsldl123292/jodd | jodd-vtor/src/main/java/jodd/vtor/constraint/MaxConstraint.java | 1151 | // Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved.
package jodd.vtor.constraint;
import jodd.typeconverter.Convert;
import jodd.vtor.ValidationConstraint;
import jodd.vtor.ValidationConstraintContext;
public class MaxConstraint implements ValidationConstraint<Max> {
public MaxConst... | bsd-3-clause |
xe1gyq/OpenAttestation | integration/api-client-jar/src/main/java/com/intel/mtwilson/client/cmd/GetHostTrust.java | 2316 | /*
* Copyright (c) 2013, Intel Corporation.
* All rights reserved.
*
* The contents of this file are released under the BSD license, you may not use this file except in compliance with the License.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that ... | bsd-3-clause |
rbielak/Java-Abra | src/org/ephman/examples/family/SystemCodes.java | 275 | package org.ephman.examples.family;
/**
* a ValidationCodes for example
* @version Tue Jan 15 14:20:14 EST 2002
* @author Paul Bethe
*/
public interface SystemCodes extends org.ephman.abra.validation.ValidationCodes {
public static final int INVALID_STATE = 100;
}
| bsd-3-clause |
aic-sri-international/aic-expresso | src/test/java/com/sri/ai/test/expresso/DefaultSymbolTest.java | 11110 | package com.sri.ai.test.expresso;
import java.math.MathContext;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.sri.ai.expresso.ExpressoConfiguration;
import com.sri.ai.expresso.helper.Expressions;
import com.sri.ai.util.math.Rational;
public class Default... | bsd-3-clause |
Uncodin/Android-Common | UncodinCommon-standalone/src/in/uncod/android/media/widget/AbstractMediaPickerFragment.java | 2019 | package in.uncod.android.media.widget;
import java.io.File;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.support.v4.app.Fragment;
/**
* Created by IntelliJ IDEA. User: ddrboxman Date: 4/4/12 Time: 1... | bsd-3-clause |
petablox-project/petablox | src/petablox/analyses/syntax/RelGotoInst.java | 630 | package petablox.analyses.syntax;
import soot.SootClass;
import soot.SootMethod;
import soot.Unit;
import soot.jimple.internal.JGotoStmt;
import petablox.program.visitors.IGotoInstVisitor;
import petablox.project.Petablox;
import petablox.project.analyses.ProgramRel;
@Petablox(name = "GotoInst", sign = "P0,P1:P0_P1"... | bsd-3-clause |
8kdata/javapostgres | java/helloJDBC/src/main/java/com/eightkdata/training/javapostgres/hellojdbc/main/_10/CountriesLanguageDAO.java | 2190 | /*
* Copyright (c) 2014, 8Kdata Technology
*/
package com.eightkdata.training.javapostgres.hellojdbc.main._10;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* @author Alvaro Hernandez <... | bsd-3-clause |
KingBowser/hatter-source-code | tools/btracescripts/main/src/ClassLoaderDefine.java | 490 | import com.sun.btrace.annotations.*;
import static com.sun.btrace.BTraceUtils.*;
@BTrace
public class ClassLoaderDefine {
@SuppressWarnings("rawtypes")
@OnMethod(clazz = "+java.lang.ClassLoader", method = "defineClass", location = @Location(Kind.RETURN))
public static void onClassLoaderDefine(@Return Clas... | bsd-3-clause |
orc-lang/orc | OrcSites/src/orc/lib/net/Ping.java | 1988 | //
// Ping.java -- Java class Ping
// Project OrcSites
//
// Copyright (c) 2016 The University of Texas at Austin. All rights reserved.
//
// Use and redistribution of this file is governed by the license terms in
// the LICENSE file found in the project's top-level directory and also found at
// URL: http://orc.csres.... | bsd-3-clause |
diLLec/Asterisk-ClickDial | javaSource/de/neue_phase/asterisk/ClickDial/controller/exception/QueryAlreadyRunningException.java | 169 | package de.neue_phase.asterisk.ClickDial.controller.exception;
/**
* Created by mky on 26.01.2015.
*/
public class QueryAlreadyRunningException extends Exception {
}
| bsd-3-clause |
endlessm/chromium-browser | chrome/android/java/src/org/chromium/chrome/browser/NavigationPopup.java | 13623 | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android... | bsd-3-clause |
winktoolkit/wink | utils/build/src/org/mozilla/intl/chardet/nsISO2022JPVerifier.java | 8538 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MP... | bsd-3-clause |
ariordan/ical4j | src/main/java/net/fortuna/ical4j/model/property/Contact.java | 4052 | /**
* Copyright (c) 2012, Ben Fortuna
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* o Redistributions of source code must retain the above copyright
* notice, this list of condit... | bsd-3-clause |
fresskarma/tinyos-1.x | tools/java/net/tinyos/sim/script/reflect/Mote.java | 5718 | // $Id: Mote.java,v 1.7 2004/04/14 18:30:31 mikedemmer Exp $
/*
*
*
* "Copyright (c) 2004 and The Regents of the University
* of California. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without written
* agree... | bsd-3-clause |
uwplse/Casper | bin/benchmarks/manual/bigλ/CyclingSpeed.java | 433 | package manual.bigλ;
import org.apache.spark.api.java.JavaRDD;
import scala.Tuple2;
import java.util.Map;
public class CyclingSpeed {
class Record {
public int fst;
public int snd;
public int emit;
public double speed;
}
public Map<Integer,Integer> cyclingSpeed(JavaRDD<Record> data){
return data.mapToP... | bsd-3-clause |
dvbu-test/PDTool | PDToolModules/src/com/cisco/dvbu/ps/deploytool/modules/ResourceCacheType.java | 4081 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016... | bsd-3-clause |
mkausas/SwervePOC | src/swerve/SwerveBase.java | 1875 | package swerve;
import edu.wpi.first.wpilibj.IterativeRobot;
import edu.wpi.first.wpilibj.Joystick;
/**
* Proof of concept for Swerve drive for FIRST ROBOTICS Competition
* Modified for use in FRC. Code adapted from Ether.
* @author Marty
*/
public class SwerveBase extends IterativeRobot {
private Joystick... | bsd-3-clause |
connoc1/CMonster2017 | src/org/usfirst/frc2084/CMonster2017/subsystems/DriveBase.java | 7925 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | bsd-3-clause |
magicDGS/thaplv | src/main/java/org/magicdgs/thaplv/haplotypes/light/LightGenotype.java | 9031 | /*
* Copyright (c) 2016, Daniel Gomez-Sanchez <daniel.gomez.sanchez@hotmail> 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 copyrig... | bsd-3-clause |
gamma9mu/SOMa | src/cs437/som/visualization/GreyScaleHeat.java | 611 | package cs437.som.visualization;
import java.awt.*;
/**
* A color progression from white (#FFFFFF) to black (#000000).
*/
public class GreyScaleHeat implements ColorProgression {
private static final float SCALE = 100.0f;
@Override
public Color getColor(int intensity) {
if (intensity < 0)
... | bsd-3-clause |
jarlehansen/no5-events-publisher | no5-events-publisher-api/src/main/java/no/appspartner/events/device/DeviceService.java | 632 | package no.appspartner.events.device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class DeviceService {
@Autowired
private DeviceRepository deviceRepository;
public Device storeDevice(Device device)... | bsd-3-clause |
JinMar/ComputerVision | src/main/java/cz/tul/bussiness/workers/EdgeDetectors.java | 1582 | package cz.tul.bussiness.workers;
import cz.tul.bussiness.jobs.EdgeDetectors.Canny;
import cz.tul.bussiness.jobs.EdgeDetectors.Laplacian;
import cz.tul.bussiness.jobs.EdgeDetectors.Sobel;
import cz.tul.bussiness.jobs.exceptions.MinimalArgumentsException;
import cz.tul.bussiness.jobs.exceptions.NoTemplateFound;
import ... | bsd-3-clause |
CapCaval/ccProjects | 01_src/test/test2components/numberproducer/impl/NumberProducerImpl.java | 2648 | /*
Copyright (C) 2012 by CapCaval.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, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... | mit |
pietermartin/sqlg | sqlg-test/src/main/java/org/umlg/sqlg/test/edges/TestCreateEdgeBetweenVertices.java | 4071 | package org.umlg.sqlg.test.edges;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.junit.Assert;
import org.junit.Test;
import org.umlg.sqlg.test.BaseTest;
import java.util.List;
/**
* Date: 2014/11/20
* Time: 9:31 PM
*/
public class TestCreateEdgeB... | mit |
OpenModularTurretsTeam/OMLib | src/api/java/dan200/computercraft/api/lua/ILuaObject.java | 2945 | /*
* This file is part of the public ComputerCraft API - http://www.computercraft.info
* Copyright Daniel Ratcliffe, 2011-2017. This API may be redistributed unmodified and in full only.
* For help using the API, and posting your mods, visit the forums at computercraft.info.
*/
package dan200.computercraft.api.lua... | mit |
mookkiah/java-design-patterns | flux/src/main/java/com/iluwatar/flux/action/ContentAction.java | 1477 | /*
* The MIT License
* Copyright © 2014-2019 Ilkka Seppälä
*
* 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... | mit |
aima-java/aima-java | aimax-osm/src/main/java/aimax/osm/data/WayNodeProvider.java | 568 | package aimax.osm.data;
import java.util.List;
import aimax.osm.data.entities.MapNode;
import aimax.osm.data.entities.MapWay;
/**
* Provides different abstractions of a way for rendering.
* @author Ruediger Lunde
*/
public interface WayNodeProvider {
/**
* Returns a list of nodes describing the sp... | mit |
CubeEngine/Dirigent | src/test/java/org/cubeengine/dirigent/formatter/CurrencyFormatterTest.java | 2339 | /*
* The MIT License
* Copyright © 2013 Cube Island
*
* 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... | mit |
stormtrooper28/EffectLib | src/main/java/de/slikey/effectlib/Effect.java | 10109 | package de.slikey.effectlib;
import de.slikey.effectlib.util.ParticleEffect;
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
import org.bukkit.util.Vector;
import java.lang.ref.WeakReference;
public abstract class ... | mit |
student-errant/mule-in-action-2e | chapter14/src/main/java/com/prancingdonkey/model/Address.java | 905 | package com.prancingdonkey.model;
public class Address {
String address1;
String address2;
String city;
String state;
String postalCode;
public String getAddress1() {
return address1;
}
public void setAddress1(String address1) {
this.address1 = address1;
}
... | mit |
OlegDokuka/spring-cloud-starter | jHipster/uaa/src/main/java/com/mycompany/myapp/web/rest/AuditResource.java | 3577 | package com.mycompany.myapp.web.rest;
import com.mycompany.myapp.service.AuditEventService;
import java.time.LocalDate;
import com.mycompany.myapp.web.rest.util.PaginationUtil;
import org.springframework.boot.actuate.audit.AuditEvent;
import org.springframework.data.domain.Page;
import org.springframework.data.domain... | mit |
selvasingh/azure-sdk-for-java | sdk/appplatform/mgmt-v2019_05_01_preview/src/main/java/com/microsoft/azure/management/appplatform/v2019_05_01_preview/ConfigServerSettings.java | 1102 | /**
* 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.appplatform.v2019_05_01_preview;
import com.fast... | mit |
gregwym/joos-compiler-java | testcases/a3/J1_typecheck_instanceof5.java | 253 | // TYPE_CHECKING
public class J1_typecheck_instanceof5 {
public J1_typecheck_instanceof5 () {}
public static int test() {
boolean b = true;
b = !(new Object() instanceof Object[]);
if (b)
return 123;
else
return 17;
}
}
| mit |
nicorsm/S3-16-simone | app/src/test/java/app/simone/multiplayer/FacebookManagerTest.java | 1633 | package app.simone.multiplayer;
import android.os.Bundle;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.mockito.Mockito;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.modules.junit4.PowerMockRunnerDelegate;
import akka.actor.ActorRef;
... | mit |
stoman/CompetitiveProgramming | problems/icecreamparlor/submissions/accepted/Stefan.java | 903 | //Author: Stefan Toman
import java.io.*;
import java.util.*;
public class Stefan {
static void solve(int[] arr, int money) {
HashMap<Integer, Integer> hs = new HashMap<Integer, Integer>();
for(int i = 0; i < arr.length; i++) {
if(hs.containsKey(arr[i])) {
System.out.fo... | mit |
rextrebat/ecloudmanager | ecloud-manager-ejb/src/main/java/org/ecloudmanager/domain/template/SshConfiguration.java | 5989 | /*
* MIT License
*
* Copyright (c) 2016 Altisource
*
* 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, modi... | mit |
navalev/azure-sdk-for-java | sdk/network/mgmt-v2018_12_01/src/main/java/com/microsoft/azure/management/network/v2018_12_01/AzureFirewallIPConfiguration.java | 4914 | /**
* 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.v2018_12_01;
import com.microsoft.azure.... | mit |
paoesco/walkingdog | walkingdog-services/src/main/java/com/hubesco/software/walkingdog/services/location/Map.java | 1415 | package com.hubesco.software.walkingdog.services.location;
import java.awt.Point;
import java.awt.Polygon;
import java.awt.Shape;
import java.awt.geom.Path2D;
import java.awt.geom.Point2D;
/**
* @author paoesco
*/
public class Map {
private final Point2D topLeft;
private final Point2D topRight;
private... | mit |
recena/github-api | src/main/java/org/kohsuke/github/GHDeployment.java | 2362 | package org.kohsuke.github;
import java.io.IOException;
import java.net.URL;
/**
* Represents a deployment
*
* @see <a href="https://developer.github.com/v3/repos/deployments/">documentation</a>
* @see GHRepository#listDeployments(String, String, String, String)
* @see GHRepository#getDeployment(long)
*/
public... | mit |
OmicronProject/BakeoutController | src/test/java/unit/main/app_configuration/Kernel.java | 412 | package unit.main.app_configuration;
import main.ApplicationConfiguration;
import org.junit.Test;
import static org.junit.Assert.assertNotNull;
/**
* Contains unit tests for {@link ApplicationConfiguration#kernel()}
*/
public final class Kernel extends AppConfigurationTestCase {
@Test
public void kernel(){... | mit |
jenkinsci/github-pullrequest-plugin | github-pullrequest-plugin/src/main/java/org/jenkinsci/plugins/github/pullrequest/GitHubPRMessage.java | 4399 | package org.jenkinsci.plugins.github.pullrequest;
import hudson.Extension;
import hudson.Util;
import hudson.model.AbstractBuild;
import hudson.model.AbstractDescribableImpl;
import hudson.model.Descriptor;
import hudson.model.Run;
import hudson.model.TaskListener;
import jenkins.model.Jenkins;
import org.jenkinsci.Sy... | mit |
manuel-zulian/Match-Point | trunk/src/java/it/gemmed/database/FindIscrizioneDatabase.java | 9473 | package it.gemmed.database;
import it.gemmed.resource.Giocatore;
import it.gemmed.resource.Iscrizione;
import it.gemmed.resource.Torneo;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* C... | mit |
JeffRisberg/BING01 | src/test/java/com/microsoft/bingads/api/test/entities/adgroup/write/BulkAdGroupWriteToRowValuesNativeBidAdjustmentTest.java | 1295 | package com.microsoft.bingads.api.test.entities.adgroup.write;
import com.microsoft.bingads.api.test.entities.adgroup.BulkAdGroupTest;
import com.microsoft.bingads.bulk.entities.BulkAdGroup;
import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer;
import org.junit.Test;
import org.junit.runner.RunWith;
i... | mit |
graphstream/gs-gephi | src-test/org/graphstream/stream/gephi/test/ExampleJSONStream.java | 3319 | /*
* Copyright (C) 2012 wumalbert
*
* 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, publish, ... | mit |
planetguy32/EnterpriseEnergyEquipment | src/api/java/li/cil/oc/api/machine/Machine.java | 9992 | package li.cil.oc.api.machine;
import li.cil.oc.api.network.ManagedEnvironment;
import java.util.Map;
/**
* This interface allows interacting with a Machine obtained via the factory
* method {@link li.cil.oc.api.Machine#create(MachineHost)}.
*/
@SuppressWarnings("unused")
public interface Machine extends ManagedE... | mit |
Elecs-Mods/RFTools | src/main/java/mcjty/rftools/blocks/logic/RedstoneReceiverBlock.java | 2405 | package mcjty.rftools.blocks.logic;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import mcjty.rftools.RFTools;
import mcp.mobius.waila.api.IWailaConfigHandler;
import mcp.mobius.waila.api.IWailaDataAccessor;
import net.minecraft.block.material.Material;
import net.minecraft.entity.play... | mit |
NorthFacing/Mapper | base/src/test/java/tk/mybatis/mapper/typehandler/User2.java | 987 | package tk.mybatis.mapper.typehandler;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @author liuzh
*/
@Table(name = "user")
public class User2 implements Serializable {
private static final long serialVersionUID = 1L;
@Id
... | mit |
navalev/azure-sdk-for-java | sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/IpFlowProtocol.java | 1258 | /**
* 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_04_01;
import java.util.Collection... | mit |
eriqadams/computer-graphics | lib/lwjgl-2.9.1/lwjgl-source-2.9.1/src/generated/org/lwjgl/opengl/GL43.java | 50945 | /* MACHINE GENERATED FILE, DO NOT EDIT */
package org.lwjgl.opengl;
import org.lwjgl.*;
import java.nio.*;
public final class GL43 {
/**
* No. of supported Shading Language Versions. Accepted by the <pname> parameter of GetIntegerv.
*/
public static final int GL_NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9;
... | mit |
gregwym/joos-compiler-java | testcases/a2/J1_3_SingleTypeImport_NoClash/Main.java | 146 | // TYPE_LINKING
import a.bc;
import ab.c;
public class Main {
public Main() {}
public static int test() {
return bc.test()+c.test();
}
}
| mit |
devopsmwas/javapractice | NetBeansProjects/practice/src/practice/DiceApp.java | 440 | public class DiceApp{
public static void main(String[] args){
int roll;
String msg = "Here are a Hundred random rolls of the dice";
System.out.println(msg);
for(int i =0; i <100;i++){
roll = randomInt(1,6);
System.out.print(roll + " ");
}
System.out.println();
}
public static ... | mit |
codeck/XChange | xchange-ripple/src/main/java/com/xeiam/xchange/ripple/service/polling/params/RippleTradeHistoryPreferredCurrencies.java | 516 | package com.xeiam.xchange.ripple.service.polling.params;
import java.util.Collection;
import com.xeiam.xchange.service.polling.trade.params.TradeHistoryParams;
/**
* Convert the Ripple trade currency pairs into having these preferred base or counter currency. Preferred base currency is considered first.
*/
public ... | mit |
gnomex/ESw1ControleJuridico-EJB | EJB e Negocio/ControleJuridicoDesktop/build/generated/jax-wsCache/ClienteWS/br/unioeste/controle/juridico/ws/cliente/ObterClientePeloID.java | 1143 |
package br.unioeste.controle.juridico.ws.cliente;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Classe Java de obterClientePeloID complex type.
*
* <p>O seguinte fragmento do esquema especifica o conteúdo espe... | mit |
NorthFacing/Mapper | weekend/src/test/java/tk/mybatis/mapper/weekend/WeekendSqlsTest.java | 3508 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2017 the original author or authors.
*
* 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 limitati... | mit |
najibghadri/NeuralNetworkSimulator | src/org/apache/commons/math3/ode/FieldODEStateAndDerivative.java | 3295 | /*
* 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 ... | mit |
mmohan01/ReFactory | data/jhotdraw/jhotdraw-5.2/CH/ifa/draw/standard/HandleTracker.java | 958 | /*
* @(#)HandleTracker.java 5.2
*
*/
package CH.ifa.draw.standard;
import java.awt.*;
import java.awt.event.MouseEvent;
import CH.ifa.draw.framework.*;
/**
* HandleTracker implements interactions with the handles
* of a Figure.
*
* @see SelectionTool
*/
public class HandleTracker extends AbstractTool {
... | mit |
ProfAmesBC/Game2013 | src/inventory/Item.java | 487 | // Items differ from Power-Ups because
// they are added to the inventory
// rather than being used immediately
package inventory;
import game.PlayerMotionWatcher;
import javax.media.opengl.GL2;
import javax.media.opengl.glu.GLU;
public interface Item extends PlayerMotionWatcher {
public void draw(GL2 ... | mit |
pivotal/jsunit | java/tests_core/net/jsunit/model/AbstractResultTest.java | 1413 | package net.jsunit.model;
import junit.framework.TestCase;
import org.jdom.Element;
import java.util.List;
public class AbstractResultTest extends TestCase {
public void testDisplayString() {
MyAbstractResult result = new MyAbstractResult();
result.setResultType(ResultType.FAILED_TO_LAUNCH);
... | mit |
mallowigi/material-theme-jetbrains | src/main/java/com/chrisrm/idea/icons/patchers/TasksIconsPatcher.java | 1543 | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Chris Magnussen and Elior Boukhobza
*
* 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 limitatio... | mit |
ria-ee/X-Road | src/common-test/src/main/java/ee/ria/xroad/common/HttpUtils.java | 7505 | /**
* 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... | mit |
b0noI/AIF2 | src/main/java/io/aif/language/word/comparator/OptimizedComparatorWrapper.java | 999 | package io.aif.language.word.comparator;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
class OptimizedComparatorWrapper implements IGroupComparator {
private final IGroupComparator setComparator;
OptimizedComparatorWrapper(IGroupComparator setComparator) {
this.setComparator =... | mit |
nlgcoin/guldencoin-official | src/frontend/android/unity_wallet/app/src/main/java/com/gulden/jniunifiedbackend/IAccountsListener.java | 878 | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from libunity.djinni
package com.gulden.jniunifiedbackend;
/** Interface to receive updates about accounts */
public abstract class IAccountsListener {
/** Notify that the active account has changed */
public abstract void onActiveAccount... | mit |
kaituo/sedge | trunk/src-kaituo/edu/umass/cs/pig/z3/PatternArrayTheirs.java | 266 | package edu.umass.cs.pig.z3;
import edu.umass.cs.z3.PatternArray;
import edu.umass.cs.z3.Z3JNI;
public class PatternArrayTheirs extends PatternArray {
public PatternArrayTheirs(int nrElements) {
super(Z3JNI.new_PatternArray(nrElements), false);
}
}
| mit |
kineticadb/kinetica-api-java | api/src/main/java/com/gpudb/protocol/AlterUserResponse.java | 4872 | /*
* This file was autogenerated by the GPUdb schema processor.
*
* DO NOT EDIT DIRECTLY.
*/
package com.gpudb.protocol;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.avro.Schema;
import org.apache.avro.SchemaBuilder;
import org.apache.avro.generic.GenericData;
import org.apache.avro.ge... | mit |
benas/jPopulator | easy-random-core/src/test/java/org/jeasy/random/ExclusionCheckerTest.java | 2197 | /**
* 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... | mit |
automenta/actrj | src/main/java/actr/model/Module.java | 176 | package actr.model;
/**
* Abstract class for an ACT-R module.
*
* @author Dario Salvucci
*/
public abstract class Module
{
void initialize () { }
void update () { }
}
| mit |
shardis/spring-angular2-starter | shardis-ui/src/main/java/com/shardis/ShardisUiApplication.java | 727 | package com.shardis;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ErrorPageRegistrar;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.Enabl... | mit |
lilongcnc/Android_Study | SQLite20161206/app/src/test/java/com/example/lauren/sqlite20161206/ExampleUnitTest.java | 411 | package com.example.lauren.sqlite20161206;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
... | mit |
mmohan01/ReFactory | data/jhotdraw/jhotdraw-5.4b2/CH/ifa/draw/samples/pert/PertFigure.java | 7445 | /*
* @(#)PertFigure.java
*
* Project: JHotdraw - a GUI framework for technical drawings
* http://www.jhotdraw.org
* http://jhotdraw.sourceforge.net
* Copyright: © by the original author(s) and all contributors
* License: Lesser GNU Public License (LGPL)
* http://www.opensource.org/licenses/lgpl-licen... | mit |
MolaynoxX/AMMP | src/main/java/de/molaynoxx/amperfi/ui/view/Viewable.java | 69 | package de.molaynoxx.amperfi.ui.view;
public interface Viewable {
}
| mit |
0x90sled/droidtowers | main/test/com/happydroids/droidtowers/achievements/AchievementEngineTest.java | 699 | /*
* Copyright (c) 2012. HappyDroids LLC, All rights reserved.
*/
package com.happydroids.droidtowers.achievements;
import com.happydroids.droidtowers.NonGLTestRunner;
import com.happydroids.droidtowers.types.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(NonGLTestRunn... | mit |
Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/fluent/models/MigrateMySqlStatusInner.java | 2546 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appservice.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.a... | mit |
navalev/azure-sdk-for-java | sdk/appplatform/mgmt-v2019_05_01_preview/src/main/java/com/microsoft/azure/management/appplatform/v2019_05_01_preview/OperationDetail.java | 1172 | /**
* 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.appplatform.v2019_05_01_preview;
import com.micr... | mit |
szpak/mockito | src/test/java/org/mockito/internal/verification/SmartPrinterTest.java | 2197 | /*
* Copyright (c) 2007 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.verification;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.inter... | mit |
georghinkel/ttc2017smartGrids | solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/Reservation/impl/TransmissionServiceImpl.java | 17328 | /**
*/
package gluemodel.CIM.IEC61970.Informative.Reservation.impl;
import gluemodel.CIM.IEC61970.Core.impl.IdentifiedObjectImpl;
import gluemodel.CIM.IEC61970.Informative.EnergyScheduling.AvailableTransmissionCapacity;
import gluemodel.CIM.IEC61970.Informative.EnergyScheduling.EnergySchedulingPackage;
import gluem... | mit |