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 gov.nih.nci.security.authorization.domainobjects;
import java.io.Serializable;
import java.util.Date;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
public class InstanceLevelMappin... | NCIP/cagrid | cagrid/Software/general/external/csmapi-42/api/src/gov/nih/nci/security/authorization/domainobjects/InstanceLevelMappingElement.java | Java | bsd-3-clause | 4,119 |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2016-2017 FIRST. 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... | pjreiniger/TempAllWpi | wpilibj/src/test/java/edu/wpi/first/wpilibj/PIDToleranceTest.java | Java | bsd-3-clause | 3,325 |
package net.intelie.lognit.cli.model;
public class Purge {
private final String id;
public Purge(String id) {
this.id = id;
}
public String getId() {
return id;
}
}
| intelie/lognit-cli | src/main/java/net/intelie/lognit/cli/model/Purge.java | Java | bsd-3-clause | 204 |
package MonkeyBrains.demo;
import com.jme3.ai.agents.Agent;
import com.jme3.ai.agents.behaviors.Behavior;
import com.jme3.ai.agents.behaviors.npc.SimpleMainBehavior;
import com.jme3.ai.agents.behaviors.npc.steering.ArriveBehavior;
import com.jme3.ai.agents.behaviors.npc.steering.CohesionBehavior;
import com.jme3.ai.ag... | MeFisto94/MonkeyBrains | demos/MBTestMultiThreading/src/MonkeyBrains/demo/DemoSingleThread.java | Java | bsd-3-clause | 9,046 |
/*
* Copyright (c) 2012-2015, Judison Oliveira Gil Filho <judison@gmail.com>
* 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 co... | judison/mongodm | mongodm/src/org/judison/mongodm/annotations/Transient.java | Java | bsd-3-clause | 1,869 |
// Generated from Y:\dis-timeintervaldataanalyzer\src\net\meisen\dissertation\impl\parser\query\generated\QueryGrammar.g4 by ANTLR 4.1
package net.meisen.dissertation.impl.parser.query.generated;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defin... | pmeisen/dis-timeintervaldataanalyzer | src/net/meisen/dissertation/impl/parser/query/generated/QueryGrammarListener.java | Java | bsd-3-clause | 35,564 |
package com.nbeckman.megabudget.adapters;
// An interface to be implemented by budget months.
// A month is something obvious, like January. But
// since other people might keep yearly or daily
// budgets (or something else?) consider a BudgetMonth
// to really be just some unit of time corresponding to
// a column (o... | nbeckman/nolacoaster | Megabudget/src/com/nbeckman/megabudget/adapters/BudgetMonth.java | Java | bsd-3-clause | 469 |
package eu.sarunas.atf.meta.testdata;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import eu.sarunas.atf.meta.sut.basictypes.CollectionStyle;
import eu.sarunas.projects.atf.metadata.generic.Type;
/**
* Test object for array type. Contains a list of aggregated test objects... | drme/atf | atf-eplug/src/eu/sarunas/atf/meta/testdata/TestObjectCollection.java | Java | bsd-3-clause | 1,487 |
package net.wjlafrance.grumble.commands;
import java.util.List;
import net.wjlafrance.grumble.data.User;
import net.wjlafrance.grumble.net.MessageSender;
public interface CommandProcessor {
void process(User user, String command, List<String> arguments, MessageSender messageSender);
}
| wjlafrance/grumble | grumble/src/main/java/net/wjlafrance/grumble/commands/CommandProcessor.java | Java | bsd-3-clause | 292 |
/**
* Copyright (C) 2000, 2001 Maynard Demmon, maynard@organic.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the
* following conditions are met:
*
* - Redistributions of source code must retain the above copyrig... | hashrock/JavaOutlineEditor | src/com/organic/maynard/outliner/menus/file/ExportSelectionFileMenuItem.java | Java | bsd-3-clause | 5,164 |
/*
* Copyright (c) 2009-2010, Sergey Karakovskiy and Julian Togelius
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
*... | kavanj/marioai | src/ch/idsia/scenarios/Main.java | Java | bsd-3-clause | 3,174 |
//
// Depot library - a Java relational persistence library
// https://github.com/threerings/depot/blob/master/LICENSE
package com.samskivert.depot;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Contains a reference to the log object used by this package.
*/
public class Log
{
public s... | threerings/depot | src/main/java/com/samskivert/depot/Log.java | Java | bsd-3-clause | 1,895 |
package com.github.virgo47.enumconv._3refined;
public class SomeEntityTypeConverter extends EnumAttributeConverter<SomeEntityType, Integer> {
@Override
public SomeEntityType convertToEntityAttribute(Integer integer) {
return SomeEntityType.fromDbValue(integer);
}
}
| virgo47/java-enum-conversion | src/com/github/virgo47/enumconv/_3refined/SomeEntityTypeConverter.java | Java | bsd-3-clause | 272 |
package edu.northwestern.bioinformatics.studycalendar.domain;
import edu.northwestern.bioinformatics.studycalendar.StudyCalendarSystemException;
import edu.northwestern.bioinformatics.studycalendar.tools.Range;
import edu.northwestern.bioinformatics.studycalendar.tools.MutableRange;
import gov.nih.nci.cabig.ctms.domai... | NUBIC/psc-mirror | domain/src/main/java/edu/northwestern/bioinformatics/studycalendar/domain/ScheduledStudySegment.java | Java | bsd-3-clause | 7,824 |
// Frame to hold an OffCenterPanel
import java.awt.*;
import javax.swing.*;
public class OffCenter extends JFrame {
private OffCenterPanel myPanel;
public OffCenter() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle("Off Center");
myPanel = new OffCenterPanel();
getContentPane().... | shasdemir/JavaBook-Projects | Off Center (Adapters Inheritance)/src/OffCenter.java | Java | bsd-3-clause | 475 |
package mbarix4j.net;
import java.io.File;
import java.net.URL;
import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*
* URLUtilTest.java
*
* Created on March 8, 2007, 1:54 PM
*
* To change this template, choose Tools | Template Manager
* and open the template... | hohonuuli/mbarix4j | src/test/java/mbarix4j/net/URLUtilTest.java | Java | bsd-3-clause | 1,217 |
/*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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 o... | sailajaa/CONNECT | Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/patientcorrelation/nhinc/config/ConfigurationManager.java | Java | bsd-3-clause | 6,433 |
package com.jme3.system.jopenvr;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* <i>native declaration : headers\openvr_capi.h:1085</i><br>
* This file was autogenerated by <a href="http://jnaerator.googlecode.com/">JNAerator</a>,<br>
* a tool w... | atomixnmc/jmonkeyengine | jme3-vr/src/main/java/com/jme3/system/jopenvr/VREvent_PerformanceTest_t.java | Java | bsd-3-clause | 1,344 |
/*
* Copyright (c) 2014 Intellibins authors
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the... | prt2121/NYC-Glass-Challenge-Oct2014 | app/src/main/java/com/intellibins/glassware/model/nyc/Metadata.java | Java | bsd-3-clause | 2,221 |
/*L
* Copyright Oracle Inc
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
*/
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-06 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist.sourceforge.net
*... | NCIP/cadsr-cgmdr-nci-uk | src/org/exist/xquery/functions/request/GetCookieNames.java | Java | bsd-3-clause | 3,497 |
package org.datagr4m.gui.editors.settings;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
imp... | datagr4m/org.datagr4m | datagr4m-application/src/main/java/org/datagr4m/gui/editors/settings/ForceLayoutEditorUI.java | Java | bsd-3-clause | 11,690 |
package render.strategies;
import java.awt.Color;
import geometry.Ray;
import geometry.Vector3;
import lighting.Light;
import lighting.Material;
import model.IModel;
import render.Camera;
import scene.Scene;
import tools.RaycastHit;
public class PhongStrategy extends RenderStrategy {
public PhongStr... | DonIsaac/Raytrace-Renderer | src/render/strategies/PhongStrategy.java | Java | bsd-3-clause | 1,884 |
/**
* Copyright (c) 2014, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice... | ctsidev/SecureWise | Wise/src/edu/ucla/wise/admin/console/ReassignWati.java | Java | bsd-3-clause | 3,394 |
/*
* Copyright (c) 2013, Pavel Lechev
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1) Redistributions of source code must retain the above copyright notice, this list of... | plechev/jmockring | jmockring-core/src/main/java/org/jmockring/spi/MockProviderSPI.java | Java | bsd-3-clause | 2,949 |
package knightnews.android;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.Gravity;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ImageVie... | JimVanG/KnightNews_Android | homeActivity/src/main/java/knightnews/android/FirstTimeDialog.java | Java | bsd-3-clause | 2,184 |
package net.nationalfibre.amqphdfs;
import com.rabbitmq.client.AMQP;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Consumer;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStreamWriter;
im... | instaclick/amqp-to-hdfs-shovel | src/main/java/net/nationalfibre/amqphdfs/Shovel.java | Java | bsd-3-clause | 7,299 |
/**
* Copyright (C) 2004-2016, GoodData(R) Corporation. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
package com.gooddata.dataset;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import co... | liry/gooddata-java | src/main/java/com/gooddata/dataset/Uploads.java | Java | bsd-3-clause | 1,222 |
package edu.wpi.first.wpilib.javainstaller.controllers;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.SocketTimeoutExcepti... | 333fred/java-installer | src/main/java/edu/wpi/first/wpilib/javainstaller/controllers/InternetController.java | Java | bsd-3-clause | 9,370 |
package score ;
import java.util.*;
import network.* ;
public class PathPrecisionScorer{
public static double getEdgePrecision( Network scorePath, Network predictPath ){
double totalScoreEdges = (double ) predictPath.getEdgeCount();
double correctEdges = 0.0;
if( totalScoreEdges == 0.0 ) return 0.0;
for( Lo... | tsungtingkuo/diffusion | src/score/PathPrecisionScorer.java | Java | bsd-3-clause | 1,134 |
/*L
* Copyright Oracle Inc
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details.
*/
/*
* eXist Open Source Native XML Database
* Copyright (C) 2001-06 Wolfgang M. Meier
* wolfgang@exist-db.org
* http://exist.sourcef... | NCIP/cadsr-cgmdr-nci-uk | src/org/exist/xquery/functions/system/GetExistHome.java | Java | bsd-3-clause | 2,483 |
//Copyright (c) 2010, University of Memphis
//All rights reserved.
//
//Redistribution and use in source and binary forms, with or without modification, are permitted provided
//that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this list of condit... | nesl/FieldStream-AntRadio | src/org/fieldstream/service/sensor/virtual/IEratioCalculationNew.java | Java | bsd-3-clause | 3,534 |
/*
* This file is part of the Jikes RVM project (http://jikesrvm.org).
*
* This file is licensed to You under the Common Public License (CPL);
* You may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.opensource.org/licenses/cpl1.0.php
*... | ut-osa/laminar | jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/common/ExceptionTable.java | Java | bsd-3-clause | 3,364 |
package abi39_0_0.expo.modules.updates;
import android.content.Context;
import abi39_0_0.org.unimodules.core.interfaces.InternalModule;
import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Map;
// these unused imports must stay because of versioning
import expo.modules.updates.... | exponent/exponent | android/versioned-abis/expoview-abi39_0_0/src/main/java/abi39_0_0/expo/modules/updates/UpdatesService.java | Java | bsd-3-clause | 2,333 |
/*
* Copyright (c) 2002-2021, City of Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the f... | rzara/lutece-core | src/java/fr/paris/lutece/portal/web/xpages/XPageApplicationEntry.java | Java | bsd-3-clause | 4,949 |
/*L
* Copyright Washington University in St. Louis
* Copyright SemanticBits
* Copyright Persistent Systems
* Copyright Krishagni
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catissue-advanced-query/LICENSE.txt for details.
*/
package edu.wustl.quer... | NCIP/catissue-advanced-query | software/AdvancedQuery/src/main/java/edu/wustl/query/bizlogic/CreateUIFromQueryObjectBizLogic.java | Java | bsd-3-clause | 442 |
package edu.northwestern.bioinformatics.studycalendar.dao.auditing;
import edu.northwestern.bioinformatics.studycalendar.core.DaoTestCase;
import gov.nih.nci.cabig.ctms.audit.domain.DataAuditEventValue;
import org.springframework.jdbc.core.ResultSetExtractor;
import java.sql.ResultSet;
import java.sql.SQLException;
... | NUBIC/psc-mirror | core/src/test/java/edu/northwestern/bioinformatics/studycalendar/dao/auditing/AuditEventListenerTestCase.java | Java | bsd-3-clause | 2,141 |
/*
* Copyright (c) 2004-2021, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list o... | dhis2/dhis2-android-sdk | core/src/main/java/org/hisp/dhis/android/core/relationship/RelationshipTypeTableInfo.java | Java | bsd-3-clause | 2,873 |
package com.saintsrobotics.treeshirtcannon.commands.firing;
import com.saintsrobotics.treeshirtcannon.Robot;
import com.saintsrobotics.treeshirtcannon.commands.CommandBase;
/**
* Sets a valve to a value and then delays.
*
* <p>Note that the delay is increased by the time it takes for the valve to
* close, which ... | SaintsRobotics/TreeShirtCannon-2015 | src/com/saintsrobotics/treeshirtcannon/commands/firing/ValveCommand.java | Java | bsd-3-clause | 3,461 |
/**
* This file is part of the XP-Framework
*
* XP-Framework Maven plugin
* Copyright (c) 2011, XP-Framework Team
*/
package net.xp_forge.maven.plugins.xp;
import java.io.File;
import java.io.IOException;
import java.util.List;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecuti... | xp-forge/xp-maven-plugin | src/main/java/net/xp_forge/maven/plugins/xp/IgniteMojo.java | Java | bsd-3-clause | 5,589 |
package com.threecore.project.operator.event;
import org.apache.commons.lang3.SerializationUtils;
import org.junit.Test;
import com.threecore.project.SimpleTest;
public class TestActiveEventPostCommentMapper extends SimpleTest {
@Test
public void serialization() {
SerializationUtils.serialize(new ActiveEventPos... | 3Cores/sostream | src/test/java/com/threecore/project/operator/event/TestActiveEventPostCommentMapper.java | Java | bsd-3-clause | 345 |
/**
*============================================================================
* The Ohio State University Research Foundation, Emory University,
* the University of Minnesota Supercomputing Institute
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cagrid-grid-incubation... | NCIP/cagrid-grid-incubation | grid-incubation/incubator/projects/csm/projects/csm/src/org/cagrid/gaards/csm/common/CSMConstantsBase.java | Java | bsd-3-clause | 1,187 |
package minewebsocket.org.java_websocket.drafts;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Random;
import minewebsocket.org.java_websocket.exceptions.InvalidDataException;
import minewebsocket.org.java_websocket.exceptions.InvalidFra... | charles-d-burton/java_websocket_example | src/minewebsocket/org/java_websocket/drafts/Draft_75.java | Java | bsd-3-clause | 7,155 |
// Copyright (c) 2009 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.sdk.internal.v8native.protocol.input.data;
import org.chromium.protocolReader.JsonType;
@JsonType
public interface ContextData ... | develar/chromedevtools | v8/protocol/src/org/chromium/sdk/internal/v8native/protocol/input/data/ContextData.java | Java | bsd-3-clause | 357 |
package org.sana.android.service;
import android.app.Service;
/**
* Provides callbacks for connecting and disconnecting to a Service
*
* @param <T> a Service subclass to connect to and disconnect from
* @author Sana Development Team
*/
public interface ServiceListener<T extends Service> {
void onConnect(T se... | SanaMobile/sana.mobile | app/src/main/java/org/sana/android/service/ServiceListener.java | Java | bsd-3-clause | 365 |
package bytelang.compiler.annotations;
public class AnnotationCodeAttribute extends AnnotationAttribute {
//
}
| tzima/Bytelang | Bytelang/src/bytelang/compiler/annotations/AnnotationCodeAttribute.java | Java | bsd-3-clause | 113 |
/*
* Copyright (c) 2016, Amanj Sherwany <http://www.amanj.me>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, t... | amanjpro/splittimer | app/src/main/java/me/amanj/splittimer/model/SplitTimerFragmentAdapter.java | Java | bsd-3-clause | 3,254 |
package com.alexrnl.jseries.request.episodes;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.HashSet;
import org.junit.Before;
import org.junit.Test;
import com.alexrnl.jseries.request.Request;
import com.alexrnl.jseries.request.Verb;
import com.alexrnl.jseries.request.parame... | AlexRNL/jSeries | src/test/java/com/alexrnl/jseries/request/episodes/EpisodeScrapeTest.java | Java | bsd-3-clause | 1,271 |
package synergynet3.apps.numbernet.network;
import java.util.logging.Logger;
import multiplicity3.input.MultiTouchInputComponent;
import synergynet3.cluster.sharedmemory.DistributedPropertyChangedAction;
import synergynet3.web.apps.numbernet.comms.table.NumberNetStudentTableClusteredData;
import com.hazelcast.core.M... | synergynet/synergynet3.1 | synergynet3.1-parent/synergynet3-numbernet-table/src/main/java/synergynet3/apps/numbernet/network/MultiTouchEnabledSync.java | Java | bsd-3-clause | 1,672 |
/*
* Copyright (c) 2008, Sun Microsystems, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice... | oliverlietz/bd-j | DiscCreationTools/net.java.bd.tools.playlist/src/main/java/net/java/bd/tools/playlist/PrimaryAudioStreamEntry.java | Java | bsd-3-clause | 4,519 |
/*
* Copyright (c) 2002-2022, City of Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the f... | lutece-platform/lutece-core | src/java/fr/paris/lutece/portal/service/template/CommonsService.java | Java | bsd-3-clause | 6,689 |
package io.compgen.ngsutils.tabix;
import java.io.File;
import java.io.IOException;
import java.nio.channels.FileChannel;
import java.util.Iterator;
import java.util.zip.DataFormatException;
import io.compgen.common.StringLineReader;
import io.compgen.ngsutils.annotation.GenomeSpan;
import io.compgen.ngsutils.support... | compgen-io/ngsutilsj | src/java/io/compgen/ngsutils/tabix/TabixFile.java | Java | bsd-3-clause | 8,445 |
package com.prt2121.streamy.ui;
import com.prt2121.streamy.R;
import com.prt2121.streamy.data.StreamyContract;
import com.prt2121.streamy.data.StreamyContract.TrackEntry;
import com.prt2121.streamy.media.MusicEvent;
import com.prt2121.streamy.media.MusicService;
import com.prt2121.streamy.media.MusicStateEvent;
import... | prt2121/Streamy | app/src/main/java/com/prt2121/streamy/ui/TrackDialogFragment.java | Java | bsd-3-clause | 11,832 |
// Copyright 2016 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.net;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.chromium.net.CronetT... | endlessm/chromium-browser | components/cronet/android/test/javatests/src/org/chromium/net/DiskStorageTest.java | Java | bsd-3-clause | 9,311 |
package com.nbouma.jsonldjava.core;
/**
* Created by noah on 09/04/17.
*/
/**
* URI Constants used in the JSON-LD parser.
*/
public final class JsonLdConsts {
public static final String RDF_SYNTAX_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
public static final String RDF_SCHEMA_NS = "http://www.w... | boumba100/JsonldAndroid | src/main/java/com/nbouma/jsonldjava/core/JsonLdConsts.java | Java | bsd-3-clause | 3,015 |
package za.org.grassroot.services.group;
import com.google.common.collect.Sets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.security.access.AccessDeniedException;
import o... | mokoka/grassroot-platform | grassroot-services/src/main/java/za/org/grassroot/services/group/GroupJoinRequestManager.java | Java | bsd-3-clause | 13,734 |
/**
* Copyright (c) 2016-2020, Mihai Emil Andronache
* All rights reserved.
* <p>
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list... | decorators-squad/camel | src/main/java/com/amihaiemil/eoyaml/JsonYamlDump.java | Java | bsd-3-clause | 2,737 |
package org.picocontainer.doc.caching;
import junit.framework.TestCase;
import org.picocontainer.alternatives.CachingPicoContainer;
import org.picocontainer.alternatives.ImplementationHidingCachingPicoContainer;
import org.picocontainer.defaults.DefaultPicoContainer;
import org.picocontainer.defaults.ConstructorInject... | picocontainer/PicoContainer1 | container/src/test/org/picocontainer/doc/caching/BasicCachingExampleTestCase.java | Java | bsd-3-clause | 4,671 |
/*
* ResultNotFoundException.java
*
* Created on August 18, 2000, 9:45 AM
*/
package jpl.mipl.spice.jni;
/**
*
* @author mpb
* @version
*/
public class ResultNotFoundException extends Exception {
/**
* Creates new <code>ResultNotFoundException</code> without detail message.
*/
public Resu... | marrocamp/nasa-VICAR | vos/java/jpl/mipl/spice/jni/ResultNotFoundException.java | Java | bsd-3-clause | 577 |
package net.fusemc.zcore.featureSystem.features.trailFeature;
import me.johnking.jlib.JLib;
import me.johnking.jlib.protocol.PacketType;
import me.johnking.jlib.protocol.event.ProtocolPacket;
import me.johnking.jlib.protocol.wrappers.WrappedDataWatcher;
import me.johnking.jlib.reflection.ReflectionUtil;
import me.mich... | FuseMCNetwork/ZCore | src/main/java/net/fusemc/zcore/featureSystem/features/trailFeature/Trail.java | Java | bsd-3-clause | 5,416 |
/*
* Copyright (c) 2002-2021, City of Paris
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* and the f... | rzara/lutece-core | src/test/java/fr/paris/lutece/portal/web/PortalJspBeanTest.java | Java | bsd-3-clause | 5,592 |
package edu.neu.nutrons.reboundrumble.commands.drivetrain;
import edu.neu.nutrons.reboundrumble.commands.TimedEndConditionCmd;
import edu.neu.nutrons.reboundrumble.subsystems.DriveTrain;
/**
* Control drive train with joysticks, tank style.
*
* @author Ziv
*/
public class DTSpinCmd extends TimedEndCondi... | vizziv/Nutrons2012 | src/edu/neu/nutrons/reboundrumble/commands/drivetrain/DTSpinCmd.java | Java | bsd-3-clause | 1,377 |
package com.thalesgroup.tcs.tai.gwcalipso;
import org.eclipse.californium.core.CoapResource;
import org.eclipse.californium.core.CoapServer;
import org.eclipse.californium.core.server.resources.CoapExchange;
import org.glassfish.grizzly.http.server.HttpServer;
import org.junit.After;
import org.junit.Before;
import ... | sieben/gateway-calipso | src/test/java/com/thalesgroup/tcs/tai/gwcalipso/ServersTest.java | Java | bsd-3-clause | 2,143 |
package com.squid314.examples.collections;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.Collections2;
import com.google.common.collect.FluentIterable;
import com.google... | squid314/syntax-comparison-example | src/main/java/com/squid314/examples/collections/UserService.java | Java | bsd-3-clause | 20,220 |
/*
Copyright 2006 Jerry Huxtable
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... | lisa-lab/pings | client/globe/com/jhlabs/map/layer/LinkLayer.java | Java | bsd-3-clause | 968 |
// Copyright 2020 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.xsurface;
import android.content.Context;
import androidx.annotation.Nullable;
/**
* Provides logging and context ... | endlessm/chromium-browser | chrome/browser/xsurface/android/java/src/org/chromium/chrome/browser/xsurface/SurfaceDependencyProvider.java | Java | bsd-3-clause | 750 |
/**
* Copyright (c) 2013, 2016, The Regents of the University of California, The Cytoscape Consortium
* 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 m... | ndexbio/ndex-common | src/main/java/org/ndexbio/xgmml/parser/handler/HandleEdgeDone.java | Java | bsd-3-clause | 2,186 |
package org.jbehave.examples.trader.steps;
import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.When;
public class AndSteps {
@Given("the wind blows")
public void givenWindBlows() {
System.err.println("given the wind blows");
}
@When("the wind blows")
public void whenWindBlows() {
... | vactowb/jbehave-core | examples/trader/src/main/java/org/jbehave/examples/trader/steps/AndSteps.java | Java | bsd-3-clause | 368 |
package org.grassroot.android.activities;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
/**
* Created by luke on 2017/02/01.
*/
public class PaymentHandlingActivity extends Activity {
private static final String TAG = PaymentHandlingActivity.class.getSimpleName();
@... | grassrootza/grassroot-android | app/src/main/java/org/grassroot/android/activities/PaymentHandlingActivity.java | Java | bsd-3-clause | 779 |
package org.hollowcraft.model;
/*
* HollowCraft License
* Copyright (c) 2010 Caleb Champlin.
* All rights reserved
* This license must be include in all copied, cloned and derived works
*/
/*
* OpenCraft License
*
* Copyright (c) 2009 Graham Edgecombe, S�ren Enevoldsen and Brett Russell.
* All rights rese... | Mediator/HollowCraft | src/org/hollowcraft/model/ClassicLevel.java | Java | bsd-3-clause | 7,651 |
package gov.nih.nci.evs.api;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Automates JUnit testing of equals and hashcode methods.
*/
public class CopyConstructo... | NCIEVS/evsrestapi | src/test/java/gov/nih/nci/evs/api/CopyConstructorTester.java | Java | bsd-3-clause | 5,530 |
package com.smartdevicelink.test.rpc.enums;
import com.smartdevicelink.proxy.rpc.enums.LayoutMode;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* This is a unit test class for the SmartDeviceLink library project class :
* {@link com.smartdeviceli... | smartdevicelink/sdl_android | android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/LayoutModeTests.java | Java | bsd-3-clause | 2,952 |
package com.icosillion.podengine.models;
import org.dom4j.Attribute;
import org.dom4j.Element;
public class CloudInfo {
private final Element cloudElement;
//Caching
private String domain, path, registerProcedure, protocol;
private Integer port;
public CloudInfo(Element cloudElement) {
... | MarkusLewis/Podcast-Feed-Library | src/main/java/com/icosillion/podengine/models/CloudInfo.java | Java | mit | 2,216 |
/*******************************************************************************
* The MIT License (MIT)
* Copyright (c) 2015 Frank Benoit, Stuttgart, Germany <fr@nk-benoit.de>
*
* See the LICENSE.md or the online documentation:
* https://docs.google.com/document/d/1Wqa8rDi0QYcqcf0oecD8GW53nMVXj3ZFSmcF81zAa8g/edi... | keinfarbton/Chabu | java/org.chabu/src/org/chabu/prot/v1/internal/PacketType.java | Java | mit | 1,057 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2010.1... | ProfAmesBC/Game2013 | src/jaxb/CgSamplerRECT.java | Java | mit | 1,067 |
package com.viesis.viescraft.client.entity.render.projectile;
import com.viesis.viescraft.common.entity.airshipitems.EntityItemAirshipV2;
import com.viesis.viescraft.init.InitItemsVC;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.Tesse... | Weisses/Ebonheart-Mods | ViesCraft/1.12.2 - 2491/src/main/java/com/viesis/viescraft/client/entity/render/projectile/RenderItemAirshipV2.java | Java | mit | 3,765 |
/**
* JWave is distributed under the MIT License (MIT); this file is part of.
*
* Copyright (c) 2008-2015 Christian Scheiblich (cscheiblich@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | Sciss/JWave | src/main/java/jwave/datatypes/spaces/SpaceHash.java | Java | mit | 6,364 |
package org.colorcoding.ibas.bobas.bo;
public interface IBOMasterDataLine extends IBusinessObject, IBOLine, IBOStorageTag {
/**
* 主要的主键名称
*/
final static String MASTER_PRIMARY_KEY_NAME = "Code";
/**
* 获取-编码 主键
*
* @return
*/
String getCode();
/**
* 设置-编码 主键
... | color-coding/ibas-framework | bobas.businessobjectscommon/src/main/java/org/colorcoding/ibas/bobas/bo/IBOMasterDataLine.java | Java | mit | 632 |
package com.kuas.ap.donate;
public class ScoreList {
String ID;
String Midterm;
String Final;
public ScoreList(String ID, String Midterm, String Final)
{
this.ID = ID.replace(" ","");
this.Midterm = Midterm.replace(" ","");
this.Final = Final.replace(" ","");
}
} | hearsilent/KUAS-AP | KUAS_AP_Donate/app/src/main/java/com/kuas/ap/donate/ScoreList.java | Java | mit | 315 |
package edu.columbia.cs.psl.phosphor.instrumenter;
import java.util.HashSet;
import org.objectweb.asm.Type;
import edu.columbia.cs.psl.phosphor.Configuration;
import edu.columbia.cs.psl.phosphor.Instrumenter;
import edu.columbia.cs.psl.phosphor.TaintUtils;
import edu.columbia.cs.psl.phosphor.instrumenter.analyzer.Ne... | mikefhsu/phosphor | Phosphor/src/edu/columbia/cs/psl/phosphor/instrumenter/StringTaintVerifyingMV.java | Java | mit | 8,013 |
/*
* The MIT License
*
* Copyright (c) 2010-2015 Jeevanandam M. (myjeeva.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the ... | Milstein/digitalocean-api-java | src/main/java/com/myjeeva/digitalocean/pojo/Regions.java | Java | mit | 1,870 |
package ch.levkev.omeganote.modelling.interfaces;
/**
* Is responsible for processing markdown section
* plaintext files into HTML strings.
*/
public interface IMarkdownProcessor {
public String markdownToHtml(String markdownContent);
}
| levkev/fireup-editor | src/main/java/ch/levkev/omeganote/modelling/interfaces/IMarkdownProcessor.java | Java | mit | 242 |
package Jan2021Leetcode;
public class _0718MaximumLengthOfRepeatedSubarray {
public static void main(String[] args) {
System.out.println(findLength(new int[] { 1, 2, 3, 2, 1 }, new int[] { 3, 2, 1, 4, 7 }));
}
public static int findLength(int[] A, int[] B) {
StringBuilder sb = new StringBuilder("/");
for (in... | darshanhs90/Java-InterviewPrep | src/Jan2021Leetcode/_0718MaximumLengthOfRepeatedSubarray.java | Java | mit | 827 |
package ${package};
import org.junit.Test;
import org.safris.commons.cli.OptionsException;
public class MainTest {
@Test
public void testOptions() throws OptionsException {
Main.main(new String[] {"--colors", "red,blue,orange", "--silent", "file1.txt", "file1.txt", "file1.txt"});
Main.main(new String[0]);... | safris-src/org | lib4j/maven/archetype/cli-maven-archetype/src/main/resources/archetype-resources/src/test/java/MainTest.java | Java | mit | 326 |
//========================================================================
//Copyright 2006 Mort Bay Consulting Pty. Ltd.
//------------------------------------------------------------------------
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the... | napcs/qedserver | jetty/modules/jetty/src/main/java/org/mortbay/jetty/HttpURI.java | Java | mit | 16,711 |
package com.neong.voice.model.base;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.amazon.speech.speechlet.IntentRequest;
import com.amazon.speech.speechlet.Session;
import com.amazon.speech.speechlet.SpeechletResponse;
import com.amazon.speech.... | CS370-AlexaProject/Hello-World | Template_Skill/src/main/java/com/neong/voice/model/base/Conversation.java | Java | mit | 5,788 |
/*
* Copyright (c) 2006-2017 DMDirc Developers
*
* 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,... | DMDirc/Plugins | ui_swing/src/main/java/com/dmdirc/addons/ui_swing/components/colours/OptionalColourChooser.java | Java | mit | 7,174 |
package ts.client.refactors;
import java.util.List;
import ts.client.Location;
import ts.client.codefixes.FileCodeEdits;
public class RefactorEditInfo {
private List<FileCodeEdits> edits;
/**
* An optional location where the editor should start a rename operation once
* the refactoring edits hav... | angelozerr/typescript.java | core/ts.core/src/ts/client/refactors/RefactorEditInfo.java | Java | mit | 622 |
package com.mozu.qbintegration.model;
public class QBSession {
String id;
String key;
String pwd;
public String getId() {
return "Session";
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getPwd() {
return pwd;
}
pu... | mozu-customer-success/Mozu.Integrations.Quickbooks | src/main/java/com/mozu/qbintegration/model/QBSession.java | Java | mit | 384 |
/*
* User.java
*
* This file is part of the Sorcix Java IRC Library (sIRC).
*
* Copyright (C) 2008-2010 Vic Demuzere http://sorcix.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 Sof... | sorcix/sIRC | src/main/java/com/sorcix/sirc/User.java | Java | mit | 10,890 |
package groupseven.kitchen.database;
import android.provider.BaseColumns;
/**
* Created by acer on 30-03-2017.
*/
public final class InventoryContract {
private InventoryContract(){}
public static class InventoryEntry implements BaseColumns {
public static final String TABLE_NAME = "inventory";
... | patrikmolsson/group-seven | androidApp/app/src/main/java/groupseven/kitchen/database/InventoryContract.java | Java | mit | 471 |
package com.taodian.route;
public class RouteException extends Exception {
public RouteException(String string) {
super(string);
}
}
| emop/ClickGate | src/main/java/com/taodian/route/RouteException.java | Java | mit | 142 |
/**
* 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 com.fasterxml.jackso... | selvasingh/azure-sdk-for-java | sdk/network/mgmt-v2019_02_01/src/main/java/com/microsoft/azure/management/network/v2019_02_01/FlowLogStatusParameters.java | Java | mit | 1,369 |
package org.ccci.gto.android.common.viewpager.view;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import org.ccci.gto.android.common.util.view.ViewUtils;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewpager.widget.View... | CruGlobal/android-gto-support | gto-support-viewpager/src/main/java/org/ccci/gto/android/common/viewpager/view/HackyViewPager.java | Java | mit | 879 |
package parking.configuration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import... | gustajz/parking | src/main/java/parking/configuration/WebSecurityConfig.java | Java | mit | 3,390 |
package qora.web;
import java.util.Collections;
import java.util.List;
public class BlogProfile implements Comparable<BlogProfile> {
private final Profile profile;
private final List<String> follows;
public BlogProfile(Profile profile, List<String> follower) {
this.profile = profile;
follows = fo... | Bitcoinsulting/Qora | Qora/src/qora/web/BlogProfile.java | Java | mit | 795 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// 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: 2011.0... | chipster/chipster | src/main/java/fi/csc/microarray/client/session/schema/LinkType.java | Java | mit | 2,346 |
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/
package microsoft.aspnet.signalr.client;
/***
* Represents the state of a connection
*/
public enum ConnectionState {
Connecting, Connected, Reconnecting, Disconnected
} | mphz/bkdev | javadev/light-proxy/src/main/java/microsoft/aspnet/signalr/client/ConnectionState.java | Java | mit | 312 |
/**
* 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.fasterxml.jackso... | navalev/azure-sdk-for-java | sdk/network/mgmt-v2018_12_01/src/main/java/com/microsoft/azure/management/network/v2018_12_01/ServiceAssociationLink.java | Java | mit | 3,455 |
/*
CertificateAuthority.java
Copyright (c) 2018 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.ssl;
import android.content.Context;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
i... | DeviceConnect/DeviceConnect-Android | dConnectDevicePlugin/dConnectDevicePluginSDK/dconnect-device-plugin-sdk/src/main/java/org/deviceconnect/android/ssl/CertificateAuthority.java | Java | mit | 11,471 |
package com.kb.App.Test.TestTask;
import com.kb.App.Test.TestBase.MTestBase;
import com.kb.mylibs.FrameWork.Ctx;
import com.kb.mylibs.Task.ISimpleTask;
public class MTestTask extends MTestBase
{
public MTestTask()
{
}
@Override
public void run()
{
super.run();
this._testA();
... | codekuangben/Android | Project/MyProjectJavaA/app/src/main/java/com/example/myprojectjavaa/Test/TestTask/MTestTask.java | Java | mit | 540 |