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
/* * Copyright 2012 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 applica...
CarloMicieli/spring-mvc-movies
src/test/java/com/github/carlomicieli/nerdmovies/models/MailUserTests.java
Java
apache-2.0
1,421
/* * Copyright (c) 2016 ingenieux Labs * * 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 ...
ingenieux/beanstalker
beanstalk-maven-plugin/src/main/java/br/com/ingenieux/mojo/beanstalk/config/DeleteConfigurationTemplateMojo.java
Java
apache-2.0
2,439
package com.davidflex.supermarket.agents.shop; import com.davidflex.supermarket.agents.behaviours.shop_agent.ListenEmployeesBehaviour; import com.davidflex.supermarket.agents.behaviours.shop_agent.ListenNewOrdersBehaviour; import com.davidflex.supermarket.agents.behaviours.shop_agent.ShowDataBehaviour; import com.davi...
davidmigloz/supermarket-agent-system
src/main/java/com/davidflex/supermarket/agents/shop/ShopAgent.java
Java
apache-2.0
4,443
/** * Copyright 2013 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 ...
cbeams/bitcoinj
core/src/test/java/com/google/bitcoin/wallet/DeterministicKeyChainTest.java
Java
apache-2.0
14,404
package org.feldspaten.hyperion.html; import java.util.LinkedList; import java.util.List; public class Page extends Html { private String title = ""; /** If > 0, autorefresh is enabled with the given interval */ private int autoRefreshDelay = 0; /** Meta fields */ private List<String> metas = new LinkedList<>(...
grisu48/Hyperion
org.feldspaten.hyperion/src/org/feldspaten/hyperion/html/Page.java
Java
apache-2.0
2,022
package com.xyz.coolweather.util; /** * Created by yesgxy520 on 6/1/2016. */ public interface HttpCallbackListener { void onFinish(String response); void onError(Exception e); }
swxca/coolWeather
coolWeather/app/src/main/java/com/xyz/coolweather/util/HttpCallbackListener.java
Java
apache-2.0
189
package com.neurospeech.hypercube.ui; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentPagerAdapter; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.MotionEvent; im...
neurospeech/android-hypercube
hypercube/src/main/java/com/neurospeech/hypercube/ui/CustomViewPager.java
Java
apache-2.0
4,186
package ua.windriver.core; import org.springframework.http.client.ClientHttpRequestFactory; import org.springframework.http.client.SimpleClientHttpRequestFactory; public class ConfiguredRequestFactory { private static final Integer READ_TIMEOUT = EnvironmentProperties.HTTP_REQUEST_READ_TIMEOUT.readInteger(); ...
WinDriverTeam/windriver-java
src/main/java/ua/windriver/core/ConfiguredRequestFactory.java
Java
apache-2.0
714
/* * 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-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/PutJsonUnmarshaller.java
Java
apache-2.0
4,208
/* * Copyright 2003 - 2021 The eFaps Team * * 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 ...
eFaps/eFaps-Kernel
src/test/java/org/efaps/eql/PrintTest.java
Java
apache-2.0
17,502
package cn.felord.wepay.ali.sdk.api.response; import cn.felord.wepay.ali.sdk.api.internal.mapping.ApiField; import cn.felord.wepay.ali.sdk.api.AlipayResponse; /** * ALIPAY API: alipay.pass.instance.add response. * * @author auto create * @version $Id: $Id */ public class AlipayPassInstanceAddResponse extends Al...
NotFound403/WePay
src/main/java/cn/felord/wepay/ali/sdk/api/response/AlipayPassInstanceAddResponse.java
Java
apache-2.0
1,571
package org.apache.helix.integration.task; /* * 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 L...
lei-xia/helix
helix-core/src/test/java/org/apache/helix/integration/task/TestUnregisteredCommand.java
Java
apache-2.0
2,328
/* * Copyright (C) 2014-2016 LinkedIn Corp. 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 http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
yukuai518/gobblin
gobblin-yarn/src/main/java/gobblin/yarn/GobblinYarnConfigurationKeys.java
Java
apache-2.0
4,517
package org.sketchertab.style; import android.graphics.Canvas; import android.graphics.PointF; import java.util.ArrayList; import java.util.Map; class SketchyStyle extends StyleBrush { private float prevX; private float prevY; private float density; private ArrayList<PointF> points = new ArrayList<P...
dkovalkov/Sketcher-Tab
src/org/sketchertab/style/SketchyStyle.java
Java
apache-2.0
2,060
package it.backbox.client.rest.bean; import com.google.api.client.util.Key; public class BoxError { @Key public String type; @Key public int status; @Key public String code; @Key public BoxContextInfo context_info; }
dagix5/backbox
BackBox/src/it/backbox/client/rest/bean/BoxError.java
Java
apache-2.0
255
package com.jiangjg.lib.EffectiveJava; class Insect{ private int i=9; protected int j; private int xx=printInit("xx"); public Insect() { System.out.println("i=" + i + ", j=" +j); j=39; } private static int x1=printInit("static I1"); static int printInit(String s){ System.out.println(s); return 47; ...
jiangjiguang/lib-java
src/com/jiangjg/lib/EffectiveJava/Beetle.java
Java
apache-2.0
700
package net.swiftos.eventposter.core; import android.app.Application; import net.swiftos.eventposter.factory.HandlerFactory; import net.swiftos.eventposter.modules.activitylife.handler.ActivityLifeHandler; import net.swiftos.eventposter.template.IHandler; /** * Created by gy939 on 2016/10/3. */ public class EventP...
ganyao114/SwiftAndroid
eventposter/src/main/java/net/swiftos/eventposter/core/EventPoster.java
Java
apache-2.0
1,951
package burlap.domain.singleagent.gridworld; import burlap.domain.singleagent.gridworld.state.GridWorldState; import burlap.mdp.core.action.Action; import burlap.mdp.core.state.State; import burlap.mdp.singleagent.model.RewardFunction; /** * This class is used for defining reward functions in grid worlds that are a...
jmacglashan/burlap
src/main/java/burlap/domain/singleagent/gridworld/GridWorldRewardFunction.java
Java
apache-2.0
4,390
/******************************************************************************* * Copyright 2016 Intuit * <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.o...
intuit/wasabi
modules/repository-datastax/src/main/java/com/intuit/wasabi/repository/FavoritesRepository.java
Java
apache-2.0
2,054
/* Copyright 2022 The Kubernetes 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 applicable law or agreed to in writing, softwar...
kubernetes-client/java
fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java
Java
apache-2.0
8,415
/** * Copyright 2008 - 2012 * * 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 wr...
cping/LGame
Java/old/OpenGL-1.0(old_ver)/Loon-backend-JavaSE/src/loon/action/sprite/painting/Drawable.java
Java
apache-2.0
4,167
package net.catchpole.silicone.resource; // Copyright 2014 catchpole.net // // 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 //...
slipperyseal/silicone
silicone/src/main/java/net/catchpole/silicone/resource/ClasspathResourceSource.java
Java
apache-2.0
1,023
/* * Copyright 2016-2021 52°North Spatial Information Research GmbH * * 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 requi...
52North/javaPS
engine/src/main/java/org/n52/javaps/algorithm/annotation/AbstractDataBinding.java
Java
apache-2.0
2,570
package ch.ice.exceptions; public class FileParserNotAvailableException extends Exception { private static final long serialVersionUID = 3039694748225707627L; public FileParserNotAvailableException() {} public FileParserNotAvailableException(String message){ super(message); } }
LuzernWGProjects/Schurter
WebCrawler/src/ch/ice/exceptions/FileParserNotAvailableException.java
Java
apache-2.0
290
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with *...
searchtechnologies/heritrix-connector
engine-3.1.1/engine/src/main/java/org/archive/crawler/restlet/ScriptResource.java
Java
apache-2.0
13,729
/* * Copyright 2020 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
googleapis/java-vision
proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ParagraphOrBuilder.java
Java
apache-2.0
5,587
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ /* * * */ /* * * Varian, Inc. and its contributors. Use, disclosure and...
OpenVnmrJ/OpenVnmrJ
src/cryo/src/ClientGui.java
Java
apache-2.0
11,697
package group7.anemone.UI; import java.util.LinkedHashMap; import java.util.Set; public class UITheme { public enum Types { SHARK, FISH, FOOD, WALL, BACKGROUND, SIDEPANEL1, NEURON, NEURON_FIRED } private LinkedHashMap<Types, Integer> elements = new LinkedHashMap<Types, Integer>(); public void setColor(Types ...
RuthRainbow/anemone
src/main/java/group7/anemone/UI/UITheme.java
Java
apache-2.0
550
package jp.co.c_lis.prompter.android; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { ...
vuzixtokyo/sample-prompter
app/src/androidTest/java/jp/co/c_lis/prompter/android/ApplicationTest.java
Java
apache-2.0
359
/* * Copyright 2013 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...
canlasd/Map-Plotting
demo/src/com/google/maps/android/utils/demo/ClusteringDemoActivity.java
Java
apache-2.0
5,098
/* * Copyright 2003-2021 Dave Griffith, Bas Leijdekkers * * 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 applicab...
siosio/intellij-community
platform/lang-api/src/com/intellij/codeInspection/ui/SingleCheckboxOptionsPanel.java
Java
apache-2.0
1,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")...
firejack-open/Firejack-Platform
platform/src/main/java/net/firejack/platform/generate/beans/web/model/Model.java
Java
apache-2.0
9,491
/* * Copyright 2016-2020 Stefan Kalscheuer * * 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...
skalscheuer/jvaultconnector
src/main/java/de/stklcode/jvault/connector/model/response/embedded/SecretMetadata.java
Java
apache-2.0
3,327
/* See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * Esri Inc. licenses this file to You 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...
usgin/usgin-geoportal
src/com/esri/gpt/control/webharvest/client/arcims/ArcImsRecordsAdapter.java
Java
apache-2.0
2,302
package com.github.tkurz.media.ontology.exception; /** * ... * <p/> * Author: Thomas Kurz (tkurz@apache.org) */ public class NotComparableException extends Exception { }
tkurz/media-fragments-uri
src/main/java/com/github/tkurz/media/ontology/exception/NotComparableException.java
Java
apache-2.0
175
/* * Copyright 2003-2012 Dave Griffith, Bas Leijdekkers * * 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 applicab...
consulo/consulo-java
java-impl/src/main/java/com/siyeh/ipp/trivialif/ExpandBooleanIntention.java
Java
apache-2.0
4,264
/* * Copyright 2000-2009 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...
jexp/idea2
platform/lang-impl/src/com/intellij/lang/ASTFactory.java
Java
apache-2.0
4,716
/** * <a href="http://www.openolat.org"> * OpenOLAT - Online Learning and Training</a><br> * <p> * Licensed under the Apache License, Version 2.0 (the "License"); <br> * you may not use this file except in compliance with the License.<br> * You may obtain a copy of the License at the * <a href="http://www.apache...
stevenhva/InfoLearn_OpenOLAT
src/main/java/org/olat/core/util/mail/ui/MailTemplateAdminController.java
Java
apache-2.0
3,376
package com.example.android.miwok.SeatAval.mainapp2.Stations; import android.content.SharedPreferences; import com.google.gson.Gson; import java.util.ArrayList; public class SeatTwoStnsSaver implements Runnable { ArrayList<SeatTwoStnsClass> list =new ArrayList<SeatTwoStnsClass>(); SeatTwoStnsClass item; ...
rishabhnayak/ud839_Miwok-Starter-code
app/src/main/java/com/example/android/miwok/SeatAval/mainapp2/Stations/SeatTwoStnsSaver.java
Java
apache-2.0
2,984
package com.fedevela.core.asic.pojos; /** * Created by fvelazquez on 27/03/14. */ import java.util.Date; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.*; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; import org.codehaus.jac...
fedevelatec/asic-core
src/main/java/com/fedevela/core/asic/pojos/ChecklistCap.java
Java
apache-2.0
8,852
/* * 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...
shenrh/UILayout
app/src/main/java/com/shenrh/layout/widget/CustomElement.java
Java
apache-2.0
6,083
package math.functions; import java.awt.Window; import java.awt.event.ActionEvent; import org.trianacode.gui.windows.ScrollerWindow; import org.trianacode.taskgraph.Unit; import triana.types.EmptyingType; import triana.types.Histogram; import triana.types.SampleSet; import triana.types.Spectrum; import triana.types.V...
CSCSI/Triana
triana-toolboxes/math/src/main/java/math/functions/ATanCont.java
Java
apache-2.0
6,235
package com.xujun.funapp.widget.divider; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.Drawable; import android.support.v7.widget.GridLayoutManager; import android.support.v7.widget.RecyclerView; imp...
gdutxiaoxu/FunAPP
Fun/src/main/java/com/xujun/funapp/widget/divider/DividerGridItemDecoration.java
Java
apache-2.0
6,294
package ru.ematveev.generic; /** * @author Matveev Evgeny. */ public class User extends Base { /** * Constructor the class. * * @param id unic id for every the Base element. */ public User(String id) { super(id); } }
evgenymatveev/Task
chapter_005/src/main/java/ru/ematveev/generic/User.java
Java
apache-2.0
262
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_0283 { }
lesaint/experimenting-annotation-processing
experimenting-rounds/massive-count-of-annotated-classes/src/main/java/fr/javatronic/blog/massive/annotation1/sub1/Class_0283.java
Java
apache-2.0
151
package io.corbel.resources.rem.acl; import static io.corbel.resources.rem.acl.AclTestUtils.getEntityWithoutAcl; import static org.fest.assertions.api.Assertions.assertThat; import static org.mockito.Matchers.any; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.*; import java.util.Collections...
corbel-platform/corbel
rem-acl/src/test/java/io/corbel/resources/rem/acl/AclGetRemTest.java
Java
apache-2.0
10,337
/* * Copyright (c) 2008-2016 Haulmont. * * 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...
cuba-platform/cuba
modules/core/test/com/haulmont/cuba/soft_delete/SoftDeleteMany2ManyTest.java
Java
apache-2.0
6,809
//¶àÏ̵߳¥Àýģʽ class Singleton { private static Singleton instance; //synchronized¼ÓËøÍ¬²½»á½µµÍЧÂÊ,ÕâÀïÏÈÅжÏÊÇ·ñΪ¿Õ //²»Îª¿ÕÔò²»ÐèÒª¼ÓËø,Ìá¸ß³ÌÐòЧÂÊ //²¹È« ¹¹ÔìÆ÷ private Singleton(){} public static Singleton getInstance (){ //²¹È« ´´½¨ÊµÀý if(instance ==null){ sy...
XINCGer/DesignPattern
单例模式(Singleton)/多线程/Singleton.java
Java
apache-2.0
491
/* * 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 ...
afiantara/apache-wicket-1.5.7
src/wicket-core/src/main/java/org/apache/wicket/markup/parser/XmlPullParser.java
Java
apache-2.0
17,718
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.ui.toolkit.api.view; import net.sf.mmm.client.ui.api.attribute.AttributeWriteEnabled; import net.sf.mmm.client.ui.api.attribute.AttributeWriteSizeInPixel; import net.sf.mm...
m-m-m/multimedia
mmm-uit/mmm-uit-api/src/main/java/net/sf/mmm/ui/toolkit/api/view/UiElement.java
Java
apache-2.0
886
/* * Copyright (c) 2020 - Manifold Systems LLC * * 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 ...
manifold-systems/manifold
manifold-core-parent/manifold/src/main/java/manifold/api/util/JavacUtil.java
Java
apache-2.0
1,176
import java.util.Scanner; /** * implement average movie ratings method * * 360-420-DW Intro to Java * @author PMCampbell * @version today **/ public class MovieRatings { public static void main(String[] args) { double average; int ratings[][] = { {4,6,2,5}, {7,9,4},...
campbe13/JavaSourceSamples360
labs/lab8/MovieRatings.java
Java
apache-2.0
1,661
/* * Copyright 2012-2017 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...
dagnir/aws-sdk-java
aws-java-sdk-efs/src/main/java/com/amazonaws/services/elasticfilesystem/model/transform/ModifyMountTargetSecurityGroupsRequestProtocolMarshaller.java
Java
apache-2.0
2,903
package com.choodon.rpc.framework.cluster.ha; import com.choodon.rpc.base.RPCCallback; import com.choodon.rpc.base.RPCFuture; import com.choodon.rpc.base.extension.Scope; import com.choodon.rpc.base.extension.Spi; import com.choodon.rpc.base.protocol.RPCRequest; import com.choodon.rpc.base.protocol.RPCResponse; impor...
choodon/choodon-rpc
choodon-rpc-framework/src/main/java/com/choodon/rpc/framework/cluster/ha/HaStrategy.java
Java
apache-2.0
872
package simplejpa.artifact.repository; import java.util.Map; public interface RepositoryManager { public Object findRepository(String name); public Object doInstantiate(String name, boolean triggerEvent); public Map<String, Object> getRepositories(); }
JockiHendry/simple-jpa
src/main/simplejpa/artifact/repository/RepositoryManager.java
Java
apache-2.0
271
package org.heneveld.maven.license_audit.util; import org.apache.maven.model.License; import junit.framework.TestCase; public class LicenseCodeTest extends TestCase { public void testGetCodesFromRegex() { assertEquals("EPL-1.0", LicenseCodes.getLicenseCode("Eclipse Public License, Version 1.0")...
ahgittin/license-audit-maven-plugin
src/test/java/org/heneveld/maven/license_audit/util/LicenseCodeTest.java
Java
apache-2.0
3,560
/* * Copyright 2000-2014 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...
vovagrechka/fucking-everything
phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/codeInsight/intentions/PyJoinIfIntention.java
Java
apache-2.0
5,981
package cellmate.accumulo.reader; import cellmate.accumulo.cell.SecurityStringValueCell; import cellmate.accumulo.parameters.AccumuloParameters; import cellmate.accumulo.reader.celltransformer.AccumuloCellTransformers; import cellmate.accumulo.reader.celltransformer.SecurityStringCellTransformer; import cellmate.cell....
bfemiano/cellmate
accumulo-cellmate/src/test/java/cellmate/accumulo/reader/AccumuloReaderTest.java
Java
apache-2.0
13,464
package az.openweatherapi.utils; /** * Created by az on 13/10/16. */ public enum OWSupportedUnits { METRIC("metric"), FAHRENHEIT("imperial"); String unit; OWSupportedUnits(String unit) { this.unit = unit; } public String getUnit() { return unit; } }
zurche/open-weather-map-android-wrapper
OWApi/src/main/java/az/openweatherapi/utils/OWSupportedUnits.java
Java
apache-2.0
301
/* * Copyright (C) 2008 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 ...
zorzella/test-libraries-for-java
src/main/java/com/google/common/testing/junit4/JUnitAsserts.java
Java
apache-2.0
8,069
/* * 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-cognitosync/src/main/java/com/amazonaws/services/cognitosync/model/transform/GetIdentityPoolConfigurationResultJsonUnmarshaller.java
Java
apache-2.0
3,548
/********************************************************************************** * $URL: https://source.sakaiproject.org/svn/providers/tags/sakai-10.6/jldap/src/java/edu/amc/sakai/user/RegexpBlacklistEidValidator.java $ * $Id: RegexpBlacklistEidValidator.java 105079 2012-02-24 23:08:11Z ottenhoff@longsight.com $ ...
eemirtekin/Sakai-10.6-TR
providers/jldap/src/java/edu/amc/sakai/user/RegexpBlacklistEidValidator.java
Java
apache-2.0
5,398
/* * JEF - Copyright 2009-2010 Jiyi (mr.jiyi@gmail.com) * * 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...
xuse/ef-others
common-misc/src/main/java/jef/dynamic/ClassSource.java
Java
apache-2.0
1,514
package io.deepreader.java.commons.util; import junit.framework.TestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * Created by Daniel on 09/10/15. */ public class SerializerTest extends TestCase { @Before public void setUp() throws Exception { } @After publ...
idf/commons-util
src/test/java/io/deepreader/java/commons/util/SerializerTest.java
Java
apache-2.0
743
package com.zhanghao.skinexpert.beans; /** * Created by RockGao on 2016/12/23. */ /** * 测试问题的bean类 */ public class QuestionBean { private String title; private String score; public QuestionBean() { } public QuestionBean(String title, String score) { this.title = title; this.s...
BMambaYe/SkinExpert
app/src/main/java/com/zhanghao/skinexpert/beans/QuestionBean.java
Java
apache-2.0
626
package app.logic.activity.search; import java.util.ArrayList; import java.util.List; import org.QLConstant; import org.ql.activity.customtitle.ActActivity; import org.ql.utils.QLToastUtils; import com.facebook.drawee.view.SimpleDraweeView; import com.squareup.picasso.Picasso; import android.R.integer; import andro...
Zhangsongsong/GraduationPro
毕业设计/code/android/YYFramework/src/app/logic/activity/search/SearchActivity.java
Java
apache-2.0
12,596
/* * 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-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/transform/WithdrawByoipCidrRequestProtocolMarshaller.java
Java
apache-2.0
2,762
package org.codingmatters.value.objects.generation.collection; import com.squareup.javapoet.JavaFile; import com.squareup.javapoet.TypeSpec; import org.codingmatters.tests.compile.CompiledCode; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import java.i...
nelt/codingmatters-value-objects
cdm-value-objects-generation/src/test/java/org/codingmatters/value/objects/generation/collection/ValueSetImplementationTest.java
Java
apache-2.0
3,086
/* * Jicofo, the Jitsi Conference Focus. * * Copyright @ 2015-Present 8x8, 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 * ...
jitsi/jicofo
src/main/java/org/jitsi/protocol/xmpp/util/TransportSignaling.java
Java
apache-2.0
2,564
/* * 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-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/transform/BatchGetOnPremisesInstancesResultJsonUnmarshaller.java
Java
apache-2.0
3,067
/* * Copyright (C) 2014-2022 Philip Helger (www.helger.com) * philip[at]helger[dot]com * * 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/LICEN...
phax/ph-commons
ph-graph/src/main/java/com/helger/graph/algo/Dijkstra.java
Java
apache-2.0
12,144
package i18n; import jlibs.core.util.i18n.Message; import jlibs.core.util.i18n.ResourceBundle; /** * @author Santhosh Kumar T */ @ResourceBundle public interface MethodSignatureClash2Bundle{ @Message(key="EXECUTING_QUERY", value="executing {0}") public String executing(String query); }
santhosh-tekuri/jlibs
i18n-apt/src/test/resources/i18n/MethodSignatureClash2Bundle.java
Java
apache-2.0
299
package com.hanovit.app.config; import java.util.Properties; import javax.annotation.Resource; import javax.sql.DataSource; import org.apache.commons.dbcp2.BasicDataSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.contex...
josuemontano/SHTezt
No XML Configuration/src/main/java/com/hanovit/app/config/HibernateConfig.java
Java
apache-2.0
2,212
/* * Copyright 2010-2012 Luca Garulli (l.garulli--at--orientechnologies.com) * * 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 ...
redox/OrientDB
core/src/main/java/com/orientechnologies/orient/core/command/script/OScriptManager.java
Java
apache-2.0
6,461
package com.karenpownall.android.aca.forartssake; public class Links { @Override public String toString(){ return super.toString(); } }
knpFletcher/CapstoneProject
ForArtsSake/app/src/main/java/com/karenpownall/android/aca/forartssake/LInks.java
Java
apache-2.0
158
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
dremio/dremio-oss
plugins/elasticsearch/src/main/java/com/dremio/plugins/elastic/planning/functions/UnaryFunction.java
Java
apache-2.0
1,461
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.security.option; import java.util.Map; import org.joda.beans.Bean; import org.joda.beans.BeanBuilder; import org.joda.beans.BeanDefinition; import o...
McLeodMoores/starling
projects/financial-types/src/main/java/com/opengamma/financial/security/option/SupersharePayoffStyle.java
Java
apache-2.0
8,151
package com.cardpay.pccredit.intopieces.web; import java.io.IOException; import java.sql.SQLException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUt...
wangxu2013/PCCREDIT_QZ
src/java/com/cardpay/pccredit/intopieces/web/IntoPiecesXingzhengbeginControl.java
Java
apache-2.0
10,908
/* * Copyright 2012-2017 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...
dagnir/aws-sdk-java
aws-java-sdk-lambda/src/main/java/com/amazonaws/services/lambda/model/ListTagsResult.java
Java
apache-2.0
4,500
package org.unipop.process.strategyregistrar; import org.apache.tinkerpop.gremlin.process.traversal.TraversalStrategies; import org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies; import org.apache.tinkerpop.gremlin.structure.Graph; import org.unipop.process.coalesce.UniGraphCoalesceStepStr...
unipop-graph/unipop
unipop-core/src/org/unipop/process/strategyregistrar/StandardStrategyProvider.java
Java
apache-2.0
1,536
package com.pepoc.joke.view.activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.support.v7.widget.Toolbar; import android.text.TextUtil...
pepoc/Joke
Joke/app/src/main/java/com/pepoc/joke/view/activity/JokeContentActivity.java
Java
apache-2.0
4,698
/* * Copyright (c) 2017 Intel Corporation * * 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 o...
icecp/icecp
icecp-node/src/main/java/com/intel/icecp/node/security/crypto/utils/CryptoUtils.java
Java
apache-2.0
5,374
/* * 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-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/JourneyExecutionActivityMetricsResponse.java
Java
apache-2.0
26,522
// Copyright 2008 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 writ...
GerritCodeReview/gwtjsonrpc
src/main/java/com/google/gwtjsonrpc/client/impl/ser/ObjectSerializer.java
Java
apache-2.0
1,544
/* * Copyright 2018, Flávio Keglevich * * 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...
fkeglevich/Raw-Dumper
app/src/main/java/com/fkeglevich/rawdumper/camera/feature/RangeFeature.java
Java
apache-2.0
1,858
package ananas.waymq.droid.api; public interface ICoreApi { IBaseDirectory getBaseDirectory(); IMemberManager getMemberManager(); void save(); void load(); }
xukun0217/wayMQ
wayMQ-droid/src/ananas/waymq/droid/api/ICoreApi.java
Java
apache-2.0
168
package org.arquillian.algeron.pact.provider.core; import net.jcip.annotations.NotThreadSafe; import org.assertj.core.util.Arrays; import org.junit.Test; import java.net.URI; import java.net.URL; import static org.assertj.core.api.Assertions.assertThat; @NotThreadSafe public class StateTypeConverterTest { @Tes...
arquillian/arquillian-algeron
pact/provider/core/src/test/java/org/arquillian/algeron/pact/provider/core/StateTypeConverterTest.java
Java
apache-2.0
6,653
/* * Copyright (c) 2011-2014 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distributi...
vert-x3/vertx-jdbc-client
src/main/java/io/vertx/jdbcclient/impl/actions/JDBCPropertyAccessor.java
Java
apache-2.0
1,633
/* * Copyright 2004-2012 the Seasar Foundation and the Others. * * 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 ...
azusa/hatunatu
hatunatu-util/src/test/java/jp/fieldnotes/hatunatu/util/collection/EmptyIteratorTest.java
Java
apache-2.0
2,329
package com.fishercoder.solutions; public class _42 { public static class Solution1 { /** * O(n) time and O(1) space, awesome! * * 1. first scan to find the max height index * 2. then scan from left up to max index and find all the water units up to the max height ...
fishercoder1534/Leetcode
src/main/java/com/fishercoder/solutions/_42.java
Java
apache-2.0
1,640
package tafkacn.statsdclient; import com.lmax.disruptor.*; import java.io.IOException; import java.net.InetSocketAddress; import java.net.StandardSocketOptions; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.channels.DatagramChannel; import java.nio.channels.SocketChannel; import java.nio.chan...
tafkacn/statsdclient
src/main/java/tafkacn/StatsdClient.java
Java
apache-2.0
14,025
/* ****************************************************************************** * Copyright 2017 Tourmaline Labs, Inc. All rights reserved. * Confidential & Proprietary - Tourmaline Labs, Inc. ("TLI") * * The party receiving this software directly from TLI (the "Recipient") * may use this software as reasonably ...
tourmalinelabs/AndroidTLKitExample
app/src/main/java/com/tourmaline/example/activities/MainActivity.java
Java
apache-2.0
19,865
/* * APDPlat - Application Product Development Platform * Copyright (c) 2013, 杨尚川, yang-shangchuan@qq.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the Licen...
ysc/superword
src/main/java/org/apdplat/superword/tools/Pronunciation.java
Java
apache-2.0
9,799
/* * 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 ...
rlugojr/incubator-eagle
eagle-security/eagle-security-hbase-securitylog/src/main/java/org/apache/eagle/security/hbase/parse/HbaseAuditLogKafkaDeserializer.java
Java
apache-2.0
2,222
// Copyright 2000-2018 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.psi.impl; import com.intellij.codeInsight.AnnotationTargetUtil; import com.intellij.codeInsight.AnnotationUtil; import com.intellij.lang.ASTNode; import com....
mdanielwork/intellij-community
java/java-psi-impl/src/com/intellij/psi/impl/PsiImplUtil.java
Java
apache-2.0
33,484
/** * Copyright (C) 2016-2018 Harald Kuhn * * 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...
hkuhn42/bottery
bottery.core/src/main/java/rocks/bottery/bot/crypto/AESHelper.java
Java
apache-2.0
3,630
/* * QueryManager.java: an interface to manage multiple ObjectExchangers * * Copyright (c) 2006, 2014, 2015, 2016 Nozomi `James' Ytow * 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 obtai...
nomencurator/taxonaut
src/main/java/org/nomencurator/io/QueryManager.java
Java
apache-2.0
1,410
/* * ObjectLab, http://www.objectlab.co.uk/open is sponsoring the ObjectLab Kit. * * Based in London, we are world leaders in the design and development * of bespoke applications for the securities financing markets. * * <a href="http://www.objectlab.co.uk/open">Click here to learn more</a> * __...
Appendium/objectlabkit
datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/TenorCode.java
Java
apache-2.0
3,699
/** * 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...
deephacks/confit
tck/src/main/java/org/deephacks/confit/test/validation/BinaryTreeUtils.java
Java
apache-2.0
11,067
package com.akexorcist.passapp; import org.junit.Test; import static org.junit.Assert.*; /** * To work on unit tests, switch the Test Artifact in the Build Variants view. */ public class ExampleUnitTest { @Test public void addition_isCorrect() throws Exception { assertEquals(4, 2 + 2); } }
akexorcist/Example-SamsungSDK
PassApp/app/src/test/java/com/akexorcist/passapp/ExampleUnitTest.java
Java
apache-2.0
315