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.crepi22.finecrop; import java.io.File; import java.util.Arrays; class Rotate extends Thread { final double angle; final Continuation continuation; final Photo photo; Rotate(Continuation continuation, Photo photo, int startX, int startY, int endX, int endY) { this.photo = photo; ...
crepi22/finecrop
src/main/java/org/crepi22/finecrop/Rotate.java
Java
bsd-3-clause
1,915
package blog.absyn; /** * @author leili * @date Apr 22, 2012 * */ public class BooleanExpr extends Expr { public boolean value; public BooleanExpr(int p, boolean v) { this(0, p, v); } public BooleanExpr(int line, int col, boolean v) { super(line, col); value = v; } public BooleanExpr(boolean v) { t...
BayesianLogic/blog
src/main/java/blog/absyn/BooleanExpr.java
Java
bsd-3-clause
468
package net.doubledoordev.insidertrading.util; import com.google.gson.Gson; import com.google.gson.GsonBuilder; /** * @author Dries007 */ public class Constants { public static final String MODID = "InsiderTrading"; public static final String MODID_ASM = "InsiderTrading-ASM"; public static final Gson GS...
DoubleDoorDevelopment/InsiderTrading
src/main/java/net/doubledoordev/insidertrading/util/Constants.java
Java
bsd-3-clause
375
package org.basex.query.func.db; import static org.basex.util.Token.*; import org.basex.io.*; import org.basex.query.*; import org.basex.query.func.*; import org.basex.query.iter.*; import org.basex.query.value.item.*; import org.basex.query.value.node.*; import org.basex.util.list.*; /** * Function implementation....
ksclarke/basex
basex-core/src/main/java/org/basex/query/func/db/DbBackups.java
Java
bsd-3-clause
1,316
/*L * Copyright Ekagra Software Technologies Ltd. * Copyright SAIC, SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cacore-sdk/LICENSE.txt for details. */ package gov.nih.nci.sdk.ide.modelexplorer.meaning; import java.util.List; public in...
NCIP/cacore-sdk
hydra/src/java/gov/nih/nci/sdk/ide/modelexplorer/meaning/DomainView.java
Java
bsd-3-clause
611
/** * Copyright (c) 2009-2016, rultor.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 list of conditio...
dalifreire/rultor
src/main/java/com/rultor/web/TkToggles.java
Java
bsd-3-clause
2,468
/* * Copyright (c) 2010-2013, University of Sussex * 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 l...
MLCL/Byblo
src/main/java/uk/ac/susx/mlcl/byblo/io/WeightStatsObjectSource.java
Java
bsd-3-clause
2,845
/* Copyright (c) 2016 University of Oslo, Norway * 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 l...
vtkio/vtk
src/main/java/vtk/web/servlet/SessionRepositoryFilter.java
Java
bsd-3-clause
2,587
/* * Carrot2 project. * * Copyright (C) 2002-2010, Dawid Weiss, Stanisław Osiński. * All rights reserved. * * Refer to the full license file "carrot2.LICENSE" * in the root folder of the repository checkout or at: * http://www.carrot2.org/carrot2.LICENSE */ package org.carrot2.source.xml; import static org....
arnaudsj/carrot2
core/carrot2-source-xml/src-test/org/carrot2/source/xml/XmlDocumentSourceTest.java
Java
bsd-3-clause
12,363
/* [The "BSD license"] Copyright (c) 2011-2014 Joel Li (李家智) 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,...
wendal/beetl2.0
beetl-core/src/main/java/org/beetl/core/statement/GeneralForStatement.java
Java
bsd-3-clause
4,477
package org.hisp.dhis.importexport.dhis14.file.configuration; /* * 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 s...
kakada/dhis2
dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/configuration/DefaultIbatisConfigurationManager.java
Java
bsd-3-clause
4,133
/** * */ package edu.washington.escience.myria.io; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; public class ByteSink implements DataSink { /** Required for Java serialization. */ private static final long serialVersionUID = 1L; private transient ByteArrayOut...
uwescience/myria
src/edu/washington/escience/myria/io/ByteSink.java
Java
bsd-3-clause
537
/* * Five different data members of type string. * A Boolean data type success initialized to be false * Connection data type declared to be null * There is a function used to connect to the SQL database (check function for comments) * The authenticateBeacon connects to SQL database to verify the UUID, major and m...
ipapapa/IoT-MicroLocation
microlocationServer/src/microlocation/models/BeaconAuthenticator.java
Java
bsd-3-clause
3,097
package org.infernus.idea.checkstyle.model; import com.intellij.openapi.project.Project; import com.intellij.openapi.vfs.VirtualFile; import org.hamcrest.Matchers; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; i...
CedricGatay/Checkstyle-IDEA-no-logger-dependency
src/test/java/org/infernus/idea/checkstyle/model/FileConfigurationLocationTest.java
Java
bsd-3-clause
1,729
/* * Copyright (c) 2016, Oracle and/or its affiliates. * * 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 ...
lxp/sulong
projects/com.oracle.truffle.llvm.parser.base/src/com/oracle/truffle/llvm/parser/base/model/visitors/ValueSymbolVisitor.java
Java
bsd-3-clause
1,904
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class loadAndShoot extends Thread { boolean running = false; Solenoid...
ConnorGoldstick/2014SHOREWOODROBOTFINAL
src/edu/wpi/first/wpilibj/templates/loadAndShoot.java
Java
bsd-3-clause
9,879
package edu.wpi.first.wpilibj.templates; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ public class ...
Ozuru/NormalityZero2014
src/edu/wpi/first/wpilibj/templates/RobotMap.java
Java
bsd-3-clause
1,572
package apps.tablepositionsetup; import java.awt.Color; import java.awt.Font; import java.text.DecimalFormat; import synergynetframework.appsystem.contentsystem.ContentSystem; import synergynetframework.appsystem.contentsystem.items.ContentItem; import synergynetframework.appsystem.contentsystem.items.TextLab...
synergynet/synergynet2.5
synergynet2.5/src/main/java/apps/tablepositionsetup/Stepper.java
Java
bsd-3-clause
8,865
package cn.iaicc.smgk.web.action.manage.list; import java.util.LinkedList; import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import cn.iaicc.smgk.business.IClientAccountInfoService; import cn.iaicc.smgk.business.IEmployeeInfoService; import cn.iaicc.smgk.busi...
wangxin39/xstat
SupervisorSystem/src/cn/iaicc/smgk/web/action/manage/list/ListAppealResultAction.java
Java
bsd-3-clause
6,793
/* * 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...
dritanlatifi/AndroidPrefuse
src/swing/javax/swing/event/ListSelectionEvent.java
Java
bsd-3-clause
2,015
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/api/system_parameter.proto package com.google.api; /** * <pre> * Define a parameter's name and location. The parameter may be passed as either * an HTTP header or a URL query parameter, and if both are passed the behavior * is implement...
googleapis/api-client-staging
generated/java/proto-google-common-protos/src/main/java/com/google/api/SystemParameter.java
Java
bsd-3-clause
26,124
// Copyright 2019 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.payments; import android.support.test.filters.MediumTest; import org.junit.Assert; import org.junit.ClassRule; impor...
endlessm/chromium-browser
chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestShowPromiseEmptyListsTest.java
Java
bsd-3-clause
2,906
// 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.datausage; import android.app.Activity; import android.content.Context; import android.content.DialogInterface; impor...
was4444/chromium.src
chrome/android/java/src/org/chromium/chrome/browser/datausage/DataUseTabUIManager.java
Java
bsd-3-clause
14,471
/** *============================================================================ * The Ohio State University Research Foundation, The University of Chicago - * Argonne National Laboratory, Emory University, SemanticBits LLC, * and Ekagra Software Technologies Ltd. * * Distributed under the OSI-approved BSD 3-Clau...
NCIP/cagrid-portal
cagrid-portal/db/src/java/gov/nih/nci/cagrid/portal/dao/CQLQueryInstanceDao.java
Java
bsd-3-clause
1,301
// Copyright (c) 2003-present, Jodd Team (jodd.org). All Rights Reserved. package jodd.util.collection; import java.util.Arrays; /** * Storage for holding classes keys and values. * It is <b>NOT</b> a <code>Map</code> instance. It is very fast * on un-synchronized lookups, faster then <code>HashMap</code>. * Use...
wsldl123292/jodd
jodd-core/src/main/java/jodd/util/collection/ClassMap.java
Java
bsd-3-clause
3,740
/* * @lc app=leetcode id=252 lang=java * * [252] Meeting Rooms * * https://leetcode.com/problems/meeting-rooms/description/ * * algorithms * Easy (55.14%) * Total Accepted: 164.6K * Total Submissions: 298.4K * Testcase Example: '[[0,30],[5,10],[15,20]]' * * Given an array of meeting time intervals wher...
lang010/acit
leetcode/252.meeting-rooms.337136559.ac.java
Java
bsd-3-clause
989
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/privacy/dlp/v2beta2/dlp.proto package com.google.privacy.dlp.v2beta2; public interface RangeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2beta2.Range) com.google.protobuf.MessageOrBuilder { ...
pongad/api-client-staging
generated/java/proto-google-cloud-dlp-v2beta2/src/main/java/com/google/privacy/dlp/v2beta2/RangeOrBuilder.java
Java
bsd-3-clause
624
/* * $Id$ * * Copyright 2003-2008 Online Breedband B.V. * See the COPYRIGHT file for redistribution and use restrictions. */ package org.xins.tests.server; import java.util.*; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; import org.xins.common.text.HexConverter;...
muloem/xins
src/tests/org/xins/tests/server/SOAPMapCallingConventionTests.java
Java
bsd-3-clause
8,125
package org.python.types; public class Object extends java.lang.RuntimeException implements org.python.Object { public java.util.Map<java.lang.String, org.python.Object> __dict__; public org.python.types.Type __class__; public org.python.types.Type.Origin origin; /** * A utility method to update ...
gEt-rIgHt-jR/voc
python/common/org/python/types/Object.java
Java
bsd-3-clause
37,570
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
Caleydo/caleydo
org.caleydo.view.tourguide.stratomex/src/main/java/org/caleydo/view/tourguide/internal/mode/VariableDataMode.java
Java
bsd-3-clause
2,214
/*----------------------------------------------------------------------------*/ /* 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...
capmills2014/2014-Robot-Code
src/Robot2014/RobotMain.java
Java
bsd-3-clause
2,422
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST Team 2035, 2013. 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...
jdrusso/ScraperBike2013
src/edu/wpi/first/wpilibj/templates/commands/RotateRobot.java
Java
bsd-3-clause
1,707
package dev.gigaherz.enderrift.common; import dev.gigaherz.enderrift.ConfigValues; import net.minecraft.world.item.ItemStack; import net.minecraftforge.energy.IEnergyStorage; import net.minecraftforge.items.IItemHandler; import javax.annotation.Nonnull; import java.util.Optional; public class AutomationEnergyWrapper...
gigaherz/Ender-Rift
src/main/java/dev/gigaherz/enderrift/common/AutomationEnergyWrapper.java
Java
bsd-3-clause
5,398
package com.md_5.cascade; import com.avaje.ebean.config.ServerConfig; import java.io.File; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.UUID; import java.util.logging.Logger; import org.bukkit.GameMode; import org.bukkit.OfflinePlayer; import org.bukkit...
BukkitDevTeam/Cascade
src/main/java/com/md_5/cascade/CascadeServer.java
Java
bsd-3-clause
12,248
/* * Copyright (c) 2009-2011 by Jan Stender, * Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ package org.xtreemfs.test.osd; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.LinkedList; import java.util.List...
stanik137/xtreemfs
java/servers/test/org/xtreemfs/test/osd/StripingTest.java
Java
bsd-3-clause
31,429
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
Caleydo/caleydo
org.caleydo.view.radial/src/org/caleydo/view/radial/event/DetailOutsideEvent.java
Java
bsd-3-clause
1,249
/*L * Copyright Georgetown University, Washington University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cab2b/LICENSE.txt for details. */ /** * */ package edu.wustl.cab2b.client.ui.visualization.charts; import java.awt.Color; import java.util.List; ...
NCIP/cab2b
software/cab2b/src/java/client/edu/wustl/cab2b/client/ui/visualization/charts/LineChart.java
Java
bsd-3-clause
3,925
package org.motechproject.security.service.authentication; import org.motechproject.security.domain.MotechRole; import org.motechproject.security.domain.MotechUser; import org.motechproject.security.domain.UserStatus; import org.motechproject.security.repository.AllMotechRoles; import org.motechproject.security.reposi...
shubhambeehyv/motech
platform/web-security/src/main/java/org/motechproject/security/service/authentication/MotechOpenIdUserDetailsService.java
Java
bsd-3-clause
3,701
package share.manager.adapters; import share.manager.stock.R; import share.manager.utils.FileHandler; import share.manager.utils.SharesGraphicsBuilder; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup;...
Nelspike/ShareManager
ShareManager/src/share/manager/adapters/SharesAdapter.java
Java
bsd-3-clause
2,751
package com.smartdevicelink.proxy.rpc; import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCRequest; import com.smartdevicelink.proxy.rpc.enums.AudioType; import com.smartdevicelink.proxy.rpc.enums.BitsPerSample; import com.smartdevicelink.proxy.rpc.enums.SamplingRate; imp...
914802951/sdl_android
sdl_android/src/main/java/com/smartdevicelink/proxy/rpc/PerformAudioPassThru.java
Java
bsd-3-clause
9,890
/* * Copyright (c) 2020, John Campbell and other contributors. All rights reserved. * * This file is part of Tectonicus. It is subject to the license terms in the LICENSE file found in * the top-level directory of this distribution. The full list of project contributors is contained * in the AUTHORS file found i...
tectonicus/tectonicus
src/main/java/tectonicus/blockTypes/Lilly.java
Java
bsd-3-clause
3,913
package org.usfirst.frc3668.Stronghold.commands; import org.usfirst.frc3668.Stronghold.Robot; import org.usfirst.frc3668.Stronghold.RobotMap; import org.usfirst.frc3668.Stronghold.Settings; import edu.wpi.first.wpilibj.command.Command; /** * */ public class CMDjoyTurtleTail extends Command { public CMDjoyTurt...
WhitmoreLakeTroBots/2016-Stronghold
src/org/usfirst/frc3668/Stronghold/commands/CMDjoyTurtleTail.java
Java
bsd-3-clause
1,450
package com.smartdevicelink.test.rpc.enums; import com.smartdevicelink.proxy.rpc.enums.WindowType; 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/WindowTypeTests.java
Java
bsd-3-clause
2,209
package vg.civcraft.mc.bettershards.command.commands; import java.util.List; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import vg.civcraft.mc.bettershards.BetterShardsPlugin; import vg.civcraft.mc.bettershards.manager.PortalsManager; import vg.civcraft.mc.b...
Civcraft/BetterShards
BetterShardsBukkit/src/main/java/vg/civcraft/mc/bettershards/command/commands/JoinPortal.java
Java
bsd-3-clause
1,714
// Copyright 2013 The Flutter 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 io.flutter.embedding.engine; import android.app.Activity; import android.app.Service; import android.arch.lifecycle.Lifecycle; import android.cont...
mikejurka/engine
shell/platform/android/io/flutter/embedding/engine/FlutterEnginePluginRegistry.java
Java
bsd-3-clause
31,420
package com.nd.android.u.square.interf; /** * 语音,图片,gif信息 * * <br> * Created 2014-10-29 下午4:17:31 * * @version * @author chenpeng * * @see */ public interface IMultimediaInfo { // public MultiTypy ext;// 类型 audio, image, gif // public long _id;// 一般不需要,当MultiType=audio的时候,最好传入音频所属对象的id // public...
treejames/StarAppSquare
src/com/nd/android/u/square/interf/IMultimediaInfo.java
Java
bsd-3-clause
1,938
package org.pocketcampus.platform.android.ui.list; import java.util.List; import org.pocketcampus.platform.android.ui.adapter.LabeledArrayAdapter; import org.pocketcampus.platform.android.ui.element.Element; import org.pocketcampus.platform.android.ui.element.ElementDimension; import org.pocketcampus.platform.android...
ValentinMinder/pocketcampus
platform/android/src/main/java/org/pocketcampus/platform/android/ui/list/LabeledListViewElement.java
Java
bsd-3-clause
1,448
package dev.deadc0de.genesis.module; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) @Documented p...
deadc0de-dev/genesis
src/main/java/dev/deadc0de/genesis/module/Default.java
Java
bsd-3-clause
372
package com.smartdevicelink.test.rpc.requests; import com.smartdevicelink.marshal.JsonRPCMarshaller; import com.smartdevicelink.protocol.enums.FunctionID; import com.smartdevicelink.proxy.RPCMessage; import com.smartdevicelink.proxy.rpc.ReleaseInteriorVehicleDataModule; import com.smartdevicelink.proxy.rpc.enums.Modul...
smartdevicelink/sdl_android
android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/requests/ReleaseInteriorVehicleDataModuleTests.java
Java
bsd-3-clause
4,252
/* * 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/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/properties/PropertyFileManager.java
Java
bsd-3-clause
4,686
// Copyright (c) 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.testshell; import org.chromium.chrome.browser.EmptyTabObserver; import org.chromium.chrome.browser.TabBase; import org.ch...
cvsuser-chromium/chromium
chrome/android/testshell/javatests/src/org/chromium/chrome/testshell/TabShellTabUtils.java
Java
bsd-3-clause
2,436
/* * Copyright (c) Andrey Kuznetsov. All Rights Reserved. * * http://uio.imagero.com * * 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, ...
andronix3/UIO
com/imagero/uio/imageio/spi/UioInputStreamImageInputStreamSpi.java
Java
bsd-3-clause
2,828
/* * Copyright (c) 2003-2004,2013, KNOPFLERFISH 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, ...
knopflerfish/knopflerfish.org
osgi/bundles/desktop/src/org/knopflerfish/bundle/log/window/impl/ExtLogEntry.java
Java
bsd-3-clause
3,134
package abi38_0_0.expo.modules.webbrowser; import android.app.Activity; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.net.Uri; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.browser.customtabs.Cus...
exponent/exponent
android/versioned-abis/expoview-abi38_0_0/src/main/java/abi38_0_0/expo/modules/webbrowser/CustomTabsActivitiesHelper.java
Java
bsd-3-clause
4,224
/** *============================================================================ * The Ohio State University Research Foundation, The University of Chicago - * Argonne National Laboratory, Emory University, SemanticBits LLC, * and Ekagra Software Technologies Ltd. * * Distributed under the OSI-approved BSD 3-Clau...
NCIP/cagrid-portal
cagrid-portal/portlets/src/java/gov/nih/nci/cagrid/portal/portlet/discovery/details/SelectUmlClassForQueryController.java
Java
bsd-3-clause
2,321
/* * Copyright (c) 2005-2013, KNOPFLERFISH 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 ...
knopflerfish/knopflerfish.org
osgi/bundles/event/src/org/knopflerfish/bundle/event/EventAdminService.java
Java
bsd-3-clause
5,604
package br.odb.moonshot; import br.odb.gameapp.ConsoleApplication; import br.odb.gameapp.command.CommandParameterDefinition; import br.odb.gameapp.command.UserCommandLineAction; import br.odb.libscene.GroupSector; import br.odb.libscene.SceneNode; import br.odb.libscene.SpaceRegion; public class SnapTreeCommand exten...
TheFakeMontyOnTheRun/level-editor-3d
level-editor-core-java/src/main/java/br/odb/moonshot/SnapTreeCommand.java
Java
bsd-3-clause
1,744
/* * Copyright (c) 2013, 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...
wdv4758h/ZipPy
edu.uci.python.test/src/edu/uci/python/test/runtime/PythonModuleTests.java
Java
bsd-3-clause
3,359
// // Copyright 2016, Yahoo Inc. // Copyrights licensed under the New BSD License. // See the accompanying LICENSE file for terms. // // ## Stability: 0 - Unstable package github.com.jminusminus.core; public class Arrays { // Appends to the given array the given string. // // Exmaple: // // ```ja...
jminusminus/core
Arrays.java
Java
bsd-3-clause
2,540
package Hacktendo.Functions; import java.util.ArrayList; import Hackscript.Model.*; import Hacktendo.*; public class FillRectangle extends LinkerFunctions{ private RenderEngine RE; private HacktendoLinker HL; public FillRectangle(RenderEngine RE,HacktendoLinker HL){ this.RE=RE; this.HL=HL; } public Objec...
Demannu/hackwars-classic
src/classes/Hacktendo/Functions/FillRectangle.java
Java
isc
1,187
package net.scapeemulator.game.model.player.skills.prayer; import static net.scapeemulator.game.model.player.skills.prayer.PrayerType.*; import net.scapeemulator.game.model.player.requirement.PrayerPointRequirement; import net.scapeemulator.game.model.player.requirement.Requirements; import net.scapeemulator.game.mode...
davidi2/mopar
src/net/scapeemulator/game/model/player/skills/prayer/Prayer.java
Java
isc
4,074
package cn.wwah.basekit.base.adapter.helper; import java.util.List; public interface DataHelper<T> { boolean isEnabled(int position); /** * 添加单个数据到列表头部 * * @param data */ void addItemToHead(T data); /** * 添加单个数据到列表尾部 * * @param data 数据 */ void addItemToLas...
jeasinlee/AndroidBasicLibs
basekit/src/main/java/cn/wwah/basekit/base/adapter/helper/DataHelper.java
Java
mit
2,184
package com.sentenial.ws.client.dd; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CommunicationLanguage. * * <p>The following schema fragment specifies the expected content contained within this class. ...
whelanp/sentenial-ws-client
src/main/java/com/sentenial/ws/client/dd/CommunicationLanguage.java
Java
mit
1,851
/** * 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.servicefabric.v2018_02_01; import com.fasterxml....
selvasingh/azure-sdk-for-java
sdk/servicefabric/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/servicefabric/v2018_02_01/ErrorModelError.java
Java
mit
1,429
package com.geth1b.coding.skills.lc; import com.geth1b.coding.ds.TreeNode; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; /** * @author geth1b */ public class _124_BinaryTreeMaximumPathSum_Test { private _124_BinaryTreeMaximumPathSum solution; @Before public void...
geth1b/h1b-coding-interview
src/test/java/com/geth1b/coding/skills/lc/_124_BinaryTreeMaximumPathSum_Test.java
Java
mit
877
package ch.wisv.toornament.model; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; public class MatchDetails extends Match { private List<Stream> streams; private List<Vod> vods; @JsonProperty("private_note") private String privateNote; private String note; publi...
Biokinetica/toornament-client
src/main/java/ch/wisv/toornament/model/MatchDetails.java
Java
mit
910
/** * 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.edgegateway.v2019_03_01; import org.joda.time.Da...
selvasingh/azure-sdk-for-java
sdk/edgegateway/mgmt-v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/PeriodicTimerSourceInfo.java
Java
mit
3,249
package AsposeCellsExamples.TechnicalArticles; import com.aspose.cells.Cells; import com.aspose.cells.SaveFormat; import com.aspose.cells.Workbook; import AsposeCellsExamples.Utils; public class SettingSharedFormula { public static void main(String[] args) throws Exception { String dataDir = Utils.getSharedDataDi...
aspose-cells/Aspose.Cells-for-Java
Examples/src/AsposeCellsExamples/TechnicalArticles/SettingSharedFormula.java
Java
mit
843
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.xdi.oxauth.model.fido.u2f; import java.io.Serializable; import org.gluu.site.ldap.persistence.annotation.LdapAttribute; import org.gluu.site.ldap.persistence.ann...
diedertimmers/oxAuth
Server/src/main/java/org/xdi/oxauth/model/fido/u2f/RegisterRequestMessageLdap.java
Java
mit
1,620
/* * Copyright 2015-2017 Hewlett Packard Enterprise Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.frontend.find.core.configuration; import com.hp.autonomy.frontend.configuration.ConfigException...
hpe-idol/find
webapp/core/src/test/java/com/hp/autonomy/frontend/find/core/configuration/SavedSearchConfigTest.java
Java
mit
2,068
package com.yunstudio.struts.action; import java.util.Map; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts2.ServletActionContext; import com.opensymphony.xwork2.ActionCon...
sdgdsffdsfff/csustRepo
trunk/src/com/yunstudio/struts/action/BaseAction.java
Java
mit
1,876
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.sql.models; import com.azure.core.annotation.Immutable; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.ja...
selvasingh/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/models/SyncFullSchemaTableColumn.java
Java
mit
3,235
import java.util.Scanner; public class Task01LowerUpper { public static void main(String[] args) { String text1 = readInput(); String text2 = readInput(); System.out.print(text1.toUpperCase() + " "); System.out.println(text1.toLowerCase()); System.out.print(text2.toUpperCase() + " "); System.out.print(te...
marmotka/Java-Exercises-Basics
Lesson8StringMethods/src/Task01LowerUpper.java
Java
mit
1,044
/* Copyright (c) 2001-2011, The HSQL Development Group * 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...
RabadanLab/Pegasus
resources/hsqldb-2.2.7/hsqldb/src/org/hsqldb/types/NullType.java
Java
mit
3,611
import java.io.Serializable; import java.net.InetAddress; import java.net.InetSocketAddress; import java.util.ArrayList; public class Client implements Serializable { String inetAddress; int port; int id; int performance; boolean occupied; public Client(String inetAddress, int port) { ...
IrtazaSafi/CloudGaming
CentralServer/Client.java
Java
mit
1,447
package maniac.lee.shardy.shard; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlSource; import maniac.lee.shardy.sqlparser.DruidSqlParser; import maniac.lee.shardy.sqlparser.ISqlParser; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * Created by lipen...
psyco4j/shardy
src/main/java/maniac/lee/shardy/shard/TableMapping.java
Java
mit
1,188
@javax.xml.bind.annotation.XmlSchema(namespace = "http://xmlsoccer.com/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.github.pabloo99.xmlsoccer.webservice;
spauny/xmlsoccer
src/main/java/com/github/pabloo99/xmlsoccer/webservice/package-info.java
Java
mit
192
package org.sunflow.core.shader; import org.sunflow.SunflowAPI; import org.sunflow.core.ParameterList; import org.sunflow.core.ShadingState; import org.sunflow.core.Texture; import org.sunflow.core.TextureCache; import org.sunflow.image.Color; public class TexturedShinyDiffuseShader extends ShinyDiffuseShade...
David-Carlson/BlackBody
src/org/sunflow/core/shader/TexturedShinyDiffuseShader.java
Java
mit
853
package fr.delthas.javaui; final class AtlasTexture implements Texture { final Atlas atlas; final int i; boolean destroyed = false; AtlasTexture(Atlas atlas, int i) { this.atlas = atlas; this.i = i; } public void destroy() { if (destroyed) { return; } destroyed = true; a...
Delthas/JavaUI
src/main/java/fr/delthas/javaui/AtlasTexture.java
Java
mit
464
package com.javarush.test.level17.lesson10.bonus03; /* Ресторан 1.Разберись, что делает программа. Официант почему-то не относит приготовленные блюда назад к столам :( 2.Исправь ошибку. Подсказка: это одна строчка */ public class Restaurant { public static void main(String[] args) throws Exception { Waite...
Juffik/JavaRush-1
src/com/javarush/test/level17/lesson10/bonus03/Restaurant.java
Java
mit
787
package com.viesis.viescraft.common.entity.airshipcolors.v2; import net.minecraft.item.Item; import net.minecraft.world.World; import com.viesis.viescraft.common.entity.airshipcolors.EntityAirshipV2Core; import com.viesis.viescraft.configs.ViesCraftConfig; import com.viesis.viescraft.init.InitItemsVC; public class E...
Weisses/Ebonheart-Mods
ViesCraft/Archived/zzz - PreCapabilities - src/main/java/com/viesis/viescraft/common/entity/airshipcolors/v2/EntityAirshipV2Green.java
Java
mit
1,227
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.xdi.oxauth.service; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.Factory; import org.jboss.seam.annotations.In; import org.jboss.seam.annot...
diedertimmers/oxAuth
Server/src/main/java/org/xdi/oxauth/service/ApplicationFactory.java
Java
mit
2,331
package online.zhaopei.myproject.domain.ecssent; import online.zhaopei.myproject.domain.BaseDomain; public class InvtDeliveryComparison extends BaseDomain { /** * serialVersionUID */ private static final long serialVersionUID = -7562709963950329434L; private String deliveryHeadGuid; private String invtHea...
zhaopei0418/maintain
src/main/java/online/zhaopei/myproject/domain/ecssent/InvtDeliveryComparison.java
Java
mit
2,714
package org.elkoserver.foundation.actor; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.Iterator; import org.elkoserver.foundation.net.HTTPFramer; import org.elkoserver.foundation.net.NetworkManager; import org.elkoserver.json.JSONLiteral; import org.elkoserver.json.JSONObjec...
FUDCo/Elko
ServerCore/java/org/elkoserver/foundation/actor/JSONHTTPFramer.java
Java
mit
6,162
package commands.mathCommands; import commands.MathCommand; public class RemainderMathCommand extends MathCommand { public RemainderMathCommand() { super(2); } @Override public double execute(Object o) { return parameters.get(0) % parameters.get(1); } }
codylieu/slogo
src/commands/mathCommands/RemainderMathCommand.java
Java
mit
268
/* * 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...
javaseeds/java-design-patterns
unit-of-work/src/main/java/com/iluwatar/unitofwork/StudentRepository.java
Java
mit
4,287
/* * Copyright (c) 2015 Sebastian Brudzinski * * See the file LICENSE for copying permission. */ package latexstudio.editor.remote; import com.dropbox.core.DbxAccountInfo; import com.dropbox.core.DbxAppInfo; import com.dropbox.core.DbxAuthFinish; import com.dropbox.core.DbxClient; import com.dropbox.core.DbxExce...
WhiteHsu/Open-LaTeX-Studio
OpenLaTeXStudio/Editor/src/main/java/latexstudio/editor/remote/ConnectDropbox.java
Java
mit
6,531
package com.hp.autonomy.hod.caching; import java.util.Collection; import static org.hamcrest.Matchers.hasItems; import static org.junit.Assert.assertThat; public class HodPerUserCacheResolverTest extends AbstractHodCacheResolverTest { @Override protected AbstractHodCacheResolver constructCacheResolver() { ...
hpe-idol/java-hod-spring-caching
src/test/java/com/hp/autonomy/hod/caching/HodPerUserCacheResolverTest.java
Java
mit
796
package net.hexogendev.hexogen.api; public enum Side { CLIENT, SERVER; public boolean isServer() { return !isClient(); } public boolean isClient() { return this == CLIENT; } }
HexogenDev/Hexogen-API
src/main/java/net/hexogendev/hexogen/api/Side.java
Java
mit
189
/* * Copyright (c) 2011 LinkedIn, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
zkmake520/Android_Search
indextank-engine-master/embedded-api/com/flaptor/indextank/api/util/QueryHelper.java
Java
mit
931
package net.segner.maven.plugins.communal.weblogic; import net.segner.maven.plugins.communal.module.EarModule; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.internal.util.reflection.Whitebox; import org.mockito.runners.MockitoJUnitRunner; ...
asegner/skinnywar-maven-plugin
src/test/java/net/segner/maven/plugins/communal/weblogic/WeblogicApplicationXmlTest.java
Java
mit
1,776
package dataframe; import org.apache.spark.sql.*; import org.apache.spark.sql.types.DataTypes; import org.apache.spark.sql.types.StructField; import org.apache.spark.sql.types.StructType; import static org.apache.spark.sql.functions.col; import java.util.Arrays; import java.util.List; // // Note that conceptually a...
chocolateBlack/LearningSpark
src/main/java/dataframe/JavaFromRowsAndSchema.java
Java
mit
2,316
package us.categorize.communication.creation.attachment; import java.io.InputStream; import com.amazonaws.auth.profile.ProfileCredentialsProvider; import com.amazonaws.regions.Region; import com.amazonaws.regions.Regions; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3Client; impo...
keefe/categorizeus
core/src/main/java/us/categorize/communication/creation/attachment/S3AttachmentHandler.java
Java
mit
2,131
package com.zvidia.pomelo.protobuf; /** * Created with IntelliJ IDEA. * User: jiangzm * Date: 13-8-7 * Time: 下午8:52 * To change this template use File | Settings | File Templates. */ public enum MessageOption { required, optional, repeated, message }
sreeusha/javarepo
src/main/java/com/zvidia/pomelo/protobuf/MessageOption.java
Java
mit
266
/** */ package gluemodel.CIM.IEC61970.Informative.MarketOperations.impl; import gluemodel.CIM.IEC61970.Informative.MarketOperations.MarketOperationsPackage; import gluemodel.CIM.IEC61970.Informative.MarketOperations.ProductBid; import gluemodel.CIM.IEC61970.Informative.MarketOperations.ProductBidClearing; import jav...
georghinkel/ttc2017smartGrids
solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/MarketOperations/impl/ProductBidClearingImpl.java
Java
mit
6,435
package com.your_package_name; import org.json.JSONArray; import org.json.JSONException; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import com.phonegap.api.Plugin; import com.phonegap.api.Plug...
bilelz/phonegap-system-notification-plugin
android-statusbar-notificaion/SystemNotification.java
Java
mit
3,263
/* * Copyright (c) 2012. HappyDroids LLC, All rights reserved. */ package com.happydroids.droidtowers.achievements; public enum RequirementType { POPULATION, EMPLOYMENT, DESIRABILITY, BUILD, HIRE, UNLOCK, HAPPYDROIDS_CONNECT, ADD_NEIGHBOR }
0x90sled/droidtowers
main/source/com/happydroids/droidtowers/achievements/RequirementType.java
Java
mit
261
package org.nextcoin.nxtclient; import org.nextcoin.alias.AliasAssignActivity; import org.nextcoin.alias.AliasCheck; import org.nextcoin.service.NxtBackgroudService; import android.content.Context; import android.content.Intent; import android.view.View; import android.widget.AdapterView; import android.wid...
JunhuaLyu/Nxt-Client-For-Android
src/org/nextcoin/nxtclient/ToolsPage.java
Java
mit
5,600
package main.java.com.inmobi.monetization.api.request.ad; import main.java.com.inmobi.monetization.api.request.utils.Validator; import main.java.com.inmobi.monetization.api.utils.InternalUtil; /** * This class represents the "banner" object, required under the "imp" object to * describe the type of ad requested.</b...
InMobi/api-monetization
java/src/main/java/com/inmobi/monetization/api/request/ad/Slot.java
Java
mit
2,150
package appstore; import static org.junit.Assert.*; import org.junit.Ignore; import org.junit.Test; public class TestThisWillFailAbunch { @Test public void aFailingTest() { assertTrue("I expected this to pass!", true); } @Ignore @Test public void aFailingTest2() { // doSomet...
i386/app-store-demo
src/test/java/appstore/TestThisWillFailAbunch.java
Java
mit
1,759