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 2015 Daniel Dittmar * * 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...
DanDits/WhatsThat
app/src/main/java/dan/dit/whatsthat/riddle/control/RiddleController.java
Java
apache-2.0
22,693
package com.rahulmadhavan.clippy; public class Message { private String value; public Message(){ } public Message(String _value){ this.value = _value; } public synchronized boolean isValueSame(String data){ boolean result = false; if( null == data || null == value ){ }else if(data.comp...
rahulmadhavan/clippy
android/src/com/rahulmadhavan/clippy/Message.java
Java
apache-2.0
627
package no.panopticon.api.external; import no.panopticon.storage.RunningUnit; import no.panopticon.storage.StatusSnapshot; import java.time.LocalDateTime; import java.util.List; import static java.util.stream.Collectors.toList; public class UpdatedStatus { public String environment; public String system; ...
Espenhh/panopticon
backend/src/main/java/no/panopticon/api/external/UpdatedStatus.java
Java
apache-2.0
1,855
/* * Copyright 2004-2007 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 requi...
florinpatrascu/jpublish
java/src/org/jpublish/util/PathUtilities.java
Java
apache-2.0
5,804
package br.com.objectos.testing.ui.login.iter7; import br.com.objectos.way.ui.AbstractUiAction2; import br.com.objectos.way.ui.Action; import br.com.objectos.way.ui.Ui; @Ui abstract class LoginAction7 extends AbstractUiAction2<String, String> { abstract UiHomeActivity7 homeActivity(); abstract UiLoginForm7 form(...
objectos/way
way-compiler/src/test/resources/code/ui/login-iter7/LoginAction7.java
Java
apache-2.0
904
package org.cfr.commons.util.collection; import java.util.Collection; import java.util.List; import java.util.Map; public class CollectionReorderer<T> { public void moveToStart(final List<T> objects, final T toMove) { assertContains(objects, toMove); objects.remove(toMove); objects.add(0,...
devacfr/commons
commons-util/src/main/java/org/cfr/commons/util/collection/CollectionReorderer.java
Java
apache-2.0
4,278
/* * Copyright (c) 1998-2002 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * noti...
andremanuelbarbosa/intelligent-web-search
build/classes/rcm/awt/PopupDialog.java
Java
apache-2.0
11,859
/* * 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-cloudsearch/src/main/java/com/amazonaws/services/cloudsearchdomain/model/QueryParser.java
Java
apache-2.0
1,678
/* * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
emil-wcislo/sbql4j8
sbql4j8/src/test/openjdk/tools/javac/doctree/LiteralTest.java
Java
apache-2.0
3,119
package tw.me.ychuang.rpc.json; import java.lang.reflect.Type; import org.apache.commons.lang3.ClassUtils; import org.apache.commons.lang3.exception.ExceptionUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import tw.me.ychuang.rpc.Response; import tw.me.ychuang.rpc.Result; import com.google.gson.Jso...
allan-huang/remote-procedure-call
src/main/java/tw/me/ychuang/rpc/json/ResponseTypeAdapter.java
Java
apache-2.0
4,051
package com.wzhnsc.testviewpageautoscroll; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Shader; import android.graphics.drawable.BitmapDrawable; import android.os.Build; import android.os.Handler; import android.os.Parcelable; import and...
wzhnsc/TestViewPageAutoScroll
app/src/main/java/com/wzhnsc/testviewpageautoscroll/ViewPageAutoScroll.java
Java
apache-2.0
17,179
/* * Copyright 2014 Adam Browning * * 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 ...
adbrowning/HadoopUtils
src/test/java/hadoop/writable/OffHeapWritableTest.java
Java
apache-2.0
6,891
package com.github.jnthnclt.os.lab.core.bitmaps; import org.junit.Assert; import org.testng.annotations.Test; public class LABIndexKeyRangeTest { @Test public void testCompareTo() throws Exception { byte[] startInclusiveKey = { 1, 2, 3, 4 }; byte[] stopExclusiveKey = { 2, 2, 3, 4 }; ...
jnthnclt/lab
lab-roaring/src/test/java/com/github/jnthnclt/os/lab/core/bitmaps/LABIndexKeyRangeTest.java
Java
apache-2.0
891
package jdepend.client.ui.result.panel; import jdepend.framework.exception.JDependException; import jdepend.framework.ui.util.ExceptionPrinter; import jdepend.knowledge.architectpattern.ArchitectPatternMgr; import jdepend.knowledge.architectpattern.ArchitectPatternResult; import jdepend.model.result.AnalysisResu...
jdepend/cooper
cooper-standalone/src/main/java/jdepend/client/ui/result/panel/ArchitectPatternPanel.java
Java
apache-2.0
938
/* * 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 ...
nvoron23/cassandra
src/java/org/apache/cassandra/db/ColumnFamilyStore.java
Java
apache-2.0
114,395
/* * 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-robomaker/src/main/java/com/amazonaws/services/robomaker/model/transform/CreateFleetRequestMarshaller.java
Java
apache-2.0
2,275
/* * 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-transcribe/src/main/java/com/amazonaws/services/transcribe/model/transform/UpdateMedicalVocabularyRequestMarshaller.java
Java
apache-2.0
2,807
/* * Copyright 2002 Felix Pahl. All rights reserved. * Use is subject to license terms. */ package info.joriki.truetype; import info.joriki.io.Outputable; abstract public class GlyphDescription implements Outputable { byte [] instructions; abstract void interpret (ByteCodeInterpreter interpreter); }
emistoolbox/emistoolbox
libs/joriki/src/info/joriki/truetype/GlyphDescription.java
Java
apache-2.0
311
/** * 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...
muntasirraihan/apache-cassandra-1.2.4-src
test/unit/org/apache/cassandra/cli/CliTest.java
Java
apache-2.0
15,616
package com.elderbyte.vidada.domain.auth.users; import java.util.stream.Collectors; public class VidadaUserDtoBuilder { public static VidadaUserDto build(VidadaUser user){ VidadaUserDto dto = new VidadaUserDto(); dto.username = user.getUsername(); dto.firstName = user.getFirstName(); ...
Vidada-Project/Vidada-Server
vidada-server/src/main/java/com/elderbyte/vidada/domain/auth/users/VidadaUserDtoBuilder.java
Java
apache-2.0
569
package com.wifi.utils; import android.content.Context; import android.os.Handler; import android.os.Message; import android.util.Log; import com.baidu.location.BDLocation; import com.baidu.location.BDLocationListener; import com.baidu.location.LocationClient; import com.baidu.location.LocationClientOption; import co...
VickerChen/mao-company-wifi-code
wiFiWeather/src/main/java/com/wifi/utils/BaiduLocation.java
Java
apache-2.0
25,551
package de.undercouch.citeproc.tool.shell; import de.undercouch.citeproc.BibliographyFileReader; import de.undercouch.citeproc.BibliographyFileReader.FileFormat; import de.undercouch.citeproc.tool.AbstractCSLToolCommand; import de.undercouch.citeproc.tool.CSLToolContext; import de.undercouch.underline.InputReader; imp...
michel-kraemer/citeproc-java
citeproc-java-tool/src/main/java/de/undercouch/citeproc/tool/shell/ShellLoadCommand.java
Java
apache-2.0
2,799
package net.jueb.util4j.buffer.tool.demo; import java.io.File; import java.io.IOException; import java.util.Date; import java.util.List; import net.jueb.util4j.buffer.tool.ClassFileUitl; import org.apache.commons.io.FileUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import io.netty.util.CharsetUtil;...
juebanlin/util4j
util4j/src/main/java/net/jueb/util4j/buffer/tool/demo/BufferBuilderDemo.java
Java
apache-2.0
3,983
package axmlprinter; import java.io.File; /** * Constant definition class.<br> * <br> * Most constants have a prefix defining the content. * <ul> * <li><code>OS_</code> OS path constant. These paths are different depending on * the platform.</li> * <li><code>FN_</code> File name constant.</li> * <li><code>FD_<...
titze/axmlparser
src/axmlprinter/SdkConstants.java
Java
apache-2.0
19,114
/** * 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...
GeLiXin/hadoop
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/component/instance/ComponentInstance.java
Java
apache-2.0
28,150
package com.dayu.lotto.web.controller; import java.io.IOException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import...
dayubai/GuessEngine
src/main/java/com/dayu/lotto/web/controller/OZLottoController.java
Java
apache-2.0
3,582
/* Copyright (c) 2011 Danish Maritime Authority * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This...
dma-dk/MsiProxy
msiproxy-model/src/main/java/dk/dma/msiproxy/model/msi/SeriesIdType.java
Java
apache-2.0
848
package nl.jqno.equalsverifier.integration.operational; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Arrays; import java.util.List; import nl.jqno.equalsverifier.ConfiguredEqualsVerifier; import nl.jqno.equalsverifier.EqualsVer...
jqno/equalsverifier
equalsverifier-test-core/src/test/java/nl/jqno/equalsverifier/integration/operational/ConfiguredEqualsVerifierMultipleTest.java
Java
apache-2.0
7,256
package code.docflow.controlflow; // // Author: Alexey Zorkaltsev (alexey@zorkaltsev.com) // import code.docflow.action.Transaction; import code.docflow.docs.Document; import code.docflow.users.CurrentUser; import play.Logger; import play.db.jpa.JPAPlugin; import play.db.jpa.NoTransaction; import play.exceptions.JPAE...
delightsoft/DSCommon
app/code/docflow/controlflow/DocflowJob.java
Java
apache-2.0
3,604
/* * 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 ...
hardfish/justTest
azurecompute/src/main/java/org/jclouds/azurecompute/features/SubscriptionApi.java
Java
apache-2.0
1,968
/* * 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-medialive/src/main/java/com/amazonaws/services/medialive/model/transform/PipelinePauseStateSettingsMarshaller.java
Java
apache-2.0
2,063
/* * Copyright 2009-2014 DigitalGlobe, 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 ag...
tjkrell/MrGEO
mrgeo-core/src/main/java/org/mrgeo/data/image/MrsImageOutputFormatProvider.java
Java
apache-2.0
1,397
/** * 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
rest/src/main/java/org/jboss/pnc/rest/endpoints/ProjectEndpointImpl.java
Java
apache-2.0
3,238
/** * Helios, OpenSource Monitoring * Brought to you by the Helios Development Group * * Copyright 2007, Helios Development Group and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
nickman/heliosJMX
src/main/java/com/heliosapm/jmx/remote/tunnel/TunnelHandle.java
Java
apache-2.0
1,651
package com.comcast.cdn.traffic_control.traffic_router.core.request; import com.comcast.cdn.traffic_control.traffic_router.core.ds.DeliveryServiceMatcher.Type; import com.comcast.cdn.traffic_control.traffic_router.core.util.ComparableStringByLength; import java.util.regex.Matcher; import java.util.regex.Pattern; pub...
PSUdaemon/traffic_control
traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/request/RequestMatcher.java
Java
apache-2.0
3,765
/** * Copyright © 2013-2018 shadowhunt (dev@shadowhunt.de) * * 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 a...
thrawn-sh/subversion
src/test/java/de/shadowhunt/subversion/internal/httpv1/v1_2/RepositoryLogReadOnlyIT.java
Java
apache-2.0
1,131
/* * Copyright 2009 Andy Lee. * * 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 ...
plasma147/lorraine-dto-test-gen
src/test/java/uk/co/optimisticpanda/gtest/dto/ExampleTest2.java
Java
apache-2.0
3,292
package com.daedafusion.aniketos.framework; /** * Created by mphilpot on 1/22/15. */ public interface ServerTokenExchange { boolean isTokenValidNoSession(String tokenString); }
daedafusion/aniketos
aniketos-core/src/main/java/com/daedafusion/aniketos/framework/ServerTokenExchange.java
Java
apache-2.0
184
/** * 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...
anjuncc/hadoop
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
Java
apache-2.0
163,447
/* * Copyright (c) 2017-2018 mikan */ package com.github.javatrainingcourse.obogmanager.ui.view; import com.github.javatrainingcourse.obogmanager.Version; import com.github.javatrainingcourse.obogmanager.domain.model.Convocation; import com.github.javatrainingcourse.obogmanager.domain.model.Membership; imp...
JavaTrainingCourse/obog-manager
src/main/java/com/github/javatrainingcourse/obogmanager/ui/view/LoginView.java
Java
apache-2.0
5,759
package adept.common; /*- * #%L * adept-api * %% * Copyright (C) 2012 - 2017 Raytheon BBN Technologies * %% * 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.apach...
BBN-E/Adept
adept-api/src/main/java/adept/common/LatticePath.java
Java
apache-2.0
1,846
package com.drew.metadata.mov.media; import com.drew.lang.annotations.NotNull; import com.drew.metadata.mov.QtDirectory; import java.util.HashMap; public class QtSoundDirectory extends QtDirectory { // Sound Sample Description Atom public static final int TAG_AUDIO_FORMAT = 0x0301;...
Widen/metadata-extractor
Source/com/drew/metadata/mov/media/QtSoundDirectory.java
Java
apache-2.0
1,465
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v10/resources/campaign_asset.proto package com.google.ads.googleads.v10.resources; public final class CampaignAssetProto { private CampaignAssetProto() {} public static void registerAllExtensions( com.google.protobuf...
googleads/google-ads-java
google-ads-stubs-v10/src/main/java/com/google/ads/googleads/v10/resources/CampaignAssetProto.java
Java
apache-2.0
4,595
/* * Copyright 2015-present Open Networking Foundation * * 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...
oplinkoms/onos
apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/SegmentRoutingManager.java
Java
apache-2.0
108,504
/* * 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-directory/src/main/java/com/amazonaws/services/directory/model/transform/CreateTrustRequestProtocolMarshaller.java
Java
apache-2.0
2,619
/* * 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-inspector/src/main/java/com/amazonaws/services/inspector/model/transform/DescribeRulesPackagesResultJsonUnmarshaller.java
Java
apache-2.0
3,368
/******************************************************************************* * Copyright 2014 Katja Hahn * * 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.o...
katjahahn/PortEx
src/main/java/com/github/katjahahn/parser/HeaderKey.java
Java
apache-2.0
1,008
/* * 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-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ReportGroupTrendFieldType.java
Java
apache-2.0
2,099
/* * 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-opsworks/src/main/java/com/amazonaws/services/opsworks/model/RegisterElasticIpResult.java
Java
apache-2.0
3,751
package com.socks.jandan.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; /** * Created by zhaokaiqiang on 15/4/22. */ public class NetWorkUtil { /** * 判断当前网络是否已连接 * * @param context * @return */ public static boolean isNetWorkConnected(Cont...
404neko/jandan_plus
app/src/main/java/com/socks/jandan/utils/NetWorkUtil.java
Java
apache-2.0
1,042
/* * Copyright © 2011 Karl J. Ots <kjots@kjots.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 appl...
kjots/gwt-lib
uri-emul/src/test/java/org/kjots/lib/gwt/test/UriEmulGwtTestSuite.java
Java
apache-2.0
1,922
package ru.job4j.array; public class ArrayToArray { public int[] arrayPlusArray(int[] first, int[] second) { int [] result = new int[first.length + second.length]; int firstIndex = 0; int secondIndex = 0; for(int i=0; i < result.length; i++) { if(firstIndex >= first.leng...
Aksyumov/saksyumov
chapter_001/src/main/java/ru/job4j/array/ArrayToArray.java
Java
apache-2.0
815
/* * Copyright DataStax, 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 wri...
datastax/java-driver
core/src/main/java/com/datastax/oss/driver/internal/core/protocol/package-info.java
Java
apache-2.0
728
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
sjaco002/incubator-asterixdb
asterix-om/src/main/java/edu/uci/ics/asterix/om/base/AMutableLine.java
Java
apache-2.0
897
package com.vigorous.asynchronized.network.request; import com.google.gson.Gson; import com.google.gson.TypeAdapter; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Converter; /** * Created by Vigorous.Liang on 2017/9/22. */ public class DecryptResponsebodyConverter<T> implements ...
VigorousLiang/RxjavaRetrofitNetwork
networklib/src/main/java/com/vigorous/asynchronized/network/request/DecryptResponsebodyConverter.java
Java
apache-2.0
926
package co.poynt.postmaster; import org.testng.Assert; import org.testng.annotations.Test; import co.poynt.postman.PostmanRunResult; public class PostmasterCollectionRunnerTest { // example to run the postmaster @Test(enabled = false) public void runCollection() throws Exception { PostmasterCollectionRunner b...
eddhkim/postmaster-runner
src/test/java/co/poynt/postmaster/PostmasterCollectionRunnerTest.java
Java
apache-2.0
584
/* * 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-waf/src/main/java/com/amazonaws/services/waf/model/waf/transform/SizeConstraintSetSummaryMarshaller.java
Java
apache-2.0
2,370
package com.wareninja.opensource.ip2location.services; import java.util.List; import com.google.gson.JsonObject; import com.wareninja.opensource.ip2location.config.YamlConfiguration; public interface Provider { default void transfer(final BulkService bulkService,YamlConfiguration config, final Runnable closeC...
wareninja/ip2location-jsondata
src/main/java/com/wareninja/opensource/ip2location/services/Provider.java
Java
apache-2.0
1,025
package com.coolweather.android.gson; /** * Created by lllsssxxx on 2017/9/18. */ public class AQI { public AQICity city; public class AQICity{ public String api; public String pm25; } }
lllsssxxx/coolweather
app/src/main/java/com/coolweather/android/gson/AQI.java
Java
apache-2.0
219
package org.jgroups.protocols.jzookeeper.z2pinfinspan; import org.jgroups.Address; import org.jgroups.View; import java.util.*; /** * A class to provide a means of reducing a views size in bytes by storing each view in a byte array, and storing past view * data at each node in the cluster. * * @auth...
ibrahimshbat/JGroups
src/org/jgroups/protocols/jzookeeper/z2pinfinspan/ViewManager.java
Java
apache-2.0
2,095
/** * Copyright 2016 Netflix, 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...
benjchristensen/RxJava
src/test/java/io/reactivex/internal/operators/observable/ObservableSubscribeOnTest.java
Java
apache-2.0
6,761
package org.adligo.tests4j_tests.models.shared.results; import org.adligo.tests4j.models.shared.results.BaseTrialResultMutant; import org.adligo.tests4j.shared.asserts.reference.AllowedReferences; import org.adligo.tests4j.system.shared.trials.SourceFileScope; import org.adligo.tests4j_tests.base_trials.I_CountType; i...
adligo/tests4j_tests.adligo.org
src/org/adligo/tests4j_tests/models/shared/results/BaseTrialResultMutantTrial.java
Java
apache-2.0
1,225
package com.mycoolweather.android.gson; /** * Created by wutao on 2017/05/24. */ public class AQI { public AQICity city; public class AQICity { public String aqi; public String pm25; } }
dawutao/MyCoolWeather
app/src/main/java/com/mycoolweather/android/gson/AQI.java
Java
apache-2.0
220
package be.un.odp.services.implementations; import be.un.odp.dao.PortalTypeDao; import be.un.odp.models.PortalType; import be.un.odp.services.PortalTypeService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * Created on 13-0...
Nokorbis/unodp
src/main/java/be/un/odp/services/implementations/PortalTypeServiceImpl.java
Java
apache-2.0
1,532
// Copyright 2018 The Bazel Authors. 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...
akira-baruah/bazel
src/main/java/com/google/devtools/build/lib/skylarkbuildapi/java/JavaCcLinkParamsProviderApi.java
Java
apache-2.0
3,557
package test.thread.parallelization.sample; import org.testng.ITestContext; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import test.thread.parallelization.TestNgRunStateTracker; import java.util.Map; import java.util.concurrent.TimeUnit; import static test.thread.parallelization.T...
AJ-72/testng
src/test/java/test/thread/parallelization/sample/TestClassAFiveMethodsWithDataProviderOnAllMethodsAndNoDepsSample.java
Java
apache-2.0
6,668
package org.ovirt.engine.ui.webadmin.section.main.presenter.popup.cluster; import org.ovirt.engine.ui.uicommonweb.models.ListModel; import org.ovirt.engine.ui.webadmin.section.main.presenter.popup.AbstractModelBoundPopupPresenterWidget; import com.google.gwt.event.shared.EventBus; import com.google.inject.Inject; pu...
anjalshireesh/gluster-ovirt-poc
frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/section/main/presenter/popup/cluster/ClusterManageNetworkPopupPresenterWidget.java
Java
apache-2.0
708
/* * Copyright 2018-2019 B2i Healthcare Pte Ltd, http://b2i.sg * * 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 require...
IHTSDO/snow-owl
snomed/com.b2international.snowowl.snomed.reasoner/src/com/b2international/snowowl/snomed/reasoner/converter/ConcreteDomainChangeConverter.java
Java
apache-2.0
14,609
package root.finance; import static org.junit.Assert.assertEquals; import org.junit.Test; class CurrencyFormatTest { private CurrencyFormat formatter = new CurrencyFormat(); @Test public void testPositiveFormat() { assertEquals("$0.09", formatter.formatMsg(new Money(9))); assertEquals("$0.75", formatter.for...
macvelli/RootFramework
test/root/finance/CurrencyFormatTest.java
Java
apache-2.0
1,561
package org.formcept.gdfpop; /** * A collection of tokens used for GDF data * * @author Anuj (https://github.com/anujsrc) */ public final class GDFTokens { public static final String NODE_START = "nodedef>"; public static final String EDGE_START = "edgedef>"; public static final String EDGE_LABEL_PROP = "lab...
formcept/gdfpop
src/main/java/org/formcept/gdfpop/GDFTokens.java
Java
apache-2.0
730
package org.pedrohos; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.context.web.SpringBootServletInitializer; import org.springframework.boot.orm.j...
pedro-hos/caixa-eletronico
ce-crud/src/main/java/org/pedrohos/Application.java
Java
apache-2.0
1,057
package ru.stqa.pft.mantis.tests; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.lanwen.verbalregex.VerbalExpression; import ru.stqa.pft.mantis.model.MailMessage; import javax.mail.MessagingException; import java.io.IOException; impo...
artemevkif/study
mantis-tests/src/test/java/ru/stqa/pft/mantis/tests/RegistrationTests.java
Java
apache-2.0
1,722
/* * Copyright 2002-2019 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-projects/spring-framework
spring-webflux/src/test/java/org/springframework/web/reactive/result/view/script/JythonScriptTemplateTests.java
Java
apache-2.0
3,136
/* * * * Copyright 2015 Skymind,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 * * * * U...
phvu/nd4j
nd4j-api/src/main/java/org/nd4j/linalg/api/ops/impl/transforms/arithmetic/RDivOp.java
Java
apache-2.0
2,954
/* * Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved. */ package jsystem.treeui.reporter; import java.util.ArrayList; import javax.swing.table.DefaultTableModel; import jsystem.framework.report.Reporter; /** * TestReportModel This class implements the table model */ public class TestReportMode...
Top-Q/jsystem
jsystem-core-projects/jsystemApp/src/main/java/jsystem/treeui/reporter/TestReportModel.java
Java
apache-2.0
3,794
package com.loadburn.heron.converter; import com.loadburn.heron.utils.converter.Converter; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.List; /** * @author slacrey (scstlinfeng@yahoo.com) * Date: 13-10-26 */ public class NumberConverters { publ...
slacrey/heron-project
heron-core/src/main/java/com/loadburn/heron/converter/NumberConverters.java
Java
apache-2.0
1,866
/* * Copyright 2012 François Sarradin <fsarradin AT gmail 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/LICENSE-2.0 * * ...
fsarradin/Broceliand
src/main/java/net/kerflyn/broceliand/model/charge/NoShippingCharge.java
Java
apache-2.0
885
/* * Copyright (c) 2004 World Wide Web Consortium, * * (Massachusetts Institute of Technology, European Research Consortium for * Informatics and Mathematics, Keio University). All Rights Reserved. This * work is distributed under the W3C(r) Software License [1] in the hope that * it will be useful, but WITHOUT A...
webos21/xi
java/jcl/src/java/org/w3c/dom/DOMImplementation.java
Java
apache-2.0
8,069
/* * JBoss, Home of Professional Open Source * Copyright 2012 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @author tags. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * This copyrighted material is made avail...
nmldiegues/stibt
infinispan/core/src/main/java/org/infinispan/distribution/group/GroupingConsistentHash.java
Java
apache-2.0
3,779
/** * Copyright 2015 ParStream 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 required by applicable law or agreed...
parstream/parstream-storm
bolt/src/main/java/com/parstream/adaptor/storm/config/Configuration.java
Java
apache-2.0
1,488
/* * Copyright (c) 2017, Kieron Wilkinson */ package org.softpres.donkeysql.params; import org.junit.Test; import org.softpres.donkeysql.UncheckedSQLException; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.catchThrowable; import static org.softpres.donkeysql...
vyadh/donkeysql
src/test/java/org/softpres/donkeysql/params/IndexedParamQueryTest.java
Java
apache-2.0
2,518
package pokeraidbot; import com.jagrosh.jdautilities.command.CommandEvent; import net.dv8tion.jda.api.entities.User; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; import pokeraidbot.domain.config.ClockService; import pokeraidbot.domain.config.LocaleService; import pokeraidbot.d...
magnusmickelsson/pokeraidbot
src/main/java/pokeraidbot/Utils.java
Java
apache-2.0
16,313
/** * */ package com.parseeverything.html; /** *解析印度尼西亚商报 * @author Mi Jing * @date 2014-3-18 */ import java.util.regex.Matcher; import java.util.regex.Pattern; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import org.slf4j.Logger; i...
sonyfe25cp/ParseEverything
src/main/java/com/parseeverything/html/IndonesiaShangBaoParser.java
Java
apache-2.0
2,375
/* Copyright 2014-2016 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 or agreed to in writing, s...
multi-os-engine/moe-core
moe.apple/moe.platform.ios/src/main/java/apple/accelerate/struct/vDSP_uint24.java
Java
apache-2.0
1,516
package com.dxy.android.statistics.util; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Reader; import java.io.Writer; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.zip.Chec...
brokge/AndroidUtilClass
util/IoUtils.java
Java
apache-2.0
4,873
package tech.shadowfox.shadow; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_m...
shadowfox-ninja/ShadowUtils
app/src/main/java/tech/shadowfox/shadow/MainActivity.java
Java
apache-2.0
334
/* * Copyright 2015 Joakim Sahlström * * 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...
joakimsahlstrom/twyn
src/main/java/se/jsa/twyn/ArrayIndex.java
Java
apache-2.0
899
package org.onvif.ver10.schema; import java.util.HashMap; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAnyAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaTyp...
fpompermaier/onvif
onvif-ws-client/src/main/java/org/onvif/ver10/schema/ImageStabilization.java
Java
apache-2.0
4,294
/* * 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-commons/src/test/java/com/helger/commons/id/IIntIDProviderTest.java
Java
apache-2.0
1,042
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.domain.BeaconDeviceInfo; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.mobile.beacon.device.query response. * * @author auto create * @since 1.0, 2017-02-28 11:12:47 */ public class AlipayMo...
wendal/alipay-sdk
src/main/java/com/alipay/api/response/AlipayMobileBeaconDeviceQueryResponse.java
Java
apache-2.0
1,140
package com.brightgenerous.fxplayer.url; import java.nio.charset.Charset; public class HttpUtilsBuilder { private String userAgent; private String contentType; private Charset encode; private boolean selfSigned; private boolean syncCookie; private HttpUtilsBuilder() { ...
brightgenerous/fx-player
src/main/java/com/brightgenerous/fxplayer/url/HttpUtilsBuilder.java
Java
apache-2.0
1,819
package stepdefinitions; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.mockito.Matchers.any; import static org.mockito.Matchers.argThat; import static org.mockito.Matchers.contains; import static org.mockito.Matchers.eq; import static org.mockito.Matchers.ref...
shell88/bdd_videoannotator
java/src/test/java/stepdefinitions/ReportingTest.java
Java
apache-2.0
8,104
package edu.pitt.apollo.interfaces; import edu.pitt.apollo.exception.TranslatorServiceException; import java.math.BigInteger; /** * * @author nem41 */ public interface TranslatorServiceInterface { public void translateRun(BigInteger runId) throws TranslatorServiceException; }
ApolloDev/apollo
services-common/src/main/java/edu/pitt/apollo/interfaces/TranslatorServiceInterface.java
Java
apache-2.0
288
/* * Copyright 2009-2016 European Molecular Biology 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 a...
arrayexpress/annotare2
app/webapp/src/main/java/uk/ac/ebi/fg/annotare2/web/gwt/editor/client/view/EditorLogBarViewImpl.java
Java
apache-2.0
2,651
package example.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Customer680 { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String firstName; private String la...
spring-projects/spring-data-examples
jpa/deferred/src/main/java/example/model/Customer680.java
Java
apache-2.0
624
/** * This file is part of the Iritgo/Aktera Framework. * * Copyright (C) 2005-2011 Iritgo Technologies. * Copyright (C) 2003-2005 BueroByte GbR. * * Iritgo 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 m...
iritgo/iritgo-aktera
aktera-ui/src/main/java/de/iritgo/aktera/ui/el/ExpressionLanguageContext.java
Java
apache-2.0
6,761
/* * Copyright 2012-2013 eBay Software Foundation and selendroid committers. * * 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...
popwich/test_selendroid
selendroid-server/src/main/java/io/selendroid/server/model/AndroidNativeElement.java
Java
apache-2.0
16,268
/******************************************************************************* * Copyright [2014] [Joarder Kamal] * * 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 * * ...
joarder/oltpdbsim
oltpdbsim/src/main/java/utils/Utility.java
Java
apache-2.0
11,121
package com.netflix.staash.test.core; import org.apache.cassandra.service.CassandraDaemon; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; public class StaashDeamon extends CassandraDaemon { private static final Logger logger = LoggerFactory.getLogger(StaashDeamon.class); ...
Netflix/staash
staash-web/src/test/java/com/netflix/staash/test/core/StaashDeamon.java
Java
apache-2.0
919
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
spring-cloud/spring-cloud-sleuth
tests/brave/spring-cloud-sleuth-instrumentation-messaging-tests/src/test/java/org/springframework/cloud/sleuth/instrument/messaging/issues/issue_943/HelloWorldImpl.java
Java
apache-2.0
1,688