code stringlengths 3 1.04M | repo_name stringlengths 5 109 | path stringlengths 6 306 | language stringclasses 1
value | license stringclasses 15
values | size int64 3 1.04M |
|---|---|---|---|---|---|
package org.mapfish.print.attribute.map;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
public class ZoomLevelsTest {
@Test
public void testRemoveDuplicates() throws Exception {
final ZoomLevels zoomLevels = new ZoomLevels(4, 2, 3, 3, ... | Galigeo/mapfish-print | core/src/test/java/org/mapfish/print/attribute/map/ZoomLevelsTest.java | Java | bsd-2-clause | 1,633 |
/*
* Copyright (c) 2018, Eadgars Ruse <https://github.com/Eadgars-Ruse>
* Copyright (c) 2018, Adam <Adam@sigterm.info>
* Copyright (c) 2019, Jordan Atwood <nightfirecat@protonmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted prov... | runelite/runelite | runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/hotcold/HotColdLocation.java | Java | bsd-2-clause | 22,616 |
package com.rustyrazorblade.graph;
/**
* Created by jhaddad on 6/7/14.
*/
public class Edge extends Element {
Vertex in, out;
String label;
public Edge(String label, Vertex in, Vertex out) {
this.in = in;
this.out = out;
this.label = label;
}
}
| rustyrazorblade/javagraph | src/com/rustyrazorblade/graph/Edge.java | Java | bsd-2-clause | 289 |
package com.seatgeek.placesautocomplete.json;
import android.util.JsonReader;
import com.seatgeek.placesautocomplete.model.AddressComponent;
import com.seatgeek.placesautocomplete.model.AddressComponentType;
import com.seatgeek.placesautocomplete.model.AlternativePlaceId;
import com.seatgeek.placesautocomplete.model.... | seatgeek/android-PlacesAutocompleteTextView | placesautocomplete/src/test/java/com/seatgeek/placesautocomplete/json/AndroidPlacesApiJsonParserTest.java | Java | bsd-2-clause | 18,801 |
package org.jvnet.hyperjaxb3.xml;
public class XMLConstants {
private XMLConstants() {
}
public static final String W3C_XML_SCHEMA_NS_URI = "http://www.w3.org/2001/XMLSchema";
}
| highsource/hyperjaxb3 | ejb/runtime/src/main/java/org/jvnet/hyperjaxb3/xml/XMLConstants.java | Java | bsd-2-clause | 184 |
package cola.machine.game.myblocks.model.ui.html;
import cola.machine.game.myblocks.Color;
import cola.machine.game.myblocks.engine.Constants;
//import cola.machine.game.myblocks.engine.MyBlockEngine;
import cola.machine.game.myblocks.engine.paths.PathManager;
import cola.machine.game.myblocks.manager.TextureManager;
... | ColaMachine/MyBlock | src/main/java/cola/machine/game/myblocks/model/ui/html/Document.java | Java | bsd-2-clause | 29,042 |
/*
* Copyright (c) 2018, Lars <lars.oernlo@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 copyright notice, this
* ... | l2-/runelite | runelite-client/src/main/java/net/runelite/client/plugins/motherlode/MotherlodeGemOverlay.java | Java | bsd-2-clause | 4,049 |
package inpro.incremental.unit;
import inpro.apps.SimpleMonitor;
import inpro.audio.AudioUtils;
import inpro.audio.DispatchStream;
import inpro.synthesis.MaryAdapter;
import inpro.synthesis.MaryAdapter5internal;
import inpro.synthesis.hts.IUBasedFullPStream;
import inpro.synthesis.hts.VocodingAudioStream;
import org.... | ONatalia/Masterarbeit | test/inpro/incremental/unit/HesitationIUTest.java | Java | bsd-2-clause | 785 |
/*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2010 - 2014 Board of Regents of the University of
* Wisconsin-Madison.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | imagej/workflow | src/main/java/imagej/workflow/IModuleInfo.java | Java | bsd-2-clause | 2,131 |
/*
* Copyright (c) 2012, JInterval Project.
* 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... | jinterval/jinterval | jinterval-rational-java/src/main/java/net/java/jinterval/rational/BinaryValueSet64.java | Java | bsd-2-clause | 10,359 |
/*
* Copyright (c) 2018, The University of Memphis, MD2K Center of Excellence
*
* 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 c... | MD2Korg/mCerebrum-Utilities | utilities/src/main/java/org/md2k/utilities/data_format/Marker.java | Java | bsd-2-clause | 2,913 |
/*
* Copyright (c) 2017, Seth <Sethtroll3@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 copyright notice, this
* ... | abelbriggs1/runelite | runelite-client/src/main/java/net/runelite/client/plugins/fishing/FishingSpot.java | Java | bsd-2-clause | 7,975 |
/*
* Copyright (c) 2017, Terrence Ezrol (ezterry)
* 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 ... | ezterry/JsonRecipeEdit | src/main/java/com/ezrol/terry/minecraft/jsonRecipeEdit/commands/VirtualCommandChain.java | Java | bsd-2-clause | 4,501 |
package com.livescribe.framework.lsmail;
import java.util.Date;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;
import com.danga.MemCached.MemCachedClient;
import com.danga.MemCached.SockIOPool;
/**
* <bold>imported from the LSFoundation project</bold>
*
*... | jackstraw66/web | livescribe/lsmailservice/src/main/java/com/livescribe/framework/lsmail/QueueManager.java | Java | bsd-2-clause | 6,610 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package edu.wpi.first.wpilibj.templates.commands;
import team.util.LogDebugger;
/**
*
* @author team3574
*/
public class ShiftGear1 extends CommandBase {
public ShiftGear1() {
// Use requires() here to dec... | Team3574/Alastair | src/edu/wpi/first/wpilibj/templates/commands/ShiftGear1.java | Java | bsd-3-clause | 1,036 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package COSE;
import com.upokecenter.cbor.CBORObject;
import com.upokecenter.cbor.CBORType;
import java.util.ArrayList;
import java.ut... | cose-wg/COSE-JAVA | src/main/java/COSE/Signer.java | Java | bsd-3-clause | 9,626 |
package org.irods.jargon.extensions.searchplugin.implementation;
import java.util.concurrent.Callable;
import org.irods.jargon.extensions.searchplugin.SearchIndexInventory;
import org.irods.jargon.extensions.searchplugin.SearchPluginRegistrationConfig;
import org.irods.jargon.extensions.searchplugin.model.SearchAttri... | DICE-UNC/jargon-extensions-if | src/main/java/org/irods/jargon/extensions/searchplugin/implementation/SchemaAttributesCallable.java | Java | bsd-3-clause | 2,594 |
package com.mastercard.api.mdes.csrapi.v1.reasoncodes.services;
import com.mastercard.api.common.Environment;
import junit.framework.TestCase;
import utils.TestUtils;
public class ReasonCodesServiceTest extends TestCase {
ReasonCodesService service;
TestUtils testUtils = new TestUtils(Environment.SANDBOX);
... | thgriefers/mastercard-api-java | src/test/java/com/mastercard/api/mdes/csrapi/v1/reasoncodes/services/ReasonCodesServiceTest.java | Java | bsd-3-clause | 660 |
/**
*============================================================================
* 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/IntroduceMappingExtension/projects/mappingExtensions/src/java/org/cagrid/datatype/sdkmapping4/encoding/SDK40DeserializerFactory.java | Java | bsd-3-clause | 1,239 |
package cz.vsb.resbill.dto.contract;
import java.io.Serializable;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import cz.vsb.resbill.model.Contract;
public class ContractEditDTO implements Serializable {
private static final long serialVersionUID = 2585516902814048464L;
... | CIT-VSB-TUO/ResBill | resbill/src/main/java/cz/vsb/resbill/dto/contract/ContractEditDTO.java | Java | bsd-3-clause | 1,634 |
/*
* 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/MMTk/src/org/mmtk/utility/options/GCspyTileSize.java | Java | bsd-3-clause | 873 |
package org.broadinstitute.macarthurlab.matchbox.match;
import org.broadinstitute.macarthurlab.matchbox.entities.Patient;
import org.monarchinitiative.exomiser.core.phenotype.*;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @author Jules Jacobsen <j.jacobsen@qmul.ac.uk>
*/
@Service
pu... | macarthur-lab/matchbox | src/main/java/org/broadinstitute/macarthurlab/matchbox/match/PhenotypeSimilarityServiceImpl.java | Java | bsd-3-clause | 1,348 |
package org.basex.api.client;
import java.io.*;
import org.basex.core.*;
import org.basex.io.out.*;
/**
* <p>This class defines methods for executing commands, either locally or via the
* client/server architecture.</p>
*
* <p>The results of database commands are returned as strings. If an output stream is speci... | BaseXdb/basex | basex-core/src/main/java/org/basex/api/client/Session.java | Java | bsd-3-clause | 4,433 |
/*
Copyright (c) 2016, Shanghai YUEWEN Information Technology Co., Ltd.
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 ... | crosg/Albianj2 | Albianj.Commons/src/main/java/org/albianj/text/StringHelper.java | Java | bsd-3-clause | 7,685 |
class euler4 {
public static boolean isPal(int number) {
String num = number + "";
int numLen = num.length();
if(num.length() == 6) {
String half1 = num.substring(0, numLen/2);
String half2 = num.substring(numLen/2, numLen);
System.out.println(half1 + "\t" + half2);
}
return true;
}
public static... | ProgrammerKid/eulerJava | euler4.java | Java | bsd-3-clause | 579 |
package edu.ucdenver.ccp.datasource.fileparsers.ebi.interpro;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided tha... | UCDenver-ccp/datasource | datasource-fileparsers/src/main/java/edu/ucdenver/ccp/datasource/fileparsers/ebi/interpro/InterProExternalReferenceFactory.java | Java | bsd-3-clause | 4,794 |
/* Copyright © 2016 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | mattunderscorechampion/specky | code-generation/src/main/java/com/mattunderscore/specky/generator/AbstractTypeInitialiser.java | Java | bsd-3-clause | 2,704 |
package LBJ2.nlp;
import LBJ2.parse.LineByLine;
/**
* This parser returns arrays of <code>String</code>s representing the rows
* of a file in column format. The input file is assumed to contain fields
* of non-whitespace characters separated by any amount of whitespace, one
* line of which is usually used t... | TeamCohen/MinorThird | src/main/java/LBJ2/nlp/ColumnFormat.java | Java | bsd-3-clause | 1,159 |
package com.jsonde.gui.reports.custom;
import javax.swing.*;
public interface ReportGenerator {
JComponent generateReport();
}
| bedrin/jsonde | jsonde.gui/src/main/java/com/jsonde/gui/reports/custom/ReportGenerator.java | Java | bsd-3-clause | 135 |
/*
* Copyright (c) 2009 University of Durham, England All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: *
* Redistributions of source code must retain the above copyright notice, this
* list of con... | synergynet/synergynet2.5 | synergynet2.5/src/main/java/synergynetframework/appsystem/services/net/networkedcontentmanager/messages/SwapTable.java | Java | bsd-3-clause | 2,725 |
package net.fortuna.ical4j.validate;
import java.util.ServiceLoader;
/**
* Created by fortuna on 13/09/15.
*/
public abstract class AbstractCalendarValidatorFactory {
private static CalendarValidatorFactory instance;
static {
instance = ServiceLoader.load(CalendarValidatorFactory.class, DefaultCale... | ariordan/ical4j | src/main/java/net/fortuna/ical4j/validate/AbstractCalendarValidatorFactory.java | Java | bsd-3-clause | 483 |
package expo.modules.medialibrary;
import android.content.Context;
import android.os.AsyncTask;
import android.provider.MediaStore;
import android.text.TextUtils;
import org.unimodules.core.Promise;
import static expo.modules.medialibrary.MediaLibraryUtils.deleteAssets;
class DeleteAssets extends AsyncTask<Void, Vo... | exponent/exponent | packages/expo-media-library/android/src/main/java/expo/modules/medialibrary/DeleteAssets.java | Java | bsd-3-clause | 885 |
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* 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... | zzuegg/jmonkeyengine | jme3-core/src/main/java/com/jme3/shader/Glsl300ShaderGenerator.java | Java | bsd-3-clause | 2,477 |
/* COPYRIGHT (C) 2012-2013 Alexander Taran. All Rights Reserved. */
/* Use of this source code is governed by a BSD-style license that can be found in the LICENSE file */
package alex.taran.opengl.mesh;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.... | AlexTaran/picworld | AndroidOpenGL/src/alex/taran/opengl/mesh/Mesh.java | Java | bsd-3-clause | 2,469 |
package org.speedfirst.leetcode.array;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by jiankuan on 11/4/14.
*/
public class FindKthElement {
//param k : description of k
//param numbers : array of numbers
//return: description of return
public int kthLargestElement(int k, Arra... | speedfirst/leetcode | java/src/main/java/org/speedfirst/leetcode/array/FindKthElement.java | Java | bsd-3-clause | 1,875 |
/*
* 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... | alameluchidambaram/CONNECT | Product/Production/Gateway/PatientDiscovery_10/src/test/java/gov/hhs/fha/nhinc/patientdiscovery/_10/entity/EntityPatientDiscoverySecuredTest.java | Java | bsd-3-clause | 5,464 |
package org.tolweb.treegrowserver.dao;
import java.util.Date;
import java.util.List;
import org.tolweb.treegrow.main.Contributor;
import org.tolweb.treegrowserver.PublicationBatch;
public interface PublicationBatchDAO {
public void saveBatch(PublicationBatch batch);
public PublicationBatch getBatchWithId(Lon... | tolweb/tolweb-app | TreeGrowServer/src/org/tolweb/treegrowserver/dao/PublicationBatchDAO.java | Java | bsd-3-clause | 668 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/ClusterProfileConfigInfo.java | Java | bsd-3-clause | 2,021 |
/*
* 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/business/style/Theme.java | Java | bsd-3-clause | 5,914 |
/*
* Copyright (c) 2016 Villu Ruusmann
*/
package org.jpmml.model.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.dmg.pmml.Version;
/**
* Marks a feature that was changed from o... | jpmml/jpmml-model | pmml-model/src/main/java/org/jpmml/model/annotations/Required.java | Java | bsd-3-clause | 558 |
//
// viztool - a tool for visualizing collections of java classes
// Copyright (c) 2001-2013, Michael Bayne - All rights reserved.
// http://github.com/samskivert/viztool/blob/master/LICENSE
package com.samskivert.viztool;
/**
* A placeholder class that contains a reference to the log object used by
* the viztool ... | samskivert/viztool | src/main/java/com/samskivert/viztool/Log.java | Java | bsd-3-clause | 972 |
/*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-04 The eXist Project
* http://exist-db.org
*
* This program is ... | NCIP/cadsr-cgmdr-nci-uk | src/org/exist/storage/btree/SetParentLoggable.java | Java | bsd-3-clause | 2,856 |
/*
* 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... | dhis2/dhis2-android-sdk | core/src/androidTest/java/org/hisp/dhis/android/testapp/fileresource/FileResourceCollectionRepositoryMockIntegrationShould.java | Java | bsd-3-clause | 8,166 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/ArrayOfExtendedEventPair.java | Java | bsd-3-clause | 2,131 |
package com.feeyo.net.nio.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.util.ConcurrentModificationException;
public class SelectorUtil {
private static final Logger LOGGER = Logge... | variflight/feeyo-redisproxy | src/main/java/com/feeyo/net/nio/util/SelectorUtil.java | Java | bsd-3-clause | 2,816 |
/*
* Copyright (c) 2014, Araz Abishov
* 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 condition... | dhis2/dhis2-android-datacapture | dhis2-android-app/src/main/java/org/dhis2/mobile/utils/date/DateIteratorFactory.java | Java | bsd-3-clause | 5,974 |
package com.smartdevicelink.proxy.rpc.enums;
public enum DeliveryMode {
PROMPT,
DESTINATION,
QUEUE,
;
public static DeliveryMode valueForString(String value) {
try{
return valueOf(value);
}catch(Exception e){
return null;
}
}
}
| 914802951/sdl_android | sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/enums/DeliveryMode.java | Java | bsd-3-clause | 299 |
/*
* Android SDK for Piwik
*
* @link https://github.com/piwik/piwik-android-sdk
* @license https://github.com/piwik/piwik-sdk-android/blob/master/LICENSE BSD-3 Clause
*/
package org.piwik.sdk;
import android.support.annotation.NonNull;
import org.piwik.sdk.dispatcher.Dispatcher;
import java.util.HashMap;
/**
... | seancunningham/piwik-sdk-android | piwik-sdk/src/main/java/org/piwik/sdk/TrackMe.java | Java | bsd-3-clause | 4,126 |
package com.cjm721.overloaded.block.basic.hyperTransfer;
import com.cjm721.overloaded.block.basic.hyperTransfer.base.AbstractBlockHyperReceiver;
import com.cjm721.overloaded.tile.hyperTransfer.TileHyperEnergyReceiver;
import com.cjm721.overloaded.client.render.dynamic.ImageUtil;
import com.cjm721.overloaded.config.Ove... | CJ-MC-Mods/Overloaded | src/main/java/com/cjm721/overloaded/block/basic/hyperTransfer/BlockHyperEnergyReceiver.java | Java | bsd-3-clause | 1,407 |
/*================================================================================
Copyright (c) 2012 Steve Jin. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must re... | xebialabs/vijava | src/com/vmware/vim25/ConfigTarget.java | Java | bsd-3-clause | 7,050 |
package gwlpr.protocol.gameserver.outbound;
import gwlpr.protocol.serialization.GWMessage;
/**
* Auto-generated by PacketCodeGen.
*
*/
public final class P293_GuildAnnouncement
extends GWMessage
{
private String announcement;
private String characterName;
@Override
public short getHeader()... | GameRevision/GWLP-R | protocol/src/main/java/gwlpr/protocol/gameserver/outbound/P293_GuildAnnouncement.java | Java | bsd-3-clause | 869 |
package com.freebasicacc.main;
import com.freebasicacc.action.SettingsAction;
import com.freebasicacc.services.LogService;
import com.freebasicacc.ui.MainFrame;
import java.util.Locale;
import java.util.Properties;
import javax.swing.UIManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log... | benzyaa/javaapplication | FreeBasicAccountManagement/src/main/java/com/freebasicacc/main/Main.java | Java | bsd-3-clause | 1,432 |
package net.humandoing.jarindexer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Method;
import java.sql.*;
import java.util.ArrayList;
/**
* User: danwin
* Date: Jun 22, 2005
* Time: 9:25:25 AM
*/
public class Database {
public static final String D... | humandoing/JarIndexer | src/net/humandoing/jarindexer/Database.java | Java | bsd-3-clause | 11,146 |
// Copyright 2015-present 650 Industries. All rights reserved.
package host.exp.exponent.utils;
import android.support.test.espresso.matcher.BoundedMatcher;
import android.view.View;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import static org.hamcrest.Matchers.is;
public class ExponentMatchers ... | jolicloud/exponent | android/app/src/androidTest/java/host/exp/exponent/utils/ExponentMatchers.java | Java | bsd-3-clause | 1,113 |
package abi39_0_0.expo.modules.medialibrary;
import android.content.Context;
import android.database.Cursor;
import android.media.MediaScannerConnection;
import android.net.Uri;
import android.os.AsyncTask;
import android.provider.MediaStore;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList... | exponent/exponent | android/versioned-abis/expoview-abi39_0_0/src/main/java/abi39_0_0/expo/modules/medialibrary/AddAssetsToAlbum.java | Java | bsd-3-clause | 4,133 |
package org.infernus.idea.checkstyle.checker;
import com.puppycrawl.tools.checkstyle.Checker;
import com.puppycrawl.tools.checkstyle.api.Configuration;
/**
* Key for checker cache.
*/
class CachedChecker {
/**
* We cache purely to ignore repeated requests in a multi-file scan. Hence we'll treat the cached... | CedricGatay/Checkstyle-IDEA-no-logger-dependency | src/main/java/org/infernus/idea/checkstyle/checker/CachedChecker.java | Java | bsd-3-clause | 1,642 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.coderedrobotics.libs;
/**
*
* @author laptop
*/
public class DerivativeCalculator {
private double derivative;
private double oldValue;
private long oldTime;
public double calculate(doub... | CodeRed2771/Sally | src/com/coderedrobotics/libs/DerivativeCalculator.java | Java | bsd-3-clause | 580 |
package prefuse.util;
import java.util.ArrayList;
import prefuse.data.Graph;
import prefuse.data.Node;
import prefuse.data.Schema;
import prefuse.data.Tree;
/**
* Library routines for creating various Graph structures. All Graphs
* generated by methods of this class include a String-valued
* "label" field.
*
*... | dritanlatifi/AndroidPrefuse | src/prefuse/util/GraphLib.java | Java | bsd-3-clause | 8,814 |
package org.broadinstitute.hellbender.tools.picard.sam;
import htsjdk.samtools.*;
import htsjdk.samtools.util.CloserUtil;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.broadinstitute.hellbender.exceptions.GATKException;
import org.broadinstitute.hellbender.exceptions.UserException;
import org... | tomwhite/hellbender | src/test/java/org/broadinstitute/hellbender/tools/picard/sam/RevertSamIntegrationTest.java | Java | bsd-3-clause | 6,444 |
package com.github.koraktor.steamcondenser.steam.community;
import static com.github.koraktor.steamcondenser.steam.community.XMLUtil.loadXml;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.powermock.api.mockito.PowerMockito.mo... | gutomaia/steam-condenser-java | src/test/java/com/github/koraktor/steamcondenser/steam/community/StatsTestCase.java | Java | bsd-3-clause | 1,782 |
package java.net;
import edu.stanford.stamp.annotation.STAMP;
import edu.stanford.stamp.annotation.Flow;
public class StampURLInputStream extends java.io.InputStream
{
@STAMP(flows = {@Flow(from="this",to="@return")})
private int taintInt() { return 0; }
public int read() throws java.io.IOException {
return ... | petablox-project/petablox | android/models/src/java/net/StampURLInputStream.java | Java | bsd-3-clause | 337 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.team4189.season2013.CB.commands;
import edu.wpi.first.wpilibj.command.PIDCommand;
import org.team4189.season2013.CB.subsystems.Shooter;
import org.team4189.season2013.CB.subsystems.VisionControl;
im... | Team4189/2013robotCode | src/org/team4189/season2013/CB/commands/AimControl.java | Java | bsd-3-clause | 1,887 |
/*
* 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... | alameluchidambaram/CONNECT | Product/Production/Gateway/CONNECTGatewayWeb/src/main/java/gov/hhs/fha/nhinc/patientcorrelation/nhinc/PatientCorrelationServiceSecuredServiceImpl.java | Java | bsd-3-clause | 4,321 |
/*
Copyright (c) 2000-2022, Board of Trustees of Leland Stanford Jr. University,
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... | lockss/lockss-daemon | src/org/lockss/tdb/TdbUtil.java | Java | bsd-3-clause | 4,685 |
package nirays.com.airspy;
/**
* Created by kirant400 on 19/3/16.
*/
public class DateDayXAxisValueFormatter {
}
| kirant400/freshfreedom | client/airspy/app/src/main/java/nirays/com/airspy/DateDayXAxisValueFormatter.java | Java | bsd-3-clause | 116 |
/**
* Copyright (C) 2002 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 copyright
*... | hashrock/JavaOutlineEditor | src/com/organic/maynard/outliner/actions/EndAction.java | Java | bsd-3-clause | 4,698 |
package de.bwaldvogel.mongo.backend;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import de.bwaldvogel.mongo.... | bwaldvogel/mongo-java-server | core/src/main/java/de/bwaldvogel/mongo/backend/Index.java | Java | bsd-3-clause | 6,291 |
package org.hisp.dhis.system.util;
/*
* Copyright (c) 2004-2015, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above co... | kakada/dhis2 | dhis-support/dhis-support-system/src/test/java/org/hisp/dhis/system/util/PageRangeTest.java | Java | bsd-3-clause | 3,488 |
package ch.codebulb.lambdaomega.abstractions;
import ch.codebulb.lambdaomega.abstractions.functions.DoubleBiFunction;
import ch.codebulb.lambdaomega.abstractions.functions.IntBiFunction;
import ch.codebulb.lambdaomega.abstractions.functions.LongBiFunction;
import java.util.function.BiConsumer;
import java.util.functio... | codebulb/LambdaOmega | src/main/java/ch/codebulb/lambdaomega/abstractions/BiFunctionalI.java | Java | bsd-3-clause | 3,829 |
// 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.init;
/**
* Interface that any {@link AsyncInitializationActivity} can use to interact with this delegate
* during ... | was4444/chromium.src | chrome/android/java/src/org/chromium/chrome/browser/init/BrowserParts.java | Java | bsd-3-clause | 2,656 |
// Copyright (c) 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.android_webview;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
/**
* Delegate for handling c... | leighpauls/k2cro4 | android_webview/java/src/org/chromium/android_webview/AwContentsIoThreadClient.java | Java | bsd-3-clause | 903 |
/*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.
*/
package org.exist.storage.analysis;
/**
* This is the default class used by the fulltext indexer for
* tokenizing a string into words... | NCIP/cadsr-cgmdr-nci-uk | src/org/exist/storage/analysis/SimpleTokenizer.java | Java | bsd-3-clause | 10,777 |
package net.ripe.db.whois.api.whois;
import com.google.common.base.Function;
import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.google.common.net.InetAddresse... | APNIC-net/whois | whois-api/src/main/java/net/ripe/db/whois/api/whois/WhoisRestService.java | Java | bsd-3-clause | 27,939 |
/*================================================================================
Copyright (c) 2009 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must ... | mikem2005/vijava | src/com/vmware/vim25/LicenseServerUnavailableEvent.java | Java | bsd-3-clause | 1,988 |
// vim:filetype=java:ts=4
/*
Copyright (c) 2007
Conor McDermottroe. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, th... | conormcd/exemplar | tests/junit/src/junit/com/mcdermottroe/exemplar/input/AbstractInputModuleTest.java | Java | bsd-3-clause | 2,000 |
/*
* Copyright (C) 2015-2019 Fabrice Bouyé
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package api.web.gw2.mapping.v2.professions;
import api.web.gw2.mapping.core.IdValue;
import api.web.gw2.mapping.core.Loc... | fabricebouye/gw2-web-api-mapping | src/api/web/gw2/mapping/v2/professions/Profession.java | Java | bsd-3-clause | 2,236 |
/**
*
*/
package gov.nih.nci.cagrid.portal.portlet.discovery.list;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.springframework.orm.hibernate3.HibernateTemplate;
import gov.nih.nci.cagrid.portal.domain.DomainObject;
import gov.nih.nci.cagrid.portal.portlet.discovery.dir... | NCIP/cagrid | cagrid/Software/portal/cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/discovery/list/ListBean.java | Java | bsd-3-clause | 1,495 |
package com.jamierf.rsc.dataserver.api;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class SessionCredentials extends UserCredentials {
public static boolean isValid(String username, String password, int[] keys) {
return UserCredentials... | reines/rsc | dataserver/dataserver-api/src/main/java/com/jamierf/rsc/dataserver/api/SessionCredentials.java | Java | bsd-3-clause | 998 |
package info.tregmine.database;
public interface IContextFactory
{
public IContext createContext() throws DAOException;
}
| EmilHernvall/tregmine | src/info/tregmine/database/IContextFactory.java | Java | bsd-3-clause | 127 |
package com.j256.ormlite.android.apptools;
import java.sql.SQLException;
import android.content.Context;
import android.database.Cursor;
import android.view.View;
import android.widget.CursorAdapter;
import com.j256.ormlite.android.AndroidDatabaseResults;
import com.j256.ormlite.stmt.PreparedQuery;
/**
* Cursor ad... | dankito/ormlite-jpa-android | src/main/java/com/j256/ormlite/android/apptools/OrmLiteCursorAdapter.java | Java | isc | 2,099 |
package vezzoni.api.controller.impl;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import vezzoni.api.controller.PingController;
@Path(value = "/ping")
@Consumes(value = {MediaType.WILDCAR... | vezzoni/rest-easy-spring-jpa | src/main/java/vezzoni/api/controller/impl/PingControllerImpl.java | Java | mit | 692 |
package de.tuberlin.dima.ti.analysis;
import org.apache.flink.api.common.functions.RichFlatMapFunction;
import org.apache.flink.api.java.tuple.Tuple7;
import org.apache.flink.api.java.tuple.Tuple8;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.util.Collector;
import java.util.Collection... | rwaury/pcb | src/main/java/de/tuberlin/dima/ti/analysis/MIDTCapacityEmitter.java | Java | mit | 4,721 |
/**
* Interface C4BoardIntf specifies the interface for an object that implements
* the Connect Four game board. The methods in this interface are queried to
* display the game board.
*
* @author Alan Kaminsky
* @version 13-Oct-2014
*/
public interface C4BoardIntf
{
/**
* Number of rows.
*/
public stati... | mooman219/CSCI251 | project4-c4server/src/C4BoardIntf.java | Java | mit | 1,401 |
/*
* 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... | zik43/java-design-patterns | page-object/src/test/java/com/iluwatar/pageobject/AlbumPageTest.java | Java | mit | 2,185 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.datalake.implementation.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.DateTimeRfc1123;
import com.fas... | navalev/azure-sdk-for-java | sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathCreateHeaders.java | Java | mit | 8,314 |
//: operators/Bool.java
package operators; /* Added by Eclipse.py */
// Relational and logical operators.
import java.util.*;
import static net.mindview.util.Print.*;
public class Bool {
public static void main(String[] args) {
Random rand = new Random(47);
int i = rand.nextInt(100);
int j = ran... | quchunguang/test | testjava/TIJ4-code/operators/Bool.java | Java | mit | 1,110 |
//: concurrency/MultiLock.java
package concurrency; /* Added by Eclipse.py */
// One thread can reacquire the same lock.
import static net.mindview.util.Print.*;
public class MultiLock {
public synchronized void f1(int count) {
if(count-- > 0) {
print("f1() calling f2() with count " + count);
... | quchunguang/test | testjava/TIJ4-code/concurrency/MultiLock.java | Java | mit | 1,054 |
package cucumber.eclipse.launching;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.jdt.internal.debug.ui.JDIDebugUIPlugin;
import org.eclipse.jface.text.TextSelect... | scandinave/cucumber-eclipse | cucumber.eclipse.editor/src/main/java/cucumber/eclipse/launching/CucumberFeaureLaunchUtils.java | Java | mit | 2,221 |
//bubble sort
public class BubbleSort{
public static void main(String[] args){
int[] test = new int[]{7,5,2,4,3,9};
bubbleSort4(test);
for(int curr: test){
System.out.print(curr + " ");
}
}
//for every step, move largest element in the left unsorted left subarray to front of right sorted array
... | WenyingLiu/coding_problems | others/amazon/implementation/sorting/BubbleSort.java | Java | mit | 1,935 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.share.implementation.models;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpRequest;
import com.azure.core.... | selvasingh/azure-sdk-for-java | sdk/storage/azure-storage-file-share/src/main/java/com/azure/storage/file/share/implementation/models/SharesSetAccessPolicyResponse.java | Java | mit | 1,182 |
/**
* 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.netapp.v2017_08_15;
import com.fasterxml.jackson... | selvasingh/azure-sdk-for-java | sdk/netapp/mgmt-v2017_08_15/src/main/java/com/microsoft/azure/management/netapp/v2017_08_15/ActiveDirectory.java | Java | mit | 5,867 |
package com.github.onsdigital.api;
import com.github.davidcarboni.restolino.framework.Api;
import com.github.davidcarboni.restolino.helpers.Path;
import com.github.onsdigital.data.TimeSeriesObject;
import com.github.onsdigital.generators.Sample;
import com.github.onsdigital.writers.DataSetWriterJSON;
import com.githu... | Carboni/project-brian | src/main/java/com/github/onsdigital/api/Data.java | Java | mit | 3,257 |
package com.raizlabs.android.dbflow.runtime;
import com.raizlabs.android.dbflow.runtime.transaction.BaseTransaction;
import java.util.UUID;
/**
* Created by andrewgrosner
* Date: 2/2/14
* Contributors:
* Description: Holds information related to a {@link com.raizlabs.android.dbflow.runtime.transaction.BaseTransa... | omegasoft7/DBFlow | library/src/main/java/com/raizlabs/android/dbflow/runtime/DBTransactionInfo.java | Java | mit | 3,321 |
package com.udacity.gamedev.gigagal;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Array;
import com.udacity.gamedev.gigagal.entities.GigaGal;
import com.udacity.gamedev.gigagal.entities.Platform;
public class Level {
GigaGal gigaGal;
Ar... | udacity/ud406 | 2.4.05-Solution-DebugCameraControls/core/src/com/udacity/gamedev/gigagal/Level.java | Java | mit | 1,383 |
/**
* 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.apimanagement.v2018_06_01_preview.implementation;... | navalev/azure-sdk-for-java | sdk/apimanagement/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/apimanagement/v2018_06_01_preview/implementation/PortalSigninSettingsInner.java | Java | mit | 1,243 |
package remoteio.common.core.compat;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import remoteio.common.block.BlockRemoteInterface;
import remoteio.common.block.BlockRemoteInventory;
import remoteio.common.lib.VisualState;
import remotei... | s0cks/RemoteIO | src/main/java/remoteio/common/core/compat/WailaProvider.java | Java | mit | 3,919 |
package com.common.example;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import com.common.utils.Common;
import com.common.utils.R;
public class BlurEffectActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCre... | androidroadies/AndroidUtils | app/src/main/java/com/common/example/BlurEffectActivity.java | Java | mit | 586 |
package com.javarush.task.task12.task1211;
/*
Абстрактный класс Pet
*/
public class Solution {
public static void main(String[] args) {
}
public static abstract class Pet {
public String getName() {
return "Я - котенок";
}
}
}
| pshynin/JavaRushTasks | 2.JavaCore/src/com/javarush/task/task12/task1211/Solution.java | Java | mit | 301 |
package TopCoder;
/*
* SRM 148 Div2
* Link:https://community.topcoder.com/stat?c=problem_statement&pm=1741&rd=4545
*/
public class SRM148DivisorDigits {
public static void main(String[] args) {
System.out.println(howMany(12345));
System.out.println(howMany(661232));
System.out.println(howMany(52527));
S... | darshanhs90/Java-InterviewPrep | src/TopCoder/SRM148DivisorDigits.java | Java | mit | 570 |
package April2021Leetcode;
public class _0344ReverseString {
public static void main(String[] args) {
reverseString(new char[] { 'h', 'e', 'l', 'l', 'o' });
reverseString(new char[] { 'h', 'a', 'n', 'n', 'a', 'H' });
}
public static void reverseString(char[] s) {
s
}
}
| darshanhs90/Java-InterviewPrep | src/April2021Leetcode/_0344ReverseString.java | Java | mit | 281 |