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 pro.taskana.rest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertThrows;
import java.io.IOException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api... | BVier/Taskana | rest/taskana-rest-spring/src/test/java/pro/taskana/rest/ClassificationControllerIntTest.java | Java | apache-2.0 | 12,241 |
package net.happybrackets.develop;
import net.beadsproject.beads.data.Sample;
import net.beadsproject.beads.data.SampleManager;
import net.beadsproject.beads.ugens.*;
import net.happybrackets.core.HBAction;
import net.happybrackets.device.HB;
import net.happybrackets.device.sensors.*;
import net.happybrackets.device.s... | orsjb/HappyBrackets | HappyBrackets/src/test/java/net/happybrackets/develop/CassetteTapeMachine.java | Java | apache-2.0 | 7,101 |
/*
* 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... | webos21/xi | java/jcl/src/java/org/apache/harmony/security/provider/crypto/DSAKeyFactoryImpl.java | Java | apache-2.0 | 6,772 |
package com.googlecode.blaisemath.primitive;
/*-
* #%L
* blaise-common
* --
* Copyright (C) 2014 - 2021 Elisha Peterson
* --
* 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
*
* ... | triathematician/blaisemath | blaise-common/src/main/java/com/googlecode/blaisemath/primitive/Markers.java | Java | apache-2.0 | 17,804 |
/*
* Copyright (C) 2013-2015 RoboVM AB
*
* 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 ... | samskivert/robovm-samples | Tabster/src/main/java/org/robovm/samples/tabster/viewcontrollers/FourViewController.java | Java | apache-2.0 | 2,319 |
package com.splunk.sharedmc.loggable_events;
/**
* Categories of loggable events.
*/
public enum LoggableEventType {
PLAYER("PlayerEvent"),
BLOCK("BlockEvent"),
DEATH("DeathEvent");
private final String eventName;
LoggableEventType(String eventName) {
this.eventName = eventName;
}
... | splunk/minecraft-app | shared-mc/src/main/java/com/splunk/sharedmc/loggable_events/LoggableEventType.java | Java | apache-2.0 | 389 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | gravitee-io/graviteeio-access-management | gravitee-am-management-api/gravitee-am-management-api-rest/src/main/java/io/gravitee/am/management/handlers/management/api/authentication/handler/CustomAuthenticationSuccessHandler.java | Java | apache-2.0 | 2,923 |
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | jentfoo/aws-sdk-java | aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/RemoveTagsResult.java | Java | apache-2.0 | 2,404 |
/*
* 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 distributed under t... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/classes/ClassAssert_hasDeclaredFields_Test.java | Java | apache-2.0 | 1,264 |
package kikaha.cloud.aws.lambda;
import kikaha.core.test.KikahaRunner;
import kikaha.core.util.SystemResource;
import org.junit.Test;
import org.junit.runner.RunWith;
import javax.inject.Inject;
import static org.junit.Assert.assertNotNull;
@RunWith(KikahaRunner.class)
public class AmazonLambdaRequestSerializationT... | Skullabs/kikaha | kikaha-modules/kikaha-cloud-aws-lambda/tests/kikaha/cloud/aws/lambda/AmazonLambdaRequestSerializationTest.java | Java | apache-2.0 | 699 |
package cn.wh.bean;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="person")
public class Per... | bingoogolapple/J2EENote | EJB/EntityBean/src/cn/wh/bean/Person.java | Java | apache-2.0 | 1,405 |
package com.microexample.geolocation;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.*;
import com.amazonaws.auth.AWSCredentialsProvider;
import com.amazonaws.auth.EnvironmentVariableCredentialsProvi... | vahpetr/microapp | geolocation/src/main/java/com/microexample/geolocation/GeolocationApplication.java | Java | apache-2.0 | 2,396 |
/**
* Package for utils in "Sql-xml-xslt-jdbc" task.
*
* @author Viacheslav Piliugin (mailto:ephemeralin@gmail.com)
* @version $Id$
* @since 0.1
*/
package ru.job4j.sqlxmlxsltjdbc.util;
| ephemeralin/java-training | chapter_006/src/main/java/ru/job4j/sqlxmlxsltjdbc/util/package-info.java | Java | apache-2.0 | 192 |
/**
*/
package org.afplib.afplib.impl;
import java.util.Collection;
import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.BRG;
import org.afplib.base.Triplet;
import org.afplib.base.impl.SFImpl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
... | yan74/afplib | org.afplib/src/main/java/org/afplib/afplib/impl/BRGImpl.java | Java | apache-2.0 | 5,195 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | yippeesoft/NotifyTools | beanutils/src/main/java/org/apache/commons/beanutils/LazyDynaClass.java | Java | apache-2.0 | 13,983 |
/*
* Copyright (c) 2011-2015 Spotify AB
*
* 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 ag... | skinzer/async-google-pubsub-client | src/test/java/com/spotify/google/cloud/pubsub/client/integration/ProgressMeter.java | Java | apache-2.0 | 3,190 |
/*
* 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 ... | alanfgates/hive | llap-common/src/java/org/apache/hadoop/hive/llap/metrics/ReadWriteLockMetrics.java | Java | apache-2.0 | 15,607 |
package leetcode;
/**
* Given a non negative integer number num. For every numbers i in the range 0 ≤
* i ≤ num calculate the number of 1's in their binary representation and return
* them as an array.
* Example:
* For num = 5 you should return [0,1,1,2,1,2].
* Follow up:
* It is very easy to come up with a sol... | pistolove/Lettcode | lettcode/src/leetcode/Counting_Bits.java | Java | apache-2.0 | 1,193 |
package org.directcode.ide.core;
import lombok.Getter;
import org.directcode.ide.api.*;
import org.directcode.ide.api.MenuBar;
import org.directcode.ide.plugins.PluginManager;
import org.directcode.ide.util.Logger;
import org.directcode.ide.window.EditorWindow;
import org.directcode.ide.window.laf.LookAndFeelManager;
... | logangorence/Aluminum | src/main/java/org/directcode/ide/core/Aluminum.java | Java | apache-2.0 | 2,738 |
package org.lantern.monitoring;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.lantern.HttpURLClient;
import org.... | getlantern/lantern-common | src/main/java/org/lantern/monitoring/StatshubAPI.java | Java | apache-2.0 | 4,868 |
package fi.oulu.tol.sqat;
public class ConjuredItem extends Item{
public ConjuredItem(String name, int sellIn, int quality){
super(name, sellIn, quality);
}
}
| Domuska/GildedRose | src/fi/oulu/tol/sqat/ConjuredItem.java | Java | apache-2.0 | 174 |
/*
* Copyright (c) 2020 VMware Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*
* 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/L... | mbudiu-vmw/hiero | platform/src/main/java/org/hillview/table/filters/RangeFilterArrayDescription.java | Java | apache-2.0 | 1,601 |
package explorviz.shared.usertracking.records.application;
import explorviz.shared.usertracking.UsertrackingRecord;
public class BackToLandscapeRecord extends UsertrackingRecord {
@Override
public String csvSerialize() {
return "";
}
}
| ExplorViz/ExplorViz | src/explorviz/shared/usertracking/records/application/BackToLandscapeRecord.java | Java | apache-2.0 | 243 |
/*
* Copyright 2009 Kjetil Valstadsve
*
* 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 agre... | kjetilv/vanadis | launcher/src/main/java/vanadis/launcher/AbstractOSGiLauncher.java | Java | apache-2.0 | 12,772 |
package se.chalmers.pd.sensors;
import org.json.JSONException;
import org.json.JSONObject;
/**
* This controller class creates messages and asks a mqtt worker to publish
* them. The worker is instantiated when the object is created and the thread is
* started. There is no guarantee however that the thread will sta... | Snadde/infotainment | apps/sensors/src/se/chalmers/pd/sensors/Controller.java | Java | apache-2.0 | 1,389 |
package com.fsck.k9.mail.store.imap;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.fsck.k9.mail.K9MailLib;
import com.fsck.k9.mail.filter.FixedLengthInputStream;
import com.fsck.k9.mail.filter.PeekableInputStream;
import timber.log.Timber;
impor... | philipwhiuk/q-mail | qmail-library/src/main/java/com/fsck/k9/mail/store/imap/ImapResponseParser.java | Java | apache-2.0 | 15,316 |
package moe.dangoreader.activity;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuIte... | williamxu/DangoReader | app/src/main/java/moe/dangoreader/activity/MangaItemActivity.java | Java | apache-2.0 | 5,092 |
package com.github.j1stiot.mqtt.api.internal;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.mqtt.*;
import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* Represent MQTT Message passed in Com... | 12315jack/j1st-mqtt | j1st-mqtt-api/src/main/java/com/github/j1stiot/mqtt/api/internal/InternalMessage.java | Java | apache-2.0 | 13,361 |
/*
* Copyright 2009 Google 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 agreed to in w... | BladeRunnerJS/brjs-JsTestDriver | JsTestDriver/src/com/google/jstestdriver/output/XmlPrinterImpl.java | Java | apache-2.0 | 3,937 |
/*
************************************************************************************
* Copyright (C) 2001-2011 encuestame: system online surveys Copyright (C) 2009
* encuestame Development Team.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.... | cristiani/encuestame | enme-business/src/main/java/org/encuestame/business/cron/RemoveUnconfirmedAccountJob.java | Java | apache-2.0 | 3,004 |
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | aws/aws-sdk-java | aws-java-sdk-proton/src/main/java/com/amazonaws/services/proton/model/transform/ServicePipelineJsonUnmarshaller.java | Java | apache-2.0 | 5,087 |
package weibo4j.http;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.auth.AuthScope;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.DeleteMethod;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.common... | jpbirdy/WordsDetection | weibo/src/main/java/weibo4j/http/HttpClient.java | Java | apache-2.0 | 18,712 |
package mx.fiscoflex.contabilidad.util;
public class UUIDCheck {
public static boolean isUUID(String uuid) {
return uuid.matches("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[34][0-9a-fA-F]{3}-[89ab][0-9a-fA-F]{3}-[0-9a-fA-F]{12}");
}
}
| fiscoflex/erp | fiscoflex-api/src/main/java/mx/fiscoflex/contabilidad/util/UUIDCheck.java | Java | apache-2.0 | 229 |
/**
* Copyright 2005-2013 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | ua-eas/ksd-kc5.2.1-rice2.3.6-ua | rice-middleware/it/ksb/src/test/java/org/kuali/rice/ksb/messaging/remotedservices/BaseballCardCollectionService.java | Java | apache-2.0 | 2,496 |
/*
* Copyright 2016 Jalotsav
*
* 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 ... | jalotsav/Sarvam-Sugar | app/src/main/java/com/jalotsav/sarvamsugar/navgtndrawer/FrgmntOutstandingRprt.java | Java | apache-2.0 | 25,900 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to you under the Apache License, Version 2.0
* (the "License"); you may ... | glimpseio/incubator-calcite | core/src/test/java/org/apache/calcite/util/UtilTest.java | Java | apache-2.0 | 47,693 |
package com.weather.app.db;
import java.util.ArrayList;
import java.util.List;
import com.weather.app.model.City;
import com.weather.app.model.County;
import com.weather.app.model.Province;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import androi... | 3p14/weather | src/com/weather/app/db/WeatherDB.java | Java | apache-2.0 | 3,630 |
package com.rizal.lovins.smartkasir.activity;
import android.content.Context;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.FragmentActivity;
im... | RizalLovins/LovinsSmartKasir | app/src/main/java/com/rizal/lovins/smartkasir/activity/MapsActivity.java | Java | apache-2.0 | 3,259 |
package com.topie.humantask.rule;
import java.util.Collections;
import java.util.List;
import com.topie.api.org.OrgConnector;
import com.topie.core.spring.ApplicationContextHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 获得指定用户的上级领导.
*
*/
public class SuperiorAssigneeRule implements Assi... | topie/topie-oa | src/main/java/com/topie/humantask/rule/SuperiorAssigneeRule.java | Java | apache-2.0 | 922 |
/**
* Copyright 2015 Peter Nerg
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applicable law or agreed t... | pnerg/java-scala-util | src/main/java/javascalautils/concurrent/ExecutorImpl.java | Java | apache-2.0 | 4,857 |
/*
* #!
* Ontopia Engine
* #-
* Copyright (C) 2001 - 2013 The Ontopia Project
* #-
* 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... | ontopia/ontopia | ontopia-engine/src/main/java/net/ontopia/topicmaps/cmdlineutils/rdbms/TranslateSourceLocators.java | Java | apache-2.0 | 4,242 |
/*
* Copyright 2011 SearchWorkings.org
*
* 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 agr... | cominvent/solr-explorer | src/main/java/org/apache/solr/explorer/client/core/manager/ui/DefaultProgressIndicator.java | Java | apache-2.0 | 2,187 |
/*
* Copyright (C) 2014 Balys Valentukevicius
*
* 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 la... | infakt/material-menu | library/src/main/java/com/balysv/materialmenu/MaterialMenuDrawable.java | Java | apache-2.0 | 26,723 |
package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, 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 copyr... | eug48/hapi-fhir | hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Practitioner.java | Java | apache-2.0 | 65,552 |
package org.jboss.resteasy.client.jaxrs;
import javax.ws.rs.core.MediaType;
public class ProxyConfig
{
private final ClassLoader loader;
private final MediaType defaultConsumes;
private final MediaType defaultProduces;
public ProxyConfig(ClassLoader loader, MediaType defaultConsumes, MediaType defaultProduces)
... | raphaelning/resteasy-client-android | jaxrs/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/ProxyConfig.java | Java | apache-2.0 | 646 |
/*
* Copyright 2013 Cyber Eagle
*
* 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 la... | CyberEagle/AndroidLibrary | library/src/main/java/br/com/cybereagle/androidlibrary/util/Utils.java | Java | apache-2.0 | 1,060 |
package org.web3j.abi.datatypes.generated;
import java.math.BigInteger;
import org.web3j.abi.datatypes.Fixed;
/**
* <p>Auto generated code.<br>
* <strong>Do not modifiy!</strong><br>
* Please use {@link org.web3j.codegen.AbiTypesGenerator} to update.</p>
*/
public class Fixed112x72 extends Fixed {
public sta... | saulbein/web3j | core/src/main/java/org/web3j/abi/datatypes/generated/Fixed112x72.java | Java | apache-2.0 | 587 |
package com.krux.stdlib.status;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class StatusBean {
private final AppState state;
... | krux/java-stdlib | krux-stdlib-monitoring/src/main/java/com/krux/stdlib/status/StatusBean.java | Java | apache-2.0 | 2,094 |
package com.morgan.grid.server.auth;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.google.inject.Provides;
import com.morgan.grid.server.common.constants.AbstractConstantsModule;
import com.morgan.grid.server.common.const... | mmm2a/GridApp | src/com/morgan/grid/server/auth/AuthConstantsModule.java | Java | apache-2.0 | 869 |
package com.sequenceiq.it.cloudbreak.log;
import static java.lang.String.format;
import java.io.IOException;
import java.io.StringWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.ITestResult;
import org.testng.Reporter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com... | hortonworks/cloudbreak | integration-test/src/main/java/com/sequenceiq/it/cloudbreak/log/Log.java | Java | apache-2.0 | 5,386 |
package practicaltest02.eim.systems.cs.pub.ro.practicaltest2;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, ... | hstoenescu/PracticalTest02 | PracticalTest2/app/src/androidTest/java/practicaltest02/eim/systems/cs/pub/ro/practicaltest2/ExampleInstrumentedTest.java | Java | apache-2.0 | 808 |
package com.lenox.beyondj.action.site;
import com.lenox.beyondj.action.BaseActionBean;
import com.lenox.beyondj.action.SkipAuthentication;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;
import net.s... | nkasvosve/beyondj | beyondj-admin/beyondj-web-console/src/main/java/com/lenox/beyondj/action/site/FAQActionBean.java | Java | apache-2.0 | 854 |
package com.hcl.bigchaindbDriver;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.junit.Test;
import java.awt.*;
import static org.junit.As... | mgrand/bigchaindb-java-driver | bigchaindbdriver/src/test/java/com/hcl/bigchaindbDriver/BigchainDBTest.java | Java | apache-2.0 | 2,946 |
package testing.magnum.io.testingexample;
import android.content.Context;
import android.location.Address;
import android.location.Geocoder;
import java.io.IOException;
import java.util.List;
import java.util.Locale;
/**
* Created by jules on 8/8/16.
*/
public class LoginUtils {
/**
* This method checks... | juleswhite/coursera-sustainable-apps | TestingLectures/app/src/main/java/testing/magnum/io/testingexample/LoginUtils.java | Java | apache-2.0 | 1,844 |
package com.example.supertux.Macros;
import android.app.AlertDialog;
import android.app.Fragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.... | terryhtran/macros | java/com/example/supertux/Macros/EntryFragment.java | Java | apache-2.0 | 3,398 |
package objects;
public class Term /*implements Comparable<Term>*/{
private int m;
private int n;
private int val;
//private int frequency;
public Term(int m, int n){
this.setM(m);
this.setN(n);
//frequency = 0;
}
public int getM() {
return m;
}
private void setM(int m) {
... | Noah-Kennedy/MathAndResearch | NewAck/src/objects/Term.java | Java | apache-2.0 | 964 |
/*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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 app... | baldimir/jbpm | jbpm-installer/src/test/java/org/jbpm/persistence/scripts/quartzmockentities/QrtzPausedTriggerGrps.java | Java | apache-2.0 | 1,376 |
/*
* Copyright (c) 2021 EmeraldPay Inc, All Rights Reserved.
* Copyright (c) 2016-2019 Igor Artamonov, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | ethereumproject/etherjar | etherjar-tx/src/main/java/io/emeraldpay/etherjar/tx/Signature.java | Java | apache-2.0 | 3,663 |
/*
* 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
* distribut... | gbif/parsers | src/test/java/org/gbif/common/parsers/date/ThreeTenNumericalDateParserTest.java | Java | apache-2.0 | 10,688 |
/**
* JBoss, Home of Professional Open Source.
* Copyright 2014-2020 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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... | thescouser89/pnc | mapper/src/main/java/org/jboss/pnc/mapper/api/EntityMapper.java | Java | apache-2.0 | 1,989 |
/*
* #%L
* wcm.io
* %%
* Copyright (C) 2016 wcm.io
* %%
* 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 ap... | shadyeltobgy/wcm-io-caconfig | compat/src/main/java/io/wcm/config/spi/helpers/AbstractParameterProvider.java | Java | apache-2.0 | 2,448 |
/**
* Created by fuliang on 2015/4/22.
*/
public class UniquePaths {
public int uniquePaths(int m, int n) {
int[][] nums = new int[m][n];
for (int i = 0; i < nums.length; i++) {
nums[i][0] = 1;
}
for (int j = 0; j < nums[0].length; j++) {
nums[0]... | fuliang/leetcode | src/UniquePaths.java | Java | apache-2.0 | 556 |
package com.planet_ink.coffee_mud.Locales;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_ink... | vjanmey/EpicMudfia | com/planet_ink/coffee_mud/Locales/StdMaze.java | Java | apache-2.0 | 4,718 |
/*
* Copyright (c) 2013-2019 Cinchapi 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 agr... | cinchapi/accent4j | src/main/java/com/cinchapi/common/concurrent/ExecutorRaceService.java | Java | apache-2.0 | 7,355 |
/*
* 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 distributed under t... | hazendaz/assertj-core | src/main/java/org/assertj/core/util/introspection/Introspection.java | Java | apache-2.0 | 6,316 |
package com.orcchg.dev.maxa.rxmusic.data.injection.local.music.artist;
import dagger.Module;
@Module
public class ArtistMigrationModule {
}
| orcchg/RxMusic | app/src/main/java/com/orcchg/dev/maxa/rxmusic/data/injection/local/music/artist/ArtistMigrationModule.java | Java | apache-2.0 | 142 |
package org.apache.maven.artifact.resolver;
/*
* 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 ... | sonatype/maven-demo | maven-compat/src/main/java/org/apache/maven/artifact/resolver/WarningResolutionListener.java | Java | apache-2.0 | 2,441 |
package android.util;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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.apa... | Orange-OpenSource/matos-profiles | matos-android/src/main/java/android/util/SparseArray.java | Java | apache-2.0 | 2,012 |
/*
* Copyright 2015-present Open Networking Laboratory
*
* 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 appli... | maheshraju-Huawei/actn | apps/pcep-api/src/test/java/org/onosproject/pcep/pcepio/protocol/PcepReportMsgTest.java | Java | apache-2.0 | 76,890 |
/*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | equella/Equella | Source/Plugins/Core/com.equella.serverbase/src/com/tle/hibernate/dialect/LongNStringType.java | Java | apache-2.0 | 1,324 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | hanahmily/sky-walking | apm-collector/apm-collector-core/src/main/java/org/apache/skywalking/apm/collector/core/data/Operation.java | Java | apache-2.0 | 1,257 |
package com.enrique.eventbusarchitecture.secondfragment;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.enrique.eventbusarchitecture.R;
import butterknife.ButterKnife;
public class SecondFragment extends ... | kikoso/Event-Bus-Architecture | app/src/main/java/com/enrique/eventbusarchitecture/secondfragment/SecondFragment.java | Java | apache-2.0 | 601 |
/*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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 agre... | leafclick/intellij-community | platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/GoToHashOrRefAction.java | Java | apache-2.0 | 2,623 |
package ua.com.lsd25.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.social.facebook.api.Facebook;
import org.springframework.social.facebook.api.impl.FacebookT... | vzagnitko/BluetoothMusicServer | src/main/java/ua/com/lsd25/config/FacebookConfig.java | Java | apache-2.0 | 650 |
/*
* 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 ... | dprguiuc/Cassandra-Wasef | src/java/org/apache/cassandra/hadoop/pig/AbstractCassandraStorage.java | Java | apache-2.0 | 31,146 |
package com.cetc;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import o... | ZHANGLONG678/springmvc | src/main/java/com/cetc/TokenInterceptor.java | Java | apache-2.0 | 5,596 |
package org.sfx.catholicjourney.core.utils;
import android.content.res.ColorStateList;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
/**
* Created by simonadmin on 2015-03-18.
*/
public class TextUtility {
/**
* Set the TextView text. If text is null/empty, hide textvi... | simtse/CatholicJourney | app/src/main/java/org/sfx/catholicjourney/core/utils/TextUtility.java | Java | apache-2.0 | 901 |
package nl.pietervanberkel.util;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
import nl.pietervanberkel.model.Model;
@WebListener
public class ServletListener implements ServletContextListener{
@Override
public void conte... | pokyno/Webtechnologie | Webtechnologie_Opdracht1/src/nl/pietervanberkel/util/ServletListener.java | Java | apache-2.0 | 504 |
package ru.job4j.loops;
/**Counting factorial.
*@author Anton Oleynikov
*@version 1
*/
public class Factorial {
/**
*@param max max
*@return count count
*/
public int fac(int max) {
int count = 1;
for (int i = 2; i <= max; i++) {
count = count * i;
}
... | misterflud/aoleynikov | chapter_001/src/main/java/ru/job4j/loops/Factorial.java | Java | apache-2.0 | 343 |
package org.docksidestage.postgresql.dbflute.cbean.cq.bs;
import java.util.Map;
import org.dbflute.cbean.*;
import org.dbflute.cbean.chelper.*;
import org.dbflute.cbean.coption.*;
import org.dbflute.cbean.cvalue.ConditionValue;
import org.dbflute.cbean.sqlclause.SqlClause;
import org.dbflute.exception.IllegalConditio... | dbflute-test/dbflute-test-dbms-postgresql | src/main/java/org/docksidestage/postgresql/dbflute/cbean/cq/bs/BsProductStatusCQ.java | Java | apache-2.0 | 13,406 |
/**
* 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... | BUPTAnderson/apache-hive-2.1.1-src | service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java | Java | apache-2.0 | 27,525 |
package org.drools.compiler.reteoo.compiled;
import org.drools.core.base.ClassObjectType;
import org.drools.core.base.ValueType;
import org.drools.compiler.compiler.PackageBuilder;
import org.drools.compiler.compiler.PackageRegistry;
import org.drools.compiler.lang.descr.PackageDescr;
import org.drools.core.reteoo.Obj... | Buble1981/MyDroolsFork | drools-compiler/src/main/java/org/drools/compiler/reteoo/compiled/ObjectTypeNodeCompiler.java | Java | apache-2.0 | 7,672 |
/*
* Copyright 2013-2021 the original author or authors.
*
* 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 ap... | cloudfoundry/cf-java-client | cloudfoundry-client/src/test/java/org/cloudfoundry/client/v2/routemappings/GetRouteMappingRequestTest.java | Java | apache-2.0 | 1,059 |
package com.qingbo.ginkgo.ygb.web.pojo;
import java.io.Serializable;
public class BrokerAdd implements Serializable{
private static final long serialVersionUID = -6153623054869466896L;
//营销机构userId
private Long marketingUserId;
private String customerNum;
private String userName;
private Strin... | hwxiasn/archetypes | ygb/ygb-web/src/main/java/com/qingbo/ginkgo/ygb/web/pojo/BrokerAdd.java | Java | apache-2.0 | 954 |
/*
* 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
* distribut... | Praveen2112/presto | core/trino-main/src/test/java/io/trino/operator/scalar/BenchmarkArrayFilter.java | Java | apache-2.0 | 10,904 |
package StructuralPatterns.ProxyPatterns.ProxyClasses;
import StructuralPatterns.ProxyPatterns.OriginalClasses.ConcreteSubject;
import StructuralPatterns.ProxyPatterns.OriginalClasses.Subject;
public class Proxy extends Subject {
ConcreteSubject cs;
@Override
public void doSomeWork() {
System.out.println("Proxy... | Daniel-Dos/Java-Design-Patterns | src/StructuralPatterns/ProxyPatterns/ProxyClasses/Proxy.java | Java | apache-2.0 | 448 |
package com.alex.common.model;
import com.baidu.platform.comapi.basestruct.GeoPoint;
/**
* 地理位置的重新封装
* @author caisenchuan
*/
public class GeoPos extends GeoPoint{
/*--------------------------
* 常量
*-------------------------*/
/*--------------------------
* 自定义类型
*---------------------... | alexcaisenchuan/FunWeibo | src/com/alex/common/model/GeoPos.java | Java | apache-2.0 | 1,134 |
package fr.javatronic.blog.massive.annotation2;
import fr.javatronic.blog.processor.Annotation_002;
@Annotation_002
public class Class_039 {
}
| lesaint/experimenting-annotation-processing | experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation2/Class_039.java | Java | apache-2.0 | 145 |
/*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (th... | rfellows/pentaho-kettle | engine/src/org/pentaho/di/trans/steps/userdefinedjavaclass/TransformClassBase.java | Java | apache-2.0 | 20,128 |
/*
* Copyright 2015 Patrick Ahlbrecht
*
* 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 ... | onyxbits/raccoon4 | src/main/java/de/onyxbits/raccoon/appmgr/MyAppsViewBuilder.java | Java | apache-2.0 | 7,560 |
/* __ __ __ __ __ ___
* \ \ / / \ \ / / __/
* \ \/ / /\ \ \/ / /
* \____/__/ \__\____/__/.ɪᴏ
* ᶜᵒᵖʸʳᶦᵍʰᵗ ᵇʸ ᵛᵃᵛʳ ⁻ ˡᶦᶜᵉⁿˢᵉᵈ ᵘⁿᵈᵉʳ ᵗʰᵉ ᵃᵖᵃᶜʰᵉ ˡᶦᶜᵉⁿˢᵉ ᵛᵉʳˢᶦᵒⁿ ᵗʷᵒ ᵈᵒᵗ ᶻᵉʳᵒ
*/
package io.vavr.collect... | dx-pbuckley/vavr | vavr/src/test/java/io/vavr/collection/euler/Euler36Test.java | Java | apache-2.0 | 1,790 |
package com.xxx.market.service.provider;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fas... | pjworkspace/wscs | wscs-service-provider/src/main/java/com/xxx/market/service/provider/PromotionServiceImpl.java | Java | apache-2.0 | 13,513 |
/**
* 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... | mapr/hbase | hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureMember.java | Java | apache-2.0 | 9,277 |
package pohkahkong.livewallpaper.collage;
import android.app.Activity;
import android.app.WallpaperManager;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.Toas... | strengthandwill/collage-lwp | src/pohkahkong/livewallpaper/collage/StartDialog.java | Java | apache-2.0 | 2,776 |
/*
* Copyright (c) 2010-2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/lic... | liuyb02/async-http-client | client/src/test/java/org/asynchttpclient/NonAsciiContentLengthTest.java | Java | apache-2.0 | 3,574 |
package com.rcextract.minecord.event.server;
import org.bukkit.event.HandlerList;
import com.rcextract.minecord.Server;
public class ServerSetPermanentEvent extends ServerEvent {
private static final HandlerList handlers = new HandlerList();
public static HandlerList getHandlerList() {
return handlers;
}
priv... | RcExtract/Minecord | src/main/java/com/rcextract/minecord/event/server/ServerSetPermanentEvent.java | Java | apache-2.0 | 671 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | gzsombor/ranger | security-admin/src/main/java/org/apache/ranger/patch/PatchMigration_J10002.java | Java | apache-2.0 | 18,542 |
package org.ovirt.mobile.movirt.ui.mvp;
public interface FinishableView extends BaseView {
void finish();
}
| matobet/moVirt | moVirt/src/main/java/org/ovirt/mobile/movirt/ui/mvp/FinishableView.java | Java | apache-2.0 | 114 |
/*
* PolicyEditorKit.java
*
* Created on October 20, 2005, 5:14 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.netbeans.modules.policysupport;
import javax.swing.text.Document;
import org.netbeans.editor.Syntax;
import org.netb... | bernhardhuber/netbeansplugins | nb-policy-support/src/org/netbeans/modules/policysupport/PolicyEditorKit.java | Java | apache-2.0 | 1,443 |
// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection.ui.actions;
import com.intellij.application.options.CodeStyle;
import com.intellij.codeEditor.printing.ExportToHTMLSettings;
import com.intel... | mdanielwork/intellij-community | platform/lang-impl/src/com/intellij/codeInspection/ui/actions/ExportHTMLAction.java | Java | apache-2.0 | 12,805 |